jmash-region 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- import { deepMerge as cr, useUserStore as E, clearEmpty as _, request as $, addViteMenus as ut, i18n as pt } from "jmash-core";
2
- import { defineComponent as Xe, useModel as Br, ref as q, watchEffect as st, resolveComponent as Ze, openBlock as er, createBlock as rr, mergeModels as yt, watch as dt, mergeProps as vt } from "vue";
3
- const gt = {}, ht = {
1
+ import { deepMerge as sr, useUserStore as E, clearEmpty as _, request as $, addViteMenus as ht, i18n as gt } from "jmash-core";
2
+ import { defineComponent as rr, mergeModels as Gr, useModel as Vr, ref as j, watchEffect as mt, resolveComponent as tr, openBlock as nr, createBlock as ar, watch as St, mergeProps as bt } from "vue";
3
+ const wt = {}, At = {
4
4
  common: {
5
5
  delete: "删除",
6
6
  confirm: "确认",
@@ -31,17 +31,17 @@ const gt = {}, ht = {
31
31
  descriptionPlaceholder: "请输入描述"
32
32
  }
33
33
  };
34
- function mt(r) {
34
+ function Ot(r) {
35
35
  let e = r.global.getLocaleMessage("zh-cn");
36
- e = cr(e, ht);
36
+ e = sr(e, At);
37
37
  let n = r.global.getLocaleMessage("en");
38
- n = cr(n, gt), r.global.setLocaleMessage("zh-cn", e), r.global.setLocaleMessage("en", n);
38
+ n = sr(n, wt), r.global.setLocaleMessage("zh-cn", e), r.global.setLocaleMessage("en", n);
39
39
  }
40
- var ur = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
41
- function St(r) {
40
+ var yr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
41
+ function Et(r) {
42
42
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
43
43
  }
44
- function bt(r) {
44
+ function Pt(r) {
45
45
  if (r.__esModule) return r;
46
46
  var e = r.default;
47
47
  if (typeof e == "function") {
@@ -61,48 +61,48 @@ function bt(r) {
61
61
  }), n;
62
62
  }
63
63
  var ee = TypeError;
64
- const wt = {}, At = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
64
+ const $t = {}, _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
65
65
  __proto__: null,
66
- default: wt
67
- }, Symbol.toStringTag, { value: "Module" })), Ot = /* @__PURE__ */ bt(At);
68
- var tr = typeof Map == "function" && Map.prototype, Ie = Object.getOwnPropertyDescriptor && tr ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, me = tr && Ie && typeof Ie.get == "function" ? Ie.get : null, pr = tr && Map.prototype.forEach, nr = typeof Set == "function" && Set.prototype, xe = Object.getOwnPropertyDescriptor && nr ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Se = nr && xe && typeof xe.get == "function" ? xe.get : null, sr = nr && Set.prototype.forEach, Et = typeof WeakMap == "function" && WeakMap.prototype, ae = Et ? WeakMap.prototype.has : null, Pt = typeof WeakSet == "function" && WeakSet.prototype, oe = Pt ? WeakSet.prototype.has : null, $t = typeof WeakRef == "function" && WeakRef.prototype, yr = $t ? WeakRef.prototype.deref : null, _t = Boolean.prototype.valueOf, It = Object.prototype.toString, xt = Function.prototype.toString, Rt = String.prototype.match, ar = String.prototype.slice, B = String.prototype.replace, Ct = String.prototype.toUpperCase, dr = String.prototype.toLowerCase, Lr = RegExp.prototype.test, vr = Array.prototype.concat, R = Array.prototype.join, Ft = Array.prototype.slice, gr = Math.floor, Ke = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Re = Object.getOwnPropertySymbols, Qe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, X = typeof Symbol == "function" && typeof Symbol.iterator == "object", O = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === X || !0) ? Symbol.toStringTag : null, Ur = Object.prototype.propertyIsEnumerable, hr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(r) {
66
+ default: $t
67
+ }, Symbol.toStringTag, { value: "Module" })), It = /* @__PURE__ */ Pt(_t);
68
+ var or = typeof Map == "function" && Map.prototype, Ie = Object.getOwnPropertyDescriptor && or ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, me = or && Ie && typeof Ie.get == "function" ? Ie.get : null, dr = or && Map.prototype.forEach, ir = typeof Set == "function" && Set.prototype, xe = Object.getOwnPropertyDescriptor && ir ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Se = ir && xe && typeof xe.get == "function" ? xe.get : null, vr = ir && Set.prototype.forEach, xt = typeof WeakMap == "function" && WeakMap.prototype, ae = xt ? WeakMap.prototype.has : null, Rt = typeof WeakSet == "function" && WeakSet.prototype, oe = Rt ? WeakSet.prototype.has : null, Ct = typeof WeakRef == "function" && WeakRef.prototype, hr = Ct ? WeakRef.prototype.deref : null, Dt = Boolean.prototype.valueOf, Ft = Object.prototype.toString, Mt = Function.prototype.toString, Nt = String.prototype.match, lr = String.prototype.slice, B = String.prototype.replace, Tt = String.prototype.toUpperCase, gr = String.prototype.toLowerCase, zr = RegExp.prototype.test, mr = Array.prototype.concat, R = Array.prototype.join, Bt = Array.prototype.slice, Sr = Math.floor, Je = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Re = Object.getOwnPropertySymbols, je = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, X = typeof Symbol == "function" && typeof Symbol.iterator == "object", O = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === X || !0) ? Symbol.toStringTag : null, Hr = Object.prototype.propertyIsEnumerable, br = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(r) {
69
69
  return r.__proto__;
70
70
  } : null);
