apiuikit 1.12.0 → 2.0.1
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/README.md +2 -52
- package/dist/CodeSamples-C5Tl3k83.cjs +50 -0
- package/dist/{CodeSamples-BzQONJ_W.js → CodeSamples-bu8KSzOn.js} +1225 -1231
- package/dist/{LogoExtension-NutcLQ6T.cjs → LogoExtension-BVOE2HZc.cjs} +1 -1
- package/dist/{LogoExtension-DyWnBQ1M.js → LogoExtension-CZJpJnyk.js} +1 -1
- package/dist/apiuikit.cjs.js +1 -1
- package/dist/apiuikit.css +1 -1
- package/dist/apiuikit.es.js +1 -1
- package/dist/c-B4BAHWS4.cjs +1 -0
- package/dist/{c-Bz1-FJiA.js → c-C0DTNf68.js} +122 -63
- package/dist/components/AsyncCodeSample.d.ts +1 -1
- package/dist/components/Authorization.d.ts +5 -5
- package/dist/components/Bindings.d.ts +1 -1
- package/dist/components/ChannelAddress.d.ts +1 -1
- package/dist/components/CodeBlock.d.ts +1 -1
- package/dist/components/CodeSamples.d.ts +1 -1
- package/dist/components/CollapsiblePanel.d.ts +1 -1
- package/dist/components/ContentTab.d.ts +1 -1
- package/dist/components/CopyButton.d.ts +1 -1
- package/dist/components/DefinitionListItem.d.ts +1 -1
- package/dist/components/DocumentTopBar.d.ts +1 -1
- package/dist/components/ErrorBoundary.d.ts +1 -1
- package/dist/components/Examples.d.ts +1 -1
- package/dist/components/InfoMetadata.d.ts +1 -1
- package/dist/components/MarkdownExportMenu.d.ts +1 -1
- package/dist/components/MethodBadge.d.ts +1 -1
- package/dist/components/Navigation/AsyncAPINavigation.d.ts +1 -1
- package/dist/components/Navigation/Navigation.d.ts +1 -1
- package/dist/components/Navigation/OpenAPINavigation.d.ts +1 -1
- package/dist/components/Navigation/SpecNavigation.d.ts +1 -1
- package/dist/components/QueryParameters.d.ts +1 -1
- package/dist/components/RenderExtensions.d.ts +1 -1
- package/dist/components/Reply.d.ts +1 -1
- package/dist/components/SearchPanel.d.ts +1 -1
- package/dist/components/Section.d.ts +8 -1
- package/dist/components/ServerAddressBanner.d.ts +1 -1
- package/dist/components/TabToggle.d.ts +1 -1
- package/dist/components/Tabs.d.ts +2 -2
- package/dist/components/Tag.d.ts +1 -1
- package/dist/components/VerticalNavigation.d.ts +1 -1
- package/dist/components/schema/ExpandToggle.d.ts +1 -1
- package/dist/components/schema/SchemaCaseDetail.d.ts +1 -1
- package/dist/components/schema/SchemaConstraints.d.ts +1 -1
- package/dist/components/schema/SchemaFieldMeta.d.ts +1 -1
- package/dist/components/schema/SchemaIfThenElseBranch.d.ts +1 -1
- package/dist/components/schema/SchemaMapBranch.d.ts +1 -1
- package/dist/components/schema/SchemaNode.d.ts +1 -1
- package/dist/components/schema/SchemaNotBranch.d.ts +2 -2
- package/dist/components/schema/SchemaTab.d.ts +1 -1
- package/dist/components/schema/SchemaTree.d.ts +1 -1
- package/dist/components/schema/SchemaTreeBranch.d.ts +1 -1
- package/dist/components/schema/SchemaTreeRow.d.ts +1 -1
- package/dist/components/schema/SchemaTypeLabel.d.ts +1 -1
- package/dist/components/schema/SchemaUnionBranch.d.ts +1 -1
- package/dist/config/config.d.ts +17 -0
- package/dist/containers/AsyncAPI/AsyncAPI.d.ts +1 -1
- package/dist/containers/AsyncAPI/AsyncAPIDocumentProvider.d.ts +1 -1
- package/dist/containers/AsyncAPI/AsyncAPIRenderer.d.ts +1 -1
- package/dist/containers/AsyncAPI/Layout.d.ts +1 -1
- package/dist/containers/Information/InformationSection.d.ts +2 -2
- package/dist/containers/Information/OpenAPIInformation.d.ts +1 -1
- package/dist/containers/Messages/Message.d.ts +1 -1
- package/dist/containers/Messages/MessageDetails.d.ts +1 -1
- package/dist/containers/Messages/Messages.d.ts +1 -1
- package/dist/containers/OpenAPI/Layout.d.ts +1 -1
- package/dist/containers/OpenAPI/OpenAPI.d.ts +1 -1
- package/dist/containers/OpenAPI/OpenAPIDocumentProvider.d.ts +1 -1
- package/dist/containers/OpenAPI/OpenAPIRenderer.d.ts +1 -1
- package/dist/containers/Operation/Operation.d.ts +1 -1
- package/dist/containers/Operation/Operations.d.ts +1 -1
- package/dist/containers/Path/OperationCallbacks.d.ts +1 -1
- package/dist/containers/Path/PathOperation.d.ts +1 -1
- package/dist/containers/Path/Paths.d.ts +1 -1
- package/dist/containers/Path/ResponseLinks.d.ts +1 -1
- package/dist/containers/Schema/Schemas.d.ts +1 -1
- package/dist/containers/Server/OpenAPIServer.d.ts +1 -1
- package/dist/containers/Server/OpenAPIServers.d.ts +1 -1
- package/dist/containers/Server/Server.d.ts +1 -1
- package/dist/containers/Server/Servers.d.ts +1 -1
- package/dist/contexts/useSpec.d.ts +5 -0
- package/dist/{crystal-BcGgviMR.cjs → crystal-BA1RB3o9.cjs} +1 -1
- package/dist/{crystal-BtD5fR4q.js → crystal-C5EKc8oK.js} +29 -18
- package/dist/{csharp-AnFv7wyC.js → csharp-B6YWt0KR.js} +47 -47
- package/dist/csharp-IihVQN8U.cjs +1 -0
- package/dist/{go-BpetKc7b.cjs → go-By8nj0Vi.cjs} +1 -1
- package/dist/{go-CkZ9_bn0.js → go-C8VcBUsu.js} +7 -2
- package/dist/helpers/openapiParser.d.ts +1 -1
- package/dist/helpers/parser.d.ts +1 -1
- package/dist/hooks/useDocumentProviderValue.d.ts +1 -0
- package/dist/icons/ArrowDown.d.ts +1 -1
- package/dist/icons/ArrowRight.d.ts +1 -1
- package/dist/icons/AtSymbol.d.ts +1 -1
- package/dist/icons/BookOpen.d.ts +1 -1
- package/dist/icons/Check.d.ts +1 -1
- package/dist/icons/Clipboard.d.ts +1 -1
- package/dist/icons/Connection.d.ts +1 -1
- package/dist/icons/Copy.d.ts +1 -1
- package/dist/icons/ExternalLink.d.ts +1 -1
- package/dist/icons/Globe.d.ts +1 -1
- package/dist/icons/IconWrapper.d.ts +1 -1
- package/dist/icons/Info.d.ts +1 -1
- package/dist/icons/Link.d.ts +1 -1
- package/dist/icons/Message.d.ts +1 -1
- package/dist/icons/Operation.d.ts +1 -1
- package/dist/icons/Scale.d.ts +1 -1
- package/dist/icons/Schema.d.ts +1 -1
- package/dist/icons/Server.d.ts +1 -1
- package/dist/icons/ShieldCheck.d.ts +1 -1
- package/dist/icons/Tag.d.ts +1 -1
- package/dist/icons/Variable.d.ts +1 -1
- package/dist/index-1SEMQuYi.js +1704 -0
- package/dist/index-29FyeXas.cjs +137 -0
- package/dist/index-C2tdEw22.cjs +178 -0
- package/dist/{index-Zmu_k8_1.js → index-CbVUi36m.js} +3637 -3400
- package/dist/{index-ByyWsuPc.js → index-Ccaf5SNM.js} +10357 -10196
- package/dist/index-Ccy_JZ0T.cjs +4 -0
- package/dist/index-DKcgVKzx.cjs +107 -0
- package/dist/{index-CxOoKEXt.js → index-DkjcpZQZ.js} +3118 -3026
- package/dist/{java-BicX26Pg.js → java-BoRJOXvw.js} +48 -39
- package/dist/java-DFXAwvvK.cjs +1 -0
- package/dist/{kotlin-kGuORR5a.cjs → kotlin-B3HlgtFq.cjs} +2 -2
- package/dist/{kotlin-BwB8b-YX.js → kotlin-CIEA64JZ.js} +3 -1
- package/dist/markdown-assets/protoToJsonSchema-B7uaS_Ic.js +83 -0
- package/dist/markdown-assets/{protoToJsonSchema-CBPWaboT.js → protoToJsonSchema-CWtEPUyE.js} +1807 -1788
- package/dist/markdown.cjs +37 -37
- package/dist/markdown.es.js +927 -900
- package/dist/{php-DF4zG2hq.cjs → php-BMUCoWpx.cjs} +2 -2
- package/dist/{php-BL35ZHWM.js → php-DJ7KS8rT.js} +39 -33
- package/dist/plugins/OperationPluginTabs.d.ts +1 -1
- package/dist/plugins/PluginSlot.d.ts +2 -2
- package/dist/{protoToJsonSchema-DYct0Ubq.js → protoToJsonSchema-BvNrF6Ce.js} +787 -769
- package/dist/protoToJsonSchema-CQwj_Ytd.cjs +83 -0
- package/dist/{protobufSchemaParser-AhCAnBeA.cjs → protobufSchemaParser-DO1jnL81.cjs} +1 -1
- package/dist/{protobufSchemaParser-DDehPdy5.js → protobufSchemaParser-hOIbQrct.js} +2 -2
- package/dist/public/createSectionRoot.d.ts +1 -1
- package/dist/public/openapiSections.d.ts +5 -5
- package/dist/public/schemasSection.d.ts +1 -1
- package/dist/public/sections.d.ts +5 -5
- package/dist/{ruby-nPcbuC2a.cjs → ruby-CGL4kvvH.cjs} +1 -1
- package/dist/{ruby-CvOid-1s.js → ruby-t1jbZ0Fv.js} +2 -2
- package/dist/{rust-BocnJ3Ns.js → rust-DY-oA2gr.js} +40 -26
- package/dist/rust-_vvcEGSJ.cjs +1 -0
- package/dist/swift-BAji1QIq.cjs +1 -0
- package/dist/{swift-C35Eof-I.js → swift-CdDIFB_j.js} +25 -11
- package/dist/utils/theme.d.ts +14 -0
- package/package.json +20 -4
- package/dist/App.d.ts +0 -2
- package/dist/CodeSamples-BpMwzCbt.cjs +0 -50
- package/dist/c-C_Sx7N-F.cjs +0 -1
- package/dist/csharp-yuAGIuP4.cjs +0 -1
- package/dist/index-BKvXpIUY.cjs +0 -107
- package/dist/index-DCDYBZcY.js +0 -1461
- package/dist/index-DgKIIH6w.cjs +0 -139
- package/dist/index-DwDyiZr3.cjs +0 -178
- package/dist/index-d8kJa7YD.cjs +0 -4
- package/dist/java-BIk0G-rH.cjs +0 -1
- package/dist/main.d.ts +0 -0
- package/dist/markdown-assets/protoToJsonSchema-CgkcluFJ.js +0 -83
- package/dist/protoToJsonSchema-B86Gpg5n.cjs +0 -83
- package/dist/rust-DKnYCg2f.cjs +0 -1
- package/dist/swift-CAnH__EC.cjs +0 -1
package/dist/markdown.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const ct = [
|
|
2
2
|
"get",
|
|
3
3
|
"put",
|
|
4
4
|
"post",
|
|
@@ -7,18 +7,18 @@ const ut = [
|
|
|
7
7
|
"head",
|
|
8
8
|
"patch",
|
|
9
9
|
"trace"
|
|
10
|
-
],
|
|
11
|
-
function
|
|
10
|
+
], Tt = (t, n) => `${t} ${n}`;
|
|
11
|
+
function ft(t) {
|
|
12
12
|
return Object.keys(t).sort().flatMap((n) => {
|
|
13
13
|
const r = t[n];
|
|
14
|
-
return r ?
|
|
15
|
-
key:
|
|
16
|
-
method:
|
|
14
|
+
return r ? ct.filter((u) => r[u]).map((u) => ({
|
|
15
|
+
key: Tt(u, n),
|
|
16
|
+
method: u,
|
|
17
17
|
path: n
|
|
18
18
|
})) : [];
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
|
-
const
|
|
21
|
+
const V = (t) => typeof t == "object" && t !== null && !Array.isArray(t), X = (t) => V(t) ? t : null, tt = "^[\0-ÿ]*$", wt = Math.pow(-2, 31), At = Math.pow(2, 31) - 1, bt = Math.pow(-2, 63), Rt = Math.pow(2, 63) - 1, $t = {
|
|
22
22
|
null: "null",
|
|
23
23
|
boolean: "boolean",
|
|
24
24
|
int: "integer",
|
|
@@ -33,29 +33,29 @@ const Z = (t) => typeof t == "object" && t !== null && !Array.isArray(t), V = (t
|
|
|
33
33
|
enum: "string",
|
|
34
34
|
record: "object",
|
|
35
35
|
uuid: "string"
|
|
36
|
-
},
|
|
37
|
-
function
|
|
38
|
-
const n =
|
|
36
|
+
}, Ue = (t) => typeof t == "object" && t !== null && !Array.isArray(t) ? t : {};
|
|
37
|
+
function ye(t) {
|
|
38
|
+
const n = Ue(t);
|
|
39
39
|
if (typeof n.name == "string")
|
|
40
40
|
return typeof n.namespace == "string" ? `${n.namespace}.${n.name}` : n.name;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function Me(t, n, r) {
|
|
43
43
|
t.doc && (n.description = t.doc), t.default !== void 0 && (n.default = t.default);
|
|
44
|
-
const
|
|
45
|
-
|
|
44
|
+
const u = ye(t);
|
|
45
|
+
u !== void 0 && r[u] && (n["x-parser-schema-id"] = u);
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function nt(t, n, r) {
|
|
48
48
|
!(Array.isArray(t.type) && t.type.includes("null")) && !r && (n.required = n.required || [], n.required.push(t.name));
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
let r = t,
|
|
50
|
+
function St(t, n) {
|
|
51
|
+
let r = t, u = n;
|
|
52
52
|
if (Array.isArray(t) && t.length > 0) {
|
|
53
|
-
const
|
|
54
|
-
r = t[+
|
|
53
|
+
const i = t.length > 1 && t[0] === "null";
|
|
54
|
+
r = t[+i], u.oneOf !== void 0 && (u = u.oneOf[0]);
|
|
55
55
|
}
|
|
56
|
-
return { type: r, jsonSchema:
|
|
56
|
+
return { type: r, jsonSchema: u };
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function kt(t, n, r) {
|
|
59
59
|
if (!(n === void 0 || r.examples || Array.isArray(t)))
|
|
60
60
|
switch (t) {
|
|
61
61
|
case "boolean":
|
|
@@ -70,24 +70,24 @@ function $t(t, n, r) {
|
|
|
70
70
|
r.examples = [n];
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function Ne(t) {
|
|
74
74
|
return Object.keys(t).some(
|
|
75
75
|
(n) => n !== "type" && n !== "name" && n !== "namespace"
|
|
76
76
|
);
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
const { type:
|
|
78
|
+
function Le(t, n, r) {
|
|
79
|
+
const { type: u, jsonSchema: i } = St(
|
|
80
80
|
t,
|
|
81
81
|
r
|
|
82
82
|
);
|
|
83
|
-
|
|
84
|
-
function a(...
|
|
85
|
-
|
|
83
|
+
kt(u, n.example, i);
|
|
84
|
+
function a(...p) {
|
|
85
|
+
p.forEach((y) => {
|
|
86
86
|
let h = !0;
|
|
87
|
-
|
|
87
|
+
y === "minLength" || y === "maxLength" ? h = n[y] > -1 : y === "multipleOf" && (h = n[y] > 0), n[y] !== void 0 && h && (i[y] = n[y]);
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
|
-
switch (
|
|
90
|
+
switch (u) {
|
|
91
91
|
case "int":
|
|
92
92
|
// int, long, float, and double must support the attributes below
|
|
93
93
|
case "long":
|
|
@@ -102,106 +102,106 @@ function Me(t, n, r) {
|
|
|
102
102
|
);
|
|
103
103
|
break;
|
|
104
104
|
case "string":
|
|
105
|
-
n.logicalType && (
|
|
105
|
+
n.logicalType && (i.format = n.logicalType), a("pattern", "minLength", "maxLength");
|
|
106
106
|
break;
|
|
107
107
|
case "array":
|
|
108
108
|
a("minItems", "maxItems", "uniqueItems");
|
|
109
109
|
break;
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function Ye(t, n, r) {
|
|
113
113
|
n !== void 0 && (t[n] = r);
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function he(t, n) {
|
|
116
116
|
let r = {};
|
|
117
117
|
if (Array.isArray(t))
|
|
118
|
-
return
|
|
119
|
-
const
|
|
120
|
-
switch (r.type =
|
|
118
|
+
return jt(r, t, n);
|
|
119
|
+
const u = Ue(t), i = typeof t == "string" ? t : u.type;
|
|
120
|
+
switch (r.type = $t[i], i) {
|
|
121
121
|
case "int": {
|
|
122
|
-
r.minimum =
|
|
122
|
+
r.minimum = wt, r.maximum = At;
|
|
123
123
|
break;
|
|
124
124
|
}
|
|
125
125
|
case "long": {
|
|
126
|
-
r.minimum =
|
|
126
|
+
r.minimum = bt, r.maximum = Rt;
|
|
127
127
|
break;
|
|
128
128
|
}
|
|
129
129
|
case "bytes": {
|
|
130
|
-
r.pattern =
|
|
130
|
+
r.pattern = tt;
|
|
131
131
|
break;
|
|
132
132
|
}
|
|
133
133
|
case "fixed": {
|
|
134
|
-
r.pattern =
|
|
134
|
+
r.pattern = tt, r.minLength = u.size, r.maxLength = u.size;
|
|
135
135
|
break;
|
|
136
136
|
}
|
|
137
137
|
case "map": {
|
|
138
|
-
r.additionalProperties =
|
|
139
|
-
|
|
138
|
+
r.additionalProperties = he(
|
|
139
|
+
u.values,
|
|
140
140
|
n
|
|
141
141
|
);
|
|
142
142
|
break;
|
|
143
143
|
}
|
|
144
144
|
case "array": {
|
|
145
|
-
r.items =
|
|
146
|
-
|
|
145
|
+
r.items = he(
|
|
146
|
+
u.items,
|
|
147
147
|
n
|
|
148
148
|
);
|
|
149
149
|
break;
|
|
150
150
|
}
|
|
151
151
|
case "enum": {
|
|
152
|
-
r.enum =
|
|
152
|
+
r.enum = u.symbols;
|
|
153
153
|
break;
|
|
154
154
|
}
|
|
155
155
|
case "float":
|
|
156
156
|
// float and double carry their Avro type as JSON Schema format
|
|
157
157
|
case "double": {
|
|
158
|
-
r.format =
|
|
158
|
+
r.format = i;
|
|
159
159
|
break;
|
|
160
160
|
}
|
|
161
161
|
case "record": {
|
|
162
|
-
const a =
|
|
163
|
-
|
|
162
|
+
const a = Ot(u, n, r);
|
|
163
|
+
Ye(
|
|
164
164
|
n,
|
|
165
|
-
|
|
165
|
+
ye(t),
|
|
166
166
|
r
|
|
167
167
|
), r.properties = Object.fromEntries(a.entries());
|
|
168
168
|
break;
|
|
169
169
|
}
|
|
170
170
|
default: {
|
|
171
|
-
const a = n[
|
|
172
|
-
a && (r =
|
|
171
|
+
const a = n[ye(t)] ?? (typeof i == "string" ? n[i] : void 0);
|
|
172
|
+
a && (r = Ne(u) ? { ...a } : a);
|
|
173
173
|
break;
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
|
-
return
|
|
176
|
+
return Me(u, r, n), Le(i, u, r), r;
|
|
177
177
|
}
|
|
178
|
-
function
|
|
179
|
-
const
|
|
180
|
-
for (const
|
|
181
|
-
const a = typeof
|
|
178
|
+
function Ot(t, n, r) {
|
|
179
|
+
const u = /* @__PURE__ */ new Map();
|
|
180
|
+
for (const i of t.fields ?? []) {
|
|
181
|
+
const a = typeof i.type == "string" ? n[i.type] : void 0;
|
|
182
182
|
if (a) {
|
|
183
|
-
const
|
|
184
|
-
|
|
183
|
+
const p = Ne(i) ? { ...a } : a;
|
|
184
|
+
nt(i, r, i.default !== void 0), Ne(i) && (Me(i, p, n), Le(i.type, i, p)), u.set(i.name, p);
|
|
185
185
|
} else {
|
|
186
|
-
const
|
|
187
|
-
|
|
186
|
+
const p = he(i.type, n);
|
|
187
|
+
nt(i, r, i.default !== void 0), Me(i, p, n), Le(i.type, i, p), u.set(i.name, p), Ye(n, ye(i.type), p);
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
return
|
|
190
|
+
return u;
|
|
191
191
|
}
|
|
192
|
-
function
|
|
193
|
-
const
|
|
194
|
-
let
|
|
192
|
+
function jt(t, n, r) {
|
|
193
|
+
const u = [];
|
|
194
|
+
let i = null;
|
|
195
195
|
for (const a of n) {
|
|
196
|
-
const
|
|
197
|
-
(typeof a == "string" ? a :
|
|
196
|
+
const p = he(a, r);
|
|
197
|
+
(typeof a == "string" ? a : Ue(a).type) === "null" ? i = p : (u.push(p), Ye(r, ye(a), p));
|
|
198
198
|
}
|
|
199
|
-
return
|
|
199
|
+
return i && u.push(i), t.oneOf = u, t;
|
|
200
200
|
}
|
|
201
|
-
function
|
|
202
|
-
return
|
|
201
|
+
function Ct(t) {
|
|
202
|
+
return he(t, {});
|
|
203
203
|
}
|
|
204
|
-
const
|
|
204
|
+
const rt = /* @__PURE__ */ new Set([
|
|
205
205
|
"null",
|
|
206
206
|
"boolean",
|
|
207
207
|
"int",
|
|
@@ -211,64 +211,64 @@ const et = /* @__PURE__ */ new Set([
|
|
|
211
211
|
"bytes",
|
|
212
212
|
"string",
|
|
213
213
|
"uuid"
|
|
214
|
-
]),
|
|
215
|
-
function
|
|
214
|
+
]), Pt = /* @__PURE__ */ new Set(["record", "enum", "array", "map", "fixed"]), ot = /^[A-Za-z_][A-Za-z0-9_]*(\.[A-Za-z_][A-Za-z0-9_]*)*$/;
|
|
215
|
+
function Mt(t) {
|
|
216
216
|
const n = [];
|
|
217
|
-
return
|
|
217
|
+
return se(t, "schema", n, /* @__PURE__ */ new Set()), n;
|
|
218
218
|
}
|
|
219
|
-
function
|
|
219
|
+
function se(t, n, r, u) {
|
|
220
220
|
if (typeof t == "string") {
|
|
221
|
-
!
|
|
221
|
+
!rt.has(t) && !ot.test(t) && r.push(`${n}: "${t}" is not a valid Avro type name`);
|
|
222
222
|
return;
|
|
223
223
|
}
|
|
224
224
|
if (Array.isArray(t)) {
|
|
225
225
|
t.length === 0 && r.push(`${n}: union must have at least one alternative`), t.forEach(
|
|
226
|
-
(a,
|
|
226
|
+
(a, p) => se(a, `${n}[${p}]`, r, u)
|
|
227
227
|
);
|
|
228
228
|
return;
|
|
229
229
|
}
|
|
230
|
-
if (!
|
|
230
|
+
if (!V(t)) {
|
|
231
231
|
r.push(`${n}: expected an Avro type string, object, or union`);
|
|
232
232
|
return;
|
|
233
233
|
}
|
|
234
|
-
if (
|
|
235
|
-
|
|
236
|
-
const
|
|
237
|
-
if (typeof
|
|
238
|
-
Array.isArray(
|
|
234
|
+
if (u.has(t)) return;
|
|
235
|
+
u.add(t);
|
|
236
|
+
const i = t.type;
|
|
237
|
+
if (typeof i != "string") {
|
|
238
|
+
Array.isArray(i) || V(i) ? se(i, `${n}.type`, r, u) : r.push(`${n}: missing "type"`);
|
|
239
239
|
return;
|
|
240
240
|
}
|
|
241
|
-
if (!
|
|
242
|
-
r.push(`${n}: unknown Avro type "${
|
|
241
|
+
if (!rt.has(i) && !Pt.has(i) && !ot.test(i)) {
|
|
242
|
+
r.push(`${n}: unknown Avro type "${i}"`);
|
|
243
243
|
return;
|
|
244
244
|
}
|
|
245
|
-
switch (
|
|
245
|
+
switch (i) {
|
|
246
246
|
case "record": {
|
|
247
247
|
if (!Array.isArray(t.fields)) {
|
|
248
248
|
r.push(`${n}: record must have a "fields" array`);
|
|
249
249
|
return;
|
|
250
250
|
}
|
|
251
|
-
t.fields.forEach((a,
|
|
252
|
-
const
|
|
253
|
-
if (!
|
|
254
|
-
r.push(`${
|
|
251
|
+
t.fields.forEach((a, p) => {
|
|
252
|
+
const y = `${n}.fields[${p}]`;
|
|
253
|
+
if (!V(a) || typeof a.name != "string") {
|
|
254
|
+
r.push(`${y}: field must have a string "name"`);
|
|
255
255
|
return;
|
|
256
256
|
}
|
|
257
|
-
|
|
257
|
+
se(a.type, `${y}.type`, r, u);
|
|
258
258
|
});
|
|
259
259
|
break;
|
|
260
260
|
}
|
|
261
261
|
case "enum": {
|
|
262
262
|
const a = t.symbols;
|
|
263
|
-
(!Array.isArray(a) || a.some((
|
|
263
|
+
(!Array.isArray(a) || a.some((p) => typeof p != "string")) && r.push(`${n}: enum must have a "symbols" array of strings`);
|
|
264
264
|
break;
|
|
265
265
|
}
|
|
266
266
|
case "array": {
|
|
267
|
-
t.items === void 0 ? r.push(`${n}: array must have "items"`) :
|
|
267
|
+
t.items === void 0 ? r.push(`${n}: array must have "items"`) : se(t.items, `${n}.items`, r, u);
|
|
268
268
|
break;
|
|
269
269
|
}
|
|
270
270
|
case "map": {
|
|
271
|
-
t.values === void 0 ? r.push(`${n}: map must have "values"`) :
|
|
271
|
+
t.values === void 0 ? r.push(`${n}: map must have "values"`) : se(t.values, `${n}.values`, r, u);
|
|
272
272
|
break;
|
|
273
273
|
}
|
|
274
274
|
case "fixed": {
|
|
@@ -277,7 +277,7 @@ function oe(t, n, r, i) {
|
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
|
-
var
|
|
280
|
+
var Re = { exports: {} }, T = {};
|
|
281
281
|
/**
|
|
282
282
|
* @license React
|
|
283
283
|
* react.production.js
|
|
@@ -287,15 +287,15 @@ var Ae = { exports: {} }, E = {};
|
|
|
287
287
|
* This source code is licensed under the MIT license found in the
|
|
288
288
|
* LICENSE file in the root directory of this source tree.
|
|
289
289
|
*/
|
|
290
|
-
var
|
|
291
|
-
function
|
|
292
|
-
if (
|
|
293
|
-
|
|
294
|
-
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"),
|
|
295
|
-
function
|
|
296
|
-
return o === null || typeof o != "object" ? null : (o =
|
|
290
|
+
var st;
|
|
291
|
+
function Nt() {
|
|
292
|
+
if (st) return T;
|
|
293
|
+
st = 1;
|
|
294
|
+
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), u = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), a = Symbol.for("react.consumer"), p = Symbol.for("react.context"), y = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), R = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), $ = Symbol.for("react.activity"), w = Symbol.for("react.view_transition"), N = Symbol.iterator;
|
|
295
|
+
function U(o) {
|
|
296
|
+
return o === null || typeof o != "object" ? null : (o = N && o[N] || o["@@iterator"], typeof o == "function" ? o : null);
|
|
297
297
|
}
|
|
298
|
-
var
|
|
298
|
+
var Y = {
|
|
299
299
|
isMounted: function() {
|
|
300
300
|
return !1;
|
|
301
301
|
},
|
|
@@ -305,70 +305,70 @@ function Ct() {
|
|
|
305
305
|
},
|
|
306
306
|
enqueueSetState: function() {
|
|
307
307
|
}
|
|
308
|
-
},
|
|
309
|
-
function B(o,
|
|
310
|
-
this.props = o, this.context =
|
|
308
|
+
}, D = Object.assign, Z = {};
|
|
309
|
+
function B(o, c, v) {
|
|
310
|
+
this.props = o, this.context = c, this.refs = Z, this.updater = v || Y;
|
|
311
311
|
}
|
|
312
|
-
B.prototype.isReactComponent = {}, B.prototype.setState = function(o,
|
|
312
|
+
B.prototype.isReactComponent = {}, B.prototype.setState = function(o, c) {
|
|
313
313
|
if (typeof o != "object" && typeof o != "function" && o != null)
|
|
314
314
|
throw Error(
|
|
315
315
|
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
316
316
|
);
|
|
317
|
-
this.updater.enqueueSetState(this, o,
|
|
317
|
+
this.updater.enqueueSetState(this, o, c, "setState");
|
|
318
318
|
}, B.prototype.forceUpdate = function(o) {
|
|
319
319
|
this.updater.enqueueForceUpdate(this, o, "forceUpdate");
|
|
320
320
|
};
|
|
321
|
-
function
|
|
321
|
+
function ge() {
|
|
322
322
|
}
|
|
323
|
-
|
|
324
|
-
function
|
|
325
|
-
this.props = o, this.context =
|
|
323
|
+
ge.prototype = B.prototype;
|
|
324
|
+
function J(o, c, v) {
|
|
325
|
+
this.props = o, this.context = c, this.refs = Z, this.updater = v || Y;
|
|
326
326
|
}
|
|
327
|
-
var
|
|
328
|
-
|
|
329
|
-
var
|
|
330
|
-
function
|
|
327
|
+
var W = J.prototype = new ge();
|
|
328
|
+
W.constructor = J, D(W, B.prototype), W.isPureReactComponent = !0;
|
|
329
|
+
var ve = Array.isArray;
|
|
330
|
+
function Q() {
|
|
331
331
|
}
|
|
332
|
-
var
|
|
333
|
-
function
|
|
334
|
-
var
|
|
332
|
+
var C = { H: null, A: null, T: null, S: null }, x = Object.prototype.hasOwnProperty;
|
|
333
|
+
function F(o, c, v) {
|
|
334
|
+
var _ = v.ref;
|
|
335
335
|
return {
|
|
336
336
|
$$typeof: t,
|
|
337
337
|
type: o,
|
|
338
|
-
key:
|
|
339
|
-
ref:
|
|
340
|
-
props:
|
|
338
|
+
key: c,
|
|
339
|
+
ref: _ !== void 0 ? _ : null,
|
|
340
|
+
props: v
|
|
341
341
|
};
|
|
342
342
|
}
|
|
343
|
-
function
|
|
344
|
-
return
|
|
343
|
+
function Oe(o, c) {
|
|
344
|
+
return F(o.type, c, o.props);
|
|
345
345
|
}
|
|
346
|
-
function
|
|
346
|
+
function M(o) {
|
|
347
347
|
return typeof o == "object" && o !== null && o.$$typeof === t;
|
|
348
348
|
}
|
|
349
|
-
function
|
|
350
|
-
var
|
|
351
|
-
return "$" + o.replace(/[=:]/g, function(
|
|
352
|
-
return
|
|
349
|
+
function _e(o) {
|
|
350
|
+
var c = { "=": "=0", ":": "=2" };
|
|
351
|
+
return "$" + o.replace(/[=:]/g, function(v) {
|
|
352
|
+
return c[v];
|
|
353
353
|
});
|
|
354
354
|
}
|
|
355
|
-
var
|
|
356
|
-
function
|
|
357
|
-
return typeof o == "object" && o !== null && o.key != null ?
|
|
355
|
+
var ue = /\/+/g;
|
|
356
|
+
function ee(o, c) {
|
|
357
|
+
return typeof o == "object" && o !== null && o.key != null ? _e("" + o.key) : c.toString(36);
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function te(o) {
|
|
360
360
|
switch (o.status) {
|
|
361
361
|
case "fulfilled":
|
|
362
362
|
return o.value;
|
|
363
363
|
case "rejected":
|
|
364
364
|
throw o.reason;
|
|
365
365
|
default:
|
|
366
|
-
switch (typeof o.status == "string" ? o.then(
|
|
367
|
-
function(
|
|
368
|
-
o.status === "pending" && (o.status = "fulfilled", o.value =
|
|
366
|
+
switch (typeof o.status == "string" ? o.then(Q, Q) : (o.status = "pending", o.then(
|
|
367
|
+
function(c) {
|
|
368
|
+
o.status === "pending" && (o.status = "fulfilled", o.value = c);
|
|
369
369
|
},
|
|
370
|
-
function(
|
|
371
|
-
o.status === "pending" && (o.status = "rejected", o.reason =
|
|
370
|
+
function(c) {
|
|
371
|
+
o.status === "pending" && (o.status = "rejected", o.reason = c);
|
|
372
372
|
}
|
|
373
373
|
)), o.status) {
|
|
374
374
|
case "fulfilled":
|
|
@@ -379,176 +379,196 @@ function Ct() {
|
|
|
379
379
|
}
|
|
380
380
|
throw o;
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function q(o, c, v, _, S) {
|
|
383
383
|
var k = typeof o;
|
|
384
384
|
(k === "undefined" || k === "boolean") && (o = null);
|
|
385
|
-
var
|
|
386
|
-
if (o === null)
|
|
385
|
+
var P = !1;
|
|
386
|
+
if (o === null) P = !0;
|
|
387
387
|
else
|
|
388
388
|
switch (k) {
|
|
389
389
|
case "bigint":
|
|
390
390
|
case "string":
|
|
391
391
|
case "number":
|
|
392
|
-
|
|
392
|
+
P = !0;
|
|
393
393
|
break;
|
|
394
394
|
case "object":
|
|
395
395
|
switch (o.$$typeof) {
|
|
396
396
|
case t:
|
|
397
397
|
case n:
|
|
398
|
-
|
|
398
|
+
P = !0;
|
|
399
399
|
break;
|
|
400
|
-
case
|
|
401
|
-
return
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
_,
|
|
400
|
+
case E:
|
|
401
|
+
return P = o._init, q(
|
|
402
|
+
P(o._payload),
|
|
403
|
+
c,
|
|
405
404
|
v,
|
|
406
|
-
|
|
405
|
+
_,
|
|
406
|
+
S
|
|
407
407
|
);
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
|
-
if (
|
|
411
|
-
return
|
|
412
|
-
return
|
|
413
|
-
})) :
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
410
|
+
if (P)
|
|
411
|
+
return S = S(o), P = _ === "" ? "." + ee(o, 0) : _, ve(S) ? (v = "", P != null && (v = P.replace(ue, "$&/") + "/"), q(S, c, v, "", function(Ee) {
|
|
412
|
+
return Ee;
|
|
413
|
+
})) : S != null && (M(S) && (S = Oe(
|
|
414
|
+
S,
|
|
415
|
+
v + (S.key == null || o && o.key === S.key ? "" : ("" + S.key).replace(
|
|
416
|
+
ue,
|
|
417
417
|
"$&/"
|
|
418
|
-
) + "/") +
|
|
419
|
-
)),
|
|
420
|
-
|
|
421
|
-
var H =
|
|
422
|
-
if (
|
|
418
|
+
) + "/") + P
|
|
419
|
+
)), c.push(S)), 1;
|
|
420
|
+
P = 0;
|
|
421
|
+
var H = _ === "" ? "." : _ + ":";
|
|
422
|
+
if (ve(o))
|
|
423
423
|
for (var I = 0; I < o.length; I++)
|
|
424
|
-
|
|
425
|
-
v,
|
|
426
|
-
f,
|
|
424
|
+
_ = o[I], k = H + ee(_, I), P += q(
|
|
427
425
|
_,
|
|
426
|
+
c,
|
|
427
|
+
v,
|
|
428
428
|
k,
|
|
429
|
-
|
|
429
|
+
S
|
|
430
430
|
);
|
|
431
|
-
else if (I =
|
|
432
|
-
for (o = I.call(o), I = 0; !(
|
|
433
|
-
|
|
434
|
-
v,
|
|
435
|
-
f,
|
|
431
|
+
else if (I = U(o), typeof I == "function")
|
|
432
|
+
for (o = I.call(o), I = 0; !(_ = o.next()).done; )
|
|
433
|
+
_ = _.value, k = H + ee(_, I++), P += q(
|
|
436
434
|
_,
|
|
435
|
+
c,
|
|
436
|
+
v,
|
|
437
437
|
k,
|
|
438
|
-
|
|
438
|
+
S
|
|
439
439
|
);
|
|
440
440
|
else if (k === "object") {
|
|
441
441
|
if (typeof o.then == "function")
|
|
442
|
-
return
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
_,
|
|
442
|
+
return q(
|
|
443
|
+
te(o),
|
|
444
|
+
c,
|
|
446
445
|
v,
|
|
447
|
-
|
|
446
|
+
_,
|
|
447
|
+
S
|
|
448
448
|
);
|
|
449
|
-
throw
|
|
450
|
-
"Objects are not valid as a React child (found: " + (
|
|
449
|
+
throw c = String(o), Error(
|
|
450
|
+
"Objects are not valid as a React child (found: " + (c === "[object Object]" ? "object with keys {" + Object.keys(o).join(", ") + "}" : c) + "). If you meant to render a collection of children, use an array instead."
|
|
451
451
|
);
|
|
452
452
|
}
|
|
453
|
-
return
|
|
453
|
+
return P;
|
|
454
454
|
}
|
|
455
|
-
function
|
|
455
|
+
function G(o, c, v) {
|
|
456
456
|
if (o == null) return o;
|
|
457
|
-
var
|
|
458
|
-
return
|
|
459
|
-
return
|
|
460
|
-
}),
|
|
457
|
+
var _ = [], S = 0;
|
|
458
|
+
return q(o, _, "", "", function(k) {
|
|
459
|
+
return c.call(v, k, S++);
|
|
460
|
+
}), _;
|
|
461
461
|
}
|
|
462
|
-
function
|
|
462
|
+
function ae(o) {
|
|
463
463
|
if (o._status === -1) {
|
|
464
|
-
var
|
|
465
|
-
|
|
464
|
+
var c = o._result, v = c();
|
|
465
|
+
v.then(
|
|
466
466
|
function(_) {
|
|
467
|
-
(o._status === 0 || o._status === -1) && (o._status = 1, o._result = _);
|
|
467
|
+
(o._status === 0 || o._status === -1) && (o._status = 1, o._result = _, v.status === void 0 && (v.status = "fulfilled", v.value = _));
|
|
468
468
|
},
|
|
469
469
|
function(_) {
|
|
470
|
-
(o._status === 0 || o._status === -1) && (o._status = 2, o._result = _);
|
|
470
|
+
(o._status === 0 || o._status === -1) && (o._status = 2, o._result = _, v.status === void 0 && (v.status = "rejected", v.reason = _));
|
|
471
471
|
}
|
|
472
|
-
), o._status === -1 && (o._status = 0, o._result =
|
|
472
|
+
), o._status === -1 && (o._status = 0, o._result = v);
|
|
473
473
|
}
|
|
474
474
|
if (o._status === 1) return o._result.default;
|
|
475
475
|
throw o._result;
|
|
476
476
|
}
|
|
477
477
|
var ne = typeof reportError == "function" ? reportError : function(o) {
|
|
478
478
|
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
479
|
-
var
|
|
479
|
+
var c = new window.ErrorEvent("error", {
|
|
480
480
|
bubbles: !0,
|
|
481
481
|
cancelable: !0,
|
|
482
482
|
message: typeof o == "object" && o !== null && typeof o.message == "string" ? String(o.message) : String(o),
|
|
483
483
|
error: o
|
|
484
484
|
});
|
|
485
|
-
if (!window.dispatchEvent(
|
|
485
|
+
if (!window.dispatchEvent(c)) return;
|
|
486
486
|
} else if (typeof process == "object" && typeof process.emit == "function") {
|
|
487
487
|
process.emit("uncaughtException", o);
|
|
488
488
|
return;
|
|
489
489
|
}
|
|
490
490
|
console.error(o);
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
491
|
+
};
|
|
492
|
+
function re(o) {
|
|
493
|
+
var c = C.T, v = {};
|
|
494
|
+
v.types = c !== null ? c.types : null, C.T = v;
|
|
495
|
+
try {
|
|
496
|
+
var _ = o(), S = C.S;
|
|
497
|
+
S !== null && S(v, _), typeof _ == "object" && _ !== null && typeof _.then == "function" && _.then(Q, ne);
|
|
498
|
+
} catch (k) {
|
|
499
|
+
ne(k);
|
|
500
|
+
} finally {
|
|
501
|
+
c !== null && v.types !== null && (c.types = v.types), C.T = c;
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
function ce(o) {
|
|
505
|
+
var c = C.T;
|
|
506
|
+
if (c !== null) {
|
|
507
|
+
var v = c.types;
|
|
508
|
+
v === null ? c.types = [o] : v.indexOf(o) === -1 && v.push(o);
|
|
509
|
+
} else re(ce.bind(null, o));
|
|
510
|
+
}
|
|
511
|
+
var fe = {
|
|
512
|
+
map: G,
|
|
513
|
+
forEach: function(o, c, v) {
|
|
514
|
+
G(
|
|
495
515
|
o,
|
|
496
516
|
function() {
|
|
497
|
-
|
|
517
|
+
c.apply(this, arguments);
|
|
498
518
|
},
|
|
499
|
-
|
|
519
|
+
v
|
|
500
520
|
);
|
|
501
521
|
},
|
|
502
522
|
count: function(o) {
|
|
503
|
-
var
|
|
504
|
-
return
|
|
505
|
-
|
|
506
|
-
}),
|
|
523
|
+
var c = 0;
|
|
524
|
+
return G(o, function() {
|
|
525
|
+
c++;
|
|
526
|
+
}), c;
|
|
507
527
|
},
|
|
508
528
|
toArray: function(o) {
|
|
509
|
-
return
|
|
510
|
-
return
|
|
529
|
+
return G(o, function(c) {
|
|
530
|
+
return c;
|
|
511
531
|
}) || [];
|
|
512
532
|
},
|
|
513
533
|
only: function(o) {
|
|
514
|
-
if (!
|
|
534
|
+
if (!M(o))
|
|
515
535
|
throw Error(
|
|
516
536
|
"React.Children.only expected to receive a single React element child."
|
|
517
537
|
);
|
|
518
538
|
return o;
|
|
519
539
|
}
|
|
520
540
|
};
|
|
521
|
-
return
|
|
541
|
+
return T.Activity = $, T.Children = fe, T.Component = B, T.Fragment = r, T.Profiler = i, T.PureComponent = J, T.StrictMode = u, T.Suspense = h, T.ViewTransition = w, T.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = C, T.__COMPILER_RUNTIME = {
|
|
522
542
|
__proto__: null,
|
|
523
543
|
c: function(o) {
|
|
524
|
-
return
|
|
544
|
+
return C.H.useMemoCache(o);
|
|
525
545
|
}
|
|
526
|
-
},
|
|
546
|
+
}, T.addTransitionType = ce, T.cache = function(o) {
|
|
527
547
|
return function() {
|
|
528
548
|
return o.apply(null, arguments);
|
|
529
549
|
};
|
|
530
|
-
},
|
|
550
|
+
}, T.cacheSignal = function() {
|
|
531
551
|
return null;
|
|
532
|
-
},
|
|
552
|
+
}, T.cloneElement = function(o, c, v) {
|
|
533
553
|
if (o == null)
|
|
534
554
|
throw Error(
|
|
535
555
|
"The argument must be a React element, but you passed " + o + "."
|
|
536
556
|
);
|
|
537
|
-
var
|
|
538
|
-
if (
|
|
539
|
-
for (k in
|
|
540
|
-
!
|
|
557
|
+
var _ = D({}, o.props), S = o.key;
|
|
558
|
+
if (c != null)
|
|
559
|
+
for (k in c.key !== void 0 && (S = "" + c.key), c)
|
|
560
|
+
!x.call(c, k) || k === "key" || k === "__self" || k === "__source" || k === "ref" && c.ref === void 0 || (_[k] = c[k]);
|
|
541
561
|
var k = arguments.length - 2;
|
|
542
|
-
if (k === 1)
|
|
562
|
+
if (k === 1) _.children = v;
|
|
543
563
|
else if (1 < k) {
|
|
544
|
-
for (var
|
|
545
|
-
|
|
546
|
-
|
|
564
|
+
for (var P = Array(k), H = 0; H < k; H++)
|
|
565
|
+
P[H] = arguments[H + 2];
|
|
566
|
+
_.children = P;
|
|
547
567
|
}
|
|
548
|
-
return
|
|
549
|
-
},
|
|
568
|
+
return F(o.type, S, _);
|
|
569
|
+
}, T.createContext = function(o) {
|
|
550
570
|
return o = {
|
|
551
|
-
$$typeof:
|
|
571
|
+
$$typeof: p,
|
|
552
572
|
_currentValue: o,
|
|
553
573
|
_currentValue2: o,
|
|
554
574
|
_threadCount: 0,
|
|
@@ -558,93 +578,82 @@ function Ct() {
|
|
|
558
578
|
$$typeof: a,
|
|
559
579
|
_context: o
|
|
560
580
|
}, o;
|
|
561
|
-
},
|
|
562
|
-
var
|
|
563
|
-
if (
|
|
564
|
-
for (
|
|
565
|
-
|
|
566
|
-
var
|
|
567
|
-
if (
|
|
568
|
-
else if (1 <
|
|
569
|
-
for (var H = Array(
|
|
581
|
+
}, T.createElement = function(o, c, v) {
|
|
582
|
+
var _, S = {}, k = null;
|
|
583
|
+
if (c != null)
|
|
584
|
+
for (_ in c.key !== void 0 && (k = "" + c.key), c)
|
|
585
|
+
x.call(c, _) && _ !== "key" && _ !== "__self" && _ !== "__source" && (S[_] = c[_]);
|
|
586
|
+
var P = arguments.length - 2;
|
|
587
|
+
if (P === 1) S.children = v;
|
|
588
|
+
else if (1 < P) {
|
|
589
|
+
for (var H = Array(P), I = 0; I < P; I++)
|
|
570
590
|
H[I] = arguments[I + 2];
|
|
571
|
-
|
|
591
|
+
S.children = H;
|
|
572
592
|
}
|
|
573
593
|
if (o && o.defaultProps)
|
|
574
|
-
for (
|
|
575
|
-
|
|
576
|
-
return
|
|
577
|
-
},
|
|
594
|
+
for (_ in P = o.defaultProps, P)
|
|
595
|
+
S[_] === void 0 && (S[_] = P[_]);
|
|
596
|
+
return F(o, k, S);
|
|
597
|
+
}, T.createRef = function() {
|
|
578
598
|
return { current: null };
|
|
579
|
-
},
|
|
580
|
-
return { $$typeof:
|
|
581
|
-
},
|
|
599
|
+
}, T.forwardRef = function(o) {
|
|
600
|
+
return { $$typeof: y, render: o };
|
|
601
|
+
}, T.isValidElement = M, T.lazy = function(o) {
|
|
582
602
|
return {
|
|
583
|
-
$$typeof:
|
|
603
|
+
$$typeof: E,
|
|
584
604
|
_payload: { _status: -1, _result: o },
|
|
585
|
-
_init:
|
|
605
|
+
_init: ae
|
|
586
606
|
};
|
|
587
|
-
},
|
|
607
|
+
}, T.memo = function(o, c) {
|
|
588
608
|
return {
|
|
589
|
-
$$typeof:
|
|
609
|
+
$$typeof: R,
|
|
590
610
|
type: o,
|
|
591
|
-
compare:
|
|
611
|
+
compare: c === void 0 ? null : c
|
|
592
612
|
};
|
|
593
|
-
},
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
},
|
|
605
|
-
return
|
|
606
|
-
},
|
|
607
|
-
return
|
|
608
|
-
},
|
|
609
|
-
return
|
|
610
|
-
},
|
|
611
|
-
return
|
|
612
|
-
},
|
|
613
|
-
return
|
|
614
|
-
},
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
return j.H.useMemo(o, f);
|
|
631
|
-
}, E.useOptimistic = function(o, f) {
|
|
632
|
-
return j.H.useOptimistic(o, f);
|
|
633
|
-
}, E.useReducer = function(o, f, _) {
|
|
634
|
-
return j.H.useReducer(o, f, _);
|
|
635
|
-
}, E.useRef = function(o) {
|
|
636
|
-
return j.H.useRef(o);
|
|
637
|
-
}, E.useState = function(o) {
|
|
638
|
-
return j.H.useState(o);
|
|
639
|
-
}, E.useSyncExternalStore = function(o, f, _) {
|
|
640
|
-
return j.H.useSyncExternalStore(
|
|
613
|
+
}, T.startTransition = re, T.unstable_useCacheRefresh = function() {
|
|
614
|
+
return C.H.useCacheRefresh();
|
|
615
|
+
}, T.use = function(o) {
|
|
616
|
+
return C.H.use(o);
|
|
617
|
+
}, T.useActionState = function(o, c, v) {
|
|
618
|
+
return C.H.useActionState(o, c, v);
|
|
619
|
+
}, T.useCallback = function(o, c) {
|
|
620
|
+
return C.H.useCallback(o, c);
|
|
621
|
+
}, T.useContext = function(o) {
|
|
622
|
+
return C.H.useContext(o);
|
|
623
|
+
}, T.useDebugValue = function() {
|
|
624
|
+
}, T.useDeferredValue = function(o, c) {
|
|
625
|
+
return C.H.useDeferredValue(o, c);
|
|
626
|
+
}, T.useEffect = function(o, c) {
|
|
627
|
+
return C.H.useEffect(o, c);
|
|
628
|
+
}, T.useEffectEvent = function(o) {
|
|
629
|
+
return C.H.useEffectEvent(o);
|
|
630
|
+
}, T.useId = function() {
|
|
631
|
+
return C.H.useId();
|
|
632
|
+
}, T.useImperativeHandle = function(o, c, v) {
|
|
633
|
+
return C.H.useImperativeHandle(o, c, v);
|
|
634
|
+
}, T.useInsertionEffect = function(o, c) {
|
|
635
|
+
return C.H.useInsertionEffect(o, c);
|
|
636
|
+
}, T.useLayoutEffect = function(o, c) {
|
|
637
|
+
return C.H.useLayoutEffect(o, c);
|
|
638
|
+
}, T.useMemo = function(o, c) {
|
|
639
|
+
return C.H.useMemo(o, c);
|
|
640
|
+
}, T.useOptimistic = function(o, c) {
|
|
641
|
+
return C.H.useOptimistic(o, c);
|
|
642
|
+
}, T.useReducer = function(o, c, v) {
|
|
643
|
+
return C.H.useReducer(o, c, v);
|
|
644
|
+
}, T.useRef = function(o) {
|
|
645
|
+
return C.H.useRef(o);
|
|
646
|
+
}, T.useState = function(o) {
|
|
647
|
+
return C.H.useState(o);
|
|
648
|
+
}, T.useSyncExternalStore = function(o, c, v) {
|
|
649
|
+
return C.H.useSyncExternalStore(
|
|
641
650
|
o,
|
|
642
|
-
|
|
643
|
-
|
|
651
|
+
c,
|
|
652
|
+
v
|
|
644
653
|
);
|
|
645
|
-
},
|
|
646
|
-
return
|
|
647
|
-
},
|
|
654
|
+
}, T.useTransition = function() {
|
|
655
|
+
return C.H.useTransition();
|
|
656
|
+
}, T.version = "19.3.0", T;
|
|
648
657
|
}
|
|
649
658
|
var de = { exports: {} };
|
|
650
659
|
/**
|
|
@@ -657,9 +666,9 @@ var de = { exports: {} };
|
|
|
657
666
|
* LICENSE file in the root directory of this source tree.
|
|
658
667
|
*/
|
|
659
668
|
de.exports;
|
|
660
|
-
var
|
|
661
|
-
function
|
|
662
|
-
return
|
|
669
|
+
var it;
|
|
670
|
+
function Lt() {
|
|
671
|
+
return it || (it = 1, (function(t, n) {
|
|
663
672
|
process.env.NODE_ENV !== "production" && (function() {
|
|
664
673
|
function r(e, s) {
|
|
665
674
|
Object.defineProperty(a.prototype, e, {
|
|
@@ -672,97 +681,99 @@ function Mt() {
|
|
|
672
681
|
}
|
|
673
682
|
});
|
|
674
683
|
}
|
|
675
|
-
function
|
|
676
|
-
return e === null || typeof e != "object" ? null : (e =
|
|
684
|
+
function u(e) {
|
|
685
|
+
return e === null || typeof e != "object" ? null : (e = ze && e[ze] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
677
686
|
}
|
|
678
|
-
function
|
|
687
|
+
function i(e, s) {
|
|
679
688
|
e = (e = e.constructor) && (e.displayName || e.name) || "ReactClass";
|
|
680
|
-
var
|
|
681
|
-
|
|
689
|
+
var f = e + "." + s;
|
|
690
|
+
De[f] || (console.error(
|
|
682
691
|
"Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",
|
|
683
692
|
s,
|
|
684
693
|
e
|
|
685
|
-
),
|
|
694
|
+
), De[f] = !0);
|
|
686
695
|
}
|
|
687
|
-
function a(e, s,
|
|
688
|
-
this.props = e, this.context = s, this.refs =
|
|
696
|
+
function a(e, s, f) {
|
|
697
|
+
this.props = e, this.context = s, this.refs = je, this.updater = f || Be;
|
|
689
698
|
}
|
|
690
|
-
function
|
|
699
|
+
function p() {
|
|
691
700
|
}
|
|
692
|
-
function
|
|
693
|
-
this.props = e, this.context = s, this.refs =
|
|
701
|
+
function y(e, s, f) {
|
|
702
|
+
this.props = e, this.context = s, this.refs = je, this.updater = f || Be;
|
|
694
703
|
}
|
|
695
704
|
function h() {
|
|
696
705
|
}
|
|
697
|
-
function
|
|
706
|
+
function R(e) {
|
|
698
707
|
return "" + e;
|
|
699
708
|
}
|
|
700
|
-
function
|
|
709
|
+
function E(e) {
|
|
701
710
|
try {
|
|
702
|
-
|
|
711
|
+
R(e);
|
|
703
712
|
var s = !1;
|
|
704
713
|
} catch {
|
|
705
714
|
s = !0;
|
|
706
715
|
}
|
|
707
716
|
if (s) {
|
|
708
717
|
s = console;
|
|
709
|
-
var
|
|
710
|
-
return
|
|
718
|
+
var f = s.error, l = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
719
|
+
return f.call(
|
|
711
720
|
s,
|
|
712
721
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
713
|
-
|
|
714
|
-
),
|
|
722
|
+
l
|
|
723
|
+
), R(e);
|
|
715
724
|
}
|
|
716
725
|
}
|
|
717
|
-
function
|
|
726
|
+
function $(e) {
|
|
718
727
|
if (e == null) return null;
|
|
719
728
|
if (typeof e == "function")
|
|
720
|
-
return e.$$typeof ===
|
|
729
|
+
return e.$$typeof === ht ? null : e.displayName || e.name || null;
|
|
721
730
|
if (typeof e == "string") return e;
|
|
722
731
|
switch (e) {
|
|
723
|
-
case
|
|
732
|
+
case fe:
|
|
724
733
|
return "Fragment";
|
|
725
|
-
case
|
|
734
|
+
case c:
|
|
726
735
|
return "Profiler";
|
|
727
|
-
case
|
|
736
|
+
case o:
|
|
728
737
|
return "StrictMode";
|
|
729
|
-
case
|
|
738
|
+
case k:
|
|
730
739
|
return "Suspense";
|
|
731
|
-
case
|
|
740
|
+
case P:
|
|
732
741
|
return "SuspenseList";
|
|
733
|
-
case
|
|
742
|
+
case Ee:
|
|
734
743
|
return "Activity";
|
|
744
|
+
case qe:
|
|
745
|
+
return "ViewTransition";
|
|
735
746
|
}
|
|
736
747
|
if (typeof e == "object")
|
|
737
748
|
switch (typeof e.tag == "number" && console.error(
|
|
738
749
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
739
750
|
), e.$$typeof) {
|
|
740
|
-
case
|
|
751
|
+
case ce:
|
|
741
752
|
return "Portal";
|
|
742
|
-
case
|
|
753
|
+
case _:
|
|
743
754
|
return e.displayName || "Context";
|
|
744
755
|
case v:
|
|
745
756
|
return (e._context.displayName || "Context") + ".Consumer";
|
|
746
|
-
case
|
|
757
|
+
case S:
|
|
747
758
|
var s = e.render;
|
|
748
759
|
return e = e.displayName, e || (e = s.displayName || s.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
760
|
+
case H:
|
|
761
|
+
return s = e.displayName || null, s !== null ? s : $(e.type) || "Memo";
|
|
749
762
|
case I:
|
|
750
|
-
return s = e.displayName || null, s !== null ? s : S(e.type) || "Memo";
|
|
751
|
-
case X:
|
|
752
763
|
s = e._payload, e = e._init;
|
|
753
764
|
try {
|
|
754
|
-
return
|
|
765
|
+
return $(e(s));
|
|
755
766
|
} catch {
|
|
756
767
|
}
|
|
757
768
|
}
|
|
758
769
|
return null;
|
|
759
770
|
}
|
|
760
771
|
function w(e) {
|
|
761
|
-
if (e ===
|
|
762
|
-
if (typeof e == "object" && e !== null && e.$$typeof ===
|
|
772
|
+
if (e === fe) return "<>";
|
|
773
|
+
if (typeof e == "object" && e !== null && e.$$typeof === I)
|
|
763
774
|
return "<...>";
|
|
764
775
|
try {
|
|
765
|
-
var s =
|
|
776
|
+
var s = $(e);
|
|
766
777
|
return s ? "<" + s + ">" : "<...>";
|
|
767
778
|
} catch {
|
|
768
779
|
return "<...>";
|
|
@@ -776,41 +787,41 @@ function Mt() {
|
|
|
776
787
|
return Error("react-stack-top-frame");
|
|
777
788
|
}
|
|
778
789
|
function Y(e) {
|
|
779
|
-
if (
|
|
790
|
+
if (Te.call(e, "key")) {
|
|
780
791
|
var s = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
781
792
|
if (s && s.isReactWarning) return !1;
|
|
782
793
|
}
|
|
783
794
|
return e.key !== void 0;
|
|
784
795
|
}
|
|
785
|
-
function
|
|
786
|
-
function
|
|
787
|
-
|
|
796
|
+
function D(e, s) {
|
|
797
|
+
function f() {
|
|
798
|
+
Fe || (Fe = !0, console.error(
|
|
788
799
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
789
800
|
s
|
|
790
801
|
));
|
|
791
802
|
}
|
|
792
|
-
|
|
793
|
-
get:
|
|
803
|
+
f.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
804
|
+
get: f,
|
|
794
805
|
configurable: !0
|
|
795
806
|
});
|
|
796
807
|
}
|
|
797
|
-
function
|
|
798
|
-
var e =
|
|
799
|
-
return
|
|
808
|
+
function Z() {
|
|
809
|
+
var e = $(this.type);
|
|
810
|
+
return Qe[e] || (Qe[e] = !0, console.error(
|
|
800
811
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
801
812
|
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
802
813
|
}
|
|
803
|
-
function
|
|
804
|
-
var
|
|
814
|
+
function B(e, s, f, l, m, j) {
|
|
815
|
+
var g = f.ref;
|
|
805
816
|
return e = {
|
|
806
|
-
$$typeof:
|
|
817
|
+
$$typeof: re,
|
|
807
818
|
type: e,
|
|
808
819
|
key: s,
|
|
809
|
-
props:
|
|
810
|
-
_owner:
|
|
811
|
-
}, (
|
|
820
|
+
props: f,
|
|
821
|
+
_owner: l
|
|
822
|
+
}, (g !== void 0 ? g : null) !== null ? Object.defineProperty(e, "ref", {
|
|
812
823
|
enumerable: !1,
|
|
813
|
-
get:
|
|
824
|
+
get: Z
|
|
814
825
|
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
815
826
|
configurable: !1,
|
|
816
827
|
enumerable: !1,
|
|
@@ -825,16 +836,16 @@ function Mt() {
|
|
|
825
836
|
configurable: !1,
|
|
826
837
|
enumerable: !1,
|
|
827
838
|
writable: !0,
|
|
828
|
-
value:
|
|
839
|
+
value: m
|
|
829
840
|
}), Object.defineProperty(e, "_debugTask", {
|
|
830
841
|
configurable: !1,
|
|
831
842
|
enumerable: !1,
|
|
832
843
|
writable: !0,
|
|
833
|
-
value:
|
|
844
|
+
value: j
|
|
834
845
|
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
835
846
|
}
|
|
836
|
-
function
|
|
837
|
-
return s =
|
|
847
|
+
function ge(e, s) {
|
|
848
|
+
return s = B(
|
|
838
849
|
e.type,
|
|
839
850
|
s,
|
|
840
851
|
e.props,
|
|
@@ -843,22 +854,22 @@ function Mt() {
|
|
|
843
854
|
e._debugTask
|
|
844
855
|
), e._store && (s._store.validated = e._store.validated), s;
|
|
845
856
|
}
|
|
846
|
-
function
|
|
847
|
-
|
|
857
|
+
function J(e) {
|
|
858
|
+
W(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === I && (e._payload.status === "fulfilled" ? W(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
848
859
|
}
|
|
849
|
-
function
|
|
850
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
860
|
+
function W(e) {
|
|
861
|
+
return typeof e == "object" && e !== null && e.$$typeof === re;
|
|
851
862
|
}
|
|
852
|
-
function
|
|
863
|
+
function ve(e) {
|
|
853
864
|
var s = { "=": "=0", ":": "=2" };
|
|
854
|
-
return "$" + e.replace(/[=:]/g, function(
|
|
855
|
-
return s[
|
|
865
|
+
return "$" + e.replace(/[=:]/g, function(f) {
|
|
866
|
+
return s[f];
|
|
856
867
|
});
|
|
857
868
|
}
|
|
858
|
-
function
|
|
859
|
-
return typeof e == "object" && e !== null && e.key != null ? (
|
|
869
|
+
function Q(e, s) {
|
|
870
|
+
return typeof e == "object" && e !== null && e.key != null ? (E(e.key), ve("" + e.key)) : s.toString(36);
|
|
860
871
|
}
|
|
861
|
-
function
|
|
872
|
+
function C(e) {
|
|
862
873
|
switch (e.status) {
|
|
863
874
|
case "fulfilled":
|
|
864
875
|
return e.value;
|
|
@@ -881,135 +892,141 @@ function Mt() {
|
|
|
881
892
|
}
|
|
882
893
|
throw e;
|
|
883
894
|
}
|
|
884
|
-
function
|
|
885
|
-
var
|
|
886
|
-
(
|
|
887
|
-
var
|
|
888
|
-
if (e === null)
|
|
895
|
+
function x(e, s, f, l, m) {
|
|
896
|
+
var j = typeof e;
|
|
897
|
+
(j === "undefined" || j === "boolean") && (e = null);
|
|
898
|
+
var g = !1;
|
|
899
|
+
if (e === null) g = !0;
|
|
889
900
|
else
|
|
890
|
-
switch (
|
|
901
|
+
switch (j) {
|
|
891
902
|
case "bigint":
|
|
892
903
|
case "string":
|
|
893
904
|
case "number":
|
|
894
|
-
|
|
905
|
+
g = !0;
|
|
895
906
|
break;
|
|
896
907
|
case "object":
|
|
897
908
|
switch (e.$$typeof) {
|
|
898
|
-
case
|
|
899
|
-
case
|
|
900
|
-
|
|
909
|
+
case re:
|
|
910
|
+
case ce:
|
|
911
|
+
g = !0;
|
|
901
912
|
break;
|
|
902
|
-
case
|
|
903
|
-
return
|
|
904
|
-
|
|
913
|
+
case I:
|
|
914
|
+
return g = e._init, x(
|
|
915
|
+
g(e._payload),
|
|
905
916
|
s,
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
917
|
+
f,
|
|
918
|
+
l,
|
|
919
|
+
m
|
|
909
920
|
);
|
|
910
921
|
}
|
|
911
922
|
}
|
|
912
|
-
if (
|
|
913
|
-
|
|
914
|
-
var
|
|
915
|
-
return
|
|
923
|
+
if (g) {
|
|
924
|
+
g = e, m = m(g);
|
|
925
|
+
var A = l === "" ? "." + Q(g, 0) : l;
|
|
926
|
+
return xe(m) ? (f = "", A != null && (f = A.replace(Ve, "$&/") + "/"), x(m, s, f, "", function(K) {
|
|
916
927
|
return K;
|
|
917
|
-
})) :
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
928
|
+
})) : m != null && (W(m) && (m.key != null && (g && g.key === m.key || E(m.key)), f = ge(
|
|
929
|
+
m,
|
|
930
|
+
f + (m.key == null || g && g.key === m.key ? "" : ("" + m.key).replace(
|
|
931
|
+
Ve,
|
|
921
932
|
"$&/"
|
|
922
|
-
) + "/") +
|
|
923
|
-
),
|
|
933
|
+
) + "/") + A
|
|
934
|
+
), l !== "" && g != null && W(g) && g.key == null && g._store && !g._store.validated && (f._store.validated = 2), m = f), s.push(m)), 1;
|
|
924
935
|
}
|
|
925
|
-
if (
|
|
926
|
-
for (var
|
|
927
|
-
|
|
928
|
-
|
|
936
|
+
if (g = 0, A = l === "" ? "." : l + ":", xe(e))
|
|
937
|
+
for (var O = 0; O < e.length; O++)
|
|
938
|
+
l = e[O], j = A + Q(l, O), g += x(
|
|
939
|
+
l,
|
|
929
940
|
s,
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
941
|
+
f,
|
|
942
|
+
j,
|
|
943
|
+
m
|
|
933
944
|
);
|
|
934
|
-
else if (
|
|
935
|
-
for (
|
|
945
|
+
else if (O = u(e), typeof O == "function")
|
|
946
|
+
for (O === e.entries && (Xe || console.warn(
|
|
936
947
|
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
|
937
|
-
),
|
|
938
|
-
|
|
939
|
-
|
|
948
|
+
), Xe = !0), e = O.call(e), O = 0; !(l = e.next()).done; )
|
|
949
|
+
l = l.value, j = A + Q(l, O++), g += x(
|
|
950
|
+
l,
|
|
940
951
|
s,
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
952
|
+
f,
|
|
953
|
+
j,
|
|
954
|
+
m
|
|
944
955
|
);
|
|
945
|
-
else if (
|
|
956
|
+
else if (j === "object") {
|
|
946
957
|
if (typeof e.then == "function")
|
|
947
|
-
return
|
|
948
|
-
|
|
958
|
+
return x(
|
|
959
|
+
C(e),
|
|
949
960
|
s,
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
961
|
+
f,
|
|
962
|
+
l,
|
|
963
|
+
m
|
|
953
964
|
);
|
|
954
965
|
throw s = String(e), Error(
|
|
955
966
|
"Objects are not valid as a React child (found: " + (s === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : s) + "). If you meant to render a collection of children, use an array instead."
|
|
956
967
|
);
|
|
957
968
|
}
|
|
958
|
-
return
|
|
969
|
+
return g;
|
|
959
970
|
}
|
|
960
|
-
function
|
|
971
|
+
function F(e, s, f) {
|
|
961
972
|
if (e == null) return e;
|
|
962
|
-
var
|
|
963
|
-
return
|
|
964
|
-
return s.call(
|
|
965
|
-
}),
|
|
973
|
+
var l = [], m = 0;
|
|
974
|
+
return x(e, l, "", "", function(j) {
|
|
975
|
+
return s.call(f, j, m++);
|
|
976
|
+
}), l;
|
|
966
977
|
}
|
|
967
|
-
function
|
|
978
|
+
function Oe(e) {
|
|
968
979
|
if (e._status === -1) {
|
|
969
|
-
var s = e._ioInfo;
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
980
|
+
var s = null, f = null, l = e._ioInfo;
|
|
981
|
+
l != null && (l.start = l.end = performance.now(), l.value = new Promise(function(g, A) {
|
|
982
|
+
s = g, f = A;
|
|
983
|
+
})), l = e._result;
|
|
984
|
+
var m = l();
|
|
985
|
+
if (m.then(
|
|
986
|
+
function(g) {
|
|
974
987
|
if (e._status === 0 || e._status === -1) {
|
|
975
|
-
e._status = 1, e._result =
|
|
976
|
-
var
|
|
977
|
-
|
|
988
|
+
e._status = 1, e._result = g;
|
|
989
|
+
var A = e._ioInfo;
|
|
990
|
+
if (A != null) {
|
|
991
|
+
A.end = performance.now();
|
|
992
|
+
var O = g == null ? void 0 : g.default;
|
|
993
|
+
s(O), A.value.status = "fulfilled", A.value.value = O;
|
|
994
|
+
}
|
|
995
|
+
m.status === void 0 && (m.status = "fulfilled", m.value = g);
|
|
978
996
|
}
|
|
979
997
|
},
|
|
980
|
-
function(
|
|
998
|
+
function(g) {
|
|
981
999
|
if (e._status === 0 || e._status === -1) {
|
|
982
|
-
e._status = 2, e._result =
|
|
983
|
-
var
|
|
984
|
-
|
|
1000
|
+
e._status = 2, e._result = g;
|
|
1001
|
+
var A = e._ioInfo;
|
|
1002
|
+
A != null && (A.end = performance.now(), A.value.then(h, h), f(g), A.value.status = "rejected", A.value.reason = g), m.status === void 0 && (m.status = "rejected", m.reason = g);
|
|
985
1003
|
}
|
|
986
1004
|
}
|
|
987
|
-
),
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
typeof p == "string" && (s.name = p);
|
|
1005
|
+
), l = e._ioInfo, l != null) {
|
|
1006
|
+
var j = m.displayName;
|
|
1007
|
+
typeof j == "string" && (l.name = j);
|
|
991
1008
|
}
|
|
992
|
-
e._status === -1 && (e._status = 0, e._result =
|
|
1009
|
+
e._status === -1 && (e._status = 0, e._result = m);
|
|
993
1010
|
}
|
|
994
1011
|
if (e._status === 1)
|
|
995
|
-
return
|
|
1012
|
+
return l = e._result, l === void 0 && console.error(
|
|
996
1013
|
`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
997
1014
|
|
|
998
1015
|
Your code should look like:
|
|
999
1016
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
1000
1017
|
|
|
1001
1018
|
Did you accidentally put curly braces around the import?`,
|
|
1002
|
-
|
|
1003
|
-
), "default" in
|
|
1019
|
+
l
|
|
1020
|
+
), "default" in l || console.error(
|
|
1004
1021
|
`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
1005
1022
|
|
|
1006
1023
|
Your code should look like:
|
|
1007
1024
|
const MyComponent = lazy(() => import('./MyComponent'))`,
|
|
1008
|
-
|
|
1009
|
-
),
|
|
1025
|
+
l
|
|
1026
|
+
), l.default;
|
|
1010
1027
|
throw e._result;
|
|
1011
1028
|
}
|
|
1012
|
-
function
|
|
1029
|
+
function M() {
|
|
1013
1030
|
var e = b.H;
|
|
1014
1031
|
return e === null && console.error(
|
|
1015
1032
|
`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
@@ -1019,94 +1036,120 @@ Your code should look like:
|
|
|
1019
1036
|
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
|
|
1020
1037
|
), e;
|
|
1021
1038
|
}
|
|
1022
|
-
function
|
|
1039
|
+
function _e() {
|
|
1023
1040
|
b.asyncTransitions--;
|
|
1024
1041
|
}
|
|
1025
|
-
function
|
|
1026
|
-
|
|
1042
|
+
function ue(e) {
|
|
1043
|
+
var s = b.T, f = {};
|
|
1044
|
+
f.types = s !== null ? s.types : null, f._updatedFibers = /* @__PURE__ */ new Set(), b.T = f;
|
|
1045
|
+
try {
|
|
1046
|
+
var l = e(), m = b.S;
|
|
1047
|
+
m !== null && m(f, l), typeof l == "object" && l !== null && typeof l.then == "function" && (b.asyncTransitions++, l.then(_e, _e), l.then(h, Ze));
|
|
1048
|
+
} catch (j) {
|
|
1049
|
+
Ze(j);
|
|
1050
|
+
} finally {
|
|
1051
|
+
s === null && f._updatedFibers && (e = f._updatedFibers.size, f._updatedFibers.clear(), 10 < e && console.warn(
|
|
1052
|
+
"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
|
|
1053
|
+
)), s !== null && f.types !== null && (s.types !== null && s.types !== f.types && console.error(
|
|
1054
|
+
"We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
|
|
1055
|
+
), s.types = f.types), b.T = s;
|
|
1056
|
+
}
|
|
1057
|
+
}
|
|
1058
|
+
function ee(e) {
|
|
1059
|
+
var s = b.T;
|
|
1060
|
+
if (s !== null) {
|
|
1061
|
+
var f = s.types;
|
|
1062
|
+
f === null ? s.types = [e] : f.indexOf(e) === -1 && f.push(e);
|
|
1063
|
+
} else
|
|
1064
|
+
b.asyncTransitions === 0 && console.error(
|
|
1065
|
+
"addTransitionType can only be called inside a `startTransition()` callback. It must be associated with a specific Transition."
|
|
1066
|
+
), ue(ee.bind(null, e));
|
|
1067
|
+
}
|
|
1068
|
+
function te(e) {
|
|
1069
|
+
if (we === null)
|
|
1027
1070
|
try {
|
|
1028
1071
|
var s = ("require" + Math.random()).slice(0, 7);
|
|
1029
|
-
|
|
1072
|
+
we = (t && t[s]).call(
|
|
1030
1073
|
t,
|
|
1031
1074
|
"timers"
|
|
1032
1075
|
).setImmediate;
|
|
1033
1076
|
} catch {
|
|
1034
|
-
|
|
1035
|
-
|
|
1077
|
+
we = function(l) {
|
|
1078
|
+
Je === !1 && (Je = !0, typeof MessageChannel > "u" && console.error(
|
|
1036
1079
|
"This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."
|
|
1037
1080
|
));
|
|
1038
|
-
var
|
|
1039
|
-
|
|
1081
|
+
var m = new MessageChannel();
|
|
1082
|
+
m.port1.onmessage = l, m.port2.postMessage(void 0);
|
|
1040
1083
|
};
|
|
1041
1084
|
}
|
|
1042
|
-
return
|
|
1085
|
+
return we(e);
|
|
1043
1086
|
}
|
|
1044
|
-
function
|
|
1087
|
+
function q(e) {
|
|
1045
1088
|
return 1 < e.length && typeof AggregateError == "function" ? new AggregateError(e) : e[0];
|
|
1046
1089
|
}
|
|
1047
|
-
function
|
|
1048
|
-
s !==
|
|
1090
|
+
function G(e, s) {
|
|
1091
|
+
s !== Ae - 1 && console.error(
|
|
1049
1092
|
"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
|
|
1050
|
-
),
|
|
1093
|
+
), Ae = s;
|
|
1051
1094
|
}
|
|
1052
|
-
function
|
|
1053
|
-
var
|
|
1054
|
-
if (
|
|
1055
|
-
if (
|
|
1095
|
+
function ae(e, s, f) {
|
|
1096
|
+
var l = b.actQueue;
|
|
1097
|
+
if (l !== null)
|
|
1098
|
+
if (l.length !== 0)
|
|
1056
1099
|
try {
|
|
1057
|
-
|
|
1058
|
-
return
|
|
1100
|
+
ne(l), te(function() {
|
|
1101
|
+
return ae(e, s, f);
|
|
1059
1102
|
});
|
|
1060
1103
|
return;
|
|
1061
|
-
} catch (
|
|
1062
|
-
b.thrownErrors.push(
|
|
1104
|
+
} catch (m) {
|
|
1105
|
+
b.thrownErrors.push(m);
|
|
1063
1106
|
}
|
|
1064
1107
|
else b.actQueue = null;
|
|
1065
|
-
0 < b.thrownErrors.length ? (
|
|
1108
|
+
0 < b.thrownErrors.length ? (l = q(b.thrownErrors), b.thrownErrors.length = 0, f(l)) : s(e);
|
|
1066
1109
|
}
|
|
1067
|
-
function
|
|
1068
|
-
if (!
|
|
1069
|
-
|
|
1110
|
+
function ne(e) {
|
|
1111
|
+
if (!Ce) {
|
|
1112
|
+
Ce = !0;
|
|
1070
1113
|
var s = 0;
|
|
1071
1114
|
try {
|
|
1072
1115
|
for (; s < e.length; s++) {
|
|
1073
|
-
var
|
|
1116
|
+
var f = e[s];
|
|
1074
1117
|
do {
|
|
1075
1118
|
b.didUsePromise = !1;
|
|
1076
|
-
var
|
|
1077
|
-
if (
|
|
1119
|
+
var l = f(!1);
|
|
1120
|
+
if (l !== null) {
|
|
1078
1121
|
if (b.didUsePromise) {
|
|
1079
|
-
e[s] =
|
|
1122
|
+
e[s] = f, e.splice(0, s);
|
|
1080
1123
|
return;
|
|
1081
1124
|
}
|
|
1082
|
-
|
|
1125
|
+
f = l;
|
|
1083
1126
|
} else break;
|
|
1084
1127
|
} while (!0);
|
|
1085
1128
|
}
|
|
1086
1129
|
e.length = 0;
|
|
1087
|
-
} catch (
|
|
1088
|
-
e.splice(0, s + 1), b.thrownErrors.push(
|
|
1130
|
+
} catch (m) {
|
|
1131
|
+
e.splice(0, s + 1), b.thrownErrors.push(m);
|
|
1089
1132
|
} finally {
|
|
1090
|
-
|
|
1133
|
+
Ce = !1;
|
|
1091
1134
|
}
|
|
1092
1135
|
}
|
|
1093
1136
|
}
|
|
1094
1137
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
1095
|
-
var
|
|
1138
|
+
var re = Symbol.for("react.transitional.element"), ce = Symbol.for("react.portal"), fe = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), v = Symbol.for("react.consumer"), _ = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), k = Symbol.for("react.suspense"), P = Symbol.for("react.suspense_list"), H = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), Ee = Symbol.for("react.activity"), qe = Symbol.for("react.view_transition"), ze = Symbol.iterator, De = {}, Be = {
|
|
1096
1139
|
isMounted: function() {
|
|
1097
1140
|
return !1;
|
|
1098
1141
|
},
|
|
1099
1142
|
enqueueForceUpdate: function(e) {
|
|
1100
|
-
|
|
1143
|
+
i(e, "forceUpdate");
|
|
1101
1144
|
},
|
|
1102
1145
|
enqueueReplaceState: function(e) {
|
|
1103
|
-
|
|
1146
|
+
i(e, "replaceState");
|
|
1104
1147
|
},
|
|
1105
1148
|
enqueueSetState: function(e) {
|
|
1106
|
-
|
|
1149
|
+
i(e, "setState");
|
|
1107
1150
|
}
|
|
1108
|
-
},
|
|
1109
|
-
Object.freeze(
|
|
1151
|
+
}, We = Object.assign, je = {};
|
|
1152
|
+
Object.freeze(je), a.prototype.isReactComponent = {}, a.prototype.setState = function(e, s) {
|
|
1110
1153
|
if (typeof e != "object" && typeof e != "function" && e != null)
|
|
1111
1154
|
throw Error(
|
|
1112
1155
|
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
@@ -1115,7 +1158,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1115
1158
|
}, a.prototype.forceUpdate = function(e) {
|
|
1116
1159
|
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
1117
1160
|
};
|
|
1118
|
-
var
|
|
1161
|
+
var z = {
|
|
1119
1162
|
isMounted: [
|
|
1120
1163
|
"isMounted",
|
|
1121
1164
|
"Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
|
|
@@ -1125,10 +1168,10 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1125
1168
|
"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
|
|
1126
1169
|
]
|
|
1127
1170
|
};
|
|
1128
|
-
for (le in
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
var
|
|
1171
|
+
for (le in z)
|
|
1172
|
+
z.hasOwnProperty(le) && r(le, z[le]);
|
|
1173
|
+
p.prototype = a.prototype, z = y.prototype = new p(), z.constructor = y, We(z, a.prototype), z.isPureReactComponent = !0;
|
|
1174
|
+
var xe = Array.isArray, ht = Symbol.for("react.client.reference"), b = {
|
|
1132
1175
|
H: null,
|
|
1133
1176
|
A: null,
|
|
1134
1177
|
T: null,
|
|
@@ -1141,18 +1184,18 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1141
1184
|
thrownErrors: [],
|
|
1142
1185
|
getCurrentStack: null,
|
|
1143
1186
|
recentlyCreatedOwnerStacks: 0
|
|
1144
|
-
},
|
|
1187
|
+
}, Te = Object.prototype.hasOwnProperty, Ge = console.createTask ? console.createTask : function() {
|
|
1145
1188
|
return null;
|
|
1146
1189
|
};
|
|
1147
|
-
|
|
1190
|
+
z = {
|
|
1148
1191
|
react_stack_bottom_frame: function(e) {
|
|
1149
1192
|
return e();
|
|
1150
1193
|
}
|
|
1151
1194
|
};
|
|
1152
|
-
var
|
|
1153
|
-
|
|
1195
|
+
var Fe, Ke, Qe = {}, gt = z.react_stack_bottom_frame.bind(
|
|
1196
|
+
z,
|
|
1154
1197
|
U
|
|
1155
|
-
)(),
|
|
1198
|
+
)(), vt = Ge(w(U)), Xe = !1, Ve = /\/+/g, Ze = typeof reportError == "function" ? reportError : function(e) {
|
|
1156
1199
|
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
1157
1200
|
var s = new window.ErrorEvent("error", {
|
|
1158
1201
|
bubbles: !0,
|
|
@@ -1166,116 +1209,116 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1166
1209
|
return;
|
|
1167
1210
|
}
|
|
1168
1211
|
console.error(e);
|
|
1169
|
-
},
|
|
1212
|
+
}, Je = !1, we = null, Ae = 0, be = !1, Ce = !1, et = typeof queueMicrotask == "function" ? function(e) {
|
|
1170
1213
|
queueMicrotask(function() {
|
|
1171
1214
|
return queueMicrotask(e);
|
|
1172
1215
|
});
|
|
1173
|
-
} :
|
|
1174
|
-
|
|
1216
|
+
} : te;
|
|
1217
|
+
z = Object.freeze({
|
|
1175
1218
|
__proto__: null,
|
|
1176
1219
|
c: function(e) {
|
|
1177
|
-
return
|
|
1220
|
+
return M().useMemoCache(e);
|
|
1178
1221
|
}
|
|
1179
1222
|
});
|
|
1180
1223
|
var le = {
|
|
1181
|
-
map:
|
|
1182
|
-
forEach: function(e, s,
|
|
1183
|
-
|
|
1224
|
+
map: F,
|
|
1225
|
+
forEach: function(e, s, f) {
|
|
1226
|
+
F(
|
|
1184
1227
|
e,
|
|
1185
1228
|
function() {
|
|
1186
1229
|
s.apply(this, arguments);
|
|
1187
1230
|
},
|
|
1188
|
-
|
|
1231
|
+
f
|
|
1189
1232
|
);
|
|
1190
1233
|
},
|
|
1191
1234
|
count: function(e) {
|
|
1192
1235
|
var s = 0;
|
|
1193
|
-
return
|
|
1236
|
+
return F(e, function() {
|
|
1194
1237
|
s++;
|
|
1195
1238
|
}), s;
|
|
1196
1239
|
},
|
|
1197
1240
|
toArray: function(e) {
|
|
1198
|
-
return
|
|
1241
|
+
return F(e, function(s) {
|
|
1199
1242
|
return s;
|
|
1200
1243
|
}) || [];
|
|
1201
1244
|
},
|
|
1202
1245
|
only: function(e) {
|
|
1203
|
-
if (!
|
|
1246
|
+
if (!W(e))
|
|
1204
1247
|
throw Error(
|
|
1205
1248
|
"React.Children.only expected to receive a single React element child."
|
|
1206
1249
|
);
|
|
1207
1250
|
return e;
|
|
1208
1251
|
}
|
|
1209
1252
|
};
|
|
1210
|
-
n.Activity =
|
|
1211
|
-
var s = b.actQueue,
|
|
1212
|
-
|
|
1213
|
-
var
|
|
1253
|
+
n.Activity = Ee, n.Children = le, n.Component = a, n.Fragment = fe, n.Profiler = c, n.PureComponent = y, n.StrictMode = o, n.Suspense = k, n.ViewTransition = qe, n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = b, n.__COMPILER_RUNTIME = z, n.act = function(e) {
|
|
1254
|
+
var s = b.actQueue, f = Ae;
|
|
1255
|
+
Ae++;
|
|
1256
|
+
var l = b.actQueue = s !== null ? s : [], m = !1;
|
|
1214
1257
|
try {
|
|
1215
|
-
var
|
|
1216
|
-
} catch (
|
|
1217
|
-
b.thrownErrors.push(
|
|
1258
|
+
var j = e();
|
|
1259
|
+
} catch (O) {
|
|
1260
|
+
b.thrownErrors.push(O);
|
|
1218
1261
|
}
|
|
1219
1262
|
if (0 < b.thrownErrors.length)
|
|
1220
|
-
throw
|
|
1221
|
-
if (
|
|
1222
|
-
var
|
|
1223
|
-
return
|
|
1224
|
-
|
|
1263
|
+
throw G(s, f), e = q(b.thrownErrors), b.thrownErrors.length = 0, e;
|
|
1264
|
+
if (j !== null && typeof j == "object" && typeof j.then == "function") {
|
|
1265
|
+
var g = j;
|
|
1266
|
+
return et(function() {
|
|
1267
|
+
m || be || (be = !0, console.error(
|
|
1225
1268
|
"You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"
|
|
1226
1269
|
));
|
|
1227
1270
|
}), {
|
|
1228
|
-
then: function(
|
|
1229
|
-
|
|
1230
|
-
function(
|
|
1231
|
-
if (
|
|
1271
|
+
then: function(O, K) {
|
|
1272
|
+
m = !0, g.then(
|
|
1273
|
+
function(oe) {
|
|
1274
|
+
if (G(s, f), f === 0) {
|
|
1232
1275
|
try {
|
|
1233
|
-
|
|
1234
|
-
return
|
|
1235
|
-
|
|
1236
|
-
|
|
1276
|
+
ne(l), te(function() {
|
|
1277
|
+
return ae(
|
|
1278
|
+
oe,
|
|
1279
|
+
O,
|
|
1237
1280
|
K
|
|
1238
1281
|
);
|
|
1239
1282
|
});
|
|
1240
|
-
} catch (
|
|
1241
|
-
b.thrownErrors.push(
|
|
1283
|
+
} catch (Et) {
|
|
1284
|
+
b.thrownErrors.push(Et);
|
|
1242
1285
|
}
|
|
1243
1286
|
if (0 < b.thrownErrors.length) {
|
|
1244
|
-
var
|
|
1287
|
+
var _t = q(
|
|
1245
1288
|
b.thrownErrors
|
|
1246
1289
|
);
|
|
1247
|
-
b.thrownErrors.length = 0, K(
|
|
1290
|
+
b.thrownErrors.length = 0, K(_t);
|
|
1248
1291
|
}
|
|
1249
|
-
} else
|
|
1292
|
+
} else O(oe);
|
|
1250
1293
|
},
|
|
1251
|
-
function(
|
|
1252
|
-
|
|
1294
|
+
function(oe) {
|
|
1295
|
+
G(s, f), 0 < b.thrownErrors.length && (oe = q(
|
|
1253
1296
|
b.thrownErrors
|
|
1254
|
-
), b.thrownErrors.length = 0), K(
|
|
1297
|
+
), b.thrownErrors.length = 0), K(oe);
|
|
1255
1298
|
}
|
|
1256
1299
|
);
|
|
1257
1300
|
}
|
|
1258
1301
|
};
|
|
1259
1302
|
}
|
|
1260
|
-
var
|
|
1261
|
-
if (
|
|
1262
|
-
|
|
1303
|
+
var A = j;
|
|
1304
|
+
if (G(s, f), f === 0 && (ne(l), l.length !== 0 && et(function() {
|
|
1305
|
+
m || be || (be = !0, console.error(
|
|
1263
1306
|
"A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"
|
|
1264
1307
|
));
|
|
1265
1308
|
}), b.actQueue = null), 0 < b.thrownErrors.length)
|
|
1266
|
-
throw e =
|
|
1309
|
+
throw e = q(b.thrownErrors), b.thrownErrors.length = 0, e;
|
|
1267
1310
|
return {
|
|
1268
|
-
then: function(
|
|
1269
|
-
|
|
1270
|
-
return
|
|
1271
|
-
|
|
1272
|
-
|
|
1311
|
+
then: function(O, K) {
|
|
1312
|
+
m = !0, f === 0 ? (b.actQueue = l, te(function() {
|
|
1313
|
+
return ae(
|
|
1314
|
+
A,
|
|
1315
|
+
O,
|
|
1273
1316
|
K
|
|
1274
1317
|
);
|
|
1275
|
-
})) :
|
|
1318
|
+
})) : O(A);
|
|
1276
1319
|
}
|
|
1277
1320
|
};
|
|
1278
|
-
}, n.cache = function(e) {
|
|
1321
|
+
}, n.addTransitionType = ee, n.cache = function(e) {
|
|
1279
1322
|
return function() {
|
|
1280
1323
|
return e.apply(null, arguments);
|
|
1281
1324
|
};
|
|
@@ -1284,49 +1327,49 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1284
1327
|
}, n.captureOwnerStack = function() {
|
|
1285
1328
|
var e = b.getCurrentStack;
|
|
1286
1329
|
return e === null ? null : e();
|
|
1287
|
-
}, n.cloneElement = function(e, s,
|
|
1330
|
+
}, n.cloneElement = function(e, s, f) {
|
|
1288
1331
|
if (e == null)
|
|
1289
1332
|
throw Error(
|
|
1290
1333
|
"The argument must be a React element, but you passed " + e + "."
|
|
1291
1334
|
);
|
|
1292
|
-
var
|
|
1335
|
+
var l = We({}, e.props), m = e.key, j = e._owner;
|
|
1293
1336
|
if (s != null) {
|
|
1294
|
-
var
|
|
1337
|
+
var g;
|
|
1295
1338
|
e: {
|
|
1296
|
-
if (
|
|
1339
|
+
if (Te.call(s, "ref") && (g = Object.getOwnPropertyDescriptor(
|
|
1297
1340
|
s,
|
|
1298
1341
|
"ref"
|
|
1299
|
-
).get) &&
|
|
1300
|
-
|
|
1342
|
+
).get) && g.isReactWarning) {
|
|
1343
|
+
g = !1;
|
|
1301
1344
|
break e;
|
|
1302
1345
|
}
|
|
1303
|
-
|
|
1346
|
+
g = s.ref !== void 0;
|
|
1304
1347
|
}
|
|
1305
|
-
|
|
1306
|
-
for (
|
|
1307
|
-
!
|
|
1348
|
+
g && (j = N()), Y(s) && (E(s.key), m = "" + s.key);
|
|
1349
|
+
for (A in s)
|
|
1350
|
+
!Te.call(s, A) || A === "key" || A === "__self" || A === "__source" || A === "ref" && s.ref === void 0 || (l[A] = s[A]);
|
|
1308
1351
|
}
|
|
1309
|
-
var
|
|
1310
|
-
if (
|
|
1311
|
-
else if (1 <
|
|
1312
|
-
|
|
1313
|
-
for (var
|
|
1314
|
-
|
|
1315
|
-
|
|
1352
|
+
var A = arguments.length - 2;
|
|
1353
|
+
if (A === 1) l.children = f;
|
|
1354
|
+
else if (1 < A) {
|
|
1355
|
+
g = Array(A);
|
|
1356
|
+
for (var O = 0; O < A; O++)
|
|
1357
|
+
g[O] = arguments[O + 2];
|
|
1358
|
+
l.children = g;
|
|
1316
1359
|
}
|
|
1317
|
-
for (
|
|
1360
|
+
for (l = B(
|
|
1318
1361
|
e.type,
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1362
|
+
m,
|
|
1363
|
+
l,
|
|
1364
|
+
j,
|
|
1322
1365
|
e._debugStack,
|
|
1323
1366
|
e._debugTask
|
|
1324
|
-
),
|
|
1325
|
-
|
|
1326
|
-
return
|
|
1367
|
+
), m = 2; m < arguments.length; m++)
|
|
1368
|
+
J(arguments[m]);
|
|
1369
|
+
return l;
|
|
1327
1370
|
}, n.createContext = function(e) {
|
|
1328
1371
|
return e = {
|
|
1329
|
-
$$typeof:
|
|
1372
|
+
$$typeof: _,
|
|
1330
1373
|
_currentValue: e,
|
|
1331
1374
|
_currentValue2: e,
|
|
1332
1375
|
_threadCount: 0,
|
|
@@ -1336,44 +1379,43 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1336
1379
|
$$typeof: v,
|
|
1337
1380
|
_context: e
|
|
1338
1381
|
}, e._currentRenderer = null, e._currentRenderer2 = null, e;
|
|
1339
|
-
}, n.createElement = function(e, s,
|
|
1340
|
-
for (var
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1382
|
+
}, n.createElement = function(e, s, f) {
|
|
1383
|
+
for (var l = 2; l < arguments.length; l++)
|
|
1384
|
+
J(arguments[l]);
|
|
1385
|
+
var m;
|
|
1386
|
+
l = {};
|
|
1387
|
+
var j = null;
|
|
1344
1388
|
if (s != null)
|
|
1345
|
-
for (
|
|
1389
|
+
for (m in Ke || !("__self" in s) || "key" in s || (Ke = !0, console.warn(
|
|
1346
1390
|
"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
|
|
1347
|
-
)), Y(s) && (
|
|
1348
|
-
|
|
1349
|
-
var
|
|
1350
|
-
if (
|
|
1351
|
-
else if (1 <
|
|
1352
|
-
for (var
|
|
1353
|
-
|
|
1354
|
-
Object.freeze && Object.freeze(
|
|
1391
|
+
)), Y(s) && (E(s.key), j = "" + s.key), s)
|
|
1392
|
+
Te.call(s, m) && m !== "key" && m !== "__self" && m !== "__source" && (l[m] = s[m]);
|
|
1393
|
+
var g = arguments.length - 2;
|
|
1394
|
+
if (g === 1) l.children = f;
|
|
1395
|
+
else if (1 < g) {
|
|
1396
|
+
for (var A = Array(g), O = 0; O < g; O++)
|
|
1397
|
+
A[O] = arguments[O + 2];
|
|
1398
|
+
Object.freeze && Object.freeze(A), l.children = A;
|
|
1355
1399
|
}
|
|
1356
1400
|
if (e && e.defaultProps)
|
|
1357
|
-
for (
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1401
|
+
for (m in g = e.defaultProps, g)
|
|
1402
|
+
l[m] === void 0 && (l[m] = g[m]);
|
|
1403
|
+
return j && D(
|
|
1404
|
+
l,
|
|
1361
1405
|
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
1362
|
-
)
|
|
1363
|
-
var R = 1e4 > b.recentlyCreatedOwnerStacks++;
|
|
1364
|
-
return J(
|
|
1406
|
+
), (m = 1e4 > b.recentlyCreatedOwnerStacks++) ? (A = Error.stackTraceLimit, Error.stackTraceLimit = 10, g = Error("react-stack-top-frame"), Error.stackTraceLimit = A) : g = gt, B(
|
|
1365
1407
|
e,
|
|
1366
|
-
|
|
1367
|
-
|
|
1408
|
+
j,
|
|
1409
|
+
l,
|
|
1368
1410
|
N(),
|
|
1369
|
-
|
|
1370
|
-
|
|
1411
|
+
g,
|
|
1412
|
+
m ? Ge(w(e)) : vt
|
|
1371
1413
|
);
|
|
1372
1414
|
}, n.createRef = function() {
|
|
1373
1415
|
var e = { current: null };
|
|
1374
1416
|
return Object.seal(e), e;
|
|
1375
1417
|
}, n.forwardRef = function(e) {
|
|
1376
|
-
e != null && e.$$typeof ===
|
|
1418
|
+
e != null && e.$$typeof === H ? console.error(
|
|
1377
1419
|
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
|
|
1378
1420
|
) : typeof e != "function" ? console.error(
|
|
1379
1421
|
"forwardRef requires a render function but was given %s.",
|
|
@@ -1384,24 +1426,24 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1384
1426
|
), e != null && e.defaultProps != null && console.error(
|
|
1385
1427
|
"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
|
|
1386
1428
|
);
|
|
1387
|
-
var s = { $$typeof:
|
|
1429
|
+
var s = { $$typeof: S, render: e }, f;
|
|
1388
1430
|
return Object.defineProperty(s, "displayName", {
|
|
1389
1431
|
enumerable: !1,
|
|
1390
1432
|
configurable: !0,
|
|
1391
1433
|
get: function() {
|
|
1392
|
-
return
|
|
1434
|
+
return f;
|
|
1393
1435
|
},
|
|
1394
|
-
set: function(
|
|
1395
|
-
|
|
1436
|
+
set: function(l) {
|
|
1437
|
+
f = l, e.name || e.displayName || (Object.defineProperty(e, "name", { value: l }), e.displayName = l);
|
|
1396
1438
|
}
|
|
1397
1439
|
}), s;
|
|
1398
|
-
}, n.isValidElement =
|
|
1440
|
+
}, n.isValidElement = W, n.lazy = function(e) {
|
|
1399
1441
|
e = { _status: -1, _result: e };
|
|
1400
1442
|
var s = {
|
|
1401
|
-
$$typeof:
|
|
1443
|
+
$$typeof: I,
|
|
1402
1444
|
_payload: e,
|
|
1403
|
-
_init:
|
|
1404
|
-
},
|
|
1445
|
+
_init: Oe
|
|
1446
|
+
}, f = {
|
|
1405
1447
|
name: "lazy",
|
|
1406
1448
|
start: -1,
|
|
1407
1449
|
end: -1,
|
|
@@ -1410,129 +1452,114 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1410
1452
|
debugStack: Error("react-stack-top-frame"),
|
|
1411
1453
|
debugTask: console.createTask ? console.createTask("lazy()") : null
|
|
1412
1454
|
};
|
|
1413
|
-
return e._ioInfo =
|
|
1455
|
+
return e._ioInfo = f, s._debugInfo = [{ awaited: f }], s;
|
|
1414
1456
|
}, n.memo = function(e, s) {
|
|
1415
1457
|
e == null && console.error(
|
|
1416
1458
|
"memo: The first argument must be a component. Instead received: %s",
|
|
1417
1459
|
e === null ? "null" : typeof e
|
|
1418
1460
|
), s = {
|
|
1419
|
-
$$typeof:
|
|
1461
|
+
$$typeof: H,
|
|
1420
1462
|
type: e,
|
|
1421
1463
|
compare: s === void 0 ? null : s
|
|
1422
1464
|
};
|
|
1423
|
-
var
|
|
1465
|
+
var f;
|
|
1424
1466
|
return Object.defineProperty(s, "displayName", {
|
|
1425
1467
|
enumerable: !1,
|
|
1426
1468
|
configurable: !0,
|
|
1427
1469
|
get: function() {
|
|
1428
|
-
return
|
|
1470
|
+
return f;
|
|
1429
1471
|
},
|
|
1430
|
-
set: function(
|
|
1431
|
-
|
|
1472
|
+
set: function(l) {
|
|
1473
|
+
f = l, e.name || e.displayName || (Object.defineProperty(e, "name", { value: l }), e.displayName = l);
|
|
1432
1474
|
}
|
|
1433
1475
|
}), s;
|
|
1434
|
-
}, n.startTransition = function(
|
|
1435
|
-
|
|
1436
|
-
c._updatedFibers = /* @__PURE__ */ new Set(), b.T = c;
|
|
1437
|
-
try {
|
|
1438
|
-
var p = e(), y = b.S;
|
|
1439
|
-
y !== null && y(c, p), typeof p == "object" && p !== null && typeof p.then == "function" && (b.asyncTransitions++, p.then(ce, ce), p.then(h, Qe));
|
|
1440
|
-
} catch ($) {
|
|
1441
|
-
Qe($);
|
|
1442
|
-
} finally {
|
|
1443
|
-
s === null && c._updatedFibers && (e = c._updatedFibers.size, c._updatedFibers.clear(), 10 < e && console.warn(
|
|
1444
|
-
"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
|
|
1445
|
-
)), s !== null && c.types !== null && (s.types !== null && s.types !== c.types && console.error(
|
|
1446
|
-
"We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
|
|
1447
|
-
), s.types = c.types), b.T = s;
|
|
1448
|
-
}
|
|
1449
|
-
}, n.unstable_useCacheRefresh = function() {
|
|
1450
|
-
return P().useCacheRefresh();
|
|
1476
|
+
}, n.startTransition = ue, n.unstable_useCacheRefresh = function() {
|
|
1477
|
+
return M().useCacheRefresh();
|
|
1451
1478
|
}, n.use = function(e) {
|
|
1452
|
-
return
|
|
1453
|
-
}, n.useActionState = function(e, s,
|
|
1454
|
-
return
|
|
1479
|
+
return M().use(e);
|
|
1480
|
+
}, n.useActionState = function(e, s, f) {
|
|
1481
|
+
return M().useActionState(
|
|
1455
1482
|
e,
|
|
1456
1483
|
s,
|
|
1457
|
-
|
|
1484
|
+
f
|
|
1458
1485
|
);
|
|
1459
1486
|
}, n.useCallback = function(e, s) {
|
|
1460
|
-
return
|
|
1487
|
+
return M().useCallback(e, s);
|
|
1461
1488
|
}, n.useContext = function(e) {
|
|
1462
|
-
var s =
|
|
1489
|
+
var s = M();
|
|
1463
1490
|
return e.$$typeof === v && console.error(
|
|
1464
1491
|
"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
|
|
1465
1492
|
), s.useContext(e);
|
|
1466
1493
|
}, n.useDebugValue = function(e, s) {
|
|
1467
|
-
return
|
|
1494
|
+
return M().useDebugValue(e, s);
|
|
1468
1495
|
}, n.useDeferredValue = function(e, s) {
|
|
1469
|
-
return
|
|
1496
|
+
return M().useDeferredValue(e, s);
|
|
1470
1497
|
}, n.useEffect = function(e, s) {
|
|
1471
1498
|
return e == null && console.warn(
|
|
1472
1499
|
"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1473
|
-
),
|
|
1500
|
+
), M().useEffect(e, s);
|
|
1474
1501
|
}, n.useEffectEvent = function(e) {
|
|
1475
|
-
return
|
|
1502
|
+
return M().useEffectEvent(e);
|
|
1476
1503
|
}, n.useId = function() {
|
|
1477
|
-
return
|
|
1478
|
-
}, n.useImperativeHandle = function(e, s,
|
|
1479
|
-
return
|
|
1504
|
+
return M().useId();
|
|
1505
|
+
}, n.useImperativeHandle = function(e, s, f) {
|
|
1506
|
+
return M().useImperativeHandle(e, s, f);
|
|
1480
1507
|
}, n.useInsertionEffect = function(e, s) {
|
|
1481
1508
|
return e == null && console.warn(
|
|
1482
1509
|
"React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1483
|
-
),
|
|
1510
|
+
), M().useInsertionEffect(e, s);
|
|
1484
1511
|
}, n.useLayoutEffect = function(e, s) {
|
|
1485
1512
|
return e == null && console.warn(
|
|
1486
1513
|
"React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1487
|
-
),
|
|
1514
|
+
), M().useLayoutEffect(e, s);
|
|
1488
1515
|
}, n.useMemo = function(e, s) {
|
|
1489
|
-
return
|
|
1516
|
+
return M().useMemo(e, s);
|
|
1490
1517
|
}, n.useOptimistic = function(e, s) {
|
|
1491
|
-
return
|
|
1492
|
-
}, n.useReducer = function(e, s,
|
|
1493
|
-
return
|
|
1518
|
+
return M().useOptimistic(e, s);
|
|
1519
|
+
}, n.useReducer = function(e, s, f) {
|
|
1520
|
+
return M().useReducer(e, s, f);
|
|
1494
1521
|
}, n.useRef = function(e) {
|
|
1495
|
-
return
|
|
1522
|
+
return M().useRef(e);
|
|
1496
1523
|
}, n.useState = function(e) {
|
|
1497
|
-
return
|
|
1498
|
-
}, n.useSyncExternalStore = function(e, s,
|
|
1499
|
-
return
|
|
1524
|
+
return M().useState(e);
|
|
1525
|
+
}, n.useSyncExternalStore = function(e, s, f) {
|
|
1526
|
+
return M().useSyncExternalStore(
|
|
1500
1527
|
e,
|
|
1501
1528
|
s,
|
|
1502
|
-
|
|
1529
|
+
f
|
|
1503
1530
|
);
|
|
1504
1531
|
}, n.useTransition = function() {
|
|
1505
|
-
return
|
|
1506
|
-
}, n.version = "19.
|
|
1532
|
+
return M().useTransition();
|
|
1533
|
+
}, n.version = "19.3.0", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1507
1534
|
})();
|
|
1508
1535
|
})(de, de.exports)), de.exports;
|
|
1509
1536
|
}
|
|
1510
|
-
var
|
|
1511
|
-
function
|
|
1512
|
-
return
|
|
1537
|
+
var ut;
|
|
1538
|
+
function It() {
|
|
1539
|
+
return ut || (ut = 1, process.env.NODE_ENV === "production" ? Re.exports = Nt() : Re.exports = Lt()), Re.exports;
|
|
1513
1540
|
}
|
|
1514
|
-
|
|
1515
|
-
let
|
|
1516
|
-
const
|
|
1517
|
-
function
|
|
1518
|
-
return
|
|
1519
|
-
|
|
1520
|
-
})),
|
|
1541
|
+
It();
|
|
1542
|
+
let Ie = null, Pe = null;
|
|
1543
|
+
const Ut = /* @__PURE__ */ new Set();
|
|
1544
|
+
function Yt() {
|
|
1545
|
+
return Pe || (Pe = import("./markdown-assets/protoToJsonSchema-CWtEPUyE.js").then((t) => {
|
|
1546
|
+
Ie = t.protoToJsonSchema, Ut.forEach((n) => n());
|
|
1547
|
+
})), Pe;
|
|
1521
1548
|
}
|
|
1522
|
-
function
|
|
1523
|
-
return
|
|
1549
|
+
function Ht() {
|
|
1550
|
+
return Ie || Yt(), Ie;
|
|
1524
1551
|
}
|
|
1525
|
-
const
|
|
1526
|
-
function
|
|
1527
|
-
return typeof t == "string" && Ht.test(t);
|
|
1528
|
-
}
|
|
1529
|
-
function zt(t) {
|
|
1552
|
+
const qt = "x-parser-original-payload", zt = "x-lib-conversion-error", Dt = /^application\/vnd\.apache\.avro(\+(json|yaml))?(\s*;\s*version=.+)?$/i, Bt = /^application\/vnd\.google\.protobuf(\s*;\s*version=.+)?$/i;
|
|
1553
|
+
function Wt(t) {
|
|
1530
1554
|
return typeof t == "string" && Dt.test(t);
|
|
1531
1555
|
}
|
|
1532
|
-
function
|
|
1533
|
-
return
|
|
1556
|
+
function xt(t) {
|
|
1557
|
+
return typeof t == "string" && Bt.test(t);
|
|
1534
1558
|
}
|
|
1535
|
-
|
|
1559
|
+
function lt(t) {
|
|
1560
|
+
return V(t) && typeof t.schemaFormat == "string" && "schema" in t;
|
|
1561
|
+
}
|
|
1562
|
+
const Gt = [
|
|
1536
1563
|
"properties",
|
|
1537
1564
|
"oneOf",
|
|
1538
1565
|
"anyOf",
|
|
@@ -1542,7 +1569,7 @@ const Bt = [
|
|
|
1542
1569
|
"additionalProperties",
|
|
1543
1570
|
"patternProperties",
|
|
1544
1571
|
"x-parser-schema-id"
|
|
1545
|
-
],
|
|
1572
|
+
], Ft = /* @__PURE__ */ new Set([
|
|
1546
1573
|
"record",
|
|
1547
1574
|
"enum",
|
|
1548
1575
|
"fixed",
|
|
@@ -1554,66 +1581,66 @@ const Bt = [
|
|
|
1554
1581
|
"bytes",
|
|
1555
1582
|
"uuid"
|
|
1556
1583
|
]);
|
|
1557
|
-
function
|
|
1558
|
-
return typeof t == "string" || Array.isArray(t) ? !0 :
|
|
1584
|
+
function Kt(t) {
|
|
1585
|
+
return typeof t == "string" || Array.isArray(t) ? !0 : V(t) ? typeof t.type == "string" && Ft.has(t.type) || Array.isArray(t.fields) || Array.isArray(t.symbols) ? !0 : !Gt.some((n) => n in t) : !1;
|
|
1559
1586
|
}
|
|
1560
|
-
function
|
|
1587
|
+
function Qt(t, n) {
|
|
1561
1588
|
let r = t;
|
|
1562
|
-
if (n &&
|
|
1563
|
-
const
|
|
1564
|
-
|
|
1589
|
+
if (n && V(r) && typeof r.$ref == "string") {
|
|
1590
|
+
const p = n(r.$ref);
|
|
1591
|
+
p !== void 0 && (r = p);
|
|
1565
1592
|
}
|
|
1566
|
-
const
|
|
1567
|
-
if (typeof
|
|
1568
|
-
return { ...
|
|
1569
|
-
const a =
|
|
1570
|
-
return typeof a == "string" ? { ...
|
|
1593
|
+
const u = Xt(r), i = u.schema.description;
|
|
1594
|
+
if (typeof i == "string")
|
|
1595
|
+
return { ...u, description: i };
|
|
1596
|
+
const a = lt(r) ? r.description : void 0;
|
|
1597
|
+
return typeof a == "string" ? { ...u, description: a } : u;
|
|
1571
1598
|
}
|
|
1572
|
-
function
|
|
1573
|
-
var
|
|
1574
|
-
if (!
|
|
1575
|
-
return { schema:
|
|
1576
|
-
const { schemaFormat: n } = t, r = t.schema,
|
|
1577
|
-
if (typeof
|
|
1599
|
+
function Xt(t) {
|
|
1600
|
+
var p;
|
|
1601
|
+
if (!lt(t))
|
|
1602
|
+
return { schema: X(t) ?? t };
|
|
1603
|
+
const { schemaFormat: n } = t, r = t.schema, u = t[qt], i = (p = X(r)) == null ? void 0 : p[zt];
|
|
1604
|
+
if (typeof i == "string")
|
|
1578
1605
|
return {
|
|
1579
|
-
schema:
|
|
1606
|
+
schema: X(u) ?? {},
|
|
1580
1607
|
schemaFormat: n,
|
|
1581
|
-
originalSchema:
|
|
1582
|
-
conversionError:
|
|
1608
|
+
originalSchema: u,
|
|
1609
|
+
conversionError: i
|
|
1583
1610
|
};
|
|
1584
|
-
if (
|
|
1611
|
+
if (u !== void 0)
|
|
1585
1612
|
return {
|
|
1586
|
-
schema:
|
|
1613
|
+
schema: X(r) ?? {},
|
|
1587
1614
|
schemaFormat: n,
|
|
1588
|
-
originalSchema:
|
|
1615
|
+
originalSchema: u
|
|
1589
1616
|
};
|
|
1590
|
-
if (
|
|
1591
|
-
const
|
|
1592
|
-
if (
|
|
1617
|
+
if (Wt(n) && Kt(r)) {
|
|
1618
|
+
const y = Mt(r);
|
|
1619
|
+
if (y.length > 0)
|
|
1593
1620
|
return {
|
|
1594
|
-
schema:
|
|
1621
|
+
schema: X(r) ?? {},
|
|
1595
1622
|
schemaFormat: n,
|
|
1596
1623
|
originalSchema: r,
|
|
1597
|
-
conversionError:
|
|
1624
|
+
conversionError: y[0]
|
|
1598
1625
|
};
|
|
1599
1626
|
try {
|
|
1600
1627
|
return {
|
|
1601
|
-
schema:
|
|
1628
|
+
schema: Ct(r),
|
|
1602
1629
|
schemaFormat: n,
|
|
1603
1630
|
originalSchema: r
|
|
1604
1631
|
};
|
|
1605
1632
|
} catch (h) {
|
|
1606
1633
|
return {
|
|
1607
|
-
schema:
|
|
1634
|
+
schema: X(r) ?? {},
|
|
1608
1635
|
schemaFormat: n,
|
|
1609
1636
|
originalSchema: r,
|
|
1610
1637
|
conversionError: h instanceof Error ? h.message : "Failed to convert Avro schema"
|
|
1611
1638
|
};
|
|
1612
1639
|
}
|
|
1613
1640
|
}
|
|
1614
|
-
if (
|
|
1615
|
-
const
|
|
1616
|
-
if (!
|
|
1641
|
+
if (xt(n) && typeof r == "string") {
|
|
1642
|
+
const y = Ht();
|
|
1643
|
+
if (!y)
|
|
1617
1644
|
return {
|
|
1618
1645
|
schema: {},
|
|
1619
1646
|
schemaFormat: n,
|
|
@@ -1622,7 +1649,7 @@ function Ft(t) {
|
|
|
1622
1649
|
};
|
|
1623
1650
|
try {
|
|
1624
1651
|
return {
|
|
1625
|
-
schema:
|
|
1652
|
+
schema: y(r),
|
|
1626
1653
|
schemaFormat: n,
|
|
1627
1654
|
originalSchema: r
|
|
1628
1655
|
};
|
|
@@ -1637,80 +1664,80 @@ function Ft(t) {
|
|
|
1637
1664
|
};
|
|
1638
1665
|
}
|
|
1639
1666
|
}
|
|
1640
|
-
const a =
|
|
1667
|
+
const a = X(r);
|
|
1641
1668
|
return a ? { schema: a, schemaFormat: n } : { schema: {}, schemaFormat: n, originalSchema: r };
|
|
1642
1669
|
}
|
|
1643
|
-
const
|
|
1644
|
-
function
|
|
1670
|
+
const Vt = (t) => typeof t == "object" && t !== null;
|
|
1671
|
+
function Zt(t) {
|
|
1645
1672
|
try {
|
|
1646
1673
|
return decodeURIComponent(t).replace(/~1/g, "/").replace(/~0/g, "~");
|
|
1647
1674
|
} catch {
|
|
1648
1675
|
return;
|
|
1649
1676
|
}
|
|
1650
1677
|
}
|
|
1651
|
-
function
|
|
1678
|
+
function Jt(t, n) {
|
|
1652
1679
|
if (n === "#") return t;
|
|
1653
1680
|
if (!n.startsWith("#/")) return;
|
|
1654
1681
|
let r = t;
|
|
1655
|
-
for (const
|
|
1656
|
-
if (!
|
|
1657
|
-
const
|
|
1658
|
-
if (
|
|
1682
|
+
for (const u of n.slice(2).split("/")) {
|
|
1683
|
+
if (!Vt(r)) return;
|
|
1684
|
+
const i = Zt(u);
|
|
1685
|
+
if (i === void 0 || (r = r[i], r === void 0)) return;
|
|
1659
1686
|
}
|
|
1660
1687
|
return r;
|
|
1661
1688
|
}
|
|
1662
|
-
function
|
|
1689
|
+
function ke(t) {
|
|
1663
1690
|
const n = /* @__PURE__ */ new Map();
|
|
1664
1691
|
return (r) => {
|
|
1665
1692
|
if (n.has(r)) return n.get(r);
|
|
1666
|
-
const
|
|
1667
|
-
return n.set(r,
|
|
1693
|
+
const u = Jt(t, r);
|
|
1694
|
+
return n.set(r, u), u;
|
|
1668
1695
|
};
|
|
1669
1696
|
}
|
|
1670
|
-
const L = (t, n) => `${"#".repeat(t)} ${n}`, d = (t) => typeof t == "string" ? t.replace(/`/g, "'") : String(t ?? ""), pe = (t) => typeof t == "object" && t !== null && !Array.isArray(t),
|
|
1671
|
-
function
|
|
1697
|
+
const L = (t, n) => `${"#".repeat(t)} ${n}`, d = (t) => typeof t == "string" ? t.replace(/`/g, "'") : String(t ?? ""), pe = (t) => typeof t == "object" && t !== null && !Array.isArray(t), en = { objects: /* @__PURE__ */ new Set(), refs: /* @__PURE__ */ new Set() };
|
|
1698
|
+
function $e(t, n, r = en) {
|
|
1672
1699
|
if (t === null || typeof t != "object") return t;
|
|
1673
1700
|
if (r.objects.has(t) || pe(t) && typeof t.$ref == "string" && r.refs.has(t.$ref)) {
|
|
1674
1701
|
const a = pe(t) ? t["x-parser-schema-id"] : void 0;
|
|
1675
1702
|
return typeof a == "string" ? { $ref: `#/components/schemas/${a} (circular)` } : "[circular reference]";
|
|
1676
1703
|
}
|
|
1677
|
-
const
|
|
1704
|
+
const u = {
|
|
1678
1705
|
objects: new Set(r.objects).add(t),
|
|
1679
1706
|
refs: pe(t) && typeof t.$ref == "string" ? new Set(r.refs).add(t.$ref) : r.refs
|
|
1680
1707
|
};
|
|
1681
1708
|
if (Array.isArray(t))
|
|
1682
|
-
return t.map((a) =>
|
|
1709
|
+
return t.map((a) => $e(a, n, u));
|
|
1683
1710
|
if (pe(t) && typeof t.$ref == "string") {
|
|
1684
1711
|
const a = n == null ? void 0 : n(t.$ref);
|
|
1685
|
-
return pe(a) || Array.isArray(a) ?
|
|
1712
|
+
return pe(a) || Array.isArray(a) ? $e(a, n, u) : { $ref: t.$ref };
|
|
1686
1713
|
}
|
|
1687
|
-
const
|
|
1688
|
-
for (const [a,
|
|
1689
|
-
|
|
1690
|
-
return
|
|
1714
|
+
const i = {};
|
|
1715
|
+
for (const [a, p] of Object.entries(t))
|
|
1716
|
+
i[a] = $e(p, n, u);
|
|
1717
|
+
return i;
|
|
1691
1718
|
}
|
|
1692
|
-
function
|
|
1719
|
+
function Se(t, n, r) {
|
|
1693
1720
|
if (!n) return "";
|
|
1694
|
-
const
|
|
1721
|
+
const u = $e(n, r);
|
|
1695
1722
|
return `${L(4, `\`${d(t)}\``)}
|
|
1696
1723
|
|
|
1697
1724
|
\`\`\`json
|
|
1698
|
-
${JSON.stringify(
|
|
1725
|
+
${JSON.stringify(u, null, 2)}
|
|
1699
1726
|
\`\`\``;
|
|
1700
1727
|
}
|
|
1701
1728
|
function me(t, n, r) {
|
|
1702
1729
|
if (!n || typeof n == "boolean") return "";
|
|
1703
|
-
const { schema:
|
|
1704
|
-
if (
|
|
1730
|
+
const { schema: u, description: i, conversionError: a, pendingConversion: p } = Qt(n, r);
|
|
1731
|
+
if (p) return `${L(4, `\`${d(t)}\``)}
|
|
1705
1732
|
|
|
1706
1733
|
_(schema conversion still in progress)_`;
|
|
1707
1734
|
if (a) return `${L(4, `\`${d(t)}\``)}
|
|
1708
1735
|
|
|
1709
1736
|
_(could not convert schema: ${d(a)})_`;
|
|
1710
|
-
const
|
|
1711
|
-
return
|
|
1737
|
+
const y = i && !u.description ? { ...u, description: i } : u;
|
|
1738
|
+
return Se(t, y, r);
|
|
1712
1739
|
}
|
|
1713
|
-
function
|
|
1740
|
+
function pt(t) {
|
|
1714
1741
|
var n;
|
|
1715
1742
|
switch (t.type) {
|
|
1716
1743
|
case "apiKey":
|
|
@@ -1742,57 +1769,57 @@ function ct(t) {
|
|
|
1742
1769
|
return d(t.type);
|
|
1743
1770
|
}
|
|
1744
1771
|
}
|
|
1745
|
-
function
|
|
1772
|
+
function tn(t) {
|
|
1746
1773
|
if (!(t != null && t.length)) return "";
|
|
1747
1774
|
const n = [];
|
|
1748
1775
|
for (const r of t)
|
|
1749
|
-
if (r != null && r.type && (n.push(`- **${
|
|
1750
|
-
for (const [
|
|
1751
|
-
n.push(` - Flow \`${d(
|
|
1752
|
-
const a = Object.keys(
|
|
1753
|
-
a.length && n.push(` - Available scopes: ${a.map((
|
|
1776
|
+
if (r != null && r.type && (n.push(`- **${pt(r)}**`), r.description && n.push(` ${d(r.description)}`), r.type === "openIdConnect" && r.openIdConnectUrl && n.push(` - OpenID Connect URL: \`${d(r.openIdConnectUrl)}\``), r.type === "oauth2"))
|
|
1777
|
+
for (const [u, i] of Object.entries(r.flows ?? {})) {
|
|
1778
|
+
n.push(` - Flow \`${d(u)}\`:`), i.authorizationUrl && n.push(` - Authorization URL: \`${d(i.authorizationUrl)}\``), i.tokenUrl && n.push(` - Token URL: \`${d(i.tokenUrl)}\``), i.refreshUrl && n.push(` - Refresh URL: \`${d(i.refreshUrl)}\``);
|
|
1779
|
+
const a = Object.keys(i.availableScopes ?? i.scopes ?? {});
|
|
1780
|
+
a.length && n.push(` - Available scopes: ${a.map((p) => `\`${d(p)}\``).join(", ")}`);
|
|
1754
1781
|
}
|
|
1755
1782
|
return n.length ? ["**Authorization:**", n.join(`
|
|
1756
1783
|
`)].join(`
|
|
1757
1784
|
|
|
1758
1785
|
`) : "";
|
|
1759
1786
|
}
|
|
1760
|
-
function
|
|
1787
|
+
function dt(t) {
|
|
1761
1788
|
const n = [], { info: r } = t;
|
|
1762
1789
|
n.push(L(1, d(r.title)));
|
|
1763
|
-
const
|
|
1764
|
-
if (r.license &&
|
|
1765
|
-
const
|
|
1766
|
-
|
|
1790
|
+
const u = [`**Version:** ${d(r.version)}`];
|
|
1791
|
+
if (r.license && u.push(`**License:** ${d(r.license.name)}${r.license.url ? ` (${d(r.license.url)})` : ""}`), r.contact) {
|
|
1792
|
+
const i = [r.contact.name, r.contact.email].filter(Boolean).map(d).join(" ");
|
|
1793
|
+
i && u.push(`**Contact:** ${i}`);
|
|
1767
1794
|
}
|
|
1768
|
-
if (n.push(
|
|
1795
|
+
if (n.push(u.join(`
|
|
1769
1796
|
`)), r.description && n.push(d(r.description)), t.servers && Object.keys(t.servers).length) {
|
|
1770
|
-
const
|
|
1771
|
-
for (const [a,
|
|
1772
|
-
|
|
1773
|
-
const
|
|
1774
|
-
|
|
1797
|
+
const i = [L(2, "Servers")];
|
|
1798
|
+
for (const [a, p] of Object.entries(t.servers)) {
|
|
1799
|
+
i.push(L(3, d(a)));
|
|
1800
|
+
const y = [`**Host:** \`${d(p.host)}${p.pathname ? d(p.pathname) : ""}\``];
|
|
1801
|
+
y.push(`**Protocol:** ${d(p.protocol)}${p.protocolVersion ? ` ${d(p.protocolVersion)}` : ""}`), p.description && y.push(d(p.description)), i.push(y.join(`
|
|
1775
1802
|
`));
|
|
1776
|
-
const h =
|
|
1777
|
-
h &&
|
|
1803
|
+
const h = tn(p.security);
|
|
1804
|
+
h && i.push(h);
|
|
1778
1805
|
}
|
|
1779
|
-
n.push(
|
|
1806
|
+
n.push(i.join(`
|
|
1780
1807
|
|
|
1781
1808
|
`));
|
|
1782
1809
|
}
|
|
1783
1810
|
return n;
|
|
1784
1811
|
}
|
|
1785
|
-
function
|
|
1786
|
-
var a,
|
|
1787
|
-
const r =
|
|
1812
|
+
function nn(t, n = ke(t)) {
|
|
1813
|
+
var a, p, y;
|
|
1814
|
+
const r = dt(t);
|
|
1788
1815
|
if (t.operations && Object.keys(t.operations).length) {
|
|
1789
1816
|
const h = [L(2, "Operations")];
|
|
1790
|
-
for (const [
|
|
1791
|
-
const
|
|
1792
|
-
h.push(L(3, `${d((a =
|
|
1817
|
+
for (const [R, E] of Object.entries(t.operations)) {
|
|
1818
|
+
const $ = E.channel;
|
|
1819
|
+
h.push(L(3, `${d((a = E.action) == null ? void 0 : a.toUpperCase())} \`${d(R)}\``));
|
|
1793
1820
|
const w = [];
|
|
1794
|
-
|
|
1795
|
-
const N =
|
|
1821
|
+
$ != null && $.address && w.push(`**Channel:** \`${d($.address)}\``), E.summary && w.push(d(E.summary)), E.description && w.push(d(E.description));
|
|
1822
|
+
const N = E.messages ?? [];
|
|
1796
1823
|
N.length && w.push(`**Messages:** ${N.map((U) => `\`${d(U.name ?? U.title ?? "message")}\``).join(", ")}`), h.push(w.join(`
|
|
1797
1824
|
|
|
1798
1825
|
`));
|
|
@@ -1801,25 +1828,25 @@ function Jt(t, n = Re(t)) {
|
|
|
1801
1828
|
|
|
1802
1829
|
`));
|
|
1803
1830
|
}
|
|
1804
|
-
const
|
|
1805
|
-
if (
|
|
1831
|
+
const u = (p = t.components) == null ? void 0 : p.messages;
|
|
1832
|
+
if (u && Object.keys(u).length) {
|
|
1806
1833
|
const h = [L(2, "Messages")];
|
|
1807
|
-
for (const [
|
|
1808
|
-
h.push(L(3, d(
|
|
1809
|
-
const
|
|
1810
|
-
|
|
1834
|
+
for (const [R, E] of Object.entries(u)) {
|
|
1835
|
+
h.push(L(3, d(E.title ?? E.name ?? R)));
|
|
1836
|
+
const $ = [];
|
|
1837
|
+
E.summary && $.push(d(E.summary)), E.description && $.push(d(E.description)), E.contentType && $.push(`**Content-Type:** \`${d(E.contentType)}\``), h.push($.join(`
|
|
1811
1838
|
|
|
1812
|
-
`)),
|
|
1839
|
+
`)), E.payload && h.push(me("payload", E.payload, n)), E.headers && h.push(me("headers", E.headers, n));
|
|
1813
1840
|
}
|
|
1814
1841
|
r.push(h.join(`
|
|
1815
1842
|
|
|
1816
1843
|
`));
|
|
1817
1844
|
}
|
|
1818
|
-
const
|
|
1819
|
-
if (
|
|
1845
|
+
const i = (y = t.components) == null ? void 0 : y.schemas;
|
|
1846
|
+
if (i && Object.keys(i).length) {
|
|
1820
1847
|
const h = [L(2, "Schemas")];
|
|
1821
|
-
for (const [
|
|
1822
|
-
h.push(me(
|
|
1848
|
+
for (const [R, E] of Object.entries(i))
|
|
1849
|
+
h.push(me(R, E, n));
|
|
1823
1850
|
r.push(h.join(`
|
|
1824
1851
|
|
|
1825
1852
|
`));
|
|
@@ -1828,141 +1855,141 @@ function Jt(t, n = Re(t)) {
|
|
|
1828
1855
|
|
|
1829
1856
|
`);
|
|
1830
1857
|
}
|
|
1831
|
-
function
|
|
1832
|
-
var
|
|
1833
|
-
const
|
|
1834
|
-
|
|
1858
|
+
function rn(t, n, r) {
|
|
1859
|
+
var y;
|
|
1860
|
+
const u = n.channel, i = [L(3, `${d((y = n.action) == null ? void 0 : y.toUpperCase())} \`${d(t)}\``)], a = [];
|
|
1861
|
+
u != null && u.address && a.push(`**Channel:** \`${d(u.address)}\``), n.summary && a.push(d(n.summary)), n.description && a.push(d(n.description)), i.push(a.join(`
|
|
1835
1862
|
|
|
1836
1863
|
`));
|
|
1837
|
-
const
|
|
1838
|
-
for (const h of
|
|
1839
|
-
const
|
|
1840
|
-
h.summary &&
|
|
1864
|
+
const p = n.messages ?? [];
|
|
1865
|
+
for (const h of p) {
|
|
1866
|
+
const R = [L(4, d(h.title ?? h.name ?? "Message"))], E = [];
|
|
1867
|
+
h.summary && E.push(d(h.summary)), h.description && E.push(d(h.description)), h.contentType && E.push(`**Content-Type:** \`${d(h.contentType)}\``), E.length && R.push(E.join(`
|
|
1841
1868
|
|
|
1842
|
-
`)),
|
|
1869
|
+
`)), i.push(R.join(`
|
|
1843
1870
|
|
|
1844
|
-
`)), h.payload &&
|
|
1871
|
+
`)), h.payload && i.push(me("payload", h.payload, r)), h.headers && i.push(me("headers", h.headers, r));
|
|
1845
1872
|
}
|
|
1846
|
-
return
|
|
1873
|
+
return i.filter(Boolean).join(`
|
|
1847
1874
|
|
|
1848
1875
|
`);
|
|
1849
1876
|
}
|
|
1850
|
-
function
|
|
1877
|
+
function on(t, n, r = ke(t)) {
|
|
1851
1878
|
var a;
|
|
1852
|
-
const
|
|
1853
|
-
if (!
|
|
1854
|
-
const
|
|
1855
|
-
return
|
|
1879
|
+
const u = (a = t.operations) == null ? void 0 : a[n];
|
|
1880
|
+
if (!u) return "";
|
|
1881
|
+
const i = dt(t);
|
|
1882
|
+
return i.push(rn(n, u, r)), i.filter(Boolean).join(`
|
|
1856
1883
|
|
|
1857
1884
|
`);
|
|
1858
1885
|
}
|
|
1859
|
-
function
|
|
1886
|
+
function sn(t, n) {
|
|
1860
1887
|
if (!t.length || !n) return "";
|
|
1861
1888
|
const r = /* @__PURE__ */ new Map();
|
|
1862
1889
|
for (const a of t)
|
|
1863
|
-
for (const [
|
|
1864
|
-
if (!
|
|
1865
|
-
const h = r.get(
|
|
1866
|
-
r.set(
|
|
1890
|
+
for (const [p, y] of Object.entries(a)) {
|
|
1891
|
+
if (!y.length) continue;
|
|
1892
|
+
const h = r.get(p) ?? [];
|
|
1893
|
+
r.set(p, Array.from(/* @__PURE__ */ new Set([...h, ...y])));
|
|
1867
1894
|
}
|
|
1868
|
-
const
|
|
1869
|
-
for (const a of
|
|
1870
|
-
const
|
|
1871
|
-
if (!
|
|
1872
|
-
const
|
|
1873
|
-
if (
|
|
1874
|
-
for (const [h,
|
|
1875
|
-
|
|
1876
|
-
const
|
|
1877
|
-
|
|
1878
|
-
` - ${
|
|
1895
|
+
const u = Array.from(new Set(t.flatMap((a) => Object.keys(a)))), i = [];
|
|
1896
|
+
for (const a of u) {
|
|
1897
|
+
const p = n[a];
|
|
1898
|
+
if (!p) continue;
|
|
1899
|
+
const y = r.get(a);
|
|
1900
|
+
if (i.push(`- **${pt(p)}** (\`${d(a)}\`)`), p.description && i.push(` ${d(p.description)}`), p.type === "openIdConnect" && p.openIdConnectUrl && i.push(` - OpenID Connect URL: \`${d(p.openIdConnectUrl)}\``), p.type === "oauth2")
|
|
1901
|
+
for (const [h, R] of Object.entries(p.flows ?? {})) {
|
|
1902
|
+
i.push(` - Flow \`${d(h)}\`:`), R.authorizationUrl && i.push(` - Authorization URL: \`${d(R.authorizationUrl)}\``), R.tokenUrl && i.push(` - Token URL: \`${d(R.tokenUrl)}\``), R.refreshUrl && i.push(` - Refresh URL: \`${d(R.refreshUrl)}\``);
|
|
1903
|
+
const E = y != null && y.length ? y : Object.keys(R.scopes ?? {});
|
|
1904
|
+
E.length && i.push(
|
|
1905
|
+
` - ${y != null && y.length ? "Required scopes" : "Scopes"}: ${E.map(($) => `\`${d($)}\``).join(", ")}`
|
|
1879
1906
|
);
|
|
1880
1907
|
}
|
|
1881
|
-
else
|
|
1908
|
+
else y != null && y.length && i.push(` - Required scopes: ${y.map((h) => `\`${d(h)}\``).join(", ")}`);
|
|
1882
1909
|
}
|
|
1883
|
-
return
|
|
1910
|
+
return i.length ? ["**Authorization:**", i.join(`
|
|
1884
1911
|
`)].join(`
|
|
1885
1912
|
|
|
1886
1913
|
`) : "";
|
|
1887
1914
|
}
|
|
1888
|
-
function
|
|
1915
|
+
function mt(t, n, r, u, i, a) {
|
|
1889
1916
|
var w;
|
|
1890
|
-
const
|
|
1891
|
-
r.summary &&
|
|
1892
|
-
const h = r.security ?? a ?? [],
|
|
1893
|
-
|
|
1917
|
+
const p = [L(3, `${t.toUpperCase()} \`${d(n)}\``)], y = [];
|
|
1918
|
+
r.summary && y.push(d(r.summary)), r.description && y.push(d(r.description)), r.deprecated && y.push("**Deprecated**");
|
|
1919
|
+
const h = r.security ?? a ?? [], R = sn(h, i);
|
|
1920
|
+
R && y.push(R);
|
|
1894
1921
|
for (const N of ["path", "query", "header", "cookie"]) {
|
|
1895
1922
|
const U = (r.parameters ?? []).filter((Y) => Y.in === N);
|
|
1896
1923
|
if (U.length) {
|
|
1897
|
-
|
|
1924
|
+
y.push(`**${N[0].toUpperCase()}${N.slice(1)} Parameters:**`);
|
|
1898
1925
|
for (const Y of U) {
|
|
1899
|
-
const
|
|
1900
|
-
|
|
1901
|
-
`- \`${d(Y.name)}\`${Y.required ? " (required)" : ""}${
|
|
1926
|
+
const D = Y.schema;
|
|
1927
|
+
y.push(
|
|
1928
|
+
`- \`${d(Y.name)}\`${Y.required ? " (required)" : ""}${D != null && D.type ? ` — ${d(D.type)}` : ""}${Y.description ? `: ${d(Y.description)}` : ""}`
|
|
1902
1929
|
);
|
|
1903
1930
|
}
|
|
1904
1931
|
}
|
|
1905
1932
|
}
|
|
1906
|
-
|
|
1933
|
+
p.push(y.join(`
|
|
1907
1934
|
|
|
1908
1935
|
`));
|
|
1909
|
-
const
|
|
1910
|
-
for (const [N, U] of Object.entries(
|
|
1911
|
-
|
|
1912
|
-
[`**Request Body** (\`${d(N)}\`)`,
|
|
1936
|
+
const E = ((w = r.requestBody) == null ? void 0 : w.content) ?? {};
|
|
1937
|
+
for (const [N, U] of Object.entries(E))
|
|
1938
|
+
p.push(
|
|
1939
|
+
[`**Request Body** (\`${d(N)}\`)`, Se("body", U.schema, u)].join(
|
|
1913
1940
|
`
|
|
1914
1941
|
|
|
1915
1942
|
`
|
|
1916
1943
|
)
|
|
1917
1944
|
);
|
|
1918
|
-
const
|
|
1919
|
-
for (const [N, U] of Object.entries(
|
|
1945
|
+
const $ = r.responses ?? {};
|
|
1946
|
+
for (const [N, U] of Object.entries($)) {
|
|
1920
1947
|
const Y = [L(4, `${N}${U.description ? `: ${d(U.description)}` : ""}`)];
|
|
1921
|
-
for (const [
|
|
1948
|
+
for (const [D, Z] of Object.entries(U.content ?? {}))
|
|
1922
1949
|
Y.push(
|
|
1923
|
-
[`**Body** (\`${d(
|
|
1950
|
+
[`**Body** (\`${d(D)}\`)`, Se("body", Z.schema, u)].join(
|
|
1924
1951
|
`
|
|
1925
1952
|
|
|
1926
1953
|
`
|
|
1927
1954
|
)
|
|
1928
1955
|
);
|
|
1929
|
-
|
|
1956
|
+
p.push(Y.join(`
|
|
1930
1957
|
|
|
1931
1958
|
`));
|
|
1932
1959
|
}
|
|
1933
|
-
return
|
|
1960
|
+
return p.join(`
|
|
1934
1961
|
|
|
1935
1962
|
`);
|
|
1936
1963
|
}
|
|
1937
|
-
function
|
|
1938
|
-
var
|
|
1939
|
-
const r = [], { info:
|
|
1940
|
-
if (r.push(L(1, d(
|
|
1941
|
-
const
|
|
1964
|
+
function un(t, n = ke(t)) {
|
|
1965
|
+
var p, y, h, R, E;
|
|
1966
|
+
const r = [], { info: u } = t;
|
|
1967
|
+
if (r.push(L(1, d(u.title))), r.push(`**Version:** ${d(u.version)}`), u.description && r.push(d(u.description)), (p = t.servers) != null && p.length) {
|
|
1968
|
+
const $ = [L(2, "Servers")];
|
|
1942
1969
|
for (const w of t.servers)
|
|
1943
|
-
|
|
1944
|
-
r.push(
|
|
1970
|
+
$.push(`- \`${d(w.url)}\`${w.description ? ` — ${d(w.description)}` : ""}`);
|
|
1971
|
+
r.push($.join(`
|
|
1945
1972
|
`));
|
|
1946
1973
|
}
|
|
1947
|
-
const
|
|
1948
|
-
if (
|
|
1949
|
-
const
|
|
1950
|
-
for (const { method: w, path: N } of
|
|
1951
|
-
const U = (h = (
|
|
1952
|
-
U &&
|
|
1953
|
-
|
|
1974
|
+
const i = t.paths ? ft(t.paths) : [];
|
|
1975
|
+
if (i.length) {
|
|
1976
|
+
const $ = [L(2, "Endpoints")];
|
|
1977
|
+
for (const { method: w, path: N } of i) {
|
|
1978
|
+
const U = (h = (y = t.paths) == null ? void 0 : y[N]) == null ? void 0 : h[w];
|
|
1979
|
+
U && $.push(
|
|
1980
|
+
mt(w, N, U, n, (R = t.components) == null ? void 0 : R.securitySchemes, t.security)
|
|
1954
1981
|
);
|
|
1955
1982
|
}
|
|
1956
|
-
r.push(
|
|
1983
|
+
r.push($.join(`
|
|
1957
1984
|
|
|
1958
1985
|
`));
|
|
1959
1986
|
}
|
|
1960
|
-
const a = (
|
|
1987
|
+
const a = (E = t.components) == null ? void 0 : E.schemas;
|
|
1961
1988
|
if (a && Object.keys(a).length) {
|
|
1962
|
-
const
|
|
1989
|
+
const $ = [L(2, "Schemas")];
|
|
1963
1990
|
for (const [w, N] of Object.entries(a))
|
|
1964
|
-
|
|
1965
|
-
r.push(
|
|
1991
|
+
$.push(Se(w, N, n));
|
|
1992
|
+
r.push($.join(`
|
|
1966
1993
|
|
|
1967
1994
|
`));
|
|
1968
1995
|
}
|
|
@@ -1970,23 +1997,23 @@ function rn(t, n = Re(t)) {
|
|
|
1970
1997
|
|
|
1971
1998
|
`);
|
|
1972
1999
|
}
|
|
1973
|
-
function
|
|
1974
|
-
var
|
|
1975
|
-
const
|
|
1976
|
-
if (!
|
|
1977
|
-
const a = [], { info:
|
|
1978
|
-
if (a.push(L(1, d(
|
|
1979
|
-
const
|
|
2000
|
+
function an(t, n, r, u = ke(t)) {
|
|
2001
|
+
var y, h, R, E;
|
|
2002
|
+
const i = (h = (y = t.paths) == null ? void 0 : y[r]) == null ? void 0 : h[n];
|
|
2003
|
+
if (!i) return "";
|
|
2004
|
+
const a = [], { info: p } = t;
|
|
2005
|
+
if (a.push(L(1, d(p.title))), a.push(`**Version:** ${d(p.version)}`), p.description && a.push(d(p.description)), (R = t.servers) != null && R.length) {
|
|
2006
|
+
const $ = [L(2, "Servers")];
|
|
1980
2007
|
for (const w of t.servers)
|
|
1981
|
-
|
|
1982
|
-
a.push(
|
|
2008
|
+
$.push(`- \`${d(w.url)}\`${w.description ? ` — ${d(w.description)}` : ""}`);
|
|
2009
|
+
a.push($.join(`
|
|
1983
2010
|
`));
|
|
1984
2011
|
}
|
|
1985
|
-
return a.push(
|
|
2012
|
+
return a.push(mt(n, r, i, u, (E = t.components) == null ? void 0 : E.securitySchemes, t.security)), a.filter(Boolean).join(`
|
|
1986
2013
|
|
|
1987
2014
|
`);
|
|
1988
2015
|
}
|
|
1989
|
-
function
|
|
2016
|
+
function yt(t) {
|
|
1990
2017
|
return {
|
|
1991
2018
|
...t,
|
|
1992
2019
|
title: (n) => t.title(n),
|
|
@@ -1995,11 +2022,11 @@ function pt(t) {
|
|
|
1995
2022
|
toMarkdown: (n, r) => t.toMarkdown(n, r)
|
|
1996
2023
|
};
|
|
1997
2024
|
}
|
|
1998
|
-
const
|
|
2025
|
+
const ie = (t) => {
|
|
1999
2026
|
var r;
|
|
2000
2027
|
return typeof t != "string" ? void 0 : ((r = t.trim().split(`
|
|
2001
2028
|
`)[0]) == null ? void 0 : r.trim()) || void 0;
|
|
2002
|
-
},
|
|
2029
|
+
}, cn = (t) => ct.some((n) => n === t), fn = yt({
|
|
2003
2030
|
name: "OpenAPI",
|
|
2004
2031
|
matches: (t) => typeof t.openapi == "string" || typeof t.swagger == "string",
|
|
2005
2032
|
sectionTitle: "Endpoints",
|
|
@@ -2009,25 +2036,25 @@ const se = (t) => {
|
|
|
2009
2036
|
},
|
|
2010
2037
|
summary: (t) => {
|
|
2011
2038
|
var n;
|
|
2012
|
-
return
|
|
2039
|
+
return ie((n = t.info) == null ? void 0 : n.description);
|
|
2013
2040
|
},
|
|
2014
|
-
targets: (t) =>
|
|
2015
|
-
var a,
|
|
2016
|
-
const
|
|
2041
|
+
targets: (t) => ft(t.paths ?? {}).map(({ key: n, method: r, path: u }) => {
|
|
2042
|
+
var a, p;
|
|
2043
|
+
const i = (p = (a = t.paths) == null ? void 0 : a[u]) == null ? void 0 : p[r];
|
|
2017
2044
|
return {
|
|
2018
2045
|
key: n,
|
|
2019
|
-
label: `${r.toUpperCase()} ${
|
|
2020
|
-
summary:
|
|
2021
|
-
target: { kind: "operation", document: t, method: r, path:
|
|
2046
|
+
label: `${r.toUpperCase()} ${u}`,
|
|
2047
|
+
summary: ie(i == null ? void 0 : i.summary) ?? ie(i == null ? void 0 : i.description),
|
|
2048
|
+
target: { kind: "operation", document: t, method: r, path: u }
|
|
2022
2049
|
};
|
|
2023
2050
|
}),
|
|
2024
2051
|
toMarkdown: (t, n) => {
|
|
2025
|
-
if (!n || n.kind === "document") return
|
|
2026
|
-
if (typeof n.path != "string" || !
|
|
2052
|
+
if (!n || n.kind === "document") return un(t);
|
|
2053
|
+
if (typeof n.path != "string" || !cn(n.method))
|
|
2027
2054
|
throw new Error("[apiuikit] An OpenAPI operation target requires a valid method and path.");
|
|
2028
|
-
return
|
|
2055
|
+
return an(t, n.method, n.path);
|
|
2029
2056
|
}
|
|
2030
|
-
}),
|
|
2057
|
+
}), ln = yt({
|
|
2031
2058
|
name: "AsyncAPI",
|
|
2032
2059
|
matches: (t) => typeof t.asyncapi == "string",
|
|
2033
2060
|
sectionTitle: "Operations",
|
|
@@ -2037,77 +2064,77 @@ const se = (t) => {
|
|
|
2037
2064
|
},
|
|
2038
2065
|
summary: (t) => {
|
|
2039
2066
|
var n;
|
|
2040
|
-
return
|
|
2067
|
+
return ie((n = t.info) == null ? void 0 : n.description);
|
|
2041
2068
|
},
|
|
2042
2069
|
targets: (t) => Object.entries(t.operations ?? {}).map(([n, r]) => ({
|
|
2043
2070
|
key: n,
|
|
2044
2071
|
label: r != null && r.action ? `${r.action.toUpperCase()} ${n}` : n,
|
|
2045
|
-
summary:
|
|
2072
|
+
summary: ie(r == null ? void 0 : r.summary) ?? ie(r == null ? void 0 : r.description),
|
|
2046
2073
|
target: { kind: "operation", document: t, id: n }
|
|
2047
2074
|
})),
|
|
2048
2075
|
toMarkdown: (t, n) => {
|
|
2049
|
-
if (!n || n.kind === "document") return
|
|
2076
|
+
if (!n || n.kind === "document") return nn(t);
|
|
2050
2077
|
if (typeof n.id != "string" || !n.id)
|
|
2051
2078
|
throw new Error("[apiuikit] An AsyncAPI operation target requires an operation id.");
|
|
2052
|
-
return
|
|
2079
|
+
return on(t, n.id);
|
|
2053
2080
|
}
|
|
2054
|
-
}),
|
|
2055
|
-
function
|
|
2056
|
-
const n = typeof t == "object" && t !== null ? t : {}, r =
|
|
2081
|
+
}), at = [fn, ln];
|
|
2082
|
+
function He(t) {
|
|
2083
|
+
const n = typeof t == "object" && t !== null ? t : {}, r = at.find((u) => u.matches(n));
|
|
2057
2084
|
if (!r)
|
|
2058
2085
|
throw new Error(
|
|
2059
|
-
`[apiuikit] Unrecognized document: expected a top-level "openapi", "swagger", or "asyncapi" version key. Supported specs: ${
|
|
2086
|
+
`[apiuikit] Unrecognized document: expected a top-level "openapi", "swagger", or "asyncapi" version key. Supported specs: ${at.map((u) => u.name).join(", ")}.`
|
|
2060
2087
|
);
|
|
2061
2088
|
return r;
|
|
2062
2089
|
}
|
|
2063
|
-
function
|
|
2090
|
+
function pn(t) {
|
|
2064
2091
|
return t.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
|
|
2065
2092
|
}
|
|
2066
|
-
function
|
|
2067
|
-
return
|
|
2093
|
+
function mn(t) {
|
|
2094
|
+
return He(t).targets(t);
|
|
2068
2095
|
}
|
|
2069
|
-
function
|
|
2070
|
-
const r =
|
|
2096
|
+
function yn(t, n) {
|
|
2097
|
+
const r = He(t);
|
|
2071
2098
|
if (n && n.document !== t)
|
|
2072
2099
|
throw new Error("[apiuikit] Markdown target belongs to a different document.");
|
|
2073
2100
|
return r.toMarkdown(t, n);
|
|
2074
2101
|
}
|
|
2075
|
-
function
|
|
2076
|
-
const r =
|
|
2077
|
-
|
|
2078
|
-
const
|
|
2079
|
-
if (
|
|
2080
|
-
|
|
2081
|
-
for (const { entry: w, href: N } of
|
|
2082
|
-
|
|
2102
|
+
function hn(t, n = {}) {
|
|
2103
|
+
const r = He(t), { baseUrl: u, url: i, optional: a } = n, p = (u == null ? void 0 : u.replace(/\/+$/, "")) ?? "", h = i ?? ((w) => `${p}/${pn(w.key)}.md`), R = [`# ${n.title ?? r.title(t)}`], E = n.summary ?? r.summary(t);
|
|
2104
|
+
E && R.push("", `> ${E}`);
|
|
2105
|
+
const $ = r.targets(t).map((w) => ({ entry: w, href: h(w) })).filter((w) => !!w.href);
|
|
2106
|
+
if ($.length) {
|
|
2107
|
+
R.push("", `## ${r.sectionTitle}`, "");
|
|
2108
|
+
for (const { entry: w, href: N } of $)
|
|
2109
|
+
R.push(`- [${w.label}](${N})${w.summary ? `: ${w.summary}` : ""}`);
|
|
2083
2110
|
}
|
|
2084
2111
|
if (a != null && a.length) {
|
|
2085
|
-
|
|
2112
|
+
R.push("", "## Optional", "");
|
|
2086
2113
|
for (const w of a)
|
|
2087
|
-
|
|
2114
|
+
R.push(`- [${w.label}](${w.url})${w.description ? `: ${w.description}` : ""}`);
|
|
2088
2115
|
}
|
|
2089
|
-
return
|
|
2116
|
+
return R.push(""), R.join(`
|
|
2090
2117
|
`);
|
|
2091
2118
|
}
|
|
2092
|
-
const
|
|
2119
|
+
const dn = [
|
|
2093
2120
|
"The following is API documentation in Markdown.",
|
|
2094
2121
|
"Use it to answer questions about this API and help write client code.",
|
|
2095
2122
|
"Stick to what is documented below - do not invent endpoints, fields, or behavior."
|
|
2096
2123
|
];
|
|
2097
|
-
function
|
|
2098
|
-
return `${["> ## Agent Instructions", ...
|
|
2124
|
+
function gn(t) {
|
|
2125
|
+
return `${["> ## Agent Instructions", ...dn.map((r) => `> ${r}`)].join(`
|
|
2099
2126
|
`)}
|
|
2100
2127
|
|
|
2101
2128
|
${t.trimStart()}`;
|
|
2102
2129
|
}
|
|
2103
2130
|
export {
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2131
|
+
on as asyncApiOperationToMarkdown,
|
|
2132
|
+
nn as asyncApiToMarkdown,
|
|
2133
|
+
hn as documentToLlmsTxt,
|
|
2134
|
+
yn as documentToMarkdown,
|
|
2135
|
+
mn as listDocumentTargets,
|
|
2136
|
+
gn as markdownForLlm,
|
|
2137
|
+
an as openApiEndpointToMarkdown,
|
|
2138
|
+
un as openApiToMarkdown,
|
|
2139
|
+
pn as targetSlug
|
|
2113
2140
|
};
|