@apiuikit/web-component 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{CodeSamples-CvGJUENN-CR16fFmG.js → CodeSamples-Dm277WGX-CiKryuS0.js} +404 -400
- package/dist/{LinkedInExtension-BL-4T9tt-CwUePUjv.js → LinkedInExtension-BL-4T9tt-CFjbqkhZ.js} +1 -1
- package/dist/{LogoExtension-BCPMpWxf-CD0UVJhy.js → LogoExtension-Bhw9grDi-DFPgcRdp.js} +1 -1
- package/dist/{XExtension-GyRtdHLL-DPPkXhkP.js → XExtension-GyRtdHLL-hbNYWxJs.js} +1 -1
- package/dist/elements/asyncapi-info.js +1 -1
- package/dist/elements/asyncapi-messages.js +1 -1
- package/dist/elements/asyncapi-operations.js +1 -1
- package/dist/elements/asyncapi-renderer.js +1 -1
- package/dist/elements/asyncapi-servers.js +1 -1
- package/dist/elements/asyncapi.js +1 -1
- package/dist/elements/openapi-endpoints.js +1 -1
- package/dist/elements/openapi-info.js +1 -1
- package/dist/elements/openapi-renderer.js +1 -1
- package/dist/elements/openapi-servers.js +1 -1
- package/dist/elements/openapi-webhooks.js +3 -3
- package/dist/elements/openapi.js +5 -5
- package/dist/elements/schemas.js +1 -1
- package/dist/{index-227TxMRF-BYlp71U_.js → index-ButmLtm3-BxvUFOqt.js} +1 -1
- package/dist/{index-Bf4YsziL-DPjrM_Iz.js → index-ByTEMZ1h-D8WOAtLD.js} +1 -1
- package/dist/{protoToJsonSchema-nTI0cRt8-B1zlLwd7.js → protoToJsonSchema-Bu1_KtXF-DMb0R0EM.js} +1 -1
- package/dist/{protobufSchemaParser-ChAv0AAl-DDsAdtNH.js → protobufSchemaParser--9dltEfO-BJdsvVd_.js} +11 -11
- package/dist/registerElement-qkr8S33y.js +25763 -0
- package/dist/web-component.css +1 -1
- package/dist/web-component.es.js +21676 -21321
- package/dist/web-component.iife.js +320 -320
- package/package.json +1 -1
- package/dist/registerElement-DAVqIcyy.js +0 -25412
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
1
|
+
import { B as Rn, r as re, m as tr, c as qn, e as Nn, j as me, Q as Ln, t as Un, I as Dn, u as rt, b as _n } from "./registerElement-qkr8S33y.js";
|
|
2
|
+
function Qr(e, t = /* @__PURE__ */ new Set()) {
|
|
3
3
|
if (t.has(e)) return e;
|
|
4
4
|
if (e.type === "object" && e.properties && typeof e.properties == "object") {
|
|
5
5
|
t.add(e);
|
|
@@ -7,7 +7,7 @@ function Vr(e, t = /* @__PURE__ */ new Set()) {
|
|
|
7
7
|
const r = {};
|
|
8
8
|
for (const [n, l] of Object.entries(e.properties)) {
|
|
9
9
|
const a = /id$/i.test(n) && l.type === "string" && !l.format && !l.examples, s = l.type === "string" && !l.format && !l.examples && !l.enum;
|
|
10
|
-
r[n] = a ? { ...l, format: "uuid" } : s ? { ...l, examples: ["string"] } :
|
|
10
|
+
r[n] = a ? { ...l, format: "uuid" } : s ? { ...l, examples: ["string"] } : Qr(l, t);
|
|
11
11
|
}
|
|
12
12
|
return { ...e, properties: r };
|
|
13
13
|
} finally {
|
|
@@ -16,10 +16,10 @@ function Vr(e, t = /* @__PURE__ */ new Set()) {
|
|
|
16
16
|
}
|
|
17
17
|
return e;
|
|
18
18
|
}
|
|
19
|
-
async function
|
|
19
|
+
async function Hn(e) {
|
|
20
20
|
try {
|
|
21
21
|
const { generate: t } = await import("./index-DCDYBZcY-B5md4zhj.js");
|
|
22
|
-
return await t(
|
|
22
|
+
return await t(Qr(e), {
|
|
23
23
|
seed: 42,
|
|
24
24
|
useExamplesValue: !0,
|
|
25
25
|
optionalsProbability: 1
|
|
@@ -55,16 +55,16 @@ var k = class {
|
|
|
55
55
|
this.postProcessors = [...this.postProcessors, r];
|
|
56
56
|
}, this.indentationCharacter = e || rr, this.lineJoin = t ?? nr;
|
|
57
57
|
}
|
|
58
|
-
},
|
|
58
|
+
}, In = function(e) {
|
|
59
59
|
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
60
|
-
},
|
|
60
|
+
}, Mn = function(e) {
|
|
61
61
|
var t = typeof e;
|
|
62
62
|
return e !== null && (t === "object" || t === "function");
|
|
63
|
-
},
|
|
64
|
-
Object.defineProperty(
|
|
65
|
-
|
|
66
|
-
const
|
|
67
|
-
var
|
|
63
|
+
}, Vt = {};
|
|
64
|
+
Object.defineProperty(Vt, "__esModule", { value: !0 });
|
|
65
|
+
Vt.default = (e) => Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
|
|
66
|
+
const Fn = In, Bn = Mn, Wn = Vt.default;
|
|
67
|
+
var Jn = (e, t, r) => {
|
|
68
68
|
const n = [];
|
|
69
69
|
return (function l(a, s, o) {
|
|
70
70
|
s = s || {}, s.indent = s.indent || " ", o = o || "";
|
|
@@ -91,7 +91,7 @@ var Bn = (e, t, r) => {
|
|
|
91
91
|
};
|
|
92
92
|
if (n.indexOf(a) !== -1)
|
|
93
93
|
return '"[Circular]"';
|
|
94
|
-
if (a == null || typeof a == "number" || typeof a == "boolean" || typeof a == "function" || typeof a == "symbol" ||
|
|
94
|
+
if (a == null || typeof a == "number" || typeof a == "boolean" || typeof a == "function" || typeof a == "symbol" || Fn(a))
|
|
95
95
|
return String(a);
|
|
96
96
|
if (a instanceof Date)
|
|
97
97
|
return `new Date('${a.toISOString()}')`;
|
|
@@ -106,8 +106,8 @@ var Bn = (e, t, r) => {
|
|
|
106
106
|
}).join("") + i.pad + "]";
|
|
107
107
|
return n.pop(), c(p);
|
|
108
108
|
}
|
|
109
|
-
if (
|
|
110
|
-
let p = Object.keys(a).concat(
|
|
109
|
+
if (Bn(a)) {
|
|
110
|
+
let p = Object.keys(a).concat(Wn(a));
|
|
111
111
|
if (s.filter && (p = p.filter((u) => s.filter(a, u))), p.length === 0)
|
|
112
112
|
return "{}";
|
|
113
113
|
n.push(a);
|
|
@@ -122,17 +122,17 @@ var Bn = (e, t, r) => {
|
|
|
122
122
|
` ? "\\n" : "\\r"), s.singleQuotes === !1 ? (a = a.replace(/"/g, '\\"'), `"${a}"`) : (a = a.replace(/\\?'/g, "\\'"), `'${a}'`);
|
|
123
123
|
})(e, t, r);
|
|
124
124
|
};
|
|
125
|
-
const ae = /* @__PURE__ */
|
|
125
|
+
const ae = /* @__PURE__ */ Dn(Jn), W = (e, t) => Object.keys(e).find((r) => r.toLowerCase() === t.toLowerCase()), le = (e, t) => {
|
|
126
126
|
const r = W(e, t);
|
|
127
127
|
if (r)
|
|
128
128
|
return e[r];
|
|
129
|
-
}, nt = (e, t) => !!W(e, t),
|
|
129
|
+
}, nt = (e, t) => !!W(e, t), zn = (e) => [
|
|
130
130
|
"application/json",
|
|
131
131
|
"application/x-json",
|
|
132
132
|
"text/json",
|
|
133
133
|
"text/x-json",
|
|
134
134
|
"+json"
|
|
135
|
-
].some((t) => e.indexOf(t) > -1),
|
|
135
|
+
].some((t) => e.indexOf(t) > -1), Vn = {
|
|
136
136
|
info: {
|
|
137
137
|
key: "agent",
|
|
138
138
|
title: "Agent",
|
|
@@ -166,7 +166,7 @@ function Me(e, t = {}) {
|
|
|
166
166
|
return [...e.toString()].map((a) => a === "\b" ? `${n}b` : a === " " ? `${n}t` : a === `
|
|
167
167
|
` ? l ? `${n}n` : a : a === "\f" ? `${n}f` : a === "\r" ? l ? `${n}r` : a : a === n ? n + n : a === r ? n + r : a < " " || a > "~" ? JSON.stringify(a).slice(1, -1) : a).join("");
|
|
168
168
|
}
|
|
169
|
-
const Ae = (e) => Me(e, { delimiter: "'" }), D = (e) => Me(e, { delimiter: '"' }),
|
|
169
|
+
const Ae = (e) => Me(e, { delimiter: "'" }), D = (e) => Me(e, { delimiter: '"' }), Kn = {
|
|
170
170
|
info: {
|
|
171
171
|
key: "c",
|
|
172
172
|
title: "C",
|
|
@@ -195,19 +195,19 @@ var or = class {
|
|
|
195
195
|
constructor(e) {
|
|
196
196
|
this.name = "", this.toString = () => `:${this.name}`, this.name = e;
|
|
197
197
|
}
|
|
198
|
-
},
|
|
198
|
+
}, Gn = class {
|
|
199
199
|
constructor(e) {
|
|
200
200
|
this.path = "", this.toString = () => `(clojure.java.io/file "${this.path}")`, this.path = e;
|
|
201
201
|
}
|
|
202
202
|
};
|
|
203
|
-
const
|
|
203
|
+
const Yr = (e) => e === void 0 ? null : e === null ? "null" : e.constructor.name.toLowerCase(), Xr = (e) => e === void 0 ? !0 : Yr(e) === "object" ? Object.keys(e).length === 0 : !1, ar = (e) => (Object.keys(e).filter((t) => Xr(e[t])).forEach((t) => {
|
|
204
204
|
delete e[t];
|
|
205
205
|
}), e), Qe = (e, t) => {
|
|
206
206
|
const r = " ".repeat(e);
|
|
207
207
|
return t.replace(/\n/g, `
|
|
208
208
|
${r}`);
|
|
209
209
|
}, Lt = (e) => {
|
|
210
|
-
switch (
|
|
210
|
+
switch (Yr(e)) {
|
|
211
211
|
case "string":
|
|
212
212
|
return `"${e.replace(/"/g, '\\"')}"`;
|
|
213
213
|
case "file":
|
|
@@ -230,7 +230,7 @@ ${r}`);
|
|
|
230
230
|
default:
|
|
231
231
|
return e.toString();
|
|
232
232
|
}
|
|
233
|
-
},
|
|
233
|
+
}, Qn = {
|
|
234
234
|
info: {
|
|
235
235
|
key: "clojure",
|
|
236
236
|
title: "Clojure",
|
|
@@ -286,7 +286,7 @@ ${r}`);
|
|
|
286
286
|
if (r.params) {
|
|
287
287
|
c.multipart = r.params.map((f) => f.fileName && !f.value ? {
|
|
288
288
|
name: f.name,
|
|
289
|
-
content: new
|
|
289
|
+
content: new Gn(f.fileName)
|
|
290
290
|
} : {
|
|
291
291
|
name: f.name,
|
|
292
292
|
content: f.value
|
|
@@ -306,7 +306,7 @@ ${r}`);
|
|
|
306
306
|
break;
|
|
307
307
|
}
|
|
308
308
|
if (s(`(require '[clj-http.client :as client])
|
|
309
|
-
`),
|
|
309
|
+
`), Xr(ar(c))) s(`(client/${t} "${n}")`);
|
|
310
310
|
else {
|
|
311
311
|
const p = 11 + t.length + n.length, f = Qe(p, Lt(ar(c)));
|
|
312
312
|
s(`(client/${t} "${n}" ${f})`);
|
|
@@ -314,7 +314,7 @@ ${r}`);
|
|
|
314
314
|
return o();
|
|
315
315
|
}
|
|
316
316
|
} }
|
|
317
|
-
},
|
|
317
|
+
}, Yn = {
|
|
318
318
|
info: {
|
|
319
319
|
key: "crystal",
|
|
320
320
|
title: "Crystal",
|
|
@@ -347,7 +347,7 @@ ${r}`);
|
|
|
347
347
|
return f.includes(p) ? s(`response = HTTP::Client.${p.toLowerCase()} url${u}${d}${h}`) : s(`response = HTTP::Client.exec "${p}", url${u}${d}${h}`), s("puts response.body"), i();
|
|
348
348
|
}
|
|
349
349
|
} }
|
|
350
|
-
},
|
|
350
|
+
}, Xn = (e) => {
|
|
351
351
|
let t = le(e, "accept-encoding");
|
|
352
352
|
if (!t) return [];
|
|
353
353
|
const r = {
|
|
@@ -363,7 +363,7 @@ ${r}`);
|
|
|
363
363
|
}
|
|
364
364
|
});
|
|
365
365
|
}), n;
|
|
366
|
-
},
|
|
366
|
+
}, Zn = {
|
|
367
367
|
info: {
|
|
368
368
|
key: "httpclient",
|
|
369
369
|
title: "HttpClient",
|
|
@@ -379,7 +379,7 @@ ${r}`);
|
|
|
379
379
|
}.indent });
|
|
380
380
|
o("using System.Net.Http.Headers;");
|
|
381
381
|
let c = "";
|
|
382
|
-
const p = !!e.cookie, f =
|
|
382
|
+
const p = !!e.cookie, f = Xn(e);
|
|
383
383
|
(p || f.length) && (c = "clientHandler", o("var clientHandler = new HttpClientHandler"), o("{"), p && o("UseCookies = false,", 1), f.length && o(`AutomaticDecompression = ${f.join(" | ")},`, 1), o("};")), o(`var client = new HttpClient(${c});`), o("var request = new HttpRequestMessage"), o("{");
|
|
384
384
|
const u = [
|
|
385
385
|
"GET",
|
|
@@ -425,10 +425,10 @@ ${r}`);
|
|
|
425
425
|
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();
|
|
426
426
|
}
|
|
427
427
|
};
|
|
428
|
-
function
|
|
428
|
+
function eo(e) {
|
|
429
429
|
return e[0].toUpperCase() + e.slice(1).toLowerCase();
|
|
430
430
|
}
|
|
431
|
-
const
|
|
431
|
+
const to = {
|
|
432
432
|
info: {
|
|
433
433
|
key: "csharp",
|
|
434
434
|
title: "C#",
|
|
@@ -436,7 +436,7 @@ const Zn = {
|
|
|
436
436
|
cli: "dotnet"
|
|
437
437
|
},
|
|
438
438
|
clientsById: {
|
|
439
|
-
httpclient:
|
|
439
|
+
httpclient: Zn,
|
|
440
440
|
restsharp: {
|
|
441
441
|
info: {
|
|
442
442
|
key: "restsharp",
|
|
@@ -490,13 +490,13 @@ const Zn = {
|
|
|
490
490
|
if (!l.text) break;
|
|
491
491
|
s(`request.AddStringBody("${l.text}", "${l.mimeType}");`);
|
|
492
492
|
}
|
|
493
|
-
return s(`var response = await client.${
|
|
493
|
+
return s(`var response = await client.${eo(e)}Async(request);
|
|
494
494
|
`), s(`Console.WriteLine("{0}", response.Content);
|
|
495
495
|
`), o();
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
|
-
},
|
|
499
|
+
}, ro = {
|
|
500
500
|
info: {
|
|
501
501
|
key: "go",
|
|
502
502
|
title: "Go",
|
|
@@ -523,7 +523,7 @@ const Zn = {
|
|
|
523
523
|
}
|
|
524
524
|
} }
|
|
525
525
|
}, ir = `\r
|
|
526
|
-
`,
|
|
526
|
+
`, no = {
|
|
527
527
|
info: {
|
|
528
528
|
key: "http",
|
|
529
529
|
title: "HTTP",
|
|
@@ -557,7 +557,7 @@ const Zn = {
|
|
|
557
557
|
return `${u}${ir}${d}`;
|
|
558
558
|
}
|
|
559
559
|
} }
|
|
560
|
-
},
|
|
560
|
+
}, oo = {
|
|
561
561
|
info: {
|
|
562
562
|
key: "java",
|
|
563
563
|
title: "Java",
|
|
@@ -657,7 +657,7 @@ const Zn = {
|
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
659
|
}
|
|
660
|
-
},
|
|
660
|
+
}, ao = {
|
|
661
661
|
info: {
|
|
662
662
|
key: "javascript",
|
|
663
663
|
title: "JavaScript",
|
|
@@ -833,7 +833,7 @@ const Zn = {
|
|
|
833
833
|
}
|
|
834
834
|
}
|
|
835
835
|
}
|
|
836
|
-
},
|
|
836
|
+
}, io = {
|
|
837
837
|
info: {
|
|
838
838
|
key: "json",
|
|
839
839
|
title: "JSON",
|
|
@@ -874,7 +874,7 @@ const Zn = {
|
|
|
874
874
|
return typeof n > "u" || n === "" ? "No JSON body" : JSON.stringify(n, null, r.indent);
|
|
875
875
|
}
|
|
876
876
|
} }
|
|
877
|
-
},
|
|
877
|
+
}, so = {
|
|
878
878
|
info: {
|
|
879
879
|
key: "kotlin",
|
|
880
880
|
title: "Kotlin",
|
|
@@ -910,7 +910,7 @@ const Zn = {
|
|
|
910
910
|
}), o(".build()", 1), a(), o("val response = client.newCall(request).execute()"), s();
|
|
911
911
|
}
|
|
912
912
|
} }
|
|
913
|
-
},
|
|
913
|
+
}, lo = {
|
|
914
914
|
info: {
|
|
915
915
|
key: "node",
|
|
916
916
|
title: "Node.js",
|
|
@@ -1066,7 +1066,7 @@ const Zn = {
|
|
|
1066
1066
|
default:
|
|
1067
1067
|
return e == null ? "" : `@"${e.toString().replace(/"/g, '\\"')}"`;
|
|
1068
1068
|
}
|
|
1069
|
-
},
|
|
1069
|
+
}, co = {
|
|
1070
1070
|
info: {
|
|
1071
1071
|
key: "objc",
|
|
1072
1072
|
title: "Objective-C",
|
|
@@ -1114,7 +1114,7 @@ const Zn = {
|
|
|
1114
1114
|
return c(), o(`NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"${n}"]`), o(" cachePolicy:NSURLRequestUseProtocolCachePolicy"), o(` timeoutInterval:${s.timeout.toFixed(1)}];`), o(`[request setHTTPMethod:@"${r}"];`), p.hasHeaders && o("[request setAllHTTPHeaderFields:headers];"), p.hasBody && o("[request setHTTPBody:postData];"), c(), o("NSURLSession *session = [NSURLSession sharedSession];"), o("NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request"), o(" completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {"), o(" if (error) {", 1), o(' NSLog(@"%@", error);', 2), o(" } else {", 1), o(" NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;", 2), o(' NSLog(@"%@", httpResponse);', 2), o(" }", 1), o(" }];"), o("[dataTask resume];"), i();
|
|
1115
1115
|
}
|
|
1116
1116
|
} }
|
|
1117
|
-
},
|
|
1117
|
+
}, po = {
|
|
1118
1118
|
info: {
|
|
1119
1119
|
key: "ocaml",
|
|
1120
1120
|
title: "OCaml",
|
|
@@ -1210,7 +1210,7 @@ ${r}]`;
|
|
|
1210
1210
|
"UNLOCK",
|
|
1211
1211
|
"UPDATE",
|
|
1212
1212
|
"VERSION_CONTROL"
|
|
1213
|
-
],
|
|
1213
|
+
], uo = {
|
|
1214
1214
|
info: {
|
|
1215
1215
|
key: "php",
|
|
1216
1216
|
title: "PHP",
|
|
@@ -1414,7 +1414,7 @@ ${c}${c}`), 1), g.push("],")), m(g.join(), 1), m("]);"), b(), m("$response = cur
|
|
|
1414
1414
|
}
|
|
1415
1415
|
}
|
|
1416
1416
|
}
|
|
1417
|
-
},
|
|
1417
|
+
}, Zr = (e) => ({ method: t, headersObj: r, cookies: n, uriObj: l, fullUrl: a, postData: s, allHeaders: o }) => {
|
|
1418
1418
|
const { push: i, join: c } = new k();
|
|
1419
1419
|
if (![
|
|
1420
1420
|
"GET",
|
|
@@ -1434,7 +1434,7 @@ ${c}${c}`), 1), g.push("],")), m(g.join(), 1), m("]);"), b(), m("$response = cur
|
|
|
1434
1434
|
delimiter: "'",
|
|
1435
1435
|
escapeChar: "`"
|
|
1436
1436
|
})}'`), p.push(`-Body '${s.text}'`)), i(`$response = ${e} -Uri '${a}' -Method ${t} ${p.join(" ")}`.trim()), c();
|
|
1437
|
-
},
|
|
1437
|
+
}, fo = {
|
|
1438
1438
|
info: {
|
|
1439
1439
|
key: "restmethod",
|
|
1440
1440
|
title: "Invoke-RestMethod",
|
|
@@ -1442,8 +1442,8 @@ ${c}${c}`), 1), g.push("],")), m(g.join(), 1), m("]);"), b(), m("$response = cur
|
|
|
1442
1442
|
description: "Powershell Invoke-RestMethod client",
|
|
1443
1443
|
extname: ".ps1"
|
|
1444
1444
|
},
|
|
1445
|
-
convert:
|
|
1446
|
-
},
|
|
1445
|
+
convert: Zr("Invoke-RestMethod")
|
|
1446
|
+
}, ho = {
|
|
1447
1447
|
info: {
|
|
1448
1448
|
key: "powershell",
|
|
1449
1449
|
title: "Powershell",
|
|
@@ -1458,9 +1458,9 @@ ${c}${c}`), 1), g.push("],")), m(g.join(), 1), m("]);"), b(), m("$response = cur
|
|
|
1458
1458
|
description: "Powershell Invoke-WebRequest client",
|
|
1459
1459
|
extname: ".ps1"
|
|
1460
1460
|
},
|
|
1461
|
-
convert:
|
|
1461
|
+
convert: Zr("Invoke-WebRequest")
|
|
1462
1462
|
},
|
|
1463
|
-
restmethod:
|
|
1463
|
+
restmethod: fo
|
|
1464
1464
|
}
|
|
1465
1465
|
};
|
|
1466
1466
|
function lr(e, t, r, n, l) {
|
|
@@ -1490,7 +1490,7 @@ const Te = (e, t, r) => {
|
|
|
1490
1490
|
default:
|
|
1491
1491
|
return e == null ? "" : `"${e.toString().replace(/"/g, '\\"')}"`;
|
|
1492
1492
|
}
|
|
1493
|
-
},
|
|
1493
|
+
}, yo = [
|
|
1494
1494
|
"HEAD",
|
|
1495
1495
|
"GET",
|
|
1496
1496
|
"POST",
|
|
@@ -1498,7 +1498,7 @@ const Te = (e, t, r) => {
|
|
|
1498
1498
|
"PATCH",
|
|
1499
1499
|
"DELETE",
|
|
1500
1500
|
"OPTIONS"
|
|
1501
|
-
],
|
|
1501
|
+
], mo = {
|
|
1502
1502
|
info: {
|
|
1503
1503
|
key: "python",
|
|
1504
1504
|
title: "Python",
|
|
@@ -1563,11 +1563,11 @@ const Te = (e, t, r) => {
|
|
|
1563
1563
|
s(y !== b ? `"${g}": "${D(p[g])}",` : `"${g}": "${D(p[g])}"`, 1), y += 1;
|
|
1564
1564
|
}), s("}"), o();
|
|
1565
1565
|
}
|
|
1566
|
-
let j =
|
|
1566
|
+
let j = yo.includes(n) ? `response = requests.${n.toLowerCase()}(url` : `response = requests.request("${n}", url`;
|
|
1567
1567
|
return h && (m ? j += ", json=payload" : j += ", data=payload"), d && (j += ", files=files"), b > 0 && (j += ", headers=headers"), j += ")", s(j), o(), s("print(response.text)"), i();
|
|
1568
1568
|
}
|
|
1569
1569
|
} }
|
|
1570
|
-
},
|
|
1570
|
+
}, bo = {
|
|
1571
1571
|
info: {
|
|
1572
1572
|
key: "r",
|
|
1573
1573
|
title: "R",
|
|
@@ -1621,7 +1621,7 @@ const Te = (e, t, r) => {
|
|
|
1621
1621
|
return w && (g += `, ${w}`), (n.text || n.jsonObj || n.params) && (g += ", encode = encode"), g += ")", s(g), o(), s('content(response, "text")'), i();
|
|
1622
1622
|
}
|
|
1623
1623
|
} }
|
|
1624
|
-
},
|
|
1624
|
+
}, go = {
|
|
1625
1625
|
info: {
|
|
1626
1626
|
key: "ruby",
|
|
1627
1627
|
title: "Ruby",
|
|
@@ -1737,7 +1737,7 @@ const ke = (e, t, r) => {
|
|
|
1737
1737
|
default:
|
|
1738
1738
|
return e == null ? "" : `"${e.toString().replace(/"/g, '\\"')}"`;
|
|
1739
1739
|
}
|
|
1740
|
-
},
|
|
1740
|
+
}, jo = {
|
|
1741
1741
|
info: {
|
|
1742
1742
|
key: "reqwest",
|
|
1743
1743
|
title: "reqwest",
|
|
@@ -1776,7 +1776,7 @@ const ke = (e, t, r) => {
|
|
|
1776
1776
|
if (h = {}, r.params.forEach(($) => {
|
|
1777
1777
|
$.fileName ? (m[$.name] = $.fileName, b = !0) : h[$.name] = $.value;
|
|
1778
1778
|
}), b) {
|
|
1779
|
-
for (const $ of
|
|
1779
|
+
for (const $ of $o) i($, o);
|
|
1780
1780
|
c();
|
|
1781
1781
|
}
|
|
1782
1782
|
i("let form = reqwest::multipart::Form::new()", o);
|
|
@@ -1812,22 +1812,22 @@ const ke = (e, t, r) => {
|
|
|
1812
1812
|
return g && i(".json(&payload)", o + 1), j && i(".form(&payload)", o + 1), y && i(".body(payload)", o + 1), i(".send()", o + 1), i(".await;", o + 1), c(), i("let results = response.unwrap()", o), i(".json::<serde_json::Value>()", o + 1), i(".await", o + 1), i(".unwrap();", o + 1), c(), i('println!("{}", results);', o), i(`}
|
|
1813
1813
|
`), p();
|
|
1814
1814
|
}
|
|
1815
|
-
},
|
|
1815
|
+
}, $o = [
|
|
1816
1816
|
"async fn file_to_part(file_name: &'static str) -> reqwest::multipart::Part {",
|
|
1817
1817
|
" let bytes = tokio::fs::read(file_name).await.unwrap();",
|
|
1818
1818
|
" reqwest::multipart::Part::bytes(bytes)",
|
|
1819
1819
|
" .file_name(file_name)",
|
|
1820
1820
|
' .mime_str("text/plain").unwrap()',
|
|
1821
1821
|
"}"
|
|
1822
|
-
],
|
|
1822
|
+
], vo = {
|
|
1823
1823
|
info: {
|
|
1824
1824
|
key: "rust",
|
|
1825
1825
|
title: "Rust",
|
|
1826
1826
|
default: "reqwest",
|
|
1827
1827
|
cli: "rust"
|
|
1828
1828
|
},
|
|
1829
|
-
clientsById: { reqwest:
|
|
1830
|
-
}, M = (e = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(e) ? e : `'${e.replace(/'/g, "'\\''")}'`,
|
|
1829
|
+
clientsById: { reqwest: jo }
|
|
1830
|
+
}, M = (e = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(e) ? e : `'${e.replace(/'/g, "'\\''")}'`, wo = (e) => e.replace(/\r/g, "\\r").replace(/\n/g, "\\n"), Oo = {
|
|
1831
1831
|
"http1.0": "0",
|
|
1832
1832
|
"url ": "",
|
|
1833
1833
|
cookie: "b",
|
|
@@ -1837,13 +1837,13 @@ const ke = (e, t, r) => {
|
|
|
1837
1837
|
header: "H",
|
|
1838
1838
|
insecure: "k",
|
|
1839
1839
|
request: "X"
|
|
1840
|
-
},
|
|
1840
|
+
}, So = (e) => (t) => {
|
|
1841
1841
|
if (e) {
|
|
1842
|
-
const r =
|
|
1842
|
+
const r = Oo[t];
|
|
1843
1843
|
return r ? `-${r}` : "";
|
|
1844
1844
|
}
|
|
1845
1845
|
return `--${t}`;
|
|
1846
|
-
},
|
|
1846
|
+
}, To = {
|
|
1847
1847
|
info: {
|
|
1848
1848
|
key: "shell",
|
|
1849
1849
|
title: "Shell",
|
|
@@ -1865,7 +1865,7 @@ const ke = (e, t, r) => {
|
|
|
1865
1865
|
...typeof p == "string" ? { indent: p } : {},
|
|
1866
1866
|
join: p !== !1 ? ` \\
|
|
1867
1867
|
${p}` : " "
|
|
1868
|
-
}), b =
|
|
1868
|
+
}), b = So(u);
|
|
1869
1869
|
let j = M(e);
|
|
1870
1870
|
if (h(`curl ${b("request")} ${t}`), c && (j = unescape(j), h(b("globoff"))), h(`${b("url ")}${j}`), f && h(b("insecure")), r === "HTTP/1.0" && h(b("http1.0")), le(l, "accept-encoding") && h("--compressed"), a.mimeType === "multipart/form-data") {
|
|
1871
1871
|
const y = W(n, "content-type");
|
|
@@ -1896,7 +1896,7 @@ ${p}` : " "
|
|
|
1896
1896
|
default: {
|
|
1897
1897
|
if (!a.text) break;
|
|
1898
1898
|
let y = !1;
|
|
1899
|
-
if (
|
|
1899
|
+
if (zn(a.mimeType) && a.text.length > 20)
|
|
1900
1900
|
try {
|
|
1901
1901
|
const g = JSON.parse(a.text);
|
|
1902
1902
|
y = !0, a.text.indexOf("'") > 0 ? h(`${i ? "--data-binary" : b("data")} @- <<EOF
|
|
@@ -1980,7 +1980,7 @@ ${a.indent}` : " "
|
|
|
1980
1980
|
return a.verbose ? s(`wget ${a.short ? "-v" : "--verbose"}`) : s(`wget ${a.short ? "-q" : "--quiet"}`), s(`--method ${M(e)}`), Object.keys(r).forEach((i) => {
|
|
1981
1981
|
const c = `${i}: ${r[i]}`;
|
|
1982
1982
|
s(`--header ${M(c)}`);
|
|
1983
|
-
}), t.text && s(`--body-data ${
|
|
1983
|
+
}), t.text && s(`--body-data ${wo(M(t.text))}`), s(a.short ? "-O" : "--output-document"), s(`- ${M(n)}`), o();
|
|
1984
1984
|
}
|
|
1985
1985
|
}
|
|
1986
1986
|
}
|
|
@@ -2010,27 +2010,27 @@ ${a}]` : `[${e.join(s)}]`;
|
|
|
2010
2010
|
return e == null ? "nil" : `"${e.toString().replace(/"/g, '\\"')}"`;
|
|
2011
2011
|
}
|
|
2012
2012
|
}, xe = {
|
|
2013
|
-
agent:
|
|
2014
|
-
c:
|
|
2015
|
-
clojure:
|
|
2016
|
-
crystal:
|
|
2017
|
-
csharp:
|
|
2018
|
-
go:
|
|
2019
|
-
http:
|
|
2020
|
-
java:
|
|
2021
|
-
javascript:
|
|
2022
|
-
json:
|
|
2023
|
-
kotlin:
|
|
2024
|
-
node:
|
|
2025
|
-
objc:
|
|
2026
|
-
ocaml:
|
|
2027
|
-
php:
|
|
2028
|
-
powershell:
|
|
2029
|
-
python:
|
|
2030
|
-
r:
|
|
2031
|
-
ruby:
|
|
2032
|
-
rust:
|
|
2033
|
-
shell:
|
|
2013
|
+
agent: Vn,
|
|
2014
|
+
c: Kn,
|
|
2015
|
+
clojure: Qn,
|
|
2016
|
+
crystal: Yn,
|
|
2017
|
+
csharp: to,
|
|
2018
|
+
go: ro,
|
|
2019
|
+
http: no,
|
|
2020
|
+
java: oo,
|
|
2021
|
+
javascript: ao,
|
|
2022
|
+
json: io,
|
|
2023
|
+
kotlin: so,
|
|
2024
|
+
node: lo,
|
|
2025
|
+
objc: co,
|
|
2026
|
+
ocaml: po,
|
|
2027
|
+
php: uo,
|
|
2028
|
+
powershell: ho,
|
|
2029
|
+
python: mo,
|
|
2030
|
+
r: bo,
|
|
2031
|
+
ruby: go,
|
|
2032
|
+
rust: vo,
|
|
2033
|
+
shell: To,
|
|
2034
2034
|
swift: {
|
|
2035
2035
|
info: {
|
|
2036
2036
|
key: "swift",
|
|
@@ -2097,7 +2097,7 @@ ${a}]` : `[${e.join(s)}]`;
|
|
|
2097
2097
|
};
|
|
2098
2098
|
var at = { exports: {} };
|
|
2099
2099
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
2100
|
-
var
|
|
2100
|
+
var ko = at.exports;
|
|
2101
2101
|
(function(e, t) {
|
|
2102
2102
|
(function(r) {
|
|
2103
2103
|
var n = t && !t.nodeType && t, l = e && !e.nodeType && e, a = typeof rt == "object" && rt;
|
|
@@ -2144,11 +2144,11 @@ var So = at.exports;
|
|
|
2144
2144
|
v = O(v / w);
|
|
2145
2145
|
return O(R + (w + 1) * v / (v + f));
|
|
2146
2146
|
}
|
|
2147
|
-
function
|
|
2148
|
-
var T = [], P = v.length, R, N = 0, z = h, I = d,
|
|
2149
|
-
for (
|
|
2147
|
+
function V(v) {
|
|
2148
|
+
var T = [], P = v.length, R, N = 0, z = h, I = d, K, X, te, ce, B, G, Z, fe, ye;
|
|
2149
|
+
for (K = v.lastIndexOf(m), K < 0 && (K = 0), X = 0; X < K; ++X)
|
|
2150
2150
|
v.charCodeAt(X) >= 128 && S("not-basic"), T.push(v.charCodeAt(X));
|
|
2151
|
-
for (te =
|
|
2151
|
+
for (te = K > 0 ? K + 1 : 0; te < P; ) {
|
|
2152
2152
|
for (ce = N, B = 1, G = i; te >= P && S("invalid-input"), Z = L(v.charCodeAt(te++)), (Z >= i || Z > O((o - N) / B)) && S("overflow"), N += Z * B, fe = G <= I ? c : G >= I + p ? p : G - I, !(Z < fe); G += i)
|
|
2153
2153
|
ye = i - fe, B > O(o / ye) && S("overflow"), B *= ye;
|
|
2154
2154
|
R = T.length + 1, I = F(N - ce, R, ce == 0), O(N / R) > o - z && S("overflow"), z += O(N / R), N %= R, T.splice(N++, 0, z);
|
|
@@ -2156,13 +2156,13 @@ var So = at.exports;
|
|
|
2156
2156
|
return Y(T);
|
|
2157
2157
|
}
|
|
2158
2158
|
function ue(v) {
|
|
2159
|
-
var T, P, R, N, z, I,
|
|
2159
|
+
var T, P, R, N, z, I, K, X, te, ce, B, G = [], Z, fe, ye, mt;
|
|
2160
2160
|
for (v = Q(v), Z = v.length, T = h, P = 0, z = d, I = 0; I < Z; ++I)
|
|
2161
2161
|
B = v[I], B < 128 && G.push($(B));
|
|
2162
2162
|
for (R = N = G.length, N && G.push(m); R < Z; ) {
|
|
2163
|
-
for (
|
|
2164
|
-
B = v[I], B >= T && B <
|
|
2165
|
-
for (fe = R + 1,
|
|
2163
|
+
for (K = o, I = 0; I < Z; ++I)
|
|
2164
|
+
B = v[I], B >= T && B < K && (K = B);
|
|
2165
|
+
for (fe = R + 1, K - T > O((o - P) / fe) && S("overflow"), P += (K - T) * fe, T = K, I = 0; I < Z; ++I)
|
|
2166
2166
|
if (B = v[I], B < T && ++P > o && S("overflow"), B == T) {
|
|
2167
2167
|
for (X = P, te = i; ce = te <= z ? c : te >= z + p ? p : te - z, !(X < ce); te += i)
|
|
2168
2168
|
mt = X - ce, ye = i - ce, G.push(
|
|
@@ -2176,7 +2176,7 @@ var So = at.exports;
|
|
|
2176
2176
|
}
|
|
2177
2177
|
function yt(v) {
|
|
2178
2178
|
return _(v, function(T) {
|
|
2179
|
-
return b.test(T) ?
|
|
2179
|
+
return b.test(T) ? V(T.slice(4).toLowerCase()) : T;
|
|
2180
2180
|
});
|
|
2181
2181
|
}
|
|
2182
2182
|
function ze(v) {
|
|
@@ -2202,7 +2202,7 @@ var So = at.exports;
|
|
|
2202
2202
|
decode: Q,
|
|
2203
2203
|
encode: Y
|
|
2204
2204
|
},
|
|
2205
|
-
decode:
|
|
2205
|
+
decode: V,
|
|
2206
2206
|
encode: ue,
|
|
2207
2207
|
toASCII: ze,
|
|
2208
2208
|
toUnicode: yt
|
|
@@ -2214,20 +2214,20 @@ var So = at.exports;
|
|
|
2214
2214
|
s.hasOwnProperty(E) && (n[E] = s[E]);
|
|
2215
2215
|
else
|
|
2216
2216
|
r.punycode = s;
|
|
2217
|
-
})(
|
|
2217
|
+
})(ko);
|
|
2218
2218
|
})(at, at.exports);
|
|
2219
|
-
var
|
|
2220
|
-
const
|
|
2221
|
-
Object.assign(
|
|
2222
|
-
const
|
|
2219
|
+
var xo = at.exports, Ne = TypeError;
|
|
2220
|
+
const en = (e) => String(e);
|
|
2221
|
+
Object.assign(en, { custom: Symbol.for("nodejs.util.inspect.custom") });
|
|
2222
|
+
const Eo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2223
2223
|
__proto__: null,
|
|
2224
|
-
default:
|
|
2225
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2226
|
-
var
|
|
2224
|
+
default: en
|
|
2225
|
+
}, Symbol.toStringTag, { value: "Module" })), Po = /* @__PURE__ */ _n(Eo);
|
|
2226
|
+
var Kt = typeof Map == "function" && Map.prototype, gt = Object.getOwnPropertyDescriptor && Kt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, it = Kt && gt && typeof gt.get == "function" ? gt.get : null, hr = Kt && Map.prototype.forEach, Gt = typeof Set == "function" && Set.prototype, jt = Object.getOwnPropertyDescriptor && Gt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, st = Gt && jt && typeof jt.get == "function" ? jt.get : null, yr = Gt && Set.prototype.forEach, Co = typeof WeakMap == "function" && WeakMap.prototype, De = Co ? WeakMap.prototype.has : null, Ao = typeof WeakSet == "function" && WeakSet.prototype, _e = Ao ? WeakSet.prototype.has : null, Ro = typeof WeakRef == "function" && WeakRef.prototype, mr = Ro ? WeakRef.prototype.deref : null, qo = Boolean.prototype.valueOf, No = Object.prototype.toString, Lo = Function.prototype.toString, Uo = String.prototype.match, Qt = String.prototype.slice, de = String.prototype.replace, Do = String.prototype.toUpperCase, br = String.prototype.toLowerCase, tn = RegExp.prototype.test, gr = Array.prototype.concat, ie = Array.prototype.join, _o = Array.prototype.slice, jr = Math.floor, Dt = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, $t = Object.getOwnPropertySymbols, _t = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, Re = typeof Symbol == "function" && typeof Symbol.iterator == "object", He = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === Re || !0) ? Symbol.toStringTag : null, rn = Object.prototype.propertyIsEnumerable, $r = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(e) {
|
|
2227
2227
|
return e.__proto__;
|
|
2228
2228
|
} : null);
|
|
2229
2229
|
function vr(e, t) {
|
|
2230
|
-
if (e === 1 / 0 || e === -1 / 0 || e !== e || e && e > -1e3 && e < 1e3 ||
|
|
2230
|
+
if (e === 1 / 0 || e === -1 / 0 || e !== e || e && e > -1e3 && e < 1e3 || tn.call(/e/, t))
|
|
2231
2231
|
return t;
|
|
2232
2232
|
var r = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
2233
2233
|
if (typeof e == "number") {
|
|
@@ -2239,17 +2239,17 @@ function vr(e, t) {
|
|
|
2239
2239
|
}
|
|
2240
2240
|
return de.call(t, r, "$&_");
|
|
2241
2241
|
}
|
|
2242
|
-
var Ht =
|
|
2242
|
+
var Ht = Po, wr = Ht.custom, Or = an(wr) ? wr : null, nn = {
|
|
2243
2243
|
__proto__: null,
|
|
2244
2244
|
double: '"',
|
|
2245
2245
|
single: "'"
|
|
2246
|
-
},
|
|
2246
|
+
}, Ho = {
|
|
2247
2247
|
__proto__: null,
|
|
2248
2248
|
double: /(["\\])/g,
|
|
2249
2249
|
single: /(['\\])/g
|
|
2250
2250
|
}, pt = function e(t, r, n, l) {
|
|
2251
2251
|
var a = r || {};
|
|
2252
|
-
if (pe(a, "quoteStyle") && !pe(
|
|
2252
|
+
if (pe(a, "quoteStyle") && !pe(nn, a.quoteStyle))
|
|
2253
2253
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
2254
2254
|
if (pe(a, "maxStringLength") && (typeof a.maxStringLength == "number" ? a.maxStringLength < 0 && a.maxStringLength !== 1 / 0 : a.maxStringLength !== null))
|
|
2255
2255
|
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
@@ -2268,7 +2268,7 @@ var Ht = xo, wr = Ht.custom, Or = nn(wr) ? wr : null, tn = {
|
|
|
2268
2268
|
if (typeof t == "boolean")
|
|
2269
2269
|
return t ? "true" : "false";
|
|
2270
2270
|
if (typeof t == "string")
|
|
2271
|
-
return
|
|
2271
|
+
return ln(t, a);
|
|
2272
2272
|
if (typeof t == "number") {
|
|
2273
2273
|
if (t === 0)
|
|
2274
2274
|
return 1 / 0 / t > 0 ? "0" : "-0";
|
|
@@ -2282,42 +2282,42 @@ var Ht = xo, wr = Ht.custom, Or = nn(wr) ? wr : null, tn = {
|
|
|
2282
2282
|
var p = typeof a.depth > "u" ? 5 : a.depth;
|
|
2283
2283
|
if (typeof n > "u" && (n = 0), n >= p && p > 0 && typeof t == "object")
|
|
2284
2284
|
return It(t) ? "[Array]" : "[Object]";
|
|
2285
|
-
var f =
|
|
2285
|
+
var f = na(a, n);
|
|
2286
2286
|
if (typeof l > "u")
|
|
2287
2287
|
l = [];
|
|
2288
|
-
else if (
|
|
2288
|
+
else if (sn(l, t) >= 0)
|
|
2289
2289
|
return "[Circular]";
|
|
2290
2290
|
function u(L, J, F) {
|
|
2291
|
-
if (J && (l =
|
|
2292
|
-
var
|
|
2291
|
+
if (J && (l = _o.call(l), l.push(J)), F) {
|
|
2292
|
+
var V = {
|
|
2293
2293
|
depth: a.depth
|
|
2294
2294
|
};
|
|
2295
|
-
return pe(a, "quoteStyle") && (
|
|
2295
|
+
return pe(a, "quoteStyle") && (V.quoteStyle = a.quoteStyle), e(L, V, n + 1, l);
|
|
2296
2296
|
}
|
|
2297
2297
|
return e(L, a, n + 1, l);
|
|
2298
2298
|
}
|
|
2299
2299
|
if (typeof t == "function" && !Sr(t)) {
|
|
2300
|
-
var d =
|
|
2300
|
+
var d = Ko(t), h = Ve(t, u);
|
|
2301
2301
|
return "[Function" + (d ? ": " + d : " (anonymous)") + "]" + (h.length > 0 ? " { " + ie.call(h, ", ") + " }" : "");
|
|
2302
2302
|
}
|
|
2303
|
-
if (
|
|
2303
|
+
if (an(t)) {
|
|
2304
2304
|
var m = Re ? de.call(String(t), /^(Symbol\(.*\))_[^)]*$/, "$1") : _t.call(t);
|
|
2305
2305
|
return typeof t == "object" && !Re ? Le(m) : m;
|
|
2306
2306
|
}
|
|
2307
|
-
if (
|
|
2307
|
+
if (ea(t)) {
|
|
2308
2308
|
for (var b = "<" + br.call(String(t.nodeName)), j = t.attributes || [], y = 0; y < j.length; y++)
|
|
2309
|
-
b += " " + j[y].name + "=" +
|
|
2309
|
+
b += " " + j[y].name + "=" + on(Io(j[y].value), "double", a);
|
|
2310
2310
|
return b += ">", t.childNodes && t.childNodes.length && (b += "..."), b += "</" + br.call(String(t.nodeName)) + ">", b;
|
|
2311
2311
|
}
|
|
2312
2312
|
if (It(t)) {
|
|
2313
2313
|
if (t.length === 0)
|
|
2314
2314
|
return "[]";
|
|
2315
|
-
var g =
|
|
2316
|
-
return f && !
|
|
2315
|
+
var g = Ve(t, u);
|
|
2316
|
+
return f && !ra(g) ? "[" + Mt(g, f) + "]" : "[ " + ie.call(g, ", ") + " ]";
|
|
2317
2317
|
}
|
|
2318
|
-
if (
|
|
2319
|
-
var w =
|
|
2320
|
-
return !("cause" in Error.prototype) && "cause" in t && !
|
|
2318
|
+
if (Fo(t)) {
|
|
2319
|
+
var w = Ve(t, u);
|
|
2320
|
+
return !("cause" in Error.prototype) && "cause" in t && !rn.call(t, "cause") ? "{ [" + String(t) + "] " + ie.call(gr.call("[cause]: " + u(t.cause), w), ", ") + " }" : w.length === 0 ? "[" + String(t) + "]" : "{ [" + String(t) + "] " + ie.call(w, ", ") + " }";
|
|
2321
2321
|
}
|
|
2322
2322
|
if (typeof t == "object" && s) {
|
|
2323
2323
|
if (Or && typeof t[Or] == "function" && Ht)
|
|
@@ -2325,47 +2325,47 @@ var Ht = xo, wr = Ht.custom, Or = nn(wr) ? wr : null, tn = {
|
|
|
2325
2325
|
if (s !== "symbol" && typeof t.inspect == "function")
|
|
2326
2326
|
return t.inspect();
|
|
2327
2327
|
}
|
|
2328
|
-
if (
|
|
2328
|
+
if (Go(t)) {
|
|
2329
2329
|
var O = [];
|
|
2330
2330
|
return hr && hr.call(t, function(L, J) {
|
|
2331
2331
|
O.push(u(J, t, !0) + " => " + u(L, t));
|
|
2332
2332
|
}), Tr("Map", it.call(t), O, f);
|
|
2333
2333
|
}
|
|
2334
|
-
if (
|
|
2334
|
+
if (Xo(t)) {
|
|
2335
2335
|
var $ = [];
|
|
2336
2336
|
return yr && yr.call(t, function(L) {
|
|
2337
2337
|
$.push(u(L, t));
|
|
2338
2338
|
}), Tr("Set", st.call(t), $, f);
|
|
2339
2339
|
}
|
|
2340
|
-
if (
|
|
2340
|
+
if (Qo(t))
|
|
2341
2341
|
return vt("WeakMap");
|
|
2342
|
-
if (
|
|
2342
|
+
if (Zo(t))
|
|
2343
2343
|
return vt("WeakSet");
|
|
2344
|
-
if (
|
|
2344
|
+
if (Yo(t))
|
|
2345
2345
|
return vt("WeakRef");
|
|
2346
|
-
if (Fo(t))
|
|
2347
|
-
return Le(u(Number(t)));
|
|
2348
2346
|
if (Wo(t))
|
|
2347
|
+
return Le(u(Number(t)));
|
|
2348
|
+
if (zo(t))
|
|
2349
2349
|
return Le(u(Dt.call(t)));
|
|
2350
|
+
if (Jo(t))
|
|
2351
|
+
return Le(qo.call(t));
|
|
2350
2352
|
if (Bo(t))
|
|
2351
|
-
return Le(Ao.call(t));
|
|
2352
|
-
if (Mo(t))
|
|
2353
2353
|
return Le(u(String(t)));
|
|
2354
2354
|
if (typeof window < "u" && t === window)
|
|
2355
2355
|
return "{ [object Window] }";
|
|
2356
2356
|
if (typeof globalThis < "u" && t === globalThis || typeof rt < "u" && t === rt)
|
|
2357
2357
|
return "{ [object globalThis] }";
|
|
2358
|
-
if (!
|
|
2359
|
-
var E =
|
|
2358
|
+
if (!Mo(t) && !Sr(t)) {
|
|
2359
|
+
var E = Ve(t, u), S = $r ? $r(t) === Object.prototype : t instanceof Object || t.constructor === Object, C = t instanceof Object ? "" : "null prototype", _ = !S && He && Object(t) === t && He in t ? Qt.call(he(t), 8, -1) : C ? "Object" : "", Q = S || typeof t.constructor != "function" ? "" : t.constructor.name ? t.constructor.name + " " : "", Y = Q + (_ || C ? "[" + ie.call(gr.call([], _ || [], C || []), ": ") + "] " : "");
|
|
2360
2360
|
return E.length === 0 ? Y + "{}" : f ? Y + "{" + Mt(E, f) + "}" : Y + "{ " + ie.call(E, ", ") + " }";
|
|
2361
2361
|
}
|
|
2362
2362
|
return String(t);
|
|
2363
2363
|
};
|
|
2364
|
-
function
|
|
2365
|
-
var n = r.quoteStyle || t, l =
|
|
2364
|
+
function on(e, t, r) {
|
|
2365
|
+
var n = r.quoteStyle || t, l = nn[n];
|
|
2366
2366
|
return l + e + l;
|
|
2367
2367
|
}
|
|
2368
|
-
function
|
|
2368
|
+
function Io(e) {
|
|
2369
2369
|
return de.call(String(e), /"/g, """);
|
|
2370
2370
|
}
|
|
2371
2371
|
function ve(e) {
|
|
@@ -2374,25 +2374,25 @@ function ve(e) {
|
|
|
2374
2374
|
function It(e) {
|
|
2375
2375
|
return he(e) === "[object Array]" && ve(e);
|
|
2376
2376
|
}
|
|
2377
|
-
function
|
|
2377
|
+
function Mo(e) {
|
|
2378
2378
|
return he(e) === "[object Date]" && ve(e);
|
|
2379
2379
|
}
|
|
2380
2380
|
function Sr(e) {
|
|
2381
2381
|
return he(e) === "[object RegExp]" && ve(e);
|
|
2382
2382
|
}
|
|
2383
|
-
function
|
|
2383
|
+
function Fo(e) {
|
|
2384
2384
|
return he(e) === "[object Error]" && ve(e);
|
|
2385
2385
|
}
|
|
2386
|
-
function
|
|
2386
|
+
function Bo(e) {
|
|
2387
2387
|
return he(e) === "[object String]" && ve(e);
|
|
2388
2388
|
}
|
|
2389
|
-
function
|
|
2389
|
+
function Wo(e) {
|
|
2390
2390
|
return he(e) === "[object Number]" && ve(e);
|
|
2391
2391
|
}
|
|
2392
|
-
function
|
|
2392
|
+
function Jo(e) {
|
|
2393
2393
|
return he(e) === "[object Boolean]" && ve(e);
|
|
2394
2394
|
}
|
|
2395
|
-
function
|
|
2395
|
+
function an(e) {
|
|
2396
2396
|
if (Re)
|
|
2397
2397
|
return e && typeof e == "object" && e instanceof Symbol;
|
|
2398
2398
|
if (typeof e == "symbol")
|
|
@@ -2405,7 +2405,7 @@ function nn(e) {
|
|
|
2405
2405
|
}
|
|
2406
2406
|
return !1;
|
|
2407
2407
|
}
|
|
2408
|
-
function
|
|
2408
|
+
function zo(e) {
|
|
2409
2409
|
if (!e || typeof e != "object" || !Dt)
|
|
2410
2410
|
return !1;
|
|
2411
2411
|
try {
|
|
@@ -2414,22 +2414,22 @@ function Wo(e) {
|
|
|
2414
2414
|
}
|
|
2415
2415
|
return !1;
|
|
2416
2416
|
}
|
|
2417
|
-
var
|
|
2417
|
+
var Vo = Object.prototype.hasOwnProperty || function(e) {
|
|
2418
2418
|
return e in this;
|
|
2419
2419
|
};
|
|
2420
2420
|
function pe(e, t) {
|
|
2421
|
-
return
|
|
2421
|
+
return Vo.call(e, t);
|
|
2422
2422
|
}
|
|
2423
2423
|
function he(e) {
|
|
2424
|
-
return
|
|
2424
|
+
return No.call(e);
|
|
2425
2425
|
}
|
|
2426
|
-
function
|
|
2426
|
+
function Ko(e) {
|
|
2427
2427
|
if (e.name)
|
|
2428
2428
|
return e.name;
|
|
2429
|
-
var t =
|
|
2429
|
+
var t = Uo.call(Lo.call(e), /^function\s*([\w$]+)/);
|
|
2430
2430
|
return t ? t[1] : null;
|
|
2431
2431
|
}
|
|
2432
|
-
function
|
|
2432
|
+
function sn(e, t) {
|
|
2433
2433
|
if (e.indexOf)
|
|
2434
2434
|
return e.indexOf(t);
|
|
2435
2435
|
for (var r = 0, n = e.length; r < n; r++)
|
|
@@ -2437,7 +2437,7 @@ function on(e, t) {
|
|
|
2437
2437
|
return r;
|
|
2438
2438
|
return -1;
|
|
2439
2439
|
}
|
|
2440
|
-
function
|
|
2440
|
+
function Go(e) {
|
|
2441
2441
|
if (!it || !e || typeof e != "object")
|
|
2442
2442
|
return !1;
|
|
2443
2443
|
try {
|
|
@@ -2452,7 +2452,7 @@ function Ko(e) {
|
|
|
2452
2452
|
}
|
|
2453
2453
|
return !1;
|
|
2454
2454
|
}
|
|
2455
|
-
function
|
|
2455
|
+
function Qo(e) {
|
|
2456
2456
|
if (!De || !e || typeof e != "object")
|
|
2457
2457
|
return !1;
|
|
2458
2458
|
try {
|
|
@@ -2467,7 +2467,7 @@ function Vo(e) {
|
|
|
2467
2467
|
}
|
|
2468
2468
|
return !1;
|
|
2469
2469
|
}
|
|
2470
|
-
function
|
|
2470
|
+
function Yo(e) {
|
|
2471
2471
|
if (!mr || !e || typeof e != "object")
|
|
2472
2472
|
return !1;
|
|
2473
2473
|
try {
|
|
@@ -2476,7 +2476,7 @@ function Go(e) {
|
|
|
2476
2476
|
}
|
|
2477
2477
|
return !1;
|
|
2478
2478
|
}
|
|
2479
|
-
function
|
|
2479
|
+
function Xo(e) {
|
|
2480
2480
|
if (!st || !e || typeof e != "object")
|
|
2481
2481
|
return !1;
|
|
2482
2482
|
try {
|
|
@@ -2491,7 +2491,7 @@ function Qo(e) {
|
|
|
2491
2491
|
}
|
|
2492
2492
|
return !1;
|
|
2493
2493
|
}
|
|
2494
|
-
function
|
|
2494
|
+
function Zo(e) {
|
|
2495
2495
|
if (!_e || !e || typeof e != "object")
|
|
2496
2496
|
return !1;
|
|
2497
2497
|
try {
|
|
@@ -2506,20 +2506,20 @@ function Yo(e) {
|
|
|
2506
2506
|
}
|
|
2507
2507
|
return !1;
|
|
2508
2508
|
}
|
|
2509
|
-
function
|
|
2509
|
+
function ea(e) {
|
|
2510
2510
|
return !e || typeof e != "object" ? !1 : typeof HTMLElement < "u" && e instanceof HTMLElement ? !0 : typeof e.nodeName == "string" && typeof e.getAttribute == "function";
|
|
2511
2511
|
}
|
|
2512
|
-
function
|
|
2512
|
+
function ln(e, t) {
|
|
2513
2513
|
if (e.length > t.maxStringLength) {
|
|
2514
2514
|
var r = e.length - t.maxStringLength, n = "... " + r + " more character" + (r > 1 ? "s" : "");
|
|
2515
|
-
return
|
|
2515
|
+
return ln(Qt.call(e, 0, t.maxStringLength), t) + n;
|
|
2516
2516
|
}
|
|
2517
|
-
var l =
|
|
2517
|
+
var l = Ho[t.quoteStyle || "single"];
|
|
2518
2518
|
l.lastIndex = 0;
|
|
2519
|
-
var a = de.call(de.call(e, l, "\\$1"), /[\x00-\x1f]/g,
|
|
2520
|
-
return
|
|
2519
|
+
var a = de.call(de.call(e, l, "\\$1"), /[\x00-\x1f]/g, ta);
|
|
2520
|
+
return on(a, "single", t);
|
|
2521
2521
|
}
|
|
2522
|
-
function
|
|
2522
|
+
function ta(e) {
|
|
2523
2523
|
var t = e.charCodeAt(0), r = {
|
|
2524
2524
|
8: "b",
|
|
2525
2525
|
9: "t",
|
|
@@ -2527,7 +2527,7 @@ function Zo(e) {
|
|
|
2527
2527
|
12: "f",
|
|
2528
2528
|
13: "r"
|
|
2529
2529
|
}[t];
|
|
2530
|
-
return r ? "\\" + r : "\\x" + (t < 16 ? "0" : "") +
|
|
2530
|
+
return r ? "\\" + r : "\\x" + (t < 16 ? "0" : "") + Do.call(t.toString(16));
|
|
2531
2531
|
}
|
|
2532
2532
|
function Le(e) {
|
|
2533
2533
|
return "Object(" + e + ")";
|
|
@@ -2539,14 +2539,14 @@ function Tr(e, t, r, n) {
|
|
|
2539
2539
|
var l = n ? Mt(r, n) : ie.call(r, ", ");
|
|
2540
2540
|
return e + " (" + t + ") {" + l + "}";
|
|
2541
2541
|
}
|
|
2542
|
-
function
|
|
2542
|
+
function ra(e) {
|
|
2543
2543
|
for (var t = 0; t < e.length; t++)
|
|
2544
|
-
if (
|
|
2544
|
+
if (sn(e[t], `
|
|
2545
2545
|
`) >= 0)
|
|
2546
2546
|
return !1;
|
|
2547
2547
|
return !0;
|
|
2548
2548
|
}
|
|
2549
|
-
function
|
|
2549
|
+
function na(e, t) {
|
|
2550
2550
|
var r;
|
|
2551
2551
|
if (e.indent === " ")
|
|
2552
2552
|
r = " ";
|
|
@@ -2567,7 +2567,7 @@ function Mt(e, t) {
|
|
|
2567
2567
|
return r + ie.call(e, "," + r) + `
|
|
2568
2568
|
` + t.prev;
|
|
2569
2569
|
}
|
|
2570
|
-
function
|
|
2570
|
+
function Ve(e, t) {
|
|
2571
2571
|
var r = It(e), n = [];
|
|
2572
2572
|
if (r) {
|
|
2573
2573
|
n.length = e.length;
|
|
@@ -2581,23 +2581,23 @@ function Ke(e, t) {
|
|
|
2581
2581
|
s["$" + a[o]] = a[o];
|
|
2582
2582
|
}
|
|
2583
2583
|
for (var i in e)
|
|
2584
|
-
pe(e, i) && (r && String(Number(i)) === i && i < e.length || Re && s["$" + i] instanceof Symbol || (
|
|
2584
|
+
pe(e, i) && (r && String(Number(i)) === i && i < e.length || Re && s["$" + i] instanceof Symbol || (tn.call(/[^\w$]/, i) ? n.push(t(i, e) + ": " + t(e[i], e)) : n.push(i + ": " + t(e[i], e))));
|
|
2585
2585
|
if (typeof $t == "function")
|
|
2586
2586
|
for (var c = 0; c < a.length; c++)
|
|
2587
|
-
|
|
2587
|
+
rn.call(e, a[c]) && n.push("[" + t(a[c]) + "]: " + t(e[a[c]], e));
|
|
2588
2588
|
return n;
|
|
2589
2589
|
}
|
|
2590
|
-
var
|
|
2590
|
+
var oa = pt, aa = Ne, ut = function(e, t, r) {
|
|
2591
2591
|
for (var n = e, l; (l = n.next) != null; n = l)
|
|
2592
2592
|
if (l.key === t)
|
|
2593
2593
|
return n.next = l.next, r || (l.next = /** @type {NonNullable<typeof list.next>} */
|
|
2594
2594
|
e.next, e.next = l), l;
|
|
2595
|
-
},
|
|
2595
|
+
}, ia = function(e, t) {
|
|
2596
2596
|
if (e) {
|
|
2597
2597
|
var r = ut(e, t);
|
|
2598
2598
|
return r && r.value;
|
|
2599
2599
|
}
|
|
2600
|
-
},
|
|
2600
|
+
}, sa = function(e, t, r) {
|
|
2601
2601
|
var n = ut(e, t);
|
|
2602
2602
|
n ? n.value = r : e.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
|
|
2603
2603
|
{
|
|
@@ -2606,31 +2606,31 @@ var ra = pt, na = Ne, ut = function(e, t, r) {
|
|
|
2606
2606
|
next: e.next,
|
|
2607
2607
|
value: r
|
|
2608
2608
|
};
|
|
2609
|
-
},
|
|
2609
|
+
}, la = function(e, t) {
|
|
2610
2610
|
return e ? !!ut(e, t) : !1;
|
|
2611
|
-
},
|
|
2611
|
+
}, ca = function(e, t) {
|
|
2612
2612
|
if (e)
|
|
2613
2613
|
return ut(e, t, !0);
|
|
2614
|
-
},
|
|
2614
|
+
}, pa = function() {
|
|
2615
2615
|
var e, t = {
|
|
2616
2616
|
assert: function(r) {
|
|
2617
2617
|
if (!t.has(r))
|
|
2618
|
-
throw new
|
|
2618
|
+
throw new aa("Side channel does not contain " + oa(r));
|
|
2619
2619
|
},
|
|
2620
2620
|
delete: function(r) {
|
|
2621
|
-
var n =
|
|
2621
|
+
var n = ca(e, r);
|
|
2622
2622
|
return n && e && !e.next && (e = void 0), !!n;
|
|
2623
2623
|
},
|
|
2624
2624
|
get: function(r) {
|
|
2625
|
-
return
|
|
2625
|
+
return ia(e, r);
|
|
2626
2626
|
},
|
|
2627
2627
|
has: function(r) {
|
|
2628
|
-
return
|
|
2628
|
+
return la(e, r);
|
|
2629
2629
|
},
|
|
2630
2630
|
set: function(r, n) {
|
|
2631
2631
|
e || (e = {
|
|
2632
2632
|
next: void 0
|
|
2633
|
-
}),
|
|
2633
|
+
}), sa(
|
|
2634
2634
|
/** @type {NonNullable<typeof $o>} */
|
|
2635
2635
|
e,
|
|
2636
2636
|
r,
|
|
@@ -2639,26 +2639,26 @@ var ra = pt, na = Ne, ut = function(e, t, r) {
|
|
|
2639
2639
|
}
|
|
2640
2640
|
};
|
|
2641
2641
|
return t;
|
|
2642
|
-
},
|
|
2642
|
+
}, cn = Object, ua = Error, fa = EvalError, da = RangeError, ha = ReferenceError, ya = SyntaxError, ma = URIError, ba = Math.abs, ga = Math.floor, ja = Math.max, $a = Math.min, va = Math.pow, wa = Math.round, Oa = Number.isNaN || function(e) {
|
|
2643
2643
|
return e !== e;
|
|
2644
|
-
},
|
|
2645
|
-
return
|
|
2646
|
-
},
|
|
2644
|
+
}, Sa = Oa, Ta = function(e) {
|
|
2645
|
+
return Sa(e) || e === 0 ? e : e < 0 ? -1 : 1;
|
|
2646
|
+
}, ka = Object.getOwnPropertyDescriptor, Ye = ka;
|
|
2647
2647
|
if (Ye)
|
|
2648
2648
|
try {
|
|
2649
2649
|
Ye([], "length");
|
|
2650
2650
|
} catch {
|
|
2651
2651
|
Ye = null;
|
|
2652
2652
|
}
|
|
2653
|
-
var
|
|
2653
|
+
var pn = Ye, Xe = Object.defineProperty || !1;
|
|
2654
2654
|
if (Xe)
|
|
2655
2655
|
try {
|
|
2656
2656
|
Xe({}, "a", { value: 1 });
|
|
2657
2657
|
} catch {
|
|
2658
2658
|
Xe = !1;
|
|
2659
2659
|
}
|
|
2660
|
-
var
|
|
2661
|
-
function
|
|
2660
|
+
var un = Xe, kr, xr;
|
|
2661
|
+
function xa() {
|
|
2662
2662
|
return xr || (xr = 1, kr = function() {
|
|
2663
2663
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
2664
2664
|
return !1;
|
|
@@ -2688,27 +2688,27 @@ function Ta() {
|
|
|
2688
2688
|
}), kr;
|
|
2689
2689
|
}
|
|
2690
2690
|
var wt, Er;
|
|
2691
|
-
function
|
|
2691
|
+
function Ea() {
|
|
2692
2692
|
if (Er) return wt;
|
|
2693
2693
|
Er = 1;
|
|
2694
|
-
var e = typeof Symbol < "u" && Symbol, t =
|
|
2694
|
+
var e = typeof Symbol < "u" && Symbol, t = xa();
|
|
2695
2695
|
return wt = function() {
|
|
2696
2696
|
return typeof e != "function" || typeof Symbol != "function" || typeof e("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : t();
|
|
2697
2697
|
}, wt;
|
|
2698
2698
|
}
|
|
2699
2699
|
var Pr, Cr;
|
|
2700
|
-
function
|
|
2700
|
+
function fn() {
|
|
2701
2701
|
return Cr || (Cr = 1, Pr = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Pr;
|
|
2702
2702
|
}
|
|
2703
2703
|
var Ot, Ar;
|
|
2704
|
-
function
|
|
2704
|
+
function dn() {
|
|
2705
2705
|
if (Ar) return Ot;
|
|
2706
2706
|
Ar = 1;
|
|
2707
|
-
var e =
|
|
2707
|
+
var e = cn;
|
|
2708
2708
|
return Ot = e.getPrototypeOf || null, Ot;
|
|
2709
2709
|
}
|
|
2710
2710
|
var St, Rr;
|
|
2711
|
-
function
|
|
2711
|
+
function Pa() {
|
|
2712
2712
|
if (Rr) return St;
|
|
2713
2713
|
Rr = 1;
|
|
2714
2714
|
var e = "Function.prototype.bind called on incompatible ", t = Object.prototype.toString, r = Math.max, n = "[object Function]", l = function(o, i) {
|
|
@@ -2756,22 +2756,26 @@ var Tt, qr;
|
|
|
2756
2756
|
function ft() {
|
|
2757
2757
|
if (qr) return Tt;
|
|
2758
2758
|
qr = 1;
|
|
2759
|
-
var e =
|
|
2759
|
+
var e = Pa();
|
|
2760
2760
|
return Tt = Function.prototype.bind || e, Tt;
|
|
2761
2761
|
}
|
|
2762
|
-
var
|
|
2763
|
-
function
|
|
2764
|
-
return Lr || (Lr = 1, Nr = Function.prototype.
|
|
2762
|
+
var Nr, Lr;
|
|
2763
|
+
function Yt() {
|
|
2764
|
+
return Lr || (Lr = 1, Nr = Function.prototype.call), Nr;
|
|
2765
|
+
}
|
|
2766
|
+
var Ur, Dr;
|
|
2767
|
+
function hn() {
|
|
2768
|
+
return Dr || (Dr = 1, Ur = Function.prototype.apply), Ur;
|
|
2765
2769
|
}
|
|
2766
|
-
var
|
|
2770
|
+
var Ca = typeof Reflect < "u" && Reflect && Reflect.apply, Aa = ft(), Ra = hn(), qa = Yt(), Na = Ca, La = Na || Aa.call(qa, Ra), Ua = ft(), Da = Ne, _a = Yt(), Ha = La, yn = function(e) {
|
|
2767
2771
|
if (e.length < 1 || typeof e[0] != "function")
|
|
2768
|
-
throw new
|
|
2769
|
-
return
|
|
2770
|
-
}, kt,
|
|
2771
|
-
function
|
|
2772
|
-
if (
|
|
2773
|
-
|
|
2774
|
-
var e =
|
|
2772
|
+
throw new Da("a function is required");
|
|
2773
|
+
return Ha(Ua, _a, e);
|
|
2774
|
+
}, kt, _r;
|
|
2775
|
+
function Ia() {
|
|
2776
|
+
if (_r) return kt;
|
|
2777
|
+
_r = 1;
|
|
2778
|
+
var e = yn, t = pn, r;
|
|
2775
2779
|
try {
|
|
2776
2780
|
r = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
2777
2781
|
[].__proto__ === Array.prototype;
|
|
@@ -2791,11 +2795,11 @@ function _a() {
|
|
|
2791
2795
|
})
|
|
2792
2796
|
) : !1, kt;
|
|
2793
2797
|
}
|
|
2794
|
-
var xt,
|
|
2795
|
-
function
|
|
2796
|
-
if (
|
|
2797
|
-
|
|
2798
|
-
var e =
|
|
2798
|
+
var xt, Hr;
|
|
2799
|
+
function Ma() {
|
|
2800
|
+
if (Hr) return xt;
|
|
2801
|
+
Hr = 1;
|
|
2802
|
+
var e = fn(), t = dn(), r = /* @__PURE__ */ Ia();
|
|
2799
2803
|
return xt = e ? function(n) {
|
|
2800
2804
|
return e(n);
|
|
2801
2805
|
} : t ? function(n) {
|
|
@@ -2806,21 +2810,21 @@ function Ha() {
|
|
|
2806
2810
|
return r(n);
|
|
2807
2811
|
} : null, xt;
|
|
2808
2812
|
}
|
|
2809
|
-
var Et,
|
|
2810
|
-
function
|
|
2811
|
-
if (
|
|
2812
|
-
|
|
2813
|
+
var Et, Ir;
|
|
2814
|
+
function Fa() {
|
|
2815
|
+
if (Ir) return Et;
|
|
2816
|
+
Ir = 1;
|
|
2813
2817
|
var e = Function.prototype.call, t = Object.prototype.hasOwnProperty, r = ft();
|
|
2814
2818
|
return Et = r.call(e, t), Et;
|
|
2815
2819
|
}
|
|
2816
|
-
var x,
|
|
2820
|
+
var x, Ba = cn, Wa = ua, Ja = fa, za = da, Va = ha, qe = ya, Pe = Ne, Ka = ma, Ga = ba, Qa = ga, Ya = ja, Xa = $a, Za = va, ei = wa, ti = Ta, mn = Function, Pt = function(e) {
|
|
2817
2821
|
try {
|
|
2818
|
-
return
|
|
2822
|
+
return mn('"use strict"; return (' + e + ").constructor;")();
|
|
2819
2823
|
} catch {
|
|
2820
2824
|
}
|
|
2821
|
-
}, Fe =
|
|
2825
|
+
}, Fe = pn, ri = un, Ct = function() {
|
|
2822
2826
|
throw new Pe();
|
|
2823
|
-
},
|
|
2827
|
+
}, ni = Fe ? (function() {
|
|
2824
2828
|
try {
|
|
2825
2829
|
return arguments.callee, Ct;
|
|
2826
2830
|
} catch {
|
|
@@ -2830,7 +2834,7 @@ var x, Ma = sn, Fa = ca, Ba = pa, Wa = ua, Ja = fa, qe = da, Pe = Ne, za = ha, K
|
|
|
2830
2834
|
return Ct;
|
|
2831
2835
|
}
|
|
2832
2836
|
}
|
|
2833
|
-
})() : Ct, we =
|
|
2837
|
+
})() : Ct, we = Ea()(), H = Ma(), oi = dn(), ai = fn(), bn = hn(), Be = Yt(), Se = {}, ii = typeof Uint8Array > "u" || !H ? x : H(Uint8Array), $e = {
|
|
2834
2838
|
__proto__: null,
|
|
2835
2839
|
"%AggregateError%": typeof AggregateError > "u" ? x : AggregateError,
|
|
2836
2840
|
"%Array%": Array,
|
|
@@ -2852,15 +2856,15 @@ var x, Ma = sn, Fa = ca, Ba = pa, Wa = ua, Ja = fa, qe = da, Pe = Ne, za = ha, K
|
|
|
2852
2856
|
"%decodeURIComponent%": decodeURIComponent,
|
|
2853
2857
|
"%encodeURI%": encodeURI,
|
|
2854
2858
|
"%encodeURIComponent%": encodeURIComponent,
|
|
2855
|
-
"%Error%":
|
|
2859
|
+
"%Error%": Wa,
|
|
2856
2860
|
"%eval%": eval,
|
|
2857
2861
|
// eslint-disable-line no-eval
|
|
2858
|
-
"%EvalError%":
|
|
2862
|
+
"%EvalError%": Ja,
|
|
2859
2863
|
"%Float16Array%": typeof Float16Array > "u" ? x : Float16Array,
|
|
2860
2864
|
"%Float32Array%": typeof Float32Array > "u" ? x : Float32Array,
|
|
2861
2865
|
"%Float64Array%": typeof Float64Array > "u" ? x : Float64Array,
|
|
2862
2866
|
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? x : FinalizationRegistry,
|
|
2863
|
-
"%Function%":
|
|
2867
|
+
"%Function%": mn,
|
|
2864
2868
|
"%GeneratorFunction%": Se,
|
|
2865
2869
|
"%Int8Array%": typeof Int8Array > "u" ? x : Int8Array,
|
|
2866
2870
|
"%Int16Array%": typeof Int16Array > "u" ? x : Int16Array,
|
|
@@ -2873,14 +2877,14 @@ var x, Ma = sn, Fa = ca, Ba = pa, Wa = ua, Ja = fa, qe = da, Pe = Ne, za = ha, K
|
|
|
2873
2877
|
"%MapIteratorPrototype%": typeof Map > "u" || !we || !H ? x : H((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
2874
2878
|
"%Math%": Math,
|
|
2875
2879
|
"%Number%": Number,
|
|
2876
|
-
"%Object%":
|
|
2880
|
+
"%Object%": Ba,
|
|
2877
2881
|
"%Object.getOwnPropertyDescriptor%": Fe,
|
|
2878
2882
|
"%parseFloat%": parseFloat,
|
|
2879
2883
|
"%parseInt%": parseInt,
|
|
2880
2884
|
"%Promise%": typeof Promise > "u" ? x : Promise,
|
|
2881
2885
|
"%Proxy%": typeof Proxy > "u" ? x : Proxy,
|
|
2882
|
-
"%RangeError%":
|
|
2883
|
-
"%ReferenceError%":
|
|
2886
|
+
"%RangeError%": za,
|
|
2887
|
+
"%ReferenceError%": Va,
|
|
2884
2888
|
"%Reflect%": typeof Reflect > "u" ? x : Reflect,
|
|
2885
2889
|
"%RegExp%": RegExp,
|
|
2886
2890
|
"%Set%": typeof Set > "u" ? x : Set,
|
|
@@ -2890,38 +2894,38 @@ var x, Ma = sn, Fa = ca, Ba = pa, Wa = ua, Ja = fa, qe = da, Pe = Ne, za = ha, K
|
|
|
2890
2894
|
"%StringIteratorPrototype%": we && H ? H(""[Symbol.iterator]()) : x,
|
|
2891
2895
|
"%Symbol%": we ? Symbol : x,
|
|
2892
2896
|
"%SyntaxError%": qe,
|
|
2893
|
-
"%ThrowTypeError%":
|
|
2894
|
-
"%TypedArray%":
|
|
2897
|
+
"%ThrowTypeError%": ni,
|
|
2898
|
+
"%TypedArray%": ii,
|
|
2895
2899
|
"%TypeError%": Pe,
|
|
2896
2900
|
"%Uint8Array%": typeof Uint8Array > "u" ? x : Uint8Array,
|
|
2897
2901
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? x : Uint8ClampedArray,
|
|
2898
2902
|
"%Uint16Array%": typeof Uint16Array > "u" ? x : Uint16Array,
|
|
2899
2903
|
"%Uint32Array%": typeof Uint32Array > "u" ? x : Uint32Array,
|
|
2900
|
-
"%URIError%":
|
|
2904
|
+
"%URIError%": Ka,
|
|
2901
2905
|
"%WeakMap%": typeof WeakMap > "u" ? x : WeakMap,
|
|
2902
2906
|
"%WeakRef%": typeof WeakRef > "u" ? x : WeakRef,
|
|
2903
2907
|
"%WeakSet%": typeof WeakSet > "u" ? x : WeakSet,
|
|
2904
2908
|
"%Function.prototype.call%": Be,
|
|
2905
|
-
"%Function.prototype.apply%":
|
|
2906
|
-
"%Object.defineProperty%":
|
|
2907
|
-
"%Object.getPrototypeOf%":
|
|
2908
|
-
"%Math.abs%":
|
|
2909
|
-
"%Math.floor%":
|
|
2910
|
-
"%Math.max%":
|
|
2911
|
-
"%Math.min%":
|
|
2912
|
-
"%Math.pow%":
|
|
2913
|
-
"%Math.round%":
|
|
2914
|
-
"%Math.sign%":
|
|
2915
|
-
"%Reflect.getPrototypeOf%":
|
|
2909
|
+
"%Function.prototype.apply%": bn,
|
|
2910
|
+
"%Object.defineProperty%": ri,
|
|
2911
|
+
"%Object.getPrototypeOf%": oi,
|
|
2912
|
+
"%Math.abs%": Ga,
|
|
2913
|
+
"%Math.floor%": Qa,
|
|
2914
|
+
"%Math.max%": Ya,
|
|
2915
|
+
"%Math.min%": Xa,
|
|
2916
|
+
"%Math.pow%": Za,
|
|
2917
|
+
"%Math.round%": ei,
|
|
2918
|
+
"%Math.sign%": ti,
|
|
2919
|
+
"%Reflect.getPrototypeOf%": ai
|
|
2916
2920
|
};
|
|
2917
2921
|
if (H)
|
|
2918
2922
|
try {
|
|
2919
2923
|
null.error;
|
|
2920
2924
|
} catch (e) {
|
|
2921
|
-
var
|
|
2922
|
-
$e["%Error.prototype%"] =
|
|
2925
|
+
var si = H(H(e));
|
|
2926
|
+
$e["%Error.prototype%"] = si;
|
|
2923
2927
|
}
|
|
2924
|
-
var
|
|
2928
|
+
var li = function e(t) {
|
|
2925
2929
|
var r;
|
|
2926
2930
|
if (t === "%AsyncFunction%")
|
|
2927
2931
|
r = Pt("async function () {}");
|
|
@@ -2937,7 +2941,7 @@ var ii = function e(t) {
|
|
|
2937
2941
|
l && H && (r = H(l.prototype));
|
|
2938
2942
|
}
|
|
2939
2943
|
return $e[t] = r, r;
|
|
2940
|
-
},
|
|
2944
|
+
}, Mr = {
|
|
2941
2945
|
__proto__: null,
|
|
2942
2946
|
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
2943
2947
|
"%ArrayPrototype%": ["Array", "prototype"],
|
|
@@ -2990,21 +2994,21 @@ var ii = function e(t) {
|
|
|
2990
2994
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
2991
2995
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
2992
2996
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
2993
|
-
}, We = ft(), lt = /* @__PURE__ */
|
|
2997
|
+
}, We = ft(), lt = /* @__PURE__ */ Fa(), ci = We.call(Be, Array.prototype.concat), pi = We.call(bn, Array.prototype.splice), Fr = We.call(Be, String.prototype.replace), ct = We.call(Be, String.prototype.slice), ui = We.call(Be, RegExp.prototype.exec), fi = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, di = /\\(\\)?/g, hi = function(e) {
|
|
2994
2998
|
var t = ct(e, 0, 1), r = ct(e, -1);
|
|
2995
2999
|
if (t === "%" && r !== "%")
|
|
2996
3000
|
throw new qe("invalid intrinsic syntax, expected closing `%`");
|
|
2997
3001
|
if (r === "%" && t !== "%")
|
|
2998
3002
|
throw new qe("invalid intrinsic syntax, expected opening `%`");
|
|
2999
3003
|
var n = [];
|
|
3000
|
-
return
|
|
3001
|
-
n[n.length] = s ?
|
|
3004
|
+
return Fr(e, fi, function(l, a, s, o) {
|
|
3005
|
+
n[n.length] = s ? Fr(o, di, "$1") : a || l;
|
|
3002
3006
|
}), n;
|
|
3003
|
-
},
|
|
3007
|
+
}, yi = function(e, t) {
|
|
3004
3008
|
var r = e, n;
|
|
3005
|
-
if (lt(
|
|
3009
|
+
if (lt(Mr, r) && (n = Mr[r], r = "%" + n[0] + "%"), lt($e, r)) {
|
|
3006
3010
|
var l = $e[r];
|
|
3007
|
-
if (l === Se && (l =
|
|
3011
|
+
if (l === Se && (l = li(r)), typeof l > "u" && !t)
|
|
3008
3012
|
throw new Pe("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
3009
3013
|
return {
|
|
3010
3014
|
alias: n,
|
|
@@ -3018,10 +3022,10 @@ var ii = function e(t) {
|
|
|
3018
3022
|
throw new Pe("intrinsic name must be a non-empty string");
|
|
3019
3023
|
if (arguments.length > 1 && typeof t != "boolean")
|
|
3020
3024
|
throw new Pe('"allowMissing" argument must be a boolean');
|
|
3021
|
-
if (
|
|
3025
|
+
if (ui(/^%?[^%]*%?$/, e) === null)
|
|
3022
3026
|
throw new qe("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
3023
|
-
var r =
|
|
3024
|
-
i && (n = i[0],
|
|
3027
|
+
var r = hi(e), n = r.length > 0 ? r[0] : "", l = yi("%" + n + "%", t), a = l.name, s = l.value, o = !1, i = l.alias;
|
|
3028
|
+
i && (n = i[0], pi(r, ci([0, 1], i)));
|
|
3025
3029
|
for (var c = 1, p = !0; c < r.length; c += 1) {
|
|
3026
3030
|
var f = r[c], u = ct(f, 0, 1), d = ct(f, -1);
|
|
3027
3031
|
if ((u === '"' || u === "'" || u === "`" || d === '"' || d === "'" || d === "`") && u !== d)
|
|
@@ -3043,75 +3047,75 @@ var ii = function e(t) {
|
|
|
3043
3047
|
}
|
|
3044
3048
|
}
|
|
3045
3049
|
return s;
|
|
3046
|
-
},
|
|
3050
|
+
}, gn = Xt, jn = yn, mi = jn([gn("%String.prototype.indexOf%")]), $n = function(e, t) {
|
|
3047
3051
|
var r = (
|
|
3048
3052
|
/** @type {(this: unknown, ...args: unknown[]) => unknown} */
|
|
3049
|
-
|
|
3053
|
+
gn(e, !!t)
|
|
3050
3054
|
);
|
|
3051
|
-
return typeof r == "function" &&
|
|
3055
|
+
return typeof r == "function" && mi(e, ".prototype.") > -1 ? jn(
|
|
3052
3056
|
/** @type {const} */
|
|
3053
3057
|
[r]
|
|
3054
3058
|
) : r;
|
|
3055
|
-
},
|
|
3059
|
+
}, bi = Xt, Je = $n, gi = pt, ji = Ne, Br = bi("%Map%", !0), $i = Je("Map.prototype.get", !0), vi = Je("Map.prototype.set", !0), wi = Je("Map.prototype.has", !0), Oi = Je("Map.prototype.delete", !0), Si = Je("Map.prototype.size", !0), vn = !!Br && /** @type {Exclude<import('.'), false>} */
|
|
3056
3060
|
function() {
|
|
3057
3061
|
var e, t = {
|
|
3058
3062
|
assert: function(r) {
|
|
3059
3063
|
if (!t.has(r))
|
|
3060
|
-
throw new
|
|
3064
|
+
throw new ji("Side channel does not contain " + gi(r));
|
|
3061
3065
|
},
|
|
3062
3066
|
delete: function(r) {
|
|
3063
3067
|
if (e) {
|
|
3064
|
-
var n =
|
|
3065
|
-
return
|
|
3068
|
+
var n = Oi(e, r);
|
|
3069
|
+
return Si(e) === 0 && (e = void 0), n;
|
|
3066
3070
|
}
|
|
3067
3071
|
return !1;
|
|
3068
3072
|
},
|
|
3069
3073
|
get: function(r) {
|
|
3070
3074
|
if (e)
|
|
3071
|
-
return
|
|
3075
|
+
return $i(e, r);
|
|
3072
3076
|
},
|
|
3073
3077
|
has: function(r) {
|
|
3074
|
-
return e ?
|
|
3078
|
+
return e ? wi(e, r) : !1;
|
|
3075
3079
|
},
|
|
3076
3080
|
set: function(r, n) {
|
|
3077
|
-
e || (e = new
|
|
3081
|
+
e || (e = new Br()), vi(e, r, n);
|
|
3078
3082
|
}
|
|
3079
3083
|
};
|
|
3080
3084
|
return t;
|
|
3081
|
-
},
|
|
3085
|
+
}, Ti = Xt, dt = $n, ki = pt, Ke = vn, xi = Ne, Oe = Ti("%WeakMap%", !0), Ei = dt("WeakMap.prototype.get", !0), Pi = dt("WeakMap.prototype.set", !0), Ci = dt("WeakMap.prototype.has", !0), Ai = dt("WeakMap.prototype.delete", !0), Ri = Oe ? (
|
|
3082
3086
|
/** @type {Exclude<import('.'), false>} */
|
|
3083
3087
|
(function() {
|
|
3084
3088
|
var e, t, r = {
|
|
3085
3089
|
assert: function(n) {
|
|
3086
3090
|
if (!r.has(n))
|
|
3087
|
-
throw new
|
|
3091
|
+
throw new xi("Side channel does not contain " + ki(n));
|
|
3088
3092
|
},
|
|
3089
3093
|
delete: function(n) {
|
|
3090
3094
|
if (Oe && n && (typeof n == "object" || typeof n == "function")) {
|
|
3091
3095
|
if (e)
|
|
3092
|
-
return
|
|
3093
|
-
} else if (
|
|
3096
|
+
return Ai(e, n);
|
|
3097
|
+
} else if (Ke && t)
|
|
3094
3098
|
return t.delete(n);
|
|
3095
3099
|
return !1;
|
|
3096
3100
|
},
|
|
3097
3101
|
get: function(n) {
|
|
3098
|
-
return Oe && n && (typeof n == "object" || typeof n == "function") && e ?
|
|
3102
|
+
return Oe && n && (typeof n == "object" || typeof n == "function") && e ? Ei(e, n) : t && t.get(n);
|
|
3099
3103
|
},
|
|
3100
3104
|
has: function(n) {
|
|
3101
|
-
return Oe && n && (typeof n == "object" || typeof n == "function") && e ?
|
|
3105
|
+
return Oe && n && (typeof n == "object" || typeof n == "function") && e ? Ci(e, n) : !!t && t.has(n);
|
|
3102
3106
|
},
|
|
3103
3107
|
set: function(n, l) {
|
|
3104
|
-
Oe && n && (typeof n == "object" || typeof n == "function") ? (e || (e = new Oe()),
|
|
3108
|
+
Oe && n && (typeof n == "object" || typeof n == "function") ? (e || (e = new Oe()), Pi(e, n, l)) : Ke && (t || (t = Ke()), t.set(n, l));
|
|
3105
3109
|
}
|
|
3106
3110
|
};
|
|
3107
3111
|
return r;
|
|
3108
3112
|
})
|
|
3109
|
-
) :
|
|
3113
|
+
) : Ke, qi = Ne, Ni = pt, Li = pa, Ui = vn, Di = Ri, _i = Di || Ui || Li, wn = function() {
|
|
3110
3114
|
var e, t = {
|
|
3111
3115
|
assert: function(r) {
|
|
3112
3116
|
if (!t.has(r)) {
|
|
3113
|
-
var n = r && Object(r) === r ? "the given object key" :
|
|
3114
|
-
throw new
|
|
3117
|
+
var n = r && Object(r) === r ? "the given object key" : Ni(r);
|
|
3118
|
+
throw new qi("Side channel does not contain " + n);
|
|
3115
3119
|
}
|
|
3116
3120
|
},
|
|
3117
3121
|
delete: function(r) {
|
|
@@ -3124,18 +3128,18 @@ function() {
|
|
|
3124
3128
|
return !!e && e.has(r);
|
|
3125
3129
|
},
|
|
3126
3130
|
set: function(r, n) {
|
|
3127
|
-
e || (e =
|
|
3131
|
+
e || (e = _i()), e.set(r, n);
|
|
3128
3132
|
}
|
|
3129
3133
|
};
|
|
3130
3134
|
return t;
|
|
3131
|
-
},
|
|
3135
|
+
}, Hi = String.prototype.replace, Ii = /%20/g, At = {
|
|
3132
3136
|
RFC1738: "RFC1738",
|
|
3133
3137
|
RFC3986: "RFC3986"
|
|
3134
3138
|
}, Zt = {
|
|
3135
3139
|
default: At.RFC3986,
|
|
3136
3140
|
formatters: {
|
|
3137
3141
|
RFC1738: function(e) {
|
|
3138
|
-
return
|
|
3142
|
+
return Hi.call(e, Ii, "+");
|
|
3139
3143
|
},
|
|
3140
3144
|
RFC3986: function(e) {
|
|
3141
3145
|
return String(e);
|
|
@@ -3143,7 +3147,7 @@ function() {
|
|
|
3143
3147
|
},
|
|
3144
3148
|
RFC1738: At.RFC1738,
|
|
3145
3149
|
RFC3986: At.RFC3986
|
|
3146
|
-
},
|
|
3150
|
+
}, Mi = Zt, On = wn, Wr = un, Rt = Object.prototype.hasOwnProperty, be = Array.isArray, ht = On(), ge = function(e, t) {
|
|
3147
3151
|
return ht.set(e, t), e;
|
|
3148
3152
|
}, je = function(e) {
|
|
3149
3153
|
return ht.has(e);
|
|
@@ -3155,7 +3159,7 @@ function() {
|
|
|
3155
3159
|
for (var e = [], t = 0; t < 256; ++t)
|
|
3156
3160
|
e[e.length] = "%" + ((t < 16 ? "0" : "") + t.toString(16)).toUpperCase();
|
|
3157
3161
|
return e;
|
|
3158
|
-
})(),
|
|
3162
|
+
})(), Fi = function(e) {
|
|
3159
3163
|
for (; e.length > 1; ) {
|
|
3160
3164
|
var t = e.pop(), r = t.obj[t.prop];
|
|
3161
3165
|
if (be(r)) {
|
|
@@ -3169,13 +3173,13 @@ function() {
|
|
|
3169
3173
|
typeof e[n] < "u" && (r[n] = e[n]);
|
|
3170
3174
|
return r;
|
|
3171
3175
|
}, Bt = function(e, t, r) {
|
|
3172
|
-
t === "__proto__" &&
|
|
3176
|
+
t === "__proto__" && Wr ? Wr(e, t, {
|
|
3173
3177
|
configurable: !0,
|
|
3174
3178
|
enumerable: !0,
|
|
3175
3179
|
value: r,
|
|
3176
3180
|
writable: !0
|
|
3177
3181
|
}) : e[t] = r;
|
|
3178
|
-
},
|
|
3182
|
+
}, Bi = function e(t, r, n) {
|
|
3179
3183
|
if (!r)
|
|
3180
3184
|
return t;
|
|
3181
3185
|
if (typeof r != "object" && typeof r != "function") {
|
|
@@ -3239,11 +3243,11 @@ function() {
|
|
|
3239
3243
|
}
|
|
3240
3244
|
return u;
|
|
3241
3245
|
}, f);
|
|
3242
|
-
},
|
|
3246
|
+
}, Wi = function(e, t) {
|
|
3243
3247
|
return Object.keys(t).reduce(function(r, n) {
|
|
3244
3248
|
return Bt(r, n, t[n]), r;
|
|
3245
3249
|
}, e);
|
|
3246
|
-
},
|
|
3250
|
+
}, Ji = function(e, t, r) {
|
|
3247
3251
|
var n = e.replace(/\+/g, " ");
|
|
3248
3252
|
if (r === "iso-8859-1")
|
|
3249
3253
|
return n.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
@@ -3252,7 +3256,7 @@ function() {
|
|
|
3252
3256
|
} catch {
|
|
3253
3257
|
return n;
|
|
3254
3258
|
}
|
|
3255
|
-
}, Ge = 1024,
|
|
3259
|
+
}, Ge = 1024, zi = function(e, t, r, n, l) {
|
|
3256
3260
|
if (e.length === 0)
|
|
3257
3261
|
return e;
|
|
3258
3262
|
var a = e;
|
|
@@ -3268,7 +3272,7 @@ function() {
|
|
|
3268
3272
|
}
|
|
3269
3273
|
for (var p = [], f = 0; f < i.length; ++f) {
|
|
3270
3274
|
var u = i.charCodeAt(f);
|
|
3271
|
-
if (u === 45 || u === 46 || u === 95 || u === 126 || u >= 48 && u <= 57 || u >= 65 && u <= 90 || u >= 97 && u <= 122 || l ===
|
|
3275
|
+
if (u === 45 || u === 46 || u === 95 || u === 126 || u >= 48 && u <= 57 || u >= 65 && u <= 90 || u >= 97 && u <= 122 || l === Mi.RFC1738 && (u === 40 || u === 41)) {
|
|
3272
3276
|
p[p.length] = i.charAt(f);
|
|
3273
3277
|
continue;
|
|
3274
3278
|
}
|
|
@@ -3289,18 +3293,18 @@ function() {
|
|
|
3289
3293
|
s += p.join("");
|
|
3290
3294
|
}
|
|
3291
3295
|
return s;
|
|
3292
|
-
},
|
|
3293
|
-
for (var t = [{ obj: { o: e }, prop: "o" }], r =
|
|
3296
|
+
}, Vi = function(e) {
|
|
3297
|
+
for (var t = [{ obj: { o: e }, prop: "o" }], r = On(), n = 0; n < t.length; ++n)
|
|
3294
3298
|
for (var l = t[n], a = l.obj[l.prop], s = Object.keys(a), o = 0; o < s.length; ++o) {
|
|
3295
3299
|
var i = s[o], c = a[i];
|
|
3296
3300
|
typeof c == "object" && c !== null && !r.has(c) && (t[t.length] = { obj: a, prop: i }, r.set(c, !0));
|
|
3297
3301
|
}
|
|
3298
|
-
return
|
|
3299
|
-
}, zi = function(e) {
|
|
3300
|
-
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
3302
|
+
return Fi(t), e;
|
|
3301
3303
|
}, Ki = function(e) {
|
|
3304
|
+
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
3305
|
+
}, Gi = function(e) {
|
|
3302
3306
|
return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
|
|
3303
|
-
},
|
|
3307
|
+
}, Qi = function(e, t, r, n, l) {
|
|
3304
3308
|
if (je(e)) {
|
|
3305
3309
|
if (l)
|
|
3306
3310
|
throw new RangeError("Array limit exceeded. Only " + r + " element" + (r === 1 ? "" : "s") + " allowed in an array.");
|
|
@@ -3314,27 +3318,27 @@ function() {
|
|
|
3314
3318
|
return ge(Ee(s, { plainObjects: n }), s.length - 1);
|
|
3315
3319
|
}
|
|
3316
3320
|
return s;
|
|
3317
|
-
},
|
|
3321
|
+
}, Yi = function(e, t) {
|
|
3318
3322
|
if (be(e)) {
|
|
3319
3323
|
for (var r = [], n = 0; n < e.length; n += 1)
|
|
3320
3324
|
r[r.length] = t(e[n]);
|
|
3321
3325
|
return r;
|
|
3322
3326
|
}
|
|
3323
3327
|
return t(e);
|
|
3324
|
-
},
|
|
3328
|
+
}, Sn = {
|
|
3325
3329
|
arrayToObject: Ee,
|
|
3326
|
-
assign:
|
|
3327
|
-
combine:
|
|
3328
|
-
compact:
|
|
3329
|
-
decode:
|
|
3330
|
-
encode:
|
|
3331
|
-
isBuffer:
|
|
3330
|
+
assign: Wi,
|
|
3331
|
+
combine: Qi,
|
|
3332
|
+
compact: Vi,
|
|
3333
|
+
decode: Ji,
|
|
3334
|
+
encode: zi,
|
|
3335
|
+
isBuffer: Gi,
|
|
3332
3336
|
isOverflow: je,
|
|
3333
|
-
isRegExp:
|
|
3337
|
+
isRegExp: Ki,
|
|
3334
3338
|
markOverflow: ge,
|
|
3335
|
-
maybeMap:
|
|
3336
|
-
merge:
|
|
3337
|
-
},
|
|
3339
|
+
maybeMap: Yi,
|
|
3340
|
+
merge: Bi
|
|
3341
|
+
}, Tn = wn, Ze = Sn, Ie = Zt, Xi = Object.prototype.hasOwnProperty, kn = {
|
|
3338
3342
|
brackets: function(e) {
|
|
3339
3343
|
return e + "[]";
|
|
3340
3344
|
},
|
|
@@ -3345,9 +3349,9 @@ function() {
|
|
|
3345
3349
|
repeat: function(e) {
|
|
3346
3350
|
return e;
|
|
3347
3351
|
}
|
|
3348
|
-
}, oe = Array.isArray,
|
|
3349
|
-
|
|
3350
|
-
},
|
|
3352
|
+
}, oe = Array.isArray, Zi = Array.prototype.push, xn = function(e, t) {
|
|
3353
|
+
Zi.apply(e, oe(t) ? t : [t]);
|
|
3354
|
+
}, es = Date.prototype.toISOString, Jr = Ie.default, U = {
|
|
3351
3355
|
addQueryPrefix: !1,
|
|
3352
3356
|
allowDots: !1,
|
|
3353
3357
|
allowEmptyArrays: !1,
|
|
@@ -3361,18 +3365,18 @@ function() {
|
|
|
3361
3365
|
encoder: Ze.encode,
|
|
3362
3366
|
encodeValuesOnly: !1,
|
|
3363
3367
|
filter: void 0,
|
|
3364
|
-
format:
|
|
3365
|
-
formatter: Ie.formatters[
|
|
3368
|
+
format: Jr,
|
|
3369
|
+
formatter: Ie.formatters[Jr],
|
|
3366
3370
|
// deprecated
|
|
3367
3371
|
indices: !1,
|
|
3368
3372
|
serializeDate: function(e) {
|
|
3369
|
-
return
|
|
3373
|
+
return es.call(e);
|
|
3370
3374
|
},
|
|
3371
3375
|
skipNulls: !1,
|
|
3372
3376
|
strictNullHandling: !1
|
|
3373
|
-
},
|
|
3377
|
+
}, ts = function(e) {
|
|
3374
3378
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
3375
|
-
}, qt = {},
|
|
3379
|
+
}, qt = {}, rs = function e(t, r, n, l, a, s, o, i, c, p, f, u, d, h, m, b, j, y) {
|
|
3376
3380
|
for (var g = t, w = y, O = 0, $ = !1; (w = w.get(qt)) !== void 0 && !$; ) {
|
|
3377
3381
|
var E = w.get(t);
|
|
3378
3382
|
if (O += 1, typeof E < "u") {
|
|
@@ -3389,7 +3393,7 @@ function() {
|
|
|
3389
3393
|
return m(c && !b ? c(r, U.encoder, j, "key", h) : r);
|
|
3390
3394
|
g = "";
|
|
3391
3395
|
}
|
|
3392
|
-
if (
|
|
3396
|
+
if (ts(g) || Ze.isBuffer(g)) {
|
|
3393
3397
|
if (c) {
|
|
3394
3398
|
var S = b ? r : c(r, U.encoder, j, "key", h);
|
|
3395
3399
|
return [m(S) + "=" + m(c(g, U.encoder, j, "value", h))];
|
|
@@ -3414,13 +3418,13 @@ function() {
|
|
|
3414
3418
|
if (a && oe(g) && g.length === 0)
|
|
3415
3419
|
return L + "[]";
|
|
3416
3420
|
for (var J = 0; J < _.length; ++J) {
|
|
3417
|
-
var F = _[J],
|
|
3418
|
-
if (!(o &&
|
|
3421
|
+
var F = _[J], V = typeof F == "object" && F && typeof F.value < "u" ? F.value : g[F];
|
|
3422
|
+
if (!(o && V === null)) {
|
|
3419
3423
|
var ue = u && i ? String(F).replace(/\./g, "%2E") : String(F), yt = oe(g) ? typeof n == "function" ? n(L, ue) : L : L + (u ? "." + ue : "[" + ue + "]");
|
|
3420
3424
|
y.set(t, O);
|
|
3421
|
-
var ze =
|
|
3422
|
-
ze.set(qt, y),
|
|
3423
|
-
|
|
3425
|
+
var ze = Tn();
|
|
3426
|
+
ze.set(qt, y), xn(C, e(
|
|
3427
|
+
V,
|
|
3424
3428
|
yt,
|
|
3425
3429
|
n,
|
|
3426
3430
|
l,
|
|
@@ -3442,7 +3446,7 @@ function() {
|
|
|
3442
3446
|
}
|
|
3443
3447
|
}
|
|
3444
3448
|
return C;
|
|
3445
|
-
},
|
|
3449
|
+
}, ns = function(e) {
|
|
3446
3450
|
if (!e)
|
|
3447
3451
|
return U;
|
|
3448
3452
|
if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
|
|
@@ -3456,14 +3460,14 @@ function() {
|
|
|
3456
3460
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
3457
3461
|
var r = Ie.default;
|
|
3458
3462
|
if (typeof e.format < "u") {
|
|
3459
|
-
if (!
|
|
3463
|
+
if (!Xi.call(Ie.formatters, e.format))
|
|
3460
3464
|
throw new TypeError("Unknown format option provided.");
|
|
3461
3465
|
r = e.format;
|
|
3462
3466
|
}
|
|
3463
3467
|
var n = Ie.formatters[r], l = U.filter;
|
|
3464
3468
|
(typeof e.filter == "function" || oe(e.filter)) && (l = e.filter);
|
|
3465
3469
|
var a;
|
|
3466
|
-
if (e.arrayFormat in
|
|
3470
|
+
if (e.arrayFormat in kn ? a = e.arrayFormat : "indices" in e ? a = e.indices ? "indices" : "repeat" : a = U.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
|
|
3467
3471
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
3468
3472
|
var s = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : U.allowDots : !!e.allowDots;
|
|
3469
3473
|
return {
|
|
@@ -3487,19 +3491,19 @@ function() {
|
|
|
3487
3491
|
sort: typeof e.sort == "function" ? e.sort : null,
|
|
3488
3492
|
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : U.strictNullHandling
|
|
3489
3493
|
};
|
|
3490
|
-
},
|
|
3491
|
-
var r = e, n =
|
|
3494
|
+
}, os = function(e, t) {
|
|
3495
|
+
var r = e, n = ns(t), l, a;
|
|
3492
3496
|
typeof n.filter == "function" ? (a = n.filter, r = a("", r)) : oe(n.filter) && (a = n.filter, l = a);
|
|
3493
3497
|
var s = [];
|
|
3494
3498
|
if (typeof r != "object" || r === null)
|
|
3495
3499
|
return "";
|
|
3496
|
-
var o =
|
|
3500
|
+
var o = kn[n.arrayFormat], i = o === "comma" && n.commaRoundTrip;
|
|
3497
3501
|
l || (l = Object.keys(r)), n.sort && l.sort(n.sort);
|
|
3498
|
-
for (var c =
|
|
3502
|
+
for (var c = Tn(), p = 0; p < l.length; ++p) {
|
|
3499
3503
|
var f = l[p];
|
|
3500
3504
|
if (!(typeof f > "u" || f === null)) {
|
|
3501
3505
|
var u = r[f];
|
|
3502
|
-
n.skipNulls && u === null ||
|
|
3506
|
+
n.skipNulls && u === null || xn(s, rs(
|
|
3503
3507
|
u,
|
|
3504
3508
|
f,
|
|
3505
3509
|
o,
|
|
@@ -3523,7 +3527,7 @@ function() {
|
|
|
3523
3527
|
}
|
|
3524
3528
|
var d = s.join(n.delimiter), h = n.addQueryPrefix === !0 ? "?" : "";
|
|
3525
3529
|
return n.charsetSentinel && (n.charset === "iso-8859-1" ? h += "utf8=%26%2310003%3B" + n.delimiter : h += "utf8=%E2%9C%93" + n.delimiter), d.length > 0 ? h + d : "";
|
|
3526
|
-
}, se =
|
|
3530
|
+
}, se = Sn, et = Object.prototype.hasOwnProperty, Nt = Array.isArray, q = {
|
|
3527
3531
|
allowDots: !1,
|
|
3528
3532
|
allowEmptyArrays: !1,
|
|
3529
3533
|
allowPrototypes: !1,
|
|
@@ -3546,11 +3550,11 @@ function() {
|
|
|
3546
3550
|
strictMerge: !0,
|
|
3547
3551
|
strictNullHandling: !1,
|
|
3548
3552
|
throwOnLimitExceeded: !1
|
|
3549
|
-
},
|
|
3553
|
+
}, as = function(e) {
|
|
3550
3554
|
return e.replace(/&#(\d+);/g, function(t, r) {
|
|
3551
3555
|
return String.fromCharCode(parseInt(r, 10));
|
|
3552
3556
|
});
|
|
3553
|
-
},
|
|
3557
|
+
}, En = function(e, t, r, n) {
|
|
3554
3558
|
if (e && typeof e == "string" && t.comma && e.indexOf(",") > -1) {
|
|
3555
3559
|
if (n && t.throwOnLimitExceeded)
|
|
3556
3560
|
for (var l = 0, a = e.indexOf(","); a > -1; ) {
|
|
@@ -3563,7 +3567,7 @@ function() {
|
|
|
3563
3567
|
if (t.throwOnLimitExceeded && r >= t.arrayLimit)
|
|
3564
3568
|
throw new RangeError("Array limit exceeded. Only " + t.arrayLimit + " element" + (t.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
3565
3569
|
return e;
|
|
3566
|
-
},
|
|
3570
|
+
}, is = "utf8=%26%2310003%3B", ss = "utf8=%E2%9C%93", ls = function(e, t) {
|
|
3567
3571
|
var r = { __proto__: null }, n = t.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
|
|
3568
3572
|
n = n.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
3569
3573
|
var l = t.parameterLimit === 1 / 0 ? void 0 : t.parameterLimit, a = n.split(
|
|
@@ -3575,12 +3579,12 @@ function() {
|
|
|
3575
3579
|
var s = -1, o, i = t.charset;
|
|
3576
3580
|
if (t.charsetSentinel)
|
|
3577
3581
|
for (o = 0; o < a.length; ++o)
|
|
3578
|
-
a[o].indexOf("utf8=") === 0 && (a[o] ===
|
|
3582
|
+
a[o].indexOf("utf8=") === 0 && (a[o] === ss ? i = "utf-8" : a[o] === is && (i = "iso-8859-1"), s = o, o = a.length);
|
|
3579
3583
|
for (o = 0; o < a.length; ++o)
|
|
3580
3584
|
if (o !== s) {
|
|
3581
3585
|
var c = a[o], p = c.indexOf("]="), f = p === -1 ? c.indexOf("=") : p + 1, u, d;
|
|
3582
3586
|
if (f === -1 ? (u = t.decoder(c, q.decoder, i, "key"), d = t.strictNullHandling ? null : "") : (u = t.decoder(c.slice(0, f), q.decoder, i, "key"), u !== null && (d = se.maybeMap(
|
|
3583
|
-
|
|
3587
|
+
En(
|
|
3584
3588
|
c.slice(f + 1),
|
|
3585
3589
|
t,
|
|
3586
3590
|
Nt(r[u]) ? r[u].length : 0,
|
|
@@ -3589,7 +3593,7 @@ function() {
|
|
|
3589
3593
|
function(m) {
|
|
3590
3594
|
return t.decoder(m, q.decoder, i, "value");
|
|
3591
3595
|
}
|
|
3592
|
-
))), d && t.interpretNumericEntities && i === "iso-8859-1" && (d =
|
|
3596
|
+
))), d && t.interpretNumericEntities && i === "iso-8859-1" && (d = as(String(d))), c.indexOf("[]=") > -1 && (d = Nt(d) ? [d] : d), t.comma && Nt(d) && d.length > t.arrayLimit && (d = se.combine([], d, t.arrayLimit, t.plainObjects, t.throwOnLimitExceeded)), u !== null) {
|
|
3593
3597
|
var h = et.call(r, u);
|
|
3594
3598
|
h && (t.duplicates === "combine" || c.indexOf("[]=") > -1) ? r[u] = se.combine(
|
|
3595
3599
|
r[u],
|
|
@@ -3601,13 +3605,13 @@ function() {
|
|
|
3601
3605
|
}
|
|
3602
3606
|
}
|
|
3603
3607
|
return r;
|
|
3604
|
-
},
|
|
3608
|
+
}, cs = function(e, t, r, n) {
|
|
3605
3609
|
var l = 0;
|
|
3606
3610
|
if (e.length > 0 && e[e.length - 1] === "[]") {
|
|
3607
3611
|
var a = e.slice(0, -1).join("");
|
|
3608
3612
|
l = Array.isArray(t) && t[a] ? t[a].length : 0;
|
|
3609
3613
|
}
|
|
3610
|
-
for (var s = n ? t :
|
|
3614
|
+
for (var s = n ? t : En(t, r, l), o = e.length - 1; o >= 0; --o) {
|
|
3611
3615
|
var i, c = e[o];
|
|
3612
3616
|
if (c === "[]" && r.parseArrays)
|
|
3613
3617
|
se.isOverflow(s) ? i = s : i = r.allowEmptyArrays && (s === "" || r.strictNullHandling && s === null) ? [] : se.combine(
|
|
@@ -3633,7 +3637,7 @@ function() {
|
|
|
3633
3637
|
s = i;
|
|
3634
3638
|
}
|
|
3635
3639
|
return s;
|
|
3636
|
-
},
|
|
3640
|
+
}, ps = function(e, t) {
|
|
3637
3641
|
var r = t.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e;
|
|
3638
3642
|
if (t.depth <= 0)
|
|
3639
3643
|
return !t.plainObjects && et.call(Object.prototype, r) && !t.allowPrototypes ? void 0 : [r];
|
|
@@ -3661,13 +3665,13 @@ function() {
|
|
|
3661
3665
|
n[n.length] = "[" + r.slice(o) + "]";
|
|
3662
3666
|
}
|
|
3663
3667
|
return n;
|
|
3664
|
-
},
|
|
3668
|
+
}, us = function(e, t, r, n) {
|
|
3665
3669
|
if (e) {
|
|
3666
|
-
var l =
|
|
3670
|
+
var l = ps(e, r);
|
|
3667
3671
|
if (l)
|
|
3668
|
-
return
|
|
3672
|
+
return cs(l, t, r, n);
|
|
3669
3673
|
}
|
|
3670
|
-
},
|
|
3674
|
+
}, fs = function(e) {
|
|
3671
3675
|
if (!e)
|
|
3672
3676
|
return q;
|
|
3673
3677
|
if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
|
|
@@ -3709,24 +3713,24 @@ function() {
|
|
|
3709
3713
|
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : q.strictNullHandling,
|
|
3710
3714
|
throwOnLimitExceeded: typeof e.throwOnLimitExceeded == "boolean" ? e.throwOnLimitExceeded : !1
|
|
3711
3715
|
};
|
|
3712
|
-
},
|
|
3713
|
-
var r =
|
|
3716
|
+
}, ds = function(e, t) {
|
|
3717
|
+
var r = fs(t);
|
|
3714
3718
|
if (e === "" || e === null || typeof e > "u")
|
|
3715
3719
|
return r.plainObjects ? { __proto__: null } : {};
|
|
3716
|
-
for (var n = typeof e == "string" ?
|
|
3717
|
-
var o = a[s], i =
|
|
3720
|
+
for (var n = typeof e == "string" ? ls(e, r) : e, l = r.plainObjects ? { __proto__: null } : {}, a = Object.keys(n), s = 0; s < a.length; ++s) {
|
|
3721
|
+
var o = a[s], i = us(o, n[o], r, typeof e == "string");
|
|
3718
3722
|
l = se.merge(l, i, r);
|
|
3719
3723
|
}
|
|
3720
3724
|
return r.allowSparse === !0 ? l : se.compact(l);
|
|
3721
|
-
},
|
|
3722
|
-
formats:
|
|
3723
|
-
parse:
|
|
3724
|
-
stringify:
|
|
3725
|
-
},
|
|
3725
|
+
}, hs = os, ys = ds, ms = Zt, tt = {
|
|
3726
|
+
formats: ms,
|
|
3727
|
+
parse: ys,
|
|
3728
|
+
stringify: hs
|
|
3729
|
+
}, bs = xo;
|
|
3726
3730
|
function ee() {
|
|
3727
3731
|
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;
|
|
3728
3732
|
}
|
|
3729
|
-
var
|
|
3733
|
+
var gs = /^([a-z0-9.+-]+:)/i, js = /:[0-9]*$/, $s = /^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/, vs = [
|
|
3730
3734
|
"<",
|
|
3731
3735
|
">",
|
|
3732
3736
|
'"',
|
|
@@ -3736,24 +3740,24 @@ var ms = /^([a-z0-9.+-]+:)/i, bs = /:[0-9]*$/, gs = /^(\/\/?(?!\/)[^?\s]*)(\?[^\
|
|
|
3736
3740
|
`
|
|
3737
3741
|
`,
|
|
3738
3742
|
" "
|
|
3739
|
-
],
|
|
3743
|
+
], ws = [
|
|
3740
3744
|
"{",
|
|
3741
3745
|
"}",
|
|
3742
3746
|
"|",
|
|
3743
3747
|
"\\",
|
|
3744
3748
|
"^",
|
|
3745
3749
|
"`"
|
|
3746
|
-
].concat(
|
|
3750
|
+
].concat(vs), Wt = ["'"].concat(ws), zr = [
|
|
3747
3751
|
"%",
|
|
3748
3752
|
"/",
|
|
3749
3753
|
"?",
|
|
3750
3754
|
";",
|
|
3751
3755
|
"#"
|
|
3752
|
-
].concat(Wt),
|
|
3756
|
+
].concat(Wt), Vr = [
|
|
3753
3757
|
"/",
|
|
3754
3758
|
"?",
|
|
3755
3759
|
"#"
|
|
3756
|
-
],
|
|
3760
|
+
], Os = 255, Kr = /^[+a-z0-9A-Z_-]{0,63}$/, Ss = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, Ts = {
|
|
3757
3761
|
javascript: !0,
|
|
3758
3762
|
"javascript:": !0
|
|
3759
3763
|
}, Jt = {
|
|
@@ -3784,11 +3788,11 @@ ee.prototype.parse = function(e, t, r) {
|
|
|
3784
3788
|
a[0] = a[0].replace(s, "/"), e = a.join(l);
|
|
3785
3789
|
var o = e;
|
|
3786
3790
|
if (o = o.trim(), !r && e.split("#").length === 1) {
|
|
3787
|
-
var i =
|
|
3791
|
+
var i = $s.exec(o);
|
|
3788
3792
|
if (i)
|
|
3789
3793
|
return this.path = o, this.href = o, this.pathname = i[1], i[2] ? (this.search = i[2], t ? this.query = zt.parse(this.search.substr(1)) : this.query = this.search.substr(1)) : t && (this.search = "", this.query = {}), this;
|
|
3790
3794
|
}
|
|
3791
|
-
var c =
|
|
3795
|
+
var c = gs.exec(o);
|
|
3792
3796
|
if (c) {
|
|
3793
3797
|
c = c[0];
|
|
3794
3798
|
var p = c.toLowerCase();
|
|
@@ -3799,14 +3803,14 @@ ee.prototype.parse = function(e, t, r) {
|
|
|
3799
3803
|
f && !(c && Jt[c]) && (o = o.substr(2), this.slashes = !0);
|
|
3800
3804
|
}
|
|
3801
3805
|
if (!Jt[c] && (f || c && !Ce[c])) {
|
|
3802
|
-
for (var u = -1, d = 0; d <
|
|
3803
|
-
var h = o.indexOf(
|
|
3806
|
+
for (var u = -1, d = 0; d < Vr.length; d++) {
|
|
3807
|
+
var h = o.indexOf(Vr[d]);
|
|
3804
3808
|
h !== -1 && (u === -1 || h < u) && (u = h);
|
|
3805
3809
|
}
|
|
3806
3810
|
var m, b;
|
|
3807
3811
|
u === -1 ? b = o.lastIndexOf("@") : b = o.lastIndexOf("@", u), b !== -1 && (m = o.slice(0, b), o = o.slice(b + 1), this.auth = decodeURIComponent(m)), u = -1;
|
|
3808
|
-
for (var d = 0; d <
|
|
3809
|
-
var h = o.indexOf(
|
|
3812
|
+
for (var d = 0; d < zr.length; d++) {
|
|
3813
|
+
var h = o.indexOf(zr[d]);
|
|
3810
3814
|
h !== -1 && (u === -1 || h < u) && (u = h);
|
|
3811
3815
|
}
|
|
3812
3816
|
u === -1 && (u = o.length), this.host = o.slice(0, u), o = o.slice(u), this.parseHost(), this.hostname = this.hostname || "";
|
|
@@ -3814,21 +3818,21 @@ ee.prototype.parse = function(e, t, r) {
|
|
|
3814
3818
|
if (!j)
|
|
3815
3819
|
for (var y = this.hostname.split(/\./), d = 0, g = y.length; d < g; d++) {
|
|
3816
3820
|
var w = y[d];
|
|
3817
|
-
if (w && !w.match(
|
|
3821
|
+
if (w && !w.match(Kr)) {
|
|
3818
3822
|
for (var O = "", $ = 0, E = w.length; $ < E; $++)
|
|
3819
3823
|
w.charCodeAt($) > 127 ? O += "x" : O += w[$];
|
|
3820
|
-
if (!O.match(
|
|
3821
|
-
var S = y.slice(0, d), C = y.slice(d + 1), _ = w.match(
|
|
3824
|
+
if (!O.match(Kr)) {
|
|
3825
|
+
var S = y.slice(0, d), C = y.slice(d + 1), _ = w.match(Ss);
|
|
3822
3826
|
_ && (S.push(_[1]), C.unshift(_[2])), C.length && (o = "/" + C.join(".") + o), this.hostname = S.join(".");
|
|
3823
3827
|
break;
|
|
3824
3828
|
}
|
|
3825
3829
|
}
|
|
3826
3830
|
}
|
|
3827
|
-
this.hostname.length >
|
|
3831
|
+
this.hostname.length > Os ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), j || (this.hostname = bs.toASCII(this.hostname));
|
|
3828
3832
|
var Q = this.port ? ":" + this.port : "", Y = this.hostname || "";
|
|
3829
3833
|
this.host = Y + Q, this.href += this.host, j && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), o[0] !== "/" && (o = "/" + o));
|
|
3830
3834
|
}
|
|
3831
|
-
if (!
|
|
3835
|
+
if (!Ts[p])
|
|
3832
3836
|
for (var d = 0, g = Wt.length; d < g; d++) {
|
|
3833
3837
|
var L = Wt[d];
|
|
3834
3838
|
if (o.indexOf(L) !== -1) {
|
|
@@ -3838,14 +3842,14 @@ ee.prototype.parse = function(e, t, r) {
|
|
|
3838
3842
|
}
|
|
3839
3843
|
var F = o.indexOf("#");
|
|
3840
3844
|
F !== -1 && (this.hash = o.substr(F), o = o.slice(0, F));
|
|
3841
|
-
var
|
|
3842
|
-
if (
|
|
3845
|
+
var V = o.indexOf("?");
|
|
3846
|
+
if (V !== -1 ? (this.search = o.substr(V), this.query = o.substr(V + 1), t && (this.query = zt.parse(this.query)), o = o.slice(0, V)) : t && (this.search = "", this.query = {}), o && (this.pathname = o), Ce[p] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
|
|
3843
3847
|
var Q = this.pathname || "", ue = this.search || "";
|
|
3844
3848
|
this.path = Q + ue;
|
|
3845
3849
|
}
|
|
3846
3850
|
return this.href = this.format(), this;
|
|
3847
3851
|
};
|
|
3848
|
-
function
|
|
3852
|
+
function ks(e) {
|
|
3849
3853
|
return typeof e == "string" && (e = er(e)), e instanceof ee ? e.format() : ee.prototype.format.call(e);
|
|
3850
3854
|
}
|
|
3851
3855
|
ee.prototype.format = function() {
|
|
@@ -3932,20 +3936,20 @@ ee.prototype.resolveObject = function(e) {
|
|
|
3932
3936
|
return b = b || r.host && y.length, b && !_ && 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;
|
|
3933
3937
|
};
|
|
3934
3938
|
ee.prototype.parseHost = function() {
|
|
3935
|
-
var e = this.host, t =
|
|
3939
|
+
var e = this.host, t = js.exec(e);
|
|
3936
3940
|
t && (t = t[0], t !== ":" && (this.port = t.substr(1)), e = e.substr(0, e.length - t.length)), e && (this.hostname = e);
|
|
3937
3941
|
};
|
|
3938
|
-
var
|
|
3939
|
-
const
|
|
3942
|
+
var xs = er, Gr = ks;
|
|
3943
|
+
const Es = () => Object.keys(xe).map((e) => ({
|
|
3940
3944
|
...xe[e].info,
|
|
3941
3945
|
clients: Object.keys(xe[e].clientsById).map((t) => xe[e].clientsById[t].info)
|
|
3942
|
-
})),
|
|
3943
|
-
var
|
|
3946
|
+
})), Ps = (e) => typeof e == "object" && "log" in e && typeof e.log == "object" && "entries" in e.log && Array.isArray(e.log.entries);
|
|
3947
|
+
var Cs = class {
|
|
3944
3948
|
constructor(e, t = {}) {
|
|
3945
3949
|
this.initCalled = !1, this.entries = [], this.requests = [], this.options = {}, this.options = {
|
|
3946
3950
|
harIsAlreadyEncoded: !1,
|
|
3947
3951
|
...t
|
|
3948
|
-
}, this.requests = [],
|
|
3952
|
+
}, this.requests = [], Ps(e) ? this.entries = e.log.entries : this.entries = [{ request: e }];
|
|
3949
3953
|
}
|
|
3950
3954
|
init() {
|
|
3951
3955
|
return this.initCalled = !0, this.requests = this.entries.map(({ request: e }) => {
|
|
@@ -4025,7 +4029,7 @@ var Es = class {
|
|
|
4025
4029
|
const o = {
|
|
4026
4030
|
...a.allHeaders,
|
|
4027
4031
|
...a.headersObj
|
|
4028
|
-
}, i =
|
|
4032
|
+
}, i = xs(a.url, !0, !0);
|
|
4029
4033
|
a.queryObj = {
|
|
4030
4034
|
...a.queryObj,
|
|
4031
4035
|
...i.query
|
|
@@ -4040,11 +4044,11 @@ var Es = class {
|
|
|
4040
4044
|
query: a.queryObj,
|
|
4041
4045
|
search: c,
|
|
4042
4046
|
path: c ? `${i.pathname}?${c}` : i.pathname
|
|
4043
|
-
}, f =
|
|
4047
|
+
}, f = Gr({
|
|
4044
4048
|
...i,
|
|
4045
4049
|
query: null,
|
|
4046
4050
|
search: null
|
|
4047
|
-
}), u =
|
|
4051
|
+
}), u = Gr({
|
|
4048
4052
|
...i,
|
|
4049
4053
|
...p
|
|
4050
4054
|
});
|
|
@@ -4071,11 +4075,11 @@ var Es = class {
|
|
|
4071
4075
|
return this.requests.map((a) => l != null && l.installation ? l.installation(a, r) : !1);
|
|
4072
4076
|
}
|
|
4073
4077
|
};
|
|
4074
|
-
const
|
|
4075
|
-
function
|
|
4076
|
-
return
|
|
4078
|
+
const Pn = "agent", Cn = "prompt";
|
|
4079
|
+
function As() {
|
|
4080
|
+
return Es();
|
|
4077
4081
|
}
|
|
4078
|
-
function
|
|
4082
|
+
function Rs(e) {
|
|
4079
4083
|
var t;
|
|
4080
4084
|
const r = e == null ? void 0 : e[0];
|
|
4081
4085
|
if (!r) return "http://localhost";
|
|
@@ -4086,12 +4090,12 @@ function Cs(e) {
|
|
|
4086
4090
|
}
|
|
4087
4091
|
return n;
|
|
4088
4092
|
}
|
|
4089
|
-
function
|
|
4093
|
+
function qs(e) {
|
|
4090
4094
|
if (e.example !== void 0 || e.examples && Object.keys(e.examples).length > 0) return !0;
|
|
4091
4095
|
const t = e.schema;
|
|
4092
4096
|
return !!((t == null ? void 0 : t.example) !== void 0 || t != null && t.enum && t.enum.length > 0);
|
|
4093
4097
|
}
|
|
4094
|
-
function
|
|
4098
|
+
function An(e) {
|
|
4095
4099
|
if (e.example !== void 0) return String(e.example);
|
|
4096
4100
|
if (e.examples) {
|
|
4097
4101
|
for (const r of Object.values(e.examples))
|
|
@@ -4101,16 +4105,16 @@ function Pn(e) {
|
|
|
4101
4105
|
const t = e.schema;
|
|
4102
4106
|
return (t == null ? void 0 : t.example) !== void 0 ? String(t.example) : t != null && t.enum && t.enum.length > 0 ? String(t.enum[0]) : `{${e.name}}`;
|
|
4103
4107
|
}
|
|
4104
|
-
function
|
|
4108
|
+
function Ns(e, t, r) {
|
|
4105
4109
|
const n = t.replace(/\{([^}]+)\}/g, (l, a) => {
|
|
4106
4110
|
const s = r.find((i) => i.in === "path" && i.name === a);
|
|
4107
4111
|
if (!s) return l;
|
|
4108
|
-
const o =
|
|
4112
|
+
const o = An(s);
|
|
4109
4113
|
return o === `{${a}}` ? o : encodeURIComponent(o);
|
|
4110
4114
|
});
|
|
4111
4115
|
return `${e.replace(/\/$/, "")}${n}`;
|
|
4112
4116
|
}
|
|
4113
|
-
function
|
|
4117
|
+
function Ls(e, t) {
|
|
4114
4118
|
var r;
|
|
4115
4119
|
const n = e[0];
|
|
4116
4120
|
if (!n || !t) return [];
|
|
@@ -4132,7 +4136,7 @@ function qs(e, t) {
|
|
|
4132
4136
|
}
|
|
4133
4137
|
return l;
|
|
4134
4138
|
}
|
|
4135
|
-
function
|
|
4139
|
+
function Us(e) {
|
|
4136
4140
|
const t = e == null ? void 0 : e.content;
|
|
4137
4141
|
if (!t) return null;
|
|
4138
4142
|
const r = "application/json" in t ? "application/json" : Object.keys(t)[0];
|
|
@@ -4148,12 +4152,12 @@ function Ns(e) {
|
|
|
4148
4152
|
}
|
|
4149
4153
|
return { contentType: r, schema: n.schema, authorExample: l };
|
|
4150
4154
|
}
|
|
4151
|
-
function
|
|
4152
|
-
const t =
|
|
4155
|
+
function Ds(e) {
|
|
4156
|
+
const t = Rs(e.servers), r = Ns(t, e.path, e.parameters), n = Ls(e.security, e.securitySchemes), l = [], a = [], s = [];
|
|
4153
4157
|
for (const i of n)
|
|
4154
4158
|
(i.location === "header" ? l : i.location === "query" ? a : s).push({ name: i.name, value: i.value });
|
|
4155
4159
|
for (const i of e.parameters)
|
|
4156
|
-
i.in === "query" && (i.required ||
|
|
4160
|
+
i.in === "query" && (i.required || qs(i)) && a.push({ name: i.name, value: An(i) });
|
|
4157
4161
|
const o = {
|
|
4158
4162
|
method: e.method.toUpperCase(),
|
|
4159
4163
|
url: r,
|
|
@@ -4164,22 +4168,22 @@ function Ls(e) {
|
|
|
4164
4168
|
};
|
|
4165
4169
|
return e.media && e.resolvedBodyValue !== void 0 && (l.push({ name: "Content-Type", value: e.media.contentType }), o.postData = { mimeType: e.media.contentType, text: JSON.stringify(e.resolvedBodyValue, null, 2) }), o;
|
|
4166
4170
|
}
|
|
4167
|
-
function
|
|
4171
|
+
function _s(e, t, r) {
|
|
4168
4172
|
try {
|
|
4169
|
-
const n = new
|
|
4173
|
+
const n = new Cs(e), [l] = n.convert(t, r);
|
|
4170
4174
|
return typeof l == "string" ? l : "";
|
|
4171
4175
|
} catch {
|
|
4172
4176
|
return "";
|
|
4173
4177
|
}
|
|
4174
4178
|
}
|
|
4175
|
-
const
|
|
4176
|
-
function
|
|
4179
|
+
const Hs = `${Pn}:${Cn}`;
|
|
4180
|
+
function Ms({ method: e, path: t, parameters: r, requestBody: n, security: l, id: a }) {
|
|
4177
4181
|
var s;
|
|
4178
|
-
const { document: o, deref: i, showCodeSamples: c } =
|
|
4182
|
+
const { document: o, deref: i, showCodeSamples: c } = Rn(), p = o, f = re.useId(), u = re.useMemo(() => As(), []), [d, h] = re.useState(Hs), [m, b] = d.split(":"), j = Un(m), y = re.useMemo(() => Us(n), [n]), [g, w] = re.useState(void 0);
|
|
4179
4183
|
re.useEffect(() => {
|
|
4180
4184
|
if (w(void 0), !y || y.authorExample !== void 0 || !y.schema) return;
|
|
4181
4185
|
let S = !1;
|
|
4182
|
-
return
|
|
4186
|
+
return Hn(y.schema).then((C) => {
|
|
4183
4187
|
S || w(C);
|
|
4184
4188
|
}), () => {
|
|
4185
4189
|
S = !0;
|
|
@@ -4189,7 +4193,7 @@ function Hs({ method: e, path: t, parameters: r, requestBody: n, security: l, id
|
|
|
4189
4193
|
re.useEffect(() => {
|
|
4190
4194
|
O(tr(j));
|
|
4191
4195
|
let S = !1;
|
|
4192
|
-
return
|
|
4196
|
+
return qn(j).then(() => {
|
|
4193
4197
|
S || O(!0);
|
|
4194
4198
|
}), () => {
|
|
4195
4199
|
S = !0;
|
|
@@ -4198,7 +4202,7 @@ function Hs({ method: e, path: t, parameters: r, requestBody: n, security: l, id
|
|
|
4198
4202
|
const $ = re.useMemo(
|
|
4199
4203
|
() => {
|
|
4200
4204
|
var S;
|
|
4201
|
-
return
|
|
4205
|
+
return Ds({
|
|
4202
4206
|
method: e,
|
|
4203
4207
|
path: t,
|
|
4204
4208
|
servers: p.servers,
|
|
@@ -4210,7 +4214,7 @@ function Hs({ method: e, path: t, parameters: r, requestBody: n, security: l, id
|
|
|
4210
4214
|
});
|
|
4211
4215
|
},
|
|
4212
4216
|
[e, t, p.servers, r, l, (s = p.components) == null ? void 0 : s.securitySchemes, y, g]
|
|
4213
|
-
), E = re.useMemo(() => m ===
|
|
4217
|
+
), E = re.useMemo(() => m === Pn && b === Cn ? Nn(p, e, t, i) : _s($, m, b), [$, m, b, p, e, t, i]);
|
|
4214
4218
|
return c ? /* @__PURE__ */ me.jsxs("div", { id: `endpoint-${a}-code-samples`, children: [
|
|
4215
4219
|
/* @__PURE__ */ me.jsxs("div", { className: "flex items-center justify-between mb-2", children: [
|
|
4216
4220
|
/* @__PURE__ */ me.jsx("label", { htmlFor: f, className: "text-xs font-medium text-foreground-muted uppercase tracking-wider", children: "Example Request" }),
|
|
@@ -4226,9 +4230,9 @@ function Hs({ method: e, path: t, parameters: r, requestBody: n, security: l, id
|
|
|
4226
4230
|
}
|
|
4227
4231
|
)
|
|
4228
4232
|
] }),
|
|
4229
|
-
/* @__PURE__ */ me.jsx(
|
|
4233
|
+
/* @__PURE__ */ me.jsx(Ln, { code: E, language: j })
|
|
4230
4234
|
] }) : null;
|
|
4231
4235
|
}
|
|
4232
4236
|
export {
|
|
4233
|
-
|
|
4237
|
+
Ms as CodeSamples
|
|
4234
4238
|
};
|