71
- function mr(r, e) {
72
- if (r === 1 / 0 || r === -1 / 0 || r !== r || r && r > -1e3 && r < 1e3 || Lr.call(/e/, e))
71
+ function wr(r, e) {
72
+ if (r === 1 / 0 || r === -1 / 0 || r !== r || r && r > -1e3 && r < 1e3 || zr.call(/e/, e))
73
73
  return e;
74
74
  var n = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
75
75
  if (typeof r == "number") {
76
- var t = r < 0 ? -gr(-r) : gr(r);
76
+ var t = r < 0 ? -Sr(-r) : Sr(r);
77
77
  if (t !== r) {
78
- var a = String(t), o = ar.call(e, a.length + 1);
78
+ var a = String(t), o = lr.call(e, a.length + 1);
79
79
  return B.call(a, n, "$&_") + "." + B.call(B.call(o, /([0-9]{3})/g, "$&_"), /_$/, "");
80
80
  }
81
81
  }
82
82
  return B.call(e, n, "$&_");
83
83
  }
84
- var Je = Ot, Sr = Je.custom, br = Gr(Sr) ? Sr : null, Wr = {
84
+ var Ye = It, Ar = Ye.custom, Or = Qr(Ar) ? Ar : null, Kr = {
85
85
  __proto__: null,
86
86
  double: '"',
87
87
  single: "'"
88
- }, Mt = {
88
+ }, Lt = {
89
89
  __proto__: null,
90
90
  double: /(["\\])/g,
91
91
  single: /(['\\])/g
92
92
  }, Ae = function r(e, n, t, a) {
93
93
  var o = n || {};
94
- if (F(o, "quoteStyle") && !F(Wr, o.quoteStyle))
94
+ if (D(o, "quoteStyle") && !D(Kr, o.quoteStyle))
95
95
  throw new TypeError('option "quoteStyle" must be "single" or "double"');
96
- if (F(o, "maxStringLength") && (typeof o.maxStringLength == "number" ? o.maxStringLength < 0 && o.maxStringLength !== 1 / 0 : o.maxStringLength !== null))
96
+ if (D(o, "maxStringLength") && (typeof o.maxStringLength == "number" ? o.maxStringLength < 0 && o.maxStringLength !== 1 / 0 : o.maxStringLength !== null))
97
97
  throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
98
- var i = F(o, "customInspect") ? o.customInspect : !0;
98
+ var i = D(o, "customInspect") ? o.customInspect : !0;
99
99
  if (typeof i != "boolean" && i !== "symbol")
100
100
  throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
101
- if (F(o, "indent") && o.indent !== null && o.indent !== " " && !(parseInt(o.indent, 10) === o.indent && o.indent > 0))
101
+ if (D(o, "indent") && o.indent !== null && o.indent !== " " && !(parseInt(o.indent, 10) === o.indent && o.indent > 0))
102
102
  throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
103
- if (F(o, "numericSeparator") && typeof o.numericSeparator != "boolean")
103
+ if (D(o, "numericSeparator") && typeof o.numericSeparator != "boolean")
104
104
  throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
105
- var u = o.numericSeparator;
105
+ var p = o.numericSeparator;
106
106
  if (typeof e > "u")
107
107
  return "undefined";
108
108
  if (e === null)
@@ -110,165 +110,165 @@ var Je = Ot, Sr = Je.custom, br = Gr(Sr) ? Sr : null, Wr = {
110
110
  if (typeof e == "boolean")
111
111
  return e ? "true" : "false";
112
112
  if (typeof e == "string")
113
- return zr(e, o);
113
+ return jr(e, o);
114
114
  if (typeof e == "number") {
115
115
  if (e === 0)
116
116
  return 1 / 0 / e > 0 ? "0" : "-0";
117
- var l = String(e);
118
- return u ? mr(e, l) : l;
117
+ var f = String(e);
118
+ return p ? wr(e, f) : f;
119
119
  }
120
120
  if (typeof e == "bigint") {
121
- var f = String(e) + "n";
122
- return u ? mr(e, f) : f;
121
+ var l = String(e) + "n";
122
+ return p ? wr(e, l) : l;
123
123
  }
124
- var p = typeof o.depth > "u" ? 5 : o.depth;
125
- if (typeof t > "u" && (t = 0), t >= p && p > 0 && typeof e == "object")
126
- return je(e) ? "[Array]" : "[Object]";
127
- var s = Yt(o, t);
124
+ var c = typeof o.depth > "u" ? 5 : o.depth;
125
+ if (typeof t > "u" && (t = 0), t >= c && c > 0 && typeof e == "object")
126
+ return Xe(e) ? "[Array]" : "[Object]";
127
+ var s = tn(o, t);
128
128
  if (typeof a > "u")
129
129
  a = [];
130
- else if (Vr(a, e) >= 0)
130
+ else if (Jr(a, e) >= 0)
131
131
  return "[Circular]";
132
- function c(P, T, C) {
133
- if (T && (a = Ft.call(a), a.push(T)), C) {
132
+ function u(P, T, C) {
133
+ if (T && (a = Bt.call(a), a.push(T)), C) {
134
134
  var te = {
135
135
  depth: o.depth
136
136
  };
137
- return F(o, "quoteStyle") && (te.quoteStyle = o.quoteStyle), r(P, te, t + 1, a);
137
+ return D(o, "quoteStyle") && (te.quoteStyle = o.quoteStyle), r(P, te, t + 1, a);
138
138
  }
139
139
  return r(P, o, t + 1, a);
140
140
  }
141
- if (typeof e == "function" && !wr(e)) {
142
- var d = Gt(e), y = ye(e, c);
143
- return "[Function" + (d ? ": " + d : " (anonymous)") + "]" + (y.length > 0 ? " { " + R.call(y, ", ") + " }" : "");
141
+ if (typeof e == "function" && !Er(e)) {
142
+ var y = qt(e), d = ye(e, u);
143
+ return "[Function" + (y ? ": " + y : " (anonymous)") + "]" + (d.length > 0 ? " { " + R.call(d, ", ") + " }" : "");
144
144
  }
145
- if (Gr(e)) {
146
- var h = X ? B.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Qe.call(e);
145
+ if (Qr(e)) {
146
+ var h = X ? B.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : je.call(e);
147
147
  return typeof e == "object" && !X ? ne(h) : h;
148
148
  }
149
- if (Jt(e)) {
150
- for (var S = "<" + dr.call(String(e.nodeName)), w = e.attributes || [], M = 0; M < w.length; M++)
151
- S += " " + w[M].name + "=" + kr(Dt(w[M].value), "double", o);
152
- return S += ">", e.childNodes && e.childNodes.length && (S += "..."), S += "</" + dr.call(String(e.nodeName)) + ">", S;
149
+ if (Zt(e)) {
150
+ for (var m = "<" + gr.call(String(e.nodeName)), S = e.attributes || [], F = 0; F < S.length; F++)
151
+ m += " " + S[F].name + "=" + qr(Ut(S[F].value), "double", o);
152
+ return m += ">", e.childNodes && e.childNodes.length && (m += "..."), m += "</" + gr.call(String(e.nodeName)) + ">", m;
153
153
  }
154
- if (je(e)) {
154
+ if (Xe(e)) {
155
155
  if (e.length === 0)
156
156
  return "[]";
157
- var g = ye(e, c);
158
- return s && !qt(g) ? "[" + qe(g, s) + "]" : "[ " + R.call(g, ", ") + " ]";
157
+ var g = ye(e, u);
158
+ return s && !rn(g) ? "[" + Ze(g, s) + "]" : "[ " + R.call(g, ", ") + " ]";
159
159
  }
160
- if (Tt(e)) {
161
- var D = ye(e, c);
162
- return !("cause" in Error.prototype) && "cause" in e && !Ur.call(e, "cause") ? "{ [" + String(e) + "] " + R.call(vr.call("[cause]: " + c(e.cause), D), ", ") + " }" : D.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + R.call(D, ", ") + " }";
160
+ if (kt(e)) {
161
+ var M = ye(e, u);
162
+ return !("cause" in Error.prototype) && "cause" in e && !Hr.call(e, "cause") ? "{ [" + String(e) + "] " + R.call(mr.call("[cause]: " + u(e.cause), M), ", ") + " }" : M.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + R.call(M, ", ") + " }";
163
163
  }
164
164
  if (typeof e == "object" && i) {
165
- if (br && typeof e[br] == "function" && Je)
166
- return Je(e, { depth: p - t });
165
+ if (Or && typeof e[Or] == "function" && Ye)
166
+ return Ye(e, { depth: c - t });
167
167
  if (i !== "symbol" && typeof e.inspect == "function")
168
168
  return e.inspect();
169
169
  }
170
- if (Vt(e)) {
170
+ if (Qt(e)) {
171
171
  var U = [];
172
- return pr && pr.call(e, function(P, T) {
173
- U.push(c(T, e, !0) + " => " + c(P, e));
174
- }), Ar("Map", me.call(e), U, s);
172
+ return dr && dr.call(e, function(P, T) {
173
+ U.push(u(T, e, !0) + " => " + u(P, e));
174
+ }), Pr("Map", me.call(e), U, s);
175
175
  }
176
- if (Kt(e)) {
176
+ if (Yt(e)) {
177
177
  var re = [];
178
- return sr && sr.call(e, function(P) {
179
- re.push(c(P, e));
180
- }), Ar("Set", Se.call(e), re, s);
178
+ return vr && vr.call(e, function(P) {
179
+ re.push(u(P, e));
180
+ }), Pr("Set", Se.call(e), re, s);
181
181
  }
182
- if (zt(e))
182
+ if (Jt(e))
183
183
  return Ce("WeakMap");
184
- if (Qt(e))
184
+ if (Xt(e))
185
185
  return Ce("WeakSet");
186
- if (Ht(e))
186
+ if (jt(e))
187
187
  return Ce("WeakRef");
188
- if (Lt(e))
189
- return ne(c(Number(e)));
190
- if (Wt(e))
191
- return ne(c(Ke.call(e)));
192
- if (Ut(e))
193
- return ne(_t.call(e));
194
- if (Bt(e))
195
- return ne(c(String(e)));
188
+ if (Vt(e))
189
+ return ne(u(Number(e)));
190
+ if (Ht(e))
191
+ return ne(u(Je.call(e)));
192
+ if (zt(e))
193
+ return ne(Dt.call(e));
194
+ if (Gt(e))
195
+ return ne(u(String(e)));
196
196
  if (typeof window < "u" && e === window)
197
197
  return "{ [object Window] }";
198
- if (typeof globalThis < "u" && e === globalThis || typeof ur < "u" && e === ur)
198
+ if (typeof globalThis < "u" && e === globalThis || typeof yr < "u" && e === yr)
199
199
  return "{ [object globalThis] }";
200
- if (!Nt(e) && !wr(e)) {
201
- var H = ye(e, c), pe = hr ? hr(e) === Object.prototype : e instanceof Object || e.constructor === Object, W = e instanceof Object ? "" : "null prototype", N = !pe && O && Object(e) === e && O in e ? ar.call(L(e), 8, -1) : W ? "Object" : "", se = pe || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", K = se + (N || W ? "[" + R.call(vr.call([], N || [], W || []), ": ") + "] " : "");
202
- return H.length === 0 ? K + "{}" : s ? K + "{" + qe(H, s) + "}" : K + "{ " + R.call(H, ", ") + " }";
200
+ if (!Wt(e) && !Er(e)) {
201
+ var H = ye(e, u), pe = br ? br(e) === Object.prototype : e instanceof Object || e.constructor === Object, W = e instanceof Object ? "" : "null prototype", N = !pe && O && Object(e) === e && O in e ? lr.call(L(e), 8, -1) : W ? "Object" : "", se = pe || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", K = se + (N || W ? "[" + R.call(mr.call([], N || [], W || []), ": ") + "] " : "");
202
+ return H.length === 0 ? K + "{}" : s ? K + "{" + Ze(H, s) + "}" : K + "{ " + R.call(H, ", ") + " }";
203
203
  }
204
204
  return String(e);
205
205
  };
206
- function kr(r, e, n) {
207
- var t = n.quoteStyle || e, a = Wr[t];
206
+ function qr(r, e, n) {
207
+ var t = n.quoteStyle || e, a = Kr[t];
208
208
  return a + r + a;
209
209
  }
210
- function Dt(r) {
210
+ function Ut(r) {
211
211
  return B.call(String(r), /"/g, "&quot;");
212
212
  }
213
- function je(r) {
213
+ function Xe(r) {
214
214
  return L(r) === "[object Array]" && (!O || !(typeof r == "object" && O in r));
215
215
  }
216
- function Nt(r) {
216
+ function Wt(r) {
217
217
  return L(r) === "[object Date]" && (!O || !(typeof r == "object" && O in r));
218
218
  }
219
- function wr(r) {
219
+ function Er(r) {
220
220
  return L(r) === "[object RegExp]" && (!O || !(typeof r == "object" && O in r));
221
221
  }
222
- function Tt(r) {
222
+ function kt(r) {
223
223
  return L(r) === "[object Error]" && (!O || !(typeof r == "object" && O in r));
224
224
  }
225
- function Bt(r) {
225
+ function Gt(r) {
226
226
  return L(r) === "[object String]" && (!O || !(typeof r == "object" && O in r));
227
227
  }
228
- function Lt(r) {
228
+ function Vt(r) {
229
229
  return L(r) === "[object Number]" && (!O || !(typeof r == "object" && O in r));
230
230
  }
231
- function Ut(r) {
231
+ function zt(r) {
232
232
  return L(r) === "[object Boolean]" && (!O || !(typeof r == "object" && O in r));
233
233
  }
234
- function Gr(r) {
234
+ function Qr(r) {
235
235
  if (X)
236
236
  return r && typeof r == "object" && r instanceof Symbol;
237
237
  if (typeof r == "symbol")
238
238
  return !0;
239
- if (!r || typeof r != "object" || !Qe)
239
+ if (!r || typeof r != "object" || !je)
240
240
  return !1;
241
241
  try {
242
- return Qe.call(r), !0;
242
+ return je.call(r), !0;
243
243
  } catch {
244
244
  }
245
245
  return !1;
246
246
  }
247
- function Wt(r) {
248
- if (!r || typeof r != "object" || !Ke)
247
+ function Ht(r) {
248
+ if (!r || typeof r != "object" || !Je)
249
249
  return !1;
250
250
  try {
251
- return Ke.call(r), !0;
251
+ return Je.call(r), !0;
252
252
  } catch {
253
253
  }
254
254
  return !1;
255
255
  }
256
- var kt = Object.prototype.hasOwnProperty || function(r) {
256
+ var Kt = Object.prototype.hasOwnProperty || function(r) {
257
257
  return r in this;
258
258
  };
259
- function F(r, e) {
260
- return kt.call(r, e);
259
+ function D(r, e) {
260
+ return Kt.call(r, e);
261
261
  }
262
262
  function L(r) {
263
- return It.call(r);
263
+ return Ft.call(r);
264
264
  }
265
- function Gt(r) {
265
+ function qt(r) {
266
266
  if (r.name)
267
267
  return r.name;
268
- var e = Rt.call(xt.call(r), /^function\s*([\w$]+)/);
268
+ var e = Nt.call(Mt.call(r), /^function\s*([\w$]+)/);
269
269
  return e ? e[1] : null;
270
270
  }
271
- function Vr(r, e) {
271
+ function Jr(r, e) {
272
272
  if (r.indexOf)
273
273
  return r.indexOf(e);
274
274
  for (var n = 0, t = r.length; n < t; n++)
@@ -276,7 +276,7 @@ function Vr(r, e) {
276
276
  return n;
277
277
  return -1;
278
278
  }
279
- function Vt(r) {
279
+ function Qt(r) {
280
280
  if (!me || !r || typeof r != "object")
281
281
  return !1;
282
282
  try {
@@ -291,7 +291,7 @@ function Vt(r) {
291
291
  }
292
292
  return !1;
293
293
  }
294
- function zt(r) {
294
+ function Jt(r) {
295
295
  if (!ae || !r || typeof r != "object")
296
296
  return !1;
297
297
  try {
@@ -306,16 +306,16 @@ function zt(r) {
306
306
  }
307
307
  return !1;
308
308
  }
309
- function Ht(r) {
310
- if (!yr || !r || typeof r != "object")
309
+ function jt(r) {
310
+ if (!hr || !r || typeof r != "object")
311
311
  return !1;
312
312
  try {
313
- return yr.call(r), !0;
313
+ return hr.call(r), !0;
314
314
  } catch {
315
315
  }
316
316
  return !1;
317
317
  }
318
- function Kt(r) {
318
+ function Yt(r) {
319
319
  if (!Se || !r || typeof r != "object")
320
320
  return !1;
321
321
  try {
@@ -330,7 +330,7 @@ function Kt(r) {
330
330
  }
331
331
  return !1;
332
332
  }
333
- function Qt(r) {
333
+ function Xt(r) {
334
334
  if (!oe || !r || typeof r != "object")
335
335
  return !1;
336
336
  try {
@@ -345,20 +345,20 @@ function Qt(r) {
345
345
  }
346
346
  return !1;
347
347
  }
348
- function Jt(r) {
348
+ function Zt(r) {
349
349
  return !r || typeof r != "object" ? !1 : typeof HTMLElement < "u" && r instanceof HTMLElement ? !0 : typeof r.nodeName == "string" && typeof r.getAttribute == "function";
350
350
  }
351
- function zr(r, e) {
351
+ function jr(r, e) {
352
352
  if (r.length > e.maxStringLength) {
353
353
  var n = r.length - e.maxStringLength, t = "... " + n + " more character" + (n > 1 ? "s" : "");
354
- return zr(ar.call(r, 0, e.maxStringLength), e) + t;
354
+ return jr(lr.call(r, 0, e.maxStringLength), e) + t;
355
355
  }
356
- var a = Mt[e.quoteStyle || "single"];
356
+ var a = Lt[e.quoteStyle || "single"];
357
357
  a.lastIndex = 0;
358
- var o = B.call(B.call(r, a, "\\$1"), /[\x00-\x1f]/g, jt);
359
- return kr(o, "single", e);
358
+ var o = B.call(B.call(r, a, "\\$1"), /[\x00-\x1f]/g, en);
359
+ return qr(o, "single", e);
360
360
  }
361
- function jt(r) {
361
+ function en(r) {
362
362
  var e = r.charCodeAt(0), n = {
363
363
  8: "b",
364
364
  9: "t",
@@ -366,7 +366,7 @@ function jt(r) {
366
366
  12: "f",
367
367
  13: "r"
368
368
  }[e];
369
- return n ? "\\" + n : "\\x" + (e < 16 ? "0" : "") + Ct.call(e.toString(16));
369
+ return n ? "\\" + n : "\\x" + (e < 16 ? "0" : "") + Tt.call(e.toString(16));
370
370
  }
371
371
  function ne(r) {
372
372
  return "Object(" + r + ")";
@@ -374,18 +374,18 @@ function ne(r) {
374
374
  function Ce(r) {
375
375
  return r + " { ? }";
376
376
  }
377
- function Ar(r, e, n, t) {
378
- var a = t ? qe(n, t) : R.call(n, ", ");
377
+ function Pr(r, e, n, t) {
378
+ var a = t ? Ze(n, t) : R.call(n, ", ");
379
379
  return r + " (" + e + ") {" + a + "}";
380
380
  }
381
- function qt(r) {
381
+ function rn(r) {
382
382
  for (var e = 0; e < r.length; e++)
383
- if (Vr(r[e], `
383
+ if (Jr(r[e], `
384
384
  `) >= 0)
385
385
  return !1;
386
386
  return !0;
387
387
  }
388
- function Yt(r, e) {
388
+ function tn(r, e) {
389
389
  var n;
390
390
  if (r.indent === " ")
391
391
  n = " ";
@@ -398,7 +398,7 @@ function Yt(r, e) {
398
398
  prev: R.call(Array(e + 1), n)
399
399
  };
400
400
  }
401
- function qe(r, e) {
401
+ function Ze(r, e) {
402
402
  if (r.length === 0)
403
403
  return "";
404
404
  var n = `
@@ -407,36 +407,36 @@ function qe(r, e) {
407
407
  ` + e.prev;
408
408
  }
409
409
  function ye(r, e) {
410
- var n = je(r), t = [];
410
+ var n = Xe(r), t = [];
411
411
  if (n) {
412
412
  t.length = r.length;
413
413
  for (var a = 0; a < r.length; a++)
414
- t[a] = F(r, a) ? e(r[a], r) : "";
414
+ t[a] = D(r, a) ? e(r[a], r) : "";
415
415
  }
416
416
  var o = typeof Re == "function" ? Re(r) : [], i;
417
417
  if (X) {
418
418
  i = {};
419
- for (var u = 0; u < o.length; u++)
420
- i["$" + o[u]] = o[u];
419
+ for (var p = 0; p < o.length; p++)
420
+ i["$" + o[p]] = o[p];
421
421
  }
422
- for (var l in r)
423
- F(r, l) && (n && String(Number(l)) === l && l < r.length || X && i["$" + l] instanceof Symbol || (Lr.call(/[^\w$]/, l) ? t.push(e(l, r) + ": " + e(r[l], r)) : t.push(l + ": " + e(r[l], r))));
422
+ for (var f in r)
423
+ D(r, f) && (n && String(Number(f)) === f && f < r.length || X && i["$" + f] instanceof Symbol || (zr.call(/[^\w$]/, f) ? t.push(e(f, r) + ": " + e(r[f], r)) : t.push(f + ": " + e(r[f], r))));
424
424
  if (typeof Re == "function")
425
- for (var f = 0; f < o.length; f++)
426
- Ur.call(r, o[f]) && t.push("[" + e(o[f]) + "]: " + e(r[o[f]], r));
425
+ for (var l = 0; l < o.length; l++)
426
+ Hr.call(r, o[l]) && t.push("[" + e(o[l]) + "]: " + e(r[o[l]], r));
427
427
  return t;
428
428
  }
429
- var Xt = Ae, Zt = ee, Oe = function(r, e, n) {
429
+ var nn = Ae, an = ee, Oe = function(r, e, n) {
430
430
  for (var t = r, a; (a = t.next) != null; t = a)
431
431
  if (a.key === e)
432
432
  return t.next = a.next, n || (a.next = /** @type {NonNullable<typeof list.next>} */
433
433
  r.next, r.next = a), a;
434
- }, en = function(r, e) {
434
+ }, on = function(r, e) {
435
435
  if (r) {
436
436
  var n = Oe(r, e);
437
437
  return n && n.value;
438
438
  }
439
- }, rn = function(r, e, n) {
439
+ }, ln = function(r, e, n) {
440
440
  var t = Oe(r, e);
441
441
  t ? t.value = n : r.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
442
442
  {
@@ -445,31 +445,31 @@ var Xt = Ae, Zt = ee, Oe = function(r, e, n) {
445
445
  next: r.next,
446
446
  value: n
447
447
  };
448
- }, tn = function(r, e) {
448
+ }, fn = function(r, e) {
449
449
  return r ? !!Oe(r, e) : !1;
450
- }, nn = function(r, e) {
450
+ }, un = function(r, e) {
451
451
  if (r)
452
452
  return Oe(r, e, !0);
453
- }, an = function() {
453
+ }, cn = function() {
454
454
  var e, n = {
455
455
  assert: function(t) {
456
456
  if (!n.has(t))
457
- throw new Zt("Side channel does not contain " + Xt(t));
457
+ throw new an("Side channel does not contain " + nn(t));
458
458
  },
459
459
  delete: function(t) {
460
- var a = e && e.next, o = nn(e, t);
460
+ var a = e && e.next, o = un(e, t);
461
461
  return o && a && a === o && (e = void 0), !!o;
462
462
  },
463
463
  get: function(t) {
464
- return en(e, t);
464
+ return on(e, t);
465
465
  },
466
466
  has: function(t) {
467
- return tn(e, t);
467
+ return fn(e, t);
468
468
  },
469
469
  set: function(t, a) {
470
470
  e || (e = {
471
471
  next: void 0
472
- }), rn(
472
+ }), ln(
473
473
  /** @type {NonNullable<typeof $o>} */
474
474
  e,
475
475
  t,
@@ -478,27 +478,27 @@ var Xt = Ae, Zt = ee, Oe = function(r, e, n) {
478
478
  }
479
479
  };
480
480
  return n;
481
- }, Hr = Object, on = Error, ln = EvalError, fn = RangeError, cn = ReferenceError, un = SyntaxError, pn = URIError, sn = Math.abs, yn = Math.floor, dn = Math.max, vn = Math.min, gn = Math.pow, hn = Math.round, mn = Number.isNaN || function(e) {
481
+ }, Yr = Object, pn = Error, sn = EvalError, yn = RangeError, dn = ReferenceError, vn = SyntaxError, hn = URIError, gn = Math.abs, mn = Math.floor, Sn = Math.max, bn = Math.min, wn = Math.pow, An = Math.round, On = Number.isNaN || function(e) {
482
482
  return e !== e;
483
- }, Sn = mn, bn = function(e) {
484
- return Sn(e) || e === 0 ? e : e < 0 ? -1 : 1;
485
- }, wn = Object.getOwnPropertyDescriptor, ve = wn;
483
+ }, En = On, Pn = function(e) {
484
+ return En(e) || e === 0 ? e : e < 0 ? -1 : 1;
485
+ }, $n = Object.getOwnPropertyDescriptor, ve = $n;
486
486
  if (ve)
487
487
  try {
488
488
  ve([], "length");
489
489
  } catch {
490
490
  ve = null;
491
491
  }
492
- var Kr = ve, ge = Object.defineProperty || !1;
493
- if (ge)
492
+ var Xr = ve, he = Object.defineProperty || !1;
493
+ if (he)
494
494
  try {
495
- ge({}, "a", { value: 1 });
495
+ he({}, "a", { value: 1 });
496
496
  } catch {
497
- ge = !1;
497
+ he = !1;
498
498
  }
499
- var An = ge, Fe, Or;
500
- function On() {
501
- return Or || (Or = 1, Fe = function() {
499
+ var _n = he, De, $r;
500
+ function In() {
501
+ return $r || ($r = 1, De = function() {
502
502
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
503
503
  return !1;
504
504
  if (typeof Symbol.iterator == "symbol")
@@ -516,87 +516,105 @@ function On() {
516
516
  if (i.length !== 1 || i[0] !== n || !Object.prototype.propertyIsEnumerable.call(e, n))
517
517
  return !1;
518
518
  if (typeof Object.getOwnPropertyDescriptor == "function") {
519
- var u = (
519
+ var p = (
520
520
  /** @type {PropertyDescriptor} */
521
521
  Object.getOwnPropertyDescriptor(e, n)
522
522
  );
523
- if (u.value !== a || u.enumerable !== !0)
523
+ if (p.value !== a || p.enumerable !== !0)
524
524
  return !1;
525
525
  }
526
526
  return !0;
527
- }), Fe;
527
+ }), De;
528
528
  }
529
- var Me, Er;
530
- function En() {
531
- if (Er) return Me;
532
- Er = 1;
533
- var r = typeof Symbol < "u" && Symbol, e = On();
534
- return Me = function() {
529
+ var Fe, _r;
530
+ function xn() {
531
+ if (_r) return Fe;
532
+ _r = 1;
533
+ var r = typeof Symbol < "u" && Symbol, e = In();
534
+ return Fe = function() {
535
535
  return typeof r != "function" || typeof Symbol != "function" || typeof r("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
536
- }, Me;
536
+ }, Fe;
537
537
  }
538
- var De, Pr;
539
- function Qr() {
540
- return Pr || (Pr = 1, De = typeof Reflect < "u" && Reflect.getPrototypeOf || null), De;
538
+ var Me, Ir;
539
+ function Zr() {
540
+ return Ir || (Ir = 1, Me = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Me;
541
541
  }
542
- var Ne, $r;
543
- function Jr() {
544
- if ($r) return Ne;
545
- $r = 1;
546
- var r = Hr;
542
+ var Ne, xr;
543
+ function et() {
544
+ if (xr) return Ne;
545
+ xr = 1;
546
+ var r = Yr;
547
547
  return Ne = r.getPrototypeOf || null, Ne;
548
548
  }
549
- var Pn = "Function.prototype.bind called on incompatible ", $n = Object.prototype.toString, _n = Math.max, In = "[object Function]", _r = function(e, n) {
550
- for (var t = [], a = 0; a < e.length; a += 1)
551
- t[a] = e[a];
552
- for (var o = 0; o < n.length; o += 1)
553
- t[o + e.length] = n[o];
554
- return t;
555
- }, xn = function(e, n) {
556
- for (var t = [], a = n, o = 0; a < e.length; a += 1, o += 1)
557
- t[o] = e[a];
558
- return t;
559
- }, Rn = function(r, e) {
560
- for (var n = "", t = 0; t < r.length; t += 1)
561
- n += r[t], t + 1 < r.length && (n += e);
562
- return n;
563
- }, Cn = function(e) {
564
- var n = this;
565
- if (typeof n != "function" || $n.apply(n) !== In)
566
- throw new TypeError(Pn + n);
567
- for (var t = xn(arguments, 1), a, o = function() {
568
- if (this instanceof a) {
569
- var p = n.apply(
570
- this,
571
- _r(t, arguments)
549
+ var Te, Rr;
550
+ function Rn() {
551
+ if (Rr) return Te;
552
+ Rr = 1;
553
+ var r = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, n = Math.max, t = "[object Function]", a = function(f, l) {
554
+ for (var c = [], s = 0; s < f.length; s += 1)
555
+ c[s] = f[s];
556
+ for (var u = 0; u < l.length; u += 1)
557
+ c[u + f.length] = l[u];
558
+ return c;
559
+ }, o = function(f, l) {
560
+ for (var c = [], s = l, u = 0; s < f.length; s += 1, u += 1)
561
+ c[u] = f[s];
562
+ return c;
563
+ }, i = function(p, f) {
564
+ for (var l = "", c = 0; c < p.length; c += 1)
565
+ l += p[c], c + 1 < p.length && (l += f);
566
+ return l;
567
+ };
568
+ return Te = function(f) {
569
+ var l = this;
570
+ if (typeof l != "function" || e.apply(l) !== t)
571
+ throw new TypeError(r + l);
572
+ for (var c = o(arguments, 1), s, u = function() {
573
+ if (this instanceof s) {
574
+ var S = l.apply(
575
+ this,
576
+ a(c, arguments)
577
+ );
578
+ return Object(S) === S ? S : this;
579
+ }
580
+ return l.apply(
581
+ f,
582
+ a(c, arguments)
572
583
  );
573
- return Object(p) === p ? p : this;
584
+ }, y = n(0, l.length - c.length), d = [], h = 0; h < y; h++)
585
+ d[h] = "$" + h;
586
+ if (s = Function("binder", "return function (" + i(d, ",") + "){ return binder.apply(this,arguments); }")(u), l.prototype) {
587
+ var m = function() {
588
+ };
589
+ m.prototype = l.prototype, s.prototype = new m(), m.prototype = null;
574
590
  }
575
- return n.apply(
576
- e,
577
- _r(t, arguments)
578
- );
579
- }, i = _n(0, n.length - t.length), u = [], l = 0; l < i; l++)
580
- u[l] = "$" + l;
581
- if (a = Function("binder", "return function (" + Rn(u, ",") + "){ return binder.apply(this,arguments); }")(o), n.prototype) {
582
- var f = function() {
583
- };
584
- f.prototype = n.prototype, a.prototype = new f(), f.prototype = null;
585
- }
586
- return a;
587
- }, Fn = Cn, Ee = Function.prototype.bind || Fn, or = Function.prototype.call, Te, Ir;
588
- function jr() {
589
- return Ir || (Ir = 1, Te = Function.prototype.apply), Te;
591
+ return s;
592
+ }, Te;
593
+ }
594
+ var Be, Cr;
595
+ function Ee() {
596
+ if (Cr) return Be;
597
+ Cr = 1;
598
+ var r = Rn();
599
+ return Be = Function.prototype.bind || r, Be;
600
+ }
601
+ var Le, Dr;
602
+ function fr() {
603
+ return Dr || (Dr = 1, Le = Function.prototype.call), Le;
590
604
  }
591
- var Mn = typeof Reflect < "u" && Reflect && Reflect.apply, Dn = Ee, Nn = jr(), Tn = or, Bn = Mn, Ln = Bn || Dn.call(Tn, Nn), Un = Ee, Wn = ee, kn = or, Gn = Ln, qr = function(e) {
605
+ var Ue, Fr;
606
+ function rt() {
607
+ return Fr || (Fr = 1, Ue = Function.prototype.apply), Ue;
608
+ }
609
+ var Cn = typeof Reflect < "u" && Reflect && Reflect.apply, Dn = Ee(), Fn = rt(), Mn = fr(), Nn = Cn, Tn = Nn || Dn.call(Mn, Fn), Bn = Ee(), Ln = ee, Un = fr(), Wn = Tn, tt = function(e) {
592
610
  if (e.length < 1 || typeof e[0] != "function")
593
- throw new Wn("a function is required");
594
- return Gn(Un, kn, e);
595
- }, Be, xr;
596
- function Vn() {
597
- if (xr) return Be;
598
- xr = 1;
599
- var r = qr, e = Kr, n;
611
+ throw new Ln("a function is required");
612
+ return Wn(Bn, Un, e);
613
+ }, We, Mr;
614
+ function kn() {
615
+ if (Mr) return We;
616
+ Mr = 1;
617
+ var r = tt, e = Xr, n;
600
618
  try {
601
619
  n = /** @type {{ __proto__?: typeof Array.prototype }} */
602
620
  [].__proto__ === Array.prototype;
@@ -609,19 +627,19 @@ function Vn() {
609
627
  /** @type {keyof typeof Object.prototype} */
610
628
  "__proto__"
611
629
  ), a = Object, o = a.getPrototypeOf;
612
- return Be = t && typeof t.get == "function" ? r([t.get]) : typeof o == "function" ? (
630
+ return We = t && typeof t.get == "function" ? r([t.get]) : typeof o == "function" ? (
613
631
  /** @type {import('./get')} */
614
- function(u) {
615
- return o(u == null ? u : a(u));
632
+ function(p) {
633
+ return o(p == null ? p : a(p));
616
634
  }
617
- ) : !1, Be;
635
+ ) : !1, We;
618
636
  }
619
- var Le, Rr;
620
- function zn() {
621
- if (Rr) return Le;
622
- Rr = 1;
623
- var r = Qr(), e = Jr(), n = Vn();
624
- return Le = r ? function(a) {
637
+ var ke, Nr;
638
+ function Gn() {
639
+ if (Nr) return ke;
640
+ Nr = 1;
641
+ var r = Zr(), e = et(), n = kn();
642
+ return ke = r ? function(a) {
625
643
  return r(a);
626
644
  } : e ? function(a) {
627
645
  if (!a || typeof a != "object" && typeof a != "function")
@@ -629,43 +647,43 @@ function zn() {
629
647
  return e(a);
630
648
  } : n ? function(a) {
631
649
  return n(a);
632
- } : null, Le;
650
+ } : null, ke;
633
651
  }
634
- var Ue, Cr;
635
- function Hn() {
636
- if (Cr) return Ue;
637
- Cr = 1;
638
- var r = Function.prototype.call, e = Object.prototype.hasOwnProperty, n = Ee;
639
- return Ue = n.call(r, e), Ue;
652
+ var Ge, Tr;
653
+ function Vn() {
654
+ if (Tr) return Ge;
655
+ Tr = 1;
656
+ var r = Function.prototype.call, e = Object.prototype.hasOwnProperty, n = Ee();
657
+ return Ge = n.call(r, e), Ge;
640
658
  }
641
- var v, Kn = Hr, Qn = on, Jn = ln, jn = fn, qn = cn, Z = un, Y = ee, Yn = pn, Xn = sn, Zn = yn, ea = dn, ra = vn, ta = gn, na = hn, aa = bn, Yr = Function, We = function(r) {
659
+ var v, zn = Yr, Hn = pn, Kn = sn, qn = yn, Qn = dn, Z = vn, Y = ee, Jn = hn, jn = gn, Yn = mn, Xn = Sn, Zn = bn, ea = wn, ra = An, ta = Pn, nt = Function, Ve = function(r) {
642
660
  try {
643
- return Yr('"use strict"; return (' + r + ").constructor;")();
661
+ return nt('"use strict"; return (' + r + ").constructor;")();
644
662
  } catch {
645
663
  }
646
- }, le = Kr, oa = An, ke = function() {
664
+ }, le = Xr, na = _n, ze = function() {
647
665
  throw new Y();
648
- }, ia = le ? function() {
666
+ }, aa = le ? function() {
649
667
  try {
650
- return arguments.callee, ke;
668
+ return arguments.callee, ze;
651
669
  } catch {
652
670
  try {
653
671
  return le(arguments, "callee").get;
654
672
  } catch {
655
- return ke;
673
+ return ze;
656
674
  }
657
675
  }
658
- }() : ke, Q = En()(), A = zn(), la = Jr(), fa = Qr(), Xr = jr(), fe = or, j = {}, ca = typeof Uint8Array > "u" || !A ? v : A(Uint8Array), G = {
676
+ }() : ze, q = xn()(), A = Gn(), oa = et(), ia = Zr(), at = rt(), fe = fr(), J = {}, la = typeof Uint8Array > "u" || !A ? v : A(Uint8Array), G = {
659
677
  __proto__: null,
660
678
  "%AggregateError%": typeof AggregateError > "u" ? v : AggregateError,
661
679
  "%Array%": Array,
662
680
  "%ArrayBuffer%": typeof ArrayBuffer > "u" ? v : ArrayBuffer,
663
- "%ArrayIteratorPrototype%": Q && A ? A([][Symbol.iterator]()) : v,
681
+ "%ArrayIteratorPrototype%": q && A ? A([][Symbol.iterator]()) : v,
664
682
  "%AsyncFromSyncIteratorPrototype%": v,
665
- "%AsyncFunction%": j,
666
- "%AsyncGenerator%": j,
667
- "%AsyncGeneratorFunction%": j,
668
- "%AsyncIteratorPrototype%": j,
683
+ "%AsyncFunction%": J,
684
+ "%AsyncGenerator%": J,
685
+ "%AsyncGeneratorFunction%": J,
686
+ "%AsyncIteratorPrototype%": J,
669
687
  "%Atomics%": typeof Atomics > "u" ? v : Atomics,
670
688
  "%BigInt%": typeof BigInt > "u" ? v : BigInt,
671
689
  "%BigInt64Array%": typeof BigInt64Array > "u" ? v : BigInt64Array,
@@ -677,83 +695,83 @@ var v, Kn = Hr, Qn = on, Jn = ln, jn = fn, qn = cn, Z = un, Y = ee, Yn = pn, Xn
677
695
  "%decodeURIComponent%": decodeURIComponent,
678
696
  "%encodeURI%": encodeURI,
679
697
  "%encodeURIComponent%": encodeURIComponent,
680
- "%Error%": Qn,
698
+ "%Error%": Hn,
681
699
  "%eval%": eval,
682
700
  // eslint-disable-line no-eval
683
- "%EvalError%": Jn,
701
+ "%EvalError%": Kn,
684
702
  "%Float16Array%": typeof Float16Array > "u" ? v : Float16Array,
685
703
  "%Float32Array%": typeof Float32Array > "u" ? v : Float32Array,
686
704
  "%Float64Array%": typeof Float64Array > "u" ? v : Float64Array,
687
705
  "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? v : FinalizationRegistry,
688
- "%Function%": Yr,
689
- "%GeneratorFunction%": j,
706
+ "%Function%": nt,
707
+ "%GeneratorFunction%": J,
690
708
  "%Int8Array%": typeof Int8Array > "u" ? v : Int8Array,
691
709
  "%Int16Array%": typeof Int16Array > "u" ? v : Int16Array,
692
710
  "%Int32Array%": typeof Int32Array > "u" ? v : Int32Array,
693
711
  "%isFinite%": isFinite,
694
712
  "%isNaN%": isNaN,
695
- "%IteratorPrototype%": Q && A ? A(A([][Symbol.iterator]())) : v,
713
+ "%IteratorPrototype%": q && A ? A(A([][Symbol.iterator]())) : v,
696
714
  "%JSON%": typeof JSON == "object" ? JSON : v,
697
715
  "%Map%": typeof Map > "u" ? v : Map,
698
- "%MapIteratorPrototype%": typeof Map > "u" || !Q || !A ? v : A((/* @__PURE__ */ new Map())[Symbol.iterator]()),
716
+ "%MapIteratorPrototype%": typeof Map > "u" || !q || !A ? v : A((/* @__PURE__ */ new Map())[Symbol.iterator]()),
699
717
  "%Math%": Math,
700
718
  "%Number%": Number,
701
- "%Object%": Kn,
719
+ "%Object%": zn,
702
720
  "%Object.getOwnPropertyDescriptor%": le,
703
721
  "%parseFloat%": parseFloat,
704
722
  "%parseInt%": parseInt,
705
723
  "%Promise%": typeof Promise > "u" ? v : Promise,
706
724
  "%Proxy%": typeof Proxy > "u" ? v : Proxy,
707
- "%RangeError%": jn,
708
- "%ReferenceError%": qn,
725
+ "%RangeError%": qn,
726
+ "%ReferenceError%": Qn,
709
727
  "%Reflect%": typeof Reflect > "u" ? v : Reflect,
710
728
  "%RegExp%": RegExp,
711
729
  "%Set%": typeof Set > "u" ? v : Set,
712
- "%SetIteratorPrototype%": typeof Set > "u" || !Q || !A ? v : A((/* @__PURE__ */ new Set())[Symbol.iterator]()),
730
+ "%SetIteratorPrototype%": typeof Set > "u" || !q || !A ? v : A((/* @__PURE__ */ new Set())[Symbol.iterator]()),
713
731
  "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? v : SharedArrayBuffer,
714
732
  "%String%": String,
715
- "%StringIteratorPrototype%": Q && A ? A(""[Symbol.iterator]()) : v,
716
- "%Symbol%": Q ? Symbol : v,
733
+ "%StringIteratorPrototype%": q && A ? A(""[Symbol.iterator]()) : v,
734
+ "%Symbol%": q ? Symbol : v,
717
735
  "%SyntaxError%": Z,
718
- "%ThrowTypeError%": ia,
719
- "%TypedArray%": ca,
736
+ "%ThrowTypeError%": aa,
737
+ "%TypedArray%": la,
720
738
  "%TypeError%": Y,
721
739
  "%Uint8Array%": typeof Uint8Array > "u" ? v : Uint8Array,
722
740
  "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? v : Uint8ClampedArray,
723
741
  "%Uint16Array%": typeof Uint16Array > "u" ? v : Uint16Array,
724
742
  "%Uint32Array%": typeof Uint32Array > "u" ? v : Uint32Array,
725
- "%URIError%": Yn,
743
+ "%URIError%": Jn,
726
744
  "%WeakMap%": typeof WeakMap > "u" ? v : WeakMap,
727
745
  "%WeakRef%": typeof WeakRef > "u" ? v : WeakRef,
728
746
  "%WeakSet%": typeof WeakSet > "u" ? v : WeakSet,
729
747
  "%Function.prototype.call%": fe,
730
- "%Function.prototype.apply%": Xr,
731
- "%Object.defineProperty%": oa,
732
- "%Object.getPrototypeOf%": la,
733
- "%Math.abs%": Xn,
734
- "%Math.floor%": Zn,
735
- "%Math.max%": ea,
736
- "%Math.min%": ra,
737
- "%Math.pow%": ta,
738
- "%Math.round%": na,
739
- "%Math.sign%": aa,
740
- "%Reflect.getPrototypeOf%": fa
748
+ "%Function.prototype.apply%": at,
749
+ "%Object.defineProperty%": na,
750
+ "%Object.getPrototypeOf%": oa,
751
+ "%Math.abs%": jn,
752
+ "%Math.floor%": Yn,
753
+ "%Math.max%": Xn,
754
+ "%Math.min%": Zn,
755
+ "%Math.pow%": ea,
756
+ "%Math.round%": ra,
757
+ "%Math.sign%": ta,
758
+ "%Reflect.getPrototypeOf%": ia
741
759
  };
742
760
  if (A)
743
761
  try {
744
762
  null.error;
745
763
  } catch (r) {
746
- var ua = A(A(r));
747
- G["%Error.prototype%"] = ua;
764
+ var fa = A(A(r));
765
+ G["%Error.prototype%"] = fa;
748
766
  }
749
- var pa = function r(e) {
767
+ var ua = function r(e) {
750
768
  var n;
751
769
  if (e === "%AsyncFunction%")
752
- n = We("async function () {}");
770
+ n = Ve("async function () {}");
753
771
  else if (e === "%GeneratorFunction%")
754
- n = We("function* () {}");
772
+ n = Ve("function* () {}");
755
773
  else if (e === "%AsyncGeneratorFunction%")
756
- n = We("async function* () {}");
774
+ n = Ve("async function* () {}");
757
775
  else if (e === "%AsyncGenerator%") {
758
776
  var t = r("%AsyncGeneratorFunction%");
759
777
  t && (n = t.prototype);
@@ -762,7 +780,7 @@ var pa = function r(e) {
762
780
  a && A && (n = A(a.prototype));
763
781
  }
764
782
  return G[e] = n, n;
765
- }, Fr = {
783
+ }, Br = {
766
784
  __proto__: null,
767
785
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
768
786
  "%ArrayPrototype%": ["Array", "prototype"],
@@ -815,21 +833,21 @@ var pa = function r(e) {
815
833
  "%URIErrorPrototype%": ["URIError", "prototype"],
816
834
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
817
835
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
818
- }, ce = Ee, be = Hn(), sa = ce.call(fe, Array.prototype.concat), ya = ce.call(Xr, Array.prototype.splice), Mr = ce.call(fe, String.prototype.replace), we = ce.call(fe, String.prototype.slice), da = ce.call(fe, RegExp.prototype.exec), va = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, ga = /\\(\\)?/g, ha = function(e) {
836
+ }, ue = Ee(), be = Vn(), ca = ue.call(fe, Array.prototype.concat), pa = ue.call(at, Array.prototype.splice), Lr = ue.call(fe, String.prototype.replace), we = ue.call(fe, String.prototype.slice), sa = ue.call(fe, RegExp.prototype.exec), ya = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, da = /\\(\\)?/g, va = function(e) {
819
837
  var n = we(e, 0, 1), t = we(e, -1);
820
838
  if (n === "%" && t !== "%")
821
839
  throw new Z("invalid intrinsic syntax, expected closing `%`");
822
840
  if (t === "%" && n !== "%")
823
841
  throw new Z("invalid intrinsic syntax, expected opening `%`");
824
842
  var a = [];
825
- return Mr(e, va, function(o, i, u, l) {
826
- a[a.length] = u ? Mr(l, ga, "$1") : i || o;
843
+ return Lr(e, ya, function(o, i, p, f) {
844
+ a[a.length] = p ? Lr(f, da, "$1") : i || o;
827
845
  }), a;
828
- }, ma = function(e, n) {
846
+ }, ha = function(e, n) {
829
847
  var t = e, a;
830
- if (be(Fr, t) && (a = Fr[t], t = "%" + a[0] + "%"), be(G, t)) {
848
+ if (be(Br, t) && (a = Br[t], t = "%" + a[0] + "%"), be(G, t)) {
831
849
  var o = G[t];
832
- if (o === j && (o = pa(t)), typeof o > "u" && !n)
850
+ if (o === J && (o = ua(t)), typeof o > "u" && !n)
833
851
  throw new Y("intrinsic " + e + " exists, but is not available. Please file an issue!");
834
852
  return {
835
853
  alias: a,
@@ -838,81 +856,81 @@ var pa = function r(e) {
838
856
  };
839
857
  }
840
858
  throw new Z("intrinsic " + e + " does not exist!");
841
- }, ir = function(e, n) {
859
+ }, ur = function(e, n) {
842
860
  if (typeof e != "string" || e.length === 0)
843
861
  throw new Y("intrinsic name must be a non-empty string");
844
862
  if (arguments.length > 1 && typeof n != "boolean")
845
863
  throw new Y('"allowMissing" argument must be a boolean');
846
- if (da(/^%?[^%]*%?$/, e) === null)
864
+ if (sa(/^%?[^%]*%?$/, e) === null)
847
865
  throw new Z("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
848
- var t = ha(e), a = t.length > 0 ? t[0] : "", o = ma("%" + a + "%", n), i = o.name, u = o.value, l = !1, f = o.alias;
849
- f && (a = f[0], ya(t, sa([0, 1], f)));
850
- for (var p = 1, s = !0; p < t.length; p += 1) {
851
- var c = t[p], d = we(c, 0, 1), y = we(c, -1);
852
- if ((d === '"' || d === "'" || d === "`" || y === '"' || y === "'" || y === "`") && d !== y)
866
+ var t = va(e), a = t.length > 0 ? t[0] : "", o = ha("%" + a + "%", n), i = o.name, p = o.value, f = !1, l = o.alias;
867
+ l && (a = l[0], pa(t, ca([0, 1], l)));
868
+ for (var c = 1, s = !0; c < t.length; c += 1) {
869
+ var u = t[c], y = we(u, 0, 1), d = we(u, -1);
870
+ if ((y === '"' || y === "'" || y === "`" || d === '"' || d === "'" || d === "`") && y !== d)
853
871
  throw new Z("property names with quotes must have matching quotes");
854
- if ((c === "constructor" || !s) && (l = !0), a += "." + c, i = "%" + a + "%", be(G, i))
855
- u = G[i];
856
- else if (u != null) {
857
- if (!(c in u)) {
872
+ if ((u === "constructor" || !s) && (f = !0), a += "." + u, i = "%" + a + "%", be(G, i))
873
+ p = G[i];
874
+ else if (p != null) {
875
+ if (!(u in p)) {
858
876
  if (!n)
859
877
  throw new Y("base intrinsic for " + e + " exists, but the property is not available.");
860
878
  return;
861
879
  }
862
- if (le && p + 1 >= t.length) {
863
- var h = le(u, c);
864
- s = !!h, s && "get" in h && !("originalValue" in h.get) ? u = h.get : u = u[c];
880
+ if (le && c + 1 >= t.length) {
881
+ var h = le(p, u);
882
+ s = !!h, s && "get" in h && !("originalValue" in h.get) ? p = h.get : p = p[u];
865
883
  } else
866
- s = be(u, c), u = u[c];
867
- s && !l && (G[i] = u);
884
+ s = be(p, u), p = p[u];
885
+ s && !f && (G[i] = p);
868
886
  }
869
887
  }
870
- return u;
871
- }, Zr = ir, et = qr, Sa = et([Zr("%String.prototype.indexOf%")]), rt = function(e, n) {
888
+ return p;
889
+ }, ot = ur, it = tt, ga = it([ot("%String.prototype.indexOf%")]), lt = function(e, n) {
872
890
  var t = (
873
891
  /** @type {(this: unknown, ...args: unknown[]) => unknown} */
874
- Zr(e, !!n)
892
+ ot(e, !!n)
875
893
  );
876
- return typeof t == "function" && Sa(e, ".prototype.") > -1 ? et(
894
+ return typeof t == "function" && ga(e, ".prototype.") > -1 ? it(
877
895
  /** @type {const} */
878
896
  [t]
879
897
  ) : t;
880
- }, ba = ir, ue = rt, wa = Ae, Aa = ee, Dr = ba("%Map%", !0), Oa = ue("Map.prototype.get", !0), Ea = ue("Map.prototype.set", !0), Pa = ue("Map.prototype.has", !0), $a = ue("Map.prototype.delete", !0), _a = ue("Map.prototype.size", !0), tt = !!Dr && /** @type {Exclude<import('.'), false>} */
898
+ }, ma = ur, ce = lt, Sa = Ae, ba = ee, Ur = ma("%Map%", !0), wa = ce("Map.prototype.get", !0), Aa = ce("Map.prototype.set", !0), Oa = ce("Map.prototype.has", !0), Ea = ce("Map.prototype.delete", !0), Pa = ce("Map.prototype.size", !0), ft = !!Ur && /** @type {Exclude<import('.'), false>} */
881
899
  function() {
882
900
  var e, n = {
883
901
  assert: function(t) {
884
902
  if (!n.has(t))
885
- throw new Aa("Side channel does not contain " + wa(t));
903
+ throw new ba("Side channel does not contain " + Sa(t));
886
904
  },
887
905
  delete: function(t) {
888
906
  if (e) {
889
- var a = $a(e, t);
890
- return _a(e) === 0 && (e = void 0), a;
907
+ var a = Ea(e, t);
908
+ return Pa(e) === 0 && (e = void 0), a;
891
909
  }
892
910
  return !1;
893
911
  },
894
912
  get: function(t) {
895
913
  if (e)
896
- return Oa(e, t);
914
+ return wa(e, t);
897
915
  },
898
916
  has: function(t) {
899
- return e ? Pa(e, t) : !1;
917
+ return e ? Oa(e, t) : !1;
900
918
  },
901
919
  set: function(t, a) {
902
- e || (e = new Dr()), Ea(e, t, a);
920
+ e || (e = new Ur()), Aa(e, t, a);
903
921
  }
904
922
  };
905
923
  return n;
906
- }, Ia = ir, Pe = rt, xa = Ae, de = tt, Ra = ee, J = Ia("%WeakMap%", !0), Ca = Pe("WeakMap.prototype.get", !0), Fa = Pe("WeakMap.prototype.set", !0), Ma = Pe("WeakMap.prototype.has", !0), Da = Pe("WeakMap.prototype.delete", !0), Na = J ? (
924
+ }, $a = ur, Pe = lt, _a = Ae, de = ft, Ia = ee, Q = $a("%WeakMap%", !0), xa = Pe("WeakMap.prototype.get", !0), Ra = Pe("WeakMap.prototype.set", !0), Ca = Pe("WeakMap.prototype.has", !0), Da = Pe("WeakMap.prototype.delete", !0), Fa = Q ? (
907
925
  /** @type {Exclude<import('.'), false>} */
908
926
  function() {
909
927
  var e, n, t = {
910
928
  assert: function(a) {
911
929
  if (!t.has(a))
912
- throw new Ra("Side channel does not contain " + xa(a));
930
+ throw new Ia("Side channel does not contain " + _a(a));
913
931
  },
914
932
  delete: function(a) {
915
- if (J && a && (typeof a == "object" || typeof a == "function")) {
933
+ if (Q && a && (typeof a == "object" || typeof a == "function")) {
916
934
  if (e)
917
935
  return Da(e, a);
918
936
  } else if (de && n)
@@ -920,22 +938,22 @@ function() {
920
938
  return !1;
921
939
  },
922
940
  get: function(a) {
923
- return J && a && (typeof a == "object" || typeof a == "function") && e ? Ca(e, a) : n && n.get(a);
941
+ return Q && a && (typeof a == "object" || typeof a == "function") && e ? xa(e, a) : n && n.get(a);
924
942
  },
925
943
  has: function(a) {
926
- return J && a && (typeof a == "object" || typeof a == "function") && e ? Ma(e, a) : !!n && n.has(a);
944
+ return Q && a && (typeof a == "object" || typeof a == "function") && e ? Ca(e, a) : !!n && n.has(a);
927
945
  },
928
946
  set: function(a, o) {
929
- J && a && (typeof a == "object" || typeof a == "function") ? (e || (e = new J()), Fa(e, a, o)) : de && (n || (n = de()), n.set(a, o));
947
+ Q && a && (typeof a == "object" || typeof a == "function") ? (e || (e = new Q()), Ra(e, a, o)) : de && (n || (n = de()), n.set(a, o));
930
948
  }
931
949
  };
932
950
  return t;
933
951
  }
934
- ) : de, Ta = ee, Ba = Ae, La = an, Ua = tt, Wa = Na, ka = Wa || Ua || La, Ga = function() {
952
+ ) : de, Ma = ee, Na = Ae, Ta = cn, Ba = ft, La = Fa, Ua = La || Ba || Ta, Wa = function() {
935
953
  var e, n = {
936
954
  assert: function(t) {
937
955
  if (!n.has(t))
938
- throw new Ta("Side channel does not contain " + Ba(t));
956
+ throw new Ma("Side channel does not contain " + Na(t));
939
957
  },
940
958
  delete: function(t) {
941
959
  return !!e && e.delete(t);
@@ -947,30 +965,30 @@ function() {
947
965
  return !!e && e.has(t);
948
966
  },
949
967
  set: function(t, a) {
950
- e || (e = ka()), e.set(t, a);
968
+ e || (e = Ua()), e.set(t, a);
951
969
  }
952
970
  };
953
971
  return n;
954
- }, Va = String.prototype.replace, za = /%20/g, Ge = {
972
+ }, ka = String.prototype.replace, Ga = /%20/g, He = {
955
973
  RFC1738: "RFC1738",
956
974
  RFC3986: "RFC3986"
957
- }, lr = {
958
- default: Ge.RFC3986,
975
+ }, cr = {
976
+ default: He.RFC3986,
959
977
  formatters: {
960
978
  RFC1738: function(r) {
961
- return Va.call(r, za, "+");
979
+ return ka.call(r, Ga, "+");
962
980
  },
963
981
  RFC3986: function(r) {
964
982
  return String(r);
965
983
  }
966
984
  },
967
- RFC1738: Ge.RFC1738,
968
- RFC3986: Ge.RFC3986
969
- }, Ha = lr, Ve = Object.prototype.hasOwnProperty, k = Array.isArray, I = function() {
985
+ RFC1738: He.RFC1738,
986
+ RFC3986: He.RFC3986
987
+ }, Va = cr, Ke = Object.prototype.hasOwnProperty, k = Array.isArray, I = function() {
970
988
  for (var r = [], e = 0; e < 256; ++e)
971
989
  r.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
972
990
  return r;
973
- }(), Ka = function(e) {
991
+ }(), za = function(e) {
974
992
  for (; e.length > 1; ) {
975
993
  var n = e.pop(), t = n.obj[n.prop];
976
994
  if (k(t)) {
@@ -979,18 +997,18 @@ function() {
979
997
  n.obj[n.prop] = a;
980
998
  }
981
999
  }
982
- }, nt = function(e, n) {
1000
+ }, ut = function(e, n) {
983
1001
  for (var t = n && n.plainObjects ? { __proto__: null } : {}, a = 0; a < e.length; ++a)
984
1002
  typeof e[a] < "u" && (t[a] = e[a]);
985
1003
  return t;
986
- }, Qa = function r(e, n, t) {
1004
+ }, Ha = function r(e, n, t) {
987
1005
  if (!n)
988
1006
  return e;
989
1007
  if (typeof n != "object" && typeof n != "function") {
990
1008
  if (k(e))
991
1009
  e.push(n);
992
1010
  else if (e && typeof e == "object")
993
- (t && (t.plainObjects || t.allowPrototypes) || !Ve.call(Object.prototype, n)) && (e[n] = !0);
1011
+ (t && (t.plainObjects || t.allowPrototypes) || !Ke.call(Object.prototype, n)) && (e[n] = !0);
994
1012
  else
995
1013
  return [e, n];
996
1014
  return e;
@@ -998,21 +1016,21 @@ function() {
998
1016
  if (!e || typeof e != "object")
999
1017
  return [e].concat(n);
1000
1018
  var a = e;
1001
- return k(e) && !k(n) && (a = nt(e, t)), k(e) && k(n) ? (n.forEach(function(o, i) {
1002
- if (Ve.call(e, i)) {
1003
- var u = e[i];
1004
- u && typeof u == "object" && o && typeof o == "object" ? e[i] = r(u, o, t) : e.push(o);
1019
+ return k(e) && !k(n) && (a = ut(e, t)), k(e) && k(n) ? (n.forEach(function(o, i) {
1020
+ if (Ke.call(e, i)) {
1021
+ var p = e[i];
1022
+ p && typeof p == "object" && o && typeof o == "object" ? e[i] = r(p, o, t) : e.push(o);
1005
1023
  } else
1006
1024
  e[i] = o;
1007
1025
  }), e) : Object.keys(n).reduce(function(o, i) {
1008
- var u = n[i];
1009
- return Ve.call(o, i) ? o[i] = r(o[i], u, t) : o[i] = u, o;
1026
+ var p = n[i];
1027
+ return Ke.call(o, i) ? o[i] = r(o[i], p, t) : o[i] = p, o;
1010
1028
  }, a);
1011
- }, Ja = function(e, n) {
1029
+ }, Ka = function(e, n) {
1012
1030
  return Object.keys(n).reduce(function(t, a) {
1013
1031
  return t[a] = n[a], t;
1014
1032
  }, e);
1015
- }, ja = function(r, e, n) {
1033
+ }, qa = function(r, e, n) {
1016
1034
  var t = r.replace(/\+/g, " ");
1017
1035
  if (n === "iso-8859-1")
1018
1036
  return t.replace(/%[0-9a-f]{2}/gi, unescape);
@@ -1021,70 +1039,70 @@ function() {
1021
1039
  } catch {
1022
1040
  return t;
1023
1041
  }
1024
- }, ze = 1024, qa = function(e, n, t, a, o) {
1042
+ }, qe = 1024, Qa = function(e, n, t, a, o) {
1025
1043
  if (e.length === 0)
1026
1044
  return e;
1027
1045
  var i = e;
1028
1046
  if (typeof e == "symbol" ? i = Symbol.prototype.toString.call(e) : typeof e != "string" && (i = String(e)), t === "iso-8859-1")
1029
- return escape(i).replace(/%u[0-9a-f]{4}/gi, function(d) {
1030
- return "%26%23" + parseInt(d.slice(2), 16) + "%3B";
1047
+ return escape(i).replace(/%u[0-9a-f]{4}/gi, function(y) {
1048
+ return "%26%23" + parseInt(y.slice(2), 16) + "%3B";
1031
1049
  });
1032
- for (var u = "", l = 0; l < i.length; l += ze) {
1033
- for (var f = i.length >= ze ? i.slice(l, l + ze) : i, p = [], s = 0; s < f.length; ++s) {
1034
- var c = f.charCodeAt(s);
1035
- if (c === 45 || c === 46 || c === 95 || c === 126 || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || o === Ha.RFC1738 && (c === 40 || c === 41)) {
1036
- p[p.length] = f.charAt(s);
1050
+ for (var p = "", f = 0; f < i.length; f += qe) {
1051
+ for (var l = i.length >= qe ? i.slice(f, f + qe) : i, c = [], s = 0; s < l.length; ++s) {
1052
+ var u = l.charCodeAt(s);
1053
+ if (u === 45 || u === 46 || u === 95 || u === 126 || u >= 48 && u <= 57 || u >= 65 && u <= 90 || u >= 97 && u <= 122 || o === Va.RFC1738 && (u === 40 || u === 41)) {
1054
+ c[c.length] = l.charAt(s);
1037
1055
  continue;
1038
1056
  }
1039
- if (c < 128) {
1040
- p[p.length] = I[c];
1057
+ if (u < 128) {
1058
+ c[c.length] = I[u];
1041
1059
  continue;
1042
1060
  }
1043
- if (c < 2048) {
1044
- p[p.length] = I[192 | c >> 6] + I[128 | c & 63];
1061
+ if (u < 2048) {
1062
+ c[c.length] = I[192 | u >> 6] + I[128 | u & 63];
1045
1063
  continue;
1046
1064
  }
1047
- if (c < 55296 || c >= 57344) {
1048
- p[p.length] = I[224 | c >> 12] + I[128 | c >> 6 & 63] + I[128 | c & 63];
1065
+ if (u < 55296 || u >= 57344) {
1066
+ c[c.length] = I[224 | u >> 12] + I[128 | u >> 6 & 63] + I[128 | u & 63];
1049
1067
  continue;
1050
1068
  }
1051
- s += 1, c = 65536 + ((c & 1023) << 10 | f.charCodeAt(s) & 1023), p[p.length] = I[240 | c >> 18] + I[128 | c >> 12 & 63] + I[128 | c >> 6 & 63] + I[128 | c & 63];
1069
+ s += 1, u = 65536 + ((u & 1023) << 10 | l.charCodeAt(s) & 1023), c[c.length] = I[240 | u >> 18] + I[128 | u >> 12 & 63] + I[128 | u >> 6 & 63] + I[128 | u & 63];
1052
1070
  }
1053
- u += p.join("");
1071
+ p += c.join("");
1054
1072
  }
1055
- return u;
1056
- }, Ya = function(e) {
1073
+ return p;
1074
+ }, Ja = function(e) {
1057
1075
  for (var n = [{ obj: { o: e }, prop: "o" }], t = [], a = 0; a < n.length; ++a)
1058
- for (var o = n[a], i = o.obj[o.prop], u = Object.keys(i), l = 0; l < u.length; ++l) {
1059
- var f = u[l], p = i[f];
1060
- typeof p == "object" && p !== null && t.indexOf(p) === -1 && (n.push({ obj: i, prop: f }), t.push(p));
1076
+ for (var o = n[a], i = o.obj[o.prop], p = Object.keys(i), f = 0; f < p.length; ++f) {
1077
+ var l = p[f], c = i[l];
1078
+ typeof c == "object" && c !== null && t.indexOf(c) === -1 && (n.push({ obj: i, prop: l }), t.push(c));
1061
1079
  }
1062
- return Ka(n), e;
1063
- }, Xa = function(e) {
1080
+ return za(n), e;
1081
+ }, ja = function(e) {
1064
1082
  return Object.prototype.toString.call(e) === "[object RegExp]";
1065
- }, Za = function(e) {
1083
+ }, Ya = function(e) {
1066
1084
  return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
1067
- }, eo = function(e, n) {
1085
+ }, Xa = function(e, n) {
1068
1086
  return [].concat(e, n);
1069
- }, ro = function(e, n) {
1087
+ }, Za = function(e, n) {
1070
1088
  if (k(e)) {
1071
1089
  for (var t = [], a = 0; a < e.length; a += 1)
1072
1090
  t.push(n(e[a]));
1073
1091
  return t;
1074
1092
  }
1075
1093
  return n(e);
1076
- }, at = {
1077
- arrayToObject: nt,
1078
- assign: Ja,
1079
- combine: eo,
1080
- compact: Ya,
1081
- decode: ja,
1082
- encode: qa,
1083
- isBuffer: Za,
1084
- isRegExp: Xa,
1085
- maybeMap: ro,
1086
- merge: Qa
1087
- }, ot = Ga, he = at, ie = lr, to = Object.prototype.hasOwnProperty, it = {
1094
+ }, ct = {
1095
+ arrayToObject: ut,
1096
+ assign: Ka,
1097
+ combine: Xa,
1098
+ compact: Ja,
1099
+ decode: qa,
1100
+ encode: Qa,
1101
+ isBuffer: Ya,
1102
+ isRegExp: ja,
1103
+ maybeMap: Za,
1104
+ merge: Ha
1105
+ }, pt = Wa, ge = ct, ie = cr, eo = Object.prototype.hasOwnProperty, st = {
1088
1106
  brackets: function(e) {
1089
1107
  return e + "[]";
1090
1108
  },
@@ -1095,9 +1113,9 @@ function() {
1095
1113
  repeat: function(e) {
1096
1114
  return e;
1097
1115
  }
1098
- }, x = Array.isArray, no = Array.prototype.push, lt = function(r, e) {
1099
- no.apply(r, x(e) ? e : [e]);
1100
- }, ao = Date.prototype.toISOString, Nr = ie.default, b = {
1116
+ }, x = Array.isArray, ro = Array.prototype.push, yt = function(r, e) {
1117
+ ro.apply(r, x(e) ? e : [e]);
1118
+ }, to = Date.prototype.toISOString, Wr = ie.default, w = {
1101
1119
  addQueryPrefix: !1,
1102
1120
  allowDots: !1,
1103
1121
  allowEmptyArrays: !1,
@@ -1108,41 +1126,41 @@ function() {
1108
1126
  delimiter: "&",
1109
1127
  encode: !0,
1110
1128
  encodeDotInKeys: !1,
1111
- encoder: he.encode,
1129
+ encoder: ge.encode,
1112
1130
  encodeValuesOnly: !1,
1113
1131
  filter: void 0,
1114
- format: Nr,
1115
- formatter: ie.formatters[Nr],
1132
+ format: Wr,
1133
+ formatter: ie.formatters[Wr],
1116
1134
  // deprecated
1117
1135
  indices: !1,
1118
1136
  serializeDate: function(e) {
1119
- return ao.call(e);
1137
+ return to.call(e);
1120
1138
  },
1121
1139
  skipNulls: !1,
1122
1140
  strictNullHandling: !1
1123
- }, oo = function(e) {
1141
+ }, no = function(e) {
1124
1142
  return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
1125
- }, He = {}, io = function r(e, n, t, a, o, i, u, l, f, p, s, c, d, y, h, S, w, M) {
1126
- for (var g = e, D = M, U = 0, re = !1; (D = D.get(He)) !== void 0 && !re; ) {
1127
- var H = D.get(e);
1143
+ }, Qe = {}, ao = function r(e, n, t, a, o, i, p, f, l, c, s, u, y, d, h, m, S, F) {
1144
+ for (var g = e, M = F, U = 0, re = !1; (M = M.get(Qe)) !== void 0 && !re; ) {
1145
+ var H = M.get(e);
1128
1146
  if (U += 1, typeof H < "u") {
1129
1147
  if (H === U)
1130
1148
  throw new RangeError("Cyclic object value");
1131
1149
  re = !0;
1132
1150
  }
1133
- typeof D.get(He) > "u" && (U = 0);
1151
+ typeof M.get(Qe) > "u" && (U = 0);
1134
1152
  }
1135
- if (typeof p == "function" ? g = p(n, g) : g instanceof Date ? g = d(g) : t === "comma" && x(g) && (g = he.maybeMap(g, function(_e) {
1136
- return _e instanceof Date ? d(_e) : _e;
1153
+ if (typeof c == "function" ? g = c(n, g) : g instanceof Date ? g = y(g) : t === "comma" && x(g) && (g = ge.maybeMap(g, function(_e) {
1154
+ return _e instanceof Date ? y(_e) : _e;
1137
1155
  })), g === null) {
1138
1156
  if (i)
1139
- return f && !S ? f(n, b.encoder, w, "key", y) : n;
1157
+ return l && !m ? l(n, w.encoder, S, "key", d) : n;
1140
1158
  g = "";
1141
1159
  }
1142
- if (oo(g) || he.isBuffer(g)) {
1143
- if (f) {
1144
- var pe = S ? n : f(n, b.encoder, w, "key", y);
1145
- return [h(pe) + "=" + h(f(g, b.encoder, w, "value", y))];
1160
+ if (no(g) || ge.isBuffer(g)) {
1161
+ if (l) {
1162
+ var pe = m ? n : l(n, w.encoder, S, "key", d);
1163
+ return [h(pe) + "=" + h(l(g, w.encoder, S, "value", d))];
1146
1164
  }
1147
1165
  return [h(n) + "=" + h(String(g))];
1148
1166
  }
@@ -1151,105 +1169,105 @@ function() {
1151
1169
  return W;
1152
1170
  var N;
1153
1171
  if (t === "comma" && x(g))
1154
- S && f && (g = he.maybeMap(g, f)), N = [{ value: g.length > 0 ? g.join(",") || null : void 0 }];
1155
- else if (x(p))
1156
- N = p;
1172
+ m && l && (g = ge.maybeMap(g, l)), N = [{ value: g.length > 0 ? g.join(",") || null : void 0 }];
1173
+ else if (x(c))
1174
+ N = c;
1157
1175
  else {
1158
1176
  var se = Object.keys(g);
1159
1177
  N = s ? se.sort(s) : se;
1160
1178
  }
1161
- var K = l ? String(n).replace(/\./g, "%2E") : String(n), P = a && x(g) && g.length === 1 ? K + "[]" : K;
1179
+ var K = f ? String(n).replace(/\./g, "%2E") : String(n), P = a && x(g) && g.length === 1 ? K + "[]" : K;
1162
1180
  if (o && x(g) && g.length === 0)
1163
1181
  return P + "[]";
1164
1182
  for (var T = 0; T < N.length; ++T) {
1165
1183
  var C = N[T], te = typeof C == "object" && C && typeof C.value < "u" ? C.value : g[C];
1166
- if (!(u && te === null)) {
1167
- var $e = c && l ? String(C).replace(/\./g, "%2E") : String(C), ct = x(g) ? typeof t == "function" ? t(P, $e) : P : P + (c ? "." + $e : "[" + $e + "]");
1168
- M.set(e, U);
1169
- var fr = ot();
1170
- fr.set(He, M), lt(W, r(
1184
+ if (!(p && te === null)) {
1185
+ var $e = u && f ? String(C).replace(/\./g, "%2E") : String(C), vt = x(g) ? typeof t == "function" ? t(P, $e) : P : P + (u ? "." + $e : "[" + $e + "]");
1186
+ F.set(e, U);
1187
+ var pr = pt();
1188
+ pr.set(Qe, F), yt(W, r(
1171
1189
  te,
1172
- ct,
1190
+ vt,
1173
1191
  t,
1174
1192
  a,
1175
1193
  o,
1176
1194
  i,
1177
- u,
1178
- l,
1179
- t === "comma" && S && x(g) ? null : f,
1180
1195
  p,
1181
- s,
1196
+ f,
1197
+ t === "comma" && m && x(g) ? null : l,
1182
1198
  c,
1183
- d,
1199
+ s,
1200
+ u,
1184
1201
  y,
1202
+ d,
1185
1203
  h,
1204
+ m,
1186
1205
  S,
1187
- w,
1188
- fr
1206
+ pr
1189
1207
  ));
1190
1208
  }
1191
1209
  }
1192
1210
  return W;
1193
- }, lo = function(e) {
1211
+ }, oo = function(e) {
1194
1212
  if (!e)
1195
- return b;
1213
+ return w;
1196
1214
  if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
1197
1215
  throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
1198
1216
  if (typeof e.encodeDotInKeys < "u" && typeof e.encodeDotInKeys != "boolean")
1199
1217
  throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
1200
1218
  if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function")
1201
1219
  throw new TypeError("Encoder has to be a function.");
1202
- var n = e.charset || b.charset;
1220
+ var n = e.charset || w.charset;
1203
1221
  if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
1204
1222
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1205
1223
  var t = ie.default;
1206
1224
  if (typeof e.format < "u") {
1207
- if (!to.call(ie.formatters, e.format))
1225
+ if (!eo.call(ie.formatters, e.format))
1208
1226
  throw new TypeError("Unknown format option provided.");
1209
1227
  t = e.format;
1210
1228
  }
1211
- var a = ie.formatters[t], o = b.filter;
1229
+ var a = ie.formatters[t], o = w.filter;
1212
1230
  (typeof e.filter == "function" || x(e.filter)) && (o = e.filter);
1213
1231
  var i;
1214
- if (e.arrayFormat in it ? i = e.arrayFormat : "indices" in e ? i = e.indices ? "indices" : "repeat" : i = b.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
1232
+ if (e.arrayFormat in st ? i = e.arrayFormat : "indices" in e ? i = e.indices ? "indices" : "repeat" : i = w.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
1215
1233
  throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
1216
- var u = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : b.allowDots : !!e.allowDots;
1234
+ var p = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : w.allowDots : !!e.allowDots;
1217
1235
  return {
1218
- addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : b.addQueryPrefix,
1219
- allowDots: u,
1220
- allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : b.allowEmptyArrays,
1236
+ addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : w.addQueryPrefix,
1237
+ allowDots: p,
1238
+ allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : w.allowEmptyArrays,
1221
1239
  arrayFormat: i,
1222
1240
  charset: n,
1223
- charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : b.charsetSentinel,
1241
+ charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : w.charsetSentinel,
1224
1242
  commaRoundTrip: !!e.commaRoundTrip,
1225
- delimiter: typeof e.delimiter > "u" ? b.delimiter : e.delimiter,
1226
- encode: typeof e.encode == "boolean" ? e.encode : b.encode,
1227
- encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys : b.encodeDotInKeys,
1228
- encoder: typeof e.encoder == "function" ? e.encoder : b.encoder,
1229
- encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : b.encodeValuesOnly,
1243
+ delimiter: typeof e.delimiter > "u" ? w.delimiter : e.delimiter,
1244
+ encode: typeof e.encode == "boolean" ? e.encode : w.encode,
1245
+ encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys : w.encodeDotInKeys,
1246
+ encoder: typeof e.encoder == "function" ? e.encoder : w.encoder,
1247
+ encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : w.encodeValuesOnly,
1230
1248
  filter: o,
1231
1249
  format: t,
1232
1250
  formatter: a,
1233
- serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : b.serializeDate,
1234
- skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : b.skipNulls,
1251
+ serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : w.serializeDate,
1252
+ skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : w.skipNulls,
1235
1253
  sort: typeof e.sort == "function" ? e.sort : null,
1236
- strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : b.strictNullHandling
1254
+ strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : w.strictNullHandling
1237
1255
  };
1238
- }, fo = function(r, e) {
1239
- var n = r, t = lo(e), a, o;
1256
+ }, io = function(r, e) {
1257
+ var n = r, t = oo(e), a, o;
1240
1258
  typeof t.filter == "function" ? (o = t.filter, n = o("", n)) : x(t.filter) && (o = t.filter, a = o);
1241
1259
  var i = [];
1242
1260
  if (typeof n != "object" || n === null)
1243
1261
  return "";
1244
- var u = it[t.arrayFormat], l = u === "comma" && t.commaRoundTrip;
1262
+ var p = st[t.arrayFormat], f = p === "comma" && t.commaRoundTrip;
1245
1263
  a || (a = Object.keys(n)), t.sort && a.sort(t.sort);
1246
- for (var f = ot(), p = 0; p < a.length; ++p) {
1247
- var s = a[p], c = n[s];
1248
- t.skipNulls && c === null || lt(i, io(
1249
- c,
1250
- s,
1264
+ for (var l = pt(), c = 0; c < a.length; ++c) {
1265
+ var s = a[c], u = n[s];
1266
+ t.skipNulls && u === null || yt(i, ao(
1251
1267
  u,
1252
- l,
1268
+ s,
1269
+ p,
1270
+ f,
1253
1271
  t.allowEmptyArrays,
1254
1272
  t.strictNullHandling,
1255
1273
  t.skipNulls,
@@ -1263,12 +1281,12 @@ function() {
1263
1281
  t.formatter,
1264
1282
  t.encodeValuesOnly,
1265
1283
  t.charset,
1266
- f
1284
+ l
1267
1285
  ));
1268
1286
  }
1269
- var d = i.join(t.delimiter), y = t.addQueryPrefix === !0 ? "?" : "";
1270
- return t.charsetSentinel && (t.charset === "iso-8859-1" ? y += "utf8=%26%2310003%3B&" : y += "utf8=%E2%9C%93&"), d.length > 0 ? y + d : "";
1271
- }, z = at, Ye = Object.prototype.hasOwnProperty, Tr = Array.isArray, m = {
1287
+ var y = i.join(t.delimiter), d = t.addQueryPrefix === !0 ? "?" : "";
1288
+ return t.charsetSentinel && (t.charset === "iso-8859-1" ? d += "utf8=%26%2310003%3B&" : d += "utf8=%E2%9C%93&"), y.length > 0 ? d + y : "";
1289
+ }, z = ct, er = Object.prototype.hasOwnProperty, kr = Array.isArray, b = {
1272
1290
  allowDots: !1,
1273
1291
  allowEmptyArrays: !1,
1274
1292
  allowPrototypes: !1,
@@ -1290,17 +1308,17 @@ function() {
1290
1308
  strictDepth: !1,
1291
1309
  strictNullHandling: !1,
1292
1310
  throwOnLimitExceeded: !1
1293
- }, co = function(r) {
1311
+ }, lo = function(r) {
1294
1312
  return r.replace(/&#(\d+);/g, function(e, n) {
1295
1313
  return String.fromCharCode(parseInt(n, 10));
1296
1314
  });
1297
- }, ft = function(r, e, n) {
1315
+ }, dt = function(r, e, n) {
1298
1316
  if (r && typeof r == "string" && e.comma && r.indexOf(",") > -1)
1299
1317
  return r.split(",");
1300
1318
  if (e.throwOnLimitExceeded && n >= e.arrayLimit)
1301
1319
  throw new RangeError("Array limit exceeded. Only " + e.arrayLimit + " element" + (e.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
1302
1320
  return r;
1303
- }, uo = "utf8=%26%2310003%3B", po = "utf8=%E2%9C%93", so = function(e, n) {
1321
+ }, fo = "utf8=%26%2310003%3B", uo = "utf8=%E2%9C%93", co = function(e, n) {
1304
1322
  var t = { __proto__: null }, a = n.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
1305
1323
  a = a.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
1306
1324
  var o = n.parameterLimit === 1 / 0 ? void 0 : n.parameterLimit, i = a.split(
@@ -1309,68 +1327,68 @@ function() {
1309
1327
  );
1310
1328
  if (n.throwOnLimitExceeded && i.length > o)
1311
1329
  throw new RangeError("Parameter limit exceeded. Only " + o + " parameter" + (o === 1 ? "" : "s") + " allowed.");
1312
- var u = -1, l, f = n.charset;
1330
+ var p = -1, f, l = n.charset;
1313
1331
  if (n.charsetSentinel)
1314
- for (l = 0; l < i.length; ++l)
1315
- i[l].indexOf("utf8=") === 0 && (i[l] === po ? f = "utf-8" : i[l] === uo && (f = "iso-8859-1"), u = l, l = i.length);
1316
- for (l = 0; l < i.length; ++l)
1317
- if (l !== u) {
1318
- var p = i[l], s = p.indexOf("]="), c = s === -1 ? p.indexOf("=") : s + 1, d, y;
1319
- c === -1 ? (d = n.decoder(p, m.decoder, f, "key"), y = n.strictNullHandling ? null : "") : (d = n.decoder(p.slice(0, c), m.decoder, f, "key"), y = z.maybeMap(
1320
- ft(
1321
- p.slice(c + 1),
1332
+ for (f = 0; f < i.length; ++f)
1333
+ i[f].indexOf("utf8=") === 0 && (i[f] === uo ? l = "utf-8" : i[f] === fo && (l = "iso-8859-1"), p = f, f = i.length);
1334
+ for (f = 0; f < i.length; ++f)
1335
+ if (f !== p) {
1336
+ var c = i[f], s = c.indexOf("]="), u = s === -1 ? c.indexOf("=") : s + 1, y, d;
1337
+ u === -1 ? (y = n.decoder(c, b.decoder, l, "key"), d = n.strictNullHandling ? null : "") : (y = n.decoder(c.slice(0, u), b.decoder, l, "key"), d = z.maybeMap(
1338
+ dt(
1339
+ c.slice(u + 1),
1322
1340
  n,
1323
- Tr(t[d]) ? t[d].length : 0
1341
+ kr(t[y]) ? t[y].length : 0
1324
1342
  ),
1325
- function(S) {
1326
- return n.decoder(S, m.decoder, f, "value");
1343
+ function(m) {
1344
+ return n.decoder(m, b.decoder, l, "value");
1327
1345
  }
1328
- )), y && n.interpretNumericEntities && f === "iso-8859-1" && (y = co(String(y))), p.indexOf("[]=") > -1 && (y = Tr(y) ? [y] : y);
1329
- var h = Ye.call(t, d);
1330
- h && n.duplicates === "combine" ? t[d] = z.combine(t[d], y) : (!h || n.duplicates === "last") && (t[d] = y);
1346
+ )), d && n.interpretNumericEntities && l === "iso-8859-1" && (d = lo(String(d))), c.indexOf("[]=") > -1 && (d = kr(d) ? [d] : d);
1347
+ var h = er.call(t, y);
1348
+ h && n.duplicates === "combine" ? t[y] = z.combine(t[y], d) : (!h || n.duplicates === "last") && (t[y] = d);
1331
1349
  }
1332
1350
  return t;
1333
- }, yo = function(r, e, n, t) {
1351
+ }, po = function(r, e, n, t) {
1334
1352
  var a = 0;
1335
1353
  if (r.length > 0 && r[r.length - 1] === "[]") {
1336
1354
  var o = r.slice(0, -1).join("");
1337
1355
  a = Array.isArray(e) && e[o] ? e[o].length : 0;
1338
1356
  }
1339
- for (var i = t ? e : ft(e, n, a), u = r.length - 1; u >= 0; --u) {
1340
- var l, f = r[u];
1341
- if (f === "[]" && n.parseArrays)
1342
- l = n.allowEmptyArrays && (i === "" || n.strictNullHandling && i === null) ? [] : z.combine([], i);
1357
+ for (var i = t ? e : dt(e, n, a), p = r.length - 1; p >= 0; --p) {
1358
+ var f, l = r[p];
1359
+ if (l === "[]" && n.parseArrays)
1360
+ f = n.allowEmptyArrays && (i === "" || n.strictNullHandling && i === null) ? [] : z.combine([], i);
1343
1361
  else {
1344
- l = n.plainObjects ? { __proto__: null } : {};
1345
- var p = f.charAt(0) === "[" && f.charAt(f.length - 1) === "]" ? f.slice(1, -1) : f, s = n.decodeDotInKeys ? p.replace(/%2E/g, ".") : p, c = parseInt(s, 10);
1346
- !n.parseArrays && s === "" ? l = { 0: i } : !isNaN(c) && f !== s && String(c) === s && c >= 0 && n.parseArrays && c <= n.arrayLimit ? (l = [], l[c] = i) : s !== "__proto__" && (l[s] = i);
1362
+ f = n.plainObjects ? { __proto__: null } : {};
1363
+ var c = l.charAt(0) === "[" && l.charAt(l.length - 1) === "]" ? l.slice(1, -1) : l, s = n.decodeDotInKeys ? c.replace(/%2E/g, ".") : c, u = parseInt(s, 10);
1364
+ !n.parseArrays && s === "" ? f = { 0: i } : !isNaN(u) && l !== s && String(u) === s && u >= 0 && n.parseArrays && u <= n.arrayLimit ? (f = [], f[u] = i) : s !== "__proto__" && (f[s] = i);
1347
1365
  }
1348
- i = l;
1366
+ i = f;
1349
1367
  }
1350
1368
  return i;
1351
- }, vo = function(e, n, t, a) {
1369
+ }, so = function(e, n, t, a) {
1352
1370
  if (e) {
1353
- var o = t.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, i = /(\[[^[\]]*])/, u = /(\[[^[\]]*])/g, l = t.depth > 0 && i.exec(o), f = l ? o.slice(0, l.index) : o, p = [];
1354
- if (f) {
1355
- if (!t.plainObjects && Ye.call(Object.prototype, f) && !t.allowPrototypes)
1371
+ var o = t.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, i = /(\[[^[\]]*])/, p = /(\[[^[\]]*])/g, f = t.depth > 0 && i.exec(o), l = f ? o.slice(0, f.index) : o, c = [];
1372
+ if (l) {
1373
+ if (!t.plainObjects && er.call(Object.prototype, l) && !t.allowPrototypes)
1356
1374
  return;
1357
- p.push(f);
1375
+ c.push(l);
1358
1376
  }
1359
- for (var s = 0; t.depth > 0 && (l = u.exec(o)) !== null && s < t.depth; ) {
1360
- if (s += 1, !t.plainObjects && Ye.call(Object.prototype, l[1].slice(1, -1)) && !t.allowPrototypes)
1377
+ for (var s = 0; t.depth > 0 && (f = p.exec(o)) !== null && s < t.depth; ) {
1378
+ if (s += 1, !t.plainObjects && er.call(Object.prototype, f[1].slice(1, -1)) && !t.allowPrototypes)
1361
1379
  return;
1362
- p.push(l[1]);
1380
+ c.push(f[1]);
1363
1381
  }
1364
- if (l) {
1382
+ if (f) {
1365
1383
  if (t.strictDepth === !0)
1366
1384
  throw new RangeError("Input depth exceeded depth option of " + t.depth + " and strictDepth is true");
1367
- p.push("[" + o.slice(l.index) + "]");
1385
+ c.push("[" + o.slice(f.index) + "]");
1368
1386
  }
1369
- return yo(p, n, t, a);
1387
+ return po(c, n, t, a);
1370
1388
  }
1371
- }, go = function(e) {
1389
+ }, yo = function(e) {
1372
1390
  if (!e)
1373
- return m;
1391
+ return b;
1374
1392
  if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
1375
1393
  throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
1376
1394
  if (typeof e.decodeDotInKeys < "u" && typeof e.decodeDotInKeys != "boolean")
@@ -1381,50 +1399,50 @@ function() {
1381
1399
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1382
1400
  if (typeof e.throwOnLimitExceeded < "u" && typeof e.throwOnLimitExceeded != "boolean")
1383
1401
  throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
1384
- var n = typeof e.charset > "u" ? m.charset : e.charset, t = typeof e.duplicates > "u" ? m.duplicates : e.duplicates;
1402
+ var n = typeof e.charset > "u" ? b.charset : e.charset, t = typeof e.duplicates > "u" ? b.duplicates : e.duplicates;
1385
1403
  if (t !== "combine" && t !== "first" && t !== "last")
1386
1404
  throw new TypeError("The duplicates option must be either combine, first, or last");
1387
- var a = typeof e.allowDots > "u" ? e.decodeDotInKeys === !0 ? !0 : m.allowDots : !!e.allowDots;
1405
+ var a = typeof e.allowDots > "u" ? e.decodeDotInKeys === !0 ? !0 : b.allowDots : !!e.allowDots;
1388
1406
  return {
1389
1407
  allowDots: a,
1390
- allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : m.allowEmptyArrays,
1391
- allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : m.allowPrototypes,
1392
- allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : m.allowSparse,
1393
- arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : m.arrayLimit,
1408
+ allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : b.allowEmptyArrays,
1409
+ allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : b.allowPrototypes,
1410
+ allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : b.allowSparse,
1411
+ arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : b.arrayLimit,
1394
1412
  charset: n,
1395
- charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : m.charsetSentinel,
1396
- comma: typeof e.comma == "boolean" ? e.comma : m.comma,
1397
- decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys : m.decodeDotInKeys,
1398
- decoder: typeof e.decoder == "function" ? e.decoder : m.decoder,
1399
- delimiter: typeof e.delimiter == "string" || z.isRegExp(e.delimiter) ? e.delimiter : m.delimiter,
1413
+ charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : b.charsetSentinel,
1414
+ comma: typeof e.comma == "boolean" ? e.comma : b.comma,
1415
+ decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys : b.decodeDotInKeys,
1416
+ decoder: typeof e.decoder == "function" ? e.decoder : b.decoder,
1417
+ delimiter: typeof e.delimiter == "string" || z.isRegExp(e.delimiter) ? e.delimiter : b.delimiter,
1400
1418
  // eslint-disable-next-line no-implicit-coercion, no-extra-parens
1401
- depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : m.depth,
1419
+ depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : b.depth,
1402
1420
  duplicates: t,
1403
1421
  ignoreQueryPrefix: e.ignoreQueryPrefix === !0,
1404
- interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : m.interpretNumericEntities,
1405
- parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : m.parameterLimit,
1422
+ interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : b.interpretNumericEntities,
1423
+ parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : b.parameterLimit,
1406
1424
  parseArrays: e.parseArrays !== !1,
1407
- plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : m.plainObjects,
1408
- strictDepth: typeof e.strictDepth == "boolean" ? !!e.strictDepth : m.strictDepth,
1409
- strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : m.strictNullHandling,
1425
+ plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : b.plainObjects,
1426
+ strictDepth: typeof e.strictDepth == "boolean" ? !!e.strictDepth : b.strictDepth,
1427
+ strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : b.strictNullHandling,
1410
1428
  throwOnLimitExceeded: typeof e.throwOnLimitExceeded == "boolean" ? e.throwOnLimitExceeded : !1
1411
1429
  };
1412
- }, ho = function(r, e) {
1413
- var n = go(e);
1430
+ }, vo = function(r, e) {
1431
+ var n = yo(e);
1414
1432
  if (r === "" || r === null || typeof r > "u")
1415
1433
  return n.plainObjects ? { __proto__: null } : {};
1416
- for (var t = typeof r == "string" ? so(r, n) : r, a = n.plainObjects ? { __proto__: null } : {}, o = Object.keys(t), i = 0; i < o.length; ++i) {
1417
- var u = o[i], l = vo(u, t[u], n, typeof r == "string");
1418
- a = z.merge(a, l, n);
1434
+ for (var t = typeof r == "string" ? co(r, n) : r, a = n.plainObjects ? { __proto__: null } : {}, o = Object.keys(t), i = 0; i < o.length; ++i) {
1435
+ var p = o[i], f = so(p, t[p], n, typeof r == "string");
1436
+ a = z.merge(a, f, n);
1419
1437
  }
1420
1438
  return n.allowSparse === !0 ? a : z.compact(a);
1421
- }, mo = fo, So = ho, bo = lr, wo = {
1422
- formats: bo,
1423
- parse: So,
1424
- stringify: mo
1439
+ }, ho = io, go = vo, mo = cr, So = {
1440
+ formats: mo,
1441
+ parse: go,
1442
+ stringify: ho
1425
1443
  };
1426
- const Ao = /* @__PURE__ */ St(wo);
1427
- class Oo {
1444
+ const bo = /* @__PURE__ */ Et(So);
1445
+ class wo {
1428
1446
  getKey(e) {
1429
1447
  return {
1430
1448
  regionId: e.regionId
@@ -1522,7 +1540,7 @@ class Oo {
1522
1540
  exportExcel(e) {
1523
1541
  const n = E().user.tenant;
1524
1542
  _(e), e.req.hasParent = !0;
1525
- const t = Ao.stringify(e, {
1543
+ const t = bo.stringify(e, {
1526
1544
  arrayFormat: "brackets",
1527
1545
  allowDots: !0
1528
1546
  });
@@ -1533,7 +1551,7 @@ class Oo {
1533
1551
  });
1534
1552
  }
1535
1553
  }
1536
- const V = new Oo(), Eo = (r) => {
1554
+ const V = new wo(), Ao = (r) => {
1537
1555
  const e = {
1538
1556
  regionIds: [],
1539
1557
  regionCodes: []
@@ -1541,52 +1559,57 @@ const V = new Oo(), Eo = (r) => {
1541
1559
  e.regionIds.push(t.regionId), e.regionCodes.push(t.regionCode), t.children && t.children.length > 0 && t.children.forEach((a) => n(a));
1542
1560
  };
1543
1561
  return n(r), e;
1544
- }, Po = /* @__PURE__ */ Xe({
1562
+ }, Oo = /* @__PURE__ */ rr({
1545
1563
  __name: "index",
1546
- props: {
1564
+ props: /* @__PURE__ */ Gr({
1565
+ maxDepth: {
1566
+ type: Number,
1567
+ default: 10
1568
+ }
1569
+ }, {
1547
1570
  modelValue: {},
1548
1571
  modelModifiers: {}
1549
- },
1572
+ }),
1550
1573
  emits: ["update:modelValue"],
1551
1574
  setup(r) {
1552
- const e = Br(r, "modelValue"), n = q([]), t = () => {
1575
+ const e = Vr(r, "modelValue"), n = r, t = j([]), a = () => {
1553
1576
  V.findByCode({ regionCode: e.value }).then(({ data: l }) => {
1554
- const f = Eo(l);
1555
- n.value = f.regionCodes;
1577
+ const c = Ao(l);
1578
+ t.value = c.regionCodes;
1556
1579
  });
1557
1580
  };
1558
- st(
1559
- () => e.value && !n.value.length && t()
1581
+ mt(
1582
+ () => e.value && !t.value.length && a()
1560
1583
  );
1561
- const a = q([]), o = (l) => {
1584
+ const o = j([]), i = (l) => {
1562
1585
  V.findList({
1563
1586
  likeRegionName: l
1564
- }).then(({ data: f }) => {
1565
- a.value = f.results.map((p) => (p.hasChildren = !p.hasChildren, p));
1587
+ }).then(({ data: c }) => {
1588
+ o.value = c.results.map((s) => (s.hasChildren = !s.hasChildren || s.depth >= n.maxDepth, s));
1566
1589
  });
1567
- }, i = () => {
1568
- n.value = [];
1569
- }, u = (l, f) => {
1590
+ }, p = () => {
1591
+ t.value = [];
1592
+ }, f = (l, c) => {
1570
1593
  V.findList({
1571
1594
  parentId: l.data.regionId
1572
- }).then(({ data: p }) => {
1573
- const s = p.results.map((c) => (c.hasChildren = !c.hasChildren, c));
1574
- !l.data.regionId && (a.value = s), f(s);
1595
+ }).then(({ data: s }) => {
1596
+ const u = s.results.map((y) => (y.hasChildren = !y.hasChildren || y.depth >= n.maxDepth, y));
1597
+ !l.data.regionId && (o.value = u), c(u);
1575
1598
  });
1576
1599
  };
1577
- return (l, f) => {
1578
- const p = Ze("el-tree-select");
1579
- return er(), rr(p, {
1600
+ return (l, c) => {
1601
+ const s = tr("el-tree-select");
1602
+ return nr(), ar(s, {
1580
1603
  lazy: "",
1581
1604
  filterable: "",
1582
1605
  modelValue: e.value,
1583
- "onUpdate:modelValue": f[0] || (f[0] = (s) => e.value = s),
1606
+ "onUpdate:modelValue": c[0] || (c[0] = (u) => e.value = u),
1584
1607
  "node-key": "regionCode",
1585
- load: u,
1586
- data: a.value,
1587
- "default-expanded-keys": n.value,
1588
- "filter-method": o,
1589
- onClear: i,
1608
+ load: f,
1609
+ data: o.value,
1610
+ "default-expanded-keys": t.value,
1611
+ "filter-method": i,
1612
+ onClear: p,
1590
1613
  props: {
1591
1614
  value: "regionCode",
1592
1615
  label: "regionName",
@@ -1596,12 +1619,16 @@ const V = new Oo(), Eo = (r) => {
1596
1619
  }, null, 8, ["modelValue", "data", "default-expanded-keys"]);
1597
1620
  };
1598
1621
  }
1599
- }), $o = /* @__PURE__ */ Xe({
1622
+ }), Eo = /* @__PURE__ */ rr({
1600
1623
  __name: "index",
1601
- props: /* @__PURE__ */ yt({
1624
+ props: /* @__PURE__ */ Gr({
1602
1625
  checkStrictly: {
1603
1626
  type: Boolean,
1604
1627
  default: !0
1628
+ },
1629
+ maxDepth: {
1630
+ type: Number,
1631
+ default: 10
1605
1632
  }
1606
1633
  }, {
1607
1634
  modelValue: {},
@@ -1609,36 +1636,36 @@ const V = new Oo(), Eo = (r) => {
1609
1636
  }),
1610
1637
  emits: ["update:modelValue"],
1611
1638
  setup(r) {
1612
- const e = Br(r, "modelValue"), t = {
1639
+ const e = Vr(r, "modelValue"), n = r, t = {
1613
1640
  lazy: !0,
1614
1641
  // 开启懒加载
1615
- checkStrictly: r.checkStrictly,
1642
+ checkStrictly: n.checkStrictly,
1616
1643
  // 选择任意一级选项
1617
- lazyLoad(l, f) {
1618
- var p;
1644
+ lazyLoad(f, l) {
1645
+ var c;
1619
1646
  V.findList({
1620
- parentId: (p = l.data) == null ? void 0 : p.regionId
1647
+ parentId: (c = f.data) == null ? void 0 : c.regionId
1621
1648
  }).then(({ data: s }) => {
1622
- f(u(s.results));
1649
+ l(p(s.results));
1623
1650
  });
1624
1651
  }
1625
1652
  }, a = () => {
1626
1653
  e.value = [], o.value = [];
1627
- }, o = q([]), i = (l) => (V.findList({
1628
- likeRegionName: l
1629
- }).then(({ data: f }) => {
1630
- o.value = u(f.results);
1631
- }), !1), u = (l) => l.map((f) => ({
1632
- label: f.regionName,
1633
- value: f.regionCode,
1634
- regionId: f.regionId,
1635
- leaf: !f.hasChildren
1654
+ }, o = j([]), i = (f) => (V.findList({
1655
+ likeRegionName: f
1656
+ }).then(({ data: l }) => {
1657
+ o.value = p(l.results);
1658
+ }), !1), p = (f) => f.map((l) => ({
1659
+ label: l.regionName,
1660
+ value: l.regionCode,
1661
+ regionId: l.regionId,
1662
+ leaf: !l.hasChildren || l.depth >= n.maxDepth
1636
1663
  }));
1637
- return (l, f) => {
1638
- const p = Ze("el-cascader");
1639
- return er(), rr(p, {
1664
+ return (f, l) => {
1665
+ const c = tr("el-cascader");
1666
+ return nr(), ar(c, {
1640
1667
  modelValue: e.value,
1641
- "onUpdate:modelValue": f[0] || (f[0] = (s) => e.value = s),
1668
+ "onUpdate:modelValue": l[0] || (l[0] = (s) => e.value = s),
1642
1669
  props: t,
1643
1670
  options: o.value,
1644
1671
  filterable: "",
@@ -1647,7 +1674,7 @@ const V = new Oo(), Eo = (r) => {
1647
1674
  }, null, 8, ["modelValue", "options"]);
1648
1675
  };
1649
1676
  }
1650
- }), _o = /* @__PURE__ */ Xe({
1677
+ }), Po = /* @__PURE__ */ rr({
1651
1678
  inheritAttrs: !1,
1652
1679
  __name: "index",
1653
1680
  props: {
@@ -1658,90 +1685,94 @@ const V = new Oo(), Eo = (r) => {
1658
1685
  modelValue: {
1659
1686
  type: String,
1660
1687
  default: ""
1688
+ },
1689
+ maxDepth: {
1690
+ type: Number,
1691
+ default: 10
1661
1692
  }
1662
1693
  },
1663
1694
  setup(r, { emit: e }) {
1664
- const n = r, t = e, a = q([]), o = q([]);
1665
- dt(
1695
+ const n = r, t = e, a = j([]), o = j([]);
1696
+ St(
1666
1697
  () => n.modelValue,
1667
- (d) => {
1668
- console.log(d), a.value = c(d);
1698
+ (y) => {
1699
+ a.value = u(y);
1669
1700
  },
1670
1701
  { immediate: !0 }
1671
1702
  // 初始化时执行一次
1672
1703
  );
1673
- const i = q(), u = (d) => {
1674
- if (!d) {
1704
+ const i = j(), p = (y) => {
1705
+ if (!y) {
1675
1706
  t("update:modelValue", ""), t("change", [""]);
1676
1707
  return;
1677
1708
  }
1678
- if (t("update:modelValue", d[d.length - 1]), i.value.presentText) {
1679
- const y = i.value.presentText.split("/").map((h) => h.trim()).filter((h) => h);
1680
- t("change", y);
1709
+ if (t("update:modelValue", y[y.length - 1]), i.value.presentText) {
1710
+ const d = i.value.presentText.split("/").map((h) => h.trim()).filter((h) => h);
1711
+ t("change", d);
1681
1712
  } else
1682
1713
  t("change", [""]);
1683
- }, l = {
1714
+ }, f = {
1684
1715
  lazy: !0,
1685
1716
  checkStrictly: n.checkStrictly,
1686
- lazyLoad(d, y) {
1687
- var S;
1688
- const h = ((S = d.data) == null ? void 0 : S.regionId) || "";
1689
- V.findList({ parentId: h }).then(({ data: w }) => {
1690
- y(s(w.results));
1691
- }).catch((w) => {
1692
- console.error("懒加载区域数据失败:", w), y([]);
1717
+ lazyLoad(y, d) {
1718
+ var m;
1719
+ const h = ((m = y.data) == null ? void 0 : m.regionId) || "";
1720
+ V.findList({ parentId: h }).then(({ data: S }) => {
1721
+ d(s(S.results));
1722
+ }).catch((S) => {
1723
+ console.error("懒加载区域数据失败:", S), d([]);
1693
1724
  });
1694
1725
  }
1695
- }, f = () => {
1726
+ }, l = () => {
1696
1727
  a.value = [], t("update:modelValue", ""), t("change", [""]);
1697
- }, p = (d) => d.trim() ? (V.findList({ likeRegionName: d }).then(({ data: y }) => {
1698
- o.value = s(y.results);
1699
- }).catch((y) => {
1700
- console.error("过滤区域数据失败:", y), o.value = [];
1701
- }), !1) : (o.value = [], !1), s = (d) => d.map((y) => ({
1702
- label: y.regionName,
1703
- value: y.regionCode,
1704
- regionId: y.regionId,
1705
- leaf: !y.hasChildren
1728
+ }, c = (y) => y.trim() ? (V.findList({ likeRegionName: y }).then(({ data: d }) => {
1729
+ o.value = s(d.results);
1730
+ }).catch((d) => {
1731
+ console.error("过滤区域数据失败:", d), o.value = [];
1732
+ }), !1) : (o.value = [], !1), s = (y) => y.map((d) => ({
1733
+ label: d.regionName,
1734
+ value: d.regionCode,
1735
+ regionId: d.regionId,
1736
+ leaf: !d.hasChildren || d.depth >= n.maxDepth
1706
1737
  }));
1707
- function c(d = "", y = [2, 4, 6, 9, 12]) {
1708
- if (typeof d != "string" || d.length === 0)
1738
+ function u(y = "", d = [2, 4, 6, 9, 12]) {
1739
+ if (typeof y != "string" || y.length === 0)
1709
1740
  return [];
1710
- (!Array.isArray(y) || y.some((w) => !Number.isInteger(w) || w < 1)) && (console.warn("拆分位置必须是正整数数组,已使用默认值"), y = [2, 4, 6, 9, 12]);
1741
+ (!Array.isArray(d) || d.some((S) => !Number.isInteger(S) || S < 1)) && (console.warn("拆分位置必须是正整数数组,已使用默认值"), d = [2, 4, 6, 9, 12]);
1711
1742
  const h = [];
1712
- for (const w of y) {
1713
- if (w > d.length) break;
1714
- h.push(d.substring(0, w));
1743
+ for (const S of d) {
1744
+ if (S > y.length) break;
1745
+ h.push(y.substring(0, S));
1715
1746
  }
1716
- return h[h.length - 1] !== d && h.push(d), h;
1747
+ return h[h.length - 1] !== y && h.push(y), h;
1717
1748
  }
1718
- return (d, y) => {
1719
- const h = Ze("el-cascader");
1720
- return er(), rr(h, vt({
1749
+ return (y, d) => {
1750
+ const h = tr("el-cascader");
1751
+ return nr(), ar(h, bt({
1721
1752
  modelValue: a.value,
1722
- "onUpdate:modelValue": y[0] || (y[0] = (S) => a.value = S),
1723
- props: l,
1753
+ "onUpdate:modelValue": d[0] || (d[0] = (m) => a.value = m),
1754
+ props: f,
1724
1755
  options: o.value,
1725
1756
  filterable: "",
1726
- onClear: f,
1727
- "before-filter": p
1728
- }, d.$attrs, {
1729
- onChange: u,
1757
+ onClear: l,
1758
+ "before-filter": c
1759
+ }, y.$attrs, {
1760
+ onChange: p,
1730
1761
  ref_key: "cascaderRef",
1731
1762
  ref: i
1732
1763
  }), null, 16, ["modelValue", "options"]);
1733
1764
  };
1734
1765
  }
1735
- }), Io = /* @__PURE__ */ Object.assign({ "./views/region/os-dict-region/edit.vue": () => import("./edit-NHfz0cw9.mjs"), "./views/region/os-dict-region/index.vue": () => import("./index-CzthgOl_.mjs"), "./views/region/os-region-component/index.vue": () => import("./index-C-SPDbON.mjs") }), Co = {
1766
+ }), $o = /* @__PURE__ */ Object.assign({ "./views/region/os-dict-region/edit.vue": () => import("./edit-D7Uz4LdN.mjs"), "./views/region/os-dict-region/index.vue": () => import("./index-BLBgitsS.mjs"), "./views/region/os-region-component/index.vue": () => import("./index-CdOnDOrK.mjs") }), xo = {
1736
1767
  install(r) {
1737
- ut(Io, 7), mt(pt), r.component("JmashRegionTree", Po), r.component("JmashRegionCascader", $o), r.component("JmashRegionCascader2", _o);
1768
+ ht($o, 7), Ot(gt), r.component("JmashRegionTree", Oo), r.component("JmashRegionCascader", Eo), r.component("JmashRegionCascader2", Po);
1738
1769
  }
1739
1770
  };
1740
1771
  export {
1741
- Po as _,
1742
- $o as a,
1743
- _o as b,
1744
- Co as c,
1772
+ Oo as _,
1773
+ Eo as a,
1774
+ Po as b,
1775
+ xo as c,
1745
1776
  V as d,
1746
- Eo as e
1777
+ Ao as e
1747
1778
  };