@shlinkio/shlink-frontend-kit 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -0
- package/dist/index.js +299 -297
- package/dist/index.umd.cjs +2 -2
- package/package.json +13 -11
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as y, jsxs as P, Fragment as Te } from "react/jsx-runtime";
|
|
2
2
|
import { faCircleNotch as Br, faSearch as Lr, faEllipsisV as Wr, faSortAmountUp as Gr, faSortAmountDown as Hr } from "@fortawesome/free-solid-svg-icons";
|
|
3
|
-
import { FontAwesomeIcon as
|
|
4
|
-
import { Row as vr, Card as We, CardHeader as Vr, CardBody as zr, Dropdown as Qr, DropdownToggle as hr, DropdownMenu as gr,
|
|
5
|
-
import { useState as
|
|
6
|
-
import { NavLink as
|
|
3
|
+
import { FontAwesomeIcon as Oe } from "@fortawesome/react-fontawesome";
|
|
4
|
+
import { Row as vr, Card as We, CardHeader as Vr, CardBody as zr, Dropdown as Qr, DropdownToggle as hr, DropdownMenu as gr, NavItem as qr, NavLink as jr, Nav as Jr, UncontrolledDropdown as Yr, DropdownItem as Ae } from "reactstrap";
|
|
5
|
+
import { useState as we, useCallback as ne, useRef as ve, Children as Kr, isValidElement as Xr } from "react";
|
|
6
|
+
import { NavLink as Zr } from "react-router-dom";
|
|
7
7
|
function Sr(r) {
|
|
8
8
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function et(r) {
|
|
11
11
|
if (r.__esModule)
|
|
12
12
|
return r;
|
|
13
13
|
var e = r.default;
|
|
@@ -64,28 +64,28 @@ var br = { exports: {} };
|
|
|
64
64
|
r.exports ? (t.default = t, r.exports = t) : window.classNames = t;
|
|
65
65
|
})();
|
|
66
66
|
})(br);
|
|
67
|
-
var
|
|
68
|
-
const E = /* @__PURE__ */ Sr(
|
|
67
|
+
var rt = br.exports;
|
|
68
|
+
const E = /* @__PURE__ */ Sr(rt), tt = (r) => ({
|
|
69
69
|
error: "border-danger",
|
|
70
70
|
default: ""
|
|
71
|
-
})[r],
|
|
71
|
+
})[r], nt = (r) => ({
|
|
72
72
|
error: "text-danger",
|
|
73
73
|
default: "text-muted"
|
|
74
|
-
})[r],
|
|
74
|
+
})[r], ga = ({ className: r, children: e, loading: t = !1, type: n = "default", fullWidth: o = !1 }) => {
|
|
75
75
|
const a = E({
|
|
76
76
|
"col-md-12": o,
|
|
77
77
|
"col-md-10 offset-md-1": !o
|
|
78
78
|
});
|
|
79
|
-
return /* @__PURE__ */ y(vr, { className: E("g-0", r), children: /* @__PURE__ */ y("div", { className: a, children: /* @__PURE__ */ y(We, { className:
|
|
80
|
-
t && /* @__PURE__ */ y(
|
|
79
|
+
return /* @__PURE__ */ y(vr, { className: E("g-0", r), children: /* @__PURE__ */ y("div", { className: a, children: /* @__PURE__ */ y(We, { className: tt(n), body: !0, children: /* @__PURE__ */ P("h3", { className: E("text-center mb-0", nt(n)), children: [
|
|
80
|
+
t && /* @__PURE__ */ y(Oe, { icon: Br, spin: !0 }),
|
|
81
81
|
t && /* @__PURE__ */ y("span", { className: "ms-2", children: e ?? "Loading..." }),
|
|
82
82
|
!t && e
|
|
83
83
|
] }) }) }) });
|
|
84
|
-
},
|
|
85
|
-
r && /* @__PURE__ */ y(Vr, { role: "heading", children: r }),
|
|
84
|
+
}, at = ({ title: r, children: e, bodyClassName: t, ...n }) => /* @__PURE__ */ P(We, { ...n, children: [
|
|
85
|
+
r && /* @__PURE__ */ y(Vr, { role: "heading", "aria-level": 4, children: r }),
|
|
86
86
|
/* @__PURE__ */ y(zr, { className: t, children: e })
|
|
87
|
-
] }),
|
|
88
|
-
|
|
87
|
+
] }), Sa = ({ children: r, type: e, className: t, small: n = !1 }) => /* @__PURE__ */ y(vr, { className: t, children: /* @__PURE__ */ y("div", { className: E({ "col-md-10 offset-md-1": !n, "col-12": n }), children: /* @__PURE__ */ y(
|
|
88
|
+
at,
|
|
89
89
|
{
|
|
90
90
|
role: "document",
|
|
91
91
|
className: E("text-center", {
|
|
@@ -99,47 +99,47 @@ const E = /* @__PURE__ */ Sr(et), rt = (r) => ({
|
|
|
99
99
|
}
|
|
100
100
|
) }) });
|
|
101
101
|
let ue;
|
|
102
|
-
const
|
|
103
|
-
function
|
|
102
|
+
const ot = new Uint8Array(16);
|
|
103
|
+
function it() {
|
|
104
104
|
if (!ue && (ue = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !ue))
|
|
105
105
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
106
|
-
return ue(
|
|
106
|
+
return ue(ot);
|
|
107
107
|
}
|
|
108
108
|
const b = [];
|
|
109
109
|
for (let r = 0; r < 256; ++r)
|
|
110
110
|
b.push((r + 256).toString(16).slice(1));
|
|
111
|
-
function
|
|
112
|
-
return
|
|
111
|
+
function lt(r, e = 0) {
|
|
112
|
+
return b[r[e + 0]] + b[r[e + 1]] + b[r[e + 2]] + b[r[e + 3]] + "-" + b[r[e + 4]] + b[r[e + 5]] + "-" + b[r[e + 6]] + b[r[e + 7]] + "-" + b[r[e + 8]] + b[r[e + 9]] + "-" + b[r[e + 10]] + b[r[e + 11]] + b[r[e + 12]] + b[r[e + 13]] + b[r[e + 14]] + b[r[e + 15]];
|
|
113
113
|
}
|
|
114
|
-
const
|
|
115
|
-
randomUUID:
|
|
114
|
+
const ct = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ye = {
|
|
115
|
+
randomUUID: ct
|
|
116
116
|
};
|
|
117
|
-
function
|
|
117
|
+
function ft(r, e, t) {
|
|
118
118
|
if (Ye.randomUUID && !e && !r)
|
|
119
119
|
return Ye.randomUUID();
|
|
120
120
|
r = r || {};
|
|
121
|
-
const n = r.random || (r.rng ||
|
|
121
|
+
const n = r.random || (r.rng || it)();
|
|
122
122
|
if (n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, e) {
|
|
123
123
|
t = t || 0;
|
|
124
124
|
for (let o = 0; o < 16; ++o)
|
|
125
125
|
e[t + o] = n[o];
|
|
126
126
|
return e;
|
|
127
127
|
}
|
|
128
|
-
return
|
|
128
|
+
return lt(n);
|
|
129
129
|
}
|
|
130
|
-
const
|
|
131
|
-
const [e, t] =
|
|
130
|
+
const ut = (r = !1) => {
|
|
131
|
+
const [e, t] = we(r), n = ne(() => t((l) => !l), []), o = ne(() => t(!0), []), a = ne(() => t(!1), []);
|
|
132
132
|
return [e, n, o, a];
|
|
133
|
-
},
|
|
134
|
-
const [o, a] =
|
|
133
|
+
}, ba = (r = !1, e = 2e3, t = window.setTimeout, n = window.clearTimeout) => {
|
|
134
|
+
const [o, a] = we(r), l = ve(r), i = ve(), c = ne(() => {
|
|
135
135
|
a(!l.current), i.current && n(i.current), i.current = t(() => a(l.current), e);
|
|
136
136
|
}, [n, e, t]);
|
|
137
137
|
return [o, c];
|
|
138
|
-
},
|
|
139
|
-
const { current: r } = ve(`dom-${
|
|
138
|
+
}, Or = () => {
|
|
139
|
+
const { current: r } = ve(`dom-${ft()}`);
|
|
140
140
|
return r;
|
|
141
|
-
},
|
|
142
|
-
const l =
|
|
141
|
+
}, Oa = () => ve(null), wr = ({ checked: r = !1, onChange: e, className: t, children: n, type: o, inline: a = !1 }) => {
|
|
142
|
+
const l = Or(), i = (u) => e == null ? void 0 : e(u.target.checked, u), c = {
|
|
143
143
|
"form-switch": o === "switch",
|
|
144
144
|
"form-checkbox": o === "checkbox"
|
|
145
145
|
}, f = a ? { display: "inline-block" } : {};
|
|
@@ -147,15 +147,15 @@ const ft = (r = !1) => {
|
|
|
147
147
|
/* @__PURE__ */ y("input", { type: "checkbox", className: "form-check-input", id: l, checked: r, onChange: i }),
|
|
148
148
|
/* @__PURE__ */ y("label", { className: "form-check-label", htmlFor: l, children: n })
|
|
149
149
|
] });
|
|
150
|
-
}, wa = (r) => /* @__PURE__ */ y(
|
|
150
|
+
}, wa = (r) => /* @__PURE__ */ y(wr, { type: "checkbox", ...r }), Aa = (r) => /* @__PURE__ */ y(wr, { type: "switch", ...r }), pt = ({ children: r, label: e, className: t = "", labelClassName: n = "", noMargin: o = !1, id: a }) => /* @__PURE__ */ P("div", { className: `${t} ${o ? "" : "mb-3"}`, children: [
|
|
151
151
|
/* @__PURE__ */ y("label", { className: `form-label ${n}`, htmlFor: a, children: e }),
|
|
152
152
|
r
|
|
153
|
-
] }),
|
|
154
|
-
const c =
|
|
155
|
-
return /* @__PURE__ */ y(
|
|
153
|
+
] }), Pa = ({ children: r, value: e, onChange: t, type: n, required: o, placeholder: a, className: l, labelClassName: i }) => {
|
|
154
|
+
const c = Or();
|
|
155
|
+
return /* @__PURE__ */ y(pt, { label: /* @__PURE__ */ P(Te, { children: [
|
|
156
156
|
r,
|
|
157
157
|
":"
|
|
158
|
-
] }), className: l
|
|
158
|
+
] }), className: l, labelClassName: i, id: c, children: /* @__PURE__ */ y(
|
|
159
159
|
"input",
|
|
160
160
|
{
|
|
161
161
|
id: c,
|
|
@@ -168,12 +168,12 @@ const ft = (r = !1) => {
|
|
|
168
168
|
}
|
|
169
169
|
) });
|
|
170
170
|
};
|
|
171
|
-
const
|
|
171
|
+
const st = 500;
|
|
172
172
|
let de;
|
|
173
173
|
const Ke = () => {
|
|
174
174
|
de && clearTimeout(de), de = null;
|
|
175
|
-
},
|
|
176
|
-
const [l, i] =
|
|
175
|
+
}, Ea = ({ onChange: r, className: e, large: t = !0, noBorder: n = !1, initialValue: o = "", setTimeout_: a = setTimeout }) => {
|
|
176
|
+
const [l, i] = we(o), c = (f, u = st) => {
|
|
177
177
|
i(f), Ke(), de = a(() => {
|
|
178
178
|
r(f), Ke();
|
|
179
179
|
}, u);
|
|
@@ -192,7 +192,7 @@ const Ke = () => {
|
|
|
192
192
|
onChange: (f) => c(f.target.value)
|
|
193
193
|
}
|
|
194
194
|
),
|
|
195
|
-
/* @__PURE__ */ y(
|
|
195
|
+
/* @__PURE__ */ y(Oe, { icon: Lr, className: "search-field__icon" }),
|
|
196
196
|
/* @__PURE__ */ y(
|
|
197
197
|
"button",
|
|
198
198
|
{
|
|
@@ -206,7 +206,7 @@ const Ke = () => {
|
|
|
206
206
|
)
|
|
207
207
|
] });
|
|
208
208
|
};
|
|
209
|
-
const
|
|
209
|
+
const yt = ({
|
|
210
210
|
text: r,
|
|
211
211
|
disabled: e = !1,
|
|
212
212
|
className: t,
|
|
@@ -216,20 +216,22 @@ const st = ({
|
|
|
216
216
|
end: l = !1,
|
|
217
217
|
minWidth: i,
|
|
218
218
|
inline: c,
|
|
219
|
-
size: f
|
|
219
|
+
size: f,
|
|
220
|
+
...u
|
|
220
221
|
}) => {
|
|
221
|
-
const [
|
|
222
|
+
const [m, p] = ut(), h = E("dropdown-btn__toggle", t, {
|
|
222
223
|
"btn-block": !c,
|
|
223
224
|
"dropdown-btn__toggle--with-caret": !a
|
|
224
|
-
}),
|
|
225
|
-
return /* @__PURE__ */ P(Qr, { isOpen:
|
|
226
|
-
/* @__PURE__ */ y(hr, { size: f, caret: !a, className:
|
|
227
|
-
/* @__PURE__ */ y(gr, { className: "w-100", end: l, style:
|
|
225
|
+
}), d = { minWidth: i && `${i}px` };
|
|
226
|
+
return /* @__PURE__ */ P(Qr, { isOpen: m, toggle: p, disabled: e, className: o, children: [
|
|
227
|
+
/* @__PURE__ */ y(hr, { size: f, caret: !a, className: h, color: "primary", ...u, children: r }),
|
|
228
|
+
/* @__PURE__ */ y(gr, { className: "w-100", end: l, style: d, children: n })
|
|
228
229
|
] });
|
|
229
|
-
},
|
|
230
|
-
|
|
230
|
+
}, xa = ({ children: r, minWidth: e, label: t = "Options" }) => /* @__PURE__ */ y(
|
|
231
|
+
yt,
|
|
231
232
|
{
|
|
232
|
-
text: /* @__PURE__ */ y(
|
|
233
|
+
text: /* @__PURE__ */ y(Oe, { className: "px-1", icon: Wr }),
|
|
234
|
+
"aria-label": t,
|
|
233
235
|
size: "sm",
|
|
234
236
|
minWidth: e,
|
|
235
237
|
end: !0,
|
|
@@ -238,29 +240,29 @@ const st = ({
|
|
|
238
240
|
children: r
|
|
239
241
|
}
|
|
240
242
|
);
|
|
241
|
-
const
|
|
242
|
-
if (!
|
|
243
|
+
const dt = ({ children: r, ...e }) => /* @__PURE__ */ y(qr, { children: /* @__PURE__ */ y(jr, { className: "nav-pills__nav-link", tag: Zr, ...e, children: r }) }), Na = ({ children: r, fill: e = !1, className: t = "" }) => /* @__PURE__ */ y(We, { className: `nav-pills__nav p-0 overflow-hidden ${t}`, body: !0, children: /* @__PURE__ */ y(Jr, { pills: !0, fill: e, children: Kr.map(r, (n) => {
|
|
244
|
+
if (!Xr(n) || n.type !== dt)
|
|
243
245
|
throw new Error("Only NavPillItem children are allowed inside NavPills.");
|
|
244
246
|
return n;
|
|
245
|
-
}) }) }),
|
|
247
|
+
}) }) }), mt = (r, e, t) => r !== e ? "ASC" : t ? {
|
|
246
248
|
ASC: "DESC",
|
|
247
249
|
DESC: void 0
|
|
248
|
-
}[t] : "ASC",
|
|
250
|
+
}[t] : "ASC", Ia = (r, { field: e, dir: t }) => !e || !t ? r : r.sort((n, o) => {
|
|
249
251
|
const a = t === "ASC" ? 1 : -1, l = t === "ASC" ? -1 : 1;
|
|
250
252
|
return n[e] > o[e] ? a : l;
|
|
251
|
-
}),
|
|
253
|
+
}), Fa = (r) => r.dir ? `${r.field}-${r.dir}` : void 0, $a = (r) => {
|
|
252
254
|
const [e, t] = r.split("-");
|
|
253
255
|
return { field: e, dir: t };
|
|
254
|
-
},
|
|
255
|
-
const [e, t] =
|
|
256
|
+
}, _a = (r) => {
|
|
257
|
+
const [e, t] = we(r), n = ne((o, a) => t({ field: o, dir: a }), []);
|
|
256
258
|
return [e, n];
|
|
257
259
|
};
|
|
258
|
-
function
|
|
260
|
+
function Ra({ items: r, order: e, onChange: t, isButton: n = !0, right: o = !1, prefixed: a = !0 }) {
|
|
259
261
|
const l = (i) => () => {
|
|
260
|
-
const c =
|
|
262
|
+
const c = mt(i, e.field, e.dir);
|
|
261
263
|
t(c ? i : void 0, c);
|
|
262
264
|
};
|
|
263
|
-
return /* @__PURE__ */ P(
|
|
265
|
+
return /* @__PURE__ */ P(Yr, { children: [
|
|
264
266
|
/* @__PURE__ */ P(
|
|
265
267
|
hr,
|
|
266
268
|
{
|
|
@@ -291,7 +293,7 @@ function _a({ items: r, order: e, onChange: t, isButton: n = !0, right: o = !1,
|
|
|
291
293
|
Object.entries(r).map(([i, c]) => /* @__PURE__ */ P(Ae, { active: e.field === i, onClick: l(i), children: [
|
|
292
294
|
c,
|
|
293
295
|
e.field === i && /* @__PURE__ */ y(
|
|
294
|
-
|
|
296
|
+
Oe,
|
|
295
297
|
{
|
|
296
298
|
icon: e.dir === "ASC" ? Gr : Hr,
|
|
297
299
|
className: "ordering-dropdown__sort-icon"
|
|
@@ -305,14 +307,14 @@ function _a({ items: r, order: e, onChange: t, isButton: n = !0, right: o = !1,
|
|
|
305
307
|
)
|
|
306
308
|
] });
|
|
307
309
|
}
|
|
308
|
-
const
|
|
310
|
+
const Ca = "#4696e5", Ta = "rgba(70, 150, 229, 0.4)", Da = "#f77f28", Ma = "rgba(247, 127, 40, 0.4)", Ua = "white", ka = "#161b22", Ba = (r) => {
|
|
309
311
|
var e;
|
|
310
312
|
return (e = document.querySelector("html")) == null ? void 0 : e.setAttribute("data-theme", r);
|
|
311
|
-
},
|
|
313
|
+
}, La = () => {
|
|
312
314
|
var r;
|
|
313
315
|
return ((r = document.querySelector("html")) == null ? void 0 : r.getAttribute("data-theme")) === "dark";
|
|
314
316
|
};
|
|
315
|
-
var
|
|
317
|
+
var vt = function() {
|
|
316
318
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
317
319
|
return !1;
|
|
318
320
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -335,16 +337,16 @@ var mt = function() {
|
|
|
335
337
|
return !1;
|
|
336
338
|
}
|
|
337
339
|
return !0;
|
|
338
|
-
}, Xe = typeof Symbol < "u" && Symbol,
|
|
339
|
-
return typeof Xe != "function" || typeof Symbol != "function" || typeof Xe("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 :
|
|
340
|
+
}, Xe = typeof Symbol < "u" && Symbol, ht = vt, gt = function() {
|
|
341
|
+
return typeof Xe != "function" || typeof Symbol != "function" || typeof Xe("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : ht();
|
|
340
342
|
}, Ze = {
|
|
341
343
|
foo: {}
|
|
342
|
-
},
|
|
343
|
-
return { __proto__: Ze }.foo === Ze.foo && !({ __proto__: null } instanceof
|
|
344
|
-
},
|
|
344
|
+
}, St = Object, bt = function() {
|
|
345
|
+
return { __proto__: Ze }.foo === Ze.foo && !({ __proto__: null } instanceof St);
|
|
346
|
+
}, Ot = "Function.prototype.bind called on incompatible ", Pe = Array.prototype.slice, wt = Object.prototype.toString, At = "[object Function]", Pt = function(e) {
|
|
345
347
|
var t = this;
|
|
346
|
-
if (typeof t != "function" || wt.call(t) !==
|
|
347
|
-
throw new TypeError(
|
|
348
|
+
if (typeof t != "function" || wt.call(t) !== At)
|
|
349
|
+
throw new TypeError(Ot + t);
|
|
348
350
|
for (var n = Pe.call(arguments, 1), o, a = function() {
|
|
349
351
|
if (this instanceof o) {
|
|
350
352
|
var u = t.apply(
|
|
@@ -365,7 +367,7 @@ var mt = function() {
|
|
|
365
367
|
f.prototype = t.prototype, o.prototype = new f(), f.prototype = null;
|
|
366
368
|
}
|
|
367
369
|
return o;
|
|
368
|
-
},
|
|
370
|
+
}, Et = Pt, Ge = Function.prototype.bind || Et, xt = Ge, Nt = xt.call(Function.call, Object.prototype.hasOwnProperty), s, Y = SyntaxError, Ar = Function, J = TypeError, Ee = function(r) {
|
|
369
371
|
try {
|
|
370
372
|
return Ar('"use strict"; return (' + r + ").constructor;")();
|
|
371
373
|
} catch {
|
|
@@ -379,7 +381,7 @@ if (L)
|
|
|
379
381
|
}
|
|
380
382
|
var xe = function() {
|
|
381
383
|
throw new J();
|
|
382
|
-
},
|
|
384
|
+
}, It = L ? function() {
|
|
383
385
|
try {
|
|
384
386
|
return arguments.callee, xe;
|
|
385
387
|
} catch {
|
|
@@ -389,9 +391,9 @@ var xe = function() {
|
|
|
389
391
|
return xe;
|
|
390
392
|
}
|
|
391
393
|
}
|
|
392
|
-
}() : xe, q =
|
|
394
|
+
}() : xe, q = gt(), Ft = bt(), S = Object.getPrototypeOf || (Ft ? function(r) {
|
|
393
395
|
return r.__proto__;
|
|
394
|
-
} : null), j = {},
|
|
396
|
+
} : null), j = {}, $t = typeof Uint8Array > "u" || !S ? s : S(Uint8Array), W = {
|
|
395
397
|
"%AggregateError%": typeof AggregateError > "u" ? s : AggregateError,
|
|
396
398
|
"%Array%": Array,
|
|
397
399
|
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? s : ArrayBuffer,
|
|
@@ -448,8 +450,8 @@ var xe = function() {
|
|
|
448
450
|
"%StringIteratorPrototype%": q && S ? S(""[Symbol.iterator]()) : s,
|
|
449
451
|
"%Symbol%": q ? Symbol : s,
|
|
450
452
|
"%SyntaxError%": Y,
|
|
451
|
-
"%ThrowTypeError%":
|
|
452
|
-
"%TypedArray%":
|
|
453
|
+
"%ThrowTypeError%": It,
|
|
454
|
+
"%TypedArray%": $t,
|
|
453
455
|
"%TypeError%": J,
|
|
454
456
|
"%Uint8Array%": typeof Uint8Array > "u" ? s : Uint8Array,
|
|
455
457
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? s : Uint8ClampedArray,
|
|
@@ -464,10 +466,10 @@ if (S)
|
|
|
464
466
|
try {
|
|
465
467
|
null.error;
|
|
466
468
|
} catch (r) {
|
|
467
|
-
var
|
|
468
|
-
W["%Error.prototype%"] =
|
|
469
|
+
var _t = S(S(r));
|
|
470
|
+
W["%Error.prototype%"] = _t;
|
|
469
471
|
}
|
|
470
|
-
var
|
|
472
|
+
var Rt = function r(e) {
|
|
471
473
|
var t;
|
|
472
474
|
if (e === "%AsyncFunction%")
|
|
473
475
|
t = Ee("async function () {}");
|
|
@@ -535,21 +537,21 @@ var _t = function r(e) {
|
|
|
535
537
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
536
538
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
537
539
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
538
|
-
}, le = Ge, he =
|
|
540
|
+
}, le = Ge, he = Nt, Ct = le.call(Function.call, Array.prototype.concat), Tt = le.call(Function.apply, Array.prototype.splice), rr = le.call(Function.call, String.prototype.replace), ge = le.call(Function.call, String.prototype.slice), Dt = le.call(Function.call, RegExp.prototype.exec), Mt = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Ut = /\\(\\)?/g, kt = function(e) {
|
|
539
541
|
var t = ge(e, 0, 1), n = ge(e, -1);
|
|
540
542
|
if (t === "%" && n !== "%")
|
|
541
543
|
throw new Y("invalid intrinsic syntax, expected closing `%`");
|
|
542
544
|
if (n === "%" && t !== "%")
|
|
543
545
|
throw new Y("invalid intrinsic syntax, expected opening `%`");
|
|
544
546
|
var o = [];
|
|
545
|
-
return rr(e,
|
|
546
|
-
o[o.length] = i ? rr(c,
|
|
547
|
+
return rr(e, Mt, function(a, l, i, c) {
|
|
548
|
+
o[o.length] = i ? rr(c, Ut, "$1") : l || a;
|
|
547
549
|
}), o;
|
|
548
|
-
},
|
|
550
|
+
}, Bt = function(e, t) {
|
|
549
551
|
var n = e, o;
|
|
550
552
|
if (he(er, n) && (o = er[n], n = "%" + o[0] + "%"), he(W, n)) {
|
|
551
553
|
var a = W[n];
|
|
552
|
-
if (a === j && (a =
|
|
554
|
+
if (a === j && (a = Rt(n)), typeof a > "u" && !t)
|
|
553
555
|
throw new J("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
554
556
|
return {
|
|
555
557
|
alias: o,
|
|
@@ -563,15 +565,15 @@ var _t = function r(e) {
|
|
|
563
565
|
throw new J("intrinsic name must be a non-empty string");
|
|
564
566
|
if (arguments.length > 1 && typeof t != "boolean")
|
|
565
567
|
throw new J('"allowMissing" argument must be a boolean');
|
|
566
|
-
if (
|
|
568
|
+
if (Dt(/^%?[^%]*%?$/, e) === null)
|
|
567
569
|
throw new Y("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
568
|
-
var n =
|
|
569
|
-
f && (o = f[0],
|
|
570
|
-
for (var u = 1,
|
|
571
|
-
var p = n[u], h = ge(p, 0, 1),
|
|
572
|
-
if ((h === '"' || h === "'" || h === "`" ||
|
|
570
|
+
var n = kt(e), o = n.length > 0 ? n[0] : "", a = Bt("%" + o + "%", t), l = a.name, i = a.value, c = !1, f = a.alias;
|
|
571
|
+
f && (o = f[0], Tt(n, Ct([0, 1], f)));
|
|
572
|
+
for (var u = 1, m = !0; u < n.length; u += 1) {
|
|
573
|
+
var p = n[u], h = ge(p, 0, 1), d = ge(p, -1);
|
|
574
|
+
if ((h === '"' || h === "'" || h === "`" || d === '"' || d === "'" || d === "`") && h !== d)
|
|
573
575
|
throw new Y("property names with quotes must have matching quotes");
|
|
574
|
-
if ((p === "constructor" || !
|
|
576
|
+
if ((p === "constructor" || !m) && (c = !0), o += "." + p, l = "%" + o + "%", he(W, l))
|
|
575
577
|
i = W[l];
|
|
576
578
|
else if (i != null) {
|
|
577
579
|
if (!(p in i)) {
|
|
@@ -581,10 +583,10 @@ var _t = function r(e) {
|
|
|
581
583
|
}
|
|
582
584
|
if (L && u + 1 >= n.length) {
|
|
583
585
|
var A = L(i, p);
|
|
584
|
-
|
|
586
|
+
m = !!A, m && "get" in A && !("originalValue" in A.get) ? i = A.get : i = i[p];
|
|
585
587
|
} else
|
|
586
|
-
|
|
587
|
-
|
|
588
|
+
m = he(i, p), i = i[p];
|
|
589
|
+
m && !c && (W[l] = i);
|
|
588
590
|
}
|
|
589
591
|
}
|
|
590
592
|
return i;
|
|
@@ -597,14 +599,14 @@ var _t = function r(e) {
|
|
|
597
599
|
} catch {
|
|
598
600
|
i = null;
|
|
599
601
|
}
|
|
600
|
-
r.exports = function(
|
|
602
|
+
r.exports = function(m) {
|
|
601
603
|
var p = a(e, o, arguments);
|
|
602
604
|
if (l && i) {
|
|
603
605
|
var h = l(p, "length");
|
|
604
606
|
h.configurable && i(
|
|
605
607
|
p,
|
|
606
608
|
"length",
|
|
607
|
-
{ value: 1 + c(0,
|
|
609
|
+
{ value: 1 + c(0, m.length - (arguments.length - 1)) }
|
|
608
610
|
);
|
|
609
611
|
}
|
|
610
612
|
return p;
|
|
@@ -614,15 +616,15 @@ var _t = function r(e) {
|
|
|
614
616
|
};
|
|
615
617
|
i ? i(r.exports, "apply", { value: f }) : r.exports.apply = f;
|
|
616
618
|
})(Pr);
|
|
617
|
-
var
|
|
619
|
+
var Lt = Pr.exports, Er = He, xr = Lt, Wt = xr(Er("String.prototype.indexOf")), Gt = function(e, t) {
|
|
618
620
|
var n = Er(e, !!t);
|
|
619
|
-
return typeof n == "function" &&
|
|
621
|
+
return typeof n == "function" && Wt(e, ".prototype.") > -1 ? xr(n) : n;
|
|
620
622
|
};
|
|
621
|
-
const
|
|
623
|
+
const Ht = {}, Vt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
622
624
|
__proto__: null,
|
|
623
|
-
default:
|
|
624
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
625
|
-
var Ve = typeof Map == "function" && Map.prototype, Ne = Object.getOwnPropertyDescriptor && Ve ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Se = Ve && Ne && typeof Ne.get == "function" ? Ne.get : null, tr = Ve && Map.prototype.forEach, ze = typeof Set == "function" && Set.prototype, Ie = Object.getOwnPropertyDescriptor && ze ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, be = ze && Ie && typeof Ie.get == "function" ? Ie.get : null, nr = ze && Set.prototype.forEach,
|
|
625
|
+
default: Ht
|
|
626
|
+
}, Symbol.toStringTag, { value: "Module" })), zt = /* @__PURE__ */ et(Vt);
|
|
627
|
+
var Ve = typeof Map == "function" && Map.prototype, Ne = Object.getOwnPropertyDescriptor && Ve ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Se = Ve && Ne && typeof Ne.get == "function" ? Ne.get : null, tr = Ve && Map.prototype.forEach, ze = typeof Set == "function" && Set.prototype, Ie = Object.getOwnPropertyDescriptor && ze ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, be = ze && Ie && typeof Ie.get == "function" ? Ie.get : null, nr = ze && Set.prototype.forEach, Qt = typeof WeakMap == "function" && WeakMap.prototype, ae = Qt ? WeakMap.prototype.has : null, qt = typeof WeakSet == "function" && WeakSet.prototype, oe = qt ? WeakSet.prototype.has : null, jt = typeof WeakRef == "function" && WeakRef.prototype, ar = jt ? WeakRef.prototype.deref : null, Jt = Boolean.prototype.valueOf, Yt = Object.prototype.toString, Kt = Function.prototype.toString, Xt = String.prototype.match, Qe = String.prototype.slice, M = String.prototype.replace, Zt = String.prototype.toUpperCase, or = String.prototype.toLowerCase, Nr = RegExp.prototype.test, ir = Array.prototype.concat, I = Array.prototype.join, en = Array.prototype.slice, lr = Math.floor, De = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Fe = Object.getOwnPropertySymbols, Me = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, K = typeof Symbol == "function" && typeof Symbol.iterator == "object", w = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === K || "symbol") ? Symbol.toStringTag : null, Ir = Object.prototype.propertyIsEnumerable, cr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(r) {
|
|
626
628
|
return r.__proto__;
|
|
627
629
|
} : null);
|
|
628
630
|
function fr(r, e) {
|
|
@@ -638,7 +640,7 @@ function fr(r, e) {
|
|
|
638
640
|
}
|
|
639
641
|
return M.call(e, t, "$&_");
|
|
640
642
|
}
|
|
641
|
-
var Ue =
|
|
643
|
+
var Ue = zt, ur = Ue.custom, pr = $r(ur) ? ur : null, rn = function r(e, t, n, o) {
|
|
642
644
|
var a = t || {};
|
|
643
645
|
if (D(a, "quoteStyle") && a.quoteStyle !== "single" && a.quoteStyle !== "double")
|
|
644
646
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
@@ -673,13 +675,13 @@ var Ue = Vt, ur = Ue.custom, pr = $r(ur) ? ur : null, en = function r(e, t, n, o
|
|
|
673
675
|
var u = typeof a.depth > "u" ? 5 : a.depth;
|
|
674
676
|
if (typeof n > "u" && (n = 0), n >= u && u > 0 && typeof e == "object")
|
|
675
677
|
return ke(e) ? "[Array]" : "[Object]";
|
|
676
|
-
var
|
|
678
|
+
var m = bn(a, n);
|
|
677
679
|
if (typeof o > "u")
|
|
678
680
|
o = [];
|
|
679
681
|
else if (_r(o, e) >= 0)
|
|
680
682
|
return "[Circular]";
|
|
681
683
|
function p(_, z, fe) {
|
|
682
|
-
if (z && (o =
|
|
684
|
+
if (z && (o = en.call(o), o.push(z)), fe) {
|
|
683
685
|
var Q = {
|
|
684
686
|
depth: a.depth
|
|
685
687
|
};
|
|
@@ -688,25 +690,25 @@ var Ue = Vt, ur = Ue.custom, pr = $r(ur) ? ur : null, en = function r(e, t, n, o
|
|
|
688
690
|
return r(_, a, n + 1, o);
|
|
689
691
|
}
|
|
690
692
|
if (typeof e == "function" && !sr(e)) {
|
|
691
|
-
var h =
|
|
692
|
-
return "[Function" + (h ? ": " + h : " (anonymous)") + "]" + (
|
|
693
|
+
var h = pn(e), d = pe(e, p);
|
|
694
|
+
return "[Function" + (h ? ": " + h : " (anonymous)") + "]" + (d.length > 0 ? " { " + I.call(d, ", ") + " }" : "");
|
|
693
695
|
}
|
|
694
696
|
if ($r(e)) {
|
|
695
697
|
var A = K ? M.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Me.call(e);
|
|
696
698
|
return typeof e == "object" && !K ? te(A) : A;
|
|
697
699
|
}
|
|
698
|
-
if (
|
|
699
|
-
for (var F = "<" + or.call(String(e.nodeName)),
|
|
700
|
-
F += " " +
|
|
700
|
+
if (hn(e)) {
|
|
701
|
+
for (var F = "<" + or.call(String(e.nodeName)), v = e.attributes || [], $ = 0; $ < v.length; $++)
|
|
702
|
+
F += " " + v[$].name + "=" + Fr(tn(v[$].value), "double", a);
|
|
701
703
|
return F += ">", e.childNodes && e.childNodes.length && (F += "..."), F += "</" + or.call(String(e.nodeName)) + ">", F;
|
|
702
704
|
}
|
|
703
705
|
if (ke(e)) {
|
|
704
706
|
if (e.length === 0)
|
|
705
707
|
return "[]";
|
|
706
708
|
var C = pe(e, p);
|
|
707
|
-
return
|
|
709
|
+
return m && !Sn(C) ? "[" + Be(C, m) + "]" : "[ " + I.call(C, ", ") + " ]";
|
|
708
710
|
}
|
|
709
|
-
if (
|
|
711
|
+
if (an(e)) {
|
|
710
712
|
var G = pe(e, p);
|
|
711
713
|
return !("cause" in Error.prototype) && "cause" in e && !Ir.call(e, "cause") ? "{ [" + String(e) + "] " + I.call(ir.call("[cause]: " + p(e.cause), G), ", ") + " }" : G.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + I.call(G, ", ") + " }";
|
|
712
714
|
}
|
|
@@ -716,35 +718,35 @@ var Ue = Vt, ur = Ue.custom, pr = $r(ur) ? ur : null, en = function r(e, t, n, o
|
|
|
716
718
|
if (l !== "symbol" && typeof e.inspect == "function")
|
|
717
719
|
return e.inspect();
|
|
718
720
|
}
|
|
719
|
-
if (
|
|
721
|
+
if (sn(e)) {
|
|
720
722
|
var ee = [];
|
|
721
723
|
return tr && tr.call(e, function(_, z) {
|
|
722
724
|
ee.push(p(z, e, !0) + " => " + p(_, e));
|
|
723
|
-
}), yr("Map", Se.call(e), ee,
|
|
725
|
+
}), yr("Map", Se.call(e), ee, m);
|
|
724
726
|
}
|
|
725
|
-
if (
|
|
727
|
+
if (mn(e)) {
|
|
726
728
|
var ce = [];
|
|
727
729
|
return nr && nr.call(e, function(_) {
|
|
728
730
|
ce.push(p(_, e));
|
|
729
|
-
}), yr("Set", be.call(e), ce,
|
|
731
|
+
}), yr("Set", be.call(e), ce, m);
|
|
730
732
|
}
|
|
731
|
-
if (
|
|
733
|
+
if (yn(e))
|
|
732
734
|
return $e("WeakMap");
|
|
733
|
-
if (
|
|
735
|
+
if (vn(e))
|
|
734
736
|
return $e("WeakSet");
|
|
735
|
-
if (
|
|
737
|
+
if (dn(e))
|
|
736
738
|
return $e("WeakRef");
|
|
737
|
-
if (
|
|
739
|
+
if (ln(e))
|
|
738
740
|
return te(p(Number(e)));
|
|
739
|
-
if (
|
|
741
|
+
if (fn(e))
|
|
740
742
|
return te(p(De.call(e)));
|
|
741
|
-
if (
|
|
742
|
-
return te(
|
|
743
|
-
if (
|
|
743
|
+
if (cn(e))
|
|
744
|
+
return te(Jt.call(e));
|
|
745
|
+
if (on(e))
|
|
744
746
|
return te(p(String(e)));
|
|
745
|
-
if (!
|
|
746
|
-
var k = pe(e, p), T = cr ? cr(e) === Object.prototype : e instanceof Object || e.constructor === Object, H = e instanceof Object ? "" : "null prototype", V = !T &&
|
|
747
|
-
return k.length === 0 ? x + "{}" :
|
|
747
|
+
if (!nn(e) && !sr(e)) {
|
|
748
|
+
var k = pe(e, p), T = cr ? cr(e) === Object.prototype : e instanceof Object || e.constructor === Object, H = e instanceof Object ? "" : "null prototype", V = !T && w && Object(e) === e && w in e ? Qe.call(U(e), 8, -1) : H ? "Object" : "", re = T || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", x = re + (V || H ? "[" + I.call(ir.call([], V || [], H || []), ": ") + "] " : "");
|
|
749
|
+
return k.length === 0 ? x + "{}" : m ? x + "{" + Be(k, m) + "}" : x + "{ " + I.call(k, ", ") + " }";
|
|
748
750
|
}
|
|
749
751
|
return String(e);
|
|
750
752
|
};
|
|
@@ -752,29 +754,29 @@ function Fr(r, e, t) {
|
|
|
752
754
|
var n = (t.quoteStyle || e) === "double" ? '"' : "'";
|
|
753
755
|
return n + r + n;
|
|
754
756
|
}
|
|
755
|
-
function
|
|
757
|
+
function tn(r) {
|
|
756
758
|
return M.call(String(r), /"/g, """);
|
|
757
759
|
}
|
|
758
760
|
function ke(r) {
|
|
759
|
-
return U(r) === "[object Array]" && (!
|
|
761
|
+
return U(r) === "[object Array]" && (!w || !(typeof r == "object" && w in r));
|
|
760
762
|
}
|
|
761
|
-
function
|
|
762
|
-
return U(r) === "[object Date]" && (!
|
|
763
|
+
function nn(r) {
|
|
764
|
+
return U(r) === "[object Date]" && (!w || !(typeof r == "object" && w in r));
|
|
763
765
|
}
|
|
764
766
|
function sr(r) {
|
|
765
|
-
return U(r) === "[object RegExp]" && (!
|
|
766
|
-
}
|
|
767
|
-
function nn(r) {
|
|
768
|
-
return U(r) === "[object Error]" && (!O || !(typeof r == "object" && O in r));
|
|
767
|
+
return U(r) === "[object RegExp]" && (!w || !(typeof r == "object" && w in r));
|
|
769
768
|
}
|
|
770
769
|
function an(r) {
|
|
771
|
-
return U(r) === "[object
|
|
770
|
+
return U(r) === "[object Error]" && (!w || !(typeof r == "object" && w in r));
|
|
772
771
|
}
|
|
773
772
|
function on(r) {
|
|
774
|
-
return U(r) === "[object
|
|
773
|
+
return U(r) === "[object String]" && (!w || !(typeof r == "object" && w in r));
|
|
775
774
|
}
|
|
776
775
|
function ln(r) {
|
|
777
|
-
return U(r) === "[object
|
|
776
|
+
return U(r) === "[object Number]" && (!w || !(typeof r == "object" && w in r));
|
|
777
|
+
}
|
|
778
|
+
function cn(r) {
|
|
779
|
+
return U(r) === "[object Boolean]" && (!w || !(typeof r == "object" && w in r));
|
|
778
780
|
}
|
|
779
781
|
function $r(r) {
|
|
780
782
|
if (K)
|
|
@@ -789,7 +791,7 @@ function $r(r) {
|
|
|
789
791
|
}
|
|
790
792
|
return !1;
|
|
791
793
|
}
|
|
792
|
-
function
|
|
794
|
+
function fn(r) {
|
|
793
795
|
if (!r || typeof r != "object" || !De)
|
|
794
796
|
return !1;
|
|
795
797
|
try {
|
|
@@ -798,19 +800,19 @@ function cn(r) {
|
|
|
798
800
|
}
|
|
799
801
|
return !1;
|
|
800
802
|
}
|
|
801
|
-
var
|
|
803
|
+
var un = Object.prototype.hasOwnProperty || function(r) {
|
|
802
804
|
return r in this;
|
|
803
805
|
};
|
|
804
806
|
function D(r, e) {
|
|
805
|
-
return
|
|
807
|
+
return un.call(r, e);
|
|
806
808
|
}
|
|
807
809
|
function U(r) {
|
|
808
|
-
return
|
|
810
|
+
return Yt.call(r);
|
|
809
811
|
}
|
|
810
|
-
function
|
|
812
|
+
function pn(r) {
|
|
811
813
|
if (r.name)
|
|
812
814
|
return r.name;
|
|
813
|
-
var e =
|
|
815
|
+
var e = Xt.call(Kt.call(r), /^function\s*([\w$]+)/);
|
|
814
816
|
return e ? e[1] : null;
|
|
815
817
|
}
|
|
816
818
|
function _r(r, e) {
|
|
@@ -821,7 +823,7 @@ function _r(r, e) {
|
|
|
821
823
|
return t;
|
|
822
824
|
return -1;
|
|
823
825
|
}
|
|
824
|
-
function
|
|
826
|
+
function sn(r) {
|
|
825
827
|
if (!Se || !r || typeof r != "object")
|
|
826
828
|
return !1;
|
|
827
829
|
try {
|
|
@@ -836,7 +838,7 @@ function pn(r) {
|
|
|
836
838
|
}
|
|
837
839
|
return !1;
|
|
838
840
|
}
|
|
839
|
-
function
|
|
841
|
+
function yn(r) {
|
|
840
842
|
if (!ae || !r || typeof r != "object")
|
|
841
843
|
return !1;
|
|
842
844
|
try {
|
|
@@ -851,7 +853,7 @@ function sn(r) {
|
|
|
851
853
|
}
|
|
852
854
|
return !1;
|
|
853
855
|
}
|
|
854
|
-
function
|
|
856
|
+
function dn(r) {
|
|
855
857
|
if (!ar || !r || typeof r != "object")
|
|
856
858
|
return !1;
|
|
857
859
|
try {
|
|
@@ -860,7 +862,7 @@ function yn(r) {
|
|
|
860
862
|
}
|
|
861
863
|
return !1;
|
|
862
864
|
}
|
|
863
|
-
function
|
|
865
|
+
function mn(r) {
|
|
864
866
|
if (!be || !r || typeof r != "object")
|
|
865
867
|
return !1;
|
|
866
868
|
try {
|
|
@@ -875,7 +877,7 @@ function dn(r) {
|
|
|
875
877
|
}
|
|
876
878
|
return !1;
|
|
877
879
|
}
|
|
878
|
-
function
|
|
880
|
+
function vn(r) {
|
|
879
881
|
if (!oe || !r || typeof r != "object")
|
|
880
882
|
return !1;
|
|
881
883
|
try {
|
|
@@ -890,7 +892,7 @@ function mn(r) {
|
|
|
890
892
|
}
|
|
891
893
|
return !1;
|
|
892
894
|
}
|
|
893
|
-
function
|
|
895
|
+
function hn(r) {
|
|
894
896
|
return !r || typeof r != "object" ? !1 : typeof HTMLElement < "u" && r instanceof HTMLElement ? !0 : typeof r.nodeName == "string" && typeof r.getAttribute == "function";
|
|
895
897
|
}
|
|
896
898
|
function Rr(r, e) {
|
|
@@ -898,10 +900,10 @@ function Rr(r, e) {
|
|
|
898
900
|
var t = r.length - e.maxStringLength, n = "... " + t + " more character" + (t > 1 ? "s" : "");
|
|
899
901
|
return Rr(Qe.call(r, 0, e.maxStringLength), e) + n;
|
|
900
902
|
}
|
|
901
|
-
var o = M.call(M.call(r, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g,
|
|
903
|
+
var o = M.call(M.call(r, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, gn);
|
|
902
904
|
return Fr(o, "single", e);
|
|
903
905
|
}
|
|
904
|
-
function
|
|
906
|
+
function gn(r) {
|
|
905
907
|
var e = r.charCodeAt(0), t = {
|
|
906
908
|
8: "b",
|
|
907
909
|
9: "t",
|
|
@@ -909,7 +911,7 @@ function hn(r) {
|
|
|
909
911
|
12: "f",
|
|
910
912
|
13: "r"
|
|
911
913
|
}[e];
|
|
912
|
-
return t ? "\\" + t : "\\x" + (e < 16 ? "0" : "") +
|
|
914
|
+
return t ? "\\" + t : "\\x" + (e < 16 ? "0" : "") + Zt.call(e.toString(16));
|
|
913
915
|
}
|
|
914
916
|
function te(r) {
|
|
915
917
|
return "Object(" + r + ")";
|
|
@@ -921,14 +923,14 @@ function yr(r, e, t, n) {
|
|
|
921
923
|
var o = n ? Be(t, n) : I.call(t, ", ");
|
|
922
924
|
return r + " (" + e + ") {" + o + "}";
|
|
923
925
|
}
|
|
924
|
-
function
|
|
926
|
+
function Sn(r) {
|
|
925
927
|
for (var e = 0; e < r.length; e++)
|
|
926
928
|
if (_r(r[e], `
|
|
927
929
|
`) >= 0)
|
|
928
930
|
return !1;
|
|
929
931
|
return !0;
|
|
930
932
|
}
|
|
931
|
-
function
|
|
933
|
+
function bn(r, e) {
|
|
932
934
|
var t;
|
|
933
935
|
if (r.indent === " ")
|
|
934
936
|
t = " ";
|
|
@@ -969,14 +971,14 @@ function pe(r, e) {
|
|
|
969
971
|
Ir.call(r, a[f]) && n.push("[" + e(a[f]) + "]: " + e(r[a[f]], r));
|
|
970
972
|
return n;
|
|
971
973
|
}
|
|
972
|
-
var qe = He, Z =
|
|
974
|
+
var qe = He, Z = Gt, On = rn, wn = qe("%TypeError%"), se = qe("%WeakMap%", !0), ye = qe("%Map%", !0), An = Z("WeakMap.prototype.get", !0), Pn = Z("WeakMap.prototype.set", !0), En = Z("WeakMap.prototype.has", !0), xn = Z("Map.prototype.get", !0), Nn = Z("Map.prototype.set", !0), In = Z("Map.prototype.has", !0), je = function(r, e) {
|
|
973
975
|
for (var t = r, n; (n = t.next) !== null; t = n)
|
|
974
976
|
if (n.key === e)
|
|
975
977
|
return t.next = n.next, n.next = r.next, r.next = n, n;
|
|
976
|
-
},
|
|
978
|
+
}, Fn = function(r, e) {
|
|
977
979
|
var t = je(r, e);
|
|
978
980
|
return t && t.value;
|
|
979
|
-
},
|
|
981
|
+
}, $n = function(r, e, t) {
|
|
980
982
|
var n = je(r, e);
|
|
981
983
|
n ? n.value = t : r.next = {
|
|
982
984
|
// eslint-disable-line no-param-reassign
|
|
@@ -984,48 +986,48 @@ var qe = He, Z = Wt, bn = en, wn = qe("%TypeError%"), se = qe("%WeakMap%", !0),
|
|
|
984
986
|
next: r.next,
|
|
985
987
|
value: t
|
|
986
988
|
};
|
|
987
|
-
},
|
|
989
|
+
}, _n = function(r, e) {
|
|
988
990
|
return !!je(r, e);
|
|
989
|
-
},
|
|
991
|
+
}, Rn = function() {
|
|
990
992
|
var e, t, n, o = {
|
|
991
993
|
assert: function(a) {
|
|
992
994
|
if (!o.has(a))
|
|
993
|
-
throw new wn("Side channel does not contain " +
|
|
995
|
+
throw new wn("Side channel does not contain " + On(a));
|
|
994
996
|
},
|
|
995
997
|
get: function(a) {
|
|
996
998
|
if (se && a && (typeof a == "object" || typeof a == "function")) {
|
|
997
999
|
if (e)
|
|
998
|
-
return
|
|
1000
|
+
return An(e, a);
|
|
999
1001
|
} else if (ye) {
|
|
1000
1002
|
if (t)
|
|
1001
|
-
return
|
|
1003
|
+
return xn(t, a);
|
|
1002
1004
|
} else if (n)
|
|
1003
|
-
return
|
|
1005
|
+
return Fn(n, a);
|
|
1004
1006
|
},
|
|
1005
1007
|
has: function(a) {
|
|
1006
1008
|
if (se && a && (typeof a == "object" || typeof a == "function")) {
|
|
1007
1009
|
if (e)
|
|
1008
|
-
return
|
|
1010
|
+
return En(e, a);
|
|
1009
1011
|
} else if (ye) {
|
|
1010
1012
|
if (t)
|
|
1011
|
-
return
|
|
1013
|
+
return In(t, a);
|
|
1012
1014
|
} else if (n)
|
|
1013
|
-
return
|
|
1015
|
+
return _n(n, a);
|
|
1014
1016
|
return !1;
|
|
1015
1017
|
},
|
|
1016
1018
|
set: function(a, l) {
|
|
1017
|
-
se && a && (typeof a == "object" || typeof a == "function") ? (e || (e = new se()),
|
|
1019
|
+
se && a && (typeof a == "object" || typeof a == "function") ? (e || (e = new se()), Pn(e, a, l)) : ye ? (t || (t = new ye()), Nn(t, a, l)) : (n || (n = { key: {}, next: null }), $n(n, a, l));
|
|
1018
1020
|
}
|
|
1019
1021
|
};
|
|
1020
1022
|
return o;
|
|
1021
|
-
},
|
|
1023
|
+
}, Cn = String.prototype.replace, Tn = /%20/g, _e = {
|
|
1022
1024
|
RFC1738: "RFC1738",
|
|
1023
1025
|
RFC3986: "RFC3986"
|
|
1024
1026
|
}, Je = {
|
|
1025
1027
|
default: _e.RFC3986,
|
|
1026
1028
|
formatters: {
|
|
1027
1029
|
RFC1738: function(r) {
|
|
1028
|
-
return
|
|
1030
|
+
return Cn.call(r, Tn, "+");
|
|
1029
1031
|
},
|
|
1030
1032
|
RFC3986: function(r) {
|
|
1031
1033
|
return String(r);
|
|
@@ -1033,11 +1035,11 @@ var qe = He, Z = Wt, bn = en, wn = qe("%TypeError%"), se = qe("%WeakMap%", !0),
|
|
|
1033
1035
|
},
|
|
1034
1036
|
RFC1738: _e.RFC1738,
|
|
1035
1037
|
RFC3986: _e.RFC3986
|
|
1036
|
-
},
|
|
1038
|
+
}, Dn = Je, Re = Object.prototype.hasOwnProperty, B = Array.isArray, N = function() {
|
|
1037
1039
|
for (var r = [], e = 0; e < 256; ++e)
|
|
1038
1040
|
r.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
1039
1041
|
return r;
|
|
1040
|
-
}(),
|
|
1042
|
+
}(), Mn = function(e) {
|
|
1041
1043
|
for (; e.length > 1; ) {
|
|
1042
1044
|
var t = e.pop(), n = t.obj[t.prop];
|
|
1043
1045
|
if (B(n)) {
|
|
@@ -1050,7 +1052,7 @@ var qe = He, Z = Wt, bn = en, wn = qe("%TypeError%"), se = qe("%WeakMap%", !0),
|
|
|
1050
1052
|
for (var n = t && t.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, o = 0; o < e.length; ++o)
|
|
1051
1053
|
typeof e[o] < "u" && (n[o] = e[o]);
|
|
1052
1054
|
return n;
|
|
1053
|
-
},
|
|
1055
|
+
}, Un = function r(e, t, n) {
|
|
1054
1056
|
if (!t)
|
|
1055
1057
|
return e;
|
|
1056
1058
|
if (typeof t != "object") {
|
|
@@ -1075,11 +1077,11 @@ var qe = He, Z = Wt, bn = en, wn = qe("%TypeError%"), se = qe("%WeakMap%", !0),
|
|
|
1075
1077
|
var i = t[l];
|
|
1076
1078
|
return Re.call(a, l) ? a[l] = r(a[l], i, n) : a[l] = i, a;
|
|
1077
1079
|
}, o);
|
|
1078
|
-
},
|
|
1080
|
+
}, kn = function(e, t) {
|
|
1079
1081
|
return Object.keys(t).reduce(function(n, o) {
|
|
1080
1082
|
return n[o] = t[o], n;
|
|
1081
1083
|
}, e);
|
|
1082
|
-
},
|
|
1084
|
+
}, Bn = function(r, e, t) {
|
|
1083
1085
|
var n = r.replace(/\+/g, " ");
|
|
1084
1086
|
if (t === "iso-8859-1")
|
|
1085
1087
|
return n.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
@@ -1088,7 +1090,7 @@ var qe = He, Z = Wt, bn = en, wn = qe("%TypeError%"), se = qe("%WeakMap%", !0),
|
|
|
1088
1090
|
} catch {
|
|
1089
1091
|
return n;
|
|
1090
1092
|
}
|
|
1091
|
-
},
|
|
1093
|
+
}, Ln = function(e, t, n, o, a) {
|
|
1092
1094
|
if (e.length === 0)
|
|
1093
1095
|
return e;
|
|
1094
1096
|
var l = e;
|
|
@@ -1098,7 +1100,7 @@ var qe = He, Z = Wt, bn = en, wn = qe("%TypeError%"), se = qe("%WeakMap%", !0),
|
|
|
1098
1100
|
});
|
|
1099
1101
|
for (var i = "", c = 0; c < l.length; ++c) {
|
|
1100
1102
|
var f = l.charCodeAt(c);
|
|
1101
|
-
if (f === 45 || f === 46 || f === 95 || f === 126 || f >= 48 && f <= 57 || f >= 65 && f <= 90 || f >= 97 && f <= 122 || a ===
|
|
1103
|
+
if (f === 45 || f === 46 || f === 95 || f === 126 || f >= 48 && f <= 57 || f >= 65 && f <= 90 || f >= 97 && f <= 122 || a === Dn.RFC1738 && (f === 40 || f === 41)) {
|
|
1102
1104
|
i += l.charAt(c);
|
|
1103
1105
|
continue;
|
|
1104
1106
|
}
|
|
@@ -1117,20 +1119,20 @@ var qe = He, Z = Wt, bn = en, wn = qe("%TypeError%"), se = qe("%WeakMap%", !0),
|
|
|
1117
1119
|
c += 1, f = 65536 + ((f & 1023) << 10 | l.charCodeAt(c) & 1023), i += N[240 | f >> 18] + N[128 | f >> 12 & 63] + N[128 | f >> 6 & 63] + N[128 | f & 63];
|
|
1118
1120
|
}
|
|
1119
1121
|
return i;
|
|
1120
|
-
},
|
|
1122
|
+
}, Wn = function(e) {
|
|
1121
1123
|
for (var t = [{ obj: { o: e }, prop: "o" }], n = [], o = 0; o < t.length; ++o)
|
|
1122
1124
|
for (var a = t[o], l = a.obj[a.prop], i = Object.keys(l), c = 0; c < i.length; ++c) {
|
|
1123
1125
|
var f = i[c], u = l[f];
|
|
1124
1126
|
typeof u == "object" && u !== null && n.indexOf(u) === -1 && (t.push({ obj: l, prop: f }), n.push(u));
|
|
1125
1127
|
}
|
|
1126
|
-
return
|
|
1127
|
-
}, Wn = function(e) {
|
|
1128
|
-
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
1128
|
+
return Mn(t), e;
|
|
1129
1129
|
}, Gn = function(e) {
|
|
1130
|
+
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
1131
|
+
}, Hn = function(e) {
|
|
1130
1132
|
return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
|
|
1131
|
-
}, Hn = function(e, t) {
|
|
1132
|
-
return [].concat(e, t);
|
|
1133
1133
|
}, Vn = function(e, t) {
|
|
1134
|
+
return [].concat(e, t);
|
|
1135
|
+
}, zn = function(e, t) {
|
|
1134
1136
|
if (B(e)) {
|
|
1135
1137
|
for (var n = [], o = 0; o < e.length; o += 1)
|
|
1136
1138
|
n.push(t(e[o]));
|
|
@@ -1139,16 +1141,16 @@ var qe = He, Z = Wt, bn = en, wn = qe("%TypeError%"), se = qe("%WeakMap%", !0),
|
|
|
1139
1141
|
return t(e);
|
|
1140
1142
|
}, Tr = {
|
|
1141
1143
|
arrayToObject: Cr,
|
|
1142
|
-
assign:
|
|
1143
|
-
combine:
|
|
1144
|
-
compact:
|
|
1145
|
-
decode:
|
|
1146
|
-
encode:
|
|
1147
|
-
isBuffer:
|
|
1148
|
-
isRegExp:
|
|
1149
|
-
maybeMap:
|
|
1150
|
-
merge:
|
|
1151
|
-
}, Dr =
|
|
1144
|
+
assign: kn,
|
|
1145
|
+
combine: Vn,
|
|
1146
|
+
compact: Wn,
|
|
1147
|
+
decode: Bn,
|
|
1148
|
+
encode: Ln,
|
|
1149
|
+
isBuffer: Hn,
|
|
1150
|
+
isRegExp: Gn,
|
|
1151
|
+
maybeMap: zn,
|
|
1152
|
+
merge: Un
|
|
1153
|
+
}, Dr = Rn, me = Tr, ie = Je, Qn = Object.prototype.hasOwnProperty, dr = {
|
|
1152
1154
|
brackets: function(e) {
|
|
1153
1155
|
return e + "[]";
|
|
1154
1156
|
},
|
|
@@ -1159,9 +1161,9 @@ var qe = He, Z = Wt, bn = en, wn = qe("%TypeError%"), se = qe("%WeakMap%", !0),
|
|
|
1159
1161
|
repeat: function(e) {
|
|
1160
1162
|
return e;
|
|
1161
1163
|
}
|
|
1162
|
-
}, R = Array.isArray,
|
|
1163
|
-
|
|
1164
|
-
},
|
|
1164
|
+
}, R = Array.isArray, qn = Array.prototype.push, Mr = function(r, e) {
|
|
1165
|
+
qn.apply(r, R(e) ? e : [e]);
|
|
1166
|
+
}, jn = Date.prototype.toISOString, mr = ie.default, O = {
|
|
1165
1167
|
addQueryPrefix: !1,
|
|
1166
1168
|
allowDots: !1,
|
|
1167
1169
|
charset: "utf-8",
|
|
@@ -1175,14 +1177,14 @@ var qe = He, Z = Wt, bn = en, wn = qe("%TypeError%"), se = qe("%WeakMap%", !0),
|
|
|
1175
1177
|
// deprecated
|
|
1176
1178
|
indices: !1,
|
|
1177
1179
|
serializeDate: function(e) {
|
|
1178
|
-
return
|
|
1180
|
+
return jn.call(e);
|
|
1179
1181
|
},
|
|
1180
1182
|
skipNulls: !1,
|
|
1181
1183
|
strictNullHandling: !1
|
|
1182
|
-
},
|
|
1184
|
+
}, Jn = function(e) {
|
|
1183
1185
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
1184
|
-
}, Ce = {},
|
|
1185
|
-
for (var
|
|
1186
|
+
}, Ce = {}, Yn = function r(e, t, n, o, a, l, i, c, f, u, m, p, h, d, A, F) {
|
|
1187
|
+
for (var v = e, $ = F, C = 0, G = !1; ($ = $.get(Ce)) !== void 0 && !G; ) {
|
|
1186
1188
|
var ee = $.get(e);
|
|
1187
1189
|
if (C += 1, typeof ee < "u") {
|
|
1188
1190
|
if (ee === C)
|
|
@@ -1191,36 +1193,36 @@ var qe = He, Z = Wt, bn = en, wn = qe("%TypeError%"), se = qe("%WeakMap%", !0),
|
|
|
1191
1193
|
}
|
|
1192
1194
|
typeof $.get(Ce) > "u" && (C = 0);
|
|
1193
1195
|
}
|
|
1194
|
-
if (typeof c == "function" ?
|
|
1195
|
-
return Q instanceof Date ?
|
|
1196
|
-
})),
|
|
1196
|
+
if (typeof c == "function" ? v = c(t, v) : v instanceof Date ? v = m(v) : n === "comma" && R(v) && (v = me.maybeMap(v, function(Q) {
|
|
1197
|
+
return Q instanceof Date ? m(Q) : Q;
|
|
1198
|
+
})), v === null) {
|
|
1197
1199
|
if (a)
|
|
1198
|
-
return i && !
|
|
1199
|
-
|
|
1200
|
+
return i && !d ? i(t, O.encoder, A, "key", p) : t;
|
|
1201
|
+
v = "";
|
|
1200
1202
|
}
|
|
1201
|
-
if (
|
|
1203
|
+
if (Jn(v) || me.isBuffer(v)) {
|
|
1202
1204
|
if (i) {
|
|
1203
|
-
var ce =
|
|
1204
|
-
return [h(ce) + "=" + h(i(
|
|
1205
|
+
var ce = d ? t : i(t, O.encoder, A, "key", p);
|
|
1206
|
+
return [h(ce) + "=" + h(i(v, O.encoder, A, "value", p))];
|
|
1205
1207
|
}
|
|
1206
|
-
return [h(t) + "=" + h(String(
|
|
1208
|
+
return [h(t) + "=" + h(String(v))];
|
|
1207
1209
|
}
|
|
1208
1210
|
var k = [];
|
|
1209
|
-
if (typeof
|
|
1211
|
+
if (typeof v > "u")
|
|
1210
1212
|
return k;
|
|
1211
1213
|
var T;
|
|
1212
|
-
if (n === "comma" && R(
|
|
1213
|
-
|
|
1214
|
+
if (n === "comma" && R(v))
|
|
1215
|
+
d && i && (v = me.maybeMap(v, i)), T = [{ value: v.length > 0 ? v.join(",") || null : void 0 }];
|
|
1214
1216
|
else if (R(c))
|
|
1215
1217
|
T = c;
|
|
1216
1218
|
else {
|
|
1217
|
-
var H = Object.keys(
|
|
1219
|
+
var H = Object.keys(v);
|
|
1218
1220
|
T = f ? H.sort(f) : H;
|
|
1219
1221
|
}
|
|
1220
|
-
for (var V = o && R(
|
|
1221
|
-
var x = T[re], _ = typeof x == "object" && typeof x.value < "u" ? x.value :
|
|
1222
|
+
for (var V = o && R(v) && v.length === 1 ? t + "[]" : t, re = 0; re < T.length; ++re) {
|
|
1223
|
+
var x = T[re], _ = typeof x == "object" && typeof x.value < "u" ? x.value : v[x];
|
|
1222
1224
|
if (!(l && _ === null)) {
|
|
1223
|
-
var z = R(
|
|
1225
|
+
var z = R(v) ? typeof n == "function" ? n(V, x) : V : V + (u ? "." + x : "[" + x + "]");
|
|
1224
1226
|
F.set(e, C);
|
|
1225
1227
|
var fe = Dr();
|
|
1226
1228
|
fe.set(Ce, F), Mr(k, r(
|
|
@@ -1230,54 +1232,54 @@ var qe = He, Z = Wt, bn = en, wn = qe("%TypeError%"), se = qe("%WeakMap%", !0),
|
|
|
1230
1232
|
o,
|
|
1231
1233
|
a,
|
|
1232
1234
|
l,
|
|
1233
|
-
n === "comma" &&
|
|
1235
|
+
n === "comma" && d && R(v) ? null : i,
|
|
1234
1236
|
c,
|
|
1235
1237
|
f,
|
|
1236
1238
|
u,
|
|
1237
|
-
|
|
1239
|
+
m,
|
|
1238
1240
|
p,
|
|
1239
1241
|
h,
|
|
1240
|
-
|
|
1242
|
+
d,
|
|
1241
1243
|
A,
|
|
1242
1244
|
fe
|
|
1243
1245
|
));
|
|
1244
1246
|
}
|
|
1245
1247
|
}
|
|
1246
1248
|
return k;
|
|
1247
|
-
},
|
|
1249
|
+
}, Kn = function(e) {
|
|
1248
1250
|
if (!e)
|
|
1249
|
-
return
|
|
1251
|
+
return O;
|
|
1250
1252
|
if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function")
|
|
1251
1253
|
throw new TypeError("Encoder has to be a function.");
|
|
1252
|
-
var t = e.charset ||
|
|
1254
|
+
var t = e.charset || O.charset;
|
|
1253
1255
|
if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
|
|
1254
1256
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
1255
1257
|
var n = ie.default;
|
|
1256
1258
|
if (typeof e.format < "u") {
|
|
1257
|
-
if (!
|
|
1259
|
+
if (!Qn.call(ie.formatters, e.format))
|
|
1258
1260
|
throw new TypeError("Unknown format option provided.");
|
|
1259
1261
|
n = e.format;
|
|
1260
1262
|
}
|
|
1261
|
-
var o = ie.formatters[n], a =
|
|
1263
|
+
var o = ie.formatters[n], a = O.filter;
|
|
1262
1264
|
return (typeof e.filter == "function" || R(e.filter)) && (a = e.filter), {
|
|
1263
|
-
addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix :
|
|
1264
|
-
allowDots: typeof e.allowDots > "u" ?
|
|
1265
|
+
addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : O.addQueryPrefix,
|
|
1266
|
+
allowDots: typeof e.allowDots > "u" ? O.allowDots : !!e.allowDots,
|
|
1265
1267
|
charset: t,
|
|
1266
|
-
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel :
|
|
1267
|
-
delimiter: typeof e.delimiter > "u" ?
|
|
1268
|
-
encode: typeof e.encode == "boolean" ? e.encode :
|
|
1269
|
-
encoder: typeof e.encoder == "function" ? e.encoder :
|
|
1270
|
-
encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly :
|
|
1268
|
+
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : O.charsetSentinel,
|
|
1269
|
+
delimiter: typeof e.delimiter > "u" ? O.delimiter : e.delimiter,
|
|
1270
|
+
encode: typeof e.encode == "boolean" ? e.encode : O.encode,
|
|
1271
|
+
encoder: typeof e.encoder == "function" ? e.encoder : O.encoder,
|
|
1272
|
+
encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : O.encodeValuesOnly,
|
|
1271
1273
|
filter: a,
|
|
1272
1274
|
format: n,
|
|
1273
1275
|
formatter: o,
|
|
1274
|
-
serializeDate: typeof e.serializeDate == "function" ? e.serializeDate :
|
|
1275
|
-
skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls :
|
|
1276
|
+
serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : O.serializeDate,
|
|
1277
|
+
skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : O.skipNulls,
|
|
1276
1278
|
sort: typeof e.sort == "function" ? e.sort : null,
|
|
1277
|
-
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling :
|
|
1279
|
+
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : O.strictNullHandling
|
|
1278
1280
|
};
|
|
1279
|
-
},
|
|
1280
|
-
var t = r, n =
|
|
1281
|
+
}, Xn = function(r, e) {
|
|
1282
|
+
var t = r, n = Kn(e), o, a;
|
|
1281
1283
|
typeof n.filter == "function" ? (a = n.filter, t = a("", t)) : R(n.filter) && (a = n.filter, o = a);
|
|
1282
1284
|
var l = [];
|
|
1283
1285
|
if (typeof t != "object" || t === null)
|
|
@@ -1289,9 +1291,9 @@ var qe = He, Z = Wt, bn = en, wn = qe("%TypeError%"), se = qe("%WeakMap%", !0),
|
|
|
1289
1291
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
1290
1292
|
var f = c === "comma" && e && e.commaRoundTrip;
|
|
1291
1293
|
o || (o = Object.keys(t)), n.sort && o.sort(n.sort);
|
|
1292
|
-
for (var u = Dr(),
|
|
1293
|
-
var p = o[
|
|
1294
|
-
n.skipNulls && t[p] === null || Mr(l,
|
|
1294
|
+
for (var u = Dr(), m = 0; m < o.length; ++m) {
|
|
1295
|
+
var p = o[m];
|
|
1296
|
+
n.skipNulls && t[p] === null || Mr(l, Yn(
|
|
1295
1297
|
t[p],
|
|
1296
1298
|
p,
|
|
1297
1299
|
c,
|
|
@@ -1310,9 +1312,9 @@ var qe = He, Z = Wt, bn = en, wn = qe("%TypeError%"), se = qe("%WeakMap%", !0),
|
|
|
1310
1312
|
u
|
|
1311
1313
|
));
|
|
1312
1314
|
}
|
|
1313
|
-
var h = l.join(n.delimiter),
|
|
1314
|
-
return n.charsetSentinel && (n.charset === "iso-8859-1" ?
|
|
1315
|
-
}, X = Tr, Le = Object.prototype.hasOwnProperty,
|
|
1315
|
+
var h = l.join(n.delimiter), d = n.addQueryPrefix === !0 ? "?" : "";
|
|
1316
|
+
return n.charsetSentinel && (n.charset === "iso-8859-1" ? d += "utf8=%26%2310003%3B&" : d += "utf8=%E2%9C%93&"), h.length > 0 ? d + h : "";
|
|
1317
|
+
}, X = Tr, Le = Object.prototype.hasOwnProperty, Zn = Array.isArray, g = {
|
|
1316
1318
|
allowDots: !1,
|
|
1317
1319
|
allowPrototypes: !1,
|
|
1318
1320
|
allowSparse: !1,
|
|
@@ -1329,29 +1331,29 @@ var qe = He, Z = Wt, bn = en, wn = qe("%TypeError%"), se = qe("%WeakMap%", !0),
|
|
|
1329
1331
|
parseArrays: !0,
|
|
1330
1332
|
plainObjects: !1,
|
|
1331
1333
|
strictNullHandling: !1
|
|
1332
|
-
},
|
|
1334
|
+
}, ea = function(r) {
|
|
1333
1335
|
return r.replace(/&#(\d+);/g, function(e, t) {
|
|
1334
1336
|
return String.fromCharCode(parseInt(t, 10));
|
|
1335
1337
|
});
|
|
1336
1338
|
}, Ur = function(r, e) {
|
|
1337
1339
|
return r && typeof r == "string" && e.comma && r.indexOf(",") > -1 ? r.split(",") : r;
|
|
1338
|
-
},
|
|
1340
|
+
}, ra = "utf8=%26%2310003%3B", ta = "utf8=%E2%9C%93", na = function(e, t) {
|
|
1339
1341
|
var n = { __proto__: null }, o = t.ignoreQueryPrefix ? e.replace(/^\?/, "") : e, a = t.parameterLimit === 1 / 0 ? void 0 : t.parameterLimit, l = o.split(t.delimiter, a), i = -1, c, f = t.charset;
|
|
1340
1342
|
if (t.charsetSentinel)
|
|
1341
1343
|
for (c = 0; c < l.length; ++c)
|
|
1342
|
-
l[c].indexOf("utf8=") === 0 && (l[c] ===
|
|
1344
|
+
l[c].indexOf("utf8=") === 0 && (l[c] === ta ? f = "utf-8" : l[c] === ra && (f = "iso-8859-1"), i = c, c = l.length);
|
|
1343
1345
|
for (c = 0; c < l.length; ++c)
|
|
1344
1346
|
if (c !== i) {
|
|
1345
|
-
var u = l[c],
|
|
1346
|
-
p === -1 ? (h = t.decoder(u, g.decoder, f, "key"),
|
|
1347
|
+
var u = l[c], m = u.indexOf("]="), p = m === -1 ? u.indexOf("=") : m + 1, h, d;
|
|
1348
|
+
p === -1 ? (h = t.decoder(u, g.decoder, f, "key"), d = t.strictNullHandling ? null : "") : (h = t.decoder(u.slice(0, p), g.decoder, f, "key"), d = X.maybeMap(
|
|
1347
1349
|
Ur(u.slice(p + 1), t),
|
|
1348
1350
|
function(A) {
|
|
1349
1351
|
return t.decoder(A, g.decoder, f, "value");
|
|
1350
1352
|
}
|
|
1351
|
-
)),
|
|
1353
|
+
)), d && t.interpretNumericEntities && f === "iso-8859-1" && (d = ea(d)), u.indexOf("[]=") > -1 && (d = Zn(d) ? [d] : d), Le.call(n, h) ? n[h] = X.combine(n[h], d) : n[h] = d;
|
|
1352
1354
|
}
|
|
1353
1355
|
return n;
|
|
1354
|
-
},
|
|
1356
|
+
}, aa = function(r, e, t, n) {
|
|
1355
1357
|
for (var o = n ? e : Ur(e, t), a = r.length - 1; a >= 0; --a) {
|
|
1356
1358
|
var l, i = r[a];
|
|
1357
1359
|
if (i === "[]" && t.parseArrays)
|
|
@@ -1364,7 +1366,7 @@ var qe = He, Z = Wt, bn = en, wn = qe("%TypeError%"), se = qe("%WeakMap%", !0),
|
|
|
1364
1366
|
o = l;
|
|
1365
1367
|
}
|
|
1366
1368
|
return o;
|
|
1367
|
-
},
|
|
1369
|
+
}, oa = function(e, t, n, o) {
|
|
1368
1370
|
if (e) {
|
|
1369
1371
|
var a = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, l = /(\[[^[\]]*])/, i = /(\[[^[\]]*])/g, c = n.depth > 0 && l.exec(a), f = c ? a.slice(0, c.index) : a, u = [];
|
|
1370
1372
|
if (f) {
|
|
@@ -1372,14 +1374,14 @@ var qe = He, Z = Wt, bn = en, wn = qe("%TypeError%"), se = qe("%WeakMap%", !0),
|
|
|
1372
1374
|
return;
|
|
1373
1375
|
u.push(f);
|
|
1374
1376
|
}
|
|
1375
|
-
for (var
|
|
1376
|
-
if (
|
|
1377
|
+
for (var m = 0; n.depth > 0 && (c = i.exec(a)) !== null && m < n.depth; ) {
|
|
1378
|
+
if (m += 1, !n.plainObjects && Le.call(Object.prototype, c[1].slice(1, -1)) && !n.allowPrototypes)
|
|
1377
1379
|
return;
|
|
1378
1380
|
u.push(c[1]);
|
|
1379
1381
|
}
|
|
1380
|
-
return c && u.push("[" + a.slice(c.index) + "]"),
|
|
1382
|
+
return c && u.push("[" + a.slice(c.index) + "]"), aa(u, t, n, o);
|
|
1381
1383
|
}
|
|
1382
|
-
},
|
|
1384
|
+
}, ia = function(e) {
|
|
1383
1385
|
if (!e)
|
|
1384
1386
|
return g;
|
|
1385
1387
|
if (e.decoder !== null && e.decoder !== void 0 && typeof e.decoder != "function")
|
|
@@ -1406,52 +1408,52 @@ var qe = He, Z = Wt, bn = en, wn = qe("%TypeError%"), se = qe("%WeakMap%", !0),
|
|
|
1406
1408
|
plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : g.plainObjects,
|
|
1407
1409
|
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : g.strictNullHandling
|
|
1408
1410
|
};
|
|
1409
|
-
},
|
|
1410
|
-
var t =
|
|
1411
|
+
}, la = function(r, e) {
|
|
1412
|
+
var t = ia(e);
|
|
1411
1413
|
if (r === "" || r === null || typeof r > "u")
|
|
1412
1414
|
return t.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
1413
|
-
for (var n = typeof r == "string" ?
|
|
1414
|
-
var i = a[l], c =
|
|
1415
|
+
for (var n = typeof r == "string" ? na(r, t) : r, o = t.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, a = Object.keys(n), l = 0; l < a.length; ++l) {
|
|
1416
|
+
var i = a[l], c = oa(i, n[i], t, typeof r == "string");
|
|
1415
1417
|
o = X.merge(o, c, t);
|
|
1416
1418
|
}
|
|
1417
1419
|
return t.allowSparse === !0 ? o : X.compact(o);
|
|
1418
|
-
},
|
|
1419
|
-
formats:
|
|
1420
|
-
parse:
|
|
1421
|
-
stringify:
|
|
1420
|
+
}, ca = Xn, fa = la, ua = Je, pa = {
|
|
1421
|
+
formats: ua,
|
|
1422
|
+
parse: fa,
|
|
1423
|
+
stringify: ca
|
|
1422
1424
|
};
|
|
1423
|
-
const kr = /* @__PURE__ */ Sr(
|
|
1425
|
+
const kr = /* @__PURE__ */ Sr(pa), Wa = (r) => kr.parse(r, { ignoreQueryPrefix: !0 }), Ga = (r) => kr.stringify(r, { arrayFormat: "brackets" });
|
|
1424
1426
|
export {
|
|
1425
1427
|
wa as Checkbox,
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1428
|
+
yt as DropdownBtn,
|
|
1429
|
+
Da as HIGHLIGHTED_COLOR,
|
|
1430
|
+
Ma as HIGHLIGHTED_COLOR_ALPHA,
|
|
1431
|
+
Pa as InputFormGroup,
|
|
1432
|
+
pt as LabeledFormGroup,
|
|
1433
|
+
Ca as MAIN_COLOR,
|
|
1434
|
+
Ta as MAIN_COLOR_ALPHA,
|
|
1435
|
+
ga as Message,
|
|
1436
|
+
dt as NavPillItem,
|
|
1437
|
+
Na as NavPills,
|
|
1438
|
+
Ra as OrderingDropdown,
|
|
1439
|
+
ka as PRIMARY_DARK_COLOR,
|
|
1440
|
+
Ua as PRIMARY_LIGHT_COLOR,
|
|
1441
|
+
Sa as Result,
|
|
1442
|
+
xa as RowDropdownBtn,
|
|
1443
|
+
Ea as SearchField,
|
|
1444
|
+
at as SimpleCard,
|
|
1445
|
+
Aa as ToggleSwitch,
|
|
1446
|
+
Ba as changeThemeInMarkup,
|
|
1447
|
+
mt as determineOrderDir,
|
|
1448
|
+
La as isDarkThemeEnabled,
|
|
1449
|
+
Fa as orderToString,
|
|
1450
|
+
Wa as parseQuery,
|
|
1451
|
+
Ia as sortList,
|
|
1452
|
+
$a as stringToOrder,
|
|
1453
|
+
Ga as stringifyQuery,
|
|
1454
|
+
Or as useDomId,
|
|
1455
|
+
Oa as useElementRef,
|
|
1456
|
+
_a as useOrder,
|
|
1457
|
+
ba as useTimeoutToggle,
|
|
1458
|
+
ut as useToggle
|
|
1457
1459
|
};
|