zudoku 0.3.0-dev.56 → 0.3.0-dev.57
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/app/demo.js +6 -1
- package/dist/app/demo.js.map +1 -1
- package/dist/app/entry.client.d.ts +1 -1
- package/dist/app/entry.client.js +1 -1
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.d.ts +1 -1
- package/dist/app/entry.server.js +1 -1
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/main.d.ts +1 -1
- package/dist/app/main.js +9 -2
- package/dist/app/main.js.map +1 -1
- package/dist/app/standalone.js +6 -1
- package/dist/app/standalone.js.map +1 -1
- package/dist/config/validators/validate.d.ts +65 -5
- package/dist/config/validators/validate.js +7 -1
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/lib/components/Header.js +1 -1
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/navigation/SideNavigationCategory.js +2 -2
- package/dist/lib/components/navigation/SideNavigationCategory.js.map +1 -1
- package/dist/lib/core/DevPortalContext.d.ts +8 -1
- package/dist/lib/core/DevPortalContext.js.map +1 -1
- package/dist/lib/oas/graphql/index.js +5 -3
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +2 -1
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/StaggeredRender.d.ts +5 -0
- package/dist/lib/plugins/openapi/StaggeredRender.js +13 -0
- package/dist/lib/plugins/openapi/StaggeredRender.js.map +1 -0
- package/dist/vite/plugin-custom-css.js +2 -3
- package/dist/vite/plugin-custom-css.js.map +1 -1
- package/lib/{OperationList-DpR4KzIJ.js → OperationList-DypxLtSC.js} +813 -805
- package/lib/OperationList-DypxLtSC.js.map +1 -0
- package/lib/assets/{worker-BjPv-hjP.js → worker-BWwCA-wk.js} +8 -5
- package/lib/assets/{worker-BjPv-hjP.js.map → worker-BWwCA-wk.js.map} +1 -1
- package/lib/{index-DZ910ttL.js → index-Bg82-bqR.js} +2 -2
- package/lib/{index-DZ910ttL.js.map → index-Bg82-bqR.js.map} +1 -1
- package/lib/zudoku.components.js +53 -45
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +8 -5
- package/lib/zudoku.openapi-worker.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +1 -1
- package/package.json +2 -2
- package/src/app/demo.tsx +6 -1
- package/src/app/entry.client.tsx +1 -1
- package/src/app/entry.server.tsx +1 -1
- package/src/app/main.tsx +11 -2
- package/src/app/standalone.tsx +6 -1
- package/src/lib/components/Header.tsx +6 -1
- package/src/lib/components/navigation/SideNavigationCategory.tsx +3 -3
- package/src/lib/core/DevPortalContext.ts +8 -1
- package/src/lib/oas/graphql/index.ts +7 -3
- package/src/lib/plugins/openapi/OperationList.tsx +9 -6
- package/src/lib/plugins/openapi/StaggeredRender.tsx +17 -0
- package/lib/OperationList-DpR4KzIJ.js.map +0 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { j as u } from "./jsx-runtime-CJZJivg2.js";
|
|
2
|
-
import { c as $t, e as A, u as
|
|
3
|
-
import { c as
|
|
4
|
-
import { g as
|
|
2
|
+
import { c as $t, e as A, u as Wo, h as Ae, H as He, P as zo, i as Go, S as Ke, j as Vo, I as kr, g as Rr } from "./Markdown-DtLFdxD1.js";
|
|
3
|
+
import { c as sr, u as jt, a as ir, b as Jo, P as ie, d as te, e as Be, S as wn, f as Ko, D as Qo } from "./index-gsAuUwQh.js";
|
|
4
|
+
import { g as cr, M as Yo, E as Xo } from "./index-Bg82-bqR.js";
|
|
5
5
|
import * as S from "react";
|
|
6
|
-
import { useRef as
|
|
7
|
-
import { g as
|
|
8
|
-
import { P as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as va, a as
|
|
11
|
-
import { a as
|
|
12
|
-
import { v as
|
|
6
|
+
import { useRef as Zo, useEffect as Sn, useState as wt, forwardRef as ea, Fragment as nt, useMemo as ta, Children as ra } from "react";
|
|
7
|
+
import { g as na, h as Tn, B as lr, R as oa, i as aa, j as sa, F as ia, D as ca, P as la, k as ur, l as Ar, m as ua, C as Ze, u as fa, a as da, n as pa, S as ha, b as ma, c as ya, d as ga, f as Ir, V as ba } from "./Button-DpHMZvVs.js";
|
|
8
|
+
import { P as St, R as On, T as Cn, C as Pn, S as qr } from "./Spinner-Bhbs5aPI.js";
|
|
9
|
+
import { u as Nn } from "./context-_fYfJFgk.js";
|
|
10
|
+
import { u as va, a as xa } from "./urql-DMlBWUKL.js";
|
|
11
|
+
import { a as $a, c as ot, g as ja } from "./_commonjsHelpers-BVfed4GL.js";
|
|
12
|
+
import { v as wa } from "./DevPortalProvider-Do9oJqme.js";
|
|
13
13
|
/**
|
|
14
14
|
* @license lucide-react v0.378.0 - ISC
|
|
15
15
|
*
|
|
16
16
|
* This source code is licensed under the ISC license.
|
|
17
17
|
* See the LICENSE file in the root directory of this source tree.
|
|
18
18
|
*/
|
|
19
|
-
const
|
|
19
|
+
const Sa = $t("ChevronsUpDown", [
|
|
20
20
|
["path", { d: "m7 15 5 5 5-5", key: "1hf1tw" }],
|
|
21
21
|
["path", { d: "m7 9 5-5 5 5", key: "sgt6xg" }]
|
|
22
22
|
]);
|
|
@@ -26,7 +26,7 @@ const wa = $t("ChevronsUpDown", [
|
|
|
26
26
|
* This source code is licensed under the ISC license.
|
|
27
27
|
* See the LICENSE file in the root directory of this source tree.
|
|
28
28
|
*/
|
|
29
|
-
const
|
|
29
|
+
const Ta = $t("CirclePlay", [
|
|
30
30
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
31
31
|
["polygon", { points: "10 8 16 12 10 16 10 8", key: "1cimsy" }]
|
|
32
32
|
]);
|
|
@@ -36,7 +36,7 @@ const Sa = $t("CirclePlay", [
|
|
|
36
36
|
* This source code is licensed under the ISC license.
|
|
37
37
|
* See the LICENSE file in the root directory of this source tree.
|
|
38
38
|
*/
|
|
39
|
-
const
|
|
39
|
+
const Oa = $t("ListPlus", [
|
|
40
40
|
["path", { d: "M11 12H3", key: "51ecnj" }],
|
|
41
41
|
["path", { d: "M16 6H3", key: "1wxfjs" }],
|
|
42
42
|
["path", { d: "M16 18H3", key: "12xzn7" }],
|
|
@@ -53,17 +53,17 @@ const fr = $t("X", [
|
|
|
53
53
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
54
54
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
55
55
|
]);
|
|
56
|
-
function
|
|
56
|
+
function Ca(e, t) {
|
|
57
57
|
return t;
|
|
58
58
|
}
|
|
59
|
-
var
|
|
60
|
-
|
|
61
|
-
[
|
|
62
|
-
), [
|
|
63
|
-
(e, t) => /* @__PURE__ */ u.jsx(
|
|
59
|
+
var Nt = "rovingFocusGroup.onEntryFocus", Pa = { bubbles: !1, cancelable: !0 }, Tt = "RovingFocusGroup", [zt, En, Na] = na(Tt), [Ea, kn] = sr(
|
|
60
|
+
Tt,
|
|
61
|
+
[Na]
|
|
62
|
+
), [ka, Ra] = Ea(Tt), Rn = S.forwardRef(
|
|
63
|
+
(e, t) => /* @__PURE__ */ u.jsx(zt.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ u.jsx(zt.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ u.jsx(Aa, { ...e, ref: t }) }) })
|
|
64
64
|
);
|
|
65
|
-
|
|
66
|
-
var
|
|
65
|
+
Rn.displayName = Tt;
|
|
66
|
+
var Aa = S.forwardRef((e, t) => {
|
|
67
67
|
const {
|
|
68
68
|
__scopeRovingFocusGroup: r,
|
|
69
69
|
orientation: n,
|
|
@@ -75,17 +75,17 @@ var Ra = S.forwardRef((e, t) => {
|
|
|
75
75
|
onEntryFocus: l,
|
|
76
76
|
preventScrollOnEntryFocus: f = !1,
|
|
77
77
|
...p
|
|
78
|
-
} = e, d = S.useRef(null), h = jt(t, d), m =
|
|
78
|
+
} = e, d = S.useRef(null), h = jt(t, d), m = Tn(a), [g = null, b] = ir({
|
|
79
79
|
prop: o,
|
|
80
80
|
defaultProp: i,
|
|
81
81
|
onChange: c
|
|
82
|
-
}), [
|
|
82
|
+
}), [v, y] = S.useState(!1), x = Jo(l), T = En(r), $ = S.useRef(!1), [O, w] = S.useState(0);
|
|
83
83
|
return S.useEffect(() => {
|
|
84
84
|
const C = d.current;
|
|
85
85
|
if (C)
|
|
86
|
-
return C.addEventListener(
|
|
86
|
+
return C.addEventListener(Nt, x), () => C.removeEventListener(Nt, x);
|
|
87
87
|
}, [x]), /* @__PURE__ */ u.jsx(
|
|
88
|
-
|
|
88
|
+
ka,
|
|
89
89
|
{
|
|
90
90
|
scope: r,
|
|
91
91
|
orientation: n,
|
|
@@ -93,8 +93,8 @@ var Ra = S.forwardRef((e, t) => {
|
|
|
93
93
|
loop: s,
|
|
94
94
|
currentTabStopId: g,
|
|
95
95
|
onItemFocus: S.useCallback(
|
|
96
|
-
(C) =>
|
|
97
|
-
[
|
|
96
|
+
(C) => b(C),
|
|
97
|
+
[b]
|
|
98
98
|
),
|
|
99
99
|
onItemShiftTab: S.useCallback(() => y(!0), []),
|
|
100
100
|
onFocusableItemAdd: S.useCallback(
|
|
@@ -108,7 +108,7 @@ var Ra = S.forwardRef((e, t) => {
|
|
|
108
108
|
children: /* @__PURE__ */ u.jsx(
|
|
109
109
|
ie.div,
|
|
110
110
|
{
|
|
111
|
-
tabIndex:
|
|
111
|
+
tabIndex: v || O === 0 ? -1 : 0,
|
|
112
112
|
"data-orientation": n,
|
|
113
113
|
...p,
|
|
114
114
|
ref: h,
|
|
@@ -118,13 +118,13 @@ var Ra = S.forwardRef((e, t) => {
|
|
|
118
118
|
}),
|
|
119
119
|
onFocus: te(e.onFocus, (C) => {
|
|
120
120
|
const R = !$.current;
|
|
121
|
-
if (C.target === C.currentTarget && R && !
|
|
122
|
-
const q = new CustomEvent(
|
|
121
|
+
if (C.target === C.currentTarget && R && !v) {
|
|
122
|
+
const q = new CustomEvent(Nt, Pa);
|
|
123
123
|
if (C.currentTarget.dispatchEvent(q), !q.defaultPrevented) {
|
|
124
124
|
const U = T().filter((I) => I.focusable), Q = U.find((I) => I.active), F = U.find((I) => I.id === g), B = [Q, F, ...U].filter(
|
|
125
125
|
Boolean
|
|
126
126
|
).map((I) => I.ref.current);
|
|
127
|
-
|
|
127
|
+
qn(B, f);
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
$.current = !1;
|
|
@@ -134,7 +134,7 @@ var Ra = S.forwardRef((e, t) => {
|
|
|
134
134
|
)
|
|
135
135
|
}
|
|
136
136
|
);
|
|
137
|
-
}),
|
|
137
|
+
}), An = "RovingFocusGroupItem", In = S.forwardRef(
|
|
138
138
|
(e, t) => {
|
|
139
139
|
const {
|
|
140
140
|
__scopeRovingFocusGroup: r,
|
|
@@ -142,12 +142,12 @@ var Ra = S.forwardRef((e, t) => {
|
|
|
142
142
|
active: s = !1,
|
|
143
143
|
tabStopId: a,
|
|
144
144
|
...o
|
|
145
|
-
} = e, i = Be(), c = a || i, l =
|
|
145
|
+
} = e, i = Be(), c = a || i, l = Ra(An, r), f = l.currentTabStopId === c, p = En(r), { onFocusableItemAdd: d, onFocusableItemRemove: h } = l;
|
|
146
146
|
return S.useEffect(() => {
|
|
147
147
|
if (n)
|
|
148
148
|
return d(), () => h();
|
|
149
149
|
}, [n, d, h]), /* @__PURE__ */ u.jsx(
|
|
150
|
-
|
|
150
|
+
zt.ItemSlot,
|
|
151
151
|
{
|
|
152
152
|
scope: r,
|
|
153
153
|
id: c,
|
|
@@ -170,18 +170,18 @@ var Ra = S.forwardRef((e, t) => {
|
|
|
170
170
|
return;
|
|
171
171
|
}
|
|
172
172
|
if (m.target !== m.currentTarget) return;
|
|
173
|
-
const g =
|
|
173
|
+
const g = _a(m, l.orientation, l.dir);
|
|
174
174
|
if (g !== void 0) {
|
|
175
175
|
if (m.metaKey || m.ctrlKey || m.altKey || m.shiftKey) return;
|
|
176
176
|
m.preventDefault();
|
|
177
|
-
let
|
|
178
|
-
if (g === "last")
|
|
177
|
+
let v = p().filter((y) => y.focusable).map((y) => y.ref.current);
|
|
178
|
+
if (g === "last") v.reverse();
|
|
179
179
|
else if (g === "prev" || g === "next") {
|
|
180
|
-
g === "prev" &&
|
|
181
|
-
const y =
|
|
182
|
-
|
|
180
|
+
g === "prev" && v.reverse();
|
|
181
|
+
const y = v.indexOf(m.currentTarget);
|
|
182
|
+
v = l.loop ? Fa(v, y + 1) : v.slice(y + 1);
|
|
183
183
|
}
|
|
184
|
-
setTimeout(() =>
|
|
184
|
+
setTimeout(() => qn(v));
|
|
185
185
|
}
|
|
186
186
|
})
|
|
187
187
|
}
|
|
@@ -190,8 +190,8 @@ var Ra = S.forwardRef((e, t) => {
|
|
|
190
190
|
);
|
|
191
191
|
}
|
|
192
192
|
);
|
|
193
|
-
|
|
194
|
-
var
|
|
193
|
+
In.displayName = An;
|
|
194
|
+
var Ia = {
|
|
195
195
|
ArrowLeft: "prev",
|
|
196
196
|
ArrowUp: "prev",
|
|
197
197
|
ArrowRight: "next",
|
|
@@ -201,25 +201,25 @@ var Aa = {
|
|
|
201
201
|
PageDown: "last",
|
|
202
202
|
End: "last"
|
|
203
203
|
};
|
|
204
|
-
function
|
|
204
|
+
function qa(e, t) {
|
|
205
205
|
return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
206
206
|
}
|
|
207
|
-
function
|
|
208
|
-
const n =
|
|
207
|
+
function _a(e, t, r) {
|
|
208
|
+
const n = qa(e.key, r);
|
|
209
209
|
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(n)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(n)))
|
|
210
|
-
return
|
|
210
|
+
return Ia[n];
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function qn(e, t = !1) {
|
|
213
213
|
const r = document.activeElement;
|
|
214
214
|
for (const n of e)
|
|
215
215
|
if (n === r || (n.focus({ preventScroll: t }), document.activeElement !== r)) return;
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function Fa(e, t) {
|
|
218
218
|
return e.map((r, n) => e[(t + n) % e.length]);
|
|
219
219
|
}
|
|
220
|
-
var
|
|
221
|
-
|
|
222
|
-
]),
|
|
220
|
+
var La = Rn, Ua = In, dr = "Tabs", [Ma, zu] = sr(dr, [
|
|
221
|
+
kn
|
|
222
|
+
]), _n = kn(), [Ha, pr] = Ma(dr), Fn = S.forwardRef(
|
|
223
223
|
(e, t) => {
|
|
224
224
|
const {
|
|
225
225
|
__scopeTabs: r,
|
|
@@ -230,13 +230,13 @@ var Fa = kn, La = An, dr = "Tabs", [Ua, Du] = ar(dr, [
|
|
|
230
230
|
dir: i,
|
|
231
231
|
activationMode: c = "automatic",
|
|
232
232
|
...l
|
|
233
|
-
} = e, f =
|
|
233
|
+
} = e, f = Tn(i), [p, d] = ir({
|
|
234
234
|
prop: n,
|
|
235
235
|
onChange: s,
|
|
236
236
|
defaultProp: a
|
|
237
237
|
});
|
|
238
238
|
return /* @__PURE__ */ u.jsx(
|
|
239
|
-
|
|
239
|
+
Ha,
|
|
240
240
|
{
|
|
241
241
|
scope: r,
|
|
242
242
|
baseId: Be(),
|
|
@@ -258,12 +258,12 @@ var Fa = kn, La = An, dr = "Tabs", [Ua, Du] = ar(dr, [
|
|
|
258
258
|
);
|
|
259
259
|
}
|
|
260
260
|
);
|
|
261
|
-
|
|
262
|
-
var
|
|
261
|
+
Fn.displayName = dr;
|
|
262
|
+
var Ln = "TabsList", Un = S.forwardRef(
|
|
263
263
|
(e, t) => {
|
|
264
|
-
const { __scopeTabs: r, loop: n = !0, ...s } = e, a = pr(
|
|
264
|
+
const { __scopeTabs: r, loop: n = !0, ...s } = e, a = pr(Ln, r), o = _n(r);
|
|
265
265
|
return /* @__PURE__ */ u.jsx(
|
|
266
|
-
|
|
266
|
+
La,
|
|
267
267
|
{
|
|
268
268
|
asChild: !0,
|
|
269
269
|
...o,
|
|
@@ -283,12 +283,12 @@ var Fn = "TabsList", Ln = S.forwardRef(
|
|
|
283
283
|
);
|
|
284
284
|
}
|
|
285
285
|
);
|
|
286
|
-
|
|
287
|
-
var
|
|
286
|
+
Un.displayName = Ln;
|
|
287
|
+
var Mn = "TabsTrigger", Hn = S.forwardRef(
|
|
288
288
|
(e, t) => {
|
|
289
|
-
const { __scopeTabs: r, value: n, disabled: s = !1, ...a } = e, o = pr(
|
|
289
|
+
const { __scopeTabs: r, value: n, disabled: s = !1, ...a } = e, o = pr(Mn, r), i = _n(r), c = Wn(o.baseId, n), l = zn(o.baseId, n), f = n === o.value;
|
|
290
290
|
return /* @__PURE__ */ u.jsx(
|
|
291
|
-
|
|
291
|
+
Ua,
|
|
292
292
|
{
|
|
293
293
|
asChild: !0,
|
|
294
294
|
...i,
|
|
@@ -323,14 +323,14 @@ var Un = "TabsTrigger", Mn = S.forwardRef(
|
|
|
323
323
|
);
|
|
324
324
|
}
|
|
325
325
|
);
|
|
326
|
-
|
|
327
|
-
var
|
|
326
|
+
Hn.displayName = Mn;
|
|
327
|
+
var Bn = "TabsContent", Dn = S.forwardRef(
|
|
328
328
|
(e, t) => {
|
|
329
|
-
const { __scopeTabs: r, value: n, forceMount: s, children: a, ...o } = e, i = pr(
|
|
329
|
+
const { __scopeTabs: r, value: n, forceMount: s, children: a, ...o } = e, i = pr(Bn, r), c = Wn(i.baseId, n), l = zn(i.baseId, n), f = n === i.value, p = S.useRef(f);
|
|
330
330
|
return S.useEffect(() => {
|
|
331
331
|
const d = requestAnimationFrame(() => p.current = !1);
|
|
332
332
|
return () => cancelAnimationFrame(d);
|
|
333
|
-
}, []), /* @__PURE__ */ u.jsx(
|
|
333
|
+
}, []), /* @__PURE__ */ u.jsx(St, { present: s || f, children: ({ present: d }) => /* @__PURE__ */ u.jsx(
|
|
334
334
|
ie.div,
|
|
335
335
|
{
|
|
336
336
|
"data-state": f ? "active" : "inactive",
|
|
@@ -351,16 +351,16 @@ var Hn = "TabsContent", Bn = S.forwardRef(
|
|
|
351
351
|
) });
|
|
352
352
|
}
|
|
353
353
|
);
|
|
354
|
-
|
|
355
|
-
function
|
|
354
|
+
Dn.displayName = Bn;
|
|
355
|
+
function Wn(e, t) {
|
|
356
356
|
return `${e}-trigger-${t}`;
|
|
357
357
|
}
|
|
358
|
-
function
|
|
358
|
+
function zn(e, t) {
|
|
359
359
|
return `${e}-content-${t}`;
|
|
360
360
|
}
|
|
361
|
-
var
|
|
362
|
-
const
|
|
363
|
-
|
|
361
|
+
var Ba = Fn, Gn = Un, Vn = Hn, Jn = Dn;
|
|
362
|
+
const Gt = Ba, ft = S.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u.jsx(
|
|
363
|
+
Gn,
|
|
364
364
|
{
|
|
365
365
|
ref: r,
|
|
366
366
|
className: A(
|
|
@@ -370,9 +370,9 @@ const zt = Ha, ft = S.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */
|
|
|
370
370
|
...t
|
|
371
371
|
}
|
|
372
372
|
));
|
|
373
|
-
ft.displayName =
|
|
373
|
+
ft.displayName = Gn.displayName;
|
|
374
374
|
const $e = S.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u.jsx(
|
|
375
|
-
|
|
375
|
+
Vn,
|
|
376
376
|
{
|
|
377
377
|
ref: r,
|
|
378
378
|
className: A(
|
|
@@ -382,9 +382,9 @@ const $e = S.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u.jsx(
|
|
|
382
382
|
...t
|
|
383
383
|
}
|
|
384
384
|
));
|
|
385
|
-
$e.displayName =
|
|
385
|
+
$e.displayName = Vn.displayName;
|
|
386
386
|
const je = S.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u.jsx(
|
|
387
|
-
|
|
387
|
+
Jn,
|
|
388
388
|
{
|
|
389
389
|
ref: r,
|
|
390
390
|
className: A(
|
|
@@ -394,21 +394,21 @@ const je = S.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u.jsx(
|
|
|
394
394
|
...t
|
|
395
395
|
}
|
|
396
396
|
));
|
|
397
|
-
je.displayName =
|
|
398
|
-
const
|
|
397
|
+
je.displayName = Jn.displayName;
|
|
398
|
+
const Kn = (e, t) => e.reduce(
|
|
399
399
|
(r, n) => {
|
|
400
400
|
const s = t(n);
|
|
401
401
|
return r[s] || (r[s] = []), r[s].push(n), r;
|
|
402
402
|
},
|
|
403
403
|
{}
|
|
404
|
-
), _r = (e, t) => e ? t(e) : void 0,
|
|
404
|
+
), _r = (e, t) => e ? t(e) : void 0, Et = (e) => Math.abs(
|
|
405
405
|
isNaN(parseInt(e)) ? e.toLowerCase().charCodeAt(0) - 96 : isNaN(parseInt(e)) ? 0 : parseInt(e)
|
|
406
|
-
),
|
|
407
|
-
const r = (3 *
|
|
406
|
+
), kt = (e) => e.length > 1 ? parseInt(e.split("").reduce((t, r) => `${Et(t) + Et(r)}`)) : Et(e), Da = (e, t = {}) => {
|
|
407
|
+
const r = (3 * kt(e) + 2 * kt(e) + kt(e)) % 360, { saturation: n = 75, lightness: s = 60 } = t;
|
|
408
408
|
return `${r}deg ${n}% ${s}%`;
|
|
409
|
-
}, at = "data-linked-param",
|
|
410
|
-
const [t] =
|
|
411
|
-
return
|
|
409
|
+
}, at = "data-linked-param", Qn = (e) => {
|
|
410
|
+
const [t] = Wo();
|
|
411
|
+
return Da(
|
|
412
412
|
e,
|
|
413
413
|
t ? void 0 : { saturation: 100, lightness: 70 }
|
|
414
414
|
);
|
|
@@ -420,8 +420,8 @@ const Jn = (e, t) => e.reduce(
|
|
|
420
420
|
children: s,
|
|
421
421
|
onClick: a
|
|
422
422
|
}) => {
|
|
423
|
-
const o =
|
|
424
|
-
return
|
|
423
|
+
const o = Zo(null), i = e.replace("{", "").replace("}", ""), c = Qn(i), l = `hsl(${c})`, f = `hsl(${c} / ${r})`;
|
|
424
|
+
return Sn(() => {
|
|
425
425
|
if (!n || !o.current) return;
|
|
426
426
|
const p = () => {
|
|
427
427
|
document.querySelectorAll(`[${at}="${n}"]`).forEach((h) => {
|
|
@@ -457,7 +457,7 @@ const Jn = (e, t) => e.reduce(
|
|
|
457
457
|
);
|
|
458
458
|
}, Fr = (e) => e.schema != null && typeof e.schema == "object" ? e.schema : {
|
|
459
459
|
type: "string"
|
|
460
|
-
},
|
|
460
|
+
}, Wa = ({
|
|
461
461
|
parameter: e,
|
|
462
462
|
group: t,
|
|
463
463
|
id: r
|
|
@@ -481,14 +481,14 @@ const Jn = (e, t) => e.reduce(
|
|
|
481
481
|
className: "text-sm prose-p:my-1"
|
|
482
482
|
}
|
|
483
483
|
)
|
|
484
|
-
] }),
|
|
484
|
+
] }), za = ({
|
|
485
485
|
group: e,
|
|
486
486
|
parameters: t,
|
|
487
487
|
id: r
|
|
488
488
|
}) => /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
489
489
|
/* @__PURE__ */ u.jsx(He, { level: 3, id: `${r}/${e}-parameters`, className: "capitalize", children: e === "header" ? "Headers" : `${e} Parameters` }),
|
|
490
490
|
/* @__PURE__ */ u.jsx("ul", { className: "list-none m-0 px-0 overflow-hidden border border-border divide-y divide-border rounded", children: t.map((n) => /* @__PURE__ */ u.jsx(
|
|
491
|
-
|
|
491
|
+
Wa,
|
|
492
492
|
{
|
|
493
493
|
parameter: n,
|
|
494
494
|
id: r,
|
|
@@ -496,7 +496,7 @@ const Jn = (e, t) => e.reduce(
|
|
|
496
496
|
},
|
|
497
497
|
`${n.name}-${n.in}`
|
|
498
498
|
)) })
|
|
499
|
-
] }),
|
|
499
|
+
] }), Ga = (e) => Object.entries(e), Va = ({
|
|
500
500
|
propertyName: e,
|
|
501
501
|
property: t,
|
|
502
502
|
nestingLevel: r,
|
|
@@ -543,12 +543,12 @@ const Jn = (e, t) => e.reduce(
|
|
|
543
543
|
)).slice(0, 4),
|
|
544
544
|
t.enum.length > 4 && /* @__PURE__ */ u.jsx("span", { className: "font-mono text-xs border-border border bg-muted rounded px-1", children: "..." })
|
|
545
545
|
] }),
|
|
546
|
-
t.type === "object" && (((s = t.properties) == null ? void 0 : s.length) ?? Object.entries(t.additionalProperties ?? {}).length > 0) || t.type === "array" && t.items.type === "object" ? /* @__PURE__ */ u.jsxs(
|
|
547
|
-
/* @__PURE__ */ u.jsx(
|
|
546
|
+
t.type === "object" && (((s = t.properties) == null ? void 0 : s.length) ?? Object.entries(t.additionalProperties ?? {}).length > 0) || t.type === "array" && t.items.type === "object" ? /* @__PURE__ */ u.jsxs(On, { className: "CollapsibleRoot", defaultOpen: !1, children: [
|
|
547
|
+
/* @__PURE__ */ u.jsx(Cn, { asChild: !0, children: /* @__PURE__ */ u.jsxs(lr, { variant: "ghost", size: "sm", children: [
|
|
548
548
|
"Show nested fields",
|
|
549
|
-
/* @__PURE__ */ u.jsx(
|
|
549
|
+
/* @__PURE__ */ u.jsx(Oa, { size: 18, className: "ml-1.5" })
|
|
550
550
|
] }) }),
|
|
551
|
-
/* @__PURE__ */ u.jsxs(
|
|
551
|
+
/* @__PURE__ */ u.jsxs(Pn, { children: [
|
|
552
552
|
t.type === "object" && /* @__PURE__ */ u.jsx("div", { className: "mt-2.5", children: /* @__PURE__ */ u.jsx(
|
|
553
553
|
pt,
|
|
554
554
|
{
|
|
@@ -571,24 +571,24 @@ const Jn = (e, t) => e.reduce(
|
|
|
571
571
|
},
|
|
572
572
|
e
|
|
573
573
|
);
|
|
574
|
-
},
|
|
574
|
+
}, Ja = ({
|
|
575
575
|
group: e,
|
|
576
576
|
properties: t,
|
|
577
577
|
nestingLevel: r,
|
|
578
578
|
required: n,
|
|
579
579
|
defaultOpen: s = !1
|
|
580
580
|
}) => {
|
|
581
|
-
const a = s || e === "required" || t.length === 1 || r === 0, [o, i] =
|
|
581
|
+
const a = s || e === "required" || t.length === 1 || r === 0, [o, i] = wt(a);
|
|
582
582
|
if (t.length !== 0)
|
|
583
583
|
return /* @__PURE__ */ u.jsxs(
|
|
584
|
-
|
|
584
|
+
On,
|
|
585
585
|
{
|
|
586
586
|
className: "CollapsibleRoot",
|
|
587
587
|
open: o,
|
|
588
588
|
onOpenChange: i,
|
|
589
589
|
children: [
|
|
590
590
|
!o && /* @__PURE__ */ u.jsxs(
|
|
591
|
-
|
|
591
|
+
Cn,
|
|
592
592
|
{
|
|
593
593
|
className: A(
|
|
594
594
|
"py-2 hover:bg-muted w-full",
|
|
@@ -603,8 +603,8 @@ const Jn = (e, t) => e.reduce(
|
|
|
603
603
|
]
|
|
604
604
|
}
|
|
605
605
|
),
|
|
606
|
-
/* @__PURE__ */ u.jsx(
|
|
607
|
-
|
|
606
|
+
/* @__PURE__ */ u.jsx(Pn, { className: "divide-y divide-border", children: t.map(([c, l]) => /* @__PURE__ */ u.jsx(
|
|
607
|
+
Va,
|
|
608
608
|
{
|
|
609
609
|
property: l,
|
|
610
610
|
propertyName: c,
|
|
@@ -617,7 +617,7 @@ const Jn = (e, t) => e.reduce(
|
|
|
617
617
|
}
|
|
618
618
|
);
|
|
619
619
|
}, dt = A(
|
|
620
|
-
|
|
620
|
+
zo,
|
|
621
621
|
"max-w-full prose-img:max-w-prose"
|
|
622
622
|
), pt = ({
|
|
623
623
|
name: e,
|
|
@@ -627,15 +627,15 @@ const Jn = (e, t) => e.reduce(
|
|
|
627
627
|
}) => {
|
|
628
628
|
const s = Object.entries(t.properties ?? {}), a = typeof t.additionalProperties == "object" ? Object.entries(t.additionalProperties) : [], o = s.concat(
|
|
629
629
|
Array.isArray(a) ? a : []
|
|
630
|
-
), i =
|
|
630
|
+
), i = Kn(o, ([c, l]) => {
|
|
631
631
|
var f;
|
|
632
632
|
return l.deprecated ? "deprecated" : (f = t.required) != null && f.includes(c) ? "required" : "optional";
|
|
633
633
|
});
|
|
634
634
|
return /* @__PURE__ */ u.jsxs("div", { className: "flex flex-col gap-2.5", children: [
|
|
635
635
|
(t.title ?? e) && /* @__PURE__ */ u.jsx("div", { className: "ml-2 my-1 font-bold", children: t.title ?? e }),
|
|
636
636
|
r === 0 && t.description && /* @__PURE__ */ u.jsx(Ae, { className: dt, content: t.description }),
|
|
637
|
-
/* @__PURE__ */ u.jsx("ul", { className: "border-border border rounded overflow-hidden", children:
|
|
638
|
-
|
|
637
|
+
/* @__PURE__ */ u.jsx("ul", { className: "border-border border rounded overflow-hidden", children: Ga(i).map(([c, l]) => /* @__PURE__ */ u.jsx(
|
|
638
|
+
Ja,
|
|
639
639
|
{
|
|
640
640
|
defaultOpen: n,
|
|
641
641
|
group: c,
|
|
@@ -672,16 +672,16 @@ var Lr = (e, t) => {
|
|
|
672
672
|
this.postProcessors = [...this.postProcessors, r];
|
|
673
673
|
}, this.indentationCharacter = e || Ur, this.lineJoin = t ?? Mr;
|
|
674
674
|
}
|
|
675
|
-
}, Ja = function(e) {
|
|
676
|
-
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
677
675
|
}, Ka = function(e) {
|
|
676
|
+
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
677
|
+
}, Qa = function(e) {
|
|
678
678
|
var t = typeof e;
|
|
679
679
|
return e !== null && (t === "object" || t === "function");
|
|
680
680
|
}, mr = {};
|
|
681
681
|
Object.defineProperty(mr, "__esModule", { value: !0 });
|
|
682
682
|
mr.default = (e) => Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
|
|
683
|
-
const
|
|
684
|
-
var
|
|
683
|
+
const Ya = Ka, Xa = Qa, Za = mr.default;
|
|
684
|
+
var es = (e, t, r) => {
|
|
685
685
|
const n = [];
|
|
686
686
|
return function s(a, o, i) {
|
|
687
687
|
o = o || {}, o.indent = o.indent || " ", i = i || "";
|
|
@@ -708,7 +708,7 @@ var Za = (e, t, r) => {
|
|
|
708
708
|
};
|
|
709
709
|
if (n.indexOf(a) !== -1)
|
|
710
710
|
return '"[Circular]"';
|
|
711
|
-
if (a == null || typeof a == "number" || typeof a == "boolean" || typeof a == "function" || typeof a == "symbol" ||
|
|
711
|
+
if (a == null || typeof a == "number" || typeof a == "boolean" || typeof a == "function" || typeof a == "symbol" || Ya(a))
|
|
712
712
|
return String(a);
|
|
713
713
|
if (a instanceof Date)
|
|
714
714
|
return `new Date('${a.toISOString()}')`;
|
|
@@ -723,15 +723,15 @@ var Za = (e, t, r) => {
|
|
|
723
723
|
}).join("") + c.pad + "]";
|
|
724
724
|
return n.pop(), l(f);
|
|
725
725
|
}
|
|
726
|
-
if (
|
|
727
|
-
let f = Object.keys(a).concat(
|
|
726
|
+
if (Xa(a)) {
|
|
727
|
+
let f = Object.keys(a).concat(Za(a));
|
|
728
728
|
if (o.filter && (f = f.filter((d) => o.filter(a, d))), f.length === 0)
|
|
729
729
|
return "{}";
|
|
730
730
|
n.push(a);
|
|
731
731
|
const p = "{" + c.newLine + f.map((d, h) => {
|
|
732
|
-
const m = f.length - 1 === h ? c.newLine : "," + c.newLineOrSpace, g = typeof d == "symbol",
|
|
732
|
+
const m = f.length - 1 === h ? c.newLine : "," + c.newLineOrSpace, g = typeof d == "symbol", b = !g && /^[a-z$_][a-z$_0-9]*$/i.test(d), v = g || b ? d : s(d, o);
|
|
733
733
|
let y = s(a[d], o, i + o.indent);
|
|
734
|
-
return o.transform && (y = o.transform(a, d, y)), c.indent + String(
|
|
734
|
+
return o.transform && (y = o.transform(a, d, y)), c.indent + String(v) + ": " + y + m;
|
|
735
735
|
}).join("") + c.pad + "}";
|
|
736
736
|
return n.pop(), l(p);
|
|
737
737
|
}
|
|
@@ -739,13 +739,13 @@ var Za = (e, t, r) => {
|
|
|
739
739
|
` ? "\\n" : "\\r"), o.singleQuotes === !1 ? (a = a.replace(/"/g, '\\"'), `"${a}"`) : (a = a.replace(/\\?'/g, "\\'"), `'${a}'`);
|
|
740
740
|
}(e, t, r);
|
|
741
741
|
};
|
|
742
|
-
const K = /* @__PURE__ */
|
|
742
|
+
const K = /* @__PURE__ */ $a(es);
|
|
743
743
|
function Ge(e, t = {}) {
|
|
744
744
|
const { delimiter: r = '"', escapeChar: n = "\\", escapeNewlines: s = !0 } = t;
|
|
745
745
|
return [...e.toString()].map((o) => o === "\b" ? `${n}b` : o === " " ? `${n}t` : o === `
|
|
746
746
|
` ? s ? `${n}n` : o : o === "\f" ? `${n}f` : o === "\r" ? s ? `${n}r` : o : o === n ? n + n : o === r ? n + r : o < " " || o > "~" ? JSON.stringify(o).slice(1, -1) : o).join("");
|
|
747
747
|
}
|
|
748
|
-
var Ve = (e) => Ge(e, { delimiter: "'" }), G = (e) => Ge(e, { delimiter: '"' }),
|
|
748
|
+
var Ve = (e) => Ge(e, { delimiter: "'" }), G = (e) => Ge(e, { delimiter: '"' }), ts = {
|
|
749
749
|
info: {
|
|
750
750
|
key: "libcurl",
|
|
751
751
|
title: "Libcurl",
|
|
@@ -761,7 +761,7 @@ var Ve = (e) => Ge(e, { delimiter: "'" }), G = (e) => Ge(e, { delimiter: '"' }),
|
|
|
761
761
|
a(`headers = curl_slist_append(headers, "${l}: ${G(r[l])}");`);
|
|
762
762
|
}), a("curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);")), n.cookie && (o(), a(`curl_easy_setopt(hnd, CURLOPT_COOKIE, "${n.cookie}");`)), s.text && (o(), a(`curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, ${JSON.stringify(s.text)});`)), o(), a("CURLcode ret = curl_easy_perform(hnd);"), i();
|
|
763
763
|
}
|
|
764
|
-
},
|
|
764
|
+
}, rs = {
|
|
765
765
|
info: {
|
|
766
766
|
key: "c",
|
|
767
767
|
title: "C",
|
|
@@ -769,30 +769,30 @@ var Ve = (e) => Ge(e, { delimiter: "'" }), G = (e) => Ge(e, { delimiter: '"' }),
|
|
|
769
769
|
cli: "c"
|
|
770
770
|
},
|
|
771
771
|
clientsById: {
|
|
772
|
-
libcurl:
|
|
772
|
+
libcurl: ts
|
|
773
773
|
}
|
|
774
774
|
}, X = (e, t) => Object.keys(e).find((r) => r.toLowerCase() === t.toLowerCase()), pe = (e, t) => {
|
|
775
775
|
const r = X(e, t);
|
|
776
776
|
if (r)
|
|
777
777
|
return e[r];
|
|
778
|
-
},
|
|
778
|
+
}, Ot = (e, t) => !!X(e, t), ns = (e) => ["application/json", "application/x-json", "text/json", "text/x-json", "+json"].some(
|
|
779
779
|
(t) => e.indexOf(t) > -1
|
|
780
780
|
), Hr = class {
|
|
781
781
|
constructor(e) {
|
|
782
782
|
this.name = "", this.toString = () => `:${this.name}`, this.name = e;
|
|
783
783
|
}
|
|
784
|
-
},
|
|
784
|
+
}, os = class {
|
|
785
785
|
constructor(e) {
|
|
786
786
|
this.path = "", this.toString = () => `(clojure.java.io/file "${this.path}")`, this.path = e;
|
|
787
787
|
}
|
|
788
|
-
},
|
|
788
|
+
}, Yn = (e) => e === void 0 ? null : e === null ? "null" : e.constructor.name.toLowerCase(), Xn = (e) => e === void 0 ? !0 : Yn(e) === "object" ? Object.keys(e).length === 0 : !1, Br = (e) => (Object.keys(e).filter((t) => Xn(e[t])).forEach((t) => {
|
|
789
789
|
delete e[t];
|
|
790
790
|
}), e), st = (e, t) => {
|
|
791
791
|
const r = " ".repeat(e);
|
|
792
792
|
return t.replace(/\n/g, `
|
|
793
793
|
${r}`);
|
|
794
|
-
},
|
|
795
|
-
switch (
|
|
794
|
+
}, Vt = (e) => {
|
|
795
|
+
switch (Yn(e)) {
|
|
796
796
|
case "string":
|
|
797
797
|
return `"${e.replace(/"/g, '\\"')}"`;
|
|
798
798
|
case "file":
|
|
@@ -805,20 +805,20 @@ ${r}`);
|
|
|
805
805
|
return `#"${e.source}"`;
|
|
806
806
|
case "object": {
|
|
807
807
|
const t = Object.keys(e).reduce((r, n) => {
|
|
808
|
-
const s = st(n.length + 2,
|
|
808
|
+
const s = st(n.length + 2, Vt(e[n]));
|
|
809
809
|
return `${r}:${n} ${s}
|
|
810
810
|
`;
|
|
811
811
|
}, "").trim();
|
|
812
812
|
return `{${st(1, t)}}`;
|
|
813
813
|
}
|
|
814
814
|
case "array": {
|
|
815
|
-
const t = e.reduce((r, n) => `${r} ${
|
|
815
|
+
const t = e.reduce((r, n) => `${r} ${Vt(n)}`, "").trim();
|
|
816
816
|
return `[${st(1, t)}]`;
|
|
817
817
|
}
|
|
818
818
|
default:
|
|
819
819
|
return e.toString();
|
|
820
820
|
}
|
|
821
|
-
},
|
|
821
|
+
}, as = {
|
|
822
822
|
info: {
|
|
823
823
|
key: "clj_http",
|
|
824
824
|
title: "clj-http",
|
|
@@ -860,7 +860,7 @@ ${r}`);
|
|
|
860
860
|
if (r.params) {
|
|
861
861
|
l.multipart = r.params.map((p) => p.fileName && !p.value ? {
|
|
862
862
|
name: p.name,
|
|
863
|
-
content: new
|
|
863
|
+
content: new os(p.fileName)
|
|
864
864
|
} : {
|
|
865
865
|
name: p.name,
|
|
866
866
|
content: p.value
|
|
@@ -881,24 +881,24 @@ ${r}`);
|
|
|
881
881
|
break;
|
|
882
882
|
}
|
|
883
883
|
if (o(`(require '[clj-http.client :as client])
|
|
884
|
-
`),
|
|
884
|
+
`), Xn(Br(l)))
|
|
885
885
|
o(`(client/${t} "${n}")`);
|
|
886
886
|
else {
|
|
887
|
-
const f = 11 + t.length + n.length, p = st(f,
|
|
887
|
+
const f = 11 + t.length + n.length, p = st(f, Vt(Br(l)));
|
|
888
888
|
o(`(client/${t} "${n}" ${p})`);
|
|
889
889
|
}
|
|
890
890
|
return i();
|
|
891
891
|
}
|
|
892
|
-
},
|
|
892
|
+
}, ss = {
|
|
893
893
|
info: {
|
|
894
894
|
key: "clojure",
|
|
895
895
|
title: "Clojure",
|
|
896
896
|
default: "clj_http"
|
|
897
897
|
},
|
|
898
898
|
clientsById: {
|
|
899
|
-
clj_http:
|
|
899
|
+
clj_http: as
|
|
900
900
|
}
|
|
901
|
-
},
|
|
901
|
+
}, is = (e) => {
|
|
902
902
|
let t = pe(e, "accept-encoding");
|
|
903
903
|
if (!t)
|
|
904
904
|
return [];
|
|
@@ -915,7 +915,7 @@ ${r}`);
|
|
|
915
915
|
}
|
|
916
916
|
});
|
|
917
917
|
}), n;
|
|
918
|
-
},
|
|
918
|
+
}, cs = {
|
|
919
919
|
info: {
|
|
920
920
|
key: "httpclient",
|
|
921
921
|
title: "HttpClient",
|
|
@@ -931,7 +931,7 @@ ${r}`);
|
|
|
931
931
|
}, { push: o, join: i } = new E({ indent: a.indent });
|
|
932
932
|
o("using System.Net.Http.Headers;");
|
|
933
933
|
let c = "";
|
|
934
|
-
const l = !!e.cookie, f =
|
|
934
|
+
const l = !!e.cookie, f = is(e);
|
|
935
935
|
(l || f.length) && (c = "clientHandler", o("var clientHandler = new HttpClientHandler"), o("{"), l && o("UseCookies = false,", 1), f.length && o(`AutomaticDecompression = ${f.join(" | ")},`, 1), o("};")), o(`var client = new HttpClient(${c});`), o("var request = new HttpRequestMessage"), o("{");
|
|
936
936
|
const p = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "TRACE"];
|
|
937
937
|
r = r.toUpperCase(), r && p.includes(r) ? r = `HttpMethod.${r[0]}${r.substring(1).toLowerCase()}` : r = `new HttpMethod("${r}")`, o(`Method = ${r},`, 1), o(`RequestUri = new Uri("${n}"),`, 1);
|
|
@@ -951,13 +951,13 @@ ${r}`);
|
|
|
951
951
|
const g = t.mimeType;
|
|
952
952
|
switch (g) {
|
|
953
953
|
case "application/x-www-form-urlencoded":
|
|
954
|
-
o("Content = new FormUrlEncodedContent(new Dictionary<string, string>", 1), o("{", 1), (h = t.params) == null || h.forEach((
|
|
955
|
-
o(`{ "${
|
|
954
|
+
o("Content = new FormUrlEncodedContent(new Dictionary<string, string>", 1), o("{", 1), (h = t.params) == null || h.forEach((b) => {
|
|
955
|
+
o(`{ "${b.name}", "${b.value}" },`, 2);
|
|
956
956
|
}), o("}),", 1);
|
|
957
957
|
break;
|
|
958
958
|
case "multipart/form-data":
|
|
959
|
-
o("Content = new MultipartFormDataContent", 1), o("{", 1), (m = t.params) == null || m.forEach((
|
|
960
|
-
o(`new StringContent(${JSON.stringify(
|
|
959
|
+
o("Content = new MultipartFormDataContent", 1), o("{", 1), (m = t.params) == null || m.forEach((b) => {
|
|
960
|
+
o(`new StringContent(${JSON.stringify(b.value || "")})`, 2), o("{", 2), o("Headers =", 3), o("{", 3), b.contentType && o(`ContentType = new MediaTypeHeaderValue("${b.contentType}"),`, 4), o('ContentDisposition = new ContentDispositionHeaderValue("form-data")', 4), o("{", 4), o(`Name = "${b.name}",`, 5), b.fileName && o(`FileName = "${b.fileName}",`, 5), o("}", 4), o("}", 3), o("},", 2);
|
|
961
961
|
}), o("},", 1);
|
|
962
962
|
break;
|
|
963
963
|
default:
|
|
@@ -968,10 +968,10 @@ ${r}`);
|
|
|
968
968
|
return o("};"), o("using (var response = await client.SendAsync(request))"), o("{"), o("response.EnsureSuccessStatusCode();", 1), o("var body = await response.Content.ReadAsStringAsync();", 1), o("Console.WriteLine(body);", 1), o("}"), i();
|
|
969
969
|
}
|
|
970
970
|
};
|
|
971
|
-
function
|
|
971
|
+
function ls(e) {
|
|
972
972
|
return e[0].toUpperCase() + e.slice(1).toLowerCase();
|
|
973
973
|
}
|
|
974
|
-
var
|
|
974
|
+
var us = {
|
|
975
975
|
info: {
|
|
976
976
|
key: "restsharp",
|
|
977
977
|
title: "RestSharp",
|
|
@@ -1021,11 +1021,11 @@ var ls = {
|
|
|
1021
1021
|
if (!s.text) break;
|
|
1022
1022
|
o(`request.AddStringBody("${s.text}", "${s.mimeType}");`);
|
|
1023
1023
|
}
|
|
1024
|
-
return o(`var response = await client.${
|
|
1024
|
+
return o(`var response = await client.${ls(e)}Async(request);
|
|
1025
1025
|
`), o(`Console.WriteLine("{0}", response.Content);
|
|
1026
1026
|
`), i();
|
|
1027
1027
|
}
|
|
1028
|
-
},
|
|
1028
|
+
}, fs = {
|
|
1029
1029
|
info: {
|
|
1030
1030
|
key: "csharp",
|
|
1031
1031
|
title: "C#",
|
|
@@ -1033,10 +1033,10 @@ var ls = {
|
|
|
1033
1033
|
cli: "dotnet"
|
|
1034
1034
|
},
|
|
1035
1035
|
clientsById: {
|
|
1036
|
-
httpclient:
|
|
1037
|
-
restsharp:
|
|
1036
|
+
httpclient: cs,
|
|
1037
|
+
restsharp: us
|
|
1038
1038
|
}
|
|
1039
|
-
},
|
|
1039
|
+
}, ds = {
|
|
1040
1040
|
info: {
|
|
1041
1041
|
key: "native",
|
|
1042
1042
|
title: "NewRequest",
|
|
@@ -1049,12 +1049,12 @@ var ls = {
|
|
|
1049
1049
|
l && (o("if err != nil {", h), o("panic(err)", h + 1), o("}", h));
|
|
1050
1050
|
};
|
|
1051
1051
|
c && (o("package main"), a(), o("import ("), o('"fmt"', h), p > 0 && o('"time"', h), e.text && o('"strings"', h), o('"net/http"', h), f && o('"io"', h), o(")"), a(), o("func main() {"), a());
|
|
1052
|
-
const g = p > 0,
|
|
1053
|
-
return
|
|
1052
|
+
const g = p > 0, b = g, v = b ? "client" : "http.DefaultClient";
|
|
1053
|
+
return b && (o("client := http.Client{", h), g && o(`Timeout: time.Duration(${p} * time.Second),`, h + 1), o("}", h), a()), o(`url := "${n}"`, h), a(), e.text ? (o(`payload := strings.NewReader(${JSON.stringify(e.text)})`, h), a(), o(`req, ${d} := http.NewRequest("${t}", url, payload)`, h), a()) : (o(`req, ${d} := http.NewRequest("${t}", url, nil)`, h), a()), m(), Object.keys(r).length && (Object.keys(r).forEach((y) => {
|
|
1054
1054
|
o(`req.Header.Add("${y}", "${G(r[y])}")`, h);
|
|
1055
|
-
}), a()), o(`res, ${d} := ${
|
|
1055
|
+
}), a()), o(`res, ${d} := ${v}.Do(req)`, h), m(), f && (a(), o("defer res.Body.Close()", h), o(`body, ${d} := io.ReadAll(res.Body)`, h), m()), a(), f && o("fmt.Println(string(body))", h), c && (a(), o("}")), i();
|
|
1056
1056
|
}
|
|
1057
|
-
},
|
|
1057
|
+
}, ps = {
|
|
1058
1058
|
info: {
|
|
1059
1059
|
key: "go",
|
|
1060
1060
|
title: "Go",
|
|
@@ -1062,10 +1062,10 @@ var ls = {
|
|
|
1062
1062
|
cli: "go"
|
|
1063
1063
|
},
|
|
1064
1064
|
clientsById: {
|
|
1065
|
-
native:
|
|
1065
|
+
native: ds
|
|
1066
1066
|
}
|
|
1067
1067
|
}, Dr = `\r
|
|
1068
|
-
`,
|
|
1068
|
+
`, hs = {
|
|
1069
1069
|
info: {
|
|
1070
1070
|
key: "http1.1",
|
|
1071
1071
|
title: "HTTP/1.1",
|
|
@@ -1083,26 +1083,26 @@ var ls = {
|
|
|
1083
1083
|
l(`${e} ${p} ${n}`);
|
|
1084
1084
|
const d = Object.keys(s);
|
|
1085
1085
|
if (d.forEach((g) => {
|
|
1086
|
-
const
|
|
1087
|
-
l(`${
|
|
1086
|
+
const b = g.toLowerCase().replace(/(^|-)(\w)/g, (v) => v.toUpperCase());
|
|
1087
|
+
l(`${b}: ${s[g]}`);
|
|
1088
1088
|
}), i.autoHost && !d.includes("host") && l(`Host: ${r.host}`), i.autoContentLength && a.text && !d.includes("content-length")) {
|
|
1089
|
-
const
|
|
1090
|
-
l(`Content-Length: ${
|
|
1089
|
+
const b = new TextEncoder().encode(a.text).length.toString();
|
|
1090
|
+
l(`Content-Length: ${b}`);
|
|
1091
1091
|
}
|
|
1092
1092
|
c();
|
|
1093
1093
|
const h = f(), m = a.text || "";
|
|
1094
1094
|
return `${h}${Dr}${m}`;
|
|
1095
1095
|
}
|
|
1096
|
-
},
|
|
1096
|
+
}, ms = {
|
|
1097
1097
|
info: {
|
|
1098
1098
|
key: "http",
|
|
1099
1099
|
title: "HTTP",
|
|
1100
1100
|
default: "http1.1"
|
|
1101
1101
|
},
|
|
1102
1102
|
clientsById: {
|
|
1103
|
-
"http1.1":
|
|
1103
|
+
"http1.1": hs
|
|
1104
1104
|
}
|
|
1105
|
-
},
|
|
1105
|
+
}, ys = {
|
|
1106
1106
|
info: {
|
|
1107
1107
|
key: "asynchttp",
|
|
1108
1108
|
title: "AsyncHttp",
|
|
@@ -1119,7 +1119,7 @@ var ls = {
|
|
|
1119
1119
|
i(`.setHeader("${l}", "${G(t[l])}")`, 1);
|
|
1120
1120
|
}), r.text && i(`.setBody(${JSON.stringify(r.text)})`, 1), i(".execute()", 1), i(".toCompletableFuture()", 1), i(".thenAccept(System.out::println)", 1), i(".join();", 1), o(), i("client.close();"), c();
|
|
1121
1121
|
}
|
|
1122
|
-
},
|
|
1122
|
+
}, gs = {
|
|
1123
1123
|
info: {
|
|
1124
1124
|
key: "nethttp",
|
|
1125
1125
|
title: "java.net.http",
|
|
@@ -1141,7 +1141,7 @@ var ls = {
|
|
|
1141
1141
|
"HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"
|
|
1142
1142
|
), o("System.out.println(response.body());"), i();
|
|
1143
1143
|
}
|
|
1144
|
-
},
|
|
1144
|
+
}, bs = {
|
|
1145
1145
|
info: {
|
|
1146
1146
|
key: "okhttp",
|
|
1147
1147
|
title: "OkHttp",
|
|
@@ -1175,19 +1175,19 @@ var ls = {
|
|
|
1175
1175
|
i(`.header("${l}", "${G(t[l])}")`, 1);
|
|
1176
1176
|
}), r.text && i(`.body(${JSON.stringify(r.text)})`, 1), i(".asString();", 1), o();
|
|
1177
1177
|
}
|
|
1178
|
-
},
|
|
1178
|
+
}, xs = {
|
|
1179
1179
|
info: {
|
|
1180
1180
|
key: "java",
|
|
1181
1181
|
title: "Java",
|
|
1182
1182
|
default: "unirest"
|
|
1183
1183
|
},
|
|
1184
1184
|
clientsById: {
|
|
1185
|
-
asynchttp:
|
|
1186
|
-
nethttp:
|
|
1187
|
-
okhttp:
|
|
1185
|
+
asynchttp: ys,
|
|
1186
|
+
nethttp: gs,
|
|
1187
|
+
okhttp: bs,
|
|
1188
1188
|
unirest: vs
|
|
1189
1189
|
}
|
|
1190
|
-
},
|
|
1190
|
+
}, $s = {
|
|
1191
1191
|
info: {
|
|
1192
1192
|
key: "axios",
|
|
1193
1193
|
title: "Axios",
|
|
@@ -1231,7 +1231,7 @@ var ls = {
|
|
|
1231
1231
|
}).replace('"[form]"', "form");
|
|
1232
1232
|
return c(`const options = ${d};`), i(), c("axios"), c(".request(options)", 1), c(".then(function (response) {", 1), c("console.log(response.data);", 2), c("})", 1), c(".catch(function (error) {", 1), c("console.error(error);", 2), c("});", 1), l();
|
|
1233
1233
|
}
|
|
1234
|
-
},
|
|
1234
|
+
}, js = {
|
|
1235
1235
|
info: {
|
|
1236
1236
|
key: "fetch",
|
|
1237
1237
|
title: "fetch",
|
|
@@ -1284,7 +1284,7 @@ var ls = {
|
|
|
1284
1284
|
})};`
|
|
1285
1285
|
), o(), r.params && r.mimeType === "multipart/form-data" && (c("options.body = form;"), o()), c(`fetch('${n}', options)`), c(".then(response => response.json())", 1), c(".then(response => console.log(response))", 1), c(".catch(err => console.error(err));", 1), i();
|
|
1286
1286
|
}
|
|
1287
|
-
},
|
|
1287
|
+
}, ws = {
|
|
1288
1288
|
info: {
|
|
1289
1289
|
key: "jquery",
|
|
1290
1290
|
title: "jQuery",
|
|
@@ -1316,7 +1316,7 @@ var ls = {
|
|
|
1316
1316
|
break;
|
|
1317
1317
|
if (i("const form = new FormData();"), n.params.forEach((d) => {
|
|
1318
1318
|
i(`form.append('${d.name}', '${d.value || d.fileName || ""}');`);
|
|
1319
|
-
}), l.processData = !1, l.contentType = !1, l.mimeType = "multipart/form-data", l.data = "[form]",
|
|
1319
|
+
}), l.processData = !1, l.contentType = !1, l.mimeType = "multipart/form-data", l.data = "[form]", Ot(r, "content-type") && (p = pe(r, "content-type")) != null && p.includes("boundary")) {
|
|
1320
1320
|
const d = X(r, "content-type");
|
|
1321
1321
|
d && delete l.headers[d];
|
|
1322
1322
|
}
|
|
@@ -1328,7 +1328,7 @@ var ls = {
|
|
|
1328
1328
|
const f = K(l, { indent: a.indent }).replace("'[form]'", "form");
|
|
1329
1329
|
return i(`const settings = ${f};`), o(), i("$.ajax(settings).done(function (response) {"), i("console.log(response);", 1), i("});"), c();
|
|
1330
1330
|
}
|
|
1331
|
-
},
|
|
1331
|
+
}, Ss = {
|
|
1332
1332
|
info: {
|
|
1333
1333
|
key: "xhr",
|
|
1334
1334
|
title: "XMLHttpRequest",
|
|
@@ -1356,7 +1356,7 @@ var ls = {
|
|
|
1356
1356
|
break;
|
|
1357
1357
|
if (i("const data = new FormData();"), e.params.forEach((f) => {
|
|
1358
1358
|
i(`data.append('${f.name}', '${f.value || f.fileName || ""}');`);
|
|
1359
|
-
}),
|
|
1359
|
+
}), Ot(t, "content-type") && (l = pe(t, "content-type")) != null && l.includes("boundary")) {
|
|
1360
1360
|
const f = X(t, "content-type");
|
|
1361
1361
|
f && delete t[f];
|
|
1362
1362
|
}
|
|
@@ -1369,19 +1369,19 @@ var ls = {
|
|
|
1369
1369
|
i(`xhr.setRequestHeader('${f}', '${Ve(t[f])}');`);
|
|
1370
1370
|
}), o(), i("xhr.send(data);"), c();
|
|
1371
1371
|
}
|
|
1372
|
-
},
|
|
1372
|
+
}, Ts = {
|
|
1373
1373
|
info: {
|
|
1374
1374
|
key: "javascript",
|
|
1375
1375
|
title: "JavaScript",
|
|
1376
1376
|
default: "xhr"
|
|
1377
1377
|
},
|
|
1378
1378
|
clientsById: {
|
|
1379
|
-
xhr:
|
|
1380
|
-
axios:
|
|
1381
|
-
fetch:
|
|
1382
|
-
jquery:
|
|
1379
|
+
xhr: Ss,
|
|
1380
|
+
axios: $s,
|
|
1381
|
+
fetch: js,
|
|
1382
|
+
jquery: ws
|
|
1383
1383
|
}
|
|
1384
|
-
},
|
|
1384
|
+
}, Os = {
|
|
1385
1385
|
info: {
|
|
1386
1386
|
key: "native",
|
|
1387
1387
|
title: "Native JSON",
|
|
@@ -1415,16 +1415,16 @@ var ls = {
|
|
|
1415
1415
|
}
|
|
1416
1416
|
return typeof n > "u" || n === "" ? "No JSON body" : JSON.stringify(n, null, r.indent);
|
|
1417
1417
|
}
|
|
1418
|
-
},
|
|
1418
|
+
}, Cs = {
|
|
1419
1419
|
info: {
|
|
1420
1420
|
key: "json",
|
|
1421
1421
|
title: "JSON",
|
|
1422
1422
|
default: "native"
|
|
1423
1423
|
},
|
|
1424
1424
|
clientsById: {
|
|
1425
|
-
native:
|
|
1425
|
+
native: Os
|
|
1426
1426
|
}
|
|
1427
|
-
},
|
|
1427
|
+
}, Ps = {
|
|
1428
1428
|
info: {
|
|
1429
1429
|
key: "okhttp",
|
|
1430
1430
|
title: "OkHttp",
|
|
@@ -1441,16 +1441,16 @@ var ls = {
|
|
|
1441
1441
|
c(`.addHeader("${p}", "${G(n[p])}")`, 1);
|
|
1442
1442
|
}), c(".build()", 1), o(), c("val response = client.newCall(request).execute()"), i();
|
|
1443
1443
|
}
|
|
1444
|
-
},
|
|
1444
|
+
}, Ns = {
|
|
1445
1445
|
info: {
|
|
1446
1446
|
key: "kotlin",
|
|
1447
1447
|
title: "Kotlin",
|
|
1448
1448
|
default: "okhttp"
|
|
1449
1449
|
},
|
|
1450
1450
|
clientsById: {
|
|
1451
|
-
okhttp:
|
|
1451
|
+
okhttp: Ps
|
|
1452
1452
|
}
|
|
1453
|
-
},
|
|
1453
|
+
}, Es = {
|
|
1454
1454
|
info: {
|
|
1455
1455
|
key: "axios",
|
|
1456
1456
|
title: "Axios",
|
|
@@ -1484,7 +1484,7 @@ var ls = {
|
|
|
1484
1484
|
const p = K(f, { indent: " ", inlineCharacterLimit: 80 });
|
|
1485
1485
|
return c(`const options = ${p};`), o(), c("axios"), c(".request(options)", 1), c(".then(function (response) {", 1), c("console.log(response.data);", 2), c("})", 1), c(".catch(function (error) {", 1), c("console.error(error);", 2), c("});", 1), i();
|
|
1486
1486
|
}
|
|
1487
|
-
},
|
|
1487
|
+
}, ks = {
|
|
1488
1488
|
info: {
|
|
1489
1489
|
key: "fetch",
|
|
1490
1490
|
title: "Fetch",
|
|
@@ -1507,8 +1507,8 @@ var ls = {
|
|
|
1507
1507
|
};
|
|
1508
1508
|
switch (Object.keys(n).length && (h.headers = n), r.mimeType) {
|
|
1509
1509
|
case "application/x-www-form-urlencoded":
|
|
1510
|
-
p("const { URLSearchParams } = require('url');"), l("const encodedParams = new URLSearchParams();"), c(), (g = r.params) == null || g.forEach((
|
|
1511
|
-
l(`encodedParams.set('${
|
|
1510
|
+
p("const { URLSearchParams } = require('url');"), l("const encodedParams = new URLSearchParams();"), c(), (g = r.params) == null || g.forEach((v) => {
|
|
1511
|
+
l(`encodedParams.set('${v.name}', '${v.value}');`);
|
|
1512
1512
|
}), h.body = "encodedParams";
|
|
1513
1513
|
break;
|
|
1514
1514
|
case "application/json":
|
|
@@ -1517,21 +1517,21 @@ var ls = {
|
|
|
1517
1517
|
case "multipart/form-data":
|
|
1518
1518
|
if (!r.params)
|
|
1519
1519
|
break;
|
|
1520
|
-
const
|
|
1521
|
-
|
|
1522
|
-
if (!
|
|
1523
|
-
l(`formData.append('${
|
|
1520
|
+
const b = X(n, "content-type");
|
|
1521
|
+
b && delete n[b], p("const FormData = require('form-data');"), l("const formData = new FormData();"), c(), r.params.forEach((v) => {
|
|
1522
|
+
if (!v.fileName && !v.fileName && !v.contentType) {
|
|
1523
|
+
l(`formData.append('${v.name}', '${v.value}');`);
|
|
1524
1524
|
return;
|
|
1525
1525
|
}
|
|
1526
|
-
|
|
1526
|
+
v.fileName && (i = !0, l(`formData.append('${v.name}', fs.createReadStream('${v.fileName}'));`));
|
|
1527
1527
|
});
|
|
1528
1528
|
break;
|
|
1529
1529
|
default:
|
|
1530
1530
|
r.text && (h.body = r.text);
|
|
1531
1531
|
}
|
|
1532
1532
|
if (s.length) {
|
|
1533
|
-
const
|
|
1534
|
-
h.headers || (h.headers = {}), h.headers.cookie =
|
|
1533
|
+
const b = s.map(({ name: v, value: y }) => `${encodeURIComponent(v)}=${encodeURIComponent(y)}`).join("; ");
|
|
1534
|
+
h.headers || (h.headers = {}), h.headers.cookie = b;
|
|
1535
1535
|
}
|
|
1536
1536
|
c(), l(`const url = '${d}';`), h.headers && !Object.keys(h.headers).length && delete h.headers;
|
|
1537
1537
|
const m = K(h, {
|
|
@@ -1540,11 +1540,11 @@ var ls = {
|
|
|
1540
1540
|
// The Fetch API body only accepts string parameters, but stringified JSON can be difficult to
|
|
1541
1541
|
// read, so we keep the object as a literal and use this transform function to wrap the literal
|
|
1542
1542
|
// in a `JSON.stringify` call.
|
|
1543
|
-
transform: (
|
|
1543
|
+
transform: (b, v, y) => v === "body" && r.mimeType === "application/json" ? `JSON.stringify(${y})` : y
|
|
1544
1544
|
});
|
|
1545
1545
|
return l(`const options = ${m};`), c(), i && p("const fs = require('fs');"), r.params && r.mimeType === "multipart/form-data" && (l("options.body = formData;"), c()), l("fetch(url, options)"), l(".then(res => res.json())", 1), l(".then(json => console.log(json))", 1), l(".catch(err => console.error('error:' + err));", 1), f().replace(/'encodedParams'/, "encodedParams").replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/, 'fs.createReadStream("$1")');
|
|
1546
1546
|
}
|
|
1547
|
-
},
|
|
1547
|
+
}, Rs = {
|
|
1548
1548
|
info: {
|
|
1549
1549
|
key: "native",
|
|
1550
1550
|
title: "HTTP",
|
|
@@ -1583,7 +1583,7 @@ var ls = {
|
|
|
1583
1583
|
}
|
|
1584
1584
|
return c("req.end();"), i();
|
|
1585
1585
|
}
|
|
1586
|
-
},
|
|
1586
|
+
}, As = {
|
|
1587
1587
|
info: {
|
|
1588
1588
|
key: "request",
|
|
1589
1589
|
title: "Request",
|
|
@@ -1619,24 +1619,24 @@ var ls = {
|
|
|
1619
1619
|
m.formData[g.name] = g.value;
|
|
1620
1620
|
return;
|
|
1621
1621
|
}
|
|
1622
|
-
let
|
|
1623
|
-
g.fileName ? (c = !0,
|
|
1622
|
+
let b = {};
|
|
1623
|
+
g.fileName ? (c = !0, b = {
|
|
1624
1624
|
value: `fs.createReadStream(${g.fileName})`,
|
|
1625
1625
|
options: {
|
|
1626
1626
|
filename: g.fileName,
|
|
1627
1627
|
contentType: g.contentType ? g.contentType : null
|
|
1628
1628
|
}
|
|
1629
|
-
}) : g.value && (
|
|
1629
|
+
}) : g.value && (b.value = g.value), m.formData[g.name] = b;
|
|
1630
1630
|
}), h((g) => g.replace(/'fs\.createReadStream\((.*)\)'/, "fs.createReadStream('$1')"));
|
|
1631
1631
|
break;
|
|
1632
1632
|
default:
|
|
1633
1633
|
n.text && (m.body = n.text);
|
|
1634
1634
|
}
|
|
1635
|
-
return a.length && (m.jar = "JAR", l("const jar = request.jar();"), a.forEach(({ name: g, value:
|
|
1636
|
-
l(`jar.setCookie(request.cookie('${encodeURIComponent(g)}=${encodeURIComponent(
|
|
1635
|
+
return a.length && (m.jar = "JAR", l("const jar = request.jar();"), a.forEach(({ name: g, value: b }) => {
|
|
1636
|
+
l(`jar.setCookie(request.cookie('${encodeURIComponent(g)}=${encodeURIComponent(b)}'), '${t}');`);
|
|
1637
1637
|
}), f(), h((g) => g.replace(/'JAR'/, "jar"))), c && d("const fs = require('fs');"), l(`const options = ${K(m, { indent: " ", inlineCharacterLimit: 80 })};`), f(), l("request(options, function (error, response, body) {"), l("if (error) throw new Error(error);", 1), f(), l("console.log(body);", 1), l("});"), p();
|
|
1638
1638
|
}
|
|
1639
|
-
},
|
|
1639
|
+
}, Is = {
|
|
1640
1640
|
info: {
|
|
1641
1641
|
key: "unirest",
|
|
1642
1642
|
title: "Unirest",
|
|
@@ -1667,8 +1667,8 @@ var ls = {
|
|
|
1667
1667
|
break;
|
|
1668
1668
|
const m = [];
|
|
1669
1669
|
s.params.forEach((g) => {
|
|
1670
|
-
const
|
|
1671
|
-
g.fileName && !g.value ? (c = !0,
|
|
1670
|
+
const b = {};
|
|
1671
|
+
g.fileName && !g.value ? (c = !0, b.body = `fs.createReadStream('${g.fileName}')`, l((v) => v.replace(/'fs\.createReadStream\(\\'(.+)\\'\)'/, "fs.createReadStream('$1')"))) : g.value && (b.body = g.value), b.body && (g.contentType && (b["content-type"] = g.contentType), m.push(b));
|
|
1672
1672
|
}), d(`req.multipart(${K(m, { indent: i.indent })});`), f();
|
|
1673
1673
|
break;
|
|
1674
1674
|
}
|
|
@@ -1677,7 +1677,7 @@ var ls = {
|
|
|
1677
1677
|
}
|
|
1678
1678
|
return c && h("const fs = require('fs');"), d("req.end(function (res) {"), d("if (res.error) throw new Error(res.error);", 1), f(), d("console.log(res.body);", 1), d("});"), p();
|
|
1679
1679
|
}
|
|
1680
|
-
},
|
|
1680
|
+
}, qs = {
|
|
1681
1681
|
info: {
|
|
1682
1682
|
key: "node",
|
|
1683
1683
|
title: "Node.js",
|
|
@@ -1685,27 +1685,27 @@ var ls = {
|
|
|
1685
1685
|
cli: "node %s"
|
|
1686
1686
|
},
|
|
1687
1687
|
clientsById: {
|
|
1688
|
-
native:
|
|
1689
|
-
request:
|
|
1690
|
-
unirest:
|
|
1691
|
-
axios:
|
|
1692
|
-
fetch:
|
|
1693
|
-
}
|
|
1694
|
-
},
|
|
1695
|
-
const s = `${e} *${t} = `, a =
|
|
1688
|
+
native: Rs,
|
|
1689
|
+
request: As,
|
|
1690
|
+
unirest: Is,
|
|
1691
|
+
axios: Es,
|
|
1692
|
+
fetch: ks
|
|
1693
|
+
}
|
|
1694
|
+
}, Rt = (e, t, r, n) => {
|
|
1695
|
+
const s = `${e} *${t} = `, a = Jt(r, n ? s.length : void 0);
|
|
1696
1696
|
return `${s}${a};`;
|
|
1697
|
-
},
|
|
1697
|
+
}, Jt = (e, t) => {
|
|
1698
1698
|
const r = t === void 0 ? ", " : `,
|
|
1699
1699
|
${" ".repeat(t)}`;
|
|
1700
1700
|
switch (Object.prototype.toString.call(e)) {
|
|
1701
1701
|
case "[object Number]":
|
|
1702
1702
|
return `@${e}`;
|
|
1703
1703
|
case "[object Array]":
|
|
1704
|
-
return `@[ ${e.map((s) =>
|
|
1704
|
+
return `@[ ${e.map((s) => Jt(s)).join(r)} ]`;
|
|
1705
1705
|
case "[object Object]": {
|
|
1706
1706
|
const n = [];
|
|
1707
1707
|
return Object.keys(e).forEach((s) => {
|
|
1708
|
-
n.push(`@"${s}": ${
|
|
1708
|
+
n.push(`@"${s}": ${Jt(e[s])}`);
|
|
1709
1709
|
}), `@{ ${n.join(r)} }`;
|
|
1710
1710
|
}
|
|
1711
1711
|
case "[object Boolean]":
|
|
@@ -1713,7 +1713,7 @@ var ls = {
|
|
|
1713
1713
|
default:
|
|
1714
1714
|
return e == null ? "" : `@"${e.toString().replace(/"/g, '\\"')}"`;
|
|
1715
1715
|
}
|
|
1716
|
-
},
|
|
1716
|
+
}, _s = {
|
|
1717
1717
|
info: {
|
|
1718
1718
|
key: "nsurlsession",
|
|
1719
1719
|
title: "NSURLSession",
|
|
@@ -1732,7 +1732,7 @@ var ls = {
|
|
|
1732
1732
|
hasHeaders: !1,
|
|
1733
1733
|
hasBody: !1
|
|
1734
1734
|
};
|
|
1735
|
-
if (o("#import <Foundation/Foundation.h>"), Object.keys(e).length && (l.hasHeaders = !0, c(), o(
|
|
1735
|
+
if (o("#import <Foundation/Foundation.h>"), Object.keys(e).length && (l.hasHeaders = !0, c(), o(Rt("NSDictionary", "headers", e, a.pretty))), t.text || t.jsonObj || t.params)
|
|
1736
1736
|
switch (l.hasBody = !0, t.mimeType) {
|
|
1737
1737
|
case "application/x-www-form-urlencoded":
|
|
1738
1738
|
if ((f = t.params) != null && f.length) {
|
|
@@ -1747,10 +1747,10 @@ var ls = {
|
|
|
1747
1747
|
l.hasBody = !1;
|
|
1748
1748
|
break;
|
|
1749
1749
|
case "application/json":
|
|
1750
|
-
t.jsonObj && (o(
|
|
1750
|
+
t.jsonObj && (o(Rt("NSDictionary", "parameters", t.jsonObj, a.pretty)), c(), o("NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];"));
|
|
1751
1751
|
break;
|
|
1752
1752
|
case "multipart/form-data":
|
|
1753
|
-
o(
|
|
1753
|
+
o(Rt("NSArray", "parameters", t.params || [], a.pretty)), o(`NSString *boundary = @"${t.boundary}";`), c(), o("NSError *error;"), o("NSMutableString *body = [NSMutableString string];"), o("for (NSDictionary *param in parameters) {"), o('[body appendFormat:@"--%@\\r\\n", boundary];', 1), o('if (param[@"fileName"]) {', 1), o(
|
|
1754
1754
|
'[body appendFormat:@"Content-Disposition:form-data; name=\\"%@\\"; filename=\\"%@\\"\\r\\n", param[@"name"], param[@"fileName"]];',
|
|
1755
1755
|
2
|
|
1756
1756
|
), o('[body appendFormat:@"Content-Type: %@\\r\\n\\r\\n", param[@"contentType"]];', 2), o(
|
|
@@ -1770,16 +1770,16 @@ var ls = {
|
|
|
1770
1770
|
2
|
|
1771
1771
|
), o(' NSLog(@"%@", httpResponse);', 2), o(" }", 1), o(" }];"), o("[dataTask resume];"), i();
|
|
1772
1772
|
}
|
|
1773
|
-
},
|
|
1773
|
+
}, Fs = {
|
|
1774
1774
|
info: {
|
|
1775
1775
|
key: "objc",
|
|
1776
1776
|
title: "Objective-C",
|
|
1777
1777
|
default: "nsurlsession"
|
|
1778
1778
|
},
|
|
1779
1779
|
clientsById: {
|
|
1780
|
-
nsurlsession:
|
|
1780
|
+
nsurlsession: _s
|
|
1781
1781
|
}
|
|
1782
|
-
},
|
|
1782
|
+
}, Ls = {
|
|
1783
1783
|
info: {
|
|
1784
1784
|
key: "cohttp",
|
|
1785
1785
|
title: "CoHTTP",
|
|
@@ -1805,14 +1805,14 @@ var ls = {
|
|
|
1805
1805
|
const p = f.length ? "~headers " : "", d = r.text ? "~body " : "", h = o.includes(n.toLowerCase()) ? `\`${n.toUpperCase()}` : `(Code.method_of_string "${n}")`;
|
|
1806
1806
|
return i(`Client.call ${p}${d}${h} uri`), i(">>= fun (res, body_stream) ->"), i("(* Do stuff with the result *)", 1), l();
|
|
1807
1807
|
}
|
|
1808
|
-
},
|
|
1808
|
+
}, Us = {
|
|
1809
1809
|
info: {
|
|
1810
1810
|
key: "ocaml",
|
|
1811
1811
|
title: "OCaml",
|
|
1812
1812
|
default: "cohttp"
|
|
1813
1813
|
},
|
|
1814
1814
|
clientsById: {
|
|
1815
|
-
cohttp:
|
|
1815
|
+
cohttp: Ls
|
|
1816
1816
|
}
|
|
1817
1817
|
}, _ = (e, t, r) => {
|
|
1818
1818
|
switch (r = r || "", t = t || "", Object.prototype.toString.call(e)) {
|
|
@@ -1873,7 +1873,7 @@ ${r}]`;
|
|
|
1873
1873
|
"UNLOCK",
|
|
1874
1874
|
"UPDATE",
|
|
1875
1875
|
"VERSION_CONTROL"
|
|
1876
|
-
],
|
|
1876
|
+
], Ms = {
|
|
1877
1877
|
info: {
|
|
1878
1878
|
key: "curl",
|
|
1879
1879
|
title: "cURL",
|
|
@@ -1890,8 +1890,8 @@ ${r}]`;
|
|
|
1890
1890
|
noTags: d = !1,
|
|
1891
1891
|
shortTags: h = !1,
|
|
1892
1892
|
timeout: m = 30
|
|
1893
|
-
} = i, { push: g, blank:
|
|
1894
|
-
d || (g(h ? "<?" : "<?php"),
|
|
1893
|
+
} = i, { push: g, blank: b, join: v } = new E({ indent: l });
|
|
1894
|
+
d || (g(h ? "<?" : "<?php"), b()), g("$curl = curl_init();"), b();
|
|
1895
1895
|
const y = [
|
|
1896
1896
|
{
|
|
1897
1897
|
escape: !0,
|
|
@@ -1949,9 +1949,9 @@ ${l}` });
|
|
|
1949
1949
|
T.length && x.push(`CURLOPT_COOKIE => "${T.join("; ")}",`);
|
|
1950
1950
|
const $ = Object.keys(o).sort().map((O) => `"${O}: ${G(o[O])}"`);
|
|
1951
1951
|
return $.length && (x.push("CURLOPT_HTTPHEADER => ["), x.push($.join(`,
|
|
1952
|
-
${l}${l}`), 1), x.push("],")), g(x.join(), 1), g("]);"),
|
|
1952
|
+
${l}${l}`), 1), x.push("],")), g(x.join(), 1), g("]);"), b(), g("$response = curl_exec($curl);"), g("$err = curl_error($curl);"), b(), g("curl_close($curl);"), b(), g("if ($err) {"), g(p ? 'echo array_flip(get_defined_constants(true)["curl"])[$err];' : 'echo "cURL Error #:" . $err;', 1), g("} else {"), g("echo $response;", 1), g("}"), !d && c && (b(), g("?>")), v();
|
|
1953
1953
|
}
|
|
1954
|
-
},
|
|
1954
|
+
}, Hs = {
|
|
1955
1955
|
info: {
|
|
1956
1956
|
key: "guzzle",
|
|
1957
1957
|
title: "Guzzle",
|
|
@@ -1974,35 +1974,35 @@ ${l}${l}`), 1), x.push("],")), g(x.join(), 1), g("]);"), v(), g("$response = cur
|
|
|
1974
1974
|
p(`'form_params' => ${_(e.paramsObj, o.indent + o.indent, o.indent)},`, 1);
|
|
1975
1975
|
break;
|
|
1976
1976
|
case "multipart/form-data": {
|
|
1977
|
-
const
|
|
1978
|
-
if (e.params && e.params.forEach((
|
|
1979
|
-
if (
|
|
1977
|
+
const b = [];
|
|
1978
|
+
if (e.params && e.params.forEach((v) => {
|
|
1979
|
+
if (v.fileName) {
|
|
1980
1980
|
const y = {
|
|
1981
|
-
name:
|
|
1982
|
-
filename:
|
|
1983
|
-
contents:
|
|
1981
|
+
name: v.name,
|
|
1982
|
+
filename: v.fileName,
|
|
1983
|
+
contents: v.value
|
|
1984
1984
|
};
|
|
1985
|
-
|
|
1986
|
-
} else
|
|
1987
|
-
name:
|
|
1988
|
-
contents:
|
|
1985
|
+
v.contentType && (y.headers = { "Content-Type": v.contentType }), b.push(y);
|
|
1986
|
+
} else v.value && b.push({
|
|
1987
|
+
name: v.name,
|
|
1988
|
+
contents: v.value
|
|
1989
1989
|
});
|
|
1990
|
-
}),
|
|
1991
|
-
const
|
|
1992
|
-
|
|
1990
|
+
}), b.length && (p(`'multipart' => ${_(b, o.indent + o.indent, o.indent)}`, 1), Ot(s, "content-type") && (g = pe(s, "content-type")) != null && g.indexOf("boundary"))) {
|
|
1991
|
+
const v = X(s, "content-type");
|
|
1992
|
+
v && delete s[v];
|
|
1993
1993
|
}
|
|
1994
1994
|
break;
|
|
1995
1995
|
}
|
|
1996
1996
|
default:
|
|
1997
1997
|
e.text && p(`'body' => ${_(e.text)},`, 1);
|
|
1998
1998
|
}
|
|
1999
|
-
const h = Object.keys(s).sort().map(function(
|
|
2000
|
-
return `${o.indent}${o.indent}'${
|
|
2001
|
-
}), m = n.map((
|
|
1999
|
+
const h = Object.keys(s).sort().map(function(b) {
|
|
2000
|
+
return `${o.indent}${o.indent}'${b}' => '${Ve(s[b])}',`;
|
|
2001
|
+
}), m = n.map((b) => `${encodeURIComponent(b.name)}=${encodeURIComponent(b.value)}`).join("; ");
|
|
2002
2002
|
return m.length && h.push(`${o.indent}${o.indent}'cookie' => '${Ve(m)}',`), h.length && (p("'headers' => [", 1), p(h.join(`
|
|
2003
2003
|
`)), p("],", 1)), i("$client = new \\GuzzleHttp\\Client();"), c(), f.length ? (i(`$response = $client->request('${r}', '${t}', [`), i(d()), i("]);")) : i(`$response = $client->request('${r}', '${t}');`), c(), i("echo $response->getBody();"), !o.noTags && o.closingTag && (c(), i("?>")), l();
|
|
2004
2004
|
}
|
|
2005
|
-
},
|
|
2005
|
+
}, Bs = {
|
|
2006
2006
|
info: {
|
|
2007
2007
|
key: "http1",
|
|
2008
2008
|
title: "HTTP v1",
|
|
@@ -2024,7 +2024,7 @@ ${l}${l}`), 1), x.push("],")), g(x.join(), 1), g("]);"), v(), g("$response = cur
|
|
|
2024
2024
|
}
|
|
2025
2025
|
return p("try {"), p("$response = $request->send();", 1), d(), p("echo $response->getBody();", 1), p("} catch (HttpException $ex) {"), p("echo $ex;", 1), p("}"), !l && i && (d(), p("?>")), h();
|
|
2026
2026
|
}
|
|
2027
|
-
},
|
|
2027
|
+
}, Ds = {
|
|
2028
2028
|
info: {
|
|
2029
2029
|
key: "http2",
|
|
2030
2030
|
title: "HTTP v2",
|
|
@@ -2043,10 +2043,10 @@ ${l}${l}`), 1), x.push("],")), g(x.join(), 1), g("]);"), v(), g("$response = cur
|
|
|
2043
2043
|
case "multipart/form-data": {
|
|
2044
2044
|
if (!e.params)
|
|
2045
2045
|
break;
|
|
2046
|
-
const
|
|
2046
|
+
const b = [], v = {};
|
|
2047
2047
|
e.params.forEach(({ name: T, fileName: $, value: O, contentType: w }) => {
|
|
2048
2048
|
if ($) {
|
|
2049
|
-
|
|
2049
|
+
b.push({
|
|
2050
2050
|
name: T,
|
|
2051
2051
|
type: w,
|
|
2052
2052
|
file: $,
|
|
@@ -2054,10 +2054,10 @@ ${l}${l}`), 1), x.push("],")), g(x.join(), 1), g("]);"), v(), g("$response = cur
|
|
|
2054
2054
|
});
|
|
2055
2055
|
return;
|
|
2056
2056
|
}
|
|
2057
|
-
O && (
|
|
2057
|
+
O && (v[T] = O);
|
|
2058
2058
|
});
|
|
2059
|
-
const y = Object.keys(
|
|
2060
|
-
if (p("$body = new http\\Message\\Body;"), p(`$body->addForm(${y}, ${x});`),
|
|
2059
|
+
const y = Object.keys(v).length ? _(v, c) : "null", x = b.length ? _(b, c) : "null";
|
|
2060
|
+
if (p("$body = new http\\Message\\Body;"), p(`$body->addForm(${y}, ${x});`), Ot(t, "content-type") && (g = pe(t, "content-type")) != null && g.indexOf("boundary")) {
|
|
2061
2061
|
const T = X(t, "content-type");
|
|
2062
2062
|
T && delete t[T];
|
|
2063
2063
|
}
|
|
@@ -2072,7 +2072,7 @@ ${l}${l}`), 1), x.push("],")), g(x.join(), 1), g("]);"), v(), g("$response = cur
|
|
|
2072
2072
|
}
|
|
2073
2073
|
return p(`$request->setRequestUrl(${_(a)});`), p(`$request->setRequestMethod(${_(r)});`), m && (p("$request->setBody($body);"), d()), Object.keys(n).length && (p(`$request->setQuery(new http\\QueryString(${_(n, c)}));`), d()), Object.keys(t).length && (p(`$request->setHeaders(${_(t, c)});`), d()), Object.keys(s).length && (d(), p(`$client->setCookies(${_(s, c)});`), d()), p("$client->enqueue($request)->send();"), p("$response = $client->getResponse();"), d(), p("echo $response->getBody();"), !l && i && (d(), p("?>")), h();
|
|
2074
2074
|
}
|
|
2075
|
-
},
|
|
2075
|
+
}, Ws = {
|
|
2076
2076
|
info: {
|
|
2077
2077
|
key: "php",
|
|
2078
2078
|
title: "PHP",
|
|
@@ -2080,12 +2080,12 @@ ${l}${l}`), 1), x.push("],")), g(x.join(), 1), g("]);"), v(), g("$response = cur
|
|
|
2080
2080
|
cli: "php %s"
|
|
2081
2081
|
},
|
|
2082
2082
|
clientsById: {
|
|
2083
|
-
curl:
|
|
2084
|
-
guzzle:
|
|
2085
|
-
http1:
|
|
2086
|
-
http2:
|
|
2083
|
+
curl: Ms,
|
|
2084
|
+
guzzle: Hs,
|
|
2085
|
+
http1: Bs,
|
|
2086
|
+
http2: Ds
|
|
2087
2087
|
}
|
|
2088
|
-
},
|
|
2088
|
+
}, Zn = (e) => ({ method: r, headersObj: n, cookies: s, uriObj: a, fullUrl: o, postData: i, allHeaders: c }) => {
|
|
2089
2089
|
const { push: l, join: f } = new E();
|
|
2090
2090
|
if (!["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"].includes(r.toUpperCase()))
|
|
2091
2091
|
return "Method not supported";
|
|
@@ -2097,7 +2097,7 @@ ${l}${l}`), 1), x.push("],")), g(x.join(), 1), g("]);"), v(), g("$response = cur
|
|
|
2097
2097
|
}), d.push("-WebSession $session")), i.text && (d.push(
|
|
2098
2098
|
`-ContentType '${Ge(pe(c, "content-type"), { delimiter: "'", escapeChar: "`" })}'`
|
|
2099
2099
|
), d.push(`-Body '${i.text}'`)), l(`$response = ${e} -Uri '${o}' -Method ${r} ${d.join(" ")}`.trim()), f();
|
|
2100
|
-
},
|
|
2100
|
+
}, zs = {
|
|
2101
2101
|
info: {
|
|
2102
2102
|
key: "restmethod",
|
|
2103
2103
|
title: "Invoke-RestMethod",
|
|
@@ -2105,8 +2105,8 @@ ${l}${l}`), 1), x.push("],")), g(x.join(), 1), g("]);"), v(), g("$response = cur
|
|
|
2105
2105
|
description: "Powershell Invoke-RestMethod client",
|
|
2106
2106
|
extname: ".ps1"
|
|
2107
2107
|
},
|
|
2108
|
-
convert:
|
|
2109
|
-
},
|
|
2108
|
+
convert: Zn("Invoke-RestMethod")
|
|
2109
|
+
}, Gs = {
|
|
2110
2110
|
info: {
|
|
2111
2111
|
key: "webrequest",
|
|
2112
2112
|
title: "Invoke-WebRequest",
|
|
@@ -2114,16 +2114,16 @@ ${l}${l}`), 1), x.push("],")), g(x.join(), 1), g("]);"), v(), g("$response = cur
|
|
|
2114
2114
|
description: "Powershell Invoke-WebRequest client",
|
|
2115
2115
|
extname: ".ps1"
|
|
2116
2116
|
},
|
|
2117
|
-
convert:
|
|
2118
|
-
},
|
|
2117
|
+
convert: Zn("Invoke-WebRequest")
|
|
2118
|
+
}, Vs = {
|
|
2119
2119
|
info: {
|
|
2120
2120
|
key: "powershell",
|
|
2121
2121
|
title: "Powershell",
|
|
2122
2122
|
default: "webrequest"
|
|
2123
2123
|
},
|
|
2124
2124
|
clientsById: {
|
|
2125
|
-
webrequest:
|
|
2126
|
-
restmethod:
|
|
2125
|
+
webrequest: Gs,
|
|
2126
|
+
restmethod: zs
|
|
2127
2127
|
}
|
|
2128
2128
|
};
|
|
2129
2129
|
function zr(e, t, r, n, s) {
|
|
@@ -2155,7 +2155,7 @@ var Ee = (e, t, r) => {
|
|
|
2155
2155
|
default:
|
|
2156
2156
|
return e == null ? "" : `"${e.toString().replace(/"/g, '\\"')}"`;
|
|
2157
2157
|
}
|
|
2158
|
-
},
|
|
2158
|
+
}, Js = ["HEAD", "GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"], Ks = {
|
|
2159
2159
|
info: {
|
|
2160
2160
|
key: "requests",
|
|
2161
2161
|
title: "Requests",
|
|
@@ -2205,23 +2205,23 @@ var Ee = (e, t, r) => {
|
|
|
2205
2205
|
y && (o(`payload = ${y}`), m = !0);
|
|
2206
2206
|
}
|
|
2207
2207
|
}
|
|
2208
|
-
const
|
|
2209
|
-
if (
|
|
2208
|
+
const b = Object.keys(f).length;
|
|
2209
|
+
if (b === 0 && (m || h))
|
|
2210
2210
|
i();
|
|
2211
|
-
else if (
|
|
2211
|
+
else if (b === 1)
|
|
2212
2212
|
Object.keys(f).forEach((y) => {
|
|
2213
2213
|
o(`headers = {"${y}": "${G(f[y])}"}`), i();
|
|
2214
2214
|
});
|
|
2215
|
-
else if (
|
|
2215
|
+
else if (b > 1) {
|
|
2216
2216
|
let y = 1;
|
|
2217
2217
|
o("headers = {"), Object.keys(f).forEach((x) => {
|
|
2218
|
-
o(y !==
|
|
2218
|
+
o(y !== b ? `"${x}": "${G(f[x])}",` : `"${x}": "${G(f[x])}"`, 1), y += 1;
|
|
2219
2219
|
}), o("}"), i();
|
|
2220
2220
|
}
|
|
2221
|
-
let
|
|
2222
|
-
return m && (g ?
|
|
2221
|
+
let v = Js.includes(n) ? `response = requests.${n.toLowerCase()}(url` : `response = requests.request("${n}", url`;
|
|
2222
|
+
return m && (g ? v += ", json=payload" : v += ", data=payload"), h && (v += ", files=files"), b > 0 && (v += ", headers=headers"), v += ")", o(v), i(), o("print(response.text)"), c();
|
|
2223
2223
|
}
|
|
2224
|
-
},
|
|
2224
|
+
}, Qs = {
|
|
2225
2225
|
info: {
|
|
2226
2226
|
key: "python",
|
|
2227
2227
|
title: "Python",
|
|
@@ -2229,9 +2229,9 @@ var Ee = (e, t, r) => {
|
|
|
2229
2229
|
cli: "python3 %s"
|
|
2230
2230
|
},
|
|
2231
2231
|
clientsById: {
|
|
2232
|
-
requests:
|
|
2232
|
+
requests: Ks
|
|
2233
2233
|
}
|
|
2234
|
-
},
|
|
2234
|
+
}, Ys = {
|
|
2235
2235
|
info: {
|
|
2236
2236
|
key: "httr",
|
|
2237
2237
|
title: "httr",
|
|
@@ -2264,22 +2264,22 @@ var Ee = (e, t, r) => {
|
|
|
2264
2264
|
o('encode <- "raw"'), i();
|
|
2265
2265
|
break;
|
|
2266
2266
|
}
|
|
2267
|
-
const d = pe(s, "cookie"), h = pe(s, "accept"), m = d ? `set_cookies(\`${String(d).replace(/;/g, '", `').replace(/` /g, "`").replace(/[=]/g, '` = "')}")` : void 0, g = h ? `accept("${G(h)}")` : void 0,
|
|
2267
|
+
const d = pe(s, "cookie"), h = pe(s, "accept"), m = d ? `set_cookies(\`${String(d).replace(/;/g, '", `').replace(/` /g, "`").replace(/[=]/g, '` = "')}")` : void 0, g = h ? `accept("${G(h)}")` : void 0, b = `content_type("${G(n.mimeType)}")`, v = Object.entries(s).filter(([$]) => !["cookie", "accept", "content-type"].includes($.toLowerCase())).map(([$, O]) => `'${$}' = '${Ve(O)}'`).join(", "), y = v ? `add_headers(${v})` : void 0;
|
|
2268
2268
|
let x = `response <- VERB("${a}", url`;
|
|
2269
2269
|
p && (x += ", body = payload"), r.length && (x += ", query = queryString");
|
|
2270
|
-
const T = [y,
|
|
2270
|
+
const T = [y, b, g, m].filter(($) => !!$).join(", ");
|
|
2271
2271
|
return T && (x += `, ${T}`), (n.text || n.jsonObj || n.params) && (x += ", encode = encode"), x += ")", o(x), i(), o('content(response, "text")'), c();
|
|
2272
2272
|
}
|
|
2273
|
-
},
|
|
2273
|
+
}, Xs = {
|
|
2274
2274
|
info: {
|
|
2275
2275
|
key: "r",
|
|
2276
2276
|
title: "R",
|
|
2277
2277
|
default: "httr"
|
|
2278
2278
|
},
|
|
2279
2279
|
clientsById: {
|
|
2280
|
-
httr:
|
|
2280
|
+
httr: Ys
|
|
2281
2281
|
}
|
|
2282
|
-
},
|
|
2282
|
+
}, Zs = {
|
|
2283
2283
|
info: {
|
|
2284
2284
|
key: "native",
|
|
2285
2285
|
title: "net::http",
|
|
@@ -2310,16 +2310,16 @@ var Ee = (e, t, r) => {
|
|
|
2310
2310
|
a(`request["${d}"] = '${Ve(s[d])}'`);
|
|
2311
2311
|
}), n.text && a(`request.body = ${JSON.stringify(n.text)}`), o(), a("response = http.request(request)"), a("puts response.read_body"), i();
|
|
2312
2312
|
}
|
|
2313
|
-
},
|
|
2313
|
+
}, ei = {
|
|
2314
2314
|
info: {
|
|
2315
2315
|
key: "ruby",
|
|
2316
2316
|
title: "Ruby",
|
|
2317
2317
|
default: "native"
|
|
2318
2318
|
},
|
|
2319
2319
|
clientsById: {
|
|
2320
|
-
native:
|
|
2320
|
+
native: Zs
|
|
2321
2321
|
}
|
|
2322
|
-
}, J = (e = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(e) ? e : `'${e.replace(/'/g, "'\\''")}'`,
|
|
2322
|
+
}, J = (e = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(e) ? e : `'${e.replace(/'/g, "'\\''")}'`, ti = (e) => e.replace(/\r/g, "\\r").replace(/\n/g, "\\n"), ri = {
|
|
2323
2323
|
"http1.0": "0",
|
|
2324
2324
|
"url ": "",
|
|
2325
2325
|
cookie: "b",
|
|
@@ -2329,13 +2329,13 @@ var Ee = (e, t, r) => {
|
|
|
2329
2329
|
header: "H",
|
|
2330
2330
|
insecure: "k",
|
|
2331
2331
|
request: "X"
|
|
2332
|
-
},
|
|
2332
|
+
}, ni = (e) => (t) => {
|
|
2333
2333
|
if (e) {
|
|
2334
|
-
const r =
|
|
2334
|
+
const r = ri[t];
|
|
2335
2335
|
return r ? `-${r}` : "";
|
|
2336
2336
|
}
|
|
2337
2337
|
return `--${t}`;
|
|
2338
|
-
},
|
|
2338
|
+
}, oi = {
|
|
2339
2339
|
info: {
|
|
2340
2340
|
key: "curl",
|
|
2341
2341
|
title: "cURL",
|
|
@@ -2344,29 +2344,29 @@ var Ee = (e, t, r) => {
|
|
|
2344
2344
|
extname: ".sh"
|
|
2345
2345
|
},
|
|
2346
2346
|
convert: ({ fullUrl: e, method: t, httpVersion: r, headersObj: n, allHeaders: s, postData: a }, o = {}) => {
|
|
2347
|
-
var
|
|
2347
|
+
var b;
|
|
2348
2348
|
const { indent: i = " ", short: c = !1, binary: l = !1, globOff: f = !1 } = o, p = " ", { push: d, join: h } = new E({
|
|
2349
2349
|
...typeof i == "string" ? { indent: i } : {},
|
|
2350
2350
|
join: i !== !1 ? ` \\
|
|
2351
2351
|
${i}` : " "
|
|
2352
|
-
}), m =
|
|
2352
|
+
}), m = ni(c);
|
|
2353
2353
|
let g = J(e);
|
|
2354
2354
|
if (d(`curl ${m("request")} ${t}`), f && (g = unescape(g), d(m("globoff"))), d(`${m("url ")}${g}`), r === "HTTP/1.0" && d(m("http1.0")), pe(s, "accept-encoding") && d("--compressed"), a.mimeType === "multipart/form-data") {
|
|
2355
|
-
const
|
|
2356
|
-
if (
|
|
2357
|
-
const y = n[
|
|
2358
|
-
if (
|
|
2355
|
+
const v = X(n, "content-type");
|
|
2356
|
+
if (v) {
|
|
2357
|
+
const y = n[v];
|
|
2358
|
+
if (v && y) {
|
|
2359
2359
|
const x = String(y).replace(/; boundary.+?(?=(;|$))/, "");
|
|
2360
|
-
n[
|
|
2360
|
+
n[v] = x, s[v] = x;
|
|
2361
2361
|
}
|
|
2362
2362
|
}
|
|
2363
2363
|
}
|
|
2364
|
-
switch (Object.keys(n).sort().forEach((
|
|
2365
|
-
const y = `${
|
|
2364
|
+
switch (Object.keys(n).sort().forEach((v) => {
|
|
2365
|
+
const y = `${v}: ${n[v]}`;
|
|
2366
2366
|
d(`${m("header")} ${J(y)}`);
|
|
2367
2367
|
}), s.cookie && d(`${m("cookie")} ${J(s.cookie)}`), a.mimeType) {
|
|
2368
2368
|
case "multipart/form-data":
|
|
2369
|
-
(
|
|
2369
|
+
(b = a.params) == null || b.forEach((y) => {
|
|
2370
2370
|
let x = "";
|
|
2371
2371
|
y.fileName ? x = `${y.name}='@${y.fileName}'` : x = J(`${y.name}=${y.value}`), d(`${m("form")} ${x}`);
|
|
2372
2372
|
});
|
|
@@ -2380,11 +2380,11 @@ ${i}` : " "
|
|
|
2380
2380
|
default:
|
|
2381
2381
|
if (!a.text)
|
|
2382
2382
|
break;
|
|
2383
|
-
let
|
|
2384
|
-
if (
|
|
2383
|
+
let v = !1;
|
|
2384
|
+
if (ns(a.mimeType) && a.text.length > 20)
|
|
2385
2385
|
try {
|
|
2386
2386
|
const y = JSON.parse(a.text);
|
|
2387
|
-
|
|
2387
|
+
v = !0, a.text.indexOf("'") > 0 ? d(
|
|
2388
2388
|
`${l ? "--data-binary" : m("data")} @- <<EOF
|
|
2389
2389
|
${JSON.stringify(
|
|
2390
2390
|
y,
|
|
@@ -2399,11 +2399,11 @@ ${JSON.stringify(y, null, p)}
|
|
|
2399
2399
|
);
|
|
2400
2400
|
} catch {
|
|
2401
2401
|
}
|
|
2402
|
-
|
|
2402
|
+
v || d(`${l ? "--data-binary" : m("data")} ${J(a.text)}`);
|
|
2403
2403
|
}
|
|
2404
2404
|
return h();
|
|
2405
2405
|
}
|
|
2406
|
-
},
|
|
2406
|
+
}, ai = {
|
|
2407
2407
|
info: {
|
|
2408
2408
|
key: "httpie",
|
|
2409
2409
|
title: "HTTPie",
|
|
@@ -2437,8 +2437,8 @@ ${i.indent}` : " "
|
|
|
2437
2437
|
const d = [];
|
|
2438
2438
|
i.headers && d.push(i.short ? "-h" : "--headers"), i.body && d.push(i.short ? "-b" : "--body"), i.verbose && d.push(i.short ? "-v" : "--verbose"), i.print && d.push(`${i.short ? "-p" : "--print"}=${i.print}`), i.verify && d.push(`--verify=${i.verify}`), i.cert && d.push(`--cert=${i.cert}`), i.pretty && d.push(`--pretty=${i.pretty}`), i.style && d.push(`--style=${i.style}`), i.timeout && d.push(`--timeout=${i.timeout}`), i.queryParams && Object.keys(r).forEach((m) => {
|
|
2439
2439
|
const g = r[m];
|
|
2440
|
-
Array.isArray(g) ? g.forEach((
|
|
2441
|
-
c(`${m}==${J(
|
|
2440
|
+
Array.isArray(g) ? g.forEach((b) => {
|
|
2441
|
+
c(`${m}==${J(b)}`);
|
|
2442
2442
|
}) : c(`${m}==${J(g)}`);
|
|
2443
2443
|
}), Object.keys(e).sort().forEach((m) => {
|
|
2444
2444
|
c(`${m}:${J(e[m])}`);
|
|
@@ -2452,7 +2452,7 @@ ${i.indent}` : " "
|
|
|
2452
2452
|
}
|
|
2453
2453
|
return l();
|
|
2454
2454
|
}
|
|
2455
|
-
},
|
|
2455
|
+
}, si = {
|
|
2456
2456
|
info: {
|
|
2457
2457
|
key: "wget",
|
|
2458
2458
|
title: "Wget",
|
|
@@ -2474,9 +2474,9 @@ ${a.indent}` : " "
|
|
|
2474
2474
|
return a.verbose ? o(`wget ${a.short ? "-v" : "--verbose"}`) : o(`wget ${a.short ? "-q" : "--quiet"}`), o(`--method ${J(e)}`), Object.keys(r).forEach((c) => {
|
|
2475
2475
|
const l = `${c}: ${r[c]}`;
|
|
2476
2476
|
o(`--header ${J(l)}`);
|
|
2477
|
-
}), t.text && o(`--body-data ${
|
|
2477
|
+
}), t.text && o(`--body-data ${ti(J(t.text))}`), o(a.short ? "-O" : "--output-document"), o(`- ${J(n)}`), i();
|
|
2478
2478
|
}
|
|
2479
|
-
},
|
|
2479
|
+
}, ii = {
|
|
2480
2480
|
info: {
|
|
2481
2481
|
key: "shell",
|
|
2482
2482
|
title: "Shell",
|
|
@@ -2484,9 +2484,9 @@ ${a.indent}` : " "
|
|
|
2484
2484
|
cli: "%s"
|
|
2485
2485
|
},
|
|
2486
2486
|
clientsById: {
|
|
2487
|
-
curl:
|
|
2488
|
-
httpie:
|
|
2489
|
-
wget:
|
|
2487
|
+
curl: oi,
|
|
2488
|
+
httpie: ai,
|
|
2489
|
+
wget: si
|
|
2490
2490
|
}
|
|
2491
2491
|
}, Gr = (e, t) => t.repeat(e), Vr = (e, t, r, n) => {
|
|
2492
2492
|
const s = Gr(n, r), a = Gr(n - 1, r), o = t ? `,
|
|
@@ -2521,7 +2521,7 @@ ${a}]` : `[${e.join(o)}]`;
|
|
|
2521
2521
|
default:
|
|
2522
2522
|
return e == null ? "nil" : `"${e.toString().replace(/"/g, '\\"')}"`;
|
|
2523
2523
|
}
|
|
2524
|
-
},
|
|
2524
|
+
}, ci = {
|
|
2525
2525
|
info: {
|
|
2526
2526
|
key: "urlsession",
|
|
2527
2527
|
title: "URLSession",
|
|
@@ -2565,42 +2565,42 @@ ${a}]` : `[${e.join(o)}]`;
|
|
|
2565
2565
|
i(`URLQueryItem(name: "${m}", value: "${g}"),`, 1);
|
|
2566
2566
|
break;
|
|
2567
2567
|
case "[object Array]":
|
|
2568
|
-
g.forEach((
|
|
2569
|
-
i(`URLQueryItem(name: "${m}", value: "${
|
|
2568
|
+
g.forEach((b) => {
|
|
2569
|
+
i(`URLQueryItem(name: "${m}", value: "${b}"),`, 1);
|
|
2570
2570
|
});
|
|
2571
2571
|
break;
|
|
2572
2572
|
}
|
|
2573
2573
|
}), i("]"), i("components.queryItems = components.queryItems.map { $0 + queryItems } ?? queryItems"), c(), i("var request = URLRequest(url: components.url!)")), i(`request.httpMethod = "${s}"`), i(`request.timeoutInterval = ${o.timeout}`), Object.keys(e).length && i(`request.allHTTPHeaderFields = ${ht(e, o)}`), f && i("request.httpBody = postData"), c(), i("let (data, _) = try await URLSession.shared.data(for: request)"), i("print(String(decoding: data, as: UTF8.self))"), l();
|
|
2574
2574
|
}
|
|
2575
|
-
},
|
|
2575
|
+
}, li = {
|
|
2576
2576
|
info: {
|
|
2577
2577
|
key: "swift",
|
|
2578
2578
|
title: "Swift",
|
|
2579
2579
|
default: "urlsession"
|
|
2580
2580
|
},
|
|
2581
2581
|
clientsById: {
|
|
2582
|
-
urlsession:
|
|
2583
|
-
}
|
|
2584
|
-
},
|
|
2585
|
-
c:
|
|
2586
|
-
clojure:
|
|
2587
|
-
csharp:
|
|
2588
|
-
go:
|
|
2589
|
-
http:
|
|
2590
|
-
java:
|
|
2591
|
-
javascript:
|
|
2592
|
-
json:
|
|
2593
|
-
kotlin:
|
|
2594
|
-
node:
|
|
2595
|
-
objc:
|
|
2596
|
-
ocaml:
|
|
2597
|
-
php:
|
|
2598
|
-
powershell:
|
|
2599
|
-
python:
|
|
2600
|
-
r:
|
|
2601
|
-
ruby:
|
|
2602
|
-
shell:
|
|
2603
|
-
swift:
|
|
2582
|
+
urlsession: ci
|
|
2583
|
+
}
|
|
2584
|
+
}, ui = {
|
|
2585
|
+
c: rs,
|
|
2586
|
+
clojure: ss,
|
|
2587
|
+
csharp: fs,
|
|
2588
|
+
go: ps,
|
|
2589
|
+
http: ms,
|
|
2590
|
+
java: xs,
|
|
2591
|
+
javascript: Ts,
|
|
2592
|
+
json: Cs,
|
|
2593
|
+
kotlin: Ns,
|
|
2594
|
+
node: qs,
|
|
2595
|
+
objc: Fs,
|
|
2596
|
+
ocaml: Us,
|
|
2597
|
+
php: Ws,
|
|
2598
|
+
powershell: Vs,
|
|
2599
|
+
python: Qs,
|
|
2600
|
+
r: Xs,
|
|
2601
|
+
ruby: ei,
|
|
2602
|
+
shell: ii,
|
|
2603
|
+
swift: li
|
|
2604
2604
|
}, mt = { exports: {} };
|
|
2605
2605
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
2606
2606
|
mt.exports;
|
|
@@ -2608,7 +2608,7 @@ mt.exports;
|
|
|
2608
2608
|
(function(r) {
|
|
2609
2609
|
var n = t && !t.nodeType && t, s = e && !e.nodeType && e, a = typeof ot == "object" && ot;
|
|
2610
2610
|
(a.global === a || a.window === a || a.self === a) && (r = a);
|
|
2611
|
-
var o, i = 2147483647, c = 36, l = 1, f = 26, p = 38, d = 700, h = 72, m = 128, g = "-",
|
|
2611
|
+
var o, i = 2147483647, c = 36, l = 1, f = 26, p = 38, d = 700, h = 72, m = 128, g = "-", b = /^xn--/, v = /[^\x20-\x7E]/, y = /[\x2E\u3002\uFF0E\uFF61]/g, x = {
|
|
2612
2612
|
overflow: "Overflow: input needs wider integers to process",
|
|
2613
2613
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
2614
2614
|
"invalid-input": "Invalid input"
|
|
@@ -2662,7 +2662,7 @@ mt.exports;
|
|
|
2662
2662
|
return Q(P);
|
|
2663
2663
|
}
|
|
2664
2664
|
function me(j) {
|
|
2665
|
-
var P, k, L, M, ee, V, re, oe, le, he, Y, ne = [], ae, ye, xe,
|
|
2665
|
+
var P, k, L, M, ee, V, re, oe, le, he, Y, ne = [], ae, ye, xe, Pt;
|
|
2666
2666
|
for (j = U(j), ae = j.length, P = m, k = 0, ee = h, V = 0; V < ae; ++V)
|
|
2667
2667
|
Y = j[V], Y < 128 && ne.push(O(Y));
|
|
2668
2668
|
for (L = M = ne.length, M && ne.push(g); L < ae; ) {
|
|
@@ -2671,23 +2671,23 @@ mt.exports;
|
|
|
2671
2671
|
for (ye = L + 1, re - P > $((i - k) / ye) && C("overflow"), k += (re - P) * ye, P = re, V = 0; V < ae; ++V)
|
|
2672
2672
|
if (Y = j[V], Y < P && ++k > i && C("overflow"), Y == P) {
|
|
2673
2673
|
for (oe = k, le = c; he = le <= ee ? l : le >= ee + f ? f : le - ee, !(oe < he); le += c)
|
|
2674
|
-
|
|
2675
|
-
O(D(he +
|
|
2676
|
-
), oe = $(
|
|
2674
|
+
Pt = oe - he, xe = c - he, ne.push(
|
|
2675
|
+
O(D(he + Pt % xe, 0))
|
|
2676
|
+
), oe = $(Pt / xe);
|
|
2677
2677
|
ne.push(O(D(oe, 0))), ee = B(k, ye, L == M), k = 0, ++L;
|
|
2678
2678
|
}
|
|
2679
2679
|
++k, ++P;
|
|
2680
2680
|
}
|
|
2681
2681
|
return ne.join("");
|
|
2682
2682
|
}
|
|
2683
|
-
function
|
|
2683
|
+
function Ct(j) {
|
|
2684
2684
|
return q(j, function(P) {
|
|
2685
|
-
return
|
|
2685
|
+
return b.test(P) ? I(P.slice(4).toLowerCase()) : P;
|
|
2686
2686
|
});
|
|
2687
2687
|
}
|
|
2688
2688
|
function Xe(j) {
|
|
2689
2689
|
return q(j, function(P) {
|
|
2690
|
-
return
|
|
2690
|
+
return v.test(P) ? "xn--" + me(P) : P;
|
|
2691
2691
|
});
|
|
2692
2692
|
}
|
|
2693
2693
|
if (o = {
|
|
@@ -2711,7 +2711,7 @@ mt.exports;
|
|
|
2711
2711
|
decode: I,
|
|
2712
2712
|
encode: me,
|
|
2713
2713
|
toASCII: Xe,
|
|
2714
|
-
toUnicode:
|
|
2714
|
+
toUnicode: Ct
|
|
2715
2715
|
}, n && s)
|
|
2716
2716
|
if (e.exports == n)
|
|
2717
2717
|
s.exports = o;
|
|
@@ -2722,7 +2722,7 @@ mt.exports;
|
|
|
2722
2722
|
r.punycode = o;
|
|
2723
2723
|
})(ot);
|
|
2724
2724
|
})(mt, mt.exports);
|
|
2725
|
-
var
|
|
2725
|
+
var fi = mt.exports, di = Error, pi = EvalError, hi = RangeError, mi = ReferenceError, eo = SyntaxError, Qe = TypeError, yi = URIError, gi = function() {
|
|
2726
2726
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
2727
2727
|
return !1;
|
|
2728
2728
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -2745,32 +2745,32 @@ var ui = mt.exports, fi = Error, di = EvalError, pi = RangeError, hi = Reference
|
|
|
2745
2745
|
return !1;
|
|
2746
2746
|
}
|
|
2747
2747
|
return !0;
|
|
2748
|
-
}, Kr = typeof Symbol < "u" && Symbol,
|
|
2749
|
-
return typeof Kr != "function" || typeof Symbol != "function" || typeof Kr("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 :
|
|
2750
|
-
},
|
|
2748
|
+
}, Kr = typeof Symbol < "u" && Symbol, bi = gi, vi = function() {
|
|
2749
|
+
return typeof Kr != "function" || typeof Symbol != "function" || typeof Kr("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : bi();
|
|
2750
|
+
}, At = {
|
|
2751
2751
|
__proto__: null,
|
|
2752
2752
|
foo: {}
|
|
2753
|
-
},
|
|
2754
|
-
return { __proto__:
|
|
2755
|
-
},
|
|
2753
|
+
}, xi = Object, $i = function() {
|
|
2754
|
+
return { __proto__: At }.foo === At.foo && !(At instanceof xi);
|
|
2755
|
+
}, ji = "Function.prototype.bind called on incompatible ", wi = Object.prototype.toString, Si = Math.max, Ti = "[object Function]", Qr = function(t, r) {
|
|
2756
2756
|
for (var n = [], s = 0; s < t.length; s += 1)
|
|
2757
2757
|
n[s] = t[s];
|
|
2758
2758
|
for (var a = 0; a < r.length; a += 1)
|
|
2759
2759
|
n[a + t.length] = r[a];
|
|
2760
2760
|
return n;
|
|
2761
|
-
},
|
|
2761
|
+
}, Oi = function(t, r) {
|
|
2762
2762
|
for (var n = [], s = r, a = 0; s < t.length; s += 1, a += 1)
|
|
2763
2763
|
n[a] = t[s];
|
|
2764
2764
|
return n;
|
|
2765
|
-
},
|
|
2765
|
+
}, Ci = function(e, t) {
|
|
2766
2766
|
for (var r = "", n = 0; n < e.length; n += 1)
|
|
2767
2767
|
r += e[n], n + 1 < e.length && (r += t);
|
|
2768
2768
|
return r;
|
|
2769
|
-
},
|
|
2769
|
+
}, Pi = function(t) {
|
|
2770
2770
|
var r = this;
|
|
2771
|
-
if (typeof r != "function" ||
|
|
2772
|
-
throw new TypeError(
|
|
2773
|
-
for (var n =
|
|
2771
|
+
if (typeof r != "function" || wi.apply(r) !== Ti)
|
|
2772
|
+
throw new TypeError(ji + r);
|
|
2773
|
+
for (var n = Oi(arguments, 1), s, a = function() {
|
|
2774
2774
|
if (this instanceof s) {
|
|
2775
2775
|
var f = r.apply(
|
|
2776
2776
|
this,
|
|
@@ -2782,17 +2782,17 @@ var ui = mt.exports, fi = Error, di = EvalError, pi = RangeError, hi = Reference
|
|
|
2782
2782
|
t,
|
|
2783
2783
|
Qr(n, arguments)
|
|
2784
2784
|
);
|
|
2785
|
-
}, o =
|
|
2785
|
+
}, o = Si(0, r.length - n.length), i = [], c = 0; c < o; c++)
|
|
2786
2786
|
i[c] = "$" + c;
|
|
2787
|
-
if (s = Function("binder", "return function (" +
|
|
2787
|
+
if (s = Function("binder", "return function (" + Ci(i, ",") + "){ return binder.apply(this,arguments); }")(a), r.prototype) {
|
|
2788
2788
|
var l = function() {
|
|
2789
2789
|
};
|
|
2790
2790
|
l.prototype = r.prototype, s.prototype = new l(), l.prototype = null;
|
|
2791
2791
|
}
|
|
2792
2792
|
return s;
|
|
2793
|
-
},
|
|
2793
|
+
}, Ni = Pi, yr = Function.prototype.bind || Ni, Ei = Function.prototype.call, ki = Object.prototype.hasOwnProperty, Ri = yr, Ai = Ri.call(Ei, ki), N, Ii = di, qi = pi, _i = hi, Fi = mi, Ie = eo, ke = Qe, Li = yi, to = Function, It = function(e) {
|
|
2794
2794
|
try {
|
|
2795
|
-
return
|
|
2795
|
+
return to('"use strict"; return (' + e + ").constructor;")();
|
|
2796
2796
|
} catch {
|
|
2797
2797
|
}
|
|
2798
2798
|
}, Se = Object.getOwnPropertyDescriptor;
|
|
@@ -2802,21 +2802,21 @@ if (Se)
|
|
|
2802
2802
|
} catch {
|
|
2803
2803
|
Se = null;
|
|
2804
2804
|
}
|
|
2805
|
-
var
|
|
2805
|
+
var qt = function() {
|
|
2806
2806
|
throw new ke();
|
|
2807
|
-
},
|
|
2807
|
+
}, Ui = Se ? function() {
|
|
2808
2808
|
try {
|
|
2809
|
-
return arguments.callee,
|
|
2809
|
+
return arguments.callee, qt;
|
|
2810
2810
|
} catch {
|
|
2811
2811
|
try {
|
|
2812
2812
|
return Se(arguments, "callee").get;
|
|
2813
2813
|
} catch {
|
|
2814
|
-
return
|
|
2814
|
+
return qt;
|
|
2815
2815
|
}
|
|
2816
2816
|
}
|
|
2817
|
-
}() :
|
|
2817
|
+
}() : qt, Ce = vi(), Mi = $i(), z = Object.getPrototypeOf || (Mi ? function(e) {
|
|
2818
2818
|
return e.__proto__;
|
|
2819
|
-
} : null), Ne = {},
|
|
2819
|
+
} : null), Ne = {}, Hi = typeof Uint8Array > "u" || !z ? N : z(Uint8Array), Te = {
|
|
2820
2820
|
__proto__: null,
|
|
2821
2821
|
"%AggregateError%": typeof AggregateError > "u" ? N : AggregateError,
|
|
2822
2822
|
"%Array%": Array,
|
|
@@ -2838,14 +2838,14 @@ var It = function() {
|
|
|
2838
2838
|
"%decodeURIComponent%": decodeURIComponent,
|
|
2839
2839
|
"%encodeURI%": encodeURI,
|
|
2840
2840
|
"%encodeURIComponent%": encodeURIComponent,
|
|
2841
|
-
"%Error%":
|
|
2841
|
+
"%Error%": Ii,
|
|
2842
2842
|
"%eval%": eval,
|
|
2843
2843
|
// eslint-disable-line no-eval
|
|
2844
|
-
"%EvalError%":
|
|
2844
|
+
"%EvalError%": qi,
|
|
2845
2845
|
"%Float32Array%": typeof Float32Array > "u" ? N : Float32Array,
|
|
2846
2846
|
"%Float64Array%": typeof Float64Array > "u" ? N : Float64Array,
|
|
2847
2847
|
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? N : FinalizationRegistry,
|
|
2848
|
-
"%Function%":
|
|
2848
|
+
"%Function%": to,
|
|
2849
2849
|
"%GeneratorFunction%": Ne,
|
|
2850
2850
|
"%Int8Array%": typeof Int8Array > "u" ? N : Int8Array,
|
|
2851
2851
|
"%Int16Array%": typeof Int16Array > "u" ? N : Int16Array,
|
|
@@ -2863,8 +2863,8 @@ var It = function() {
|
|
|
2863
2863
|
"%parseInt%": parseInt,
|
|
2864
2864
|
"%Promise%": typeof Promise > "u" ? N : Promise,
|
|
2865
2865
|
"%Proxy%": typeof Proxy > "u" ? N : Proxy,
|
|
2866
|
-
"%RangeError%":
|
|
2867
|
-
"%ReferenceError%":
|
|
2866
|
+
"%RangeError%": _i,
|
|
2867
|
+
"%ReferenceError%": Fi,
|
|
2868
2868
|
"%Reflect%": typeof Reflect > "u" ? N : Reflect,
|
|
2869
2869
|
"%RegExp%": RegExp,
|
|
2870
2870
|
"%Set%": typeof Set > "u" ? N : Set,
|
|
@@ -2874,14 +2874,14 @@ var It = function() {
|
|
|
2874
2874
|
"%StringIteratorPrototype%": Ce && z ? z(""[Symbol.iterator]()) : N,
|
|
2875
2875
|
"%Symbol%": Ce ? Symbol : N,
|
|
2876
2876
|
"%SyntaxError%": Ie,
|
|
2877
|
-
"%ThrowTypeError%":
|
|
2878
|
-
"%TypedArray%":
|
|
2877
|
+
"%ThrowTypeError%": Ui,
|
|
2878
|
+
"%TypedArray%": Hi,
|
|
2879
2879
|
"%TypeError%": ke,
|
|
2880
2880
|
"%Uint8Array%": typeof Uint8Array > "u" ? N : Uint8Array,
|
|
2881
2881
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? N : Uint8ClampedArray,
|
|
2882
2882
|
"%Uint16Array%": typeof Uint16Array > "u" ? N : Uint16Array,
|
|
2883
2883
|
"%Uint32Array%": typeof Uint32Array > "u" ? N : Uint32Array,
|
|
2884
|
-
"%URIError%":
|
|
2884
|
+
"%URIError%": Li,
|
|
2885
2885
|
"%WeakMap%": typeof WeakMap > "u" ? N : WeakMap,
|
|
2886
2886
|
"%WeakRef%": typeof WeakRef > "u" ? N : WeakRef,
|
|
2887
2887
|
"%WeakSet%": typeof WeakSet > "u" ? N : WeakSet
|
|
@@ -2890,17 +2890,17 @@ if (z)
|
|
|
2890
2890
|
try {
|
|
2891
2891
|
null.error;
|
|
2892
2892
|
} catch (e) {
|
|
2893
|
-
var
|
|
2894
|
-
Te["%Error.prototype%"] =
|
|
2893
|
+
var Bi = z(z(e));
|
|
2894
|
+
Te["%Error.prototype%"] = Bi;
|
|
2895
2895
|
}
|
|
2896
|
-
var
|
|
2896
|
+
var Di = function e(t) {
|
|
2897
2897
|
var r;
|
|
2898
2898
|
if (t === "%AsyncFunction%")
|
|
2899
|
-
r =
|
|
2899
|
+
r = It("async function () {}");
|
|
2900
2900
|
else if (t === "%GeneratorFunction%")
|
|
2901
|
-
r =
|
|
2901
|
+
r = It("function* () {}");
|
|
2902
2902
|
else if (t === "%AsyncGeneratorFunction%")
|
|
2903
|
-
r =
|
|
2903
|
+
r = It("async function* () {}");
|
|
2904
2904
|
else if (t === "%AsyncGenerator%") {
|
|
2905
2905
|
var n = e("%AsyncGeneratorFunction%");
|
|
2906
2906
|
n && (r = n.prototype);
|
|
@@ -2962,21 +2962,21 @@ var Bi = function e(t) {
|
|
|
2962
2962
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
2963
2963
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
2964
2964
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
2965
|
-
}, Ye = yr, yt =
|
|
2965
|
+
}, Ye = yr, yt = Ai, Wi = Ye.call(Function.call, Array.prototype.concat), zi = Ye.call(Function.apply, Array.prototype.splice), Xr = Ye.call(Function.call, String.prototype.replace), gt = Ye.call(Function.call, String.prototype.slice), Gi = Ye.call(Function.call, RegExp.prototype.exec), Vi = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Ji = /\\(\\)?/g, Ki = function(t) {
|
|
2966
2966
|
var r = gt(t, 0, 1), n = gt(t, -1);
|
|
2967
2967
|
if (r === "%" && n !== "%")
|
|
2968
2968
|
throw new Ie("invalid intrinsic syntax, expected closing `%`");
|
|
2969
2969
|
if (n === "%" && r !== "%")
|
|
2970
2970
|
throw new Ie("invalid intrinsic syntax, expected opening `%`");
|
|
2971
2971
|
var s = [];
|
|
2972
|
-
return Xr(t,
|
|
2973
|
-
s[s.length] = i ? Xr(c,
|
|
2972
|
+
return Xr(t, Vi, function(a, o, i, c) {
|
|
2973
|
+
s[s.length] = i ? Xr(c, Ji, "$1") : o || a;
|
|
2974
2974
|
}), s;
|
|
2975
|
-
},
|
|
2975
|
+
}, Qi = function(t, r) {
|
|
2976
2976
|
var n = t, s;
|
|
2977
2977
|
if (yt(Yr, n) && (s = Yr[n], n = "%" + s[0] + "%"), yt(Te, n)) {
|
|
2978
2978
|
var a = Te[n];
|
|
2979
|
-
if (a === Ne && (a =
|
|
2979
|
+
if (a === Ne && (a = Di(n)), typeof a > "u" && !r)
|
|
2980
2980
|
throw new ke("intrinsic " + t + " exists, but is not available. Please file an issue!");
|
|
2981
2981
|
return {
|
|
2982
2982
|
alias: s,
|
|
@@ -2990,10 +2990,10 @@ var Bi = function e(t) {
|
|
|
2990
2990
|
throw new ke("intrinsic name must be a non-empty string");
|
|
2991
2991
|
if (arguments.length > 1 && typeof r != "boolean")
|
|
2992
2992
|
throw new ke('"allowMissing" argument must be a boolean');
|
|
2993
|
-
if (
|
|
2993
|
+
if (Gi(/^%?[^%]*%?$/, t) === null)
|
|
2994
2994
|
throw new Ie("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
2995
|
-
var n =
|
|
2996
|
-
l && (s = l[0],
|
|
2995
|
+
var n = Ki(t), s = n.length > 0 ? n[0] : "", a = Qi("%" + s + "%", r), o = a.name, i = a.value, c = !1, l = a.alias;
|
|
2996
|
+
l && (s = l[0], zi(n, Wi([0, 1], l)));
|
|
2997
2997
|
for (var f = 1, p = !0; f < n.length; f += 1) {
|
|
2998
2998
|
var d = n[f], h = gt(d, 0, 1), m = gt(d, -1);
|
|
2999
2999
|
if ((h === '"' || h === "'" || h === "`" || m === '"' || m === "'" || m === "`") && h !== m)
|
|
@@ -3015,9 +3015,9 @@ var Bi = function e(t) {
|
|
|
3015
3015
|
}
|
|
3016
3016
|
}
|
|
3017
3017
|
return i;
|
|
3018
|
-
},
|
|
3018
|
+
}, ro = { exports: {} }, _t, Zr;
|
|
3019
3019
|
function gr() {
|
|
3020
|
-
if (Zr) return
|
|
3020
|
+
if (Zr) return _t;
|
|
3021
3021
|
Zr = 1;
|
|
3022
3022
|
var e = Le, t = e("%Object.defineProperty%", !0) || !1;
|
|
3023
3023
|
if (t)
|
|
@@ -3026,16 +3026,16 @@ function gr() {
|
|
|
3026
3026
|
} catch {
|
|
3027
3027
|
t = !1;
|
|
3028
3028
|
}
|
|
3029
|
-
return
|
|
3029
|
+
return _t = t, _t;
|
|
3030
3030
|
}
|
|
3031
|
-
var
|
|
3031
|
+
var Yi = Le, it = Yi("%Object.getOwnPropertyDescriptor%", !0);
|
|
3032
3032
|
if (it)
|
|
3033
3033
|
try {
|
|
3034
3034
|
it([], "length");
|
|
3035
3035
|
} catch {
|
|
3036
3036
|
it = null;
|
|
3037
3037
|
}
|
|
3038
|
-
var
|
|
3038
|
+
var no = it, en = gr(), Xi = eo, Pe = Qe, tn = no, Zi = function(t, r, n) {
|
|
3039
3039
|
if (!t || typeof t != "object" && typeof t != "function")
|
|
3040
3040
|
throw new Pe("`obj` must be an object or a function`");
|
|
3041
3041
|
if (typeof r != "string" && typeof r != "symbol")
|
|
@@ -3059,30 +3059,30 @@ var ro = it, en = gr(), Yi = Zn, Pe = Qe, tn = ro, Xi = function(t, r, n) {
|
|
|
3059
3059
|
else if (i || !s && !a && !o)
|
|
3060
3060
|
t[r] = n;
|
|
3061
3061
|
else
|
|
3062
|
-
throw new
|
|
3063
|
-
},
|
|
3064
|
-
return !!
|
|
3062
|
+
throw new Xi("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
3063
|
+
}, Kt = gr(), oo = function() {
|
|
3064
|
+
return !!Kt;
|
|
3065
3065
|
};
|
|
3066
|
-
|
|
3067
|
-
if (!
|
|
3066
|
+
oo.hasArrayLengthDefineBug = function() {
|
|
3067
|
+
if (!Kt)
|
|
3068
3068
|
return null;
|
|
3069
3069
|
try {
|
|
3070
|
-
return
|
|
3070
|
+
return Kt([], "length", { value: 1 }).length !== 1;
|
|
3071
3071
|
} catch {
|
|
3072
3072
|
return !0;
|
|
3073
3073
|
}
|
|
3074
3074
|
};
|
|
3075
|
-
var
|
|
3075
|
+
var ec = oo, tc = Le, rn = Zi, rc = ec(), nn = no, on = Qe, nc = tc("%Math.floor%"), oc = function(t, r) {
|
|
3076
3076
|
if (typeof t != "function")
|
|
3077
3077
|
throw new on("`fn` is not a function");
|
|
3078
|
-
if (typeof r != "number" || r < 0 || r > 4294967295 ||
|
|
3078
|
+
if (typeof r != "number" || r < 0 || r > 4294967295 || nc(r) !== r)
|
|
3079
3079
|
throw new on("`length` must be a positive 32-bit integer");
|
|
3080
3080
|
var n = arguments.length > 2 && !!arguments[2], s = !0, a = !0;
|
|
3081
3081
|
if ("length" in t && nn) {
|
|
3082
3082
|
var o = nn(t, "length");
|
|
3083
3083
|
o && !o.configurable && (s = !1), o && !o.writable && (a = !1);
|
|
3084
3084
|
}
|
|
3085
|
-
return (s || a || !n) && (
|
|
3085
|
+
return (s || a || !n) && (rc ? rn(
|
|
3086
3086
|
/** @type {Parameters<define>[0]} */
|
|
3087
3087
|
t,
|
|
3088
3088
|
"length",
|
|
@@ -3097,7 +3097,7 @@ var Zi = no, ec = Le, rn = Xi, tc = Zi(), nn = ro, on = Qe, rc = ec("%Math.floor
|
|
|
3097
3097
|
)), t;
|
|
3098
3098
|
};
|
|
3099
3099
|
(function(e) {
|
|
3100
|
-
var t = yr, r = Le, n =
|
|
3100
|
+
var t = yr, r = Le, n = oc, s = Qe, a = r("%Function.prototype.apply%"), o = r("%Function.prototype.call%"), i = r("%Reflect.apply%", !0) || t.call(o, a), c = gr(), l = r("%Math.max%");
|
|
3101
3101
|
e.exports = function(d) {
|
|
3102
3102
|
if (typeof d != "function")
|
|
3103
3103
|
throw new s("a function is required");
|
|
@@ -3112,32 +3112,32 @@ var Zi = no, ec = Le, rn = Xi, tc = Zi(), nn = ro, on = Qe, rc = ec("%Math.floor
|
|
|
3112
3112
|
return i(t, a, arguments);
|
|
3113
3113
|
};
|
|
3114
3114
|
c ? c(e.exports, "apply", { value: f }) : e.exports.apply = f;
|
|
3115
|
-
})(
|
|
3116
|
-
var
|
|
3117
|
-
var n =
|
|
3118
|
-
return typeof n == "function" &&
|
|
3115
|
+
})(ro);
|
|
3116
|
+
var ac = ro.exports, ao = Le, so = ac, sc = so(ao("String.prototype.indexOf")), ic = function(t, r) {
|
|
3117
|
+
var n = ao(t, !!r);
|
|
3118
|
+
return typeof n == "function" && sc(t, ".prototype.") > -1 ? so(n) : n;
|
|
3119
3119
|
};
|
|
3120
|
-
const
|
|
3120
|
+
const cc = {}, lc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3121
3121
|
__proto__: null,
|
|
3122
|
-
default:
|
|
3123
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3124
|
-
var
|
|
3122
|
+
default: cc
|
|
3123
|
+
}, Symbol.toStringTag, { value: "Module" })), uc = /* @__PURE__ */ ja(lc);
|
|
3124
|
+
var br = typeof Map == "function" && Map.prototype, Ft = Object.getOwnPropertyDescriptor && br ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, bt = br && Ft && typeof Ft.get == "function" ? Ft.get : null, an = br && Map.prototype.forEach, vr = typeof Set == "function" && Set.prototype, Lt = Object.getOwnPropertyDescriptor && vr ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, vt = vr && Lt && typeof Lt.get == "function" ? Lt.get : null, sn = vr && Set.prototype.forEach, fc = typeof WeakMap == "function" && WeakMap.prototype, De = fc ? WeakMap.prototype.has : null, dc = typeof WeakSet == "function" && WeakSet.prototype, We = dc ? WeakSet.prototype.has : null, pc = typeof WeakRef == "function" && WeakRef.prototype, cn = pc ? WeakRef.prototype.deref : null, hc = Boolean.prototype.valueOf, mc = Object.prototype.toString, yc = Function.prototype.toString, gc = String.prototype.match, xr = String.prototype.slice, be = String.prototype.replace, bc = String.prototype.toUpperCase, ln = String.prototype.toLowerCase, io = RegExp.prototype.test, un = Array.prototype.concat, de = Array.prototype.join, vc = Array.prototype.slice, fn = Math.floor, Qt = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Ut = Object.getOwnPropertySymbols, Yt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, qe = typeof Symbol == "function" && typeof Symbol.iterator == "object", Z = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === qe || !0) ? Symbol.toStringTag : null, co = Object.prototype.propertyIsEnumerable, dn = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(e) {
|
|
3125
3125
|
return e.__proto__;
|
|
3126
3126
|
} : null);
|
|
3127
3127
|
function pn(e, t) {
|
|
3128
|
-
if (e === 1 / 0 || e === -1 / 0 || e !== e || e && e > -1e3 && e < 1e3 ||
|
|
3128
|
+
if (e === 1 / 0 || e === -1 / 0 || e !== e || e && e > -1e3 && e < 1e3 || io.call(/e/, t))
|
|
3129
3129
|
return t;
|
|
3130
3130
|
var r = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
3131
3131
|
if (typeof e == "number") {
|
|
3132
3132
|
var n = e < 0 ? -fn(-e) : fn(e);
|
|
3133
3133
|
if (n !== e) {
|
|
3134
3134
|
var s = String(n), a = xr.call(t, s.length + 1);
|
|
3135
|
-
return
|
|
3135
|
+
return be.call(s, r, "$&_") + "." + be.call(be.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
3136
3136
|
}
|
|
3137
3137
|
}
|
|
3138
|
-
return
|
|
3138
|
+
return be.call(t, r, "$&_");
|
|
3139
3139
|
}
|
|
3140
|
-
var
|
|
3140
|
+
var Xt = uc, hn = Xt.custom, mn = uo(hn) ? hn : null, xc = function e(t, r, n, s) {
|
|
3141
3141
|
var a = r || {};
|
|
3142
3142
|
if (ge(a, "quoteStyle") && a.quoteStyle !== "single" && a.quoteStyle !== "double")
|
|
3143
3143
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
@@ -3158,7 +3158,7 @@ var Yt = lc, hn = Yt.custom, mn = lo(hn) ? hn : null, bc = function e(t, r, n, s
|
|
|
3158
3158
|
if (typeof t == "boolean")
|
|
3159
3159
|
return t ? "true" : "false";
|
|
3160
3160
|
if (typeof t == "string")
|
|
3161
|
-
return
|
|
3161
|
+
return po(t, a);
|
|
3162
3162
|
if (typeof t == "number") {
|
|
3163
3163
|
if (t === 0)
|
|
3164
3164
|
return 1 / 0 / t > 0 ? "0" : "-0";
|
|
@@ -3171,11 +3171,11 @@ var Yt = lc, hn = Yt.custom, mn = lo(hn) ? hn : null, bc = function e(t, r, n, s
|
|
|
3171
3171
|
}
|
|
3172
3172
|
var f = typeof a.depth > "u" ? 5 : a.depth;
|
|
3173
3173
|
if (typeof n > "u" && (n = 0), n >= f && f > 0 && typeof t == "object")
|
|
3174
|
-
return
|
|
3175
|
-
var p =
|
|
3174
|
+
return Zt(t) ? "[Array]" : "[Object]";
|
|
3175
|
+
var p = Lc(a, n);
|
|
3176
3176
|
if (typeof s > "u")
|
|
3177
3177
|
s = [];
|
|
3178
|
-
else if (
|
|
3178
|
+
else if (fo(s, t) >= 0)
|
|
3179
3179
|
return "[Circular]";
|
|
3180
3180
|
function d(F, D, B) {
|
|
3181
3181
|
if (D && (s = vc.call(s), s.push(D)), B) {
|
|
@@ -3187,136 +3187,136 @@ var Yt = lc, hn = Yt.custom, mn = lo(hn) ? hn : null, bc = function e(t, r, n, s
|
|
|
3187
3187
|
return e(F, a, n + 1, s);
|
|
3188
3188
|
}
|
|
3189
3189
|
if (typeof t == "function" && !yn(t)) {
|
|
3190
|
-
var h =
|
|
3190
|
+
var h = Nc(t), m = et(t, d);
|
|
3191
3191
|
return "[Function" + (h ? ": " + h : " (anonymous)") + "]" + (m.length > 0 ? " { " + de.call(m, ", ") + " }" : "");
|
|
3192
3192
|
}
|
|
3193
|
-
if (
|
|
3194
|
-
var g = qe ?
|
|
3193
|
+
if (uo(t)) {
|
|
3194
|
+
var g = qe ? be.call(String(t), /^(Symbol\(.*\))_[^)]*$/, "$1") : Yt.call(t);
|
|
3195
3195
|
return typeof t == "object" && !qe ? Me(g) : g;
|
|
3196
3196
|
}
|
|
3197
|
-
if (
|
|
3198
|
-
for (var
|
|
3199
|
-
|
|
3200
|
-
return
|
|
3197
|
+
if (qc(t)) {
|
|
3198
|
+
for (var b = "<" + ln.call(String(t.nodeName)), v = t.attributes || [], y = 0; y < v.length; y++)
|
|
3199
|
+
b += " " + v[y].name + "=" + lo($c(v[y].value), "double", a);
|
|
3200
|
+
return b += ">", t.childNodes && t.childNodes.length && (b += "..."), b += "</" + ln.call(String(t.nodeName)) + ">", b;
|
|
3201
3201
|
}
|
|
3202
|
-
if (
|
|
3202
|
+
if (Zt(t)) {
|
|
3203
3203
|
if (t.length === 0)
|
|
3204
3204
|
return "[]";
|
|
3205
3205
|
var x = et(t, d);
|
|
3206
|
-
return p && !
|
|
3206
|
+
return p && !Fc(x) ? "[" + er(x, p) + "]" : "[ " + de.call(x, ", ") + " ]";
|
|
3207
3207
|
}
|
|
3208
|
-
if (
|
|
3208
|
+
if (wc(t)) {
|
|
3209
3209
|
var T = et(t, d);
|
|
3210
|
-
return !("cause" in Error.prototype) && "cause" in t && !
|
|
3210
|
+
return !("cause" in Error.prototype) && "cause" in t && !co.call(t, "cause") ? "{ [" + String(t) + "] " + de.call(un.call("[cause]: " + d(t.cause), T), ", ") + " }" : T.length === 0 ? "[" + String(t) + "]" : "{ [" + String(t) + "] " + de.call(T, ", ") + " }";
|
|
3211
3211
|
}
|
|
3212
3212
|
if (typeof t == "object" && o) {
|
|
3213
|
-
if (mn && typeof t[mn] == "function" &&
|
|
3214
|
-
return
|
|
3213
|
+
if (mn && typeof t[mn] == "function" && Xt)
|
|
3214
|
+
return Xt(t, { depth: f - n });
|
|
3215
3215
|
if (o !== "symbol" && typeof t.inspect == "function")
|
|
3216
3216
|
return t.inspect();
|
|
3217
3217
|
}
|
|
3218
|
-
if (
|
|
3218
|
+
if (Ec(t)) {
|
|
3219
3219
|
var $ = [];
|
|
3220
3220
|
return an && an.call(t, function(F, D) {
|
|
3221
3221
|
$.push(d(D, t, !0) + " => " + d(F, t));
|
|
3222
|
-
}), gn("Map",
|
|
3222
|
+
}), gn("Map", bt.call(t), $, p);
|
|
3223
3223
|
}
|
|
3224
|
-
if (
|
|
3224
|
+
if (Ac(t)) {
|
|
3225
3225
|
var O = [];
|
|
3226
3226
|
return sn && sn.call(t, function(F) {
|
|
3227
3227
|
O.push(d(F, t));
|
|
3228
|
-
}), gn("Set",
|
|
3228
|
+
}), gn("Set", vt.call(t), O, p);
|
|
3229
3229
|
}
|
|
3230
|
-
if (Ec(t))
|
|
3231
|
-
return Ut("WeakMap");
|
|
3232
|
-
if (Ac(t))
|
|
3233
|
-
return Ut("WeakSet");
|
|
3234
3230
|
if (kc(t))
|
|
3235
|
-
return
|
|
3236
|
-
if (
|
|
3231
|
+
return Mt("WeakMap");
|
|
3232
|
+
if (Ic(t))
|
|
3233
|
+
return Mt("WeakSet");
|
|
3234
|
+
if (Rc(t))
|
|
3235
|
+
return Mt("WeakRef");
|
|
3236
|
+
if (Tc(t))
|
|
3237
3237
|
return Me(d(Number(t)));
|
|
3238
|
+
if (Cc(t))
|
|
3239
|
+
return Me(d(Qt.call(t)));
|
|
3238
3240
|
if (Oc(t))
|
|
3239
|
-
return Me(
|
|
3240
|
-
if (
|
|
3241
|
-
return Me(pc.call(t));
|
|
3242
|
-
if (wc(t))
|
|
3241
|
+
return Me(hc.call(t));
|
|
3242
|
+
if (Sc(t))
|
|
3243
3243
|
return Me(d(String(t)));
|
|
3244
3244
|
if (typeof window < "u" && t === window)
|
|
3245
3245
|
return "{ [object Window] }";
|
|
3246
3246
|
if (t === ot)
|
|
3247
3247
|
return "{ [object globalThis] }";
|
|
3248
|
-
if (
|
|
3249
|
-
var w = et(t, d), C = dn ? dn(t) === Object.prototype : t instanceof Object || t.constructor === Object, R = t instanceof Object ? "" : "null prototype", q = !C && Z && Object(t) === t && Z in t ? xr.call(
|
|
3250
|
-
return w.length === 0 ? Q + "{}" : p ? Q + "{" +
|
|
3248
|
+
if (!jc(t) && !yn(t)) {
|
|
3249
|
+
var w = et(t, d), C = dn ? dn(t) === Object.prototype : t instanceof Object || t.constructor === Object, R = t instanceof Object ? "" : "null prototype", q = !C && Z && Object(t) === t && Z in t ? xr.call(ve(t), 8, -1) : R ? "Object" : "", U = C || typeof t.constructor != "function" ? "" : t.constructor.name ? t.constructor.name + " " : "", Q = U + (q || R ? "[" + de.call(un.call([], q || [], R || []), ": ") + "] " : "");
|
|
3250
|
+
return w.length === 0 ? Q + "{}" : p ? Q + "{" + er(w, p) + "}" : Q + "{ " + de.call(w, ", ") + " }";
|
|
3251
3251
|
}
|
|
3252
3252
|
return String(t);
|
|
3253
3253
|
};
|
|
3254
|
-
function
|
|
3254
|
+
function lo(e, t, r) {
|
|
3255
3255
|
var n = (r.quoteStyle || t) === "double" ? '"' : "'";
|
|
3256
3256
|
return n + e + n;
|
|
3257
3257
|
}
|
|
3258
|
-
function xc(e) {
|
|
3259
|
-
return ve.call(String(e), /"/g, """);
|
|
3260
|
-
}
|
|
3261
|
-
function Xt(e) {
|
|
3262
|
-
return be(e) === "[object Array]" && (!Z || !(typeof e == "object" && Z in e));
|
|
3263
|
-
}
|
|
3264
3258
|
function $c(e) {
|
|
3265
|
-
return be(e)
|
|
3259
|
+
return be.call(String(e), /"/g, """);
|
|
3266
3260
|
}
|
|
3267
|
-
function
|
|
3268
|
-
return
|
|
3261
|
+
function Zt(e) {
|
|
3262
|
+
return ve(e) === "[object Array]" && (!Z || !(typeof e == "object" && Z in e));
|
|
3269
3263
|
}
|
|
3270
3264
|
function jc(e) {
|
|
3271
|
-
return
|
|
3265
|
+
return ve(e) === "[object Date]" && (!Z || !(typeof e == "object" && Z in e));
|
|
3266
|
+
}
|
|
3267
|
+
function yn(e) {
|
|
3268
|
+
return ve(e) === "[object RegExp]" && (!Z || !(typeof e == "object" && Z in e));
|
|
3272
3269
|
}
|
|
3273
3270
|
function wc(e) {
|
|
3274
|
-
return
|
|
3271
|
+
return ve(e) === "[object Error]" && (!Z || !(typeof e == "object" && Z in e));
|
|
3275
3272
|
}
|
|
3276
3273
|
function Sc(e) {
|
|
3277
|
-
return
|
|
3274
|
+
return ve(e) === "[object String]" && (!Z || !(typeof e == "object" && Z in e));
|
|
3278
3275
|
}
|
|
3279
3276
|
function Tc(e) {
|
|
3280
|
-
return
|
|
3277
|
+
return ve(e) === "[object Number]" && (!Z || !(typeof e == "object" && Z in e));
|
|
3278
|
+
}
|
|
3279
|
+
function Oc(e) {
|
|
3280
|
+
return ve(e) === "[object Boolean]" && (!Z || !(typeof e == "object" && Z in e));
|
|
3281
3281
|
}
|
|
3282
|
-
function
|
|
3282
|
+
function uo(e) {
|
|
3283
3283
|
if (qe)
|
|
3284
3284
|
return e && typeof e == "object" && e instanceof Symbol;
|
|
3285
3285
|
if (typeof e == "symbol")
|
|
3286
3286
|
return !0;
|
|
3287
|
-
if (!e || typeof e != "object" || !
|
|
3287
|
+
if (!e || typeof e != "object" || !Yt)
|
|
3288
3288
|
return !1;
|
|
3289
3289
|
try {
|
|
3290
|
-
return
|
|
3290
|
+
return Yt.call(e), !0;
|
|
3291
3291
|
} catch {
|
|
3292
3292
|
}
|
|
3293
3293
|
return !1;
|
|
3294
3294
|
}
|
|
3295
|
-
function
|
|
3296
|
-
if (!e || typeof e != "object" || !
|
|
3295
|
+
function Cc(e) {
|
|
3296
|
+
if (!e || typeof e != "object" || !Qt)
|
|
3297
3297
|
return !1;
|
|
3298
3298
|
try {
|
|
3299
|
-
return
|
|
3299
|
+
return Qt.call(e), !0;
|
|
3300
3300
|
} catch {
|
|
3301
3301
|
}
|
|
3302
3302
|
return !1;
|
|
3303
3303
|
}
|
|
3304
|
-
var
|
|
3304
|
+
var Pc = Object.prototype.hasOwnProperty || function(e) {
|
|
3305
3305
|
return e in this;
|
|
3306
3306
|
};
|
|
3307
3307
|
function ge(e, t) {
|
|
3308
|
-
return
|
|
3308
|
+
return Pc.call(e, t);
|
|
3309
3309
|
}
|
|
3310
|
-
function
|
|
3311
|
-
return
|
|
3310
|
+
function ve(e) {
|
|
3311
|
+
return mc.call(e);
|
|
3312
3312
|
}
|
|
3313
|
-
function
|
|
3313
|
+
function Nc(e) {
|
|
3314
3314
|
if (e.name)
|
|
3315
3315
|
return e.name;
|
|
3316
|
-
var t =
|
|
3316
|
+
var t = gc.call(yc.call(e), /^function\s*([\w$]+)/);
|
|
3317
3317
|
return t ? t[1] : null;
|
|
3318
3318
|
}
|
|
3319
|
-
function
|
|
3319
|
+
function fo(e, t) {
|
|
3320
3320
|
if (e.indexOf)
|
|
3321
3321
|
return e.indexOf(t);
|
|
3322
3322
|
for (var r = 0, n = e.length; r < n; r++)
|
|
@@ -3324,13 +3324,13 @@ function uo(e, t) {
|
|
|
3324
3324
|
return r;
|
|
3325
3325
|
return -1;
|
|
3326
3326
|
}
|
|
3327
|
-
function
|
|
3328
|
-
if (!
|
|
3327
|
+
function Ec(e) {
|
|
3328
|
+
if (!bt || !e || typeof e != "object")
|
|
3329
3329
|
return !1;
|
|
3330
3330
|
try {
|
|
3331
|
-
|
|
3331
|
+
bt.call(e);
|
|
3332
3332
|
try {
|
|
3333
|
-
|
|
3333
|
+
vt.call(e);
|
|
3334
3334
|
} catch {
|
|
3335
3335
|
return !0;
|
|
3336
3336
|
}
|
|
@@ -3339,7 +3339,7 @@ function Nc(e) {
|
|
|
3339
3339
|
}
|
|
3340
3340
|
return !1;
|
|
3341
3341
|
}
|
|
3342
|
-
function
|
|
3342
|
+
function kc(e) {
|
|
3343
3343
|
if (!De || !e || typeof e != "object")
|
|
3344
3344
|
return !1;
|
|
3345
3345
|
try {
|
|
@@ -3354,7 +3354,7 @@ function Ec(e) {
|
|
|
3354
3354
|
}
|
|
3355
3355
|
return !1;
|
|
3356
3356
|
}
|
|
3357
|
-
function
|
|
3357
|
+
function Rc(e) {
|
|
3358
3358
|
if (!cn || !e || typeof e != "object")
|
|
3359
3359
|
return !1;
|
|
3360
3360
|
try {
|
|
@@ -3363,13 +3363,13 @@ function kc(e) {
|
|
|
3363
3363
|
}
|
|
3364
3364
|
return !1;
|
|
3365
3365
|
}
|
|
3366
|
-
function
|
|
3367
|
-
if (!
|
|
3366
|
+
function Ac(e) {
|
|
3367
|
+
if (!vt || !e || typeof e != "object")
|
|
3368
3368
|
return !1;
|
|
3369
3369
|
try {
|
|
3370
|
-
|
|
3370
|
+
vt.call(e);
|
|
3371
3371
|
try {
|
|
3372
|
-
|
|
3372
|
+
bt.call(e);
|
|
3373
3373
|
} catch {
|
|
3374
3374
|
return !0;
|
|
3375
3375
|
}
|
|
@@ -3378,7 +3378,7 @@ function Rc(e) {
|
|
|
3378
3378
|
}
|
|
3379
3379
|
return !1;
|
|
3380
3380
|
}
|
|
3381
|
-
function
|
|
3381
|
+
function Ic(e) {
|
|
3382
3382
|
if (!We || !e || typeof e != "object")
|
|
3383
3383
|
return !1;
|
|
3384
3384
|
try {
|
|
@@ -3393,18 +3393,18 @@ function Ac(e) {
|
|
|
3393
3393
|
}
|
|
3394
3394
|
return !1;
|
|
3395
3395
|
}
|
|
3396
|
-
function
|
|
3396
|
+
function qc(e) {
|
|
3397
3397
|
return !e || typeof e != "object" ? !1 : typeof HTMLElement < "u" && e instanceof HTMLElement ? !0 : typeof e.nodeName == "string" && typeof e.getAttribute == "function";
|
|
3398
3398
|
}
|
|
3399
|
-
function
|
|
3399
|
+
function po(e, t) {
|
|
3400
3400
|
if (e.length > t.maxStringLength) {
|
|
3401
3401
|
var r = e.length - t.maxStringLength, n = "... " + r + " more character" + (r > 1 ? "s" : "");
|
|
3402
|
-
return
|
|
3402
|
+
return po(xr.call(e, 0, t.maxStringLength), t) + n;
|
|
3403
3403
|
}
|
|
3404
|
-
var s =
|
|
3405
|
-
return
|
|
3404
|
+
var s = be.call(be.call(e, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, _c);
|
|
3405
|
+
return lo(s, "single", t);
|
|
3406
3406
|
}
|
|
3407
|
-
function
|
|
3407
|
+
function _c(e) {
|
|
3408
3408
|
var t = e.charCodeAt(0), r = {
|
|
3409
3409
|
8: "b",
|
|
3410
3410
|
9: "t",
|
|
@@ -3412,26 +3412,26 @@ function qc(e) {
|
|
|
3412
3412
|
12: "f",
|
|
3413
3413
|
13: "r"
|
|
3414
3414
|
}[t];
|
|
3415
|
-
return r ? "\\" + r : "\\x" + (t < 16 ? "0" : "") +
|
|
3415
|
+
return r ? "\\" + r : "\\x" + (t < 16 ? "0" : "") + bc.call(t.toString(16));
|
|
3416
3416
|
}
|
|
3417
3417
|
function Me(e) {
|
|
3418
3418
|
return "Object(" + e + ")";
|
|
3419
3419
|
}
|
|
3420
|
-
function
|
|
3420
|
+
function Mt(e) {
|
|
3421
3421
|
return e + " { ? }";
|
|
3422
3422
|
}
|
|
3423
3423
|
function gn(e, t, r, n) {
|
|
3424
|
-
var s = n ?
|
|
3424
|
+
var s = n ? er(r, n) : de.call(r, ", ");
|
|
3425
3425
|
return e + " (" + t + ") {" + s + "}";
|
|
3426
3426
|
}
|
|
3427
|
-
function
|
|
3427
|
+
function Fc(e) {
|
|
3428
3428
|
for (var t = 0; t < e.length; t++)
|
|
3429
|
-
if (
|
|
3429
|
+
if (fo(e[t], `
|
|
3430
3430
|
`) >= 0)
|
|
3431
3431
|
return !1;
|
|
3432
3432
|
return !0;
|
|
3433
3433
|
}
|
|
3434
|
-
function
|
|
3434
|
+
function Lc(e, t) {
|
|
3435
3435
|
var r;
|
|
3436
3436
|
if (e.indent === " ")
|
|
3437
3437
|
r = " ";
|
|
@@ -3444,7 +3444,7 @@ function Fc(e, t) {
|
|
|
3444
3444
|
prev: de.call(Array(t + 1), r)
|
|
3445
3445
|
};
|
|
3446
3446
|
}
|
|
3447
|
-
function
|
|
3447
|
+
function er(e, t) {
|
|
3448
3448
|
if (e.length === 0)
|
|
3449
3449
|
return "";
|
|
3450
3450
|
var r = `
|
|
@@ -3453,34 +3453,34 @@ function Zt(e, t) {
|
|
|
3453
3453
|
` + t.prev;
|
|
3454
3454
|
}
|
|
3455
3455
|
function et(e, t) {
|
|
3456
|
-
var r =
|
|
3456
|
+
var r = Zt(e), n = [];
|
|
3457
3457
|
if (r) {
|
|
3458
3458
|
n.length = e.length;
|
|
3459
3459
|
for (var s = 0; s < e.length; s++)
|
|
3460
3460
|
n[s] = ge(e, s) ? t(e[s], e) : "";
|
|
3461
3461
|
}
|
|
3462
|
-
var a = typeof
|
|
3462
|
+
var a = typeof Ut == "function" ? Ut(e) : [], o;
|
|
3463
3463
|
if (qe) {
|
|
3464
3464
|
o = {};
|
|
3465
3465
|
for (var i = 0; i < a.length; i++)
|
|
3466
3466
|
o["$" + a[i]] = a[i];
|
|
3467
3467
|
}
|
|
3468
3468
|
for (var c in e)
|
|
3469
|
-
ge(e, c) && (r && String(Number(c)) === c && c < e.length || qe && o["$" + c] instanceof Symbol || (
|
|
3470
|
-
if (typeof
|
|
3469
|
+
ge(e, c) && (r && String(Number(c)) === c && c < e.length || qe && o["$" + c] instanceof Symbol || (io.call(/[^\w$]/, c) ? n.push(t(c, e) + ": " + t(e[c], e)) : n.push(c + ": " + t(e[c], e))));
|
|
3470
|
+
if (typeof Ut == "function")
|
|
3471
3471
|
for (var l = 0; l < a.length; l++)
|
|
3472
|
-
|
|
3472
|
+
co.call(e, a[l]) && n.push("[" + t(a[l]) + "]: " + t(e[a[l]], e));
|
|
3473
3473
|
return n;
|
|
3474
3474
|
}
|
|
3475
|
-
var
|
|
3475
|
+
var ho = Le, Ue = ic, Uc = xc, Mc = Qe, tt = ho("%WeakMap%", !0), rt = ho("%Map%", !0), Hc = Ue("WeakMap.prototype.get", !0), Bc = Ue("WeakMap.prototype.set", !0), Dc = Ue("WeakMap.prototype.has", !0), Wc = Ue("Map.prototype.get", !0), zc = Ue("Map.prototype.set", !0), Gc = Ue("Map.prototype.has", !0), $r = function(e, t) {
|
|
3476
3476
|
for (var r = e, n; (n = r.next) !== null; r = n)
|
|
3477
3477
|
if (n.key === t)
|
|
3478
3478
|
return r.next = n.next, n.next = /** @type {NonNullable<typeof list.next>} */
|
|
3479
3479
|
e.next, e.next = n, n;
|
|
3480
|
-
},
|
|
3480
|
+
}, Vc = function(e, t) {
|
|
3481
3481
|
var r = $r(e, t);
|
|
3482
3482
|
return r && r.value;
|
|
3483
|
-
},
|
|
3483
|
+
}, Jc = function(e, t, r) {
|
|
3484
3484
|
var n = $r(e, t);
|
|
3485
3485
|
n ? n.value = r : e.next = /** @type {import('.').ListNode<typeof value>} */
|
|
3486
3486
|
{
|
|
@@ -3489,60 +3489,60 @@ var po = Le, Ue = sc, Lc = bc, Uc = Qe, tt = po("%WeakMap%", !0), rt = po("%Map%
|
|
|
3489
3489
|
next: e.next,
|
|
3490
3490
|
value: r
|
|
3491
3491
|
};
|
|
3492
|
-
},
|
|
3492
|
+
}, Kc = function(e, t) {
|
|
3493
3493
|
return !!$r(e, t);
|
|
3494
|
-
},
|
|
3494
|
+
}, Qc = function() {
|
|
3495
3495
|
var t, r, n, s = {
|
|
3496
3496
|
assert: function(a) {
|
|
3497
3497
|
if (!s.has(a))
|
|
3498
|
-
throw new
|
|
3498
|
+
throw new Mc("Side channel does not contain " + Uc(a));
|
|
3499
3499
|
},
|
|
3500
3500
|
get: function(a) {
|
|
3501
3501
|
if (tt && a && (typeof a == "object" || typeof a == "function")) {
|
|
3502
3502
|
if (t)
|
|
3503
|
-
return
|
|
3503
|
+
return Hc(t, a);
|
|
3504
3504
|
} else if (rt) {
|
|
3505
3505
|
if (r)
|
|
3506
|
-
return
|
|
3506
|
+
return Wc(r, a);
|
|
3507
3507
|
} else if (n)
|
|
3508
|
-
return
|
|
3508
|
+
return Vc(n, a);
|
|
3509
3509
|
},
|
|
3510
3510
|
has: function(a) {
|
|
3511
3511
|
if (tt && a && (typeof a == "object" || typeof a == "function")) {
|
|
3512
3512
|
if (t)
|
|
3513
|
-
return
|
|
3513
|
+
return Dc(t, a);
|
|
3514
3514
|
} else if (rt) {
|
|
3515
3515
|
if (r)
|
|
3516
|
-
return
|
|
3516
|
+
return Gc(r, a);
|
|
3517
3517
|
} else if (n)
|
|
3518
|
-
return
|
|
3518
|
+
return Kc(n, a);
|
|
3519
3519
|
return !1;
|
|
3520
3520
|
},
|
|
3521
3521
|
set: function(a, o) {
|
|
3522
|
-
tt && a && (typeof a == "object" || typeof a == "function") ? (t || (t = new tt()),
|
|
3522
|
+
tt && a && (typeof a == "object" || typeof a == "function") ? (t || (t = new tt()), Bc(t, a, o)) : rt ? (r || (r = new rt()), zc(r, a, o)) : (n || (n = { key: {}, next: null }), Jc(n, a, o));
|
|
3523
3523
|
}
|
|
3524
3524
|
};
|
|
3525
3525
|
return s;
|
|
3526
|
-
},
|
|
3526
|
+
}, Yc = String.prototype.replace, Xc = /%20/g, Ht = {
|
|
3527
3527
|
RFC1738: "RFC1738",
|
|
3528
3528
|
RFC3986: "RFC3986"
|
|
3529
3529
|
}, jr = {
|
|
3530
|
-
default:
|
|
3530
|
+
default: Ht.RFC3986,
|
|
3531
3531
|
formatters: {
|
|
3532
3532
|
RFC1738: function(e) {
|
|
3533
|
-
return
|
|
3533
|
+
return Yc.call(e, Xc, "+");
|
|
3534
3534
|
},
|
|
3535
3535
|
RFC3986: function(e) {
|
|
3536
3536
|
return String(e);
|
|
3537
3537
|
}
|
|
3538
3538
|
},
|
|
3539
|
-
RFC1738:
|
|
3540
|
-
RFC3986:
|
|
3541
|
-
},
|
|
3539
|
+
RFC1738: Ht.RFC1738,
|
|
3540
|
+
RFC3986: Ht.RFC3986
|
|
3541
|
+
}, Zc = jr, Bt = Object.prototype.hasOwnProperty, we = Array.isArray, ue = function() {
|
|
3542
3542
|
for (var e = [], t = 0; t < 256; ++t)
|
|
3543
3543
|
e.push("%" + ((t < 16 ? "0" : "") + t.toString(16)).toUpperCase());
|
|
3544
3544
|
return e;
|
|
3545
|
-
}(),
|
|
3545
|
+
}(), el = function(t) {
|
|
3546
3546
|
for (; t.length > 1; ) {
|
|
3547
3547
|
var r = t.pop(), n = r.obj[r.prop];
|
|
3548
3548
|
if (we(n)) {
|
|
@@ -3551,18 +3551,18 @@ var po = Le, Ue = sc, Lc = bc, Uc = Qe, tt = po("%WeakMap%", !0), rt = po("%Map%
|
|
|
3551
3551
|
r.obj[r.prop] = s;
|
|
3552
3552
|
}
|
|
3553
3553
|
}
|
|
3554
|
-
},
|
|
3554
|
+
}, mo = function(t, r) {
|
|
3555
3555
|
for (var n = r && r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, s = 0; s < t.length; ++s)
|
|
3556
3556
|
typeof t[s] < "u" && (n[s] = t[s]);
|
|
3557
3557
|
return n;
|
|
3558
|
-
},
|
|
3558
|
+
}, tl = function e(t, r, n) {
|
|
3559
3559
|
if (!r)
|
|
3560
3560
|
return t;
|
|
3561
3561
|
if (typeof r != "object") {
|
|
3562
3562
|
if (we(t))
|
|
3563
3563
|
t.push(r);
|
|
3564
3564
|
else if (t && typeof t == "object")
|
|
3565
|
-
(n && (n.plainObjects || n.allowPrototypes) || !
|
|
3565
|
+
(n && (n.plainObjects || n.allowPrototypes) || !Bt.call(Object.prototype, r)) && (t[r] = !0);
|
|
3566
3566
|
else
|
|
3567
3567
|
return [t, r];
|
|
3568
3568
|
return t;
|
|
@@ -3570,21 +3570,21 @@ var po = Le, Ue = sc, Lc = bc, Uc = Qe, tt = po("%WeakMap%", !0), rt = po("%Map%
|
|
|
3570
3570
|
if (!t || typeof t != "object")
|
|
3571
3571
|
return [t].concat(r);
|
|
3572
3572
|
var s = t;
|
|
3573
|
-
return we(t) && !we(r) && (s =
|
|
3574
|
-
if (
|
|
3573
|
+
return we(t) && !we(r) && (s = mo(t, n)), we(t) && we(r) ? (r.forEach(function(a, o) {
|
|
3574
|
+
if (Bt.call(t, o)) {
|
|
3575
3575
|
var i = t[o];
|
|
3576
3576
|
i && typeof i == "object" && a && typeof a == "object" ? t[o] = e(i, a, n) : t.push(a);
|
|
3577
3577
|
} else
|
|
3578
3578
|
t[o] = a;
|
|
3579
3579
|
}), t) : Object.keys(r).reduce(function(a, o) {
|
|
3580
3580
|
var i = r[o];
|
|
3581
|
-
return
|
|
3581
|
+
return Bt.call(a, o) ? a[o] = e(a[o], i, n) : a[o] = i, a;
|
|
3582
3582
|
}, s);
|
|
3583
|
-
},
|
|
3583
|
+
}, rl = function(t, r) {
|
|
3584
3584
|
return Object.keys(r).reduce(function(n, s) {
|
|
3585
3585
|
return n[s] = r[s], n;
|
|
3586
3586
|
}, t);
|
|
3587
|
-
},
|
|
3587
|
+
}, nl = function(e, t, r) {
|
|
3588
3588
|
var n = e.replace(/\+/g, " ");
|
|
3589
3589
|
if (r === "iso-8859-1")
|
|
3590
3590
|
return n.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
@@ -3593,7 +3593,7 @@ var po = Le, Ue = sc, Lc = bc, Uc = Qe, tt = po("%WeakMap%", !0), rt = po("%Map%
|
|
|
3593
3593
|
} catch {
|
|
3594
3594
|
return n;
|
|
3595
3595
|
}
|
|
3596
|
-
},
|
|
3596
|
+
}, Dt = 1024, ol = function(t, r, n, s, a) {
|
|
3597
3597
|
if (t.length === 0)
|
|
3598
3598
|
return t;
|
|
3599
3599
|
var o = t;
|
|
@@ -3601,10 +3601,10 @@ var po = Le, Ue = sc, Lc = bc, Uc = Qe, tt = po("%WeakMap%", !0), rt = po("%Map%
|
|
|
3601
3601
|
return escape(o).replace(/%u[0-9a-f]{4}/gi, function(h) {
|
|
3602
3602
|
return "%26%23" + parseInt(h.slice(2), 16) + "%3B";
|
|
3603
3603
|
});
|
|
3604
|
-
for (var i = "", c = 0; c < o.length; c +=
|
|
3605
|
-
for (var l = o.length >=
|
|
3604
|
+
for (var i = "", c = 0; c < o.length; c += Dt) {
|
|
3605
|
+
for (var l = o.length >= Dt ? o.slice(c, c + Dt) : o, f = [], p = 0; p < l.length; ++p) {
|
|
3606
3606
|
var d = l.charCodeAt(p);
|
|
3607
|
-
if (d === 45 || d === 46 || d === 95 || d === 126 || d >= 48 && d <= 57 || d >= 65 && d <= 90 || d >= 97 && d <= 122 || a ===
|
|
3607
|
+
if (d === 45 || d === 46 || d === 95 || d === 126 || d >= 48 && d <= 57 || d >= 65 && d <= 90 || d >= 97 && d <= 122 || a === Zc.RFC1738 && (d === 40 || d === 41)) {
|
|
3608
3608
|
f[f.length] = l.charAt(p);
|
|
3609
3609
|
continue;
|
|
3610
3610
|
}
|
|
@@ -3625,38 +3625,38 @@ var po = Le, Ue = sc, Lc = bc, Uc = Qe, tt = po("%WeakMap%", !0), rt = po("%Map%
|
|
|
3625
3625
|
i += f.join("");
|
|
3626
3626
|
}
|
|
3627
3627
|
return i;
|
|
3628
|
-
},
|
|
3628
|
+
}, al = function(t) {
|
|
3629
3629
|
for (var r = [{ obj: { o: t }, prop: "o" }], n = [], s = 0; s < r.length; ++s)
|
|
3630
3630
|
for (var a = r[s], o = a.obj[a.prop], i = Object.keys(o), c = 0; c < i.length; ++c) {
|
|
3631
3631
|
var l = i[c], f = o[l];
|
|
3632
3632
|
typeof f == "object" && f !== null && n.indexOf(f) === -1 && (r.push({ obj: o, prop: l }), n.push(f));
|
|
3633
3633
|
}
|
|
3634
|
-
return
|
|
3635
|
-
}, al = function(t) {
|
|
3636
|
-
return Object.prototype.toString.call(t) === "[object RegExp]";
|
|
3634
|
+
return el(r), t;
|
|
3637
3635
|
}, sl = function(t) {
|
|
3636
|
+
return Object.prototype.toString.call(t) === "[object RegExp]";
|
|
3637
|
+
}, il = function(t) {
|
|
3638
3638
|
return !t || typeof t != "object" ? !1 : !!(t.constructor && t.constructor.isBuffer && t.constructor.isBuffer(t));
|
|
3639
|
-
}, il = function(t, r) {
|
|
3640
|
-
return [].concat(t, r);
|
|
3641
3639
|
}, cl = function(t, r) {
|
|
3640
|
+
return [].concat(t, r);
|
|
3641
|
+
}, ll = function(t, r) {
|
|
3642
3642
|
if (we(t)) {
|
|
3643
3643
|
for (var n = [], s = 0; s < t.length; s += 1)
|
|
3644
3644
|
n.push(r(t[s]));
|
|
3645
3645
|
return n;
|
|
3646
3646
|
}
|
|
3647
3647
|
return r(t);
|
|
3648
|
-
},
|
|
3649
|
-
arrayToObject:
|
|
3650
|
-
assign:
|
|
3651
|
-
combine:
|
|
3652
|
-
compact:
|
|
3653
|
-
decode:
|
|
3654
|
-
encode:
|
|
3655
|
-
isBuffer:
|
|
3656
|
-
isRegExp:
|
|
3657
|
-
maybeMap:
|
|
3658
|
-
merge:
|
|
3659
|
-
},
|
|
3648
|
+
}, yo = {
|
|
3649
|
+
arrayToObject: mo,
|
|
3650
|
+
assign: rl,
|
|
3651
|
+
combine: cl,
|
|
3652
|
+
compact: al,
|
|
3653
|
+
decode: nl,
|
|
3654
|
+
encode: ol,
|
|
3655
|
+
isBuffer: il,
|
|
3656
|
+
isRegExp: sl,
|
|
3657
|
+
maybeMap: ll,
|
|
3658
|
+
merge: tl
|
|
3659
|
+
}, go = Qc, ct = yo, ze = jr, ul = Object.prototype.hasOwnProperty, bo = {
|
|
3660
3660
|
brackets: function(t) {
|
|
3661
3661
|
return t + "[]";
|
|
3662
3662
|
},
|
|
@@ -3667,9 +3667,9 @@ var po = Le, Ue = sc, Lc = bc, Uc = Qe, tt = po("%WeakMap%", !0), rt = po("%Map%
|
|
|
3667
3667
|
repeat: function(t) {
|
|
3668
3668
|
return t;
|
|
3669
3669
|
}
|
|
3670
|
-
}, fe = Array.isArray,
|
|
3671
|
-
|
|
3672
|
-
},
|
|
3670
|
+
}, fe = Array.isArray, fl = Array.prototype.push, vo = function(e, t) {
|
|
3671
|
+
fl.apply(e, fe(t) ? t : [t]);
|
|
3672
|
+
}, dl = Date.prototype.toISOString, bn = ze.default, W = {
|
|
3673
3673
|
addQueryPrefix: !1,
|
|
3674
3674
|
allowDots: !1,
|
|
3675
3675
|
allowEmptyArrays: !1,
|
|
@@ -3681,38 +3681,38 @@ var po = Le, Ue = sc, Lc = bc, Uc = Qe, tt = po("%WeakMap%", !0), rt = po("%Map%
|
|
|
3681
3681
|
encodeDotInKeys: !1,
|
|
3682
3682
|
encoder: ct.encode,
|
|
3683
3683
|
encodeValuesOnly: !1,
|
|
3684
|
-
format:
|
|
3685
|
-
formatter: ze.formatters[
|
|
3684
|
+
format: bn,
|
|
3685
|
+
formatter: ze.formatters[bn],
|
|
3686
3686
|
// deprecated
|
|
3687
3687
|
indices: !1,
|
|
3688
3688
|
serializeDate: function(t) {
|
|
3689
|
-
return
|
|
3689
|
+
return dl.call(t);
|
|
3690
3690
|
},
|
|
3691
3691
|
skipNulls: !1,
|
|
3692
3692
|
strictNullHandling: !1
|
|
3693
|
-
},
|
|
3693
|
+
}, pl = function(t) {
|
|
3694
3694
|
return typeof t == "string" || typeof t == "number" || typeof t == "boolean" || typeof t == "symbol" || typeof t == "bigint";
|
|
3695
|
-
},
|
|
3696
|
-
for (var x = t, T = y, $ = 0, O = !1; (T = T.get(
|
|
3695
|
+
}, Wt = {}, hl = function e(t, r, n, s, a, o, i, c, l, f, p, d, h, m, g, b, v, y) {
|
|
3696
|
+
for (var x = t, T = y, $ = 0, O = !1; (T = T.get(Wt)) !== void 0 && !O; ) {
|
|
3697
3697
|
var w = T.get(t);
|
|
3698
3698
|
if ($ += 1, typeof w < "u") {
|
|
3699
3699
|
if (w === $)
|
|
3700
3700
|
throw new RangeError("Cyclic object value");
|
|
3701
3701
|
O = !0;
|
|
3702
3702
|
}
|
|
3703
|
-
typeof T.get(
|
|
3703
|
+
typeof T.get(Wt) > "u" && ($ = 0);
|
|
3704
3704
|
}
|
|
3705
3705
|
if (typeof f == "function" ? x = f(r, x) : x instanceof Date ? x = h(x) : n === "comma" && fe(x) && (x = ct.maybeMap(x, function(j) {
|
|
3706
3706
|
return j instanceof Date ? h(j) : j;
|
|
3707
3707
|
})), x === null) {
|
|
3708
3708
|
if (o)
|
|
3709
|
-
return l && !
|
|
3709
|
+
return l && !b ? l(r, W.encoder, v, "key", m) : r;
|
|
3710
3710
|
x = "";
|
|
3711
3711
|
}
|
|
3712
|
-
if (
|
|
3712
|
+
if (pl(x) || ct.isBuffer(x)) {
|
|
3713
3713
|
if (l) {
|
|
3714
|
-
var C =
|
|
3715
|
-
return [g(C) + "=" + g(l(x, W.encoder,
|
|
3714
|
+
var C = b ? r : l(r, W.encoder, v, "key", m);
|
|
3715
|
+
return [g(C) + "=" + g(l(x, W.encoder, v, "value", m))];
|
|
3716
3716
|
}
|
|
3717
3717
|
return [g(r) + "=" + g(String(x))];
|
|
3718
3718
|
}
|
|
@@ -3721,7 +3721,7 @@ var po = Le, Ue = sc, Lc = bc, Uc = Qe, tt = po("%WeakMap%", !0), rt = po("%Map%
|
|
|
3721
3721
|
return R;
|
|
3722
3722
|
var q;
|
|
3723
3723
|
if (n === "comma" && fe(x))
|
|
3724
|
-
|
|
3724
|
+
b && l && (x = ct.maybeMap(x, l)), q = [{ value: x.length > 0 ? x.join(",") || null : void 0 }];
|
|
3725
3725
|
else if (fe(f))
|
|
3726
3726
|
q = f;
|
|
3727
3727
|
else {
|
|
@@ -3734,33 +3734,33 @@ var po = Le, Ue = sc, Lc = bc, Uc = Qe, tt = po("%WeakMap%", !0), rt = po("%Map%
|
|
|
3734
3734
|
for (var D = 0; D < q.length; ++D) {
|
|
3735
3735
|
var B = q[D], I = typeof B == "object" && typeof B.value < "u" ? B.value : x[B];
|
|
3736
3736
|
if (!(i && I === null)) {
|
|
3737
|
-
var me = d && c ? B.replace(/\./g, "%2E") : B,
|
|
3737
|
+
var me = d && c ? B.replace(/\./g, "%2E") : B, Ct = fe(x) ? typeof n == "function" ? n(F, me) : F : F + (d ? "." + me : "[" + me + "]");
|
|
3738
3738
|
y.set(t, $);
|
|
3739
|
-
var Xe =
|
|
3740
|
-
Xe.set(
|
|
3739
|
+
var Xe = go();
|
|
3740
|
+
Xe.set(Wt, y), vo(R, e(
|
|
3741
3741
|
I,
|
|
3742
|
-
|
|
3742
|
+
Ct,
|
|
3743
3743
|
n,
|
|
3744
3744
|
s,
|
|
3745
3745
|
a,
|
|
3746
3746
|
o,
|
|
3747
3747
|
i,
|
|
3748
3748
|
c,
|
|
3749
|
-
n === "comma" &&
|
|
3749
|
+
n === "comma" && b && fe(x) ? null : l,
|
|
3750
3750
|
f,
|
|
3751
3751
|
p,
|
|
3752
3752
|
d,
|
|
3753
3753
|
h,
|
|
3754
3754
|
m,
|
|
3755
3755
|
g,
|
|
3756
|
-
v,
|
|
3757
3756
|
b,
|
|
3757
|
+
v,
|
|
3758
3758
|
Xe
|
|
3759
3759
|
));
|
|
3760
3760
|
}
|
|
3761
3761
|
}
|
|
3762
3762
|
return R;
|
|
3763
|
-
},
|
|
3763
|
+
}, ml = function(t) {
|
|
3764
3764
|
if (!t)
|
|
3765
3765
|
return W;
|
|
3766
3766
|
if (typeof t.allowEmptyArrays < "u" && typeof t.allowEmptyArrays != "boolean")
|
|
@@ -3774,14 +3774,14 @@ var po = Le, Ue = sc, Lc = bc, Uc = Qe, tt = po("%WeakMap%", !0), rt = po("%Map%
|
|
|
3774
3774
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
3775
3775
|
var n = ze.default;
|
|
3776
3776
|
if (typeof t.format < "u") {
|
|
3777
|
-
if (!
|
|
3777
|
+
if (!ul.call(ze.formatters, t.format))
|
|
3778
3778
|
throw new TypeError("Unknown format option provided.");
|
|
3779
3779
|
n = t.format;
|
|
3780
3780
|
}
|
|
3781
3781
|
var s = ze.formatters[n], a = W.filter;
|
|
3782
3782
|
(typeof t.filter == "function" || fe(t.filter)) && (a = t.filter);
|
|
3783
3783
|
var o;
|
|
3784
|
-
if (t.arrayFormat in
|
|
3784
|
+
if (t.arrayFormat in bo ? o = t.arrayFormat : "indices" in t ? o = t.indices ? "indices" : "repeat" : o = W.arrayFormat, "commaRoundTrip" in t && typeof t.commaRoundTrip != "boolean")
|
|
3785
3785
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
3786
3786
|
var i = typeof t.allowDots > "u" ? t.encodeDotInKeys === !0 ? !0 : W.allowDots : !!t.allowDots;
|
|
3787
3787
|
return {
|
|
@@ -3805,17 +3805,17 @@ var po = Le, Ue = sc, Lc = bc, Uc = Qe, tt = po("%WeakMap%", !0), rt = po("%Map%
|
|
|
3805
3805
|
sort: typeof t.sort == "function" ? t.sort : null,
|
|
3806
3806
|
strictNullHandling: typeof t.strictNullHandling == "boolean" ? t.strictNullHandling : W.strictNullHandling
|
|
3807
3807
|
};
|
|
3808
|
-
},
|
|
3809
|
-
var r = e, n =
|
|
3808
|
+
}, yl = function(e, t) {
|
|
3809
|
+
var r = e, n = ml(t), s, a;
|
|
3810
3810
|
typeof n.filter == "function" ? (a = n.filter, r = a("", r)) : fe(n.filter) && (a = n.filter, s = a);
|
|
3811
3811
|
var o = [];
|
|
3812
3812
|
if (typeof r != "object" || r === null)
|
|
3813
3813
|
return "";
|
|
3814
|
-
var i =
|
|
3814
|
+
var i = bo[n.arrayFormat], c = i === "comma" && n.commaRoundTrip;
|
|
3815
3815
|
s || (s = Object.keys(r)), n.sort && s.sort(n.sort);
|
|
3816
|
-
for (var l =
|
|
3816
|
+
for (var l = go(), f = 0; f < s.length; ++f) {
|
|
3817
3817
|
var p = s[f];
|
|
3818
|
-
n.skipNulls && r[p] === null || vo(o,
|
|
3818
|
+
n.skipNulls && r[p] === null || vo(o, hl(
|
|
3819
3819
|
r[p],
|
|
3820
3820
|
p,
|
|
3821
3821
|
i,
|
|
@@ -3838,7 +3838,7 @@ var po = Le, Ue = sc, Lc = bc, Uc = Qe, tt = po("%WeakMap%", !0), rt = po("%Map%
|
|
|
3838
3838
|
}
|
|
3839
3839
|
var d = o.join(n.delimiter), h = n.addQueryPrefix === !0 ? "?" : "";
|
|
3840
3840
|
return n.charsetSentinel && (n.charset === "iso-8859-1" ? h += "utf8=%26%2310003%3B&" : h += "utf8=%E2%9C%93&"), d.length > 0 ? h + d : "";
|
|
3841
|
-
}, _e =
|
|
3841
|
+
}, _e = yo, tr = Object.prototype.hasOwnProperty, gl = Array.isArray, H = {
|
|
3842
3842
|
allowDots: !1,
|
|
3843
3843
|
allowEmptyArrays: !1,
|
|
3844
3844
|
allowPrototypes: !1,
|
|
@@ -3858,32 +3858,32 @@ var po = Le, Ue = sc, Lc = bc, Uc = Qe, tt = po("%WeakMap%", !0), rt = po("%Map%
|
|
|
3858
3858
|
parseArrays: !0,
|
|
3859
3859
|
plainObjects: !1,
|
|
3860
3860
|
strictNullHandling: !1
|
|
3861
|
-
},
|
|
3861
|
+
}, bl = function(e) {
|
|
3862
3862
|
return e.replace(/&#(\d+);/g, function(t, r) {
|
|
3863
3863
|
return String.fromCharCode(parseInt(r, 10));
|
|
3864
3864
|
});
|
|
3865
|
-
},
|
|
3865
|
+
}, xo = function(e, t) {
|
|
3866
3866
|
return e && typeof e == "string" && t.comma && e.indexOf(",") > -1 ? e.split(",") : e;
|
|
3867
|
-
}, vl = "utf8=%26%2310003%3B",
|
|
3867
|
+
}, vl = "utf8=%26%2310003%3B", xl = "utf8=%E2%9C%93", $l = function(t, r) {
|
|
3868
3868
|
var n = { __proto__: null }, s = r.ignoreQueryPrefix ? t.replace(/^\?/, "") : t, a = r.parameterLimit === 1 / 0 ? void 0 : r.parameterLimit, o = s.split(r.delimiter, a), i = -1, c, l = r.charset;
|
|
3869
3869
|
if (r.charsetSentinel)
|
|
3870
3870
|
for (c = 0; c < o.length; ++c)
|
|
3871
|
-
o[c].indexOf("utf8=") === 0 && (o[c] ===
|
|
3871
|
+
o[c].indexOf("utf8=") === 0 && (o[c] === xl ? l = "utf-8" : o[c] === vl && (l = "iso-8859-1"), i = c, c = o.length);
|
|
3872
3872
|
for (c = 0; c < o.length; ++c)
|
|
3873
3873
|
if (c !== i) {
|
|
3874
3874
|
var f = o[c], p = f.indexOf("]="), d = p === -1 ? f.indexOf("=") : p + 1, h, m;
|
|
3875
3875
|
d === -1 ? (h = r.decoder(f, H.decoder, l, "key"), m = r.strictNullHandling ? null : "") : (h = r.decoder(f.slice(0, d), H.decoder, l, "key"), m = _e.maybeMap(
|
|
3876
|
-
|
|
3877
|
-
function(
|
|
3878
|
-
return r.decoder(
|
|
3876
|
+
xo(f.slice(d + 1), r),
|
|
3877
|
+
function(b) {
|
|
3878
|
+
return r.decoder(b, H.decoder, l, "value");
|
|
3879
3879
|
}
|
|
3880
|
-
)), m && r.interpretNumericEntities && l === "iso-8859-1" && (m =
|
|
3881
|
-
var g =
|
|
3880
|
+
)), m && r.interpretNumericEntities && l === "iso-8859-1" && (m = bl(m)), f.indexOf("[]=") > -1 && (m = gl(m) ? [m] : m);
|
|
3881
|
+
var g = tr.call(n, h);
|
|
3882
3882
|
g && r.duplicates === "combine" ? n[h] = _e.combine(n[h], m) : (!g || r.duplicates === "last") && (n[h] = m);
|
|
3883
3883
|
}
|
|
3884
3884
|
return n;
|
|
3885
|
-
},
|
|
3886
|
-
for (var s = n ? t :
|
|
3885
|
+
}, jl = function(e, t, r, n) {
|
|
3886
|
+
for (var s = n ? t : xo(t, r), a = e.length - 1; a >= 0; --a) {
|
|
3887
3887
|
var o, i = e[a];
|
|
3888
3888
|
if (i === "[]" && r.parseArrays)
|
|
3889
3889
|
o = r.allowEmptyArrays && s === "" ? [] : [].concat(s);
|
|
@@ -3895,22 +3895,22 @@ var po = Le, Ue = sc, Lc = bc, Uc = Qe, tt = po("%WeakMap%", !0), rt = po("%Map%
|
|
|
3895
3895
|
s = o;
|
|
3896
3896
|
}
|
|
3897
3897
|
return s;
|
|
3898
|
-
},
|
|
3898
|
+
}, wl = function(t, r, n, s) {
|
|
3899
3899
|
if (t) {
|
|
3900
3900
|
var a = n.allowDots ? t.replace(/\.([^.[]+)/g, "[$1]") : t, o = /(\[[^[\]]*])/, i = /(\[[^[\]]*])/g, c = n.depth > 0 && o.exec(a), l = c ? a.slice(0, c.index) : a, f = [];
|
|
3901
3901
|
if (l) {
|
|
3902
|
-
if (!n.plainObjects &&
|
|
3902
|
+
if (!n.plainObjects && tr.call(Object.prototype, l) && !n.allowPrototypes)
|
|
3903
3903
|
return;
|
|
3904
3904
|
f.push(l);
|
|
3905
3905
|
}
|
|
3906
3906
|
for (var p = 0; n.depth > 0 && (c = i.exec(a)) !== null && p < n.depth; ) {
|
|
3907
|
-
if (p += 1, !n.plainObjects &&
|
|
3907
|
+
if (p += 1, !n.plainObjects && tr.call(Object.prototype, c[1].slice(1, -1)) && !n.allowPrototypes)
|
|
3908
3908
|
return;
|
|
3909
3909
|
f.push(c[1]);
|
|
3910
3910
|
}
|
|
3911
|
-
return c && f.push("[" + a.slice(c.index) + "]"),
|
|
3911
|
+
return c && f.push("[" + a.slice(c.index) + "]"), jl(f, r, n, s);
|
|
3912
3912
|
}
|
|
3913
|
-
},
|
|
3913
|
+
}, Sl = function(t) {
|
|
3914
3914
|
if (!t)
|
|
3915
3915
|
return H;
|
|
3916
3916
|
if (typeof t.allowEmptyArrays < "u" && typeof t.allowEmptyArrays != "boolean")
|
|
@@ -3947,24 +3947,24 @@ var po = Le, Ue = sc, Lc = bc, Uc = Qe, tt = po("%WeakMap%", !0), rt = po("%Map%
|
|
|
3947
3947
|
plainObjects: typeof t.plainObjects == "boolean" ? t.plainObjects : H.plainObjects,
|
|
3948
3948
|
strictNullHandling: typeof t.strictNullHandling == "boolean" ? t.strictNullHandling : H.strictNullHandling
|
|
3949
3949
|
};
|
|
3950
|
-
},
|
|
3951
|
-
var r =
|
|
3950
|
+
}, Tl = function(e, t) {
|
|
3951
|
+
var r = Sl(t);
|
|
3952
3952
|
if (e === "" || e === null || typeof e > "u")
|
|
3953
3953
|
return r.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
3954
|
-
for (var n = typeof e == "string" ?
|
|
3955
|
-
var i = a[o], c =
|
|
3954
|
+
for (var n = typeof e == "string" ? $l(e, r) : e, s = r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, a = Object.keys(n), o = 0; o < a.length; ++o) {
|
|
3955
|
+
var i = a[o], c = wl(i, n[i], r, typeof e == "string");
|
|
3956
3956
|
s = _e.merge(s, c, r);
|
|
3957
3957
|
}
|
|
3958
3958
|
return r.allowSparse === !0 ? s : _e.compact(s);
|
|
3959
|
-
},
|
|
3960
|
-
formats:
|
|
3961
|
-
parse:
|
|
3962
|
-
stringify:
|
|
3963
|
-
},
|
|
3959
|
+
}, Ol = yl, Cl = Tl, Pl = jr, lt = {
|
|
3960
|
+
formats: Pl,
|
|
3961
|
+
parse: Cl,
|
|
3962
|
+
stringify: Ol
|
|
3963
|
+
}, Nl = fi;
|
|
3964
3964
|
function se() {
|
|
3965
3965
|
this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null;
|
|
3966
3966
|
}
|
|
3967
|
-
var
|
|
3967
|
+
var El = /^([a-z0-9.+-]+:)/i, kl = /:[0-9]*$/, Rl = /^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/, Al = [
|
|
3968
3968
|
"<",
|
|
3969
3969
|
">",
|
|
3970
3970
|
'"',
|
|
@@ -3974,27 +3974,27 @@ var Nl = /^([a-z0-9.+-]+:)/i, El = /:[0-9]*$/, kl = /^(\/\/?(?!\/)[^?\s]*)(\?[^\
|
|
|
3974
3974
|
`
|
|
3975
3975
|
`,
|
|
3976
3976
|
" "
|
|
3977
|
-
],
|
|
3977
|
+
], Il = [
|
|
3978
3978
|
"{",
|
|
3979
3979
|
"}",
|
|
3980
3980
|
"|",
|
|
3981
3981
|
"\\",
|
|
3982
3982
|
"^",
|
|
3983
3983
|
"`"
|
|
3984
|
-
].concat(
|
|
3984
|
+
].concat(Al), rr = ["'"].concat(Il), vn = [
|
|
3985
3985
|
"%",
|
|
3986
3986
|
"/",
|
|
3987
3987
|
"?",
|
|
3988
3988
|
";",
|
|
3989
3989
|
"#"
|
|
3990
|
-
].concat(
|
|
3990
|
+
].concat(rr), xn = [
|
|
3991
3991
|
"/",
|
|
3992
3992
|
"?",
|
|
3993
3993
|
"#"
|
|
3994
|
-
],
|
|
3994
|
+
], ql = 255, $n = /^[+a-z0-9A-Z_-]{0,63}$/, _l = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, Fl = {
|
|
3995
3995
|
javascript: !0,
|
|
3996
3996
|
"javascript:": !0
|
|
3997
|
-
},
|
|
3997
|
+
}, nr = {
|
|
3998
3998
|
javascript: !0,
|
|
3999
3999
|
"javascript:": !0
|
|
4000
4000
|
}, Re = {
|
|
@@ -4008,7 +4008,7 @@ var Nl = /^([a-z0-9.+-]+:)/i, El = /:[0-9]*$/, kl = /^(\/\/?(?!\/)[^?\s]*)(\?[^\
|
|
|
4008
4008
|
"ftp:": !0,
|
|
4009
4009
|
"gopher:": !0,
|
|
4010
4010
|
"file:": !0
|
|
4011
|
-
},
|
|
4011
|
+
}, or = lt;
|
|
4012
4012
|
function wr(e, t, r) {
|
|
4013
4013
|
if (e && typeof e == "object" && e instanceof se)
|
|
4014
4014
|
return e;
|
|
@@ -4022,11 +4022,11 @@ se.prototype.parse = function(e, t, r) {
|
|
|
4022
4022
|
a[0] = a[0].replace(o, "/"), e = a.join(s);
|
|
4023
4023
|
var i = e;
|
|
4024
4024
|
if (i = i.trim(), !r && e.split("#").length === 1) {
|
|
4025
|
-
var c =
|
|
4025
|
+
var c = Rl.exec(i);
|
|
4026
4026
|
if (c)
|
|
4027
|
-
return this.path = i, this.href = i, this.pathname = c[1], c[2] ? (this.search = c[2], t ? this.query =
|
|
4027
|
+
return this.path = i, this.href = i, this.pathname = c[1], c[2] ? (this.search = c[2], t ? this.query = or.parse(this.search.substr(1)) : this.query = this.search.substr(1)) : t && (this.search = "", this.query = {}), this;
|
|
4028
4028
|
}
|
|
4029
|
-
var l =
|
|
4029
|
+
var l = El.exec(i);
|
|
4030
4030
|
if (l) {
|
|
4031
4031
|
l = l[0];
|
|
4032
4032
|
var f = l.toLowerCase();
|
|
@@ -4034,41 +4034,41 @@ se.prototype.parse = function(e, t, r) {
|
|
|
4034
4034
|
}
|
|
4035
4035
|
if (r || l || i.match(/^\/\/[^@/]+@[^@/]+/)) {
|
|
4036
4036
|
var p = i.substr(0, 2) === "//";
|
|
4037
|
-
p && !(l &&
|
|
4037
|
+
p && !(l && nr[l]) && (i = i.substr(2), this.slashes = !0);
|
|
4038
4038
|
}
|
|
4039
|
-
if (!
|
|
4039
|
+
if (!nr[l] && (p || l && !Re[l])) {
|
|
4040
4040
|
for (var d = -1, h = 0; h < xn.length; h++) {
|
|
4041
4041
|
var m = i.indexOf(xn[h]);
|
|
4042
4042
|
m !== -1 && (d === -1 || m < d) && (d = m);
|
|
4043
4043
|
}
|
|
4044
|
-
var g,
|
|
4045
|
-
d === -1 ?
|
|
4046
|
-
for (var h = 0; h <
|
|
4047
|
-
var m = i.indexOf(
|
|
4044
|
+
var g, b;
|
|
4045
|
+
d === -1 ? b = i.lastIndexOf("@") : b = i.lastIndexOf("@", d), b !== -1 && (g = i.slice(0, b), i = i.slice(b + 1), this.auth = decodeURIComponent(g)), d = -1;
|
|
4046
|
+
for (var h = 0; h < vn.length; h++) {
|
|
4047
|
+
var m = i.indexOf(vn[h]);
|
|
4048
4048
|
m !== -1 && (d === -1 || m < d) && (d = m);
|
|
4049
4049
|
}
|
|
4050
4050
|
d === -1 && (d = i.length), this.host = i.slice(0, d), i = i.slice(d), this.parseHost(), this.hostname = this.hostname || "";
|
|
4051
|
-
var
|
|
4052
|
-
if (!
|
|
4051
|
+
var v = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
|
|
4052
|
+
if (!v)
|
|
4053
4053
|
for (var y = this.hostname.split(/\./), h = 0, x = y.length; h < x; h++) {
|
|
4054
4054
|
var T = y[h];
|
|
4055
4055
|
if (T && !T.match($n)) {
|
|
4056
4056
|
for (var $ = "", O = 0, w = T.length; O < w; O++)
|
|
4057
4057
|
T.charCodeAt(O) > 127 ? $ += "x" : $ += T[O];
|
|
4058
4058
|
if (!$.match($n)) {
|
|
4059
|
-
var C = y.slice(0, h), R = y.slice(h + 1), q = T.match(
|
|
4059
|
+
var C = y.slice(0, h), R = y.slice(h + 1), q = T.match(_l);
|
|
4060
4060
|
q && (C.push(q[1]), R.unshift(q[2])), R.length && (i = "/" + R.join(".") + i), this.hostname = C.join(".");
|
|
4061
4061
|
break;
|
|
4062
4062
|
}
|
|
4063
4063
|
}
|
|
4064
4064
|
}
|
|
4065
|
-
this.hostname.length >
|
|
4065
|
+
this.hostname.length > ql ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), v || (this.hostname = Nl.toASCII(this.hostname));
|
|
4066
4066
|
var U = this.port ? ":" + this.port : "", Q = this.hostname || "";
|
|
4067
|
-
this.host = Q + U, this.href += this.host,
|
|
4067
|
+
this.host = Q + U, this.href += this.host, v && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), i[0] !== "/" && (i = "/" + i));
|
|
4068
4068
|
}
|
|
4069
|
-
if (!
|
|
4070
|
-
for (var h = 0, x =
|
|
4071
|
-
var F =
|
|
4069
|
+
if (!Fl[f])
|
|
4070
|
+
for (var h = 0, x = rr.length; h < x; h++) {
|
|
4071
|
+
var F = rr[h];
|
|
4072
4072
|
if (i.indexOf(F) !== -1) {
|
|
4073
4073
|
var D = encodeURIComponent(F);
|
|
4074
4074
|
D === F && (D = escape(F)), i = i.split(F).join(D);
|
|
@@ -4077,20 +4077,20 @@ se.prototype.parse = function(e, t, r) {
|
|
|
4077
4077
|
var B = i.indexOf("#");
|
|
4078
4078
|
B !== -1 && (this.hash = i.substr(B), i = i.slice(0, B));
|
|
4079
4079
|
var I = i.indexOf("?");
|
|
4080
|
-
if (I !== -1 ? (this.search = i.substr(I), this.query = i.substr(I + 1), t && (this.query =
|
|
4080
|
+
if (I !== -1 ? (this.search = i.substr(I), this.query = i.substr(I + 1), t && (this.query = or.parse(this.query)), i = i.slice(0, I)) : t && (this.search = "", this.query = {}), i && (this.pathname = i), Re[f] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
|
|
4081
4081
|
var U = this.pathname || "", me = this.search || "";
|
|
4082
4082
|
this.path = U + me;
|
|
4083
4083
|
}
|
|
4084
4084
|
return this.href = this.format(), this;
|
|
4085
4085
|
};
|
|
4086
|
-
function
|
|
4086
|
+
function Ll(e) {
|
|
4087
4087
|
return typeof e == "string" && (e = wr(e)), e instanceof se ? e.format() : se.prototype.format.call(e);
|
|
4088
4088
|
}
|
|
4089
4089
|
se.prototype.format = function() {
|
|
4090
4090
|
var e = this.auth || "";
|
|
4091
4091
|
e && (e = encodeURIComponent(e), e = e.replace(/%3A/i, ":"), e += "@");
|
|
4092
4092
|
var t = this.protocol || "", r = this.pathname || "", n = this.hash || "", s = !1, a = "";
|
|
4093
|
-
this.host ? s = e + this.host : this.hostname && (s = e + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (s += ":" + this.port)), this.query && typeof this.query == "object" && Object.keys(this.query).length && (a =
|
|
4093
|
+
this.host ? s = e + this.host : this.hostname && (s = e + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (s += ":" + this.port)), this.query && typeof this.query == "object" && Object.keys(this.query).length && (a = or.stringify(this.query, {
|
|
4094
4094
|
arrayFormat: "repeat",
|
|
4095
4095
|
addQueryPrefix: !1
|
|
4096
4096
|
}));
|
|
@@ -4128,7 +4128,7 @@ se.prototype.resolveObject = function(e) {
|
|
|
4128
4128
|
}
|
|
4129
4129
|
return r.href = r.format(), r;
|
|
4130
4130
|
}
|
|
4131
|
-
if (r.protocol = e.protocol, !e.host && !
|
|
4131
|
+
if (r.protocol = e.protocol, !e.host && !nr[e.protocol]) {
|
|
4132
4132
|
for (var x = (e.pathname || "").split("/"); x.length && !(e.host = x.shift()); )
|
|
4133
4133
|
;
|
|
4134
4134
|
e.host || (e.host = ""), e.hostname || (e.hostname = ""), x[0] !== "" && x.unshift(""), x.length < 2 && x.unshift(""), r.pathname = x.join("/");
|
|
@@ -4140,8 +4140,8 @@ se.prototype.resolveObject = function(e) {
|
|
|
4140
4140
|
}
|
|
4141
4141
|
return r.slashes = r.slashes || e.slashes, r.href = r.format(), r;
|
|
4142
4142
|
}
|
|
4143
|
-
var m = r.pathname && r.pathname.charAt(0) === "/", g = e.host || e.pathname && e.pathname.charAt(0) === "/",
|
|
4144
|
-
if (T && (r.hostname = "", r.port = null, r.host && (y[0] === "" ? y[0] = r.host : y.unshift(r.host)), r.host = "", e.protocol && (e.hostname = null, e.port = null, e.host && (x[0] === "" ? x[0] = e.host : x.unshift(e.host)), e.host = null),
|
|
4143
|
+
var m = r.pathname && r.pathname.charAt(0) === "/", g = e.host || e.pathname && e.pathname.charAt(0) === "/", b = g || m || r.host && e.pathname, v = b, y = r.pathname && r.pathname.split("/") || [], x = e.pathname && e.pathname.split("/") || [], T = r.protocol && !Re[r.protocol];
|
|
4144
|
+
if (T && (r.hostname = "", r.port = null, r.host && (y[0] === "" ? y[0] = r.host : y.unshift(r.host)), r.host = "", e.protocol && (e.hostname = null, e.port = null, e.host && (x[0] === "" ? x[0] = e.host : x.unshift(e.host)), e.host = null), b = b && (x[0] === "" || y[0] === "")), g)
|
|
4145
4145
|
r.host = e.host || e.host === "" ? e.host : r.host, r.hostname = e.hostname || e.hostname === "" ? e.hostname : r.hostname, r.search = e.search, r.query = e.query, y = x;
|
|
4146
4146
|
else if (x.length)
|
|
4147
4147
|
y || (y = []), y.pop(), y = y.concat(x), r.search = e.search, r.query = e.query;
|
|
@@ -4157,28 +4157,28 @@ se.prototype.resolveObject = function(e) {
|
|
|
4157
4157
|
return r.pathname = null, r.search ? r.path = "/" + r.search : r.path = null, r.href = r.format(), r;
|
|
4158
4158
|
for (var O = y.slice(-1)[0], w = (r.host || e.host || y.length > 1) && (O === "." || O === "..") || O === "", C = 0, R = y.length; R >= 0; R--)
|
|
4159
4159
|
O = y[R], O === "." ? y.splice(R, 1) : O === ".." ? (y.splice(R, 1), C++) : C && (y.splice(R, 1), C--);
|
|
4160
|
-
if (!
|
|
4160
|
+
if (!b && !v)
|
|
4161
4161
|
for (; C--; C)
|
|
4162
4162
|
y.unshift("..");
|
|
4163
|
-
|
|
4163
|
+
b && y[0] !== "" && (!y[0] || y[0].charAt(0) !== "/") && y.unshift(""), w && y.join("/").substr(-1) !== "/" && y.push("");
|
|
4164
4164
|
var q = y[0] === "" || y[0] && y[0].charAt(0) === "/";
|
|
4165
4165
|
if (T) {
|
|
4166
4166
|
r.hostname = q ? "" : y.length ? y.shift() : "", r.host = r.hostname;
|
|
4167
4167
|
var $ = r.host && r.host.indexOf("@") > 0 ? r.host.split("@") : !1;
|
|
4168
4168
|
$ && (r.auth = $.shift(), r.hostname = $.shift(), r.host = r.hostname);
|
|
4169
4169
|
}
|
|
4170
|
-
return
|
|
4170
|
+
return b = b || r.host && y.length, b && !q && y.unshift(""), y.length > 0 ? r.pathname = y.join("/") : (r.pathname = null, r.path = null), (r.pathname !== null || r.search !== null) && (r.path = (r.pathname ? r.pathname : "") + (r.search ? r.search : "")), r.auth = e.auth || r.auth, r.slashes = r.slashes || e.slashes, r.href = r.format(), r;
|
|
4171
4171
|
};
|
|
4172
4172
|
se.prototype.parseHost = function() {
|
|
4173
|
-
var e = this.host, t =
|
|
4173
|
+
var e = this.host, t = kl.exec(e);
|
|
4174
4174
|
t && (t = t[0], t !== ":" && (this.port = t.substr(1)), e = e.substr(0, e.length - t.length)), e && (this.hostname = e);
|
|
4175
4175
|
};
|
|
4176
|
-
var
|
|
4176
|
+
var Ul = wr, jn = Ll, Ml = (e) => typeof e == "object" && "log" in e && typeof e.log == "object" && "entries" in e.log && Array.isArray(e.log.entries), Hl = class {
|
|
4177
4177
|
constructor(e, t = {}) {
|
|
4178
4178
|
this.initCalled = !1, this.entries = [], this.requests = [], this.options = {}, this.options = {
|
|
4179
4179
|
harIsAlreadyEncoded: !1,
|
|
4180
4180
|
...t
|
|
4181
|
-
}, this.requests = [],
|
|
4181
|
+
}, this.requests = [], Ml(e) ? this.entries = e.log.entries : this.entries = [
|
|
4182
4182
|
{
|
|
4183
4183
|
request: e
|
|
4184
4184
|
}
|
|
@@ -4215,11 +4215,11 @@ var Ll = wr, jn = Fl, Ul = (e) => typeof e == "object" && "log" in e && typeof e
|
|
|
4215
4215
|
};
|
|
4216
4216
|
if (r.queryString && r.queryString.length && (r.queryObj = r.queryString.reduce(Lr, {})), r.headers && r.headers.length) {
|
|
4217
4217
|
const h = /^HTTP\/2/;
|
|
4218
|
-
r.headersObj = r.headers.reduce((m, { name: g, value:
|
|
4219
|
-
const
|
|
4218
|
+
r.headersObj = r.headers.reduce((m, { name: g, value: b }) => {
|
|
4219
|
+
const v = h.exec(r.httpVersion) ? g.toLocaleLowerCase() : g;
|
|
4220
4220
|
return {
|
|
4221
4221
|
...m,
|
|
4222
|
-
[
|
|
4222
|
+
[v]: b
|
|
4223
4223
|
};
|
|
4224
4224
|
}, {});
|
|
4225
4225
|
}
|
|
@@ -4238,13 +4238,13 @@ var Ll = wr, jn = Fl, Ul = (e) => typeof e == "object" && "log" in e && typeof e
|
|
|
4238
4238
|
case "multipart/alternative":
|
|
4239
4239
|
if (r.postData.text = "", r.postData.mimeType = "multipart/form-data", (p = r.postData) != null && p.params) {
|
|
4240
4240
|
const h = "---011000010111000001101001", m = `${h}--`, g = `\r
|
|
4241
|
-
`,
|
|
4241
|
+
`, b = (T) => T.replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22"), v = (T) => T.replace(/\r?\n|\r/g, `\r
|
|
4242
4242
|
`), y = [`--${h}`];
|
|
4243
4243
|
(d = r.postData) == null || d.params.forEach((T, $) => {
|
|
4244
4244
|
const O = T.name, w = T.value || "", C = T.fileName || null, R = T.contentType || "application/octet-stream";
|
|
4245
4245
|
C ? (y.push(
|
|
4246
|
-
`Content-Disposition: form-data; name="${v(
|
|
4247
|
-
), y.push(`Content-Type: ${R}`)) : y.push(`Content-Disposition: form-data; name="${v(
|
|
4246
|
+
`Content-Disposition: form-data; name="${b(v(O))}"; filename="${C}"`
|
|
4247
|
+
), y.push(`Content-Type: ${R}`)) : y.push(`Content-Disposition: form-data; name="${b(v(O))}"`), y.push(""), y.push(v(w)), $ !== r.postData.params.length - 1 && y.push(`--${h}`);
|
|
4248
4248
|
}), y.push(`--${m}`), r.postData.boundary = h, r.postData.text = y.join(g);
|
|
4249
4249
|
const x = X(r.headersObj, "content-type") || "content-type";
|
|
4250
4250
|
r.headersObj[x] = `multipart/form-data; boundary=${h}`;
|
|
@@ -4268,7 +4268,7 @@ var Ll = wr, jn = Fl, Ul = (e) => typeof e == "object" && "log" in e && typeof e
|
|
|
4268
4268
|
const s = {
|
|
4269
4269
|
...r.allHeaders,
|
|
4270
4270
|
...r.headersObj
|
|
4271
|
-
}, a =
|
|
4271
|
+
}, a = Ul(r.url, !0, !0);
|
|
4272
4272
|
r.queryObj = {
|
|
4273
4273
|
...r.queryObj,
|
|
4274
4274
|
...a.query
|
|
@@ -4303,13 +4303,13 @@ var Ll = wr, jn = Fl, Ul = (e) => typeof e == "object" && "log" in e && typeof e
|
|
|
4303
4303
|
}
|
|
4304
4304
|
convert(e, t, r) {
|
|
4305
4305
|
this.initCalled || this.init(), !r && t && (r = t);
|
|
4306
|
-
const n =
|
|
4306
|
+
const n = ui[e];
|
|
4307
4307
|
if (!n)
|
|
4308
4308
|
return !1;
|
|
4309
4309
|
const { convert: s } = n.clientsById[t || n.info.default];
|
|
4310
4310
|
return this.requests.map((o) => s(o, r));
|
|
4311
4311
|
}
|
|
4312
|
-
}, Sr = "Dialog", [
|
|
4312
|
+
}, Sr = "Dialog", [$o, Gu] = sr(Sr), [Bl, ce] = $o(Sr), jo = (e) => {
|
|
4313
4313
|
const {
|
|
4314
4314
|
__scopeDialog: t,
|
|
4315
4315
|
children: r,
|
|
@@ -4317,13 +4317,13 @@ var Ll = wr, jn = Fl, Ul = (e) => typeof e == "object" && "log" in e && typeof e
|
|
|
4317
4317
|
defaultOpen: s,
|
|
4318
4318
|
onOpenChange: a,
|
|
4319
4319
|
modal: o = !0
|
|
4320
|
-
} = e, i = S.useRef(null), c = S.useRef(null), [l = !1, f] =
|
|
4320
|
+
} = e, i = S.useRef(null), c = S.useRef(null), [l = !1, f] = ir({
|
|
4321
4321
|
prop: n,
|
|
4322
4322
|
defaultProp: s,
|
|
4323
4323
|
onChange: a
|
|
4324
4324
|
});
|
|
4325
4325
|
return /* @__PURE__ */ u.jsx(
|
|
4326
|
-
|
|
4326
|
+
Bl,
|
|
4327
4327
|
{
|
|
4328
4328
|
scope: t,
|
|
4329
4329
|
triggerRef: i,
|
|
@@ -4339,10 +4339,10 @@ var Ll = wr, jn = Fl, Ul = (e) => typeof e == "object" && "log" in e && typeof e
|
|
|
4339
4339
|
}
|
|
4340
4340
|
);
|
|
4341
4341
|
};
|
|
4342
|
-
|
|
4343
|
-
var
|
|
4342
|
+
jo.displayName = Sr;
|
|
4343
|
+
var wo = "DialogTrigger", So = S.forwardRef(
|
|
4344
4344
|
(e, t) => {
|
|
4345
|
-
const { __scopeDialog: r, ...n } = e, s = ce(
|
|
4345
|
+
const { __scopeDialog: r, ...n } = e, s = ce(wo, r), a = jt(t, s.triggerRef);
|
|
4346
4346
|
return /* @__PURE__ */ u.jsx(
|
|
4347
4347
|
ie.button,
|
|
4348
4348
|
{
|
|
@@ -4358,28 +4358,28 @@ var jo = "DialogTrigger", wo = S.forwardRef(
|
|
|
4358
4358
|
);
|
|
4359
4359
|
}
|
|
4360
4360
|
);
|
|
4361
|
-
|
|
4362
|
-
var Tr = "DialogPortal", [
|
|
4361
|
+
So.displayName = wo;
|
|
4362
|
+
var Tr = "DialogPortal", [Dl, To] = $o(Tr, {
|
|
4363
4363
|
forceMount: void 0
|
|
4364
|
-
}),
|
|
4364
|
+
}), Oo = (e) => {
|
|
4365
4365
|
const { __scopeDialog: t, forceMount: r, children: n, container: s } = e, a = ce(Tr, t);
|
|
4366
|
-
return /* @__PURE__ */ u.jsx(
|
|
4366
|
+
return /* @__PURE__ */ u.jsx(Dl, { scope: t, forceMount: r, children: S.Children.map(n, (o) => /* @__PURE__ */ u.jsx(St, { present: r || a.open, children: /* @__PURE__ */ u.jsx(la, { asChild: !0, container: s, children: o }) })) });
|
|
4367
4367
|
};
|
|
4368
|
-
|
|
4369
|
-
var xt = "DialogOverlay",
|
|
4368
|
+
Oo.displayName = Tr;
|
|
4369
|
+
var xt = "DialogOverlay", Co = S.forwardRef(
|
|
4370
4370
|
(e, t) => {
|
|
4371
|
-
const r =
|
|
4372
|
-
return a.modal ? /* @__PURE__ */ u.jsx(
|
|
4371
|
+
const r = To(xt, e.__scopeDialog), { forceMount: n = r.forceMount, ...s } = e, a = ce(xt, e.__scopeDialog);
|
|
4372
|
+
return a.modal ? /* @__PURE__ */ u.jsx(St, { present: n || a.open, children: /* @__PURE__ */ u.jsx(Wl, { ...s, ref: t }) }) : null;
|
|
4373
4373
|
}
|
|
4374
4374
|
);
|
|
4375
|
-
|
|
4376
|
-
var
|
|
4375
|
+
Co.displayName = xt;
|
|
4376
|
+
var Wl = S.forwardRef(
|
|
4377
4377
|
(e, t) => {
|
|
4378
4378
|
const { __scopeDialog: r, ...n } = e, s = ce(xt, r);
|
|
4379
4379
|
return (
|
|
4380
4380
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
4381
4381
|
// ie. when `Overlay` and `Content` are siblings
|
|
4382
|
-
/* @__PURE__ */ u.jsx(
|
|
4382
|
+
/* @__PURE__ */ u.jsx(oa, { as: wn, allowPinchZoom: !0, shards: [s.contentRef], children: /* @__PURE__ */ u.jsx(
|
|
4383
4383
|
ie.div,
|
|
4384
4384
|
{
|
|
4385
4385
|
"data-state": Cr(s.open),
|
|
@@ -4390,21 +4390,21 @@ var Dl = S.forwardRef(
|
|
|
4390
4390
|
) })
|
|
4391
4391
|
);
|
|
4392
4392
|
}
|
|
4393
|
-
), Oe = "DialogContent",
|
|
4393
|
+
), Oe = "DialogContent", Po = S.forwardRef(
|
|
4394
4394
|
(e, t) => {
|
|
4395
|
-
const r =
|
|
4396
|
-
return /* @__PURE__ */ u.jsx(
|
|
4395
|
+
const r = To(Oe, e.__scopeDialog), { forceMount: n = r.forceMount, ...s } = e, a = ce(Oe, e.__scopeDialog);
|
|
4396
|
+
return /* @__PURE__ */ u.jsx(St, { present: n || a.open, children: a.modal ? /* @__PURE__ */ u.jsx(zl, { ...s, ref: t }) : /* @__PURE__ */ u.jsx(Gl, { ...s, ref: t }) });
|
|
4397
4397
|
}
|
|
4398
4398
|
);
|
|
4399
|
-
|
|
4400
|
-
var
|
|
4399
|
+
Po.displayName = Oe;
|
|
4400
|
+
var zl = S.forwardRef(
|
|
4401
4401
|
(e, t) => {
|
|
4402
4402
|
const r = ce(Oe, e.__scopeDialog), n = S.useRef(null), s = jt(t, r.contentRef, n);
|
|
4403
4403
|
return S.useEffect(() => {
|
|
4404
4404
|
const a = n.current;
|
|
4405
|
-
if (a) return
|
|
4405
|
+
if (a) return aa(a);
|
|
4406
4406
|
}, []), /* @__PURE__ */ u.jsx(
|
|
4407
|
-
|
|
4407
|
+
No,
|
|
4408
4408
|
{
|
|
4409
4409
|
...e,
|
|
4410
4410
|
ref: s,
|
|
@@ -4425,11 +4425,11 @@ var Wl = S.forwardRef(
|
|
|
4425
4425
|
}
|
|
4426
4426
|
);
|
|
4427
4427
|
}
|
|
4428
|
-
),
|
|
4428
|
+
), Gl = S.forwardRef(
|
|
4429
4429
|
(e, t) => {
|
|
4430
4430
|
const r = ce(Oe, e.__scopeDialog), n = S.useRef(!1), s = S.useRef(!1);
|
|
4431
4431
|
return /* @__PURE__ */ u.jsx(
|
|
4432
|
-
|
|
4432
|
+
No,
|
|
4433
4433
|
{
|
|
4434
4434
|
...e,
|
|
4435
4435
|
ref: t,
|
|
@@ -4448,12 +4448,12 @@ var Wl = S.forwardRef(
|
|
|
4448
4448
|
}
|
|
4449
4449
|
);
|
|
4450
4450
|
}
|
|
4451
|
-
),
|
|
4451
|
+
), No = S.forwardRef(
|
|
4452
4452
|
(e, t) => {
|
|
4453
4453
|
const { __scopeDialog: r, trapFocus: n, onOpenAutoFocus: s, onCloseAutoFocus: a, ...o } = e, i = ce(Oe, r), c = S.useRef(null), l = jt(t, c);
|
|
4454
|
-
return
|
|
4454
|
+
return sa(), /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
4455
4455
|
/* @__PURE__ */ u.jsx(
|
|
4456
|
-
|
|
4456
|
+
ia,
|
|
4457
4457
|
{
|
|
4458
4458
|
asChild: !0,
|
|
4459
4459
|
loop: !0,
|
|
@@ -4461,7 +4461,7 @@ var Wl = S.forwardRef(
|
|
|
4461
4461
|
onMountAutoFocus: s,
|
|
4462
4462
|
onUnmountAutoFocus: a,
|
|
4463
4463
|
children: /* @__PURE__ */ u.jsx(
|
|
4464
|
-
|
|
4464
|
+
ca,
|
|
4465
4465
|
{
|
|
4466
4466
|
role: "dialog",
|
|
4467
4467
|
id: i.contentId,
|
|
@@ -4476,28 +4476,28 @@ var Wl = S.forwardRef(
|
|
|
4476
4476
|
}
|
|
4477
4477
|
),
|
|
4478
4478
|
/* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
4479
|
-
/* @__PURE__ */ u.jsx(
|
|
4480
|
-
/* @__PURE__ */ u.jsx(
|
|
4479
|
+
/* @__PURE__ */ u.jsx(Vl, { titleId: i.titleId }),
|
|
4480
|
+
/* @__PURE__ */ u.jsx(Kl, { contentRef: c, descriptionId: i.descriptionId })
|
|
4481
4481
|
] })
|
|
4482
4482
|
] });
|
|
4483
4483
|
}
|
|
4484
|
-
), Or = "DialogTitle",
|
|
4484
|
+
), Or = "DialogTitle", Eo = S.forwardRef(
|
|
4485
4485
|
(e, t) => {
|
|
4486
4486
|
const { __scopeDialog: r, ...n } = e, s = ce(Or, r);
|
|
4487
4487
|
return /* @__PURE__ */ u.jsx(ie.h2, { id: s.titleId, ...n, ref: t });
|
|
4488
4488
|
}
|
|
4489
4489
|
);
|
|
4490
|
-
|
|
4491
|
-
var
|
|
4490
|
+
Eo.displayName = Or;
|
|
4491
|
+
var ko = "DialogDescription", Ro = S.forwardRef(
|
|
4492
4492
|
(e, t) => {
|
|
4493
|
-
const { __scopeDialog: r, ...n } = e, s = ce(
|
|
4493
|
+
const { __scopeDialog: r, ...n } = e, s = ce(ko, r);
|
|
4494
4494
|
return /* @__PURE__ */ u.jsx(ie.p, { id: s.descriptionId, ...n, ref: t });
|
|
4495
4495
|
}
|
|
4496
4496
|
);
|
|
4497
|
-
|
|
4498
|
-
var
|
|
4497
|
+
Ro.displayName = ko;
|
|
4498
|
+
var Ao = "DialogClose", Io = S.forwardRef(
|
|
4499
4499
|
(e, t) => {
|
|
4500
|
-
const { __scopeDialog: r, ...n } = e, s = ce(
|
|
4500
|
+
const { __scopeDialog: r, ...n } = e, s = ce(Ao, r);
|
|
4501
4501
|
return /* @__PURE__ */ u.jsx(
|
|
4502
4502
|
ie.button,
|
|
4503
4503
|
{
|
|
@@ -4509,16 +4509,16 @@ var Ro = "DialogClose", Ao = S.forwardRef(
|
|
|
4509
4509
|
);
|
|
4510
4510
|
}
|
|
4511
4511
|
);
|
|
4512
|
-
|
|
4512
|
+
Io.displayName = Ao;
|
|
4513
4513
|
function Cr(e) {
|
|
4514
4514
|
return e ? "open" : "closed";
|
|
4515
4515
|
}
|
|
4516
|
-
var
|
|
4516
|
+
var qo = "DialogTitleWarning", [Vu, _o] = Ko(qo, {
|
|
4517
4517
|
contentName: Oe,
|
|
4518
4518
|
titleName: Or,
|
|
4519
4519
|
docsSlug: "dialog"
|
|
4520
|
-
}),
|
|
4521
|
-
const t = qo
|
|
4520
|
+
}), Vl = ({ titleId: e }) => {
|
|
4521
|
+
const t = _o(qo), r = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
4522
4522
|
|
|
4523
4523
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
4524
4524
|
|
|
@@ -4526,16 +4526,16 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
4526
4526
|
return S.useEffect(() => {
|
|
4527
4527
|
e && (document.getElementById(e) || console.error(r));
|
|
4528
4528
|
}, [r, e]), null;
|
|
4529
|
-
},
|
|
4530
|
-
const n = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${
|
|
4529
|
+
}, Jl = "DialogDescriptionWarning", Kl = ({ contentRef: e, descriptionId: t }) => {
|
|
4530
|
+
const n = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${_o(Jl).contentName}}.`;
|
|
4531
4531
|
return S.useEffect(() => {
|
|
4532
4532
|
var a;
|
|
4533
4533
|
const s = (a = e.current) == null ? void 0 : a.getAttribute("aria-describedby");
|
|
4534
4534
|
t && s && (document.getElementById(t) || console.warn(n));
|
|
4535
4535
|
}, [n, e, t]), null;
|
|
4536
|
-
},
|
|
4537
|
-
const
|
|
4538
|
-
|
|
4536
|
+
}, Ql = jo, Yl = So, Xl = Oo, Fo = Co, Lo = Po, Uo = Eo, Mo = Ro, Zl = Io;
|
|
4537
|
+
const eu = Ql, tu = Yl, ru = Xl, Ho = S.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u.jsx(
|
|
4538
|
+
Fo,
|
|
4539
4539
|
{
|
|
4540
4540
|
ref: r,
|
|
4541
4541
|
className: A(
|
|
@@ -4545,11 +4545,11 @@ const Zl = Kl, eu = Ql, tu = Yl, Mo = S.forwardRef(({ className: e, ...t }, r) =
|
|
|
4545
4545
|
...t
|
|
4546
4546
|
}
|
|
4547
4547
|
));
|
|
4548
|
-
|
|
4549
|
-
const
|
|
4550
|
-
/* @__PURE__ */ u.jsx(
|
|
4548
|
+
Ho.displayName = Fo.displayName;
|
|
4549
|
+
const Bo = S.forwardRef(({ className: e, children: t, ...r }, n) => /* @__PURE__ */ u.jsxs(ru, { children: [
|
|
4550
|
+
/* @__PURE__ */ u.jsx(Ho, {}),
|
|
4551
4551
|
/* @__PURE__ */ u.jsxs(
|
|
4552
|
-
|
|
4552
|
+
Lo,
|
|
4553
4553
|
{
|
|
4554
4554
|
ref: n,
|
|
4555
4555
|
className: A(
|
|
@@ -4559,7 +4559,7 @@ const Ho = S.forwardRef(({ className: e, children: t, ...r }, n) => /* @__PURE__
|
|
|
4559
4559
|
...r,
|
|
4560
4560
|
children: [
|
|
4561
4561
|
t,
|
|
4562
|
-
/* @__PURE__ */ u.jsxs(
|
|
4562
|
+
/* @__PURE__ */ u.jsxs(Zl, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
|
|
4563
4563
|
/* @__PURE__ */ u.jsx(fr, { className: "h-4 w-4" }),
|
|
4564
4564
|
/* @__PURE__ */ u.jsx("span", { className: "sr-only", children: "Close" })
|
|
4565
4565
|
] })
|
|
@@ -4567,9 +4567,9 @@ const Ho = S.forwardRef(({ className: e, children: t, ...r }, n) => /* @__PURE__
|
|
|
4567
4567
|
}
|
|
4568
4568
|
)
|
|
4569
4569
|
] }));
|
|
4570
|
-
|
|
4571
|
-
const
|
|
4572
|
-
|
|
4570
|
+
Bo.displayName = Lo.displayName;
|
|
4571
|
+
const Do = S.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u.jsx(
|
|
4572
|
+
Uo,
|
|
4573
4573
|
{
|
|
4574
4574
|
ref: r,
|
|
4575
4575
|
className: A(
|
|
@@ -4579,17 +4579,17 @@ const Bo = S.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u.jsx(
|
|
|
4579
4579
|
...t
|
|
4580
4580
|
}
|
|
4581
4581
|
));
|
|
4582
|
-
|
|
4583
|
-
const
|
|
4584
|
-
|
|
4582
|
+
Do.displayName = Uo.displayName;
|
|
4583
|
+
const nu = S.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u.jsx(
|
|
4584
|
+
Mo,
|
|
4585
4585
|
{
|
|
4586
4586
|
ref: r,
|
|
4587
4587
|
className: A("text-sm text-muted-foreground", e),
|
|
4588
4588
|
...t
|
|
4589
4589
|
}
|
|
4590
4590
|
));
|
|
4591
|
-
|
|
4592
|
-
const
|
|
4591
|
+
nu.displayName = Mo.displayName;
|
|
4592
|
+
const ar = S.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u.jsx(
|
|
4593
4593
|
"div",
|
|
4594
4594
|
{
|
|
4595
4595
|
ref: r,
|
|
@@ -4600,8 +4600,8 @@ const or = S.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u.jsx(
|
|
|
4600
4600
|
...t
|
|
4601
4601
|
}
|
|
4602
4602
|
));
|
|
4603
|
-
|
|
4604
|
-
const
|
|
4603
|
+
ar.displayName = "Card";
|
|
4604
|
+
const ou = S.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u.jsx(
|
|
4605
4605
|
"div",
|
|
4606
4606
|
{
|
|
4607
4607
|
ref: r,
|
|
@@ -4609,8 +4609,8 @@ const nu = S.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u.jsx(
|
|
|
4609
4609
|
...t
|
|
4610
4610
|
}
|
|
4611
4611
|
));
|
|
4612
|
-
|
|
4613
|
-
const
|
|
4612
|
+
ou.displayName = "CardHeader";
|
|
4613
|
+
const au = S.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u.jsx(
|
|
4614
4614
|
"h3",
|
|
4615
4615
|
{
|
|
4616
4616
|
ref: r,
|
|
@@ -4618,8 +4618,8 @@ const ou = S.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u.jsx(
|
|
|
4618
4618
|
...t
|
|
4619
4619
|
}
|
|
4620
4620
|
));
|
|
4621
|
-
|
|
4622
|
-
const
|
|
4621
|
+
au.displayName = "CardTitle";
|
|
4622
|
+
const su = S.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u.jsx(
|
|
4623
4623
|
"p",
|
|
4624
4624
|
{
|
|
4625
4625
|
ref: r,
|
|
@@ -4627,10 +4627,10 @@ const au = S.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u.jsx(
|
|
|
4627
4627
|
...t
|
|
4628
4628
|
}
|
|
4629
4629
|
));
|
|
4630
|
-
|
|
4631
|
-
const
|
|
4632
|
-
|
|
4633
|
-
const
|
|
4630
|
+
su.displayName = "CardDescription";
|
|
4631
|
+
const iu = S.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u.jsx("div", { ref: r, className: A("p-6 pt-0", e), ...t }));
|
|
4632
|
+
iu.displayName = "CardContent";
|
|
4633
|
+
const cu = S.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u.jsx(
|
|
4634
4634
|
"div",
|
|
4635
4635
|
{
|
|
4636
4636
|
ref: r,
|
|
@@ -4638,8 +4638,8 @@ const iu = S.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u.jsx(
|
|
|
4638
4638
|
...t
|
|
4639
4639
|
}
|
|
4640
4640
|
));
|
|
4641
|
-
|
|
4642
|
-
const
|
|
4641
|
+
cu.displayName = "CardFooter";
|
|
4642
|
+
const lu = (e, t, r) => {
|
|
4643
4643
|
const n = new URL(
|
|
4644
4644
|
e + t.split("/").map(
|
|
4645
4645
|
(s) => {
|
|
@@ -4651,7 +4651,7 @@ const cu = (e, t, r) => {
|
|
|
4651
4651
|
return r.queryParams.forEach((s) => {
|
|
4652
4652
|
n.searchParams.set(s.name, s.value);
|
|
4653
4653
|
}), n;
|
|
4654
|
-
},
|
|
4654
|
+
}, uu = (e, t) => {
|
|
4655
4655
|
const r = S.forwardRef(({ className: n, asChild: s, ...a }, o) => {
|
|
4656
4656
|
const i = s ? wn : e;
|
|
4657
4657
|
return S.createElement(i, {
|
|
@@ -4661,10 +4661,10 @@ const cu = (e, t, r) => {
|
|
|
4661
4661
|
});
|
|
4662
4662
|
});
|
|
4663
4663
|
return r.displayName = `VariantComponent(${e})`, r;
|
|
4664
|
-
}, Fe =
|
|
4664
|
+
}, Fe = uu(
|
|
4665
4665
|
"input",
|
|
4666
4666
|
"px-2 bg-transparent h-6 font-mono text-xs m-2"
|
|
4667
|
-
),
|
|
4667
|
+
), fu = ({
|
|
4668
4668
|
control: e,
|
|
4669
4669
|
register: t
|
|
4670
4670
|
}) => {
|
|
@@ -4695,7 +4695,7 @@ const cu = (e, t, r) => {
|
|
|
4695
4695
|
autoComplete: "off"
|
|
4696
4696
|
}
|
|
4697
4697
|
),
|
|
4698
|
-
f && /* @__PURE__ */ u.jsx(
|
|
4698
|
+
f && /* @__PURE__ */ u.jsx(Go, { size: 16, className: "text-amber-500" })
|
|
4699
4699
|
] }),
|
|
4700
4700
|
/* @__PURE__ */ u.jsx(
|
|
4701
4701
|
Fe,
|
|
@@ -4733,9 +4733,9 @@ const cu = (e, t, r) => {
|
|
|
4733
4733
|
}
|
|
4734
4734
|
)
|
|
4735
4735
|
] });
|
|
4736
|
-
},
|
|
4736
|
+
}, du = ea(
|
|
4737
4737
|
function({ part: t, className: r, ...n }, s) {
|
|
4738
|
-
const a =
|
|
4738
|
+
const a = Qn(t);
|
|
4739
4739
|
return /* @__PURE__ */ u.jsx(
|
|
4740
4740
|
Fe,
|
|
4741
4741
|
{
|
|
@@ -4749,7 +4749,7 @@ const cu = (e, t, r) => {
|
|
|
4749
4749
|
}
|
|
4750
4750
|
);
|
|
4751
4751
|
}
|
|
4752
|
-
),
|
|
4752
|
+
), pu = ({
|
|
4753
4753
|
control: e,
|
|
4754
4754
|
register: t
|
|
4755
4755
|
}) => {
|
|
@@ -4772,7 +4772,7 @@ const cu = (e, t, r) => {
|
|
|
4772
4772
|
}
|
|
4773
4773
|
),
|
|
4774
4774
|
/* @__PURE__ */ u.jsx(
|
|
4775
|
-
|
|
4775
|
+
du,
|
|
4776
4776
|
{
|
|
4777
4777
|
...t(`pathParams.${s}.value`),
|
|
4778
4778
|
part: n.name,
|
|
@@ -4786,13 +4786,13 @@ const cu = (e, t, r) => {
|
|
|
4786
4786
|
},
|
|
4787
4787
|
n.id
|
|
4788
4788
|
));
|
|
4789
|
-
},
|
|
4789
|
+
}, hu = ({
|
|
4790
4790
|
control: e
|
|
4791
4791
|
}) => {
|
|
4792
4792
|
const { fields: t } = ur({
|
|
4793
4793
|
control: e,
|
|
4794
4794
|
name: "queryParams"
|
|
4795
|
-
}), n =
|
|
4795
|
+
}), n = ua().getValues("queryParams").map((s) => s.isRequired);
|
|
4796
4796
|
return t.map((s, a) => /* @__PURE__ */ u.jsxs(
|
|
4797
4797
|
"div",
|
|
4798
4798
|
{
|
|
@@ -4865,7 +4865,7 @@ const cu = (e, t, r) => {
|
|
|
4865
4865
|
},
|
|
4866
4866
|
s.id
|
|
4867
4867
|
));
|
|
4868
|
-
}, ut = "__none",
|
|
4868
|
+
}, ut = "__none", mu = cr(
|
|
4869
4869
|
/* GraphQL */
|
|
4870
4870
|
`
|
|
4871
4871
|
query getServerQuery($input: JSON!, $type: SchemaType!) {
|
|
@@ -4875,7 +4875,7 @@ const cu = (e, t, r) => {
|
|
|
4875
4875
|
}
|
|
4876
4876
|
`
|
|
4877
4877
|
);
|
|
4878
|
-
function
|
|
4878
|
+
function yu(e) {
|
|
4879
4879
|
var r;
|
|
4880
4880
|
return (r = Object.entries({
|
|
4881
4881
|
"application/json": "json",
|
|
@@ -4890,7 +4890,7 @@ function mu(e) {
|
|
|
4890
4890
|
([n]) => e.includes(n)
|
|
4891
4891
|
)) == null ? void 0 : r[0][1];
|
|
4892
4892
|
}
|
|
4893
|
-
const
|
|
4893
|
+
const gu = {
|
|
4894
4894
|
200: "OK",
|
|
4895
4895
|
201: "Created",
|
|
4896
4896
|
202: "Accepted",
|
|
@@ -4901,7 +4901,7 @@ const yu = {
|
|
|
4901
4901
|
404: "Not Found",
|
|
4902
4902
|
405: "Method Not Allowed",
|
|
4903
4903
|
500: "Internal Server Error"
|
|
4904
|
-
},
|
|
4904
|
+
}, bu = ({
|
|
4905
4905
|
url: e,
|
|
4906
4906
|
method: t,
|
|
4907
4907
|
headers: r = [{ name: "", value: "" }],
|
|
@@ -4910,7 +4910,7 @@ const yu = {
|
|
|
4910
4910
|
hasParams: a
|
|
4911
4911
|
}) => {
|
|
4912
4912
|
var T, $, O;
|
|
4913
|
-
const o =
|
|
4913
|
+
const o = Nn(), [i] = va({ query: mu, variables: o }), { register: c, control: l, handleSubmit: f, watch: p, ...d } = fa({
|
|
4914
4914
|
defaultValues: {
|
|
4915
4915
|
body: "",
|
|
4916
4916
|
queryParams: n,
|
|
@@ -4918,10 +4918,10 @@ const yu = {
|
|
|
4918
4918
|
pathParams: s,
|
|
4919
4919
|
identity: ut
|
|
4920
4920
|
}
|
|
4921
|
-
}), h = p(), m =
|
|
4921
|
+
}), h = p(), m = wa(), g = da({
|
|
4922
4922
|
mutationFn: async (w) => {
|
|
4923
4923
|
var F, D, B;
|
|
4924
|
-
const C =
|
|
4924
|
+
const C = lu(((F = i.data) == null ? void 0 : F.schema.url) ?? "", e, w), R = performance.now(), q = new Request(C, {
|
|
4925
4925
|
method: t.toUpperCase(),
|
|
4926
4926
|
headers: Object.fromEntries(
|
|
4927
4927
|
w.headers.filter((I) => I.name).map((I) => [I.name, I.value])
|
|
@@ -4937,7 +4937,7 @@ const yu = {
|
|
|
4937
4937
|
time: performance.now() - R
|
|
4938
4938
|
};
|
|
4939
4939
|
}
|
|
4940
|
-
}),
|
|
4940
|
+
}), b = e.split("/").map((w, C, R) => {
|
|
4941
4941
|
var q;
|
|
4942
4942
|
return /* @__PURE__ */ u.jsxs(nt, { children: [
|
|
4943
4943
|
w.startsWith("{") && w.endsWith("}") ? /* @__PURE__ */ u.jsx(
|
|
@@ -4952,7 +4952,7 @@ const yu = {
|
|
|
4952
4952
|
C < R.length - 1 && "/",
|
|
4953
4953
|
/* @__PURE__ */ u.jsx("wbr", {})
|
|
4954
4954
|
] }, w);
|
|
4955
|
-
}),
|
|
4955
|
+
}), v = yu(
|
|
4956
4956
|
((T = g.data) == null ? void 0 : T.headers.get("Content-Type")) ?? ""
|
|
4957
4957
|
), y = Array.from((($ = g.data) == null ? void 0 : $.headers.entries()) ?? []), x = h.queryParams.filter((w) => w.active).map((w) => /* @__PURE__ */ u.jsxs(nt, { children: [
|
|
4958
4958
|
w.name,
|
|
@@ -4960,20 +4960,20 @@ const yu = {
|
|
|
4960
4960
|
w.value,
|
|
4961
4961
|
/* @__PURE__ */ u.jsx("wbr", {})
|
|
4962
4962
|
] }, w.name));
|
|
4963
|
-
return /* @__PURE__ */ u.jsx(
|
|
4963
|
+
return /* @__PURE__ */ u.jsx(pa, { register: c, control: l, handleSubmit: f, watch: p, ...d, children: /* @__PURE__ */ u.jsx("form", { onSubmit: f((w) => g.mutateAsync(w)), children: /* @__PURE__ */ u.jsxs("div", { className: "grid grid-cols-2 text-sm h-full", children: [
|
|
4964
4964
|
/* @__PURE__ */ u.jsxs("div", { className: "flex flex-col gap-4 p-8 bg-muted/50 after:bg-muted-foreground/20 relative after:absolute after:w-px after:inset-0 after:left-auto", children: [
|
|
4965
4965
|
/* @__PURE__ */ u.jsxs("div", { className: "flex gap-2 items-stretch", children: [
|
|
4966
4966
|
/* @__PURE__ */ u.jsxs("div", { className: "flex flex-1 items-center w-full border rounded-md border-border", children: [
|
|
4967
4967
|
/* @__PURE__ */ u.jsx("div", { className: "border-r border-border p-2 bg-muted rounded-l-md self-stretch font-semibold font-mono", children: t.toUpperCase() }),
|
|
4968
4968
|
/* @__PURE__ */ u.jsxs("div", { className: "p-2 font-mono text-xs", children: [
|
|
4969
|
-
|
|
4969
|
+
b,
|
|
4970
4970
|
x.length > 0 ? "?" : "",
|
|
4971
4971
|
x
|
|
4972
4972
|
] })
|
|
4973
4973
|
] }),
|
|
4974
4974
|
/* @__PURE__ */ u.jsx(lr, { type: "submit", className: "h-auto flex gap-1", children: "Send" })
|
|
4975
4975
|
] }),
|
|
4976
|
-
/* @__PURE__ */ u.jsxs(
|
|
4976
|
+
/* @__PURE__ */ u.jsxs(Gt, { defaultValue: a ? "parameters" : "headers", children: [
|
|
4977
4977
|
/* @__PURE__ */ u.jsxs("div", { className: "flex justify-between", children: [
|
|
4978
4978
|
/* @__PURE__ */ u.jsxs(ft, { children: [
|
|
4979
4979
|
a && /* @__PURE__ */ u.jsx($e, { value: "parameters", children: "Parameters" }),
|
|
@@ -4996,13 +4996,13 @@ const yu = {
|
|
|
4996
4996
|
/* @__PURE__ */ u.jsxs("div", { className: "flex gap-2 items-center", children: [
|
|
4997
4997
|
"Auth:",
|
|
4998
4998
|
/* @__PURE__ */ u.jsxs(
|
|
4999
|
-
|
|
4999
|
+
ha,
|
|
5000
5000
|
{
|
|
5001
5001
|
onValueChange: (w) => d.setValue("identity", w),
|
|
5002
5002
|
defaultValue: h.identity,
|
|
5003
5003
|
children: [
|
|
5004
|
-
/* @__PURE__ */ u.jsx(
|
|
5005
|
-
/* @__PURE__ */ u.jsxs(
|
|
5004
|
+
/* @__PURE__ */ u.jsx(ma, { className: "w-[180px] flex", children: m.isPending ? /* @__PURE__ */ u.jsx(qr, {}) : /* @__PURE__ */ u.jsx(ya, {}) }),
|
|
5005
|
+
/* @__PURE__ */ u.jsxs(ga, { align: "center", children: [
|
|
5006
5006
|
/* @__PURE__ */ u.jsx(Ir, { value: ut, children: "None" }),
|
|
5007
5007
|
(O = m.data) == null ? void 0 : O.map((w) => /* @__PURE__ */ u.jsx(Ir, { value: w.id, children: w.label }, w.id))
|
|
5008
5008
|
] })
|
|
@@ -5011,12 +5011,12 @@ const yu = {
|
|
|
5011
5011
|
)
|
|
5012
5012
|
] })
|
|
5013
5013
|
] }),
|
|
5014
|
-
/* @__PURE__ */ u.jsx(je, { value: "headers", children: /* @__PURE__ */ u.jsx(
|
|
5014
|
+
/* @__PURE__ */ u.jsx(je, { value: "headers", children: /* @__PURE__ */ u.jsx(fu, { control: l, register: c }) }),
|
|
5015
5015
|
/* @__PURE__ */ u.jsx(je, { value: "parameters", children: /* @__PURE__ */ u.jsxs("div", { className: "grid grid-cols-[min-content_1fr_1fr_auto]", children: [
|
|
5016
5016
|
s.length > 0 && /* @__PURE__ */ u.jsx("div", { className: "font-semibold my-3 col-span-3", children: "Path Parameters" }),
|
|
5017
|
-
/* @__PURE__ */ u.jsx(
|
|
5017
|
+
/* @__PURE__ */ u.jsx(pu, { control: l, register: c }),
|
|
5018
5018
|
n.length > 0 && /* @__PURE__ */ u.jsx("span", { className: "font-semibold my-3 col-span-3", children: "Query Parameters" }),
|
|
5019
|
-
/* @__PURE__ */ u.jsx(
|
|
5019
|
+
/* @__PURE__ */ u.jsx(hu, { control: l })
|
|
5020
5020
|
] }) }),
|
|
5021
5021
|
/* @__PURE__ */ u.jsx(je, { value: "body", children: /* @__PURE__ */ u.jsx(
|
|
5022
5022
|
"textarea",
|
|
@@ -5033,7 +5033,7 @@ const yu = {
|
|
|
5033
5033
|
"Status: ",
|
|
5034
5034
|
g.data.status,
|
|
5035
5035
|
" ",
|
|
5036
|
-
|
|
5036
|
+
gu[g.data.status] ?? ""
|
|
5037
5037
|
] }),
|
|
5038
5038
|
/* @__PURE__ */ u.jsxs("div", { children: [
|
|
5039
5039
|
"Time: ",
|
|
@@ -5046,21 +5046,21 @@ const yu = {
|
|
|
5046
5046
|
" B"
|
|
5047
5047
|
] })
|
|
5048
5048
|
] }) }),
|
|
5049
|
-
/* @__PURE__ */ u.jsxs(
|
|
5049
|
+
/* @__PURE__ */ u.jsxs(Gt, { defaultValue: "response", children: [
|
|
5050
5050
|
/* @__PURE__ */ u.jsxs(ft, { children: [
|
|
5051
5051
|
/* @__PURE__ */ u.jsx($e, { value: "response", children: "Response" }),
|
|
5052
5052
|
/* @__PURE__ */ u.jsx($e, { value: "headers", children: y.length ? `Headers (${y.length})` : "No headers" })
|
|
5053
5053
|
] }),
|
|
5054
|
-
/* @__PURE__ */ u.jsx(je, { value: "response", children: /* @__PURE__ */ u.jsx(
|
|
5054
|
+
/* @__PURE__ */ u.jsx(je, { value: "response", children: /* @__PURE__ */ u.jsx(ar, { className: "shadow-none p-4", children: /* @__PURE__ */ u.jsx(
|
|
5055
5055
|
Ke,
|
|
5056
5056
|
{
|
|
5057
|
-
language:
|
|
5057
|
+
language: v ?? "json",
|
|
5058
5058
|
noBackground: !0,
|
|
5059
5059
|
className: "overflow-x-auto ",
|
|
5060
5060
|
code: g.data.body ?? JSON.stringify("")
|
|
5061
5061
|
}
|
|
5062
5062
|
) }) }),
|
|
5063
|
-
/* @__PURE__ */ u.jsx(je, { value: "headers", children: /* @__PURE__ */ u.jsxs(
|
|
5063
|
+
/* @__PURE__ */ u.jsx(je, { value: "headers", children: /* @__PURE__ */ u.jsxs(ar, { className: "grid grid-cols-2 w-full gap-2.5 font-mono text-xs shadow-none p-4", children: [
|
|
5064
5064
|
/* @__PURE__ */ u.jsx("div", { className: "font-semibold", children: "Key" }),
|
|
5065
5065
|
/* @__PURE__ */ u.jsx("div", { className: "font-semibold", children: "Value" }),
|
|
5066
5066
|
y.map(([w, C]) => /* @__PURE__ */ u.jsxs(nt, { children: [
|
|
@@ -5072,28 +5072,28 @@ const yu = {
|
|
|
5072
5072
|
] }) : /* @__PURE__ */ u.jsx("div", { className: "grid place-items-center h-full", children: /* @__PURE__ */ u.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: g.isPending ? /* @__PURE__ */ u.jsx(qr, {}) : "Send a request first to see the response here" }) }) })
|
|
5073
5073
|
] }) }) });
|
|
5074
5074
|
}, vu = (e) => {
|
|
5075
|
-
const [t, r] =
|
|
5076
|
-
return /* @__PURE__ */ u.jsxs(
|
|
5077
|
-
/* @__PURE__ */ u.jsx(
|
|
5078
|
-
|
|
5075
|
+
const [t, r] = wt(!1);
|
|
5076
|
+
return /* @__PURE__ */ u.jsxs(eu, { onOpenChange: (n) => r(n), children: [
|
|
5077
|
+
/* @__PURE__ */ u.jsx(tu, { asChild: !0, children: /* @__PURE__ */ u.jsx(
|
|
5078
|
+
Ta,
|
|
5079
5079
|
{
|
|
5080
5080
|
className: "cursor-pointer text-primary hover:text-primary/80",
|
|
5081
5081
|
size: 16
|
|
5082
5082
|
}
|
|
5083
5083
|
) }),
|
|
5084
5084
|
/* @__PURE__ */ u.jsxs(
|
|
5085
|
-
|
|
5085
|
+
Bo,
|
|
5086
5086
|
{
|
|
5087
5087
|
className: "max-w-screen-xl w-full h-5/6 overflow-auto p-0",
|
|
5088
5088
|
"aria-describedby": void 0,
|
|
5089
5089
|
children: [
|
|
5090
|
-
/* @__PURE__ */ u.jsx(
|
|
5091
|
-
t && /* @__PURE__ */ u.jsx(
|
|
5090
|
+
/* @__PURE__ */ u.jsx(ba, { children: /* @__PURE__ */ u.jsx(Do, { children: "Playground" }) }),
|
|
5091
|
+
t && /* @__PURE__ */ u.jsx(bu, { ...e })
|
|
5092
5092
|
]
|
|
5093
5093
|
}
|
|
5094
5094
|
)
|
|
5095
5095
|
] });
|
|
5096
|
-
},
|
|
5096
|
+
}, xu = ({
|
|
5097
5097
|
operation: e
|
|
5098
5098
|
}) => {
|
|
5099
5099
|
var a, o, i, c;
|
|
@@ -5147,8 +5147,8 @@ const yu = {
|
|
|
5147
5147
|
className: A("bg-zinc-50 dark:bg-zinc-800 overflow-auto p-2", t),
|
|
5148
5148
|
children: e
|
|
5149
5149
|
}
|
|
5150
|
-
),
|
|
5151
|
-
function
|
|
5150
|
+
), $u = (e) => typeof e == "object" && e !== null && !Array.isArray(e), Je = (e, t) => e.example !== void 0 ? e.example : e.default !== void 0 ? e.default : e.examples && $u(e.examples) ? Object.values(e.examples)[0] : ju(e);
|
|
5151
|
+
function ju(e, t) {
|
|
5152
5152
|
const r = Object.entries(e.properties ?? {}).concat(
|
|
5153
5153
|
Object.entries(e.additionalProperties ?? {})
|
|
5154
5154
|
);
|
|
@@ -5163,7 +5163,7 @@ function $u(e, t) {
|
|
|
5163
5163
|
return n !== void 0 ? [n] : [];
|
|
5164
5164
|
}
|
|
5165
5165
|
}
|
|
5166
|
-
const
|
|
5166
|
+
const wu = ({ content: e }) => e.length ? /* @__PURE__ */ u.jsx(u.Fragment, { children: /* @__PURE__ */ u.jsxs(Pr, { children: [
|
|
5167
5167
|
/* @__PURE__ */ u.jsx(Nr, { className: "text-xs flex justify-between items-center", children: /* @__PURE__ */ u.jsx("span", { className: "font-mono", children: "Request Body Example" }) }),
|
|
5168
5168
|
/* @__PURE__ */ u.jsx(Er, { children: /* @__PURE__ */ u.jsx(
|
|
5169
5169
|
Ke,
|
|
@@ -5179,11 +5179,11 @@ const ju = ({ content: e }) => e.length ? /* @__PURE__ */ u.jsx(u.Fragment, { ch
|
|
|
5179
5179
|
)
|
|
5180
5180
|
}
|
|
5181
5181
|
) })
|
|
5182
|
-
] }) }) : null,
|
|
5182
|
+
] }) }) : null, Su = ({
|
|
5183
5183
|
responses: e
|
|
5184
5184
|
}) => {
|
|
5185
5185
|
var a, o;
|
|
5186
|
-
const [t, r] =
|
|
5186
|
+
const [t, r] = wt(0), s = (o = (a = e[t].content) == null ? void 0 : a[0]) == null ? void 0 : o.schema;
|
|
5187
5187
|
return /* @__PURE__ */ u.jsxs(Pr, { children: [
|
|
5188
5188
|
/* @__PURE__ */ u.jsxs(Nr, { className: "text-xs grid grid-rows-2 pb-0", children: [
|
|
5189
5189
|
/* @__PURE__ */ u.jsx("span", { className: "font-mono", children: "Example Responses" }),
|
|
@@ -5214,7 +5214,7 @@ const ju = ({ content: e }) => e.length ? /* @__PURE__ */ u.jsx(u.Fragment, { ch
|
|
|
5214
5214
|
/* @__PURE__ */ u.jsx("div", { className: "text-xs text-muted-foreground", children: e[t].description })
|
|
5215
5215
|
] })
|
|
5216
5216
|
] });
|
|
5217
|
-
},
|
|
5217
|
+
}, Tu = ({
|
|
5218
5218
|
value: e,
|
|
5219
5219
|
onChange: t,
|
|
5220
5220
|
className: r,
|
|
@@ -5232,8 +5232,8 @@ const ju = ({ content: e }) => e.length ? /* @__PURE__ */ u.jsx(u.Fragment, { ch
|
|
|
5232
5232
|
children: n.map((s) => /* @__PURE__ */ u.jsx("option", { value: s.value, children: s.label }, s.value))
|
|
5233
5233
|
}
|
|
5234
5234
|
),
|
|
5235
|
-
/* @__PURE__ */ u.jsx("div", { className: "row-start-1 col-start-1 self-center justify-self-end relative end-2 pointer-events-none", children: /* @__PURE__ */ u.jsx(
|
|
5236
|
-
] }),
|
|
5235
|
+
/* @__PURE__ */ u.jsx("div", { className: "row-start-1 col-start-1 self-center justify-self-end relative end-2 pointer-events-none", children: /* @__PURE__ */ u.jsx(Sa, { size: 14 }) })
|
|
5236
|
+
] }), Ou = (e, t) => {
|
|
5237
5237
|
let r;
|
|
5238
5238
|
switch (t) {
|
|
5239
5239
|
case "shell":
|
|
@@ -5274,11 +5274,11 @@ const ju = ({ content: e }) => e.length ? /* @__PURE__ */ u.jsx(u.Fragment, { ch
|
|
|
5274
5274
|
break;
|
|
5275
5275
|
}
|
|
5276
5276
|
return r ? r[0] : "";
|
|
5277
|
-
},
|
|
5277
|
+
}, Cu = ({
|
|
5278
5278
|
operation: e
|
|
5279
5279
|
}) => {
|
|
5280
5280
|
var c;
|
|
5281
|
-
const t =
|
|
5281
|
+
const t = Yo[e.method], [r, n] = Vo(), s = r.get("lang") ?? "shell", a = (c = e.requestBody) == null ? void 0 : c.content, o = e.path.split("/").map((l) => /* @__PURE__ */ u.jsxs(nt, { children: [
|
|
5282
5282
|
l.startsWith("{") && l.endsWith("}") ? /* @__PURE__ */ u.jsx(
|
|
5283
5283
|
hr,
|
|
5284
5284
|
{
|
|
@@ -5292,7 +5292,7 @@ const ju = ({ content: e }) => e.length ? /* @__PURE__ */ u.jsx(u.Fragment, { ch
|
|
|
5292
5292
|
/* @__PURE__ */ u.jsx("wbr", {})
|
|
5293
5293
|
] }, l)), i = ta(() => {
|
|
5294
5294
|
var p;
|
|
5295
|
-
const l = (p = a == null ? void 0 : a[0]) != null && p.schema ? Je(a[0].schema) : void 0, f = new
|
|
5295
|
+
const l = (p = a == null ? void 0 : a[0]) != null && p.schema ? Je(a[0].schema) : void 0, f = new Hl(
|
|
5296
5296
|
{
|
|
5297
5297
|
method: e.method.toLocaleUpperCase(),
|
|
5298
5298
|
url: e.path.replaceAll("{", ":").replaceAll("}", ""),
|
|
@@ -5304,7 +5304,7 @@ const ju = ({ content: e }) => e.length ? /* @__PURE__ */ u.jsx(u.Fragment, { ch
|
|
|
5304
5304
|
}
|
|
5305
5305
|
// 👈 never touch this
|
|
5306
5306
|
);
|
|
5307
|
-
return
|
|
5307
|
+
return Ou(f, s);
|
|
5308
5308
|
}, [s, e.method, e.path, a]);
|
|
5309
5309
|
return /* @__PURE__ */ u.jsxs("aside", { className: "flex flex-col overflow-hidden sticky top-[--scroll-padding] gap-4", children: [
|
|
5310
5310
|
/* @__PURE__ */ u.jsxs(Pr, { children: [
|
|
@@ -5316,7 +5316,7 @@ const ju = ({ content: e }) => e.length ? /* @__PURE__ */ u.jsx(u.Fragment, { ch
|
|
|
5316
5316
|
] }),
|
|
5317
5317
|
/* @__PURE__ */ u.jsxs("div", { className: "flex gap-2 items-center", children: [
|
|
5318
5318
|
/* @__PURE__ */ u.jsx(
|
|
5319
|
-
|
|
5319
|
+
Tu,
|
|
5320
5320
|
{
|
|
5321
5321
|
className: "self-start",
|
|
5322
5322
|
value: s,
|
|
@@ -5336,7 +5336,7 @@ const ju = ({ content: e }) => e.length ? /* @__PURE__ */ u.jsx(u.Fragment, { ch
|
|
|
5336
5336
|
]
|
|
5337
5337
|
}
|
|
5338
5338
|
),
|
|
5339
|
-
/* @__PURE__ */ u.jsx(
|
|
5339
|
+
/* @__PURE__ */ u.jsx(xu, { operation: e })
|
|
5340
5340
|
] })
|
|
5341
5341
|
] }),
|
|
5342
5342
|
/* @__PURE__ */ u.jsx(Er, { children: /* @__PURE__ */ u.jsx(
|
|
@@ -5349,14 +5349,14 @@ const ju = ({ content: e }) => e.length ? /* @__PURE__ */ u.jsx(u.Fragment, { ch
|
|
|
5349
5349
|
}
|
|
5350
5350
|
) })
|
|
5351
5351
|
] }),
|
|
5352
|
-
a && /* @__PURE__ */ u.jsx(
|
|
5353
|
-
e.responses.length > 0 && /* @__PURE__ */ u.jsx(
|
|
5352
|
+
a && /* @__PURE__ */ u.jsx(wu, { content: a }),
|
|
5353
|
+
e.responses.length > 0 && /* @__PURE__ */ u.jsx(Su, { responses: e.responses })
|
|
5354
5354
|
] });
|
|
5355
|
-
},
|
|
5355
|
+
}, Pu = ["path", "query", "header", "cookie"], Nu = ({
|
|
5356
5356
|
operationFragment: e
|
|
5357
5357
|
}) => {
|
|
5358
5358
|
var s, a, o;
|
|
5359
|
-
const t =
|
|
5359
|
+
const t = Ca(ku, e), r = Kn(
|
|
5360
5360
|
t.parameters ?? [],
|
|
5361
5361
|
(i) => i.in
|
|
5362
5362
|
), n = t.responses.at(0);
|
|
@@ -5374,11 +5374,11 @@ const ju = ({ content: e }) => e.length ? /* @__PURE__ */ u.jsx(u.Fragment, { ch
|
|
|
5374
5374
|
content: t.description
|
|
5375
5375
|
}
|
|
5376
5376
|
),
|
|
5377
|
-
t.parameters && t.parameters.length > 0 && /* @__PURE__ */ u.jsx(u.Fragment, { children:
|
|
5377
|
+
t.parameters && t.parameters.length > 0 && /* @__PURE__ */ u.jsx(u.Fragment, { children: Pu.flatMap(
|
|
5378
5378
|
(i) => {
|
|
5379
5379
|
var c;
|
|
5380
5380
|
return (c = r[i]) != null && c.length ? /* @__PURE__ */ u.jsx(
|
|
5381
|
-
|
|
5381
|
+
za,
|
|
5382
5382
|
{
|
|
5383
5383
|
id: t.slug,
|
|
5384
5384
|
parameters: r[i],
|
|
@@ -5401,7 +5401,7 @@ const ju = ({ content: e }) => e.length ? /* @__PURE__ */ u.jsx(u.Fragment, { ch
|
|
|
5401
5401
|
children: "Responses"
|
|
5402
5402
|
}
|
|
5403
5403
|
),
|
|
5404
|
-
/* @__PURE__ */ u.jsxs(
|
|
5404
|
+
/* @__PURE__ */ u.jsxs(Gt, { defaultValue: `${n == null ? void 0 : n.statusCode}${n == null ? void 0 : n.description}`, children: [
|
|
5405
5405
|
t.responses.length > 1 && /* @__PURE__ */ u.jsx(ft, { children: t.responses.map((i) => /* @__PURE__ */ u.jsx(
|
|
5406
5406
|
$e,
|
|
5407
5407
|
{
|
|
@@ -5428,12 +5428,20 @@ const ju = ({ content: e }) => e.length ? /* @__PURE__ */ u.jsx(u.Fragment, { ch
|
|
|
5428
5428
|
] })
|
|
5429
5429
|
] })
|
|
5430
5430
|
] }),
|
|
5431
|
-
/* @__PURE__ */ u.jsx(
|
|
5431
|
+
/* @__PURE__ */ u.jsx(Cu, { operation: t })
|
|
5432
5432
|
]
|
|
5433
5433
|
},
|
|
5434
5434
|
t.operationId
|
|
5435
5435
|
);
|
|
5436
|
-
},
|
|
5436
|
+
}, Eu = ({ children: e }) => {
|
|
5437
|
+
const [t, r] = wt(typeof window > "u");
|
|
5438
|
+
return Sn(() => {
|
|
5439
|
+
const n = window.requestIdleCallback(() => {
|
|
5440
|
+
r(!0);
|
|
5441
|
+
});
|
|
5442
|
+
return () => window.cancelIdleCallback(n);
|
|
5443
|
+
}, []), t ? e : ra.toArray(e).slice(0, 3);
|
|
5444
|
+
}, ku = cr(
|
|
5437
5445
|
/* GraphQL */
|
|
5438
5446
|
`
|
|
5439
5447
|
fragment OperationsFragment on OperationItem {
|
|
@@ -5484,7 +5492,7 @@ const ju = ({ content: e }) => e.length ? /* @__PURE__ */ u.jsx(u.Fragment, { ch
|
|
|
5484
5492
|
}
|
|
5485
5493
|
}
|
|
5486
5494
|
`
|
|
5487
|
-
),
|
|
5495
|
+
), Ru = cr(
|
|
5488
5496
|
/* GraphQL */
|
|
5489
5497
|
`
|
|
5490
5498
|
query AllOperations($input: JSON!, $type: SchemaType!) {
|
|
@@ -5504,20 +5512,20 @@ const ju = ({ content: e }) => e.length ? /* @__PURE__ */ u.jsx(u.Fragment, { ch
|
|
|
5504
5512
|
}
|
|
5505
5513
|
}
|
|
5506
5514
|
`
|
|
5507
|
-
),
|
|
5515
|
+
), Au = { suspense: !0 }, Ju = () => {
|
|
5508
5516
|
var s;
|
|
5509
|
-
const { type: e, input: t } =
|
|
5510
|
-
query:
|
|
5517
|
+
const { type: e, input: t } = Nn(), [r] = xa({
|
|
5518
|
+
query: Ru,
|
|
5511
5519
|
variables: { type: e, input: t },
|
|
5512
|
-
context:
|
|
5520
|
+
context: Au
|
|
5513
5521
|
}), n = (s = r.error) == null ? void 0 : s.graphQLErrors.at(0);
|
|
5514
5522
|
return n ? /* @__PURE__ */ u.jsx(
|
|
5515
|
-
|
|
5523
|
+
Xo,
|
|
5516
5524
|
{
|
|
5517
5525
|
category: "Error",
|
|
5518
5526
|
title: "Schema cannot be displayed",
|
|
5519
5527
|
message: /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
5520
|
-
/* @__PURE__ */ u.jsxs(
|
|
5528
|
+
/* @__PURE__ */ u.jsxs(Qo, { className: "mb-4", children: [
|
|
5521
5529
|
"Check your configuration value ",
|
|
5522
5530
|
/* @__PURE__ */ u.jsx(kr, { children: "apis.type" }),
|
|
5523
5531
|
" ",
|
|
@@ -5553,18 +5561,18 @@ const ju = ({ content: e }) => e.length ? /* @__PURE__ */ u.jsx(u.Fragment, { ch
|
|
|
5553
5561
|
content: a.description
|
|
5554
5562
|
}
|
|
5555
5563
|
),
|
|
5556
|
-
/* @__PURE__ */ u.jsx("div", { className: "operation mb-12", children: a.operations.map((o) => /* @__PURE__ */ u.jsx(
|
|
5557
|
-
|
|
5564
|
+
/* @__PURE__ */ u.jsx("div", { className: "operation mb-12", children: /* @__PURE__ */ u.jsx(Eu, { children: a.operations.map((o) => /* @__PURE__ */ u.jsx(
|
|
5565
|
+
Nu,
|
|
5558
5566
|
{
|
|
5559
5567
|
operationFragment: o
|
|
5560
5568
|
},
|
|
5561
5569
|
o.slug
|
|
5562
|
-
)) })
|
|
5570
|
+
)) }) })
|
|
5563
5571
|
] }, a.name))
|
|
5564
5572
|
] }) : null;
|
|
5565
5573
|
};
|
|
5566
5574
|
export {
|
|
5567
|
-
|
|
5568
|
-
|
|
5575
|
+
Ju as OperationList,
|
|
5576
|
+
ku as OperationsFragment
|
|
5569
5577
|
};
|
|
5570
|
-
//# sourceMappingURL=OperationList-
|
|
5578
|
+
//# sourceMappingURL=OperationList-DypxLtSC.js.map
|