@das-fed/upf-utils 6.4.0-dev.150 → 6.4.0-dev.152

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 (72) hide show
  1. package/api-services/i18n/index.js.gz +0 -0
  2. package/api-services/index.js +2077 -1654
  3. package/api-services/index.js.gz +0 -0
  4. package/api-services/modules/app-manage/index.js +2190 -1767
  5. package/api-services/modules/app-manage/index.js.gz +0 -0
  6. package/api-services/modules/authentication/index.js +2235 -1812
  7. package/api-services/modules/authentication/index.js.gz +0 -0
  8. package/api-services/modules/bems/index.js +2238 -1815
  9. package/api-services/modules/bems/index.js.gz +0 -0
  10. package/api-services/modules/contract/index.js +2251 -1810
  11. package/api-services/modules/contract/index.js.gz +0 -0
  12. package/api-services/modules/duty-manage/index.js +2193 -1752
  13. package/api-services/modules/duty-manage/index.js.gz +0 -0
  14. package/api-services/modules/enterpriseright/index.js +2235 -1812
  15. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  16. package/api-services/modules/file/index.js +2063 -1622
  17. package/api-services/modules/file/index.js.gz +0 -0
  18. package/api-services/modules/gateway-edge/index.js +2235 -1812
  19. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  20. package/api-services/modules/index.js +2116 -1675
  21. package/api-services/modules/index.js.gz +0 -0
  22. package/api-services/modules/iot/index.js +2248 -1825
  23. package/api-services/modules/iot/index.js.gz +0 -0
  24. package/api-services/modules/justauth/index.js +2295 -1872
  25. package/api-services/modules/justauth/index.js.gz +0 -0
  26. package/api-services/modules/knowledge/index.js +2235 -1812
  27. package/api-services/modules/knowledge/index.js.gz +0 -0
  28. package/api-services/modules/link/index.js +2235 -1812
  29. package/api-services/modules/link/index.js.gz +0 -0
  30. package/api-services/modules/permission/index.js +2235 -1812
  31. package/api-services/modules/permission/index.js.gz +0 -0
  32. package/api-services/modules/platformManage/index.js +2212 -1771
  33. package/api-services/modules/platformManage/index.js.gz +0 -0
  34. package/api-services/modules/portal/index.js +2235 -1812
  35. package/api-services/modules/portal/index.js.gz +0 -0
  36. package/api-services/modules/space-manage/index.js +2206 -1765
  37. package/api-services/modules/space-manage/index.js.gz +0 -0
  38. package/api-services/modules/super-admin/index.js +2238 -1815
  39. package/api-services/modules/super-admin/index.js.gz +0 -0
  40. package/api-services/modules/supplier/index.js +2237 -1814
  41. package/api-services/modules/supplier/index.js.gz +0 -0
  42. package/api-services/modules/supplychain-manage/index.js +2235 -1812
  43. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  44. package/api-services/modules/systemConfiguration/index.js +2235 -1812
  45. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  46. package/api-services/modules/tool/index.js +2251 -1810
  47. package/api-services/modules/tool/index.js.gz +0 -0
  48. package/api-services/src/create-service/index.js +2185 -1762
  49. package/api-services/src/create-service/index.js.gz +0 -0
  50. package/common-info/getInfoFromUrl/index.js.gz +0 -0
  51. package/common-info/index.js.gz +0 -0
  52. package/common-info/set-personal-info/index.js +848 -599
  53. package/common-info/set-personal-info/index.js.gz +0 -0
  54. package/common-tools/extract-file-name/index.js +842 -593
  55. package/common-tools/extract-file-name/index.js.gz +0 -0
  56. package/common-tools/get-url-params/index.js.gz +0 -0
  57. package/create-api-service/index.js +2205 -1764
  58. package/create-api-service/index.js.gz +0 -0
  59. package/create-api-service/sso/index.js +1130 -881
  60. package/create-api-service/sso/index.js.gz +0 -0
  61. package/curring-http/index.js +1415 -1166
  62. package/curring-http/index.js.gz +0 -0
  63. package/directive/auth/index.js.gz +0 -0
  64. package/hooks/use-get-auth/index.js.gz +0 -0
  65. package/nextTiken/index.js.gz +0 -0
  66. package/package.json +4 -4
  67. package/pinyin-first-character/index.js +19799 -20879
  68. package/pinyin-first-character/index.js.gz +0 -0
  69. package/style/index.js +4 -2
  70. package/style/index.js.gz +0 -0
  71. package/use-low-code/index.js.gz +0 -0
  72. package/webSocket-service/index.js.gz +0 -0
@@ -1,237 +1,239 @@
1
- import { setI18nRule as Zr, currentLang as en, t as k } from "@das-fed/upf-web/packages/i18n/index";
2
- import { curringHttp as tn } from "@das-fed/upf-utils/curring-http";
3
- import { getToken as rn, getQuery as nn, login as on, real_uri as an, getTokenParams as sn } from "@das-fed/upf-utils/create-api-service/sso";
4
- import mt from "dayjs";
5
- import ln from "dayjs/plugin/utc";
6
- import un from "dayjs/plugin/timezone";
7
- import { getProjectInfo as cn, getInstanceInfo as fn } from "@das-fed/upf-utils/common-info";
8
- import { getAccessToken as pn } from "@das-fed/upf-utils/token-tools";
9
- import { getConfig as ur } from "@das-fed/upf-utils/config";
10
- function cr(t, e) {
1
+ import { setI18nRule as jn, currentLang as Hn, t as G } from "@das-fed/upf-web/packages/i18n/index";
2
+ import { curringHttp as zn } from "@das-fed/upf-utils/curring-http";
3
+ import { getToken as Wn, getQuery as Gn, login as Jn, real_uri as Vn, getTokenParams as Kn } from "@das-fed/upf-utils/create-api-service/sso";
4
+ import kt from "dayjs";
5
+ import Qn from "dayjs/plugin/utc";
6
+ import Xn from "dayjs/plugin/timezone";
7
+ import { getProjectInfo as Zn, getInstanceInfo as Yn } from "@das-fed/upf-utils/common-info";
8
+ import { getAccessToken as eo } from "@das-fed/upf-utils/token-tools";
9
+ import { getConfig as kr } from "@das-fed/upf-utils/config";
10
+ function qr(t, e) {
11
11
  return function() {
12
12
  return t.apply(e, arguments);
13
13
  };
14
14
  }
15
- const { toString: dn } = Object.prototype, { getPrototypeOf: gt } = Object, ke = /* @__PURE__ */ ((t) => (e) => {
16
- const r = dn.call(e);
17
- return t[r] || (t[r] = r.slice(8, -1).toLowerCase());
18
- })(/* @__PURE__ */ Object.create(null)), I = (t) => (t = t.toLowerCase(), (e) => ke(e) === t), Me = (t) => (e) => typeof e === t, { isArray: le } = Array, ve = Me("undefined");
19
- function yn(t) {
20
- return t !== null && !ve(t) && t.constructor !== null && !ve(t.constructor) && T(t.constructor.isBuffer) && t.constructor.isBuffer(t);
15
+ const { toString: to } = Object.prototype, { getPrototypeOf: qt } = Object, { iterator: ze, toStringTag: jr } = Symbol, We = /* @__PURE__ */ ((t) => (e) => {
16
+ const n = to.call(e);
17
+ return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
18
+ })(/* @__PURE__ */ Object.create(null)), I = (t) => (t = t.toLowerCase(), (e) => We(e) === t), Ge = (t) => (e) => typeof e === t, { isArray: ce } = Array, we = Ge("undefined");
19
+ function ro(t) {
20
+ return t !== null && !we(t) && t.constructor !== null && !we(t.constructor) && F(t.constructor.isBuffer) && t.constructor.isBuffer(t);
21
21
  }
22
- const fr = I("ArrayBuffer");
23
- function hn(t) {
22
+ const Hr = I("ArrayBuffer");
23
+ function no(t) {
24
24
  let e;
25
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && fr(t.buffer), e;
25
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Hr(t.buffer), e;
26
26
  }
27
- const mn = Me("string"), T = Me("function"), pr = Me("number"), je = (t) => t !== null && typeof t == "object", gn = (t) => t === !0 || t === !1, Ne = (t) => {
28
- if (ke(t) !== "object")
27
+ const oo = Ge("string"), F = Ge("function"), zr = Ge("number"), Je = (t) => t !== null && typeof t == "object", ao = (t) => t === !0 || t === !1, Fe = (t) => {
28
+ if (We(t) !== "object")
29
29
  return !1;
30
- const e = gt(t);
31
- return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
32
- }, vn = I("Date"), bn = I("File"), Sn = I("Blob"), wn = I("FileList"), En = (t) => je(t) && T(t.pipe), On = (t) => {
30
+ const e = qt(t);
31
+ return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(jr in t) && !(ze in t);
32
+ }, io = I("Date"), so = I("File"), lo = I("Blob"), co = I("FileList"), uo = (t) => Je(t) && F(t.pipe), fo = (t) => {
33
33
  let e;
34
- return t && (typeof FormData == "function" && t instanceof FormData || T(t.append) && ((e = ke(t)) === "formdata" || // detect form-data instance
35
- e === "object" && T(t.toString) && t.toString() === "[object FormData]"));
36
- }, An = I("URLSearchParams"), Rn = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
37
- function be(t, e, { allOwnKeys: r = !1 } = {}) {
34
+ return t && (typeof FormData == "function" && t instanceof FormData || F(t.append) && ((e = We(t)) === "formdata" || // detect form-data instance
35
+ e === "object" && F(t.toString) && t.toString() === "[object FormData]"));
36
+ }, po = I("URLSearchParams"), [yo, ho, mo, go] = ["ReadableStream", "Request", "Response", "Headers"].map(I), vo = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
37
+ function Se(t, e, { allOwnKeys: n = !1 } = {}) {
38
38
  if (t === null || typeof t > "u")
39
39
  return;
40
- let n, o;
41
- if (typeof t != "object" && (t = [t]), le(t))
42
- for (n = 0, o = t.length; n < o; n++)
43
- e.call(null, t[n], n, t);
40
+ let r, o;
41
+ if (typeof t != "object" && (t = [t]), ce(t))
42
+ for (r = 0, o = t.length; r < o; r++)
43
+ e.call(null, t[r], r, t);
44
44
  else {
45
- const a = r ? Object.getOwnPropertyNames(t) : Object.keys(t), i = a.length;
45
+ const a = n ? Object.getOwnPropertyNames(t) : Object.keys(t), i = a.length;
46
46
  let s;
47
- for (n = 0; n < i; n++)
48
- s = a[n], e.call(null, t[s], s, t);
47
+ for (r = 0; r < i; r++)
48
+ s = a[r], e.call(null, t[s], s, t);
49
49
  }
50
50
  }
51
- function dr(t, e) {
51
+ function Wr(t, e) {
52
52
  e = e.toLowerCase();
53
- const r = Object.keys(t);
54
- let n = r.length, o;
55
- for (; n-- > 0; )
56
- if (o = r[n], e === o.toLowerCase())
53
+ const n = Object.keys(t);
54
+ let r = n.length, o;
55
+ for (; r-- > 0; )
56
+ if (o = n[r], e === o.toLowerCase())
57
57
  return o;
58
58
  return null;
59
59
  }
60
- const yr = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, hr = (t) => !ve(t) && t !== yr;
61
- function rt() {
62
- const { caseless: t } = hr(this) && this || {}, e = {}, r = (n, o) => {
63
- const a = t && dr(e, o) || o;
64
- Ne(e[a]) && Ne(n) ? e[a] = rt(e[a], n) : Ne(n) ? e[a] = rt({}, n) : le(n) ? e[a] = n.slice() : e[a] = n;
60
+ const Q = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Gr = (t) => !we(t) && t !== Q;
61
+ function Tt() {
62
+ const { caseless: t } = Gr(this) && this || {}, e = {}, n = (r, o) => {
63
+ const a = t && Wr(e, o) || o;
64
+ Fe(e[a]) && Fe(r) ? e[a] = Tt(e[a], r) : Fe(r) ? e[a] = Tt({}, r) : ce(r) ? e[a] = r.slice() : e[a] = r;
65
65
  };
66
- for (let n = 0, o = arguments.length; n < o; n++)
67
- arguments[n] && be(arguments[n], r);
66
+ for (let r = 0, o = arguments.length; r < o; r++)
67
+ arguments[r] && Se(arguments[r], n);
68
68
  return e;
69
69
  }
70
- const Pn = (t, e, r, { allOwnKeys: n } = {}) => (be(e, (o, a) => {
71
- r && T(o) ? t[a] = cr(o, r) : t[a] = o;
72
- }, { allOwnKeys: n }), t), xn = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Tn = (t, e, r, n) => {
73
- t.prototype = Object.create(e.prototype, n), t.prototype.constructor = t, Object.defineProperty(t, "super", {
70
+ const wo = (t, e, n, { allOwnKeys: r } = {}) => (Se(e, (o, a) => {
71
+ n && F(o) ? t[a] = qr(o, n) : t[a] = o;
72
+ }, { allOwnKeys: r }), t), bo = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), So = (t, e, n, r) => {
73
+ t.prototype = Object.create(e.prototype, r), t.prototype.constructor = t, Object.defineProperty(t, "super", {
74
74
  value: e.prototype
75
- }), r && Object.assign(t.prototype, r);
76
- }, Cn = (t, e, r, n) => {
75
+ }), n && Object.assign(t.prototype, n);
76
+ }, Eo = (t, e, n, r) => {
77
77
  let o, a, i;
78
78
  const s = {};
79
79
  if (e = e || {}, t == null) return e;
80
80
  do {
81
81
  for (o = Object.getOwnPropertyNames(t), a = o.length; a-- > 0; )
82
- i = o[a], (!n || n(i, t, e)) && !s[i] && (e[i] = t[i], s[i] = !0);
83
- t = r !== !1 && gt(t);
84
- } while (t && (!r || r(t, e)) && t !== Object.prototype);
82
+ i = o[a], (!r || r(i, t, e)) && !s[i] && (e[i] = t[i], s[i] = !0);
83
+ t = n !== !1 && qt(t);
84
+ } while (t && (!n || n(t, e)) && t !== Object.prototype);
85
85
  return e;
86
- }, Fn = (t, e, r) => {
87
- t = String(t), (r === void 0 || r > t.length) && (r = t.length), r -= e.length;
88
- const n = t.indexOf(e, r);
89
- return n !== -1 && n === r;
90
- }, Nn = (t) => {
86
+ }, Ao = (t, e, n) => {
87
+ t = String(t), (n === void 0 || n > t.length) && (n = t.length), n -= e.length;
88
+ const r = t.indexOf(e, n);
89
+ return r !== -1 && r === n;
90
+ }, Oo = (t) => {
91
91
  if (!t) return null;
92
- if (le(t)) return t;
92
+ if (ce(t)) return t;
93
93
  let e = t.length;
94
- if (!pr(e)) return null;
95
- const r = new Array(e);
94
+ if (!zr(e)) return null;
95
+ const n = new Array(e);
96
96
  for (; e-- > 0; )
97
- r[e] = t[e];
98
- return r;
99
- }, $n = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && gt(Uint8Array)), _n = (t, e) => {
100
- const n = (t && t[Symbol.iterator]).call(t);
97
+ n[e] = t[e];
98
+ return n;
99
+ }, Ro = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && qt(Uint8Array)), Po = (t, e) => {
100
+ const r = (t && t[ze]).call(t);
101
101
  let o;
102
- for (; (o = n.next()) && !o.done; ) {
102
+ for (; (o = r.next()) && !o.done; ) {
103
103
  const a = o.value;
104
104
  e.call(t, a[0], a[1]);
105
105
  }
106
- }, In = (t, e) => {
107
- let r;
108
- const n = [];
109
- for (; (r = t.exec(e)) !== null; )
110
- n.push(r);
111
- return n;
112
- }, Dn = I("HTMLFormElement"), Bn = (t) => t.toLowerCase().replace(
106
+ }, To = (t, e) => {
107
+ let n;
108
+ const r = [];
109
+ for (; (n = t.exec(e)) !== null; )
110
+ r.push(n);
111
+ return r;
112
+ }, xo = I("HTMLFormElement"), Co = (t) => t.toLowerCase().replace(
113
113
  /[-_\s]([a-z\d])(\w*)/g,
114
- function(r, n, o) {
115
- return n.toUpperCase() + o;
114
+ function(n, r, o) {
115
+ return r.toUpperCase() + o;
116
116
  }
117
- ), Ct = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), Un = I("RegExp"), mr = (t, e) => {
118
- const r = Object.getOwnPropertyDescriptors(t), n = {};
119
- be(r, (o, a) => {
117
+ ), Zt = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), _o = I("RegExp"), Jr = (t, e) => {
118
+ const n = Object.getOwnPropertyDescriptors(t), r = {};
119
+ Se(n, (o, a) => {
120
120
  let i;
121
- (i = e(o, a, t)) !== !1 && (n[a] = i || o);
122
- }), Object.defineProperties(t, n);
123
- }, Ln = (t) => {
124
- mr(t, (e, r) => {
125
- if (T(t) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
121
+ (i = e(o, a, t)) !== !1 && (r[a] = i || o);
122
+ }), Object.defineProperties(t, r);
123
+ }, No = (t) => {
124
+ Jr(t, (e, n) => {
125
+ if (F(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
126
126
  return !1;
127
- const n = t[r];
128
- if (T(n)) {
127
+ const r = t[n];
128
+ if (F(r)) {
129
129
  if (e.enumerable = !1, "writable" in e) {
130
130
  e.writable = !1;
131
131
  return;
132
132
  }
133
133
  e.set || (e.set = () => {
134
- throw Error("Can not rewrite read-only method '" + r + "'");
134
+ throw Error("Can not rewrite read-only method '" + n + "'");
135
135
  });
136
136
  }
137
137
  });
138
- }, kn = (t, e) => {
139
- const r = {}, n = (o) => {
138
+ }, Fo = (t, e) => {
139
+ const n = {}, r = (o) => {
140
140
  o.forEach((a) => {
141
- r[a] = !0;
141
+ n[a] = !0;
142
142
  });
143
143
  };
144
- return le(t) ? n(t) : n(String(t).split(e)), r;
145
- }, Mn = () => {
146
- }, jn = (t, e) => (t = +t, Number.isFinite(t) ? t : e), He = "abcdefghijklmnopqrstuvwxyz", Ft = "0123456789", gr = {
147
- DIGIT: Ft,
148
- ALPHA: He,
149
- ALPHA_DIGIT: He + He.toUpperCase() + Ft
150
- }, zn = (t = 16, e = gr.ALPHA_DIGIT) => {
151
- let r = "";
152
- const { length: n } = e;
153
- for (; t--; )
154
- r += e[Math.random() * n | 0];
155
- return r;
156
- };
157
- function Hn(t) {
158
- return !!(t && T(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]);
159
- }
160
- const Wn = (t) => {
161
- const e = new Array(10), r = (n, o) => {
162
- if (je(n)) {
163
- if (e.indexOf(n) >= 0)
144
+ return ce(t) ? r(t) : r(String(t).split(e)), n;
145
+ }, $o = () => {
146
+ }, Do = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
147
+ function Io(t) {
148
+ return !!(t && F(t.append) && t[jr] === "FormData" && t[ze]);
149
+ }
150
+ const Bo = (t) => {
151
+ const e = new Array(10), n = (r, o) => {
152
+ if (Je(r)) {
153
+ if (e.indexOf(r) >= 0)
164
154
  return;
165
- if (!("toJSON" in n)) {
166
- e[o] = n;
167
- const a = le(n) ? [] : {};
168
- return be(n, (i, s) => {
169
- const u = r(i, o + 1);
170
- !ve(u) && (a[s] = u);
155
+ if (!("toJSON" in r)) {
156
+ e[o] = r;
157
+ const a = ce(r) ? [] : {};
158
+ return Se(r, (i, s) => {
159
+ const u = n(i, o + 1);
160
+ !we(u) && (a[s] = u);
171
161
  }), e[o] = void 0, a;
172
162
  }
173
163
  }
174
- return n;
164
+ return r;
175
165
  };
176
- return r(t, 0);
177
- }, qn = I("AsyncFunction"), Gn = (t) => t && (je(t) || T(t)) && T(t.then) && T(t.catch), f = {
178
- isArray: le,
179
- isArrayBuffer: fr,
180
- isBuffer: yn,
181
- isFormData: On,
182
- isArrayBufferView: hn,
183
- isString: mn,
184
- isNumber: pr,
185
- isBoolean: gn,
186
- isObject: je,
187
- isPlainObject: Ne,
188
- isUndefined: ve,
189
- isDate: vn,
190
- isFile: bn,
191
- isBlob: Sn,
192
- isRegExp: Un,
193
- isFunction: T,
194
- isStream: En,
195
- isURLSearchParams: An,
196
- isTypedArray: $n,
197
- isFileList: wn,
198
- forEach: be,
199
- merge: rt,
200
- extend: Pn,
201
- trim: Rn,
202
- stripBOM: xn,
203
- inherits: Tn,
204
- toFlatObject: Cn,
205
- kindOf: ke,
166
+ return n(t, 0);
167
+ }, Lo = I("AsyncFunction"), Uo = (t) => t && (Je(t) || F(t)) && F(t.then) && F(t.catch), Vr = ((t, e) => t ? setImmediate : e ? ((n, r) => (Q.addEventListener("message", ({ source: o, data: a }) => {
168
+ o === Q && a === n && r.length && r.shift()();
169
+ }, !1), (o) => {
170
+ r.push(o), Q.postMessage(n, "*");
171
+ }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
172
+ typeof setImmediate == "function",
173
+ F(Q.postMessage)
174
+ ), Mo = typeof queueMicrotask < "u" ? queueMicrotask.bind(Q) : typeof process < "u" && process.nextTick || Vr, ko = (t) => t != null && F(t[ze]), f = {
175
+ isArray: ce,
176
+ isArrayBuffer: Hr,
177
+ isBuffer: ro,
178
+ isFormData: fo,
179
+ isArrayBufferView: no,
180
+ isString: oo,
181
+ isNumber: zr,
182
+ isBoolean: ao,
183
+ isObject: Je,
184
+ isPlainObject: Fe,
185
+ isReadableStream: yo,
186
+ isRequest: ho,
187
+ isResponse: mo,
188
+ isHeaders: go,
189
+ isUndefined: we,
190
+ isDate: io,
191
+ isFile: so,
192
+ isBlob: lo,
193
+ isRegExp: _o,
194
+ isFunction: F,
195
+ isStream: uo,
196
+ isURLSearchParams: po,
197
+ isTypedArray: Ro,
198
+ isFileList: co,
199
+ forEach: Se,
200
+ merge: Tt,
201
+ extend: wo,
202
+ trim: vo,
203
+ stripBOM: bo,
204
+ inherits: So,
205
+ toFlatObject: Eo,
206
+ kindOf: We,
206
207
  kindOfTest: I,
207
- endsWith: Fn,
208
- toArray: Nn,
209
- forEachEntry: _n,
210
- matchAll: In,
211
- isHTMLForm: Dn,
212
- hasOwnProperty: Ct,
213
- hasOwnProp: Ct,
208
+ endsWith: Ao,
209
+ toArray: Oo,
210
+ forEachEntry: Po,
211
+ matchAll: To,
212
+ isHTMLForm: xo,
213
+ hasOwnProperty: Zt,
214
+ hasOwnProp: Zt,
214
215
  // an alias to avoid ESLint no-prototype-builtins detection
215
- reduceDescriptors: mr,
216
- freezeMethods: Ln,
217
- toObjectSet: kn,
218
- toCamelCase: Bn,
219
- noop: Mn,
220
- toFiniteNumber: jn,
221
- findKey: dr,
222
- global: yr,
223
- isContextDefined: hr,
224
- ALPHABET: gr,
225
- generateString: zn,
226
- isSpecCompliantForm: Hn,
227
- toJSONObject: Wn,
228
- isAsyncFn: qn,
229
- isThenable: Gn
216
+ reduceDescriptors: Jr,
217
+ freezeMethods: No,
218
+ toObjectSet: Fo,
219
+ toCamelCase: Co,
220
+ noop: $o,
221
+ toFiniteNumber: Do,
222
+ findKey: Wr,
223
+ global: Q,
224
+ isContextDefined: Gr,
225
+ isSpecCompliantForm: Io,
226
+ toJSONObject: Bo,
227
+ isAsyncFn: Lo,
228
+ isThenable: Uo,
229
+ setImmediate: Vr,
230
+ asap: Mo,
231
+ isIterable: ko
230
232
  };
231
- function b(t, e, r, n, o) {
232
- Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), r && (this.config = r), n && (this.request = n), o && (this.response = o);
233
+ function w(t, e, n, r, o) {
234
+ Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), n && (this.config = n), r && (this.request = r), o && (this.response = o, this.status = o.status ? o.status : null);
233
235
  }
234
- f.inherits(b, Error, {
236
+ f.inherits(w, Error, {
235
237
  toJSON: function() {
236
238
  return {
237
239
  // Standard
@@ -248,11 +250,11 @@ f.inherits(b, Error, {
248
250
  // Axios
249
251
  config: f.toJSONObject(this.config),
250
252
  code: this.code,
251
- status: this.response && this.response.status ? this.response.status : null
253
+ status: this.status
252
254
  };
253
255
  }
254
256
  });
255
- const vr = b.prototype, br = {};
257
+ const Kr = w.prototype, Qr = {};
256
258
  [
257
259
  "ERR_BAD_OPTION_VALUE",
258
260
  "ERR_BAD_OPTION",
@@ -268,96 +270,98 @@ const vr = b.prototype, br = {};
268
270
  "ERR_INVALID_URL"
269
271
  // eslint-disable-next-line func-names
270
272
  ].forEach((t) => {
271
- br[t] = { value: t };
273
+ Qr[t] = { value: t };
272
274
  });
273
- Object.defineProperties(b, br);
274
- Object.defineProperty(vr, "isAxiosError", { value: !0 });
275
- b.from = (t, e, r, n, o, a) => {
276
- const i = Object.create(vr);
275
+ Object.defineProperties(w, Qr);
276
+ Object.defineProperty(Kr, "isAxiosError", { value: !0 });
277
+ w.from = (t, e, n, r, o, a) => {
278
+ const i = Object.create(Kr);
277
279
  return f.toFlatObject(t, i, function(u) {
278
280
  return u !== Error.prototype;
279
- }, (s) => s !== "isAxiosError"), b.call(i, t.message, e, r, n, o), i.cause = t, i.name = t.name, a && Object.assign(i, a), i;
281
+ }, (s) => s !== "isAxiosError"), w.call(i, t.message, e, n, r, o), i.cause = t, i.name = t.name, a && Object.assign(i, a), i;
280
282
  };
281
- const Jn = null;
282
- function nt(t) {
283
+ const qo = null;
284
+ function xt(t) {
283
285
  return f.isPlainObject(t) || f.isArray(t);
284
286
  }
285
- function Sr(t) {
287
+ function Xr(t) {
286
288
  return f.endsWith(t, "[]") ? t.slice(0, -2) : t;
287
289
  }
288
- function Nt(t, e, r) {
290
+ function Yt(t, e, n) {
289
291
  return t ? t.concat(e).map(function(o, a) {
290
- return o = Sr(o), !r && a ? "[" + o + "]" : o;
291
- }).join(r ? "." : "") : e;
292
+ return o = Xr(o), !n && a ? "[" + o + "]" : o;
293
+ }).join(n ? "." : "") : e;
292
294
  }
293
- function Vn(t) {
294
- return f.isArray(t) && !t.some(nt);
295
+ function jo(t) {
296
+ return f.isArray(t) && !t.some(xt);
295
297
  }
296
- const Kn = f.toFlatObject(f, {}, null, function(e) {
298
+ const Ho = f.toFlatObject(f, {}, null, function(e) {
297
299
  return /^is[A-Z]/.test(e);
298
300
  });
299
- function ze(t, e, r) {
301
+ function Ve(t, e, n) {
300
302
  if (!f.isObject(t))
301
303
  throw new TypeError("target must be an object");
302
- e = e || new FormData(), r = f.toFlatObject(r, {
304
+ e = e || new FormData(), n = f.toFlatObject(n, {
303
305
  metaTokens: !0,
304
306
  dots: !1,
305
307
  indexes: !1
306
- }, !1, function(y, S) {
307
- return !f.isUndefined(S[y]);
308
+ }, !1, function(m, h) {
309
+ return !f.isUndefined(h[m]);
308
310
  });
309
- const n = r.metaTokens, o = r.visitor || p, a = r.dots, i = r.indexes, u = (r.Blob || typeof Blob < "u" && Blob) && f.isSpecCompliantForm(e);
311
+ const r = n.metaTokens, o = n.visitor || c, a = n.dots, i = n.indexes, u = (n.Blob || typeof Blob < "u" && Blob) && f.isSpecCompliantForm(e);
310
312
  if (!f.isFunction(o))
311
313
  throw new TypeError("visitor must be a function");
312
- function l(d) {
313
- if (d === null) return "";
314
- if (f.isDate(d))
315
- return d.toISOString();
316
- if (!u && f.isBlob(d))
317
- throw new b("Blob is not supported. Use a Buffer instead.");
318
- return f.isArrayBuffer(d) || f.isTypedArray(d) ? u && typeof Blob == "function" ? new Blob([d]) : Buffer.from(d) : d;
319
- }
320
- function p(d, y, S) {
321
- let m = d;
322
- if (d && !S && typeof d == "object") {
323
- if (f.endsWith(y, "{}"))
324
- y = n ? y : y.slice(0, -2), d = JSON.stringify(d);
325
- else if (f.isArray(d) && Vn(d) || (f.isFileList(d) || f.endsWith(y, "[]")) && (m = f.toArray(d)))
326
- return y = Sr(y), m.forEach(function(R, U) {
327
- !(f.isUndefined(R) || R === null) && e.append(
314
+ function l(y) {
315
+ if (y === null) return "";
316
+ if (f.isDate(y))
317
+ return y.toISOString();
318
+ if (f.isBoolean(y))
319
+ return y.toString();
320
+ if (!u && f.isBlob(y))
321
+ throw new w("Blob is not supported. Use a Buffer instead.");
322
+ return f.isArrayBuffer(y) || f.isTypedArray(y) ? u && typeof Blob == "function" ? new Blob([y]) : Buffer.from(y) : y;
323
+ }
324
+ function c(y, m, h) {
325
+ let S = y;
326
+ if (y && !h && typeof y == "object") {
327
+ if (f.endsWith(m, "{}"))
328
+ m = r ? m : m.slice(0, -2), y = JSON.stringify(y);
329
+ else if (f.isArray(y) && jo(y) || (f.isFileList(y) || f.endsWith(m, "[]")) && (S = f.toArray(y)))
330
+ return m = Xr(m), S.forEach(function(v, T) {
331
+ !(f.isUndefined(v) || v === null) && e.append(
328
332
  // eslint-disable-next-line no-nested-ternary
329
- i === !0 ? Nt([y], U, a) : i === null ? y : y + "[]",
330
- l(R)
333
+ i === !0 ? Yt([m], T, a) : i === null ? m : m + "[]",
334
+ l(v)
331
335
  );
332
336
  }), !1;
333
337
  }
334
- return nt(d) ? !0 : (e.append(Nt(S, y, a), l(d)), !1);
338
+ return xt(y) ? !0 : (e.append(Yt(h, m, a), l(y)), !1);
335
339
  }
336
- const c = [], h = Object.assign(Kn, {
337
- defaultVisitor: p,
340
+ const p = [], d = Object.assign(Ho, {
341
+ defaultVisitor: c,
338
342
  convertValue: l,
339
- isVisitable: nt
343
+ isVisitable: xt
340
344
  });
341
- function g(d, y) {
342
- if (!f.isUndefined(d)) {
343
- if (c.indexOf(d) !== -1)
344
- throw Error("Circular reference detected in " + y.join("."));
345
- c.push(d), f.forEach(d, function(m, E) {
346
- (!(f.isUndefined(m) || m === null) && o.call(
345
+ function g(y, m) {
346
+ if (!f.isUndefined(y)) {
347
+ if (p.indexOf(y) !== -1)
348
+ throw Error("Circular reference detected in " + m.join("."));
349
+ p.push(y), f.forEach(y, function(S, E) {
350
+ (!(f.isUndefined(S) || S === null) && o.call(
347
351
  e,
348
- m,
352
+ S,
349
353
  f.isString(E) ? E.trim() : E,
350
- y,
351
- h
352
- )) === !0 && g(m, y ? y.concat(E) : [E]);
353
- }), c.pop();
354
+ m,
355
+ d
356
+ )) === !0 && g(S, m ? m.concat(E) : [E]);
357
+ }), p.pop();
354
358
  }
355
359
  }
356
360
  if (!f.isObject(t))
357
361
  throw new TypeError("data must be an object");
358
362
  return g(t), e;
359
363
  }
360
- function $t(t) {
364
+ function er(t) {
361
365
  const e = {
362
366
  "!": "%21",
363
367
  "'": "%27",
@@ -367,40 +371,44 @@ function $t(t) {
367
371
  "%20": "+",
368
372
  "%00": "\0"
369
373
  };
370
- return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g, function(n) {
371
- return e[n];
374
+ return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g, function(r) {
375
+ return e[r];
372
376
  });
373
377
  }
374
- function vt(t, e) {
375
- this._pairs = [], t && ze(t, this, e);
378
+ function jt(t, e) {
379
+ this._pairs = [], t && Ve(t, this, e);
376
380
  }
377
- const wr = vt.prototype;
378
- wr.append = function(e, r) {
379
- this._pairs.push([e, r]);
381
+ const Zr = jt.prototype;
382
+ Zr.append = function(e, n) {
383
+ this._pairs.push([e, n]);
380
384
  };
381
- wr.toString = function(e) {
382
- const r = e ? function(n) {
383
- return e.call(this, n, $t);
384
- } : $t;
385
+ Zr.toString = function(e) {
386
+ const n = e ? function(r) {
387
+ return e.call(this, r, er);
388
+ } : er;
385
389
  return this._pairs.map(function(o) {
386
- return r(o[0]) + "=" + r(o[1]);
390
+ return n(o[0]) + "=" + n(o[1]);
387
391
  }, "").join("&");
388
392
  };
389
- function Qn(t) {
393
+ function zo(t) {
390
394
  return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
391
395
  }
392
- function Er(t, e, r) {
396
+ function Yr(t, e, n) {
393
397
  if (!e)
394
398
  return t;
395
- const n = r && r.encode || Qn, o = r && r.serialize;
399
+ const r = n && n.encode || zo;
400
+ f.isFunction(n) && (n = {
401
+ serialize: n
402
+ });
403
+ const o = n && n.serialize;
396
404
  let a;
397
- if (o ? a = o(e, r) : a = f.isURLSearchParams(e) ? e.toString() : new vt(e, r).toString(n), a) {
405
+ if (o ? a = o(e, n) : a = f.isURLSearchParams(e) ? e.toString() : new jt(e, n).toString(r), a) {
398
406
  const i = t.indexOf("#");
399
407
  i !== -1 && (t = t.slice(0, i)), t += (t.indexOf("?") === -1 ? "?" : "&") + a;
400
408
  }
401
409
  return t;
402
410
  }
403
- class _t {
411
+ class tr {
404
412
  constructor() {
405
413
  this.handlers = [];
406
414
  }
@@ -412,12 +420,12 @@ class _t {
412
420
  *
413
421
  * @return {Number} An ID used to remove interceptor later
414
422
  */
415
- use(e, r, n) {
423
+ use(e, n, r) {
416
424
  return this.handlers.push({
417
425
  fulfilled: e,
418
- rejected: r,
419
- synchronous: n ? n.synchronous : !1,
420
- runWhen: n ? n.runWhen : null
426
+ rejected: n,
427
+ synchronous: r ? r.synchronous : !1,
428
+ runWhen: r ? r.runWhen : null
421
429
  }), this.handlers.length - 1;
422
430
  }
423
431
  /**
@@ -449,114 +457,118 @@ class _t {
449
457
  * @returns {void}
450
458
  */
451
459
  forEach(e) {
452
- f.forEach(this.handlers, function(n) {
453
- n !== null && e(n);
460
+ f.forEach(this.handlers, function(r) {
461
+ r !== null && e(r);
454
462
  });
455
463
  }
456
464
  }
457
- const Or = {
465
+ const en = {
458
466
  silentJSONParsing: !0,
459
467
  forcedJSONParsing: !0,
460
468
  clarifyTimeoutError: !1
461
- }, Xn = typeof URLSearchParams < "u" ? URLSearchParams : vt, Yn = typeof FormData < "u" ? FormData : null, Zn = typeof Blob < "u" ? Blob : null, eo = {
469
+ }, Wo = typeof URLSearchParams < "u" ? URLSearchParams : jt, Go = typeof FormData < "u" ? FormData : null, Jo = typeof Blob < "u" ? Blob : null, Vo = {
462
470
  isBrowser: !0,
463
471
  classes: {
464
- URLSearchParams: Xn,
465
- FormData: Yn,
466
- Blob: Zn
472
+ URLSearchParams: Wo,
473
+ FormData: Go,
474
+ Blob: Jo
467
475
  },
468
476
  protocols: ["http", "https", "file", "blob", "url", "data"]
469
- }, Ar = typeof window < "u" && typeof document < "u", to = ((t) => Ar && ["ReactNative", "NativeScript", "NS"].indexOf(t) < 0)(typeof navigator < "u" && navigator.product), ro = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
470
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
477
+ }, Ht = typeof window < "u" && typeof document < "u", Ct = typeof navigator == "object" && navigator || void 0, Ko = Ht && (!Ct || ["ReactNative", "NativeScript", "NS"].indexOf(Ct.product) < 0), Qo = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
478
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Xo = Ht && window.location.href || "http://localhost", Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
471
479
  __proto__: null,
472
- hasBrowserEnv: Ar,
473
- hasStandardBrowserEnv: to,
474
- hasStandardBrowserWebWorkerEnv: ro
475
- }, Symbol.toStringTag, { value: "Module" })), _ = {
476
- ...no,
477
- ...eo
480
+ hasBrowserEnv: Ht,
481
+ hasStandardBrowserEnv: Ko,
482
+ hasStandardBrowserWebWorkerEnv: Qo,
483
+ navigator: Ct,
484
+ origin: Xo
485
+ }, Symbol.toStringTag, { value: "Module" })), C = {
486
+ ...Zo,
487
+ ...Vo
478
488
  };
479
- function oo(t, e) {
480
- return ze(t, new _.classes.URLSearchParams(), Object.assign({
481
- visitor: function(r, n, o, a) {
482
- return _.isNode && f.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
489
+ function Yo(t, e) {
490
+ return Ve(t, new C.classes.URLSearchParams(), Object.assign({
491
+ visitor: function(n, r, o, a) {
492
+ return C.isNode && f.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
483
493
  }
484
494
  }, e));
485
495
  }
486
- function ao(t) {
496
+ function ea(t) {
487
497
  return f.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
488
498
  }
489
- function io(t) {
490
- const e = {}, r = Object.keys(t);
491
- let n;
492
- const o = r.length;
499
+ function ta(t) {
500
+ const e = {}, n = Object.keys(t);
501
+ let r;
502
+ const o = n.length;
493
503
  let a;
494
- for (n = 0; n < o; n++)
495
- a = r[n], e[a] = t[a];
504
+ for (r = 0; r < o; r++)
505
+ a = n[r], e[a] = t[a];
496
506
  return e;
497
507
  }
498
- function Rr(t) {
499
- function e(r, n, o, a) {
500
- let i = r[a++];
508
+ function tn(t) {
509
+ function e(n, r, o, a) {
510
+ let i = n[a++];
501
511
  if (i === "__proto__") return !0;
502
- const s = Number.isFinite(+i), u = a >= r.length;
503
- return i = !i && f.isArray(o) ? o.length : i, u ? (f.hasOwnProp(o, i) ? o[i] = [o[i], n] : o[i] = n, !s) : ((!o[i] || !f.isObject(o[i])) && (o[i] = []), e(r, n, o[i], a) && f.isArray(o[i]) && (o[i] = io(o[i])), !s);
512
+ const s = Number.isFinite(+i), u = a >= n.length;
513
+ return i = !i && f.isArray(o) ? o.length : i, u ? (f.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !s) : ((!o[i] || !f.isObject(o[i])) && (o[i] = []), e(n, r, o[i], a) && f.isArray(o[i]) && (o[i] = ta(o[i])), !s);
504
514
  }
505
515
  if (f.isFormData(t) && f.isFunction(t.entries)) {
506
- const r = {};
507
- return f.forEachEntry(t, (n, o) => {
508
- e(ao(n), o, r, 0);
509
- }), r;
516
+ const n = {};
517
+ return f.forEachEntry(t, (r, o) => {
518
+ e(ea(r), o, n, 0);
519
+ }), n;
510
520
  }
511
521
  return null;
512
522
  }
513
- function so(t, e, r) {
523
+ function ra(t, e, n) {
514
524
  if (f.isString(t))
515
525
  try {
516
526
  return (e || JSON.parse)(t), f.trim(t);
517
- } catch (n) {
518
- if (n.name !== "SyntaxError")
519
- throw n;
527
+ } catch (r) {
528
+ if (r.name !== "SyntaxError")
529
+ throw r;
520
530
  }
521
- return (r || JSON.stringify)(t);
531
+ return (n || JSON.stringify)(t);
522
532
  }
523
- const Se = {
524
- transitional: Or,
525
- adapter: ["xhr", "http"],
526
- transformRequest: [function(e, r) {
527
- const n = r.getContentType() || "", o = n.indexOf("application/json") > -1, a = f.isObject(e);
533
+ const Ee = {
534
+ transitional: en,
535
+ adapter: ["xhr", "http", "fetch"],
536
+ transformRequest: [function(e, n) {
537
+ const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, a = f.isObject(e);
528
538
  if (a && f.isHTMLForm(e) && (e = new FormData(e)), f.isFormData(e))
529
- return o ? JSON.stringify(Rr(e)) : e;
530
- if (f.isArrayBuffer(e) || f.isBuffer(e) || f.isStream(e) || f.isFile(e) || f.isBlob(e))
539
+ return o ? JSON.stringify(tn(e)) : e;
540
+ if (f.isArrayBuffer(e) || f.isBuffer(e) || f.isStream(e) || f.isFile(e) || f.isBlob(e) || f.isReadableStream(e))
531
541
  return e;
532
542
  if (f.isArrayBufferView(e))
533
543
  return e.buffer;
534
544
  if (f.isURLSearchParams(e))
535
- return r.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
545
+ return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
536
546
  let s;
537
547
  if (a) {
538
- if (n.indexOf("application/x-www-form-urlencoded") > -1)
539
- return oo(e, this.formSerializer).toString();
540
- if ((s = f.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
548
+ if (r.indexOf("application/x-www-form-urlencoded") > -1)
549
+ return Yo(e, this.formSerializer).toString();
550
+ if ((s = f.isFileList(e)) || r.indexOf("multipart/form-data") > -1) {
541
551
  const u = this.env && this.env.FormData;
542
- return ze(
552
+ return Ve(
543
553
  s ? { "files[]": e } : e,
544
554
  u && new u(),
545
555
  this.formSerializer
546
556
  );
547
557
  }
548
558
  }
549
- return a || o ? (r.setContentType("application/json", !1), so(e)) : e;
559
+ return a || o ? (n.setContentType("application/json", !1), ra(e)) : e;
550
560
  }],
551
561
  transformResponse: [function(e) {
552
- const r = this.transitional || Se.transitional, n = r && r.forcedJSONParsing, o = this.responseType === "json";
553
- if (e && f.isString(e) && (n && !this.responseType || o)) {
554
- const i = !(r && r.silentJSONParsing) && o;
562
+ const n = this.transitional || Ee.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
563
+ if (f.isResponse(e) || f.isReadableStream(e))
564
+ return e;
565
+ if (e && f.isString(e) && (r && !this.responseType || o)) {
566
+ const i = !(n && n.silentJSONParsing) && o;
555
567
  try {
556
568
  return JSON.parse(e);
557
569
  } catch (s) {
558
570
  if (i)
559
- throw s.name === "SyntaxError" ? b.from(s, b.ERR_BAD_RESPONSE, this, null, this.response) : s;
571
+ throw s.name === "SyntaxError" ? w.from(s, w.ERR_BAD_RESPONSE, this, null, this.response) : s;
560
572
  }
561
573
  }
562
574
  return e;
@@ -571,8 +583,8 @@ const Se = {
571
583
  maxContentLength: -1,
572
584
  maxBodyLength: -1,
573
585
  env: {
574
- FormData: _.classes.FormData,
575
- Blob: _.classes.Blob
586
+ FormData: C.classes.FormData,
587
+ Blob: C.classes.Blob
576
588
  },
577
589
  validateStatus: function(e) {
578
590
  return e >= 200 && e < 300;
@@ -585,9 +597,9 @@ const Se = {
585
597
  }
586
598
  };
587
599
  f.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
588
- Se.headers[t] = {};
600
+ Ee.headers[t] = {};
589
601
  });
590
- const lo = f.toObjectSet([
602
+ const na = f.toObjectSet([
591
603
  "age",
592
604
  "authorization",
593
605
  "content-length",
@@ -605,204 +617,282 @@ const lo = f.toObjectSet([
605
617
  "referer",
606
618
  "retry-after",
607
619
  "user-agent"
608
- ]), uo = (t) => {
620
+ ]), oa = (t) => {
609
621
  const e = {};
610
- let r, n, o;
622
+ let n, r, o;
611
623
  return t && t.split(`
612
624
  `).forEach(function(i) {
613
- o = i.indexOf(":"), r = i.substring(0, o).trim().toLowerCase(), n = i.substring(o + 1).trim(), !(!r || e[r] && lo[r]) && (r === "set-cookie" ? e[r] ? e[r].push(n) : e[r] = [n] : e[r] = e[r] ? e[r] + ", " + n : n);
625
+ o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || e[n] && na[n]) && (n === "set-cookie" ? e[n] ? e[n].push(r) : e[n] = [r] : e[n] = e[n] ? e[n] + ", " + r : r);
614
626
  }), e;
615
- }, It = Symbol("internals");
616
- function pe(t) {
627
+ }, rr = Symbol("internals");
628
+ function de(t) {
617
629
  return t && String(t).trim().toLowerCase();
618
630
  }
619
631
  function $e(t) {
620
632
  return t === !1 || t == null ? t : f.isArray(t) ? t.map($e) : String(t);
621
633
  }
622
- function co(t) {
623
- const e = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
624
- let n;
625
- for (; n = r.exec(t); )
626
- e[n[1]] = n[2];
634
+ function aa(t) {
635
+ const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
636
+ let r;
637
+ for (; r = n.exec(t); )
638
+ e[r[1]] = r[2];
627
639
  return e;
628
640
  }
629
- const fo = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
630
- function We(t, e, r, n, o) {
631
- if (f.isFunction(n))
632
- return n.call(this, e, r);
633
- if (o && (e = r), !!f.isString(e)) {
634
- if (f.isString(n))
635
- return e.indexOf(n) !== -1;
636
- if (f.isRegExp(n))
637
- return n.test(e);
641
+ const ia = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
642
+ function nt(t, e, n, r, o) {
643
+ if (f.isFunction(r))
644
+ return r.call(this, e, n);
645
+ if (o && (e = n), !!f.isString(e)) {
646
+ if (f.isString(r))
647
+ return e.indexOf(r) !== -1;
648
+ if (f.isRegExp(r))
649
+ return r.test(e);
638
650
  }
639
651
  }
640
- function po(t) {
641
- return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, r, n) => r.toUpperCase() + n);
652
+ function sa(t) {
653
+ return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, n, r) => n.toUpperCase() + r);
642
654
  }
643
- function yo(t, e) {
644
- const r = f.toCamelCase(" " + e);
645
- ["get", "set", "has"].forEach((n) => {
646
- Object.defineProperty(t, n + r, {
655
+ function la(t, e) {
656
+ const n = f.toCamelCase(" " + e);
657
+ ["get", "set", "has"].forEach((r) => {
658
+ Object.defineProperty(t, r + n, {
647
659
  value: function(o, a, i) {
648
- return this[n].call(this, e, o, a, i);
660
+ return this[r].call(this, e, o, a, i);
649
661
  },
650
662
  configurable: !0
651
663
  });
652
664
  });
653
665
  }
654
- let C = class {
666
+ let $ = class {
655
667
  constructor(e) {
656
668
  e && this.set(e);
657
669
  }
658
- set(e, r, n) {
670
+ set(e, n, r) {
659
671
  const o = this;
660
672
  function a(s, u, l) {
661
- const p = pe(u);
662
- if (!p)
673
+ const c = de(u);
674
+ if (!c)
663
675
  throw new Error("header name must be a non-empty string");
664
- const c = f.findKey(o, p);
665
- (!c || o[c] === void 0 || l === !0 || l === void 0 && o[c] !== !1) && (o[c || u] = $e(s));
666
- }
667
- const i = (s, u) => f.forEach(s, (l, p) => a(l, p, u));
668
- return f.isPlainObject(e) || e instanceof this.constructor ? i(e, r) : f.isString(e) && (e = e.trim()) && !fo(e) ? i(uo(e), r) : e != null && a(r, e, n), this;
669
- }
670
- get(e, r) {
671
- if (e = pe(e), e) {
672
- const n = f.findKey(this, e);
673
- if (n) {
674
- const o = this[n];
675
- if (!r)
676
+ const p = f.findKey(o, c);
677
+ (!p || o[p] === void 0 || l === !0 || l === void 0 && o[p] !== !1) && (o[p || u] = $e(s));
678
+ }
679
+ const i = (s, u) => f.forEach(s, (l, c) => a(l, c, u));
680
+ if (f.isPlainObject(e) || e instanceof this.constructor)
681
+ i(e, n);
682
+ else if (f.isString(e) && (e = e.trim()) && !ia(e))
683
+ i(oa(e), n);
684
+ else if (f.isObject(e) && f.isIterable(e)) {
685
+ let s = {}, u, l;
686
+ for (const c of e) {
687
+ if (!f.isArray(c))
688
+ throw TypeError("Object iterator must return a key-value pair");
689
+ s[l = c[0]] = (u = s[l]) ? f.isArray(u) ? [...u, c[1]] : [u, c[1]] : c[1];
690
+ }
691
+ i(s, n);
692
+ } else
693
+ e != null && a(n, e, r);
694
+ return this;
695
+ }
696
+ get(e, n) {
697
+ if (e = de(e), e) {
698
+ const r = f.findKey(this, e);
699
+ if (r) {
700
+ const o = this[r];
701
+ if (!n)
676
702
  return o;
677
- if (r === !0)
678
- return co(o);
679
- if (f.isFunction(r))
680
- return r.call(this, o, n);
681
- if (f.isRegExp(r))
682
- return r.exec(o);
703
+ if (n === !0)
704
+ return aa(o);
705
+ if (f.isFunction(n))
706
+ return n.call(this, o, r);
707
+ if (f.isRegExp(n))
708
+ return n.exec(o);
683
709
  throw new TypeError("parser must be boolean|regexp|function");
684
710
  }
685
711
  }
686
712
  }
687
- has(e, r) {
688
- if (e = pe(e), e) {
689
- const n = f.findKey(this, e);
690
- return !!(n && this[n] !== void 0 && (!r || We(this, this[n], n, r)));
713
+ has(e, n) {
714
+ if (e = de(e), e) {
715
+ const r = f.findKey(this, e);
716
+ return !!(r && this[r] !== void 0 && (!n || nt(this, this[r], r, n)));
691
717
  }
692
718
  return !1;
693
719
  }
694
- delete(e, r) {
695
- const n = this;
720
+ delete(e, n) {
721
+ const r = this;
696
722
  let o = !1;
697
723
  function a(i) {
698
- if (i = pe(i), i) {
699
- const s = f.findKey(n, i);
700
- s && (!r || We(n, n[s], s, r)) && (delete n[s], o = !0);
724
+ if (i = de(i), i) {
725
+ const s = f.findKey(r, i);
726
+ s && (!n || nt(r, r[s], s, n)) && (delete r[s], o = !0);
701
727
  }
702
728
  }
703
729
  return f.isArray(e) ? e.forEach(a) : a(e), o;
704
730
  }
705
731
  clear(e) {
706
- const r = Object.keys(this);
707
- let n = r.length, o = !1;
708
- for (; n--; ) {
709
- const a = r[n];
710
- (!e || We(this, this[a], a, e, !0)) && (delete this[a], o = !0);
732
+ const n = Object.keys(this);
733
+ let r = n.length, o = !1;
734
+ for (; r--; ) {
735
+ const a = n[r];
736
+ (!e || nt(this, this[a], a, e, !0)) && (delete this[a], o = !0);
711
737
  }
712
738
  return o;
713
739
  }
714
740
  normalize(e) {
715
- const r = this, n = {};
741
+ const n = this, r = {};
716
742
  return f.forEach(this, (o, a) => {
717
- const i = f.findKey(n, a);
743
+ const i = f.findKey(r, a);
718
744
  if (i) {
719
- r[i] = $e(o), delete r[a];
745
+ n[i] = $e(o), delete n[a];
720
746
  return;
721
747
  }
722
- const s = e ? po(a) : String(a).trim();
723
- s !== a && delete r[a], r[s] = $e(o), n[s] = !0;
748
+ const s = e ? sa(a) : String(a).trim();
749
+ s !== a && delete n[a], n[s] = $e(o), r[s] = !0;
724
750
  }), this;
725
751
  }
726
752
  concat(...e) {
727
753
  return this.constructor.concat(this, ...e);
728
754
  }
729
755
  toJSON(e) {
730
- const r = /* @__PURE__ */ Object.create(null);
731
- return f.forEach(this, (n, o) => {
732
- n != null && n !== !1 && (r[o] = e && f.isArray(n) ? n.join(", ") : n);
733
- }), r;
756
+ const n = /* @__PURE__ */ Object.create(null);
757
+ return f.forEach(this, (r, o) => {
758
+ r != null && r !== !1 && (n[o] = e && f.isArray(r) ? r.join(", ") : r);
759
+ }), n;
734
760
  }
735
761
  [Symbol.iterator]() {
736
762
  return Object.entries(this.toJSON())[Symbol.iterator]();
737
763
  }
738
764
  toString() {
739
- return Object.entries(this.toJSON()).map(([e, r]) => e + ": " + r).join(`
765
+ return Object.entries(this.toJSON()).map(([e, n]) => e + ": " + n).join(`
740
766
  `);
741
767
  }
768
+ getSetCookie() {
769
+ return this.get("set-cookie") || [];
770
+ }
742
771
  get [Symbol.toStringTag]() {
743
772
  return "AxiosHeaders";
744
773
  }
745
774
  static from(e) {
746
775
  return e instanceof this ? e : new this(e);
747
776
  }
748
- static concat(e, ...r) {
749
- const n = new this(e);
750
- return r.forEach((o) => n.set(o)), n;
777
+ static concat(e, ...n) {
778
+ const r = new this(e);
779
+ return n.forEach((o) => r.set(o)), r;
751
780
  }
752
781
  static accessor(e) {
753
- const n = (this[It] = this[It] = {
782
+ const r = (this[rr] = this[rr] = {
754
783
  accessors: {}
755
784
  }).accessors, o = this.prototype;
756
785
  function a(i) {
757
- const s = pe(i);
758
- n[s] || (yo(o, i), n[s] = !0);
786
+ const s = de(i);
787
+ r[s] || (la(o, i), r[s] = !0);
759
788
  }
760
789
  return f.isArray(e) ? e.forEach(a) : a(e), this;
761
790
  }
762
791
  };
763
- C.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
764
- f.reduceDescriptors(C.prototype, ({ value: t }, e) => {
765
- let r = e[0].toUpperCase() + e.slice(1);
792
+ $.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
793
+ f.reduceDescriptors($.prototype, ({ value: t }, e) => {
794
+ let n = e[0].toUpperCase() + e.slice(1);
766
795
  return {
767
796
  get: () => t,
768
- set(n) {
769
- this[r] = n;
797
+ set(r) {
798
+ this[n] = r;
770
799
  }
771
800
  };
772
801
  });
773
- f.freezeMethods(C);
774
- function qe(t, e) {
775
- const r = this || Se, n = e || r, o = C.from(n.headers);
776
- let a = n.data;
802
+ f.freezeMethods($);
803
+ function ot(t, e) {
804
+ const n = this || Ee, r = e || n, o = $.from(r.headers);
805
+ let a = r.data;
777
806
  return f.forEach(t, function(s) {
778
- a = s.call(r, a, o.normalize(), e ? e.status : void 0);
807
+ a = s.call(n, a, o.normalize(), e ? e.status : void 0);
779
808
  }), o.normalize(), a;
780
809
  }
781
- function Pr(t) {
810
+ function rn(t) {
782
811
  return !!(t && t.__CANCEL__);
783
812
  }
784
- function we(t, e, r) {
785
- b.call(this, t ?? "canceled", b.ERR_CANCELED, e, r), this.name = "CanceledError";
813
+ function ue(t, e, n) {
814
+ w.call(this, t ?? "canceled", w.ERR_CANCELED, e, n), this.name = "CanceledError";
786
815
  }
787
- f.inherits(we, b, {
816
+ f.inherits(ue, w, {
788
817
  __CANCEL__: !0
789
818
  });
790
- function ho(t, e, r) {
791
- const n = r.config.validateStatus;
792
- !r.status || !n || n(r.status) ? t(r) : e(new b(
793
- "Request failed with status code " + r.status,
794
- [b.ERR_BAD_REQUEST, b.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
795
- r.config,
796
- r.request,
797
- r
819
+ function nn(t, e, n) {
820
+ const r = n.config.validateStatus;
821
+ !n.status || !r || r(n.status) ? t(n) : e(new w(
822
+ "Request failed with status code " + n.status,
823
+ [w.ERR_BAD_REQUEST, w.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
824
+ n.config,
825
+ n.request,
826
+ n
798
827
  ));
799
828
  }
800
- const mo = _.hasStandardBrowserEnv ? (
829
+ function ca(t) {
830
+ const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
831
+ return e && e[1] || "";
832
+ }
833
+ function ua(t, e) {
834
+ t = t || 10;
835
+ const n = new Array(t), r = new Array(t);
836
+ let o = 0, a = 0, i;
837
+ return e = e !== void 0 ? e : 1e3, function(u) {
838
+ const l = Date.now(), c = r[a];
839
+ i || (i = l), n[o] = u, r[o] = l;
840
+ let p = a, d = 0;
841
+ for (; p !== o; )
842
+ d += n[p++], p = p % t;
843
+ if (o = (o + 1) % t, o === a && (a = (a + 1) % t), l - i < e)
844
+ return;
845
+ const g = c && l - c;
846
+ return g ? Math.round(d * 1e3 / g) : void 0;
847
+ };
848
+ }
849
+ function fa(t, e) {
850
+ let n = 0, r = 1e3 / e, o, a;
851
+ const i = (l, c = Date.now()) => {
852
+ n = c, o = null, a && (clearTimeout(a), a = null), t.apply(null, l);
853
+ };
854
+ return [(...l) => {
855
+ const c = Date.now(), p = c - n;
856
+ p >= r ? i(l, c) : (o = l, a || (a = setTimeout(() => {
857
+ a = null, i(o);
858
+ }, r - p)));
859
+ }, () => o && i(o)];
860
+ }
861
+ const Ue = (t, e, n = 3) => {
862
+ let r = 0;
863
+ const o = ua(50, 250);
864
+ return fa((a) => {
865
+ const i = a.loaded, s = a.lengthComputable ? a.total : void 0, u = i - r, l = o(u), c = i <= s;
866
+ r = i;
867
+ const p = {
868
+ loaded: i,
869
+ total: s,
870
+ progress: s ? i / s : void 0,
871
+ bytes: u,
872
+ rate: l || void 0,
873
+ estimated: l && s && c ? (s - i) / l : void 0,
874
+ event: a,
875
+ lengthComputable: s != null,
876
+ [e ? "download" : "upload"]: !0
877
+ };
878
+ t(p);
879
+ }, n);
880
+ }, nr = (t, e) => {
881
+ const n = t != null;
882
+ return [(r) => e[0]({
883
+ lengthComputable: n,
884
+ total: t,
885
+ loaded: r
886
+ }), e[1]];
887
+ }, or = (t) => (...e) => f.asap(() => t(...e)), pa = C.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (n) => (n = new URL(n, C.origin), t.protocol === n.protocol && t.host === n.host && (e || t.port === n.port)))(
888
+ new URL(C.origin),
889
+ C.navigator && /(msie|trident)/i.test(C.navigator.userAgent)
890
+ ) : () => !0, da = C.hasStandardBrowserEnv ? (
801
891
  // Standard browser envs support document.cookie
802
892
  {
803
- write(t, e, r, n, o, a) {
893
+ write(t, e, n, r, o, a) {
804
894
  const i = [t + "=" + encodeURIComponent(e)];
805
- f.isNumber(r) && i.push("expires=" + new Date(r).toGMTString()), f.isString(n) && i.push("path=" + n), f.isString(o) && i.push("domain=" + o), a === !0 && i.push("secure"), document.cookie = i.join("; ");
895
+ f.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), f.isString(r) && i.push("path=" + r), f.isString(o) && i.push("domain=" + o), a === !0 && i.push("secure"), document.cookie = i.join("; ");
806
896
  },
807
897
  read(t) {
808
898
  const e = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)"));
@@ -824,164 +914,373 @@ const mo = _.hasStandardBrowserEnv ? (
824
914
  }
825
915
  }
826
916
  );
827
- function go(t) {
917
+ function ya(t) {
828
918
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
829
919
  }
830
- function vo(t, e) {
920
+ function ha(t, e) {
831
921
  return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
832
922
  }
833
- function xr(t, e) {
834
- return t && !go(e) ? vo(t, e) : e;
835
- }
836
- const bo = _.hasStandardBrowserEnv ? (
837
- // Standard browser envs have full support of the APIs needed to test
838
- // whether the request URL is of the same origin as current location.
839
- function() {
840
- const e = /(msie|trident)/i.test(navigator.userAgent), r = document.createElement("a");
841
- let n;
842
- function o(a) {
843
- let i = a;
844
- return e && (r.setAttribute("href", i), i = r.href), r.setAttribute("href", i), {
845
- href: r.href,
846
- protocol: r.protocol ? r.protocol.replace(/:$/, "") : "",
847
- host: r.host,
848
- search: r.search ? r.search.replace(/^\?/, "") : "",
849
- hash: r.hash ? r.hash.replace(/^#/, "") : "",
850
- hostname: r.hostname,
851
- port: r.port,
852
- pathname: r.pathname.charAt(0) === "/" ? r.pathname : "/" + r.pathname
853
- };
854
- }
855
- return n = o(window.location.href), function(i) {
856
- const s = f.isString(i) ? o(i) : i;
857
- return s.protocol === n.protocol && s.host === n.host;
858
- };
859
- }()
860
- ) : (
861
- // Non standard browser envs (web workers, react-native) lack needed support.
862
- /* @__PURE__ */ function() {
863
- return function() {
864
- return !0;
865
- };
866
- }()
867
- );
868
- function So(t) {
869
- const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
870
- return e && e[1] || "";
871
- }
872
- function wo(t, e) {
873
- t = t || 10;
874
- const r = new Array(t), n = new Array(t);
875
- let o = 0, a = 0, i;
876
- return e = e !== void 0 ? e : 1e3, function(u) {
877
- const l = Date.now(), p = n[a];
878
- i || (i = l), r[o] = u, n[o] = l;
879
- let c = a, h = 0;
880
- for (; c !== o; )
881
- h += r[c++], c = c % t;
882
- if (o = (o + 1) % t, o === a && (a = (a + 1) % t), l - i < e)
883
- return;
884
- const g = p && l - p;
885
- return g ? Math.round(h * 1e3 / g) : void 0;
886
- };
923
+ function on(t, e, n) {
924
+ let r = !ya(e);
925
+ return t && (r || n == !1) ? ha(t, e) : e;
887
926
  }
888
- function Dt(t, e) {
889
- let r = 0;
890
- const n = wo(50, 250);
891
- return (o) => {
892
- const a = o.loaded, i = o.lengthComputable ? o.total : void 0, s = a - r, u = n(s), l = a <= i;
893
- r = a;
894
- const p = {
895
- loaded: a,
896
- total: i,
897
- progress: i ? a / i : void 0,
898
- bytes: s,
899
- rate: u || void 0,
900
- estimated: u && i && l ? (i - a) / u : void 0,
901
- event: o
902
- };
903
- p[e ? "download" : "upload"] = !0, t(p);
927
+ const ar = (t) => t instanceof $ ? { ...t } : t;
928
+ function Y(t, e) {
929
+ e = e || {};
930
+ const n = {};
931
+ function r(l, c, p, d) {
932
+ return f.isPlainObject(l) && f.isPlainObject(c) ? f.merge.call({ caseless: d }, l, c) : f.isPlainObject(c) ? f.merge({}, c) : f.isArray(c) ? c.slice() : c;
933
+ }
934
+ function o(l, c, p, d) {
935
+ if (f.isUndefined(c)) {
936
+ if (!f.isUndefined(l))
937
+ return r(void 0, l, p, d);
938
+ } else return r(l, c, p, d);
939
+ }
940
+ function a(l, c) {
941
+ if (!f.isUndefined(c))
942
+ return r(void 0, c);
943
+ }
944
+ function i(l, c) {
945
+ if (f.isUndefined(c)) {
946
+ if (!f.isUndefined(l))
947
+ return r(void 0, l);
948
+ } else return r(void 0, c);
949
+ }
950
+ function s(l, c, p) {
951
+ if (p in e)
952
+ return r(l, c);
953
+ if (p in t)
954
+ return r(void 0, l);
955
+ }
956
+ const u = {
957
+ url: a,
958
+ method: a,
959
+ data: a,
960
+ baseURL: i,
961
+ transformRequest: i,
962
+ transformResponse: i,
963
+ paramsSerializer: i,
964
+ timeout: i,
965
+ timeoutMessage: i,
966
+ withCredentials: i,
967
+ withXSRFToken: i,
968
+ adapter: i,
969
+ responseType: i,
970
+ xsrfCookieName: i,
971
+ xsrfHeaderName: i,
972
+ onUploadProgress: i,
973
+ onDownloadProgress: i,
974
+ decompress: i,
975
+ maxContentLength: i,
976
+ maxBodyLength: i,
977
+ beforeRedirect: i,
978
+ transport: i,
979
+ httpAgent: i,
980
+ httpsAgent: i,
981
+ cancelToken: i,
982
+ socketPath: i,
983
+ responseEncoding: i,
984
+ validateStatus: s,
985
+ headers: (l, c, p) => o(ar(l), ar(c), p, !0)
904
986
  };
905
- }
906
- const Eo = typeof XMLHttpRequest < "u", Oo = Eo && function(t) {
907
- return new Promise(function(r, n) {
908
- let o = t.data;
909
- const a = C.from(t.headers).normalize();
910
- let { responseType: i, withXSRFToken: s } = t, u;
911
- function l() {
912
- t.cancelToken && t.cancelToken.unsubscribe(u), t.signal && t.signal.removeEventListener("abort", u);
913
- }
914
- let p;
915
- if (f.isFormData(o)) {
916
- if (_.hasStandardBrowserEnv || _.hasStandardBrowserWebWorkerEnv)
917
- a.setContentType(!1);
918
- else if ((p = a.getContentType()) !== !1) {
919
- const [y, ...S] = p ? p.split(";").map((m) => m.trim()).filter(Boolean) : [];
920
- a.setContentType([y || "multipart/form-data", ...S].join("; "));
921
- }
922
- }
923
- let c = new XMLHttpRequest();
924
- if (t.auth) {
925
- const y = t.auth.username || "", S = t.auth.password ? unescape(encodeURIComponent(t.auth.password)) : "";
926
- a.set("Authorization", "Basic " + btoa(y + ":" + S));
987
+ return f.forEach(Object.keys(Object.assign({}, t, e)), function(c) {
988
+ const p = u[c] || o, d = p(t[c], e[c], c);
989
+ f.isUndefined(d) && p !== s || (n[c] = d);
990
+ }), n;
991
+ }
992
+ const an = (t) => {
993
+ const e = Y({}, t);
994
+ let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: a, headers: i, auth: s } = e;
995
+ e.headers = i = $.from(i), e.url = Yr(on(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), s && i.set(
996
+ "Authorization",
997
+ "Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : ""))
998
+ );
999
+ let u;
1000
+ if (f.isFormData(n)) {
1001
+ if (C.hasStandardBrowserEnv || C.hasStandardBrowserWebWorkerEnv)
1002
+ i.setContentType(void 0);
1003
+ else if ((u = i.getContentType()) !== !1) {
1004
+ const [l, ...c] = u ? u.split(";").map((p) => p.trim()).filter(Boolean) : [];
1005
+ i.setContentType([l || "multipart/form-data", ...c].join("; "));
927
1006
  }
928
- const h = xr(t.baseURL, t.url);
929
- c.open(t.method.toUpperCase(), Er(h, t.params, t.paramsSerializer), !0), c.timeout = t.timeout;
930
- function g() {
931
- if (!c)
1007
+ }
1008
+ if (C.hasStandardBrowserEnv && (r && f.isFunction(r) && (r = r(e)), r || r !== !1 && pa(e.url))) {
1009
+ const l = o && a && da.read(a);
1010
+ l && i.set(o, l);
1011
+ }
1012
+ return e;
1013
+ }, ma = typeof XMLHttpRequest < "u", ga = ma && function(t) {
1014
+ return new Promise(function(n, r) {
1015
+ const o = an(t);
1016
+ let a = o.data;
1017
+ const i = $.from(o.headers).normalize();
1018
+ let { responseType: s, onUploadProgress: u, onDownloadProgress: l } = o, c, p, d, g, y;
1019
+ function m() {
1020
+ g && g(), y && y(), o.cancelToken && o.cancelToken.unsubscribe(c), o.signal && o.signal.removeEventListener("abort", c);
1021
+ }
1022
+ let h = new XMLHttpRequest();
1023
+ h.open(o.method.toUpperCase(), o.url, !0), h.timeout = o.timeout;
1024
+ function S() {
1025
+ if (!h)
932
1026
  return;
933
- const y = C.from(
934
- "getAllResponseHeaders" in c && c.getAllResponseHeaders()
935
- ), m = {
936
- data: !i || i === "text" || i === "json" ? c.responseText : c.response,
937
- status: c.status,
938
- statusText: c.statusText,
939
- headers: y,
1027
+ const v = $.from(
1028
+ "getAllResponseHeaders" in h && h.getAllResponseHeaders()
1029
+ ), A = {
1030
+ data: !s || s === "text" || s === "json" ? h.responseText : h.response,
1031
+ status: h.status,
1032
+ statusText: h.statusText,
1033
+ headers: v,
940
1034
  config: t,
941
- request: c
1035
+ request: h
942
1036
  };
943
- ho(function(R) {
944
- r(R), l();
945
- }, function(R) {
946
- n(R), l();
947
- }, m), c = null;
948
- }
949
- if ("onloadend" in c ? c.onloadend = g : c.onreadystatechange = function() {
950
- !c || c.readyState !== 4 || c.status === 0 && !(c.responseURL && c.responseURL.indexOf("file:") === 0) || setTimeout(g);
951
- }, c.onabort = function() {
952
- c && (n(new b("Request aborted", b.ECONNABORTED, t, c)), c = null);
953
- }, c.onerror = function() {
954
- n(new b("Network Error", b.ERR_NETWORK, t, c)), c = null;
955
- }, c.ontimeout = function() {
956
- let S = t.timeout ? "timeout of " + t.timeout + "ms exceeded" : "timeout exceeded";
957
- const m = t.transitional || Or;
958
- t.timeoutErrorMessage && (S = t.timeoutErrorMessage), n(new b(
959
- S,
960
- m.clarifyTimeoutError ? b.ETIMEDOUT : b.ECONNABORTED,
1037
+ nn(function(N) {
1038
+ n(N), m();
1039
+ }, function(N) {
1040
+ r(N), m();
1041
+ }, A), h = null;
1042
+ }
1043
+ "onloadend" in h ? h.onloadend = S : h.onreadystatechange = function() {
1044
+ !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(S);
1045
+ }, h.onabort = function() {
1046
+ h && (r(new w("Request aborted", w.ECONNABORTED, t, h)), h = null);
1047
+ }, h.onerror = function() {
1048
+ r(new w("Network Error", w.ERR_NETWORK, t, h)), h = null;
1049
+ }, h.ontimeout = function() {
1050
+ let T = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
1051
+ const A = o.transitional || en;
1052
+ o.timeoutErrorMessage && (T = o.timeoutErrorMessage), r(new w(
1053
+ T,
1054
+ A.clarifyTimeoutError ? w.ETIMEDOUT : w.ECONNABORTED,
961
1055
  t,
962
- c
963
- )), c = null;
964
- }, _.hasStandardBrowserEnv && (s && f.isFunction(s) && (s = s(t)), s || s !== !1 && bo(h))) {
965
- const y = t.xsrfHeaderName && t.xsrfCookieName && mo.read(t.xsrfCookieName);
966
- y && a.set(t.xsrfHeaderName, y);
967
- }
968
- o === void 0 && a.setContentType(null), "setRequestHeader" in c && f.forEach(a.toJSON(), function(S, m) {
969
- c.setRequestHeader(m, S);
970
- }), f.isUndefined(t.withCredentials) || (c.withCredentials = !!t.withCredentials), i && i !== "json" && (c.responseType = t.responseType), typeof t.onDownloadProgress == "function" && c.addEventListener("progress", Dt(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && c.upload && c.upload.addEventListener("progress", Dt(t.onUploadProgress)), (t.cancelToken || t.signal) && (u = (y) => {
971
- c && (n(!y || y.type ? new we(null, t, c) : y), c.abort(), c = null);
972
- }, t.cancelToken && t.cancelToken.subscribe(u), t.signal && (t.signal.aborted ? u() : t.signal.addEventListener("abort", u)));
973
- const d = So(h);
974
- if (d && _.protocols.indexOf(d) === -1) {
975
- n(new b("Unsupported protocol " + d + ":", b.ERR_BAD_REQUEST, t));
1056
+ h
1057
+ )), h = null;
1058
+ }, a === void 0 && i.setContentType(null), "setRequestHeader" in h && f.forEach(i.toJSON(), function(T, A) {
1059
+ h.setRequestHeader(A, T);
1060
+ }), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), l && ([d, y] = Ue(l, !0), h.addEventListener("progress", d)), u && h.upload && ([p, g] = Ue(u), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", g)), (o.cancelToken || o.signal) && (c = (v) => {
1061
+ h && (r(!v || v.type ? new ue(null, t, h) : v), h.abort(), h = null);
1062
+ }, o.cancelToken && o.cancelToken.subscribe(c), o.signal && (o.signal.aborted ? c() : o.signal.addEventListener("abort", c)));
1063
+ const E = ca(o.url);
1064
+ if (E && C.protocols.indexOf(E) === -1) {
1065
+ r(new w("Unsupported protocol " + E + ":", w.ERR_BAD_REQUEST, t));
976
1066
  return;
977
1067
  }
978
- c.send(o || null);
1068
+ h.send(a || null);
1069
+ });
1070
+ }, va = (t, e) => {
1071
+ const { length: n } = t = t ? t.filter(Boolean) : [];
1072
+ if (e || n) {
1073
+ let r = new AbortController(), o;
1074
+ const a = function(l) {
1075
+ if (!o) {
1076
+ o = !0, s();
1077
+ const c = l instanceof Error ? l : this.reason;
1078
+ r.abort(c instanceof w ? c : new ue(c instanceof Error ? c.message : c));
1079
+ }
1080
+ };
1081
+ let i = e && setTimeout(() => {
1082
+ i = null, a(new w(`timeout ${e} of ms exceeded`, w.ETIMEDOUT));
1083
+ }, e);
1084
+ const s = () => {
1085
+ t && (i && clearTimeout(i), i = null, t.forEach((l) => {
1086
+ l.unsubscribe ? l.unsubscribe(a) : l.removeEventListener("abort", a);
1087
+ }), t = null);
1088
+ };
1089
+ t.forEach((l) => l.addEventListener("abort", a));
1090
+ const { signal: u } = r;
1091
+ return u.unsubscribe = () => f.asap(s), u;
1092
+ }
1093
+ }, wa = function* (t, e) {
1094
+ let n = t.byteLength;
1095
+ if (n < e) {
1096
+ yield t;
1097
+ return;
1098
+ }
1099
+ let r = 0, o;
1100
+ for (; r < n; )
1101
+ o = r + e, yield t.slice(r, o), r = o;
1102
+ }, ba = async function* (t, e) {
1103
+ for await (const n of Sa(t))
1104
+ yield* wa(n, e);
1105
+ }, Sa = async function* (t) {
1106
+ if (t[Symbol.asyncIterator]) {
1107
+ yield* t;
1108
+ return;
1109
+ }
1110
+ const e = t.getReader();
1111
+ try {
1112
+ for (; ; ) {
1113
+ const { done: n, value: r } = await e.read();
1114
+ if (n)
1115
+ break;
1116
+ yield r;
1117
+ }
1118
+ } finally {
1119
+ await e.cancel();
1120
+ }
1121
+ }, ir = (t, e, n, r) => {
1122
+ const o = ba(t, e);
1123
+ let a = 0, i, s = (u) => {
1124
+ i || (i = !0, r && r(u));
1125
+ };
1126
+ return new ReadableStream({
1127
+ async pull(u) {
1128
+ try {
1129
+ const { done: l, value: c } = await o.next();
1130
+ if (l) {
1131
+ s(), u.close();
1132
+ return;
1133
+ }
1134
+ let p = c.byteLength;
1135
+ if (n) {
1136
+ let d = a += p;
1137
+ n(d);
1138
+ }
1139
+ u.enqueue(new Uint8Array(c));
1140
+ } catch (l) {
1141
+ throw s(l), l;
1142
+ }
1143
+ },
1144
+ cancel(u) {
1145
+ return s(u), o.return();
1146
+ }
1147
+ }, {
1148
+ highWaterMark: 2
1149
+ });
1150
+ }, Ke = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", sn = Ke && typeof ReadableStream == "function", Ea = Ke && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((t) => (e) => t.encode(e))(new TextEncoder()) : async (t) => new Uint8Array(await new Response(t).arrayBuffer())), ln = (t, ...e) => {
1151
+ try {
1152
+ return !!t(...e);
1153
+ } catch {
1154
+ return !1;
1155
+ }
1156
+ }, Aa = sn && ln(() => {
1157
+ let t = !1;
1158
+ const e = new Request(C.origin, {
1159
+ body: new ReadableStream(),
1160
+ method: "POST",
1161
+ get duplex() {
1162
+ return t = !0, "half";
1163
+ }
1164
+ }).headers.has("Content-Type");
1165
+ return t && !e;
1166
+ }), sr = 64 * 1024, _t = sn && ln(() => f.isReadableStream(new Response("").body)), Me = {
1167
+ stream: _t && ((t) => t.body)
1168
+ };
1169
+ Ke && ((t) => {
1170
+ ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => {
1171
+ !Me[e] && (Me[e] = f.isFunction(t[e]) ? (n) => n[e]() : (n, r) => {
1172
+ throw new w(`Response type '${e}' is not supported`, w.ERR_NOT_SUPPORT, r);
1173
+ });
1174
+ });
1175
+ })(new Response());
1176
+ const Oa = async (t) => {
1177
+ if (t == null)
1178
+ return 0;
1179
+ if (f.isBlob(t))
1180
+ return t.size;
1181
+ if (f.isSpecCompliantForm(t))
1182
+ return (await new Request(C.origin, {
1183
+ method: "POST",
1184
+ body: t
1185
+ }).arrayBuffer()).byteLength;
1186
+ if (f.isArrayBufferView(t) || f.isArrayBuffer(t))
1187
+ return t.byteLength;
1188
+ if (f.isURLSearchParams(t) && (t = t + ""), f.isString(t))
1189
+ return (await Ea(t)).byteLength;
1190
+ }, Ra = async (t, e) => {
1191
+ const n = f.toFiniteNumber(t.getContentLength());
1192
+ return n ?? Oa(e);
1193
+ }, Pa = Ke && (async (t) => {
1194
+ let {
1195
+ url: e,
1196
+ method: n,
1197
+ data: r,
1198
+ signal: o,
1199
+ cancelToken: a,
1200
+ timeout: i,
1201
+ onDownloadProgress: s,
1202
+ onUploadProgress: u,
1203
+ responseType: l,
1204
+ headers: c,
1205
+ withCredentials: p = "same-origin",
1206
+ fetchOptions: d
1207
+ } = an(t);
1208
+ l = l ? (l + "").toLowerCase() : "text";
1209
+ let g = va([o, a && a.toAbortSignal()], i), y;
1210
+ const m = g && g.unsubscribe && (() => {
1211
+ g.unsubscribe();
979
1212
  });
980
- }, ot = {
981
- http: Jn,
982
- xhr: Oo
1213
+ let h;
1214
+ try {
1215
+ if (u && Aa && n !== "get" && n !== "head" && (h = await Ra(c, r)) !== 0) {
1216
+ let A = new Request(e, {
1217
+ method: "POST",
1218
+ body: r,
1219
+ duplex: "half"
1220
+ }), _;
1221
+ if (f.isFormData(r) && (_ = A.headers.get("content-type")) && c.setContentType(_), A.body) {
1222
+ const [N, q] = nr(
1223
+ h,
1224
+ Ue(or(u))
1225
+ );
1226
+ r = ir(A.body, sr, N, q);
1227
+ }
1228
+ }
1229
+ f.isString(p) || (p = p ? "include" : "omit");
1230
+ const S = "credentials" in Request.prototype;
1231
+ y = new Request(e, {
1232
+ ...d,
1233
+ signal: g,
1234
+ method: n.toUpperCase(),
1235
+ headers: c.normalize().toJSON(),
1236
+ body: r,
1237
+ duplex: "half",
1238
+ credentials: S ? p : void 0
1239
+ });
1240
+ let E = await fetch(y, d);
1241
+ const v = _t && (l === "stream" || l === "response");
1242
+ if (_t && (s || v && m)) {
1243
+ const A = {};
1244
+ ["status", "statusText", "headers"].forEach((B) => {
1245
+ A[B] = E[B];
1246
+ });
1247
+ const _ = f.toFiniteNumber(E.headers.get("content-length")), [N, q] = s && nr(
1248
+ _,
1249
+ Ue(or(s), !0)
1250
+ ) || [];
1251
+ E = new Response(
1252
+ ir(E.body, sr, N, () => {
1253
+ q && q(), m && m();
1254
+ }),
1255
+ A
1256
+ );
1257
+ }
1258
+ l = l || "text";
1259
+ let T = await Me[f.findKey(Me, l) || "text"](E, t);
1260
+ return !v && m && m(), await new Promise((A, _) => {
1261
+ nn(A, _, {
1262
+ data: T,
1263
+ headers: $.from(E.headers),
1264
+ status: E.status,
1265
+ statusText: E.statusText,
1266
+ config: t,
1267
+ request: y
1268
+ });
1269
+ });
1270
+ } catch (S) {
1271
+ throw m && m(), S && S.name === "TypeError" && /Load failed|fetch/i.test(S.message) ? Object.assign(
1272
+ new w("Network Error", w.ERR_NETWORK, t, y),
1273
+ {
1274
+ cause: S.cause || S
1275
+ }
1276
+ ) : w.from(S, S && S.code, t, y);
1277
+ }
1278
+ }), Nt = {
1279
+ http: qo,
1280
+ xhr: ga,
1281
+ fetch: Pa
983
1282
  };
984
- f.forEach(ot, (t, e) => {
1283
+ f.forEach(Nt, (t, e) => {
985
1284
  if (t) {
986
1285
  try {
987
1286
  Object.defineProperty(t, "name", { value: e });
@@ -990,170 +1289,108 @@ f.forEach(ot, (t, e) => {
990
1289
  Object.defineProperty(t, "adapterName", { value: e });
991
1290
  }
992
1291
  });
993
- const Bt = (t) => `- ${t}`, Ao = (t) => f.isFunction(t) || t === null || t === !1, Tr = {
1292
+ const lr = (t) => `- ${t}`, Ta = (t) => f.isFunction(t) || t === null || t === !1, cn = {
994
1293
  getAdapter: (t) => {
995
1294
  t = f.isArray(t) ? t : [t];
996
1295
  const { length: e } = t;
997
- let r, n;
1296
+ let n, r;
998
1297
  const o = {};
999
1298
  for (let a = 0; a < e; a++) {
1000
- r = t[a];
1299
+ n = t[a];
1001
1300
  let i;
1002
- if (n = r, !Ao(r) && (n = ot[(i = String(r)).toLowerCase()], n === void 0))
1003
- throw new b(`Unknown adapter '${i}'`);
1004
- if (n)
1301
+ if (r = n, !Ta(n) && (r = Nt[(i = String(n)).toLowerCase()], r === void 0))
1302
+ throw new w(`Unknown adapter '${i}'`);
1303
+ if (r)
1005
1304
  break;
1006
- o[i || "#" + a] = n;
1305
+ o[i || "#" + a] = r;
1007
1306
  }
1008
- if (!n) {
1307
+ if (!r) {
1009
1308
  const a = Object.entries(o).map(
1010
1309
  ([s, u]) => `adapter ${s} ` + (u === !1 ? "is not supported by the environment" : "is not available in the build")
1011
1310
  );
1012
1311
  let i = e ? a.length > 1 ? `since :
1013
- ` + a.map(Bt).join(`
1014
- `) : " " + Bt(a[0]) : "as no adapter specified";
1015
- throw new b(
1312
+ ` + a.map(lr).join(`
1313
+ `) : " " + lr(a[0]) : "as no adapter specified";
1314
+ throw new w(
1016
1315
  "There is no suitable adapter to dispatch the request " + i,
1017
1316
  "ERR_NOT_SUPPORT"
1018
1317
  );
1019
1318
  }
1020
- return n;
1319
+ return r;
1021
1320
  },
1022
- adapters: ot
1321
+ adapters: Nt
1023
1322
  };
1024
- function Ge(t) {
1323
+ function at(t) {
1025
1324
  if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
1026
- throw new we(null, t);
1325
+ throw new ue(null, t);
1027
1326
  }
1028
- function Ut(t) {
1029
- return Ge(t), t.headers = C.from(t.headers), t.data = qe.call(
1327
+ function cr(t) {
1328
+ return at(t), t.headers = $.from(t.headers), t.data = ot.call(
1030
1329
  t,
1031
1330
  t.transformRequest
1032
- ), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Tr.getAdapter(t.adapter || Se.adapter)(t).then(function(n) {
1033
- return Ge(t), n.data = qe.call(
1331
+ ), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), cn.getAdapter(t.adapter || Ee.adapter)(t).then(function(r) {
1332
+ return at(t), r.data = ot.call(
1034
1333
  t,
1035
1334
  t.transformResponse,
1036
- n
1037
- ), n.headers = C.from(n.headers), n;
1038
- }, function(n) {
1039
- return Pr(n) || (Ge(t), n && n.response && (n.response.data = qe.call(
1335
+ r
1336
+ ), r.headers = $.from(r.headers), r;
1337
+ }, function(r) {
1338
+ return rn(r) || (at(t), r && r.response && (r.response.data = ot.call(
1040
1339
  t,
1041
1340
  t.transformResponse,
1042
- n.response
1043
- ), n.response.headers = C.from(n.response.headers))), Promise.reject(n);
1341
+ r.response
1342
+ ), r.response.headers = $.from(r.response.headers))), Promise.reject(r);
1044
1343
  });
1045
1344
  }
1046
- const Lt = (t) => t instanceof C ? t.toJSON() : t;
1047
- function oe(t, e) {
1048
- e = e || {};
1049
- const r = {};
1050
- function n(l, p, c) {
1051
- return f.isPlainObject(l) && f.isPlainObject(p) ? f.merge.call({ caseless: c }, l, p) : f.isPlainObject(p) ? f.merge({}, p) : f.isArray(p) ? p.slice() : p;
1052
- }
1053
- function o(l, p, c) {
1054
- if (f.isUndefined(p)) {
1055
- if (!f.isUndefined(l))
1056
- return n(void 0, l, c);
1057
- } else return n(l, p, c);
1058
- }
1059
- function a(l, p) {
1060
- if (!f.isUndefined(p))
1061
- return n(void 0, p);
1062
- }
1063
- function i(l, p) {
1064
- if (f.isUndefined(p)) {
1065
- if (!f.isUndefined(l))
1066
- return n(void 0, l);
1067
- } else return n(void 0, p);
1068
- }
1069
- function s(l, p, c) {
1070
- if (c in e)
1071
- return n(l, p);
1072
- if (c in t)
1073
- return n(void 0, l);
1074
- }
1075
- const u = {
1076
- url: a,
1077
- method: a,
1078
- data: a,
1079
- baseURL: i,
1080
- transformRequest: i,
1081
- transformResponse: i,
1082
- paramsSerializer: i,
1083
- timeout: i,
1084
- timeoutMessage: i,
1085
- withCredentials: i,
1086
- withXSRFToken: i,
1087
- adapter: i,
1088
- responseType: i,
1089
- xsrfCookieName: i,
1090
- xsrfHeaderName: i,
1091
- onUploadProgress: i,
1092
- onDownloadProgress: i,
1093
- decompress: i,
1094
- maxContentLength: i,
1095
- maxBodyLength: i,
1096
- beforeRedirect: i,
1097
- transport: i,
1098
- httpAgent: i,
1099
- httpsAgent: i,
1100
- cancelToken: i,
1101
- socketPath: i,
1102
- responseEncoding: i,
1103
- validateStatus: s,
1104
- headers: (l, p) => o(Lt(l), Lt(p), !0)
1105
- };
1106
- return f.forEach(Object.keys(Object.assign({}, t, e)), function(p) {
1107
- const c = u[p] || o, h = c(t[p], e[p], p);
1108
- f.isUndefined(h) && c !== s || (r[p] = h);
1109
- }), r;
1110
- }
1111
- const Cr = "1.6.7", bt = {};
1345
+ const un = "1.10.0", Qe = {};
1112
1346
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
1113
- bt[t] = function(n) {
1114
- return typeof n === t || "a" + (e < 1 ? "n " : " ") + t;
1347
+ Qe[t] = function(r) {
1348
+ return typeof r === t || "a" + (e < 1 ? "n " : " ") + t;
1115
1349
  };
1116
1350
  });
1117
- const kt = {};
1118
- bt.transitional = function(e, r, n) {
1351
+ const ur = {};
1352
+ Qe.transitional = function(e, n, r) {
1119
1353
  function o(a, i) {
1120
- return "[Axios v" + Cr + "] Transitional option '" + a + "'" + i + (n ? ". " + n : "");
1354
+ return "[Axios v" + un + "] Transitional option '" + a + "'" + i + (r ? ". " + r : "");
1121
1355
  }
1122
1356
  return (a, i, s) => {
1123
1357
  if (e === !1)
1124
- throw new b(
1125
- o(i, " has been removed" + (r ? " in " + r : "")),
1126
- b.ERR_DEPRECATED
1358
+ throw new w(
1359
+ o(i, " has been removed" + (n ? " in " + n : "")),
1360
+ w.ERR_DEPRECATED
1127
1361
  );
1128
- return r && !kt[i] && (kt[i] = !0), e ? e(a, i, s) : !0;
1362
+ return n && !ur[i] && (ur[i] = !0), e ? e(a, i, s) : !0;
1129
1363
  };
1130
1364
  };
1131
- function Ro(t, e, r) {
1365
+ Qe.spelling = function(e) {
1366
+ return (n, r) => !0;
1367
+ };
1368
+ function xa(t, e, n) {
1132
1369
  if (typeof t != "object")
1133
- throw new b("options must be an object", b.ERR_BAD_OPTION_VALUE);
1134
- const n = Object.keys(t);
1135
- let o = n.length;
1370
+ throw new w("options must be an object", w.ERR_BAD_OPTION_VALUE);
1371
+ const r = Object.keys(t);
1372
+ let o = r.length;
1136
1373
  for (; o-- > 0; ) {
1137
- const a = n[o], i = e[a];
1374
+ const a = r[o], i = e[a];
1138
1375
  if (i) {
1139
1376
  const s = t[a], u = s === void 0 || i(s, a, t);
1140
1377
  if (u !== !0)
1141
- throw new b("option " + a + " must be " + u, b.ERR_BAD_OPTION_VALUE);
1378
+ throw new w("option " + a + " must be " + u, w.ERR_BAD_OPTION_VALUE);
1142
1379
  continue;
1143
1380
  }
1144
- if (r !== !0)
1145
- throw new b("Unknown option " + a, b.ERR_BAD_OPTION);
1381
+ if (n !== !0)
1382
+ throw new w("Unknown option " + a, w.ERR_BAD_OPTION);
1146
1383
  }
1147
1384
  }
1148
- const at = {
1149
- assertOptions: Ro,
1150
- validators: bt
1151
- }, M = at.validators;
1152
- let G = class {
1385
+ const De = {
1386
+ assertOptions: xa,
1387
+ validators: Qe
1388
+ }, L = De.validators;
1389
+ let X = class {
1153
1390
  constructor(e) {
1154
- this.defaults = e, this.interceptors = {
1155
- request: new _t(),
1156
- response: new _t()
1391
+ this.defaults = e || {}, this.interceptors = {
1392
+ request: new tr(),
1393
+ response: new tr()
1157
1394
  };
1158
1395
  }
1159
1396
  /**
@@ -1164,100 +1401,106 @@ let G = class {
1164
1401
  *
1165
1402
  * @returns {Promise} The Promise to be fulfilled
1166
1403
  */
1167
- async request(e, r) {
1404
+ async request(e, n) {
1168
1405
  try {
1169
- return await this._request(e, r);
1170
- } catch (n) {
1171
- if (n instanceof Error) {
1172
- let o;
1173
- Error.captureStackTrace ? Error.captureStackTrace(o = {}) : o = new Error();
1406
+ return await this._request(e, n);
1407
+ } catch (r) {
1408
+ if (r instanceof Error) {
1409
+ let o = {};
1410
+ Error.captureStackTrace ? Error.captureStackTrace(o) : o = new Error();
1174
1411
  const a = o.stack ? o.stack.replace(/^.+\n/, "") : "";
1175
- n.stack ? a && !String(n.stack).endsWith(a.replace(/^.+\n.+\n/, "")) && (n.stack += `
1176
- ` + a) : n.stack = a;
1412
+ try {
1413
+ r.stack ? a && !String(r.stack).endsWith(a.replace(/^.+\n.+\n/, "")) && (r.stack += `
1414
+ ` + a) : r.stack = a;
1415
+ } catch {
1416
+ }
1177
1417
  }
1178
- throw n;
1418
+ throw r;
1179
1419
  }
1180
1420
  }
1181
- _request(e, r) {
1182
- typeof e == "string" ? (r = r || {}, r.url = e) : r = e || {}, r = oe(this.defaults, r);
1183
- const { transitional: n, paramsSerializer: o, headers: a } = r;
1184
- n !== void 0 && at.assertOptions(n, {
1185
- silentJSONParsing: M.transitional(M.boolean),
1186
- forcedJSONParsing: M.transitional(M.boolean),
1187
- clarifyTimeoutError: M.transitional(M.boolean)
1188
- }, !1), o != null && (f.isFunction(o) ? r.paramsSerializer = {
1421
+ _request(e, n) {
1422
+ typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = Y(this.defaults, n);
1423
+ const { transitional: r, paramsSerializer: o, headers: a } = n;
1424
+ r !== void 0 && De.assertOptions(r, {
1425
+ silentJSONParsing: L.transitional(L.boolean),
1426
+ forcedJSONParsing: L.transitional(L.boolean),
1427
+ clarifyTimeoutError: L.transitional(L.boolean)
1428
+ }, !1), o != null && (f.isFunction(o) ? n.paramsSerializer = {
1189
1429
  serialize: o
1190
- } : at.assertOptions(o, {
1191
- encode: M.function,
1192
- serialize: M.function
1193
- }, !0)), r.method = (r.method || this.defaults.method || "get").toLowerCase();
1430
+ } : De.assertOptions(o, {
1431
+ encode: L.function,
1432
+ serialize: L.function
1433
+ }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), De.assertOptions(n, {
1434
+ baseUrl: L.spelling("baseURL"),
1435
+ withXsrfToken: L.spelling("withXSRFToken")
1436
+ }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1194
1437
  let i = a && f.merge(
1195
1438
  a.common,
1196
- a[r.method]
1439
+ a[n.method]
1197
1440
  );
1198
1441
  a && f.forEach(
1199
1442
  ["delete", "get", "head", "post", "put", "patch", "common"],
1200
- (d) => {
1201
- delete a[d];
1443
+ (y) => {
1444
+ delete a[y];
1202
1445
  }
1203
- ), r.headers = C.concat(i, a);
1446
+ ), n.headers = $.concat(i, a);
1204
1447
  const s = [];
1205
1448
  let u = !0;
1206
- this.interceptors.request.forEach(function(y) {
1207
- typeof y.runWhen == "function" && y.runWhen(r) === !1 || (u = u && y.synchronous, s.unshift(y.fulfilled, y.rejected));
1449
+ this.interceptors.request.forEach(function(m) {
1450
+ typeof m.runWhen == "function" && m.runWhen(n) === !1 || (u = u && m.synchronous, s.unshift(m.fulfilled, m.rejected));
1208
1451
  });
1209
1452
  const l = [];
1210
- this.interceptors.response.forEach(function(y) {
1211
- l.push(y.fulfilled, y.rejected);
1453
+ this.interceptors.response.forEach(function(m) {
1454
+ l.push(m.fulfilled, m.rejected);
1212
1455
  });
1213
- let p, c = 0, h;
1456
+ let c, p = 0, d;
1214
1457
  if (!u) {
1215
- const d = [Ut.bind(this), void 0];
1216
- for (d.unshift.apply(d, s), d.push.apply(d, l), h = d.length, p = Promise.resolve(r); c < h; )
1217
- p = p.then(d[c++], d[c++]);
1218
- return p;
1219
- }
1220
- h = s.length;
1221
- let g = r;
1222
- for (c = 0; c < h; ) {
1223
- const d = s[c++], y = s[c++];
1458
+ const y = [cr.bind(this), void 0];
1459
+ for (y.unshift.apply(y, s), y.push.apply(y, l), d = y.length, c = Promise.resolve(n); p < d; )
1460
+ c = c.then(y[p++], y[p++]);
1461
+ return c;
1462
+ }
1463
+ d = s.length;
1464
+ let g = n;
1465
+ for (p = 0; p < d; ) {
1466
+ const y = s[p++], m = s[p++];
1224
1467
  try {
1225
- g = d(g);
1226
- } catch (S) {
1227
- y.call(this, S);
1468
+ g = y(g);
1469
+ } catch (h) {
1470
+ m.call(this, h);
1228
1471
  break;
1229
1472
  }
1230
1473
  }
1231
1474
  try {
1232
- p = Ut.call(this, g);
1233
- } catch (d) {
1234
- return Promise.reject(d);
1475
+ c = cr.call(this, g);
1476
+ } catch (y) {
1477
+ return Promise.reject(y);
1235
1478
  }
1236
- for (c = 0, h = l.length; c < h; )
1237
- p = p.then(l[c++], l[c++]);
1238
- return p;
1479
+ for (p = 0, d = l.length; p < d; )
1480
+ c = c.then(l[p++], l[p++]);
1481
+ return c;
1239
1482
  }
1240
1483
  getUri(e) {
1241
- e = oe(this.defaults, e);
1242
- const r = xr(e.baseURL, e.url);
1243
- return Er(r, e.params, e.paramsSerializer);
1484
+ e = Y(this.defaults, e);
1485
+ const n = on(e.baseURL, e.url, e.allowAbsoluteUrls);
1486
+ return Yr(n, e.params, e.paramsSerializer);
1244
1487
  }
1245
1488
  };
1246
1489
  f.forEach(["delete", "get", "head", "options"], function(e) {
1247
- G.prototype[e] = function(r, n) {
1248
- return this.request(oe(n || {}, {
1490
+ X.prototype[e] = function(n, r) {
1491
+ return this.request(Y(r || {}, {
1249
1492
  method: e,
1250
- url: r,
1251
- data: (n || {}).data
1493
+ url: n,
1494
+ data: (r || {}).data
1252
1495
  }));
1253
1496
  };
1254
1497
  });
1255
1498
  f.forEach(["post", "put", "patch"], function(e) {
1256
- function r(n) {
1499
+ function n(r) {
1257
1500
  return function(a, i, s) {
1258
- return this.request(oe(s || {}, {
1501
+ return this.request(Y(s || {}, {
1259
1502
  method: e,
1260
- headers: n ? {
1503
+ headers: r ? {
1261
1504
  "Content-Type": "multipart/form-data"
1262
1505
  } : {},
1263
1506
  url: a,
@@ -1265,33 +1508,33 @@ f.forEach(["post", "put", "patch"], function(e) {
1265
1508
  }));
1266
1509
  };
1267
1510
  }
1268
- G.prototype[e] = r(), G.prototype[e + "Form"] = r(!0);
1511
+ X.prototype[e] = n(), X.prototype[e + "Form"] = n(!0);
1269
1512
  });
1270
- let Po = class Fr {
1513
+ let Ca = class fn {
1271
1514
  constructor(e) {
1272
1515
  if (typeof e != "function")
1273
1516
  throw new TypeError("executor must be a function.");
1274
- let r;
1517
+ let n;
1275
1518
  this.promise = new Promise(function(a) {
1276
- r = a;
1519
+ n = a;
1277
1520
  });
1278
- const n = this;
1521
+ const r = this;
1279
1522
  this.promise.then((o) => {
1280
- if (!n._listeners) return;
1281
- let a = n._listeners.length;
1523
+ if (!r._listeners) return;
1524
+ let a = r._listeners.length;
1282
1525
  for (; a-- > 0; )
1283
- n._listeners[a](o);
1284
- n._listeners = null;
1526
+ r._listeners[a](o);
1527
+ r._listeners = null;
1285
1528
  }), this.promise.then = (o) => {
1286
1529
  let a;
1287
1530
  const i = new Promise((s) => {
1288
- n.subscribe(s), a = s;
1531
+ r.subscribe(s), a = s;
1289
1532
  }).then(o);
1290
1533
  return i.cancel = function() {
1291
- n.unsubscribe(a);
1534
+ r.unsubscribe(a);
1292
1535
  }, i;
1293
1536
  }, e(function(a, i, s) {
1294
- n.reason || (n.reason = new we(a, i, s), r(n.reason));
1537
+ r.reason || (r.reason = new ue(a, i, s), n(r.reason));
1295
1538
  });
1296
1539
  }
1297
1540
  /**
@@ -1317,8 +1560,14 @@ let Po = class Fr {
1317
1560
  unsubscribe(e) {
1318
1561
  if (!this._listeners)
1319
1562
  return;
1320
- const r = this._listeners.indexOf(e);
1321
- r !== -1 && this._listeners.splice(r, 1);
1563
+ const n = this._listeners.indexOf(e);
1564
+ n !== -1 && this._listeners.splice(n, 1);
1565
+ }
1566
+ toAbortSignal() {
1567
+ const e = new AbortController(), n = (r) => {
1568
+ e.abort(r);
1569
+ };
1570
+ return this.subscribe(n), e.signal.unsubscribe = () => this.unsubscribe(n), e.signal;
1322
1571
  }
1323
1572
  /**
1324
1573
  * Returns an object that contains a new `CancelToken` and a function that, when called,
@@ -1327,22 +1576,22 @@ let Po = class Fr {
1327
1576
  static source() {
1328
1577
  let e;
1329
1578
  return {
1330
- token: new Fr(function(o) {
1579
+ token: new fn(function(o) {
1331
1580
  e = o;
1332
1581
  }),
1333
1582
  cancel: e
1334
1583
  };
1335
1584
  }
1336
1585
  };
1337
- function xo(t) {
1338
- return function(r) {
1339
- return t.apply(null, r);
1586
+ function _a(t) {
1587
+ return function(n) {
1588
+ return t.apply(null, n);
1340
1589
  };
1341
1590
  }
1342
- function To(t) {
1591
+ function Na(t) {
1343
1592
  return f.isObject(t) && t.isAxiosError === !0;
1344
1593
  }
1345
- const it = {
1594
+ const Ft = {
1346
1595
  Continue: 100,
1347
1596
  SwitchingProtocols: 101,
1348
1597
  Processing: 102,
@@ -1407,676 +1656,302 @@ const it = {
1407
1656
  NotExtended: 510,
1408
1657
  NetworkAuthenticationRequired: 511
1409
1658
  };
1410
- Object.entries(it).forEach(([t, e]) => {
1411
- it[e] = t;
1659
+ Object.entries(Ft).forEach(([t, e]) => {
1660
+ Ft[e] = t;
1412
1661
  });
1413
- function Nr(t) {
1414
- const e = new G(t), r = cr(G.prototype.request, e);
1415
- return f.extend(r, G.prototype, e, { allOwnKeys: !0 }), f.extend(r, e, null, { allOwnKeys: !0 }), r.create = function(o) {
1416
- return Nr(oe(t, o));
1417
- }, r;
1418
- }
1419
- const w = Nr(Se);
1420
- w.Axios = G;
1421
- w.CanceledError = we;
1422
- w.CancelToken = Po;
1423
- w.isCancel = Pr;
1424
- w.VERSION = Cr;
1425
- w.toFormData = ze;
1426
- w.AxiosError = b;
1427
- w.Cancel = w.CanceledError;
1428
- w.all = function(e) {
1662
+ function pn(t) {
1663
+ const e = new X(t), n = qr(X.prototype.request, e);
1664
+ return f.extend(n, X.prototype, e, { allOwnKeys: !0 }), f.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(o) {
1665
+ return pn(Y(t, o));
1666
+ }, n;
1667
+ }
1668
+ const R = pn(Ee);
1669
+ R.Axios = X;
1670
+ R.CanceledError = ue;
1671
+ R.CancelToken = Ca;
1672
+ R.isCancel = rn;
1673
+ R.VERSION = un;
1674
+ R.toFormData = Ve;
1675
+ R.AxiosError = w;
1676
+ R.Cancel = R.CanceledError;
1677
+ R.all = function(e) {
1429
1678
  return Promise.all(e);
1430
1679
  };
1431
- w.spread = xo;
1432
- w.isAxiosError = To;
1433
- w.mergeConfig = oe;
1434
- w.AxiosHeaders = C;
1435
- w.formToJSON = (t) => Rr(f.isHTMLForm(t) ? new FormData(t) : t);
1436
- w.getAdapter = Tr.getAdapter;
1437
- w.HttpStatusCode = it;
1438
- w.default = w;
1680
+ R.spread = _a;
1681
+ R.isAxiosError = Na;
1682
+ R.mergeConfig = Y;
1683
+ R.AxiosHeaders = $;
1684
+ R.formToJSON = (t) => tn(f.isHTMLForm(t) ? new FormData(t) : t);
1685
+ R.getAdapter = cn.getAdapter;
1686
+ R.HttpStatusCode = Ft;
1687
+ R.default = R;
1439
1688
  const {
1440
- Axios: os,
1441
- AxiosError: as,
1442
- CanceledError: is,
1443
- isCancel: ss,
1444
- CancelToken: ls,
1445
- VERSION: us,
1446
- all: cs,
1447
- Cancel: fs,
1448
- isAxiosError: ps,
1449
- spread: ds,
1450
- toFormData: ys,
1451
- AxiosHeaders: hs,
1452
- HttpStatusCode: ms,
1453
- formToJSON: gs,
1454
- getAdapter: vs,
1455
- mergeConfig: bs
1456
- } = w;
1457
- var Co = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1458
- function Fo(t) {
1689
+ Axios: zl,
1690
+ AxiosError: Wl,
1691
+ CanceledError: Gl,
1692
+ isCancel: Jl,
1693
+ CancelToken: Vl,
1694
+ VERSION: Kl,
1695
+ all: Ql,
1696
+ Cancel: Xl,
1697
+ isAxiosError: Zl,
1698
+ spread: Yl,
1699
+ toFormData: ec,
1700
+ AxiosHeaders: tc,
1701
+ HttpStatusCode: rc,
1702
+ formToJSON: nc,
1703
+ getAdapter: oc,
1704
+ mergeConfig: ac
1705
+ } = R;
1706
+ var fr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1707
+ function Fa(t) {
1459
1708
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
1460
1709
  }
1461
- function No(t) {
1710
+ function $a(t) {
1462
1711
  if (t.__esModule) return t;
1463
1712
  var e = t.default;
1464
1713
  if (typeof e == "function") {
1465
- var r = function n() {
1466
- return this instanceof n ? Reflect.construct(e, arguments, this.constructor) : e.apply(this, arguments);
1714
+ var n = function r() {
1715
+ return this instanceof r ? Reflect.construct(e, arguments, this.constructor) : e.apply(this, arguments);
1467
1716
  };
1468
- r.prototype = e.prototype;
1469
- } else r = {};
1470
- return Object.defineProperty(r, "__esModule", { value: !0 }), Object.keys(t).forEach(function(n) {
1471
- var o = Object.getOwnPropertyDescriptor(t, n);
1472
- Object.defineProperty(r, n, o.get ? o : {
1717
+ n.prototype = e.prototype;
1718
+ } else n = {};
1719
+ return Object.defineProperty(n, "__esModule", { value: !0 }), Object.keys(t).forEach(function(r) {
1720
+ var o = Object.getOwnPropertyDescriptor(t, r);
1721
+ Object.defineProperty(n, r, o.get ? o : {
1473
1722
  enumerable: !0,
1474
1723
  get: function() {
1475
- return t[n];
1724
+ return t[r];
1476
1725
  }
1477
1726
  });
1478
- }), r;
1727
+ }), n;
1479
1728
  }
1480
- var $o = function() {
1481
- if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
1482
- return !1;
1483
- if (typeof Symbol.iterator == "symbol")
1484
- return !0;
1485
- var e = {}, r = Symbol("test"), n = Object(r);
1486
- if (typeof r == "string" || Object.prototype.toString.call(r) !== "[object Symbol]" || Object.prototype.toString.call(n) !== "[object Symbol]")
1487
- return !1;
1488
- var o = 42;
1489
- e[r] = o;
1490
- for (r in e)
1491
- return !1;
1492
- if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0)
1493
- return !1;
1494
- var a = Object.getOwnPropertySymbols(e);
1495
- if (a.length !== 1 || a[0] !== r || !Object.prototype.propertyIsEnumerable.call(e, r))
1496
- return !1;
1497
- if (typeof Object.getOwnPropertyDescriptor == "function") {
1498
- var i = Object.getOwnPropertyDescriptor(e, r);
1499
- if (i.value !== o || i.enumerable !== !0)
1500
- return !1;
1729
+ var fe = TypeError;
1730
+ const Da = {}, Ia = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1731
+ __proto__: null,
1732
+ default: Da
1733
+ }, Symbol.toStringTag, { value: "Module" })), Ba = /* @__PURE__ */ $a(Ia);
1734
+ var zt = typeof Map == "function" && Map.prototype, it = Object.getOwnPropertyDescriptor && zt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, ke = zt && it && typeof it.get == "function" ? it.get : null, pr = zt && Map.prototype.forEach, Wt = typeof Set == "function" && Set.prototype, st = Object.getOwnPropertyDescriptor && Wt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, qe = Wt && st && typeof st.get == "function" ? st.get : null, dr = Wt && Set.prototype.forEach, La = typeof WeakMap == "function" && WeakMap.prototype, he = La ? WeakMap.prototype.has : null, Ua = typeof WeakSet == "function" && WeakSet.prototype, me = Ua ? WeakSet.prototype.has : null, Ma = typeof WeakRef == "function" && WeakRef.prototype, yr = Ma ? WeakRef.prototype.deref : null, ka = Boolean.prototype.valueOf, qa = Object.prototype.toString, ja = Function.prototype.toString, Ha = String.prototype.match, Gt = String.prototype.slice, J = String.prototype.replace, za = String.prototype.toUpperCase, hr = String.prototype.toLowerCase, dn = RegExp.prototype.test, mr = Array.prototype.concat, k = Array.prototype.join, Wa = Array.prototype.slice, gr = Math.floor, $t = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, lt = Object.getOwnPropertySymbols, Dt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, se = typeof Symbol == "function" && typeof Symbol.iterator == "object", ge = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === se || !0) ? Symbol.toStringTag : null, yn = Object.prototype.propertyIsEnumerable, vr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
1735
+ return t.__proto__;
1736
+ } : null);
1737
+ function wr(t, e) {
1738
+ if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 || dn.call(/e/, e))
1739
+ return e;
1740
+ var n = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
1741
+ if (typeof t == "number") {
1742
+ var r = t < 0 ? -gr(-t) : gr(t);
1743
+ if (r !== t) {
1744
+ var o = String(r), a = Gt.call(e, o.length + 1);
1745
+ return J.call(o, n, "$&_") + "." + J.call(J.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
1746
+ }
1501
1747
  }
1502
- return !0;
1503
- }, Mt = typeof Symbol < "u" && Symbol, _o = $o, Io = function() {
1504
- return typeof Mt != "function" || typeof Symbol != "function" || typeof Mt("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : _o();
1505
- }, jt = {
1506
- foo: {}
1507
- }, Do = Object, Bo = function() {
1508
- return { __proto__: jt }.foo === jt.foo && !({ __proto__: null } instanceof Do);
1509
- }, Uo = "Function.prototype.bind called on incompatible ", Lo = Object.prototype.toString, ko = Math.max, Mo = "[object Function]", zt = function(e, r) {
1510
- for (var n = [], o = 0; o < e.length; o += 1)
1511
- n[o] = e[o];
1512
- for (var a = 0; a < r.length; a += 1)
1513
- n[a + e.length] = r[a];
1514
- return n;
1515
- }, jo = function(e, r) {
1516
- for (var n = [], o = r, a = 0; o < e.length; o += 1, a += 1)
1517
- n[a] = e[o];
1518
- return n;
1519
- }, zo = function(t, e) {
1520
- for (var r = "", n = 0; n < t.length; n += 1)
1521
- r += t[n], n + 1 < t.length && (r += e);
1522
- return r;
1523
- }, Ho = function(e) {
1524
- var r = this;
1525
- if (typeof r != "function" || Lo.apply(r) !== Mo)
1526
- throw new TypeError(Uo + r);
1527
- for (var n = jo(arguments, 1), o, a = function() {
1528
- if (this instanceof o) {
1529
- var p = r.apply(
1530
- this,
1531
- zt(n, arguments)
1532
- );
1533
- return Object(p) === p ? p : this;
1748
+ return J.call(e, n, "$&_");
1749
+ }
1750
+ var It = Ba, br = It.custom, Sr = gn(br) ? br : null, hn = {
1751
+ __proto__: null,
1752
+ double: '"',
1753
+ single: "'"
1754
+ }, Ga = {
1755
+ __proto__: null,
1756
+ double: /(["\\])/g,
1757
+ single: /(['\\])/g
1758
+ }, Xe = function t(e, n, r, o) {
1759
+ var a = n || {};
1760
+ if (H(a, "quoteStyle") && !H(hn, a.quoteStyle))
1761
+ throw new TypeError('option "quoteStyle" must be "single" or "double"');
1762
+ if (H(a, "maxStringLength") && (typeof a.maxStringLength == "number" ? a.maxStringLength < 0 && a.maxStringLength !== 1 / 0 : a.maxStringLength !== null))
1763
+ throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
1764
+ var i = H(a, "customInspect") ? a.customInspect : !0;
1765
+ if (typeof i != "boolean" && i !== "symbol")
1766
+ throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
1767
+ if (H(a, "indent") && a.indent !== null && a.indent !== " " && !(parseInt(a.indent, 10) === a.indent && a.indent > 0))
1768
+ throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
1769
+ if (H(a, "numericSeparator") && typeof a.numericSeparator != "boolean")
1770
+ throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
1771
+ var s = a.numericSeparator;
1772
+ if (typeof e > "u")
1773
+ return "undefined";
1774
+ if (e === null)
1775
+ return "null";
1776
+ if (typeof e == "boolean")
1777
+ return e ? "true" : "false";
1778
+ if (typeof e == "string")
1779
+ return wn(e, a);
1780
+ if (typeof e == "number") {
1781
+ if (e === 0)
1782
+ return 1 / 0 / e > 0 ? "0" : "-0";
1783
+ var u = String(e);
1784
+ return s ? wr(e, u) : u;
1785
+ }
1786
+ if (typeof e == "bigint") {
1787
+ var l = String(e) + "n";
1788
+ return s ? wr(e, l) : l;
1789
+ }
1790
+ var c = typeof a.depth > "u" ? 5 : a.depth;
1791
+ if (typeof r > "u" && (r = 0), r >= c && c > 0 && typeof e == "object")
1792
+ return Bt(e) ? "[Array]" : "[Object]";
1793
+ var p = ui(a, r);
1794
+ if (typeof o > "u")
1795
+ o = [];
1796
+ else if (vn(o, e) >= 0)
1797
+ return "[Circular]";
1798
+ function d(D, W, j) {
1799
+ if (W && (o = Wa.call(o), o.push(W)), j) {
1800
+ var pe = {
1801
+ depth: a.depth
1802
+ };
1803
+ return H(a, "quoteStyle") && (pe.quoteStyle = a.quoteStyle), t(D, pe, r + 1, o);
1534
1804
  }
1535
- return r.apply(
1536
- e,
1537
- zt(n, arguments)
1538
- );
1539
- }, i = ko(0, r.length - n.length), s = [], u = 0; u < i; u++)
1540
- s[u] = "$" + u;
1541
- if (o = Function("binder", "return function (" + zo(s, ",") + "){ return binder.apply(this,arguments); }")(a), r.prototype) {
1542
- var l = function() {
1543
- };
1544
- l.prototype = r.prototype, o.prototype = new l(), l.prototype = null;
1805
+ return t(D, a, r + 1, o);
1545
1806
  }
1546
- return o;
1547
- }, Wo = Ho, St = Function.prototype.bind || Wo, qo = Function.prototype.call, Go = Object.prototype.hasOwnProperty, Jo = St, Vo = Jo.call(qo, Go), v, ae = SyntaxError, $r = Function, ne = TypeError, Je = function(t) {
1548
- try {
1549
- return $r('"use strict"; return (' + t + ").constructor;")();
1550
- } catch {
1807
+ if (typeof e == "function" && !Er(e)) {
1808
+ var g = ti(e), y = Te(e, d);
1809
+ return "[Function" + (g ? ": " + g : " (anonymous)") + "]" + (y.length > 0 ? " { " + k.call(y, ", ") + " }" : "");
1551
1810
  }
1552
- }, J = Object.getOwnPropertyDescriptor;
1553
- if (J)
1554
- try {
1555
- J({}, "");
1556
- } catch {
1557
- J = null;
1811
+ if (gn(e)) {
1812
+ var m = se ? J.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Dt.call(e);
1813
+ return typeof e == "object" && !se ? ye(m) : m;
1558
1814
  }
1559
- var Ve = function() {
1560
- throw new ne();
1561
- }, Ko = J ? function() {
1562
- try {
1563
- return arguments.callee, Ve;
1564
- } catch {
1565
- try {
1566
- return J(arguments, "callee").get;
1567
- } catch {
1568
- return Ve;
1569
- }
1815
+ if (si(e)) {
1816
+ for (var h = "<" + hr.call(String(e.nodeName)), S = e.attributes || [], E = 0; E < S.length; E++)
1817
+ h += " " + S[E].name + "=" + mn(Ja(S[E].value), "double", a);
1818
+ return h += ">", e.childNodes && e.childNodes.length && (h += "..."), h += "</" + hr.call(String(e.nodeName)) + ">", h;
1570
1819
  }
1571
- }() : Ve, ee = Io(), Qo = Bo(), A = Object.getPrototypeOf || (Qo ? function(t) {
1572
- return t.__proto__;
1573
- } : null), re = {}, Xo = typeof Uint8Array > "u" || !A ? v : A(Uint8Array), V = {
1574
- "%AggregateError%": typeof AggregateError > "u" ? v : AggregateError,
1575
- "%Array%": Array,
1576
- "%ArrayBuffer%": typeof ArrayBuffer > "u" ? v : ArrayBuffer,
1577
- "%ArrayIteratorPrototype%": ee && A ? A([][Symbol.iterator]()) : v,
1578
- "%AsyncFromSyncIteratorPrototype%": v,
1579
- "%AsyncFunction%": re,
1580
- "%AsyncGenerator%": re,
1581
- "%AsyncGeneratorFunction%": re,
1582
- "%AsyncIteratorPrototype%": re,
1583
- "%Atomics%": typeof Atomics > "u" ? v : Atomics,
1584
- "%BigInt%": typeof BigInt > "u" ? v : BigInt,
1585
- "%BigInt64Array%": typeof BigInt64Array > "u" ? v : BigInt64Array,
1586
- "%BigUint64Array%": typeof BigUint64Array > "u" ? v : BigUint64Array,
1587
- "%Boolean%": Boolean,
1588
- "%DataView%": typeof DataView > "u" ? v : DataView,
1589
- "%Date%": Date,
1590
- "%decodeURI%": decodeURI,
1591
- "%decodeURIComponent%": decodeURIComponent,
1592
- "%encodeURI%": encodeURI,
1593
- "%encodeURIComponent%": encodeURIComponent,
1594
- "%Error%": Error,
1595
- "%eval%": eval,
1596
- // eslint-disable-line no-eval
1597
- "%EvalError%": EvalError,
1598
- "%Float32Array%": typeof Float32Array > "u" ? v : Float32Array,
1599
- "%Float64Array%": typeof Float64Array > "u" ? v : Float64Array,
1600
- "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? v : FinalizationRegistry,
1601
- "%Function%": $r,
1602
- "%GeneratorFunction%": re,
1603
- "%Int8Array%": typeof Int8Array > "u" ? v : Int8Array,
1604
- "%Int16Array%": typeof Int16Array > "u" ? v : Int16Array,
1605
- "%Int32Array%": typeof Int32Array > "u" ? v : Int32Array,
1606
- "%isFinite%": isFinite,
1607
- "%isNaN%": isNaN,
1608
- "%IteratorPrototype%": ee && A ? A(A([][Symbol.iterator]())) : v,
1609
- "%JSON%": typeof JSON == "object" ? JSON : v,
1610
- "%Map%": typeof Map > "u" ? v : Map,
1611
- "%MapIteratorPrototype%": typeof Map > "u" || !ee || !A ? v : A((/* @__PURE__ */ new Map())[Symbol.iterator]()),
1612
- "%Math%": Math,
1613
- "%Number%": Number,
1614
- "%Object%": Object,
1615
- "%parseFloat%": parseFloat,
1616
- "%parseInt%": parseInt,
1617
- "%Promise%": typeof Promise > "u" ? v : Promise,
1618
- "%Proxy%": typeof Proxy > "u" ? v : Proxy,
1619
- "%RangeError%": RangeError,
1620
- "%ReferenceError%": ReferenceError,
1621
- "%Reflect%": typeof Reflect > "u" ? v : Reflect,
1622
- "%RegExp%": RegExp,
1623
- "%Set%": typeof Set > "u" ? v : Set,
1624
- "%SetIteratorPrototype%": typeof Set > "u" || !ee || !A ? v : A((/* @__PURE__ */ new Set())[Symbol.iterator]()),
1625
- "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? v : SharedArrayBuffer,
1626
- "%String%": String,
1627
- "%StringIteratorPrototype%": ee && A ? A(""[Symbol.iterator]()) : v,
1628
- "%Symbol%": ee ? Symbol : v,
1629
- "%SyntaxError%": ae,
1630
- "%ThrowTypeError%": Ko,
1631
- "%TypedArray%": Xo,
1632
- "%TypeError%": ne,
1633
- "%Uint8Array%": typeof Uint8Array > "u" ? v : Uint8Array,
1634
- "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? v : Uint8ClampedArray,
1635
- "%Uint16Array%": typeof Uint16Array > "u" ? v : Uint16Array,
1636
- "%Uint32Array%": typeof Uint32Array > "u" ? v : Uint32Array,
1637
- "%URIError%": URIError,
1638
- "%WeakMap%": typeof WeakMap > "u" ? v : WeakMap,
1639
- "%WeakRef%": typeof WeakRef > "u" ? v : WeakRef,
1640
- "%WeakSet%": typeof WeakSet > "u" ? v : WeakSet
1641
- };
1642
- if (A)
1643
- try {
1644
- null.error;
1645
- } catch (t) {
1646
- var Yo = A(A(t));
1647
- V["%Error.prototype%"] = Yo;
1648
- }
1649
- var Zo = function t(e) {
1650
- var r;
1651
- if (e === "%AsyncFunction%")
1652
- r = Je("async function () {}");
1653
- else if (e === "%GeneratorFunction%")
1654
- r = Je("function* () {}");
1655
- else if (e === "%AsyncGeneratorFunction%")
1656
- r = Je("async function* () {}");
1657
- else if (e === "%AsyncGenerator%") {
1658
- var n = t("%AsyncGeneratorFunction%");
1659
- n && (r = n.prototype);
1660
- } else if (e === "%AsyncIteratorPrototype%") {
1661
- var o = t("%AsyncGenerator%");
1662
- o && A && (r = A(o.prototype));
1663
- }
1664
- return V[e] = r, r;
1665
- }, Ht = {
1666
- "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
1667
- "%ArrayPrototype%": ["Array", "prototype"],
1668
- "%ArrayProto_entries%": ["Array", "prototype", "entries"],
1669
- "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
1670
- "%ArrayProto_keys%": ["Array", "prototype", "keys"],
1671
- "%ArrayProto_values%": ["Array", "prototype", "values"],
1672
- "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
1673
- "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
1674
- "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
1675
- "%BooleanPrototype%": ["Boolean", "prototype"],
1676
- "%DataViewPrototype%": ["DataView", "prototype"],
1677
- "%DatePrototype%": ["Date", "prototype"],
1678
- "%ErrorPrototype%": ["Error", "prototype"],
1679
- "%EvalErrorPrototype%": ["EvalError", "prototype"],
1680
- "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
1681
- "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
1682
- "%FunctionPrototype%": ["Function", "prototype"],
1683
- "%Generator%": ["GeneratorFunction", "prototype"],
1684
- "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
1685
- "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
1686
- "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
1687
- "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
1688
- "%JSONParse%": ["JSON", "parse"],
1689
- "%JSONStringify%": ["JSON", "stringify"],
1690
- "%MapPrototype%": ["Map", "prototype"],
1691
- "%NumberPrototype%": ["Number", "prototype"],
1692
- "%ObjectPrototype%": ["Object", "prototype"],
1693
- "%ObjProto_toString%": ["Object", "prototype", "toString"],
1694
- "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
1695
- "%PromisePrototype%": ["Promise", "prototype"],
1696
- "%PromiseProto_then%": ["Promise", "prototype", "then"],
1697
- "%Promise_all%": ["Promise", "all"],
1698
- "%Promise_reject%": ["Promise", "reject"],
1699
- "%Promise_resolve%": ["Promise", "resolve"],
1700
- "%RangeErrorPrototype%": ["RangeError", "prototype"],
1701
- "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
1702
- "%RegExpPrototype%": ["RegExp", "prototype"],
1703
- "%SetPrototype%": ["Set", "prototype"],
1704
- "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
1705
- "%StringPrototype%": ["String", "prototype"],
1706
- "%SymbolPrototype%": ["Symbol", "prototype"],
1707
- "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
1708
- "%TypedArrayPrototype%": ["TypedArray", "prototype"],
1709
- "%TypeErrorPrototype%": ["TypeError", "prototype"],
1710
- "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
1711
- "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
1712
- "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
1713
- "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
1714
- "%URIErrorPrototype%": ["URIError", "prototype"],
1715
- "%WeakMapPrototype%": ["WeakMap", "prototype"],
1716
- "%WeakSetPrototype%": ["WeakSet", "prototype"]
1717
- }, Ee = St, De = Vo, ea = Ee.call(Function.call, Array.prototype.concat), ta = Ee.call(Function.apply, Array.prototype.splice), Wt = Ee.call(Function.call, String.prototype.replace), Be = Ee.call(Function.call, String.prototype.slice), ra = Ee.call(Function.call, RegExp.prototype.exec), na = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, oa = /\\(\\)?/g, aa = function(e) {
1718
- var r = Be(e, 0, 1), n = Be(e, -1);
1719
- if (r === "%" && n !== "%")
1720
- throw new ae("invalid intrinsic syntax, expected closing `%`");
1721
- if (n === "%" && r !== "%")
1722
- throw new ae("invalid intrinsic syntax, expected opening `%`");
1723
- var o = [];
1724
- return Wt(e, na, function(a, i, s, u) {
1725
- o[o.length] = s ? Wt(u, oa, "$1") : i || a;
1726
- }), o;
1727
- }, ia = function(e, r) {
1728
- var n = e, o;
1729
- if (De(Ht, n) && (o = Ht[n], n = "%" + o[0] + "%"), De(V, n)) {
1730
- var a = V[n];
1731
- if (a === re && (a = Zo(n)), typeof a > "u" && !r)
1732
- throw new ne("intrinsic " + e + " exists, but is not available. Please file an issue!");
1733
- return {
1734
- alias: o,
1735
- name: n,
1736
- value: a
1737
- };
1738
- }
1739
- throw new ae("intrinsic " + e + " does not exist!");
1740
- }, K = function(e, r) {
1741
- if (typeof e != "string" || e.length === 0)
1742
- throw new ne("intrinsic name must be a non-empty string");
1743
- if (arguments.length > 1 && typeof r != "boolean")
1744
- throw new ne('"allowMissing" argument must be a boolean');
1745
- if (ra(/^%?[^%]*%?$/, e) === null)
1746
- throw new ae("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
1747
- var n = aa(e), o = n.length > 0 ? n[0] : "", a = ia("%" + o + "%", r), i = a.name, s = a.value, u = !1, l = a.alias;
1748
- l && (o = l[0], ta(n, ea([0, 1], l)));
1749
- for (var p = 1, c = !0; p < n.length; p += 1) {
1750
- var h = n[p], g = Be(h, 0, 1), d = Be(h, -1);
1751
- if ((g === '"' || g === "'" || g === "`" || d === '"' || d === "'" || d === "`") && g !== d)
1752
- throw new ae("property names with quotes must have matching quotes");
1753
- if ((h === "constructor" || !c) && (u = !0), o += "." + h, i = "%" + o + "%", De(V, i))
1754
- s = V[i];
1755
- else if (s != null) {
1756
- if (!(h in s)) {
1757
- if (!r)
1758
- throw new ne("base intrinsic for " + e + " exists, but the property is not available.");
1759
- return;
1760
- }
1761
- if (J && p + 1 >= n.length) {
1762
- var y = J(s, h);
1763
- c = !!y, c && "get" in y && !("originalValue" in y.get) ? s = y.get : s = s[h];
1764
- } else
1765
- c = De(s, h), s = s[h];
1766
- c && !u && (V[i] = s);
1767
- }
1768
- }
1769
- return s;
1770
- }, _r = { exports: {} }, sa = K, st = sa("%Object.defineProperty%", !0), lt = function() {
1771
- if (st)
1772
- try {
1773
- return st({}, "a", { value: 1 }), !0;
1774
- } catch {
1775
- return !1;
1776
- }
1777
- return !1;
1778
- };
1779
- lt.hasArrayLengthDefineBug = function() {
1780
- if (!lt())
1781
- return null;
1782
- try {
1783
- return st([], "length", { value: 1 }).length !== 1;
1784
- } catch {
1785
- return !0;
1786
- }
1787
- };
1788
- var Ir = lt, la = K, _e = la("%Object.getOwnPropertyDescriptor%", !0);
1789
- if (_e)
1790
- try {
1791
- _e([], "length");
1792
- } catch {
1793
- _e = null;
1794
- }
1795
- var Dr = _e, ua = Ir(), wt = K, ye = ua && wt("%Object.defineProperty%", !0);
1796
- if (ye)
1797
- try {
1798
- ye({}, "a", { value: 1 });
1799
- } catch {
1800
- ye = !1;
1801
- }
1802
- var ca = wt("%SyntaxError%"), te = wt("%TypeError%"), qt = Dr, fa = function(e, r, n) {
1803
- if (!e || typeof e != "object" && typeof e != "function")
1804
- throw new te("`obj` must be an object or a function`");
1805
- if (typeof r != "string" && typeof r != "symbol")
1806
- throw new te("`property` must be a string or a symbol`");
1807
- if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null)
1808
- throw new te("`nonEnumerable`, if provided, must be a boolean or null");
1809
- if (arguments.length > 4 && typeof arguments[4] != "boolean" && arguments[4] !== null)
1810
- throw new te("`nonWritable`, if provided, must be a boolean or null");
1811
- if (arguments.length > 5 && typeof arguments[5] != "boolean" && arguments[5] !== null)
1812
- throw new te("`nonConfigurable`, if provided, must be a boolean or null");
1813
- if (arguments.length > 6 && typeof arguments[6] != "boolean")
1814
- throw new te("`loose`, if provided, must be a boolean");
1815
- var o = arguments.length > 3 ? arguments[3] : null, a = arguments.length > 4 ? arguments[4] : null, i = arguments.length > 5 ? arguments[5] : null, s = arguments.length > 6 ? arguments[6] : !1, u = !!qt && qt(e, r);
1816
- if (ye)
1817
- ye(e, r, {
1818
- configurable: i === null && u ? u.configurable : !i,
1819
- enumerable: o === null && u ? u.enumerable : !o,
1820
- value: n,
1821
- writable: a === null && u ? u.writable : !a
1822
- });
1823
- else if (s || !o && !a && !i)
1824
- e[r] = n;
1825
- else
1826
- throw new ca("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
1827
- }, Br = K, Gt = fa, pa = Ir(), Jt = Dr, Vt = Br("%TypeError%"), da = Br("%Math.floor%"), ya = function(e, r) {
1828
- if (typeof e != "function")
1829
- throw new Vt("`fn` is not a function");
1830
- if (typeof r != "number" || r < 0 || r > 4294967295 || da(r) !== r)
1831
- throw new Vt("`length` must be a positive 32-bit integer");
1832
- var n = arguments.length > 2 && !!arguments[2], o = !0, a = !0;
1833
- if ("length" in e && Jt) {
1834
- var i = Jt(e, "length");
1835
- i && !i.configurable && (o = !1), i && !i.writable && (a = !1);
1836
- }
1837
- return (o || a || !n) && (pa ? Gt(e, "length", r, !0, !0) : Gt(e, "length", r)), e;
1838
- };
1839
- (function(t) {
1840
- var e = St, r = K, n = ya, o = r("%TypeError%"), a = r("%Function.prototype.apply%"), i = r("%Function.prototype.call%"), s = r("%Reflect.apply%", !0) || e.call(i, a), u = r("%Object.defineProperty%", !0), l = r("%Math.max%");
1841
- if (u)
1842
- try {
1843
- u({}, "a", { value: 1 });
1844
- } catch {
1845
- u = null;
1846
- }
1847
- t.exports = function(h) {
1848
- if (typeof h != "function")
1849
- throw new o("a function is required");
1850
- var g = s(e, i, arguments);
1851
- return n(
1852
- g,
1853
- 1 + l(0, h.length - (arguments.length - 1)),
1854
- !0
1855
- );
1856
- };
1857
- var p = function() {
1858
- return s(e, a, arguments);
1859
- };
1860
- u ? u(t.exports, "apply", { value: p }) : t.exports.apply = p;
1861
- })(_r);
1862
- var ha = _r.exports, Ur = K, Lr = ha, ma = Lr(Ur("String.prototype.indexOf")), ga = function(e, r) {
1863
- var n = Ur(e, !!r);
1864
- return typeof n == "function" && ma(e, ".prototype.") > -1 ? Lr(n) : n;
1865
- };
1866
- const va = {}, ba = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1867
- __proto__: null,
1868
- default: va
1869
- }, Symbol.toStringTag, { value: "Module" })), Sa = /* @__PURE__ */ No(ba);
1870
- var Et = typeof Map == "function" && Map.prototype, Ke = Object.getOwnPropertyDescriptor && Et ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ue = Et && Ke && typeof Ke.get == "function" ? Ke.get : null, Kt = Et && Map.prototype.forEach, Ot = typeof Set == "function" && Set.prototype, Qe = Object.getOwnPropertyDescriptor && Ot ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Le = Ot && Qe && typeof Qe.get == "function" ? Qe.get : null, Qt = Ot && Set.prototype.forEach, wa = typeof WeakMap == "function" && WeakMap.prototype, he = wa ? WeakMap.prototype.has : null, Ea = typeof WeakSet == "function" && WeakSet.prototype, me = Ea ? WeakSet.prototype.has : null, Oa = typeof WeakRef == "function" && WeakRef.prototype, Xt = Oa ? WeakRef.prototype.deref : null, Aa = Boolean.prototype.valueOf, Ra = Object.prototype.toString, Pa = Function.prototype.toString, xa = String.prototype.match, At = String.prototype.slice, z = String.prototype.replace, Ta = String.prototype.toUpperCase, Yt = String.prototype.toLowerCase, kr = RegExp.prototype.test, Zt = Array.prototype.concat, $ = Array.prototype.join, Ca = Array.prototype.slice, er = Math.floor, ut = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Xe = Object.getOwnPropertySymbols, ct = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, ie = typeof Symbol == "function" && typeof Symbol.iterator == "object", x = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === ie || !0) ? Symbol.toStringTag : null, Mr = Object.prototype.propertyIsEnumerable, tr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
1871
- return t.__proto__;
1872
- } : null);
1873
- function rr(t, e) {
1874
- if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 || kr.call(/e/, e))
1875
- return e;
1876
- var r = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
1877
- if (typeof t == "number") {
1878
- var n = t < 0 ? -er(-t) : er(t);
1879
- if (n !== t) {
1880
- var o = String(n), a = At.call(e, o.length + 1);
1881
- return z.call(o, r, "$&_") + "." + z.call(z.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
1882
- }
1883
- }
1884
- return z.call(e, r, "$&_");
1885
- }
1886
- var ft = Sa, nr = ft.custom, or = zr(nr) ? nr : null, Fa = function t(e, r, n, o) {
1887
- var a = r || {};
1888
- if (j(a, "quoteStyle") && a.quoteStyle !== "single" && a.quoteStyle !== "double")
1889
- throw new TypeError('option "quoteStyle" must be "single" or "double"');
1890
- if (j(a, "maxStringLength") && (typeof a.maxStringLength == "number" ? a.maxStringLength < 0 && a.maxStringLength !== 1 / 0 : a.maxStringLength !== null))
1891
- throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
1892
- var i = j(a, "customInspect") ? a.customInspect : !0;
1893
- if (typeof i != "boolean" && i !== "symbol")
1894
- throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
1895
- if (j(a, "indent") && a.indent !== null && a.indent !== " " && !(parseInt(a.indent, 10) === a.indent && a.indent > 0))
1896
- throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
1897
- if (j(a, "numericSeparator") && typeof a.numericSeparator != "boolean")
1898
- throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
1899
- var s = a.numericSeparator;
1900
- if (typeof e > "u")
1901
- return "undefined";
1902
- if (e === null)
1903
- return "null";
1904
- if (typeof e == "boolean")
1905
- return e ? "true" : "false";
1906
- if (typeof e == "string")
1907
- return Wr(e, a);
1908
- if (typeof e == "number") {
1909
- if (e === 0)
1910
- return 1 / 0 / e > 0 ? "0" : "-0";
1911
- var u = String(e);
1912
- return s ? rr(e, u) : u;
1913
- }
1914
- if (typeof e == "bigint") {
1915
- var l = String(e) + "n";
1916
- return s ? rr(e, l) : l;
1917
- }
1918
- var p = typeof a.depth > "u" ? 5 : a.depth;
1919
- if (typeof n > "u" && (n = 0), n >= p && p > 0 && typeof e == "object")
1920
- return pt(e) ? "[Array]" : "[Object]";
1921
- var c = Va(a, n);
1922
- if (typeof o > "u")
1923
- o = [];
1924
- else if (Hr(o, e) >= 0)
1925
- return "[Circular]";
1926
- function h(D, Y, Ae) {
1927
- if (Y && (o = Ca.call(o), o.push(Y)), Ae) {
1928
- var Z = {
1929
- depth: a.depth
1930
- };
1931
- return j(a, "quoteStyle") && (Z.quoteStyle = a.quoteStyle), t(D, Z, n + 1, o);
1932
- }
1933
- return t(D, a, n + 1, o);
1934
- }
1935
- if (typeof e == "function" && !ar(e)) {
1936
- var g = ka(e), d = Re(e, h);
1937
- return "[Function" + (g ? ": " + g : " (anonymous)") + "]" + (d.length > 0 ? " { " + $.call(d, ", ") + " }" : "");
1938
- }
1939
- if (zr(e)) {
1940
- var y = ie ? z.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : ct.call(e);
1941
- return typeof e == "object" && !ie ? de(y) : y;
1942
- }
1943
- if (qa(e)) {
1944
- for (var S = "<" + Yt.call(String(e.nodeName)), m = e.attributes || [], E = 0; E < m.length; E++)
1945
- S += " " + m[E].name + "=" + jr(Na(m[E].value), "double", a);
1946
- return S += ">", e.childNodes && e.childNodes.length && (S += "..."), S += "</" + Yt.call(String(e.nodeName)) + ">", S;
1947
- }
1948
- if (pt(e)) {
1820
+ if (Bt(e)) {
1949
1821
  if (e.length === 0)
1950
1822
  return "[]";
1951
- var R = Re(e, h);
1952
- return c && !Ja(R) ? "[" + dt(R, c) + "]" : "[ " + $.call(R, ", ") + " ]";
1823
+ var v = Te(e, d);
1824
+ return p && !ci(v) ? "[" + Lt(v, p) + "]" : "[ " + k.call(v, ", ") + " ]";
1953
1825
  }
1954
- if (_a(e)) {
1955
- var U = Re(e, h);
1956
- return !("cause" in Error.prototype) && "cause" in e && !Mr.call(e, "cause") ? "{ [" + String(e) + "] " + $.call(Zt.call("[cause]: " + h(e.cause), U), ", ") + " }" : U.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + $.call(U, ", ") + " }";
1826
+ if (Ka(e)) {
1827
+ var T = Te(e, d);
1828
+ return !("cause" in Error.prototype) && "cause" in e && !yn.call(e, "cause") ? "{ [" + String(e) + "] " + k.call(mr.call("[cause]: " + d(e.cause), T), ", ") + " }" : T.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + k.call(T, ", ") + " }";
1957
1829
  }
1958
1830
  if (typeof e == "object" && i) {
1959
- if (or && typeof e[or] == "function" && ft)
1960
- return ft(e, { depth: p - n });
1831
+ if (Sr && typeof e[Sr] == "function" && It)
1832
+ return It(e, { depth: c - r });
1961
1833
  if (i !== "symbol" && typeof e.inspect == "function")
1962
1834
  return e.inspect();
1963
1835
  }
1964
- if (Ma(e)) {
1965
- var ce = [];
1966
- return Kt && Kt.call(e, function(D, Y) {
1967
- ce.push(h(Y, e, !0) + " => " + h(D, e));
1968
- }), ir("Map", Ue.call(e), ce, c);
1969
- }
1970
- if (Ha(e)) {
1971
- var Oe = [];
1972
- return Qt && Qt.call(e, function(D) {
1973
- Oe.push(h(D, e));
1974
- }), ir("Set", Le.call(e), Oe, c);
1975
- }
1976
- if (ja(e))
1977
- return Ye("WeakMap");
1978
- if (Wa(e))
1979
- return Ye("WeakSet");
1980
- if (za(e))
1981
- return Ye("WeakRef");
1982
- if (Da(e))
1983
- return de(h(Number(e)));
1984
- if (Ua(e))
1985
- return de(h(ut.call(e)));
1986
- if (Ba(e))
1987
- return de(Aa.call(e));
1988
- if (Ia(e))
1989
- return de(h(String(e)));
1836
+ if (ri(e)) {
1837
+ var A = [];
1838
+ return pr && pr.call(e, function(D, W) {
1839
+ A.push(d(W, e, !0) + " => " + d(D, e));
1840
+ }), Ar("Map", ke.call(e), A, p);
1841
+ }
1842
+ if (ai(e)) {
1843
+ var _ = [];
1844
+ return dr && dr.call(e, function(D) {
1845
+ _.push(d(D, e));
1846
+ }), Ar("Set", qe.call(e), _, p);
1847
+ }
1848
+ if (ni(e))
1849
+ return ct("WeakMap");
1850
+ if (ii(e))
1851
+ return ct("WeakSet");
1852
+ if (oi(e))
1853
+ return ct("WeakRef");
1854
+ if (Xa(e))
1855
+ return ye(d(Number(e)));
1856
+ if (Ya(e))
1857
+ return ye(d($t.call(e)));
1858
+ if (Za(e))
1859
+ return ye(ka.call(e));
1860
+ if (Qa(e))
1861
+ return ye(d(String(e)));
1990
1862
  if (typeof window < "u" && e === window)
1991
1863
  return "{ [object Window] }";
1992
- if (e === Co)
1864
+ if (typeof globalThis < "u" && e === globalThis || typeof fr < "u" && e === fr)
1993
1865
  return "{ [object globalThis] }";
1994
- if (!$a(e) && !ar(e)) {
1995
- var W = Re(e, h), L = tr ? tr(e) === Object.prototype : e instanceof Object || e.constructor === Object, Q = e instanceof Object ? "" : "null prototype", X = !L && x && Object(e) === e && x in e ? At.call(H(e), 8, -1) : Q ? "Object" : "", fe = L || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", F = fe + (X || Q ? "[" + $.call(Zt.call([], X || [], Q || []), ": ") + "] " : "");
1996
- return W.length === 0 ? F + "{}" : c ? F + "{" + dt(W, c) + "}" : F + "{ " + $.call(W, ", ") + " }";
1866
+ if (!Va(e) && !Er(e)) {
1867
+ var N = Te(e, d), q = vr ? vr(e) === Object.prototype : e instanceof Object || e.constructor === Object, B = e instanceof Object ? "" : "null prototype", z = !q && ge && Object(e) === e && ge in e ? Gt.call(V(e), 8, -1) : B ? "Object" : "", Pe = q || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", re = Pe + (z || B ? "[" + k.call(mr.call([], z || [], B || []), ": ") + "] " : "");
1868
+ return N.length === 0 ? re + "{}" : p ? re + "{" + Lt(N, p) + "}" : re + "{ " + k.call(N, ", ") + " }";
1997
1869
  }
1998
1870
  return String(e);
1999
1871
  };
2000
- function jr(t, e, r) {
2001
- var n = (r.quoteStyle || e) === "double" ? '"' : "'";
2002
- return n + t + n;
1872
+ function mn(t, e, n) {
1873
+ var r = n.quoteStyle || e, o = hn[r];
1874
+ return o + t + o;
2003
1875
  }
2004
- function Na(t) {
2005
- return z.call(String(t), /"/g, "&quot;");
1876
+ function Ja(t) {
1877
+ return J.call(String(t), /"/g, "&quot;");
2006
1878
  }
2007
- function pt(t) {
2008
- return H(t) === "[object Array]" && (!x || !(typeof t == "object" && x in t));
1879
+ function te(t) {
1880
+ return !ge || !(typeof t == "object" && (ge in t || typeof t[ge] < "u"));
2009
1881
  }
2010
- function $a(t) {
2011
- return H(t) === "[object Date]" && (!x || !(typeof t == "object" && x in t));
1882
+ function Bt(t) {
1883
+ return V(t) === "[object Array]" && te(t);
2012
1884
  }
2013
- function ar(t) {
2014
- return H(t) === "[object RegExp]" && (!x || !(typeof t == "object" && x in t));
1885
+ function Va(t) {
1886
+ return V(t) === "[object Date]" && te(t);
2015
1887
  }
2016
- function _a(t) {
2017
- return H(t) === "[object Error]" && (!x || !(typeof t == "object" && x in t));
1888
+ function Er(t) {
1889
+ return V(t) === "[object RegExp]" && te(t);
2018
1890
  }
2019
- function Ia(t) {
2020
- return H(t) === "[object String]" && (!x || !(typeof t == "object" && x in t));
1891
+ function Ka(t) {
1892
+ return V(t) === "[object Error]" && te(t);
2021
1893
  }
2022
- function Da(t) {
2023
- return H(t) === "[object Number]" && (!x || !(typeof t == "object" && x in t));
1894
+ function Qa(t) {
1895
+ return V(t) === "[object String]" && te(t);
2024
1896
  }
2025
- function Ba(t) {
2026
- return H(t) === "[object Boolean]" && (!x || !(typeof t == "object" && x in t));
1897
+ function Xa(t) {
1898
+ return V(t) === "[object Number]" && te(t);
2027
1899
  }
2028
- function zr(t) {
2029
- if (ie)
1900
+ function Za(t) {
1901
+ return V(t) === "[object Boolean]" && te(t);
1902
+ }
1903
+ function gn(t) {
1904
+ if (se)
2030
1905
  return t && typeof t == "object" && t instanceof Symbol;
2031
1906
  if (typeof t == "symbol")
2032
1907
  return !0;
2033
- if (!t || typeof t != "object" || !ct)
1908
+ if (!t || typeof t != "object" || !Dt)
2034
1909
  return !1;
2035
1910
  try {
2036
- return ct.call(t), !0;
1911
+ return Dt.call(t), !0;
2037
1912
  } catch {
2038
1913
  }
2039
1914
  return !1;
2040
1915
  }
2041
- function Ua(t) {
2042
- if (!t || typeof t != "object" || !ut)
1916
+ function Ya(t) {
1917
+ if (!t || typeof t != "object" || !$t)
2043
1918
  return !1;
2044
1919
  try {
2045
- return ut.call(t), !0;
1920
+ return $t.call(t), !0;
2046
1921
  } catch {
2047
1922
  }
2048
1923
  return !1;
2049
1924
  }
2050
- var La = Object.prototype.hasOwnProperty || function(t) {
1925
+ var ei = Object.prototype.hasOwnProperty || function(t) {
2051
1926
  return t in this;
2052
1927
  };
2053
- function j(t, e) {
2054
- return La.call(t, e);
1928
+ function H(t, e) {
1929
+ return ei.call(t, e);
2055
1930
  }
2056
- function H(t) {
2057
- return Ra.call(t);
1931
+ function V(t) {
1932
+ return qa.call(t);
2058
1933
  }
2059
- function ka(t) {
1934
+ function ti(t) {
2060
1935
  if (t.name)
2061
1936
  return t.name;
2062
- var e = xa.call(Pa.call(t), /^function\s*([\w$]+)/);
1937
+ var e = Ha.call(ja.call(t), /^function\s*([\w$]+)/);
2063
1938
  return e ? e[1] : null;
2064
1939
  }
2065
- function Hr(t, e) {
1940
+ function vn(t, e) {
2066
1941
  if (t.indexOf)
2067
1942
  return t.indexOf(e);
2068
- for (var r = 0, n = t.length; r < n; r++)
2069
- if (t[r] === e)
2070
- return r;
1943
+ for (var n = 0, r = t.length; n < r; n++)
1944
+ if (t[n] === e)
1945
+ return n;
2071
1946
  return -1;
2072
1947
  }
2073
- function Ma(t) {
2074
- if (!Ue || !t || typeof t != "object")
1948
+ function ri(t) {
1949
+ if (!ke || !t || typeof t != "object")
2075
1950
  return !1;
2076
1951
  try {
2077
- Ue.call(t);
1952
+ ke.call(t);
2078
1953
  try {
2079
- Le.call(t);
1954
+ qe.call(t);
2080
1955
  } catch {
2081
1956
  return !0;
2082
1957
  }
@@ -2085,7 +1960,7 @@ function Ma(t) {
2085
1960
  }
2086
1961
  return !1;
2087
1962
  }
2088
- function ja(t) {
1963
+ function ni(t) {
2089
1964
  if (!he || !t || typeof t != "object")
2090
1965
  return !1;
2091
1966
  try {
@@ -2100,22 +1975,22 @@ function ja(t) {
2100
1975
  }
2101
1976
  return !1;
2102
1977
  }
2103
- function za(t) {
2104
- if (!Xt || !t || typeof t != "object")
1978
+ function oi(t) {
1979
+ if (!yr || !t || typeof t != "object")
2105
1980
  return !1;
2106
1981
  try {
2107
- return Xt.call(t), !0;
1982
+ return yr.call(t), !0;
2108
1983
  } catch {
2109
1984
  }
2110
1985
  return !1;
2111
1986
  }
2112
- function Ha(t) {
2113
- if (!Le || !t || typeof t != "object")
1987
+ function ai(t) {
1988
+ if (!qe || !t || typeof t != "object")
2114
1989
  return !1;
2115
1990
  try {
2116
- Le.call(t);
1991
+ qe.call(t);
2117
1992
  try {
2118
- Ue.call(t);
1993
+ ke.call(t);
2119
1994
  } catch {
2120
1995
  return !0;
2121
1996
  }
@@ -2124,7 +1999,7 @@ function Ha(t) {
2124
1999
  }
2125
2000
  return !1;
2126
2001
  }
2127
- function Wa(t) {
2002
+ function ii(t) {
2128
2003
  if (!me || !t || typeof t != "object")
2129
2004
  return !1;
2130
2005
  try {
@@ -2139,547 +2014,1113 @@ function Wa(t) {
2139
2014
  }
2140
2015
  return !1;
2141
2016
  }
2142
- function qa(t) {
2017
+ function si(t) {
2143
2018
  return !t || typeof t != "object" ? !1 : typeof HTMLElement < "u" && t instanceof HTMLElement ? !0 : typeof t.nodeName == "string" && typeof t.getAttribute == "function";
2144
2019
  }
2145
- function Wr(t, e) {
2020
+ function wn(t, e) {
2146
2021
  if (t.length > e.maxStringLength) {
2147
- var r = t.length - e.maxStringLength, n = "... " + r + " more character" + (r > 1 ? "s" : "");
2148
- return Wr(At.call(t, 0, e.maxStringLength), e) + n;
2022
+ var n = t.length - e.maxStringLength, r = "... " + n + " more character" + (n > 1 ? "s" : "");
2023
+ return wn(Gt.call(t, 0, e.maxStringLength), e) + r;
2149
2024
  }
2150
- var o = z.call(z.call(t, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Ga);
2151
- return jr(o, "single", e);
2025
+ var o = Ga[e.quoteStyle || "single"];
2026
+ o.lastIndex = 0;
2027
+ var a = J.call(J.call(t, o, "\\$1"), /[\x00-\x1f]/g, li);
2028
+ return mn(a, "single", e);
2152
2029
  }
2153
- function Ga(t) {
2154
- var e = t.charCodeAt(0), r = {
2030
+ function li(t) {
2031
+ var e = t.charCodeAt(0), n = {
2155
2032
  8: "b",
2156
2033
  9: "t",
2157
2034
  10: "n",
2158
2035
  12: "f",
2159
2036
  13: "r"
2160
2037
  }[e];
2161
- return r ? "\\" + r : "\\x" + (e < 16 ? "0" : "") + Ta.call(e.toString(16));
2038
+ return n ? "\\" + n : "\\x" + (e < 16 ? "0" : "") + za.call(e.toString(16));
2162
2039
  }
2163
- function de(t) {
2040
+ function ye(t) {
2164
2041
  return "Object(" + t + ")";
2165
2042
  }
2166
- function Ye(t) {
2043
+ function ct(t) {
2167
2044
  return t + " { ? }";
2168
2045
  }
2169
- function ir(t, e, r, n) {
2170
- var o = n ? dt(r, n) : $.call(r, ", ");
2046
+ function Ar(t, e, n, r) {
2047
+ var o = r ? Lt(n, r) : k.call(n, ", ");
2171
2048
  return t + " (" + e + ") {" + o + "}";
2172
2049
  }
2173
- function Ja(t) {
2050
+ function ci(t) {
2174
2051
  for (var e = 0; e < t.length; e++)
2175
- if (Hr(t[e], `
2052
+ if (vn(t[e], `
2176
2053
  `) >= 0)
2177
2054
  return !1;
2178
2055
  return !0;
2179
2056
  }
2180
- function Va(t, e) {
2181
- var r;
2057
+ function ui(t, e) {
2058
+ var n;
2182
2059
  if (t.indent === " ")
2183
- r = " ";
2060
+ n = " ";
2184
2061
  else if (typeof t.indent == "number" && t.indent > 0)
2185
- r = $.call(Array(t.indent + 1), " ");
2062
+ n = k.call(Array(t.indent + 1), " ");
2186
2063
  else
2187
2064
  return null;
2188
2065
  return {
2189
- base: r,
2190
- prev: $.call(Array(e + 1), r)
2066
+ base: n,
2067
+ prev: k.call(Array(e + 1), n)
2191
2068
  };
2192
2069
  }
2193
- function dt(t, e) {
2070
+ function Lt(t, e) {
2194
2071
  if (t.length === 0)
2195
2072
  return "";
2196
- var r = `
2073
+ var n = `
2197
2074
  ` + e.prev + e.base;
2198
- return r + $.call(t, "," + r) + `
2075
+ return n + k.call(t, "," + n) + `
2199
2076
  ` + e.prev;
2200
2077
  }
2201
- function Re(t, e) {
2202
- var r = pt(t), n = [];
2203
- if (r) {
2204
- n.length = t.length;
2078
+ function Te(t, e) {
2079
+ var n = Bt(t), r = [];
2080
+ if (n) {
2081
+ r.length = t.length;
2205
2082
  for (var o = 0; o < t.length; o++)
2206
- n[o] = j(t, o) ? e(t[o], t) : "";
2083
+ r[o] = H(t, o) ? e(t[o], t) : "";
2207
2084
  }
2208
- var a = typeof Xe == "function" ? Xe(t) : [], i;
2209
- if (ie) {
2085
+ var a = typeof lt == "function" ? lt(t) : [], i;
2086
+ if (se) {
2210
2087
  i = {};
2211
2088
  for (var s = 0; s < a.length; s++)
2212
2089
  i["$" + a[s]] = a[s];
2213
2090
  }
2214
2091
  for (var u in t)
2215
- j(t, u) && (r && String(Number(u)) === u && u < t.length || ie && i["$" + u] instanceof Symbol || (kr.call(/[^\w$]/, u) ? n.push(e(u, t) + ": " + e(t[u], t)) : n.push(u + ": " + e(t[u], t))));
2216
- if (typeof Xe == "function")
2092
+ H(t, u) && (n && String(Number(u)) === u && u < t.length || se && i["$" + u] instanceof Symbol || (dn.call(/[^\w$]/, u) ? r.push(e(u, t) + ": " + e(t[u], t)) : r.push(u + ": " + e(t[u], t))));
2093
+ if (typeof lt == "function")
2217
2094
  for (var l = 0; l < a.length; l++)
2218
- Mr.call(t, a[l]) && n.push("[" + e(a[l]) + "]: " + e(t[a[l]], t));
2219
- return n;
2095
+ yn.call(t, a[l]) && r.push("[" + e(a[l]) + "]: " + e(t[a[l]], t));
2096
+ return r;
2220
2097
  }
2221
- var Rt = K, ue = ga, Ka = Fa, Qa = Rt("%TypeError%"), Pe = Rt("%WeakMap%", !0), xe = Rt("%Map%", !0), Xa = ue("WeakMap.prototype.get", !0), Ya = ue("WeakMap.prototype.set", !0), Za = ue("WeakMap.prototype.has", !0), ei = ue("Map.prototype.get", !0), ti = ue("Map.prototype.set", !0), ri = ue("Map.prototype.has", !0), Pt = function(t, e) {
2222
- for (var r = t, n; (n = r.next) !== null; r = n)
2223
- if (n.key === e)
2224
- return r.next = n.next, n.next = t.next, t.next = n, n;
2225
- }, ni = function(t, e) {
2226
- var r = Pt(t, e);
2227
- return r && r.value;
2228
- }, oi = function(t, e, r) {
2229
- var n = Pt(t, e);
2230
- n ? n.value = r : t.next = {
2231
- // eslint-disable-line no-param-reassign
2098
+ var fi = Xe, pi = fe, Ze = function(t, e, n) {
2099
+ for (var r = t, o; (o = r.next) != null; r = o)
2100
+ if (o.key === e)
2101
+ return r.next = o.next, n || (o.next = /** @type {NonNullable<typeof list.next>} */
2102
+ t.next, t.next = o), o;
2103
+ }, di = function(t, e) {
2104
+ if (t) {
2105
+ var n = Ze(t, e);
2106
+ return n && n.value;
2107
+ }
2108
+ }, yi = function(t, e, n) {
2109
+ var r = Ze(t, e);
2110
+ r ? r.value = n : t.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
2111
+ {
2112
+ // eslint-disable-line no-param-reassign, no-extra-parens
2232
2113
  key: e,
2233
2114
  next: t.next,
2234
- value: r
2115
+ value: n
2235
2116
  };
2236
- }, ai = function(t, e) {
2237
- return !!Pt(t, e);
2238
- }, ii = function() {
2239
- var e, r, n, o = {
2240
- assert: function(a) {
2241
- if (!o.has(a))
2242
- throw new Qa("Side channel does not contain " + Ka(a));
2117
+ }, hi = function(t, e) {
2118
+ return t ? !!Ze(t, e) : !1;
2119
+ }, mi = function(t, e) {
2120
+ if (t)
2121
+ return Ze(t, e, !0);
2122
+ }, gi = function() {
2123
+ var e, n = {
2124
+ assert: function(r) {
2125
+ if (!n.has(r))
2126
+ throw new pi("Side channel does not contain " + fi(r));
2243
2127
  },
2244
- get: function(a) {
2245
- if (Pe && a && (typeof a == "object" || typeof a == "function")) {
2246
- if (e)
2247
- return Xa(e, a);
2248
- } else if (xe) {
2249
- if (r)
2250
- return ei(r, a);
2251
- } else if (n)
2252
- return ni(n, a);
2128
+ delete: function(r) {
2129
+ var o = e && e.next, a = mi(e, r);
2130
+ return a && o && o === a && (e = void 0), !!a;
2131
+ },
2132
+ get: function(r) {
2133
+ return di(e, r);
2134
+ },
2135
+ has: function(r) {
2136
+ return hi(e, r);
2137
+ },
2138
+ set: function(r, o) {
2139
+ e || (e = {
2140
+ next: void 0
2141
+ }), yi(
2142
+ /** @type {NonNullable<typeof $o>} */
2143
+ e,
2144
+ r,
2145
+ o
2146
+ );
2147
+ }
2148
+ };
2149
+ return n;
2150
+ }, bn = Object, vi = Error, wi = EvalError, bi = RangeError, Si = ReferenceError, Ei = SyntaxError, Ai = URIError, Oi = Math.abs, Ri = Math.floor, Pi = Math.max, Ti = Math.min, xi = Math.pow, Ci = Math.round, _i = Number.isNaN || function(e) {
2151
+ return e !== e;
2152
+ }, Ni = _i, Fi = function(e) {
2153
+ return Ni(e) || e === 0 ? e : e < 0 ? -1 : 1;
2154
+ }, $i = Object.getOwnPropertyDescriptor, Ie = $i;
2155
+ if (Ie)
2156
+ try {
2157
+ Ie([], "length");
2158
+ } catch {
2159
+ Ie = null;
2160
+ }
2161
+ var Sn = Ie, Be = Object.defineProperty || !1;
2162
+ if (Be)
2163
+ try {
2164
+ Be({}, "a", { value: 1 });
2165
+ } catch {
2166
+ Be = !1;
2167
+ }
2168
+ var Di = Be, ut, Or;
2169
+ function Ii() {
2170
+ return Or || (Or = 1, ut = function() {
2171
+ if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
2172
+ return !1;
2173
+ if (typeof Symbol.iterator == "symbol")
2174
+ return !0;
2175
+ var e = {}, n = Symbol("test"), r = Object(n);
2176
+ if (typeof n == "string" || Object.prototype.toString.call(n) !== "[object Symbol]" || Object.prototype.toString.call(r) !== "[object Symbol]")
2177
+ return !1;
2178
+ var o = 42;
2179
+ e[n] = o;
2180
+ for (var a in e)
2181
+ return !1;
2182
+ if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0)
2183
+ return !1;
2184
+ var i = Object.getOwnPropertySymbols(e);
2185
+ if (i.length !== 1 || i[0] !== n || !Object.prototype.propertyIsEnumerable.call(e, n))
2186
+ return !1;
2187
+ if (typeof Object.getOwnPropertyDescriptor == "function") {
2188
+ var s = (
2189
+ /** @type {PropertyDescriptor} */
2190
+ Object.getOwnPropertyDescriptor(e, n)
2191
+ );
2192
+ if (s.value !== o || s.enumerable !== !0)
2193
+ return !1;
2194
+ }
2195
+ return !0;
2196
+ }), ut;
2197
+ }
2198
+ var ft, Rr;
2199
+ function Bi() {
2200
+ if (Rr) return ft;
2201
+ Rr = 1;
2202
+ var t = typeof Symbol < "u" && Symbol, e = Ii();
2203
+ return ft = function() {
2204
+ return typeof t != "function" || typeof Symbol != "function" || typeof t("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
2205
+ }, ft;
2206
+ }
2207
+ var pt, Pr;
2208
+ function En() {
2209
+ return Pr || (Pr = 1, pt = typeof Reflect < "u" && Reflect.getPrototypeOf || null), pt;
2210
+ }
2211
+ var dt, Tr;
2212
+ function An() {
2213
+ if (Tr) return dt;
2214
+ Tr = 1;
2215
+ var t = bn;
2216
+ return dt = t.getPrototypeOf || null, dt;
2217
+ }
2218
+ var yt, xr;
2219
+ function Li() {
2220
+ if (xr) return yt;
2221
+ xr = 1;
2222
+ var t = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, n = Math.max, r = "[object Function]", o = function(u, l) {
2223
+ for (var c = [], p = 0; p < u.length; p += 1)
2224
+ c[p] = u[p];
2225
+ for (var d = 0; d < l.length; d += 1)
2226
+ c[d + u.length] = l[d];
2227
+ return c;
2228
+ }, a = function(u, l) {
2229
+ for (var c = [], p = l, d = 0; p < u.length; p += 1, d += 1)
2230
+ c[d] = u[p];
2231
+ return c;
2232
+ }, i = function(s, u) {
2233
+ for (var l = "", c = 0; c < s.length; c += 1)
2234
+ l += s[c], c + 1 < s.length && (l += u);
2235
+ return l;
2236
+ };
2237
+ return yt = function(u) {
2238
+ var l = this;
2239
+ if (typeof l != "function" || e.apply(l) !== r)
2240
+ throw new TypeError(t + l);
2241
+ for (var c = a(arguments, 1), p, d = function() {
2242
+ if (this instanceof p) {
2243
+ var S = l.apply(
2244
+ this,
2245
+ o(c, arguments)
2246
+ );
2247
+ return Object(S) === S ? S : this;
2248
+ }
2249
+ return l.apply(
2250
+ u,
2251
+ o(c, arguments)
2252
+ );
2253
+ }, g = n(0, l.length - c.length), y = [], m = 0; m < g; m++)
2254
+ y[m] = "$" + m;
2255
+ if (p = Function("binder", "return function (" + i(y, ",") + "){ return binder.apply(this,arguments); }")(d), l.prototype) {
2256
+ var h = function() {
2257
+ };
2258
+ h.prototype = l.prototype, p.prototype = new h(), h.prototype = null;
2259
+ }
2260
+ return p;
2261
+ }, yt;
2262
+ }
2263
+ var ht, Cr;
2264
+ function Ye() {
2265
+ if (Cr) return ht;
2266
+ Cr = 1;
2267
+ var t = Li();
2268
+ return ht = Function.prototype.bind || t, ht;
2269
+ }
2270
+ var mt, _r;
2271
+ function Jt() {
2272
+ return _r || (_r = 1, mt = Function.prototype.call), mt;
2273
+ }
2274
+ var gt, Nr;
2275
+ function On() {
2276
+ return Nr || (Nr = 1, gt = Function.prototype.apply), gt;
2277
+ }
2278
+ var Ui = typeof Reflect < "u" && Reflect && Reflect.apply, Mi = Ye(), ki = On(), qi = Jt(), ji = Ui, Hi = ji || Mi.call(qi, ki), zi = Ye(), Wi = fe, Gi = Jt(), Ji = Hi, Rn = function(e) {
2279
+ if (e.length < 1 || typeof e[0] != "function")
2280
+ throw new Wi("a function is required");
2281
+ return Ji(zi, Gi, e);
2282
+ }, vt, Fr;
2283
+ function Vi() {
2284
+ if (Fr) return vt;
2285
+ Fr = 1;
2286
+ var t = Rn, e = Sn, n;
2287
+ try {
2288
+ n = /** @type {{ __proto__?: typeof Array.prototype }} */
2289
+ [].__proto__ === Array.prototype;
2290
+ } catch (i) {
2291
+ if (!i || typeof i != "object" || !("code" in i) || i.code !== "ERR_PROTO_ACCESS")
2292
+ throw i;
2293
+ }
2294
+ var r = !!n && e && e(
2295
+ Object.prototype,
2296
+ /** @type {keyof typeof Object.prototype} */
2297
+ "__proto__"
2298
+ ), o = Object, a = o.getPrototypeOf;
2299
+ return vt = r && typeof r.get == "function" ? t([r.get]) : typeof a == "function" ? (
2300
+ /** @type {import('./get')} */
2301
+ function(s) {
2302
+ return a(s == null ? s : o(s));
2303
+ }
2304
+ ) : !1, vt;
2305
+ }
2306
+ var wt, $r;
2307
+ function Ki() {
2308
+ if ($r) return wt;
2309
+ $r = 1;
2310
+ var t = En(), e = An(), n = Vi();
2311
+ return wt = t ? function(o) {
2312
+ return t(o);
2313
+ } : e ? function(o) {
2314
+ if (!o || typeof o != "object" && typeof o != "function")
2315
+ throw new TypeError("getProto: not an object");
2316
+ return e(o);
2317
+ } : n ? function(o) {
2318
+ return n(o);
2319
+ } : null, wt;
2320
+ }
2321
+ var bt, Dr;
2322
+ function Qi() {
2323
+ if (Dr) return bt;
2324
+ Dr = 1;
2325
+ var t = Function.prototype.call, e = Object.prototype.hasOwnProperty, n = Ye();
2326
+ return bt = n.call(t, e), bt;
2327
+ }
2328
+ var b, Xi = bn, Zi = vi, Yi = wi, es = bi, ts = Si, le = Ei, ie = fe, rs = Ai, ns = Oi, os = Ri, as = Pi, is = Ti, ss = xi, ls = Ci, cs = Fi, Pn = Function, St = function(t) {
2329
+ try {
2330
+ return Pn('"use strict"; return (' + t + ").constructor;")();
2331
+ } catch {
2332
+ }
2333
+ }, be = Sn, us = Di, Et = function() {
2334
+ throw new ie();
2335
+ }, fs = be ? function() {
2336
+ try {
2337
+ return arguments.callee, Et;
2338
+ } catch {
2339
+ try {
2340
+ return be(arguments, "callee").get;
2341
+ } catch {
2342
+ return Et;
2343
+ }
2344
+ }
2345
+ }() : Et, ne = Bi()(), x = Ki(), ps = An(), ds = En(), Tn = On(), Ae = Jt(), ae = {}, ys = typeof Uint8Array > "u" || !x ? b : x(Uint8Array), Z = {
2346
+ __proto__: null,
2347
+ "%AggregateError%": typeof AggregateError > "u" ? b : AggregateError,
2348
+ "%Array%": Array,
2349
+ "%ArrayBuffer%": typeof ArrayBuffer > "u" ? b : ArrayBuffer,
2350
+ "%ArrayIteratorPrototype%": ne && x ? x([][Symbol.iterator]()) : b,
2351
+ "%AsyncFromSyncIteratorPrototype%": b,
2352
+ "%AsyncFunction%": ae,
2353
+ "%AsyncGenerator%": ae,
2354
+ "%AsyncGeneratorFunction%": ae,
2355
+ "%AsyncIteratorPrototype%": ae,
2356
+ "%Atomics%": typeof Atomics > "u" ? b : Atomics,
2357
+ "%BigInt%": typeof BigInt > "u" ? b : BigInt,
2358
+ "%BigInt64Array%": typeof BigInt64Array > "u" ? b : BigInt64Array,
2359
+ "%BigUint64Array%": typeof BigUint64Array > "u" ? b : BigUint64Array,
2360
+ "%Boolean%": Boolean,
2361
+ "%DataView%": typeof DataView > "u" ? b : DataView,
2362
+ "%Date%": Date,
2363
+ "%decodeURI%": decodeURI,
2364
+ "%decodeURIComponent%": decodeURIComponent,
2365
+ "%encodeURI%": encodeURI,
2366
+ "%encodeURIComponent%": encodeURIComponent,
2367
+ "%Error%": Zi,
2368
+ "%eval%": eval,
2369
+ // eslint-disable-line no-eval
2370
+ "%EvalError%": Yi,
2371
+ "%Float16Array%": typeof Float16Array > "u" ? b : Float16Array,
2372
+ "%Float32Array%": typeof Float32Array > "u" ? b : Float32Array,
2373
+ "%Float64Array%": typeof Float64Array > "u" ? b : Float64Array,
2374
+ "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? b : FinalizationRegistry,
2375
+ "%Function%": Pn,
2376
+ "%GeneratorFunction%": ae,
2377
+ "%Int8Array%": typeof Int8Array > "u" ? b : Int8Array,
2378
+ "%Int16Array%": typeof Int16Array > "u" ? b : Int16Array,
2379
+ "%Int32Array%": typeof Int32Array > "u" ? b : Int32Array,
2380
+ "%isFinite%": isFinite,
2381
+ "%isNaN%": isNaN,
2382
+ "%IteratorPrototype%": ne && x ? x(x([][Symbol.iterator]())) : b,
2383
+ "%JSON%": typeof JSON == "object" ? JSON : b,
2384
+ "%Map%": typeof Map > "u" ? b : Map,
2385
+ "%MapIteratorPrototype%": typeof Map > "u" || !ne || !x ? b : x((/* @__PURE__ */ new Map())[Symbol.iterator]()),
2386
+ "%Math%": Math,
2387
+ "%Number%": Number,
2388
+ "%Object%": Xi,
2389
+ "%Object.getOwnPropertyDescriptor%": be,
2390
+ "%parseFloat%": parseFloat,
2391
+ "%parseInt%": parseInt,
2392
+ "%Promise%": typeof Promise > "u" ? b : Promise,
2393
+ "%Proxy%": typeof Proxy > "u" ? b : Proxy,
2394
+ "%RangeError%": es,
2395
+ "%ReferenceError%": ts,
2396
+ "%Reflect%": typeof Reflect > "u" ? b : Reflect,
2397
+ "%RegExp%": RegExp,
2398
+ "%Set%": typeof Set > "u" ? b : Set,
2399
+ "%SetIteratorPrototype%": typeof Set > "u" || !ne || !x ? b : x((/* @__PURE__ */ new Set())[Symbol.iterator]()),
2400
+ "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? b : SharedArrayBuffer,
2401
+ "%String%": String,
2402
+ "%StringIteratorPrototype%": ne && x ? x(""[Symbol.iterator]()) : b,
2403
+ "%Symbol%": ne ? Symbol : b,
2404
+ "%SyntaxError%": le,
2405
+ "%ThrowTypeError%": fs,
2406
+ "%TypedArray%": ys,
2407
+ "%TypeError%": ie,
2408
+ "%Uint8Array%": typeof Uint8Array > "u" ? b : Uint8Array,
2409
+ "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? b : Uint8ClampedArray,
2410
+ "%Uint16Array%": typeof Uint16Array > "u" ? b : Uint16Array,
2411
+ "%Uint32Array%": typeof Uint32Array > "u" ? b : Uint32Array,
2412
+ "%URIError%": rs,
2413
+ "%WeakMap%": typeof WeakMap > "u" ? b : WeakMap,
2414
+ "%WeakRef%": typeof WeakRef > "u" ? b : WeakRef,
2415
+ "%WeakSet%": typeof WeakSet > "u" ? b : WeakSet,
2416
+ "%Function.prototype.call%": Ae,
2417
+ "%Function.prototype.apply%": Tn,
2418
+ "%Object.defineProperty%": us,
2419
+ "%Object.getPrototypeOf%": ps,
2420
+ "%Math.abs%": ns,
2421
+ "%Math.floor%": os,
2422
+ "%Math.max%": as,
2423
+ "%Math.min%": is,
2424
+ "%Math.pow%": ss,
2425
+ "%Math.round%": ls,
2426
+ "%Math.sign%": cs,
2427
+ "%Reflect.getPrototypeOf%": ds
2428
+ };
2429
+ if (x)
2430
+ try {
2431
+ null.error;
2432
+ } catch (t) {
2433
+ var hs = x(x(t));
2434
+ Z["%Error.prototype%"] = hs;
2435
+ }
2436
+ var ms = function t(e) {
2437
+ var n;
2438
+ if (e === "%AsyncFunction%")
2439
+ n = St("async function () {}");
2440
+ else if (e === "%GeneratorFunction%")
2441
+ n = St("function* () {}");
2442
+ else if (e === "%AsyncGeneratorFunction%")
2443
+ n = St("async function* () {}");
2444
+ else if (e === "%AsyncGenerator%") {
2445
+ var r = t("%AsyncGeneratorFunction%");
2446
+ r && (n = r.prototype);
2447
+ } else if (e === "%AsyncIteratorPrototype%") {
2448
+ var o = t("%AsyncGenerator%");
2449
+ o && x && (n = x(o.prototype));
2450
+ }
2451
+ return Z[e] = n, n;
2452
+ }, Ir = {
2453
+ __proto__: null,
2454
+ "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
2455
+ "%ArrayPrototype%": ["Array", "prototype"],
2456
+ "%ArrayProto_entries%": ["Array", "prototype", "entries"],
2457
+ "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
2458
+ "%ArrayProto_keys%": ["Array", "prototype", "keys"],
2459
+ "%ArrayProto_values%": ["Array", "prototype", "values"],
2460
+ "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
2461
+ "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
2462
+ "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
2463
+ "%BooleanPrototype%": ["Boolean", "prototype"],
2464
+ "%DataViewPrototype%": ["DataView", "prototype"],
2465
+ "%DatePrototype%": ["Date", "prototype"],
2466
+ "%ErrorPrototype%": ["Error", "prototype"],
2467
+ "%EvalErrorPrototype%": ["EvalError", "prototype"],
2468
+ "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
2469
+ "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
2470
+ "%FunctionPrototype%": ["Function", "prototype"],
2471
+ "%Generator%": ["GeneratorFunction", "prototype"],
2472
+ "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
2473
+ "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
2474
+ "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
2475
+ "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
2476
+ "%JSONParse%": ["JSON", "parse"],
2477
+ "%JSONStringify%": ["JSON", "stringify"],
2478
+ "%MapPrototype%": ["Map", "prototype"],
2479
+ "%NumberPrototype%": ["Number", "prototype"],
2480
+ "%ObjectPrototype%": ["Object", "prototype"],
2481
+ "%ObjProto_toString%": ["Object", "prototype", "toString"],
2482
+ "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
2483
+ "%PromisePrototype%": ["Promise", "prototype"],
2484
+ "%PromiseProto_then%": ["Promise", "prototype", "then"],
2485
+ "%Promise_all%": ["Promise", "all"],
2486
+ "%Promise_reject%": ["Promise", "reject"],
2487
+ "%Promise_resolve%": ["Promise", "resolve"],
2488
+ "%RangeErrorPrototype%": ["RangeError", "prototype"],
2489
+ "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
2490
+ "%RegExpPrototype%": ["RegExp", "prototype"],
2491
+ "%SetPrototype%": ["Set", "prototype"],
2492
+ "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
2493
+ "%StringPrototype%": ["String", "prototype"],
2494
+ "%SymbolPrototype%": ["Symbol", "prototype"],
2495
+ "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
2496
+ "%TypedArrayPrototype%": ["TypedArray", "prototype"],
2497
+ "%TypeErrorPrototype%": ["TypeError", "prototype"],
2498
+ "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
2499
+ "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
2500
+ "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
2501
+ "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
2502
+ "%URIErrorPrototype%": ["URIError", "prototype"],
2503
+ "%WeakMapPrototype%": ["WeakMap", "prototype"],
2504
+ "%WeakSetPrototype%": ["WeakSet", "prototype"]
2505
+ }, Oe = Ye(), je = Qi(), gs = Oe.call(Ae, Array.prototype.concat), vs = Oe.call(Tn, Array.prototype.splice), Br = Oe.call(Ae, String.prototype.replace), He = Oe.call(Ae, String.prototype.slice), ws = Oe.call(Ae, RegExp.prototype.exec), bs = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Ss = /\\(\\)?/g, Es = function(e) {
2506
+ var n = He(e, 0, 1), r = He(e, -1);
2507
+ if (n === "%" && r !== "%")
2508
+ throw new le("invalid intrinsic syntax, expected closing `%`");
2509
+ if (r === "%" && n !== "%")
2510
+ throw new le("invalid intrinsic syntax, expected opening `%`");
2511
+ var o = [];
2512
+ return Br(e, bs, function(a, i, s, u) {
2513
+ o[o.length] = s ? Br(u, Ss, "$1") : i || a;
2514
+ }), o;
2515
+ }, As = function(e, n) {
2516
+ var r = e, o;
2517
+ if (je(Ir, r) && (o = Ir[r], r = "%" + o[0] + "%"), je(Z, r)) {
2518
+ var a = Z[r];
2519
+ if (a === ae && (a = ms(r)), typeof a > "u" && !n)
2520
+ throw new ie("intrinsic " + e + " exists, but is not available. Please file an issue!");
2521
+ return {
2522
+ alias: o,
2523
+ name: r,
2524
+ value: a
2525
+ };
2526
+ }
2527
+ throw new le("intrinsic " + e + " does not exist!");
2528
+ }, Vt = function(e, n) {
2529
+ if (typeof e != "string" || e.length === 0)
2530
+ throw new ie("intrinsic name must be a non-empty string");
2531
+ if (arguments.length > 1 && typeof n != "boolean")
2532
+ throw new ie('"allowMissing" argument must be a boolean');
2533
+ if (ws(/^%?[^%]*%?$/, e) === null)
2534
+ throw new le("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
2535
+ var r = Es(e), o = r.length > 0 ? r[0] : "", a = As("%" + o + "%", n), i = a.name, s = a.value, u = !1, l = a.alias;
2536
+ l && (o = l[0], vs(r, gs([0, 1], l)));
2537
+ for (var c = 1, p = !0; c < r.length; c += 1) {
2538
+ var d = r[c], g = He(d, 0, 1), y = He(d, -1);
2539
+ if ((g === '"' || g === "'" || g === "`" || y === '"' || y === "'" || y === "`") && g !== y)
2540
+ throw new le("property names with quotes must have matching quotes");
2541
+ if ((d === "constructor" || !p) && (u = !0), o += "." + d, i = "%" + o + "%", je(Z, i))
2542
+ s = Z[i];
2543
+ else if (s != null) {
2544
+ if (!(d in s)) {
2545
+ if (!n)
2546
+ throw new ie("base intrinsic for " + e + " exists, but the property is not available.");
2547
+ return;
2548
+ }
2549
+ if (be && c + 1 >= r.length) {
2550
+ var m = be(s, d);
2551
+ p = !!m, p && "get" in m && !("originalValue" in m.get) ? s = m.get : s = s[d];
2552
+ } else
2553
+ p = je(s, d), s = s[d];
2554
+ p && !u && (Z[i] = s);
2555
+ }
2556
+ }
2557
+ return s;
2558
+ }, xn = Vt, Cn = Rn, Os = Cn([xn("%String.prototype.indexOf%")]), _n = function(e, n) {
2559
+ var r = (
2560
+ /** @type {(this: unknown, ...args: unknown[]) => unknown} */
2561
+ xn(e, !!n)
2562
+ );
2563
+ return typeof r == "function" && Os(e, ".prototype.") > -1 ? Cn(
2564
+ /** @type {const} */
2565
+ [r]
2566
+ ) : r;
2567
+ }, Rs = Vt, Re = _n, Ps = Xe, Ts = fe, Lr = Rs("%Map%", !0), xs = Re("Map.prototype.get", !0), Cs = Re("Map.prototype.set", !0), _s = Re("Map.prototype.has", !0), Ns = Re("Map.prototype.delete", !0), Fs = Re("Map.prototype.size", !0), Nn = !!Lr && /** @type {Exclude<import('.'), false>} */
2568
+ function() {
2569
+ var e, n = {
2570
+ assert: function(r) {
2571
+ if (!n.has(r))
2572
+ throw new Ts("Side channel does not contain " + Ps(r));
2253
2573
  },
2254
- has: function(a) {
2255
- if (Pe && a && (typeof a == "object" || typeof a == "function")) {
2256
- if (e)
2257
- return Za(e, a);
2258
- } else if (xe) {
2259
- if (r)
2260
- return ri(r, a);
2261
- } else if (n)
2262
- return ai(n, a);
2574
+ delete: function(r) {
2575
+ if (e) {
2576
+ var o = Ns(e, r);
2577
+ return Fs(e) === 0 && (e = void 0), o;
2578
+ }
2263
2579
  return !1;
2264
2580
  },
2265
- set: function(a, i) {
2266
- Pe && a && (typeof a == "object" || typeof a == "function") ? (e || (e = new Pe()), Ya(e, a, i)) : xe ? (r || (r = new xe()), ti(r, a, i)) : (n || (n = { key: {}, next: null }), oi(n, a, i));
2581
+ get: function(r) {
2582
+ if (e)
2583
+ return xs(e, r);
2584
+ },
2585
+ has: function(r) {
2586
+ return e ? _s(e, r) : !1;
2587
+ },
2588
+ set: function(r, o) {
2589
+ e || (e = new Lr()), Cs(e, r, o);
2267
2590
  }
2268
2591
  };
2269
- return o;
2270
- }, si = String.prototype.replace, li = /%20/g, Ze = {
2592
+ return n;
2593
+ }, $s = Vt, et = _n, Ds = Xe, xe = Nn, Is = fe, oe = $s("%WeakMap%", !0), Bs = et("WeakMap.prototype.get", !0), Ls = et("WeakMap.prototype.set", !0), Us = et("WeakMap.prototype.has", !0), Ms = et("WeakMap.prototype.delete", !0), ks = oe ? (
2594
+ /** @type {Exclude<import('.'), false>} */
2595
+ function() {
2596
+ var e, n, r = {
2597
+ assert: function(o) {
2598
+ if (!r.has(o))
2599
+ throw new Is("Side channel does not contain " + Ds(o));
2600
+ },
2601
+ delete: function(o) {
2602
+ if (oe && o && (typeof o == "object" || typeof o == "function")) {
2603
+ if (e)
2604
+ return Ms(e, o);
2605
+ } else if (xe && n)
2606
+ return n.delete(o);
2607
+ return !1;
2608
+ },
2609
+ get: function(o) {
2610
+ return oe && o && (typeof o == "object" || typeof o == "function") && e ? Bs(e, o) : n && n.get(o);
2611
+ },
2612
+ has: function(o) {
2613
+ return oe && o && (typeof o == "object" || typeof o == "function") && e ? Us(e, o) : !!n && n.has(o);
2614
+ },
2615
+ set: function(o, a) {
2616
+ oe && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new oe()), Ls(e, o, a)) : xe && (n || (n = xe()), n.set(o, a));
2617
+ }
2618
+ };
2619
+ return r;
2620
+ }
2621
+ ) : xe, qs = fe, js = Xe, Hs = gi, zs = Nn, Ws = ks, Gs = Ws || zs || Hs, Js = function() {
2622
+ var e, n = {
2623
+ assert: function(r) {
2624
+ if (!n.has(r))
2625
+ throw new qs("Side channel does not contain " + js(r));
2626
+ },
2627
+ delete: function(r) {
2628
+ return !!e && e.delete(r);
2629
+ },
2630
+ get: function(r) {
2631
+ return e && e.get(r);
2632
+ },
2633
+ has: function(r) {
2634
+ return !!e && e.has(r);
2635
+ },
2636
+ set: function(r, o) {
2637
+ e || (e = Gs()), e.set(r, o);
2638
+ }
2639
+ };
2640
+ return n;
2641
+ }, Vs = String.prototype.replace, Ks = /%20/g, At = {
2271
2642
  RFC1738: "RFC1738",
2272
2643
  RFC3986: "RFC3986"
2273
- }, xt = {
2274
- default: Ze.RFC3986,
2644
+ }, Kt = {
2645
+ default: At.RFC3986,
2275
2646
  formatters: {
2276
2647
  RFC1738: function(t) {
2277
- return si.call(t, li, "+");
2648
+ return Vs.call(t, Ks, "+");
2278
2649
  },
2279
2650
  RFC3986: function(t) {
2280
2651
  return String(t);
2281
2652
  }
2282
2653
  },
2283
- RFC1738: Ze.RFC1738,
2284
- RFC3986: Ze.RFC3986
2285
- }, ui = xt, et = Object.prototype.hasOwnProperty, q = Array.isArray, N = function() {
2654
+ RFC1738: At.RFC1738,
2655
+ RFC3986: At.RFC3986
2656
+ }, Qs = Kt, Ot = Object.prototype.hasOwnProperty, K = Array.isArray, U = function() {
2286
2657
  for (var t = [], e = 0; e < 256; ++e)
2287
2658
  t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
2288
2659
  return t;
2289
- }(), ci = function(e) {
2660
+ }(), Xs = function(e) {
2290
2661
  for (; e.length > 1; ) {
2291
- var r = e.pop(), n = r.obj[r.prop];
2292
- if (q(n)) {
2293
- for (var o = [], a = 0; a < n.length; ++a)
2294
- typeof n[a] < "u" && o.push(n[a]);
2295
- r.obj[r.prop] = o;
2662
+ var n = e.pop(), r = n.obj[n.prop];
2663
+ if (K(r)) {
2664
+ for (var o = [], a = 0; a < r.length; ++a)
2665
+ typeof r[a] < "u" && o.push(r[a]);
2666
+ n.obj[n.prop] = o;
2296
2667
  }
2297
2668
  }
2298
- }, qr = function(e, r) {
2299
- for (var n = r && r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, o = 0; o < e.length; ++o)
2300
- typeof e[o] < "u" && (n[o] = e[o]);
2301
- return n;
2302
- }, fi = function t(e, r, n) {
2303
- if (!r)
2669
+ }, Fn = function(e, n) {
2670
+ for (var r = n && n.plainObjects ? { __proto__: null } : {}, o = 0; o < e.length; ++o)
2671
+ typeof e[o] < "u" && (r[o] = e[o]);
2672
+ return r;
2673
+ }, Zs = function t(e, n, r) {
2674
+ if (!n)
2304
2675
  return e;
2305
- if (typeof r != "object") {
2306
- if (q(e))
2307
- e.push(r);
2676
+ if (typeof n != "object" && typeof n != "function") {
2677
+ if (K(e))
2678
+ e.push(n);
2308
2679
  else if (e && typeof e == "object")
2309
- (n && (n.plainObjects || n.allowPrototypes) || !et.call(Object.prototype, r)) && (e[r] = !0);
2680
+ (r && (r.plainObjects || r.allowPrototypes) || !Ot.call(Object.prototype, n)) && (e[n] = !0);
2310
2681
  else
2311
- return [e, r];
2682
+ return [e, n];
2312
2683
  return e;
2313
2684
  }
2314
2685
  if (!e || typeof e != "object")
2315
- return [e].concat(r);
2686
+ return [e].concat(n);
2316
2687
  var o = e;
2317
- return q(e) && !q(r) && (o = qr(e, n)), q(e) && q(r) ? (r.forEach(function(a, i) {
2318
- if (et.call(e, i)) {
2688
+ return K(e) && !K(n) && (o = Fn(e, r)), K(e) && K(n) ? (n.forEach(function(a, i) {
2689
+ if (Ot.call(e, i)) {
2319
2690
  var s = e[i];
2320
- s && typeof s == "object" && a && typeof a == "object" ? e[i] = t(s, a, n) : e.push(a);
2691
+ s && typeof s == "object" && a && typeof a == "object" ? e[i] = t(s, a, r) : e.push(a);
2321
2692
  } else
2322
2693
  e[i] = a;
2323
- }), e) : Object.keys(r).reduce(function(a, i) {
2324
- var s = r[i];
2325
- return et.call(a, i) ? a[i] = t(a[i], s, n) : a[i] = s, a;
2694
+ }), e) : Object.keys(n).reduce(function(a, i) {
2695
+ var s = n[i];
2696
+ return Ot.call(a, i) ? a[i] = t(a[i], s, r) : a[i] = s, a;
2326
2697
  }, o);
2327
- }, pi = function(e, r) {
2328
- return Object.keys(r).reduce(function(n, o) {
2329
- return n[o] = r[o], n;
2698
+ }, Ys = function(e, n) {
2699
+ return Object.keys(n).reduce(function(r, o) {
2700
+ return r[o] = n[o], r;
2330
2701
  }, e);
2331
- }, di = function(t, e, r) {
2332
- var n = t.replace(/\+/g, " ");
2333
- if (r === "iso-8859-1")
2334
- return n.replace(/%[0-9a-f]{2}/gi, unescape);
2702
+ }, el = function(t, e, n) {
2703
+ var r = t.replace(/\+/g, " ");
2704
+ if (n === "iso-8859-1")
2705
+ return r.replace(/%[0-9a-f]{2}/gi, unescape);
2335
2706
  try {
2336
- return decodeURIComponent(n);
2707
+ return decodeURIComponent(r);
2337
2708
  } catch {
2338
- return n;
2709
+ return r;
2339
2710
  }
2340
- }, yi = function(e, r, n, o, a) {
2711
+ }, Rt = 1024, tl = function(e, n, r, o, a) {
2341
2712
  if (e.length === 0)
2342
2713
  return e;
2343
2714
  var i = e;
2344
- if (typeof e == "symbol" ? i = Symbol.prototype.toString.call(e) : typeof e != "string" && (i = String(e)), n === "iso-8859-1")
2345
- return escape(i).replace(/%u[0-9a-f]{4}/gi, function(p) {
2346
- return "%26%23" + parseInt(p.slice(2), 16) + "%3B";
2715
+ if (typeof e == "symbol" ? i = Symbol.prototype.toString.call(e) : typeof e != "string" && (i = String(e)), r === "iso-8859-1")
2716
+ return escape(i).replace(/%u[0-9a-f]{4}/gi, function(g) {
2717
+ return "%26%23" + parseInt(g.slice(2), 16) + "%3B";
2347
2718
  });
2348
- for (var s = "", u = 0; u < i.length; ++u) {
2349
- var l = i.charCodeAt(u);
2350
- if (l === 45 || l === 46 || l === 95 || l === 126 || l >= 48 && l <= 57 || l >= 65 && l <= 90 || l >= 97 && l <= 122 || a === ui.RFC1738 && (l === 40 || l === 41)) {
2351
- s += i.charAt(u);
2352
- continue;
2353
- }
2354
- if (l < 128) {
2355
- s = s + N[l];
2356
- continue;
2357
- }
2358
- if (l < 2048) {
2359
- s = s + (N[192 | l >> 6] + N[128 | l & 63]);
2360
- continue;
2361
- }
2362
- if (l < 55296 || l >= 57344) {
2363
- s = s + (N[224 | l >> 12] + N[128 | l >> 6 & 63] + N[128 | l & 63]);
2364
- continue;
2719
+ for (var s = "", u = 0; u < i.length; u += Rt) {
2720
+ for (var l = i.length >= Rt ? i.slice(u, u + Rt) : i, c = [], p = 0; p < l.length; ++p) {
2721
+ var d = l.charCodeAt(p);
2722
+ if (d === 45 || d === 46 || d === 95 || d === 126 || d >= 48 && d <= 57 || d >= 65 && d <= 90 || d >= 97 && d <= 122 || a === Qs.RFC1738 && (d === 40 || d === 41)) {
2723
+ c[c.length] = l.charAt(p);
2724
+ continue;
2725
+ }
2726
+ if (d < 128) {
2727
+ c[c.length] = U[d];
2728
+ continue;
2729
+ }
2730
+ if (d < 2048) {
2731
+ c[c.length] = U[192 | d >> 6] + U[128 | d & 63];
2732
+ continue;
2733
+ }
2734
+ if (d < 55296 || d >= 57344) {
2735
+ c[c.length] = U[224 | d >> 12] + U[128 | d >> 6 & 63] + U[128 | d & 63];
2736
+ continue;
2737
+ }
2738
+ p += 1, d = 65536 + ((d & 1023) << 10 | l.charCodeAt(p) & 1023), c[c.length] = U[240 | d >> 18] + U[128 | d >> 12 & 63] + U[128 | d >> 6 & 63] + U[128 | d & 63];
2365
2739
  }
2366
- u += 1, l = 65536 + ((l & 1023) << 10 | i.charCodeAt(u) & 1023), s += N[240 | l >> 18] + N[128 | l >> 12 & 63] + N[128 | l >> 6 & 63] + N[128 | l & 63];
2740
+ s += c.join("");
2367
2741
  }
2368
2742
  return s;
2369
- }, hi = function(e) {
2370
- for (var r = [{ obj: { o: e }, prop: "o" }], n = [], o = 0; o < r.length; ++o)
2371
- for (var a = r[o], i = a.obj[a.prop], s = Object.keys(i), u = 0; u < s.length; ++u) {
2372
- var l = s[u], p = i[l];
2373
- typeof p == "object" && p !== null && n.indexOf(p) === -1 && (r.push({ obj: i, prop: l }), n.push(p));
2374
- }
2375
- return ci(r), e;
2376
- }, mi = function(e) {
2743
+ }, rl = function(e) {
2744
+ for (var n = [{ obj: { o: e }, prop: "o" }], r = [], o = 0; o < n.length; ++o)
2745
+ for (var a = n[o], i = a.obj[a.prop], s = Object.keys(i), u = 0; u < s.length; ++u) {
2746
+ var l = s[u], c = i[l];
2747
+ typeof c == "object" && c !== null && r.indexOf(c) === -1 && (n.push({ obj: i, prop: l }), r.push(c));
2748
+ }
2749
+ return Xs(n), e;
2750
+ }, nl = function(e) {
2377
2751
  return Object.prototype.toString.call(e) === "[object RegExp]";
2378
- }, gi = function(e) {
2752
+ }, ol = function(e) {
2379
2753
  return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
2380
- }, vi = function(e, r) {
2381
- return [].concat(e, r);
2382
- }, bi = function(e, r) {
2383
- if (q(e)) {
2384
- for (var n = [], o = 0; o < e.length; o += 1)
2385
- n.push(r(e[o]));
2386
- return n;
2387
- }
2388
- return r(e);
2389
- }, Gr = {
2390
- arrayToObject: qr,
2391
- assign: pi,
2392
- combine: vi,
2393
- compact: hi,
2394
- decode: di,
2395
- encode: yi,
2396
- isBuffer: gi,
2397
- isRegExp: mi,
2398
- maybeMap: bi,
2399
- merge: fi
2400
- }, Jr = ii, Ie = Gr, ge = xt, Si = Object.prototype.hasOwnProperty, sr = {
2754
+ }, al = function(e, n) {
2755
+ return [].concat(e, n);
2756
+ }, il = function(e, n) {
2757
+ if (K(e)) {
2758
+ for (var r = [], o = 0; o < e.length; o += 1)
2759
+ r.push(n(e[o]));
2760
+ return r;
2761
+ }
2762
+ return n(e);
2763
+ }, $n = {
2764
+ arrayToObject: Fn,
2765
+ assign: Ys,
2766
+ combine: al,
2767
+ compact: rl,
2768
+ decode: el,
2769
+ encode: tl,
2770
+ isBuffer: ol,
2771
+ isRegExp: nl,
2772
+ maybeMap: il,
2773
+ merge: Zs
2774
+ }, Dn = Js, Le = $n, ve = Kt, sl = Object.prototype.hasOwnProperty, In = {
2401
2775
  brackets: function(e) {
2402
2776
  return e + "[]";
2403
2777
  },
2404
2778
  comma: "comma",
2405
- indices: function(e, r) {
2406
- return e + "[" + r + "]";
2779
+ indices: function(e, n) {
2780
+ return e + "[" + n + "]";
2407
2781
  },
2408
2782
  repeat: function(e) {
2409
2783
  return e;
2410
2784
  }
2411
- }, B = Array.isArray, wi = Array.prototype.push, Vr = function(t, e) {
2412
- wi.apply(t, B(e) ? e : [e]);
2413
- }, Ei = Date.prototype.toISOString, lr = ge.default, P = {
2785
+ }, M = Array.isArray, ll = Array.prototype.push, Bn = function(t, e) {
2786
+ ll.apply(t, M(e) ? e : [e]);
2787
+ }, cl = Date.prototype.toISOString, Ur = ve.default, P = {
2414
2788
  addQueryPrefix: !1,
2415
2789
  allowDots: !1,
2790
+ allowEmptyArrays: !1,
2791
+ arrayFormat: "indices",
2416
2792
  charset: "utf-8",
2417
2793
  charsetSentinel: !1,
2794
+ commaRoundTrip: !1,
2418
2795
  delimiter: "&",
2419
2796
  encode: !0,
2420
- encoder: Ie.encode,
2797
+ encodeDotInKeys: !1,
2798
+ encoder: Le.encode,
2421
2799
  encodeValuesOnly: !1,
2422
- format: lr,
2423
- formatter: ge.formatters[lr],
2800
+ filter: void 0,
2801
+ format: Ur,
2802
+ formatter: ve.formatters[Ur],
2424
2803
  // deprecated
2425
2804
  indices: !1,
2426
2805
  serializeDate: function(e) {
2427
- return Ei.call(e);
2806
+ return cl.call(e);
2428
2807
  },
2429
2808
  skipNulls: !1,
2430
2809
  strictNullHandling: !1
2431
- }, Oi = function(e) {
2810
+ }, ul = function(e) {
2432
2811
  return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
2433
- }, tt = {}, Ai = function t(e, r, n, o, a, i, s, u, l, p, c, h, g, d, y, S) {
2434
- for (var m = e, E = S, R = 0, U = !1; (E = E.get(tt)) !== void 0 && !U; ) {
2435
- var ce = E.get(e);
2436
- if (R += 1, typeof ce < "u") {
2437
- if (ce === R)
2812
+ }, Pt = {}, fl = function t(e, n, r, o, a, i, s, u, l, c, p, d, g, y, m, h, S, E) {
2813
+ for (var v = e, T = E, A = 0, _ = !1; (T = T.get(Pt)) !== void 0 && !_; ) {
2814
+ var N = T.get(e);
2815
+ if (A += 1, typeof N < "u") {
2816
+ if (N === A)
2438
2817
  throw new RangeError("Cyclic object value");
2439
- U = !0;
2440
- }
2441
- typeof E.get(tt) > "u" && (R = 0);
2442
- }
2443
- if (typeof u == "function" ? m = u(r, m) : m instanceof Date ? m = c(m) : n === "comma" && B(m) && (m = Ie.maybeMap(m, function(Z) {
2444
- return Z instanceof Date ? c(Z) : Z;
2445
- })), m === null) {
2446
- if (a)
2447
- return s && !d ? s(r, P.encoder, y, "key", h) : r;
2448
- m = "";
2449
- }
2450
- if (Oi(m) || Ie.isBuffer(m)) {
2451
- if (s) {
2452
- var Oe = d ? r : s(r, P.encoder, y, "key", h);
2453
- return [g(Oe) + "=" + g(s(m, P.encoder, y, "value", h))];
2454
- }
2455
- return [g(r) + "=" + g(String(m))];
2456
- }
2457
- var W = [];
2458
- if (typeof m > "u")
2459
- return W;
2460
- var L;
2461
- if (n === "comma" && B(m))
2462
- d && s && (m = Ie.maybeMap(m, s)), L = [{ value: m.length > 0 ? m.join(",") || null : void 0 }];
2463
- else if (B(u))
2464
- L = u;
2818
+ _ = !0;
2819
+ }
2820
+ typeof T.get(Pt) > "u" && (A = 0);
2821
+ }
2822
+ if (typeof c == "function" ? v = c(n, v) : v instanceof Date ? v = g(v) : r === "comma" && M(v) && (v = Le.maybeMap(v, function(rt) {
2823
+ return rt instanceof Date ? g(rt) : rt;
2824
+ })), v === null) {
2825
+ if (i)
2826
+ return l && !h ? l(n, P.encoder, S, "key", y) : n;
2827
+ v = "";
2828
+ }
2829
+ if (ul(v) || Le.isBuffer(v)) {
2830
+ if (l) {
2831
+ var q = h ? n : l(n, P.encoder, S, "key", y);
2832
+ return [m(q) + "=" + m(l(v, P.encoder, S, "value", y))];
2833
+ }
2834
+ return [m(n) + "=" + m(String(v))];
2835
+ }
2836
+ var B = [];
2837
+ if (typeof v > "u")
2838
+ return B;
2839
+ var z;
2840
+ if (r === "comma" && M(v))
2841
+ h && l && (v = Le.maybeMap(v, l)), z = [{ value: v.length > 0 ? v.join(",") || null : void 0 }];
2842
+ else if (M(c))
2843
+ z = c;
2465
2844
  else {
2466
- var Q = Object.keys(m);
2467
- L = l ? Q.sort(l) : Q;
2468
- }
2469
- for (var X = o && B(m) && m.length === 1 ? r + "[]" : r, fe = 0; fe < L.length; ++fe) {
2470
- var F = L[fe], D = typeof F == "object" && typeof F.value < "u" ? F.value : m[F];
2471
- if (!(i && D === null)) {
2472
- var Y = B(m) ? typeof n == "function" ? n(X, F) : X : X + (p ? "." + F : "[" + F + "]");
2473
- S.set(e, R);
2474
- var Ae = Jr();
2475
- Ae.set(tt, S), Vr(W, t(
2476
- D,
2477
- Y,
2478
- n,
2845
+ var Pe = Object.keys(v);
2846
+ z = p ? Pe.sort(p) : Pe;
2847
+ }
2848
+ var re = u ? String(n).replace(/\./g, "%2E") : String(n), D = o && M(v) && v.length === 1 ? re + "[]" : re;
2849
+ if (a && M(v) && v.length === 0)
2850
+ return D + "[]";
2851
+ for (var W = 0; W < z.length; ++W) {
2852
+ var j = z[W], pe = typeof j == "object" && j && typeof j.value < "u" ? j.value : v[j];
2853
+ if (!(s && pe === null)) {
2854
+ var tt = d && u ? String(j).replace(/\./g, "%2E") : String(j), qn = M(v) ? typeof r == "function" ? r(D, tt) : D : D + (d ? "." + tt : "[" + tt + "]");
2855
+ E.set(e, A);
2856
+ var Xt = Dn();
2857
+ Xt.set(Pt, E), Bn(B, t(
2858
+ pe,
2859
+ qn,
2860
+ r,
2479
2861
  o,
2480
2862
  a,
2481
2863
  i,
2482
- n === "comma" && d && B(m) ? null : s,
2864
+ s,
2483
2865
  u,
2484
- l,
2485
- p,
2866
+ r === "comma" && h && M(v) ? null : l,
2486
2867
  c,
2487
- h,
2488
- g,
2868
+ p,
2489
2869
  d,
2870
+ g,
2490
2871
  y,
2491
- Ae
2872
+ m,
2873
+ h,
2874
+ S,
2875
+ Xt
2492
2876
  ));
2493
2877
  }
2494
2878
  }
2495
- return W;
2496
- }, Ri = function(e) {
2879
+ return B;
2880
+ }, pl = function(e) {
2497
2881
  if (!e)
2498
2882
  return P;
2883
+ if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
2884
+ throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
2885
+ if (typeof e.encodeDotInKeys < "u" && typeof e.encodeDotInKeys != "boolean")
2886
+ throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
2499
2887
  if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function")
2500
2888
  throw new TypeError("Encoder has to be a function.");
2501
- var r = e.charset || P.charset;
2889
+ var n = e.charset || P.charset;
2502
2890
  if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
2503
2891
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
2504
- var n = ge.default;
2892
+ var r = ve.default;
2505
2893
  if (typeof e.format < "u") {
2506
- if (!Si.call(ge.formatters, e.format))
2894
+ if (!sl.call(ve.formatters, e.format))
2507
2895
  throw new TypeError("Unknown format option provided.");
2508
- n = e.format;
2896
+ r = e.format;
2509
2897
  }
2510
- var o = ge.formatters[n], a = P.filter;
2511
- return (typeof e.filter == "function" || B(e.filter)) && (a = e.filter), {
2898
+ var o = ve.formatters[r], a = P.filter;
2899
+ (typeof e.filter == "function" || M(e.filter)) && (a = e.filter);
2900
+ var i;
2901
+ if (e.arrayFormat in In ? i = e.arrayFormat : "indices" in e ? i = e.indices ? "indices" : "repeat" : i = P.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
2902
+ throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
2903
+ var s = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : P.allowDots : !!e.allowDots;
2904
+ return {
2512
2905
  addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : P.addQueryPrefix,
2513
- allowDots: typeof e.allowDots > "u" ? P.allowDots : !!e.allowDots,
2514
- charset: r,
2906
+ allowDots: s,
2907
+ allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : P.allowEmptyArrays,
2908
+ arrayFormat: i,
2909
+ charset: n,
2515
2910
  charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : P.charsetSentinel,
2911
+ commaRoundTrip: !!e.commaRoundTrip,
2516
2912
  delimiter: typeof e.delimiter > "u" ? P.delimiter : e.delimiter,
2517
2913
  encode: typeof e.encode == "boolean" ? e.encode : P.encode,
2914
+ encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys : P.encodeDotInKeys,
2518
2915
  encoder: typeof e.encoder == "function" ? e.encoder : P.encoder,
2519
2916
  encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : P.encodeValuesOnly,
2520
2917
  filter: a,
2521
- format: n,
2918
+ format: r,
2522
2919
  formatter: o,
2523
2920
  serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : P.serializeDate,
2524
2921
  skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : P.skipNulls,
2525
2922
  sort: typeof e.sort == "function" ? e.sort : null,
2526
2923
  strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : P.strictNullHandling
2527
2924
  };
2528
- }, Pi = function(t, e) {
2529
- var r = t, n = Ri(e), o, a;
2530
- typeof n.filter == "function" ? (a = n.filter, r = a("", r)) : B(n.filter) && (a = n.filter, o = a);
2925
+ }, dl = function(t, e) {
2926
+ var n = t, r = pl(e), o, a;
2927
+ typeof r.filter == "function" ? (a = r.filter, n = a("", n)) : M(r.filter) && (a = r.filter, o = a);
2531
2928
  var i = [];
2532
- if (typeof r != "object" || r === null)
2929
+ if (typeof n != "object" || n === null)
2533
2930
  return "";
2534
- var s;
2535
- e && e.arrayFormat in sr ? s = e.arrayFormat : e && "indices" in e ? s = e.indices ? "indices" : "repeat" : s = "indices";
2536
- var u = sr[s];
2537
- if (e && "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
2538
- throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
2539
- var l = u === "comma" && e && e.commaRoundTrip;
2540
- o || (o = Object.keys(r)), n.sort && o.sort(n.sort);
2541
- for (var p = Jr(), c = 0; c < o.length; ++c) {
2542
- var h = o[c];
2543
- n.skipNulls && r[h] === null || Vr(i, Ai(
2544
- r[h],
2545
- h,
2931
+ var s = In[r.arrayFormat], u = s === "comma" && r.commaRoundTrip;
2932
+ o || (o = Object.keys(n)), r.sort && o.sort(r.sort);
2933
+ for (var l = Dn(), c = 0; c < o.length; ++c) {
2934
+ var p = o[c], d = n[p];
2935
+ r.skipNulls && d === null || Bn(i, fl(
2936
+ d,
2937
+ p,
2938
+ s,
2546
2939
  u,
2547
- l,
2548
- n.strictNullHandling,
2549
- n.skipNulls,
2550
- n.encode ? n.encoder : null,
2551
- n.filter,
2552
- n.sort,
2553
- n.allowDots,
2554
- n.serializeDate,
2555
- n.format,
2556
- n.formatter,
2557
- n.encodeValuesOnly,
2558
- n.charset,
2559
- p
2940
+ r.allowEmptyArrays,
2941
+ r.strictNullHandling,
2942
+ r.skipNulls,
2943
+ r.encodeDotInKeys,
2944
+ r.encode ? r.encoder : null,
2945
+ r.filter,
2946
+ r.sort,
2947
+ r.allowDots,
2948
+ r.serializeDate,
2949
+ r.format,
2950
+ r.formatter,
2951
+ r.encodeValuesOnly,
2952
+ r.charset,
2953
+ l
2560
2954
  ));
2561
2955
  }
2562
- var g = i.join(n.delimiter), d = n.addQueryPrefix === !0 ? "?" : "";
2563
- return n.charsetSentinel && (n.charset === "iso-8859-1" ? d += "utf8=%26%2310003%3B&" : d += "utf8=%E2%9C%93&"), g.length > 0 ? d + g : "";
2564
- }, se = Gr, yt = Object.prototype.hasOwnProperty, xi = Array.isArray, O = {
2956
+ var g = i.join(r.delimiter), y = r.addQueryPrefix === !0 ? "?" : "";
2957
+ return r.charsetSentinel && (r.charset === "iso-8859-1" ? y += "utf8=%26%2310003%3B&" : y += "utf8=%E2%9C%93&"), g.length > 0 ? y + g : "";
2958
+ }, ee = $n, Ut = Object.prototype.hasOwnProperty, Mr = Array.isArray, O = {
2565
2959
  allowDots: !1,
2960
+ allowEmptyArrays: !1,
2566
2961
  allowPrototypes: !1,
2567
2962
  allowSparse: !1,
2568
2963
  arrayLimit: 20,
2569
2964
  charset: "utf-8",
2570
2965
  charsetSentinel: !1,
2571
2966
  comma: !1,
2572
- decoder: se.decode,
2967
+ decodeDotInKeys: !1,
2968
+ decoder: ee.decode,
2573
2969
  delimiter: "&",
2574
2970
  depth: 5,
2971
+ duplicates: "combine",
2575
2972
  ignoreQueryPrefix: !1,
2576
2973
  interpretNumericEntities: !1,
2577
2974
  parameterLimit: 1e3,
2578
2975
  parseArrays: !0,
2579
2976
  plainObjects: !1,
2580
- strictNullHandling: !1
2581
- }, Ti = function(t) {
2582
- return t.replace(/&#(\d+);/g, function(e, r) {
2583
- return String.fromCharCode(parseInt(r, 10));
2977
+ strictDepth: !1,
2978
+ strictNullHandling: !1,
2979
+ throwOnLimitExceeded: !1
2980
+ }, yl = function(t) {
2981
+ return t.replace(/&#(\d+);/g, function(e, n) {
2982
+ return String.fromCharCode(parseInt(n, 10));
2584
2983
  });
2585
- }, Kr = function(t, e) {
2586
- return t && typeof t == "string" && e.comma && t.indexOf(",") > -1 ? t.split(",") : t;
2587
- }, Ci = "utf8=%26%2310003%3B", Fi = "utf8=%E2%9C%93", Ni = function(e, r) {
2588
- var n = { __proto__: null }, o = r.ignoreQueryPrefix ? e.replace(/^\?/, "") : e, a = r.parameterLimit === 1 / 0 ? void 0 : r.parameterLimit, i = o.split(r.delimiter, a), s = -1, u, l = r.charset;
2589
- if (r.charsetSentinel)
2984
+ }, Ln = function(t, e, n) {
2985
+ if (t && typeof t == "string" && e.comma && t.indexOf(",") > -1)
2986
+ return t.split(",");
2987
+ if (e.throwOnLimitExceeded && n >= e.arrayLimit)
2988
+ throw new RangeError("Array limit exceeded. Only " + e.arrayLimit + " element" + (e.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
2989
+ return t;
2990
+ }, hl = "utf8=%26%2310003%3B", ml = "utf8=%E2%9C%93", gl = function(e, n) {
2991
+ var r = { __proto__: null }, o = n.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
2992
+ o = o.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
2993
+ var a = n.parameterLimit === 1 / 0 ? void 0 : n.parameterLimit, i = o.split(
2994
+ n.delimiter,
2995
+ n.throwOnLimitExceeded ? a + 1 : a
2996
+ );
2997
+ if (n.throwOnLimitExceeded && i.length > a)
2998
+ throw new RangeError("Parameter limit exceeded. Only " + a + " parameter" + (a === 1 ? "" : "s") + " allowed.");
2999
+ var s = -1, u, l = n.charset;
3000
+ if (n.charsetSentinel)
2590
3001
  for (u = 0; u < i.length; ++u)
2591
- i[u].indexOf("utf8=") === 0 && (i[u] === Fi ? l = "utf-8" : i[u] === Ci && (l = "iso-8859-1"), s = u, u = i.length);
3002
+ i[u].indexOf("utf8=") === 0 && (i[u] === ml ? l = "utf-8" : i[u] === hl && (l = "iso-8859-1"), s = u, u = i.length);
2592
3003
  for (u = 0; u < i.length; ++u)
2593
3004
  if (u !== s) {
2594
- var p = i[u], c = p.indexOf("]="), h = c === -1 ? p.indexOf("=") : c + 1, g, d;
2595
- h === -1 ? (g = r.decoder(p, O.decoder, l, "key"), d = r.strictNullHandling ? null : "") : (g = r.decoder(p.slice(0, h), O.decoder, l, "key"), d = se.maybeMap(
2596
- Kr(p.slice(h + 1), r),
2597
- function(y) {
2598
- return r.decoder(y, O.decoder, l, "value");
3005
+ var c = i[u], p = c.indexOf("]="), d = p === -1 ? c.indexOf("=") : p + 1, g, y;
3006
+ d === -1 ? (g = n.decoder(c, O.decoder, l, "key"), y = n.strictNullHandling ? null : "") : (g = n.decoder(c.slice(0, d), O.decoder, l, "key"), y = ee.maybeMap(
3007
+ Ln(
3008
+ c.slice(d + 1),
3009
+ n,
3010
+ Mr(r[g]) ? r[g].length : 0
3011
+ ),
3012
+ function(h) {
3013
+ return n.decoder(h, O.decoder, l, "value");
2599
3014
  }
2600
- )), d && r.interpretNumericEntities && l === "iso-8859-1" && (d = Ti(d)), p.indexOf("[]=") > -1 && (d = xi(d) ? [d] : d), yt.call(n, g) ? n[g] = se.combine(n[g], d) : n[g] = d;
3015
+ )), y && n.interpretNumericEntities && l === "iso-8859-1" && (y = yl(String(y))), c.indexOf("[]=") > -1 && (y = Mr(y) ? [y] : y);
3016
+ var m = Ut.call(r, g);
3017
+ m && n.duplicates === "combine" ? r[g] = ee.combine(r[g], y) : (!m || n.duplicates === "last") && (r[g] = y);
2601
3018
  }
2602
- return n;
2603
- }, $i = function(t, e, r, n) {
2604
- for (var o = n ? e : Kr(e, r), a = t.length - 1; a >= 0; --a) {
2605
- var i, s = t[a];
2606
- if (s === "[]" && r.parseArrays)
2607
- i = [].concat(o);
3019
+ return r;
3020
+ }, vl = function(t, e, n, r) {
3021
+ var o = 0;
3022
+ if (t.length > 0 && t[t.length - 1] === "[]") {
3023
+ var a = t.slice(0, -1).join("");
3024
+ o = Array.isArray(e) && e[a] ? e[a].length : 0;
3025
+ }
3026
+ for (var i = r ? e : Ln(e, n, o), s = t.length - 1; s >= 0; --s) {
3027
+ var u, l = t[s];
3028
+ if (l === "[]" && n.parseArrays)
3029
+ u = n.allowEmptyArrays && (i === "" || n.strictNullHandling && i === null) ? [] : ee.combine([], i);
2608
3030
  else {
2609
- i = r.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
2610
- var u = s.charAt(0) === "[" && s.charAt(s.length - 1) === "]" ? s.slice(1, -1) : s, l = parseInt(u, 10);
2611
- !r.parseArrays && u === "" ? i = { 0: o } : !isNaN(l) && s !== u && String(l) === u && l >= 0 && r.parseArrays && l <= r.arrayLimit ? (i = [], i[l] = o) : u !== "__proto__" && (i[u] = o);
3031
+ u = n.plainObjects ? { __proto__: null } : {};
3032
+ var c = l.charAt(0) === "[" && l.charAt(l.length - 1) === "]" ? l.slice(1, -1) : l, p = n.decodeDotInKeys ? c.replace(/%2E/g, ".") : c, d = parseInt(p, 10);
3033
+ !n.parseArrays && p === "" ? u = { 0: i } : !isNaN(d) && l !== p && String(d) === p && d >= 0 && n.parseArrays && d <= n.arrayLimit ? (u = [], u[d] = i) : p !== "__proto__" && (u[p] = i);
2612
3034
  }
2613
- o = i;
3035
+ i = u;
2614
3036
  }
2615
- return o;
2616
- }, _i = function(e, r, n, o) {
3037
+ return i;
3038
+ }, wl = function(e, n, r, o) {
2617
3039
  if (e) {
2618
- var a = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, i = /(\[[^[\]]*])/, s = /(\[[^[\]]*])/g, u = n.depth > 0 && i.exec(a), l = u ? a.slice(0, u.index) : a, p = [];
3040
+ var a = r.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, i = /(\[[^[\]]*])/, s = /(\[[^[\]]*])/g, u = r.depth > 0 && i.exec(a), l = u ? a.slice(0, u.index) : a, c = [];
2619
3041
  if (l) {
2620
- if (!n.plainObjects && yt.call(Object.prototype, l) && !n.allowPrototypes)
3042
+ if (!r.plainObjects && Ut.call(Object.prototype, l) && !r.allowPrototypes)
2621
3043
  return;
2622
- p.push(l);
3044
+ c.push(l);
2623
3045
  }
2624
- for (var c = 0; n.depth > 0 && (u = s.exec(a)) !== null && c < n.depth; ) {
2625
- if (c += 1, !n.plainObjects && yt.call(Object.prototype, u[1].slice(1, -1)) && !n.allowPrototypes)
3046
+ for (var p = 0; r.depth > 0 && (u = s.exec(a)) !== null && p < r.depth; ) {
3047
+ if (p += 1, !r.plainObjects && Ut.call(Object.prototype, u[1].slice(1, -1)) && !r.allowPrototypes)
2626
3048
  return;
2627
- p.push(u[1]);
3049
+ c.push(u[1]);
3050
+ }
3051
+ if (u) {
3052
+ if (r.strictDepth === !0)
3053
+ throw new RangeError("Input depth exceeded depth option of " + r.depth + " and strictDepth is true");
3054
+ c.push("[" + a.slice(u.index) + "]");
2628
3055
  }
2629
- return u && p.push("[" + a.slice(u.index) + "]"), $i(p, r, n, o);
3056
+ return vl(c, n, r, o);
2630
3057
  }
2631
- }, Ii = function(e) {
3058
+ }, bl = function(e) {
2632
3059
  if (!e)
2633
3060
  return O;
2634
- if (e.decoder !== null && e.decoder !== void 0 && typeof e.decoder != "function")
3061
+ if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
3062
+ throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
3063
+ if (typeof e.decodeDotInKeys < "u" && typeof e.decodeDotInKeys != "boolean")
3064
+ throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
3065
+ if (e.decoder !== null && typeof e.decoder < "u" && typeof e.decoder != "function")
2635
3066
  throw new TypeError("Decoder has to be a function.");
2636
3067
  if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
2637
3068
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
2638
- var r = typeof e.charset > "u" ? O.charset : e.charset;
3069
+ if (typeof e.throwOnLimitExceeded < "u" && typeof e.throwOnLimitExceeded != "boolean")
3070
+ throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
3071
+ var n = typeof e.charset > "u" ? O.charset : e.charset, r = typeof e.duplicates > "u" ? O.duplicates : e.duplicates;
3072
+ if (r !== "combine" && r !== "first" && r !== "last")
3073
+ throw new TypeError("The duplicates option must be either combine, first, or last");
3074
+ var o = typeof e.allowDots > "u" ? e.decodeDotInKeys === !0 ? !0 : O.allowDots : !!e.allowDots;
2639
3075
  return {
2640
- allowDots: typeof e.allowDots > "u" ? O.allowDots : !!e.allowDots,
3076
+ allowDots: o,
3077
+ allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : O.allowEmptyArrays,
2641
3078
  allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : O.allowPrototypes,
2642
3079
  allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : O.allowSparse,
2643
3080
  arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : O.arrayLimit,
2644
- charset: r,
3081
+ charset: n,
2645
3082
  charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : O.charsetSentinel,
2646
3083
  comma: typeof e.comma == "boolean" ? e.comma : O.comma,
3084
+ decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys : O.decodeDotInKeys,
2647
3085
  decoder: typeof e.decoder == "function" ? e.decoder : O.decoder,
2648
- delimiter: typeof e.delimiter == "string" || se.isRegExp(e.delimiter) ? e.delimiter : O.delimiter,
3086
+ delimiter: typeof e.delimiter == "string" || ee.isRegExp(e.delimiter) ? e.delimiter : O.delimiter,
2649
3087
  // eslint-disable-next-line no-implicit-coercion, no-extra-parens
2650
3088
  depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : O.depth,
3089
+ duplicates: r,
2651
3090
  ignoreQueryPrefix: e.ignoreQueryPrefix === !0,
2652
3091
  interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : O.interpretNumericEntities,
2653
3092
  parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : O.parameterLimit,
2654
3093
  parseArrays: e.parseArrays !== !1,
2655
3094
  plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : O.plainObjects,
2656
- strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : O.strictNullHandling
3095
+ strictDepth: typeof e.strictDepth == "boolean" ? !!e.strictDepth : O.strictDepth,
3096
+ strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : O.strictNullHandling,
3097
+ throwOnLimitExceeded: typeof e.throwOnLimitExceeded == "boolean" ? e.throwOnLimitExceeded : !1
2657
3098
  };
2658
- }, Di = function(t, e) {
2659
- var r = Ii(e);
3099
+ }, Sl = function(t, e) {
3100
+ var n = bl(e);
2660
3101
  if (t === "" || t === null || typeof t > "u")
2661
- return r.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
2662
- for (var n = typeof t == "string" ? Ni(t, r) : t, o = r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, a = Object.keys(n), i = 0; i < a.length; ++i) {
2663
- var s = a[i], u = _i(s, n[s], r, typeof t == "string");
2664
- o = se.merge(o, u, r);
2665
- }
2666
- return r.allowSparse === !0 ? o : se.compact(o);
2667
- }, Bi = Pi, Ui = Di, Li = xt, ki = {
2668
- formats: Li,
2669
- parse: Ui,
2670
- stringify: Bi
3102
+ return n.plainObjects ? { __proto__: null } : {};
3103
+ for (var r = typeof t == "string" ? gl(t, n) : t, o = n.plainObjects ? { __proto__: null } : {}, a = Object.keys(r), i = 0; i < a.length; ++i) {
3104
+ var s = a[i], u = wl(s, r[s], n, typeof t == "string");
3105
+ o = ee.merge(o, u, n);
3106
+ }
3107
+ return n.allowSparse === !0 ? o : ee.compact(o);
3108
+ }, El = dl, Al = Sl, Ol = Kt, Rl = {
3109
+ formats: Ol,
3110
+ parse: Al,
3111
+ stringify: El
2671
3112
  };
2672
- const Mi = /* @__PURE__ */ Fo(ki);
3113
+ const Pl = /* @__PURE__ */ Fa(Rl);
2673
3114
  /*! js-cookie v3.0.5 | MIT */
2674
- function Te(t) {
3115
+ function Ce(t) {
2675
3116
  for (var e = 1; e < arguments.length; e++) {
2676
- var r = arguments[e];
2677
- for (var n in r)
2678
- t[n] = r[n];
3117
+ var n = arguments[e];
3118
+ for (var r in n)
3119
+ t[r] = n[r];
2679
3120
  }
2680
3121
  return t;
2681
3122
  }
2682
- var ji = {
3123
+ var Tl = {
2683
3124
  read: function(t) {
2684
3125
  return t[0] === '"' && (t = t.slice(1, -1)), t.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
2685
3126
  },
@@ -2690,23 +3131,23 @@ var ji = {
2690
3131
  );
2691
3132
  }
2692
3133
  };
2693
- function ht(t, e) {
2694
- function r(o, a, i) {
3134
+ function Mt(t, e) {
3135
+ function n(o, a, i) {
2695
3136
  if (!(typeof document > "u")) {
2696
- i = Te({}, e, i), typeof i.expires == "number" && (i.expires = new Date(Date.now() + i.expires * 864e5)), i.expires && (i.expires = i.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
3137
+ i = Ce({}, e, i), typeof i.expires == "number" && (i.expires = new Date(Date.now() + i.expires * 864e5)), i.expires && (i.expires = i.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
2697
3138
  var s = "";
2698
3139
  for (var u in i)
2699
3140
  i[u] && (s += "; " + u, i[u] !== !0 && (s += "=" + i[u].split(";")[0]));
2700
3141
  return document.cookie = o + "=" + t.write(a, o) + s;
2701
3142
  }
2702
3143
  }
2703
- function n(o) {
3144
+ function r(o) {
2704
3145
  if (!(typeof document > "u" || arguments.length && !o)) {
2705
3146
  for (var a = document.cookie ? document.cookie.split("; ") : [], i = {}, s = 0; s < a.length; s++) {
2706
3147
  var u = a[s].split("="), l = u.slice(1).join("=");
2707
3148
  try {
2708
- var p = decodeURIComponent(u[0]);
2709
- if (i[p] = t.read(l, p), o === p)
3149
+ var c = decodeURIComponent(u[0]);
3150
+ if (i[c] = t.read(l, c), o === c)
2710
3151
  break;
2711
3152
  } catch {
2712
3153
  }
@@ -2716,22 +3157,22 @@ function ht(t, e) {
2716
3157
  }
2717
3158
  return Object.create(
2718
3159
  {
2719
- set: r,
2720
- get: n,
3160
+ set: n,
3161
+ get: r,
2721
3162
  remove: function(o, a) {
2722
- r(
3163
+ n(
2723
3164
  o,
2724
3165
  "",
2725
- Te({}, a, {
3166
+ Ce({}, a, {
2726
3167
  expires: -1
2727
3168
  })
2728
3169
  );
2729
3170
  },
2730
3171
  withAttributes: function(o) {
2731
- return ht(this.converter, Te({}, this.attributes, o));
3172
+ return Mt(this.converter, Ce({}, this.attributes, o));
2732
3173
  },
2733
3174
  withConverter: function(o) {
2734
- return ht(Te({}, this.converter, o), this.attributes);
3175
+ return Mt(Ce({}, this.converter, o), this.attributes);
2735
3176
  }
2736
3177
  },
2737
3178
  {
@@ -2740,8 +3181,8 @@ function ht(t, e) {
2740
3181
  }
2741
3182
  );
2742
3183
  }
2743
- var zi = ht(ji, { path: "/" });
2744
- const Hi = {
3184
+ var xl = Mt(Tl, { path: "/" });
3185
+ const Cl = {
2745
3186
  参数校验错误: { "zh-CN": "参数校验错误", en: "Parameter Validation Error", _appCode: "framework" },
2746
3187
  接口地址未找到: { "zh-CN": "接口地址未找到", en: "Api endpoint not found", _appCode: "framework" },
2747
3188
  服务器内部错误: { "zh-CN": "服务器内部错误", en: "Internal Server Error", _appCode: "framework" },
@@ -2753,84 +3194,84 @@ const Hi = {
2753
3194
  _appCode: "framework"
2754
3195
  }
2755
3196
  };
2756
- Zr(Hi);
2757
- mt.extend(ln);
2758
- mt.extend(un);
2759
- const Tt = ur(), Qr = Tt.sso ?? !0, Wi = Tt.i18n ?? !0, Xr = Tt.noRedireLogin ?? !1, Yr = () => {
2760
- if (Xr) return;
3197
+ jn(Cl);
3198
+ kt.extend(Qn);
3199
+ kt.extend(Xn);
3200
+ const Qt = kr(), Un = Qt.sso ?? !0, _l = Qt.i18n ?? !0, Mn = Qt.noRedireLogin ?? !1, kn = () => {
3201
+ if (Mn) return;
2761
3202
  const t = "/login";
2762
- location.pathname !== t && (sessionStorage.clear(), window.__isAutoCloseApp = !1, location.replace(t));
2763
- }, qi = async (t) => {
2764
- var r;
2765
- return ((r = t.config) == null ? void 0 : r.responseType) === "blob" ? t : t.data ?? t;
2766
- }, Gi = async (t, e) => {
2767
- var u, l, p, c, h;
2768
- let r = ((u = t.response) == null ? void 0 : u.status) || 500, n = (l = t.response) == null ? void 0 : l.message, o = {};
2769
- const a = { 400: k("参数校验错误"), 404: k("接口地址未找到"), 500: k("服务器内部错误") };
2770
- let i = ((p = t == null ? void 0 : t.response) == null ? void 0 : p.data) || {};
2771
- if (!(nn("code") || "") && !Xr && (r === 401 || (i == null ? void 0 : i.code) === 401))
2772
- Qr ? on({ ...sn, redirect_uri: an }) : Yr(), o = i;
3203
+ location.pathname !== t && (window.sessionStorage.clear(), window.localStorage.clear(), window.__isAutoCloseApp = !1, location.replace(`/#${t}`));
3204
+ }, Nl = async (t) => {
3205
+ var n;
3206
+ return ((n = t.config) == null ? void 0 : n.responseType) === "blob" ? t : t.data ?? t;
3207
+ }, Fl = async (t, e) => {
3208
+ var u, l, c, p, d;
3209
+ let n = ((u = t.response) == null ? void 0 : u.status) || 500, r = (l = t.response) == null ? void 0 : l.message, o = {};
3210
+ const a = { 400: G("参数校验错误"), 404: G("接口地址未找到"), 500: G("服务器内部错误") };
3211
+ let i = ((c = t == null ? void 0 : t.response) == null ? void 0 : c.data) || {};
3212
+ if (!(Gn("code") || "") && !Mn && (n === 401 || (i == null ? void 0 : i.code) === 401))
3213
+ Un ? Jn({ ...Kn, redirect_uri: Vn }) : kn(), o = i;
2773
3214
  else {
2774
3215
  if (t.response) {
2775
3216
  if (i instanceof Blob && (i = await new Promise((g) => {
2776
- const d = new FileReader();
2777
- d.readAsText(i, "utf-8"), d.onload = () => {
3217
+ const y = new FileReader();
3218
+ y.readAsText(i, "utf-8"), y.onload = () => {
2778
3219
  try {
2779
- g(JSON.parse(d.result || "{}"));
3220
+ g(JSON.parse(y.result || "{}"));
2780
3221
  } catch {
2781
- g({ code: 400, msg: k("blob解析错误") });
3222
+ g({ code: 400, msg: G("blob解析错误") });
2782
3223
  }
2783
3224
  };
2784
3225
  })), i.code) {
2785
- r = i.code;
3226
+ n = i.code;
2786
3227
  const g = (e == null ? void 0 : e.i18n) ?? !0;
2787
- if (Wi && g) {
2788
- const d = (i == null ? void 0 : i.status) ?? "";
2789
- n = !(i != null && i.data) || !i.data.length ? k(d) : k(d, ...i.data);
3228
+ if (_l && g) {
3229
+ const y = (i == null ? void 0 : i.status) ?? "";
3230
+ r = !(i != null && i.data) || !i.data.length ? G(y) : G(y, ...i.data);
2790
3231
  } else
2791
- n = (i == null ? void 0 : i.msg) ?? "";
3232
+ r = (i == null ? void 0 : i.msg) ?? "";
2792
3233
  o = i;
2793
3234
  }
2794
- n || (n = a[t.response.status] || t.message);
2795
- } else t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (n = t.abortReason) : n = k("网络异常,请检查您的网络情况") : t.code === "ERR_CANCELED" ? t.abortReason && (n = t.abortReason) : n = k("请求配置异常");
2796
- e != null && e.customErrorMessage && (n = e == null ? void 0 : e.customErrorMessage(n, t)), !(e != null && e.ignoreErrorMessage) && n && ((h = (c = window.DasMessage) == null ? void 0 : c.error) == null || h.call(c, { message: n, showClose: !0 }));
2797
- }
2798
- return { ...o, code: r, msg: n, error: t };
2799
- }, Ce = (t, e) => {
2800
- const r = w.create();
2801
- return tn(r, async (n) => {
2802
- const o = ur();
2803
- if (n.headers || (n.headers = {}), !(n != null && n.public)) {
3235
+ r || (r = a[t.response.status] || t.message);
3236
+ } else t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = G("网络异常,请检查您的网络情况") : t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = G("请求配置异常");
3237
+ e != null && e.customErrorMessage && (r = e == null ? void 0 : e.customErrorMessage(r, t)), !(e != null && e.ignoreErrorMessage) && r && ((d = (p = window.DasMessage) == null ? void 0 : p.error) == null || d.call(p, { message: r, showClose: !0 }));
3238
+ }
3239
+ return { ...o, code: n, msg: r, error: t };
3240
+ }, _e = (t, e) => {
3241
+ const n = R.create();
3242
+ return zn(n, async (r) => {
3243
+ const o = kr();
3244
+ if (r.headers || (r.headers = {}), !(r != null && r.public)) {
2804
3245
  let l = "";
2805
3246
  if (o.token && (l = o.token), !l) {
2806
- const p = new URL(location.href).searchParams;
2807
- l = p.get("token") || p.get("accessToken") || p.get("accesstoken") || "";
3247
+ const c = new URL(location.href).searchParams;
3248
+ l = c.get("token") || c.get("accessToken") || c.get("accesstoken") || "";
2808
3249
  }
2809
- Qr ? l || (l = await rn(n)) : (l || (l = pn()), l || Yr()), l && !n.headers.Authorization && (n.headers.Authorization = `Bearer ${l}`);
3250
+ Un ? l || (l = await Wn(r)) : (l || (l = eo()), l || kn()), l && !r.headers.Authorization && (r.headers.Authorization = `Bearer ${l}`);
2810
3251
  }
2811
- n.baseURL || (n.baseURL = o.baseURL || ""), n.urlPrefix || (n.urlPrefix = t), n.paramsSerializer || (n.paramsSerializer = { serialize: (l) => Mi.stringify(l, { indices: !1 }) }), n.onSuccess || (n.onSuccess = qi), n.onError || (n.onError = Gi), (n.csrf ?? !1) && (n.headers["csrf-token"] = zi.get("csrf-token"));
2812
- const s = n.params || {};
3252
+ r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => Pl.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess = Nl), r.onError || (r.onError = Fl), (r.csrf ?? !1) && (r.headers["csrf-token"] = xl.get("csrf-token"));
3253
+ const s = r.params || {};
2813
3254
  if (s.project === void 0) {
2814
3255
  let l = 0;
2815
- const p = new URL(location.href).searchParams;
2816
- l = p.get("project") || p.get("projectId") || 0, l || (l = cn().id ?? 0), (l || l === 0) && (s.project = l);
3256
+ const c = new URL(location.href).searchParams;
3257
+ l = c.get("project") || c.get("projectId") || 0, l || (l = Zn().id ?? 0), (l || l === 0) && (s.project = l);
2817
3258
  }
2818
3259
  if (new URL(location.href).pathname.startsWith("/iot/iot") || new URL(location.href).searchParams.get("app") === "iot") {
2819
- const { instanceInfo: l } = fn();
3260
+ const { instanceInfo: l } = Yn();
2820
3261
  l != null && l.instanceId && (s.instance = l.instanceId);
2821
3262
  }
2822
- return n.params = s, n.headers.Timezone = mt.tz.guess(), n.headers["X-Origin"] = location.origin, n.headers["Accept-Language"] = en.value, n;
3263
+ return r.params = s, r.headers.Timezone = kt.tz.guess(), r.headers["X-Origin"] = location.origin, r.headers["Accept-Language"] = Hn.value, r;
2823
3264
  });
2824
- }, Fe = "v1", Ss = {
2825
- classes: Ce(`/api/duty-manage/classes/${Fe}`),
3265
+ }, Ne = "v1", ic = {
3266
+ classes: _e(`/api/duty-manage/classes/${Ne}`),
2826
3267
  // 班次管理
2827
- group: Ce(`/api/duty-manage/group/${Fe}`),
3268
+ group: _e(`/api/duty-manage/group/${Ne}`),
2828
3269
  // 分组管理
2829
- scheduling: Ce(`/api/duty-manage/scheduling/${Fe}`),
3270
+ scheduling: _e(`/api/duty-manage/scheduling/${Ne}`),
2830
3271
  // 排班管理
2831
- shift: Ce(`/api/duty-manage/shift/${Fe}`)
3272
+ shift: _e(`/api/duty-manage/shift/${Ne}`)
2832
3273
  // 交接班管理
2833
3274
  };
2834
3275
  export {
2835
- Ss as dutyModules
3276
+ ic as dutyModules
2836
3277
  };