@transcend-io/mcp-server-consent 1.2.3 → 1.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +2 -2
- package/dist/index.d.mts +6 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/scopes-BZjv3z-c.mjs +1867 -0
- package/dist/scopes-BZjv3z-c.mjs.map +1 -0
- package/package.json +4 -4
- package/dist/scopes-BFDLHW1-.mjs +0 -1855
- package/dist/scopes-BFDLHW1-.mjs.map +0 -1
package/dist/scopes-BFDLHW1-.mjs
DELETED
|
@@ -1,1855 +0,0 @@
|
|
|
1
|
-
import { EmptySchema, ErrorCode, McpClientCapability, OffsetPaginationSchema, ToolError, createListResult, createToolResult, defineTool, defineToolWithCapabilities, defineUiResource, derivePageInfo, tenantCacheKey, viewHtml, z } from "@transcend-io/mcp-server-base";
|
|
2
|
-
import { AirgapBundleAnalyticsBinInterval, AirgapBundleAnalyticsDimension, AirgapBundleAnalyticsMetric, ConsentManagerAnalyticsDataSource, ConsentManagerMetricBin, ConsentTrackerStatus, ConsentTrackerType, CookieOrderField, DataFlowOrderField, DataFlowScope, OrderDirection, ScopeName, TriageAction } from "@transcend-io/privacy-types";
|
|
3
|
-
import { AIRGAP_BUNDLE_AGGREGATE_ANALYTICS, AIRGAP_BUNDLE_TIMESERIES_ANALYTICS, CONSENT_MANAGER_ANALYTICS_DATA, COOKIES, COOKIE_STATS, DATA_FLOWS, DELETE_COOKIES, DELETE_DATA_FLOWS, EXPERIENCES, FETCH_CONSENT_MANAGER, FETCH_CONSENT_MANAGER_ID, PURPOSES, UPDATE_DATA_FLOWS, UPDATE_OR_CREATE_COOKIES } from "@transcend-io/sdk";
|
|
4
|
-
import { makeEnum } from "@transcend-io/type-utils";
|
|
5
|
-
//#region src/resolveAirgapBundleId.ts
|
|
6
|
-
/** Bundle IDs keyed by {@link tenantCacheKey}. */
|
|
7
|
-
const bundleIdCache = /* @__PURE__ */ new Map();
|
|
8
|
-
/**
|
|
9
|
-
* Lazily resolve the airgap bundle ID from the API key / session org.
|
|
10
|
-
*
|
|
11
|
-
* In HTTP mode, caches per tenant (org / credential) so sessions that swap
|
|
12
|
-
* per-request auth do not reuse another organization's consent manager ID.
|
|
13
|
-
* In stdio mode, uses a stable process key so OAuth token refresh does not
|
|
14
|
-
* force a re-resolve.
|
|
15
|
-
*/
|
|
16
|
-
async function resolveAirgapBundleId(graphql) {
|
|
17
|
-
const key = tenantCacheKey();
|
|
18
|
-
const cached = bundleIdCache.get(key);
|
|
19
|
-
if (cached) return cached;
|
|
20
|
-
const id = (await graphql.makeRequest(FETCH_CONSENT_MANAGER_ID, {})).consentManager.consentManager.id;
|
|
21
|
-
bundleIdCache.set(key, id);
|
|
22
|
-
return id;
|
|
23
|
-
}
|
|
24
|
-
//#endregion
|
|
25
|
-
//#region src/tools/consent_bulk_triage.ts
|
|
26
|
-
const BulkTriageItemSchema = z.object({
|
|
27
|
-
type: z.nativeEnum(ConsentTrackerType).describe("Item type"),
|
|
28
|
-
id: z.string().describe("Item ID (for data flows) or cookie name (for cookies)"),
|
|
29
|
-
action: z.nativeEnum(TriageAction).describe("Action to take: APPROVE or JUNK"),
|
|
30
|
-
trackingPurposes: z.array(z.string()).optional().describe("Tracking purposes to assign (required when approving)"),
|
|
31
|
-
service: z.string().optional().describe("Service name to assign")
|
|
32
|
-
});
|
|
33
|
-
const BulkTriageSchema = z.object({ items: z.array(BulkTriageItemSchema).min(1).describe("Items to triage") });
|
|
34
|
-
function createConsentBulkTriageTool(clients) {
|
|
35
|
-
return defineTool({
|
|
36
|
-
name: "consent_bulk_triage",
|
|
37
|
-
description: "Bulk triage action: approve or junk multiple cookies and data flows in a single call. For cookies, APPROVE sets status=LIVE; JUNK sets isJunk=true. For data flows, same behavior. Optionally assign tracking purposes and service when approving.",
|
|
38
|
-
category: "Consent Management",
|
|
39
|
-
readOnly: false,
|
|
40
|
-
annotations: {
|
|
41
|
-
readOnlyHint: false,
|
|
42
|
-
destructiveHint: true,
|
|
43
|
-
idempotentHint: false
|
|
44
|
-
},
|
|
45
|
-
zodSchema: BulkTriageSchema,
|
|
46
|
-
handler: async ({ items }) => {
|
|
47
|
-
const airgapBundleId = await resolveAirgapBundleId(clients.graphql);
|
|
48
|
-
const cookieItems = items.filter((i) => i.type === "cookie");
|
|
49
|
-
const dfItems = items.filter((i) => i.type === "data_flow");
|
|
50
|
-
const results = {
|
|
51
|
-
cookies: [],
|
|
52
|
-
dataFlows: []
|
|
53
|
-
};
|
|
54
|
-
if (cookieItems.length > 0) {
|
|
55
|
-
const cookieInputs = cookieItems.map((item) => ({
|
|
56
|
-
name: item.id,
|
|
57
|
-
...item.action === "APPROVE" ? {
|
|
58
|
-
status: ConsentTrackerStatus.Live,
|
|
59
|
-
isJunk: false
|
|
60
|
-
} : {
|
|
61
|
-
status: ConsentTrackerStatus.Live,
|
|
62
|
-
isJunk: true
|
|
63
|
-
},
|
|
64
|
-
...item.trackingPurposes ? { trackingPurposes: item.trackingPurposes } : {},
|
|
65
|
-
...item.service ? { service: item.service } : {}
|
|
66
|
-
}));
|
|
67
|
-
await clients.graphql.makeRequest(UPDATE_OR_CREATE_COOKIES, {
|
|
68
|
-
airgapBundleId,
|
|
69
|
-
cookies: cookieInputs
|
|
70
|
-
});
|
|
71
|
-
results.cookies = cookieInputs.map((c) => ({
|
|
72
|
-
name: c.name,
|
|
73
|
-
action: c.isJunk ? "JUNKED" : "APPROVED",
|
|
74
|
-
status: c.status || "LIVE"
|
|
75
|
-
}));
|
|
76
|
-
}
|
|
77
|
-
if (dfItems.length > 0) {
|
|
78
|
-
const dfInputs = dfItems.map((item) => ({
|
|
79
|
-
id: item.id,
|
|
80
|
-
...item.action === "APPROVE" ? {
|
|
81
|
-
status: ConsentTrackerStatus.Live,
|
|
82
|
-
isJunk: false
|
|
83
|
-
} : {
|
|
84
|
-
status: ConsentTrackerStatus.Live,
|
|
85
|
-
isJunk: true
|
|
86
|
-
},
|
|
87
|
-
...item.trackingPurposes ? { trackingType: item.trackingPurposes } : {},
|
|
88
|
-
...item.service ? { service: item.service } : {}
|
|
89
|
-
}));
|
|
90
|
-
results.dataFlows = (await clients.graphql.makeRequest(UPDATE_DATA_FLOWS, {
|
|
91
|
-
airgapBundleId,
|
|
92
|
-
dataFlows: dfInputs
|
|
93
|
-
})).updateDataFlows.dataFlows.map((df) => ({
|
|
94
|
-
id: df.id,
|
|
95
|
-
action: df.isJunk ? "JUNKED" : "APPROVED",
|
|
96
|
-
status: df.status
|
|
97
|
-
}));
|
|
98
|
-
}
|
|
99
|
-
return createToolResult(true, {
|
|
100
|
-
totalProcessed: cookieItems.length + dfItems.length,
|
|
101
|
-
...results
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
//#endregion
|
|
107
|
-
//#region src/tools/consent_delete_cookies.ts
|
|
108
|
-
const DeleteCookiesSchema = z.object({ ids: z.array(z.string()).min(1).describe("Cookie IDs to permanently delete. Get IDs from consent_list_cookies.") });
|
|
109
|
-
/**
|
|
110
|
-
* Permanently delete cookies by ID. Hidden from agents (`visibility: ['app']`);
|
|
111
|
-
* intended for MCP App views that already collected an explicit user action.
|
|
112
|
-
*/
|
|
113
|
-
function createConsentDeleteCookiesTool(clients) {
|
|
114
|
-
return defineTool({
|
|
115
|
-
name: "consent_delete_cookies",
|
|
116
|
-
description: "Permanently delete one or more cookies by ID. Irreversible — prefer consent_update_cookies with isJunk=true to junk instead of delete. App-only: callable by MCP App views, not listed to agents.",
|
|
117
|
-
category: "Consent Management",
|
|
118
|
-
readOnly: false,
|
|
119
|
-
visibility: ["app"],
|
|
120
|
-
annotations: {
|
|
121
|
-
readOnlyHint: false,
|
|
122
|
-
destructiveHint: true,
|
|
123
|
-
idempotentHint: false
|
|
124
|
-
},
|
|
125
|
-
zodSchema: DeleteCookiesSchema,
|
|
126
|
-
handler: async ({ ids }) => {
|
|
127
|
-
const airgapBundleId = await resolveAirgapBundleId(clients.graphql);
|
|
128
|
-
const success = (await clients.graphql.makeRequest(DELETE_COOKIES, { input: {
|
|
129
|
-
airgapBundleId,
|
|
130
|
-
ids
|
|
131
|
-
} })).deleteCookies.success;
|
|
132
|
-
return createToolResult(success, {
|
|
133
|
-
deleted: ids.length,
|
|
134
|
-
ids,
|
|
135
|
-
success
|
|
136
|
-
});
|
|
137
|
-
}
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
//#endregion
|
|
141
|
-
//#region src/tools/consent_delete_data_flows.ts
|
|
142
|
-
const DeleteDataFlowsSchema = z.object({ ids: z.array(z.string()).min(1).describe("Data flow IDs to permanently delete. Get IDs from consent_list_data_flows.") });
|
|
143
|
-
/**
|
|
144
|
-
* Permanently delete data flows by ID. Hidden from agents (`visibility: ['app']`);
|
|
145
|
-
* intended for MCP App views that already collected an explicit user action.
|
|
146
|
-
*/
|
|
147
|
-
function createConsentDeleteDataFlowsTool(clients) {
|
|
148
|
-
return defineTool({
|
|
149
|
-
name: "consent_delete_data_flows",
|
|
150
|
-
description: "Permanently delete one or more data flows by ID. Irreversible — prefer consent_update_data_flows with isJunk=true to junk instead of delete. App-only: callable by MCP App views, not listed to agents.",
|
|
151
|
-
category: "Consent Management",
|
|
152
|
-
readOnly: false,
|
|
153
|
-
visibility: ["app"],
|
|
154
|
-
annotations: {
|
|
155
|
-
readOnlyHint: false,
|
|
156
|
-
destructiveHint: true,
|
|
157
|
-
idempotentHint: false
|
|
158
|
-
},
|
|
159
|
-
zodSchema: DeleteDataFlowsSchema,
|
|
160
|
-
handler: async ({ ids }) => {
|
|
161
|
-
const airgapBundleId = await resolveAirgapBundleId(clients.graphql);
|
|
162
|
-
const success = (await clients.graphql.makeRequest(DELETE_DATA_FLOWS, { input: {
|
|
163
|
-
airgapBundleId,
|
|
164
|
-
ids
|
|
165
|
-
} })).deleteDataFlows.success;
|
|
166
|
-
return createToolResult(success, {
|
|
167
|
-
deleted: ids.length,
|
|
168
|
-
ids,
|
|
169
|
-
success
|
|
170
|
-
});
|
|
171
|
-
}
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
//#endregion
|
|
175
|
-
//#region src/analyticsDateRange.ts
|
|
176
|
-
/**
|
|
177
|
-
* Resolve a date range from explicit ISO timestamps or a lookback window.
|
|
178
|
-
*/
|
|
179
|
-
function resolveAnalyticsDateRange(args) {
|
|
180
|
-
const endDate = args.end ? new Date(args.end) : /* @__PURE__ */ new Date();
|
|
181
|
-
const lookbackDays = args.days ?? 7;
|
|
182
|
-
const startDate = args.start ? new Date(args.start) : /* @__PURE__ */ new Date(endDate.getTime() - lookbackDays * 24 * 60 * 60 * 1e3);
|
|
183
|
-
if (Number.isNaN(startDate.getTime()) || Number.isNaN(endDate.getTime())) throw new Error("Invalid start or end date");
|
|
184
|
-
if (startDate > endDate) throw new Error("Start date must be before end date");
|
|
185
|
-
return {
|
|
186
|
-
startEpoch: Math.floor(startDate.getTime() / 1e3),
|
|
187
|
-
endEpoch: Math.floor(endDate.getTime() / 1e3),
|
|
188
|
-
startIso: startDate.toISOString(),
|
|
189
|
-
endIso: endDate.toISOString()
|
|
190
|
-
};
|
|
191
|
-
}
|
|
192
|
-
//#endregion
|
|
193
|
-
//#region src/normalizeAnalyticsMetric.ts
|
|
194
|
-
const VALID_METRICS = new Set(Object.values(AirgapBundleAnalyticsMetric));
|
|
195
|
-
/** Common agent/API guesses mapped to GraphQL AnalyticsEvent values */
|
|
196
|
-
const ANALYTICS_METRIC_ALIASES = {
|
|
197
|
-
PAGE_VIEW: AirgapBundleAnalyticsMetric.PageViews,
|
|
198
|
-
CONSENT_SESSION: AirgapBundleAnalyticsMetric.SiteSessions,
|
|
199
|
-
CONSENT_SESSIONS: AirgapBundleAnalyticsMetric.SiteSessions
|
|
200
|
-
};
|
|
201
|
-
/**
|
|
202
|
-
* Normalize metric input, accepting common aliases (e.g. PAGE_VIEW → PAGE_VIEWS).
|
|
203
|
-
*/
|
|
204
|
-
function normalizeAnalyticsMetric(metric) {
|
|
205
|
-
const upper = metric.toUpperCase();
|
|
206
|
-
if (VALID_METRICS.has(upper)) return upper;
|
|
207
|
-
return ANALYTICS_METRIC_ALIASES[upper] ?? upper;
|
|
208
|
-
}
|
|
209
|
-
const airgapBundleAnalyticsMetricSchema = z.preprocess((value) => typeof value === "string" ? normalizeAnalyticsMetric(value) : value, z.nativeEnum(AirgapBundleAnalyticsMetric));
|
|
210
|
-
//#endregion
|
|
211
|
-
//#region src/tools/consent_get_aggregate_analytics.ts
|
|
212
|
-
const GetAggregateAnalyticsSchema = z.object({
|
|
213
|
-
metric: airgapBundleAnalyticsMetricSchema.describe("Analytics metric to query. CONSENT_CHANGED for opt-in/out counts; SITE_SESSIONS or PAGE_VIEWS for traffic totals."),
|
|
214
|
-
start: z.string().optional().describe("Start datetime (ISO 8601). Defaults to `days` lookback from end."),
|
|
215
|
-
end: z.string().optional().describe("End datetime (ISO 8601). Defaults to now."),
|
|
216
|
-
days: z.coerce.number().min(1).max(365).optional().describe("Lookback window in days when start is omitted (default: 7)."),
|
|
217
|
-
include_dimensions: z.array(z.nativeEnum(AirgapBundleAnalyticsDimension)).optional().describe("Dimension breakdowns (e.g. NEW_VALUE, REGIME, PURPOSE). Recommended for CONSENT_CHANGED.")
|
|
218
|
-
});
|
|
219
|
-
function createConsentGetAggregateAnalyticsTool(clients) {
|
|
220
|
-
return defineTool({
|
|
221
|
-
name: "consent_get_aggregate_analytics",
|
|
222
|
-
description: "Query aggregate consent analytics via airgapBundleAggregateAnalytics. Use CONSENT_CHANGED with NEW_VALUE/REGIME/PURPOSE for opt-in/out counts; SITE_SESSIONS or PAGE_VIEWS for total traffic. Requires ViewConsentManager API key scope.",
|
|
223
|
-
category: "Consent Management",
|
|
224
|
-
readOnly: true,
|
|
225
|
-
annotations: {
|
|
226
|
-
readOnlyHint: true,
|
|
227
|
-
destructiveHint: false,
|
|
228
|
-
idempotentHint: true
|
|
229
|
-
},
|
|
230
|
-
zodSchema: GetAggregateAnalyticsSchema,
|
|
231
|
-
handler: async ({ metric, start, end, days, include_dimensions }) => {
|
|
232
|
-
const airgapBundleId = await resolveAirgapBundleId(clients.graphql);
|
|
233
|
-
const range = resolveAnalyticsDateRange({
|
|
234
|
-
start,
|
|
235
|
-
end,
|
|
236
|
-
days
|
|
237
|
-
});
|
|
238
|
-
const items = (await clients.graphql.makeRequest(AIRGAP_BUNDLE_AGGREGATE_ANALYTICS, {
|
|
239
|
-
id: airgapBundleId,
|
|
240
|
-
input: {
|
|
241
|
-
metric,
|
|
242
|
-
start: range.startEpoch,
|
|
243
|
-
end: range.endEpoch,
|
|
244
|
-
...include_dimensions?.length ? { includeDimensions: include_dimensions } : {}
|
|
245
|
-
}
|
|
246
|
-
})).airgapBundleAggregateAnalytics.items;
|
|
247
|
-
return createToolResult(true, {
|
|
248
|
-
airgapBundleId,
|
|
249
|
-
metric,
|
|
250
|
-
period: {
|
|
251
|
-
start: range.startIso,
|
|
252
|
-
end: range.endIso,
|
|
253
|
-
startEpoch: range.startEpoch,
|
|
254
|
-
endEpoch: range.endEpoch
|
|
255
|
-
},
|
|
256
|
-
items,
|
|
257
|
-
totalRows: items.length
|
|
258
|
-
});
|
|
259
|
-
}
|
|
260
|
-
});
|
|
261
|
-
}
|
|
262
|
-
//#endregion
|
|
263
|
-
//#region src/tools/consent_get_analytics_data.ts
|
|
264
|
-
const GetAnalyticsDataSchema = z.object({
|
|
265
|
-
data_source: z.nativeEnum(ConsentManagerAnalyticsDataSource).describe("analyticsData source: PRIVACY_SIGNAL_TIMESERIES (DNT/GPC), CONSENT_CHANGES_TIMESERIES (opt-in/out), or CONSENT_SESSIONS_BY_REGIME."),
|
|
266
|
-
start: z.string().optional().describe("Start datetime (ISO 8601). Defaults to `days` lookback from end."),
|
|
267
|
-
end: z.string().optional().describe("End datetime (ISO 8601). Defaults to now."),
|
|
268
|
-
days: z.coerce.number().min(1).max(365).optional().describe("Lookback window in days when start is omitted (default: 7)."),
|
|
269
|
-
bin: z.nativeEnum(ConsentManagerMetricBin).optional().default(ConsentManagerMetricBin.Daily).describe("Time bin size for analyticsData (1h or 1d, default: 1d).")
|
|
270
|
-
});
|
|
271
|
-
function createConsentGetAnalyticsDataTool(clients) {
|
|
272
|
-
return defineTool({
|
|
273
|
-
name: "consent_get_analytics_data",
|
|
274
|
-
description: "Query consent metrics via the analyticsData GraphQL query. Returns timeseries for privacy signals (DNT/GPC), consent changes (opt-in/out), or sessions by regime. Requires ViewConsentManager API key scope.",
|
|
275
|
-
category: "Consent Management",
|
|
276
|
-
readOnly: true,
|
|
277
|
-
annotations: {
|
|
278
|
-
readOnlyHint: true,
|
|
279
|
-
destructiveHint: false,
|
|
280
|
-
idempotentHint: true
|
|
281
|
-
},
|
|
282
|
-
zodSchema: GetAnalyticsDataSchema,
|
|
283
|
-
handler: async ({ data_source, start, end, days, bin }) => {
|
|
284
|
-
const airgapBundleId = await resolveAirgapBundleId(clients.graphql);
|
|
285
|
-
const range = resolveAnalyticsDateRange({
|
|
286
|
-
start,
|
|
287
|
-
end,
|
|
288
|
-
days
|
|
289
|
-
});
|
|
290
|
-
const series = (await clients.graphql.makeRequest(CONSENT_MANAGER_ANALYTICS_DATA, { input: {
|
|
291
|
-
dataSource: data_source,
|
|
292
|
-
startDate: range.startIso,
|
|
293
|
-
endDate: range.endIso,
|
|
294
|
-
forceRefetch: true,
|
|
295
|
-
airgapBundleId,
|
|
296
|
-
binInterval: bin,
|
|
297
|
-
smoothTimeseries: false
|
|
298
|
-
} })).analyticsData.series;
|
|
299
|
-
return createToolResult(true, {
|
|
300
|
-
airgapBundleId,
|
|
301
|
-
dataSource: data_source,
|
|
302
|
-
binInterval: bin,
|
|
303
|
-
period: {
|
|
304
|
-
start: range.startIso,
|
|
305
|
-
end: range.endIso
|
|
306
|
-
},
|
|
307
|
-
series
|
|
308
|
-
});
|
|
309
|
-
}
|
|
310
|
-
});
|
|
311
|
-
}
|
|
312
|
-
/** Cookie and data-flow triage dashboard for `consent_get_inventory_stats`. */
|
|
313
|
-
const INVENTORY_STATS_APP_RESOURCE = defineUiResource({
|
|
314
|
-
uri: "ui://transcend-consent/inventory-stats",
|
|
315
|
-
name: "Consent inventory triage stats",
|
|
316
|
-
description: "Interactive dashboard of cookie and data-flow live, needs-review, and junk counts.",
|
|
317
|
-
html: viewHtml({
|
|
318
|
-
bundled: "<!doctype html>\n<html lang=\"en\">\n <head>\n <meta charset=\"utf-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n <title>Transcend MCP App</title>\n <style>\n.transcend-logo-spinner-trim{stroke-dasharray:1 999;stroke-dashoffset:1px;animation:transcend-logo-spinner-trim var(--transcend-logo-spinner-trim-duration) var(--transcend-logo-spinner-trim-ease) infinite}.transcend-logo-spinner-inner{stroke-dasharray:var(--transcend-logo-spinner-inner-tip);stroke-dashoffset:0;animation:transcend-logo-spinner-fill var(--transcend-logo-spinner-fill-duration) ease-out forwards, transcend-logo-spinner-spin var(--transcend-logo-spinner-inner-duration) linear var(--transcend-logo-spinner-fill-duration) infinite}@keyframes transcend-logo-spinner-trim{0%,4%{stroke-dashoffset:1px;opacity:0}8%{stroke-dashoffset:1px;opacity:1}22%,72%{stroke-dashoffset:0;opacity:1}86%{stroke-dashoffset:-1px;opacity:1}90%,to{stroke-dashoffset:-1px;opacity:0}}@keyframes transcend-logo-spinner-fill{0%{stroke-dasharray:var(--transcend-logo-spinner-inner-tip);stroke-dashoffset:0}to{stroke-dasharray:var(--transcend-logo-spinner-inner-rest);stroke-dashoffset:0}}@keyframes transcend-logo-spinner-spin{0%{stroke-dasharray:var(--transcend-logo-spinner-inner-rest);stroke-dashoffset:0}to{stroke-dasharray:var(--transcend-logo-spinner-inner-rest);stroke-dashoffset:-1px}}@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-content:\"\"}::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-content:\"\"}}}@layer theme;@layer tokens{:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--background-accent-blue-bold:var(--palette-blue-500);--background-accent-blue-subtle:var(--palette-blue-100);--background-accent-blue-subtlest:var(--palette-blue-50);--background-accent-gray-bold:var(--palette-gray-500);--background-accent-gray-subtle:var(--palette-gray-300);--background-accent-gray-subtlest:var(--palette-gray-200);--background-accent-lime-bold:var(--palette-lime-500);--background-accent-lime-subtle:var(--palette-lime-100);--background-accent-lime-subtlest:var(--palette-lime-50);--background-accent-orange-bold:var(--palette-orange-500);--background-accent-orange-subtle:var(--palette-orange-100);--background-accent-orange-subtlest:var(--palette-orange-50);--background-accent-pink-bold:var(--palette-pink-500);--background-accent-pink-subtle:var(--palette-pink-100);--background-accent-pink-subtlest:var(--palette-pink-50);--background-accent-purple-bold:var(--palette-purple-500);--background-accent-purple-subtle:var(--palette-purple-100);--background-accent-purple-subtlest:var(--palette-purple-50);--background-accent-teal-bold:var(--palette-teal-500);--background-accent-teal-subtle:var(--palette-teal-100);--background-accent-teal-subtlest:var(--palette-teal-50);--background-accent-yellow-bold:var(--palette-yellow-500);--background-accent-yellow-subtle:var(--palette-yellow-100);--background-accent-yellow-subtlest:var(--palette-yellow-50);--background-brand-bold-default:var(--palette-indigo-500);--background-brand-bold:var(--background-brand-bold-default);--background-brand-bold-hovered:var(--palette-indigo-600);--background-brand-bold-pressed:var(--palette-indigo-700);--background-brand-subtle:var(--palette-indigo-100);--background-brand-subtlest:var(--palette-indigo-50);--background-danger-bold-default:var(--palette-red-500);--background-danger-bold:var(--background-danger-bold-default);--background-danger-bold-hovered:var(--palette-red-600);--background-danger-bold-pressed:var(--palette-red-700);--background-danger-subtle:var(--palette-red-100);--background-danger-subtlest:var(--palette-red-50);--background-default-default:var(--palette-white);--background-default:var(--background-default-default);--background-default-hover:var(--palette-gray-100);--background-default-pressed:var(--palette-gray-200);--background-disabled:var(--palette-gray-200);--background-neutral-default:var(--palette-gray-100);--background-neutral:var(--background-neutral-default);--background-neutral-hovered:var(--palette-gray-200);--background-neutral-pressed:var(--palette-gray-300);--background-overlay-bold:var(--palette-opacity-lg);--background-overlay-default:var(--palette-opacity-md);--background-overlay:var(--background-overlay-default);--background-overlay-subtle:var(--palette-opacity-sm);--background-success-bold-default:var(--palette-green-500);--background-success-bold:var(--background-success-bold-default);--background-success-bold-hovered:var(--palette-green-600);--background-success-bold-pressed:var(--palette-green-700);--background-success-subtle:var(--palette-green-100);--background-success-subtlest:var(--palette-green-50);--background-warning-bold-default:var(--palette-gold-500);--background-warning-bold:var(--background-warning-bold-default);--background-warning-bold-hovered:var(--palette-gold-600);--background-warning-bold-pressed:var(--palette-gold-700);--background-warning-subtle:var(--palette-gold-100);--background-warning-subtlest:var(--palette-gold-50);--body-md-font-family:\"Figtree\", system-ui, sans-serif;--body-md-font-size:14px;--body-md-font-weight:400;--body-md-letter-spacing:0px;--body-md-line-height:1.42857;--body-md:var(--body-md-font-weight) var(--body-md-font-size)/var(--body-md-line-height) var(--body-md-font-family);--body-sm-font-family:\"Figtree\", system-ui, sans-serif;--body-sm-font-size:12px;--body-sm-font-weight:400;--body-sm-letter-spacing:0px;--body-sm-line-height:1.33333;--body-sm:var(--body-sm-font-weight) var(--body-sm-font-size)/var(--body-sm-line-height) var(--body-sm-font-family);--border-accent-blue:var(--palette-blue-300);--border-accent-gray:var(--palette-gray-500);--border-accent-lime:var(--palette-lime-300);--border-accent-orange:var(--palette-orange-300);--border-accent-pink:var(--palette-pink-300);--border-accent-purple:var(--palette-purple-300);--border-accent-teal:var(--palette-teal-300);--border-accent-yellow:var(--palette-yellow-500);--border-bold:var(--palette-gray-500);--border-brand:var(--palette-indigo-500);--border-danger:var(--palette-red-400);--border-default:var(--palette-gray-300);--border:var(--border-default);--border-disabled:var(--palette-gray-200);--border-focused:var(--palette-indigo-700);--border-subtle:var(--palette-gray-200);--border-success:var(--palette-green-300);--border-warning:var(--palette-gold-400);--chart-blue:var(--palette-blue-400);--chart-gray:var(--palette-gray-400);--chart-lime:var(--palette-lime-600);--chart-orange:var(--palette-orange-400);--chart-pink:var(--palette-pink-400);--chart-purple:var(--palette-purple-400);--chart-teal:var(--palette-teal-400);--chart-yellow:var(--palette-yellow-600);--code-md-font-family:\"Fragment Mono\", ui-monospace, monospace;--code-md-font-size:12px;--code-md-font-weight:400;--code-md-letter-spacing:0px;--code-md-line-height:1.33333;--code-md:var(--code-md-font-weight) var(--code-md-font-size)/var(--code-md-line-height) var(--code-md-font-family);--code-sm-font-family:\"Fragment Mono\", ui-monospace, monospace;--code-sm-font-size:11px;--code-sm-font-weight:400;--code-sm-letter-spacing:0px;--code-sm-line-height:1.45455;--code-sm:var(--code-sm-font-weight) var(--code-sm-font-size)/var(--code-sm-line-height) var(--code-sm-font-family);--display-lg-font-family:\"GT Planar VF\", system-ui, sans-serif;--display-lg-font-size:32px;--display-lg-font-weight:500;--display-lg-letter-spacing:0px;--display-lg-line-height:1.125;--display-lg:var(--display-lg-font-weight) var(--display-lg-font-size)/var(--display-lg-line-height) var(--display-lg-font-family);--display-md-font-family:\"GT Planar VF\", system-ui, sans-serif;--display-md-font-size:28px;--display-md-font-weight:500;--display-md-letter-spacing:0px;--display-md-line-height:1.14286;--display-md:var(--display-md-font-weight) var(--display-md-font-size)/var(--display-md-line-height) var(--display-md-font-family);--display-sm-font-family:\"GT Planar VF\", system-ui, sans-serif;--display-sm-font-size:24px;--display-sm-font-weight:500;--display-sm-letter-spacing:0px;--display-sm-line-height:1.16667;--display-sm:var(--display-sm-font-weight) var(--display-sm-font-size)/var(--display-sm-line-height) var(--display-sm-font-family);--heading-lg-font-family:\"Figtree\", system-ui, sans-serif;--heading-lg-font-size:20px;--heading-lg-font-weight:600;--heading-lg-letter-spacing:0em;--heading-lg-line-height:1.2;--heading-lg:var(--heading-lg-font-weight) var(--heading-lg-font-size)/var(--heading-lg-line-height) var(--heading-lg-font-family);--heading-md-font-family:\"Figtree\", system-ui, sans-serif;--heading-md-font-size:16px;--heading-md-font-weight:600;--heading-md-letter-spacing:0em;--heading-md-line-height:1.25;--heading-md:var(--heading-md-font-weight) var(--heading-md-font-size)/var(--heading-md-line-height) var(--heading-md-font-family);--heading-sm-font-family:\"Figtree\", system-ui, sans-serif;--heading-sm-font-size:14px;--heading-sm-font-weight:600;--heading-sm-letter-spacing:0em;--heading-sm-line-height:1.42857;--heading-sm:var(--heading-sm-font-weight) var(--heading-sm-font-size)/var(--heading-sm-line-height) var(--heading-sm-font-family);--icon-brand:var(--palette-indigo-500);--icon-danger:var(--palette-red-500);--icon-default:var(--palette-gray-700);--icon:var(--icon-default);--icon-disabled:var(--palette-gray-300);--icon-inverse:var(--palette-white);--icon-subtle:var(--palette-gray-600);--icon-subtlest:var(--palette-gray-500);--icon-success:var(--palette-green-500);--icon-warning:var(--palette-gold-500);--label-lg-font-family:\"Figtree\", system-ui, sans-serif;--label-lg-font-size:14px;--label-lg-font-weight:500;--label-lg-letter-spacing:0px;--label-lg-line-height:1.28571;--label-lg:var(--label-lg-font-weight) var(--label-lg-font-size)/var(--label-lg-line-height) var(--label-lg-font-family);--label-md-font-family:\"Figtree\", system-ui, sans-serif;--label-md-font-size:12px;--label-md-font-weight:500;--label-md-letter-spacing:0px;--label-md-line-height:1.33333;--label-md:var(--label-md-font-weight) var(--label-md-font-size)/var(--label-md-line-height) var(--label-md-font-family);--label-overline-font-family:\"Figtree\", system-ui, sans-serif;--label-overline-font-size:10px;--label-overline-font-weight:700;--label-overline-letter-spacing:.04em;--label-overline-line-height:1.2;--label-overline:var(--label-overline-font-weight) var(--label-overline-font-size)/var(--label-overline-line-height) var(--label-overline-font-family);--label-sm-font-family:\"Figtree\", system-ui, sans-serif;--label-sm-font-size:10px;--label-sm-font-weight:500;--label-sm-letter-spacing:0px;--label-sm-line-height:1.4;--label-sm:var(--label-sm-font-weight) var(--label-sm-font-size)/var(--label-sm-line-height) var(--label-sm-font-family);--link-default:var(--palette-indigo-500);--link:var(--link-default);--link-pressed:var(--palette-indigo-600);--link-visited-default:var(--palette-gray-700);--link-visited:var(--link-visited-default);--link-visited-pressed:var(--palette-gray-800);--metric-md-font-family:\"GT Planar VF\", system-ui, sans-serif;--metric-md-font-size:28px;--metric-md-font-weight:400;--metric-md-letter-spacing:0px;--metric-md-line-height:1.14286;--metric-md:var(--metric-md-font-weight) var(--metric-md-font-size)/var(--metric-md-line-height) var(--metric-md-font-family);--palette-blue-50:#e8f1fb;--palette-blue-100:#d4e7fa;--palette-blue-200:#aad2f9;--palette-blue-300:#7fbdf7;--palette-blue-400:#4da7f7;--palette-blue-500:#0592f0;--palette-blue-600:#007bcc;--palette-blue-700:#0067ac;--palette-blue-800:#00528b;--palette-blue-900:#003f6c;--text-accent-blue-bold:var(--palette-blue-900);--palette-blue-950:#003359;--palette-gold-50:#fff1d6;--palette-gold-100:#ffebc2;--palette-gold-200:#fd9;--palette-gold-300:#ffcf70;--palette-gold-400:#fb3;--palette-gold-500:#ec9e00;--palette-gold-600:#c98300;--text-warning-subtle:var(--palette-gold-600);--palette-gold-700:#a16900;--palette-gold-800:#7c5100;--palette-gold-900:#5c3d00;--text-warning-bold:var(--palette-gold-900);--palette-gold-950:#462f00;--palette-gray-50:#fbfcfd;--palette-gray-100:#f8f8fa;--palette-gray-200:#f2f2f6;--palette-gray-300:#e7e7ed;--palette-gray-400:#d5d5de;--palette-gray-500:#b4b4c2;--text-subtlest:var(--palette-gray-500);--palette-gray-600:#85859c;--text-disabled:var(--palette-gray-600);--palette-gray-700:#5b5b74;--text-subtle:var(--palette-gray-700);--palette-gray-800:#383849;--palette-gray-900:#1e1d28;--text-accent-gray-bold:var(--palette-gray-900);--text-default:var(--palette-gray-900);--text:var(--text-default);--palette-gray-950:#0f0f16;--palette-green-50:#e8f4e7;--palette-green-100:#d2ead0;--palette-green-200:#a3d49f;--palette-green-300:#71bf6d;--palette-green-400:#3fb43e;--palette-green-500:#009b00;--palette-green-600:#008200;--text-success-subtle:var(--palette-green-600);--palette-green-700:#006e00;--palette-green-800:#050;--palette-green-900:#003d00;--text-success-bold:var(--palette-green-900);--palette-green-950:#002e00;--palette-indigo-50:#ecefff;--palette-indigo-100:#dae0ff;--palette-indigo-200:#b7c0ff;--palette-indigo-300:#959fff;--palette-indigo-400:#787dff;--palette-indigo-500:#5f5bf7;--palette-indigo-600:#4e45d4;--text-brand-subtle:var(--palette-indigo-600);--palette-indigo-700:#3e2ebc;--palette-indigo-800:#2f2292;--palette-indigo-900:#20156b;--text-brand-bold:var(--palette-indigo-900);--palette-indigo-950:#170e54;--palette-lime-50:#f2f8e9;--palette-lime-100:#e1eecc;--palette-lime-200:#cce1a7;--palette-lime-300:#b8d480;--palette-lime-400:#a4c754;--palette-lime-500:#90b900;--palette-lime-600:#7ea200;--palette-lime-700:#6b8b00;--palette-lime-800:#577100;--palette-lime-900:#445900;--text-accent-lime-bold:var(--palette-lime-900);--palette-lime-950:#364700;--palette-opacity-lg:#0009;--palette-opacity-md:#0006;--palette-opacity-sm:#0000001a;--palette-orange-50:#fbede6;--palette-orange-100:#faded2;--palette-orange-200:#f7c0a6;--palette-orange-300:#f4a179;--palette-orange-400:#ef8148;--palette-orange-500:#e56200;--palette-orange-600:#c65400;--palette-orange-700:#af4900;--palette-orange-800:#8e3a00;--palette-orange-900:#6f2b00;--text-accent-orange-bold:var(--palette-orange-900);--palette-orange-950:#5b2200;--palette-pink-50:#fbebf4;--palette-pink-100:#fadaec;--palette-pink-200:#f7b8dc;--palette-pink-300:#f494cd;--palette-pink-400:#ee6ebf;--palette-pink-500:#e448b0;--palette-pink-600:#c43e97;--palette-pink-700:#ad3785;--palette-pink-800:#8b2d6b;--palette-pink-900:#6b2352;--text-accent-pink-bold:var(--palette-pink-900);--palette-pink-950:#571e43;--palette-purple-50:#f3ecff;--palette-purple-100:#e8daff;--palette-purple-200:#d3b4ff;--palette-purple-300:#bf8cff;--palette-purple-400:#ad5fff;--palette-purple-500:#9d11ff;--palette-purple-600:#8200d5;--palette-purple-700:#6a00af;--palette-purple-800:#510088;--palette-purple-900:#3a0063;--text-accent-purple-bold:var(--palette-purple-900);--palette-purple-950:#2c004d;--palette-red-50:#ffebeb;--palette-red-100:#fdd7d8;--palette-red-200:#faadb1;--palette-red-300:#f4828b;--palette-red-400:#eb5167;--palette-red-500:#dc0547;--palette-red-600:#bb0036;--text-danger-subtle:var(--palette-red-600);--palette-red-700:#a20024;--palette-red-800:#7e001a;--palette-red-900:#5c000f;--text-danger-bold:var(--palette-red-900);--palette-red-950:#47000a;--palette-teal-50:#e8f3f2;--palette-teal-100:#d3e9e7;--palette-teal-200:#a7d5d2;--palette-teal-300:#78c1be;--palette-teal-400:#48b7b2;--palette-teal-500:#15a19d;--palette-teal-600:#008986;--palette-teal-700:#007774;--palette-teal-800:#005e5b;--palette-teal-900:#004644;--text-accent-teal-bold:var(--palette-teal-900);--palette-teal-950:#003836;--palette-white:#fff;--text-inverse:var(--palette-white);--palette-yellow-50:#fdf8d8;--palette-yellow-100:#fff6bf;--palette-yellow-200:#fff29d;--palette-yellow-300:#f6e57b;--palette-yellow-400:#f0db55;--palette-yellow-500:#ebcd0d;--palette-yellow-600:#c2ab15;--palette-yellow-700:#907d04;--palette-yellow-800:#6e6000;--palette-yellow-900:#564b06;--text-accent-yellow-bold:var(--palette-yellow-900);--palette-yellow-950:#3a3303}}@layer base{:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}*,:before,:after{box-sizing:border-box;border:0 solid}body{color:var(--color-content);font-family:var(--font-sans);font-size:var(--text-md);line-height:var(--text-md--line-height);-webkit-font-smoothing:antialiased;background:0 0;margin:0}html,body{overflow:visible}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit;margin:0}p,dl,dd,figure,blockquote{margin:0}ol,ul,menu{margin:0;padding:0;list-style:none}img,svg,video,canvas{max-width:100%;height:auto;display:block}button,input,select,textarea{font:inherit;color:inherit}:focus-visible{outline:2px solid var(--color-focus);outline-offset:2px}}@layer components;@layer utilities{.\\@container{container-type:inline-size}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:0}.z-\\[100\\]{z-index:100}.z-\\[200\\]{z-index:200}.mx-auto{margin-inline:auto}.mt-0\\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-4{margin-top:calc(var(--spacing) * 4)}.-mb-px{margin-bottom:-1px}.mb-1{margin-bottom:var(--spacing)}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.size-2\\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.h-2\\.5{height:calc(var(--spacing) * 2.5)}.h-4{height:calc(var(--spacing) * 4)}.h-9{height:calc(var(--spacing) * 9)}.h-\\[1lh\\]{height:1lh}.h-\\[90dvh\\]{height:90dvh}.max-h-\\[100dvh\\]{max-height:100dvh}.min-h-0{min-height:0}.w-8{width:calc(var(--spacing) * 8)}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:max-content}.max-w-64{max-width:calc(var(--spacing) * 64)}.max-w-view{max-width:var(--container-view)}.min-w-0{min-width:0}.min-w-4{min-width:calc(var(--spacing) * 4)}.min-w-16{min-width:calc(var(--spacing) * 16)}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow-0{flex-grow:0}.basis-\\[108px\\]{flex-basis:108px}.basis-\\[min\\(85dvh\\,32rem\\)\\]{flex-basis:min(85dvh,32rem)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:var(--spacing)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-x-5{column-gap:calc(var(--spacing) * 5)}.gap-x-6{column-gap:calc(var(--spacing) * 6)}.gap-y-1{row-gap:var(--spacing)}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-y-auto{overflow-y:auto}.rounded-full{border-radius:var(--radius-full)}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-brand{border-color:var(--color-brand)}.border-card-line{border-color:var(--color-card-line)}.border-danger\\/40{border-color:var(--color-danger)}@supports (color:color-mix(in lab, red, red)){.border-danger\\/40{border-color:color-mix(in oklab, var(--color-danger) 40%, transparent)}}.border-focus{border-color:var(--color-focus)}.border-line-subtle{border-color:var(--color-line-subtle)}.border-transparent{border-color:#0000}.border-l-danger{border-left-color:var(--color-danger)}.bg-brand{background-color:var(--color-brand)}.bg-card{background-color:var(--color-card)}.bg-card-sunken{background-color:var(--color-card-sunken)}.bg-content-subtle{background-color:var(--color-content-subtle)}.bg-fill-brand{background-color:var(--color-fill-brand)}.bg-fill-brand-subtle{background-color:var(--color-fill-brand-subtle)}.bg-fill-danger{background-color:var(--color-fill-danger)}.bg-fill-dormant{background-color:var(--color-fill-dormant)}.bg-fill-neutral{background-color:var(--color-fill-neutral)}.bg-fill-success{background-color:var(--color-fill-success)}.bg-fill-warning{background-color:var(--color-fill-warning)}.bg-surface{background-color:var(--color-surface)}.bg-surface-raised{background-color:var(--color-surface-raised)}.bg-transparent{background-color:#0000}.p-0{padding:0}.p-2{padding:calc(var(--spacing) * 2)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.px-1{padding-inline:var(--spacing)}.px-1\\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-5{padding-block:calc(var(--spacing) * 5)}.py-8{padding-block:calc(var(--spacing) * 8)}.pt-1{padding-top:var(--spacing)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-5{padding-top:calc(var(--spacing) * 5)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.text-center{text-align:center}.text-left{text-align:left}.text-heading-md{font-size:var(--text-heading-md);line-height:var(--tw-leading,var(--text-heading-md--line-height))}.text-heading-sm{font-size:var(--text-heading-sm);line-height:var(--tw-leading,var(--text-heading-sm--line-height))}.text-md{font-size:var(--text-md);line-height:var(--tw-leading,var(--text-md--line-height))}.text-metric{font-size:var(--text-metric);line-height:var(--tw-leading,var(--text-metric--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-none{--tw-leading:1;line-height:1}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.break-words{overflow-wrap:break-word}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-brand{color:var(--color-brand)}.text-brand-text{color:var(--color-brand-text)}.text-content{color:var(--color-content)}.text-content-muted{color:var(--color-content-muted)}.text-danger{color:var(--color-danger)}.text-on-card{color:var(--color-on-card)}.text-on-card-muted{color:var(--color-on-card-muted)}.text-on-card-subtle{color:var(--color-on-card-subtle)}.text-on-fill{color:var(--color-on-fill)}.text-success{color:var(--color-success)}.uppercase{text-transform:uppercase}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.no-underline{text-decoration-line:none}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-60{opacity:.6}.opacity-100{opacity:1}.shadow-sm{--tw-shadow:0 1px 2px var(--tw-shadow-color,#00000014);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.before\\:mr-1:before{content:var(--tw-content);margin-right:var(--spacing)}.before\\:ml-1:before{content:var(--tw-content);margin-left:var(--spacing)}.before\\:content-\\[\\'·\\'\\]:before{--tw-content:\"·\";content:var(--tw-content)}.first\\:before\\:content-none:first-child:before{content:var(--tw-content);--tw-content:none;content:none}@media (hover:hover){.hover\\:bg-brand-hovered:hover{background-color:var(--color-brand-hovered)}.hover\\:bg-card-sunken:hover{background-color:var(--color-card-sunken)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:not-disabled\\:bg-card-sunken:hover:not(:disabled){background-color:var(--color-card-sunken)}}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-60:disabled{opacity:.6}@container (width>=24rem){.\\@min-\\[24rem\\]\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@container (width>=36rem){.\\@min-\\[36rem\\]\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@container (width>=48rem){.\\@min-\\[48rem\\]\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}}:root,:host{--color-surface:var(--color-background-primary,var(--background-default,#fff));--color-surface-raised:var(--color-background-secondary,var(--background-default-hover,#f4f4f6));--color-content:var(--color-text-primary,var(--text,#1e1d28));--color-content-muted:var(--color-text-secondary,var(--text-subtle,#55535f));--color-content-subtle:var(--color-text-tertiary,var(--text-subtlest,#85838f));--color-line-subtle:var(--color-border-secondary,var(--border-subtle,#ebebef));--color-focus:var(--color-ring-primary,var(--border-focused,#3e2ebc));--color-card:var(--background-default,#fff);--color-card-sunken:var(--background-neutral,#ebebef);--color-on-card:var(--text,#1e1d28);--color-on-card-muted:var(--text-subtle,#55535f);--color-on-card-subtle:var(--text-subtlest,#85838f);--color-card-line:var(--border-default,#d6d5db);--color-on-fill:var(--text-inverse,#fff);--color-fill-brand:var(--background-brand-bold,#5f5bf7);--color-fill-success:var(--background-success-bold,#008200);--color-fill-warning:var(--background-warning-bold,#c98300);--color-fill-danger:var(--background-danger-bold,#bb0036);--color-fill-neutral:var(--background-neutral,#ebebef);--color-fill-dormant:var(--background-warning-bold,#ec9e00);--color-fill-brand-subtle:var(--background-brand-subtle,#cfd1fe);--color-brand:var(--background-brand-bold,var(--color-background-info,#5f5bf7));--color-brand-hovered:var(--background-brand-bold-hovered,var(--color-brand));--color-brand-text:var(--text-brand-bold,var(--color-text-info,#3e2ebc));--color-success:var(--text-success-bold,var(--color-text-success,#1a7f4b));--color-danger:var(--text-danger-bold,var(--color-text-danger,#b42318));--font-sans:ui-sans-serif, system-ui, -apple-system, sans-serif;--font-weight-medium:500;--font-weight-semibold:600;--text-xs:.75rem;--text-xs--line-height:1rem;--text-sm:var(--font-text-sm-size,.8125rem);--text-sm--line-height:var(--font-text-sm-line-height,1.25rem);--text-md:var(--font-text-md-size,.875rem);--text-md--line-height:var(--font-text-md-line-height,1.375rem);--text-heading-sm:var(--font-heading-sm-size,1rem);--text-heading-sm--line-height:var(--font-heading-sm-line-height,1.5rem);--text-heading-md:var(--font-heading-md-size,1.125rem);--text-heading-md--line-height:var(--font-heading-md-line-height,1.625rem);--text-metric:1.75rem;--text-metric--line-height:2.125rem;--radius-sm:var(--border-radius-sm,6px);--radius-md:var(--border-radius-md,8px);--radius-lg:var(--border-radius-lg,12px);--radius-full:var(--border-radius-full,9999px);--spacing:.25rem;--container-view:64rem}@property --tw-rotate-x{syntax:\"*\";inherits:false}@property --tw-rotate-y{syntax:\"*\";inherits:false}@property --tw-rotate-z{syntax:\"*\";inherits:false}@property --tw-skew-x{syntax:\"*\";inherits:false}@property --tw-skew-y{syntax:\"*\";inherits:false}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-leading{syntax:\"*\";inherits:false}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-ordinal{syntax:\"*\";inherits:false}@property --tw-slashed-zero{syntax:\"*\";inherits:false}@property --tw-numeric-figure{syntax:\"*\";inherits:false}@property --tw-numeric-spacing{syntax:\"*\";inherits:false}@property --tw-numeric-fraction{syntax:\"*\";inherits:false}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-content{syntax:\"*\";inherits:false;initial-value:\"\"}\n/*$vite$:1*/\n </style>\n </head>\n <body>\n <div id=\"root\"></div>\n <script>\n(function(){var e=Object.defineProperty,t=(e,t)=>()=>(e&&(t=e(e=0)),t),n=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),r=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r},i=n((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var ee=b.prototype=new y;ee.constructor=b,g(ee,v.prototype),ee.isPureReactComponent=!0;var te=Array.isArray;function ne(){}var x={H:null,A:null,T:null,S:null},re=Object.prototype.hasOwnProperty;function ie(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function ae(e,t){return ie(e.type,t,e.props)}function S(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function oe(e){var t={\"=\":`=0`,\":\":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var se=/\\/+/g;function ce(e,t){return typeof e==`object`&&e&&e.key!=null?oe(``+e.key):t.toString(36)}function le(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(ne,ne):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function ue(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,ue(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+ce(e,0):a,te(o)?(i=``,c!=null&&(i=c.replace(se,`$&/`)+`/`),ue(o,r,i,``,function(e){return e})):o!=null&&(S(o)&&(o=ae(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(se,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(te(e))for(var u=0;u<e.length;u++)a=e[u],s=l+ce(a,u),c+=ue(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+ce(a,u++),c+=ue(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return ue(le(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function C(e,t,n){if(e==null)return e;var r=[],i=0;return ue(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function de(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var w=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},T={map:C,forEach:function(e,t,n){C(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return C(e,function(){t++}),t},toArray:function(e){return C(e,function(e){return e})||[]},only:function(e){if(!S(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=T,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=x,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return x.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!re.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return ie(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)re.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return ie(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=S,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:de}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=x.T,n={};x.T=n;try{var r=e(),i=x.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(ne,w)}catch(e){w(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),x.T=t}},e.unstable_useCacheRefresh=function(){return x.H.useCacheRefresh()},e.use=function(e){return x.H.use(e)},e.useActionState=function(e,t,n){return x.H.useActionState(e,t,n)},e.useCallback=function(e,t){return x.H.useCallback(e,t)},e.useContext=function(e){return x.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return x.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return x.H.useEffect(e,t)},e.useEffectEvent=function(e){return x.H.useEffectEvent(e)},e.useId=function(){return x.H.useId()},e.useImperativeHandle=function(e,t,n){return x.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return x.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return x.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return x.H.useMemo(e,t)},e.useOptimistic=function(e,t){return x.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return x.H.useReducer(e,t,n)},e.useRef=function(e){return x.H.useRef(e)},e.useState=function(e){return x.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return x.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return x.H.useTransition()},e.version=`19.2.8`})),a=n(((e,t)=>{t.exports=i()})),o=n((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function ee(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,te||(te=!0,S());else{var t=n(l);t!==null&&ce(ee,t.startTime-e)}}var te=!1,ne=-1,x=5,re=-1;function ie(){return g?!0:!(e.unstable_now()-re<x)}function ae(){if(g=!1,te){var t=e.unstable_now();re=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(ne),ne=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&ie());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ce(ee,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?S():te=!1}}}var S;if(typeof y==`function`)S=function(){y(ae)};else if(typeof MessageChannel<`u`){var oe=new MessageChannel,se=oe.port2;oe.port1.onmessage=ae,S=function(){se.postMessage(null)}}else S=function(){_(ae,0)};function ce(t,n){ne=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):x=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(ne),ne=-1):h=!0,ce(ee,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,te||(te=!0,S()))),r},e.unstable_shouldYield=ie,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),s=n(((e,t)=>{t.exports=o()})),c=n((e=>{var t=a();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for(`react.portal`);function s(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return s(e,t,null,r)},e.flushSync=function(e){var t=c.T,n=i.p;try{if(c.T=null,i.p=2,e)return e()}finally{c.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=l(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=l(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return c.H.useFormState(e,t,n)},e.useFormStatus=function(){return c.H.useHostTransitionStatus()},e.version=`19.2.8`})),l=n(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=c()})),u=n((e=>{var t=s(),n=a(),r=l();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function u(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function d(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function f(e){if(c(e)!==e)throw Error(i(188))}function p(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return f(a),e;if(o===r)return f(a),t;o=o.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=o;else{for(var s=!1,l=a.child;l;){if(l===n){s=!0,n=a,r=o;break}if(l===r){s=!0,r=a,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=a;break}if(l===r){s=!0,r=o,n=a;break}l=l.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function m(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=m(e),t!==null)return t;e=e.sibling}return null}var h=Object.assign,g=Symbol.for(`react.element`),_=Symbol.for(`react.transitional.element`),v=Symbol.for(`react.portal`),y=Symbol.for(`react.fragment`),b=Symbol.for(`react.strict_mode`),ee=Symbol.for(`react.profiler`),te=Symbol.for(`react.consumer`),ne=Symbol.for(`react.context`),x=Symbol.for(`react.forward_ref`),re=Symbol.for(`react.suspense`),ie=Symbol.for(`react.suspense_list`),ae=Symbol.for(`react.memo`),S=Symbol.for(`react.lazy`),oe=Symbol.for(`react.activity`),se=Symbol.for(`react.memo_cache_sentinel`),ce=Symbol.iterator;function le(e){return typeof e!=`object`||!e?null:(e=ce&&e[ce]||e[`@@iterator`],typeof e==`function`?e:null)}var ue=Symbol.for(`react.client.reference`);function C(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ue?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case y:return`Fragment`;case ee:return`Profiler`;case b:return`StrictMode`;case re:return`Suspense`;case ie:return`SuspenseList`;case oe:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case v:return`Portal`;case ne:return e.displayName||`Context`;case te:return(e._context.displayName||`Context`)+`.Consumer`;case x:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ae:return t=e.displayName||null,t===null?C(e.type)||`Memo`:t;case S:t=e._payload,e=e._init;try{return C(e(t))}catch{}}return null}var de=Array.isArray,w=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,T=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fe={pending:!1,data:null,method:null,action:null},pe=[],me=-1;function he(e){return{current:e}}function ge(e){0>me||(e.current=pe[me],pe[me]=null,me--)}function _e(e,t){me++,pe[me]=e.current,e.current=t}var ve=he(null),ye=he(null),be=he(null),xe=he(null);function Se(e,t){switch(_e(be,t),_e(ye,e),_e(ve,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?ef(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=ef(t),e=tf(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ge(ve),_e(ve,e)}function Ce(){ge(ve),ge(ye),ge(be)}function E(e){e.memoizedState!==null&&_e(xe,e);var t=ve.current,n=tf(t,e.type);t!==n&&(_e(ye,e),_e(ve,n))}function we(e){ye.current===e&&(ge(ve),ge(ye)),xe.current===e&&(ge(xe),rp._currentValue=fe)}var D,Te;function Ee(e){if(D===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\\n( *(at )?)/);D=t&&t[1]||``,Te=-1<e.stack.indexOf(`\n at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`\n`+D+e+Te}var De=!1;function Oe(e,t){if(!e||De)return``;De=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,\"props\",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,\"name\",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`\n`),l=s.split(`\n`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`\n`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{De=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Ee(n):``}function ke(e,t){switch(e.tag){case 26:case 27:case 5:return Ee(e.type);case 16:return Ee(`Lazy`);case 13:return e.child!==t&&t!==null?Ee(`Suspense Fallback`):Ee(`Suspense`);case 19:return Ee(`SuspenseList`);case 0:case 15:return Oe(e.type,!1);case 11:return Oe(e.type.render,!1);case 1:return Oe(e.type,!0);case 31:return Ee(`Activity`);default:return``}}function Ae(e){try{var t=``,n=null;do t+=ke(e,n),n=e,e=e.return;while(e);return t}catch(e){return`\nError generating stack: `+e.message+`\n`+e.stack}}var je=Object.prototype.hasOwnProperty,Me=t.unstable_scheduleCallback,Ne=t.unstable_cancelCallback,Pe=t.unstable_shouldYield,Fe=t.unstable_requestPaint,Ie=t.unstable_now,Le=t.unstable_getCurrentPriorityLevel,Re=t.unstable_ImmediatePriority,ze=t.unstable_UserBlockingPriority,O=t.unstable_NormalPriority,Be=t.unstable_LowPriority,Ve=t.unstable_IdlePriority,He=t.log,Ue=t.unstable_setDisableYieldValue,We=null,Ge=null;function Ke(e){if(typeof He==`function`&&Ue(e),Ge&&typeof Ge.setStrictMode==`function`)try{Ge.setStrictMode(We,e)}catch{}}var qe=Math.clz32?Math.clz32:Xe,Je=Math.log,Ye=Math.LN2;function Xe(e){return e>>>=0,e===0?32:31-(Je(e)/Ye|0)|0}var Ze=256,Qe=262144,$e=4194304;function et(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function tt(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=et(n))):i=et(o):i=et(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=et(n))):i=et(o)):i=et(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function nt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function k(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function rt(){var e=$e;return $e<<=1,!($e&62914560)&&($e=4194304),e}function it(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function at(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ot(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-qe(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&st(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function st(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-qe(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function ct(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-qe(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function lt(e,t){var n=t&-t;return n=n&42?1:ut(n),(n&(e.suspendedLanes|t))===0?n:0}function ut(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function dt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function ft(){var e=T.p;return e===0?(e=window.event,e===void 0?32:vp(e.type)):e}function pt(e,t){var n=T.p;try{return T.p=e,t()}finally{T.p=n}}var mt=Math.random().toString(36).slice(2),ht=`__reactFiber$`+mt,gt=`__reactProps$`+mt,_t=`__reactContainer$`+mt,vt=`__reactEvents$`+mt,yt=`__reactListeners$`+mt,bt=`__reactHandles$`+mt,xt=`__reactResources$`+mt,St=`__reactMarker$`+mt;function Ct(e){delete e[ht],delete e[gt],delete e[vt],delete e[yt],delete e[bt]}function wt(e){var t=e[ht];if(t)return t;for(var n=e.parentNode;n;){if(t=n[_t]||n[ht]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Cf(e);e!==null;){if(n=e[ht])return n;e=Cf(e)}return t}e=n,n=e.parentNode}return null}function Tt(e){if(e=e[ht]||e[_t]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Et(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Dt(e){var t=e[xt];return t||=e[xt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Ot(e){e[St]=!0}var kt=new Set,At={};function jt(e,t){Mt(e,t),Mt(e+`Capture`,t)}function Mt(e,t){for(At[e]=t,e=0;e<t.length;e++)kt.add(t[e])}var Nt=RegExp(`^[:A-Z_a-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD][:A-Z_a-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD\\\\-.0-9\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040]*$`),Pt={},Ft={};function It(e){return je.call(Ft,e)?!0:je.call(Pt,e)?!1:Nt.test(e)?Ft[e]=!0:(Pt[e]=!0,!1)}function Lt(e,t,n){if(It(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function Rt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function zt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function Bt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Vt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Ht(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ut(e){if(!e._valueTracker){var t=Vt(e)?`checked`:`value`;e._valueTracker=Ht(e,t,``+e[t])}}function Wt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Vt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function Gt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Kt=/[\\n\"\\\\]/g;function qt(e){return e.replace(Kt,function(e){return`\\\\`+e.charCodeAt(0).toString(16)+` `})}function Jt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Bt(t)):e.value!==``+Bt(t)&&(e.value=``+Bt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Xt(e,o,Bt(n)):Xt(e,o,Bt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Bt(s):e.removeAttribute(`name`)}function Yt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Ut(e);return}n=n==null?``:``+Bt(n),t=t==null?n:``+Bt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Ut(e)}function Xt(e,t,n){t===`number`&&Gt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Zt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Bt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Qt(e,t,n){if(t!=null&&(t=``+Bt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Bt(n)}function $t(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(de(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Bt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Ut(e)}function en(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var tn=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function nn(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||tn.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function rn(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&nn(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&nn(e,o,t[o])}function an(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var on=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),sn=/^[\\u0000-\\u001F ]*j[\\r\\n\\t]*a[\\r\\n\\t]*v[\\r\\n\\t]*a[\\r\\n\\t]*s[\\r\\n\\t]*c[\\r\\n\\t]*r[\\r\\n\\t]*i[\\r\\n\\t]*p[\\r\\n\\t]*t[\\r\\n\\t]*:/i;function cn(e){return sn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function ln(){}var un=null;function dn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fn=null,pn=null;function mn(e){var t=Tt(e);if(t&&(e=t.stateNode)){var n=e[gt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Jt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name=\"`+qt(``+t)+`\"][type=\"radio\"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[gt]||null;if(!a)throw Error(i(90));Jt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Wt(r)}break a;case`textarea`:Qt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Zt(e,!!n.multiple,t,!1)}}}var hn=!1;function gn(e,t,n){if(hn)return e(t,n);hn=!0;try{return e(t)}finally{if(hn=!1,(fn!==null||pn!==null)&&(Nu(),fn&&(t=fn,e=pn,pn=fn=null,mn(t),e)))for(t=0;t<e.length;t++)mn(e[t])}}function _n(e,t){var n=e.stateNode;if(n===null)return null;var r=n[gt]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var vn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),yn=!1;if(vn)try{var bn={};Object.defineProperty(bn,\"passive\",{get:function(){yn=!0}}),window.addEventListener(`test`,bn,bn),window.removeEventListener(`test`,bn,bn)}catch{yn=!1}var xn=null,Sn=null,Cn=null;function wn(){if(Cn)return Cn;var e,t=Sn,n=t.length,r,i=`value`in xn?xn.value:xn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return Cn=i.slice(e,1<r?1-r:void 0)}function Tn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function En(){return!0}function Dn(){return!1}function On(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?En:Dn,this.isPropagationStopped=Dn,this}return h(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=En)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=En)},persist:function(){},isPersistent:En}),t}var kn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},An=On(kn),jn=h({},kn,{view:0,detail:0}),Mn=On(jn),Nn,Pn,Fn,In=h({},jn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Fn&&(Fn&&e.type===`mousemove`?(Nn=e.screenX-Fn.screenX,Pn=e.screenY-Fn.screenY):Pn=Nn=0,Fn=e),Nn)},movementY:function(e){return`movementY`in e?e.movementY:Pn}}),Ln=On(In),Rn=On(h({},In,{dataTransfer:0})),zn=On(h({},jn,{relatedTarget:0})),Bn=On(h({},kn,{animationName:0,elapsedTime:0,pseudoElement:0})),Vn=On(h({},kn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Hn=On(h({},kn,{data:0})),Un={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Wn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Gn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Gn[e])?!!t[e]:!1}function qn(){return Kn}var Jn=On(h({},jn,{key:function(e){if(e.key){var t=Un[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Tn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Wn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qn,charCode:function(e){return e.type===`keypress`?Tn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Tn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Yn=On(h({},In,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Xn=On(h({},jn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qn})),Zn=On(h({},kn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Qn=On(h({},In,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),$n=On(h({},kn,{newState:0,oldState:0})),er=[9,13,27,32],tr=vn&&`CompositionEvent`in window,nr=null;vn&&`documentMode`in document&&(nr=document.documentMode);var rr=vn&&`TextEvent`in window&&!nr,ir=vn&&(!tr||nr&&8<nr&&11>=nr),ar=` `,or=!1;function sr(e,t){switch(e){case`keyup`:return er.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function cr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var lr=!1;function ur(e,t){switch(e){case`compositionend`:return cr(t);case`keypress`:return t.which===32?(or=!0,ar):null;case`textInput`:return e=t.data,e===ar&&or?null:e;default:return null}}function dr(e,t){if(lr)return e===`compositionend`||!tr&&sr(e,t)?(e=wn(),Cn=Sn=xn=null,lr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return ir&&t.locale!==`ko`?null:t.data;default:return null}}var fr={color:!0,date:!0,datetime:!0,\"datetime-local\":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!fr[e.type]:t===`textarea`}function mr(e,t,n,r){fn?pn?pn.push(r):pn=[r]:fn=r,t=zd(t,`onChange`),0<t.length&&(n=new An(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var hr=null,gr=null;function _r(e){Md(e,0)}function vr(e){if(Wt(Et(e)))return e}function yr(e,t){if(e===`change`)return t}var br=!1;if(vn){var xr;if(vn){var Sr=`oninput`in document;if(!Sr){var Cr=document.createElement(`div`);Cr.setAttribute(`oninput`,`return;`),Sr=typeof Cr.oninput==`function`}xr=Sr}else xr=!1;br=xr&&(!document.documentMode||9<document.documentMode)}function wr(){hr&&(hr.detachEvent(`onpropertychange`,Tr),gr=hr=null)}function Tr(e){if(e.propertyName===`value`&&vr(gr)){var t=[];mr(t,gr,e,dn(e)),gn(_r,t)}}function Er(e,t,n){e===`focusin`?(wr(),hr=t,gr=n,hr.attachEvent(`onpropertychange`,Tr)):e===`focusout`&&wr()}function Dr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return vr(gr)}function Or(e,t){if(e===`click`)return vr(t)}function kr(e,t){if(e===`input`||e===`change`)return vr(t)}function Ar(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var jr=typeof Object.is==`function`?Object.is:Ar;function Mr(e,t){if(jr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!je.call(t,i)||!jr(e[i],t[i]))return!1}return!0}function Nr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Pr(e,t){var n=Nr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Nr(n)}}function Fr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Fr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ir(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Gt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Gt(e.document)}return t}function Lr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Rr=vn&&`documentMode`in document&&11>=document.documentMode,zr=null,Br=null,Vr=null,Hr=!1;function Ur(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Hr||zr==null||zr!==Gt(r)||(r=zr,`selectionStart`in r&&Lr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Vr&&Mr(Vr,r)||(Vr=r,r=zd(Br,`onSelect`),0<r.length&&(t=new An(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=zr)))}function Wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Gr={animationend:Wr(`Animation`,`AnimationEnd`),animationiteration:Wr(`Animation`,`AnimationIteration`),animationstart:Wr(`Animation`,`AnimationStart`),transitionrun:Wr(`Transition`,`TransitionRun`),transitionstart:Wr(`Transition`,`TransitionStart`),transitioncancel:Wr(`Transition`,`TransitionCancel`),transitionend:Wr(`Transition`,`TransitionEnd`)},Kr={},qr={};vn&&(qr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Gr.animationend.animation,delete Gr.animationiteration.animation,delete Gr.animationstart.animation),`TransitionEvent`in window||delete Gr.transitionend.transition);function Jr(e){if(Kr[e])return Kr[e];if(!Gr[e])return e;var t=Gr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in qr)return Kr[e]=t[n];return e}var A=Jr(`animationend`),Yr=Jr(`animationiteration`),Xr=Jr(`animationstart`),Zr=Jr(`transitionrun`),Qr=Jr(`transitionstart`),$r=Jr(`transitioncancel`),ei=Jr(`transitionend`),ti=new Map,ni=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);ni.push(`scrollEnd`);function ri(e,t){ti.set(e,t),jt(t,[e])}var ii=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},ai=[],oi=0,si=0;function ci(){for(var e=oi,t=si=oi=0;t<e;){var n=ai[t];ai[t++]=null;var r=ai[t];ai[t++]=null;var i=ai[t];ai[t++]=null;var a=ai[t];if(ai[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&fi(n,i,a)}}function li(e,t,n,r){ai[oi++]=e,ai[oi++]=t,ai[oi++]=n,ai[oi++]=r,si|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ui(e,t,n,r){return li(e,t,n,r),pi(e)}function di(e,t){return li(e,null,null,t),pi(e)}function fi(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-qe(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function pi(e){if(50<Tu)throw Tu=0,L=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var mi={};function hi(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gi(e,t,n,r){return new hi(e,t,n,r)}function _i(e){return e=e.prototype,!(!e||!e.isReactComponent)}function vi(e,t){var n=e.alternate;return n===null?(n=gi(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function yi(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function bi(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)_i(e)&&(s=1);else if(typeof e==`string`)s=Xf(e,n,ve.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case oe:return e=gi(31,n,t,a),e.elementType=oe,e.lanes=o,e;case y:return xi(n.children,a,o,t);case b:s=8,a|=24;break;case ee:return e=gi(12,n,t,a|2),e.elementType=ee,e.lanes=o,e;case re:return e=gi(13,n,t,a),e.elementType=re,e.lanes=o,e;case ie:return e=gi(19,n,t,a),e.elementType=ie,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case ne:s=10;break a;case te:s=9;break a;case x:s=11;break a;case ae:s=14;break a;case S:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=gi(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function xi(e,t,n,r){return e=gi(7,e,r,t),e.lanes=n,e}function Si(e,t,n){return e=gi(6,e,null,t),e.lanes=n,e}function Ci(e){var t=gi(18,null,null,0);return t.stateNode=e,t}function wi(e,t,n){return t=gi(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ti=new WeakMap;function Ei(e,t){if(typeof e==`object`&&e){var n=Ti.get(e);return n===void 0?(t={value:e,source:t,stack:Ae(t)},Ti.set(e,t),t):n}return{value:e,source:t,stack:Ae(t)}}var Di=[],Oi=0,ki=null,Ai=0,ji=[],Mi=0,Ni=null,Pi=1,Fi=``;function Ii(e,t){Di[Oi++]=Ai,Di[Oi++]=ki,ki=e,Ai=t}function Li(e,t,n){ji[Mi++]=Pi,ji[Mi++]=Fi,ji[Mi++]=Ni,Ni=e;var r=Pi;e=Fi;var i=32-qe(r)-1;r&=~(1<<i),n+=1;var a=32-qe(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Pi=1<<32-qe(t)+i|n<<i|r,Fi=a+e}else Pi=1<<a|n<<i|r,Fi=e}function Ri(e){e.return!==null&&(Ii(e,1),Li(e,1,0))}function zi(e){for(;e===ki;)ki=Di[--Oi],Di[Oi]=null,Ai=Di[--Oi],Di[Oi]=null;for(;e===Ni;)Ni=ji[--Mi],ji[Mi]=null,Fi=ji[--Mi],ji[Mi]=null,Pi=ji[--Mi],ji[Mi]=null}function Bi(e,t){ji[Mi++]=Pi,ji[Mi++]=Fi,ji[Mi++]=Ni,Pi=t.id,Fi=t.overflow,Ni=e}var Vi=null,Hi=null,j=!1,Ui=null,Wi=!1,Gi=Error(i(519));function Ki(e){throw Qi(Ei(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Gi}function qi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[ht]=e,t[gt]=r,n){case`dialog`:z(`cancel`,t),z(`close`,t);break;case`iframe`:case`object`:case`embed`:z(`load`,t);break;case`video`:case`audio`:for(n=0;n<Ad.length;n++)z(Ad[n],t);break;case`source`:z(`error`,t);break;case`img`:case`image`:case`link`:z(`error`,t),z(`load`,t);break;case`details`:z(`toggle`,t);break;case`input`:z(`invalid`,t),Yt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:z(`invalid`,t);break;case`textarea`:z(`invalid`,t),$t(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Gd(t.textContent,n)?(r.popover!=null&&(z(`beforetoggle`,t),z(`toggle`,t)),r.onScroll!=null&&z(`scroll`,t),r.onScrollEnd!=null&&z(`scrollend`,t),r.onClick!=null&&(t.onclick=ln),t=!0):t=!1,t||Ki(e,!0)}function Ji(e){for(Vi=e.return;Vi;)switch(Vi.tag){case 5:case 31:case 13:Wi=!1;return;case 27:case 3:Wi=!0;return;default:Vi=Vi.return}}function Yi(e){if(e!==Vi)return!1;if(!j)return Ji(e),j=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||nf(e.type,e.memoizedProps)),n=!n),n&&Hi&&Ki(e),Ji(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Hi=Sf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Hi=Sf(e)}else t===27?(t=Hi,uf(e.type)?(e=xf,xf=null,Hi=e):Hi=t):Hi=Vi?bf(e.stateNode.nextSibling):null;return!0}function Xi(){Hi=Vi=null,j=!1}function Zi(){var e=Ui;return e!==null&&(du===null?du=e:du.push.apply(du,e),Ui=null),e}function Qi(e){Ui===null?Ui=[e]:Ui.push(e)}var $i=he(null),ea=null,ta=null;function na(e,t,n){_e($i,t._currentValue),t._currentValue=n}function ra(e){e._currentValue=$i.current,ge($i)}function ia(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function aa(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),ia(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),ia(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function oa(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;jr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===xe.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[rp]:e.push(rp))}a=a.return}e!==null&&aa(t,e,n,r),t.flags|=262144}function sa(e){for(e=e.firstContext;e!==null;){if(!jr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ca(e){ea=e,ta=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function la(e){return da(ea,e)}function ua(e,t){return ea===null&&ca(e),da(e,t)}function da(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ta===null){if(e===null)throw Error(i(308));ta=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ta=ta.next=t;return n}var fa=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},pa=t.unstable_scheduleCallback,ma=t.unstable_NormalPriority,ha={$$typeof:ne,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ga(){return{controller:new fa,data:new Map,refCount:0}}function _a(e){e.refCount--,e.refCount===0&&pa(ma,function(){e.controller.abort()})}var va=null,ya=0,ba=0,xa=null;function Sa(e,t){if(va===null){var n=va=[];ya=0,ba=wd(),xa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return ya++,t.then(Ca,Ca),t}function Ca(){if(--ya===0&&va!==null){xa!==null&&(xa.status=`fulfilled`);var e=va;va=null,ba=0,xa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function wa(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var Ta=w.S;w.S=function(e,t){mu=Ie(),typeof t==`object`&&t&&typeof t.then==`function`&&Sa(e,t),Ta!==null&&Ta(e,t)};var Ea=he(null);function Da(){var e=Ea.current;return e===null?Zl.pooledCache:e}function Oa(e,t){t===null?_e(Ea,Ea.current):_e(Ea,t.pool)}function ka(){var e=Da();return e===null?null:{parent:ha._currentValue,pool:e}}var Aa=Error(i(460)),ja=Error(i(474)),Ma=Error(i(542)),Na={then:function(){}};function Pa(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Fa(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(ln,ln),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,za(e),e;default:if(typeof t.status==`string`)t.then(ln,ln);else{if(e=Zl,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,za(e),e}throw La=t,Aa}}function Ia(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(La=e,Aa):e}}var La=null;function Ra(){if(La===null)throw Error(i(459));var e=La;return La=null,e}function za(e){if(e===Aa||e===Ma)throw Error(i(483))}var Ba=null,Va=0;function Ha(e){var t=Va;return Va+=1,Ba===null&&(Ba=[]),Fa(Ba,e,t)}function Ua(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Wa(e,t){throw t.$$typeof===g?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Ga(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=vi(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=Si(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===y?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===S&&Ia(i)===t.type)?(t=a(t,n.props),Ua(t,n),t.return=e,t):(t=bi(n.type,n.key,n.props,null,e.mode,r),Ua(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=wi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=xi(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Si(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case _:return n=bi(t.type,t.key,t.props,null,e.mode,n),Ua(n,t),n.return=e,n;case v:return t=wi(t,e.mode,n),t.return=e,t;case S:return t=Ia(t),f(e,t,n)}if(de(t)||le(t))return t=xi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Ha(t),n);if(t.$$typeof===ne)return f(e,ua(e,t),n);Wa(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case _:return n.key===i?l(e,t,n,r):null;case v:return n.key===i?u(e,t,n,r):null;case S:return n=Ia(n),p(e,t,n,r)}if(de(n)||le(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Ha(n),r);if(n.$$typeof===ne)return p(e,t,ua(e,n),r);Wa(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case _:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case v:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case S:return r=Ia(r),m(e,t,n,r,i)}if(de(r)||le(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Ha(r),i);if(r.$$typeof===ne)return m(e,t,n,ua(t,r),i);Wa(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),j&&Ii(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return j&&Ii(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),j&&Ii(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),j&&Ii(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return j&&Ii(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),j&&Ii(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case _:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===S&&Ia(l)===r.type){n(e,r.sibling),c=a(r,o.props),Ua(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===y?(c=xi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=bi(o.type,o.key,o.props,null,e.mode,c),Ua(c,o),c.return=e,e=c)}return s(e);case v:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=wi(o,e.mode,c),c.return=e,e=c}return s(e);case S:return o=Ia(o),b(e,r,o,c)}if(de(o))return h(e,r,o,c);if(le(o)){if(l=le(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Ha(o),c);if(o.$$typeof===ne)return b(e,r,ua(e,o),c);Wa(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=Si(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Va=0;var i=b(e,t,n,r);return Ba=null,i}catch(t){if(t===Aa||t===Ma)throw t;var a=gi(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ka=Ga(!0),qa=Ga(!1),Ja=!1;function Ya(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Za(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Qa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,P&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=pi(e),fi(e,null,n),t}return li(e,r,t,n),pi(e)}function $a(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ct(e,n)}}function eo(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var to=!1;function no(){if(to){var e=xa;if(e!==null)throw e}}function ro(e,t,n,r){to=!1;var i=e.updateQueue;Ja=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(I&f)===f:(r&f)===f){f!==0&&f===ba&&(to=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(m=g.payload,typeof m==`function`){d=m.call(_,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,f=typeof m==`function`?m.call(_,d,f):m,f==null)break a;d=h({},d,f);break a;case 2:Ja=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),au|=o,e.lanes=o,e.memoizedState=d}}function io(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function ao(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)io(n[e],t)}var oo=he(null),so=he(0);function co(e,t){e=ru,_e(so,e),_e(oo,t),ru=e|t.baseLanes}function lo(){_e(so,ru),_e(oo,oo.current)}function uo(){ru=so.current,ge(oo),ge(so)}var fo=he(null),po=null;function mo(e){var t=e.alternate;_e(yo,yo.current&1),_e(fo,e),po===null&&(t===null||oo.current!==null||t.memoizedState!==null)&&(po=e)}function ho(e){_e(yo,yo.current),_e(fo,e),po===null&&(po=e)}function go(e){e.tag===22?(_e(yo,yo.current),_e(fo,e),po===null&&(po=e)):_o(e)}function _o(){_e(yo,yo.current),_e(fo,fo.current)}function vo(e){ge(fo),po===e&&(po=null),ge(yo)}var yo=he(0);function bo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||_f(n)||vf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var xo=0,M=null,So=null,Co=null,wo=!1,To=!1,Eo=!1,Do=0,Oo=0,ko=null,Ao=0;function jo(){throw Error(i(321))}function Mo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!jr(e[n],t[n]))return!1;return!0}function No(e,t,n,r,i,a){return xo=a,M=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,w.H=e===null||e.memoizedState===null?Xs:Zs,Eo=!1,a=n(r,i),Eo=!1,To&&(a=Fo(t,n,r,i)),Po(e),a}function Po(e){w.H=Ys;var t=So!==null&&So.next!==null;if(xo=0,Co=So=M=null,wo=!1,Oo=0,ko=null,t)throw Error(i(300));e===null||mc||(e=e.dependencies,e!==null&&sa(e)&&(mc=!0))}function Fo(e,t,n,r){M=e;var a=0;do{if(To&&(ko=null),Oo=0,To=!1,25<=a)throw Error(i(301));if(a+=1,Co=So=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}w.H=Qs,o=t(n,r)}while(To);return o}function Io(){var e=w.H,t=e.useState()[0];return t=typeof t.then==`function`?Uo(t):t,e=e.useState()[0],(So===null?null:So.memoizedState)!==e&&(M.flags|=1024),t}function Lo(){var e=Do!==0;return Do=0,e}function Ro(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function zo(e){if(wo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}wo=!1}xo=0,Co=So=M=null,To=!1,Oo=Do=0,ko=null}function Bo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Co===null?M.memoizedState=Co=e:Co=Co.next=e,Co}function Vo(){if(So===null){var e=M.alternate;e=e===null?null:e.memoizedState}else e=So.next;var t=Co===null?M.memoizedState:Co.next;if(t!==null)Co=t,So=e;else{if(e===null)throw M.alternate===null?Error(i(467)):Error(i(310));So=e,e={memoizedState:So.memoizedState,baseState:So.baseState,baseQueue:So.baseQueue,queue:So.queue,next:null},Co===null?M.memoizedState=Co=e:Co=Co.next=e}return Co}function Ho(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Uo(e){var t=Oo;return Oo+=1,ko===null&&(ko=[]),e=Fa(ko,e,t),t=M,(Co===null?t.memoizedState:Co.next)===null&&(t=t.alternate,w.H=t===null||t.memoizedState===null?Xs:Zs),e}function Wo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Uo(e);if(e.$$typeof===ne)return la(e)}throw Error(i(438,String(e)))}function Go(e){var t=null,n=M.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=M.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Ho(),M.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=se;return t.index++,n}function Ko(e,t){return typeof t==`function`?t(e):t}function qo(e){return Jo(Vo(),So,e)}function Jo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(xo&f)===f:(I&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===ba&&(d=!0);else if((xo&p)===p){u=u.next,p===ba&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,M.lanes|=p,au|=p;f=u.action,Eo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,M.lanes|=f,au|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!jr(o,e.memoizedState)&&(mc=!0,d&&(n=xa,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Yo(e){var t=Vo(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);jr(o,t.memoizedState)||(mc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Xo(e,t,n){var r=M,a=Vo(),o=j;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!jr((So||a).memoizedState,n);if(s&&(a.memoizedState=n,mc=!0),a=a.queue,xs($o.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||Co!==null&&Co.memoizedState.tag&1){if(r.flags|=2048,gs(9,{destroy:void 0},Qo.bind(null,r,a,n,t),null),Zl===null)throw Error(i(349));o||xo&127||Zo(r,t,n)}return n}function Zo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=M.updateQueue,t===null?(t=Ho(),M.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Qo(e,t,n,r){t.value=n,t.getSnapshot=r,es(t)&&ts(e)}function $o(e,t,n){return n(function(){es(t)&&ts(e)})}function es(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!jr(e,n)}catch{return!0}}function ts(e){var t=di(e,2);t!==null&&Ou(t,e,2)}function ns(e){var t=Bo();if(typeof e==`function`){var n=e;if(e=n(),Eo){Ke(!0);try{n()}finally{Ke(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ko,lastRenderedState:e},t}function rs(e,t,n,r){return e.baseState=n,Jo(e,So,typeof r==`function`?r:Ko)}function is(e,t,n,r,a){if(Ks(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};w.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,as(t,o)):(o.next=n.next,t.pending=n.next=o)}}function as(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=w.T,o={};w.T=o;try{var s=n(i,r),c=w.S;c!==null&&c(o,s),os(e,t,s)}catch(n){cs(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),w.T=a}}else try{a=n(i,r),os(e,t,a)}catch(n){cs(e,t,n)}}function os(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){ss(e,t,n)},function(n){return cs(e,t,n)}):ss(e,t,n)}function ss(e,t,n){t.status=`fulfilled`,t.value=n,ls(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,as(e,n)))}function cs(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,ls(t),t=t.next;while(t!==r)}e.action=null}function ls(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function us(e,t){return t}function ds(e,t){if(j){var n=Zl.formState;if(n!==null){a:{var r=M;if(j){if(Hi){b:{for(var i=Hi,a=Wi;i.nodeType!==8;){if(!a){i=null;break b}if(i=bf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Hi=bf(i.nextSibling),r=i.data===`F!`;break a}}Ki(r)}r=!1}r&&(t=n[0])}}return n=Bo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:us,lastRenderedState:t},n.queue=r,n=Us.bind(null,M,r),r.dispatch=n,r=ns(!1),a=Gs.bind(null,M,!1,r.queue),r=Bo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=is.bind(null,M,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function fs(e){return ps(Vo(),So,e)}function ps(e,t,n){if(t=Jo(e,t,us)[0],e=qo(Ko)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Uo(t)}catch(e){throw e===Aa?Ma:e}else r=t;t=Vo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(M.flags|=2048,gs(9,{destroy:void 0},ms.bind(null,i,n),null)),[r,a,e]}function ms(e,t){e.action=t}function hs(e){var t=Vo(),n=So;if(n!==null)return ps(t,n,e);Vo(),t=t.memoizedState,n=Vo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function gs(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=M.updateQueue,t===null&&(t=Ho(),M.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function _s(){return Vo().memoizedState}function vs(e,t,n,r){var i=Bo();M.flags|=e,i.memoizedState=gs(1|t,{destroy:void 0},n,r===void 0?null:r)}function ys(e,t,n,r){var i=Vo();r=r===void 0?null:r;var a=i.memoizedState.inst;So!==null&&r!==null&&Mo(r,So.memoizedState.deps)?i.memoizedState=gs(t,a,n,r):(M.flags|=e,i.memoizedState=gs(1|t,a,n,r))}function bs(e,t){vs(8390656,8,e,t)}function xs(e,t){ys(2048,8,e,t)}function Ss(e){M.flags|=4;var t=M.updateQueue;if(t===null)t=Ho(),M.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Cs(e){var t=Vo().memoizedState;return Ss({ref:t,nextImpl:e}),function(){if(P&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function ws(e,t){return ys(4,2,e,t)}function Ts(e,t){return ys(4,4,e,t)}function Es(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ds(e,t,n){n=n==null?null:n.concat([e]),ys(4,4,Es.bind(null,t,e),n)}function Os(){}function ks(e,t){var n=Vo();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Mo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function As(e,t){var n=Vo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Mo(t,r[1]))return r[0];if(r=e(),Eo){Ke(!0);try{e()}finally{Ke(!1)}}return n.memoizedState=[r,t],r}function js(e,t,n){return n===void 0||xo&1073741824&&!(I&261930)?e.memoizedState=t:(e.memoizedState=n,e=Du(),M.lanes|=e,au|=e,n)}function Ms(e,t,n,r){return jr(n,t)?n:oo.current===null?!(xo&42)||xo&1073741824&&!(I&261930)?(mc=!0,e.memoizedState=n):(e=Du(),M.lanes|=e,au|=e,t):(e=js(e,n,r),jr(e,t)||(mc=!0),e)}function Ns(e,t,n,r,i){var a=T.p;T.p=a!==0&&8>a?a:8;var o=w.T,s={};w.T=s,Gs(e,!1,t,n);try{var c=i(),l=w.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ws(e,t,wa(c,r),Eu(e)):Ws(e,t,r,Eu(e))}catch(n){Ws(e,t,{then:function(){},status:`rejected`,reason:n},Eu())}finally{T.p=a,o!==null&&s.types!==null&&(o.types=s.types),w.T=o}}function Ps(){}function Fs(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Is(e).queue;Ns(e,a,t,fe,n===null?Ps:function(){return Ls(e),n(r)})}function Is(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:fe,baseState:fe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ko,lastRenderedState:fe},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ko,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ls(e){var t=Is(e);t.next===null&&(t=e.alternate.memoizedState),Ws(e,t.next.queue,{},Eu())}function Rs(){return la(rp)}function zs(){return Vo().memoizedState}function Bs(){return Vo().memoizedState}function Vs(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Eu();e=Za(n);var r=Qa(t,e,n);r!==null&&(Ou(r,t,n),$a(r,t,n)),t={cache:ga()},e.payload=t;return}t=t.return}}function Hs(e,t,n){var r=Eu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ks(e)?qs(t,n):(n=ui(e,t,n,r),n!==null&&(Ou(n,e,r),Js(n,t,r)))}function Us(e,t,n){Ws(e,t,n,Eu())}function Ws(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ks(e))qs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,jr(s,o))return li(e,t,i,0),Zl===null&&ci(),!1}catch{}if(n=ui(e,t,i,r),n!==null)return Ou(n,e,r),Js(n,t,r),!0}return!1}function Gs(e,t,n,r){if(r={lane:2,revertLane:wd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ks(e)){if(t)throw Error(i(479))}else t=ui(e,n,r,2),t!==null&&Ou(t,e,2)}function Ks(e){var t=e.alternate;return e===M||t!==null&&t===M}function qs(e,t){To=wo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Js(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ct(e,n)}}var Ys={readContext:la,use:Wo,useCallback:jo,useContext:jo,useEffect:jo,useImperativeHandle:jo,useLayoutEffect:jo,useInsertionEffect:jo,useMemo:jo,useReducer:jo,useRef:jo,useState:jo,useDebugValue:jo,useDeferredValue:jo,useTransition:jo,useSyncExternalStore:jo,useId:jo,useHostTransitionStatus:jo,useFormState:jo,useActionState:jo,useOptimistic:jo,useMemoCache:jo,useCacheRefresh:jo};Ys.useEffectEvent=jo;var Xs={readContext:la,use:Wo,useCallback:function(e,t){return Bo().memoizedState=[e,t===void 0?null:t],e},useContext:la,useEffect:bs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),vs(4194308,4,Es.bind(null,t,e),n)},useLayoutEffect:function(e,t){return vs(4194308,4,e,t)},useInsertionEffect:function(e,t){vs(4,2,e,t)},useMemo:function(e,t){var n=Bo();t=t===void 0?null:t;var r=e();if(Eo){Ke(!0);try{e()}finally{Ke(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Bo();if(n!==void 0){var i=n(t);if(Eo){Ke(!0);try{n(t)}finally{Ke(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Hs.bind(null,M,e),[r.memoizedState,e]},useRef:function(e){var t=Bo();return e={current:e},t.memoizedState=e},useState:function(e){e=ns(e);var t=e.queue,n=Us.bind(null,M,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Os,useDeferredValue:function(e,t){return js(Bo(),e,t)},useTransition:function(){var e=ns(!1);return e=Ns.bind(null,M,e.queue,!0,!1),Bo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=M,a=Bo();if(j){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Zl===null)throw Error(i(349));I&127||Zo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,bs($o.bind(null,r,o,e),[e]),r.flags|=2048,gs(9,{destroy:void 0},Qo.bind(null,r,o,n,t),null),n},useId:function(){var e=Bo(),t=Zl.identifierPrefix;if(j){var n=Fi,r=Pi;n=(r&~(1<<32-qe(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Do++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Ao++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Rs,useFormState:ds,useActionState:ds,useOptimistic:function(e){var t=Bo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Gs.bind(null,M,!0,n),n.dispatch=t,[e,t]},useMemoCache:Go,useCacheRefresh:function(){return Bo().memoizedState=Vs.bind(null,M)},useEffectEvent:function(e){var t=Bo(),n={impl:e};return t.memoizedState=n,function(){if(P&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Zs={readContext:la,use:Wo,useCallback:ks,useContext:la,useEffect:xs,useImperativeHandle:Ds,useInsertionEffect:ws,useLayoutEffect:Ts,useMemo:As,useReducer:qo,useRef:_s,useState:function(){return qo(Ko)},useDebugValue:Os,useDeferredValue:function(e,t){return Ms(Vo(),So.memoizedState,e,t)},useTransition:function(){var e=qo(Ko)[0],t=Vo().memoizedState;return[typeof e==`boolean`?e:Uo(e),t]},useSyncExternalStore:Xo,useId:zs,useHostTransitionStatus:Rs,useFormState:fs,useActionState:fs,useOptimistic:function(e,t){return rs(Vo(),So,e,t)},useMemoCache:Go,useCacheRefresh:Bs};Zs.useEffectEvent=Cs;var Qs={readContext:la,use:Wo,useCallback:ks,useContext:la,useEffect:xs,useImperativeHandle:Ds,useInsertionEffect:ws,useLayoutEffect:Ts,useMemo:As,useReducer:Yo,useRef:_s,useState:function(){return Yo(Ko)},useDebugValue:Os,useDeferredValue:function(e,t){var n=Vo();return So===null?js(n,e,t):Ms(n,So.memoizedState,e,t)},useTransition:function(){var e=Yo(Ko)[0],t=Vo().memoizedState;return[typeof e==`boolean`?e:Uo(e),t]},useSyncExternalStore:Xo,useId:zs,useHostTransitionStatus:Rs,useFormState:hs,useActionState:hs,useOptimistic:function(e,t){var n=Vo();return So===null?(n.baseState=e,[e,n.queue.dispatch]):rs(n,So,e,t)},useMemoCache:Go,useCacheRefresh:Bs};Qs.useEffectEvent=Cs;function $s(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:h({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ec={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Eu(),i=Za(r);i.payload=t,n!=null&&(i.callback=n),t=Qa(e,i,r),t!==null&&(Ou(t,e,r),$a(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Eu(),i=Za(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Qa(e,i,r),t!==null&&(Ou(t,e,r),$a(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Eu(),r=Za(n);r.tag=2,t!=null&&(r.callback=t),t=Qa(e,r,n),t!==null&&(Ou(t,e,n),$a(t,e,n))}};function tc(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Mr(n,r)||!Mr(i,a):!0}function nc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ec.enqueueReplaceState(t,t.state,null)}function rc(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=h({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function ic(e){ii(e)}function ac(e){console.error(e)}function oc(e){ii(e)}function sc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function cc(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function lc(e,t,n){return n=Za(n),n.tag=3,n.payload={element:null},n.callback=function(){sc(e,t)},n}function uc(e){return e=Za(e),e.tag=3,e}function dc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){cc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){cc(t,n,r),typeof i!=`function`&&(_u===null?_u=new Set([this]):_u.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function fc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&oa(t,n,a,!0),n=fo.current,n!==null){switch(n.tag){case 31:case 13:return po===null?Bu():n.alternate===null&&iu===0&&(iu=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Na?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),id(e,r,a)),!1;case 22:return n.flags|=65536,r===Na?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),id(e,r,a)),!1}throw Error(i(435,n.tag))}return id(e,r,a),Bu(),!1}if(j)return t=fo.current,t===null?(r!==Gi&&(t=Error(i(423),{cause:r}),Qi(Ei(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Ei(r,n),a=lc(e.stateNode,r,a),eo(e,a),iu!==4&&(iu=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Gi&&(e=Error(i(422),{cause:r}),Qi(Ei(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Ei(o,n),uu===null?uu=[o]:uu.push(o),iu!==4&&(iu=2),t===null)return!0;r=Ei(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=lc(n.stateNode,r,e),eo(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(_u===null||!_u.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=uc(a),dc(a,e,n,r),eo(n,a),!1}n=n.return}while(n!==null);return!1}var pc=Error(i(461)),mc=!1;function hc(e,t,n,r){t.child=e===null?qa(t,null,n,r):Ka(t,e.child,n,r)}function gc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return ca(t),r=No(e,t,n,o,a,i),s=Lo(),e!==null&&!mc?(Ro(e,t,i),Bc(e,t,i)):(j&&s&&Ri(t),t.flags|=1,hc(e,t,r,i),t.child)}function _c(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!_i(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,vc(e,t,a,r,i)):(e=bi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Vc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Mr:n,n(o,r)&&e.ref===t.ref)return Bc(e,t,i)}return t.flags|=1,e=vi(a,r),e.ref=t.ref,e.return=t,t.child=e}function vc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Mr(a,r)&&e.ref===t.ref)if(mc=!1,t.pendingProps=r=a,Vc(e,i))e.flags&131072&&(mc=!0);else return t.lanes=e.lanes,Bc(e,t,i)}return Ec(e,t,n,r,i)}function yc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return xc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Oa(t,a===null?null:a.cachePool),a===null?lo():co(t,a),go(t);else return r=t.lanes=536870912,xc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Oa(t,null),lo(),_o(t)):(Oa(t,a.cachePool),co(t,a),_o(t),t.memoizedState=null);return hc(e,t,i,n),t.child}function bc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function xc(e,t,n,r,i){var a=Da();return a=a===null?null:{parent:ha._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Oa(t,null),lo(),go(t),e!==null&&oa(e,t,r,!0),t.childLanes=i,null}function Sc(e,t){return t=Fc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Cc(e,t,n){return Ka(t,e.child,null,n),e=Sc(t,t.pendingProps),e.flags|=2,vo(t),t.memoizedState=null,e}function wc(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(j){if(r.mode===`hidden`)return e=Sc(t,r),t.lanes=536870912,bc(null,e);if(ho(t),(e=Hi)?(e=gf(e,Wi),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ni===null?null:{id:Pi,overflow:Fi},retryLane:536870912,hydrationErrors:null},n=Ci(e),n.return=t,t.child=n,Vi=t,Hi=null)):e=null,e===null)throw Ki(t);return t.lanes=536870912,null}return Sc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(ho(t),a)if(t.flags&256)t.flags&=-257,t=Cc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(mc||oa(e,t,n,!1),a=(n&e.childLanes)!==0,mc||a){if(r=Zl,r!==null&&(s=lt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,di(e,s),Ou(r,e,s),pc;Bu(),t=Cc(e,t,n)}else e=o.treeContext,Hi=bf(s.nextSibling),Vi=t,j=!0,Ui=null,Wi=!1,e!==null&&Bi(t,e),t=Sc(t,r),t.flags|=4096;return t}return e=vi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Tc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Ec(e,t,n,r,i){return ca(t),n=No(e,t,n,r,void 0,i),r=Lo(),e!==null&&!mc?(Ro(e,t,i),Bc(e,t,i)):(j&&r&&Ri(t),t.flags|=1,hc(e,t,n,i),t.child)}function Dc(e,t,n,r,i,a){return ca(t),t.updateQueue=null,n=Fo(t,r,n,i),Po(e),r=Lo(),e!==null&&!mc?(Ro(e,t,a),Bc(e,t,a)):(j&&r&&Ri(t),t.flags|=1,hc(e,t,n,a),t.child)}function Oc(e,t,n,r,i){if(ca(t),t.stateNode===null){var a=mi,o=n.contextType;typeof o==`object`&&o&&(a=la(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=ec,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Ya(t),o=n.contextType,a.context=typeof o==`object`&&o?la(o):mi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&($s(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&ec.enqueueReplaceState(a,a.state,null),ro(t,r,a,i),no(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=rc(n,s);a.props=c;var l=a.context,u=n.contextType;o=mi,typeof u==`object`&&u&&(o=la(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&nc(t,a,r,o),Ja=!1;var f=t.memoizedState;a.state=f,ro(t,r,a,i),no(),l=t.memoizedState,s||f!==l||Ja?(typeof d==`function`&&($s(t,n,d,r),l=t.memoizedState),(c=Ja||tc(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Xa(e,t),o=t.memoizedProps,u=rc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=mi,typeof l==`object`&&l&&(c=la(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&nc(t,a,r,c),Ja=!1,f=t.memoizedState,a.state=f,ro(t,r,a,i),no();var p=t.memoizedState;o!==d||f!==p||Ja||e!==null&&e.dependencies!==null&&sa(e.dependencies)?(typeof s==`function`&&($s(t,n,s,r),p=t.memoizedState),(u=Ja||tc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&sa(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,Tc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Ka(t,e.child,null,i),t.child=Ka(t,null,n,i)):hc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Bc(e,t,i),e}function kc(e,t,n,r){return Xi(),t.flags|=256,hc(e,t,n,r),t.child}var Ac={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function jc(e){return{baseLanes:e,cachePool:ka()}}function Mc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=cu),e}function Nc(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(yo.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(j){if(a?mo(t):_o(t),(e=Hi)?(e=gf(e,Wi),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ni===null?null:{id:Pi,overflow:Fi},retryLane:536870912,hydrationErrors:null},n=Ci(e),n.return=t,t.child=n,Vi=t,Hi=null)):e=null,e===null)throw Ki(t);return vf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(_o(t),a=t.mode,c=Fc({mode:`hidden`,children:c},a),r=xi(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=jc(n),r.childLanes=Mc(e,s,n),t.memoizedState=Ac,bc(null,r)):(mo(t),Pc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(mo(t),t.flags&=-257,t=Ic(e,t,n)):t.memoizedState===null?(_o(t),c=r.fallback,a=t.mode,r=Fc({mode:`visible`,children:r.children},a),c=xi(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Ka(t,e.child,null,n),r=t.child,r.memoizedState=jc(n),r.childLanes=Mc(e,s,n),t.memoizedState=Ac,t=bc(null,r)):(_o(t),t.child=e.child,t.flags|=128,t=null);else if(mo(t),vf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Qi({value:r,source:null,stack:null}),t=Ic(e,t,n)}else if(mc||oa(e,t,n,!1),s=(n&e.childLanes)!==0,mc||s){if(s=Zl,s!==null&&(r=lt(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,di(e,r),Ou(s,e,r),pc;_f(c)||Bu(),t=Ic(e,t,n)}else _f(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Hi=bf(c.nextSibling),Vi=t,j=!0,Ui=null,Wi=!1,e!==null&&Bi(t,e),t=Pc(t,r.children),t.flags|=4096);return t}return a?(_o(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=vi(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=xi(c,a,n,null),c.flags|=2):c=vi(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,bc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=jc(n):(a=c.cachePool,a===null?a=ka():(l=ha._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=Mc(e,s,n),t.memoizedState=Ac,bc(e.child,r)):(mo(t),n=e.child,e=n.sibling,n=vi(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function Pc(e,t){return t=Fc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Fc(e,t){return e=gi(22,e,null,t),e.lanes=0,e}function Ic(e,t,n){return Ka(t,e.child,null,n),e=Pc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Lc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ia(e.return,t,n)}function Rc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function zc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=yo.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,_e(yo,o),hc(e,t,r,n),r=j?Ai:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Lc(e,n,t);else if(e.tag===19)Lc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&bo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Rc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&bo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Rc(t,!0,n,null,a,r);break;case`together`:Rc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Bc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),au|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(oa(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=vi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=vi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Vc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&sa(e))):!0}function Hc(e,t,n){switch(t.tag){case 3:Se(t,t.stateNode.containerInfo),na(t,ha,e.memoizedState.cache),Xi();break;case 27:case 5:E(t);break;case 4:Se(t,t.stateNode.containerInfo);break;case 10:na(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ho(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(mo(t),e=Bc(e,t,n),e===null?null:e.sibling):Nc(e,t,n):(mo(t),t.flags|=128,null);mo(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(oa(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return zc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),_e(yo,yo.current),r)break;return null;case 22:return t.lanes=0,yc(e,t,n,t.pendingProps);case 24:na(t,ha,e.memoizedState.cache)}return Bc(e,t,n)}function Uc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)mc=!0;else{if(!Vc(e,n)&&!(t.flags&128))return mc=!1,Hc(e,t,n);mc=!!(e.flags&131072)}else mc=!1,j&&t.flags&1048576&&Li(t,Ai,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Ia(t.elementType),t.type=e,typeof e==`function`)_i(e)?(r=rc(e,r),t.tag=1,t=Oc(null,t,e,r,n)):(t.tag=0,t=Ec(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===x){t.tag=11,t=gc(null,t,e,r,n);break a}else if(a===ae){t.tag=14,t=_c(null,t,e,r,n);break a}}throw t=C(e)||e,Error(i(306,t,``))}}return t;case 0:return Ec(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=rc(r,t.pendingProps),Oc(e,t,r,a,n);case 3:a:{if(Se(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Xa(e,t),ro(t,r,null,n);var s=t.memoizedState;if(r=s.cache,na(t,ha,r),r!==o.cache&&aa(t,[ha],n,!0),no(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=kc(e,t,r,n);break a}else if(r!==a){a=Ei(Error(i(424)),t),Qi(a),t=kc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Hi=bf(e.firstChild),Vi=t,j=!0,Ui=null,Wi=!0,n=qa(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Xi(),r===a){t=Bc(e,t,n);break a}hc(e,t,r,n)}t=t.child}return t;case 26:return Tc(e,t),e===null?(n=zf(t.type,null,t.pendingProps,null))?t.memoizedState=n:j||(n=t.type,e=t.pendingProps,r=$d(be.current).createElement(n),r[ht]=t,r[gt]=e,qd(r,n,e),Ot(r),t.stateNode=r):t.memoizedState=zf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return E(t),e===null&&j&&(r=t.stateNode=wf(t.type,t.pendingProps,be.current),Vi=t,Wi=!0,a=Hi,uf(t.type)?(xf=a,Hi=bf(r.firstChild)):Hi=a),hc(e,t,t.pendingProps.children,n),Tc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&j&&((a=r=Hi)&&(r=mf(r,t.type,t.pendingProps,Wi),r===null?a=!1:(t.stateNode=r,Vi=t,Hi=bf(r.firstChild),Wi=!1,a=!0)),a||Ki(t)),E(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,nf(a,o)?r=null:s!==null&&nf(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=No(e,t,Io,null,null,n),rp._currentValue=a),Tc(e,t),hc(e,t,r,n),t.child;case 6:return e===null&&j&&((e=n=Hi)&&(n=hf(n,t.pendingProps,Wi),n===null?e=!1:(t.stateNode=n,Vi=t,Hi=null,e=!0)),e||Ki(t)),null;case 13:return Nc(e,t,n);case 4:return Se(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ka(t,null,r,n):hc(e,t,r,n),t.child;case 11:return gc(e,t,t.type,t.pendingProps,n);case 7:return hc(e,t,t.pendingProps,n),t.child;case 8:return hc(e,t,t.pendingProps.children,n),t.child;case 12:return hc(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,na(t,t.type,r.value),hc(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,ca(t),a=la(a),r=r(a),t.flags|=1,hc(e,t,r,n),t.child;case 14:return _c(e,t,t.type,t.pendingProps,n);case 15:return vc(e,t,t.type,t.pendingProps,n);case 19:return zc(e,t,n);case 31:return wc(e,t,n);case 22:return yc(e,t,n,t.pendingProps);case 24:return ca(t),r=la(ha),e===null?(a=Da(),a===null&&(a=Zl,o=ga(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Ya(t),na(t,ha,a)):((e.lanes&n)!==0&&(Xa(e,t),ro(t,null,null,n),no()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,na(t,ha,r),r!==a.cache&&aa(t,[ha],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),na(t,ha,r))),hc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Wc(e){e.flags|=4}function Gc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Lu())e.flags|=8192;else throw La=Na,ja}else e.flags&=-16777217}function Kc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Zf(t))if(Lu())e.flags|=8192;else throw La=Na,ja}function qc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:rt(),e.lanes|=t,lu|=t)}function Jc(e,t){if(!j)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Yc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Xc(e,t,n){var r=t.pendingProps;switch(zi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Yc(t),null;case 1:return Yc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),ra(ha),Ce(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Yi(t)?Wc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Zi())),Yc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Wc(t),o===null?(Yc(t),Gc(t,a,null,r,n)):(Yc(t),Kc(t,o))):o?o===e.memoizedState?(Yc(t),t.flags&=-16777217):(Wc(t),Yc(t),Kc(t,o)):(e=e.memoizedProps,e!==r&&Wc(t),Yc(t),Gc(t,a,e,r,n)),null;case 27:if(we(t),n=be.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Wc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Yc(t),null}e=ve.current,Yi(t)?qi(t,e):(e=wf(a,r,n),t.stateNode=e,Wc(t))}return Yc(t),null;case 5:if(we(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Wc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Yc(t),null}if(o=ve.current,Yi(t))qi(t,o);else{var s=$d(be.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[ht]=t,o[gt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(qd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Wc(t)}}return Yc(t),Gc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Wc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=be.current,Yi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Vi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[ht]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Gd(e.nodeValue,n)),e||Ki(t,!0)}else e=$d(e).createTextNode(r),e[ht]=t,t.stateNode=e}return Yc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Yi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[ht]=t}else Xi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Yc(t),e=!1}else n=Zi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(vo(t),t):(vo(t),null);if(t.flags&128)throw Error(i(558))}return Yc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Yi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[ht]=t}else Xi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Yc(t),a=!1}else a=Zi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(vo(t),t):(vo(t),null)}return vo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),qc(t,t.updateQueue),Yc(t),null);case 4:return Ce(),e===null&&Fd(t.stateNode.containerInfo),Yc(t),null;case 10:return ra(t.type),Yc(t),null;case 19:if(ge(yo),r=t.memoizedState,r===null)return Yc(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Jc(r,!1);else{if(iu!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=bo(e),o!==null){for(t.flags|=128,Jc(r,!1),e=o.updateQueue,t.updateQueue=e,qc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)yi(n,e),n=n.sibling;return _e(yo,yo.current&1|2),j&&Ii(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ie()>hu&&(t.flags|=128,a=!0,Jc(r,!1),t.lanes=4194304)}else{if(!a)if(e=bo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,qc(t,e),Jc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!j)return Yc(t),null}else 2*Ie()-r.renderingStartTime>hu&&n!==536870912&&(t.flags|=128,a=!0,Jc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Yc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ie(),e.sibling=null,n=yo.current,_e(yo,a?n&1|2:n&1),j&&Ii(t,r.treeForkCount),e);case 22:case 23:return vo(t),uo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Yc(t),t.subtreeFlags&6&&(t.flags|=8192)):Yc(t),n=t.updateQueue,n!==null&&qc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&ge(Ea),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ra(ha),Yc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Zc(e,t){switch(zi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ra(ha),Ce(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return we(t),null;case 31:if(t.memoizedState!==null){if(vo(t),t.alternate===null)throw Error(i(340));Xi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(vo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Xi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ge(yo),null;case 4:return Ce(),null;case 10:return ra(t.type),null;case 22:case 23:return vo(t),uo(),e!==null&&ge(Ea),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ra(ha),null;case 25:return null;default:return null}}function Qc(e,t){switch(zi(t),t.tag){case 3:ra(ha),Ce();break;case 26:case 27:case 5:we(t);break;case 4:Ce();break;case 31:t.memoizedState!==null&&vo(t);break;case 13:vo(t);break;case 19:ge(yo);break;case 10:ra(t.type);break;case 22:case 23:vo(t),uo(),e!==null&&ge(Ea);break;case 24:ra(ha)}}function $c(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){R(t,t.return,e)}}function el(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){R(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){R(t,t.return,e)}}function tl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{ao(t,n)}catch(t){R(e,e.return,t)}}}function nl(e,t,n){n.props=rc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){R(e,t,n)}}function rl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){R(e,t,n)}}function il(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){R(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){R(e,t,n)}else n.current=null}function al(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){R(e,e.return,t)}}function ol(e,t,n){try{var r=e.stateNode;Jd(r,e.type,n,t),r[gt]=t}catch(t){R(e,e.return,t)}}function sl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&uf(e.type)||e.tag===4}function cl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||sl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&uf(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ln));else if(r!==4&&(r===27&&uf(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(ll(e,t,n),e=e.sibling;e!==null;)ll(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&uf(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(ul(e,t,n),e=e.sibling;e!==null;)ul(e,t,n),e=e.sibling}function dl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);qd(t,r,n),t[ht]=e,t[gt]=n}catch(t){R(e,e.return,t)}}var fl=!1,pl=!1,ml=!1,hl=typeof WeakSet==`function`?WeakSet:Set,gl=null;function _l(e,t){if(e=e.containerInfo,Zd=dp,e=Ir(e),Lr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Qd={focusedElem:e,selectionRange:n},dp=!1,gl=t;gl!==null;)if(t=gl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,gl=e;else for(;gl!==null;){switch(t=gl,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=rc(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){R(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)pf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:pf(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,gl=e;break}gl=t.return}}function vl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Ml(e,n),r&4&&$c(5,n);break;case 1:if(Ml(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){R(n,n.return,e)}else{var i=rc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){R(n,n.return,e)}}r&64&&tl(n),r&512&&rl(n,n.return);break;case 3:if(Ml(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{ao(e,t)}catch(e){R(n,n.return,e)}}break;case 27:t===null&&r&4&&dl(n);case 26:case 5:Ml(e,n),t===null&&r&4&&al(n),r&512&&rl(n,n.return);break;case 12:Ml(e,n);break;case 31:Ml(e,n),r&4&&Cl(e,n);break;case 13:Ml(e,n),r&4&&wl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=sd.bind(null,n),yf(e,n))));break;case 22:if(r=n.memoizedState!==null||fl,!r){t=t!==null&&t.memoizedState!==null||pl,i=fl;var a=pl;fl=r,(pl=t)&&!a?Pl(e,n,(n.subtreeFlags&8772)!=0):Ml(e,n),fl=i,pl=a}break;case 30:break;default:Ml(e,n)}}function yl(e){var t=e.alternate;t!==null&&(e.alternate=null,yl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ct(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var N=null,bl=!1;function xl(e,t,n){for(n=n.child;n!==null;)Sl(e,t,n),n=n.sibling}function Sl(e,t,n){if(Ge&&typeof Ge.onCommitFiberUnmount==`function`)try{Ge.onCommitFiberUnmount(We,n)}catch{}switch(n.tag){case 26:pl||il(n,t),xl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:pl||il(n,t);var r=N,i=bl;uf(n.type)&&(N=n.stateNode,bl=!1),xl(e,t,n),Tf(n.stateNode),N=r,bl=i;break;case 5:pl||il(n,t);case 6:if(r=N,i=bl,N=null,xl(e,t,n),N=r,bl=i,N!==null)if(bl)try{(N.nodeType===9?N.body:N.nodeName===`HTML`?N.ownerDocument.body:N).removeChild(n.stateNode)}catch(e){R(n,t,e)}else try{N.removeChild(n.stateNode)}catch(e){R(n,t,e)}break;case 18:N!==null&&(bl?(e=N,df(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Ip(e)):df(N,n.stateNode));break;case 4:r=N,i=bl,N=n.stateNode.containerInfo,bl=!0,xl(e,t,n),N=r,bl=i;break;case 0:case 11:case 14:case 15:el(2,n,t),pl||el(4,n,t),xl(e,t,n);break;case 1:pl||(il(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&nl(n,t,r)),xl(e,t,n);break;case 21:xl(e,t,n);break;case 22:pl=(r=pl)||n.memoizedState!==null,xl(e,t,n),pl=r;break;default:xl(e,t,n)}}function Cl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ip(e)}catch(e){R(t,t.return,e)}}}function wl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ip(e)}catch(e){R(t,t.return,e)}}function Tl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new hl),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new hl),t;default:throw Error(i(435,e.tag))}}function El(e,t){var n=Tl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=cd.bind(null,e,t);t.then(r,r)}})}function Dl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(uf(c.type)){N=c.stateNode,bl=!1;break a}break;case 5:N=c.stateNode,bl=!1;break a;case 3:case 4:N=c.stateNode.containerInfo,bl=!0;break a}c=c.return}if(N===null)throw Error(i(160));Sl(o,s,a),N=null,bl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)kl(t,e),t=t.sibling}var Ol=null;function kl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Dl(t,e),Al(e),r&4&&(el(3,e,e.return),$c(3,e),el(5,e,e.return));break;case 1:Dl(t,e),Al(e),r&512&&(pl||n===null||il(n,n.return)),r&64&&fl&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=Ol;if(Dl(t,e),Al(e),r&512&&(pl||n===null||il(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[St]||o[ht]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),qd(o,r,n),o[ht]=e,Ot(o),r=o;break a;case`link`:var s=Yf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),qd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Yf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),qd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[ht]=e,Ot(o),r=o}e.stateNode=r}else K(a,e.type,e.stateNode);else e.stateNode=W(a,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&ol(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?K(a,e.type,e.stateNode):W(a,r,e.memoizedProps))}break;case 27:Dl(t,e),Al(e),r&512&&(pl||n===null||il(n,n.return)),n!==null&&r&4&&ol(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Dl(t,e),Al(e),r&512&&(pl||n===null||il(n,n.return)),e.flags&32){a=e.stateNode;try{en(a,``)}catch(t){R(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,ol(e,a,n===null?a:n.memoizedProps)),r&1024&&(ml=!0);break;case 6:if(Dl(t,e),Al(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){R(e,e.return,t)}}break;case 3:if(G=null,a=Ol,Ol=Of(t.containerInfo),Dl(t,e),Ol=a,Al(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ip(t.containerInfo)}catch(t){R(e,e.return,t)}ml&&(ml=!1,jl(e));break;case 4:r=Ol,Ol=Of(e.stateNode.containerInfo),Dl(t,e),Al(e),Ol=r;break;case 12:Dl(t,e),Al(e);break;case 31:Dl(t,e),Al(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,El(e,r)));break;case 13:Dl(t,e),Al(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(pu=Ie()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,El(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=fl,d=pl;if(fl=u||a,pl=d||l,Dl(t,e),pl=d,fl=u,Al(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||fl||pl||Nl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){R(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){R(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?ff(m,!0):ff(l.stateNode,!1)}catch(e){R(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,El(e,n))));break;case 19:Dl(t,e),Al(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,El(e,r)));break;case 30:break;case 21:break;default:Dl(t,e),Al(e)}}function Al(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(sl(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;ul(e,cl(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(en(o,``),n.flags&=-33),ul(e,cl(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;ll(e,cl(e),s);break;default:throw Error(i(161))}}catch(t){R(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function jl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;jl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ml(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)vl(e,t.alternate,t),t=t.sibling}function Nl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:el(4,t,t.return),Nl(t);break;case 1:il(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&nl(t,t.return,n),Nl(t);break;case 27:Tf(t.stateNode);case 26:case 5:il(t,t.return),Nl(t);break;case 22:t.memoizedState===null&&Nl(t);break;case 30:Nl(t);break;default:Nl(t)}e=e.sibling}}function Pl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:Pl(i,a,n),$c(4,a);break;case 1:if(Pl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){R(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)io(c[i],s)}catch(e){R(r,r.return,e)}}n&&o&64&&tl(a),rl(a,a.return);break;case 27:dl(a);case 26:case 5:Pl(i,a,n),n&&r===null&&o&4&&al(a),rl(a,a.return);break;case 12:Pl(i,a,n);break;case 31:Pl(i,a,n),n&&o&4&&Cl(i,a);break;case 13:Pl(i,a,n),n&&o&4&&wl(i,a);break;case 22:a.memoizedState===null&&Pl(i,a,n),rl(a,a.return);break;case 30:break;default:Pl(i,a,n)}t=t.sibling}}function Fl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&_a(n))}function Il(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&_a(e))}function Ll(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Rl(e,t,n,r),t=t.sibling}function Rl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Ll(e,t,n,r),i&2048&&$c(9,t);break;case 1:Ll(e,t,n,r);break;case 3:Ll(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&_a(e)));break;case 12:if(i&2048){Ll(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){R(t,t.return,e)}}else Ll(e,t,n,r);break;case 31:Ll(e,t,n,r);break;case 13:Ll(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Ll(e,t,n,r):(a._visibility|=2,zl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?Ll(e,t,n,r):Bl(e,t),i&2048&&Fl(o,t);break;case 24:Ll(e,t,n,r),i&2048&&Il(t.alternate,t);break;default:Ll(e,t,n,r)}}function zl(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:zl(a,o,s,c,i),$c(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,zl(a,o,s,c,i)):u._visibility&2?zl(a,o,s,c,i):Bl(a,o),i&&l&2048&&Fl(o.alternate,o);break;case 24:zl(a,o,s,c,i),i&&l&2048&&Il(o.alternate,o);break;default:zl(a,o,s,c,i)}t=t.sibling}}function Bl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Bl(n,r),i&2048&&Fl(r.alternate,r);break;case 24:Bl(n,r),i&2048&&Il(r.alternate,r);break;default:Bl(n,r)}t=t.sibling}}var Vl=8192;function Hl(e,t,n){if(e.subtreeFlags&Vl)for(e=e.child;e!==null;)Ul(e,t,n),e=e.sibling}function Ul(e,t,n){switch(e.tag){case 26:Hl(e,t,n),e.flags&Vl&&e.memoizedState!==null&&q(n,Ol,e.memoizedState,e.memoizedProps);break;case 5:Hl(e,t,n);break;case 3:case 4:var r=Ol;Ol=Of(e.stateNode.containerInfo),Hl(e,t,n),Ol=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Vl,Vl=16777216,Hl(e,t,n),Vl=r):Hl(e,t,n));break;default:Hl(e,t,n)}}function Wl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Gl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];gl=r,Jl(r,e)}Wl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Kl(e),e=e.sibling}function Kl(e){switch(e.tag){case 0:case 11:case 15:Gl(e),e.flags&2048&&el(9,e,e.return);break;case 3:Gl(e);break;case 12:Gl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ql(e)):Gl(e);break;default:Gl(e)}}function ql(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];gl=r,Jl(r,e)}Wl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:el(8,t,t.return),ql(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,ql(t));break;default:ql(t)}e=e.sibling}}function Jl(e,t){for(;gl!==null;){var n=gl;switch(n.tag){case 0:case 11:case 15:el(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:_a(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,gl=r;else a:for(n=e;gl!==null;){r=gl;var i=r.sibling,a=r.return;if(yl(r),r===n){gl=null;break a}if(i!==null){i.return=a,gl=i;break a}gl=a}}}var Yl={getCacheForType:function(e){var t=la(ha),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return la(ha).controller.signal}},Xl=typeof WeakMap==`function`?WeakMap:Map,P=0,Zl=null,F=null,I=0,Ql=0,$l=null,eu=!1,tu=!1,nu=!1,ru=0,iu=0,au=0,ou=0,su=0,cu=0,lu=0,uu=null,du=null,fu=!1,pu=0,mu=0,hu=1/0,gu=null,_u=null,vu=0,yu=null,bu=null,xu=0,Su=0,Cu=null,wu=null,Tu=0,L=null;function Eu(){return P&2&&I!==0?I&-I:w.T===null?ft():wd()}function Du(){if(cu===0)if(!(I&536870912)||j){var e=Qe;Qe<<=1,!(Qe&3932160)&&(Qe=262144),cu=e}else cu=536870912;return e=fo.current,e!==null&&(e.flags|=32),cu}function Ou(e,t,n){(e===Zl&&(Ql===2||Ql===9)||e.cancelPendingCommit!==null)&&(Fu(e,0),Mu(e,I,cu,!1)),at(e,n),(!(P&2)||e!==Zl)&&(e===Zl&&(!(P&2)&&(ou|=n),iu===4&&Mu(e,I,cu,!1)),gd(e))}function ku(e,t,n){if(P&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||nt(e,t),a=r?Uu(e,t):Vu(e,t,!0),o=r;do{if(a===0){tu&&!r&&Mu(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!ju(n)){a=Vu(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=uu;var l=c.current.memoizedState.isDehydrated;if(l&&(Fu(c,s).flags|=256),s=Vu(c,s,!1),s!==2){if(nu&&!l){c.errorRecoveryDisabledLanes|=o,ou|=o,a=4;break a}o=du,du=a,o!==null&&(du===null?du=o:du.push.apply(du,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Fu(e,0),Mu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:Mu(r,t,cu,!eu);break a;case 2:du=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=pu+300-Ie(),10<a)){if(Mu(r,t,cu,!eu),tt(r,0,!0)!==0)break a;xu=t,r.timeoutHandle=V(Au.bind(null,r,n,du,gu,fu,t,cu,ou,lu,eu,o,`Throttled`,-0,0),a);break a}Au(r,n,du,gu,fu,t,cu,ou,lu,eu,o,null,-0,0)}}break}while(1);gd(e)}function Au(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ln},Ul(t,a,d);var m=(a&62914560)===a?pu-Ie():(a&4194048)===a?mu-Ie():0;if(m=$f(d,m),m!==null){xu=a,e.cancelPendingCommit=m(Xu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),Mu(e,a,o,!l);return}}Xu(e,t,a,n,r,i,o,s,c)}function ju(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!jr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Mu(e,t,n,r){t&=~su,t&=~ou,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-qe(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&st(e,n,t)}function Nu(){return P&6?!0:(_d(0,!1),!1)}function Pu(){if(F!==null){if(Ql===0)var e=F.return;else e=F,ta=ea=null,zo(e),Ba=null,Va=0,e=F;for(;e!==null;)Qc(e.alternate,e),e=e.return;F=null}}function Fu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,of(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),xu=0,Pu(),Zl=e,F=n=vi(e.current,null),I=t,Ql=0,$l=null,eu=!1,tu=nt(e,t),nu=!1,lu=cu=su=ou=au=iu=0,du=uu=null,fu=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-qe(r),a=1<<i;t|=e[i],r&=~a}return ru=t,ci(),n}function Iu(e,t){M=null,w.H=Ys,t===Aa||t===Ma?(t=Ra(),Ql=3):t===ja?(t=Ra(),Ql=4):Ql=t===pc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,$l=t,F===null&&(iu=1,sc(e,Ei(t,e.current)))}function Lu(){var e=fo.current;return e===null?!0:(I&4194048)===I?po===null:(I&62914560)===I||I&536870912?e===po:!1}function Ru(){var e=w.H;return w.H=Ys,e===null?Ys:e}function zu(){var e=w.A;return w.A=Yl,e}function Bu(){iu=4,eu||(I&4194048)!==I&&fo.current!==null||(tu=!0),!(au&134217727)&&!(ou&134217727)||Zl===null||Mu(Zl,I,cu,!1)}function Vu(e,t,n){var r=P;P|=2;var i=Ru(),a=zu();(Zl!==e||I!==t)&&(gu=null,Fu(e,t)),t=!1;var o=iu;a:do try{if(Ql!==0&&F!==null){var s=F,c=$l;switch(Ql){case 8:Pu(),o=6;break a;case 3:case 2:case 9:case 6:fo.current===null&&(t=!0);var l=Ql;if(Ql=0,$l=null,qu(e,s,c,l),n&&tu){o=0;break a}break;default:l=Ql,Ql=0,$l=null,qu(e,s,c,l)}}Hu(),o=iu;break}catch(t){Iu(e,t)}while(1);return t&&e.shellSuspendCounter++,ta=ea=null,P=r,w.H=i,w.A=a,F===null&&(Zl=null,I=0,ci()),o}function Hu(){for(;F!==null;)Gu(F)}function Uu(e,t){var n=P;P|=2;var r=Ru(),a=zu();Zl!==e||I!==t?(gu=null,hu=Ie()+500,Fu(e,t)):tu=nt(e,t);a:do try{if(Ql!==0&&F!==null){t=F;var o=$l;b:switch(Ql){case 1:Ql=0,$l=null,qu(e,t,o,1);break;case 2:case 9:if(Pa(o)){Ql=0,$l=null,Ku(t);break}t=function(){Ql!==2&&Ql!==9||Zl!==e||(Ql=7),gd(e)},o.then(t,t);break a;case 3:Ql=7;break a;case 4:Ql=5;break a;case 7:Pa(o)?(Ql=0,$l=null,Ku(t)):(Ql=0,$l=null,qu(e,t,o,7));break;case 5:var s=null;switch(F.tag){case 26:s=F.memoizedState;case 5:case 27:var c=F;if(s?Zf(s):c.stateNode.complete){Ql=0,$l=null;var l=c.sibling;if(l!==null)F=l;else{var u=c.return;u===null?F=null:(F=u,Ju(u))}break b}}Ql=0,$l=null,qu(e,t,o,5);break;case 6:Ql=0,$l=null,qu(e,t,o,6);break;case 8:Pu(),iu=6;break a;default:throw Error(i(462))}}Wu();break}catch(t){Iu(e,t)}while(1);return ta=ea=null,w.H=r,w.A=a,P=n,F===null?(Zl=null,I=0,ci(),iu):0}function Wu(){for(;F!==null&&!Pe();)Gu(F)}function Gu(e){var t=Uc(e.alternate,e,ru);e.memoizedProps=e.pendingProps,t===null?Ju(e):F=t}function Ku(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Dc(n,t,t.pendingProps,t.type,void 0,I);break;case 11:t=Dc(n,t,t.pendingProps,t.type.render,t.ref,I);break;case 5:zo(t);default:Qc(n,t),t=F=yi(t,ru),t=Uc(n,t,ru)}e.memoizedProps=e.pendingProps,t===null?Ju(e):F=t}function qu(e,t,n,r){ta=ea=null,zo(t),Ba=null,Va=0;var i=t.return;try{if(fc(e,i,t,n,I)){iu=1,sc(e,Ei(n,e.current)),F=null;return}}catch(t){if(i!==null)throw F=i,t;iu=1,sc(e,Ei(n,e.current)),F=null;return}t.flags&32768?(j||r===1?e=!0:tu||I&536870912?e=!1:(eu=e=!0,(r===2||r===9||r===3||r===6)&&(r=fo.current,r!==null&&r.tag===13&&(r.flags|=16384))),Yu(t,e)):Ju(t)}function Ju(e){var t=e;do{if(t.flags&32768){Yu(t,eu);return}e=t.return;var n=Xc(t.alternate,t,ru);if(n!==null){F=n;return}if(t=t.sibling,t!==null){F=t;return}F=t=e}while(t!==null);iu===0&&(iu=5)}function Yu(e,t){do{var n=Zc(e.alternate,e);if(n!==null){n.flags&=32767,F=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){F=e;return}F=e=n}while(e!==null);iu=6,F=null}function Xu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do td();while(vu!==0);if(P&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=si,ot(e,n,o,s,c,l),e===Zl&&(F=Zl=null,I=0),bu=t,yu=e,xu=n,Su=o,Cu=a,wu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,ld(O,function(){return nd(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=w.T,w.T=null,a=T.p,T.p=2,s=P,P|=4;try{_l(e,t,n)}finally{P=s,T.p=a,w.T=r}}vu=1,Zu(),Qu(),$u()}}function Zu(){if(vu===1){vu=0;var e=yu,t=bu,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=w.T,w.T=null;var r=T.p;T.p=2;var i=P;P|=4;try{kl(t,e);var a=Qd,o=Ir(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Fr(s.ownerDocument.documentElement,s)){if(c!==null&&Lr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Pr(s,h),v=Pr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}dp=!!Zd,Qd=Zd=null}finally{P=i,T.p=r,w.T=n}}e.current=t,vu=2}}function Qu(){if(vu===2){vu=0;var e=yu,t=bu,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=w.T,w.T=null;var r=T.p;T.p=2;var i=P;P|=4;try{vl(e,t.alternate,t)}finally{P=i,T.p=r,w.T=n}}vu=3}}function $u(){if(vu===4||vu===3){vu=0,Fe();var e=yu,t=bu,n=xu,r=wu;t.subtreeFlags&10256||t.flags&10256?vu=5:(vu=0,bu=yu=null,ed(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(_u=null),dt(n),t=t.stateNode,Ge&&typeof Ge.onCommitFiberRoot==`function`)try{Ge.onCommitFiberRoot(We,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=w.T,i=T.p,T.p=2,w.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{w.T=t,T.p=i}}xu&3&&td(),gd(e),i=e.pendingLanes,n&261930&&i&42?e===L?Tu++:(Tu=0,L=e):Tu=0,_d(0,!1)}}function ed(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,_a(t)))}function td(){return Zu(),Qu(),$u(),nd()}function nd(){if(vu!==5)return!1;var e=yu,t=Su;Su=0;var n=dt(xu),r=w.T,a=T.p;try{T.p=32>n?32:n,w.T=null,n=Cu,Cu=null;var o=yu,s=xu;if(vu=0,bu=yu=null,xu=0,P&6)throw Error(i(331));var c=P;if(P|=4,Kl(o.current),Rl(o,o.current,s,n),P=c,_d(0,!1),Ge&&typeof Ge.onPostCommitFiberRoot==`function`)try{Ge.onPostCommitFiberRoot(We,o)}catch{}return!0}finally{T.p=a,w.T=r,ed(e,t)}}function rd(e,t,n){t=Ei(n,t),t=lc(e.stateNode,t,2),e=Qa(e,t,2),e!==null&&(at(e,2),gd(e))}function R(e,t,n){if(e.tag===3)rd(e,e,n);else for(;t!==null;){if(t.tag===3){rd(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(_u===null||!_u.has(r))){e=Ei(n,e),n=uc(2),r=Qa(t,n,2),r!==null&&(dc(n,r,t,e),at(r,2),gd(r));break}}t=t.return}}function id(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Xl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(nu=!0,i.add(n),e=ad.bind(null,e,t,n),t.then(e,e))}function ad(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Zl===e&&(I&n)===n&&(iu===4||iu===3&&(I&62914560)===I&&300>Ie()-pu?!(P&2)&&Fu(e,0):su|=n,lu===I&&(lu=0)),gd(e)}function od(e,t){t===0&&(t=rt()),e=di(e,t),e!==null&&(at(e,t),gd(e))}function sd(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),od(e,n)}function cd(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),od(e,n)}function ld(e,t){return Me(e,t)}var ud=null,dd=null,fd=!1,pd=!1,md=!1,hd=0;function gd(e){e!==dd&&e.next===null&&(dd===null?ud=dd=e:dd=dd.next=e),pd=!0,fd||(fd=!0,Cd())}function _d(e,t){if(!md&&pd){md=!0;do for(var n=!1,r=ud;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-qe(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Sd(r,a))}else a=I,a=tt(r,r===Zl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||nt(r,a)||(n=!0,Sd(r,a));r=r.next}while(n);md=!1}}function vd(){yd()}function yd(){pd=fd=!1;var e=0;hd!==0&&af()&&(e=hd);for(var t=Ie(),n=null,r=ud;r!==null;){var i=r.next,a=bd(r,t);a===0?(r.next=null,n===null?ud=i:n.next=i,i===null&&(dd=n)):(n=r,(e!==0||a&3)&&(pd=!0)),r=i}vu!==0&&vu!==5||_d(e,!1),hd!==0&&(hd=0)}function bd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-qe(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=k(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Zl,n=I,n=tt(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Ql===2||Ql===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Ne(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||nt(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Ne(r),dt(n)){case 2:case 8:n=ze;break;case 32:n=O;break;case 268435456:n=Ve;break;default:n=O}return r=xd.bind(null,e),n=Me(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Ne(r),e.callbackPriority=2,e.callbackNode=null,2}function xd(e,t){if(vu!==0&&vu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(td()&&e.callbackNode!==n)return null;var r=I;return r=tt(e,e===Zl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(ku(e,r,t),bd(e,Ie()),e.callbackNode!=null&&e.callbackNode===n?xd.bind(null,e):null)}function Sd(e,t){if(td())return null;ku(e,t,!0)}function Cd(){cf(function(){P&6?Me(Re,vd):yd()})}function wd(){if(hd===0){var e=ba;e===0&&(e=Ze,Ze<<=1,!(Ze&261888)&&(Ze=256)),hd=e}return hd}function Td(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:cn(``+e)}function Ed(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Dd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Td((i[gt]||null).action),o=r.submitter;o&&(t=(t=o[gt]||null)?Td(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new An(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(hd!==0){var e=o?Ed(i,o):new FormData(i);Fs(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?Ed(i,o):new FormData(i),Fs(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Od=0;Od<ni.length;Od++){var kd=ni[Od];ri(kd.toLowerCase(),`on`+(kd[0].toUpperCase()+kd.slice(1)))}ri(A,`onAnimationEnd`),ri(Yr,`onAnimationIteration`),ri(Xr,`onAnimationStart`),ri(`dblclick`,`onDoubleClick`),ri(`focusin`,`onFocus`),ri(`focusout`,`onBlur`),ri(Zr,`onTransitionRun`),ri(Qr,`onTransitionStart`),ri($r,`onTransitionCancel`),ri(ei,`onTransitionEnd`),Mt(`onMouseEnter`,[`mouseout`,`mouseover`]),Mt(`onMouseLeave`,[`mouseout`,`mouseover`]),Mt(`onPointerEnter`,[`pointerout`,`pointerover`]),Mt(`onPointerLeave`,[`pointerout`,`pointerover`]),jt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),jt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),jt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),jt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),jt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),jt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Ad=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),jd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Ad));function Md(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){ii(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){ii(e)}i.currentTarget=null,a=c}}}}function z(e,t){var n=t[vt];n===void 0&&(n=t[vt]=new Set);var r=e+`__bubble`;n.has(r)||(Id(t,e,2,!1),n.add(r))}function Nd(e,t,n){var r=0;t&&(r|=4),Id(n,e,r,t)}var Pd=`_reactListening`+Math.random().toString(36).slice(2);function Fd(e){if(!e[Pd]){e[Pd]=!0,kt.forEach(function(t){t!==`selectionchange`&&(jd.has(t)||Nd(t,!1,e),Nd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Pd]||(t[Pd]=!0,Nd(`selectionchange`,!1,t))}}function Id(e,t,n,r){switch(vp(t)){case 2:var i=fp;break;case 8:i=pp;break;default:i=mp}n=i.bind(null,t,n,e),i=void 0,!yn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Ld(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;s!==null;){if(o=wt(s),o===null)return;if(l=o.tag,l===5||l===6||l===26||l===27){r=a=o;continue a}s=s.parentNode}}r=r.return}gn(function(){var r=a,i=dn(n),o=[];a:{var s=ti.get(e);if(s!==void 0){var l=An,u=e;switch(e){case`keypress`:if(Tn(n)===0)break a;case`keydown`:case`keyup`:l=Jn;break;case`focusin`:u=`focus`,l=zn;break;case`focusout`:u=`blur`,l=zn;break;case`beforeblur`:case`afterblur`:l=zn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Ln;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Rn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Xn;break;case A:case Yr:case Xr:l=Bn;break;case ei:l=Zn;break;case`scroll`:case`scrollend`:l=Mn;break;case`wheel`:l=Qn;break;case`copy`:case`cut`:case`paste`:l=Vn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Yn;break;case`toggle`:case`beforetoggle`:l=$n}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?s===null?null:s+`Capture`:s;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=_n(m,p),g!=null&&d.push(Rd(m,g,h))),f)break;m=m.return}0<d.length&&(s=new l(s,u,null,n,i),o.push({event:s,listeners:d}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,s&&n!==un&&(u=n.relatedTarget||n.fromElement)&&(wt(u)||u[_t]))break a;if((l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?wt(u):null,u!==null&&(f=c(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=Ln,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Yn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?s:Et(l),h=u==null?s:Et(u),s=new d(g,m+`leave`,l,n,i),s.target=f,s.relatedTarget=h,g=null,wt(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Bd,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Vd(o,s,l,d,!1),u!==null&&f!==null&&Vd(o,f,u,d,!0)}}a:{if(s=r?Et(r):window,l=s.nodeName&&s.nodeName.toLowerCase(),l===`select`||l===`input`&&s.type===`file`)var v=yr;else if(pr(s))if(br)v=kr;else{v=Dr;var y=Er}else l=s.nodeName,!l||l.toLowerCase()!==`input`||s.type!==`checkbox`&&s.type!==`radio`?r&&an(r.elementType)&&(v=yr):v=Or;if(v&&=v(e,r)){mr(o,v,n,i);break a}y&&y(e,s,r),e===`focusout`&&r&&s.type===`number`&&r.memoizedProps.value!=null&&Xt(s,`number`,s.value)}switch(y=r?Et(r):window,e){case`focusin`:(pr(y)||y.contentEditable===`true`)&&(zr=y,Br=r,Vr=null);break;case`focusout`:Vr=Br=zr=null;break;case`mousedown`:Hr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Hr=!1,Ur(o,n,i);break;case`selectionchange`:if(Rr)break;case`keydown`:case`keyup`:Ur(o,n,i)}var b;if(tr)b:{switch(e){case`compositionstart`:var ee=`onCompositionStart`;break b;case`compositionend`:ee=`onCompositionEnd`;break b;case`compositionupdate`:ee=`onCompositionUpdate`;break b}ee=void 0}else lr?sr(e,n)&&(ee=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(ee=`onCompositionStart`);ee&&(ir&&n.locale!==`ko`&&(lr||ee!==`onCompositionStart`?ee===`onCompositionEnd`&&lr&&(b=wn()):(xn=i,Sn=`value`in xn?xn.value:xn.textContent,lr=!0)),y=zd(r,ee),0<y.length&&(ee=new Hn(ee,e,null,n,i),o.push({event:ee,listeners:y}),b?ee.data=b:(b=cr(n),b!==null&&(ee.data=b)))),(b=rr?ur(e,n):dr(e,n))&&(ee=zd(r,`onBeforeInput`),0<ee.length&&(y=new Hn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:y,listeners:ee}),y.data=b)),Dd(o,e,r,n,i)}Md(o,t)})}function Rd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function zd(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=_n(e,n),i!=null&&r.unshift(Rd(e,i,a)),i=_n(e,t),i!=null&&r.push(Rd(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Bd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Vd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=_n(n,a),l!=null&&o.unshift(Rd(n,l,c))):i||(l=_n(n,a),l!=null&&o.push(Rd(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Hd=/\\r\\n?/g,Ud=/\\u0000|\\uFFFD/g;function Wd(e){return(typeof e==`string`?e:``+e).replace(Hd,`\n`).replace(Ud,``)}function Gd(e,t){return t=Wd(t),Wd(e)===t}function B(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||en(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&en(e,``+r);break;case`className`:Rt(e,`class`,r);break;case`tabIndex`:Rt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Rt(e,n,r);break;case`style`:rn(e,r,o);break;case`data`:if(t!==`object`){Rt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=cn(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof o==`function`&&(n===`formAction`?(t!==`input`&&B(e,t,`name`,a.name,a,null),B(e,t,`formEncType`,a.formEncType,a,null),B(e,t,`formMethod`,a.formMethod,a,null),B(e,t,`formTarget`,a.formTarget,a,null)):(B(e,t,`encType`,a.encType,a,null),B(e,t,`method`,a.method,a,null),B(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=cn(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=ln);break;case`onScroll`:r!=null&&z(`scroll`,e);break;case`onScrollEnd`:r!=null&&z(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=cn(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:z(`beforetoggle`,e),z(`toggle`,e),Lt(e,`popover`,r);break;case`xlinkActuate`:zt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:zt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:zt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:zt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:zt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:zt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:zt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:zt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:zt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Lt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=on.get(n)||n,Lt(e,n,r))}}function Kd(e,t,n,r,a,o){switch(n){case`style`:rn(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?en(e,r):(typeof r==`number`||typeof r==`bigint`)&&en(e,``+r);break;case`onScroll`:r!=null&&z(`scroll`,e);break;case`onScrollEnd`:r!=null&&z(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=ln);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!At.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[gt]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):Lt(e,n,r)}}}function qd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:z(`error`,e),z(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:B(e,t,o,s,n,null)}}a&&B(e,t,`srcSet`,n.srcSet,n,null),r&&B(e,t,`src`,n.src,n,null);return;case`input`:z(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:B(e,t,r,d,n,null)}}Yt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in z(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:B(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Zt(e,!!r,n,!0):Zt(e,!!r,t,!1);return;case`textarea`:for(s in z(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:B(e,t,s,c,n,null)}$t(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:B(e,t,l,r,n,null)}return;case`dialog`:z(`beforetoggle`,e),z(`toggle`,e),z(`cancel`,e),z(`close`,e);break;case`iframe`:case`object`:z(`load`,e);break;case`video`:case`audio`:for(r=0;r<Ad.length;r++)z(Ad[r],e);break;case`image`:z(`error`,e),z(`load`,e);break;case`details`:z(`toggle`,e);break;case`embed`:case`source`:case`link`:z(`error`,e),z(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:B(e,t,u,r,n,null)}return;default:if(an(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Kd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&B(e,t,c,r,n,null))}function Jd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||B(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&B(e,t,p,m,r,f)}}Jt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||B(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&B(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Zt(e,!!n,n?[]:``,!1):Zt(e,!!n,t,!0)):Zt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:B(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&B(e,t,s,a,r,o)}Qt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:B(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:B(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&B(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:B(e,t,u,p,r,m)}return;default:if(an(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Kd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Kd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&B(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||B(e,t,f,p,r,m)}function Yd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Xd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Yd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Yd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Zd=null,Qd=null;function $d(e){return e.nodeType===9?e:e.ownerDocument}function ef(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function tf(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function nf(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var rf=null;function af(){var e=window.event;return e&&e.type===`popstate`?e===rf?!1:(rf=e,!0):(rf=null,!1)}var V=typeof setTimeout==`function`?setTimeout:void 0,of=typeof clearTimeout==`function`?clearTimeout:void 0,sf=typeof Promise==`function`?Promise:void 0,cf=typeof queueMicrotask==`function`?queueMicrotask:sf===void 0?V:function(e){return sf.resolve(null).then(e).catch(lf)};function lf(e){setTimeout(function(){throw e})}function uf(e){return e===`head`}function df(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Ip(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)Tf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,Tf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[St]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&Tf(e.ownerDocument.body);n=i}while(n);Ip(t)}function ff(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function pf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:pf(n),Ct(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function mf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[St])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=bf(e.nextSibling),e===null)break}return null}function hf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=bf(e.nextSibling),e===null))return null;return e}function gf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=bf(e.nextSibling),e===null))return null;return e}function _f(e){return e.data===`$?`||e.data===`$~`}function vf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function yf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function bf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var xf=null;function Sf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return bf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function Cf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function wf(e,t,n){switch(t=$d(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function Tf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ct(e)}var Ef=new Map,Df=new Set;function Of(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var kf=T.d;T.d={f:Af,r:jf,D:H,C:Pf,L:Ff,m:If,X:Rf,S:Lf,M:U};function Af(){var e=kf.f(),t=Nu();return e||t}function jf(e){var t=Tt(e);t!==null&&t.tag===5&&t.type===`form`?Ls(t):kf.r(e)}var Mf=typeof document>`u`?null:document;function Nf(e,t,n){var r=Mf;if(r&&typeof t==`string`&&t){var i=qt(t);i=`link[rel=\"`+e+`\"][href=\"`+i+`\"]`,typeof n==`string`&&(i+=`[crossorigin=\"`+n+`\"]`),Df.has(i)||(Df.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),qd(t,`link`,e),Ot(t),r.head.appendChild(t)))}}function H(e){kf.D(e),Nf(`dns-prefetch`,e,null)}function Pf(e,t){kf.C(e,t),Nf(`preconnect`,e,t)}function Ff(e,t,n){kf.L(e,t,n);var r=Mf;if(r&&e&&t){var i=`link[rel=\"preload\"][as=\"`+qt(t)+`\"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset=\"`+qt(n.imageSrcSet)+`\"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes=\"`+qt(n.imageSizes)+`\"]`)):i+=`[href=\"`+qt(e)+`\"]`;var a=i;switch(t){case`style`:a=Bf(e);break;case`script`:a=Wf(e)}Ef.has(a)||(e=h({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Ef.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Vf(a))||t===`script`&&r.querySelector(Gf(a))||(t=r.createElement(`link`),qd(t,`link`,e),Ot(t),r.head.appendChild(t)))}}function If(e,t){kf.m(e,t);var n=Mf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel=\"modulepreload\"][as=\"`+qt(r)+`\"][href=\"`+qt(e)+`\"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Wf(e)}if(!Ef.has(a)&&(e=h({rel:`modulepreload`,href:e},t),Ef.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Gf(a)))return}r=n.createElement(`link`),qd(r,`link`,e),Ot(r),n.head.appendChild(r)}}}function Lf(e,t,n){kf.S(e,t,n);var r=Mf;if(r&&e){var i=Dt(r).hoistableStyles,a=Bf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Vf(a)))s.loading=5;else{e=h({rel:`stylesheet`,href:e,\"data-precedence\":t},n),(n=Ef.get(a))&&qf(e,n);var c=o=r.createElement(`link`);Ot(c),qd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Kf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Rf(e,t){kf.X(e,t);var n=Mf;if(n&&e){var r=Dt(n).hoistableScripts,i=Wf(e),a=r.get(i);a||(a=n.querySelector(Gf(i)),a||(e=h({src:e,async:!0},t),(t=Ef.get(i))&&Jf(e,t),a=n.createElement(`script`),Ot(a),qd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function U(e,t){kf.M(e,t);var n=Mf;if(n&&e){var r=Dt(n).hoistableScripts,i=Wf(e),a=r.get(i);a||(a=n.querySelector(Gf(i)),a||(e=h({src:e,async:!0,type:`module`},t),(t=Ef.get(i))&&Jf(e,t),a=n.createElement(`script`),Ot(a),qd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function zf(e,t,n,r){var a=(a=be.current)?Of(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Bf(n.href),n=Dt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Bf(n.href);var o=Dt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Vf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),Ef.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Ef.set(e,n),o||Uf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Wf(n),n=Dt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Bf(e){return`href=\"`+qt(e)+`\"`}function Vf(e){return`link[rel=\"stylesheet\"][`+e+`]`}function Hf(e){return h({},e,{\"data-precedence\":e.precedence,precedence:null})}function Uf(e,t,n,r){e.querySelector(`link[rel=\"preload\"][as=\"style\"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),qd(t,`link`,n),Ot(t),e.head.appendChild(t))}function Wf(e){return`[src=\"`+qt(e)+`\"]`}function Gf(e){return`script[async]`+e}function W(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~=\"`+qt(n.href)+`\"]`);if(r)return t.instance=r,Ot(r),r;var a=h({},n,{\"data-href\":n.href,\"data-precedence\":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Ot(r),qd(r,`style`,a),Kf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Bf(n.href);var o=e.querySelector(Vf(a));if(o)return t.state.loading|=4,t.instance=o,Ot(o),o;r=Hf(n),(a=Ef.get(a))&&qf(r,a),o=(e.ownerDocument||e).createElement(`link`),Ot(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),qd(o,`link`,r),t.state.loading|=4,Kf(o,n.precedence,e),t.instance=o;case`script`:return o=Wf(n.src),(a=e.querySelector(Gf(o)))?(t.instance=a,Ot(a),a):(r=n,(a=Ef.get(o))&&(r=h({},n),Jf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Ot(a),qd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Kf(r,n.precedence,e));return t.instance}function Kf(e,t,n){for(var r=n.querySelectorAll(`link[rel=\"stylesheet\"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function qf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Jf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var G=null;function Yf(e,t,n){if(G===null){var r=new Map,i=G=new Map;i.set(n,r)}else i=G,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[St]||a[ht]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function K(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Xf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Zf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function q(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Bf(r.href),a=t.querySelector(Vf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=ep.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Ot(a);return}a=t.ownerDocument||t,r=Hf(r),(i=Ef.get(i))&&qf(r,i),a=a.createElement(`link`),Ot(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),qd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=ep.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Qf=0;function $f(e,t){return e.stylesheets&&e.count===0&&J(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&J(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Qf===0&&(Qf=62500*Xd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&J(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Qf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function ep(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)J(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var tp=null;function J(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,tp=new Map,t.forEach(np,e),tp=null,ep.call(e))}function np(e,t){if(!(t.state.loading&4)){var n=tp.get(e);if(n)var r=n.get(null);else{n=new Map,tp.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=ep.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var rp={$$typeof:ne,Provider:null,Consumer:null,_currentValue:fe,_currentValue2:fe,_threadCount:0};function ip(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=it(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=it(0),this.hiddenUpdates=it(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function ap(e,t,n,r,i,a,o,s,c,l,u,d){return e=new ip(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=gi(3,null,null,t),e.current=a,a.stateNode=e,t=ga(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Ya(a),e}function op(e){return e?(e=mi,e):mi}function sp(e,t,n,r,i,a){i=op(i),r.context===null?r.context=i:r.pendingContext=i,r=Za(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Qa(e,r,t),n!==null&&(Ou(n,e,t),$a(n,e,t))}function Y(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function cp(e,t){Y(e,t),(e=e.alternate)&&Y(e,t)}function lp(e){if(e.tag===13||e.tag===31){var t=di(e,67108864);t!==null&&Ou(t,e,67108864),cp(e,67108864)}}function up(e){if(e.tag===13||e.tag===31){var t=Eu();t=ut(t);var n=di(e,t);n!==null&&Ou(n,e,t),cp(e,t)}}var dp=!0;function fp(e,t,n,r){var i=w.T;w.T=null;var a=T.p;try{T.p=2,mp(e,t,n,r)}finally{T.p=a,w.T=i}}function pp(e,t,n,r){var i=w.T;w.T=null;var a=T.p;try{T.p=8,mp(e,t,n,r)}finally{T.p=a,w.T=i}}function mp(e,t,n,r){if(dp){var i=hp(r);if(i===null)Ld(e,t,r,gp,n),Dp(e,r);else if(kp(i,e,t,n,r))r.stopPropagation();else if(Dp(e,r),t&4&&-1<Ep.indexOf(e)){for(;i!==null;){var a=Tt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=et(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-qe(o);s.entanglements[1]|=c,o&=~c}gd(a),!(P&6)&&(hu=Ie()+500,_d(0,!1))}}break;case 31:case 13:s=di(a,2),s!==null&&Ou(s,a,2),Nu(),cp(a,2)}if(a=hp(r),a===null&&Ld(e,t,r,gp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Ld(e,t,r,null,n)}}function hp(e){return e=dn(e),_p(e)}var gp=null;function _p(e){if(gp=null,e=wt(e),e!==null){var t=c(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=u(t),e!==null)return e;e=null}else if(n===31){if(e=d(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return gp=e,null}function vp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Le()){case Re:return 2;case ze:return 8;case O:case Be:return 32;case Ve:return 268435456;default:return 32}default:return 32}}var yp=!1,bp=null,xp=null,Sp=null,Cp=new Map,wp=new Map,Tp=[],Ep=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Dp(e,t){switch(e){case`focusin`:case`focusout`:bp=null;break;case`dragenter`:case`dragleave`:xp=null;break;case`mouseover`:case`mouseout`:Sp=null;break;case`pointerover`:case`pointerout`:Cp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:wp.delete(t.pointerId)}}function Op(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Tt(t),t!==null&&lp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function kp(e,t,n,r,i){switch(t){case`focusin`:return bp=Op(bp,e,t,n,r,i),!0;case`dragenter`:return xp=Op(xp,e,t,n,r,i),!0;case`mouseover`:return Sp=Op(Sp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Cp.set(a,Op(Cp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,wp.set(a,Op(wp.get(a)||null,e,t,n,r,i)),!0}return!1}function Ap(e){var t=wt(e.target);if(t!==null){var n=c(t);if(n!==null){if(t=n.tag,t===13){if(t=u(n),t!==null){e.blockedOn=t,pt(e.priority,function(){up(n)});return}}else if(t===31){if(t=d(n),t!==null){e.blockedOn=t,pt(e.priority,function(){up(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function jp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=hp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);un=r,n.target.dispatchEvent(r),un=null}else return t=Tt(n),t!==null&&lp(t),e.blockedOn=n,!1;t.shift()}return!0}function Mp(e,t,n){jp(e)&&n.delete(t)}function Np(){yp=!1,bp!==null&&jp(bp)&&(bp=null),xp!==null&&jp(xp)&&(xp=null),Sp!==null&&jp(Sp)&&(Sp=null),Cp.forEach(Mp),wp.forEach(Mp)}function Pp(e,n){e.blockedOn===n&&(e.blockedOn=null,yp||(yp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Np)))}var Fp=null;function X(e){Fp!==e&&(Fp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Fp===e&&(Fp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(_p(r||n)===null)continue;break}var a=Tt(n);a!==null&&(e.splice(t,3),t-=3,Fs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Ip(e){function t(t){return Pp(t,e)}bp!==null&&Pp(bp,e),xp!==null&&Pp(xp,e),Sp!==null&&Pp(Sp,e),Cp.forEach(t),wp.forEach(t);for(var n=0;n<Tp.length;n++){var r=Tp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Tp.length&&(n=Tp[0],n.blockedOn===null);)Ap(n),n.blockedOn===null&&Tp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[gt]||null;if(typeof a==`function`)o||X(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[gt]||null)s=o.formAction;else if(_p(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),X(n)}}}function Lp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Z(e){this._internalRoot=e}Rp.prototype.render=Z.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;sp(n,Eu(),e,t,null,null)},Rp.prototype.unmount=Z.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;sp(e.current,2,null,e,null,null),Nu(),t[_t]=null}};function Rp(e){this._internalRoot=e}Rp.prototype.unstable_scheduleHydration=function(e){if(e){var t=ft();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Tp.length&&t!==0&&t<Tp[n].priority;n++);Tp.splice(n,0,e),n===0&&Ap(e)}};var zp=n.version;if(zp!==`19.2.8`)throw Error(i(527,zp,`19.2.8`));T.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=p(t),e=e===null?null:m(e),e=e===null?null:e.stateNode,e};var Bp={bundleType:0,version:`19.2.8`,rendererPackageName:`react-dom`,currentDispatcherRef:w,reconcilerVersion:`19.2.8`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Vp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vp.isDisabled&&Vp.supportsFiber)try{We=Vp.inject(Bp),Ge=Vp}catch{}}e.createRoot=function(e,t){if(!o(e))throw Error(i(299));var n=!1,r=``,a=ic,s=ac,c=oc;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=ap(e,1,!1,null,null,n,r,null,a,s,c,Lp),e[_t]=t.current,Fd(e),new Z(t)}})),d=n(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=u()}));function f(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,\"_zod\",{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,\"name\",{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,\"init\",{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,\"name\",{value:e}),o}function p(e){return e&&Object.assign(y,e),y}var m,h,g,_,v,y,b=t((()=>{h=Object.freeze({status:`aborted`}),g=Symbol(`zod_brand`),_=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},v=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},(m=globalThis).__zod_globalConfig??(m.__zod_globalConfig={}),y=globalThis.__zod_globalConfig})),ee=r({BIGINT_FORMAT_RANGES:()=>tt,Class:()=>nt,NUMBER_FORMAT_RANGES:()=>et,aborted:()=>Ne,allowsEval:()=>Xe,assert:()=>ie,assertEqual:()=>te,assertIs:()=>x,assertNever:()=>re,assertNotEqual:()=>ne,assignProp:()=>w,base64ToUint8Array:()=>He,base64urlToUint8Array:()=>We,cached:()=>se,captureStackTrace:()=>Ye,cleanEnum:()=>Ve,cleanRegex:()=>le,clone:()=>Ce,cloneDef:()=>fe,createTransparentProxy:()=>we,defineLazy:()=>C,esc:()=>ge,escapeRegex:()=>Se,explicitlyAborted:()=>Pe,extend:()=>Oe,finalizeIssue:()=>Le,floatSafeRemainder:()=>ue,getElementAtPath:()=>pe,getEnumValues:()=>ae,getLengthableOrigin:()=>ze,getParsedType:()=>Ze,getSizableOrigin:()=>Re,hexToUint8Array:()=>Ke,isObject:()=>ve,isPlainObject:()=>ye,issue:()=>Be,joinValues:()=>S,jsonStringifyReplacer:()=>oe,merge:()=>Ae,mergeDefs:()=>T,normalizeParams:()=>E,nullish:()=>ce,numKeys:()=>xe,objectClone:()=>de,omit:()=>De,optionalKeys:()=>Te,parsedType:()=>O,partial:()=>je,pick:()=>Ee,prefixIssues:()=>Fe,primitiveTypes:()=>$e,promiseAllObject:()=>me,propertyKeyTypes:()=>Qe,randomString:()=>he,required:()=>Me,safeExtend:()=>ke,shallowClone:()=>be,slugify:()=>_e,stringifyPrimitive:()=>D,uint8ArrayToBase64:()=>Ue,uint8ArrayToBase64url:()=>Ge,uint8ArrayToHex:()=>qe,unwrapMessage:()=>Ie});function te(e){return e}function ne(e){return e}function x(e){}function re(e){throw Error(`Unexpected value in exhaustive check`)}function ie(e){}function ae(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function S(e,t=`|`){return e.map(e=>D(e)).join(t)}function oe(e,t){return typeof t==`bigint`?t.toString():t}function se(e){return{get value(){{let t=e();return Object.defineProperty(this,\"value\",{value:t}),t}throw Error(`cached value already set`)}}}function ce(e){return e==null}function le(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function ue(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}function C(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Je)return r===void 0&&(r=Je,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function de(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function w(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function T(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}function fe(e){return T(e._zod.def)}function pe(e,t){return t?t.reduce((e,t)=>e?.[t],e):e}function me(e){let t=Object.keys(e),n=t.map(t=>e[t]);return Promise.all(n).then(e=>{let n={};for(let r=0;r<t.length;r++)n[t[r]]=e[r];return n})}function he(e=10){let t=``;for(let n=0;n<e;n++)t+=`abcdefghijklmnopqrstuvwxyz`[Math.floor(Math.random()*26)];return t}function ge(e){return JSON.stringify(e)}function _e(e){return e.toLowerCase().trim().replace(/[^\\w\\s-]/g,``).replace(/[\\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}function ve(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function ye(e){if(ve(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(ve(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function be(e){return ye(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function xe(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}function Se(e){return e.replace(/[.*+?^${}()|[\\]\\\\]/g,`\\\\$&`)}function Ce(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function E(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error(\"Cannot specify both `message` and `error` params\");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function we(e){let t;return new Proxy({},{get(n,r,i){return t??=e(),Reflect.get(t,r,i)},set(n,r,i,a){return t??=e(),Reflect.set(t,r,i,a)},has(n,r){return t??=e(),Reflect.has(t,r)},deleteProperty(n,r){return t??=e(),Reflect.deleteProperty(t,r)},ownKeys(n){return t??=e(),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,r){return t??=e(),Reflect.getOwnPropertyDescriptor(t,r)},defineProperty(n,r,i){return t??=e(),Reflect.defineProperty(t,r,i)}})}function D(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`\"${e}\"`:`${e}`}function Te(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}function Ee(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return Ce(e,T(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: \"${r}\"`);t[r]&&(e[r]=n.shape[r])}return w(this,`shape`,e),e},checks:[]}))}function De(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return Ce(e,T(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: \"${e}\"`);t[e]&&delete r[e]}return w(this,`shape`,r),r},checks:[]}))}function Oe(e,t){if(!ye(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error(\"Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.\")}return Ce(e,T(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return w(this,`shape`,n),n}}))}function ke(e,t){if(!ye(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return Ce(e,T(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return w(this,`shape`,n),n}}))}function Ae(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return Ce(e,T(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return w(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function je(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return Ce(t,T(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: \"${t}\"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return w(this,`shape`,i),i},checks:[]}))}function Me(e,t,n){return Ce(t,T(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: \"${t}\"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return w(this,`shape`,i),i}}))}function Ne(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Pe(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function Fe(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function Ie(e){return typeof e==`string`?e:e?.message}function Le(e,t,n){let r=e.message?e.message:Ie(e.inst?._zod.def?.error?.(e))??Ie(t?.error?.(e))??Ie(n.customError?.(e))??Ie(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function Re(e){return e instanceof Set?`set`:e instanceof Map?`map`:e instanceof File?`file`:`unknown`}function ze(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function O(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function Be(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function Ve(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function He(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}function Ue(e){let t=``;for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function We(e){let t=e.replace(/-/g,`+`).replace(/_/g,`/`);return He(t+`=`.repeat((4-t.length%4)%4))}function Ge(e){return Ue(e).replace(/\\+/g,`-`).replace(/\\//g,`_`).replace(/=/g,``)}function Ke(e){let t=e.replace(/^0x/,``);if(t.length%2!=0)throw Error(`Invalid hex string length`);let n=new Uint8Array(t.length/2);for(let e=0;e<t.length;e+=2)n[e/2]=Number.parseInt(t.slice(e,e+2),16);return n}function qe(e){return Array.from(e).map(e=>e.toString(16).padStart(2,`0`)).join(``)}var Je,Ye,Xe,Ze,Qe,$e,et,tt,nt,k=t((()=>{b(),Je=Symbol(`evaluating`),Ye=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{},Xe=se(()=>{if(y.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}}),Ze=e=>{let t=typeof e;switch(t){case`undefined`:return`undefined`;case`string`:return`string`;case`number`:return Number.isNaN(e)?`nan`:`number`;case`boolean`:return`boolean`;case`function`:return`function`;case`bigint`:return`bigint`;case`symbol`:return`symbol`;case`object`:return Array.isArray(e)?`array`:e===null?`null`:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?`promise`:typeof Map<`u`&&e instanceof Map?`map`:typeof Set<`u`&&e instanceof Set?`set`:typeof Date<`u`&&e instanceof Date?`date`:typeof File<`u`&&e instanceof File?`file`:`object`;default:throw Error(`Unknown data type: ${t}`)}},Qe=new Set([`string`,`number`,`symbol`]),$e=new Set([`string`,`number`,`bigint`,`boolean`,`symbol`,`undefined`]),et={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},tt={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]},nt=class{constructor(...e){}}}));function rt(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function it(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i<e.length;){let n=e[i];i===e.length-1?(r[n]=r[n]||{_errors:[]},r[n]._errors.push(t(a))):r[n]=r[n]||{_errors:[]},r=r[n],i++}}}};return r(e),n}function at(e,t=e=>e.message){let n={errors:[]},r=(e,i=[])=>{var a,o;for(let s of e.issues)if(s.code===`invalid_union`&&s.errors.length)s.errors.map(e=>r({issues:e},[...i,...s.path]));else if(s.code===`invalid_key`)r({issues:s.issues},[...i,...s.path]);else if(s.code===`invalid_element`)r({issues:s.issues},[...i,...s.path]);else{let e=[...i,...s.path];if(e.length===0){n.errors.push(t(s));continue}let r=n,c=0;for(;c<e.length;){let n=e[c],i=c===e.length-1;typeof n==`string`?(r.properties??={},(a=r.properties)[n]??(a[n]={errors:[]}),r=r.properties[n]):(r.items??=[],(o=r.items)[n]??(o[n]={errors:[]}),r=r.items[n]),i&&r.errors.push(t(s)),c++}}};return r(e),n}function ot(e){let t=[],n=e.map(e=>typeof e==`object`?e.key:e);for(let e of n)typeof e==`number`?t.push(`[${e}]`):typeof e==`symbol`?t.push(`[${JSON.stringify(String(e))}]`):/[^\\w$]/.test(e)?t.push(`[${JSON.stringify(e)}]`):(t.length&&t.push(`.`),t.push(e));return t.join(``)}function st(e){let t=[],n=[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length);for(let e of n)t.push(`✖ ${e.message}`),e.path?.length&&t.push(` → at ${ot(e.path)}`);return t.join(`\n`)}var ct,lt,ut,dt=t((()=>{b(),k(),ct=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,\"_zod\",{value:e._zod,enumerable:!1}),Object.defineProperty(e,\"issues\",{value:t,enumerable:!1}),e.message=JSON.stringify(t,oe,2),Object.defineProperty(e,\"toString\",{value:()=>e.message,enumerable:!1})},lt=f(`$ZodError`,ct),ut=f(`$ZodError`,ct,{Parent:Error})})),ft,pt,mt,ht,gt,_t,vt,yt,bt,xt,St,Ct,wt,Tt,Et,Dt,Ot,kt,At,jt,Mt,Nt,Pt,Ft,It=t((()=>{b(),dt(),k(),ft=e=>(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new _;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>Le(e,a,p())));throw Ye(t,i?.callee),t}return o.value},pt=ft(ut),mt=e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>Le(e,a,p())));throw Ye(t,i?.callee),t}return o.value},ht=mt(ut),gt=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new _;return a.issues.length?{success:!1,error:new(e??lt)(a.issues.map(e=>Le(e,i,p())))}:{success:!0,data:a.value}},_t=gt(ut),vt=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>Le(e,i,p())))}:{success:!0,data:a.value}},yt=vt(ut),bt=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return ft(e)(t,n,i)},xt=bt(ut),St=e=>(t,n,r)=>ft(e)(t,n,r),Ct=St(ut),wt=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return mt(e)(t,n,i)},Tt=wt(ut),Et=e=>async(t,n,r)=>mt(e)(t,n,r),Dt=Et(ut),Ot=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return gt(e)(t,n,i)},kt=Ot(ut),At=e=>(t,n,r)=>gt(e)(t,n,r),jt=At(ut),Mt=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return vt(e)(t,n,i)},Nt=Mt(ut),Pt=e=>async(t,n,r)=>vt(e)(t,n,r),Ft=Pt(ut)})),Lt=r({base64:()=>gn,base64url:()=>_n,bigint:()=>Tn,boolean:()=>On,browserEmail:()=>ln,cidrv4:()=>mn,cidrv6:()=>hn,cuid:()=>Wt,cuid2:()=>Gt,date:()=>Cn,datetime:()=>Vt,domain:()=>yn,duration:()=>Xt,e164:()=>xn,email:()=>rn,emoji:()=>Rt,extendedDuration:()=>Zt,guid:()=>Qt,hex:()=>Nn,hostname:()=>vn,html5Email:()=>an,httpProtocol:()=>bn,idnEmail:()=>cn,integer:()=>En,ipv4:()=>dn,ipv6:()=>fn,ksuid:()=>Jt,lowercase:()=>jn,mac:()=>pn,md5_base64:()=>Fn,md5_base64url:()=>In,md5_hex:()=>Pn,nanoid:()=>Yt,null:()=>kn,number:()=>Dn,rfc5322Email:()=>on,sha1_base64:()=>Rn,sha1_base64url:()=>zn,sha1_hex:()=>Ln,sha256_base64:()=>Vn,sha256_base64url:()=>Hn,sha256_hex:()=>Bn,sha384_base64:()=>Wn,sha384_base64url:()=>Gn,sha384_hex:()=>Un,sha512_base64:()=>qn,sha512_base64url:()=>Jn,sha512_hex:()=>Kn,string:()=>wn,time:()=>Bt,ulid:()=>Kt,undefined:()=>An,unicodeEmail:()=>sn,uppercase:()=>Mn,uuid:()=>$t,uuid4:()=>en,uuid6:()=>tn,uuid7:()=>nn,xid:()=>qt});function Rt(){return new RegExp(un,`u`)}function zt(e){let t=`(?:[01]\\\\d|2[0-3]):[0-5]\\\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\\\d`:`${t}:[0-5]\\\\d\\\\.\\\\d{${e.precision}}`:`${t}(?::[0-5]\\\\d(?:\\\\.\\\\d+)?)?`}function Bt(e){return RegExp(`^${zt(e)}$`)}function Vt(e){let t=zt({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\\\d|2[0-3]):[0-5]\\\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${Sn}T(?:${r})$`)}function Ht(e,t){return RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Ut(e){return RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var Wt,Gt,Kt,qt,Jt,Yt,Xt,Zt,Qt,$t,en,tn,nn,rn,an,on,sn,cn,ln,un,dn,fn,pn,mn,hn,gn,_n,vn,yn,bn,xn,Sn,Cn,wn,Tn,En,Dn,On,kn,An,jn,Mn,Nn,Pn,Fn,In,Ln,Rn,zn,Bn,Vn,Hn,Un,Wn,Gn,Kn,qn,Jn,Yn=t((()=>{k(),Wt=/^[cC][0-9a-z]{6,}$/,Gt=/^[0-9a-z]+$/,Kt=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,qt=/^[0-9a-vA-V]{20}$/,Jt=/^[A-Za-z0-9]{27}$/,Yt=/^[a-zA-Z0-9_-]{21}$/,Xt=/^P(?:(\\d+W)|(?!.*W)(?=\\d|T\\d)(\\d+Y)?(\\d+M)?(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+([.,]\\d+)?S)?)?)$/,Zt=/^[-+]?P(?!$)(?:(?:[-+]?\\d+Y)|(?:[-+]?\\d+[.,]\\d+Y$))?(?:(?:[-+]?\\d+M)|(?:[-+]?\\d+[.,]\\d+M$))?(?:(?:[-+]?\\d+W)|(?:[-+]?\\d+[.,]\\d+W$))?(?:(?:[-+]?\\d+D)|(?:[-+]?\\d+[.,]\\d+D$))?(?:T(?=[\\d+-])(?:(?:[-+]?\\d+H)|(?:[-+]?\\d+[.,]\\d+H$))?(?:(?:[-+]?\\d+M)|(?:[-+]?\\d+[.,]\\d+M$))?(?:[-+]?\\d+(?:[.,]\\d+)?S)?)??$/,Qt=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,$t=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,en=$t(4),tn=$t(6),nn=$t(7),rn=/^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$/,an=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,on=/^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/,sn=/^[^\\s@\"]{1,64}@[^\\s@]{1,255}$/u,cn=sn,ln=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,un=`^(\\\\p{Extended_Pictographic}|\\\\p{Emoji_Component})+$`,dn=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,fn=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,pn=e=>{let t=Se(e??`:`);return RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},mn=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\/([0-9]|[1-2][0-9]|3[0-2])$/,hn=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,gn=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,_n=/^[A-Za-z0-9_-]*$/,vn=/^(?=.{1,253}\\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\\.?$/,yn=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,}$/,bn=/^https?$/,xn=/^\\+[1-9]\\d{6,14}$/,Sn=`(?:(?:\\\\d\\\\d[2468][048]|\\\\d\\\\d[13579][26]|\\\\d\\\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\\\d|30)|(?:02)-(?:0[1-9]|1\\\\d|2[0-8])))`,Cn=RegExp(`^${Sn}$`),wn=e=>{let t=e?`[\\\\s\\\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\\\s\\\\S]*`;return RegExp(`^${t}$`)},Tn=/^-?\\d+n?$/,En=/^-?\\d+$/,Dn=/^-?\\d+(?:\\.\\d+)?$/,On=/^(?:true|false)$/i,kn=/^null$/i,An=/^undefined$/i,jn=/^[^A-Z]*$/,Mn=/^[^a-z]*$/,Nn=/^[0-9a-fA-F]*$/,Pn=/^[0-9a-fA-F]{32}$/,Fn=Ht(22,`==`),In=Ut(22),Ln=/^[0-9a-fA-F]{40}$/,Rn=Ht(27,`=`),zn=Ut(27),Bn=/^[0-9a-fA-F]{64}$/,Vn=Ht(43,`=`),Hn=Ut(43),Un=/^[0-9a-fA-F]{96}$/,Wn=Ht(64,``),Gn=Ut(64),Kn=/^[0-9a-fA-F]{128}$/,qn=Ht(86,`==`),Jn=Ut(86)}));function Xn(e,t,n){e.issues.length&&t.issues.push(...Fe(n,e.issues))}var Zn,Qn,$n,er,tr,nr,rr,ir,ar,or,sr,cr,lr,ur,dr,fr,pr,mr,hr,gr,_r,vr,yr,br=t((()=>{b(),Yn(),k(),Zn=f(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Qn={number:`number`,bigint:`bigint`,object:`date`},$n=f(`$ZodCheckLessThan`,(e,t)=>{Zn.init(e,t);let n=Qn[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),er=f(`$ZodCheckGreaterThan`,(e,t)=>{Zn.init(e,t);let n=Qn[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),tr=f(`$ZodCheckMultipleOf`,(e,t)=>{Zn.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):ue(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),nr=f(`$ZodCheckNumberFormat`,(e,t)=>{Zn.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=et[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=En)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),rr=f(`$ZodCheckBigIntFormat`,(e,t)=>{Zn.init(e,t);let[n,r]=tt[t.format];e._zod.onattach.push(e=>{let i=e._zod.bag;i.format=t.format,i.minimum=n,i.maximum=r}),e._zod.check=i=>{let a=i.value;a<n&&i.issues.push({origin:`bigint`,input:a,code:`too_small`,minimum:n,inclusive:!0,inst:e,continue:!t.abort}),a>r&&i.issues.push({origin:`bigint`,input:a,code:`too_big`,maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),ir=f(`$ZodCheckMaxSize`,(e,t)=>{var n;Zn.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!ce(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;r.size<=t.maximum||n.issues.push({origin:Re(r),code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),ar=f(`$ZodCheckMinSize`,(e,t)=>{var n;Zn.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!ce(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;r.size>=t.minimum||n.issues.push({origin:Re(r),code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),or=f(`$ZodCheckSizeEquals`,(e,t)=>{var n;Zn.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!ce(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=n=>{let r=n.value,i=r.size;if(i===t.size)return;let a=i>t.size;n.issues.push({origin:Re(r),...a?{code:`too_big`,maximum:t.size}:{code:`too_small`,minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),sr=f(`$ZodCheckMaxLength`,(e,t)=>{var n;Zn.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!ce(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=ze(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),cr=f(`$ZodCheckMinLength`,(e,t)=>{var n;Zn.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!ce(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=ze(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),lr=f(`$ZodCheckLengthEquals`,(e,t)=>{var n;Zn.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!ce(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=ze(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),ur=f(`$ZodCheckStringFormat`,(e,t)=>{var n,r;Zn.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),dr=f(`$ZodCheckRegex`,(e,t)=>{ur.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),fr=f(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=jn,ur.init(e,t)}),pr=f(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=Mn,ur.init(e,t)}),mr=f(`$ZodCheckIncludes`,(e,t)=>{Zn.init(e,t);let n=Se(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),hr=f(`$ZodCheckStartsWith`,(e,t)=>{Zn.init(e,t);let n=RegExp(`^${Se(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),gr=f(`$ZodCheckEndsWith`,(e,t)=>{Zn.init(e,t);let n=RegExp(`.*${Se(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),_r=f(`$ZodCheckProperty`,(e,t)=>{Zn.init(e,t),e._zod.check=e=>{let n=t.schema._zod.run({value:e.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(n=>Xn(n,e,t.property));Xn(n,e,t.property)}}),vr=f(`$ZodCheckMimeType`,(e,t)=>{Zn.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(e=>{e._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:`invalid_value`,values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),yr=f(`$ZodCheckOverwrite`,(e,t)=>{Zn.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}})})),xr,Sr=t((()=>{xr=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`\n`).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(`\n`))}}})),Cr,wr=t((()=>{Cr={major:4,minor:4,patch:3}}));function Tr(e){if(e===``)return!0;if(/\\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}function Er(e){if(!_n.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return Tr(t.padEnd(Math.ceil(t.length/4)*4,`=`))}function Dr(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}function Or(e,t,n){e.issues.length&&t.issues.push(...Fe(n,e.issues)),t.value[n]=e.value}function kr(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...Fe(n,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}function Ar(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key \"${n}\": expected a Zod schema`);let n=Te(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function jr(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>kr(e,n,i,t,u,d))):kr(a,n,i,t,u,d)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}function Mr(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!Ne(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>Le(e,r,p())))}),t)}function Nr(e,t,n,r){let i=e.filter(e=>e.issues.length===0);return i.length===1?(t.value=i[0].value,t):(i.length===0?t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>Le(e,r,p())))}):t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:[],inclusive:!1}),t)}function Pr(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(ye(e)&&ye(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=Pr(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=Pr(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Fr(e,t,n){let r=new Map,i;for(let n of t.issues)if(n.code===`unrecognized_keys`){i??=n;for(let e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=!0}else e.issues.push(n);for(let t of n.issues)if(t.code===`unrecognized_keys`)for(let e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=!0;else e.issues.push(t);let a=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),Ne(e))return e;let o=Pr(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}function Ir(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!==`optional`)return n+1;return 0}function Lr(e,t,n){e.issues.length&&t.issues.push(...Fe(n,e.issues)),t.value[n]=e.value}function Rr(e,t,n,r,i){for(let a=0;a<n.length;a++){let n=e[a],o=a<r.length;if(n.issues.length){if(!o&&a>=i){t.value.length=a;break}t.issues.push(...Fe(a,n.issues))}t.value[a]=n.value}for(let e=t.value.length-1;e>=r.length&&n[e]._zod.optout===`optional`&&t.value[e]===void 0;e--)t.value.length=e;return t}function zr(e,t,n,r,i,a,o){e.issues.length&&(Qe.has(typeof r)?n.issues.push(...Fe(r,e.issues)):n.issues.push({code:`invalid_key`,origin:`map`,input:i,inst:a,issues:e.issues.map(e=>Le(e,o,p()))})),t.issues.length&&(Qe.has(typeof r)?n.issues.push(...Fe(r,t.issues)):n.issues.push({origin:`map`,code:`invalid_element`,input:i,inst:a,key:r,issues:t.issues.map(e=>Le(e,o,p()))})),n.value.set(e.value,t.value)}function Br(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}function Vr(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}function Hr(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}function Ur(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}function Wr(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}function Gr(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||`forward`)===`forward`){let r=t.transform(e.value,e);return r instanceof Promise?r.then(r=>Kr(e,r,t.out,n)):Kr(e,r,t.out,n)}else{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(r=>Kr(e,r,t.in,n)):Kr(e,r,t.in,n)}}function Kr(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}function qr(e){return e.value=Object.freeze(e.value),e}function Jr(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(Be(e))}}var A,Yr,Xr,Zr,Qr,$r,ei,ti,ni,ri,ii,ai,oi,si,ci,li,ui,di,fi,pi,mi,hi,gi,_i,vi,yi,bi,xi,Si,Ci,wi,Ti,Ei,Di,Oi,ki,Ai,ji,Mi,Ni,Pi,Fi,Ii,Li,Ri,zi,Bi,Vi,Hi,j,Ui,Wi,Gi,Ki,qi,Ji,Yi,Xi,Zi,Qi,$i,ea,ta,na,ra,ia,aa,oa,sa,ca,la,ua,da,fa,pa=t((()=>{br(),b(),Sr(),It(),Yn(),k(),wr(),A=f(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Cr;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=Ne(e),i;for(let a of t){if(a._zod.def.when){if(Pe(e)||!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new _;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=Ne(e,t))});else{if(e.issues.length===t)continue;r||=Ne(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(Ne(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new _;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new _;return o.then(e=>t(e,r,a))}return t(o,r,a)}}C(e,`~standard`,()=>({validate:t=>{try{let n=_t(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return yt(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),Yr=f(`$ZodString`,(e,t)=>{A.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??wn(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),Xr=f(`$ZodStringFormat`,(e,t)=>{ur.init(e,t),Yr.init(e,t)}),Zr=f(`$ZodGUID`,(e,t)=>{t.pattern??=Qt,Xr.init(e,t)}),Qr=f(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: \"${t.version}\"`);t.pattern??=$t(e)}else t.pattern??=$t();Xr.init(e,t)}),$r=f(`$ZodEmail`,(e,t)=>{t.pattern??=rn,Xr.init(e,t)}),ei=f(`$ZodURL`,(e,t)=>{Xr.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===bn.source&&!/^https?:\\/\\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),ti=f(`$ZodEmoji`,(e,t)=>{t.pattern??=Rt(),Xr.init(e,t)}),ni=f(`$ZodNanoID`,(e,t)=>{t.pattern??=Yt,Xr.init(e,t)}),ri=f(`$ZodCUID`,(e,t)=>{t.pattern??=Wt,Xr.init(e,t)}),ii=f(`$ZodCUID2`,(e,t)=>{t.pattern??=Gt,Xr.init(e,t)}),ai=f(`$ZodULID`,(e,t)=>{t.pattern??=Kt,Xr.init(e,t)}),oi=f(`$ZodXID`,(e,t)=>{t.pattern??=qt,Xr.init(e,t)}),si=f(`$ZodKSUID`,(e,t)=>{t.pattern??=Jt,Xr.init(e,t)}),ci=f(`$ZodISODateTime`,(e,t)=>{t.pattern??=Vt(t),Xr.init(e,t)}),li=f(`$ZodISODate`,(e,t)=>{t.pattern??=Cn,Xr.init(e,t)}),ui=f(`$ZodISOTime`,(e,t)=>{t.pattern??=Bt(t),Xr.init(e,t)}),di=f(`$ZodISODuration`,(e,t)=>{t.pattern??=Xt,Xr.init(e,t)}),fi=f(`$ZodIPv4`,(e,t)=>{t.pattern??=dn,Xr.init(e,t),e._zod.bag.format=`ipv4`}),pi=f(`$ZodIPv6`,(e,t)=>{t.pattern??=fn,Xr.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),mi=f(`$ZodMAC`,(e,t)=>{t.pattern??=pn(t.delimiter),Xr.init(e,t),e._zod.bag.format=`mac`}),hi=f(`$ZodCIDRv4`,(e,t)=>{t.pattern??=mn,Xr.init(e,t)}),gi=f(`$ZodCIDRv6`,(e,t)=>{t.pattern??=hn,Xr.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}}),_i=f(`$ZodBase64`,(e,t)=>{t.pattern??=gn,Xr.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{Tr(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}}),vi=f(`$ZodBase64URL`,(e,t)=>{t.pattern??=_n,Xr.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{Er(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),yi=f(`$ZodE164`,(e,t)=>{t.pattern??=xn,Xr.init(e,t)}),bi=f(`$ZodJWT`,(e,t)=>{Xr.init(e,t),e._zod.check=n=>{Dr(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),xi=f(`$ZodCustomStringFormat`,(e,t)=>{Xr.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:`invalid_format`,format:t.format,input:n.value,inst:e,continue:!t.abort})}}),Si=f(`$ZodNumber`,(e,t)=>{A.init(e,t),e._zod.pattern=e._zod.bag.pattern??Dn,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),Ci=f(`$ZodNumberFormat`,(e,t)=>{nr.init(e,t),Si.init(e,t)}),wi=f(`$ZodBoolean`,(e,t)=>{A.init(e,t),e._zod.pattern=On,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),Ti=f(`$ZodBigInt`,(e,t)=>{A.init(e,t),e._zod.pattern=Tn,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value==`bigint`||n.issues.push({expected:`bigint`,code:`invalid_type`,input:n.value,inst:e}),n}}),Ei=f(`$ZodBigIntFormat`,(e,t)=>{rr.init(e,t),Ti.init(e,t)}),Di=f(`$ZodSymbol`,(e,t)=>{A.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return typeof r==`symbol`||t.issues.push({expected:`symbol`,code:`invalid_type`,input:r,inst:e}),t}}),Oi=f(`$ZodUndefined`,(e,t)=>{A.init(e,t),e._zod.pattern=An,e._zod.values=new Set([void 0]),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`undefined`,code:`invalid_type`,input:r,inst:e}),t}}),ki=f(`$ZodNull`,(e,t)=>{A.init(e,t),e._zod.pattern=kn,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t}}),Ai=f(`$ZodAny`,(e,t)=>{A.init(e,t),e._zod.parse=e=>e}),ji=f(`$ZodUnknown`,(e,t)=>{A.init(e,t),e._zod.parse=e=>e}),Mi=f(`$ZodNever`,(e,t)=>{A.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)}),Ni=f(`$ZodVoid`,(e,t)=>{A.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`void`,code:`invalid_type`,input:r,inst:e}),t}}),Pi=f(`$ZodDate`,(e,t)=>{A.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let i=n.value,a=i instanceof Date;return a&&!Number.isNaN(i.getTime())||n.issues.push({expected:`date`,code:`invalid_type`,input:i,...a?{received:`Invalid Date`}:{},inst:e}),n}}),Fi=f(`$ZodArray`,(e,t)=>{A.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let o=i[e],s=t.element._zod.run({value:o,issues:[]},r);s instanceof Promise?a.push(s.then(t=>Or(t,n,e))):Or(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}}),Ii=f(`$ZodObject`,(e,t)=>{if(A.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,\"shape\",{get:()=>{let n={...e};return Object.defineProperty(t,\"shape\",{value:n}),n}})}let n=se(()=>Ar(t));C(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=ve,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>kr(n,t,e,s,r,i))):kr(a,t,e,s,r,i)}return i?jr(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),Li=f(`$ZodObjectJIT`,(e,t)=>{Ii.init(e,t);let n=e._zod.parse,r=se(()=>Ar(t)),i=e=>{let t=new xr([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=ge(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=ge(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(`\n if (${n}.issues.length) {\n if (${o} in input) {\n payload.issues = payload.issues.concat(${n}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${o}, ...iss.path] : [${o}]\n })));\n }\n }\n \n if (${n}.value === undefined) {\n if (${o} in input) {\n newResult[${o}] = undefined;\n }\n } else {\n newResult[${o}] = ${n}.value;\n }\n \n `):c?t.write(`\n if (${n}.issues.length) {\n payload.issues = payload.issues.concat(${n}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${o}, ...iss.path] : [${o}]\n })));\n }\n \n if (${n}.value === undefined) {\n if (${o} in input) {\n newResult[${o}] = undefined;\n }\n } else {\n newResult[${o}] = ${n}.value;\n }\n \n `):t.write(`\n const ${n}_present = ${o} in input;\n if (${n}.issues.length) {\n payload.issues = payload.issues.concat(${n}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${o}, ...iss.path] : [${o}]\n })));\n }\n if (!${n}_present && !${n}.issues.length) {\n payload.issues.push({\n code: \"invalid_type\",\n expected: \"nonoptional\",\n input: undefined,\n path: [${o}]\n });\n }\n\n if (${n}_present) {\n if (${n}.value === undefined) {\n newResult[${o}] = undefined;\n } else {\n newResult[${o}] = ${n}.value;\n }\n }\n\n `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=ve,s=!y.jitless,c=s&&Xe.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?jr([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}}),Ri=f(`$ZodUnion`,(e,t)=>{A.init(e,t),C(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),C(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),C(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),C(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>le(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>Mr(t,r,e,i)):Mr(o,r,e,i)}}),zi=f(`$ZodXor`,(e,t)=>{Ri.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);t instanceof Promise?(o.push(t),a=!0):o.push(t)}return a?Promise.all(o).then(t=>Nr(t,r,e,i)):Nr(o,r,e,i)}}),Bi=f(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,Ri.init(e,t);let n=e._zod.parse;C(e._zod,`propValues`,()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||Object.keys(r).length===0)throw Error(`Invalid discriminated union option at index \"${t.options.indexOf(n)}\"`);for(let[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(let r of n)e[t].add(r)}}return e});let r=se(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||e.size===0)throw Error(`Invalid discriminated union option at index \"${t.options.indexOf(r)}\"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value \"${String(t)}\"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!ve(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()),input:o,path:[t.discriminator],inst:e}),i)}}),Vi=f(`$ZodIntersection`,(e,t)=>{A.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>Fr(e,t,n)):Fr(e,i,a)}}),Hi=f(`$ZodTuple`,(e,t)=>{A.init(e,t);let n=t.items;e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:`tuple`,code:`invalid_type`}),r;r.value=[];let o=[],s=Ir(n,`optin`),c=Ir(n,`optout`);if(!t.rest){if(a.length<s)return r.issues.push({code:`too_small`,minimum:s,inclusive:!0,input:a,inst:e,origin:`array`}),r;a.length>n.length&&r.issues.push({code:`too_big`,maximum:n.length,inclusive:!0,input:a,inst:e,origin:`array`})}let l=Array(n.length);for(let e=0;e<n.length;e++){let t=n[e]._zod.run({value:a[e],issues:[]},i);t instanceof Promise?o.push(t.then(t=>{l[e]=t})):l[e]=t}if(t.rest){let e=n.length-1,s=a.slice(n.length);for(let n of s){e++;let a=t.rest._zod.run({value:n,issues:[]},i);a instanceof Promise?o.push(a.then(t=>Lr(t,r,e))):Lr(a,r,e)}}return o.length?Promise.all(o).then(()=>Rr(l,r,n,a,c)):Rr(l,r,n,a,c)}}),j=f(`$ZodRecord`,(e,t)=>{A.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!ye(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let c of o)if(typeof c==`string`||typeof c==`number`||typeof c==`symbol`){s.add(typeof c==`number`?c.toString():c);let o=t.keyType._zod.run({value:c,issues:[]},r);if(o instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(o.issues.length){n.issues.push({code:`invalid_key`,origin:`record`,issues:o.issues.map(e=>Le(e,r,p())),input:c,path:[c],inst:e});continue}let l=o.value,u=t.valueType._zod.run({value:i[c],issues:[]},r);u instanceof Promise?a.push(u.then(e=>{e.issues.length&&n.issues.push(...Fe(c,e.issues)),n.value[l]=e.value})):(u.issues.length&&n.issues.push(...Fe(c,u.issues)),n.value[l]=u.value)}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`||!Object.prototype.propertyIsEnumerable.call(i,o))continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof o==`string`&&Dn.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(s=e)}if(s.issues.length){t.mode===`loose`?n.value[o]=i[o]:n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>Le(e,r,p())),input:o,path:[o],inst:e});continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...Fe(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...Fe(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),Ui=f(`$ZodMap`,(e,t)=>{A.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Map))return n.issues.push({expected:`map`,code:`invalid_type`,input:i,inst:e}),n;let a=[];n.value=new Map;for(let[o,s]of i){let c=t.keyType._zod.run({value:o,issues:[]},r),l=t.valueType._zod.run({value:s,issues:[]},r);c instanceof Promise||l instanceof Promise?a.push(Promise.all([c,l]).then(([t,a])=>{zr(t,a,n,o,i,e,r)})):zr(c,l,n,o,i,e,r)}return a.length?Promise.all(a).then(()=>n):n}}),Wi=f(`$ZodSet`,(e,t)=>{A.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Set))return n.issues.push({input:i,inst:e,expected:`set`,code:`invalid_type`}),n;let a=[];n.value=new Set;for(let e of i){let i=t.valueType._zod.run({value:e,issues:[]},r);i instanceof Promise?a.push(i.then(e=>Br(e,n))):Br(i,n)}return a.length?Promise.all(a).then(()=>n):n}}),Gi=f(`$ZodEnum`,(e,t)=>{A.init(e,t);let n=ae(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>Qe.has(typeof e)).map(e=>typeof e==`string`?Se(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),Ki=f(`$ZodLiteral`,(e,t)=>{if(A.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?Se(e):e?Se(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),qi=f(`$ZodFile`,(e,t)=>{A.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r instanceof File||t.issues.push({expected:`file`,code:`invalid_type`,input:r,inst:e}),t}}),Ji=f(`$ZodTransform`,(e,t)=>{A.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new v(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new _;return n.value=i,n.fallback=!0,n}}),Yi=f(`$ZodOptional`,(e,t)=>{A.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,C(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),C(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${le(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>Vr(e,r)):Vr(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),Xi=f(`$ZodExactOptional`,(e,t)=>{Yi.init(e,t),C(e._zod,`values`,()=>t.innerType._zod.values),C(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),Zi=f(`$ZodNullable`,(e,t)=>{A.init(e,t),C(e._zod,`optin`,()=>t.innerType._zod.optin),C(e._zod,`optout`,()=>t.innerType._zod.optout),C(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${le(e.source)}|null)$`):void 0}),C(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),Qi=f(`$ZodDefault`,(e,t)=>{A.init(e,t),e._zod.optin=`optional`,C(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>Hr(e,t)):Hr(r,t)}}),$i=f(`$ZodPrefault`,(e,t)=>{A.init(e,t),e._zod.optin=`optional`,C(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),ea=f(`$ZodNonOptional`,(e,t)=>{A.init(e,t),C(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>Ur(t,e)):Ur(i,e)}}),ta=f(`$ZodSuccess`,(e,t)=>{A.init(e,t),e._zod.parse=(e,n)=>{if(n.direction===`backward`)throw new v(`ZodSuccess`);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>(e.value=t.issues.length===0,e)):(e.value=r.issues.length===0,e)}}),na=f(`$ZodCatch`,(e,t)=>{A.init(e,t),e._zod.optin=`optional`,C(e._zod,`optout`,()=>t.innerType._zod.optout),C(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Le(e,n,p()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Le(e,n,p()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),ra=f(`$ZodNaN`,(e,t)=>{A.init(e,t),e._zod.parse=(t,n)=>((typeof t.value!=`number`||!Number.isNaN(t.value))&&t.issues.push({input:t.value,inst:e,expected:`nan`,code:`invalid_type`}),t)}),ia=f(`$ZodPipe`,(e,t)=>{A.init(e,t),C(e._zod,`values`,()=>t.in._zod.values),C(e._zod,`optin`,()=>t.in._zod.optin),C(e._zod,`optout`,()=>t.out._zod.optout),C(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Wr(e,t.in,n)):Wr(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Wr(e,t.out,n)):Wr(r,t.out,n)}}),aa=f(`$ZodCodec`,(e,t)=>{A.init(e,t),C(e._zod,`values`,()=>t.in._zod.values),C(e._zod,`optin`,()=>t.in._zod.optin),C(e._zod,`optout`,()=>t.out._zod.optout),C(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if((n.direction||`forward`)===`forward`){let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Gr(e,t,n)):Gr(r,t,n)}else{let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Gr(e,t,n)):Gr(r,t,n)}}}),oa=f(`$ZodPreprocess`,(e,t)=>{ia.init(e,t)}),sa=f(`$ZodReadonly`,(e,t)=>{A.init(e,t),C(e._zod,`propValues`,()=>t.innerType._zod.propValues),C(e._zod,`values`,()=>t.innerType._zod.values),C(e._zod,`optin`,()=>t.innerType?._zod?.optin),C(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(qr):qr(r)}}),ca=f(`$ZodTemplateLiteral`,(e,t)=>{A.init(e,t);let n=[];for(let e of t.parts)if(typeof e==`object`&&e){if(!e._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);let t=e._zod.pattern instanceof RegExp?e._zod.pattern.source:e._zod.pattern;if(!t)throw Error(`Invalid template literal part: ${e._zod.traits}`);let r=+!!t.startsWith(`^`),i=t.endsWith(`$`)?t.length-1:t.length;n.push(t.slice(r,i))}else if(e===null||$e.has(typeof e))n.push(Se(`${e}`));else throw Error(`Invalid template literal part: ${e}`);e._zod.pattern=RegExp(`^${n.join(``)}$`),e._zod.parse=(n,r)=>typeof n.value==`string`?(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:`invalid_format`,format:t.format??`template_literal`,pattern:e._zod.pattern.source}),n):(n.issues.push({input:n.value,inst:e,expected:`string`,code:`invalid_type`}),n)}),la=f(`$ZodFunction`,(e,t)=>(A.init(e,t),e._def=t,e._zod.def=t,e.implement=t=>{if(typeof t!=`function`)throw Error(`implement() must be called with a function`);return function(...n){let r=e._def.input?pt(e._def.input,n):n,i=Reflect.apply(t,this,r);return e._def.output?pt(e._def.output,i):i}},e.implementAsync=t=>{if(typeof t!=`function`)throw Error(`implementAsync() must be called with a function`);return async function(...n){let r=e._def.input?await ht(e._def.input,n):n,i=await Reflect.apply(t,this,r);return e._def.output?await ht(e._def.output,i):i}},e._zod.parse=(t,n)=>typeof t.value==`function`?(e._def.output&&e._def.output._zod.def.type===`promise`?t.value=e.implementAsync(t.value):t.value=e.implement(t.value),t):(t.issues.push({code:`invalid_type`,expected:`function`,input:t.value,inst:e}),t),e.input=(...t)=>{let n=e.constructor;return Array.isArray(t[0])?new n({type:`function`,input:new Hi({type:`tuple`,items:t[0],rest:t[1]}),output:e._def.output}):new n({type:`function`,input:t[0],output:e._def.output})},e.output=t=>{let n=e.constructor;return new n({type:`function`,input:e._def.input,output:t})},e)),ua=f(`$ZodPromise`,(e,t)=>{A.init(e,t),e._zod.parse=(e,n)=>Promise.resolve(e.value).then(e=>t.innerType._zod.run({value:e,issues:[]},n))}),da=f(`$ZodLazy`,(e,t)=>{A.init(e,t),C(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),C(e._zod,`pattern`,()=>e._zod.innerType?._zod?.pattern),C(e._zod,`propValues`,()=>e._zod.innerType?._zod?.propValues),C(e._zod,`optin`,()=>e._zod.innerType?._zod?.optin??void 0),C(e._zod,`optout`,()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),fa=f(`$ZodCustom`,(e,t)=>{Zn.init(e,t),A.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>Jr(t,n,r,e));Jr(i,n,r,e)}})}));function ma(){return{localeError:ha()}}var ha,ga=t((()=>{k(),ha=()=>{let e={string:{unit:`حرف`,verb:`أن يحوي`},file:{unit:`بايت`,verb:`أن يحوي`},array:{unit:`عنصر`,verb:`أن يحوي`},set:{unit:`عنصر`,verb:`أن يحوي`}};function t(t){return e[t]??null}let n={regex:`مدخل`,email:`بريد إلكتروني`,url:`رابط`,emoji:`إيموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاريخ ووقت بمعيار ISO`,date:`تاريخ بمعيار ISO`,time:`وقت بمعيار ISO`,duration:`مدة بمعيار ISO`,ipv4:`عنوان IPv4`,ipv6:`عنوان IPv6`,cidrv4:`مدى عناوين بصيغة IPv4`,cidrv6:`مدى عناوين بصيغة IPv6`,base64:`نَص بترميز base64-encoded`,base64url:`نَص بترميز base64url-encoded`,json_string:`نَص على هيئة JSON`,e164:`رقم هاتف بمعيار E.164`,jwt:`JWT`,template_literal:`مدخل`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`مدخلات غير مقبولة: يفترض إدخال instanceof ${e.expected}، ولكن تم إدخال ${i}`:`مدخلات غير مقبولة: يفترض إدخال ${t}، ولكن تم إدخال ${i}`}case`invalid_value`:return e.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${D(e.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?` أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()} ${r.unit??`عنصر`}`:`أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()} ${r.unit}`:`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`نَص غير مقبول: يجب أن يبدأ بـ \"${e.prefix}\"`:t.format===`ends_with`?`نَص غير مقبول: يجب أن ينتهي بـ \"${t.suffix}\"`:t.format===`includes`?`نَص غير مقبول: يجب أن يتضمَّن \"${t.includes}\"`:t.format===`regex`?`نَص غير مقبول: يجب أن يطابق النمط ${t.pattern}`:`${n[t.format]??e.format} غير مقبول`}case`not_multiple_of`:return`رقم غير مقبول: يجب أن يكون من مضاعفات ${e.divisor}`;case`unrecognized_keys`:return`معرف${e.keys.length>1?`ات`:``} غريب${e.keys.length>1?`ة`:``}: ${S(e.keys,`، `)}`;case`invalid_key`:return`معرف غير مقبول في ${e.origin}`;case`invalid_union`:return`مدخل غير مقبول`;case`invalid_element`:return`مدخل غير مقبول في ${e.origin}`;default:return`مدخل غير مقبول`}}}}));function _a(){return{localeError:va()}}var va,ya=t((()=>{k(),va=()=>{let e={string:{unit:`simvol`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`element`,verb:`olmalıdır`},set:{unit:`element`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Yanlış dəyər: gözlənilən instanceof ${e.expected}, daxil olan ${i}`:`Yanlış dəyər: gözlənilən ${t}, daxil olan ${i}`}case`invalid_value`:return e.values.length===1?`Yanlış dəyər: gözlənilən ${D(e.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()} ${r.unit??`element`}`:`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Yanlış mətn: \"${t.prefix}\" ilə başlamalıdır`:t.format===`ends_with`?`Yanlış mətn: \"${t.suffix}\" ilə bitməlidir`:t.format===`includes`?`Yanlış mətn: \"${t.includes}\" daxil olmalıdır`:t.format===`regex`?`Yanlış mətn: ${t.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${n[t.format]??e.format}`}case`not_multiple_of`:return`Yanlış ədəd: ${e.divisor} ilə bölünə bilən olmalıdır`;case`unrecognized_keys`:return`Tanınmayan açar${e.keys.length>1?`lar`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} daxilində yanlış açar`;case`invalid_union`:return`Yanlış dəyər`;case`invalid_element`:return`${e.origin} daxilində yanlış dəyər`;default:return`Yanlış dəyər`}}}}));function ba(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}function xa(){return{localeError:Sa()}}var Sa,Ca=t((()=>{k(),Sa=()=>{let e={string:{unit:{one:`сімвал`,few:`сімвалы`,many:`сімвалаў`},verb:`мець`},array:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},set:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},file:{unit:{one:`байт`,few:`байты`,many:`байтаў`},verb:`мець`}};function t(t){return e[t]??null}let n={regex:`увод`,email:`email адрас`,url:`URL`,emoji:`эмодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата і час`,date:`ISO дата`,time:`ISO час`,duration:`ISO працягласць`,ipv4:`IPv4 адрас`,ipv6:`IPv6 адрас`,cidrv4:`IPv4 дыяпазон`,cidrv6:`IPv6 дыяпазон`,base64:`радок у фармаце base64`,base64url:`радок у фармаце base64url`,json_string:`JSON радок`,e164:`нумар E.164`,jwt:`JWT`,template_literal:`увод`},r={nan:`NaN`,number:`лік`,array:`масіў`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Няправільны ўвод: чакаўся instanceof ${e.expected}, атрымана ${i}`:`Няправільны ўвод: чакаўся ${t}, атрымана ${i}`}case`invalid_value`:return e.values.length===1?`Няправільны ўвод: чакалася ${D(e.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=ba(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна ${r.verb} ${n}${e.maximum.toString()} ${t}`}return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна быць ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=ba(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Занадта малы: чакалася, што ${e.origin} павінна ${r.verb} ${n}${e.minimum.toString()} ${t}`}return`Занадта малы: чакалася, што ${e.origin} павінна быць ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Няправільны радок: павінен пачынацца з \"${t.prefix}\"`:t.format===`ends_with`?`Няправільны радок: павінен заканчвацца на \"${t.suffix}\"`:t.format===`includes`?`Няправільны радок: павінен змяшчаць \"${t.includes}\"`:t.format===`regex`?`Няправільны радок: павінен адпавядаць шаблону ${t.pattern}`:`Няправільны ${n[t.format]??e.format}`}case`not_multiple_of`:return`Няправільны лік: павінен быць кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспазнаны ${e.keys.length>1?`ключы`:`ключ`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Няправільны ключ у ${e.origin}`;case`invalid_union`:return`Няправільны ўвод`;case`invalid_element`:return`Няправільнае значэнне ў ${e.origin}`;default:return`Няправільны ўвод`}}}}));function wa(){return{localeError:Ta()}}var Ta,Ea=t((()=>{k(),Ta=()=>{let e={string:{unit:`символа`,verb:`да съдържа`},file:{unit:`байта`,verb:`да съдържа`},array:{unit:`елемента`,verb:`да съдържа`},set:{unit:`елемента`,verb:`да съдържа`}};function t(t){return e[t]??null}let n={regex:`вход`,email:`имейл адрес`,url:`URL`,emoji:`емоджи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO време`,date:`ISO дата`,time:`ISO време`,duration:`ISO продължителност`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`base64-кодиран низ`,base64url:`base64url-кодиран низ`,json_string:`JSON низ`,e164:`E.164 номер`,jwt:`JWT`,template_literal:`вход`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Невалиден вход: очакван instanceof ${e.expected}, получен ${i}`:`Невалиден вход: очакван ${t}, получен ${i}`}case`invalid_value`:return e.values.length===1?`Невалиден вход: очакван ${D(e.values[0])}`:`Невалидна опция: очаквано едно от ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Твърде голямо: очаква се ${e.origin??`стойност`} да съдържа ${n}${e.maximum.toString()} ${r.unit??`елемента`}`:`Твърде голямо: очаква се ${e.origin??`стойност`} да бъде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Твърде малко: очаква се ${e.origin} да съдържа ${n}${e.minimum.toString()} ${r.unit}`:`Твърде малко: очаква се ${e.origin} да бъде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;if(t.format===`starts_with`)return`Невалиден низ: трябва да започва с \"${t.prefix}\"`;if(t.format===`ends_with`)return`Невалиден низ: трябва да завършва с \"${t.suffix}\"`;if(t.format===`includes`)return`Невалиден низ: трябва да включва \"${t.includes}\"`;if(t.format===`regex`)return`Невалиден низ: трябва да съвпада с ${t.pattern}`;let r=`Невалиден`;return t.format===`emoji`&&(r=`Невалидно`),t.format===`datetime`&&(r=`Невалидно`),t.format===`date`&&(r=`Невалидна`),t.format===`time`&&(r=`Невалидно`),t.format===`duration`&&(r=`Невалидна`),`${r} ${n[t.format]??e.format}`}case`not_multiple_of`:return`Невалидно число: трябва да бъде кратно на ${e.divisor}`;case`unrecognized_keys`:return`Неразпознат${e.keys.length>1?`и`:``} ключ${e.keys.length>1?`ове`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Невалиден ключ в ${e.origin}`;case`invalid_union`:return`Невалиден вход`;case`invalid_element`:return`Невалидна стойност в ${e.origin}`;default:return`Невалиден вход`}}}}));function Da(){return{localeError:Oa()}}var Oa,ka=t((()=>{k(),Oa=()=>{let e={string:{unit:`caràcters`,verb:`contenir`},file:{unit:`bytes`,verb:`contenir`},array:{unit:`elements`,verb:`contenir`},set:{unit:`elements`,verb:`contenir`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`adreça electrònica`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data i hora ISO`,date:`data ISO`,time:`hora ISO`,duration:`durada ISO`,ipv4:`adreça IPv4`,ipv6:`adreça IPv6`,cidrv4:`rang IPv4`,cidrv6:`rang IPv6`,base64:`cadena codificada en base64`,base64url:`cadena codificada en base64url`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipus invàlid: s'esperava instanceof ${e.expected}, s'ha rebut ${i}`:`Tipus invàlid: s'esperava ${t}, s'ha rebut ${i}`}case`invalid_value`:return e.values.length===1?`Valor invàlid: s'esperava ${D(e.values[0])}`:`Opció invàlida: s'esperava una de ${S(e.values,` o `)}`;case`too_big`:{let n=e.inclusive?`com a màxim`:`menys de`,r=t(e.origin);return r?`Massa gran: s'esperava que ${e.origin??`el valor`} contingués ${n} ${e.maximum.toString()} ${r.unit??`elements`}`:`Massa gran: s'esperava que ${e.origin??`el valor`} fos ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`com a mínim`:`més de`,r=t(e.origin);return r?`Massa petit: s'esperava que ${e.origin} contingués ${n} ${e.minimum.toString()} ${r.unit}`:`Massa petit: s'esperava que ${e.origin} fos ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Format invàlid: ha de començar amb \"${t.prefix}\"`:t.format===`ends_with`?`Format invàlid: ha d'acabar amb \"${t.suffix}\"`:t.format===`includes`?`Format invàlid: ha d'incloure \"${t.includes}\"`:t.format===`regex`?`Format invàlid: ha de coincidir amb el patró ${t.pattern}`:`Format invàlid per a ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número invàlid: ha de ser múltiple de ${e.divisor}`;case`unrecognized_keys`:return`Clau${e.keys.length>1?`s`:``} no reconeguda${e.keys.length>1?`s`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Clau invàlida a ${e.origin}`;case`invalid_union`:return`Entrada invàlida`;case`invalid_element`:return`Element invàlid a ${e.origin}`;default:return`Entrada invàlida`}}}}));function Aa(){return{localeError:ja()}}var ja,Ma=t((()=>{k(),ja=()=>{let e={string:{unit:`znaků`,verb:`mít`},file:{unit:`bajtů`,verb:`mít`},array:{unit:`prvků`,verb:`mít`},set:{unit:`prvků`,verb:`mít`}};function t(t){return e[t]??null}let n={regex:`regulární výraz`,email:`e-mailová adresa`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`datum a čas ve formátu ISO`,date:`datum ve formátu ISO`,time:`čas ve formátu ISO`,duration:`doba trvání ISO`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,cidrv4:`rozsah IPv4`,cidrv6:`rozsah IPv6`,base64:`řetězec zakódovaný ve formátu base64`,base64url:`řetězec zakódovaný ve formátu base64url`,json_string:`řetězec ve formátu JSON`,e164:`číslo E.164`,jwt:`JWT`,template_literal:`vstup`},r={nan:`NaN`,number:`číslo`,string:`řetězec`,function:`funkce`,array:`pole`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neplatný vstup: očekáváno instanceof ${e.expected}, obdrženo ${i}`:`Neplatný vstup: očekáváno ${t}, obdrženo ${i}`}case`invalid_value`:return e.values.length===1?`Neplatný vstup: očekáváno ${D(e.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Hodnota je příliš velká: ${e.origin??`hodnota`} musí mít ${n}${e.maximum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš velká: ${e.origin??`hodnota`} musí být ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Hodnota je příliš malá: ${e.origin??`hodnota`} musí mít ${n}${e.minimum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš malá: ${e.origin??`hodnota`} musí být ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neplatný řetězec: musí začínat na \"${t.prefix}\"`:t.format===`ends_with`?`Neplatný řetězec: musí končit na \"${t.suffix}\"`:t.format===`includes`?`Neplatný řetězec: musí obsahovat \"${t.includes}\"`:t.format===`regex`?`Neplatný řetězec: musí odpovídat vzoru ${t.pattern}`:`Neplatný formát ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neplatné číslo: musí být násobkem ${e.divisor}`;case`unrecognized_keys`:return`Neznámé klíče: ${S(e.keys,`, `)}`;case`invalid_key`:return`Neplatný klíč v ${e.origin}`;case`invalid_union`:return`Neplatný vstup`;case`invalid_element`:return`Neplatná hodnota v ${e.origin}`;default:return`Neplatný vstup`}}}}));function Na(){return{localeError:Pa()}}var Pa,Fa=t((()=>{k(),Pa=()=>{let e={string:{unit:`tegn`,verb:`havde`},file:{unit:`bytes`,verb:`havde`},array:{unit:`elementer`,verb:`indeholdt`},set:{unit:`elementer`,verb:`indeholdt`}};function t(t){return e[t]??null}let n={regex:`input`,email:`e-mailadresse`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dato- og klokkeslæt`,date:`ISO-dato`,time:`ISO-klokkeslæt`,duration:`ISO-varighed`,ipv4:`IPv4-område`,ipv6:`IPv6-område`,cidrv4:`IPv4-spektrum`,cidrv6:`IPv6-spektrum`,base64:`base64-kodet streng`,base64url:`base64url-kodet streng`,json_string:`JSON-streng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,string:`streng`,number:`tal`,boolean:`boolean`,array:`liste`,object:`objekt`,set:`sæt`,file:`fil`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldigt input: forventede instanceof ${e.expected}, fik ${i}`:`Ugyldigt input: forventede ${t}, fik ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig værdi: forventede ${D(e.values[0])}`:`Ugyldigt valg: forventede en af følgende ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For stor: forventede ${a??`value`} ${i.verb} ${n} ${e.maximum.toString()} ${i.unit??`elementer`}`:`For stor: forventede ${a??`value`} havde ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For lille: forventede ${a} ${i.verb} ${n} ${e.minimum.toString()} ${i.unit}`:`For lille: forventede ${a} havde ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: skal starte med \"${t.prefix}\"`:t.format===`ends_with`?`Ugyldig streng: skal ende med \"${t.suffix}\"`:t.format===`includes`?`Ugyldig streng: skal indeholde \"${t.includes}\"`:t.format===`regex`?`Ugyldig streng: skal matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldigt tal: skal være deleligt med ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukendte nøgler`:`Ukendt nøgle`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøgle i ${e.origin}`;case`invalid_union`:return`Ugyldigt input: matcher ingen af de tilladte typer`;case`invalid_element`:return`Ugyldig værdi i ${e.origin}`;default:return`Ugyldigt input`}}}}));function Ia(){return{localeError:La()}}var La,Ra=t((()=>{k(),La=()=>{let e={string:{unit:`Zeichen`,verb:`zu haben`},file:{unit:`Bytes`,verb:`zu haben`},array:{unit:`Elemente`,verb:`zu haben`},set:{unit:`Elemente`,verb:`zu haben`}};function t(t){return e[t]??null}let n={regex:`Eingabe`,email:`E-Mail-Adresse`,url:`URL`,emoji:`Emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-Datum und -Uhrzeit`,date:`ISO-Datum`,time:`ISO-Uhrzeit`,duration:`ISO-Dauer`,ipv4:`IPv4-Adresse`,ipv6:`IPv6-Adresse`,cidrv4:`IPv4-Bereich`,cidrv6:`IPv6-Bereich`,base64:`Base64-codierter String`,base64url:`Base64-URL-codierter String`,json_string:`JSON-String`,e164:`E.164-Nummer`,jwt:`JWT`,template_literal:`Eingabe`},r={nan:`NaN`,number:`Zahl`,array:`Array`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ungültige Eingabe: erwartet instanceof ${e.expected}, erhalten ${i}`:`Ungültige Eingabe: erwartet ${t}, erhalten ${i}`}case`invalid_value`:return e.values.length===1?`Ungültige Eingabe: erwartet ${D(e.values[0])}`:`Ungültige Option: erwartet eine von ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ${r.unit??`Elemente`} hat`:`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ist`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ${r.unit} hat`:`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ist`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ungültiger String: muss mit \"${t.prefix}\" beginnen`:t.format===`ends_with`?`Ungültiger String: muss mit \"${t.suffix}\" enden`:t.format===`includes`?`Ungültiger String: muss \"${t.includes}\" enthalten`:t.format===`regex`?`Ungültiger String: muss dem Muster ${t.pattern} entsprechen`:`Ungültig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ungültige Zahl: muss ein Vielfaches von ${e.divisor} sein`;case`unrecognized_keys`:return`${e.keys.length>1?`Unbekannte Schlüssel`:`Unbekannter Schlüssel`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Ungültiger Schlüssel in ${e.origin}`;case`invalid_union`:return`Ungültige Eingabe`;case`invalid_element`:return`Ungültiger Wert in ${e.origin}`;default:return`Ungültige Eingabe`}}}}));function za(){return{localeError:Ba()}}var Ba,Va=t((()=>{k(),Ba=()=>{let e={string:{unit:`χαρακτήρες`,verb:`να έχει`},file:{unit:`bytes`,verb:`να έχει`},array:{unit:`στοιχεία`,verb:`να έχει`},set:{unit:`στοιχεία`,verb:`να έχει`},map:{unit:`καταχωρήσεις`,verb:`να έχει`}};function t(t){return e[t]??null}let n={regex:`είσοδος`,email:`διεύθυνση email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO ημερομηνία και ώρα`,date:`ISO ημερομηνία`,time:`ISO ώρα`,duration:`ISO διάρκεια`,ipv4:`διεύθυνση IPv4`,ipv6:`διεύθυνση IPv6`,mac:`διεύθυνση MAC`,cidrv4:`εύρος IPv4`,cidrv6:`εύρος IPv6`,base64:`συμβολοσειρά κωδικοποιημένη σε base64`,base64url:`συμβολοσειρά κωδικοποιημένη σε base64url`,json_string:`συμβολοσειρά JSON`,e164:`αριθμός E.164`,jwt:`JWT`,template_literal:`είσοδος`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return typeof e.expected==`string`&&/^[A-Z]/.test(e.expected)?`Μη έγκυρη είσοδος: αναμενόταν instanceof ${e.expected}, λήφθηκε ${i}`:`Μη έγκυρη είσοδος: αναμενόταν ${t}, λήφθηκε ${i}`}case`invalid_value`:return e.values.length===1?`Μη έγκυρη είσοδος: αναμενόταν ${D(e.values[0])}`:`Μη έγκυρη επιλογή: αναμενόταν ένα από ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Πολύ μεγάλο: αναμενόταν ${e.origin??`τιμή`} να έχει ${n}${e.maximum.toString()} ${r.unit??`στοιχεία`}`:`Πολύ μεγάλο: αναμενόταν ${e.origin??`τιμή`} να είναι ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Πολύ μικρό: αναμενόταν ${e.origin} να έχει ${n}${e.minimum.toString()} ${r.unit}`:`Πολύ μικρό: αναμενόταν ${e.origin} να είναι ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με \"${t.prefix}\"`:t.format===`ends_with`?`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με \"${t.suffix}\"`:t.format===`includes`?`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει \"${t.includes}\"`:t.format===`regex`?`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${t.pattern}`:`Μη έγκυρο: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${e.divisor}`;case`unrecognized_keys`:return`Άγνωστ${e.keys.length>1?`α`:`ο`} κλειδ${e.keys.length>1?`ιά`:`ί`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Μη έγκυρο κλειδί στο ${e.origin}`;case`invalid_union`:return`Μη έγκυρη είσοδος`;case`invalid_element`:return`Μη έγκυρη τιμή στο ${e.origin}`;default:return`Μη έγκυρη είσοδος`}}}}));function Ha(){return{localeError:Ua()}}var Ua,Wa=t((()=>{k(),Ua=()=>{let e={string:{unit:`characters`,verb:`to have`},file:{unit:`bytes`,verb:`to have`},array:{unit:`items`,verb:`to have`},set:{unit:`items`,verb:`to have`},map:{unit:`entries`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input);return`Invalid input: expected ${t}, received ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${D(e.values[0])}`:`Invalid option: expected one of ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with \"${t.prefix}\"`:t.format===`ends_with`?`Invalid string: must end with \"${t.suffix}\"`:t.format===`includes`?`Invalid string: must include \"${t.includes}\"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(e=>`'${e}'`).join(` | `)}`:`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}}}));function Ga(){return{localeError:Ka()}}var Ka,qa=t((()=>{k(),Ka=()=>{let e={string:{unit:`karaktrojn`,verb:`havi`},file:{unit:`bajtojn`,verb:`havi`},array:{unit:`elementojn`,verb:`havi`},set:{unit:`elementojn`,verb:`havi`}};function t(t){return e[t]??null}let n={regex:`enigo`,email:`retadreso`,url:`URL`,emoji:`emoĝio`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-datotempo`,date:`ISO-dato`,time:`ISO-tempo`,duration:`ISO-daŭro`,ipv4:`IPv4-adreso`,ipv6:`IPv6-adreso`,cidrv4:`IPv4-rango`,cidrv6:`IPv6-rango`,base64:`64-ume kodita karaktraro`,base64url:`URL-64-ume kodita karaktraro`,json_string:`JSON-karaktraro`,e164:`E.164-nombro`,jwt:`JWT`,template_literal:`enigo`},r={nan:`NaN`,number:`nombro`,array:`tabelo`,null:`senvalora`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nevalida enigo: atendiĝis instanceof ${e.expected}, riceviĝis ${i}`:`Nevalida enigo: atendiĝis ${t}, riceviĝis ${i}`}case`invalid_value`:return e.values.length===1?`Nevalida enigo: atendiĝis ${D(e.values[0])}`:`Nevalida opcio: atendiĝis unu el ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()} ${r.unit??`elementojn`}`:`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Tro malgranda: atendiĝis ke ${e.origin} havu ${n}${e.minimum.toString()} ${r.unit}`:`Tro malgranda: atendiĝis ke ${e.origin} estu ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nevalida karaktraro: devas komenciĝi per \"${t.prefix}\"`:t.format===`ends_with`?`Nevalida karaktraro: devas finiĝi per \"${t.suffix}\"`:t.format===`includes`?`Nevalida karaktraro: devas inkluzivi \"${t.includes}\"`:t.format===`regex`?`Nevalida karaktraro: devas kongrui kun la modelo ${t.pattern}`:`Nevalida ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nevalida nombro: devas esti oblo de ${e.divisor}`;case`unrecognized_keys`:return`Nekonata${e.keys.length>1?`j`:``} ŝlosilo${e.keys.length>1?`j`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Nevalida ŝlosilo en ${e.origin}`;case`invalid_union`:return`Nevalida enigo`;case`invalid_element`:return`Nevalida valoro en ${e.origin}`;default:return`Nevalida enigo`}}}}));function Ja(){return{localeError:Ya()}}var Ya,Xa=t((()=>{k(),Ya=()=>{let e={string:{unit:`caracteres`,verb:`tener`},file:{unit:`bytes`,verb:`tener`},array:{unit:`elementos`,verb:`tener`},set:{unit:`elementos`,verb:`tener`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`dirección de correo electrónico`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`fecha y hora ISO`,date:`fecha ISO`,time:`hora ISO`,duration:`duración ISO`,ipv4:`dirección IPv4`,ipv6:`dirección IPv6`,cidrv4:`rango IPv4`,cidrv6:`rango IPv6`,base64:`cadena codificada en base64`,base64url:`URL codificada en base64`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,string:`texto`,number:`número`,boolean:`booleano`,array:`arreglo`,object:`objeto`,set:`conjunto`,file:`archivo`,date:`fecha`,bigint:`número grande`,symbol:`símbolo`,undefined:`indefinido`,null:`nulo`,function:`función`,map:`mapa`,record:`registro`,tuple:`tupla`,enum:`enumeración`,union:`unión`,literal:`literal`,promise:`promesa`,void:`vacío`,never:`nunca`,unknown:`desconocido`,any:`cualquiera`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrada inválida: se esperaba instanceof ${e.expected}, recibido ${i}`:`Entrada inválida: se esperaba ${t}, recibido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: se esperaba ${D(e.values[0])}`:`Opción inválida: se esperaba una de ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado grande: se esperaba que ${a??`valor`} tuviera ${n}${e.maximum.toString()} ${i.unit??`elementos`}`:`Demasiado grande: se esperaba que ${a??`valor`} fuera ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado pequeño: se esperaba que ${a} tuviera ${n}${e.minimum.toString()} ${i.unit}`:`Demasiado pequeño: se esperaba que ${a} fuera ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Cadena inválida: debe comenzar con \"${t.prefix}\"`:t.format===`ends_with`?`Cadena inválida: debe terminar en \"${t.suffix}\"`:t.format===`includes`?`Cadena inválida: debe incluir \"${t.includes}\"`:t.format===`regex`?`Cadena inválida: debe coincidir con el patrón ${t.pattern}`:`Inválido ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número inválido: debe ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Llave${e.keys.length>1?`s`:``} desconocida${e.keys.length>1?`s`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Llave inválida en ${r[e.origin]??e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido en ${r[e.origin]??e.origin}`;default:return`Entrada inválida`}}}}));function Za(){return{localeError:Qa()}}var Qa,$a=t((()=>{k(),Qa=()=>{let e={string:{unit:`کاراکتر`,verb:`داشته باشد`},file:{unit:`بایت`,verb:`داشته باشد`},array:{unit:`آیتم`,verb:`داشته باشد`},set:{unit:`آیتم`,verb:`داشته باشد`}};function t(t){return e[t]??null}let n={regex:`ورودی`,email:`آدرس ایمیل`,url:`URL`,emoji:`ایموجی`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاریخ و زمان ایزو`,date:`تاریخ ایزو`,time:`زمان ایزو`,duration:`مدت زمان ایزو`,ipv4:`IPv4 آدرس`,ipv6:`IPv6 آدرس`,cidrv4:`IPv4 دامنه`,cidrv6:`IPv6 دامنه`,base64:`base64-encoded رشته`,base64url:`base64url-encoded رشته`,json_string:`JSON رشته`,e164:`E.164 عدد`,jwt:`JWT`,template_literal:`ورودی`},r={nan:`NaN`,number:`عدد`,array:`آرایه`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ورودی نامعتبر: میبایست instanceof ${e.expected} میبود، ${i} دریافت شد`:`ورودی نامعتبر: میبایست ${t} میبود، ${i} دریافت شد`}case`invalid_value`:return e.values.length===1?`ورودی نامعتبر: میبایست ${D(e.values[0])} میبود`:`گزینه نامعتبر: میبایست یکی از ${S(e.values,`|`)} میبود`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصر`} باشد`:`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} باشد`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} باشد`:`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} باشد`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`رشته نامعتبر: باید با \"${t.prefix}\" شروع شود`:t.format===`ends_with`?`رشته نامعتبر: باید با \"${t.suffix}\" تمام شود`:t.format===`includes`?`رشته نامعتبر: باید شامل \"${t.includes}\" باشد`:t.format===`regex`?`رشته نامعتبر: باید با الگوی ${t.pattern} مطابقت داشته باشد`:`${n[t.format]??e.format} نامعتبر`}case`not_multiple_of`:return`عدد نامعتبر: باید مضرب ${e.divisor} باشد`;case`unrecognized_keys`:return`کلید${e.keys.length>1?`های`:``} ناشناس: ${S(e.keys,`, `)}`;case`invalid_key`:return`کلید ناشناس در ${e.origin}`;case`invalid_union`:return`ورودی نامعتبر`;case`invalid_element`:return`مقدار نامعتبر در ${e.origin}`;default:return`ورودی نامعتبر`}}}}));function eo(){return{localeError:to()}}var to,no=t((()=>{k(),to=()=>{let e={string:{unit:`merkkiä`,subject:`merkkijonon`},file:{unit:`tavua`,subject:`tiedoston`},array:{unit:`alkiota`,subject:`listan`},set:{unit:`alkiota`,subject:`joukon`},number:{unit:``,subject:`luvun`},bigint:{unit:``,subject:`suuren kokonaisluvun`},int:{unit:``,subject:`kokonaisluvun`},date:{unit:``,subject:`päivämäärän`}};function t(t){return e[t]??null}let n={regex:`säännöllinen lauseke`,email:`sähköpostiosoite`,url:`URL-osoite`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-aikaleima`,date:`ISO-päivämäärä`,time:`ISO-aika`,duration:`ISO-kesto`,ipv4:`IPv4-osoite`,ipv6:`IPv6-osoite`,cidrv4:`IPv4-alue`,cidrv6:`IPv6-alue`,base64:`base64-koodattu merkkijono`,base64url:`base64url-koodattu merkkijono`,json_string:`JSON-merkkijono`,e164:`E.164-luku`,jwt:`JWT`,template_literal:`templaattimerkkijono`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Virheellinen tyyppi: odotettiin instanceof ${e.expected}, oli ${i}`:`Virheellinen tyyppi: odotettiin ${t}, oli ${i}`}case`invalid_value`:return e.values.length===1?`Virheellinen syöte: täytyy olla ${D(e.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Liian suuri: ${r.subject} täytyy olla ${n}${e.maximum.toString()} ${r.unit}`.trim():`Liian suuri: arvon täytyy olla ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Liian pieni: ${r.subject} täytyy olla ${n}${e.minimum.toString()} ${r.unit}`.trim():`Liian pieni: arvon täytyy olla ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Virheellinen syöte: täytyy alkaa \"${t.prefix}\"`:t.format===`ends_with`?`Virheellinen syöte: täytyy loppua \"${t.suffix}\"`:t.format===`includes`?`Virheellinen syöte: täytyy sisältää \"${t.includes}\"`:t.format===`regex`?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${t.pattern}`:`Virheellinen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Virheellinen luku: täytyy olla luvun ${e.divisor} monikerta`;case`unrecognized_keys`:return`${e.keys.length>1?`Tuntemattomat avaimet`:`Tuntematon avain`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Virheellinen avain tietueessa`;case`invalid_union`:return`Virheellinen unioni`;case`invalid_element`:return`Virheellinen arvo joukossa`;default:return`Virheellinen syöte`}}}}));function ro(){return{localeError:io()}}var io,ao=t((()=>{k(),io=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,email:`adresse e-mail`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`date et heure ISO`,date:`date ISO`,time:`heure ISO`,duration:`durée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={string:`chaîne`,number:`nombre`,int:`entier`,boolean:`booléen`,bigint:`grand entier`,symbol:`symbole`,undefined:`indéfini`,null:`null`,never:`jamais`,void:`vide`,date:`date`,array:`tableau`,object:`objet`,tuple:`tuple`,record:`enregistrement`,map:`carte`,set:`ensemble`,file:`fichier`,nonoptional:`non-optionnel`,nan:`NaN`,function:`fonction`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : instanceof ${e.expected} attendu, ${i} reçu`:`Entrée invalide : ${t} attendu, ${i} reçu`}case`invalid_value`:return e.values.length===1?`Entrée invalide : ${D(e.values[0])} attendu`:`Option invalide : une valeur parmi ${S(e.values,`|`)} attendue`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin);return i?`Trop grand : ${r[e.origin]??`valeur`} doit ${i.verb} ${n}${e.maximum.toString()} ${i.unit??`élément(s)`}`:`Trop grand : ${r[e.origin]??`valeur`} doit être ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin);return i?`Trop petit : ${r[e.origin]??`valeur`} doit ${i.verb} ${n}${e.minimum.toString()} ${i.unit}`:`Trop petit : ${r[e.origin]??`valeur`} doit être ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par \"${t.prefix}\"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par \"${t.suffix}\"`:t.format===`includes`?`Chaîne invalide : doit inclure \"${t.includes}\"`:t.format===`regex`?`Chaîne invalide : doit correspondre au modèle ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${S(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}}}));function oo(){return{localeError:so()}}var so,co=t((()=>{k(),so=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,email:`adresse courriel`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`date-heure ISO`,date:`date ISO`,time:`heure ISO`,duration:`durée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : attendu instanceof ${e.expected}, reçu ${i}`:`Entrée invalide : attendu ${t}, reçu ${i}`}case`invalid_value`:return e.values.length===1?`Entrée invalide : attendu ${D(e.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`≤`:`<`,r=t(e.origin);return r?`Trop grand : attendu que ${e.origin??`la valeur`} ait ${n}${e.maximum.toString()} ${r.unit}`:`Trop grand : attendu que ${e.origin??`la valeur`} soit ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`≥`:`>`,r=t(e.origin);return r?`Trop petit : attendu que ${e.origin} ait ${n}${e.minimum.toString()} ${r.unit}`:`Trop petit : attendu que ${e.origin} soit ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par \"${t.prefix}\"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par \"${t.suffix}\"`:t.format===`includes`?`Chaîne invalide : doit inclure \"${t.includes}\"`:t.format===`regex`?`Chaîne invalide : doit correspondre au motif ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${S(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}}}));function lo(){return{localeError:uo()}}var uo,fo=t((()=>{k(),uo=()=>{let e={string:{label:`מחרוזת`,gender:`f`},number:{label:`מספר`,gender:`m`},boolean:{label:`ערך בוליאני`,gender:`m`},bigint:{label:`BigInt`,gender:`m`},date:{label:`תאריך`,gender:`m`},array:{label:`מערך`,gender:`m`},object:{label:`אובייקט`,gender:`m`},null:{label:`ערך ריק (null)`,gender:`m`},undefined:{label:`ערך לא מוגדר (undefined)`,gender:`m`},symbol:{label:`סימבול (Symbol)`,gender:`m`},function:{label:`פונקציה`,gender:`f`},map:{label:`מפה (Map)`,gender:`f`},set:{label:`קבוצה (Set)`,gender:`f`},file:{label:`קובץ`,gender:`m`},promise:{label:`Promise`,gender:`m`},NaN:{label:`NaN`,gender:`m`},unknown:{label:`ערך לא ידוע`,gender:`m`},value:{label:`ערך`,gender:`m`}},t={string:{unit:`תווים`,shortLabel:`קצר`,longLabel:`ארוך`},file:{unit:`בייטים`,shortLabel:`קטן`,longLabel:`גדול`},array:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},set:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},number:{unit:``,shortLabel:`קטן`,longLabel:`גדול`}},n=t=>t?e[t]:void 0,r=t=>{let r=n(t);return r?r.label:t??e.unknown.label},i=e=>`ה${r(e)}`,a=e=>(n(e)?.gender??`m`)===`f`?`צריכה להיות`:`צריך להיות`,o=e=>e?t[e]??null:null,s={regex:{label:`קלט`,gender:`m`},email:{label:`כתובת אימייל`,gender:`f`},url:{label:`כתובת רשת`,gender:`f`},emoji:{label:`אימוג'י`,gender:`m`},uuid:{label:`UUID`,gender:`m`},nanoid:{label:`nanoid`,gender:`m`},guid:{label:`GUID`,gender:`m`},cuid:{label:`cuid`,gender:`m`},cuid2:{label:`cuid2`,gender:`m`},ulid:{label:`ULID`,gender:`m`},xid:{label:`XID`,gender:`m`},ksuid:{label:`KSUID`,gender:`m`},datetime:{label:`תאריך וזמן ISO`,gender:`m`},date:{label:`תאריך ISO`,gender:`m`},time:{label:`זמן ISO`,gender:`m`},duration:{label:`משך זמן ISO`,gender:`m`},ipv4:{label:`כתובת IPv4`,gender:`f`},ipv6:{label:`כתובת IPv6`,gender:`f`},cidrv4:{label:`טווח IPv4`,gender:`m`},cidrv6:{label:`טווח IPv6`,gender:`m`},base64:{label:`מחרוזת בבסיס 64`,gender:`f`},base64url:{label:`מחרוזת בבסיס 64 לכתובות רשת`,gender:`f`},json_string:{label:`מחרוזת JSON`,gender:`f`},e164:{label:`מספר E.164`,gender:`m`},jwt:{label:`JWT`,gender:`m`},ends_with:{label:`קלט`,gender:`m`},includes:{label:`קלט`,gender:`m`},lowercase:{label:`קלט`,gender:`m`},starts_with:{label:`קלט`,gender:`m`},uppercase:{label:`קלט`,gender:`m`}},c={nan:`NaN`};return t=>{switch(t.code){case`invalid_type`:{let n=t.expected,i=c[n??``]??r(n),a=O(t.input),o=c[a]??e[a]?.label??a;return/^[A-Z]/.test(t.expected)?`קלט לא תקין: צריך להיות instanceof ${t.expected}, התקבל ${o}`:`קלט לא תקין: צריך להיות ${i}, התקבל ${o}`}case`invalid_value`:{if(t.values.length===1)return`ערך לא תקין: הערך חייב להיות ${D(t.values[0])}`;let e=t.values.map(e=>D(e));if(t.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${e[0]} או ${e[1]}`;let n=e[e.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${e.slice(0,-1).join(`, `)} או ${n}`}case`too_big`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.longLabel??`ארוך`} מדי: ${n} צריכה להכיל ${t.maximum.toString()} ${e?.unit??``} ${t.inclusive?`או פחות`:`לכל היותר`}`.trim();if(t.origin===`number`)return`גדול מדי: ${n} צריך להיות ${t.inclusive?`קטן או שווה ל-${t.maximum}`:`קטן מ-${t.maximum}`}`;if(t.origin===`array`||t.origin===`set`)return`גדול מדי: ${n} ${t.origin===`set`?`צריכה`:`צריך`} להכיל ${t.inclusive?`${t.maximum} ${e?.unit??``} או פחות`:`פחות מ-${t.maximum} ${e?.unit??``}`}`.trim();let r=t.inclusive?`<=`:`<`,s=a(t.origin??`value`);return e?.unit?`${e.longLabel} מדי: ${n} ${s} ${r}${t.maximum.toString()} ${e.unit}`:`${e?.longLabel??`גדול`} מדי: ${n} ${s} ${r}${t.maximum.toString()}`}case`too_small`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.shortLabel??`קצר`} מדי: ${n} צריכה להכיל ${t.minimum.toString()} ${e?.unit??``} ${t.inclusive?`או יותר`:`לפחות`}`.trim();if(t.origin===`number`)return`קטן מדי: ${n} צריך להיות ${t.inclusive?`גדול או שווה ל-${t.minimum}`:`גדול מ-${t.minimum}`}`;if(t.origin===`array`||t.origin===`set`){let r=t.origin===`set`?`צריכה`:`צריך`;return t.minimum===1&&t.inclusive?`קטן מדי: ${n} ${r} להכיל ${t.origin,`לפחות פריט אחד`}`:`קטן מדי: ${n} ${r} להכיל ${t.inclusive?`${t.minimum} ${e?.unit??``} או יותר`:`יותר מ-${t.minimum} ${e?.unit??``}`}`.trim()}let r=t.inclusive?`>=`:`>`,s=a(t.origin??`value`);return e?.unit?`${e.shortLabel} מדי: ${n} ${s} ${r}${t.minimum.toString()} ${e.unit}`:`${e?.shortLabel??`קטן`} מדי: ${n} ${s} ${r}${t.minimum.toString()}`}case`invalid_format`:{let e=t;if(e.format===`starts_with`)return`המחרוזת חייבת להתחיל ב \"${e.prefix}\"`;if(e.format===`ends_with`)return`המחרוזת חייבת להסתיים ב \"${e.suffix}\"`;if(e.format===`includes`)return`המחרוזת חייבת לכלול \"${e.includes}\"`;if(e.format===`regex`)return`המחרוזת חייבת להתאים לתבנית ${e.pattern}`;let n=s[e.format];return`${n?.label??e.format} לא ${(n?.gender??`m`)===`f`?`תקינה`:`תקין`}`}case`not_multiple_of`:return`מספר לא תקין: חייב להיות מכפלה של ${t.divisor}`;case`unrecognized_keys`:return`מפתח${t.keys.length>1?`ות`:``} לא מזוה${t.keys.length>1?`ים`:`ה`}: ${S(t.keys,`, `)}`;case`invalid_key`:return`שדה לא תקין באובייקט`;case`invalid_union`:return`קלט לא תקין`;case`invalid_element`:return`ערך לא תקין ב${i(t.origin??`array`)}`;default:return`קלט לא תקין`}}}}));function po(){return{localeError:mo()}}var mo,ho=t((()=>{k(),mo=()=>{let e={string:{unit:`znakova`,verb:`imati`},file:{unit:`bajtova`,verb:`imati`},array:{unit:`stavki`,verb:`imati`},set:{unit:`stavki`,verb:`imati`}};function t(t){return e[t]??null}let n={regex:`unos`,email:`email adresa`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum i vrijeme`,date:`ISO datum`,time:`ISO vrijeme`,duration:`ISO trajanje`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,cidrv4:`IPv4 raspon`,cidrv6:`IPv6 raspon`,base64:`base64 kodirani tekst`,base64url:`base64url kodirani tekst`,json_string:`JSON tekst`,e164:`E.164 broj`,jwt:`JWT`,template_literal:`unos`},r={nan:`NaN`,string:`tekst`,number:`broj`,boolean:`boolean`,array:`niz`,object:`objekt`,set:`skup`,file:`datoteka`,date:`datum`,bigint:`bigint`,symbol:`simbol`,undefined:`undefined`,null:`null`,function:`funkcija`,map:`mapa`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neispravan unos: očekuje se instanceof ${e.expected}, a primljeno je ${i}`:`Neispravan unos: očekuje se ${t}, a primljeno je ${i}`}case`invalid_value`:return e.values.length===1?`Neispravna vrijednost: očekivano ${D(e.values[0])}`:`Neispravna opcija: očekivano jedno od ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Preveliko: očekivano da ${a??`vrijednost`} ima ${n}${e.maximum.toString()} ${i.unit??`elemenata`}`:`Preveliko: očekivano da ${a??`vrijednost`} bude ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Premalo: očekivano da ${a} ima ${n}${e.minimum.toString()} ${i.unit}`:`Premalo: očekivano da ${a} bude ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neispravan tekst: mora započinjati s \"${t.prefix}\"`:t.format===`ends_with`?`Neispravan tekst: mora završavati s \"${t.suffix}\"`:t.format===`includes`?`Neispravan tekst: mora sadržavati \"${t.includes}\"`:t.format===`regex`?`Neispravan tekst: mora odgovarati uzorku ${t.pattern}`:`Neispravna ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neispravan broj: mora biti višekratnik od ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznat${e.keys.length>1?`i ključevi`:` ključ`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Neispravan ključ u ${r[e.origin]??e.origin}`;case`invalid_union`:return`Neispravan unos`;case`invalid_element`:return`Neispravna vrijednost u ${r[e.origin]??e.origin}`;default:return`Neispravan unos`}}}}));function go(){return{localeError:_o()}}var _o,vo=t((()=>{k(),_o=()=>{let e={string:{unit:`karakter`,verb:`legyen`},file:{unit:`byte`,verb:`legyen`},array:{unit:`elem`,verb:`legyen`},set:{unit:`elem`,verb:`legyen`}};function t(t){return e[t]??null}let n={regex:`bemenet`,email:`email cím`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO időbélyeg`,date:`ISO dátum`,time:`ISO idő`,duration:`ISO időintervallum`,ipv4:`IPv4 cím`,ipv6:`IPv6 cím`,cidrv4:`IPv4 tartomány`,cidrv6:`IPv6 tartomány`,base64:`base64-kódolt string`,base64url:`base64url-kódolt string`,json_string:`JSON string`,e164:`E.164 szám`,jwt:`JWT`,template_literal:`bemenet`},r={nan:`NaN`,number:`szám`,array:`tömb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Érvénytelen bemenet: a várt érték instanceof ${e.expected}, a kapott érték ${i}`:`Érvénytelen bemenet: a várt érték ${t}, a kapott érték ${i}`}case`invalid_value`:return e.values.length===1?`Érvénytelen bemenet: a várt érték ${D(e.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Túl nagy: ${e.origin??`érték`} mérete túl nagy ${n}${e.maximum.toString()} ${r.unit??`elem`}`:`Túl nagy: a bemeneti érték ${e.origin??`érték`} túl nagy: ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Túl kicsi: a bemeneti érték ${e.origin} mérete túl kicsi ${n}${e.minimum.toString()} ${r.unit}`:`Túl kicsi: a bemeneti érték ${e.origin} túl kicsi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Érvénytelen string: \"${t.prefix}\" értékkel kell kezdődnie`:t.format===`ends_with`?`Érvénytelen string: \"${t.suffix}\" értékkel kell végződnie`:t.format===`includes`?`Érvénytelen string: \"${t.includes}\" értéket kell tartalmaznia`:t.format===`regex`?`Érvénytelen string: ${t.pattern} mintának kell megfelelnie`:`Érvénytelen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Érvénytelen szám: ${e.divisor} többszörösének kell lennie`;case`unrecognized_keys`:return`Ismeretlen kulcs${e.keys.length>1?`s`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Érvénytelen kulcs ${e.origin}`;case`invalid_union`:return`Érvénytelen bemenet`;case`invalid_element`:return`Érvénytelen érték: ${e.origin}`;default:return`Érvénytelen bemenet`}}}}));function yo(e,t,n){return Math.abs(e)===1?t:n}function bo(e){if(!e)return``;let t=[`ա`,`ե`,`ը`,`ի`,`ո`,`ու`,`օ`],n=e[e.length-1];return e+(t.includes(n)?`ն`:`ը`)}function xo(){return{localeError:M()}}var M,So=t((()=>{k(),M=()=>{let e={string:{unit:{one:`նշան`,many:`նշաններ`},verb:`ունենալ`},file:{unit:{one:`բայթ`,many:`բայթեր`},verb:`ունենալ`},array:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`},set:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`}};function t(t){return e[t]??null}let n={regex:`մուտք`,email:`էլ. հասցե`,url:`URL`,emoji:`էմոջի`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO ամսաթիվ և ժամ`,date:`ISO ամսաթիվ`,time:`ISO ժամ`,duration:`ISO տևողություն`,ipv4:`IPv4 հասցե`,ipv6:`IPv6 հասցե`,cidrv4:`IPv4 միջակայք`,cidrv6:`IPv6 միջակայք`,base64:`base64 ձևաչափով տող`,base64url:`base64url ձևաչափով տող`,json_string:`JSON տող`,e164:`E.164 համար`,jwt:`JWT`,template_literal:`մուտք`},r={nan:`NaN`,number:`թիվ`,array:`զանգված`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Սխալ մուտքագրում․ սպասվում էր instanceof ${e.expected}, ստացվել է ${i}`:`Սխալ մուտքագրում․ սպասվում էր ${t}, ստացվել է ${i}`}case`invalid_value`:return e.values.length===1?`Սխալ մուտքագրում․ սպասվում էր ${D(e.values[1])}`:`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=yo(Number(e.maximum),r.unit.one,r.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${bo(e.origin??`արժեք`)} կունենա ${n}${e.maximum.toString()} ${t}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${bo(e.origin??`արժեք`)} լինի ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=yo(Number(e.minimum),r.unit.one,r.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${bo(e.origin)} կունենա ${n}${e.minimum.toString()} ${t}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${bo(e.origin)} լինի ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Սխալ տող․ պետք է սկսվի \"${t.prefix}\"-ով`:t.format===`ends_with`?`Սխալ տող․ պետք է ավարտվի \"${t.suffix}\"-ով`:t.format===`includes`?`Սխալ տող․ պետք է պարունակի \"${t.includes}\"`:t.format===`regex`?`Սխալ տող․ պետք է համապատասխանի ${t.pattern} ձևաչափին`:`Սխալ ${n[t.format]??e.format}`}case`not_multiple_of`:return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${e.divisor}-ի`;case`unrecognized_keys`:return`Չճանաչված բանալի${e.keys.length>1?`ներ`:``}. ${S(e.keys,`, `)}`;case`invalid_key`:return`Սխալ բանալի ${bo(e.origin)}-ում`;case`invalid_union`:return`Սխալ մուտքագրում`;case`invalid_element`:return`Սխալ արժեք ${bo(e.origin)}-ում`;default:return`Սխալ մուտքագրում`}}}}));function Co(){return{localeError:wo()}}var wo,To=t((()=>{k(),wo=()=>{let e={string:{unit:`karakter`,verb:`memiliki`},file:{unit:`byte`,verb:`memiliki`},array:{unit:`item`,verb:`memiliki`},set:{unit:`item`,verb:`memiliki`}};function t(t){return e[t]??null}let n={regex:`input`,email:`alamat email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`tanggal dan waktu format ISO`,date:`tanggal format ISO`,time:`jam format ISO`,duration:`durasi format ISO`,ipv4:`alamat IPv4`,ipv6:`alamat IPv6`,cidrv4:`rentang alamat IPv4`,cidrv6:`rentang alamat IPv6`,base64:`string dengan enkode base64`,base64url:`string dengan enkode base64url`,json_string:`string JSON`,e164:`angka E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak valid: diharapkan instanceof ${e.expected}, diterima ${i}`:`Input tidak valid: diharapkan ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak valid: diharapkan ${D(e.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: diharapkan ${e.origin??`value`} memiliki ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: diharapkan ${e.origin??`value`} menjadi ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: diharapkan ${e.origin} memiliki ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: diharapkan ${e.origin} menjadi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak valid: harus dimulai dengan \"${t.prefix}\"`:t.format===`ends_with`?`String tidak valid: harus berakhir dengan \"${t.suffix}\"`:t.format===`includes`?`String tidak valid: harus menyertakan \"${t.includes}\"`:t.format===`regex`?`String tidak valid: harus sesuai pola ${t.pattern}`:`${n[t.format]??e.format} tidak valid`}case`not_multiple_of`:return`Angka tidak valid: harus kelipatan dari ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali ${e.keys.length>1?`s`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Kunci tidak valid di ${e.origin}`;case`invalid_union`:return`Input tidak valid`;case`invalid_element`:return`Nilai tidak valid di ${e.origin}`;default:return`Input tidak valid`}}}}));function Eo(){return{localeError:Do()}}var Do,Oo=t((()=>{k(),Do=()=>{let e={string:{unit:`stafi`,verb:`að hafa`},file:{unit:`bæti`,verb:`að hafa`},array:{unit:`hluti`,verb:`að hafa`},set:{unit:`hluti`,verb:`að hafa`}};function t(t){return e[t]??null}let n={regex:`gildi`,email:`netfang`,url:`vefslóð`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dagsetning og tími`,date:`ISO dagsetning`,time:`ISO tími`,duration:`ISO tímalengd`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded strengur`,base64url:`base64url-encoded strengur`,json_string:`JSON strengur`,e164:`E.164 tölugildi`,jwt:`JWT`,template_literal:`gildi`},r={nan:`NaN`,number:`númer`,array:`fylki`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Rangt gildi: Þú slóst inn ${i} þar sem á að vera instanceof ${e.expected}`:`Rangt gildi: Þú slóst inn ${i} þar sem á að vera ${t}`}case`invalid_value`:return e.values.length===1?`Rangt gildi: gert ráð fyrir ${D(e.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} hafi ${n}${e.maximum.toString()} ${r.unit??`hluti`}`:`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} sé ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Of lítið: gert er ráð fyrir að ${e.origin} hafi ${n}${e.minimum.toString()} ${r.unit}`:`Of lítið: gert er ráð fyrir að ${e.origin} sé ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ógildur strengur: verður að byrja á \"${t.prefix}\"`:t.format===`ends_with`?`Ógildur strengur: verður að enda á \"${t.suffix}\"`:t.format===`includes`?`Ógildur strengur: verður að innihalda \"${t.includes}\"`:t.format===`regex`?`Ógildur strengur: verður að fylgja mynstri ${t.pattern}`:`Rangt ${n[t.format]??e.format}`}case`not_multiple_of`:return`Röng tala: verður að vera margfeldi af ${e.divisor}`;case`unrecognized_keys`:return`Óþekkt ${e.keys.length>1?`ir lyklar`:`ur lykill`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Rangur lykill í ${e.origin}`;case`invalid_union`:return`Rangt gildi`;case`invalid_element`:return`Rangt gildi í ${e.origin}`;default:return`Rangt gildi`}}}}));function ko(){return{localeError:Ao()}}var Ao,jo=t((()=>{k(),Ao=()=>{let e={string:{unit:`caratteri`,verb:`avere`},file:{unit:`byte`,verb:`avere`},array:{unit:`elementi`,verb:`avere`},set:{unit:`elementi`,verb:`avere`}};function t(t){return e[t]??null}let n={regex:`input`,email:`indirizzo email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data e ora ISO`,date:`data ISO`,time:`ora ISO`,duration:`durata ISO`,ipv4:`indirizzo IPv4`,ipv6:`indirizzo IPv6`,cidrv4:`intervallo IPv4`,cidrv6:`intervallo IPv6`,base64:`stringa codificata in base64`,base64url:`URL codificata in base64`,json_string:`stringa JSON`,e164:`numero E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`numero`,array:`vettore`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input non valido: atteso instanceof ${e.expected}, ricevuto ${i}`:`Input non valido: atteso ${t}, ricevuto ${i}`}case`invalid_value`:return e.values.length===1?`Input non valido: atteso ${D(e.values[0])}`:`Opzione non valida: atteso uno tra ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Troppo grande: ${e.origin??`valore`} deve avere ${n}${e.maximum.toString()} ${r.unit??`elementi`}`:`Troppo grande: ${e.origin??`valore`} deve essere ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Troppo piccolo: ${e.origin} deve avere ${n}${e.minimum.toString()} ${r.unit}`:`Troppo piccolo: ${e.origin} deve essere ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Stringa non valida: deve iniziare con \"${t.prefix}\"`:t.format===`ends_with`?`Stringa non valida: deve terminare con \"${t.suffix}\"`:t.format===`includes`?`Stringa non valida: deve includere \"${t.includes}\"`:t.format===`regex`?`Stringa non valida: deve corrispondere al pattern ${t.pattern}`:`Input non valido: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Numero non valido: deve essere un multiplo di ${e.divisor}`;case`unrecognized_keys`:return`Chiav${e.keys.length>1?`i`:`e`} non riconosciut${e.keys.length>1?`e`:`a`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Chiave non valida in ${e.origin}`;case`invalid_union`:return`Input non valido`;case`invalid_element`:return`Valore non valido in ${e.origin}`;default:return`Input non valido`}}}}));function Mo(){return{localeError:No()}}var No,Po=t((()=>{k(),No=()=>{let e={string:{unit:`文字`,verb:`である`},file:{unit:`バイト`,verb:`である`},array:{unit:`要素`,verb:`である`},set:{unit:`要素`,verb:`である`}};function t(t){return e[t]??null}let n={regex:`入力値`,email:`メールアドレス`,url:`URL`,emoji:`絵文字`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日時`,date:`ISO日付`,time:`ISO時刻`,duration:`ISO期間`,ipv4:`IPv4アドレス`,ipv6:`IPv6アドレス`,cidrv4:`IPv4範囲`,cidrv6:`IPv6範囲`,base64:`base64エンコード文字列`,base64url:`base64urlエンコード文字列`,json_string:`JSON文字列`,e164:`E.164番号`,jwt:`JWT`,template_literal:`入力値`},r={nan:`NaN`,number:`数値`,array:`配列`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無効な入力: instanceof ${e.expected}が期待されましたが、${i}が入力されました`:`無効な入力: ${t}が期待されましたが、${i}が入力されました`}case`invalid_value`:return e.values.length===1?`無効な入力: ${D(e.values[0])}が期待されました`:`無効な選択: ${S(e.values,`、`)}のいずれかである必要があります`;case`too_big`:{let n=e.inclusive?`以下である`:`より小さい`,r=t(e.origin);return r?`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${r.unit??`要素`}${n}必要があります`:`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${n}必要があります`}case`too_small`:{let n=e.inclusive?`以上である`:`より大きい`,r=t(e.origin);return r?`小さすぎる値: ${e.origin}は${e.minimum.toString()}${r.unit}${n}必要があります`:`小さすぎる値: ${e.origin}は${e.minimum.toString()}${n}必要があります`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無効な文字列: \"${t.prefix}\"で始まる必要があります`:t.format===`ends_with`?`無効な文字列: \"${t.suffix}\"で終わる必要があります`:t.format===`includes`?`無効な文字列: \"${t.includes}\"を含む必要があります`:t.format===`regex`?`無効な文字列: パターン${t.pattern}に一致する必要があります`:`無効な${n[t.format]??e.format}`}case`not_multiple_of`:return`無効な数値: ${e.divisor}の倍数である必要があります`;case`unrecognized_keys`:return`認識されていないキー${e.keys.length>1?`群`:``}: ${S(e.keys,`、`)}`;case`invalid_key`:return`${e.origin}内の無効なキー`;case`invalid_union`:return`無効な入力`;case`invalid_element`:return`${e.origin}内の無効な値`;default:return`無効な入力`}}}}));function Fo(){return{localeError:Io()}}var Io,Lo=t((()=>{k(),Io=()=>{let e={string:{unit:`სიმბოლო`,verb:`უნდა შეიცავდეს`},file:{unit:`ბაიტი`,verb:`უნდა შეიცავდეს`},array:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`},set:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`}};function t(t){return e[t]??null}let n={regex:`შეყვანა`,email:`ელ-ფოსტის მისამართი`,url:`URL`,emoji:`ემოჯი`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`თარიღი-დრო`,date:`თარიღი`,time:`დრო`,duration:`ხანგრძლივობა`,ipv4:`IPv4 მისამართი`,ipv6:`IPv6 მისამართი`,cidrv4:`IPv4 დიაპაზონი`,cidrv6:`IPv6 დიაპაზონი`,base64:`base64-კოდირებული ველი`,base64url:`base64url-კოდირებული ველი`,json_string:`JSON ველი`,e164:`E.164 ნომერი`,jwt:`JWT`,template_literal:`შეყვანა`},r={nan:`NaN`,number:`რიცხვი`,string:`ველი`,boolean:`ბულეანი`,function:`ფუნქცია`,array:`მასივი`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`არასწორი შეყვანა: მოსალოდნელი instanceof ${e.expected}, მიღებული ${i}`:`არასწორი შეყვანა: მოსალოდნელი ${t}, მიღებული ${i}`}case`invalid_value`:return e.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${D(e.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${S(e.values,`|`)}-დან`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} იყოს ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ზედმეტად პატარა: მოსალოდნელი ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${e.origin} იყოს ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`არასწორი ველი: უნდა იწყებოდეს \"${t.prefix}\"-ით`:t.format===`ends_with`?`არასწორი ველი: უნდა მთავრდებოდეს \"${t.suffix}\"-ით`:t.format===`includes`?`არასწორი ველი: უნდა შეიცავდეს \"${t.includes}\"-ს`:t.format===`regex`?`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${t.pattern}`:`არასწორი ${n[t.format]??e.format}`}case`not_multiple_of`:return`არასწორი რიცხვი: უნდა იყოს ${e.divisor}-ის ჯერადი`;case`unrecognized_keys`:return`უცნობი გასაღებ${e.keys.length>1?`ები`:`ი`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`არასწორი გასაღები ${e.origin}-ში`;case`invalid_union`:return`არასწორი შეყვანა`;case`invalid_element`:return`არასწორი მნიშვნელობა ${e.origin}-ში`;default:return`არასწორი შეყვანა`}}}}));function Ro(){return{localeError:zo()}}var zo,Bo=t((()=>{k(),zo=()=>{let e={string:{unit:`តួអក្សរ`,verb:`គួរមាន`},file:{unit:`បៃ`,verb:`គួរមាន`},array:{unit:`ធាតុ`,verb:`គួរមាន`},set:{unit:`ធាតុ`,verb:`គួរមាន`}};function t(t){return e[t]??null}let n={regex:`ទិន្នន័យបញ្ចូល`,email:`អាសយដ្ឋានអ៊ីមែល`,url:`URL`,emoji:`សញ្ញាអារម្មណ៍`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`កាលបរិច្ឆេទ និងម៉ោង ISO`,date:`កាលបរិច្ឆេទ ISO`,time:`ម៉ោង ISO`,duration:`រយៈពេល ISO`,ipv4:`អាសយដ្ឋាន IPv4`,ipv6:`អាសយដ្ឋាន IPv6`,cidrv4:`ដែនអាសយដ្ឋាន IPv4`,cidrv6:`ដែនអាសយដ្ឋាន IPv6`,base64:`ខ្សែអក្សរអ៊ិកូដ base64`,base64url:`ខ្សែអក្សរអ៊ិកូដ base64url`,json_string:`ខ្សែអក្សរ JSON`,e164:`លេខ E.164`,jwt:`JWT`,template_literal:`ទិន្នន័យបញ្ចូល`},r={nan:`NaN`,number:`លេខ`,array:`អារេ (Array)`,null:`គ្មានតម្លៃ (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${e.expected} ប៉ុន្តែទទួលបាន ${i}`:`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${t} ប៉ុន្តែទទួលបាន ${i}`}case`invalid_value`:return e.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${D(e.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()} ${r.unit??`ធាតុ`}`:`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()} ${r.unit}`:`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ \"${t.prefix}\"`:t.format===`ends_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ \"${t.suffix}\"`:t.format===`includes`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន \"${t.includes}\"`:t.format===`regex`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${t.pattern}`:`មិនត្រឹមត្រូវ៖ ${n[t.format]??e.format}`}case`not_multiple_of`:return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${e.divisor}`;case`unrecognized_keys`:return`រកឃើញសោមិនស្គាល់៖ ${S(e.keys,`, `)}`;case`invalid_key`:return`សោមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;case`invalid_union`:return`ទិន្នន័យមិនត្រឹមត្រូវ`;case`invalid_element`:return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;default:return`ទិន្នន័យមិនត្រឹមត្រូវ`}}}}));function Vo(){return Ro()}var Ho=t((()=>{Bo()}));function Uo(){return{localeError:Wo()}}var Wo,Go=t((()=>{k(),Wo=()=>{let e={string:{unit:`문자`,verb:`to have`},file:{unit:`바이트`,verb:`to have`},array:{unit:`개`,verb:`to have`},set:{unit:`개`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`입력`,email:`이메일 주소`,url:`URL`,emoji:`이모지`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO 날짜시간`,date:`ISO 날짜`,time:`ISO 시간`,duration:`ISO 기간`,ipv4:`IPv4 주소`,ipv6:`IPv6 주소`,cidrv4:`IPv4 범위`,cidrv6:`IPv6 범위`,base64:`base64 인코딩 문자열`,base64url:`base64url 인코딩 문자열`,json_string:`JSON 문자열`,e164:`E.164 번호`,jwt:`JWT`,template_literal:`입력`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`잘못된 입력: 예상 타입은 instanceof ${e.expected}, 받은 타입은 ${i}입니다`:`잘못된 입력: 예상 타입은 ${t}, 받은 타입은 ${i}입니다`}case`invalid_value`:return e.values.length===1?`잘못된 입력: 값은 ${D(e.values[0])} 이어야 합니다`:`잘못된 옵션: ${S(e.values,`또는 `)} 중 하나여야 합니다`;case`too_big`:{let n=e.inclusive?`이하`:`미만`,r=n===`미만`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()} ${n}${r}`}case`too_small`:{let n=e.inclusive?`이상`:`초과`,r=n===`이상`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()} ${n}${r}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`잘못된 문자열: \"${t.prefix}\"(으)로 시작해야 합니다`:t.format===`ends_with`?`잘못된 문자열: \"${t.suffix}\"(으)로 끝나야 합니다`:t.format===`includes`?`잘못된 문자열: \"${t.includes}\"을(를) 포함해야 합니다`:t.format===`regex`?`잘못된 문자열: 정규식 ${t.pattern} 패턴과 일치해야 합니다`:`잘못된 ${n[t.format]??e.format}`}case`not_multiple_of`:return`잘못된 숫자: ${e.divisor}의 배수여야 합니다`;case`unrecognized_keys`:return`인식할 수 없는 키: ${S(e.keys,`, `)}`;case`invalid_key`:return`잘못된 키: ${e.origin}`;case`invalid_union`:return`잘못된 입력`;case`invalid_element`:return`잘못된 값: ${e.origin}`;default:return`잘못된 입력`}}}}));function Ko(e){let t=Math.abs(e),n=t%10,r=t%100;return r>=11&&r<=19||n===0?`many`:n===1?`one`:`few`}function qo(){return{localeError:Yo()}}var Jo,Yo,Xo=t((()=>{k(),Jo=e=>e.charAt(0).toUpperCase()+e.slice(1),Yo=()=>{let e={string:{unit:{one:`simbolis`,few:`simboliai`,many:`simbolių`},verb:{smaller:{inclusive:`turi būti ne ilgesnė kaip`,notInclusive:`turi būti trumpesnė kaip`},bigger:{inclusive:`turi būti ne trumpesnė kaip`,notInclusive:`turi būti ilgesnė kaip`}}},file:{unit:{one:`baitas`,few:`baitai`,many:`baitų`},verb:{smaller:{inclusive:`turi būti ne didesnis kaip`,notInclusive:`turi būti mažesnis kaip`},bigger:{inclusive:`turi būti ne mažesnis kaip`,notInclusive:`turi būti didesnis kaip`}}},array:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}},set:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}}};function t(t,n,r,i){let a=e[t]??null;return a===null?a:{unit:a.unit[n],verb:a.verb[i][r?`inclusive`:`notInclusive`]}}let n={regex:`įvestis`,email:`el. pašto adresas`,url:`URL`,emoji:`jaustukas`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO data ir laikas`,date:`ISO data`,time:`ISO laikas`,duration:`ISO trukmė`,ipv4:`IPv4 adresas`,ipv6:`IPv6 adresas`,cidrv4:`IPv4 tinklo prefiksas (CIDR)`,cidrv6:`IPv6 tinklo prefiksas (CIDR)`,base64:`base64 užkoduota eilutė`,base64url:`base64url užkoduota eilutė`,json_string:`JSON eilutė`,e164:`E.164 numeris`,jwt:`JWT`,template_literal:`įvestis`},r={nan:`NaN`,number:`skaičius`,bigint:`sveikasis skaičius`,string:`eilutė`,boolean:`loginė reikšmė`,undefined:`neapibrėžta reikšmė`,function:`funkcija`,symbol:`simbolis`,array:`masyvas`,object:`objektas`,null:`nulinė reikšmė`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Gautas tipas ${i}, o tikėtasi - instanceof ${e.expected}`:`Gautas tipas ${i}, o tikėtasi - ${t}`}case`invalid_value`:return e.values.length===1?`Privalo būti ${D(e.values[0])}`:`Privalo būti vienas iš ${S(e.values,`|`)} pasirinkimų`;case`too_big`:{let n=r[e.origin]??e.origin,i=t(e.origin,Ko(Number(e.maximum)),e.inclusive??!1,`smaller`);if(i?.verb)return`${Jo(n??e.origin??`reikšmė`)} ${i.verb} ${e.maximum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne didesnis kaip`:`mažesnis kaip`;return`${Jo(n??e.origin??`reikšmė`)} turi būti ${a} ${e.maximum.toString()} ${i?.unit}`}case`too_small`:{let n=r[e.origin]??e.origin,i=t(e.origin,Ko(Number(e.minimum)),e.inclusive??!1,`bigger`);if(i?.verb)return`${Jo(n??e.origin??`reikšmė`)} ${i.verb} ${e.minimum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne mažesnis kaip`:`didesnis kaip`;return`${Jo(n??e.origin??`reikšmė`)} turi būti ${a} ${e.minimum.toString()} ${i?.unit}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Eilutė privalo prasidėti \"${t.prefix}\"`:t.format===`ends_with`?`Eilutė privalo pasibaigti \"${t.suffix}\"`:t.format===`includes`?`Eilutė privalo įtraukti \"${t.includes}\"`:t.format===`regex`?`Eilutė privalo atitikti ${t.pattern}`:`Neteisingas ${n[t.format]??e.format}`}case`not_multiple_of`:return`Skaičius privalo būti ${e.divisor} kartotinis.`;case`unrecognized_keys`:return`Neatpažint${e.keys.length>1?`i`:`as`} rakt${e.keys.length>1?`ai`:`as`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Rastas klaidingas raktas`;case`invalid_union`:return`Klaidinga įvestis`;case`invalid_element`:return`${Jo(r[e.origin]??e.origin??e.origin??`reikšmė`)} turi klaidingą įvestį`;default:return`Klaidinga įvestis`}}}}));function Zo(){return{localeError:Qo()}}var Qo,$o=t((()=>{k(),Qo=()=>{let e={string:{unit:`знаци`,verb:`да имаат`},file:{unit:`бајти`,verb:`да имаат`},array:{unit:`ставки`,verb:`да имаат`},set:{unit:`ставки`,verb:`да имаат`}};function t(t){return e[t]??null}let n={regex:`внес`,email:`адреса на е-пошта`,url:`URL`,emoji:`емоџи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO датум и време`,date:`ISO датум`,time:`ISO време`,duration:`ISO времетраење`,ipv4:`IPv4 адреса`,ipv6:`IPv6 адреса`,cidrv4:`IPv4 опсег`,cidrv6:`IPv6 опсег`,base64:`base64-енкодирана низа`,base64url:`base64url-енкодирана низа`,json_string:`JSON низа`,e164:`E.164 број`,jwt:`JWT`,template_literal:`внес`},r={nan:`NaN`,number:`број`,array:`низа`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Грешен внес: се очекува instanceof ${e.expected}, примено ${i}`:`Грешен внес: се очекува ${t}, примено ${i}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${D(e.values[0])}`:`Грешана опција: се очекува една ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Премногу голем: се очекува ${e.origin??`вредноста`} да има ${n}${e.maximum.toString()} ${r.unit??`елементи`}`:`Премногу голем: се очекува ${e.origin??`вредноста`} да биде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Премногу мал: се очекува ${e.origin} да има ${n}${e.minimum.toString()} ${r.unit}`:`Премногу мал: се очекува ${e.origin} да биде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неважечка низа: мора да започнува со \"${t.prefix}\"`:t.format===`ends_with`?`Неважечка низа: мора да завршува со \"${t.suffix}\"`:t.format===`includes`?`Неважечка низа: мора да вклучува \"${t.includes}\"`:t.format===`regex`?`Неважечка низа: мора да одгоара на патернот ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Грешен број: мора да биде делив со ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Непрепознаени клучеви`:`Непрепознаен клуч`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Грешен клуч во ${e.origin}`;case`invalid_union`:return`Грешен внес`;case`invalid_element`:return`Грешна вредност во ${e.origin}`;default:return`Грешен внес`}}}}));function es(){return{localeError:ts()}}var ts,ns=t((()=>{k(),ts=()=>{let e={string:{unit:`aksara`,verb:`mempunyai`},file:{unit:`bait`,verb:`mempunyai`},array:{unit:`elemen`,verb:`mempunyai`},set:{unit:`elemen`,verb:`mempunyai`}};function t(t){return e[t]??null}let n={regex:`input`,email:`alamat e-mel`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`tarikh masa ISO`,date:`tarikh ISO`,time:`masa ISO`,duration:`tempoh ISO`,ipv4:`alamat IPv4`,ipv6:`alamat IPv6`,cidrv4:`julat IPv4`,cidrv6:`julat IPv6`,base64:`string dikodkan base64`,base64url:`string dikodkan base64url`,json_string:`string JSON`,e164:`nombor E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`nombor`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak sah: dijangka instanceof ${e.expected}, diterima ${i}`:`Input tidak sah: dijangka ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak sah: dijangka ${D(e.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: dijangka ${e.origin??`nilai`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: dijangka ${e.origin??`nilai`} adalah ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: dijangka ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: dijangka ${e.origin} adalah ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak sah: mesti bermula dengan \"${t.prefix}\"`:t.format===`ends_with`?`String tidak sah: mesti berakhir dengan \"${t.suffix}\"`:t.format===`includes`?`String tidak sah: mesti mengandungi \"${t.includes}\"`:t.format===`regex`?`String tidak sah: mesti sepadan dengan corak ${t.pattern}`:`${n[t.format]??e.format} tidak sah`}case`not_multiple_of`:return`Nombor tidak sah: perlu gandaan ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali: ${S(e.keys,`, `)}`;case`invalid_key`:return`Kunci tidak sah dalam ${e.origin}`;case`invalid_union`:return`Input tidak sah`;case`invalid_element`:return`Nilai tidak sah dalam ${e.origin}`;default:return`Input tidak sah`}}}}));function rs(){return{localeError:is()}}var is,as=t((()=>{k(),is=()=>{let e={string:{unit:`tekens`,verb:`heeft`},file:{unit:`bytes`,verb:`heeft`},array:{unit:`elementen`,verb:`heeft`},set:{unit:`elementen`,verb:`heeft`}};function t(t){return e[t]??null}let n={regex:`invoer`,email:`emailadres`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum en tijd`,date:`ISO datum`,time:`ISO tijd`,duration:`ISO duur`,ipv4:`IPv4-adres`,ipv6:`IPv6-adres`,cidrv4:`IPv4-bereik`,cidrv6:`IPv6-bereik`,base64:`base64-gecodeerde tekst`,base64url:`base64 URL-gecodeerde tekst`,json_string:`JSON string`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`invoer`},r={nan:`NaN`,number:`getal`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ongeldige invoer: verwacht instanceof ${e.expected}, ontving ${i}`:`Ongeldige invoer: verwacht ${t}, ontving ${i}`}case`invalid_value`:return e.values.length===1?`Ongeldige invoer: verwacht ${D(e.values[0])}`:`Ongeldige optie: verwacht één van ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin),i=e.origin===`date`?`laat`:e.origin===`string`?`lang`:`groot`;return r?`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} ${r.unit??`elementen`} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} is`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin),i=e.origin===`date`?`vroeg`:e.origin===`string`?`kort`:`klein`;return r?`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} is`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ongeldige tekst: moet met \"${t.prefix}\" beginnen`:t.format===`ends_with`?`Ongeldige tekst: moet op \"${t.suffix}\" eindigen`:t.format===`includes`?`Ongeldige tekst: moet \"${t.includes}\" bevatten`:t.format===`regex`?`Ongeldige tekst: moet overeenkomen met patroon ${t.pattern}`:`Ongeldig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ongeldig getal: moet een veelvoud van ${e.divisor} zijn`;case`unrecognized_keys`:return`Onbekende key${e.keys.length>1?`s`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Ongeldige key in ${e.origin}`;case`invalid_union`:return`Ongeldige invoer`;case`invalid_element`:return`Ongeldige waarde in ${e.origin}`;default:return`Ongeldige invoer`}}}}));function os(){return{localeError:ss()}}var ss,cs=t((()=>{k(),ss=()=>{let e={string:{unit:`tegn`,verb:`å ha`},file:{unit:`bytes`,verb:`å ha`},array:{unit:`elementer`,verb:`å inneholde`},set:{unit:`elementer`,verb:`å inneholde`}};function t(t){return e[t]??null}let n={regex:`input`,email:`e-postadresse`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dato- og klokkeslett`,date:`ISO-dato`,time:`ISO-klokkeslett`,duration:`ISO-varighet`,ipv4:`IPv4-område`,ipv6:`IPv6-område`,cidrv4:`IPv4-spekter`,cidrv6:`IPv6-spekter`,base64:`base64-enkodet streng`,base64url:`base64url-enkodet streng`,json_string:`JSON-streng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`tall`,array:`liste`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldig input: forventet instanceof ${e.expected}, fikk ${i}`:`Ugyldig input: forventet ${t}, fikk ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig verdi: forventet ${D(e.values[0])}`:`Ugyldig valg: forventet en av ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()} ${r.unit??`elementer`}`:`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()} ${r.unit}`:`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: må starte med \"${t.prefix}\"`:t.format===`ends_with`?`Ugyldig streng: må ende med \"${t.suffix}\"`:t.format===`includes`?`Ugyldig streng: må inneholde \"${t.includes}\"`:t.format===`regex`?`Ugyldig streng: må matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldig tall: må være et multiplum av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukjente nøkler`:`Ukjent nøkkel`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøkkel i ${e.origin}`;case`invalid_union`:return`Ugyldig input`;case`invalid_element`:return`Ugyldig verdi i ${e.origin}`;default:return`Ugyldig input`}}}}));function ls(){return{localeError:us()}}var us,ds=t((()=>{k(),us=()=>{let e={string:{unit:`harf`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`unsur`,verb:`olmalıdır`},set:{unit:`unsur`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={regex:`giren`,email:`epostagâh`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO hengâmı`,date:`ISO tarihi`,time:`ISO zamanı`,duration:`ISO müddeti`,ipv4:`IPv4 nişânı`,ipv6:`IPv6 nişânı`,cidrv4:`IPv4 menzili`,cidrv6:`IPv6 menzili`,base64:`base64-şifreli metin`,base64url:`base64url-şifreli metin`,json_string:`JSON metin`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`giren`},r={nan:`NaN`,number:`numara`,array:`saf`,null:`gayb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Fâsit giren: umulan instanceof ${e.expected}, alınan ${i}`:`Fâsit giren: umulan ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Fâsit giren: umulan ${D(e.values[0])}`:`Fâsit tercih: mûteberler ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} ${r.unit??`elements`} sahip olmalıydı.`:`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} olmalıydı.`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} ${r.unit} sahip olmalıydı.`:`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} olmalıydı.`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Fâsit metin: \"${t.prefix}\" ile başlamalı.`:t.format===`ends_with`?`Fâsit metin: \"${t.suffix}\" ile bitmeli.`:t.format===`includes`?`Fâsit metin: \"${t.includes}\" ihtivâ etmeli.`:t.format===`regex`?`Fâsit metin: ${t.pattern} nakşına uymalı.`:`Fâsit ${n[t.format]??e.format}`}case`not_multiple_of`:return`Fâsit sayı: ${e.divisor} katı olmalıydı.`;case`unrecognized_keys`:return`Tanınmayan anahtar ${e.keys.length>1?`s`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} için tanınmayan anahtar var.`;case`invalid_union`:return`Giren tanınamadı.`;case`invalid_element`:return`${e.origin} için tanınmayan kıymet var.`;default:return`Kıymet tanınamadı.`}}}}));function fs(){return{localeError:ps()}}var ps,ms=t((()=>{k(),ps=()=>{let e={string:{unit:`توکي`,verb:`ولري`},file:{unit:`بایټس`,verb:`ولري`},array:{unit:`توکي`,verb:`ولري`},set:{unit:`توکي`,verb:`ولري`}};function t(t){return e[t]??null}let n={regex:`ورودي`,email:`بریښنالیک`,url:`یو آر ال`,emoji:`ایموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`نیټه او وخت`,date:`نېټه`,time:`وخت`,duration:`موده`,ipv4:`د IPv4 پته`,ipv6:`د IPv6 پته`,cidrv4:`د IPv4 ساحه`,cidrv6:`د IPv6 ساحه`,base64:`base64-encoded متن`,base64url:`base64url-encoded متن`,json_string:`JSON متن`,e164:`د E.164 شمېره`,jwt:`JWT`,template_literal:`ورودي`},r={nan:`NaN`,number:`عدد`,array:`ارې`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ناسم ورودي: باید instanceof ${e.expected} وای, مګر ${i} ترلاسه شو`:`ناسم ورودي: باید ${t} وای, مګر ${i} ترلاسه شو`}case`invalid_value`:return e.values.length===1?`ناسم ورودي: باید ${D(e.values[0])} وای`:`ناسم انتخاب: باید یو له ${S(e.values,`|`)} څخه وای`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصرونه`} ولري`:`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} وي`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} ولري`:`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} وي`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ناسم متن: باید د \"${t.prefix}\" سره پیل شي`:t.format===`ends_with`?`ناسم متن: باید د \"${t.suffix}\" سره پای ته ورسيږي`:t.format===`includes`?`ناسم متن: باید \"${t.includes}\" ولري`:t.format===`regex`?`ناسم متن: باید د ${t.pattern} سره مطابقت ولري`:`${n[t.format]??e.format} ناسم دی`}case`not_multiple_of`:return`ناسم عدد: باید د ${e.divisor} مضرب وي`;case`unrecognized_keys`:return`ناسم ${e.keys.length>1?`کلیډونه`:`کلیډ`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`ناسم کلیډ په ${e.origin} کې`;case`invalid_union`:return`ناسمه ورودي`;case`invalid_element`:return`ناسم عنصر په ${e.origin} کې`;default:return`ناسمه ورودي`}}}}));function hs(){return{localeError:gs()}}var gs,_s=t((()=>{k(),gs=()=>{let e={string:{unit:`znaków`,verb:`mieć`},file:{unit:`bajtów`,verb:`mieć`},array:{unit:`elementów`,verb:`mieć`},set:{unit:`elementów`,verb:`mieć`}};function t(t){return e[t]??null}let n={regex:`wyrażenie`,email:`adres email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data i godzina w formacie ISO`,date:`data w formacie ISO`,time:`godzina w formacie ISO`,duration:`czas trwania ISO`,ipv4:`adres IPv4`,ipv6:`adres IPv6`,cidrv4:`zakres IPv4`,cidrv6:`zakres IPv6`,base64:`ciąg znaków zakodowany w formacie base64`,base64url:`ciąg znaków zakodowany w formacie base64url`,json_string:`ciąg znaków w formacie JSON`,e164:`liczba E.164`,jwt:`JWT`,template_literal:`wejście`},r={nan:`NaN`,number:`liczba`,array:`tablica`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${e.expected}, otrzymano ${i}`:`Nieprawidłowe dane wejściowe: oczekiwano ${t}, otrzymano ${i}`}case`invalid_value`:return e.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${D(e.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Za duża wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.maximum.toString()} ${r.unit??`elementów`}`:`Zbyt duż(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Za mała wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.minimum.toString()} ${r.unit??`elementów`}`:`Zbyt mał(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nieprawidłowy ciąg znaków: musi zaczynać się od \"${t.prefix}\"`:t.format===`ends_with`?`Nieprawidłowy ciąg znaków: musi kończyć się na \"${t.suffix}\"`:t.format===`includes`?`Nieprawidłowy ciąg znaków: musi zawierać \"${t.includes}\"`:t.format===`regex`?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${t.pattern}`:`Nieprawidłow(y/a/e) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nieprawidłowa liczba: musi być wielokrotnością ${e.divisor}`;case`unrecognized_keys`:return`Nierozpoznane klucze${e.keys.length>1?`s`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Nieprawidłowy klucz w ${e.origin}`;case`invalid_union`:return`Nieprawidłowe dane wejściowe`;case`invalid_element`:return`Nieprawidłowa wartość w ${e.origin}`;default:return`Nieprawidłowe dane wejściowe`}}}}));function vs(){return{localeError:ys()}}var ys,bs=t((()=>{k(),ys=()=>{let e={string:{unit:`caracteres`,verb:`ter`},file:{unit:`bytes`,verb:`ter`},array:{unit:`itens`,verb:`ter`},set:{unit:`itens`,verb:`ter`}};function t(t){return e[t]??null}let n={regex:`padrão`,email:`endereço de e-mail`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data e hora ISO`,date:`data ISO`,time:`hora ISO`,duration:`duração ISO`,ipv4:`endereço IPv4`,ipv6:`endereço IPv6`,cidrv4:`faixa de IPv4`,cidrv6:`faixa de IPv6`,base64:`texto codificado em base64`,base64url:`URL codificada em base64`,json_string:`texto JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,number:`número`,null:`nulo`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipo inválido: esperado instanceof ${e.expected}, recebido ${i}`:`Tipo inválido: esperado ${t}, recebido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: esperado ${D(e.values[0])}`:`Opção inválida: esperada uma das ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Muito grande: esperado que ${e.origin??`valor`} tivesse ${n}${e.maximum.toString()} ${r.unit??`elementos`}`:`Muito grande: esperado que ${e.origin??`valor`} fosse ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Muito pequeno: esperado que ${e.origin} tivesse ${n}${e.minimum.toString()} ${r.unit}`:`Muito pequeno: esperado que ${e.origin} fosse ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Texto inválido: deve começar com \"${t.prefix}\"`:t.format===`ends_with`?`Texto inválido: deve terminar com \"${t.suffix}\"`:t.format===`includes`?`Texto inválido: deve incluir \"${t.includes}\"`:t.format===`regex`?`Texto inválido: deve corresponder ao padrão ${t.pattern}`:`${n[t.format]??e.format} inválido`}case`not_multiple_of`:return`Número inválido: deve ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Chave${e.keys.length>1?`s`:``} desconhecida${e.keys.length>1?`s`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Chave inválida em ${e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido em ${e.origin}`;default:return`Campo inválido`}}}}));function xs(){return{localeError:Ss()}}var Ss,Cs=t((()=>{k(),Ss=()=>{let e={string:{unit:`caractere`,verb:`să aibă`},file:{unit:`octeți`,verb:`să aibă`},array:{unit:`elemente`,verb:`să aibă`},set:{unit:`elemente`,verb:`să aibă`},map:{unit:`intrări`,verb:`să aibă`}};function t(t){return e[t]??null}let n={regex:`intrare`,email:`adresă de email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`dată și oră ISO`,date:`dată ISO`,time:`oră ISO`,duration:`durată ISO`,ipv4:`adresă IPv4`,ipv6:`adresă IPv6`,mac:`adresă MAC`,cidrv4:`interval IPv4`,cidrv6:`interval IPv6`,base64:`șir codat base64`,base64url:`șir codat base64url`,json_string:`șir JSON`,e164:`număr E.164`,jwt:`JWT`,template_literal:`intrare`},r={nan:`NaN`,string:`șir`,number:`număr`,boolean:`boolean`,function:`funcție`,array:`matrice`,object:`obiect`,undefined:`nedefinit`,symbol:`simbol`,bigint:`număr mare`,void:`void`,never:`never`,map:`hartă`,set:`set`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input);return`Intrare invalidă: așteptat ${t}, primit ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Intrare invalidă: așteptat ${D(e.values[0])}`:`Opțiune invalidă: așteptat una dintre ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Prea mare: așteptat ca ${e.origin??`valoarea`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemente`}`:`Prea mare: așteptat ca ${e.origin??`valoarea`} să fie ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Prea mic: așteptat ca ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Prea mic: așteptat ca ${e.origin} să fie ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Șir invalid: trebuie să înceapă cu \"${t.prefix}\"`:t.format===`ends_with`?`Șir invalid: trebuie să se termine cu \"${t.suffix}\"`:t.format===`includes`?`Șir invalid: trebuie să includă \"${t.includes}\"`:t.format===`regex`?`Șir invalid: trebuie să se potrivească cu modelul ${t.pattern}`:`Format invalid: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Număr invalid: trebuie să fie multiplu de ${e.divisor}`;case`unrecognized_keys`:return`Chei nerecunoscute: ${S(e.keys,`, `)}`;case`invalid_key`:return`Cheie invalidă în ${e.origin}`;case`invalid_union`:return`Intrare invalidă`;case`invalid_element`:return`Valoare invalidă în ${e.origin}`;default:return`Intrare invalidă`}}}}));function ws(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}function Ts(){return{localeError:Es()}}var Es,Ds=t((()=>{k(),Es=()=>{let e={string:{unit:{one:`символ`,few:`символа`,many:`символов`},verb:`иметь`},file:{unit:{one:`байт`,few:`байта`,many:`байт`},verb:`иметь`},array:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`},set:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`}};function t(t){return e[t]??null}let n={regex:`ввод`,email:`email адрес`,url:`URL`,emoji:`эмодзи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата и время`,date:`ISO дата`,time:`ISO время`,duration:`ISO длительность`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`строка в формате base64`,base64url:`строка в формате base64url`,json_string:`JSON строка`,e164:`номер E.164`,jwt:`JWT`,template_literal:`ввод`},r={nan:`NaN`,number:`число`,array:`массив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неверный ввод: ожидалось instanceof ${e.expected}, получено ${i}`:`Неверный ввод: ожидалось ${t}, получено ${i}`}case`invalid_value`:return e.values.length===1?`Неверный ввод: ожидалось ${D(e.values[0])}`:`Неверный вариант: ожидалось одно из ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=ws(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет иметь ${n}${e.maximum.toString()} ${t}`}return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=ws(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Слишком маленькое значение: ожидалось, что ${e.origin} будет иметь ${n}${e.minimum.toString()} ${t}`}return`Слишком маленькое значение: ожидалось, что ${e.origin} будет ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неверная строка: должна начинаться с \"${t.prefix}\"`:t.format===`ends_with`?`Неверная строка: должна заканчиваться на \"${t.suffix}\"`:t.format===`includes`?`Неверная строка: должна содержать \"${t.includes}\"`:t.format===`regex`?`Неверная строка: должна соответствовать шаблону ${t.pattern}`:`Неверный ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неверное число: должно быть кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспознанн${e.keys.length>1?`ые`:`ый`} ключ${e.keys.length>1?`и`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Неверный ключ в ${e.origin}`;case`invalid_union`:return`Неверные входные данные`;case`invalid_element`:return`Неверное значение в ${e.origin}`;default:return`Неверные входные данные`}}}}));function Os(){return{localeError:ks()}}var ks,As=t((()=>{k(),ks=()=>{let e={string:{unit:`znakov`,verb:`imeti`},file:{unit:`bajtov`,verb:`imeti`},array:{unit:`elementov`,verb:`imeti`},set:{unit:`elementov`,verb:`imeti`}};function t(t){return e[t]??null}let n={regex:`vnos`,email:`e-poštni naslov`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum in čas`,date:`ISO datum`,time:`ISO čas`,duration:`ISO trajanje`,ipv4:`IPv4 naslov`,ipv6:`IPv6 naslov`,cidrv4:`obseg IPv4`,cidrv6:`obseg IPv6`,base64:`base64 kodiran niz`,base64url:`base64url kodiran niz`,json_string:`JSON niz`,e164:`E.164 številka`,jwt:`JWT`,template_literal:`vnos`},r={nan:`NaN`,number:`število`,array:`tabela`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neveljaven vnos: pričakovano instanceof ${e.expected}, prejeto ${i}`:`Neveljaven vnos: pričakovano ${t}, prejeto ${i}`}case`invalid_value`:return e.values.length===1?`Neveljaven vnos: pričakovano ${D(e.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} imelo ${n}${e.maximum.toString()} ${r.unit??`elementov`}`:`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Premajhno: pričakovano, da bo ${e.origin} imelo ${n}${e.minimum.toString()} ${r.unit}`:`Premajhno: pričakovano, da bo ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neveljaven niz: mora se začeti z \"${t.prefix}\"`:t.format===`ends_with`?`Neveljaven niz: mora se končati z \"${t.suffix}\"`:t.format===`includes`?`Neveljaven niz: mora vsebovati \"${t.includes}\"`:t.format===`regex`?`Neveljaven niz: mora ustrezati vzorcu ${t.pattern}`:`Neveljaven ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neveljavno število: mora biti večkratnik ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznan${e.keys.length>1?`i ključi`:` ključ`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Neveljaven ključ v ${e.origin}`;case`invalid_union`:return`Neveljaven vnos`;case`invalid_element`:return`Neveljavna vrednost v ${e.origin}`;default:return`Neveljaven vnos`}}}}));function js(){return{localeError:Ms()}}var Ms,Ns=t((()=>{k(),Ms=()=>{let e={string:{unit:`tecken`,verb:`att ha`},file:{unit:`bytes`,verb:`att ha`},array:{unit:`objekt`,verb:`att innehålla`},set:{unit:`objekt`,verb:`att innehålla`}};function t(t){return e[t]??null}let n={regex:`reguljärt uttryck`,email:`e-postadress`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-datum och tid`,date:`ISO-datum`,time:`ISO-tid`,duration:`ISO-varaktighet`,ipv4:`IPv4-intervall`,ipv6:`IPv6-intervall`,cidrv4:`IPv4-spektrum`,cidrv6:`IPv6-spektrum`,base64:`base64-kodad sträng`,base64url:`base64url-kodad sträng`,json_string:`JSON-sträng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`mall-literal`},r={nan:`NaN`,number:`antal`,array:`lista`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ogiltig inmatning: förväntat instanceof ${e.expected}, fick ${i}`:`Ogiltig inmatning: förväntat ${t}, fick ${i}`}case`invalid_value`:return e.values.length===1?`Ogiltig inmatning: förväntat ${D(e.values[0])}`:`Ogiltigt val: förväntade en av ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`För stor(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()} ${r.unit??`element`}`:`För stor(t): förväntat ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()} ${r.unit}`:`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ogiltig sträng: måste börja med \"${t.prefix}\"`:t.format===`ends_with`?`Ogiltig sträng: måste sluta med \"${t.suffix}\"`:t.format===`includes`?`Ogiltig sträng: måste innehålla \"${t.includes}\"`:t.format===`regex`?`Ogiltig sträng: måste matcha mönstret \"${t.pattern}\"`:`Ogiltig(t) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ogiltigt tal: måste vara en multipel av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Okända nycklar`:`Okänd nyckel`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Ogiltig nyckel i ${e.origin??`värdet`}`;case`invalid_union`:return`Ogiltig input`;case`invalid_element`:return`Ogiltigt värde i ${e.origin??`värdet`}`;default:return`Ogiltig input`}}}}));function Ps(){return{localeError:Fs()}}var Fs,Is=t((()=>{k(),Fs=()=>{let e={string:{unit:`எழுத்துக்கள்`,verb:`கொண்டிருக்க வேண்டும்`},file:{unit:`பைட்டுகள்`,verb:`கொண்டிருக்க வேண்டும்`},array:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`},set:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`}};function t(t){return e[t]??null}let n={regex:`உள்ளீடு`,email:`மின்னஞ்சல் முகவரி`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO தேதி நேரம்`,date:`ISO தேதி`,time:`ISO நேரம்`,duration:`ISO கால அளவு`,ipv4:`IPv4 முகவரி`,ipv6:`IPv6 முகவரி`,cidrv4:`IPv4 வரம்பு`,cidrv6:`IPv6 வரம்பு`,base64:`base64-encoded சரம்`,base64url:`base64url-encoded சரம்`,json_string:`JSON சரம்`,e164:`E.164 எண்`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`எண்`,array:`அணி`,null:`வெறுமை`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${e.expected}, பெறப்பட்டது ${i}`:`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${t}, பெறப்பட்டது ${i}`}case`invalid_value`:return e.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${D(e.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${S(e.values,`|`)} இல் ஒன்று`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ${r.unit??`உறுப்புகள்`} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ஆக இருக்க வேண்டும்`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ஆக இருக்க வேண்டும்`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`தவறான சரம்: \"${t.prefix}\" இல் தொடங்க வேண்டும்`:t.format===`ends_with`?`தவறான சரம்: \"${t.suffix}\" இல் முடிவடைய வேண்டும்`:t.format===`includes`?`தவறான சரம்: \"${t.includes}\" ஐ உள்ளடக்க வேண்டும்`:t.format===`regex`?`தவறான சரம்: ${t.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${n[t.format]??e.format}`}case`not_multiple_of`:return`தவறான எண்: ${e.divisor} இன் பலமாக இருக்க வேண்டும்`;case`unrecognized_keys`:return`அடையாளம் தெரியாத விசை${e.keys.length>1?`கள்`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} இல் தவறான விசை`;case`invalid_union`:return`தவறான உள்ளீடு`;case`invalid_element`:return`${e.origin} இல் தவறான மதிப்பு`;default:return`தவறான உள்ளீடு`}}}}));function Ls(){return{localeError:Rs()}}var Rs,zs=t((()=>{k(),Rs=()=>{let e={string:{unit:`ตัวอักษร`,verb:`ควรมี`},file:{unit:`ไบต์`,verb:`ควรมี`},array:{unit:`รายการ`,verb:`ควรมี`},set:{unit:`รายการ`,verb:`ควรมี`}};function t(t){return e[t]??null}let n={regex:`ข้อมูลที่ป้อน`,email:`ที่อยู่อีเมล`,url:`URL`,emoji:`อิโมจิ`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`วันที่เวลาแบบ ISO`,date:`วันที่แบบ ISO`,time:`เวลาแบบ ISO`,duration:`ช่วงเวลาแบบ ISO`,ipv4:`ที่อยู่ IPv4`,ipv6:`ที่อยู่ IPv6`,cidrv4:`ช่วง IP แบบ IPv4`,cidrv6:`ช่วง IP แบบ IPv6`,base64:`ข้อความแบบ Base64`,base64url:`ข้อความแบบ Base64 สำหรับ URL`,json_string:`ข้อความแบบ JSON`,e164:`เบอร์โทรศัพท์ระหว่างประเทศ (E.164)`,jwt:`โทเคน JWT`,template_literal:`ข้อมูลที่ป้อน`},r={nan:`NaN`,number:`ตัวเลข`,array:`อาร์เรย์ (Array)`,null:`ไม่มีค่า (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${e.expected} แต่ได้รับ ${i}`:`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${t} แต่ได้รับ ${i}`}case`invalid_value`:return e.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${D(e.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`ไม่เกิน`:`น้อยกว่า`,r=t(e.origin);return r?`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()} ${r.unit??`รายการ`}`:`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`อย่างน้อย`:`มากกว่า`,r=t(e.origin);return r?`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()} ${r.unit}`:`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย \"${t.prefix}\"`:t.format===`ends_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย \"${t.suffix}\"`:t.format===`includes`?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี \"${t.includes}\" อยู่ในข้อความ`:t.format===`regex`?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${t.pattern}`:`รูปแบบไม่ถูกต้อง: ${n[t.format]??e.format}`}case`not_multiple_of`:return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${e.divisor} ได้ลงตัว`;case`unrecognized_keys`:return`พบคีย์ที่ไม่รู้จัก: ${S(e.keys,`, `)}`;case`invalid_key`:return`คีย์ไม่ถูกต้องใน ${e.origin}`;case`invalid_union`:return`ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้`;case`invalid_element`:return`ข้อมูลไม่ถูกต้องใน ${e.origin}`;default:return`ข้อมูลไม่ถูกต้อง`}}}}));function Bs(){return{localeError:Vs()}}var Vs,Hs=t((()=>{k(),Vs=()=>{let e={string:{unit:`karakter`,verb:`olmalı`},file:{unit:`bayt`,verb:`olmalı`},array:{unit:`öğe`,verb:`olmalı`},set:{unit:`öğe`,verb:`olmalı`}};function t(t){return e[t]??null}let n={regex:`girdi`,email:`e-posta adresi`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO tarih ve saat`,date:`ISO tarih`,time:`ISO saat`,duration:`ISO süre`,ipv4:`IPv4 adresi`,ipv6:`IPv6 adresi`,cidrv4:`IPv4 aralığı`,cidrv6:`IPv6 aralığı`,base64:`base64 ile şifrelenmiş metin`,base64url:`base64url ile şifrelenmiş metin`,json_string:`JSON dizesi`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`Şablon dizesi`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Geçersiz değer: beklenen instanceof ${e.expected}, alınan ${i}`:`Geçersiz değer: beklenen ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Geçersiz değer: beklenen ${D(e.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()} ${r.unit??`öğe`}`:`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Geçersiz metin: \"${t.prefix}\" ile başlamalı`:t.format===`ends_with`?`Geçersiz metin: \"${t.suffix}\" ile bitmeli`:t.format===`includes`?`Geçersiz metin: \"${t.includes}\" içermeli`:t.format===`regex`?`Geçersiz metin: ${t.pattern} desenine uymalı`:`Geçersiz ${n[t.format]??e.format}`}case`not_multiple_of`:return`Geçersiz sayı: ${e.divisor} ile tam bölünebilmeli`;case`unrecognized_keys`:return`Tanınmayan anahtar${e.keys.length>1?`lar`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} içinde geçersiz anahtar`;case`invalid_union`:return`Geçersiz değer`;case`invalid_element`:return`${e.origin} içinde geçersiz değer`;default:return`Geçersiz değer`}}}}));function Us(){return{localeError:Ws()}}var Ws,Gs=t((()=>{k(),Ws=()=>{let e={string:{unit:`символів`,verb:`матиме`},file:{unit:`байтів`,verb:`матиме`},array:{unit:`елементів`,verb:`матиме`},set:{unit:`елементів`,verb:`матиме`}};function t(t){return e[t]??null}let n={regex:`вхідні дані`,email:`адреса електронної пошти`,url:`URL`,emoji:`емодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`дата та час ISO`,date:`дата ISO`,time:`час ISO`,duration:`тривалість ISO`,ipv4:`адреса IPv4`,ipv6:`адреса IPv6`,cidrv4:`діапазон IPv4`,cidrv6:`діапазон IPv6`,base64:`рядок у кодуванні base64`,base64url:`рядок у кодуванні base64url`,json_string:`рядок JSON`,e164:`номер E.164`,jwt:`JWT`,template_literal:`вхідні дані`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неправильні вхідні дані: очікується instanceof ${e.expected}, отримано ${i}`:`Неправильні вхідні дані: очікується ${t}, отримано ${i}`}case`invalid_value`:return e.values.length===1?`Неправильні вхідні дані: очікується ${D(e.values[0])}`:`Неправильна опція: очікується одне з ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Занадто велике: очікується, що ${e.origin??`значення`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`елементів`}`:`Занадто велике: очікується, що ${e.origin??`значення`} буде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Занадто мале: очікується, що ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Занадто мале: очікується, що ${e.origin} буде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неправильний рядок: повинен починатися з \"${t.prefix}\"`:t.format===`ends_with`?`Неправильний рядок: повинен закінчуватися на \"${t.suffix}\"`:t.format===`includes`?`Неправильний рядок: повинен містити \"${t.includes}\"`:t.format===`regex`?`Неправильний рядок: повинен відповідати шаблону ${t.pattern}`:`Неправильний ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неправильне число: повинно бути кратним ${e.divisor}`;case`unrecognized_keys`:return`Нерозпізнаний ключ${e.keys.length>1?`і`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Неправильний ключ у ${e.origin}`;case`invalid_union`:return`Неправильні вхідні дані`;case`invalid_element`:return`Неправильне значення у ${e.origin}`;default:return`Неправильні вхідні дані`}}}}));function Ks(){return Us()}var qs=t((()=>{Gs()}));function Js(){return{localeError:Ys()}}var Ys,Xs=t((()=>{k(),Ys=()=>{let e={string:{unit:`حروف`,verb:`ہونا`},file:{unit:`بائٹس`,verb:`ہونا`},array:{unit:`آئٹمز`,verb:`ہونا`},set:{unit:`آئٹمز`,verb:`ہونا`}};function t(t){return e[t]??null}let n={regex:`ان پٹ`,email:`ای میل ایڈریس`,url:`یو آر ایل`,emoji:`ایموجی`,uuid:`یو یو آئی ڈی`,uuidv4:`یو یو آئی ڈی وی 4`,uuidv6:`یو یو آئی ڈی وی 6`,nanoid:`نینو آئی ڈی`,guid:`جی یو آئی ڈی`,cuid:`سی یو آئی ڈی`,cuid2:`سی یو آئی ڈی 2`,ulid:`یو ایل آئی ڈی`,xid:`ایکس آئی ڈی`,ksuid:`کے ایس یو آئی ڈی`,datetime:`آئی ایس او ڈیٹ ٹائم`,date:`آئی ایس او تاریخ`,time:`آئی ایس او وقت`,duration:`آئی ایس او مدت`,ipv4:`آئی پی وی 4 ایڈریس`,ipv6:`آئی پی وی 6 ایڈریس`,cidrv4:`آئی پی وی 4 رینج`,cidrv6:`آئی پی وی 6 رینج`,base64:`بیس 64 ان کوڈڈ سٹرنگ`,base64url:`بیس 64 یو آر ایل ان کوڈڈ سٹرنگ`,json_string:`جے ایس او این سٹرنگ`,e164:`ای 164 نمبر`,jwt:`جے ڈبلیو ٹی`,template_literal:`ان پٹ`},r={nan:`NaN`,number:`نمبر`,array:`آرے`,null:`نل`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`غلط ان پٹ: instanceof ${e.expected} متوقع تھا، ${i} موصول ہوا`:`غلط ان پٹ: ${t} متوقع تھا، ${i} موصول ہوا`}case`invalid_value`:return e.values.length===1?`غلط ان پٹ: ${D(e.values[0])} متوقع تھا`:`غلط آپشن: ${S(e.values,`|`)} میں سے ایک متوقع تھا`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`بہت بڑا: ${e.origin??`ویلیو`} کے ${n}${e.maximum.toString()} ${r.unit??`عناصر`} ہونے متوقع تھے`:`بہت بڑا: ${e.origin??`ویلیو`} کا ${n}${e.maximum.toString()} ہونا متوقع تھا`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`بہت چھوٹا: ${e.origin} کے ${n}${e.minimum.toString()} ${r.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${e.origin} کا ${n}${e.minimum.toString()} ہونا متوقع تھا`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`غلط سٹرنگ: \"${t.prefix}\" سے شروع ہونا چاہیے`:t.format===`ends_with`?`غلط سٹرنگ: \"${t.suffix}\" پر ختم ہونا چاہیے`:t.format===`includes`?`غلط سٹرنگ: \"${t.includes}\" شامل ہونا چاہیے`:t.format===`regex`?`غلط سٹرنگ: پیٹرن ${t.pattern} سے میچ ہونا چاہیے`:`غلط ${n[t.format]??e.format}`}case`not_multiple_of`:return`غلط نمبر: ${e.divisor} کا مضاعف ہونا چاہیے`;case`unrecognized_keys`:return`غیر تسلیم شدہ کی${e.keys.length>1?`ز`:``}: ${S(e.keys,`، `)}`;case`invalid_key`:return`${e.origin} میں غلط کی`;case`invalid_union`:return`غلط ان پٹ`;case`invalid_element`:return`${e.origin} میں غلط ویلیو`;default:return`غلط ان پٹ`}}}}));function Zs(){return{localeError:Qs()}}var Qs,$s=t((()=>{k(),Qs=()=>{let e={string:{unit:`belgi`,verb:`bo‘lishi kerak`},file:{unit:`bayt`,verb:`bo‘lishi kerak`},array:{unit:`element`,verb:`bo‘lishi kerak`},set:{unit:`element`,verb:`bo‘lishi kerak`},map:{unit:`yozuv`,verb:`bo‘lishi kerak`}};function t(t){return e[t]??null}let n={regex:`kirish`,email:`elektron pochta manzili`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO sana va vaqti`,date:`ISO sana`,time:`ISO vaqt`,duration:`ISO davomiylik`,ipv4:`IPv4 manzil`,ipv6:`IPv6 manzil`,mac:`MAC manzil`,cidrv4:`IPv4 diapazon`,cidrv6:`IPv6 diapazon`,base64:`base64 kodlangan satr`,base64url:`base64url kodlangan satr`,json_string:`JSON satr`,e164:`E.164 raqam`,jwt:`JWT`,template_literal:`kirish`},r={nan:`NaN`,number:`raqam`,array:`massiv`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Noto‘g‘ri kirish: kutilgan instanceof ${e.expected}, qabul qilingan ${i}`:`Noto‘g‘ri kirish: kutilgan ${t}, qabul qilingan ${i}`}case`invalid_value`:return e.values.length===1?`Noto‘g‘ri kirish: kutilgan ${D(e.values[0])}`:`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()} ${r.unit} ${r.verb}`:`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Noto‘g‘ri satr: \"${t.prefix}\" bilan boshlanishi kerak`:t.format===`ends_with`?`Noto‘g‘ri satr: \"${t.suffix}\" bilan tugashi kerak`:t.format===`includes`?`Noto‘g‘ri satr: \"${t.includes}\" ni o‘z ichiga olishi kerak`:t.format===`regex`?`Noto‘g‘ri satr: ${t.pattern} shabloniga mos kelishi kerak`:`Noto‘g‘ri ${n[t.format]??e.format}`}case`not_multiple_of`:return`Noto‘g‘ri raqam: ${e.divisor} ning karralisi bo‘lishi kerak`;case`unrecognized_keys`:return`Noma’lum kalit${e.keys.length>1?`lar`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} dagi kalit noto‘g‘ri`;case`invalid_union`:return`Noto‘g‘ri kirish`;case`invalid_element`:return`${e.origin} da noto‘g‘ri qiymat`;default:return`Noto‘g‘ri kirish`}}}}));function ec(){return{localeError:tc()}}var tc,nc=t((()=>{k(),tc=()=>{let e={string:{unit:`ký tự`,verb:`có`},file:{unit:`byte`,verb:`có`},array:{unit:`phần tử`,verb:`có`},set:{unit:`phần tử`,verb:`có`}};function t(t){return e[t]??null}let n={regex:`đầu vào`,email:`địa chỉ email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ngày giờ ISO`,date:`ngày ISO`,time:`giờ ISO`,duration:`khoảng thời gian ISO`,ipv4:`địa chỉ IPv4`,ipv6:`địa chỉ IPv6`,cidrv4:`dải IPv4`,cidrv6:`dải IPv6`,base64:`chuỗi mã hóa base64`,base64url:`chuỗi mã hóa base64url`,json_string:`chuỗi JSON`,e164:`số E.164`,jwt:`JWT`,template_literal:`đầu vào`},r={nan:`NaN`,number:`số`,array:`mảng`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Đầu vào không hợp lệ: mong đợi instanceof ${e.expected}, nhận được ${i}`:`Đầu vào không hợp lệ: mong đợi ${t}, nhận được ${i}`}case`invalid_value`:return e.values.length===1?`Đầu vào không hợp lệ: mong đợi ${D(e.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Quá lớn: mong đợi ${e.origin??`giá trị`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`phần tử`}`:`Quá lớn: mong đợi ${e.origin??`giá trị`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Quá nhỏ: mong đợi ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Quá nhỏ: mong đợi ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chuỗi không hợp lệ: phải bắt đầu bằng \"${t.prefix}\"`:t.format===`ends_with`?`Chuỗi không hợp lệ: phải kết thúc bằng \"${t.suffix}\"`:t.format===`includes`?`Chuỗi không hợp lệ: phải bao gồm \"${t.includes}\"`:t.format===`regex`?`Chuỗi không hợp lệ: phải khớp với mẫu ${t.pattern}`:`${n[t.format]??e.format} không hợp lệ`}case`not_multiple_of`:return`Số không hợp lệ: phải là bội số của ${e.divisor}`;case`unrecognized_keys`:return`Khóa không được nhận dạng: ${S(e.keys,`, `)}`;case`invalid_key`:return`Khóa không hợp lệ trong ${e.origin}`;case`invalid_union`:return`Đầu vào không hợp lệ`;case`invalid_element`:return`Giá trị không hợp lệ trong ${e.origin}`;default:return`Đầu vào không hợp lệ`}}}}));function rc(){return{localeError:ic()}}var ic,ac=t((()=>{k(),ic=()=>{let e={string:{unit:`字符`,verb:`包含`},file:{unit:`字节`,verb:`包含`},array:{unit:`项`,verb:`包含`},set:{unit:`项`,verb:`包含`}};function t(t){return e[t]??null}let n={regex:`输入`,email:`电子邮件`,url:`URL`,emoji:`表情符号`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日期时间`,date:`ISO日期`,time:`ISO时间`,duration:`ISO时长`,ipv4:`IPv4地址`,ipv6:`IPv6地址`,cidrv4:`IPv4网段`,cidrv6:`IPv6网段`,base64:`base64编码字符串`,base64url:`base64url编码字符串`,json_string:`JSON字符串`,e164:`E.164号码`,jwt:`JWT`,template_literal:`输入`},r={nan:`NaN`,number:`数字`,array:`数组`,null:`空值(null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`无效输入:期望 instanceof ${e.expected},实际接收 ${i}`:`无效输入:期望 ${t},实际接收 ${i}`}case`invalid_value`:return e.values.length===1?`无效输入:期望 ${D(e.values[0])}`:`无效选项:期望以下之一 ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()} ${r.unit??`个元素`}`:`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`无效字符串:必须以 \"${t.prefix}\" 开头`:t.format===`ends_with`?`无效字符串:必须以 \"${t.suffix}\" 结尾`:t.format===`includes`?`无效字符串:必须包含 \"${t.includes}\"`:t.format===`regex`?`无效字符串:必须满足正则表达式 ${t.pattern}`:`无效${n[t.format]??e.format}`}case`not_multiple_of`:return`无效数字:必须是 ${e.divisor} 的倍数`;case`unrecognized_keys`:return`出现未知的键(key): ${S(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} 中的键(key)无效`;case`invalid_union`:return`无效输入`;case`invalid_element`:return`${e.origin} 中包含无效值(value)`;default:return`无效输入`}}}}));function oc(){return{localeError:sc()}}var sc,cc=t((()=>{k(),sc=()=>{let e={string:{unit:`字元`,verb:`擁有`},file:{unit:`位元組`,verb:`擁有`},array:{unit:`項目`,verb:`擁有`},set:{unit:`項目`,verb:`擁有`}};function t(t){return e[t]??null}let n={regex:`輸入`,email:`郵件地址`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO 日期時間`,date:`ISO 日期`,time:`ISO 時間`,duration:`ISO 期間`,ipv4:`IPv4 位址`,ipv6:`IPv6 位址`,cidrv4:`IPv4 範圍`,cidrv6:`IPv6 範圍`,base64:`base64 編碼字串`,base64url:`base64url 編碼字串`,json_string:`JSON 字串`,e164:`E.164 數值`,jwt:`JWT`,template_literal:`輸入`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無效的輸入值:預期為 instanceof ${e.expected},但收到 ${i}`:`無效的輸入值:預期為 ${t},但收到 ${i}`}case`invalid_value`:return e.values.length===1?`無效的輸入值:預期為 ${D(e.values[0])}`:`無效的選項:預期為以下其中之一 ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()} ${r.unit??`個元素`}`:`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()} ${r.unit}`:`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無效的字串:必須以 \"${t.prefix}\" 開頭`:t.format===`ends_with`?`無效的字串:必須以 \"${t.suffix}\" 結尾`:t.format===`includes`?`無效的字串:必須包含 \"${t.includes}\"`:t.format===`regex`?`無效的字串:必須符合格式 ${t.pattern}`:`無效的 ${n[t.format]??e.format}`}case`not_multiple_of`:return`無效的數字:必須為 ${e.divisor} 的倍數`;case`unrecognized_keys`:return`無法識別的鍵值${e.keys.length>1?`們`:``}:${S(e.keys,`、`)}`;case`invalid_key`:return`${e.origin} 中有無效的鍵值`;case`invalid_union`:return`無效的輸入值`;case`invalid_element`:return`${e.origin} 中有無效的值`;default:return`無效的輸入值`}}}}));function lc(){return{localeError:uc()}}var uc,dc=t((()=>{k(),uc=()=>{let e={string:{unit:`àmi`,verb:`ní`},file:{unit:`bytes`,verb:`ní`},array:{unit:`nkan`,verb:`ní`},set:{unit:`nkan`,verb:`ní`}};function t(t){return e[t]??null}let n={regex:`ẹ̀rọ ìbáwọlé`,email:`àdírẹ́sì ìmẹ́lì`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`àkókò ISO`,date:`ọjọ́ ISO`,time:`àkókò ISO`,duration:`àkókò tó pé ISO`,ipv4:`àdírẹ́sì IPv4`,ipv6:`àdírẹ́sì IPv6`,cidrv4:`àgbègbè IPv4`,cidrv6:`àgbègbè IPv6`,base64:`ọ̀rọ̀ tí a kọ́ ní base64`,base64url:`ọ̀rọ̀ base64url`,json_string:`ọ̀rọ̀ JSON`,e164:`nọ́mbà E.164`,jwt:`JWT`,template_literal:`ẹ̀rọ ìbáwọlé`},r={nan:`NaN`,number:`nọ́mbà`,array:`akopọ`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${e.expected}, àmọ̀ a rí ${i}`:`Ìbáwọlé aṣìṣe: a ní láti fi ${t}, àmọ̀ a rí ${i}`}case`invalid_value`:return e.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${D(e.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tó pọ̀ jù: a ní láti jẹ́ pé ${e.origin??`iye`} ${r.verb} ${n}${e.maximum} ${r.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${n}${e.maximum}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Kéré ju: a ní láti jẹ́ pé ${e.origin} ${r.verb} ${n}${e.minimum} ${r.unit}`:`Kéré ju: a ní láti jẹ́ ${n}${e.minimum}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú \"${t.prefix}\"`:t.format===`ends_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú \"${t.suffix}\"`:t.format===`includes`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní \"${t.includes}\"`:t.format===`regex`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${t.pattern}`:`Aṣìṣe: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${e.divisor}`;case`unrecognized_keys`:return`Bọtìnì àìmọ̀: ${S(e.keys,`, `)}`;case`invalid_key`:return`Bọtìnì aṣìṣe nínú ${e.origin}`;case`invalid_union`:return`Ìbáwọlé aṣìṣe`;case`invalid_element`:return`Iye aṣìṣe nínú ${e.origin}`;default:return`Ìbáwọlé aṣìṣe`}}}})),fc=r({ar:()=>ma,az:()=>_a,be:()=>xa,bg:()=>wa,ca:()=>Da,cs:()=>Aa,da:()=>Na,de:()=>Ia,el:()=>za,en:()=>Ha,eo:()=>Ga,es:()=>Ja,fa:()=>Za,fi:()=>eo,fr:()=>ro,frCA:()=>oo,he:()=>lo,hr:()=>po,hu:()=>go,hy:()=>xo,id:()=>Co,is:()=>Eo,it:()=>ko,ja:()=>Mo,ka:()=>Fo,kh:()=>Vo,km:()=>Ro,ko:()=>Uo,lt:()=>qo,mk:()=>Zo,ms:()=>es,nl:()=>rs,no:()=>os,ota:()=>ls,pl:()=>hs,ps:()=>fs,pt:()=>vs,ro:()=>xs,ru:()=>Ts,sl:()=>Os,sv:()=>js,ta:()=>Ps,th:()=>Ls,tr:()=>Bs,ua:()=>Ks,uk:()=>Us,ur:()=>Js,uz:()=>Zs,vi:()=>ec,yo:()=>lc,zhCN:()=>rc,zhTW:()=>oc}),pc=t((()=>{ga(),ya(),Ca(),Ea(),ka(),Ma(),Fa(),Ra(),Va(),Wa(),qa(),Xa(),$a(),no(),ao(),co(),fo(),ho(),vo(),So(),To(),Oo(),jo(),Po(),Lo(),Ho(),Bo(),Go(),Xo(),$o(),ns(),as(),cs(),ds(),ms(),_s(),bs(),Cs(),Ds(),As(),Ns(),Is(),zs(),Hs(),qs(),Gs(),Xs(),$s(),nc(),ac(),cc(),dc()}));function mc(){return new vc}var hc,gc,_c,vc,yc,bc=t((()=>{gc=Symbol(`ZodOutput`),_c=Symbol(`ZodInput`),vc=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}},(hc=globalThis).__zod_globalRegistry??(hc.__zod_globalRegistry=mc()),yc=globalThis.__zod_globalRegistry}));function xc(e,t){return new e({type:`string`,...E(t)})}function Sc(e,t){return new e({type:`string`,coerce:!0,...E(t)})}function Cc(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...E(t)})}function wc(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...E(t)})}function Tc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...E(t)})}function Ec(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...E(t)})}function Dc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...E(t)})}function Oc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...E(t)})}function kc(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...E(t)})}function Ac(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...E(t)})}function jc(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...E(t)})}function Mc(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...E(t)})}function Nc(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...E(t)})}function Pc(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...E(t)})}function Fc(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...E(t)})}function Ic(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...E(t)})}function Lc(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...E(t)})}function Rc(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...E(t)})}function zc(e,t){return new e({type:`string`,format:`mac`,check:`string_format`,abort:!1,...E(t)})}function Bc(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...E(t)})}function Vc(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...E(t)})}function Hc(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...E(t)})}function Uc(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...E(t)})}function Wc(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...E(t)})}function Gc(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...E(t)})}function Kc(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...E(t)})}function qc(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...E(t)})}function Jc(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...E(t)})}function Yc(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...E(t)})}function Xc(e,t){return new e({type:`number`,checks:[],...E(t)})}function Zc(e,t){return new e({type:`number`,coerce:!0,checks:[],...E(t)})}function Qc(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...E(t)})}function $c(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float32`,...E(t)})}function el(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float64`,...E(t)})}function tl(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`int32`,...E(t)})}function nl(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`uint32`,...E(t)})}function rl(e,t){return new e({type:`boolean`,...E(t)})}function il(e,t){return new e({type:`boolean`,coerce:!0,...E(t)})}function al(e,t){return new e({type:`bigint`,...E(t)})}function ol(e,t){return new e({type:`bigint`,coerce:!0,...E(t)})}function sl(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`int64`,...E(t)})}function cl(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`uint64`,...E(t)})}function ll(e,t){return new e({type:`symbol`,...E(t)})}function ul(e,t){return new e({type:`undefined`,...E(t)})}function dl(e,t){return new e({type:`null`,...E(t)})}function fl(e){return new e({type:`any`})}function pl(e){return new e({type:`unknown`})}function ml(e,t){return new e({type:`never`,...E(t)})}function hl(e,t){return new e({type:`void`,...E(t)})}function gl(e,t){return new e({type:`date`,...E(t)})}function _l(e,t){return new e({type:`date`,coerce:!0,...E(t)})}function vl(e,t){return new e({type:`nan`,...E(t)})}function yl(e,t){return new $n({check:`less_than`,...E(t),value:e,inclusive:!1})}function N(e,t){return new $n({check:`less_than`,...E(t),value:e,inclusive:!0})}function bl(e,t){return new er({check:`greater_than`,...E(t),value:e,inclusive:!1})}function xl(e,t){return new er({check:`greater_than`,...E(t),value:e,inclusive:!0})}function Sl(e){return bl(0,e)}function Cl(e){return yl(0,e)}function wl(e){return N(0,e)}function Tl(e){return xl(0,e)}function El(e,t){return new tr({check:`multiple_of`,...E(t),value:e})}function Dl(e,t){return new ir({check:`max_size`,...E(t),maximum:e})}function Ol(e,t){return new ar({check:`min_size`,...E(t),minimum:e})}function kl(e,t){return new or({check:`size_equals`,...E(t),size:e})}function Al(e,t){return new sr({check:`max_length`,...E(t),maximum:e})}function jl(e,t){return new cr({check:`min_length`,...E(t),minimum:e})}function Ml(e,t){return new lr({check:`length_equals`,...E(t),length:e})}function Nl(e,t){return new dr({check:`string_format`,format:`regex`,...E(t),pattern:e})}function Pl(e){return new fr({check:`string_format`,format:`lowercase`,...E(e)})}function Fl(e){return new pr({check:`string_format`,format:`uppercase`,...E(e)})}function Il(e,t){return new mr({check:`string_format`,format:`includes`,...E(t),includes:e})}function Ll(e,t){return new hr({check:`string_format`,format:`starts_with`,...E(t),prefix:e})}function Rl(e,t){return new gr({check:`string_format`,format:`ends_with`,...E(t),suffix:e})}function zl(e,t,n){return new _r({check:`property`,property:e,schema:t,...E(n)})}function Bl(e,t){return new vr({check:`mime_type`,mime:e,...E(t)})}function Vl(e){return new yr({check:`overwrite`,tx:e})}function Hl(e){return Vl(t=>t.normalize(e))}function Ul(){return Vl(e=>e.trim())}function Wl(){return Vl(e=>e.toLowerCase())}function Gl(){return Vl(e=>e.toUpperCase())}function Kl(){return Vl(e=>_e(e))}function ql(e,t,n){return new e({type:`array`,element:t,...E(n)})}function Jl(e,t,n){return new e({type:`union`,options:t,...E(n)})}function Yl(e,t,n){return new e({type:`union`,options:t,inclusive:!1,...E(n)})}function Xl(e,t,n,r){return new e({type:`union`,options:n,discriminator:t,...E(r)})}function P(e,t,n){return new e({type:`intersection`,left:t,right:n})}function Zl(e,t,n,r){let i=n instanceof A;return new e({type:`tuple`,items:t,rest:i?n:null,...E(i?r:n)})}function F(e,t,n,r){return new e({type:`record`,keyType:t,valueType:n,...E(r)})}function I(e,t,n,r){return new e({type:`map`,keyType:t,valueType:n,...E(r)})}function Ql(e,t,n){return new e({type:`set`,valueType:t,...E(n)})}function $l(e,t,n){return new e({type:`enum`,entries:Array.isArray(t)?Object.fromEntries(t.map(e=>[e,e])):t,...E(n)})}function eu(e,t,n){return new e({type:`enum`,entries:t,...E(n)})}function tu(e,t,n){return new e({type:`literal`,values:Array.isArray(t)?t:[t],...E(n)})}function nu(e,t){return new e({type:`file`,...E(t)})}function ru(e,t){return new e({type:`transform`,transform:t})}function iu(e,t){return new e({type:`optional`,innerType:t})}function au(e,t){return new e({type:`nullable`,innerType:t})}function ou(e,t,n){return new e({type:`default`,innerType:t,get defaultValue(){return typeof n==`function`?n():be(n)}})}function su(e,t,n){return new e({type:`nonoptional`,innerType:t,...E(n)})}function cu(e,t){return new e({type:`success`,innerType:t})}function lu(e,t,n){return new e({type:`catch`,innerType:t,catchValue:typeof n==`function`?n:()=>n})}function uu(e,t,n){return new e({type:`pipe`,in:t,out:n})}function du(e,t){return new e({type:`readonly`,innerType:t})}function fu(e,t,n){return new e({type:`template_literal`,parts:t,...E(n)})}function pu(e,t){return new e({type:`lazy`,getter:t})}function mu(e,t){return new e({type:`promise`,innerType:t})}function hu(e,t,n){let r=E(n);return r.abort??=!0,new e({type:`custom`,check:`custom`,fn:t,...r})}function gu(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...E(n)})}function _u(e,t){let n=vu(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(Be(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(Be(r))}},e(t.value,t)),t);return n}function vu(e,t){let n=new Zn({check:`custom`,...E(t)});return n._zod.check=e,n}function yu(e){let t=new Zn({check:`describe`});return t._zod.onattach=[t=>{let n=yc.get(t)??{};yc.add(t,{...n,description:e})}],t._zod.check=()=>{},t}function bu(e){let t=new Zn({check:`meta`});return t._zod.onattach=[t=>{let n=yc.get(t)??{};yc.add(t,{...n,...e})}],t._zod.check=()=>{},t}function xu(e,t){let n=E(t),r=n.truthy??[`true`,`1`,`yes`,`on`,`y`,`enabled`],i=n.falsy??[`false`,`0`,`no`,`off`,`n`,`disabled`];n.case!==`sensitive`&&(r=r.map(e=>typeof e==`string`?e.toLowerCase():e),i=i.map(e=>typeof e==`string`?e.toLowerCase():e));let a=new Set(r),o=new Set(i),s=e.Codec??aa,c=e.Boolean??wi,l=new s({type:`pipe`,in:new(e.String??Yr)({type:`string`,error:n.error}),out:new c({type:`boolean`,error:n.error}),transform:((e,t)=>{let r=e;return n.case!==`sensitive`&&(r=r.toLowerCase()),a.has(r)?!0:o.has(r)?!1:(t.issues.push({code:`invalid_value`,expected:`stringbool`,values:[...a,...o],input:t.value,inst:l,continue:!1}),{})}),reverseTransform:((e,t)=>e===!0?r[0]||`true`:i[0]||`false`),error:n.error});return l}function Su(e,t,n,r={}){let i=E(r),a={...E(r),check:`string_format`,type:`string`,format:t,fn:typeof n==`function`?n:e=>n.test(e),...i};return n instanceof RegExp&&(a.pattern=n),new e(a)}var Cu,wu=t((()=>{br(),bc(),pa(),k(),Cu={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6}}));function Tu(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??yc,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function L(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,L(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&Ou(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function Eu(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id \"${n}\" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>\n\nSet the \\`cycles\\` parameter to \\`\"ref\"\\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function Du(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error(\"Schema is missing an `id` property\");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,\"~standard\",{value:{...t[`~standard`],jsonSchema:{input:Au(t,`input`,e.processors),output:Au(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function Ou(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return Ou(r.element,n);if(r.type===`set`)return Ou(r.valueType,n);if(r.type===`lazy`)return Ou(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type===\"default\"||r.type===`prefault`)return Ou(r.innerType,n);if(r.type===`intersection`)return Ou(r.left,n)||Ou(r.right,n);if(r.type===`record`||r.type===`map`)return Ou(r.keyType,n)||Ou(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:Ou(r.in,n)||Ou(r.out,n);if(r.type===`object`){for(let e in r.shape)if(Ou(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(Ou(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(Ou(e,n))return!0;return!!(r.rest&&Ou(r.rest,n))}return!1}var ku,Au,ju=t((()=>{bc(),ku=(e,t={})=>n=>{let r=Tu({...n,processors:t});return L(e,r),Eu(r,e),Du(r,e)},Au=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=Tu({...i??{},target:a,io:t,processors:n});return L(e,o),Eu(o,e),Du(o,e)}}));function Mu(e,t){if(`_idmap`in e){let n=e,r=Tu({...t,processors:vd}),i={};for(let e of n._idmap.entries()){let[t,n]=e;L(n,r)}let a={};r.external={registry:n,uri:t?.uri,defs:i};for(let e of n._idmap.entries()){let[t,n]=e;Eu(r,n),a[t]=Du(r,n)}return Object.keys(i).length>0&&(a.__shared={[r.target===`draft-2020-12`?`$defs`:`definitions`]:i}),{schemas:a}}let n=Tu({...t,processors:vd});return L(e,n),Eu(n,e),Du(n,e)}var Nu,Pu,Fu,Iu,Lu,Ru,zu,Bu,Vu,Hu,Uu,Wu,Gu,Ku,qu,Ju,Yu,Xu,Zu,Qu,$u,ed,td,nd,rd,R,id,ad,od,sd,cd,ld,ud,dd,fd,pd,md,hd,gd,_d,vd,yd=t((()=>{ju(),k(),Nu={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},Pu=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=Nu[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},Fu=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;typeof s==`string`&&s.includes(`int`)?i.type=`integer`:i.type=`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},Iu=(e,t,n,r)=>{n.type=`boolean`},Lu=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`BigInt cannot be represented in JSON Schema`)},Ru=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Symbols cannot be represented in JSON Schema`)},zu=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},Bu=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Undefined cannot be represented in JSON Schema`)},Vu=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Void cannot be represented in JSON Schema`)},Hu=(e,t,n,r)=>{n.not={}},Uu=(e,t,n,r)=>{},Wu=(e,t,n,r)=>{},Gu=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Date cannot be represented in JSON Schema`)},Ku=(e,t,n,r)=>{let i=e._zod.def,a=ae(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},qu=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error(\"Literal `undefined` cannot be represented in JSON Schema\")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a},Ju=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`NaN cannot be represented in JSON Schema`)},Yu=(e,t,n,r)=>{let i=n,a=e._zod.pattern;if(!a)throw Error(`Pattern not found in template literal`);i.type=`string`,i.pattern=a.source},Xu=(e,t,n,r)=>{let i=n,a={type:`string`,format:`binary`,contentEncoding:`binary`},{minimum:o,maximum:s,mime:c}=e._zod.bag;o!==void 0&&(a.minLength=o),s!==void 0&&(a.maxLength=s),c?c.length===1?(a.contentMediaType=c[0],Object.assign(i,a)):(Object.assign(i,a),i.anyOf=c.map(e=>({contentMediaType:e}))):Object.assign(i,a)},Zu=(e,t,n,r)=>{n.type=`boolean`},Qu=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},$u=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Function types cannot be represented in JSON Schema`)},ed=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},td=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Map cannot be represented in JSON Schema`)},nd=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Set cannot be represented in JSON Schema`)},rd=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=L(a.element,t,{...r,path:[...r.path,`items`]})},R=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=L(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=L(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},id=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>L(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},ad=(e,t,n,r)=>{let i=e._zod.def,a=L(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=L(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},od=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`array`;let o=t.target===`draft-2020-12`?`prefixItems`:`items`,s=t.target===`draft-2020-12`||t.target===`openapi-3.0`?`items`:`additionalItems`,c=a.items.map((e,n)=>L(e,t,{...r,path:[...r.path,o,n]})),l=a.rest?L(a.rest,t,{...r,path:[...r.path,s,...t.target===`openapi-3.0`?[a.items.length]:[]]}):null;t.target===`draft-2020-12`?(i.prefixItems=c,l&&(i.items=l)):t.target===`openapi-3.0`?(i.items={anyOf:c},l&&i.items.anyOf.push(l),i.minItems=c.length,l||(i.maxItems=c.length)):(i.items=c,l&&(i.additionalItems=l));let{minimum:u,maximum:d}=e._zod.bag;typeof u==`number`&&(i.minItems=u),typeof d==`number`&&(i.maxItems=d)},sd=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=L(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else (t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=L(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=L(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},cd=(e,t,n,r)=>{let i=e._zod.def,a=L(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},ld=(e,t,n,r)=>{let i=e._zod.def;L(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},ud=(e,t,n,r)=>{let i=e._zod.def;L(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},dd=(e,t,n,r)=>{let i=e._zod.def;L(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},fd=(e,t,n,r)=>{let i=e._zod.def;L(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},pd=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;L(o,t,r);let s=t.seen.get(e);s.ref=o},md=(e,t,n,r)=>{let i=e._zod.def;L(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},hd=(e,t,n,r)=>{let i=e._zod.def;L(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},gd=(e,t,n,r)=>{let i=e._zod.def;L(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},_d=(e,t,n,r)=>{let i=e._zod.innerType;L(i,t,r);let a=t.seen.get(e);a.ref=i},vd={string:Pu,number:Fu,boolean:Iu,bigint:Lu,symbol:Ru,null:zu,undefined:Bu,void:Vu,never:Hu,any:Uu,unknown:Wu,date:Gu,enum:Ku,literal:qu,nan:Ju,template_literal:Yu,file:Xu,success:Zu,custom:Qu,function:$u,transform:ed,map:td,set:nd,array:rd,object:R,union:id,intersection:ad,tuple:od,record:sd,nullable:cd,nonoptional:ld,default:ud,prefault:dd,catch:fd,pipe:pd,readonly:md,promise:hd,optional:gd,lazy:_d}})),bd,xd=t((()=>{yd(),ju(),bd=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let t=e?.target??`draft-2020-12`;t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),this.ctx=Tu({processors:vd,target:t,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,t={path:[],schemaPath:[]}){return L(e,this.ctx,t)}emit(e,t){t&&(t.cycles&&(this.ctx.cycles=t.cycles),t.reused&&(this.ctx.reused=t.reused),t.external&&(this.ctx.external=t.external)),Eu(this.ctx,e);let{\"~standard\":n,...r}=Du(this.ctx,e);return r}}})),Sd=r({}),Cd=t((()=>{})),wd=r({$ZodAny:()=>Ai,$ZodArray:()=>Fi,$ZodAsyncError:()=>_,$ZodBase64:()=>_i,$ZodBase64URL:()=>vi,$ZodBigInt:()=>Ti,$ZodBigIntFormat:()=>Ei,$ZodBoolean:()=>wi,$ZodCIDRv4:()=>hi,$ZodCIDRv6:()=>gi,$ZodCUID:()=>ri,$ZodCUID2:()=>ii,$ZodCatch:()=>na,$ZodCheck:()=>Zn,$ZodCheckBigIntFormat:()=>rr,$ZodCheckEndsWith:()=>gr,$ZodCheckGreaterThan:()=>er,$ZodCheckIncludes:()=>mr,$ZodCheckLengthEquals:()=>lr,$ZodCheckLessThan:()=>$n,$ZodCheckLowerCase:()=>fr,$ZodCheckMaxLength:()=>sr,$ZodCheckMaxSize:()=>ir,$ZodCheckMimeType:()=>vr,$ZodCheckMinLength:()=>cr,$ZodCheckMinSize:()=>ar,$ZodCheckMultipleOf:()=>tr,$ZodCheckNumberFormat:()=>nr,$ZodCheckOverwrite:()=>yr,$ZodCheckProperty:()=>_r,$ZodCheckRegex:()=>dr,$ZodCheckSizeEquals:()=>or,$ZodCheckStartsWith:()=>hr,$ZodCheckStringFormat:()=>ur,$ZodCheckUpperCase:()=>pr,$ZodCodec:()=>aa,$ZodCustom:()=>fa,$ZodCustomStringFormat:()=>xi,$ZodDate:()=>Pi,$ZodDefault:()=>Qi,$ZodDiscriminatedUnion:()=>Bi,$ZodE164:()=>yi,$ZodEmail:()=>$r,$ZodEmoji:()=>ti,$ZodEncodeError:()=>v,$ZodEnum:()=>Gi,$ZodError:()=>lt,$ZodExactOptional:()=>Xi,$ZodFile:()=>qi,$ZodFunction:()=>la,$ZodGUID:()=>Zr,$ZodIPv4:()=>fi,$ZodIPv6:()=>pi,$ZodISODate:()=>li,$ZodISODateTime:()=>ci,$ZodISODuration:()=>di,$ZodISOTime:()=>ui,$ZodIntersection:()=>Vi,$ZodJWT:()=>bi,$ZodKSUID:()=>si,$ZodLazy:()=>da,$ZodLiteral:()=>Ki,$ZodMAC:()=>mi,$ZodMap:()=>Ui,$ZodNaN:()=>ra,$ZodNanoID:()=>ni,$ZodNever:()=>Mi,$ZodNonOptional:()=>ea,$ZodNull:()=>ki,$ZodNullable:()=>Zi,$ZodNumber:()=>Si,$ZodNumberFormat:()=>Ci,$ZodObject:()=>Ii,$ZodObjectJIT:()=>Li,$ZodOptional:()=>Yi,$ZodPipe:()=>ia,$ZodPrefault:()=>$i,$ZodPreprocess:()=>oa,$ZodPromise:()=>ua,$ZodReadonly:()=>sa,$ZodRealError:()=>ut,$ZodRecord:()=>j,$ZodRegistry:()=>vc,$ZodSet:()=>Wi,$ZodString:()=>Yr,$ZodStringFormat:()=>Xr,$ZodSuccess:()=>ta,$ZodSymbol:()=>Di,$ZodTemplateLiteral:()=>ca,$ZodTransform:()=>Ji,$ZodTuple:()=>Hi,$ZodType:()=>A,$ZodULID:()=>ai,$ZodURL:()=>ei,$ZodUUID:()=>Qr,$ZodUndefined:()=>Oi,$ZodUnion:()=>Ri,$ZodUnknown:()=>ji,$ZodVoid:()=>Ni,$ZodXID:()=>oi,$ZodXor:()=>zi,$brand:()=>g,$constructor:()=>f,$input:()=>_c,$output:()=>gc,Doc:()=>xr,JSONSchema:()=>Sd,JSONSchemaGenerator:()=>bd,NEVER:()=>h,TimePrecision:()=>Cu,_any:()=>fl,_array:()=>ql,_base64:()=>Hc,_base64url:()=>Uc,_bigint:()=>al,_boolean:()=>rl,_catch:()=>lu,_check:()=>vu,_cidrv4:()=>Bc,_cidrv6:()=>Vc,_coercedBigint:()=>ol,_coercedBoolean:()=>il,_coercedDate:()=>_l,_coercedNumber:()=>Zc,_coercedString:()=>Sc,_cuid:()=>Mc,_cuid2:()=>Nc,_custom:()=>hu,_date:()=>gl,_decode:()=>St,_decodeAsync:()=>Et,_default:()=>ou,_discriminatedUnion:()=>Xl,_e164:()=>Wc,_email:()=>Cc,_emoji:()=>Ac,_encode:()=>bt,_encodeAsync:()=>wt,_endsWith:()=>Rl,_enum:()=>$l,_file:()=>nu,_float32:()=>$c,_float64:()=>el,_gt:()=>bl,_gte:()=>xl,_guid:()=>wc,_includes:()=>Il,_int:()=>Qc,_int32:()=>tl,_int64:()=>sl,_intersection:()=>P,_ipv4:()=>Lc,_ipv6:()=>Rc,_isoDate:()=>qc,_isoDateTime:()=>Kc,_isoDuration:()=>Yc,_isoTime:()=>Jc,_jwt:()=>Gc,_ksuid:()=>Ic,_lazy:()=>pu,_length:()=>Ml,_literal:()=>tu,_lowercase:()=>Pl,_lt:()=>yl,_lte:()=>N,_mac:()=>zc,_map:()=>I,_max:()=>N,_maxLength:()=>Al,_maxSize:()=>Dl,_mime:()=>Bl,_min:()=>xl,_minLength:()=>jl,_minSize:()=>Ol,_multipleOf:()=>El,_nan:()=>vl,_nanoid:()=>jc,_nativeEnum:()=>eu,_negative:()=>Cl,_never:()=>ml,_nonnegative:()=>Tl,_nonoptional:()=>su,_nonpositive:()=>wl,_normalize:()=>Hl,_null:()=>dl,_nullable:()=>au,_number:()=>Xc,_optional:()=>iu,_overwrite:()=>Vl,_parse:()=>ft,_parseAsync:()=>mt,_pipe:()=>uu,_positive:()=>Sl,_promise:()=>mu,_property:()=>zl,_readonly:()=>du,_record:()=>F,_refine:()=>gu,_regex:()=>Nl,_safeDecode:()=>At,_safeDecodeAsync:()=>Pt,_safeEncode:()=>Ot,_safeEncodeAsync:()=>Mt,_safeParse:()=>gt,_safeParseAsync:()=>vt,_set:()=>Ql,_size:()=>kl,_slugify:()=>Kl,_startsWith:()=>Ll,_string:()=>xc,_stringFormat:()=>Su,_stringbool:()=>xu,_success:()=>cu,_superRefine:()=>_u,_symbol:()=>ll,_templateLiteral:()=>fu,_toLowerCase:()=>Wl,_toUpperCase:()=>Gl,_transform:()=>ru,_trim:()=>Ul,_tuple:()=>Zl,_uint32:()=>nl,_uint64:()=>cl,_ulid:()=>Pc,_undefined:()=>ul,_union:()=>Jl,_unknown:()=>pl,_uppercase:()=>Fl,_url:()=>kc,_uuid:()=>Tc,_uuidv4:()=>Ec,_uuidv6:()=>Dc,_uuidv7:()=>Oc,_void:()=>hl,_xid:()=>Fc,_xor:()=>Yl,clone:()=>Ce,config:()=>p,createStandardJSONSchemaMethod:()=>Au,createToJSONSchemaMethod:()=>ku,decode:()=>Ct,decodeAsync:()=>Dt,describe:()=>yu,encode:()=>xt,encodeAsync:()=>Tt,extractDefs:()=>Eu,finalize:()=>Du,flattenError:()=>rt,formatError:()=>it,globalConfig:()=>y,globalRegistry:()=>yc,initializeContext:()=>Tu,isValidBase64:()=>Tr,isValidBase64URL:()=>Er,isValidJWT:()=>Dr,locales:()=>fc,meta:()=>bu,parse:()=>pt,parseAsync:()=>ht,prettifyError:()=>st,process:()=>L,regexes:()=>Lt,registry:()=>mc,safeDecode:()=>jt,safeDecodeAsync:()=>Ft,safeEncode:()=>kt,safeEncodeAsync:()=>Nt,safeParse:()=>_t,safeParseAsync:()=>yt,toDotPath:()=>ot,toJSONSchema:()=>Mu,treeifyError:()=>at,util:()=>ee,version:()=>Cr}),Td=t((()=>{b(),It(),dt(),pa(),br(),wr(),k(),Yn(),pc(),bc(),Sr(),wu(),ju(),yd(),xd(),Cd()}));wu(),k(),Yn(),b(),It(),yd(),dt(),pc(),Td(),bc();function Ed(e){return!!e._zod}function Dd(e,t){return Ed(e)?_t(e,t):e.safeParse(t)}function Od(e){if(!e)return;let t;if(t=Ed(e)?e._zod?.def?.shape:e.shape,t){if(typeof t==`function`)try{return t()}catch{return}return t}}function kd(e){if(Ed(e)){let t=e._zod?.def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}}let t=e._def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}let n=e.value;if(n!==void 0)return n}var Ad=r({endsWith:()=>Rl,gt:()=>bl,gte:()=>xl,includes:()=>Il,length:()=>Ml,lowercase:()=>Pl,lt:()=>yl,lte:()=>N,maxLength:()=>Al,maxSize:()=>Dl,mime:()=>Bl,minLength:()=>jl,minSize:()=>Ol,multipleOf:()=>El,negative:()=>Cl,nonnegative:()=>Tl,nonpositive:()=>wl,normalize:()=>Hl,overwrite:()=>Vl,positive:()=>Sl,property:()=>zl,regex:()=>Nl,size:()=>kl,slugify:()=>Kl,startsWith:()=>Ll,toLowerCase:()=>Wl,toUpperCase:()=>Gl,trim:()=>Ul,uppercase:()=>Fl}),jd=t((()=>{Td()})),Md=r({ZodISODate:()=>Ld,ZodISODateTime:()=>Id,ZodISODuration:()=>zd,ZodISOTime:()=>Rd,date:()=>Nd,datetime:()=>z,duration:()=>Fd,time:()=>Pd});function z(e){return Kc(Id,e)}function Nd(e){return qc(Ld,e)}function Pd(e){return Jc(Rd,e)}function Fd(e){return Yc(zd,e)}var Id,Ld,Rd,zd,Bd=t((()=>{Td(),$m(),Id=f(`ZodISODateTime`,(e,t)=>{ci.init(e,t),Z.init(e,t)}),Ld=f(`ZodISODate`,(e,t)=>{li.init(e,t),Z.init(e,t)}),Rd=f(`ZodISOTime`,(e,t)=>{ui.init(e,t),Z.init(e,t)}),zd=f(`ZodISODuration`,(e,t)=>{di.init(e,t),Z.init(e,t)})})),Vd,Hd,Ud,Wd=t((()=>{Td(),k(),Vd=(e,t)=>{lt.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>it(e,t)},flatten:{value:t=>rt(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,oe,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,oe,2)}},isEmpty:{get(){return e.issues.length===0}}})},Hd=f(`ZodError`,Vd),Ud=f(`ZodError`,Vd,{Parent:Error})})),Gd,B,Kd,qd,Jd,Yd,Xd,Zd,Qd,$d,ef,tf,nf=t((()=>{Td(),Wd(),Gd=ft(Ud),B=mt(Ud),Kd=gt(Ud),qd=vt(Ud),Jd=bt(Ud),Yd=St(Ud),Xd=wt(Ud),Zd=Et(Ud),Qd=Ot(Ud),$d=At(Ud),ef=Mt(Ud),tf=Pt(Ud)})),rf=r({ZodAny:()=>pm,ZodArray:()=>vm,ZodBase64:()=>em,ZodBase64URL:()=>tm,ZodBigInt:()=>cm,ZodBigIntFormat:()=>lm,ZodBoolean:()=>sm,ZodCIDRv4:()=>Qp,ZodCIDRv6:()=>$p,ZodCUID:()=>Wp,ZodCUID2:()=>Gp,ZodCatch:()=>zm,ZodCodec:()=>Hm,ZodCustom:()=>Ym,ZodCustomStringFormat:()=>im,ZodDate:()=>_m,ZodDefault:()=>Fm,ZodDiscriminatedUnion:()=>Sm,ZodE164:()=>nm,ZodEmail:()=>Rp,ZodEmoji:()=>Hp,ZodEnum:()=>Om,ZodExactOptional:()=>Nm,ZodFile:()=>Am,ZodFunction:()=>Jm,ZodGUID:()=>zp,ZodIPv4:()=>Yp,ZodIPv6:()=>Zp,ZodIntersection:()=>Cm,ZodJWT:()=>rm,ZodKSUID:()=>Jp,ZodLazy:()=>Km,ZodLiteral:()=>km,ZodMAC:()=>Xp,ZodMap:()=>Em,ZodNaN:()=>Bm,ZodNanoID:()=>Up,ZodNever:()=>hm,ZodNonOptional:()=>Lm,ZodNull:()=>fm,ZodNullable:()=>Pm,ZodNumber:()=>am,ZodNumberFormat:()=>om,ZodObject:()=>ym,ZodOptional:()=>Mm,ZodPipe:()=>Vm,ZodPrefault:()=>Im,ZodPreprocess:()=>Um,ZodPromise:()=>qm,ZodReadonly:()=>Wm,ZodRecord:()=>Tm,ZodSet:()=>Dm,ZodString:()=>Lp,ZodStringFormat:()=>Z,ZodSuccess:()=>Rm,ZodSymbol:()=>um,ZodTemplateLiteral:()=>Gm,ZodTransform:()=>jm,ZodTuple:()=>wm,ZodType:()=>X,ZodULID:()=>Kp,ZodURL:()=>Vp,ZodUUID:()=>Bp,ZodUndefined:()=>dm,ZodUnion:()=>bm,ZodUnknown:()=>mm,ZodVoid:()=>gm,ZodXID:()=>qp,ZodXor:()=>xm,_ZodString:()=>Ip,_default:()=>mp,_function:()=>Dp,any:()=>Gf,array:()=>G,base64:()=>Ef,base64url:()=>Df,bigint:()=>zf,boolean:()=>U,catch:()=>vp,check:()=>Op,cidrv4:()=>wf,cidrv6:()=>Tf,codec:()=>xp,cuid:()=>gf,cuid2:()=>_f,custom:()=>kp,date:()=>Jf,describe:()=>Xm,discriminatedUnion:()=>$f,e164:()=>Of,email:()=>of,emoji:()=>mf,enum:()=>op,exactOptional:()=>dp,file:()=>cp,float32:()=>Ff,float64:()=>If,function:()=>Dp,guid:()=>sf,hash:()=>Nf,hex:()=>Mf,hostname:()=>jf,httpUrl:()=>pf,instanceof:()=>Mp,int:()=>Pf,int32:()=>Lf,int64:()=>Bf,intersection:()=>ep,invertCodec:()=>Sp,ipv4:()=>xf,ipv6:()=>Cf,json:()=>Np,jwt:()=>kf,keyof:()=>Yf,ksuid:()=>bf,lazy:()=>Tp,literal:()=>Y,looseObject:()=>Zf,looseRecord:()=>rp,mac:()=>Sf,map:()=>ip,meta:()=>Zm,nan:()=>yp,nanoid:()=>hf,nativeEnum:()=>sp,never:()=>Kf,nonoptional:()=>gp,null:()=>Wf,nullable:()=>fp,nullish:()=>pp,number:()=>H,object:()=>K,optional:()=>up,partialRecord:()=>np,pipe:()=>bp,prefault:()=>hp,preprocess:()=>Pp,promise:()=>Ep,readonly:()=>Cp,record:()=>J,refine:()=>Ap,set:()=>ap,strictObject:()=>Xf,string:()=>V,stringFormat:()=>Af,stringbool:()=>Qm,success:()=>_p,superRefine:()=>jp,symbol:()=>Hf,templateLiteral:()=>wp,transform:()=>lp,tuple:()=>tp,uint32:()=>Rf,uint64:()=>Vf,ulid:()=>vf,undefined:()=>Uf,union:()=>q,unknown:()=>W,url:()=>ff,uuid:()=>cf,uuidv4:()=>lf,uuidv6:()=>uf,uuidv7:()=>df,void:()=>qf,xid:()=>yf,xor:()=>Qf});function af(e,t,n){let r=Object.getPrototypeOf(e),i=Fp.get(r);if(i||(i=new Set,Fp.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}function V(e){return xc(Lp,e)}function of(e){return Cc(Rp,e)}function sf(e){return wc(zp,e)}function cf(e){return Tc(Bp,e)}function lf(e){return Ec(Bp,e)}function uf(e){return Dc(Bp,e)}function df(e){return Oc(Bp,e)}function ff(e){return kc(Vp,e)}function pf(e){return kc(Vp,{protocol:bn,hostname:yn,...E(e)})}function mf(e){return Ac(Hp,e)}function hf(e){return jc(Up,e)}function gf(e){return Mc(Wp,e)}function _f(e){return Nc(Gp,e)}function vf(e){return Pc(Kp,e)}function yf(e){return Fc(qp,e)}function bf(e){return Ic(Jp,e)}function xf(e){return Lc(Yp,e)}function Sf(e){return zc(Xp,e)}function Cf(e){return Rc(Zp,e)}function wf(e){return Bc(Qp,e)}function Tf(e){return Vc($p,e)}function Ef(e){return Hc(em,e)}function Df(e){return Uc(tm,e)}function Of(e){return Wc(nm,e)}function kf(e){return Gc(rm,e)}function Af(e,t,n={}){return Su(im,e,t,n)}function jf(e){return Su(im,`hostname`,vn,e)}function Mf(e){return Su(im,`hex`,Nn,e)}function Nf(e,t){let n=`${e}_${t?.enc??`hex`}`,r=Lt[n];if(!r)throw Error(`Unrecognized hash format: ${n}`);return Su(im,n,r,t)}function H(e){return Xc(am,e)}function Pf(e){return Qc(om,e)}function Ff(e){return $c(om,e)}function If(e){return el(om,e)}function Lf(e){return tl(om,e)}function Rf(e){return nl(om,e)}function U(e){return rl(sm,e)}function zf(e){return al(cm,e)}function Bf(e){return sl(lm,e)}function Vf(e){return cl(lm,e)}function Hf(e){return ll(um,e)}function Uf(e){return ul(dm,e)}function Wf(e){return dl(fm,e)}function Gf(){return fl(pm)}function W(){return pl(mm)}function Kf(e){return ml(hm,e)}function qf(e){return hl(gm,e)}function Jf(e){return gl(_m,e)}function G(e,t){return ql(vm,e,t)}function Yf(e){let t=e._zod.def.shape;return op(Object.keys(t))}function K(e,t){return new ym({type:`object`,shape:e??{},...E(t)})}function Xf(e,t){return new ym({type:`object`,shape:e,catchall:Kf(),...E(t)})}function Zf(e,t){return new ym({type:`object`,shape:e,catchall:W(),...E(t)})}function q(e,t){return new bm({type:`union`,options:e,...E(t)})}function Qf(e,t){return new xm({type:`union`,options:e,inclusive:!1,...E(t)})}function $f(e,t,n){return new Sm({type:`union`,options:t,discriminator:e,...E(n)})}function ep(e,t){return new Cm({type:`intersection`,left:e,right:t})}function tp(e,t,n){let r=t instanceof A;return new wm({type:`tuple`,items:e,rest:r?t:null,...E(r?n:t)})}function J(e,t,n){return!t||!t._zod?new Tm({type:`record`,keyType:V(),valueType:e,...E(t)}):new Tm({type:`record`,keyType:e,valueType:t,...E(n)})}function np(e,t,n){let r=Ce(e);return r._zod.values=void 0,new Tm({type:`record`,keyType:r,valueType:t,...E(n)})}function rp(e,t,n){return new Tm({type:`record`,keyType:e,valueType:t,mode:`loose`,...E(n)})}function ip(e,t,n){return new Em({type:`map`,keyType:e,valueType:t,...E(n)})}function ap(e,t){return new Dm({type:`set`,valueType:e,...E(t)})}function op(e,t){return new Om({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...E(t)})}function sp(e,t){return new Om({type:`enum`,entries:e,...E(t)})}function Y(e,t){return new km({type:`literal`,values:Array.isArray(e)?e:[e],...E(t)})}function cp(e){return nu(Am,e)}function lp(e){return new jm({type:`transform`,transform:e})}function up(e){return new Mm({type:`optional`,innerType:e})}function dp(e){return new Nm({type:`optional`,innerType:e})}function fp(e){return new Pm({type:`nullable`,innerType:e})}function pp(e){return up(fp(e))}function mp(e,t){return new Fm({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():be(t)}})}function hp(e,t){return new Im({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():be(t)}})}function gp(e,t){return new Lm({type:`nonoptional`,innerType:e,...E(t)})}function _p(e){return new Rm({type:`success`,innerType:e})}function vp(e,t){return new zm({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}function yp(e){return vl(Bm,e)}function bp(e,t){return new Vm({type:`pipe`,in:e,out:t})}function xp(e,t,n){return new Hm({type:`pipe`,in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function Sp(e){let t=e._zod.def;return new Hm({type:`pipe`,in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}function Cp(e){return new Wm({type:`readonly`,innerType:e})}function wp(e,t){return new Gm({type:`template_literal`,parts:e,...E(t)})}function Tp(e){return new Km({type:`lazy`,getter:e})}function Ep(e){return new qm({type:`promise`,innerType:e})}function Dp(e){return new Jm({type:`function`,input:Array.isArray(e?.input)?tp(e?.input):e?.input??G(W()),output:e?.output??W()})}function Op(e){let t=new Zn({check:`custom`});return t._zod.check=e,t}function kp(e,t){return hu(Ym,e??(()=>!0),t)}function Ap(e,t={}){return gu(Ym,e,t)}function jp(e,t){return _u(e,t)}function Mp(e,t={}){let n=new Ym({type:`custom`,check:`custom`,fn:t=>t instanceof e,abort:!0,...E(t)});return n._zod.bag.Class=e,n._zod.check=t=>{t.value instanceof e||t.issues.push({code:`invalid_type`,expected:e.name,input:t.value,inst:n,path:[...n._zod.def.path??[]]})},n}function Np(e){let t=Tp(()=>q([V(e),H(),U(),Wf(),G(t),J(V(),t)]));return t}function Pp(e,t){return new Um({type:`pipe`,in:lp(e),out:t})}var Fp,X,Ip,Lp,Z,Rp,zp,Bp,Vp,Hp,Up,Wp,Gp,Kp,qp,Jp,Yp,Xp,Zp,Qp,$p,em,tm,nm,rm,im,am,om,sm,cm,lm,um,dm,fm,pm,mm,hm,gm,_m,vm,ym,bm,xm,Sm,Cm,wm,Tm,Em,Dm,Om,km,Am,jm,Mm,Nm,Pm,Fm,Im,Lm,Rm,zm,Bm,Vm,Hm,Um,Wm,Gm,Km,qm,Jm,Ym,Xm,Zm,Qm,$m=t((()=>{Td(),yd(),ju(),jd(),Bd(),nf(),Fp=new WeakMap,X=f(`ZodType`,(e,t)=>(A.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:Au(e,`input`),output:Au(e,`output`)}}),e.toJSONSchema=ku(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,\"_def\",{value:t}),e.parse=(t,n)=>Gd(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Kd(e,t,n),e.parseAsync=async(t,n)=>B(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>qd(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>Jd(e,t,n),e.decode=(t,n)=>Yd(e,t,n),e.encodeAsync=async(t,n)=>Xd(e,t,n),e.decodeAsync=async(t,n)=>Zd(e,t,n),e.safeEncode=(t,n)=>Qd(e,t,n),e.safeDecode=(t,n)=>$d(e,t,n),e.safeEncodeAsync=async(t,n)=>ef(e,t,n),e.safeDecodeAsync=async(t,n)=>tf(e,t,n),af(e,`ZodType`,{check(...e){let t=this.def;return this.clone(T(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Ce(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Ap(e,t))},superRefine(e,t){return this.check(jp(e,t))},overwrite(e){return this.check(Vl(e))},optional(){return up(this)},exactOptional(){return dp(this)},nullable(){return fp(this)},nullish(){return up(fp(this))},nonoptional(e){return gp(this,e)},array(){return G(this)},or(e){return q([this,e])},and(e){return ep(this,e)},transform(e){return bp(this,lp(e))},default(e){return mp(this,e)},prefault(e){return hp(this,e)},catch(e){return vp(this,e)},pipe(e){return bp(this,e)},readonly(){return Cp(this)},describe(e){let t=this.clone();return yc.add(t,{description:e}),t},meta(...e){if(e.length===0)return yc.get(this);let t=this.clone();return yc.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,\"description\",{get(){return yc.get(e)?.description},configurable:!0}),e)),Ip=f(`_ZodString`,(e,t)=>{Yr.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Pu(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,af(e,`_ZodString`,{regex(...e){return this.check(Nl(...e))},includes(...e){return this.check(Il(...e))},startsWith(...e){return this.check(Ll(...e))},endsWith(...e){return this.check(Rl(...e))},min(...e){return this.check(jl(...e))},max(...e){return this.check(Al(...e))},length(...e){return this.check(Ml(...e))},nonempty(...e){return this.check(jl(1,...e))},lowercase(e){return this.check(Pl(e))},uppercase(e){return this.check(Fl(e))},trim(){return this.check(Ul())},normalize(...e){return this.check(Hl(...e))},toLowerCase(){return this.check(Wl())},toUpperCase(){return this.check(Gl())},slugify(){return this.check(Kl())}})}),Lp=f(`ZodString`,(e,t)=>{Yr.init(e,t),Ip.init(e,t),e.email=t=>e.check(Cc(Rp,t)),e.url=t=>e.check(kc(Vp,t)),e.jwt=t=>e.check(Gc(rm,t)),e.emoji=t=>e.check(Ac(Hp,t)),e.guid=t=>e.check(wc(zp,t)),e.uuid=t=>e.check(Tc(Bp,t)),e.uuidv4=t=>e.check(Ec(Bp,t)),e.uuidv6=t=>e.check(Dc(Bp,t)),e.uuidv7=t=>e.check(Oc(Bp,t)),e.nanoid=t=>e.check(jc(Up,t)),e.guid=t=>e.check(wc(zp,t)),e.cuid=t=>e.check(Mc(Wp,t)),e.cuid2=t=>e.check(Nc(Gp,t)),e.ulid=t=>e.check(Pc(Kp,t)),e.base64=t=>e.check(Hc(em,t)),e.base64url=t=>e.check(Uc(tm,t)),e.xid=t=>e.check(Fc(qp,t)),e.ksuid=t=>e.check(Ic(Jp,t)),e.ipv4=t=>e.check(Lc(Yp,t)),e.ipv6=t=>e.check(Rc(Zp,t)),e.cidrv4=t=>e.check(Bc(Qp,t)),e.cidrv6=t=>e.check(Vc($p,t)),e.e164=t=>e.check(Wc(nm,t)),e.datetime=t=>e.check(z(t)),e.date=t=>e.check(Nd(t)),e.time=t=>e.check(Pd(t)),e.duration=t=>e.check(Fd(t))}),Z=f(`ZodStringFormat`,(e,t)=>{Xr.init(e,t),Ip.init(e,t)}),Rp=f(`ZodEmail`,(e,t)=>{$r.init(e,t),Z.init(e,t)}),zp=f(`ZodGUID`,(e,t)=>{Zr.init(e,t),Z.init(e,t)}),Bp=f(`ZodUUID`,(e,t)=>{Qr.init(e,t),Z.init(e,t)}),Vp=f(`ZodURL`,(e,t)=>{ei.init(e,t),Z.init(e,t)}),Hp=f(`ZodEmoji`,(e,t)=>{ti.init(e,t),Z.init(e,t)}),Up=f(`ZodNanoID`,(e,t)=>{ni.init(e,t),Z.init(e,t)}),Wp=f(`ZodCUID`,(e,t)=>{ri.init(e,t),Z.init(e,t)}),Gp=f(`ZodCUID2`,(e,t)=>{ii.init(e,t),Z.init(e,t)}),Kp=f(`ZodULID`,(e,t)=>{ai.init(e,t),Z.init(e,t)}),qp=f(`ZodXID`,(e,t)=>{oi.init(e,t),Z.init(e,t)}),Jp=f(`ZodKSUID`,(e,t)=>{si.init(e,t),Z.init(e,t)}),Yp=f(`ZodIPv4`,(e,t)=>{fi.init(e,t),Z.init(e,t)}),Xp=f(`ZodMAC`,(e,t)=>{mi.init(e,t),Z.init(e,t)}),Zp=f(`ZodIPv6`,(e,t)=>{pi.init(e,t),Z.init(e,t)}),Qp=f(`ZodCIDRv4`,(e,t)=>{hi.init(e,t),Z.init(e,t)}),$p=f(`ZodCIDRv6`,(e,t)=>{gi.init(e,t),Z.init(e,t)}),em=f(`ZodBase64`,(e,t)=>{_i.init(e,t),Z.init(e,t)}),tm=f(`ZodBase64URL`,(e,t)=>{vi.init(e,t),Z.init(e,t)}),nm=f(`ZodE164`,(e,t)=>{yi.init(e,t),Z.init(e,t)}),rm=f(`ZodJWT`,(e,t)=>{bi.init(e,t),Z.init(e,t)}),im=f(`ZodCustomStringFormat`,(e,t)=>{xi.init(e,t),Z.init(e,t)}),am=f(`ZodNumber`,(e,t)=>{Si.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Fu(e,t,n,r),af(e,`ZodNumber`,{gt(e,t){return this.check(bl(e,t))},gte(e,t){return this.check(xl(e,t))},min(e,t){return this.check(xl(e,t))},lt(e,t){return this.check(yl(e,t))},lte(e,t){return this.check(N(e,t))},max(e,t){return this.check(N(e,t))},int(e){return this.check(Pf(e))},safe(e){return this.check(Pf(e))},positive(e){return this.check(bl(0,e))},nonnegative(e){return this.check(xl(0,e))},negative(e){return this.check(yl(0,e))},nonpositive(e){return this.check(N(0,e))},multipleOf(e,t){return this.check(El(e,t))},step(e,t){return this.check(El(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null}),om=f(`ZodNumberFormat`,(e,t)=>{Ci.init(e,t),am.init(e,t)}),sm=f(`ZodBoolean`,(e,t)=>{wi.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Iu(e,t,n,r)}),cm=f(`ZodBigInt`,(e,t)=>{Ti.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Lu(e,t,n,r),e.gte=(t,n)=>e.check(xl(t,n)),e.min=(t,n)=>e.check(xl(t,n)),e.gt=(t,n)=>e.check(bl(t,n)),e.gte=(t,n)=>e.check(xl(t,n)),e.min=(t,n)=>e.check(xl(t,n)),e.lt=(t,n)=>e.check(yl(t,n)),e.lte=(t,n)=>e.check(N(t,n)),e.max=(t,n)=>e.check(N(t,n)),e.positive=t=>e.check(bl(BigInt(0),t)),e.negative=t=>e.check(yl(BigInt(0),t)),e.nonpositive=t=>e.check(N(BigInt(0),t)),e.nonnegative=t=>e.check(xl(BigInt(0),t)),e.multipleOf=(t,n)=>e.check(El(t,n));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null}),lm=f(`ZodBigIntFormat`,(e,t)=>{Ei.init(e,t),cm.init(e,t)}),um=f(`ZodSymbol`,(e,t)=>{Di.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ru(e,t,n,r)}),dm=f(`ZodUndefined`,(e,t)=>{Oi.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Bu(e,t,n,r)}),fm=f(`ZodNull`,(e,t)=>{ki.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zu(e,t,n,r)}),pm=f(`ZodAny`,(e,t)=>{Ai.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Uu(e,t,n,r)}),mm=f(`ZodUnknown`,(e,t)=>{ji.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Wu(e,t,n,r)}),hm=f(`ZodNever`,(e,t)=>{Mi.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Hu(e,t,n,r)}),gm=f(`ZodVoid`,(e,t)=>{Ni.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vu(e,t,n,r)}),_m=f(`ZodDate`,(e,t)=>{Pi.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Gu(e,t,n,r),e.min=(t,n)=>e.check(xl(t,n)),e.max=(t,n)=>e.check(N(t,n));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null}),vm=f(`ZodArray`,(e,t)=>{Fi.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>rd(e,t,n,r),e.element=t.element,af(e,`ZodArray`,{min(e,t){return this.check(jl(e,t))},nonempty(e){return this.check(jl(1,e))},max(e,t){return this.check(Al(e,t))},length(e,t){return this.check(Ml(e,t))},unwrap(){return this.element}})}),ym=f(`ZodObject`,(e,t)=>{Li.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>R(e,t,n,r),C(e,`shape`,()=>t.shape),af(e,`ZodObject`,{keyof(){return op(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:W()})},loose(){return this.clone({...this._zod.def,catchall:W()})},strict(){return this.clone({...this._zod.def,catchall:Kf()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return Oe(this,e)},safeExtend(e){return ke(this,e)},merge(e){return Ae(this,e)},pick(e){return Ee(this,e)},omit(e){return De(this,e)},partial(...e){return je(Mm,this,e[0])},required(...e){return Me(Lm,this,e[0])}})}),bm=f(`ZodUnion`,(e,t)=>{Ri.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>id(e,t,n,r),e.options=t.options}),xm=f(`ZodXor`,(e,t)=>{bm.init(e,t),zi.init(e,t),e._zod.processJSONSchema=(t,n,r)=>id(e,t,n,r),e.options=t.options}),Sm=f(`ZodDiscriminatedUnion`,(e,t)=>{bm.init(e,t),Bi.init(e,t)}),Cm=f(`ZodIntersection`,(e,t)=>{Vi.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ad(e,t,n,r)}),wm=f(`ZodTuple`,(e,t)=>{Hi.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>od(e,t,n,r),e.rest=t=>e.clone({...e._zod.def,rest:t})}),Tm=f(`ZodRecord`,(e,t)=>{j.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sd(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType}),Em=f(`ZodMap`,(e,t)=>{Ui.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>td(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(Ol(...t)),e.nonempty=t=>e.check(Ol(1,t)),e.max=(...t)=>e.check(Dl(...t)),e.size=(...t)=>e.check(kl(...t))}),Dm=f(`ZodSet`,(e,t)=>{Wi.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nd(e,t,n,r),e.min=(...t)=>e.check(Ol(...t)),e.nonempty=t=>e.check(Ol(1,t)),e.max=(...t)=>e.check(Dl(...t)),e.size=(...t)=>e.check(kl(...t))}),Om=f(`ZodEnum`,(e,t)=>{Gi.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ku(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Om({...t,checks:[],...E(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Om({...t,checks:[],...E(r),entries:i})}}),km=f(`ZodLiteral`,(e,t)=>{Ki.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qu(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,\"value\",{get(){if(t.values.length>1)throw Error(\"This schema contains multiple valid literal values. Use `.values` instead.\");return t.values[0]}})}),Am=f(`ZodFile`,(e,t)=>{qi.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Xu(e,t,n,r),e.min=(t,n)=>e.check(Ol(t,n)),e.max=(t,n)=>e.check(Dl(t,n)),e.mime=(t,n)=>e.check(Bl(Array.isArray(t)?t:[t],n))}),jm=f(`ZodTransform`,(e,t)=>{Ji.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ed(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new v(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Be(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(Be(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}}),Mm=f(`ZodOptional`,(e,t)=>{Yi.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>gd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Nm=f(`ZodExactOptional`,(e,t)=>{Xi.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>gd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Pm=f(`ZodNullable`,(e,t)=>{Zi.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>cd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Fm=f(`ZodDefault`,(e,t)=>{Qi.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ud(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),Im=f(`ZodPrefault`,(e,t)=>{$i.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>dd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Lm=f(`ZodNonOptional`,(e,t)=>{ea.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ld(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Rm=f(`ZodSuccess`,(e,t)=>{ta.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Zu(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),zm=f(`ZodCatch`,(e,t)=>{na.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),Bm=f(`ZodNaN`,(e,t)=>{ra.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ju(e,t,n,r)}),Vm=f(`ZodPipe`,(e,t)=>{ia.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>pd(e,t,n,r),e.in=t.in,e.out=t.out}),Hm=f(`ZodCodec`,(e,t)=>{Vm.init(e,t),aa.init(e,t)}),Um=f(`ZodPreprocess`,(e,t)=>{Vm.init(e,t),oa.init(e,t)}),Wm=f(`ZodReadonly`,(e,t)=>{sa.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>md(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Gm=f(`ZodTemplateLiteral`,(e,t)=>{ca.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Yu(e,t,n,r)}),Km=f(`ZodLazy`,(e,t)=>{da.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_d(e,t,n,r),e.unwrap=()=>e._zod.def.getter()}),qm=f(`ZodPromise`,(e,t)=>{ua.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>hd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Jm=f(`ZodFunction`,(e,t)=>{la.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$u(e,t,n,r)}),Ym=f(`ZodCustom`,(e,t)=>{fa.init(e,t),X.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Qu(e,t,n,r)}),Xm=yu,Zm=bu,Qm=(...e)=>xu({Codec:Hm,Boolean:sm,String:Lp},...e)}));function eh(e){p({customError:e})}function th(){return p().customError}var nh,rh,ih=t((()=>{Td(),nh={invalid_type:`invalid_type`,too_big:`too_big`,too_small:`too_small`,invalid_format:`invalid_format`,not_multiple_of:`not_multiple_of`,unrecognized_keys:`unrecognized_keys`,invalid_union:`invalid_union`,invalid_key:`invalid_key`,invalid_element:`invalid_element`,invalid_value:`invalid_value`,custom:`custom`},rh||={}}));function ah(e,t){let n=e.$schema;return n===`https://json-schema.org/draft/2020-12/schema`?`draft-2020-12`:n===`http://json-schema.org/draft-07/schema#`?`draft-7`:n===`http://json-schema.org/draft-04/schema#`?`draft-4`:t??`draft-2020-12`}function oh(e,t){if(!e.startsWith(`#`))throw Error(`External $ref is not supported, only local refs (#/...) are allowed`);let n=e.slice(1).split(`/`).filter(Boolean);if(n.length===0)return t.rootSchema;let r=t.version===`draft-2020-12`?`$defs`:`definitions`;if(n[0]===r){let r=n[1];if(!r||!t.defs[r])throw Error(`Reference not found: ${e}`);return t.defs[r]}throw Error(`Reference not found: ${e}`)}function sh(e,t){if(e.not!==void 0){if(typeof e.not==`object`&&Object.keys(e.not).length===0)return Q.never();throw Error(`not is not supported in Zod (except { not: {} } for never)`)}if(e.unevaluatedItems!==void 0)throw Error(`unevaluatedItems is not supported`);if(e.unevaluatedProperties!==void 0)throw Error(`unevaluatedProperties is not supported`);if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw Error(`Conditional schemas (if/then/else) are not supported`);if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw Error(`dependentSchemas and dependentRequired are not supported`);if(e.$ref){let n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return Q.lazy(()=>{if(!t.refs.has(n))throw Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let r=ch(oh(n,t),t);return t.refs.set(n,r),t.processing.delete(n),r}if(e.enum!==void 0){let n=e.enum;if(t.version===`openapi-3.0`&&e.nullable===!0&&n.length===1&&n[0]===null)return Q.null();if(n.length===0)return Q.never();if(n.length===1)return Q.literal(n[0]);if(n.every(e=>typeof e==`string`))return Q.enum(n);let r=n.map(e=>Q.literal(e));return r.length<2?r[0]:Q.union([r[0],r[1],...r.slice(2)])}if(e.const!==void 0)return Q.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(n=>sh({...e,type:n},t));return r.length===0?Q.never():r.length===1?r[0]:Q.union(r)}if(!n)return Q.any();let r;switch(n){case`string`:{let t=Q.string();if(e.format){let n=e.format;n===`email`?t=t.check(Q.email()):n===`uri`||n===`uri-reference`?t=t.check(Q.url()):n===`uuid`||n===`guid`?t=t.check(Q.uuid()):n===`date-time`?t=t.check(Q.iso.datetime()):n===`date`?t=t.check(Q.iso.date()):n===`time`?t=t.check(Q.iso.time()):n===`duration`?t=t.check(Q.iso.duration()):n===`ipv4`?t=t.check(Q.ipv4()):n===`ipv6`?t=t.check(Q.ipv6()):n===`mac`?t=t.check(Q.mac()):n===`cidr`?t=t.check(Q.cidrv4()):n===`cidr-v6`?t=t.check(Q.cidrv6()):n===`base64`?t=t.check(Q.base64()):n===`base64url`?t=t.check(Q.base64url()):n===`e164`?t=t.check(Q.e164()):n===`jwt`?t=t.check(Q.jwt()):n===`emoji`?t=t.check(Q.emoji()):n===`nanoid`?t=t.check(Q.nanoid()):n===`cuid`?t=t.check(Q.cuid()):n===`cuid2`?t=t.check(Q.cuid2()):n===`ulid`?t=t.check(Q.ulid()):n===`xid`?t=t.check(Q.xid()):n===`ksuid`&&(t=t.check(Q.ksuid()))}typeof e.minLength==`number`&&(t=t.min(e.minLength)),typeof e.maxLength==`number`&&(t=t.max(e.maxLength)),e.pattern&&(t=t.regex(new RegExp(e.pattern))),r=t;break}case`number`:case`integer`:{let t=n===`integer`?Q.number().int():Q.number();typeof e.minimum==`number`&&(t=t.min(e.minimum)),typeof e.maximum==`number`&&(t=t.max(e.maximum)),typeof e.exclusiveMinimum==`number`?t=t.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum==`number`&&(t=t.gt(e.minimum)),typeof e.exclusiveMaximum==`number`?t=t.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum==`number`&&(t=t.lt(e.maximum)),typeof e.multipleOf==`number`&&(t=t.multipleOf(e.multipleOf)),r=t;break}case`boolean`:r=Q.boolean();break;case`null`:r=Q.null();break;case`object`:{let n={},i=e.properties||{},a=new Set(e.required||[]);for(let[e,r]of Object.entries(i)){let i=ch(r,t);n[e]=a.has(e)?i:i.optional()}if(e.propertyNames){let i=ch(e.propertyNames,t),a=e.additionalProperties&&typeof e.additionalProperties==`object`?ch(e.additionalProperties,t):Q.any();if(Object.keys(n).length===0){r=Q.record(i,a);break}let o=Q.object(n).passthrough(),s=Q.looseRecord(i,a);r=Q.intersection(o,s);break}if(e.patternProperties){let i=e.patternProperties,a=Object.keys(i),o=[];for(let e of a){let n=ch(i[e],t),r=Q.string().regex(new RegExp(e));o.push(Q.looseRecord(r,n))}let s=[];if(Object.keys(n).length>0&&s.push(Q.object(n).passthrough()),s.push(...o),s.length===0)r=Q.object({}).passthrough();else if(s.length===1)r=s[0];else{let e=Q.intersection(s[0],s[1]);for(let t=2;t<s.length;t++)e=Q.intersection(e,s[t]);r=e}break}let o=Q.object(n);r=e.additionalProperties===!1?o.strict():typeof e.additionalProperties==`object`?o.catchall(ch(e.additionalProperties,t)):o.passthrough();break}case`array`:{let n=e.prefixItems,i=e.items;if(n&&Array.isArray(n)){let a=n.map(e=>ch(e,t)),o=i&&typeof i==`object`&&!Array.isArray(i)?ch(i,t):void 0;r=o?Q.tuple(a).rest(o):Q.tuple(a),typeof e.minItems==`number`&&(r=r.check(Q.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check(Q.maxLength(e.maxItems)))}else if(Array.isArray(i)){let n=i.map(e=>ch(e,t)),a=e.additionalItems&&typeof e.additionalItems==`object`?ch(e.additionalItems,t):void 0;r=a?Q.tuple(n).rest(a):Q.tuple(n),typeof e.minItems==`number`&&(r=r.check(Q.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check(Q.maxLength(e.maxItems)))}else if(i!==void 0){let n=ch(i,t),a=Q.array(n);typeof e.minItems==`number`&&(a=a.min(e.minItems)),typeof e.maxItems==`number`&&(a=a.max(e.maxItems)),r=a}else r=Q.array(Q.any());break}default:throw Error(`Unsupported type: ${n}`)}return r}function ch(e,t){if(typeof e==`boolean`)return e?Q.any():Q.never();let n=sh(e,t),r=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let i=e.anyOf.map(e=>ch(e,t)),a=Q.union(i);n=r?Q.intersection(n,a):a}if(e.oneOf&&Array.isArray(e.oneOf)){let i=e.oneOf.map(e=>ch(e,t)),a=Q.xor(i);n=r?Q.intersection(n,a):a}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=r?n:Q.any();else{let i=r?n:ch(e.allOf[0],t),a=+!r;for(let n=a;n<e.allOf.length;n++)i=Q.intersection(i,ch(e.allOf[n],t));n=i}e.nullable===!0&&t.version===`openapi-3.0`&&(n=Q.nullable(n)),e.readOnly===!0&&(n=Q.readonly(n)),e.default!==void 0&&(n=n.default(e.default));let i={};for(let t of[`$id`,`id`,`$comment`,`$anchor`,`$vocabulary`,`$dynamicRef`,`$dynamicAnchor`])t in e&&(i[t]=e[t]);for(let t of[`contentEncoding`,`contentMediaType`,`contentSchema`])t in e&&(i[t]=e[t]);for(let t of Object.keys(e))uh.has(t)||(i[t]=e[t]);return Object.keys(i).length>0&&t.registry.add(n,i),e.description&&(n=n.describe(e.description)),n}function lh(e,t){if(typeof e==`boolean`)return e?Q.any():Q.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw Error(`fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas`)}let r={version:ah(n,t?.defaultTarget),defs:n.$defs||n.definitions||{},refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??yc};return ch(n,r)}var Q,uh,dh=t((()=>{bc(),jd(),Bd(),$m(),Q={...rf,...Ad,iso:Md},uh=new Set(`$schema.$ref.$defs.definitions.$id.id.$comment.$anchor.$vocabulary.$dynamicRef.$dynamicAnchor.type.enum.const.anyOf.oneOf.allOf.not.properties.required.additionalProperties.patternProperties.propertyNames.minProperties.maxProperties.items.prefixItems.additionalItems.minItems.maxItems.uniqueItems.contains.minContains.maxContains.minLength.maxLength.pattern.format.minimum.maximum.exclusiveMinimum.exclusiveMaximum.multipleOf.description.default.contentEncoding.contentMediaType.contentSchema.unevaluatedItems.unevaluatedProperties.if.then.else.dependentSchemas.dependentRequired.nullable.readOnly`.split(`.`))})),fh=r({bigint:()=>gh,boolean:()=>hh,date:()=>_h,number:()=>mh,string:()=>ph});function ph(e){return Sc(Lp,e)}function mh(e){return Zc(am,e)}function hh(e){return il(sm,e)}function gh(e){return ol(cm,e)}function _h(e){return _l(_m,e)}var vh=t((()=>{Td(),$m()})),yh=r({$brand:()=>g,$input:()=>_c,$output:()=>gc,NEVER:()=>h,TimePrecision:()=>Cu,ZodAny:()=>pm,ZodArray:()=>vm,ZodBase64:()=>em,ZodBase64URL:()=>tm,ZodBigInt:()=>cm,ZodBigIntFormat:()=>lm,ZodBoolean:()=>sm,ZodCIDRv4:()=>Qp,ZodCIDRv6:()=>$p,ZodCUID:()=>Wp,ZodCUID2:()=>Gp,ZodCatch:()=>zm,ZodCodec:()=>Hm,ZodCustom:()=>Ym,ZodCustomStringFormat:()=>im,ZodDate:()=>_m,ZodDefault:()=>Fm,ZodDiscriminatedUnion:()=>Sm,ZodE164:()=>nm,ZodEmail:()=>Rp,ZodEmoji:()=>Hp,ZodEnum:()=>Om,ZodError:()=>Hd,ZodExactOptional:()=>Nm,ZodFile:()=>Am,ZodFirstPartyTypeKind:()=>rh,ZodFunction:()=>Jm,ZodGUID:()=>zp,ZodIPv4:()=>Yp,ZodIPv6:()=>Zp,ZodISODate:()=>Ld,ZodISODateTime:()=>Id,ZodISODuration:()=>zd,ZodISOTime:()=>Rd,ZodIntersection:()=>Cm,ZodIssueCode:()=>nh,ZodJWT:()=>rm,ZodKSUID:()=>Jp,ZodLazy:()=>Km,ZodLiteral:()=>km,ZodMAC:()=>Xp,ZodMap:()=>Em,ZodNaN:()=>Bm,ZodNanoID:()=>Up,ZodNever:()=>hm,ZodNonOptional:()=>Lm,ZodNull:()=>fm,ZodNullable:()=>Pm,ZodNumber:()=>am,ZodNumberFormat:()=>om,ZodObject:()=>ym,ZodOptional:()=>Mm,ZodPipe:()=>Vm,ZodPrefault:()=>Im,ZodPreprocess:()=>Um,ZodPromise:()=>qm,ZodReadonly:()=>Wm,ZodRealError:()=>Ud,ZodRecord:()=>Tm,ZodSet:()=>Dm,ZodString:()=>Lp,ZodStringFormat:()=>Z,ZodSuccess:()=>Rm,ZodSymbol:()=>um,ZodTemplateLiteral:()=>Gm,ZodTransform:()=>jm,ZodTuple:()=>wm,ZodType:()=>X,ZodULID:()=>Kp,ZodURL:()=>Vp,ZodUUID:()=>Bp,ZodUndefined:()=>dm,ZodUnion:()=>bm,ZodUnknown:()=>mm,ZodVoid:()=>gm,ZodXID:()=>qp,ZodXor:()=>xm,_ZodString:()=>Ip,_default:()=>mp,_function:()=>Dp,any:()=>Gf,array:()=>G,base64:()=>Ef,base64url:()=>Df,bigint:()=>zf,boolean:()=>U,catch:()=>vp,check:()=>Op,cidrv4:()=>wf,cidrv6:()=>Tf,clone:()=>Ce,codec:()=>xp,coerce:()=>fh,config:()=>p,core:()=>wd,cuid:()=>gf,cuid2:()=>_f,custom:()=>kp,date:()=>Jf,decode:()=>Yd,decodeAsync:()=>Zd,describe:()=>Xm,discriminatedUnion:()=>$f,e164:()=>Of,email:()=>of,emoji:()=>mf,encode:()=>Jd,encodeAsync:()=>Xd,endsWith:()=>Rl,enum:()=>op,exactOptional:()=>dp,file:()=>cp,flattenError:()=>rt,float32:()=>Ff,float64:()=>If,formatError:()=>it,fromJSONSchema:()=>lh,function:()=>Dp,getErrorMap:()=>th,globalRegistry:()=>yc,gt:()=>bl,gte:()=>xl,guid:()=>sf,hash:()=>Nf,hex:()=>Mf,hostname:()=>jf,httpUrl:()=>pf,includes:()=>Il,instanceof:()=>Mp,int:()=>Pf,int32:()=>Lf,int64:()=>Bf,intersection:()=>ep,invertCodec:()=>Sp,ipv4:()=>xf,ipv6:()=>Cf,iso:()=>Md,json:()=>Np,jwt:()=>kf,keyof:()=>Yf,ksuid:()=>bf,lazy:()=>Tp,length:()=>Ml,literal:()=>Y,locales:()=>fc,looseObject:()=>Zf,looseRecord:()=>rp,lowercase:()=>Pl,lt:()=>yl,lte:()=>N,mac:()=>Sf,map:()=>ip,maxLength:()=>Al,maxSize:()=>Dl,meta:()=>Zm,mime:()=>Bl,minLength:()=>jl,minSize:()=>Ol,multipleOf:()=>El,nan:()=>yp,nanoid:()=>hf,nativeEnum:()=>sp,negative:()=>Cl,never:()=>Kf,nonnegative:()=>Tl,nonoptional:()=>gp,nonpositive:()=>wl,normalize:()=>Hl,null:()=>Wf,nullable:()=>fp,nullish:()=>pp,number:()=>H,object:()=>K,optional:()=>up,overwrite:()=>Vl,parse:()=>Gd,parseAsync:()=>B,partialRecord:()=>np,pipe:()=>bp,positive:()=>Sl,prefault:()=>hp,preprocess:()=>Pp,prettifyError:()=>st,promise:()=>Ep,property:()=>zl,readonly:()=>Cp,record:()=>J,refine:()=>Ap,regex:()=>Nl,regexes:()=>Lt,registry:()=>mc,safeDecode:()=>$d,safeDecodeAsync:()=>tf,safeEncode:()=>Qd,safeEncodeAsync:()=>ef,safeParse:()=>Kd,safeParseAsync:()=>qd,set:()=>ap,setErrorMap:()=>eh,size:()=>kl,slugify:()=>Kl,startsWith:()=>Ll,strictObject:()=>Xf,string:()=>V,stringFormat:()=>Af,stringbool:()=>Qm,success:()=>_p,superRefine:()=>jp,symbol:()=>Hf,templateLiteral:()=>wp,toJSONSchema:()=>Mu,toLowerCase:()=>Wl,toUpperCase:()=>Gl,transform:()=>lp,treeifyError:()=>at,trim:()=>Ul,tuple:()=>tp,uint32:()=>Rf,uint64:()=>Vf,ulid:()=>vf,undefined:()=>Uf,union:()=>q,unknown:()=>W,uppercase:()=>Fl,url:()=>ff,util:()=>ee,uuid:()=>cf,uuidv4:()=>lf,uuidv6:()=>uf,uuidv7:()=>df,void:()=>qf,xid:()=>yf,xor:()=>Qf}),bh=t((()=>{Td(),$m(),jd(),Wd(),nf(),ih(),Wa(),yd(),dh(),pc(),Bd(),vh(),p(Ha())})),xh,Sh=t((()=>{bh(),bh(),xh=yh})),Ch=r({$brand:()=>g,$input:()=>_c,$output:()=>gc,NEVER:()=>h,TimePrecision:()=>Cu,ZodAny:()=>pm,ZodArray:()=>vm,ZodBase64:()=>em,ZodBase64URL:()=>tm,ZodBigInt:()=>cm,ZodBigIntFormat:()=>lm,ZodBoolean:()=>sm,ZodCIDRv4:()=>Qp,ZodCIDRv6:()=>$p,ZodCUID:()=>Wp,ZodCUID2:()=>Gp,ZodCatch:()=>zm,ZodCodec:()=>Hm,ZodCustom:()=>Ym,ZodCustomStringFormat:()=>im,ZodDate:()=>_m,ZodDefault:()=>Fm,ZodDiscriminatedUnion:()=>Sm,ZodE164:()=>nm,ZodEmail:()=>Rp,ZodEmoji:()=>Hp,ZodEnum:()=>Om,ZodError:()=>Hd,ZodExactOptional:()=>Nm,ZodFile:()=>Am,ZodFirstPartyTypeKind:()=>rh,ZodFunction:()=>Jm,ZodGUID:()=>zp,ZodIPv4:()=>Yp,ZodIPv6:()=>Zp,ZodISODate:()=>Ld,ZodISODateTime:()=>Id,ZodISODuration:()=>zd,ZodISOTime:()=>Rd,ZodIntersection:()=>Cm,ZodIssueCode:()=>nh,ZodJWT:()=>rm,ZodKSUID:()=>Jp,ZodLazy:()=>Km,ZodLiteral:()=>km,ZodMAC:()=>Xp,ZodMap:()=>Em,ZodNaN:()=>Bm,ZodNanoID:()=>Up,ZodNever:()=>hm,ZodNonOptional:()=>Lm,ZodNull:()=>fm,ZodNullable:()=>Pm,ZodNumber:()=>am,ZodNumberFormat:()=>om,ZodObject:()=>ym,ZodOptional:()=>Mm,ZodPipe:()=>Vm,ZodPrefault:()=>Im,ZodPreprocess:()=>Um,ZodPromise:()=>qm,ZodReadonly:()=>Wm,ZodRealError:()=>Ud,ZodRecord:()=>Tm,ZodSet:()=>Dm,ZodString:()=>Lp,ZodStringFormat:()=>Z,ZodSuccess:()=>Rm,ZodSymbol:()=>um,ZodTemplateLiteral:()=>Gm,ZodTransform:()=>jm,ZodTuple:()=>wm,ZodType:()=>X,ZodULID:()=>Kp,ZodURL:()=>Vp,ZodUUID:()=>Bp,ZodUndefined:()=>dm,ZodUnion:()=>bm,ZodUnknown:()=>mm,ZodVoid:()=>gm,ZodXID:()=>qp,ZodXor:()=>xm,_ZodString:()=>Ip,_default:()=>mp,_function:()=>Dp,any:()=>Gf,array:()=>G,base64:()=>Ef,base64url:()=>Df,bigint:()=>zf,boolean:()=>U,catch:()=>vp,check:()=>Op,cidrv4:()=>wf,cidrv6:()=>Tf,clone:()=>Ce,codec:()=>xp,coerce:()=>fh,config:()=>p,core:()=>wd,cuid:()=>gf,cuid2:()=>_f,custom:()=>kp,date:()=>Jf,decode:()=>Yd,decodeAsync:()=>Zd,default:()=>wh,describe:()=>Xm,discriminatedUnion:()=>$f,e164:()=>Of,email:()=>of,emoji:()=>mf,encode:()=>Jd,encodeAsync:()=>Xd,endsWith:()=>Rl,enum:()=>op,exactOptional:()=>dp,file:()=>cp,flattenError:()=>rt,float32:()=>Ff,float64:()=>If,formatError:()=>it,fromJSONSchema:()=>lh,function:()=>Dp,getErrorMap:()=>th,globalRegistry:()=>yc,gt:()=>bl,gte:()=>xl,guid:()=>sf,hash:()=>Nf,hex:()=>Mf,hostname:()=>jf,httpUrl:()=>pf,includes:()=>Il,instanceof:()=>Mp,int:()=>Pf,int32:()=>Lf,int64:()=>Bf,intersection:()=>ep,invertCodec:()=>Sp,ipv4:()=>xf,ipv6:()=>Cf,iso:()=>Md,json:()=>Np,jwt:()=>kf,keyof:()=>Yf,ksuid:()=>bf,lazy:()=>Tp,length:()=>Ml,literal:()=>Y,locales:()=>fc,looseObject:()=>Zf,looseRecord:()=>rp,lowercase:()=>Pl,lt:()=>yl,lte:()=>N,mac:()=>Sf,map:()=>ip,maxLength:()=>Al,maxSize:()=>Dl,meta:()=>Zm,mime:()=>Bl,minLength:()=>jl,minSize:()=>Ol,multipleOf:()=>El,nan:()=>yp,nanoid:()=>hf,nativeEnum:()=>sp,negative:()=>Cl,never:()=>Kf,nonnegative:()=>Tl,nonoptional:()=>gp,nonpositive:()=>wl,normalize:()=>Hl,null:()=>Wf,nullable:()=>fp,nullish:()=>pp,number:()=>H,object:()=>K,optional:()=>up,overwrite:()=>Vl,parse:()=>Gd,parseAsync:()=>B,partialRecord:()=>np,pipe:()=>bp,positive:()=>Sl,prefault:()=>hp,preprocess:()=>Pp,prettifyError:()=>st,promise:()=>Ep,property:()=>zl,readonly:()=>Cp,record:()=>J,refine:()=>Ap,regex:()=>Nl,regexes:()=>Lt,registry:()=>mc,safeDecode:()=>$d,safeDecodeAsync:()=>tf,safeEncode:()=>Qd,safeEncodeAsync:()=>ef,safeParse:()=>Kd,safeParseAsync:()=>qd,set:()=>ap,setErrorMap:()=>eh,size:()=>kl,slugify:()=>Kl,startsWith:()=>Ll,strictObject:()=>Xf,string:()=>V,stringFormat:()=>Af,stringbool:()=>Qm,success:()=>_p,superRefine:()=>jp,symbol:()=>Hf,templateLiteral:()=>wp,toJSONSchema:()=>Mu,toLowerCase:()=>Wl,toUpperCase:()=>Gl,transform:()=>lp,treeifyError:()=>at,trim:()=>Ul,tuple:()=>tp,uint32:()=>Rf,uint64:()=>Vf,ulid:()=>vf,undefined:()=>Uf,union:()=>q,unknown:()=>W,uppercase:()=>Fl,url:()=>ff,util:()=>ee,uuid:()=>cf,uuidv4:()=>lf,uuidv6:()=>uf,uuidv7:()=>df,void:()=>qf,xid:()=>yf,xor:()=>Qf,z:()=>yh}),wh,Th=t((()=>{Sh(),Sh(),wh=xh}));Th();var Eh=`io.modelcontextprotocol/related-task`,Dh=kp(e=>e!==null&&(typeof e==`object`||typeof e==`function`)),Oh=q([V(),H().int()]),kh=V();Zf({ttl:H().optional(),pollInterval:H().optional()});var Ah=K({ttl:H().optional()}),jh=K({taskId:V()}),Mh=Zf({progressToken:Oh.optional(),[Eh]:jh.optional()}),Nh=K({_meta:Mh.optional()}),Ph=Nh.extend({task:Ah.optional()}),Fh=e=>Ph.safeParse(e).success,Ih=K({method:V(),params:Nh.loose().optional()}),Lh=K({_meta:Mh.optional()}),Rh=K({method:V(),params:Lh.loose().optional()}),zh=Zf({_meta:Mh.optional()}),Bh=q([V(),H().int()]),Vh=K({jsonrpc:Y(`2.0`),id:Bh,...Ih.shape}).strict(),Hh=e=>Vh.safeParse(e).success,Uh=K({jsonrpc:Y(`2.0`),...Rh.shape}).strict(),Wh=e=>Uh.safeParse(e).success,Gh=K({jsonrpc:Y(`2.0`),id:Bh,result:zh}).strict(),Kh=e=>Gh.safeParse(e).success,qh;(function(e){e[e.ConnectionClosed=-32e3]=`ConnectionClosed`,e[e.RequestTimeout=-32001]=`RequestTimeout`,e[e.ParseError=-32700]=`ParseError`,e[e.InvalidRequest=-32600]=`InvalidRequest`,e[e.MethodNotFound=-32601]=`MethodNotFound`,e[e.InvalidParams=-32602]=`InvalidParams`,e[e.InternalError=-32603]=`InternalError`,e[e.UrlElicitationRequired=-32042]=`UrlElicitationRequired`})(qh||={});var Jh=K({jsonrpc:Y(`2.0`),id:Bh.optional(),error:K({code:H().int(),message:V(),data:W().optional()})}).strict(),Yh=e=>Jh.safeParse(e).success,Xh=q([Vh,Uh,Gh,Jh]);q([Gh,Jh]);var Zh=zh.strict(),Qh=Lh.extend({requestId:Bh.optional(),reason:V().optional()}),$h=Rh.extend({method:Y(`notifications/cancelled`),params:Qh}),eg=K({icons:G(K({src:V(),mimeType:V().optional(),sizes:G(V()).optional(),theme:op([`light`,`dark`]).optional()})).optional()}),tg=K({name:V(),title:V().optional()}),ng=tg.extend({...tg.shape,...eg.shape,version:V(),websiteUrl:V().optional(),description:V().optional()}),rg=Pp(e=>e&&typeof e==`object`&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,ep(K({form:ep(K({applyDefaults:U().optional()}),J(V(),W())).optional(),url:Dh.optional()}),J(V(),W()).optional())),ig=Zf({list:Dh.optional(),cancel:Dh.optional(),requests:Zf({sampling:Zf({createMessage:Dh.optional()}).optional(),elicitation:Zf({create:Dh.optional()}).optional()}).optional()}),ag=Zf({list:Dh.optional(),cancel:Dh.optional(),requests:Zf({tools:Zf({call:Dh.optional()}).optional()}).optional()}),og=K({experimental:J(V(),Dh).optional(),sampling:K({context:Dh.optional(),tools:Dh.optional()}).optional(),elicitation:rg.optional(),roots:K({listChanged:U().optional()}).optional(),tasks:ig.optional(),extensions:J(V(),Dh).optional()}),sg=Nh.extend({protocolVersion:V(),capabilities:og,clientInfo:ng}),cg=Ih.extend({method:Y(`initialize`),params:sg}),lg=K({experimental:J(V(),Dh).optional(),logging:Dh.optional(),completions:Dh.optional(),prompts:K({listChanged:U().optional()}).optional(),resources:K({subscribe:U().optional(),listChanged:U().optional()}).optional(),tools:K({listChanged:U().optional()}).optional(),tasks:ag.optional(),extensions:J(V(),Dh).optional()}),ug=zh.extend({protocolVersion:V(),capabilities:lg,serverInfo:ng,instructions:V().optional()}),dg=Rh.extend({method:Y(`notifications/initialized`),params:Lh.optional()}),fg=Ih.extend({method:Y(`ping`),params:Nh.optional()}),pg=K({progress:H(),total:up(H()),message:up(V())}),mg=K({...Lh.shape,...pg.shape,progressToken:Oh}),hg=Rh.extend({method:Y(`notifications/progress`),params:mg}),gg=Nh.extend({cursor:kh.optional()}),_g=Ih.extend({params:gg.optional()}),vg=zh.extend({nextCursor:kh.optional()}),yg=op([`working`,`input_required`,`completed`,`failed`,`cancelled`]),bg=K({taskId:V(),status:yg,ttl:q([H(),Wf()]),createdAt:V(),lastUpdatedAt:V(),pollInterval:up(H()),statusMessage:up(V())}),xg=zh.extend({task:bg}),Sg=Lh.merge(bg),Cg=Rh.extend({method:Y(`notifications/tasks/status`),params:Sg}),wg=Ih.extend({method:Y(`tasks/get`),params:Nh.extend({taskId:V()})}),Tg=zh.merge(bg),Eg=Ih.extend({method:Y(`tasks/result`),params:Nh.extend({taskId:V()})});zh.loose();var Dg=_g.extend({method:Y(`tasks/list`)}),Og=vg.extend({tasks:G(bg)}),kg=Ih.extend({method:Y(`tasks/cancel`),params:Nh.extend({taskId:V()})}),Ag=zh.merge(bg),jg=K({uri:V(),mimeType:up(V()),_meta:J(V(),W()).optional()}),Mg=jg.extend({text:V()}),Ng=V().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:`Invalid Base64 string`}),Pg=jg.extend({blob:Ng}),Fg=op([`user`,`assistant`]),Ig=K({audience:G(Fg).optional(),priority:H().min(0).max(1).optional(),lastModified:z({offset:!0}).optional()}),Lg=K({...tg.shape,...eg.shape,uri:V(),description:up(V()),mimeType:up(V()),size:up(H()),annotations:Ig.optional(),_meta:up(Zf({}))}),Rg=K({...tg.shape,...eg.shape,uriTemplate:V(),description:up(V()),mimeType:up(V()),annotations:Ig.optional(),_meta:up(Zf({}))}),zg=_g.extend({method:Y(`resources/list`)}),Bg=vg.extend({resources:G(Lg)}),Vg=_g.extend({method:Y(`resources/templates/list`)}),Hg=vg.extend({resourceTemplates:G(Rg)}),Ug=Nh.extend({uri:V()}),Wg=Ug,Gg=Ih.extend({method:Y(`resources/read`),params:Wg}),Kg=zh.extend({contents:G(q([Mg,Pg]))}),qg=Rh.extend({method:Y(`notifications/resources/list_changed`),params:Lh.optional()}),Jg=Ug,Yg=Ih.extend({method:Y(`resources/subscribe`),params:Jg}),Xg=Ug,Zg=Ih.extend({method:Y(`resources/unsubscribe`),params:Xg}),Qg=Lh.extend({uri:V()}),$g=Rh.extend({method:Y(`notifications/resources/updated`),params:Qg}),e_=K({name:V(),description:up(V()),required:up(U())}),t_=K({...tg.shape,...eg.shape,description:up(V()),arguments:up(G(e_)),_meta:up(Zf({}))}),n_=_g.extend({method:Y(`prompts/list`)}),r_=vg.extend({prompts:G(t_)}),i_=Nh.extend({name:V(),arguments:J(V(),V()).optional()}),a_=Ih.extend({method:Y(`prompts/get`),params:i_}),o_=K({type:Y(`text`),text:V(),annotations:Ig.optional(),_meta:J(V(),W()).optional()}),s_=K({type:Y(`image`),data:Ng,mimeType:V(),annotations:Ig.optional(),_meta:J(V(),W()).optional()}),c_=K({type:Y(`audio`),data:Ng,mimeType:V(),annotations:Ig.optional(),_meta:J(V(),W()).optional()}),l_=K({type:Y(`tool_use`),name:V(),id:V(),input:J(V(),W()),_meta:J(V(),W()).optional()}),u_=K({type:Y(`resource`),resource:q([Mg,Pg]),annotations:Ig.optional(),_meta:J(V(),W()).optional()}),d_=Lg.extend({type:Y(`resource_link`)}),f_=q([o_,s_,c_,d_,u_]),p_=K({role:Fg,content:f_}),m_=zh.extend({description:V().optional(),messages:G(p_)}),h_=Rh.extend({method:Y(`notifications/prompts/list_changed`),params:Lh.optional()}),g_=K({title:V().optional(),readOnlyHint:U().optional(),destructiveHint:U().optional(),idempotentHint:U().optional(),openWorldHint:U().optional()}),__=K({taskSupport:op([`required`,`optional`,`forbidden`]).optional()}),v_=K({...tg.shape,...eg.shape,description:V().optional(),inputSchema:K({type:Y(`object`),properties:J(V(),Dh).optional(),required:G(V()).optional()}).catchall(W()),outputSchema:K({type:Y(`object`),properties:J(V(),Dh).optional(),required:G(V()).optional()}).catchall(W()).optional(),annotations:g_.optional(),execution:__.optional(),_meta:J(V(),W()).optional()}),y_=_g.extend({method:Y(`tools/list`)}),b_=vg.extend({tools:G(v_)}),x_=zh.extend({content:G(f_).default([]),structuredContent:J(V(),W()).optional(),isError:U().optional()});x_.or(zh.extend({toolResult:W()}));var S_=Ph.extend({name:V(),arguments:J(V(),W()).optional()}),C_=Ih.extend({method:Y(`tools/call`),params:S_}),w_=Rh.extend({method:Y(`notifications/tools/list_changed`),params:Lh.optional()});K({autoRefresh:U().default(!0),debounceMs:H().int().nonnegative().default(300)});var T_=op([`debug`,`info`,`notice`,`warning`,`error`,`critical`,`alert`,`emergency`]),E_=Nh.extend({level:T_}),D_=Ih.extend({method:Y(`logging/setLevel`),params:E_}),O_=Lh.extend({level:T_,logger:V().optional(),data:W()}),k_=Rh.extend({method:Y(`notifications/message`),params:O_}),A_=K({hints:G(K({name:V().optional()})).optional(),costPriority:H().min(0).max(1).optional(),speedPriority:H().min(0).max(1).optional(),intelligencePriority:H().min(0).max(1).optional()}),j_=K({mode:op([`auto`,`required`,`none`]).optional()}),M_=K({type:Y(`tool_result`),toolUseId:V().describe(`The unique identifier for the corresponding tool call.`),content:G(f_).default([]),structuredContent:K({}).loose().optional(),isError:U().optional(),_meta:J(V(),W()).optional()}),N_=$f(`type`,[o_,s_,c_]),P_=$f(`type`,[o_,s_,c_,l_,M_]),F_=K({role:Fg,content:q([P_,G(P_)]),_meta:J(V(),W()).optional()}),I_=Ph.extend({messages:G(F_),modelPreferences:A_.optional(),systemPrompt:V().optional(),includeContext:op([`none`,`thisServer`,`allServers`]).optional(),temperature:H().optional(),maxTokens:H().int(),stopSequences:G(V()).optional(),metadata:Dh.optional(),tools:G(v_).optional(),toolChoice:j_.optional()}),L_=Ih.extend({method:Y(`sampling/createMessage`),params:I_}),R_=zh.extend({model:V(),stopReason:up(op([`endTurn`,`stopSequence`,`maxTokens`]).or(V())),role:Fg,content:N_}),z_=zh.extend({model:V(),stopReason:up(op([`endTurn`,`stopSequence`,`maxTokens`,`toolUse`]).or(V())),role:Fg,content:q([P_,G(P_)])}),B_=K({type:Y(`boolean`),title:V().optional(),description:V().optional(),default:U().optional()}),V_=K({type:Y(`string`),title:V().optional(),description:V().optional(),minLength:H().optional(),maxLength:H().optional(),format:op([`email`,`uri`,`date`,`date-time`]).optional(),default:V().optional()}),H_=K({type:op([`number`,`integer`]),title:V().optional(),description:V().optional(),minimum:H().optional(),maximum:H().optional(),default:H().optional()}),U_=K({type:Y(`string`),title:V().optional(),description:V().optional(),enum:G(V()),default:V().optional()}),W_=K({type:Y(`string`),title:V().optional(),description:V().optional(),oneOf:G(K({const:V(),title:V()})),default:V().optional()}),G_=q([q([K({type:Y(`string`),title:V().optional(),description:V().optional(),enum:G(V()),enumNames:G(V()).optional(),default:V().optional()}),q([U_,W_]),q([K({type:Y(`array`),title:V().optional(),description:V().optional(),minItems:H().optional(),maxItems:H().optional(),items:K({type:Y(`string`),enum:G(V())}),default:G(V()).optional()}),K({type:Y(`array`),title:V().optional(),description:V().optional(),minItems:H().optional(),maxItems:H().optional(),items:K({anyOf:G(K({const:V(),title:V()}))}),default:G(V()).optional()})])]),B_,V_,H_]),K_=q([Ph.extend({mode:Y(`form`).optional(),message:V(),requestedSchema:K({type:Y(`object`),properties:J(V(),G_),required:G(V()).optional()})}),Ph.extend({mode:Y(`url`),message:V(),elicitationId:V(),url:V().url()})]),q_=Ih.extend({method:Y(`elicitation/create`),params:K_}),J_=Lh.extend({elicitationId:V()}),Y_=Rh.extend({method:Y(`notifications/elicitation/complete`),params:J_}),X_=zh.extend({action:op([`accept`,`decline`,`cancel`]),content:Pp(e=>e===null?void 0:e,J(V(),q([V(),H(),U(),G(V())])).optional())}),Z_=K({type:Y(`ref/resource`),uri:V()}),Q_=K({type:Y(`ref/prompt`),name:V()}),$_=Nh.extend({ref:q([Q_,Z_]),argument:K({name:V(),value:V()}),context:K({arguments:J(V(),V()).optional()}).optional()}),ev=Ih.extend({method:Y(`completion/complete`),params:$_}),tv=zh.extend({completion:Zf({values:G(V()).max(100),total:up(H().int()),hasMore:up(U())})}),nv=K({uri:V().startsWith(`file://`),name:V().optional(),_meta:J(V(),W()).optional()}),rv=Ih.extend({method:Y(`roots/list`),params:Nh.optional()}),iv=zh.extend({roots:G(nv)}),av=Rh.extend({method:Y(`notifications/roots/list_changed`),params:Lh.optional()});q([fg,cg,ev,D_,a_,n_,zg,Vg,Gg,Yg,Zg,C_,y_,wg,Eg,Dg,kg]),q([$h,hg,dg,av,Cg]),q([Zh,R_,z_,X_,iv,Tg,Og,xg]),q([fg,L_,q_,rv,wg,Eg,Dg,kg]),q([$h,hg,k_,$g,qg,w_,h_,Cg,Y_]),q([Zh,ug,tv,m_,r_,Bg,Hg,Kg,x_,b_,Tg,Og,xg]);var ov=class e extends Error{constructor(e,t,n){super(`MCP error ${e}: ${t}`),this.code=e,this.data=n,this.name=`McpError`}static fromError(t,n,r){if(t===qh.UrlElicitationRequired&&r){let e=r;if(e.elicitations)return new sv(e.elicitations,n)}return new e(t,n,r)}},sv=class extends ov{constructor(e,t=`URL elicitation${e.length>1?`s`:``} required`){super(qh.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}};function cv(e){return e===`completed`||e===`failed`||e===`cancelled`}function lv(e){let t=Od(e)?.method;if(!t)throw Error(`Schema is missing a method literal`);let n=kd(t);if(typeof n!=`string`)throw Error(`Schema method literal must be a string`);return n}function uv(e,t){let n=Dd(e,t);if(!n.success)throw n.error;return n.data}var dv=class{constructor(e){this._options=e,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler($h,e=>{this._oncancel(e)}),this.setNotificationHandler(hg,e=>{this._onprogress(e)}),this.setRequestHandler(fg,e=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(wg,async(e,t)=>{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new ov(qh.InvalidParams,`Failed to retrieve task: Task not found`);return{...n}}),this.setRequestHandler(Eg,async(e,t)=>{let n=async()=>{let r=e.params.taskId;if(this._taskMessageQueue){let e;for(;e=await this._taskMessageQueue.dequeue(r,t.sessionId);){if(e.type===`response`||e.type===`error`){let t=e.message,n=t.id,r=this._requestResolvers.get(n);if(r)if(this._requestResolvers.delete(n),e.type===`response`)r(t);else{let e=t;r(new ov(e.error.code,e.error.message,e.error.data))}else{let t=e.type===`response`?`Response`:`Error`;this._onerror(Error(`${t} handler missing for request ${n}`))}continue}await this._transport?.send(e.message,{relatedRequestId:t.requestId})}}let i=await this._taskStore.getTask(r,t.sessionId);if(!i)throw new ov(qh.InvalidParams,`Task not found: ${r}`);if(!cv(i.status))return await this._waitForTaskUpdate(r,t.signal),await n();if(cv(i.status)){let e=await this._taskStore.getTaskResult(r,t.sessionId);return this._clearTaskQueue(r),{...e,_meta:{...e._meta,[Eh]:{taskId:r}}}}return await n()};return await n()}),this.setRequestHandler(Dg,async(e,t)=>{try{let{tasks:n,nextCursor:r}=await this._taskStore.listTasks(e.params?.cursor,t.sessionId);return{tasks:n,nextCursor:r,_meta:{}}}catch(e){throw new ov(qh.InvalidParams,`Failed to list tasks: ${e instanceof Error?e.message:String(e)}`)}}),this.setRequestHandler(kg,async(e,t)=>{try{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new ov(qh.InvalidParams,`Task not found: ${e.params.taskId}`);if(cv(n.status))throw new ov(qh.InvalidParams,`Cannot cancel task in terminal status: ${n.status}`);await this._taskStore.updateTaskStatus(e.params.taskId,`cancelled`,`Client cancelled task execution.`,t.sessionId),this._clearTaskQueue(e.params.taskId);let r=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!r)throw new ov(qh.InvalidParams,`Task not found after cancellation: ${e.params.taskId}`);return{_meta:{},...r}}catch(e){throw e instanceof ov?e:new ov(qh.InvalidRequest,`Failed to cancel task: ${e instanceof Error?e.message:String(e)}`)}}))}async _oncancel(e){e.params.requestId&&this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,t,n,r,i=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(r,t),startTime:Date.now(),timeout:t,maxTotalTimeout:n,resetTimeoutOnProgress:i,onTimeout:r})}_resetTimeout(e){let t=this._timeoutInfo.get(e);if(!t)return!1;let n=Date.now()-t.startTime;if(t.maxTotalTimeout&&n>=t.maxTotalTimeout)throw this._timeoutInfo.delete(e),ov.fromError(qh.RequestTimeout,`Maximum total timeout exceeded`,{maxTotalTimeout:t.maxTotalTimeout,totalElapsed:n});return clearTimeout(t.timeoutId),t.timeoutId=setTimeout(t.onTimeout,t.timeout),!0}_cleanupTimeout(e){let t=this._timeoutInfo.get(e);t&&(clearTimeout(t.timeoutId),this._timeoutInfo.delete(e))}async connect(e){if(this._transport)throw Error(`Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.`);this._transport=e;let t=this.transport?.onclose;this._transport.onclose=()=>{t?.(),this._onclose()};let n=this.transport?.onerror;this._transport.onerror=e=>{n?.(e),this._onerror(e)};let r=this._transport?.onmessage;this._transport.onmessage=(e,t)=>{r?.(e,t),Kh(e)||Yh(e)?this._onresponse(e):Hh(e)?this._onrequest(e,t):Wh(e)?this._onnotification(e):this._onerror(Error(`Unknown message type: ${JSON.stringify(e)}`))},await this._transport.start()}_onclose(){let e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let e of this._timeoutInfo.values())clearTimeout(e.timeoutId);this._timeoutInfo.clear();for(let e of this._requestHandlerAbortControllers.values())e.abort();this._requestHandlerAbortControllers.clear();let t=ov.fromError(qh.ConnectionClosed,`Connection closed`);this._transport=void 0,this.onclose?.();for(let n of e.values())n(t)}_onerror(e){this.onerror?.(e)}_onnotification(e){let t=this._notificationHandlers.get(e.method)??this.fallbackNotificationHandler;t!==void 0&&Promise.resolve().then(()=>t(e)).catch(e=>this._onerror(Error(`Uncaught error in notification handler: ${e}`)))}_onrequest(e,t){let n=this._requestHandlers.get(e.method)??this.fallbackRequestHandler,r=this._transport,i=e.params?._meta?.[Eh]?.taskId;if(n===void 0){let t={jsonrpc:`2.0`,id:e.id,error:{code:qh.MethodNotFound,message:`Method not found`}};i&&this._taskMessageQueue?this._enqueueTaskMessage(i,{type:`error`,message:t,timestamp:Date.now()},r?.sessionId).catch(e=>this._onerror(Error(`Failed to enqueue error response: ${e}`))):r?.send(t).catch(e=>this._onerror(Error(`Failed to send an error response: ${e}`)));return}let a=new AbortController;this._requestHandlerAbortControllers.set(e.id,a);let o=Fh(e.params)?e.params.task:void 0,s=this._taskStore?this.requestTaskStore(e,r?.sessionId):void 0,c={signal:a.signal,sessionId:r?.sessionId,_meta:e.params?._meta,sendNotification:async t=>{if(a.signal.aborted)return;let n={relatedRequestId:e.id};i&&(n.relatedTask={taskId:i}),await this.notification(t,n)},sendRequest:async(t,n,r)=>{if(a.signal.aborted)throw new ov(qh.ConnectionClosed,`Request was cancelled`);let o={...r,relatedRequestId:e.id};i&&!o.relatedTask&&(o.relatedTask={taskId:i});let c=o.relatedTask?.taskId??i;return c&&s&&await s.updateTaskStatus(c,`input_required`),await this.request(t,n,o)},authInfo:t?.authInfo,requestId:e.id,requestInfo:t?.requestInfo,taskId:i,taskStore:s,taskRequestedTtl:o?.ttl,closeSSEStream:t?.closeSSEStream,closeStandaloneSSEStream:t?.closeStandaloneSSEStream};Promise.resolve().then(()=>{o&&this.assertTaskHandlerCapability(e.method)}).then(()=>n(e,c)).then(async t=>{if(a.signal.aborted)return;let n={result:t,jsonrpc:`2.0`,id:e.id};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`response`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)},async t=>{if(a.signal.aborted)return;let n={jsonrpc:`2.0`,id:e.id,error:{code:Number.isSafeInteger(t.code)?t.code:qh.InternalError,message:t.message??`Internal error`,...t.data!==void 0&&{data:t.data}}};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`error`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)}).catch(e=>this._onerror(Error(`Failed to send response: ${e}`))).finally(()=>{this._requestHandlerAbortControllers.get(e.id)===a&&this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){let{progressToken:t,...n}=e.params,r=Number(t),i=this._progressHandlers.get(r);if(!i){this._onerror(Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let a=this._responseHandlers.get(r),o=this._timeoutInfo.get(r);if(o&&a&&o.resetTimeoutOnProgress)try{this._resetTimeout(r)}catch(e){this._responseHandlers.delete(r),this._progressHandlers.delete(r),this._cleanupTimeout(r),a(e);return}i(n)}_onresponse(e){let t=Number(e.id),n=this._requestResolvers.get(t);if(n){this._requestResolvers.delete(t),Kh(e)?n(e):n(new ov(e.error.code,e.error.message,e.error.data));return}let r=this._responseHandlers.get(t);if(r===void 0){this._onerror(Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(t),this._cleanupTimeout(t);let i=!1;if(Kh(e)&&e.result&&typeof e.result==`object`){let n=e.result;if(n.task&&typeof n.task==`object`){let e=n.task;typeof e.taskId==`string`&&(i=!0,this._taskProgressTokens.set(e.taskId,t))}}i||this._progressHandlers.delete(t),Kh(e)?r(e):r(ov.fromError(e.error.code,e.error.message,e.error.data))}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(e,t,n){let{task:r}=n??{};if(!r){try{yield{type:`result`,result:await this.request(e,t,n)}}catch(e){yield{type:`error`,error:e instanceof ov?e:new ov(qh.InternalError,String(e))}}return}let i;try{let r=await this.request(e,xg,n);if(r.task)i=r.task.taskId,yield{type:`taskCreated`,task:r.task};else throw new ov(qh.InternalError,`Task creation did not return a task`);for(;;){let e=await this.getTask({taskId:i},n);if(yield{type:`taskStatus`,task:e},cv(e.status)){e.status===`completed`?yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)}:e.status===`failed`?yield{type:`error`,error:new ov(qh.InternalError,`Task ${i} failed`)}:e.status===`cancelled`&&(yield{type:`error`,error:new ov(qh.InternalError,`Task ${i} was cancelled`)});return}if(e.status===`input_required`){yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)};return}let r=e.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(e=>setTimeout(e,r)),n?.signal?.throwIfAborted()}}catch(e){yield{type:`error`,error:e instanceof ov?e:new ov(qh.InternalError,String(e))}}}request(e,t,n){let{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a,task:o,relatedTask:s}=n??{};return new Promise((c,l)=>{let u=e=>{l(e)};if(!this._transport){u(Error(`Not connected`));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(e.method),o&&this.assertTaskCapability(e.method)}catch(e){u(e);return}n?.signal?.throwIfAborted();let d=this._requestMessageId++,f={...e,jsonrpc:`2.0`,id:d};n?.onprogress&&(this._progressHandlers.set(d,n.onprogress),f.params={...e.params,_meta:{...e.params?._meta||{},progressToken:d}}),o&&(f.params={...f.params,task:o}),s&&(f.params={...f.params,_meta:{...f.params?._meta||{},[Eh]:s}});let p=e=>{this._responseHandlers.delete(d),this._progressHandlers.delete(d),this._cleanupTimeout(d),this._transport?.send({jsonrpc:`2.0`,method:`notifications/cancelled`,params:{requestId:d,reason:String(e)}},{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>this._onerror(Error(`Failed to send cancellation: ${e}`))),l(e instanceof ov?e:new ov(qh.RequestTimeout,String(e)))};this._responseHandlers.set(d,e=>{if(!n?.signal?.aborted){if(e instanceof Error)return l(e);try{let n=Dd(t,e.result);n.success?c(n.data):l(n.error)}catch(e){l(e)}}}),n?.signal?.addEventListener(`abort`,()=>{p(n?.signal?.reason)});let m=n?.timeout??6e4;this._setupTimeout(d,m,n?.maxTotalTimeout,()=>p(ov.fromError(qh.RequestTimeout,`Request timed out`,{timeout:m})),n?.resetTimeoutOnProgress??!1);let h=s?.taskId;h?(this._requestResolvers.set(d,e=>{let t=this._responseHandlers.get(d);t?t(e):this._onerror(Error(`Response handler missing for side-channeled request ${d}`))}),this._enqueueTaskMessage(h,{type:`request`,message:f,timestamp:Date.now()}).catch(e=>{this._cleanupTimeout(d),l(e)})):this._transport.send(f,{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>{this._cleanupTimeout(d),l(e)})})}async getTask(e,t){return this.request({method:`tasks/get`,params:e},Tg,t)}async getTaskResult(e,t,n){return this.request({method:`tasks/result`,params:e},t,n)}async listTasks(e,t){return this.request({method:`tasks/list`,params:e},Og,t)}async cancelTask(e,t){return this.request({method:`tasks/cancel`,params:e},Ag,t)}async notification(e,t){if(!this._transport)throw Error(`Not connected`);this.assertNotificationCapability(e.method);let n=t?.relatedTask?.taskId;if(n){let r={...e,jsonrpc:`2.0`,params:{...e.params,_meta:{...e.params?._meta||{},[Eh]:t.relatedTask}}};await this._enqueueTaskMessage(n,{type:`notification`,message:r,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(e.method)&&!e.params&&!t?.relatedRequestId&&!t?.relatedTask){if(this._pendingDebouncedNotifications.has(e.method))return;this._pendingDebouncedNotifications.add(e.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let n={...e,jsonrpc:`2.0`};t?.relatedTask&&(n={...n,params:{...n.params,_meta:{...n.params?._meta||{},[Eh]:t.relatedTask}}}),this._transport?.send(n,t).catch(e=>this._onerror(e))});return}let r={...e,jsonrpc:`2.0`};t?.relatedTask&&(r={...r,params:{...r.params,_meta:{...r.params?._meta||{},[Eh]:t.relatedTask}}}),await this._transport.send(r,t)}setRequestHandler(e,t){let n=lv(e);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(n,r)=>{let i=uv(e,n);return Promise.resolve(t(i,r))})}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,t){let n=lv(e);this._notificationHandlers.set(n,n=>{let r=uv(e,n);return Promise.resolve(t(r))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){let t=this._taskProgressTokens.get(e);t!==void 0&&(this._progressHandlers.delete(t),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,t,n){if(!this._taskStore||!this._taskMessageQueue)throw Error(`Cannot enqueue task message: taskStore and taskMessageQueue are not configured`);let r=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(e,t,n,r)}async _clearTaskQueue(e,t){if(this._taskMessageQueue){let n=await this._taskMessageQueue.dequeueAll(e,t);for(let t of n)if(t.type===`request`&&Hh(t.message)){let n=t.message.id,r=this._requestResolvers.get(n);r?(r(new ov(qh.InternalError,`Task cancelled or completed`)),this._requestResolvers.delete(n)):this._onerror(Error(`Resolver missing for request ${n} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,t){let n=this._options?.defaultTaskPollInterval??1e3;try{let t=await this._taskStore?.getTask(e);t?.pollInterval&&(n=t.pollInterval)}catch{}return new Promise((e,r)=>{if(t.aborted){r(new ov(qh.InvalidRequest,`Request cancelled`));return}let i=setTimeout(e,n);t.addEventListener(`abort`,()=>{clearTimeout(i),r(new ov(qh.InvalidRequest,`Request cancelled`))},{once:!0})})}requestTaskStore(e,t){let n=this._taskStore;if(!n)throw Error(`No task store configured`);return{createTask:async r=>{if(!e)throw Error(`No request provided`);return await n.createTask(r,e.id,{method:e.method,params:e.params},t)},getTask:async e=>{let r=await n.getTask(e,t);if(!r)throw new ov(qh.InvalidParams,`Failed to retrieve task: Task not found`);return r},storeTaskResult:async(e,r,i)=>{await n.storeTaskResult(e,r,i,t);let a=await n.getTask(e,t);if(a){let t=Cg.parse({method:`notifications/tasks/status`,params:a});await this.notification(t),cv(a.status)&&this._cleanupTaskProgressHandler(e)}},getTaskResult:e=>n.getTaskResult(e,t),updateTaskStatus:async(e,r,i)=>{let a=await n.getTask(e,t);if(!a)throw new ov(qh.InvalidParams,`Task \"${e}\" not found - it may have been cleaned up`);if(cv(a.status))throw new ov(qh.InvalidParams,`Cannot update task \"${e}\" from terminal status \"${a.status}\" to \"${r}\". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(e,r,i,t);let o=await n.getTask(e,t);if(o){let t=Cg.parse({method:`notifications/tasks/status`,params:o});await this.notification(t),cv(o.status)&&this._cleanupTaskProgressHandler(e)}},listTasks:e=>n.listTasks(e,t)}}};function fv(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function pv(e,t){let n={...e};for(let e in t){let r=e,i=t[r];if(i===void 0)continue;let a=n[r];fv(a)&&fv(i)?n[r]={...a,...i}:n[r]=i}return n}var mv=a();Th(),(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error(`Dynamic require of \"`+e+`\" is not supported`)});var hv=class extends dv{_registeredMethods=new Set;_eventSlots=new Map;onEventDispatch(e,t){}_ensureEventSlot(e){let t=this._eventSlots.get(e);if(!t){let n=this.eventSchemas[e];if(!n)throw Error(`Unknown event: ${String(e)}`);t={listeners:[]},this._eventSlots.set(e,t);let r=n.shape.method.value;this._registeredMethods.add(r);let i=t;super.setNotificationHandler(n,t=>{let n=t.params;this.onEventDispatch(e,n),i.onHandler?.(n);for(let e of[...i.listeners])e(n)})}return t}setEventHandler(e,t){let n=this._ensureEventSlot(e);n.onHandler&&t&&console.warn(`[MCP Apps] on${String(e)} handler replaced. Use addEventListener(\"${String(e)}\", …) to add multiple listeners without replacing.`),n.onHandler=t}getEventHandler(e){return this._eventSlots.get(e)?.onHandler}addEventListener(e,t){this._ensureEventSlot(e).listeners.push(t)}removeEventListener(e,t){let n=this._eventSlots.get(e);if(!n)return;let r=n.listeners.indexOf(t);r!==-1&&n.listeners.splice(r,1)}setRequestHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setRequestHandler`),super.setRequestHandler(e,t)};setNotificationHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setNotificationHandler`),super.setNotificationHandler(e,t)};warnIfRequestHandlerReplaced(e,t,n){t&&n&&console.warn(`[MCP Apps] ${e} handler replaced. Previous handler will no longer be called.`)}replaceRequestHandler=(e,t)=>{let n=e.shape.method.value;this._registeredMethods.add(n),super.setRequestHandler(e,t)};_assertMethodNotRegistered(e,t){let n=e.shape.method.value;if(this._registeredMethods.has(n))throw Error(`Handler for \"${n}\" already registered (via ${t}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(n)}},gv=`2026-01-26`,_v=class{eventTarget;eventSource;messageListener;constructor(e=window.parent,t){this.eventTarget=e,this.eventSource=t,this.messageListener=e=>{if(t&&e.source!==this.eventSource){console.debug(`Ignoring message from unknown source`,e);return}let n=Xh.safeParse(e.data);n.success?(console.debug(`Parsed message`,n.data),this.onmessage?.(n.data)):e.data?.jsonrpc===`2.0`?(console.error(`Failed to parse message`,n.error.message,e),this.onerror?.(Error(`Invalid JSON-RPC message received: `+n.error.message))):console.debug(`Ignoring non-JSON-RPC message`,n.error.message,e)}}async start(){window.addEventListener(`message`,this.messageListener)}async send(e,t){e.method!==`ui/notifications/tool-input-partial`&&console.debug(`Sending message`,e),this.eventTarget.postMessage(e,`*`)}async close(){window.removeEventListener(`message`,this.messageListener),this.onclose?.()}onclose;onerror;onmessage;sessionId;setProtocolVersion},vv=q([Y(`light`),Y(`dark`)]).describe(`Color theme preference for the host environment.`),yv=q([Y(`inline`),Y(`fullscreen`),Y(`pip`)]).describe(`Display mode for UI presentation.`),bv=J(q([Y(`--color-background-primary`),Y(`--color-background-secondary`),Y(`--color-background-tertiary`),Y(`--color-background-inverse`),Y(`--color-background-ghost`),Y(`--color-background-info`),Y(`--color-background-danger`),Y(`--color-background-success`),Y(`--color-background-warning`),Y(`--color-background-disabled`),Y(`--color-text-primary`),Y(`--color-text-secondary`),Y(`--color-text-tertiary`),Y(`--color-text-inverse`),Y(`--color-text-ghost`),Y(`--color-text-info`),Y(`--color-text-danger`),Y(`--color-text-success`),Y(`--color-text-warning`),Y(`--color-text-disabled`),Y(`--color-border-primary`),Y(`--color-border-secondary`),Y(`--color-border-tertiary`),Y(`--color-border-inverse`),Y(`--color-border-ghost`),Y(`--color-border-info`),Y(`--color-border-danger`),Y(`--color-border-success`),Y(`--color-border-warning`),Y(`--color-border-disabled`),Y(`--color-ring-primary`),Y(`--color-ring-secondary`),Y(`--color-ring-inverse`),Y(`--color-ring-info`),Y(`--color-ring-danger`),Y(`--color-ring-success`),Y(`--color-ring-warning`),Y(`--font-sans`),Y(`--font-mono`),Y(`--font-weight-normal`),Y(`--font-weight-medium`),Y(`--font-weight-semibold`),Y(`--font-weight-bold`),Y(`--font-text-xs-size`),Y(`--font-text-sm-size`),Y(`--font-text-md-size`),Y(`--font-text-lg-size`),Y(`--font-heading-xs-size`),Y(`--font-heading-sm-size`),Y(`--font-heading-md-size`),Y(`--font-heading-lg-size`),Y(`--font-heading-xl-size`),Y(`--font-heading-2xl-size`),Y(`--font-heading-3xl-size`),Y(`--font-text-xs-line-height`),Y(`--font-text-sm-line-height`),Y(`--font-text-md-line-height`),Y(`--font-text-lg-line-height`),Y(`--font-heading-xs-line-height`),Y(`--font-heading-sm-line-height`),Y(`--font-heading-md-line-height`),Y(`--font-heading-lg-line-height`),Y(`--font-heading-xl-line-height`),Y(`--font-heading-2xl-line-height`),Y(`--font-heading-3xl-line-height`),Y(`--border-radius-xs`),Y(`--border-radius-sm`),Y(`--border-radius-md`),Y(`--border-radius-lg`),Y(`--border-radius-xl`),Y(`--border-radius-full`),Y(`--border-width-regular`),Y(`--shadow-hairline`),Y(`--shadow-sm`),Y(`--shadow-md`),Y(`--shadow-lg`)]).describe(`CSS variable keys available to MCP apps for theming.`).describe(`Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses \\`Record<K, string | undefined>\\` rather than \\`Partial<Record<K, string>>\\`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation.`),q([V(),Uf()]).describe(`Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses \\`Record<K, string | undefined>\\` rather than \\`Partial<Record<K, string>>\\`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation.`)).describe(`Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses \\`Record<K, string | undefined>\\` rather than \\`Partial<Record<K, string>>\\`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation.`);K({method:Y(`ui/open-link`),params:K({url:V().describe(`URL to open in the host's browser`)})});var xv=K({isError:U().optional().describe(`True if the host failed to open the URL (e.g., due to security policy).`)}).passthrough(),Sv=K({isError:U().optional().describe(`True if the download failed (e.g., user cancelled or host denied).`)}).passthrough(),Cv=K({isError:U().optional().describe(`True if the host rejected or failed to deliver the message.`)}).passthrough();K({method:Y(`ui/notifications/sandbox-proxy-ready`),params:K({})});var wv=K({connectDomains:G(V()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket).\n\n- Maps to CSP \\`connect-src\\` directive\n- Empty or omitted → no network connections (secure default)`),resourceDomains:G(V()).optional().describe(\"Origins for static resources (images, scripts, stylesheets, fonts, media).\\n\\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\\n- Wildcard subdomains supported: `https://*.example.com`\\n- Empty or omitted → no network resources (secure default)\"),frameDomains:G(V()).optional().describe(\"Origins for nested iframes.\\n\\n- Maps to CSP `frame-src` directive\\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)\"),baseUriDomains:G(V()).optional().describe(\"Allowed base URIs for the document.\\n\\n- Maps to CSP `base-uri` directive\\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)\")}),Tv=K({camera:K({}).optional().describe(`Request camera access.\n\nMaps to Permission Policy \\`camera\\` feature.`),microphone:K({}).optional().describe(`Request microphone access.\n\nMaps to Permission Policy \\`microphone\\` feature.`),geolocation:K({}).optional().describe(`Request geolocation access.\n\nMaps to Permission Policy \\`geolocation\\` feature.`),clipboardWrite:K({}).optional().describe(`Request clipboard write access.\n\nMaps to Permission Policy \\`clipboard-write\\` feature.`)});K({method:Y(`ui/notifications/size-changed`),params:K({width:H().optional().describe(`New width in pixels.`),height:H().optional().describe(`New height in pixels.`)})});var Ev=K({method:Y(`ui/notifications/tool-input`),params:K({arguments:J(V(),W().describe(`Complete tool call arguments as key-value pairs.`)).optional().describe(`Complete tool call arguments as key-value pairs.`)})}),Dv=K({method:Y(`ui/notifications/tool-input-partial`),params:K({arguments:J(V(),W().describe(`Partial tool call arguments (incomplete, may change).`)).optional().describe(`Partial tool call arguments (incomplete, may change).`)})}),Ov=K({method:Y(`ui/notifications/tool-cancelled`),params:K({reason:V().optional().describe(`Optional reason for the cancellation (e.g., \"user action\", \"timeout\").`)})}),kv=K({fonts:V().optional()}),Av=K({variables:bv.optional().describe(`CSS variables for theming the app.`),css:kv.optional().describe(`CSS blocks that apps can inject.`)}),jv=K({method:Y(`ui/resource-teardown`),params:K({})});J(V(),W());var Mv=K({text:K({}).optional().describe(`Host supports text content blocks.`),image:K({}).optional().describe(`Host supports image content blocks.`),audio:K({}).optional().describe(`Host supports audio content blocks.`),resource:K({}).optional().describe(`Host supports resource content blocks.`),resourceLink:K({}).optional().describe(`Host supports resource link content blocks.`),structuredContent:K({}).optional().describe(`Host supports structured content.`)});K({method:Y(`ui/notifications/request-teardown`),params:K({}).optional()});var Nv=K({experimental:J(V(),J(V(),Gf()).describe(`Experimental features keyed by identifier.`)).optional().describe(`Experimental features keyed by identifier.`),openLinks:K({}).optional().describe(`Host supports opening external URLs.`),downloadFile:K({}).optional().describe(`Host supports file downloads via ui/download-file.`),serverTools:K({listChanged:U().optional().describe(`Host supports tools/list_changed notifications.`)}).optional().describe(`Host can proxy tool calls to the MCP server.`),serverResources:K({listChanged:U().optional().describe(`Host supports resources/list_changed notifications.`)}).optional().describe(`Host can proxy resource reads to the MCP server.`),logging:K({}).optional().describe(`Host accepts log messages.`),sandbox:K({permissions:Tv.optional().describe(`Permissions granted by the host (camera, microphone, geolocation).`),csp:wv.optional().describe(`CSP domains approved by the host.`)}).optional().describe(`Sandbox configuration applied by the host.`),updateModelContext:Mv.optional().describe(`Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns.`),message:Mv.optional().describe(`Host supports receiving content messages (ui/message) from the view.`),sampling:K({tools:K({}).optional().describe(\"Host supports tool use via `tools` and `toolChoice` parameters.\")}).optional().describe(\"Host supports LLM sampling (sampling/createMessage) from the view.\\nMirrors the MCP `ClientCapabilities.sampling` shape so hosts can pass it through.\")}),Pv=K({experimental:J(V(),J(V(),Gf()).describe(`Experimental features keyed by identifier.`)).optional().describe(`Experimental features keyed by identifier.`),tools:K({listChanged:U().optional().describe(`App supports tools/list_changed notifications.`)}).optional().describe(`App exposes MCP-style tools that the host can call.`),availableDisplayModes:G(yv).optional().describe(`Display modes the app supports.`)});K({method:Y(`ui/notifications/initialized`),params:K({}).optional()}),K({csp:wv.optional().describe(`Content Security Policy configuration for UI resources.`),permissions:Tv.optional().describe(`Sandbox permissions requested by the UI resource.`),domain:V().optional().describe(`Dedicated origin for view sandbox.\n\nUseful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists.\n\n**Host-dependent:** The format and validation rules for this field are determined by each host. Servers MUST consult host-specific documentation for the expected domain format. Common patterns include:\n- Hash-based subdomains (e.g., \\`{hash}.claudemcpcontent.com\\`)\n- URL-derived subdomains (e.g., \\`www-example-com.oaiusercontent.com\\`)\n\nIf omitted, host uses default sandbox origin (typically per-conversation).`),prefersBorder:U().optional().describe(`Visual boundary preference - true if view prefers a visible border.\n\nBoolean requesting whether a visible border and background is provided by the host. Specifying an explicit value for this is recommended because hosts' defaults may vary.\n\n- \\`true\\`: request visible border + background\n- \\`false\\`: request no visible border + background\n- omitted: host decides border`)}),K({method:Y(`ui/request-display-mode`),params:K({mode:yv.describe(`The display mode being requested.`)})});var Fv=K({mode:yv.describe(`The display mode that was actually set. May differ from requested if not supported.`)}).passthrough(),Iv=q([Y(`model`),Y(`app`)]).describe(`Tool visibility scope - who can access the tool.`);K({resourceUri:V().optional(),visibility:G(Iv).optional().describe(`Who can access this tool. Default: [\"model\", \"app\"]\n- \"model\": Tool visible to and callable by the agent\n- \"app\": Tool callable by the app from this server only`),csp:Kf().optional(),permissions:Kf().optional()}),K({mimeTypes:G(V()).optional().describe('Array of supported MIME types for UI resources.\\nMust include `\"text/html;profile=mcp-app\"` for MCP Apps support.')}),K({method:Y(`ui/download-file`),params:K({contents:G(q([u_,d_])).describe(`Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.`)})}),K({method:Y(`ui/message`),params:K({role:Y(`user`).describe(`Message role, currently only \"user\" is supported.`),content:G(f_).describe(`Message content blocks (text, image, etc.).`)})}),K({method:Y(`ui/notifications/sandbox-resource-ready`),params:K({html:V().describe(`HTML content to load into the inner iframe.`),sandbox:V().optional().describe(`Optional override for the inner iframe's sandbox attribute.`),csp:wv.optional().describe(`CSP configuration from resource metadata.`),permissions:Tv.optional().describe(`Sandbox permissions from resource metadata.`)})});var Lv=K({method:Y(`ui/notifications/tool-result`),params:x_.describe(`Standard MCP tool execution result.`)}),Rv=K({toolInfo:K({id:Bh.optional().describe(`JSON-RPC id of the tools/call request.`),tool:v_.describe(`Tool definition including name, inputSchema, etc.`)}).optional().describe(`Metadata of the tool call that instantiated this App.`),theme:vv.optional().describe(`Current color theme preference.`),styles:Av.optional().describe(`Style configuration for theming the app.`),displayMode:yv.optional().describe(`How the UI is currently displayed.`),availableDisplayModes:G(yv).optional().describe(`Display modes the host supports.`),containerDimensions:q([K({height:H().describe(`Fixed container height in pixels.`)}),K({maxHeight:q([H(),Uf()]).optional().describe(`Maximum container height in pixels.`)})]).and(q([K({width:H().describe(`Fixed container width in pixels.`)}),K({maxWidth:q([H(),Uf()]).optional().describe(`Maximum container width in pixels.`)})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other\ncontainer holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:V().optional().describe(`User's language and region preference in BCP 47 format.`),timeZone:V().optional().describe(`User's timezone in IANA format.`),userAgent:V().optional().describe(`Host application identifier.`),platform:q([Y(`web`),Y(`desktop`),Y(`mobile`)]).optional().describe(`Platform type for responsive design decisions.`),deviceCapabilities:K({touch:U().optional().describe(`Whether the device supports touch input.`),hover:U().optional().describe(`Whether the device supports hover interactions.`)}).optional().describe(`Device input capabilities.`),safeAreaInsets:K({top:H().describe(`Top safe area inset in pixels.`),right:H().describe(`Right safe area inset in pixels.`),bottom:H().describe(`Bottom safe area inset in pixels.`),left:H().describe(`Left safe area inset in pixels.`)}).optional().describe(`Mobile safe area boundaries in pixels.`)}).passthrough(),zv=K({method:Y(`ui/notifications/host-context-changed`),params:Rv.describe(`Partial context update containing only changed fields.`)});K({method:Y(`ui/update-model-context`),params:K({content:G(f_).optional().describe(`Context content blocks (text, image, etc.).`),structuredContent:J(V(),W().describe(`Structured content for machine-readable context data.`)).optional().describe(`Structured content for machine-readable context data.`)})}),K({method:Y(`ui/initialize`),params:K({appInfo:ng.describe(`App identification (name and version).`),appCapabilities:Pv.describe(`Features and capabilities this app provides.`),protocolVersion:V().describe(`Protocol version this app supports.`)})});var Bv=K({protocolVersion:V().describe(`Negotiated protocol version string (e.g., \"2025-11-21\").`),hostInfo:ng.describe(`Host application identification and version.`),hostCapabilities:Nv.describe(`Features and capabilities provided by the host.`),hostContext:Rv.describe(`Rich context about the host environment.`)}).passthrough(),Vv={target:`draft-2020-12`};async function Hv(e,t){let n=e[`~standard`];if(n.jsonSchema)return n.jsonSchema[t](Vv);if(n.vendor===`zod`){let{z:n}=await Promise.resolve().then(()=>(Th(),Ch));return n.toJSONSchema(e,{io:t})}throw Error(`Schema (vendor: ${n.vendor}) does not implement Standard JSON Schema (~standard.jsonSchema). Use a library that does (zod v4, ArkType, Valibot) or wrap your schema accordingly.`)}async function Uv(e,t,n=``){let r=await e[`~standard`].validate(t);if(r.issues){let e=r.issues.map(e=>{let t=e.path?.map(e=>typeof e==`object`?e.key:e).join(`.`);return t?`${t}: ${e.message}`:e.message}).join(`; `);throw Error(n+e)}return r.value}function Wv(){let e=document.documentElement.getAttribute(`data-theme`);return e===`dark`||e===`light`?e:document.documentElement.classList.contains(`dark`)?`dark`:`light`}function Gv(e){let t=document.documentElement;t.setAttribute(`data-theme`,e),t.style.colorScheme=e}function Kv(e,t=document.documentElement){for(let[n,r]of Object.entries(e))r!==void 0&&t.style.setProperty(n,r)}function qv(e){if(document.getElementById(`__mcp-host-fonts`))return;let t=document.createElement(`style`);t.id=`__mcp-host-fonts`,t.textContent=e,document.head.appendChild(t)}var Jv=class e extends hv{_appInfo;_capabilities;options;_hostCapabilities;_hostInfo;_hostContext;_registeredTools={};_initializedSent=!1;_assertInitialized(e){if(this._initializedSent)return;let t=`[ext-apps] App.${e}() called before connect() completed the ui/initialize handshake. Await app.connect() before calling this method, or move data loading to an ontoolresult handler.`;if(this.options?.strict)throw Error(t);console.warn(`${t}. This will throw in a future release.`)}eventSchemas={toolinput:Ev,toolinputpartial:Dv,toolresult:Lv,toolcancelled:Ov,hostcontextchanged:zv};static ONE_SHOT_EVENTS=new Set([`toolinput`,`toolinputpartial`,`toolresult`,`toolcancelled`]);_everHadListener=new Set;_assertHandlerTiming(t){if(!e.ONE_SHOT_EVENTS.has(t)||this._everHadListener.has(t)||(this._everHadListener.add(t),!this._initializedSent))return;let n=`[ext-apps] \"${String(t)}\" handler registered after connect() completed the ui/initialize handshake. The host may have already sent this notification. Register handlers before calling app.connect().`;if(this.options?.strict)throw Error(n);console.warn(n)}setEventHandler(e,t){t&&this._assertHandlerTiming(e),super.setEventHandler(e,t)}addEventListener(e,t){this._assertHandlerTiming(e),super.addEventListener(e,t)}onEventDispatch(e,t){e===`hostcontextchanged`&&(this._hostContext={...this._hostContext,...t})}constructor(e,t={},n={autoResize:!0}){super(n),this._appInfo=e,this._capabilities=t,this.options=n,n.allowUnsafeEval||p({jitless:!0}),this.setRequestHandler(fg,e=>(console.log(`Received ping:`,e.params),{})),this.setEventHandler(`hostcontextchanged`,void 0)}registerCapabilities(e){if(this.transport)throw Error(`Cannot register capabilities after transport is established`);this._capabilities=pv(this._capabilities,e)}registerTool(e,t,n){if(this._registeredTools[e])throw Error(`Tool ${e} is already registered`);let r=this,i=()=>{r._initializedSent&&r._capabilities.tools?.listChanged&&r.sendToolListChanged()},a=t.inputSchema!==void 0,o={title:t.title,description:t.description,inputSchema:t.inputSchema,outputSchema:t.outputSchema,annotations:t.annotations,_meta:t._meta,enabled:!0,enable(){this.enabled=!0,i()},disable(){this.enabled=!1,i()},update(e){Object.assign(this,e),i()},remove(){r._registeredTools[e]===o&&(delete r._registeredTools[e],i())},handler:async(t,r)=>{if(!o.enabled)throw Error(`Tool ${e} is disabled`);let i;if(a){let a=o.inputSchema;i=await n(a?await Uv(a,t??{},`Invalid input for tool ${e}: `):t??{},r)}else i=await n(r);return o.outputSchema&&!i.isError&&(i.structuredContent=await Uv(o.outputSchema,i.structuredContent,`Invalid output for tool ${e}: `)),i}};return this._registeredTools[e]=o,!this._capabilities.tools&&!this.transport&&this.registerCapabilities({tools:{listChanged:!0}}),this.ensureToolHandlersInitialized(),i(),o}_toolHandlersInitialized=!1;ensureToolHandlersInitialized(){this._toolHandlersInitialized||(this._toolHandlersInitialized=!0,this.oncalltool=async(e,t)=>{let n=this._registeredTools[e.name];if(!n)throw Error(`Tool ${e.name} not found`);return n.handler(e.arguments,t)},this.onlisttools=async(e,t)=>({tools:await Promise.all(Object.entries(this._registeredTools).filter(([e,t])=>t.enabled).map(async([e,t])=>{let n={name:e,title:t.title,description:t.description,inputSchema:t.inputSchema?await Hv(t.inputSchema,`input`):{type:`object`,properties:{}}};return t.outputSchema&&(n.outputSchema=await Hv(t.outputSchema,`output`)),t.annotations&&(n.annotations=t.annotations),t._meta&&(n._meta=t._meta),n}))}))}async sendToolListChanged(e={}){this._assertInitialized(`sendToolListChanged`),await this.notification({method:`notifications/tools/list_changed`,params:e})}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}get ontoolinput(){return this.getEventHandler(`toolinput`)}set ontoolinput(e){this.setEventHandler(`toolinput`,e)}get ontoolinputpartial(){return this.getEventHandler(`toolinputpartial`)}set ontoolinputpartial(e){this.setEventHandler(`toolinputpartial`,e)}get ontoolresult(){return this.getEventHandler(`toolresult`)}set ontoolresult(e){this.setEventHandler(`toolresult`,e)}get ontoolcancelled(){return this.getEventHandler(`toolcancelled`)}set ontoolcancelled(e){this.setEventHandler(`toolcancelled`,e)}get onhostcontextchanged(){return this.getEventHandler(`hostcontextchanged`)}set onhostcontextchanged(e){this.setEventHandler(`hostcontextchanged`,e)}_onteardown;get onteardown(){return this._onteardown}set onteardown(e){this.warnIfRequestHandlerReplaced(`onteardown`,this._onteardown,e),this._onteardown=e,this.replaceRequestHandler(jv,(e,t)=>{if(!this._onteardown)throw Error(`No onteardown handler set`);return this._onteardown(e.params,t)})}_oncalltool;get oncalltool(){return this._oncalltool}set oncalltool(e){this.warnIfRequestHandlerReplaced(`oncalltool`,this._oncalltool,e),this._oncalltool=e,this.replaceRequestHandler(C_,(e,t)=>{if(!this._oncalltool)throw Error(`No oncalltool handler set`);return this._oncalltool(e.params,t)})}_onlisttools;get onlisttools(){return this._onlisttools}set onlisttools(e){this.warnIfRequestHandlerReplaced(`onlisttools`,this._onlisttools,e),this._onlisttools=e,this.replaceRequestHandler(y_,(e,t)=>{if(!this._onlisttools)throw Error(`No onlisttools handler set`);return this._onlisttools(e.params,t)})}assertCapabilityForMethod(e){switch(e){case`sampling/createMessage`:if(!this._hostCapabilities?.sampling)throw Error(`Host does not support sampling (required for ${e})`);break}}assertRequestHandlerCapability(e){switch(e){case`tools/call`:case`tools/list`:if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${e})`);return;case`ping`:case`ui/resource-teardown`:return;default:throw Error(`No handler for method ${e} registered`)}}assertNotificationCapability(e){}assertTaskCapability(e){throw Error(`Tasks are not supported in MCP Apps`)}assertTaskHandlerCapability(e){throw Error(`Task handlers are not supported in MCP Apps`)}async callServerTool(e,t){if(this._assertInitialized(`callServerTool`),typeof e==`string`)throw Error(`callServerTool() expects an object as its first argument, but received a string (\"${e}\"). Did you mean: callServerTool({ name: \"${e}\", arguments: { ... } })?`);return await this.request({method:`tools/call`,params:e},x_,{onprogress:()=>{},resetTimeoutOnProgress:!0,...t})}async readServerResource(e,t){return this._assertInitialized(`readServerResource`),await this.request({method:`resources/read`,params:e},Kg,t)}async listServerResources(e,t){return this._assertInitialized(`listServerResources`),await this.request({method:`resources/list`,params:e},Bg,t)}async createSamplingMessage(e,t){this._assertInitialized(`createSamplingMessage`);let n=e.tools?z_:R_;return await this.request({method:`sampling/createMessage`,params:e},n,t)}sendMessage(e,t){return this._assertInitialized(`sendMessage`),this.request({method:`ui/message`,params:e},Cv,t)}sendLog(e){return this.notification({method:`notifications/message`,params:e})}updateModelContext(e,t){return this._assertInitialized(`updateModelContext`),this.request({method:`ui/update-model-context`,params:e},Zh,t)}openLink(e,t){return this._assertInitialized(`openLink`),this.request({method:`ui/open-link`,params:e},xv,t)}sendOpenLink=this.openLink;downloadFile(e,t){return this._assertInitialized(`downloadFile`),this.request({method:`ui/download-file`,params:e},Sv,t)}requestTeardown(e={}){return this.notification({method:`ui/notifications/request-teardown`,params:e})}requestDisplayMode(e,t){return this._assertInitialized(`requestDisplayMode`),this.request({method:`ui/request-display-mode`,params:e},Fv,t)}sendSizeChanged(e){return this.notification({method:`ui/notifications/size-changed`,params:e})}setupSizeChangedNotifications(){let e=!1,t=0,n=0,r=()=>{e||(e=!0,requestAnimationFrame(()=>{e=!1;let r=document.documentElement,i=r.style.height;r.style.height=`max-content`;let a=Math.ceil(r.getBoundingClientRect().height);r.style.height=i;let o=Math.ceil(window.innerWidth);(o!==t||a!==n)&&(t=o,n=a,this.sendSizeChanged({width:o,height:a}))}))};r();let i=new ResizeObserver(r);return i.observe(document.documentElement),i.observe(document.body),()=>i.disconnect()}async connect(e=new _v(window.parent,window.parent),t){if(this.transport)throw Error(`App is already connected. Call close() before connecting again.`);this._initializedSent=!1,await super.connect(e);try{let e=await this.request({method:`ui/initialize`,params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:gv}},Bv,t);if(e===void 0)throw Error(`Server sent invalid initialize result: ${e}`);this._hostCapabilities=e.hostCapabilities,this._hostInfo=e.hostInfo,this._hostContext=e.hostContext,await this.notification({method:`ui/notifications/initialized`}),this._initializedSent=!0,this.options?.autoResize&&this.setupSizeChangedNotifications()}catch(e){throw this.close(),e}}};function Yv({appInfo:e,capabilities:t,onAppCreated:n,autoResize:r=!0,strict:i}){let[a,o]=(0,mv.useState)(null),[s,c]=(0,mv.useState)(!1),[l,u]=(0,mv.useState)(null);return(0,mv.useEffect)(()=>{let a=!0,s;async function l(){try{let l=new _v(window.parent,window.parent);if(s=new Jv(e,t,{autoResize:r,strict:i}),n?.(s),await s.connect(l),!a){s.close();return}o(s),c(!0),u(null)}catch(e){a&&(o(null),c(!1),u(e instanceof Error?e:Error(`Failed to connect`)))}}return l(),()=>{a=!1,s?.close()}},[]),{app:a,isConnected:s,error:l}}function Xv(){let[e,t]=(0,mv.useState)(Wv);return(0,mv.useEffect)(()=>{let e=new MutationObserver(()=>{t(Wv())});return e.observe(document.documentElement,{attributes:!0,attributeFilter:[`data-theme`,`class`],characterData:!1,childList:!1,subtree:!1}),()=>e.disconnect()},[]),e}function Zv(e,t){let n=(0,mv.useRef)(!1);(0,mv.useEffect)(()=>{n.current||(t?.theme&&Gv(t.theme),t?.styles?.variables&&Kv(t.styles.variables),(t?.theme||t?.styles?.variables)&&(n.current=!0))},[t]),(0,mv.useEffect)(()=>{if(!e)return;let t=e=>{e.theme&&Gv(e.theme),e.styles?.variables&&Kv(e.styles.variables)};return e.addEventListener(`hostcontextchanged`,t),()=>e.removeEventListener(`hostcontextchanged`,t)},[e])}function Qv(e,t){let n=(0,mv.useRef)(!1);(0,mv.useEffect)(()=>{n.current||t?.styles?.css?.fonts&&(qv(t.styles.css.fonts),n.current=!0)},[t]),(0,mv.useEffect)(()=>{if(!e)return;let t=e=>{e.styles?.css?.fonts&&qv(e.styles.css.fonts)};return e.addEventListener(`hostcontextchanged`,t),()=>e.removeEventListener(`hostcontextchanged`,t)},[e])}function $v(e,t){Zv(e,t),Qv(e,t)}var ey=`Tool call failed`;function ty(e){if(e.structuredContent!==void 0)return e.structuredContent;let t=e.content?.find(e=>e.type===`text`);if(t?.type===`text`)try{return JSON.parse(t.text)}catch{return{success:!e.isError,data:t.text}}}function ny(e){let t=[e.error?.trim()||ey];if(e.code&&t.push(`[${e.code}]`),e.details&&Object.keys(e.details).length>0)try{t.push(JSON.stringify(e.details))}catch{t.push(String(e.details))}return t.join(` `)}function ry(e){let t=ty(e);if(typeof t!=`object`||!t)return{data:void 0,error:e.isError?ey:void 0};let n=t;return typeof n.success==`boolean`?e.isError===!0||n.success===!1?{data:void 0,error:ny(n)}:{data:n.data,error:void 0,...iy(n)}:{data:e.isError?void 0:t,error:e.isError?ey:void 0}}function iy(e){return{...typeof e.totalCount==`number`?{totalCount:e.totalCount}:{},...typeof e.hasNextPage==`boolean`?{hasNextPage:e.hasNextPage}:{},...typeof e.nextCursor==`string`&&e.nextCursor.length>0?{nextCursor:e.nextCursor}:{}}}function ay({appInfo:e,capabilities:t={}}){let[n,r]=(0,mv.useState)(void 0),[i,a]=(0,mv.useState)(void 0),[o,s]=(0,mv.useState)(!1),c=(0,mv.useRef)(0),l=(0,mv.useRef)(0),{app:u,isConnected:d,error:f}=Yv({appInfo:e,capabilities:t,autoResize:!0,onAppCreated:e=>{e.addEventListener(`toolresult`,e=>{let t=ry(e);t.error!==void 0&&console.error(`[mcp-app] tool result error`,t.error,e),r(t.data),a(t.error)}),e.addEventListener(`toolcancelled`,e=>{let t=e.reason??`Tool call cancelled`;console.error(`[mcp-app] tool cancelled`,t,e),a(t),l.current+=1,c.current=0,s(!1)})}});return $v(u,u?.getHostContext()),{app:u,isConnected:d,connectionError:f,theme:Xv(),data:n,toolError:i,isCallingTool:o,callTool:(0,mv.useCallback)(async(e,t)=>{if(!u)throw Error(`Cannot call \"${e}\" before the app is connected to its host`);l.current+=1;let n=l.current;c.current+=1,s(!0);try{let i=await u.callServerTool({name:e,arguments:t??{}}),o=ry(i);return o.error!==void 0&&console.error(`[mcp-app] callTool \"${e}\" failed`,o.error,i),n===l.current&&(r(o.data),a(o.error)),o.error===void 0?o.data:void 0}finally{c.current=Math.max(0,c.current-1),c.current===0&&s(!1)}},[u])}}var oy=n((e=>{var t=Symbol.for(`react.transitional.element`);function n(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.jsx=n,e.jsxs=n})),sy=n(((e,t)=>{t.exports=oy()}));function cy(e){return e}var ly=1.4,uy=2.55/ly,dy=4.4/ly,fy=.48/ly,py=`cubic-bezier(0.11, 0.41, 0.97, 0.55)`,my=2.4/ly,hy=1.5/ly,gy=.7/ly,_y=.35/ly,vy=.38,yy=.02,by=18.5,xy=18.5,Sy=7.3,Cy=12.2,wy=17.1,Ty=2.5,Ey=`0 0 37 37`,Dy=10.3,Oy=`${by-Dy} ${xy-Dy} ${Dy*2} ${Dy*2}`;function ky(e,t){let n=(t-90)*Math.PI/180;return{x:by+e*Math.cos(n),y:xy+e*Math.sin(n)}}function Ay(e,t,n){let r=ky(e,t),i=ky(e,n),a=+(((n-t)%360+360)%360>180);return`M ${r.x} ${r.y} A ${e} ${e} 0 ${a} 1 ${i.x} ${i.y}`}function jy(e,t,n){let r=360/t;return Array.from({length:t},(t,i)=>Ay(e,i*r,i*r+n))}var My=jy(Cy,5,52),Ny=jy(wy,10,22);function Py(e){let t=Math.sin(e*12.9898)*43758.5453;return t-Math.floor(t)}function Fy(e,t){let n=Py(e*17.13+t*91.7)*fy,r=uy+Py(e*23.71+t*53.9)*(dy-uy);return{animationDelay:`${n}s`,animationDuration:`${r}s`}}function Iy(e,t){return{width:`${t}px`,height:`${t}px`,\"--transcend-logo-spinner-trim-duration\":`${4.964285714285714/2}s`,\"--transcend-logo-spinner-trim-ease\":py,\"--transcend-logo-spinner-inner-duration\":`${e?hy:my}s`,\"--transcend-logo-spinner-fill-duration\":`${e?_y:gy}s`,\"--transcend-logo-spinner-inner-tip\":`${yy} ${1-yy}`,\"--transcend-logo-spinner-inner-rest\":`${1-vy} ${vy}`}}var $=sy(),Ly=cy({Default:`default`,Small:`small`});function Ry({variant:e=Ly.Default,size:t,color:n=`var(--color-on-card-subtle)`,trackColor:r=`var(--color-card-line)`,label:i=`Loading`}){let a=e===Ly.Small,o=(0,$.jsx)(`svg`,{className:`block overflow-visible`,style:Iy(a,t??(a?20:55)),viewBox:a?Oy:Ey,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,\"aria-hidden\":`true`,children:(0,$.jsxs)(`g`,{strokeWidth:a?4:Ty,strokeLinecap:`round`,fill:`none`,children:[(0,$.jsxs)(`g`,{transform:`rotate(-90 ${by} ${xy})`,children:[(0,$.jsx)(`circle`,{cx:by,cy:xy,r:Sy,stroke:r}),(0,$.jsx)(`circle`,{className:`transcend-logo-spinner-inner`,cx:by,cy:xy,r:Sy,stroke:n,pathLength:1})]}),a?null:[{segments:My,seed:2,name:`middle`},{segments:Ny,seed:3,name:`outer`}].map(({segments:e,seed:t,name:i})=>e.map((e,a)=>(0,$.jsxs)(`g`,{children:[(0,$.jsx)(`path`,{d:e,stroke:r}),(0,$.jsx)(`path`,{className:`transcend-logo-spinner-trim`,d:e,stroke:n,pathLength:1,style:Fy(t,a)})]},`${i}-${a}`)))]})});return a?(0,$.jsx)(`span`,{className:`inline-flex items-center justify-center leading-none`,role:`status`,\"aria-label\":i,\"aria-busy\":`true`,children:o}):(0,$.jsxs)(`div`,{className:`flex flex-1 flex-col items-center justify-center gap-3 py-8`,role:`status`,\"aria-label\":i,\"aria-busy\":`true`,children:[o,i?(0,$.jsx)(`p`,{className:`text-sm text-on-card-muted`,\"aria-hidden\":`true`,children:i}):null]})}var zy={1:`grid-cols-1`,2:`grid-cols-1 @min-[24rem]:grid-cols-2`,3:`grid-cols-1 @min-[24rem]:grid-cols-2 @min-[36rem]:grid-cols-3`,4:`grid-cols-1 @min-[24rem]:grid-cols-2 @min-[48rem]:grid-cols-4`};function By({columns:e,children:t}){return(0,$.jsx)(`div`,{className:`@container`,children:(0,$.jsx)(`div`,{className:`grid gap-3 ${zy[e]}`,children:t})})}var Vy=cy({Eyebrow:`eyebrow`,Title:`title`,Section:`section`}),Hy={[Vy.Eyebrow]:`text-sm font-semibold tracking-wide text-on-card-muted uppercase`,[Vy.Title]:`text-heading-md font-semibold text-on-card`,[Vy.Section]:`text-heading-sm font-semibold text-on-card`};function Uy({text:e,variant:t=Vy.Title}){return(0,$.jsx)(`h2`,{className:Hy[t],children:e})}var Wy=cy({Compact:`compact`,Number:`number`,Percent:`percent`}),Gy=cy({Positive:`positive`,Negative:`negative`,Neutral:`neutral`}),Ky={[Gy.Positive]:`text-success`,[Gy.Negative]:`text-danger`,[Gy.Neutral]:`text-on-card-muted`};function qy(e,t){let n=t??Wy.Compact;return n===Wy.Percent?new Intl.NumberFormat(`en`,{style:`percent`,maximumFractionDigits:1}).format(e):n===Wy.Number?new Intl.NumberFormat(`en`,{maximumFractionDigits:2}).format(e):new Intl.NumberFormat(`en`,{notation:`compact`,maximumFractionDigits:2}).format(e)}function Jy({label:e,value:t,format:n,note:r}){let i=qy(t,n);return(0,$.jsxs)(`article`,{className:`flex flex-col gap-1 rounded-lg border border-card-line bg-card px-4 py-4 shadow-sm`,children:[(0,$.jsx)(`p`,{className:`text-sm font-medium text-on-card-muted`,children:e}),(0,$.jsx)(`p`,{className:`text-metric font-semibold text-on-card tabular-nums`,children:i}),r?(0,$.jsx)(`p`,{className:`mt-1 text-sm ${Ky[r.tone]}`,children:r.text}):null]})}var Yy=cy({Brand:`brand`,Success:`success`,Warning:`warning`,Danger:`danger`,Neutral:`neutral`}),Xy={[Yy.Brand]:`bg-fill-brand`,[Yy.Success]:`bg-fill-success`,[Yy.Warning]:`bg-fill-warning`,[Yy.Danger]:`bg-fill-danger`,[Yy.Neutral]:`bg-fill-neutral`};function Zy({label:e,segments:t,caption:n}){let r=t.reduce((e,t)=>e+Math.max(0,t.value),0),i=r>0?r:1;return(0,$.jsxs)(`section`,{className:`flex flex-col gap-3 rounded-lg border border-card-line bg-card px-4 py-4 shadow-sm`,children:[(0,$.jsx)(`h3`,{className:`text-heading-sm font-semibold text-on-card`,children:e}),(0,$.jsx)(`div`,{className:`flex h-2.5 overflow-hidden rounded-full bg-card-sunken`,role:`img`,\"aria-label\":e,children:t.map(e=>{let t=Math.max(0,e.value)/i*100;return t<=0?null:(0,$.jsx)(`div`,{className:Xy[e.tone],style:{width:`${t}%`},title:`${e.label}: ${e.value}`},`${e.label}-${e.tone}`)})}),(0,$.jsx)(`ul`,{className:`flex flex-wrap gap-x-5 gap-y-1 text-sm text-on-card-muted`,children:t.map(e=>(0,$.jsxs)(`li`,{className:`flex items-center gap-1.5`,children:[(0,$.jsx)(`span`,{className:`inline-block size-2.5 rounded-full ${Xy[e.tone]}`,\"aria-hidden\":`true`}),(0,$.jsxs)(`span`,{children:[e.label,` `,(0,$.jsx)(`span`,{className:`font-semibold tabular-nums text-on-card`,children:e.value})]})]},`${e.label}-legend`))}),n?(0,$.jsx)(`p`,{className:`text-sm text-on-card-muted`,children:n}):null]})}var Qy=`mx-auto w-full max-w-view rounded-lg bg-surface-raised px-6 py-5 shadow-sm`,$y=`mb-1 text-heading-md font-semibold text-content`,eb=`text-sm text-content-muted`;function tb({message:e,detail:t,title:n=`Could not reach the host`}){return(0,$.jsxs)(`section`,{className:`${Qy} border-l-4 border-l-danger`,role:`alert`,children:[(0,$.jsx)(`h1`,{className:$y,children:n}),(0,$.jsx)(`p`,{className:`text-sm text-danger whitespace-pre-wrap break-words`,children:e}),t?(0,$.jsx)(`div`,{className:`${eb} mt-2`,children:t}):null]})}var nb=d(),rb=`mx-auto flex w-full max-w-view flex-col gap-4 rounded-lg bg-card-sunken px-4 py-4`;function ib(e){return e?(e.liveCount??0)+(e.needReviewCount??0)+(e.junkCount??0):0}function ab(e){return[{label:`Live`,value:e?.liveCount??0,tone:Yy.Success},{label:`Needs review`,value:e?.needReviewCount??0,tone:Yy.Warning},{label:`Junk`,value:e?.junkCount??0,tone:Yy.Danger}]}function ob(e,t){return`${Math.round(e/t*100)}%`}function sb(e){let t=ib(e);return t===0?{text:`Nothing scanned yet`,tone:Gy.Neutral}:(e?.needReviewCount??0)===0?{text:`Fully triaged`,tone:Gy.Positive}:{text:`${ob(e?.liveCount??0,t)} live`,tone:Gy.Neutral}}function cb(e,t){if(t!==0)return e===0?{text:`Nothing waiting`,tone:Gy.Positive}:{text:`${ob(e,t)} of inventory`,tone:Gy.Neutral}}function lb(){let{data:e,isConnected:t,connectionError:n,toolError:r}=ay({appInfo:{name:`transcend-consent-inventory-stats`,version:`1.0.0`}});if(n)return(0,$.jsx)(tb,{message:n.message});if(r!==void 0&&e===void 0)return(0,$.jsxs)(`div`,{className:rb,children:[(0,$.jsx)(Uy,{text:`Consent Inventory triage`,variant:Vy.Title}),(0,$.jsx)(`p`,{className:`text-sm text-danger`,role:`alert`,children:r})]});if(!t||e===void 0)return(0,$.jsxs)(`div`,{className:rb,children:[(0,$.jsx)(Uy,{text:`Consent Inventory triage`,variant:Vy.Title}),(0,$.jsx)(Ry,{label:t?`Loading inventory…`:`Connecting to the host…`})]});let i=ib(e.cookies),a=ib(e.dataFlows),o=(e.cookies?.needReviewCount??0)+(e.dataFlows?.needReviewCount??0);return(0,$.jsxs)(`div`,{className:rb,children:[(0,$.jsx)(Uy,{text:`Consent Inventory triage`,variant:Vy.Title}),r?(0,$.jsx)(`p`,{className:`text-sm text-danger`,role:`alert`,children:r}):null,(0,$.jsxs)(By,{columns:3,children:[(0,$.jsx)(Jy,{label:`Cookies`,value:i,format:Wy.Number,note:sb(e.cookies)}),(0,$.jsx)(Jy,{label:`Data flows`,value:a,format:Wy.Number,note:sb(e.dataFlows)}),(0,$.jsx)(Jy,{label:`Needs review`,value:o,format:Wy.Number,note:cb(o,i+a)})]}),(0,$.jsxs)(By,{columns:1,children:[(0,$.jsx)(Zy,{label:`Cookie triage`,segments:ab(e.cookies)}),(0,$.jsx)(Zy,{label:`Data flow triage`,segments:ab(e.dataFlows)})]})]})}var ub=document.getElementById(`root`);if(!ub)throw Error(`MCP App view \"inventory-stats\" could not start: the document has no #root container`);(0,nb.createRoot)(ub).render((0,$.jsx)(mv.StrictMode,{children:(0,$.jsx)(lb,{})}))})();\n <\/script>\n </body>\n</html>\n",
|
|
319
|
-
moduleUrl: import.meta.url,
|
|
320
|
-
view: "inventory-stats"
|
|
321
|
-
}),
|
|
322
|
-
prefersBorder: false
|
|
323
|
-
});
|
|
324
|
-
//#endregion
|
|
325
|
-
//#region src/getDataFlowCount.ts
|
|
326
|
-
/**
|
|
327
|
-
* Fetch `dataFlows.totalCount` without paging nodes.
|
|
328
|
-
*
|
|
329
|
-
* Uses `first: 1` so the payload stays small. The list API hides CSP rows
|
|
330
|
-
* (same as the Consent Manager table), so these counts match what users see.
|
|
331
|
-
*/
|
|
332
|
-
async function getDataFlowCount(graphql, airgapBundleId, filterBy) {
|
|
333
|
-
return (await graphql.makeRequest(DATA_FLOWS, {
|
|
334
|
-
input: { airgapBundleId },
|
|
335
|
-
first: 1,
|
|
336
|
-
offset: 0,
|
|
337
|
-
filterBy
|
|
338
|
-
})).dataFlows.totalCount;
|
|
339
|
-
}
|
|
340
|
-
//#endregion
|
|
341
|
-
//#region src/tools/consent_get_inventory_stats.ts
|
|
342
|
-
const GetInventoryStatsSchema = z.object({});
|
|
343
|
-
/** Shared by the baseline tool and the MCP App variant. */
|
|
344
|
-
async function inventoryStatsPayload(clients) {
|
|
345
|
-
const airgapBundleId = await resolveAirgapBundleId(clients.graphql);
|
|
346
|
-
const [cookieData, needReviewCount, liveCount, junkCount] = await Promise.all([
|
|
347
|
-
clients.graphql.makeRequest(COOKIE_STATS, { input: { airgapBundleId } }),
|
|
348
|
-
getDataFlowCount(clients.graphql, airgapBundleId, { status: ConsentTrackerStatus.NeedsReview }),
|
|
349
|
-
getDataFlowCount(clients.graphql, airgapBundleId, {
|
|
350
|
-
status: ConsentTrackerStatus.Live,
|
|
351
|
-
isJunk: false
|
|
352
|
-
}),
|
|
353
|
-
getDataFlowCount(clients.graphql, airgapBundleId, {
|
|
354
|
-
status: ConsentTrackerStatus.Live,
|
|
355
|
-
isJunk: true
|
|
356
|
-
})
|
|
357
|
-
]);
|
|
358
|
-
return createToolResult(true, {
|
|
359
|
-
cookies: cookieData.cookieStats,
|
|
360
|
-
dataFlows: {
|
|
361
|
-
liveCount,
|
|
362
|
-
needReviewCount,
|
|
363
|
-
junkCount
|
|
364
|
-
}
|
|
365
|
-
});
|
|
366
|
-
}
|
|
367
|
-
/**
|
|
368
|
-
* Cookie and data-flow inventory triage counts.
|
|
369
|
-
*
|
|
370
|
-
* Renders as an interactive dashboard on hosts that support MCP Apps, and
|
|
371
|
-
* returns plain JSON everywhere else.
|
|
372
|
-
*/
|
|
373
|
-
function createConsentGetInventoryStatsTool(clients) {
|
|
374
|
-
return defineToolWithCapabilities({
|
|
375
|
-
name: "consent_get_inventory_stats",
|
|
376
|
-
description: "Get cookie and data-flow inventory triage counts: live (approved), needs review, and junk. Counts match the Consent Manager tables and the default consent_list_cookies / consent_list_data_flows filters (CSP data flows are omitted, same as the UI). This is inventory status, not consent analytics — use consent_get_aggregate_analytics or consent_get_timeseries_analytics for opt-in/out and signal metrics.",
|
|
377
|
-
category: "Consent Management",
|
|
378
|
-
readOnly: true,
|
|
379
|
-
annotations: {
|
|
380
|
-
readOnlyHint: true,
|
|
381
|
-
destructiveHint: false,
|
|
382
|
-
idempotentHint: true
|
|
383
|
-
},
|
|
384
|
-
zodSchema: GetInventoryStatsSchema,
|
|
385
|
-
handler: async () => inventoryStatsPayload(clients),
|
|
386
|
-
variants: { [McpClientCapability.McpApp]: {
|
|
387
|
-
resource: INVENTORY_STATS_APP_RESOURCE,
|
|
388
|
-
handler: async () => inventoryStatsPayload(clients)
|
|
389
|
-
} }
|
|
390
|
-
});
|
|
391
|
-
}
|
|
392
|
-
//#endregion
|
|
393
|
-
//#region src/tools/consent_get_preferences.ts
|
|
394
|
-
const GetPreferencesSchema = z.object({
|
|
395
|
-
identifier: z.string().describe("User identifier (e.g., email, user ID)"),
|
|
396
|
-
partition: z.string().optional().describe("Partition/organization context (optional)")
|
|
397
|
-
});
|
|
398
|
-
function createConsentGetPreferencesTool(clients) {
|
|
399
|
-
const { rest } = clients;
|
|
400
|
-
return defineTool({
|
|
401
|
-
name: "consent_get_preferences",
|
|
402
|
-
description: "Get consent preferences for a specific user/identifier",
|
|
403
|
-
category: "Consent Management",
|
|
404
|
-
readOnly: true,
|
|
405
|
-
annotations: {
|
|
406
|
-
readOnlyHint: true,
|
|
407
|
-
destructiveHint: false,
|
|
408
|
-
idempotentHint: true
|
|
409
|
-
},
|
|
410
|
-
requireSombra: true,
|
|
411
|
-
zodSchema: GetPreferencesSchema,
|
|
412
|
-
handler: async ({ identifier, partition }) => {
|
|
413
|
-
const result = await rest.getConsentPreferences(identifier, partition);
|
|
414
|
-
if (!result) return createToolResult(true, {
|
|
415
|
-
found: false,
|
|
416
|
-
message: "No consent preferences found for this identifier"
|
|
417
|
-
});
|
|
418
|
-
return createToolResult(true, {
|
|
419
|
-
found: true,
|
|
420
|
-
preferences: result
|
|
421
|
-
});
|
|
422
|
-
}
|
|
423
|
-
});
|
|
424
|
-
}
|
|
425
|
-
//#endregion
|
|
426
|
-
//#region src/tools/consent_get_timeseries_analytics.ts
|
|
427
|
-
const GetTimeseriesAnalyticsSchema = z.object({
|
|
428
|
-
metric: airgapBundleAnalyticsMetricSchema.describe("Analytics metric to query. PAGE_VIEWS for daily page-view volume; SITE_SESSIONS for sessions; SIGNAL_DETECTED for GPC/DNT signal counts over time."),
|
|
429
|
-
start: z.string().optional().describe("Start datetime (ISO 8601). Defaults to `days` lookback from end."),
|
|
430
|
-
end: z.string().optional().describe("End datetime (ISO 8601). Defaults to now."),
|
|
431
|
-
days: z.coerce.number().min(1).max(365).optional().describe("Lookback window in days when start is omitted (default: 7)."),
|
|
432
|
-
bin_interval: z.nativeEnum(AirgapBundleAnalyticsBinInterval).optional().default(AirgapBundleAnalyticsBinInterval.Hourly).describe("Time bin size: 1m, 1h, or 1d (default: 1h).")
|
|
433
|
-
});
|
|
434
|
-
function createConsentGetTimeseriesAnalyticsTool(clients) {
|
|
435
|
-
return defineTool({
|
|
436
|
-
name: "consent_get_timeseries_analytics",
|
|
437
|
-
description: "Query timeseries consent analytics via airgapBundleTimeseriesAnalytics. Use PAGE_VIEWS or SITE_SESSIONS for traffic volume; SIGNAL_DETECTED for privacy signal counts. Requires ViewConsentManager API key scope.",
|
|
438
|
-
category: "Consent Management",
|
|
439
|
-
readOnly: true,
|
|
440
|
-
annotations: {
|
|
441
|
-
readOnlyHint: true,
|
|
442
|
-
destructiveHint: false,
|
|
443
|
-
idempotentHint: true
|
|
444
|
-
},
|
|
445
|
-
zodSchema: GetTimeseriesAnalyticsSchema,
|
|
446
|
-
handler: async ({ metric, start, end, days, bin_interval }) => {
|
|
447
|
-
const airgapBundleId = await resolveAirgapBundleId(clients.graphql);
|
|
448
|
-
const range = resolveAnalyticsDateRange({
|
|
449
|
-
start,
|
|
450
|
-
end,
|
|
451
|
-
days
|
|
452
|
-
});
|
|
453
|
-
const items = (await clients.graphql.makeRequest(AIRGAP_BUNDLE_TIMESERIES_ANALYTICS, {
|
|
454
|
-
id: airgapBundleId,
|
|
455
|
-
input: {
|
|
456
|
-
metric,
|
|
457
|
-
start: range.startEpoch,
|
|
458
|
-
end: range.endEpoch,
|
|
459
|
-
binInterval: bin_interval
|
|
460
|
-
}
|
|
461
|
-
})).airgapBundleTimeseriesAnalytics.items;
|
|
462
|
-
return createToolResult(true, {
|
|
463
|
-
airgapBundleId,
|
|
464
|
-
metric,
|
|
465
|
-
binInterval: bin_interval,
|
|
466
|
-
period: {
|
|
467
|
-
start: range.startIso,
|
|
468
|
-
end: range.endIso,
|
|
469
|
-
startEpoch: range.startEpoch,
|
|
470
|
-
endEpoch: range.endEpoch
|
|
471
|
-
},
|
|
472
|
-
items,
|
|
473
|
-
totalRows: items.length
|
|
474
|
-
});
|
|
475
|
-
}
|
|
476
|
-
});
|
|
477
|
-
}
|
|
478
|
-
//#endregion
|
|
479
|
-
//#region src/tools/consent_list_airgap_bundles.ts
|
|
480
|
-
const ListAirgapBundlesSchema = EmptySchema;
|
|
481
|
-
function createConsentListAirgapBundlesTool(clients) {
|
|
482
|
-
return defineTool({
|
|
483
|
-
name: "consent_list_airgap_bundles",
|
|
484
|
-
description: "Get the consent manager (airgap bundle) configured for your organization. Returns the bundle ID, URLs, configuration, and domains.",
|
|
485
|
-
category: "Consent Management",
|
|
486
|
-
readOnly: true,
|
|
487
|
-
annotations: {
|
|
488
|
-
readOnlyHint: true,
|
|
489
|
-
destructiveHint: false,
|
|
490
|
-
idempotentHint: true
|
|
491
|
-
},
|
|
492
|
-
zodSchema: ListAirgapBundlesSchema,
|
|
493
|
-
handler: async (_args) => {
|
|
494
|
-
return createToolResult(true, (await clients.graphql.makeRequest(FETCH_CONSENT_MANAGER, {})).consentManager.consentManager);
|
|
495
|
-
}
|
|
496
|
-
});
|
|
497
|
-
}
|
|
498
|
-
//#endregion
|
|
499
|
-
//#region src/tools/consent_list_cookies.ts
|
|
500
|
-
const ListCookiesSchema = OffsetPaginationSchema.extend({
|
|
501
|
-
status: z.nativeEnum(ConsentTrackerStatus).describe("Filter by status: NEEDS_REVIEW (triage) or LIVE (approved)"),
|
|
502
|
-
isJunk: z.boolean().optional().describe("Filter by junk status"),
|
|
503
|
-
showZeroActivity: z.boolean().optional().describe("Include zero-activity cookies. Omit so NEEDS_REVIEW totals match consent_get_inventory_stats; set true for the full never-active backlog."),
|
|
504
|
-
text: z.string().optional().describe("Search text filter"),
|
|
505
|
-
service: z.string().optional().describe("Filter by service name"),
|
|
506
|
-
trackingPurposes: z.array(z.string()).min(1).optional().describe("Purpose slugs from consent_list_purposes (e.g. Advertising)."),
|
|
507
|
-
minOccurrences: z.number().min(0).optional().describe("Minimum occurrence (traffic) count."),
|
|
508
|
-
lastDiscoveredAtBefore: z.string().optional().describe("ISO 8601 upper bound on lastDiscoveredAt."),
|
|
509
|
-
lastDiscoveredAtAfter: z.string().optional().describe("ISO 8601 lower bound on lastDiscoveredAt."),
|
|
510
|
-
orderField: z.nativeEnum(CookieOrderField).optional().describe("Sort field (e.g. occurrences)."),
|
|
511
|
-
orderDirection: z.nativeEnum(OrderDirection).optional().describe("Sort direction when orderField is set.")
|
|
512
|
-
});
|
|
513
|
-
function createConsentListCookiesTool(clients) {
|
|
514
|
-
return defineTool({
|
|
515
|
-
name: "consent_list_cookies",
|
|
516
|
-
description: "List cookies in your consent manager. Requires status: NEEDS_REVIEW (triage) or LIVE (approved). Returns name, service, purposes, occurrences, junk status. Filter via trackingPurposes, lastDiscoveredAtBefore/After, minOccurrences, orderField.",
|
|
517
|
-
category: "Consent Management",
|
|
518
|
-
readOnly: true,
|
|
519
|
-
annotations: {
|
|
520
|
-
readOnlyHint: true,
|
|
521
|
-
destructiveHint: false,
|
|
522
|
-
idempotentHint: true
|
|
523
|
-
},
|
|
524
|
-
zodSchema: ListCookiesSchema,
|
|
525
|
-
handler: async ({ limit, offset, status, isJunk, showZeroActivity, text, service, trackingPurposes, minOccurrences, lastDiscoveredAtBefore, lastDiscoveredAtAfter, orderField, orderDirection }) => {
|
|
526
|
-
const airgapBundleId = await resolveAirgapBundleId(clients.graphql);
|
|
527
|
-
const { nodes, totalCount } = (await clients.graphql.makeRequest(COOKIES, {
|
|
528
|
-
input: { airgapBundleId },
|
|
529
|
-
first: limit,
|
|
530
|
-
offset,
|
|
531
|
-
filterBy: {
|
|
532
|
-
status,
|
|
533
|
-
...isJunk !== void 0 ? { isJunk } : {},
|
|
534
|
-
...showZeroActivity !== void 0 ? { showZeroActivity } : {},
|
|
535
|
-
...text ? { text } : {},
|
|
536
|
-
...service ? { service } : {},
|
|
537
|
-
...trackingPurposes ? { trackingPurposes } : {},
|
|
538
|
-
...minOccurrences !== void 0 ? { minOccurrences } : {},
|
|
539
|
-
...lastDiscoveredAtBefore ? { lastDiscoveredAtBefore } : {},
|
|
540
|
-
...lastDiscoveredAtAfter ? { lastDiscoveredAtAfter } : {}
|
|
541
|
-
},
|
|
542
|
-
...orderField && orderDirection ? { orderBy: [{
|
|
543
|
-
field: orderField,
|
|
544
|
-
direction: orderDirection
|
|
545
|
-
}, ...orderField === CookieOrderField.Occurrences ? [{
|
|
546
|
-
field: CookieOrderField.Name,
|
|
547
|
-
direction: OrderDirection.Asc
|
|
548
|
-
}] : []] } : {}
|
|
549
|
-
})).cookies;
|
|
550
|
-
return createListResult(nodes, {
|
|
551
|
-
totalCount,
|
|
552
|
-
hasNextPage: derivePageInfo({
|
|
553
|
-
offset,
|
|
554
|
-
nodeCount: nodes.length,
|
|
555
|
-
totalCount
|
|
556
|
-
}).hasNextPage
|
|
557
|
-
});
|
|
558
|
-
}
|
|
559
|
-
});
|
|
560
|
-
}
|
|
561
|
-
//#endregion
|
|
562
|
-
//#region src/tools/consent_list_data_flows.ts
|
|
563
|
-
const ListDataFlowsSchema = OffsetPaginationSchema.extend({
|
|
564
|
-
status: z.nativeEnum(ConsentTrackerStatus).describe("Filter by status: NEEDS_REVIEW (triage) or LIVE (approved)"),
|
|
565
|
-
isJunk: z.boolean().optional().describe("Filter by junk status"),
|
|
566
|
-
showZeroActivity: z.boolean().optional().describe("Include zero-activity flows. Omit so NEEDS_REVIEW totals match consent_get_inventory_stats; set true for the full never-active backlog."),
|
|
567
|
-
text: z.string().optional().describe("Search text filter"),
|
|
568
|
-
service: z.string().optional().describe("Filter by service name"),
|
|
569
|
-
unmappedOnly: z.boolean().optional().describe("Only unmapped flows (no service). Useful with status=LIVE for approved orphans."),
|
|
570
|
-
type: z.nativeEnum(DataFlowScope).optional().describe("Filter by data flow scope type (e.g. HOST, PATH, REGEX, CSP)"),
|
|
571
|
-
trackingTypes: z.array(z.string()).min(1).optional().describe("Purpose slugs from consent_list_purposes (e.g. Advertising)."),
|
|
572
|
-
minOccurrences: z.number().min(0).optional().describe("Minimum occurrence (traffic) count."),
|
|
573
|
-
lastDiscoveredAtBefore: z.string().optional().describe("ISO 8601 upper bound on lastDiscoveredAt."),
|
|
574
|
-
lastDiscoveredAtAfter: z.string().optional().describe("ISO 8601 lower bound on lastDiscoveredAt."),
|
|
575
|
-
orderField: z.nativeEnum(DataFlowOrderField).optional().describe("Field to sort by"),
|
|
576
|
-
orderDirection: z.nativeEnum(OrderDirection).optional().describe("Sort direction: ASC or DESC")
|
|
577
|
-
});
|
|
578
|
-
function createConsentListDataFlowsTool(clients) {
|
|
579
|
-
return defineTool({
|
|
580
|
-
name: "consent_list_data_flows",
|
|
581
|
-
description: "List data flows (network requests) in your consent manager. Requires status: NEEDS_REVIEW (triage) or LIVE (approved). Returns value (URL/host), service, purposes, occurrences. Filter via unmappedOnly, type, trackingTypes, minOccurrences, lastDiscoveredAtBefore/After.",
|
|
582
|
-
category: "Consent Management",
|
|
583
|
-
readOnly: true,
|
|
584
|
-
annotations: {
|
|
585
|
-
readOnlyHint: true,
|
|
586
|
-
destructiveHint: false,
|
|
587
|
-
idempotentHint: true
|
|
588
|
-
},
|
|
589
|
-
zodSchema: ListDataFlowsSchema,
|
|
590
|
-
handler: async ({ limit, offset, status, isJunk, showZeroActivity, text, service, unmappedOnly, type, trackingTypes, minOccurrences, lastDiscoveredAtBefore, lastDiscoveredAtAfter, orderField, orderDirection }) => {
|
|
591
|
-
const airgapBundleId = await resolveAirgapBundleId(clients.graphql);
|
|
592
|
-
const { nodes, totalCount } = (await clients.graphql.makeRequest(DATA_FLOWS, {
|
|
593
|
-
input: { airgapBundleId },
|
|
594
|
-
first: limit,
|
|
595
|
-
offset,
|
|
596
|
-
filterBy: {
|
|
597
|
-
status,
|
|
598
|
-
...isJunk !== void 0 ? { isJunk } : {},
|
|
599
|
-
...showZeroActivity !== void 0 ? { showZeroActivity } : {},
|
|
600
|
-
...text ? { text } : {},
|
|
601
|
-
...unmappedOnly ? { service: "" } : service ? { service } : {},
|
|
602
|
-
...type ? { type } : {},
|
|
603
|
-
...trackingTypes ? { trackingTypes } : {},
|
|
604
|
-
...minOccurrences !== void 0 ? { minOccurrences } : {},
|
|
605
|
-
...lastDiscoveredAtBefore ? { lastDiscoveredAtBefore } : {},
|
|
606
|
-
...lastDiscoveredAtAfter ? { lastDiscoveredAtAfter } : {}
|
|
607
|
-
},
|
|
608
|
-
...orderField && orderDirection ? { orderBy: [{
|
|
609
|
-
field: orderField,
|
|
610
|
-
direction: orderDirection
|
|
611
|
-
}, ...orderField === DataFlowOrderField.Occurrences ? [{
|
|
612
|
-
field: DataFlowOrderField.Value,
|
|
613
|
-
direction: OrderDirection.Asc
|
|
614
|
-
}] : []] } : {}
|
|
615
|
-
})).dataFlows;
|
|
616
|
-
return createListResult(nodes, {
|
|
617
|
-
totalCount,
|
|
618
|
-
hasNextPage: derivePageInfo({
|
|
619
|
-
offset,
|
|
620
|
-
nodeCount: nodes.length,
|
|
621
|
-
totalCount
|
|
622
|
-
}).hasNextPage
|
|
623
|
-
});
|
|
624
|
-
}
|
|
625
|
-
});
|
|
626
|
-
}
|
|
627
|
-
//#endregion
|
|
628
|
-
//#region src/tools/consent_list_purposes.ts
|
|
629
|
-
const ListPurposesSchema = OffsetPaginationSchema;
|
|
630
|
-
function createConsentListPurposesTool(clients) {
|
|
631
|
-
return defineTool({
|
|
632
|
-
name: "consent_list_purposes",
|
|
633
|
-
description: "List all tracking purposes configured for consent management.",
|
|
634
|
-
category: "Consent Management",
|
|
635
|
-
readOnly: true,
|
|
636
|
-
annotations: {
|
|
637
|
-
readOnlyHint: true,
|
|
638
|
-
destructiveHint: false,
|
|
639
|
-
idempotentHint: true
|
|
640
|
-
},
|
|
641
|
-
zodSchema: ListPurposesSchema,
|
|
642
|
-
handler: async ({ limit, offset }) => {
|
|
643
|
-
const { nodes, totalCount } = (await clients.graphql.makeRequest(PURPOSES, {
|
|
644
|
-
first: limit,
|
|
645
|
-
offset
|
|
646
|
-
})).purposes;
|
|
647
|
-
return createListResult(nodes, {
|
|
648
|
-
totalCount,
|
|
649
|
-
hasNextPage: derivePageInfo({
|
|
650
|
-
offset,
|
|
651
|
-
nodeCount: nodes.length,
|
|
652
|
-
totalCount
|
|
653
|
-
}).hasNextPage
|
|
654
|
-
});
|
|
655
|
-
}
|
|
656
|
-
});
|
|
657
|
-
}
|
|
658
|
-
//#endregion
|
|
659
|
-
//#region src/tools/consent_list_regimes.ts
|
|
660
|
-
const ListRegimesSchema = OffsetPaginationSchema;
|
|
661
|
-
function createConsentListRegimesTool(clients) {
|
|
662
|
-
return defineTool({
|
|
663
|
-
name: "consent_list_regimes",
|
|
664
|
-
description: "List all consent experiences (regional regimes) configured for your organization. Returns experience name, regions, purposes, opted-out purposes, and view state.",
|
|
665
|
-
category: "Consent Management",
|
|
666
|
-
readOnly: true,
|
|
667
|
-
annotations: {
|
|
668
|
-
readOnlyHint: true,
|
|
669
|
-
destructiveHint: false,
|
|
670
|
-
idempotentHint: true
|
|
671
|
-
},
|
|
672
|
-
zodSchema: ListRegimesSchema,
|
|
673
|
-
handler: async ({ limit, offset }) => {
|
|
674
|
-
const data = await clients.graphql.makeRequest(EXPERIENCES, {
|
|
675
|
-
first: limit,
|
|
676
|
-
offset
|
|
677
|
-
});
|
|
678
|
-
const { totalCount } = data.experiences;
|
|
679
|
-
const nodes = data.experiences.nodes.slice(0, limit);
|
|
680
|
-
return createListResult(nodes, {
|
|
681
|
-
totalCount,
|
|
682
|
-
hasNextPage: derivePageInfo({
|
|
683
|
-
offset,
|
|
684
|
-
nodeCount: nodes.length,
|
|
685
|
-
totalCount
|
|
686
|
-
}).hasNextPage
|
|
687
|
-
});
|
|
688
|
-
}
|
|
689
|
-
});
|
|
690
|
-
}
|
|
691
|
-
//#endregion
|
|
692
|
-
//#region src/tools/consent_list_roc_records.ts
|
|
693
|
-
/** Minimum Sombra gateway version that serves POST /v1/preferences/{partition}/consent-records. */
|
|
694
|
-
const MIN_SOMBRA_VERSION_FOR_CONSENT_RECORDS = "7.578.4";
|
|
695
|
-
const ConsentListRocRecordsSchema = z.object({
|
|
696
|
-
partition: z.string().describe("The consent partition (airgap bundle id) the lookup is scoped to"),
|
|
697
|
-
identifier: z.string().describe("The identifier to query"),
|
|
698
|
-
identifierType: z.string().describe("The type of the identifier to query: email, user_id, phone, etc."),
|
|
699
|
-
limit: z.number().int().min(1).max(200).optional().describe("Maximum number of records to return (1-200); omit to return the full timeline"),
|
|
700
|
-
includeRawRequest: z.boolean().describe("Whether to include the raw request in the response")
|
|
701
|
-
});
|
|
702
|
-
/**
|
|
703
|
-
* Creates a tool that lists Record of Consent (ROC) records for a given user in a partition.
|
|
704
|
-
* ROC contains a user's historical, append only consent changes for a given partition.
|
|
705
|
-
* We only store records for a year after the event. Records are stored in descending order by timestamp.
|
|
706
|
-
*
|
|
707
|
-
* @param clients - The tool clients
|
|
708
|
-
* @returns The tool function
|
|
709
|
-
*/
|
|
710
|
-
function createConsentListRocRecordsTool(clients) {
|
|
711
|
-
const { rest } = clients;
|
|
712
|
-
return defineTool({
|
|
713
|
-
name: "consent_list_roc_records",
|
|
714
|
-
description: "List all ROC records for a given user in a partition.",
|
|
715
|
-
category: "Consent Management",
|
|
716
|
-
readOnly: true,
|
|
717
|
-
requireAuth: true,
|
|
718
|
-
requireSombra: true,
|
|
719
|
-
annotations: {
|
|
720
|
-
readOnlyHint: true,
|
|
721
|
-
destructiveHint: false,
|
|
722
|
-
idempotentHint: true
|
|
723
|
-
},
|
|
724
|
-
zodSchema: ConsentListRocRecordsSchema,
|
|
725
|
-
handler: async ({ partition, identifier: inputIdentifier, identifierType, limit, includeRawRequest }) => {
|
|
726
|
-
const identifier = {
|
|
727
|
-
name: identifierType,
|
|
728
|
-
value: inputIdentifier
|
|
729
|
-
};
|
|
730
|
-
let result;
|
|
731
|
-
try {
|
|
732
|
-
result = await rest.listRocRecords({
|
|
733
|
-
partition,
|
|
734
|
-
identifier,
|
|
735
|
-
limit,
|
|
736
|
-
includeRawRequest
|
|
737
|
-
});
|
|
738
|
-
} catch (error) {
|
|
739
|
-
if (error instanceof ToolError && error.code === ErrorCode.NOT_FOUND) throw new ToolError(ErrorCode.NOT_FOUND, `Consent-record lookup is unavailable on this Sombra gateway. This route requires Sombra >= ${MIN_SOMBRA_VERSION_FOR_CONSENT_RECORDS}; self-hosted gateways below that version do not serve it. Original error: ${error.message}`, false);
|
|
740
|
-
throw error;
|
|
741
|
-
}
|
|
742
|
-
if (result.records.length === 0) return createToolResult(true, {
|
|
743
|
-
found: false,
|
|
744
|
-
message: "No ROC records found for this identifier"
|
|
745
|
-
});
|
|
746
|
-
return createToolResult(true, {
|
|
747
|
-
records: result.records,
|
|
748
|
-
containsInitialRecord: result.containsInitialRecord
|
|
749
|
-
});
|
|
750
|
-
}
|
|
751
|
-
});
|
|
752
|
-
}
|
|
753
|
-
//#endregion
|
|
754
|
-
//#region src/tools/consent_update_cookies.ts
|
|
755
|
-
const UpdateCookieItemSchema = z.object({
|
|
756
|
-
name: z.string().describe("Cookie name (used as the identifier for upsert)"),
|
|
757
|
-
trackingPurposes: z.array(z.string()).optional().describe("Tracking purpose slugs (e.g., \"Advertising\", \"Analytics\")"),
|
|
758
|
-
description: z.string().optional().describe("Cookie description"),
|
|
759
|
-
service: z.string().optional().describe("Service/integration name"),
|
|
760
|
-
isJunk: z.boolean().optional().describe("Mark as junk"),
|
|
761
|
-
status: z.nativeEnum(ConsentTrackerStatus).optional().describe("Set status to LIVE (approve) or NEEDS_REVIEW")
|
|
762
|
-
});
|
|
763
|
-
const UpdateCookiesSchema = z.object({ cookies: z.array(UpdateCookieItemSchema).min(1).describe("Cookies to update") });
|
|
764
|
-
function createConsentUpdateCookiesTool(clients) {
|
|
765
|
-
return defineTool({
|
|
766
|
-
name: "consent_update_cookies",
|
|
767
|
-
description: "Update one or more cookies. Use to approve (status=LIVE), junk (isJunk=true), assign tracking purposes, or set a service. The cookie \"name\" field is the identifier for upsert — existing cookies with matching names will be updated.",
|
|
768
|
-
category: "Consent Management",
|
|
769
|
-
readOnly: false,
|
|
770
|
-
annotations: {
|
|
771
|
-
readOnlyHint: false,
|
|
772
|
-
destructiveHint: true,
|
|
773
|
-
idempotentHint: true
|
|
774
|
-
},
|
|
775
|
-
zodSchema: UpdateCookiesSchema,
|
|
776
|
-
handler: async ({ cookies }) => {
|
|
777
|
-
const airgapBundleId = await resolveAirgapBundleId(clients.graphql);
|
|
778
|
-
const cookieInputs = cookies.map((c) => ({
|
|
779
|
-
name: c.name,
|
|
780
|
-
...c.trackingPurposes ? { trackingPurposes: c.trackingPurposes } : {},
|
|
781
|
-
...c.description !== void 0 ? { description: c.description } : {},
|
|
782
|
-
...c.service !== void 0 ? { service: c.service } : {},
|
|
783
|
-
...c.isJunk !== void 0 ? { isJunk: c.isJunk } : {},
|
|
784
|
-
...c.status !== void 0 ? { status: c.status } : {}
|
|
785
|
-
}));
|
|
786
|
-
await clients.graphql.makeRequest(UPDATE_OR_CREATE_COOKIES, {
|
|
787
|
-
airgapBundleId,
|
|
788
|
-
cookies: cookieInputs
|
|
789
|
-
});
|
|
790
|
-
return createToolResult(true, {
|
|
791
|
-
updated: cookieInputs.length,
|
|
792
|
-
cookies: cookieInputs.map((c) => ({
|
|
793
|
-
name: c.name,
|
|
794
|
-
status: c.status,
|
|
795
|
-
isJunk: c.isJunk,
|
|
796
|
-
trackingPurposes: c.trackingPurposes,
|
|
797
|
-
service: c.service
|
|
798
|
-
}))
|
|
799
|
-
});
|
|
800
|
-
}
|
|
801
|
-
});
|
|
802
|
-
}
|
|
803
|
-
//#endregion
|
|
804
|
-
//#region src/tools/consent_update_data_flows.ts
|
|
805
|
-
const UpdateDataFlowItemSchema = z.object({
|
|
806
|
-
id: z.string().describe("Data flow ID"),
|
|
807
|
-
trackingPurposes: z.array(z.string()).optional().describe("Tracking purpose slugs"),
|
|
808
|
-
description: z.string().optional().describe("Data flow description"),
|
|
809
|
-
service: z.string().optional().describe("Service/integration name"),
|
|
810
|
-
isJunk: z.boolean().optional().describe("Mark as junk"),
|
|
811
|
-
status: z.nativeEnum(ConsentTrackerStatus).optional().describe("Set status to LIVE (approve) or NEEDS_REVIEW")
|
|
812
|
-
});
|
|
813
|
-
const UpdateDataFlowsSchema = z.object({ dataFlows: z.array(UpdateDataFlowItemSchema).min(1).describe("Data flows to update") });
|
|
814
|
-
function createConsentUpdateDataFlowsTool(clients) {
|
|
815
|
-
return defineTool({
|
|
816
|
-
name: "consent_update_data_flows",
|
|
817
|
-
description: "Update one or more data flows. Use to approve (status=LIVE), junk (isJunk=true), assign tracking purposes, or set a service.",
|
|
818
|
-
category: "Consent Management",
|
|
819
|
-
readOnly: false,
|
|
820
|
-
annotations: {
|
|
821
|
-
readOnlyHint: false,
|
|
822
|
-
destructiveHint: true,
|
|
823
|
-
idempotentHint: true
|
|
824
|
-
},
|
|
825
|
-
zodSchema: UpdateDataFlowsSchema,
|
|
826
|
-
handler: async ({ dataFlows }) => {
|
|
827
|
-
const airgapBundleId = await resolveAirgapBundleId(clients.graphql);
|
|
828
|
-
const dfInputs = dataFlows.map((df) => ({
|
|
829
|
-
id: df.id,
|
|
830
|
-
...df.trackingPurposes ? { trackingType: df.trackingPurposes } : {},
|
|
831
|
-
...df.description !== void 0 ? { description: df.description } : {},
|
|
832
|
-
...df.service !== void 0 ? { service: df.service } : {},
|
|
833
|
-
...df.isJunk !== void 0 ? { isJunk: df.isJunk } : {},
|
|
834
|
-
...df.status !== void 0 ? { status: df.status } : {}
|
|
835
|
-
}));
|
|
836
|
-
const data = await clients.graphql.makeRequest(UPDATE_DATA_FLOWS, {
|
|
837
|
-
airgapBundleId,
|
|
838
|
-
dataFlows: dfInputs
|
|
839
|
-
});
|
|
840
|
-
return createToolResult(true, {
|
|
841
|
-
updated: data.updateDataFlows.dataFlows.length,
|
|
842
|
-
dataFlows: data.updateDataFlows.dataFlows.map((df) => ({
|
|
843
|
-
id: df.id,
|
|
844
|
-
value: df.value,
|
|
845
|
-
status: df.status,
|
|
846
|
-
isJunk: df.isJunk,
|
|
847
|
-
purposes: df.purposes.map((p) => p.name),
|
|
848
|
-
service: df.service?.title
|
|
849
|
-
}))
|
|
850
|
-
});
|
|
851
|
-
}
|
|
852
|
-
});
|
|
853
|
-
}
|
|
854
|
-
/** Cookie triage review UI for `consent_cookie_triage_review_app`. */
|
|
855
|
-
const COOKIE_TRIAGE_APP_RESOURCE = defineUiResource({
|
|
856
|
-
uri: "ui://transcend-consent/cookie-triage",
|
|
857
|
-
name: "Cookie triage review",
|
|
858
|
-
description: "Interactive review of cookies or data flows needing review, grouped by purpose.",
|
|
859
|
-
html: viewHtml({
|
|
860
|
-
bundled: "<!doctype html>\n<html lang=\"en\">\n <head>\n <meta charset=\"utf-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n <title>Transcend MCP App</title>\n <style>\n.compact-count-shimmer{background:color-mix(in srgb, currentColor 8%, transparent);border-radius:9999px;width:3ch;height:.7em;display:block;position:relative;overflow:hidden}.compact-count-shimmer:after{content:\"\";background:linear-gradient(90deg, transparent 0%, color-mix(in srgb, currentColor 28%, transparent) 45%, transparent 100%);animation:1.1s ease-in-out infinite compact-count-shimmer;position:absolute;inset:0;transform:translate(-100%)}@keyframes compact-count-shimmer{to{transform:translate(100%)}}.transcend-logo-spinner-trim{stroke-dasharray:1 999;stroke-dashoffset:1px;animation:transcend-logo-spinner-trim var(--transcend-logo-spinner-trim-duration) var(--transcend-logo-spinner-trim-ease) infinite}.transcend-logo-spinner-inner{stroke-dasharray:var(--transcend-logo-spinner-inner-tip);stroke-dashoffset:0;animation:transcend-logo-spinner-fill var(--transcend-logo-spinner-fill-duration) ease-out forwards, transcend-logo-spinner-spin var(--transcend-logo-spinner-inner-duration) linear var(--transcend-logo-spinner-fill-duration) infinite}@keyframes transcend-logo-spinner-trim{0%,4%{stroke-dashoffset:1px;opacity:0}8%{stroke-dashoffset:1px;opacity:1}22%,72%{stroke-dashoffset:0;opacity:1}86%{stroke-dashoffset:-1px;opacity:1}90%,to{stroke-dashoffset:-1px;opacity:0}}@keyframes transcend-logo-spinner-fill{0%{stroke-dasharray:var(--transcend-logo-spinner-inner-tip);stroke-dashoffset:0}to{stroke-dasharray:var(--transcend-logo-spinner-inner-rest);stroke-dashoffset:0}}@keyframes transcend-logo-spinner-spin{0%{stroke-dasharray:var(--transcend-logo-spinner-inner-rest);stroke-dashoffset:0}to{stroke-dasharray:var(--transcend-logo-spinner-inner-rest);stroke-dashoffset:-1px}}@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-content:\"\"}::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-content:\"\"}}}@layer theme;@layer tokens{:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--background-accent-blue-bold:var(--palette-blue-500);--background-accent-blue-subtle:var(--palette-blue-100);--background-accent-blue-subtlest:var(--palette-blue-50);--background-accent-gray-bold:var(--palette-gray-500);--background-accent-gray-subtle:var(--palette-gray-300);--background-accent-gray-subtlest:var(--palette-gray-200);--background-accent-lime-bold:var(--palette-lime-500);--background-accent-lime-subtle:var(--palette-lime-100);--background-accent-lime-subtlest:var(--palette-lime-50);--background-accent-orange-bold:var(--palette-orange-500);--background-accent-orange-subtle:var(--palette-orange-100);--background-accent-orange-subtlest:var(--palette-orange-50);--background-accent-pink-bold:var(--palette-pink-500);--background-accent-pink-subtle:var(--palette-pink-100);--background-accent-pink-subtlest:var(--palette-pink-50);--background-accent-purple-bold:var(--palette-purple-500);--background-accent-purple-subtle:var(--palette-purple-100);--background-accent-purple-subtlest:var(--palette-purple-50);--background-accent-teal-bold:var(--palette-teal-500);--background-accent-teal-subtle:var(--palette-teal-100);--background-accent-teal-subtlest:var(--palette-teal-50);--background-accent-yellow-bold:var(--palette-yellow-500);--background-accent-yellow-subtle:var(--palette-yellow-100);--background-accent-yellow-subtlest:var(--palette-yellow-50);--background-brand-bold-default:var(--palette-indigo-500);--background-brand-bold:var(--background-brand-bold-default);--background-brand-bold-hovered:var(--palette-indigo-600);--background-brand-bold-pressed:var(--palette-indigo-700);--background-brand-subtle:var(--palette-indigo-100);--background-brand-subtlest:var(--palette-indigo-50);--background-danger-bold-default:var(--palette-red-500);--background-danger-bold:var(--background-danger-bold-default);--background-danger-bold-hovered:var(--palette-red-600);--background-danger-bold-pressed:var(--palette-red-700);--background-danger-subtle:var(--palette-red-100);--background-danger-subtlest:var(--palette-red-50);--background-default-default:var(--palette-white);--background-default:var(--background-default-default);--background-default-hover:var(--palette-gray-100);--background-default-pressed:var(--palette-gray-200);--background-disabled:var(--palette-gray-200);--background-neutral-default:var(--palette-gray-100);--background-neutral:var(--background-neutral-default);--background-neutral-hovered:var(--palette-gray-200);--background-neutral-pressed:var(--palette-gray-300);--background-overlay-bold:var(--palette-opacity-lg);--background-overlay-default:var(--palette-opacity-md);--background-overlay:var(--background-overlay-default);--background-overlay-subtle:var(--palette-opacity-sm);--background-success-bold-default:var(--palette-green-500);--background-success-bold:var(--background-success-bold-default);--background-success-bold-hovered:var(--palette-green-600);--background-success-bold-pressed:var(--palette-green-700);--background-success-subtle:var(--palette-green-100);--background-success-subtlest:var(--palette-green-50);--background-warning-bold-default:var(--palette-gold-500);--background-warning-bold:var(--background-warning-bold-default);--background-warning-bold-hovered:var(--palette-gold-600);--background-warning-bold-pressed:var(--palette-gold-700);--background-warning-subtle:var(--palette-gold-100);--background-warning-subtlest:var(--palette-gold-50);--body-md-font-family:\"Figtree\", system-ui, sans-serif;--body-md-font-size:14px;--body-md-font-weight:400;--body-md-letter-spacing:0px;--body-md-line-height:1.42857;--body-md:var(--body-md-font-weight) var(--body-md-font-size)/var(--body-md-line-height) var(--body-md-font-family);--body-sm-font-family:\"Figtree\", system-ui, sans-serif;--body-sm-font-size:12px;--body-sm-font-weight:400;--body-sm-letter-spacing:0px;--body-sm-line-height:1.33333;--body-sm:var(--body-sm-font-weight) var(--body-sm-font-size)/var(--body-sm-line-height) var(--body-sm-font-family);--border-accent-blue:var(--palette-blue-300);--border-accent-gray:var(--palette-gray-500);--border-accent-lime:var(--palette-lime-300);--border-accent-orange:var(--palette-orange-300);--border-accent-pink:var(--palette-pink-300);--border-accent-purple:var(--palette-purple-300);--border-accent-teal:var(--palette-teal-300);--border-accent-yellow:var(--palette-yellow-500);--border-bold:var(--palette-gray-500);--border-brand:var(--palette-indigo-500);--border-danger:var(--palette-red-400);--border-default:var(--palette-gray-300);--border:var(--border-default);--border-disabled:var(--palette-gray-200);--border-focused:var(--palette-indigo-700);--border-subtle:var(--palette-gray-200);--border-success:var(--palette-green-300);--border-warning:var(--palette-gold-400);--chart-blue:var(--palette-blue-400);--chart-gray:var(--palette-gray-400);--chart-lime:var(--palette-lime-600);--chart-orange:var(--palette-orange-400);--chart-pink:var(--palette-pink-400);--chart-purple:var(--palette-purple-400);--chart-teal:var(--palette-teal-400);--chart-yellow:var(--palette-yellow-600);--code-md-font-family:\"Fragment Mono\", ui-monospace, monospace;--code-md-font-size:12px;--code-md-font-weight:400;--code-md-letter-spacing:0px;--code-md-line-height:1.33333;--code-md:var(--code-md-font-weight) var(--code-md-font-size)/var(--code-md-line-height) var(--code-md-font-family);--code-sm-font-family:\"Fragment Mono\", ui-monospace, monospace;--code-sm-font-size:11px;--code-sm-font-weight:400;--code-sm-letter-spacing:0px;--code-sm-line-height:1.45455;--code-sm:var(--code-sm-font-weight) var(--code-sm-font-size)/var(--code-sm-line-height) var(--code-sm-font-family);--display-lg-font-family:\"GT Planar VF\", system-ui, sans-serif;--display-lg-font-size:32px;--display-lg-font-weight:500;--display-lg-letter-spacing:0px;--display-lg-line-height:1.125;--display-lg:var(--display-lg-font-weight) var(--display-lg-font-size)/var(--display-lg-line-height) var(--display-lg-font-family);--display-md-font-family:\"GT Planar VF\", system-ui, sans-serif;--display-md-font-size:28px;--display-md-font-weight:500;--display-md-letter-spacing:0px;--display-md-line-height:1.14286;--display-md:var(--display-md-font-weight) var(--display-md-font-size)/var(--display-md-line-height) var(--display-md-font-family);--display-sm-font-family:\"GT Planar VF\", system-ui, sans-serif;--display-sm-font-size:24px;--display-sm-font-weight:500;--display-sm-letter-spacing:0px;--display-sm-line-height:1.16667;--display-sm:var(--display-sm-font-weight) var(--display-sm-font-size)/var(--display-sm-line-height) var(--display-sm-font-family);--heading-lg-font-family:\"Figtree\", system-ui, sans-serif;--heading-lg-font-size:20px;--heading-lg-font-weight:600;--heading-lg-letter-spacing:0em;--heading-lg-line-height:1.2;--heading-lg:var(--heading-lg-font-weight) var(--heading-lg-font-size)/var(--heading-lg-line-height) var(--heading-lg-font-family);--heading-md-font-family:\"Figtree\", system-ui, sans-serif;--heading-md-font-size:16px;--heading-md-font-weight:600;--heading-md-letter-spacing:0em;--heading-md-line-height:1.25;--heading-md:var(--heading-md-font-weight) var(--heading-md-font-size)/var(--heading-md-line-height) var(--heading-md-font-family);--heading-sm-font-family:\"Figtree\", system-ui, sans-serif;--heading-sm-font-size:14px;--heading-sm-font-weight:600;--heading-sm-letter-spacing:0em;--heading-sm-line-height:1.42857;--heading-sm:var(--heading-sm-font-weight) var(--heading-sm-font-size)/var(--heading-sm-line-height) var(--heading-sm-font-family);--icon-brand:var(--palette-indigo-500);--icon-danger:var(--palette-red-500);--icon-default:var(--palette-gray-700);--icon:var(--icon-default);--icon-disabled:var(--palette-gray-300);--icon-inverse:var(--palette-white);--icon-subtle:var(--palette-gray-600);--icon-subtlest:var(--palette-gray-500);--icon-success:var(--palette-green-500);--icon-warning:var(--palette-gold-500);--label-lg-font-family:\"Figtree\", system-ui, sans-serif;--label-lg-font-size:14px;--label-lg-font-weight:500;--label-lg-letter-spacing:0px;--label-lg-line-height:1.28571;--label-lg:var(--label-lg-font-weight) var(--label-lg-font-size)/var(--label-lg-line-height) var(--label-lg-font-family);--label-md-font-family:\"Figtree\", system-ui, sans-serif;--label-md-font-size:12px;--label-md-font-weight:500;--label-md-letter-spacing:0px;--label-md-line-height:1.33333;--label-md:var(--label-md-font-weight) var(--label-md-font-size)/var(--label-md-line-height) var(--label-md-font-family);--label-overline-font-family:\"Figtree\", system-ui, sans-serif;--label-overline-font-size:10px;--label-overline-font-weight:700;--label-overline-letter-spacing:.04em;--label-overline-line-height:1.2;--label-overline:var(--label-overline-font-weight) var(--label-overline-font-size)/var(--label-overline-line-height) var(--label-overline-font-family);--label-sm-font-family:\"Figtree\", system-ui, sans-serif;--label-sm-font-size:10px;--label-sm-font-weight:500;--label-sm-letter-spacing:0px;--label-sm-line-height:1.4;--label-sm:var(--label-sm-font-weight) var(--label-sm-font-size)/var(--label-sm-line-height) var(--label-sm-font-family);--link-default:var(--palette-indigo-500);--link:var(--link-default);--link-pressed:var(--palette-indigo-600);--link-visited-default:var(--palette-gray-700);--link-visited:var(--link-visited-default);--link-visited-pressed:var(--palette-gray-800);--metric-md-font-family:\"GT Planar VF\", system-ui, sans-serif;--metric-md-font-size:28px;--metric-md-font-weight:400;--metric-md-letter-spacing:0px;--metric-md-line-height:1.14286;--metric-md:var(--metric-md-font-weight) var(--metric-md-font-size)/var(--metric-md-line-height) var(--metric-md-font-family);--palette-blue-50:#e8f1fb;--palette-blue-100:#d4e7fa;--palette-blue-200:#aad2f9;--palette-blue-300:#7fbdf7;--palette-blue-400:#4da7f7;--palette-blue-500:#0592f0;--palette-blue-600:#007bcc;--palette-blue-700:#0067ac;--palette-blue-800:#00528b;--palette-blue-900:#003f6c;--text-accent-blue-bold:var(--palette-blue-900);--palette-blue-950:#003359;--palette-gold-50:#fff1d6;--palette-gold-100:#ffebc2;--palette-gold-200:#fd9;--palette-gold-300:#ffcf70;--palette-gold-400:#fb3;--palette-gold-500:#ec9e00;--palette-gold-600:#c98300;--text-warning-subtle:var(--palette-gold-600);--palette-gold-700:#a16900;--palette-gold-800:#7c5100;--palette-gold-900:#5c3d00;--text-warning-bold:var(--palette-gold-900);--palette-gold-950:#462f00;--palette-gray-50:#fbfcfd;--palette-gray-100:#f8f8fa;--palette-gray-200:#f2f2f6;--palette-gray-300:#e7e7ed;--palette-gray-400:#d5d5de;--palette-gray-500:#b4b4c2;--text-subtlest:var(--palette-gray-500);--palette-gray-600:#85859c;--text-disabled:var(--palette-gray-600);--palette-gray-700:#5b5b74;--text-subtle:var(--palette-gray-700);--palette-gray-800:#383849;--palette-gray-900:#1e1d28;--text-accent-gray-bold:var(--palette-gray-900);--text-default:var(--palette-gray-900);--text:var(--text-default);--palette-gray-950:#0f0f16;--palette-green-50:#e8f4e7;--palette-green-100:#d2ead0;--palette-green-200:#a3d49f;--palette-green-300:#71bf6d;--palette-green-400:#3fb43e;--palette-green-500:#009b00;--palette-green-600:#008200;--text-success-subtle:var(--palette-green-600);--palette-green-700:#006e00;--palette-green-800:#050;--palette-green-900:#003d00;--text-success-bold:var(--palette-green-900);--palette-green-950:#002e00;--palette-indigo-50:#ecefff;--palette-indigo-100:#dae0ff;--palette-indigo-200:#b7c0ff;--palette-indigo-300:#959fff;--palette-indigo-400:#787dff;--palette-indigo-500:#5f5bf7;--palette-indigo-600:#4e45d4;--text-brand-subtle:var(--palette-indigo-600);--palette-indigo-700:#3e2ebc;--palette-indigo-800:#2f2292;--palette-indigo-900:#20156b;--text-brand-bold:var(--palette-indigo-900);--palette-indigo-950:#170e54;--palette-lime-50:#f2f8e9;--palette-lime-100:#e1eecc;--palette-lime-200:#cce1a7;--palette-lime-300:#b8d480;--palette-lime-400:#a4c754;--palette-lime-500:#90b900;--palette-lime-600:#7ea200;--palette-lime-700:#6b8b00;--palette-lime-800:#577100;--palette-lime-900:#445900;--text-accent-lime-bold:var(--palette-lime-900);--palette-lime-950:#364700;--palette-opacity-lg:#0009;--palette-opacity-md:#0006;--palette-opacity-sm:#0000001a;--palette-orange-50:#fbede6;--palette-orange-100:#faded2;--palette-orange-200:#f7c0a6;--palette-orange-300:#f4a179;--palette-orange-400:#ef8148;--palette-orange-500:#e56200;--palette-orange-600:#c65400;--palette-orange-700:#af4900;--palette-orange-800:#8e3a00;--palette-orange-900:#6f2b00;--text-accent-orange-bold:var(--palette-orange-900);--palette-orange-950:#5b2200;--palette-pink-50:#fbebf4;--palette-pink-100:#fadaec;--palette-pink-200:#f7b8dc;--palette-pink-300:#f494cd;--palette-pink-400:#ee6ebf;--palette-pink-500:#e448b0;--palette-pink-600:#c43e97;--palette-pink-700:#ad3785;--palette-pink-800:#8b2d6b;--palette-pink-900:#6b2352;--text-accent-pink-bold:var(--palette-pink-900);--palette-pink-950:#571e43;--palette-purple-50:#f3ecff;--palette-purple-100:#e8daff;--palette-purple-200:#d3b4ff;--palette-purple-300:#bf8cff;--palette-purple-400:#ad5fff;--palette-purple-500:#9d11ff;--palette-purple-600:#8200d5;--palette-purple-700:#6a00af;--palette-purple-800:#510088;--palette-purple-900:#3a0063;--text-accent-purple-bold:var(--palette-purple-900);--palette-purple-950:#2c004d;--palette-red-50:#ffebeb;--palette-red-100:#fdd7d8;--palette-red-200:#faadb1;--palette-red-300:#f4828b;--palette-red-400:#eb5167;--palette-red-500:#dc0547;--palette-red-600:#bb0036;--text-danger-subtle:var(--palette-red-600);--palette-red-700:#a20024;--palette-red-800:#7e001a;--palette-red-900:#5c000f;--text-danger-bold:var(--palette-red-900);--palette-red-950:#47000a;--palette-teal-50:#e8f3f2;--palette-teal-100:#d3e9e7;--palette-teal-200:#a7d5d2;--palette-teal-300:#78c1be;--palette-teal-400:#48b7b2;--palette-teal-500:#15a19d;--palette-teal-600:#008986;--palette-teal-700:#007774;--palette-teal-800:#005e5b;--palette-teal-900:#004644;--text-accent-teal-bold:var(--palette-teal-900);--palette-teal-950:#003836;--palette-white:#fff;--text-inverse:var(--palette-white);--palette-yellow-50:#fdf8d8;--palette-yellow-100:#fff6bf;--palette-yellow-200:#fff29d;--palette-yellow-300:#f6e57b;--palette-yellow-400:#f0db55;--palette-yellow-500:#ebcd0d;--palette-yellow-600:#c2ab15;--palette-yellow-700:#907d04;--palette-yellow-800:#6e6000;--palette-yellow-900:#564b06;--text-accent-yellow-bold:var(--palette-yellow-900);--palette-yellow-950:#3a3303}}@layer base{:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}*,:before,:after{box-sizing:border-box;border:0 solid}body{color:var(--color-content);font-family:var(--font-sans);font-size:var(--text-md);line-height:var(--text-md--line-height);-webkit-font-smoothing:antialiased;background:0 0;margin:0}html,body{overflow:visible}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit;margin:0}p,dl,dd,figure,blockquote{margin:0}ol,ul,menu{margin:0;padding:0;list-style:none}img,svg,video,canvas{max-width:100%;height:auto;display:block}button,input,select,textarea{font:inherit;color:inherit}:focus-visible{outline:2px solid var(--color-focus);outline-offset:2px}}@layer components;@layer utilities{.\\@container{container-type:inline-size}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:0}.top-0{top:0}.z-10{z-index:10}.z-\\[100\\]{z-index:100}.z-\\[200\\]{z-index:200}.container{width:100%}@media (min-width:24rem){.container{max-width:24rem}}@media (min-width:32rem){.container{max-width:32rem}}@media (min-width:48rem){.container{max-width:48rem}}.mx-auto{margin-inline:auto}.mt-0\\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-4{margin-top:calc(var(--spacing) * 4)}.-mb-px{margin-bottom:-1px}.mb-1{margin-bottom:var(--spacing)}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.size-2\\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.h-2\\.5{height:calc(var(--spacing) * 2.5)}.h-4{height:calc(var(--spacing) * 4)}.h-6{height:calc(var(--spacing) * 6)}.h-9{height:calc(var(--spacing) * 9)}.h-\\[1lh\\]{height:1lh}.h-\\[90dvh\\]{height:90dvh}.max-h-\\[100dvh\\]{max-height:100dvh}.min-h-0{min-height:0}.min-h-24{min-height:calc(var(--spacing) * 24)}.w-8{width:calc(var(--spacing) * 8)}.w-\\[16\\%\\]{width:16%}.w-\\[24\\%\\]{width:24%}.w-\\[26\\%\\]{width:26%}.w-\\[34\\%\\]{width:34%}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:max-content}.max-w-64{max-width:calc(var(--spacing) * 64)}.max-w-\\[60\\%\\]{max-width:60%}.max-w-full{max-width:100%}.max-w-view{max-width:var(--container-view)}.min-w-0{min-width:0}.min-w-4{min-width:calc(var(--spacing) * 4)}.min-w-16{min-width:calc(var(--spacing) * 16)}.flex-0{flex:0}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.shrink-1{flex-shrink:1}.grow-0{flex-grow:0}.basis-\\[108px\\]{flex-basis:108px}.basis-\\[min\\(85dvh\\,32rem\\)\\]{flex-basis:min(85dvh,32rem)}.table-fixed{table-layout:fixed}.border-collapse{border-collapse:collapse}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize{resize:both}.resize-y{resize:vertical}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-x-5{column-gap:calc(var(--spacing) * 5)}.gap-x-6{column-gap:calc(var(--spacing) * 6)}.gap-y-1{row-gap:var(--spacing)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded-full{border-radius:var(--radius-full)}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-brand{border-color:var(--color-brand)}.border-card-line{border-color:var(--color-card-line)}.border-danger\\/40{border-color:var(--color-danger)}@supports (color:color-mix(in lab, red, red)){.border-danger\\/40{border-color:color-mix(in oklab, var(--color-danger) 40%, transparent)}}.border-focus{border-color:var(--color-focus)}.border-line-subtle{border-color:var(--color-line-subtle)}.border-purpose-advertising{border-color:var(--color-purpose-advertising)}.border-purpose-analytics{border-color:var(--color-purpose-analytics)}.border-purpose-essential{border-color:var(--color-purpose-essential)}.border-purpose-functional{border-color:var(--color-purpose-functional)}.border-purpose-other{border-color:var(--color-purpose-other)}.border-purpose-sale{border-color:var(--color-purpose-sale)}.border-transparent{border-color:#0000}.border-l-danger{border-left-color:var(--color-danger)}.bg-brand{background-color:var(--color-brand)}.bg-card{background-color:var(--color-card)}.bg-card-sunken{background-color:var(--color-card-sunken)}.bg-content-subtle{background-color:var(--color-content-subtle)}.bg-fill-brand{background-color:var(--color-fill-brand)}.bg-fill-brand-subtle{background-color:var(--color-fill-brand-subtle)}.bg-fill-danger{background-color:var(--color-fill-danger)}.bg-fill-dormant{background-color:var(--color-fill-dormant)}.bg-fill-neutral{background-color:var(--color-fill-neutral)}.bg-fill-success{background-color:var(--color-fill-success)}.bg-fill-warning{background-color:var(--color-fill-warning)}.bg-surface{background-color:var(--color-surface)}.bg-surface-raised{background-color:var(--color-surface-raised)}.bg-transparent{background-color:#0000}.p-0{padding:0}.p-2{padding:calc(var(--spacing) * 2)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.px-1{padding-inline:var(--spacing)}.px-1\\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-5{padding-block:calc(var(--spacing) * 5)}.py-8{padding-block:calc(var(--spacing) * 8)}.pt-1{padding-top:var(--spacing)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-5{padding-top:calc(var(--spacing) * 5)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.text-center{text-align:center}.text-left{text-align:left}.align-middle{vertical-align:middle}.text-heading-md{font-size:var(--text-heading-md);line-height:var(--tw-leading,var(--text-heading-md--line-height))}.text-heading-sm{font-size:var(--text-heading-sm);line-height:var(--tw-leading,var(--text-heading-sm--line-height))}.text-md{font-size:var(--text-md);line-height:var(--tw-leading,var(--text-md--line-height))}.text-metric{font-size:var(--text-metric);line-height:var(--tw-leading,var(--text-metric--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-none{--tw-leading:1;line-height:1}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-brand{color:var(--color-brand)}.text-brand-text{color:var(--color-brand-text)}.text-content{color:var(--color-content)}.text-content-muted{color:var(--color-content-muted)}.text-danger{color:var(--color-danger)}.text-fill-dormant{color:var(--color-fill-dormant)}.text-on-card{color:var(--color-on-card)}.text-on-card-muted{color:var(--color-on-card-muted)}.text-on-card-subtle{color:var(--color-on-card-subtle)}.text-on-fill{color:var(--color-on-fill)}.text-purpose-advertising{color:var(--color-purpose-advertising)}.text-purpose-analytics{color:var(--color-purpose-analytics)}.text-purpose-essential{color:var(--color-purpose-essential)}.text-purpose-functional{color:var(--color-purpose-functional)}.text-purpose-other{color:var(--color-purpose-other)}.text-purpose-sale{color:var(--color-purpose-sale)}.text-success{color:var(--color-success)}.uppercase{text-transform:uppercase}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.no-underline{text-decoration-line:none}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-60{opacity:.6}.opacity-100{opacity:1}.shadow-sm{--tw-shadow:0 1px 2px var(--tw-shadow-color,#00000014);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.placeholder\\:text-on-card-muted::placeholder{color:var(--color-on-card-muted)}.before\\:mr-1:before{content:var(--tw-content);margin-right:var(--spacing)}.before\\:ml-1:before{content:var(--tw-content);margin-left:var(--spacing)}.before\\:content-\\[\\'·\\'\\]:before{--tw-content:\"·\";content:var(--tw-content)}.first\\:before\\:content-none:first-child:before{content:var(--tw-content);--tw-content:none;content:none}@media (hover:hover){.hover\\:bg-brand-hovered:hover{background-color:var(--color-brand-hovered)}.hover\\:bg-card-sunken:hover{background-color:var(--color-card-sunken)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:not-disabled\\:bg-card-sunken:hover:not(:disabled){background-color:var(--color-card-sunken)}}.focus\\:border-brand-text:focus{border-color:var(--color-brand-text)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-60:disabled{opacity:.6}@container (width>=24rem){.\\@min-\\[24rem\\]\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@container (width>=36rem){.\\@min-\\[36rem\\]\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@container (width>=48rem){.\\@min-\\[48rem\\]\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}}:root,:host{--color-surface:var(--color-background-primary,var(--background-default,#fff));--color-surface-raised:var(--color-background-secondary,var(--background-default-hover,#f4f4f6));--color-content:var(--color-text-primary,var(--text,#1e1d28));--color-content-muted:var(--color-text-secondary,var(--text-subtle,#55535f));--color-content-subtle:var(--color-text-tertiary,var(--text-subtlest,#85838f));--color-line-subtle:var(--color-border-secondary,var(--border-subtle,#ebebef));--color-focus:var(--color-ring-primary,var(--border-focused,#3e2ebc));--color-card:var(--background-default,#fff);--color-card-sunken:var(--background-neutral,#ebebef);--color-on-card:var(--text,#1e1d28);--color-on-card-muted:var(--text-subtle,#55535f);--color-on-card-subtle:var(--text-subtlest,#85838f);--color-card-line:var(--border-default,#d6d5db);--color-on-fill:var(--text-inverse,#fff);--color-fill-brand:var(--background-brand-bold,#5f5bf7);--color-fill-success:var(--background-success-bold,#008200);--color-fill-warning:var(--background-warning-bold,#c98300);--color-fill-danger:var(--background-danger-bold,#bb0036);--color-fill-neutral:var(--background-neutral,#ebebef);--color-fill-dormant:var(--background-warning-bold,#ec9e00);--color-fill-brand-subtle:var(--background-brand-subtle,#cfd1fe);--color-purpose-essential:var(--chart-teal,#44c9a4);--color-purpose-functional:var(--background-accent-yellow-bold,#f4c139);--color-purpose-advertising:var(--palette-red-400,#fb544e);--color-purpose-analytics:var(--chart-orange,#fd7a36);--color-purpose-sale:var(--background-accent-purple-bold,#7c35fb);--color-purpose-other:var(--text-subtle,#485060);--color-brand:var(--background-brand-bold,var(--color-background-info,#5f5bf7));--color-brand-hovered:var(--background-brand-bold-hovered,var(--color-brand));--color-brand-text:var(--text-brand-bold,var(--color-text-info,#3e2ebc));--color-success:var(--text-success-bold,var(--color-text-success,#1a7f4b));--color-danger:var(--text-danger-bold,var(--color-text-danger,#b42318));--font-sans:ui-sans-serif, system-ui, -apple-system, sans-serif;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--text-xs:.75rem;--text-xs--line-height:1rem;--text-sm:var(--font-text-sm-size,.8125rem);--text-sm--line-height:var(--font-text-sm-line-height,1.25rem);--text-md:var(--font-text-md-size,.875rem);--text-md--line-height:var(--font-text-md-line-height,1.375rem);--text-heading-sm:var(--font-heading-sm-size,1rem);--text-heading-sm--line-height:var(--font-heading-sm-line-height,1.5rem);--text-heading-md:var(--font-heading-md-size,1.125rem);--text-heading-md--line-height:var(--font-heading-md-line-height,1.625rem);--text-metric:1.75rem;--text-metric--line-height:2.125rem;--radius-sm:var(--border-radius-sm,6px);--radius-md:var(--border-radius-md,8px);--radius-lg:var(--border-radius-lg,12px);--radius-full:var(--border-radius-full,9999px);--spacing:.25rem;--container-view:64rem}@property --tw-rotate-x{syntax:\"*\";inherits:false}@property --tw-rotate-y{syntax:\"*\";inherits:false}@property --tw-rotate-z{syntax:\"*\";inherits:false}@property --tw-skew-x{syntax:\"*\";inherits:false}@property --tw-skew-y{syntax:\"*\";inherits:false}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-leading{syntax:\"*\";inherits:false}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-ordinal{syntax:\"*\";inherits:false}@property --tw-slashed-zero{syntax:\"*\";inherits:false}@property --tw-numeric-figure{syntax:\"*\";inherits:false}@property --tw-numeric-spacing{syntax:\"*\";inherits:false}@property --tw-numeric-fraction{syntax:\"*\";inherits:false}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-blur{syntax:\"*\";inherits:false}@property --tw-brightness{syntax:\"*\";inherits:false}@property --tw-contrast{syntax:\"*\";inherits:false}@property --tw-grayscale{syntax:\"*\";inherits:false}@property --tw-hue-rotate{syntax:\"*\";inherits:false}@property --tw-invert{syntax:\"*\";inherits:false}@property --tw-opacity{syntax:\"*\";inherits:false}@property --tw-saturate{syntax:\"*\";inherits:false}@property --tw-sepia{syntax:\"*\";inherits:false}@property --tw-drop-shadow{syntax:\"*\";inherits:false}@property --tw-drop-shadow-color{syntax:\"*\";inherits:false}@property --tw-drop-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:\"*\";inherits:false}@property --tw-content{syntax:\"*\";inherits:false;initial-value:\"\"}\n/*$vite$:1*/\n </style>\n </head>\n <body>\n <div id=\"root\"></div>\n <script>\n(function(){var e=Object.defineProperty,t=(e,t)=>()=>(e&&(t=e(e=0)),t),n=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),r=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r},i=n((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var ee=Array.isArray;function te(){}var S={H:null,A:null,T:null,S:null},ne=Object.prototype.hasOwnProperty;function re(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function ie(e,t){return re(e.type,t,e.props)}function C(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function ae(e){var t={\"=\":`=0`,\":\":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var oe=/\\/+/g;function se(e,t){return typeof e==`object`&&e&&e.key!=null?ae(``+e.key):t.toString(36)}function ce(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(te,te):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function le(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,le(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+se(e,0):a,ee(o)?(i=``,c!=null&&(i=c.replace(oe,`$&/`)+`/`),le(o,r,i,``,function(e){return e})):o!=null&&(C(o)&&(o=ie(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(oe,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(ee(e))for(var u=0;u<e.length;u++)a=e[u],s=l+se(a,u),c+=le(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+se(a,u++),c+=le(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return le(ce(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function w(e,t,n){if(e==null)return e;var r=[],i=0;return le(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ue(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var T=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},E={map:w,forEach:function(e,t,n){w(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return w(e,function(){t++}),t},toArray:function(e){return w(e,function(e){return e})||[]},only:function(e){if(!C(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=E,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=S,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return S.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!ne.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return re(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)ne.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return re(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=C,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:ue}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=S.T,n={};S.T=n;try{var r=e(),i=S.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(te,T)}catch(e){T(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),S.T=t}},e.unstable_useCacheRefresh=function(){return S.H.useCacheRefresh()},e.use=function(e){return S.H.use(e)},e.useActionState=function(e,t,n){return S.H.useActionState(e,t,n)},e.useCallback=function(e,t){return S.H.useCallback(e,t)},e.useContext=function(e){return S.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return S.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return S.H.useEffect(e,t)},e.useEffectEvent=function(e){return S.H.useEffectEvent(e)},e.useId=function(){return S.H.useId()},e.useImperativeHandle=function(e,t,n){return S.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return S.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return S.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return S.H.useMemo(e,t)},e.useOptimistic=function(e,t){return S.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return S.H.useReducer(e,t,n)},e.useRef=function(e){return S.H.useRef(e)},e.useState=function(e){return S.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return S.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return S.H.useTransition()},e.version=`19.2.8`})),a=n(((e,t)=>{t.exports=i()})),o=n((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,ee||(ee=!0,C());else{var t=n(l);t!==null&&se(x,t.startTime-e)}}var ee=!1,te=-1,S=5,ne=-1;function re(){return g?!0:!(e.unstable_now()-ne<S)}function ie(){if(g=!1,ee){var t=e.unstable_now();ne=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(te),te=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&re());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&se(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?C():ee=!1}}}var C;if(typeof y==`function`)C=function(){y(ie)};else if(typeof MessageChannel<`u`){var ae=new MessageChannel,oe=ae.port2;ae.port1.onmessage=ie,C=function(){oe.postMessage(null)}}else C=function(){_(ie,0)};function se(t,n){te=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):S=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(te),te=-1):h=!0,se(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,ee||(ee=!0,C()))),r},e.unstable_shouldYield=re,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),s=n(((e,t)=>{t.exports=o()})),c=n((e=>{var t=a();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for(`react.portal`);function s(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return s(e,t,null,r)},e.flushSync=function(e){var t=c.T,n=i.p;try{if(c.T=null,i.p=2,e)return e()}finally{c.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=l(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=l(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return c.H.useFormState(e,t,n)},e.useFormStatus=function(){return c.H.useHostTransitionStatus()},e.version=`19.2.8`})),l=n(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=c()})),u=n((e=>{var t=s(),n=a(),r=l();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function u(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function d(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function f(e){if(c(e)!==e)throw Error(i(188))}function p(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return f(a),e;if(o===r)return f(a),t;o=o.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=o;else{for(var s=!1,l=a.child;l;){if(l===n){s=!0,n=a,r=o;break}if(l===r){s=!0,r=a,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=a;break}if(l===r){s=!0,r=o,n=a;break}l=l.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function m(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=m(e),t!==null)return t;e=e.sibling}return null}var h=Object.assign,g=Symbol.for(`react.element`),_=Symbol.for(`react.transitional.element`),v=Symbol.for(`react.portal`),y=Symbol.for(`react.fragment`),b=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),ee=Symbol.for(`react.consumer`),te=Symbol.for(`react.context`),S=Symbol.for(`react.forward_ref`),ne=Symbol.for(`react.suspense`),re=Symbol.for(`react.suspense_list`),ie=Symbol.for(`react.memo`),C=Symbol.for(`react.lazy`),ae=Symbol.for(`react.activity`),oe=Symbol.for(`react.memo_cache_sentinel`),se=Symbol.iterator;function ce(e){return typeof e!=`object`||!e?null:(e=se&&e[se]||e[`@@iterator`],typeof e==`function`?e:null)}var le=Symbol.for(`react.client.reference`);function w(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===le?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case y:return`Fragment`;case x:return`Profiler`;case b:return`StrictMode`;case ne:return`Suspense`;case re:return`SuspenseList`;case ae:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case v:return`Portal`;case te:return e.displayName||`Context`;case ee:return(e._context.displayName||`Context`)+`.Consumer`;case S:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ie:return t=e.displayName||null,t===null?w(e.type)||`Memo`:t;case C:t=e._payload,e=e._init;try{return w(e(t))}catch{}}return null}var ue=Array.isArray,T=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,E=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,de={pending:!1,data:null,method:null,action:null},fe=[],pe=-1;function me(e){return{current:e}}function he(e){0>pe||(e.current=fe[pe],fe[pe]=null,pe--)}function ge(e,t){pe++,fe[pe]=e.current,e.current=t}var _e=me(null),ve=me(null),ye=me(null),be=me(null);function xe(e,t){switch(ge(ye,t),ge(ve,e),ge(_e,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?nf(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=nf(t),e=rf(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}he(_e),ge(_e,e)}function Se(){he(_e),he(ve),he(ye)}function D(e){e.memoizedState!==null&&ge(be,e);var t=_e.current,n=rf(t,e.type);t!==n&&(ge(ve,e),ge(_e,n))}function Ce(e){ve.current===e&&(he(_e),he(ve)),be.current===e&&(he(be),op._currentValue=de)}var O,we;function Te(e){if(O===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\\n( *(at )?)/);O=t&&t[1]||``,we=-1<e.stack.indexOf(`\n at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`\n`+O+e+we}var Ee=!1;function De(e,t){if(!e||Ee)return``;Ee=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,\"props\",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,\"name\",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`\n`),l=s.split(`\n`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`\n`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Ee=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Te(n):``}function Oe(e,t){switch(e.tag){case 26:case 27:case 5:return Te(e.type);case 16:return Te(`Lazy`);case 13:return e.child!==t&&t!==null?Te(`Suspense Fallback`):Te(`Suspense`);case 19:return Te(`SuspenseList`);case 0:case 15:return De(e.type,!1);case 11:return De(e.type.render,!1);case 1:return De(e.type,!0);case 31:return Te(`Activity`);default:return``}}function ke(e){try{var t=``,n=null;do t+=Oe(e,n),n=e,e=e.return;while(e);return t}catch(e){return`\nError generating stack: `+e.message+`\n`+e.stack}}var Ae=Object.prototype.hasOwnProperty,je=t.unstable_scheduleCallback,Me=t.unstable_cancelCallback,Ne=t.unstable_shouldYield,Pe=t.unstable_requestPaint,Fe=t.unstable_now,Ie=t.unstable_getCurrentPriorityLevel,Le=t.unstable_ImmediatePriority,Re=t.unstable_UserBlockingPriority,k=t.unstable_NormalPriority,ze=t.unstable_LowPriority,Be=t.unstable_IdlePriority,Ve=t.log,He=t.unstable_setDisableYieldValue,Ue=null,We=null;function Ge(e){if(typeof Ve==`function`&&He(e),We&&typeof We.setStrictMode==`function`)try{We.setStrictMode(Ue,e)}catch{}}var Ke=Math.clz32?Math.clz32:Ye,qe=Math.log,Je=Math.LN2;function Ye(e){return e>>>=0,e===0?32:31-(qe(e)/Je|0)|0}var Xe=256,Ze=262144,Qe=4194304;function $e(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function et(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=$e(n))):i=$e(o):i=$e(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=$e(n))):i=$e(o)):i=$e(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function tt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function A(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function nt(){var e=Qe;return Qe<<=1,!(Qe&62914560)&&(Qe=4194304),e}function rt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function it(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function at(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Ke(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&ot(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function ot(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ke(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function st(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ke(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function ct(e,t){var n=t&-t;return n=n&42?1:lt(n),(n&(e.suspendedLanes|t))===0?n:0}function lt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ut(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function dt(){var e=E.p;return e===0?(e=window.event,e===void 0?32:xp(e.type)):e}function ft(e,t){var n=E.p;try{return E.p=e,t()}finally{E.p=n}}var pt=Math.random().toString(36).slice(2),mt=`__reactFiber$`+pt,ht=`__reactProps$`+pt,gt=`__reactContainer$`+pt,_t=`__reactEvents$`+pt,vt=`__reactListeners$`+pt,yt=`__reactHandles$`+pt,bt=`__reactResources$`+pt,xt=`__reactMarker$`+pt;function St(e){delete e[mt],delete e[ht],delete e[_t],delete e[vt],delete e[yt]}function Ct(e){var t=e[mt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[gt]||n[mt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Tf(e);e!==null;){if(n=e[mt])return n;e=Tf(e)}return t}e=n,n=e.parentNode}return null}function wt(e){if(e=e[mt]||e[gt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Tt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Et(e){var t=e[bt];return t||=e[bt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Dt(e){e[xt]=!0}var Ot=new Set,kt={};function At(e,t){jt(e,t),jt(e+`Capture`,t)}function jt(e,t){for(kt[e]=t,e=0;e<t.length;e++)Ot.add(t[e])}var Mt=RegExp(`^[:A-Z_a-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD][:A-Z_a-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD\\\\-.0-9\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040]*$`),Nt={},Pt={};function Ft(e){return Ae.call(Pt,e)?!0:Ae.call(Nt,e)?!1:Mt.test(e)?Pt[e]=!0:(Nt[e]=!0,!1)}function It(e,t,n){if(Ft(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function Lt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function Rt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function zt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Bt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Vt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ht(e){if(!e._valueTracker){var t=Bt(e)?`checked`:`value`;e._valueTracker=Vt(e,t,``+e[t])}}function Ut(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Bt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function Wt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Gt=/[\\n\"\\\\]/g;function Kt(e){return e.replace(Gt,function(e){return`\\\\`+e.charCodeAt(0).toString(16)+` `})}function qt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+zt(t)):e.value!==``+zt(t)&&(e.value=``+zt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Yt(e,o,zt(n)):Yt(e,o,zt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+zt(s):e.removeAttribute(`name`)}function Jt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Ht(e);return}n=n==null?``:``+zt(n),t=t==null?n:``+zt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Ht(e)}function Yt(e,t,n){t===`number`&&Wt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Xt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+zt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Zt(e,t,n){if(t!=null&&(t=``+zt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+zt(n)}function Qt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(ue(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=zt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Ht(e)}function $t(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var en=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function tn(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||en.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function nn(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&tn(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&tn(e,o,t[o])}function rn(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var an=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),on=/^[\\u0000-\\u001F ]*j[\\r\\n\\t]*a[\\r\\n\\t]*v[\\r\\n\\t]*a[\\r\\n\\t]*s[\\r\\n\\t]*c[\\r\\n\\t]*r[\\r\\n\\t]*i[\\r\\n\\t]*p[\\r\\n\\t]*t[\\r\\n\\t]*:/i;function sn(e){return on.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function cn(){}var ln=null;function un(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var dn=null,fn=null;function pn(e){var t=wt(e);if(t&&(e=t.stateNode)){var n=e[ht]||null;a:switch(e=t.stateNode,t.type){case`input`:if(qt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name=\"`+Kt(``+t)+`\"][type=\"radio\"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[ht]||null;if(!a)throw Error(i(90));qt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Ut(r)}break a;case`textarea`:Zt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Xt(e,!!n.multiple,t,!1)}}}var mn=!1;function hn(e,t,n){if(mn)return e(t,n);mn=!0;try{return e(t)}finally{if(mn=!1,(dn!==null||fn!==null)&&(Nu(),dn&&(t=dn,e=fn,fn=dn=null,pn(t),e)))for(t=0;t<e.length;t++)pn(e[t])}}function gn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[ht]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var _n=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),vn=!1;if(_n)try{var yn={};Object.defineProperty(yn,\"passive\",{get:function(){vn=!0}}),window.addEventListener(`test`,yn,yn),window.removeEventListener(`test`,yn,yn)}catch{vn=!1}var bn=null,xn=null,Sn=null;function Cn(){if(Sn)return Sn;var e,t=xn,n=t.length,r,i=`value`in bn?bn.value:bn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return Sn=i.slice(e,1<r?1-r:void 0)}function wn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Tn(){return!0}function En(){return!1}function Dn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?Tn:En,this.isPropagationStopped=En,this}return h(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=Tn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Tn)},persist:function(){},isPersistent:Tn}),t}var On={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},kn=Dn(On),An=h({},On,{view:0,detail:0}),jn=Dn(An),Mn,Nn,Pn,Fn=h({},An,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Kn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Pn&&(Pn&&e.type===`mousemove`?(Mn=e.screenX-Pn.screenX,Nn=e.screenY-Pn.screenY):Nn=Mn=0,Pn=e),Mn)},movementY:function(e){return`movementY`in e?e.movementY:Nn}}),In=Dn(Fn),Ln=Dn(h({},Fn,{dataTransfer:0})),Rn=Dn(h({},An,{relatedTarget:0})),zn=Dn(h({},On,{animationName:0,elapsedTime:0,pseudoElement:0})),Bn=Dn(h({},On,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Vn=Dn(h({},On,{data:0})),Hn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Un={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Wn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Gn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Wn[e])?!!t[e]:!1}function Kn(){return Gn}var qn=Dn(h({},An,{key:function(e){if(e.key){var t=Hn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=wn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Un[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Kn,charCode:function(e){return e.type===`keypress`?wn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?wn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Jn=Dn(h({},Fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Yn=Dn(h({},An,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Kn})),Xn=Dn(h({},On,{propertyName:0,elapsedTime:0,pseudoElement:0})),Zn=Dn(h({},Fn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Qn=Dn(h({},On,{newState:0,oldState:0})),$n=[9,13,27,32],er=_n&&`CompositionEvent`in window,tr=null;_n&&`documentMode`in document&&(tr=document.documentMode);var nr=_n&&`TextEvent`in window&&!tr,rr=_n&&(!er||tr&&8<tr&&11>=tr),ir=` `,ar=!1;function or(e,t){switch(e){case`keyup`:return $n.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function sr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var cr=!1;function lr(e,t){switch(e){case`compositionend`:return sr(t);case`keypress`:return t.which===32?(ar=!0,ir):null;case`textInput`:return e=t.data,e===ir&&ar?null:e;default:return null}}function ur(e,t){if(cr)return e===`compositionend`||!er&&or(e,t)?(e=Cn(),Sn=xn=bn=null,cr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return rr&&t.locale!==`ko`?null:t.data;default:return null}}var dr={color:!0,date:!0,datetime:!0,\"datetime-local\":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!dr[e.type]:t===`textarea`}function pr(e,t,n,r){dn?fn?fn.push(r):fn=[r]:dn=r,t=Bd(t,`onChange`),0<t.length&&(n=new kn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var mr=null,hr=null;function gr(e){Nd(e,0)}function _r(e){if(Ut(Tt(e)))return e}function vr(e,t){if(e===`change`)return t}var yr=!1;if(_n){var br;if(_n){var xr=`oninput`in document;if(!xr){var Sr=document.createElement(`div`);Sr.setAttribute(`oninput`,`return;`),xr=typeof Sr.oninput==`function`}br=xr}else br=!1;yr=br&&(!document.documentMode||9<document.documentMode)}function Cr(){mr&&(mr.detachEvent(`onpropertychange`,wr),hr=mr=null)}function wr(e){if(e.propertyName===`value`&&_r(hr)){var t=[];pr(t,hr,e,un(e)),hn(gr,t)}}function Tr(e,t,n){e===`focusin`?(Cr(),mr=t,hr=n,mr.attachEvent(`onpropertychange`,wr)):e===`focusout`&&Cr()}function Er(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return _r(hr)}function Dr(e,t){if(e===`click`)return _r(t)}function Or(e,t){if(e===`input`||e===`change`)return _r(t)}function kr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Ar=typeof Object.is==`function`?Object.is:kr;function jr(e,t){if(Ar(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Ae.call(t,i)||!Ar(e[i],t[i]))return!1}return!0}function Mr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Nr(e,t){var n=Mr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Mr(n)}}function Pr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Pr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Fr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Wt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Wt(e.document)}return t}function Ir(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Lr=_n&&`documentMode`in document&&11>=document.documentMode,Rr=null,zr=null,Br=null,Vr=!1;function Hr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Vr||Rr==null||Rr!==Wt(r)||(r=Rr,`selectionStart`in r&&Ir(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Br&&jr(Br,r)||(Br=r,r=Bd(zr,`onSelect`),0<r.length&&(t=new kn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Rr)))}function Ur(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Wr={animationend:Ur(`Animation`,`AnimationEnd`),animationiteration:Ur(`Animation`,`AnimationIteration`),animationstart:Ur(`Animation`,`AnimationStart`),transitionrun:Ur(`Transition`,`TransitionRun`),transitionstart:Ur(`Transition`,`TransitionStart`),transitioncancel:Ur(`Transition`,`TransitionCancel`),transitionend:Ur(`Transition`,`TransitionEnd`)},Gr={},Kr={};_n&&(Kr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Wr.animationend.animation,delete Wr.animationiteration.animation,delete Wr.animationstart.animation),`TransitionEvent`in window||delete Wr.transitionend.transition);function qr(e){if(Gr[e])return Gr[e];if(!Wr[e])return e;var t=Wr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Kr)return Gr[e]=t[n];return e}var j=qr(`animationend`),Jr=qr(`animationiteration`),Yr=qr(`animationstart`),Xr=qr(`transitionrun`),Zr=qr(`transitionstart`),Qr=qr(`transitioncancel`),$r=qr(`transitionend`),ei=new Map,ti=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);ti.push(`scrollEnd`);function ni(e,t){ei.set(e,t),At(t,[e])}var ri=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},ii=[],ai=0,oi=0;function si(){for(var e=ai,t=oi=ai=0;t<e;){var n=ii[t];ii[t++]=null;var r=ii[t];ii[t++]=null;var i=ii[t];ii[t++]=null;var a=ii[t];if(ii[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&di(n,i,a)}}function ci(e,t,n,r){ii[ai++]=e,ii[ai++]=t,ii[ai++]=n,ii[ai++]=r,oi|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function li(e,t,n,r){return ci(e,t,n,r),fi(e)}function ui(e,t){return ci(e,null,null,t),fi(e)}function di(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Ke(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function fi(e){if(50<wu)throw wu=0,Tu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var pi={};function mi(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function hi(e,t,n,r){return new mi(e,t,n,r)}function gi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _i(e,t){var n=e.alternate;return n===null?(n=hi(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function vi(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function yi(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)gi(e)&&(s=1);else if(typeof e==`string`)s=$f(e,n,_e.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case ae:return e=hi(31,n,t,a),e.elementType=ae,e.lanes=o,e;case y:return bi(n.children,a,o,t);case b:s=8,a|=24;break;case x:return e=hi(12,n,t,a|2),e.elementType=x,e.lanes=o,e;case ne:return e=hi(13,n,t,a),e.elementType=ne,e.lanes=o,e;case re:return e=hi(19,n,t,a),e.elementType=re,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case te:s=10;break a;case ee:s=9;break a;case S:s=11;break a;case ie:s=14;break a;case C:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=hi(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function bi(e,t,n,r){return e=hi(7,e,r,t),e.lanes=n,e}function xi(e,t,n){return e=hi(6,e,null,t),e.lanes=n,e}function Si(e){var t=hi(18,null,null,0);return t.stateNode=e,t}function Ci(e,t,n){return t=hi(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var wi=new WeakMap;function Ti(e,t){if(typeof e==`object`&&e){var n=wi.get(e);return n===void 0?(t={value:e,source:t,stack:ke(t)},wi.set(e,t),t):n}return{value:e,source:t,stack:ke(t)}}var Ei=[],Di=0,Oi=null,ki=0,Ai=[],ji=0,Mi=null,Ni=1,Pi=``;function Fi(e,t){Ei[Di++]=ki,Ei[Di++]=Oi,Oi=e,ki=t}function Ii(e,t,n){Ai[ji++]=Ni,Ai[ji++]=Pi,Ai[ji++]=Mi,Mi=e;var r=Ni;e=Pi;var i=32-Ke(r)-1;r&=~(1<<i),n+=1;var a=32-Ke(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ni=1<<32-Ke(t)+i|n<<i|r,Pi=a+e}else Ni=1<<a|n<<i|r,Pi=e}function Li(e){e.return!==null&&(Fi(e,1),Ii(e,1,0))}function Ri(e){for(;e===Oi;)Oi=Ei[--Di],Ei[Di]=null,ki=Ei[--Di],Ei[Di]=null;for(;e===Mi;)Mi=Ai[--ji],Ai[ji]=null,Pi=Ai[--ji],Ai[ji]=null,Ni=Ai[--ji],Ai[ji]=null}function zi(e,t){Ai[ji++]=Ni,Ai[ji++]=Pi,Ai[ji++]=Mi,Ni=t.id,Pi=t.overflow,Mi=e}var Bi=null,Vi=null,M=!1,Hi=null,Ui=!1,Wi=Error(i(519));function Gi(e){throw Zi(Ti(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Wi}function Ki(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[mt]=e,t[ht]=r,n){case`dialog`:R(`cancel`,t),R(`close`,t);break;case`iframe`:case`object`:case`embed`:R(`load`,t);break;case`video`:case`audio`:for(n=0;n<jd.length;n++)R(jd[n],t);break;case`source`:R(`error`,t);break;case`img`:case`image`:case`link`:R(`error`,t),R(`load`,t);break;case`details`:R(`toggle`,t);break;case`input`:R(`invalid`,t),Jt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:R(`invalid`,t);break;case`textarea`:R(`invalid`,t),Qt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Kd(t.textContent,n)?(r.popover!=null&&(R(`beforetoggle`,t),R(`toggle`,t)),r.onScroll!=null&&R(`scroll`,t),r.onScrollEnd!=null&&R(`scrollend`,t),r.onClick!=null&&(t.onclick=cn),t=!0):t=!1,t||Gi(e,!0)}function qi(e){for(Bi=e.return;Bi;)switch(Bi.tag){case 5:case 31:case 13:Ui=!1;return;case 27:case 3:Ui=!0;return;default:Bi=Bi.return}}function Ji(e){if(e!==Bi)return!1;if(!M)return qi(e),M=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||af(e.type,e.memoizedProps)),n=!n),n&&Vi&&Gi(e),qi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Vi=wf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Vi=wf(e)}else t===27?(t=Vi,ff(e.type)?(e=Cf,Cf=null,Vi=e):Vi=t):Vi=Bi?Sf(e.stateNode.nextSibling):null;return!0}function Yi(){Vi=Bi=null,M=!1}function Xi(){var e=Hi;return e!==null&&(uu===null?uu=e:uu.push.apply(uu,e),Hi=null),e}function Zi(e){Hi===null?Hi=[e]:Hi.push(e)}var Qi=me(null),$i=null,ea=null;function ta(e,t,n){ge(Qi,t._currentValue),t._currentValue=n}function na(e){e._currentValue=Qi.current,he(Qi)}function ra(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function ia(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),ra(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),ra(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function aa(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Ar(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===be.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[op]:e.push(op))}a=a.return}e!==null&&ia(t,e,n,r),t.flags|=262144}function oa(e){for(e=e.firstContext;e!==null;){if(!Ar(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function sa(e){$i=e,ea=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ca(e){return ua($i,e)}function la(e,t){return $i===null&&sa(e),ua(e,t)}function ua(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ea===null){if(e===null)throw Error(i(308));ea=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ea=ea.next=t;return n}var da=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},fa=t.unstable_scheduleCallback,pa=t.unstable_NormalPriority,ma={$$typeof:te,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ha(){return{controller:new da,data:new Map,refCount:0}}function ga(e){e.refCount--,e.refCount===0&&fa(pa,function(){e.controller.abort()})}var _a=null,va=0,ya=0,ba=null;function xa(e,t){if(_a===null){var n=_a=[];va=0,ya=Td(),ba={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return va++,t.then(Sa,Sa),t}function Sa(){if(--va===0&&_a!==null){ba!==null&&(ba.status=`fulfilled`);var e=_a;_a=null,ya=0,ba=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ca(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var wa=T.S;T.S=function(e,t){pu=Fe(),typeof t==`object`&&t&&typeof t.then==`function`&&xa(e,t),wa!==null&&wa(e,t)};var Ta=me(null);function Ea(){var e=Ta.current;return e===null?Xl.pooledCache:e}function Da(e,t){t===null?ge(Ta,Ta.current):ge(Ta,t.pool)}function Oa(){var e=Ea();return e===null?null:{parent:ma._currentValue,pool:e}}var ka=Error(i(460)),Aa=Error(i(474)),ja=Error(i(542)),Ma={then:function(){}};function Na(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Pa(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(cn,cn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ra(e),e;default:if(typeof t.status==`string`)t.then(cn,cn);else{if(e=Xl,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ra(e),e}throw Ia=t,ka}}function Fa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Ia=e,ka):e}}var Ia=null;function La(){if(Ia===null)throw Error(i(459));var e=Ia;return Ia=null,e}function Ra(e){if(e===ka||e===ja)throw Error(i(483))}var za=null,Ba=0;function Va(e){var t=Ba;return Ba+=1,za===null&&(za=[]),Pa(za,e,t)}function Ha(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Ua(e,t){throw t.$$typeof===g?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Wa(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=_i(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=xi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===y?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===C&&Fa(i)===t.type)?(t=a(t,n.props),Ha(t,n),t.return=e,t):(t=yi(n.type,n.key,n.props,null,e.mode,r),Ha(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=Ci(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=bi(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=xi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case _:return n=yi(t.type,t.key,t.props,null,e.mode,n),Ha(n,t),n.return=e,n;case v:return t=Ci(t,e.mode,n),t.return=e,t;case C:return t=Fa(t),f(e,t,n)}if(ue(t)||ce(t))return t=bi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Va(t),n);if(t.$$typeof===te)return f(e,la(e,t),n);Ua(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case _:return n.key===i?l(e,t,n,r):null;case v:return n.key===i?u(e,t,n,r):null;case C:return n=Fa(n),p(e,t,n,r)}if(ue(n)||ce(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Va(n),r);if(n.$$typeof===te)return p(e,t,la(e,n),r);Ua(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case _:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case v:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case C:return r=Fa(r),m(e,t,n,r,i)}if(ue(r)||ce(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Va(r),i);if(r.$$typeof===te)return m(e,t,n,la(t,r),i);Ua(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),M&&Fi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return M&&Fi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),M&&Fi(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),M&&Fi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return M&&Fi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),M&&Fi(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case _:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===C&&Fa(l)===r.type){n(e,r.sibling),c=a(r,o.props),Ha(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===y?(c=bi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=yi(o.type,o.key,o.props,null,e.mode,c),Ha(c,o),c.return=e,e=c)}return s(e);case v:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=Ci(o,e.mode,c),c.return=e,e=c}return s(e);case C:return o=Fa(o),b(e,r,o,c)}if(ue(o))return h(e,r,o,c);if(ce(o)){if(l=ce(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Va(o),c);if(o.$$typeof===te)return b(e,r,la(e,o),c);Ua(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=xi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Ba=0;var i=b(e,t,n,r);return za=null,i}catch(t){if(t===ka||t===ja)throw t;var a=hi(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ga=Wa(!0),Ka=Wa(!1),qa=!1;function Ja(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ya(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Xa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Za(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,F&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=fi(e),di(e,null,n),t}return ci(e,r,t,n),fi(e)}function Qa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,st(e,n)}}function $a(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var eo=!1;function to(){if(eo){var e=ba;if(e!==null)throw e}}function no(e,t,n,r){eo=!1;var i=e.updateQueue;qa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(L&f)===f:(r&f)===f){f!==0&&f===ya&&(eo=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(m=g.payload,typeof m==`function`){d=m.call(_,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,f=typeof m==`function`?m.call(_,d,f):m,f==null)break a;d=h({},d,f);break a;case 2:qa=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),iu|=o,e.lanes=o,e.memoizedState=d}}function ro(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function io(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)ro(n[e],t)}var ao=me(null),oo=me(0);function so(e,t){e=nu,ge(oo,e),ge(ao,t),nu=e|t.baseLanes}function co(){ge(oo,nu),ge(ao,ao.current)}function lo(){nu=oo.current,he(ao),he(oo)}var uo=me(null),fo=null;function po(e){var t=e.alternate;ge(vo,vo.current&1),ge(uo,e),fo===null&&(t===null||ao.current!==null||t.memoizedState!==null)&&(fo=e)}function mo(e){ge(vo,vo.current),ge(uo,e),fo===null&&(fo=e)}function ho(e){e.tag===22?(ge(vo,vo.current),ge(uo,e),fo===null&&(fo=e)):go(e)}function go(){ge(vo,vo.current),ge(uo,uo.current)}function _o(e){he(uo),fo===e&&(fo=null),he(vo)}var vo=me(0);function yo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||yf(n)||bf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var bo=0,N=null,xo=null,So=null,Co=!1,wo=!1,To=!1,Eo=0,Do=0,Oo=null,ko=0;function Ao(){throw Error(i(321))}function jo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ar(e[n],t[n]))return!1;return!0}function Mo(e,t,n,r,i,a){return bo=a,N=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,T.H=e===null||e.memoizedState===null?Ys:Xs,To=!1,a=n(r,i),To=!1,wo&&(a=Po(t,n,r,i)),No(e),a}function No(e){T.H=Js;var t=xo!==null&&xo.next!==null;if(bo=0,So=xo=N=null,Co=!1,Do=0,Oo=null,t)throw Error(i(300));e===null||pc||(e=e.dependencies,e!==null&&oa(e)&&(pc=!0))}function Po(e,t,n,r){N=e;var a=0;do{if(wo&&(Oo=null),Do=0,wo=!1,25<=a)throw Error(i(301));if(a+=1,So=xo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}T.H=Zs,o=t(n,r)}while(wo);return o}function Fo(){var e=T.H,t=e.useState()[0];return t=typeof t.then==`function`?Ho(t):t,e=e.useState()[0],(xo===null?null:xo.memoizedState)!==e&&(N.flags|=1024),t}function Io(){var e=Eo!==0;return Eo=0,e}function Lo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Ro(e){if(Co){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Co=!1}bo=0,So=xo=N=null,wo=!1,Do=Eo=0,Oo=null}function zo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return So===null?N.memoizedState=So=e:So=So.next=e,So}function Bo(){if(xo===null){var e=N.alternate;e=e===null?null:e.memoizedState}else e=xo.next;var t=So===null?N.memoizedState:So.next;if(t!==null)So=t,xo=e;else{if(e===null)throw N.alternate===null?Error(i(467)):Error(i(310));xo=e,e={memoizedState:xo.memoizedState,baseState:xo.baseState,baseQueue:xo.baseQueue,queue:xo.queue,next:null},So===null?N.memoizedState=So=e:So=So.next=e}return So}function Vo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ho(e){var t=Do;return Do+=1,Oo===null&&(Oo=[]),e=Pa(Oo,e,t),t=N,(So===null?t.memoizedState:So.next)===null&&(t=t.alternate,T.H=t===null||t.memoizedState===null?Ys:Xs),e}function Uo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Ho(e);if(e.$$typeof===te)return ca(e)}throw Error(i(438,String(e)))}function Wo(e){var t=null,n=N.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=N.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Vo(),N.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=oe;return t.index++,n}function Go(e,t){return typeof t==`function`?t(e):t}function Ko(e){return qo(Bo(),xo,e)}function qo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(bo&f)===f:(L&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===ya&&(d=!0);else if((bo&p)===p){u=u.next,p===ya&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,N.lanes|=p,iu|=p;f=u.action,To&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,N.lanes|=f,iu|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Ar(o,e.memoizedState)&&(pc=!0,d&&(n=ba,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Jo(e){var t=Bo(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Ar(o,t.memoizedState)||(pc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Yo(e,t,n){var r=N,a=Bo(),o=M;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Ar((xo||a).memoizedState,n);if(s&&(a.memoizedState=n,pc=!0),a=a.queue,bs(Qo.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||So!==null&&So.memoizedState.tag&1){if(r.flags|=2048,hs(9,{destroy:void 0},Zo.bind(null,r,a,n,t),null),Xl===null)throw Error(i(349));o||bo&127||Xo(r,t,n)}return n}function Xo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=N.updateQueue,t===null?(t=Vo(),N.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Zo(e,t,n,r){t.value=n,t.getSnapshot=r,$o(t)&&es(e)}function Qo(e,t,n){return n(function(){$o(t)&&es(e)})}function $o(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ar(e,n)}catch{return!0}}function es(e){var t=ui(e,2);t!==null&&Ou(t,e,2)}function ts(e){var t=zo();if(typeof e==`function`){var n=e;if(e=n(),To){Ge(!0);try{n()}finally{Ge(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Go,lastRenderedState:e},t}function ns(e,t,n,r){return e.baseState=n,qo(e,xo,typeof r==`function`?r:Go)}function rs(e,t,n,r,a){if(Gs(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};T.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,is(t,o)):(o.next=n.next,t.pending=n.next=o)}}function is(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=T.T,o={};T.T=o;try{var s=n(i,r),c=T.S;c!==null&&c(o,s),as(e,t,s)}catch(n){ss(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),T.T=a}}else try{a=n(i,r),as(e,t,a)}catch(n){ss(e,t,n)}}function as(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){os(e,t,n)},function(n){return ss(e,t,n)}):os(e,t,n)}function os(e,t,n){t.status=`fulfilled`,t.value=n,cs(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,is(e,n)))}function ss(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,cs(t),t=t.next;while(t!==r)}e.action=null}function cs(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ls(e,t){return t}function us(e,t){if(M){var n=Xl.formState;if(n!==null){a:{var r=N;if(M){if(Vi){b:{for(var i=Vi,a=Ui;i.nodeType!==8;){if(!a){i=null;break b}if(i=Sf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Vi=Sf(i.nextSibling),r=i.data===`F!`;break a}}Gi(r)}r=!1}r&&(t=n[0])}}return n=zo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ls,lastRenderedState:t},n.queue=r,n=Hs.bind(null,N,r),r.dispatch=n,r=ts(!1),a=Ws.bind(null,N,!1,r.queue),r=zo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=rs.bind(null,N,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function ds(e){return fs(Bo(),xo,e)}function fs(e,t,n){if(t=qo(e,t,ls)[0],e=Ko(Go)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Ho(t)}catch(e){throw e===ka?ja:e}else r=t;t=Bo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(N.flags|=2048,hs(9,{destroy:void 0},ps.bind(null,i,n),null)),[r,a,e]}function ps(e,t){e.action=t}function ms(e){var t=Bo(),n=xo;if(n!==null)return fs(t,n,e);Bo(),t=t.memoizedState,n=Bo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function hs(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=N.updateQueue,t===null&&(t=Vo(),N.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function gs(){return Bo().memoizedState}function _s(e,t,n,r){var i=zo();N.flags|=e,i.memoizedState=hs(1|t,{destroy:void 0},n,r===void 0?null:r)}function vs(e,t,n,r){var i=Bo();r=r===void 0?null:r;var a=i.memoizedState.inst;xo!==null&&r!==null&&jo(r,xo.memoizedState.deps)?i.memoizedState=hs(t,a,n,r):(N.flags|=e,i.memoizedState=hs(1|t,a,n,r))}function ys(e,t){_s(8390656,8,e,t)}function bs(e,t){vs(2048,8,e,t)}function xs(e){N.flags|=4;var t=N.updateQueue;if(t===null)t=Vo(),N.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Ss(e){var t=Bo().memoizedState;return xs({ref:t,nextImpl:e}),function(){if(F&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Cs(e,t){return vs(4,2,e,t)}function ws(e,t){return vs(4,4,e,t)}function Ts(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Es(e,t,n){n=n==null?null:n.concat([e]),vs(4,4,Ts.bind(null,t,e),n)}function Ds(){}function Os(e,t){var n=Bo();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&jo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ks(e,t){var n=Bo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&jo(t,r[1]))return r[0];if(r=e(),To){Ge(!0);try{e()}finally{Ge(!1)}}return n.memoizedState=[r,t],r}function As(e,t,n){return n===void 0||bo&1073741824&&!(L&261930)?e.memoizedState=t:(e.memoizedState=n,e=Du(),N.lanes|=e,iu|=e,n)}function js(e,t,n,r){return Ar(n,t)?n:ao.current===null?!(bo&42)||bo&1073741824&&!(L&261930)?(pc=!0,e.memoizedState=n):(e=Du(),N.lanes|=e,iu|=e,t):(e=As(e,n,r),Ar(e,t)||(pc=!0),e)}function Ms(e,t,n,r,i){var a=E.p;E.p=a!==0&&8>a?a:8;var o=T.T,s={};T.T=s,Ws(e,!1,t,n);try{var c=i(),l=T.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Us(e,t,Ca(c,r),Eu(e)):Us(e,t,r,Eu(e))}catch(n){Us(e,t,{then:function(){},status:`rejected`,reason:n},Eu())}finally{E.p=a,o!==null&&s.types!==null&&(o.types=s.types),T.T=o}}function Ns(){}function Ps(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Fs(e).queue;Ms(e,a,t,de,n===null?Ns:function(){return Is(e),n(r)})}function Fs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:de,baseState:de,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Go,lastRenderedState:de},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Go,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Is(e){var t=Fs(e);t.next===null&&(t=e.alternate.memoizedState),Us(e,t.next.queue,{},Eu())}function Ls(){return ca(op)}function Rs(){return Bo().memoizedState}function zs(){return Bo().memoizedState}function Bs(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Eu();e=Xa(n);var r=Za(t,e,n);r!==null&&(Ou(r,t,n),Qa(r,t,n)),t={cache:ha()},e.payload=t;return}t=t.return}}function Vs(e,t,n){var r=Eu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Gs(e)?Ks(t,n):(n=li(e,t,n,r),n!==null&&(Ou(n,e,r),qs(n,t,r)))}function Hs(e,t,n){Us(e,t,n,Eu())}function Us(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Gs(e))Ks(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Ar(s,o))return ci(e,t,i,0),Xl===null&&si(),!1}catch{}if(n=li(e,t,i,r),n!==null)return Ou(n,e,r),qs(n,t,r),!0}return!1}function Ws(e,t,n,r){if(r={lane:2,revertLane:Td(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Gs(e)){if(t)throw Error(i(479))}else t=li(e,n,r,2),t!==null&&Ou(t,e,2)}function Gs(e){var t=e.alternate;return e===N||t!==null&&t===N}function Ks(e,t){wo=Co=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function qs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,st(e,n)}}var Js={readContext:ca,use:Uo,useCallback:Ao,useContext:Ao,useEffect:Ao,useImperativeHandle:Ao,useLayoutEffect:Ao,useInsertionEffect:Ao,useMemo:Ao,useReducer:Ao,useRef:Ao,useState:Ao,useDebugValue:Ao,useDeferredValue:Ao,useTransition:Ao,useSyncExternalStore:Ao,useId:Ao,useHostTransitionStatus:Ao,useFormState:Ao,useActionState:Ao,useOptimistic:Ao,useMemoCache:Ao,useCacheRefresh:Ao};Js.useEffectEvent=Ao;var Ys={readContext:ca,use:Uo,useCallback:function(e,t){return zo().memoizedState=[e,t===void 0?null:t],e},useContext:ca,useEffect:ys,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),_s(4194308,4,Ts.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _s(4194308,4,e,t)},useInsertionEffect:function(e,t){_s(4,2,e,t)},useMemo:function(e,t){var n=zo();t=t===void 0?null:t;var r=e();if(To){Ge(!0);try{e()}finally{Ge(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=zo();if(n!==void 0){var i=n(t);if(To){Ge(!0);try{n(t)}finally{Ge(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Vs.bind(null,N,e),[r.memoizedState,e]},useRef:function(e){var t=zo();return e={current:e},t.memoizedState=e},useState:function(e){e=ts(e);var t=e.queue,n=Hs.bind(null,N,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ds,useDeferredValue:function(e,t){return As(zo(),e,t)},useTransition:function(){var e=ts(!1);return e=Ms.bind(null,N,e.queue,!0,!1),zo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=N,a=zo();if(M){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Xl===null)throw Error(i(349));L&127||Xo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,ys(Qo.bind(null,r,o,e),[e]),r.flags|=2048,hs(9,{destroy:void 0},Zo.bind(null,r,o,n,t),null),n},useId:function(){var e=zo(),t=Xl.identifierPrefix;if(M){var n=Pi,r=Ni;n=(r&~(1<<32-Ke(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Eo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=ko++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Ls,useFormState:us,useActionState:us,useOptimistic:function(e){var t=zo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ws.bind(null,N,!0,n),n.dispatch=t,[e,t]},useMemoCache:Wo,useCacheRefresh:function(){return zo().memoizedState=Bs.bind(null,N)},useEffectEvent:function(e){var t=zo(),n={impl:e};return t.memoizedState=n,function(){if(F&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Xs={readContext:ca,use:Uo,useCallback:Os,useContext:ca,useEffect:bs,useImperativeHandle:Es,useInsertionEffect:Cs,useLayoutEffect:ws,useMemo:ks,useReducer:Ko,useRef:gs,useState:function(){return Ko(Go)},useDebugValue:Ds,useDeferredValue:function(e,t){return js(Bo(),xo.memoizedState,e,t)},useTransition:function(){var e=Ko(Go)[0],t=Bo().memoizedState;return[typeof e==`boolean`?e:Ho(e),t]},useSyncExternalStore:Yo,useId:Rs,useHostTransitionStatus:Ls,useFormState:ds,useActionState:ds,useOptimistic:function(e,t){return ns(Bo(),xo,e,t)},useMemoCache:Wo,useCacheRefresh:zs};Xs.useEffectEvent=Ss;var Zs={readContext:ca,use:Uo,useCallback:Os,useContext:ca,useEffect:bs,useImperativeHandle:Es,useInsertionEffect:Cs,useLayoutEffect:ws,useMemo:ks,useReducer:Jo,useRef:gs,useState:function(){return Jo(Go)},useDebugValue:Ds,useDeferredValue:function(e,t){var n=Bo();return xo===null?As(n,e,t):js(n,xo.memoizedState,e,t)},useTransition:function(){var e=Jo(Go)[0],t=Bo().memoizedState;return[typeof e==`boolean`?e:Ho(e),t]},useSyncExternalStore:Yo,useId:Rs,useHostTransitionStatus:Ls,useFormState:ms,useActionState:ms,useOptimistic:function(e,t){var n=Bo();return xo===null?(n.baseState=e,[e,n.queue.dispatch]):ns(n,xo,e,t)},useMemoCache:Wo,useCacheRefresh:zs};Zs.useEffectEvent=Ss;function Qs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:h({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var $s={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Eu(),i=Xa(r);i.payload=t,n!=null&&(i.callback=n),t=Za(e,i,r),t!==null&&(Ou(t,e,r),Qa(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Eu(),i=Xa(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Za(e,i,r),t!==null&&(Ou(t,e,r),Qa(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Eu(),r=Xa(n);r.tag=2,t!=null&&(r.callback=t),t=Za(e,r,n),t!==null&&(Ou(t,e,n),Qa(t,e,n))}};function ec(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!jr(n,r)||!jr(i,a):!0}function tc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&$s.enqueueReplaceState(t,t.state,null)}function nc(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=h({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function rc(e){ri(e)}function ic(e){console.error(e)}function ac(e){ri(e)}function oc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function sc(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function cc(e,t,n){return n=Xa(n),n.tag=3,n.payload={element:null},n.callback=function(){oc(e,t)},n}function lc(e){return e=Xa(e),e.tag=3,e}function uc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){sc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){sc(t,n,r),typeof i!=`function`&&(gu===null?gu=new Set([this]):gu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function dc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&aa(t,n,a,!0),n=uo.current,n!==null){switch(n.tag){case 31:case 13:return fo===null?Bu():n.alternate===null&&ru===0&&(ru=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Ma?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),ad(e,r,a)),!1;case 22:return n.flags|=65536,r===Ma?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),ad(e,r,a)),!1}throw Error(i(435,n.tag))}return ad(e,r,a),Bu(),!1}if(M)return t=uo.current,t===null?(r!==Wi&&(t=Error(i(423),{cause:r}),Zi(Ti(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Ti(r,n),a=cc(e.stateNode,r,a),$a(e,a),ru!==4&&(ru=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Wi&&(e=Error(i(422),{cause:r}),Zi(Ti(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Ti(o,n),lu===null?lu=[o]:lu.push(o),ru!==4&&(ru=2),t===null)return!0;r=Ti(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=cc(n.stateNode,r,e),$a(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(gu===null||!gu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=lc(a),uc(a,e,n,r),$a(n,a),!1}n=n.return}while(n!==null);return!1}var fc=Error(i(461)),pc=!1;function mc(e,t,n,r){t.child=e===null?Ka(t,null,n,r):Ga(t,e.child,n,r)}function hc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return sa(t),r=Mo(e,t,n,o,a,i),s=Io(),e!==null&&!pc?(Lo(e,t,i),zc(e,t,i)):(M&&s&&Li(t),t.flags|=1,mc(e,t,r,i),t.child)}function gc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!gi(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,_c(e,t,a,r,i)):(e=yi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Bc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?jr:n,n(o,r)&&e.ref===t.ref)return zc(e,t,i)}return t.flags|=1,e=_i(a,r),e.ref=t.ref,e.return=t,t.child=e}function _c(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(jr(a,r)&&e.ref===t.ref)if(pc=!1,t.pendingProps=r=a,Bc(e,i))e.flags&131072&&(pc=!0);else return t.lanes=e.lanes,zc(e,t,i)}return Tc(e,t,n,r,i)}function vc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return bc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Da(t,a===null?null:a.cachePool),a===null?co():so(t,a),ho(t);else return r=t.lanes=536870912,bc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Da(t,null),co(),go(t)):(Da(t,a.cachePool),so(t,a),go(t),t.memoizedState=null);return mc(e,t,i,n),t.child}function yc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function bc(e,t,n,r,i){var a=Ea();return a=a===null?null:{parent:ma._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Da(t,null),co(),ho(t),e!==null&&aa(e,t,r,!0),t.childLanes=i,null}function xc(e,t){return t=Pc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Sc(e,t,n){return Ga(t,e.child,null,n),e=xc(t,t.pendingProps),e.flags|=2,_o(t),t.memoizedState=null,e}function Cc(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(M){if(r.mode===`hidden`)return e=xc(t,r),t.lanes=536870912,yc(null,e);if(mo(t),(e=Vi)?(e=vf(e,Ui),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Mi===null?null:{id:Ni,overflow:Pi},retryLane:536870912,hydrationErrors:null},n=Si(e),n.return=t,t.child=n,Bi=t,Vi=null)):e=null,e===null)throw Gi(t);return t.lanes=536870912,null}return xc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(mo(t),a)if(t.flags&256)t.flags&=-257,t=Sc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(pc||aa(e,t,n,!1),a=(n&e.childLanes)!==0,pc||a){if(r=Xl,r!==null&&(s=ct(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,ui(e,s),Ou(r,e,s),fc;Bu(),t=Sc(e,t,n)}else e=o.treeContext,Vi=Sf(s.nextSibling),Bi=t,M=!0,Hi=null,Ui=!1,e!==null&&zi(t,e),t=xc(t,r),t.flags|=4096;return t}return e=_i(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function wc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Tc(e,t,n,r,i){return sa(t),n=Mo(e,t,n,r,void 0,i),r=Io(),e!==null&&!pc?(Lo(e,t,i),zc(e,t,i)):(M&&r&&Li(t),t.flags|=1,mc(e,t,n,i),t.child)}function Ec(e,t,n,r,i,a){return sa(t),t.updateQueue=null,n=Po(t,r,n,i),No(e),r=Io(),e!==null&&!pc?(Lo(e,t,a),zc(e,t,a)):(M&&r&&Li(t),t.flags|=1,mc(e,t,n,a),t.child)}function Dc(e,t,n,r,i){if(sa(t),t.stateNode===null){var a=pi,o=n.contextType;typeof o==`object`&&o&&(a=ca(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=$s,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Ja(t),o=n.contextType,a.context=typeof o==`object`&&o?ca(o):pi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Qs(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&$s.enqueueReplaceState(a,a.state,null),no(t,r,a,i),to(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=nc(n,s);a.props=c;var l=a.context,u=n.contextType;o=pi,typeof u==`object`&&u&&(o=ca(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&tc(t,a,r,o),qa=!1;var f=t.memoizedState;a.state=f,no(t,r,a,i),to(),l=t.memoizedState,s||f!==l||qa?(typeof d==`function`&&(Qs(t,n,d,r),l=t.memoizedState),(c=qa||ec(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ya(e,t),o=t.memoizedProps,u=nc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=pi,typeof l==`object`&&l&&(c=ca(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&tc(t,a,r,c),qa=!1,f=t.memoizedState,a.state=f,no(t,r,a,i),to();var p=t.memoizedState;o!==d||f!==p||qa||e!==null&&e.dependencies!==null&&oa(e.dependencies)?(typeof s==`function`&&(Qs(t,n,s,r),p=t.memoizedState),(u=qa||ec(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&oa(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,wc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Ga(t,e.child,null,i),t.child=Ga(t,null,n,i)):mc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=zc(e,t,i),e}function Oc(e,t,n,r){return Yi(),t.flags|=256,mc(e,t,n,r),t.child}var kc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ac(e){return{baseLanes:e,cachePool:Oa()}}function jc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=su),e}function Mc(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(vo.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(M){if(a?po(t):go(t),(e=Vi)?(e=vf(e,Ui),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Mi===null?null:{id:Ni,overflow:Pi},retryLane:536870912,hydrationErrors:null},n=Si(e),n.return=t,t.child=n,Bi=t,Vi=null)):e=null,e===null)throw Gi(t);return bf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(go(t),a=t.mode,c=Pc({mode:`hidden`,children:c},a),r=bi(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=Ac(n),r.childLanes=jc(e,s,n),t.memoizedState=kc,yc(null,r)):(po(t),Nc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(po(t),t.flags&=-257,t=Fc(e,t,n)):t.memoizedState===null?(go(t),c=r.fallback,a=t.mode,r=Pc({mode:`visible`,children:r.children},a),c=bi(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Ga(t,e.child,null,n),r=t.child,r.memoizedState=Ac(n),r.childLanes=jc(e,s,n),t.memoizedState=kc,t=yc(null,r)):(go(t),t.child=e.child,t.flags|=128,t=null);else if(po(t),bf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Zi({value:r,source:null,stack:null}),t=Fc(e,t,n)}else if(pc||aa(e,t,n,!1),s=(n&e.childLanes)!==0,pc||s){if(s=Xl,s!==null&&(r=ct(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,ui(e,r),Ou(s,e,r),fc;yf(c)||Bu(),t=Fc(e,t,n)}else yf(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Vi=Sf(c.nextSibling),Bi=t,M=!0,Hi=null,Ui=!1,e!==null&&zi(t,e),t=Nc(t,r.children),t.flags|=4096);return t}return a?(go(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=_i(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=bi(c,a,n,null),c.flags|=2):c=_i(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,yc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=Ac(n):(a=c.cachePool,a===null?a=Oa():(l=ma._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=jc(e,s,n),t.memoizedState=kc,yc(e.child,r)):(po(t),n=e.child,e=n.sibling,n=_i(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function Nc(e,t){return t=Pc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Pc(e,t){return e=hi(22,e,null,t),e.lanes=0,e}function Fc(e,t,n){return Ga(t,e.child,null,n),e=Nc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ic(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ra(e.return,t,n)}function Lc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Rc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=vo.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,ge(vo,o),mc(e,t,r,n),r=M?ki:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ic(e,n,t);else if(e.tag===19)Ic(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&yo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Lc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&yo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Lc(t,!0,n,null,a,r);break;case`together`:Lc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function zc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),iu|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(aa(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=_i(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=_i(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Bc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&oa(e))):!0}function Vc(e,t,n){switch(t.tag){case 3:xe(t,t.stateNode.containerInfo),ta(t,ma,e.memoizedState.cache),Yi();break;case 27:case 5:D(t);break;case 4:xe(t,t.stateNode.containerInfo);break;case 10:ta(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,mo(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(po(t),e=zc(e,t,n),e===null?null:e.sibling):Mc(e,t,n):(po(t),t.flags|=128,null);po(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(aa(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Rc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ge(vo,vo.current),r)break;return null;case 22:return t.lanes=0,vc(e,t,n,t.pendingProps);case 24:ta(t,ma,e.memoizedState.cache)}return zc(e,t,n)}function Hc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)pc=!0;else{if(!Bc(e,n)&&!(t.flags&128))return pc=!1,Vc(e,t,n);pc=!!(e.flags&131072)}else pc=!1,M&&t.flags&1048576&&Ii(t,ki,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Fa(t.elementType),t.type=e,typeof e==`function`)gi(e)?(r=nc(e,r),t.tag=1,t=Dc(null,t,e,r,n)):(t.tag=0,t=Tc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===S){t.tag=11,t=hc(null,t,e,r,n);break a}else if(a===ie){t.tag=14,t=gc(null,t,e,r,n);break a}}throw t=w(e)||e,Error(i(306,t,``))}}return t;case 0:return Tc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=nc(r,t.pendingProps),Dc(e,t,r,a,n);case 3:a:{if(xe(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Ya(e,t),no(t,r,null,n);var s=t.memoizedState;if(r=s.cache,ta(t,ma,r),r!==o.cache&&ia(t,[ma],n,!0),to(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Oc(e,t,r,n);break a}else if(r!==a){a=Ti(Error(i(424)),t),Zi(a),t=Oc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Vi=Sf(e.firstChild),Bi=t,M=!0,Hi=null,Ui=!0,n=Ka(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Yi(),r===a){t=zc(e,t,n);break a}mc(e,t,r,n)}t=t.child}return t;case 26:return wc(e,t),e===null?(n=Hf(t.type,null,t.pendingProps,null))?t.memoizedState=n:M||(n=t.type,e=t.pendingProps,r=tf(ye.current).createElement(n),r[mt]=t,r[ht]=e,Yd(r,n,e),Dt(r),t.stateNode=r):t.memoizedState=Hf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return D(t),e===null&&M&&(r=t.stateNode=Ef(t.type,t.pendingProps,ye.current),Bi=t,Ui=!0,a=Vi,ff(t.type)?(Cf=a,Vi=Sf(r.firstChild)):Vi=a),mc(e,t,t.pendingProps.children,n),wc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&M&&((a=r=Vi)&&(r=gf(r,t.type,t.pendingProps,Ui),r===null?a=!1:(t.stateNode=r,Bi=t,Vi=Sf(r.firstChild),Ui=!1,a=!0)),a||Gi(t)),D(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,af(a,o)?r=null:s!==null&&af(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Mo(e,t,Fo,null,null,n),op._currentValue=a),wc(e,t),mc(e,t,r,n),t.child;case 6:return e===null&&M&&((e=n=Vi)&&(n=_f(n,t.pendingProps,Ui),n===null?e=!1:(t.stateNode=n,Bi=t,Vi=null,e=!0)),e||Gi(t)),null;case 13:return Mc(e,t,n);case 4:return xe(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ga(t,null,r,n):mc(e,t,r,n),t.child;case 11:return hc(e,t,t.type,t.pendingProps,n);case 7:return mc(e,t,t.pendingProps,n),t.child;case 8:return mc(e,t,t.pendingProps.children,n),t.child;case 12:return mc(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,ta(t,t.type,r.value),mc(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,sa(t),a=ca(a),r=r(a),t.flags|=1,mc(e,t,r,n),t.child;case 14:return gc(e,t,t.type,t.pendingProps,n);case 15:return _c(e,t,t.type,t.pendingProps,n);case 19:return Rc(e,t,n);case 31:return Cc(e,t,n);case 22:return vc(e,t,n,t.pendingProps);case 24:return sa(t),r=ca(ma),e===null?(a=Ea(),a===null&&(a=Xl,o=ha(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Ja(t),ta(t,ma,a)):((e.lanes&n)!==0&&(Ya(e,t),no(t,null,null,n),to()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,ta(t,ma,r),r!==a.cache&&ia(t,[ma],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),ta(t,ma,r))),mc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Uc(e){e.flags|=4}function Wc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Lu())e.flags|=8192;else throw Ia=Ma,Aa}else e.flags&=-16777217}function Gc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!ep(t))if(Lu())e.flags|=8192;else throw Ia=Ma,Aa}function Kc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:nt(),e.lanes|=t,cu|=t)}function qc(e,t){if(!M)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Jc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Yc(e,t,n){var r=t.pendingProps;switch(Ri(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Jc(t),null;case 1:return Jc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),na(ma),Se(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ji(t)?Uc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Xi())),Jc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Uc(t),o===null?(Jc(t),Wc(t,a,null,r,n)):(Jc(t),Gc(t,o))):o?o===e.memoizedState?(Jc(t),t.flags&=-16777217):(Uc(t),Jc(t),Gc(t,o)):(e=e.memoizedProps,e!==r&&Uc(t),Jc(t),Wc(t,a,e,r,n)),null;case 27:if(Ce(t),n=ye.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Uc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Jc(t),null}e=_e.current,Ji(t)?Ki(t,e):(e=Ef(a,r,n),t.stateNode=e,Uc(t))}return Jc(t),null;case 5:if(Ce(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Uc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Jc(t),null}if(o=_e.current,Ji(t))Ki(t,o);else{var s=tf(ye.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[mt]=t,o[ht]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Yd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Uc(t)}}return Jc(t),Wc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Uc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=ye.current,Ji(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Bi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[mt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Kd(e.nodeValue,n)),e||Gi(t,!0)}else e=tf(e).createTextNode(r),e[mt]=t,t.stateNode=e}return Jc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ji(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[mt]=t}else Yi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Jc(t),e=!1}else n=Xi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(_o(t),t):(_o(t),null);if(t.flags&128)throw Error(i(558))}return Jc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Ji(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[mt]=t}else Yi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Jc(t),a=!1}else a=Xi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(_o(t),t):(_o(t),null)}return _o(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Kc(t,t.updateQueue),Jc(t),null);case 4:return Se(),e===null&&Id(t.stateNode.containerInfo),Jc(t),null;case 10:return na(t.type),Jc(t),null;case 19:if(he(vo),r=t.memoizedState,r===null)return Jc(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)qc(r,!1);else{if(ru!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=yo(e),o!==null){for(t.flags|=128,qc(r,!1),e=o.updateQueue,t.updateQueue=e,Kc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)vi(n,e),n=n.sibling;return ge(vo,vo.current&1|2),M&&Fi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Fe()>mu&&(t.flags|=128,a=!0,qc(r,!1),t.lanes=4194304)}else{if(!a)if(e=yo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Kc(t,e),qc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!M)return Jc(t),null}else 2*Fe()-r.renderingStartTime>mu&&n!==536870912&&(t.flags|=128,a=!0,qc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Jc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Fe(),e.sibling=null,n=vo.current,ge(vo,a?n&1|2:n&1),M&&Fi(t,r.treeForkCount),e);case 22:case 23:return _o(t),lo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Jc(t),t.subtreeFlags&6&&(t.flags|=8192)):Jc(t),n=t.updateQueue,n!==null&&Kc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&he(Ta),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),na(ma),Jc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Xc(e,t){switch(Ri(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return na(ma),Se(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ce(t),null;case 31:if(t.memoizedState!==null){if(_o(t),t.alternate===null)throw Error(i(340));Yi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(_o(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Yi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return he(vo),null;case 4:return Se(),null;case 10:return na(t.type),null;case 22:case 23:return _o(t),lo(),e!==null&&he(Ta),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return na(ma),null;case 25:return null;default:return null}}function Zc(e,t){switch(Ri(t),t.tag){case 3:na(ma),Se();break;case 26:case 27:case 5:Ce(t);break;case 4:Se();break;case 31:t.memoizedState!==null&&_o(t);break;case 13:_o(t);break;case 19:he(vo);break;case 10:na(t.type);break;case 22:case 23:_o(t),lo(),e!==null&&he(Ta);break;case 24:na(ma)}}function Qc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){id(t,t.return,e)}}function $c(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){id(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){id(t,t.return,e)}}function el(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{io(t,n)}catch(t){id(e,e.return,t)}}}function tl(e,t,n){n.props=nc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){id(e,t,n)}}function nl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){id(e,t,n)}}function rl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){id(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){id(e,t,n)}else n.current=null}function il(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){id(e,e.return,t)}}function al(e,t,n){try{var r=e.stateNode;Xd(r,e.type,n,t),r[ht]=t}catch(t){id(e,e.return,t)}}function ol(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ff(e.type)||e.tag===4}function sl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||ol(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ff(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function cl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=cn));else if(r!==4&&(r===27&&ff(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(cl(e,t,n),e=e.sibling;e!==null;)cl(e,t,n),e=e.sibling}function ll(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&ff(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(ll(e,t,n),e=e.sibling;e!==null;)ll(e,t,n),e=e.sibling}function ul(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Yd(t,r,n),t[mt]=e,t[ht]=n}catch(t){id(e,e.return,t)}}var dl=!1,fl=!1,pl=!1,ml=typeof WeakSet==`function`?WeakSet:Set,hl=null;function gl(e,t){if(e=e.containerInfo,$d=mp,e=Fr(e),Ir(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(ef={focusedElem:e,selectionRange:n},mp=!1,hl=t;hl!==null;)if(t=hl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,hl=e;else for(;hl!==null;){switch(t=hl,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=nc(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){id(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)hf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:hf(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,hl=e;break}hl=t.return}}function _l(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:jl(e,n),r&4&&Qc(5,n);break;case 1:if(jl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){id(n,n.return,e)}else{var i=nc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){id(n,n.return,e)}}r&64&&el(n),r&512&&nl(n,n.return);break;case 3:if(jl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{io(e,t)}catch(e){id(n,n.return,e)}}break;case 27:t===null&&r&4&&ul(n);case 26:case 5:jl(e,n),t===null&&r&4&&il(n),r&512&&nl(n,n.return);break;case 12:jl(e,n);break;case 31:jl(e,n),r&4&&Sl(e,n);break;case 13:jl(e,n),r&4&&Cl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=cd.bind(null,n),xf(e,n))));break;case 22:if(r=n.memoizedState!==null||dl,!r){t=t!==null&&t.memoizedState!==null||fl,i=dl;var a=fl;dl=r,(fl=t)&&!a?Nl(e,n,(n.subtreeFlags&8772)!=0):jl(e,n),dl=i,fl=a}break;case 30:break;default:jl(e,n)}}function vl(e){var t=e.alternate;t!==null&&(e.alternate=null,vl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&St(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var P=null,yl=!1;function bl(e,t,n){for(n=n.child;n!==null;)xl(e,t,n),n=n.sibling}function xl(e,t,n){if(We&&typeof We.onCommitFiberUnmount==`function`)try{We.onCommitFiberUnmount(Ue,n)}catch{}switch(n.tag){case 26:fl||rl(n,t),bl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:fl||rl(n,t);var r=P,i=yl;ff(n.type)&&(P=n.stateNode,yl=!1),bl(e,t,n),Df(n.stateNode),P=r,yl=i;break;case 5:fl||rl(n,t);case 6:if(r=P,i=yl,P=null,bl(e,t,n),P=r,yl=i,P!==null)if(yl)try{(P.nodeType===9?P.body:P.nodeName===`HTML`?P.ownerDocument.body:P).removeChild(n.stateNode)}catch(e){id(n,t,e)}else try{P.removeChild(n.stateNode)}catch(e){id(n,t,e)}break;case 18:P!==null&&(yl?(e=P,pf(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),zp(e)):pf(P,n.stateNode));break;case 4:r=P,i=yl,P=n.stateNode.containerInfo,yl=!0,bl(e,t,n),P=r,yl=i;break;case 0:case 11:case 14:case 15:$c(2,n,t),fl||$c(4,n,t),bl(e,t,n);break;case 1:fl||(rl(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&tl(n,t,r)),bl(e,t,n);break;case 21:bl(e,t,n);break;case 22:fl=(r=fl)||n.memoizedState!==null,bl(e,t,n),fl=r;break;default:bl(e,t,n)}}function Sl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{zp(e)}catch(e){id(t,t.return,e)}}}function Cl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{zp(e)}catch(e){id(t,t.return,e)}}function wl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ml),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ml),t;default:throw Error(i(435,e.tag))}}function Tl(e,t){var n=wl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=ld.bind(null,e,t);t.then(r,r)}})}function El(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(ff(c.type)){P=c.stateNode,yl=!1;break a}break;case 5:P=c.stateNode,yl=!1;break a;case 3:case 4:P=c.stateNode.containerInfo,yl=!0;break a}c=c.return}if(P===null)throw Error(i(160));xl(o,s,a),P=null,yl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Ol(t,e),t=t.sibling}var Dl=null;function Ol(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:El(t,e),kl(e),r&4&&($c(3,e,e.return),Qc(3,e),$c(5,e,e.return));break;case 1:El(t,e),kl(e),r&512&&(fl||n===null||rl(n,n.return)),r&64&&dl&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=Dl;if(El(t,e),kl(e),r&512&&(fl||n===null||rl(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[xt]||o[mt]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Yd(o,r,n),o[mt]=e,Dt(o),r=o;break a;case`link`:var s=Qf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Yd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Qf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Yd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[mt]=e,Dt(o),r=o}e.stateNode=r}else U(a,e.type,e.stateNode);else e.stateNode=V(a,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&al(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?U(a,e.type,e.stateNode):V(a,r,e.memoizedProps))}break;case 27:El(t,e),kl(e),r&512&&(fl||n===null||rl(n,n.return)),n!==null&&r&4&&al(e,e.memoizedProps,n.memoizedProps);break;case 5:if(El(t,e),kl(e),r&512&&(fl||n===null||rl(n,n.return)),e.flags&32){a=e.stateNode;try{$t(a,``)}catch(t){id(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,al(e,a,n===null?a:n.memoizedProps)),r&1024&&(pl=!0);break;case 6:if(El(t,e),kl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){id(e,e.return,t)}}break;case 3:if(H=null,a=Dl,Dl=Af(t.containerInfo),El(t,e),Dl=a,kl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{zp(t.containerInfo)}catch(t){id(e,e.return,t)}pl&&(pl=!1,Al(e));break;case 4:r=Dl,Dl=Af(e.stateNode.containerInfo),El(t,e),kl(e),Dl=r;break;case 12:El(t,e),kl(e);break;case 31:El(t,e),kl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Tl(e,r)));break;case 13:El(t,e),kl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(fu=Fe()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Tl(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=dl,d=fl;if(dl=u||a,fl=d||l,El(t,e),fl=d,dl=u,kl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||dl||fl||Ml(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){id(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){id(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?mf(m,!0):mf(l.stateNode,!1)}catch(e){id(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,Tl(e,n))));break;case 19:El(t,e),kl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Tl(e,r)));break;case 30:break;case 21:break;default:El(t,e),kl(e)}}function kl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(ol(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;ll(e,sl(e),a);break;case 5:var o=n.stateNode;n.flags&32&&($t(o,``),n.flags&=-33),ll(e,sl(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;cl(e,sl(e),s);break;default:throw Error(i(161))}}catch(t){id(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Al(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Al(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function jl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)_l(e,t.alternate,t),t=t.sibling}function Ml(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:$c(4,t,t.return),Ml(t);break;case 1:rl(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&tl(t,t.return,n),Ml(t);break;case 27:Df(t.stateNode);case 26:case 5:rl(t,t.return),Ml(t);break;case 22:t.memoizedState===null&&Ml(t);break;case 30:Ml(t);break;default:Ml(t)}e=e.sibling}}function Nl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:Nl(i,a,n),Qc(4,a);break;case 1:if(Nl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){id(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)ro(c[i],s)}catch(e){id(r,r.return,e)}}n&&o&64&&el(a),nl(a,a.return);break;case 27:ul(a);case 26:case 5:Nl(i,a,n),n&&r===null&&o&4&&il(a),nl(a,a.return);break;case 12:Nl(i,a,n);break;case 31:Nl(i,a,n),n&&o&4&&Sl(i,a);break;case 13:Nl(i,a,n),n&&o&4&&Cl(i,a);break;case 22:a.memoizedState===null&&Nl(i,a,n),nl(a,a.return);break;case 30:break;default:Nl(i,a,n)}t=t.sibling}}function Pl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ga(n))}function Fl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ga(e))}function Il(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ll(e,t,n,r),t=t.sibling}function Ll(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Il(e,t,n,r),i&2048&&Qc(9,t);break;case 1:Il(e,t,n,r);break;case 3:Il(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ga(e)));break;case 12:if(i&2048){Il(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){id(t,t.return,e)}}else Il(e,t,n,r);break;case 31:Il(e,t,n,r);break;case 13:Il(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Il(e,t,n,r):(a._visibility|=2,Rl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?Il(e,t,n,r):zl(e,t),i&2048&&Pl(o,t);break;case 24:Il(e,t,n,r),i&2048&&Fl(t.alternate,t);break;default:Il(e,t,n,r)}}function Rl(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Rl(a,o,s,c,i),Qc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Rl(a,o,s,c,i)):u._visibility&2?Rl(a,o,s,c,i):zl(a,o),i&&l&2048&&Pl(o.alternate,o);break;case 24:Rl(a,o,s,c,i),i&&l&2048&&Fl(o.alternate,o);break;default:Rl(a,o,s,c,i)}t=t.sibling}}function zl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:zl(n,r),i&2048&&Pl(r.alternate,r);break;case 24:zl(n,r),i&2048&&Fl(r.alternate,r);break;default:zl(n,r)}t=t.sibling}}var Bl=8192;function Vl(e,t,n){if(e.subtreeFlags&Bl)for(e=e.child;e!==null;)Hl(e,t,n),e=e.sibling}function Hl(e,t,n){switch(e.tag){case 26:Vl(e,t,n),e.flags&Bl&&e.memoizedState!==null&&W(n,Dl,e.memoizedState,e.memoizedProps);break;case 5:Vl(e,t,n);break;case 3:case 4:var r=Dl;Dl=Af(e.stateNode.containerInfo),Vl(e,t,n),Dl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Bl,Bl=16777216,Vl(e,t,n),Bl=r):Vl(e,t,n));break;default:Vl(e,t,n)}}function Ul(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Wl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];hl=r,ql(r,e)}Ul(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Gl(e),e=e.sibling}function Gl(e){switch(e.tag){case 0:case 11:case 15:Wl(e),e.flags&2048&&$c(9,e,e.return);break;case 3:Wl(e);break;case 12:Wl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Kl(e)):Wl(e);break;default:Wl(e)}}function Kl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];hl=r,ql(r,e)}Ul(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:$c(8,t,t.return),Kl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Kl(t));break;default:Kl(t)}e=e.sibling}}function ql(e,t){for(;hl!==null;){var n=hl;switch(n.tag){case 0:case 11:case 15:$c(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:ga(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,hl=r;else a:for(n=e;hl!==null;){r=hl;var i=r.sibling,a=r.return;if(vl(r),r===n){hl=null;break a}if(i!==null){i.return=a,hl=i;break a}hl=a}}}var Jl={getCacheForType:function(e){var t=ca(ma),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ca(ma).controller.signal}},Yl=typeof WeakMap==`function`?WeakMap:Map,F=0,Xl=null,I=null,L=0,Zl=0,Ql=null,$l=!1,eu=!1,tu=!1,nu=0,ru=0,iu=0,au=0,ou=0,su=0,cu=0,lu=null,uu=null,du=!1,fu=0,pu=0,mu=1/0,hu=null,gu=null,_u=0,vu=null,yu=null,bu=0,xu=0,Su=null,Cu=null,wu=0,Tu=null;function Eu(){return F&2&&L!==0?L&-L:T.T===null?dt():Td()}function Du(){if(su===0)if(!(L&536870912)||M){var e=Ze;Ze<<=1,!(Ze&3932160)&&(Ze=262144),su=e}else su=536870912;return e=uo.current,e!==null&&(e.flags|=32),su}function Ou(e,t,n){(e===Xl&&(Zl===2||Zl===9)||e.cancelPendingCommit!==null)&&(Fu(e,0),Mu(e,L,su,!1)),it(e,n),(!(F&2)||e!==Xl)&&(e===Xl&&(!(F&2)&&(au|=n),ru===4&&Mu(e,L,su,!1)),_d(e))}function ku(e,t,n){if(F&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||tt(e,t),a=r?Uu(e,t):Vu(e,t,!0),o=r;do{if(a===0){eu&&!r&&Mu(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!ju(n)){a=Vu(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=lu;var l=c.current.memoizedState.isDehydrated;if(l&&(Fu(c,s).flags|=256),s=Vu(c,s,!1),s!==2){if(tu&&!l){c.errorRecoveryDisabledLanes|=o,au|=o,a=4;break a}o=uu,uu=a,o!==null&&(uu===null?uu=o:uu.push.apply(uu,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Fu(e,0),Mu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:Mu(r,t,su,!$l);break a;case 2:uu=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=fu+300-Fe(),10<a)){if(Mu(r,t,su,!$l),et(r,0,!0)!==0)break a;bu=t,r.timeoutHandle=z(Au.bind(null,r,n,uu,hu,du,t,su,au,cu,$l,o,`Throttled`,-0,0),a);break a}Au(r,n,uu,hu,du,t,su,au,cu,$l,o,null,-0,0)}}break}while(1);_d(e)}function Au(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:cn},Hl(t,a,d);var m=(a&62914560)===a?fu-Fe():(a&4194048)===a?pu-Fe():0;if(m=np(d,m),m!==null){bu=a,e.cancelPendingCommit=m(Xu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),Mu(e,a,o,!l);return}}Xu(e,t,a,n,r,i,o,s,c)}function ju(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Ar(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Mu(e,t,n,r){t&=~ou,t&=~au,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ke(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&ot(e,n,t)}function Nu(){return F&6?!0:(vd(0,!1),!1)}function Pu(){if(I!==null){if(Zl===0)var e=I.return;else e=I,ea=$i=null,Ro(e),za=null,Ba=0,e=I;for(;e!==null;)Zc(e.alternate,e),e=e.return;I=null}}function Fu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,cf(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),bu=0,Pu(),Xl=e,I=n=_i(e.current,null),L=t,Zl=0,Ql=null,$l=!1,eu=tt(e,t),tu=!1,cu=su=ou=au=iu=ru=0,uu=lu=null,du=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Ke(r),a=1<<i;t|=e[i],r&=~a}return nu=t,si(),n}function Iu(e,t){N=null,T.H=Js,t===ka||t===ja?(t=La(),Zl=3):t===Aa?(t=La(),Zl=4):Zl=t===fc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Ql=t,I===null&&(ru=1,oc(e,Ti(t,e.current)))}function Lu(){var e=uo.current;return e===null?!0:(L&4194048)===L?fo===null:(L&62914560)===L||L&536870912?e===fo:!1}function Ru(){var e=T.H;return T.H=Js,e===null?Js:e}function zu(){var e=T.A;return T.A=Jl,e}function Bu(){ru=4,$l||(L&4194048)!==L&&uo.current!==null||(eu=!0),!(iu&134217727)&&!(au&134217727)||Xl===null||Mu(Xl,L,su,!1)}function Vu(e,t,n){var r=F;F|=2;var i=Ru(),a=zu();(Xl!==e||L!==t)&&(hu=null,Fu(e,t)),t=!1;var o=ru;a:do try{if(Zl!==0&&I!==null){var s=I,c=Ql;switch(Zl){case 8:Pu(),o=6;break a;case 3:case 2:case 9:case 6:uo.current===null&&(t=!0);var l=Zl;if(Zl=0,Ql=null,qu(e,s,c,l),n&&eu){o=0;break a}break;default:l=Zl,Zl=0,Ql=null,qu(e,s,c,l)}}Hu(),o=ru;break}catch(t){Iu(e,t)}while(1);return t&&e.shellSuspendCounter++,ea=$i=null,F=r,T.H=i,T.A=a,I===null&&(Xl=null,L=0,si()),o}function Hu(){for(;I!==null;)Gu(I)}function Uu(e,t){var n=F;F|=2;var r=Ru(),a=zu();Xl!==e||L!==t?(hu=null,mu=Fe()+500,Fu(e,t)):eu=tt(e,t);a:do try{if(Zl!==0&&I!==null){t=I;var o=Ql;b:switch(Zl){case 1:Zl=0,Ql=null,qu(e,t,o,1);break;case 2:case 9:if(Na(o)){Zl=0,Ql=null,Ku(t);break}t=function(){Zl!==2&&Zl!==9||Xl!==e||(Zl=7),_d(e)},o.then(t,t);break a;case 3:Zl=7;break a;case 4:Zl=5;break a;case 7:Na(o)?(Zl=0,Ql=null,Ku(t)):(Zl=0,Ql=null,qu(e,t,o,7));break;case 5:var s=null;switch(I.tag){case 26:s=I.memoizedState;case 5:case 27:var c=I;if(s?ep(s):c.stateNode.complete){Zl=0,Ql=null;var l=c.sibling;if(l!==null)I=l;else{var u=c.return;u===null?I=null:(I=u,Ju(u))}break b}}Zl=0,Ql=null,qu(e,t,o,5);break;case 6:Zl=0,Ql=null,qu(e,t,o,6);break;case 8:Pu(),ru=6;break a;default:throw Error(i(462))}}Wu();break}catch(t){Iu(e,t)}while(1);return ea=$i=null,T.H=r,T.A=a,F=n,I===null?(Xl=null,L=0,si(),ru):0}function Wu(){for(;I!==null&&!Ne();)Gu(I)}function Gu(e){var t=Hc(e.alternate,e,nu);e.memoizedProps=e.pendingProps,t===null?Ju(e):I=t}function Ku(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Ec(n,t,t.pendingProps,t.type,void 0,L);break;case 11:t=Ec(n,t,t.pendingProps,t.type.render,t.ref,L);break;case 5:Ro(t);default:Zc(n,t),t=I=vi(t,nu),t=Hc(n,t,nu)}e.memoizedProps=e.pendingProps,t===null?Ju(e):I=t}function qu(e,t,n,r){ea=$i=null,Ro(t),za=null,Ba=0;var i=t.return;try{if(dc(e,i,t,n,L)){ru=1,oc(e,Ti(n,e.current)),I=null;return}}catch(t){if(i!==null)throw I=i,t;ru=1,oc(e,Ti(n,e.current)),I=null;return}t.flags&32768?(M||r===1?e=!0:eu||L&536870912?e=!1:($l=e=!0,(r===2||r===9||r===3||r===6)&&(r=uo.current,r!==null&&r.tag===13&&(r.flags|=16384))),Yu(t,e)):Ju(t)}function Ju(e){var t=e;do{if(t.flags&32768){Yu(t,$l);return}e=t.return;var n=Yc(t.alternate,t,nu);if(n!==null){I=n;return}if(t=t.sibling,t!==null){I=t;return}I=t=e}while(t!==null);ru===0&&(ru=5)}function Yu(e,t){do{var n=Xc(e.alternate,e);if(n!==null){n.flags&=32767,I=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){I=e;return}I=e=n}while(e!==null);ru=6,I=null}function Xu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do td();while(_u!==0);if(F&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=oi,at(e,n,o,s,c,l),e===Xl&&(I=Xl=null,L=0),yu=t,vu=e,bu=n,xu=o,Su=a,Cu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,ud(k,function(){return nd(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=T.T,T.T=null,a=E.p,E.p=2,s=F,F|=4;try{gl(e,t,n)}finally{F=s,E.p=a,T.T=r}}_u=1,Zu(),Qu(),$u()}}function Zu(){if(_u===1){_u=0;var e=vu,t=yu,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=T.T,T.T=null;var r=E.p;E.p=2;var i=F;F|=4;try{Ol(t,e);var a=ef,o=Fr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Pr(s.ownerDocument.documentElement,s)){if(c!==null&&Ir(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Nr(s,h),v=Nr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}mp=!!$d,ef=$d=null}finally{F=i,E.p=r,T.T=n}}e.current=t,_u=2}}function Qu(){if(_u===2){_u=0;var e=vu,t=yu,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=T.T,T.T=null;var r=E.p;E.p=2;var i=F;F|=4;try{_l(e,t.alternate,t)}finally{F=i,E.p=r,T.T=n}}_u=3}}function $u(){if(_u===4||_u===3){_u=0,Pe();var e=vu,t=yu,n=bu,r=Cu;t.subtreeFlags&10256||t.flags&10256?_u=5:(_u=0,yu=vu=null,ed(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(gu=null),ut(n),t=t.stateNode,We&&typeof We.onCommitFiberRoot==`function`)try{We.onCommitFiberRoot(Ue,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=T.T,i=E.p,E.p=2,T.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{T.T=t,E.p=i}}bu&3&&td(),_d(e),i=e.pendingLanes,n&261930&&i&42?e===Tu?wu++:(wu=0,Tu=e):wu=0,vd(0,!1)}}function ed(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ga(t)))}function td(){return Zu(),Qu(),$u(),nd()}function nd(){if(_u!==5)return!1;var e=vu,t=xu;xu=0;var n=ut(bu),r=T.T,a=E.p;try{E.p=32>n?32:n,T.T=null,n=Su,Su=null;var o=vu,s=bu;if(_u=0,yu=vu=null,bu=0,F&6)throw Error(i(331));var c=F;if(F|=4,Gl(o.current),Ll(o,o.current,s,n),F=c,vd(0,!1),We&&typeof We.onPostCommitFiberRoot==`function`)try{We.onPostCommitFiberRoot(Ue,o)}catch{}return!0}finally{E.p=a,T.T=r,ed(e,t)}}function rd(e,t,n){t=Ti(n,t),t=cc(e.stateNode,t,2),e=Za(e,t,2),e!==null&&(it(e,2),_d(e))}function id(e,t,n){if(e.tag===3)rd(e,e,n);else for(;t!==null;){if(t.tag===3){rd(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(gu===null||!gu.has(r))){e=Ti(n,e),n=lc(2),r=Za(t,n,2),r!==null&&(uc(n,r,t,e),it(r,2),_d(r));break}}t=t.return}}function ad(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Yl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(tu=!0,i.add(n),e=od.bind(null,e,t,n),t.then(e,e))}function od(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Xl===e&&(L&n)===n&&(ru===4||ru===3&&(L&62914560)===L&&300>Fe()-fu?!(F&2)&&Fu(e,0):ou|=n,cu===L&&(cu=0)),_d(e)}function sd(e,t){t===0&&(t=nt()),e=ui(e,t),e!==null&&(it(e,t),_d(e))}function cd(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),sd(e,n)}function ld(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),sd(e,n)}function ud(e,t){return je(e,t)}var dd=null,fd=null,pd=!1,md=!1,hd=!1,gd=0;function _d(e){e!==fd&&e.next===null&&(fd===null?dd=fd=e:fd=fd.next=e),md=!0,pd||(pd=!0,wd())}function vd(e,t){if(!hd&&md){hd=!0;do for(var n=!1,r=dd;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ke(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Cd(r,a))}else a=L,a=et(r,r===Xl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||tt(r,a)||(n=!0,Cd(r,a));r=r.next}while(n);hd=!1}}function yd(){bd()}function bd(){md=pd=!1;var e=0;gd!==0&&sf()&&(e=gd);for(var t=Fe(),n=null,r=dd;r!==null;){var i=r.next,a=xd(r,t);a===0?(r.next=null,n===null?dd=i:n.next=i,i===null&&(fd=n)):(n=r,(e!==0||a&3)&&(md=!0)),r=i}_u!==0&&_u!==5||vd(e,!1),gd!==0&&(gd=0)}function xd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Ke(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=A(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Xl,n=L,n=et(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Zl===2||Zl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Me(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||tt(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Me(r),ut(n)){case 2:case 8:n=Re;break;case 32:n=k;break;case 268435456:n=Be;break;default:n=k}return r=Sd.bind(null,e),n=je(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Me(r),e.callbackPriority=2,e.callbackNode=null,2}function Sd(e,t){if(_u!==0&&_u!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(td()&&e.callbackNode!==n)return null;var r=L;return r=et(e,e===Xl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(ku(e,r,t),xd(e,Fe()),e.callbackNode!=null&&e.callbackNode===n?Sd.bind(null,e):null)}function Cd(e,t){if(td())return null;ku(e,t,!0)}function wd(){uf(function(){F&6?je(Le,yd):bd()})}function Td(){if(gd===0){var e=ya;e===0&&(e=Xe,Xe<<=1,!(Xe&261888)&&(Xe=256)),gd=e}return gd}function Ed(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:sn(``+e)}function Dd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Od(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Ed((i[ht]||null).action),o=r.submitter;o&&(t=(t=o[ht]||null)?Ed(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new kn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(gd!==0){var e=o?Dd(i,o):new FormData(i);Ps(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?Dd(i,o):new FormData(i),Ps(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var kd=0;kd<ti.length;kd++){var Ad=ti[kd];ni(Ad.toLowerCase(),`on`+(Ad[0].toUpperCase()+Ad.slice(1)))}ni(j,`onAnimationEnd`),ni(Jr,`onAnimationIteration`),ni(Yr,`onAnimationStart`),ni(`dblclick`,`onDoubleClick`),ni(`focusin`,`onFocus`),ni(`focusout`,`onBlur`),ni(Xr,`onTransitionRun`),ni(Zr,`onTransitionStart`),ni(Qr,`onTransitionCancel`),ni($r,`onTransitionEnd`),jt(`onMouseEnter`,[`mouseout`,`mouseover`]),jt(`onMouseLeave`,[`mouseout`,`mouseover`]),jt(`onPointerEnter`,[`pointerout`,`pointerover`]),jt(`onPointerLeave`,[`pointerout`,`pointerover`]),At(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),At(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),At(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),At(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),At(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),At(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var jd=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),Md=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(jd));function Nd(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){ri(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){ri(e)}i.currentTarget=null,a=c}}}}function R(e,t){var n=t[_t];n===void 0&&(n=t[_t]=new Set);var r=e+`__bubble`;n.has(r)||(Ld(t,e,2,!1),n.add(r))}function Pd(e,t,n){var r=0;t&&(r|=4),Ld(n,e,r,t)}var Fd=`_reactListening`+Math.random().toString(36).slice(2);function Id(e){if(!e[Fd]){e[Fd]=!0,Ot.forEach(function(t){t!==`selectionchange`&&(Md.has(t)||Pd(t,!1,e),Pd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fd]||(t[Fd]=!0,Pd(`selectionchange`,!1,t))}}function Ld(e,t,n,r){switch(xp(t)){case 2:var i=hp;break;case 8:i=gp;break;default:i=_p}n=i.bind(null,t,n,e),i=void 0,!vn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Rd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;s!==null;){if(o=Ct(s),o===null)return;if(l=o.tag,l===5||l===6||l===26||l===27){r=a=o;continue a}s=s.parentNode}}r=r.return}hn(function(){var r=a,i=un(n),o=[];a:{var s=ei.get(e);if(s!==void 0){var l=kn,u=e;switch(e){case`keypress`:if(wn(n)===0)break a;case`keydown`:case`keyup`:l=qn;break;case`focusin`:u=`focus`,l=Rn;break;case`focusout`:u=`blur`,l=Rn;break;case`beforeblur`:case`afterblur`:l=Rn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=In;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Ln;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Yn;break;case j:case Jr:case Yr:l=zn;break;case $r:l=Xn;break;case`scroll`:case`scrollend`:l=jn;break;case`wheel`:l=Zn;break;case`copy`:case`cut`:case`paste`:l=Bn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Jn;break;case`toggle`:case`beforetoggle`:l=Qn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?s===null?null:s+`Capture`:s;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=gn(m,p),g!=null&&d.push(zd(m,g,h))),f)break;m=m.return}0<d.length&&(s=new l(s,u,null,n,i),o.push({event:s,listeners:d}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,s&&n!==ln&&(u=n.relatedTarget||n.fromElement)&&(Ct(u)||u[gt]))break a;if((l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?Ct(u):null,u!==null&&(f=c(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=In,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Jn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?s:Tt(l),h=u==null?s:Tt(u),s=new d(g,m+`leave`,l,n,i),s.target=f,s.relatedTarget=h,g=null,Ct(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Vd,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Hd(o,s,l,d,!1),u!==null&&f!==null&&Hd(o,f,u,d,!0)}}a:{if(s=r?Tt(r):window,l=s.nodeName&&s.nodeName.toLowerCase(),l===`select`||l===`input`&&s.type===`file`)var v=vr;else if(fr(s))if(yr)v=Or;else{v=Er;var y=Tr}else l=s.nodeName,!l||l.toLowerCase()!==`input`||s.type!==`checkbox`&&s.type!==`radio`?r&&rn(r.elementType)&&(v=vr):v=Dr;if(v&&=v(e,r)){pr(o,v,n,i);break a}y&&y(e,s,r),e===`focusout`&&r&&s.type===`number`&&r.memoizedProps.value!=null&&Yt(s,`number`,s.value)}switch(y=r?Tt(r):window,e){case`focusin`:(fr(y)||y.contentEditable===`true`)&&(Rr=y,zr=r,Br=null);break;case`focusout`:Br=zr=Rr=null;break;case`mousedown`:Vr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Vr=!1,Hr(o,n,i);break;case`selectionchange`:if(Lr)break;case`keydown`:case`keyup`:Hr(o,n,i)}var b;if(er)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else cr?or(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(rr&&n.locale!==`ko`&&(cr||x!==`onCompositionStart`?x===`onCompositionEnd`&&cr&&(b=Cn()):(bn=i,xn=`value`in bn?bn.value:bn.textContent,cr=!0)),y=Bd(r,x),0<y.length&&(x=new Vn(x,e,null,n,i),o.push({event:x,listeners:y}),b?x.data=b:(b=sr(n),b!==null&&(x.data=b)))),(b=nr?lr(e,n):ur(e,n))&&(x=Bd(r,`onBeforeInput`),0<x.length&&(y=new Vn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:y,listeners:x}),y.data=b)),Od(o,e,r,n,i)}Nd(o,t)})}function zd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Bd(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=gn(e,n),i!=null&&r.unshift(zd(e,i,a)),i=gn(e,t),i!=null&&r.push(zd(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Vd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Hd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=gn(n,a),l!=null&&o.unshift(zd(n,l,c))):i||(l=gn(n,a),l!=null&&o.push(zd(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Ud=/\\r\\n?/g,Wd=/\\u0000|\\uFFFD/g;function Gd(e){return(typeof e==`string`?e:``+e).replace(Ud,`\n`).replace(Wd,``)}function Kd(e,t){return t=Gd(t),Gd(e)===t}function qd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||$t(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&$t(e,``+r);break;case`className`:Lt(e,`class`,r);break;case`tabIndex`:Lt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Lt(e,n,r);break;case`style`:nn(e,r,o);break;case`data`:if(t!==`object`){Lt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=sn(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof o==`function`&&(n===`formAction`?(t!==`input`&&qd(e,t,`name`,a.name,a,null),qd(e,t,`formEncType`,a.formEncType,a,null),qd(e,t,`formMethod`,a.formMethod,a,null),qd(e,t,`formTarget`,a.formTarget,a,null)):(qd(e,t,`encType`,a.encType,a,null),qd(e,t,`method`,a.method,a,null),qd(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=sn(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=cn);break;case`onScroll`:r!=null&&R(`scroll`,e);break;case`onScrollEnd`:r!=null&&R(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=sn(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:R(`beforetoggle`,e),R(`toggle`,e),It(e,`popover`,r);break;case`xlinkActuate`:Rt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Rt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Rt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Rt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Rt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Rt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Rt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Rt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Rt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:It(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=an.get(n)||n,It(e,n,r))}}function Jd(e,t,n,r,a,o){switch(n){case`style`:nn(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?$t(e,r):(typeof r==`number`||typeof r==`bigint`)&&$t(e,``+r);break;case`onScroll`:r!=null&&R(`scroll`,e);break;case`onScrollEnd`:r!=null&&R(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=cn);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!kt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[ht]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):It(e,n,r)}}}function Yd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:R(`error`,e),R(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:qd(e,t,o,s,n,null)}}a&&qd(e,t,`srcSet`,n.srcSet,n,null),r&&qd(e,t,`src`,n.src,n,null);return;case`input`:R(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:qd(e,t,r,d,n,null)}}Jt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in R(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:qd(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Xt(e,!!r,n,!0):Xt(e,!!r,t,!1);return;case`textarea`:for(s in R(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:qd(e,t,s,c,n,null)}Qt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:qd(e,t,l,r,n,null)}return;case`dialog`:R(`beforetoggle`,e),R(`toggle`,e),R(`cancel`,e),R(`close`,e);break;case`iframe`:case`object`:R(`load`,e);break;case`video`:case`audio`:for(r=0;r<jd.length;r++)R(jd[r],e);break;case`image`:R(`error`,e),R(`load`,e);break;case`details`:R(`toggle`,e);break;case`embed`:case`source`:case`link`:R(`error`,e),R(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:qd(e,t,u,r,n,null)}return;default:if(rn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Jd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&qd(e,t,c,r,n,null))}function Xd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||qd(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&qd(e,t,p,m,r,f)}}qt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||qd(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&qd(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Xt(e,!!n,n?[]:``,!1):Xt(e,!!n,t,!0)):Xt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:qd(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&qd(e,t,s,a,r,o)}Zt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:qd(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:qd(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&qd(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:qd(e,t,u,p,r,m)}return;default:if(rn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Jd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Jd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&qd(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||qd(e,t,f,p,r,m)}function Zd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Qd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Zd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Zd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var $d=null,ef=null;function tf(e){return e.nodeType===9?e:e.ownerDocument}function nf(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function rf(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function af(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var of=null;function sf(){var e=window.event;return e&&e.type===`popstate`?e===of?!1:(of=e,!0):(of=null,!1)}var z=typeof setTimeout==`function`?setTimeout:void 0,cf=typeof clearTimeout==`function`?clearTimeout:void 0,lf=typeof Promise==`function`?Promise:void 0,uf=typeof queueMicrotask==`function`?queueMicrotask:lf===void 0?z:function(e){return lf.resolve(null).then(e).catch(df)};function df(e){setTimeout(function(){throw e})}function ff(e){return e===`head`}function pf(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),zp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)Df(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,Df(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[xt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&Df(e.ownerDocument.body);n=i}while(n);zp(t)}function mf(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function hf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:hf(n),St(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function gf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[xt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=Sf(e.nextSibling),e===null)break}return null}function _f(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=Sf(e.nextSibling),e===null))return null;return e}function vf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=Sf(e.nextSibling),e===null))return null;return e}function yf(e){return e.data===`$?`||e.data===`$~`}function bf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function xf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function Sf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var Cf=null;function wf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return Sf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function Tf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function Ef(e,t,n){switch(t=tf(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function Df(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);St(e)}var Of=new Map,kf=new Set;function Af(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var jf=E.d;E.d={f:Mf,r:Nf,D:B,C:If,L:Lf,m:Rf,X:Bf,S:zf,M:Vf};function Mf(){var e=jf.f(),t=Nu();return e||t}function Nf(e){var t=wt(e);t!==null&&t.tag===5&&t.type===`form`?Is(t):jf.r(e)}var Pf=typeof document>`u`?null:document;function Ff(e,t,n){var r=Pf;if(r&&typeof t==`string`&&t){var i=Kt(t);i=`link[rel=\"`+e+`\"][href=\"`+i+`\"]`,typeof n==`string`&&(i+=`[crossorigin=\"`+n+`\"]`),kf.has(i)||(kf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Yd(t,`link`,e),Dt(t),r.head.appendChild(t)))}}function B(e){jf.D(e),Ff(`dns-prefetch`,e,null)}function If(e,t){jf.C(e,t),Ff(`preconnect`,e,t)}function Lf(e,t,n){jf.L(e,t,n);var r=Pf;if(r&&e&&t){var i=`link[rel=\"preload\"][as=\"`+Kt(t)+`\"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset=\"`+Kt(n.imageSrcSet)+`\"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes=\"`+Kt(n.imageSizes)+`\"]`)):i+=`[href=\"`+Kt(e)+`\"]`;var a=i;switch(t){case`style`:a=Uf(e);break;case`script`:a=qf(e)}Of.has(a)||(e=h({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Of.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Wf(a))||t===`script`&&r.querySelector(Jf(a))||(t=r.createElement(`link`),Yd(t,`link`,e),Dt(t),r.head.appendChild(t)))}}function Rf(e,t){jf.m(e,t);var n=Pf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel=\"modulepreload\"][as=\"`+Kt(r)+`\"][href=\"`+Kt(e)+`\"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=qf(e)}if(!Of.has(a)&&(e=h({rel:`modulepreload`,href:e},t),Of.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Jf(a)))return}r=n.createElement(`link`),Yd(r,`link`,e),Dt(r),n.head.appendChild(r)}}}function zf(e,t,n){jf.S(e,t,n);var r=Pf;if(r&&e){var i=Et(r).hoistableStyles,a=Uf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Wf(a)))s.loading=5;else{e=h({rel:`stylesheet`,href:e,\"data-precedence\":t},n),(n=Of.get(a))&&Xf(e,n);var c=o=r.createElement(`link`);Dt(c),Yd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Yf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Bf(e,t){jf.X(e,t);var n=Pf;if(n&&e){var r=Et(n).hoistableScripts,i=qf(e),a=r.get(i);a||(a=n.querySelector(Jf(i)),a||(e=h({src:e,async:!0},t),(t=Of.get(i))&&Zf(e,t),a=n.createElement(`script`),Dt(a),Yd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Vf(e,t){jf.M(e,t);var n=Pf;if(n&&e){var r=Et(n).hoistableScripts,i=qf(e),a=r.get(i);a||(a=n.querySelector(Jf(i)),a||(e=h({src:e,async:!0,type:`module`},t),(t=Of.get(i))&&Zf(e,t),a=n.createElement(`script`),Dt(a),Yd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Hf(e,t,n,r){var a=(a=ye.current)?Af(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Uf(n.href),n=Et(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Uf(n.href);var o=Et(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Wf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),Of.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Of.set(e,n),o||Kf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=qf(n),n=Et(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Uf(e){return`href=\"`+Kt(e)+`\"`}function Wf(e){return`link[rel=\"stylesheet\"][`+e+`]`}function Gf(e){return h({},e,{\"data-precedence\":e.precedence,precedence:null})}function Kf(e,t,n,r){e.querySelector(`link[rel=\"preload\"][as=\"style\"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Yd(t,`link`,n),Dt(t),e.head.appendChild(t))}function qf(e){return`[src=\"`+Kt(e)+`\"]`}function Jf(e){return`script[async]`+e}function V(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~=\"`+Kt(n.href)+`\"]`);if(r)return t.instance=r,Dt(r),r;var a=h({},n,{\"data-href\":n.href,\"data-precedence\":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Dt(r),Yd(r,`style`,a),Yf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Uf(n.href);var o=e.querySelector(Wf(a));if(o)return t.state.loading|=4,t.instance=o,Dt(o),o;r=Gf(n),(a=Of.get(a))&&Xf(r,a),o=(e.ownerDocument||e).createElement(`link`),Dt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Yd(o,`link`,r),t.state.loading|=4,Yf(o,n.precedence,e),t.instance=o;case`script`:return o=qf(n.src),(a=e.querySelector(Jf(o)))?(t.instance=a,Dt(a),a):(r=n,(a=Of.get(o))&&(r=h({},n),Zf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Dt(a),Yd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Yf(r,n.precedence,e));return t.instance}function Yf(e,t,n){for(var r=n.querySelectorAll(`link[rel=\"stylesheet\"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Xf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var H=null;function Qf(e,t,n){if(H===null){var r=new Map,i=H=new Map;i.set(n,r)}else i=H,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[xt]||a[mt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function U(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function $f(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function ep(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function W(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Uf(r.href),a=t.querySelector(Wf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=rp.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Dt(a);return}a=t.ownerDocument||t,r=Gf(r),(i=Of.get(i))&&Xf(r,i),a=a.createElement(`link`),Dt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Yd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=rp.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var tp=0;function np(e,t){return e.stylesheets&&e.count===0&&G(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&G(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&tp===0&&(tp=62500*Qd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&G(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>tp?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function rp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)G(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ip=null;function G(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ip=new Map,t.forEach(ap,e),ip=null,rp.call(e))}function ap(e,t){if(!(t.state.loading&4)){var n=ip.get(e);if(n)var r=n.get(null);else{n=new Map,ip.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=rp.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var op={$$typeof:te,Provider:null,Consumer:null,_currentValue:de,_currentValue2:de,_threadCount:0};function sp(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=rt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rt(0),this.hiddenUpdates=rt(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function cp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new sp(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=hi(3,null,null,t),e.current=a,a.stateNode=e,t=ha(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Ja(a),e}function lp(e){return e?(e=pi,e):pi}function up(e,t,n,r,i,a){i=lp(i),r.context===null?r.context=i:r.pendingContext=i,r=Xa(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Za(e,r,t),n!==null&&(Ou(n,e,t),Qa(n,e,t))}function K(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function dp(e,t){K(e,t),(e=e.alternate)&&K(e,t)}function fp(e){if(e.tag===13||e.tag===31){var t=ui(e,67108864);t!==null&&Ou(t,e,67108864),dp(e,67108864)}}function pp(e){if(e.tag===13||e.tag===31){var t=Eu();t=lt(t);var n=ui(e,t);n!==null&&Ou(n,e,t),dp(e,t)}}var mp=!0;function hp(e,t,n,r){var i=T.T;T.T=null;var a=E.p;try{E.p=2,_p(e,t,n,r)}finally{E.p=a,T.T=i}}function gp(e,t,n,r){var i=T.T;T.T=null;var a=E.p;try{E.p=8,_p(e,t,n,r)}finally{E.p=a,T.T=i}}function _p(e,t,n,r){if(mp){var i=vp(r);if(i===null)Rd(e,t,r,yp,n),Ap(e,r);else if(Mp(i,e,t,n,r))r.stopPropagation();else if(Ap(e,r),t&4&&-1<kp.indexOf(e)){for(;i!==null;){var a=wt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=$e(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ke(o);s.entanglements[1]|=c,o&=~c}_d(a),!(F&6)&&(mu=Fe()+500,vd(0,!1))}}break;case 31:case 13:s=ui(a,2),s!==null&&Ou(s,a,2),Nu(),dp(a,2)}if(a=vp(r),a===null&&Rd(e,t,r,yp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Rd(e,t,r,null,n)}}function vp(e){return e=un(e),bp(e)}var yp=null;function bp(e){if(yp=null,e=Ct(e),e!==null){var t=c(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=u(t),e!==null)return e;e=null}else if(n===31){if(e=d(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return yp=e,null}function xp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Ie()){case Le:return 2;case Re:return 8;case k:case ze:return 32;case Be:return 268435456;default:return 32}default:return 32}}var Sp=!1,Cp=null,wp=null,Tp=null,Ep=new Map,Dp=new Map,Op=[],kp=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Ap(e,t){switch(e){case`focusin`:case`focusout`:Cp=null;break;case`dragenter`:case`dragleave`:wp=null;break;case`mouseover`:case`mouseout`:Tp=null;break;case`pointerover`:case`pointerout`:Ep.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Dp.delete(t.pointerId)}}function jp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=wt(t),t!==null&&fp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Mp(e,t,n,r,i){switch(t){case`focusin`:return Cp=jp(Cp,e,t,n,r,i),!0;case`dragenter`:return wp=jp(wp,e,t,n,r,i),!0;case`mouseover`:return Tp=jp(Tp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Ep.set(a,jp(Ep.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Dp.set(a,jp(Dp.get(a)||null,e,t,n,r,i)),!0}return!1}function Np(e){var t=Ct(e.target);if(t!==null){var n=c(t);if(n!==null){if(t=n.tag,t===13){if(t=u(n),t!==null){e.blockedOn=t,ft(e.priority,function(){pp(n)});return}}else if(t===31){if(t=d(n),t!==null){e.blockedOn=t,ft(e.priority,function(){pp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Pp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=vp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ln=r,n.target.dispatchEvent(r),ln=null}else return t=wt(n),t!==null&&fp(t),e.blockedOn=n,!1;t.shift()}return!0}function Fp(e,t,n){Pp(e)&&n.delete(t)}function Ip(){Sp=!1,Cp!==null&&Pp(Cp)&&(Cp=null),wp!==null&&Pp(wp)&&(wp=null),Tp!==null&&Pp(Tp)&&(Tp=null),Ep.forEach(Fp),Dp.forEach(Fp)}function Lp(e,n){e.blockedOn===n&&(e.blockedOn=null,Sp||(Sp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Ip)))}var Rp=null;function q(e){Rp!==e&&(Rp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Rp===e&&(Rp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(bp(r||n)===null)continue;break}var a=wt(n);a!==null&&(e.splice(t,3),t-=3,Ps(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function zp(e){function t(t){return Lp(t,e)}Cp!==null&&Lp(Cp,e),wp!==null&&Lp(wp,e),Tp!==null&&Lp(Tp,e),Ep.forEach(t),Dp.forEach(t);for(var n=0;n<Op.length;n++){var r=Op[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Op.length&&(n=Op[0],n.blockedOn===null);)Np(n),n.blockedOn===null&&Op.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[ht]||null;if(typeof a==`function`)o||q(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[ht]||null)s=o.formAction;else if(bp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),q(n)}}}function Bp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function J(e){this._internalRoot=e}Vp.prototype.render=J.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;up(n,Eu(),e,t,null,null)},Vp.prototype.unmount=J.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;up(e.current,2,null,e,null,null),Nu(),t[gt]=null}};function Vp(e){this._internalRoot=e}Vp.prototype.unstable_scheduleHydration=function(e){if(e){var t=dt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Op.length&&t!==0&&t<Op[n].priority;n++);Op.splice(n,0,e),n===0&&Np(e)}};var Hp=n.version;if(Hp!==`19.2.8`)throw Error(i(527,Hp,`19.2.8`));E.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=p(t),e=e===null?null:m(e),e=e===null?null:e.stateNode,e};var Up={bundleType:0,version:`19.2.8`,rendererPackageName:`react-dom`,currentDispatcherRef:T,reconcilerVersion:`19.2.8`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Wp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wp.isDisabled&&Wp.supportsFiber)try{Ue=Wp.inject(Up),We=Wp}catch{}}e.createRoot=function(e,t){if(!o(e))throw Error(i(299));var n=!1,r=``,a=rc,s=ic,c=ac;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=cp(e,1,!1,null,null,n,r,null,a,s,c,Bp),e[gt]=t.current,Id(e),new J(t)}})),d=n(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=u()}));function f(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,\"_zod\",{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,\"name\",{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,\"init\",{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,\"name\",{value:e}),o}function p(e){return e&&Object.assign(y,e),y}var m,h,g,_,v,y,b=t((()=>{h=Object.freeze({status:`aborted`}),g=Symbol(`zod_brand`),_=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},v=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},(m=globalThis).__zod_globalConfig??(m.__zod_globalConfig={}),y=globalThis.__zod_globalConfig})),x=r({BIGINT_FORMAT_RANGES:()=>et,Class:()=>tt,NUMBER_FORMAT_RANGES:()=>$e,aborted:()=>Me,allowsEval:()=>Ye,assert:()=>re,assertEqual:()=>ee,assertIs:()=>S,assertNever:()=>ne,assertNotEqual:()=>te,assignProp:()=>T,base64ToUint8Array:()=>Ve,base64urlToUint8Array:()=>Ue,cached:()=>oe,captureStackTrace:()=>Je,cleanEnum:()=>Be,cleanRegex:()=>ce,clone:()=>Se,cloneDef:()=>de,createTransparentProxy:()=>Ce,defineLazy:()=>w,esc:()=>he,escapeRegex:()=>xe,explicitlyAborted:()=>Ne,extend:()=>De,finalizeIssue:()=>Ie,floatSafeRemainder:()=>le,getElementAtPath:()=>fe,getEnumValues:()=>ie,getLengthableOrigin:()=>Re,getParsedType:()=>Xe,getSizableOrigin:()=>Le,hexToUint8Array:()=>Ge,isObject:()=>_e,isPlainObject:()=>ve,issue:()=>ze,joinValues:()=>C,jsonStringifyReplacer:()=>ae,merge:()=>ke,mergeDefs:()=>E,normalizeParams:()=>D,nullish:()=>se,numKeys:()=>be,objectClone:()=>ue,omit:()=>Ee,optionalKeys:()=>we,parsedType:()=>k,partial:()=>Ae,pick:()=>Te,prefixIssues:()=>Pe,primitiveTypes:()=>Qe,promiseAllObject:()=>pe,propertyKeyTypes:()=>Ze,randomString:()=>me,required:()=>je,safeExtend:()=>Oe,shallowClone:()=>ye,slugify:()=>ge,stringifyPrimitive:()=>O,uint8ArrayToBase64:()=>He,uint8ArrayToBase64url:()=>We,uint8ArrayToHex:()=>Ke,unwrapMessage:()=>Fe});function ee(e){return e}function te(e){return e}function S(e){}function ne(e){throw Error(`Unexpected value in exhaustive check`)}function re(e){}function ie(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function C(e,t=`|`){return e.map(e=>O(e)).join(t)}function ae(e,t){return typeof t==`bigint`?t.toString():t}function oe(e){return{get value(){{let t=e();return Object.defineProperty(this,\"value\",{value:t}),t}throw Error(`cached value already set`)}}}function se(e){return e==null}function ce(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function le(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}function w(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==qe)return r===void 0&&(r=qe,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function ue(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function T(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function E(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}function de(e){return E(e._zod.def)}function fe(e,t){return t?t.reduce((e,t)=>e?.[t],e):e}function pe(e){let t=Object.keys(e),n=t.map(t=>e[t]);return Promise.all(n).then(e=>{let n={};for(let r=0;r<t.length;r++)n[t[r]]=e[r];return n})}function me(e=10){let t=``;for(let n=0;n<e;n++)t+=`abcdefghijklmnopqrstuvwxyz`[Math.floor(Math.random()*26)];return t}function he(e){return JSON.stringify(e)}function ge(e){return e.toLowerCase().trim().replace(/[^\\w\\s-]/g,``).replace(/[\\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}function _e(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function ve(e){if(_e(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(_e(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function ye(e){return ve(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function be(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}function xe(e){return e.replace(/[.*+?^${}()|[\\]\\\\]/g,`\\\\$&`)}function Se(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function D(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error(\"Cannot specify both `message` and `error` params\");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function Ce(e){let t;return new Proxy({},{get(n,r,i){return t??=e(),Reflect.get(t,r,i)},set(n,r,i,a){return t??=e(),Reflect.set(t,r,i,a)},has(n,r){return t??=e(),Reflect.has(t,r)},deleteProperty(n,r){return t??=e(),Reflect.deleteProperty(t,r)},ownKeys(n){return t??=e(),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,r){return t??=e(),Reflect.getOwnPropertyDescriptor(t,r)},defineProperty(n,r,i){return t??=e(),Reflect.defineProperty(t,r,i)}})}function O(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`\"${e}\"`:`${e}`}function we(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}function Te(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return Se(e,E(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: \"${r}\"`);t[r]&&(e[r]=n.shape[r])}return T(this,`shape`,e),e},checks:[]}))}function Ee(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return Se(e,E(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: \"${e}\"`);t[e]&&delete r[e]}return T(this,`shape`,r),r},checks:[]}))}function De(e,t){if(!ve(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error(\"Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.\")}return Se(e,E(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return T(this,`shape`,n),n}}))}function Oe(e,t){if(!ve(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return Se(e,E(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return T(this,`shape`,n),n}}))}function ke(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return Se(e,E(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return T(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function Ae(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return Se(t,E(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: \"${t}\"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return T(this,`shape`,i),i},checks:[]}))}function je(e,t,n){return Se(t,E(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: \"${t}\"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return T(this,`shape`,i),i}}))}function Me(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Ne(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function Pe(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function Fe(e){return typeof e==`string`?e:e?.message}function Ie(e,t,n){let r=e.message?e.message:Fe(e.inst?._zod.def?.error?.(e))??Fe(t?.error?.(e))??Fe(n.customError?.(e))??Fe(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function Le(e){return e instanceof Set?`set`:e instanceof Map?`map`:e instanceof File?`file`:`unknown`}function Re(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function k(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function ze(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function Be(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function Ve(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}function He(e){let t=``;for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function Ue(e){let t=e.replace(/-/g,`+`).replace(/_/g,`/`);return Ve(t+`=`.repeat((4-t.length%4)%4))}function We(e){return He(e).replace(/\\+/g,`-`).replace(/\\//g,`_`).replace(/=/g,``)}function Ge(e){let t=e.replace(/^0x/,``);if(t.length%2!=0)throw Error(`Invalid hex string length`);let n=new Uint8Array(t.length/2);for(let e=0;e<t.length;e+=2)n[e/2]=Number.parseInt(t.slice(e,e+2),16);return n}function Ke(e){return Array.from(e).map(e=>e.toString(16).padStart(2,`0`)).join(``)}var qe,Je,Ye,Xe,Ze,Qe,$e,et,tt,A=t((()=>{b(),qe=Symbol(`evaluating`),Je=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{},Ye=oe(()=>{if(y.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}}),Xe=e=>{let t=typeof e;switch(t){case`undefined`:return`undefined`;case`string`:return`string`;case`number`:return Number.isNaN(e)?`nan`:`number`;case`boolean`:return`boolean`;case`function`:return`function`;case`bigint`:return`bigint`;case`symbol`:return`symbol`;case`object`:return Array.isArray(e)?`array`:e===null?`null`:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?`promise`:typeof Map<`u`&&e instanceof Map?`map`:typeof Set<`u`&&e instanceof Set?`set`:typeof Date<`u`&&e instanceof Date?`date`:typeof File<`u`&&e instanceof File?`file`:`object`;default:throw Error(`Unknown data type: ${t}`)}},Ze=new Set([`string`,`number`,`symbol`]),Qe=new Set([`string`,`number`,`bigint`,`boolean`,`symbol`,`undefined`]),$e={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},et={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]},tt=class{constructor(...e){}}}));function nt(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function rt(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i<e.length;){let n=e[i];i===e.length-1?(r[n]=r[n]||{_errors:[]},r[n]._errors.push(t(a))):r[n]=r[n]||{_errors:[]},r=r[n],i++}}}};return r(e),n}function it(e,t=e=>e.message){let n={errors:[]},r=(e,i=[])=>{var a,o;for(let s of e.issues)if(s.code===`invalid_union`&&s.errors.length)s.errors.map(e=>r({issues:e},[...i,...s.path]));else if(s.code===`invalid_key`)r({issues:s.issues},[...i,...s.path]);else if(s.code===`invalid_element`)r({issues:s.issues},[...i,...s.path]);else{let e=[...i,...s.path];if(e.length===0){n.errors.push(t(s));continue}let r=n,c=0;for(;c<e.length;){let n=e[c],i=c===e.length-1;typeof n==`string`?(r.properties??={},(a=r.properties)[n]??(a[n]={errors:[]}),r=r.properties[n]):(r.items??=[],(o=r.items)[n]??(o[n]={errors:[]}),r=r.items[n]),i&&r.errors.push(t(s)),c++}}};return r(e),n}function at(e){let t=[],n=e.map(e=>typeof e==`object`?e.key:e);for(let e of n)typeof e==`number`?t.push(`[${e}]`):typeof e==`symbol`?t.push(`[${JSON.stringify(String(e))}]`):/[^\\w$]/.test(e)?t.push(`[${JSON.stringify(e)}]`):(t.length&&t.push(`.`),t.push(e));return t.join(``)}function ot(e){let t=[],n=[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length);for(let e of n)t.push(`✖ ${e.message}`),e.path?.length&&t.push(` → at ${at(e.path)}`);return t.join(`\n`)}var st,ct,lt,ut=t((()=>{b(),A(),st=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,\"_zod\",{value:e._zod,enumerable:!1}),Object.defineProperty(e,\"issues\",{value:t,enumerable:!1}),e.message=JSON.stringify(t,ae,2),Object.defineProperty(e,\"toString\",{value:()=>e.message,enumerable:!1})},ct=f(`$ZodError`,st),lt=f(`$ZodError`,st,{Parent:Error})})),dt,ft,pt,mt,ht,gt,_t,vt,yt,bt,xt,St,Ct,wt,Tt,Et,Dt,Ot,kt,At,jt,Mt,Nt,Pt,Ft=t((()=>{b(),ut(),A(),dt=e=>(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new _;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>Ie(e,a,p())));throw Je(t,i?.callee),t}return o.value},ft=dt(lt),pt=e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>Ie(e,a,p())));throw Je(t,i?.callee),t}return o.value},mt=pt(lt),ht=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new _;return a.issues.length?{success:!1,error:new(e??ct)(a.issues.map(e=>Ie(e,i,p())))}:{success:!0,data:a.value}},gt=ht(lt),_t=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>Ie(e,i,p())))}:{success:!0,data:a.value}},vt=_t(lt),yt=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return dt(e)(t,n,i)},bt=yt(lt),xt=e=>(t,n,r)=>dt(e)(t,n,r),St=xt(lt),Ct=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return pt(e)(t,n,i)},wt=Ct(lt),Tt=e=>async(t,n,r)=>pt(e)(t,n,r),Et=Tt(lt),Dt=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return ht(e)(t,n,i)},Ot=Dt(lt),kt=e=>(t,n,r)=>ht(e)(t,n,r),At=kt(lt),jt=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return _t(e)(t,n,i)},Mt=jt(lt),Nt=e=>async(t,n,r)=>_t(e)(t,n,r),Pt=Nt(lt)})),It=r({base64:()=>hn,base64url:()=>gn,bigint:()=>wn,boolean:()=>Dn,browserEmail:()=>cn,cidrv4:()=>pn,cidrv6:()=>mn,cuid:()=>Ut,cuid2:()=>Wt,date:()=>Sn,datetime:()=>Bt,domain:()=>vn,duration:()=>Yt,e164:()=>bn,email:()=>nn,emoji:()=>Lt,extendedDuration:()=>Xt,guid:()=>Zt,hex:()=>Mn,hostname:()=>_n,html5Email:()=>rn,httpProtocol:()=>yn,idnEmail:()=>sn,integer:()=>Tn,ipv4:()=>un,ipv6:()=>dn,ksuid:()=>qt,lowercase:()=>An,mac:()=>fn,md5_base64:()=>Pn,md5_base64url:()=>Fn,md5_hex:()=>Nn,nanoid:()=>Jt,null:()=>On,number:()=>En,rfc5322Email:()=>an,sha1_base64:()=>Ln,sha1_base64url:()=>Rn,sha1_hex:()=>In,sha256_base64:()=>Bn,sha256_base64url:()=>Vn,sha256_hex:()=>zn,sha384_base64:()=>Un,sha384_base64url:()=>Wn,sha384_hex:()=>Hn,sha512_base64:()=>Kn,sha512_base64url:()=>qn,sha512_hex:()=>Gn,string:()=>Cn,time:()=>zt,ulid:()=>Gt,undefined:()=>kn,unicodeEmail:()=>on,uppercase:()=>jn,uuid:()=>Qt,uuid4:()=>$t,uuid6:()=>en,uuid7:()=>tn,xid:()=>Kt});function Lt(){return new RegExp(ln,`u`)}function Rt(e){let t=`(?:[01]\\\\d|2[0-3]):[0-5]\\\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\\\d`:`${t}:[0-5]\\\\d\\\\.\\\\d{${e.precision}}`:`${t}(?::[0-5]\\\\d(?:\\\\.\\\\d+)?)?`}function zt(e){return RegExp(`^${Rt(e)}$`)}function Bt(e){let t=Rt({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\\\d|2[0-3]):[0-5]\\\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${xn}T(?:${r})$`)}function Vt(e,t){return RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Ht(e){return RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var Ut,Wt,Gt,Kt,qt,Jt,Yt,Xt,Zt,Qt,$t,en,tn,nn,rn,an,on,sn,cn,ln,un,dn,fn,pn,mn,hn,gn,_n,vn,yn,bn,xn,Sn,Cn,wn,Tn,En,Dn,On,kn,An,jn,Mn,Nn,Pn,Fn,In,Ln,Rn,zn,Bn,Vn,Hn,Un,Wn,Gn,Kn,qn,Jn=t((()=>{A(),Ut=/^[cC][0-9a-z]{6,}$/,Wt=/^[0-9a-z]+$/,Gt=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Kt=/^[0-9a-vA-V]{20}$/,qt=/^[A-Za-z0-9]{27}$/,Jt=/^[a-zA-Z0-9_-]{21}$/,Yt=/^P(?:(\\d+W)|(?!.*W)(?=\\d|T\\d)(\\d+Y)?(\\d+M)?(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+([.,]\\d+)?S)?)?)$/,Xt=/^[-+]?P(?!$)(?:(?:[-+]?\\d+Y)|(?:[-+]?\\d+[.,]\\d+Y$))?(?:(?:[-+]?\\d+M)|(?:[-+]?\\d+[.,]\\d+M$))?(?:(?:[-+]?\\d+W)|(?:[-+]?\\d+[.,]\\d+W$))?(?:(?:[-+]?\\d+D)|(?:[-+]?\\d+[.,]\\d+D$))?(?:T(?=[\\d+-])(?:(?:[-+]?\\d+H)|(?:[-+]?\\d+[.,]\\d+H$))?(?:(?:[-+]?\\d+M)|(?:[-+]?\\d+[.,]\\d+M$))?(?:[-+]?\\d+(?:[.,]\\d+)?S)?)??$/,Zt=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Qt=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,$t=Qt(4),en=Qt(6),tn=Qt(7),nn=/^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$/,rn=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,an=/^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/,on=/^[^\\s@\"]{1,64}@[^\\s@]{1,255}$/u,sn=on,cn=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,ln=`^(\\\\p{Extended_Pictographic}|\\\\p{Emoji_Component})+$`,un=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,dn=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,fn=e=>{let t=xe(e??`:`);return RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},pn=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\/([0-9]|[1-2][0-9]|3[0-2])$/,mn=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,hn=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,gn=/^[A-Za-z0-9_-]*$/,_n=/^(?=.{1,253}\\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\\.?$/,vn=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,}$/,yn=/^https?$/,bn=/^\\+[1-9]\\d{6,14}$/,xn=`(?:(?:\\\\d\\\\d[2468][048]|\\\\d\\\\d[13579][26]|\\\\d\\\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\\\d|30)|(?:02)-(?:0[1-9]|1\\\\d|2[0-8])))`,Sn=RegExp(`^${xn}$`),Cn=e=>{let t=e?`[\\\\s\\\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\\\s\\\\S]*`;return RegExp(`^${t}$`)},wn=/^-?\\d+n?$/,Tn=/^-?\\d+$/,En=/^-?\\d+(?:\\.\\d+)?$/,Dn=/^(?:true|false)$/i,On=/^null$/i,kn=/^undefined$/i,An=/^[^A-Z]*$/,jn=/^[^a-z]*$/,Mn=/^[0-9a-fA-F]*$/,Nn=/^[0-9a-fA-F]{32}$/,Pn=Vt(22,`==`),Fn=Ht(22),In=/^[0-9a-fA-F]{40}$/,Ln=Vt(27,`=`),Rn=Ht(27),zn=/^[0-9a-fA-F]{64}$/,Bn=Vt(43,`=`),Vn=Ht(43),Hn=/^[0-9a-fA-F]{96}$/,Un=Vt(64,``),Wn=Ht(64),Gn=/^[0-9a-fA-F]{128}$/,Kn=Vt(86,`==`),qn=Ht(86)}));function Yn(e,t,n){e.issues.length&&t.issues.push(...Pe(n,e.issues))}var Xn,Zn,Qn,$n,er,tr,nr,rr,ir,ar,or,sr,cr,lr,ur,dr,fr,pr,mr,hr,gr,_r,vr,yr=t((()=>{b(),Jn(),A(),Xn=f(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Zn={number:`number`,bigint:`bigint`,object:`date`},Qn=f(`$ZodCheckLessThan`,(e,t)=>{Xn.init(e,t);let n=Zn[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),$n=f(`$ZodCheckGreaterThan`,(e,t)=>{Xn.init(e,t);let n=Zn[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),er=f(`$ZodCheckMultipleOf`,(e,t)=>{Xn.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):le(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),tr=f(`$ZodCheckNumberFormat`,(e,t)=>{Xn.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=$e[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=Tn)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),nr=f(`$ZodCheckBigIntFormat`,(e,t)=>{Xn.init(e,t);let[n,r]=et[t.format];e._zod.onattach.push(e=>{let i=e._zod.bag;i.format=t.format,i.minimum=n,i.maximum=r}),e._zod.check=i=>{let a=i.value;a<n&&i.issues.push({origin:`bigint`,input:a,code:`too_small`,minimum:n,inclusive:!0,inst:e,continue:!t.abort}),a>r&&i.issues.push({origin:`bigint`,input:a,code:`too_big`,maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),rr=f(`$ZodCheckMaxSize`,(e,t)=>{var n;Xn.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!se(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;r.size<=t.maximum||n.issues.push({origin:Le(r),code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),ir=f(`$ZodCheckMinSize`,(e,t)=>{var n;Xn.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!se(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;r.size>=t.minimum||n.issues.push({origin:Le(r),code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),ar=f(`$ZodCheckSizeEquals`,(e,t)=>{var n;Xn.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!se(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=n=>{let r=n.value,i=r.size;if(i===t.size)return;let a=i>t.size;n.issues.push({origin:Le(r),...a?{code:`too_big`,maximum:t.size}:{code:`too_small`,minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),or=f(`$ZodCheckMaxLength`,(e,t)=>{var n;Xn.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!se(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=Re(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),sr=f(`$ZodCheckMinLength`,(e,t)=>{var n;Xn.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!se(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=Re(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),cr=f(`$ZodCheckLengthEquals`,(e,t)=>{var n;Xn.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!se(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=Re(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),lr=f(`$ZodCheckStringFormat`,(e,t)=>{var n,r;Xn.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),ur=f(`$ZodCheckRegex`,(e,t)=>{lr.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),dr=f(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=An,lr.init(e,t)}),fr=f(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=jn,lr.init(e,t)}),pr=f(`$ZodCheckIncludes`,(e,t)=>{Xn.init(e,t);let n=xe(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),mr=f(`$ZodCheckStartsWith`,(e,t)=>{Xn.init(e,t);let n=RegExp(`^${xe(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),hr=f(`$ZodCheckEndsWith`,(e,t)=>{Xn.init(e,t);let n=RegExp(`.*${xe(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),gr=f(`$ZodCheckProperty`,(e,t)=>{Xn.init(e,t),e._zod.check=e=>{let n=t.schema._zod.run({value:e.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(n=>Yn(n,e,t.property));Yn(n,e,t.property)}}),_r=f(`$ZodCheckMimeType`,(e,t)=>{Xn.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(e=>{e._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:`invalid_value`,values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),vr=f(`$ZodCheckOverwrite`,(e,t)=>{Xn.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}})})),br,xr=t((()=>{br=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`\n`).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(`\n`))}}})),Sr,Cr=t((()=>{Sr={major:4,minor:4,patch:3}}));function wr(e){if(e===``)return!0;if(/\\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}function Tr(e){if(!gn.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return wr(t.padEnd(Math.ceil(t.length/4)*4,`=`))}function Er(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}function Dr(e,t,n){e.issues.length&&t.issues.push(...Pe(n,e.issues)),t.value[n]=e.value}function Or(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...Pe(n,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}function kr(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key \"${n}\": expected a Zod schema`);let n=we(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Ar(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>Or(e,n,i,t,u,d))):Or(a,n,i,t,u,d)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}function jr(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!Me(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>Ie(e,r,p())))}),t)}function Mr(e,t,n,r){let i=e.filter(e=>e.issues.length===0);return i.length===1?(t.value=i[0].value,t):(i.length===0?t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>Ie(e,r,p())))}):t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:[],inclusive:!1}),t)}function Nr(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(ve(e)&&ve(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=Nr(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=Nr(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Pr(e,t,n){let r=new Map,i;for(let n of t.issues)if(n.code===`unrecognized_keys`){i??=n;for(let e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=!0}else e.issues.push(n);for(let t of n.issues)if(t.code===`unrecognized_keys`)for(let e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=!0;else e.issues.push(t);let a=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),Me(e))return e;let o=Nr(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}function Fr(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!==`optional`)return n+1;return 0}function Ir(e,t,n){e.issues.length&&t.issues.push(...Pe(n,e.issues)),t.value[n]=e.value}function Lr(e,t,n,r,i){for(let a=0;a<n.length;a++){let n=e[a],o=a<r.length;if(n.issues.length){if(!o&&a>=i){t.value.length=a;break}t.issues.push(...Pe(a,n.issues))}t.value[a]=n.value}for(let e=t.value.length-1;e>=r.length&&n[e]._zod.optout===`optional`&&t.value[e]===void 0;e--)t.value.length=e;return t}function Rr(e,t,n,r,i,a,o){e.issues.length&&(Ze.has(typeof r)?n.issues.push(...Pe(r,e.issues)):n.issues.push({code:`invalid_key`,origin:`map`,input:i,inst:a,issues:e.issues.map(e=>Ie(e,o,p()))})),t.issues.length&&(Ze.has(typeof r)?n.issues.push(...Pe(r,t.issues)):n.issues.push({origin:`map`,code:`invalid_element`,input:i,inst:a,key:r,issues:t.issues.map(e=>Ie(e,o,p()))})),n.value.set(e.value,t.value)}function zr(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}function Br(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}function Vr(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}function Hr(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}function Ur(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}function Wr(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||`forward`)===`forward`){let r=t.transform(e.value,e);return r instanceof Promise?r.then(r=>Gr(e,r,t.out,n)):Gr(e,r,t.out,n)}else{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(r=>Gr(e,r,t.in,n)):Gr(e,r,t.in,n)}}function Gr(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}function Kr(e){return e.value=Object.freeze(e.value),e}function qr(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(ze(e))}}var j,Jr,Yr,Xr,Zr,Qr,$r,ei,ti,ni,ri,ii,ai,oi,si,ci,li,ui,di,fi,pi,mi,hi,gi,_i,vi,yi,bi,xi,Si,Ci,wi,Ti,Ei,Di,Oi,ki,Ai,ji,Mi,Ni,Pi,Fi,Ii,Li,Ri,zi,Bi,Vi,M,Hi,Ui,Wi,Gi,Ki,qi,Ji,Yi,Xi,Zi,Qi,$i,ea,ta,na,ra,ia,aa,oa,sa,ca,la,ua,da,fa=t((()=>{yr(),b(),xr(),Ft(),Jn(),A(),Cr(),j=f(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Sr;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=Me(e),i;for(let a of t){if(a._zod.def.when){if(Ne(e)||!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new _;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=Me(e,t))});else{if(e.issues.length===t)continue;r||=Me(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(Me(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new _;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new _;return o.then(e=>t(e,r,a))}return t(o,r,a)}}w(e,`~standard`,()=>({validate:t=>{try{let n=gt(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return vt(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),Jr=f(`$ZodString`,(e,t)=>{j.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Cn(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),Yr=f(`$ZodStringFormat`,(e,t)=>{lr.init(e,t),Jr.init(e,t)}),Xr=f(`$ZodGUID`,(e,t)=>{t.pattern??=Zt,Yr.init(e,t)}),Zr=f(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: \"${t.version}\"`);t.pattern??=Qt(e)}else t.pattern??=Qt();Yr.init(e,t)}),Qr=f(`$ZodEmail`,(e,t)=>{t.pattern??=nn,Yr.init(e,t)}),$r=f(`$ZodURL`,(e,t)=>{Yr.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===yn.source&&!/^https?:\\/\\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),ei=f(`$ZodEmoji`,(e,t)=>{t.pattern??=Lt(),Yr.init(e,t)}),ti=f(`$ZodNanoID`,(e,t)=>{t.pattern??=Jt,Yr.init(e,t)}),ni=f(`$ZodCUID`,(e,t)=>{t.pattern??=Ut,Yr.init(e,t)}),ri=f(`$ZodCUID2`,(e,t)=>{t.pattern??=Wt,Yr.init(e,t)}),ii=f(`$ZodULID`,(e,t)=>{t.pattern??=Gt,Yr.init(e,t)}),ai=f(`$ZodXID`,(e,t)=>{t.pattern??=Kt,Yr.init(e,t)}),oi=f(`$ZodKSUID`,(e,t)=>{t.pattern??=qt,Yr.init(e,t)}),si=f(`$ZodISODateTime`,(e,t)=>{t.pattern??=Bt(t),Yr.init(e,t)}),ci=f(`$ZodISODate`,(e,t)=>{t.pattern??=Sn,Yr.init(e,t)}),li=f(`$ZodISOTime`,(e,t)=>{t.pattern??=zt(t),Yr.init(e,t)}),ui=f(`$ZodISODuration`,(e,t)=>{t.pattern??=Yt,Yr.init(e,t)}),di=f(`$ZodIPv4`,(e,t)=>{t.pattern??=un,Yr.init(e,t),e._zod.bag.format=`ipv4`}),fi=f(`$ZodIPv6`,(e,t)=>{t.pattern??=dn,Yr.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),pi=f(`$ZodMAC`,(e,t)=>{t.pattern??=fn(t.delimiter),Yr.init(e,t),e._zod.bag.format=`mac`}),mi=f(`$ZodCIDRv4`,(e,t)=>{t.pattern??=pn,Yr.init(e,t)}),hi=f(`$ZodCIDRv6`,(e,t)=>{t.pattern??=mn,Yr.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}}),gi=f(`$ZodBase64`,(e,t)=>{t.pattern??=hn,Yr.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{wr(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}}),_i=f(`$ZodBase64URL`,(e,t)=>{t.pattern??=gn,Yr.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{Tr(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),vi=f(`$ZodE164`,(e,t)=>{t.pattern??=bn,Yr.init(e,t)}),yi=f(`$ZodJWT`,(e,t)=>{Yr.init(e,t),e._zod.check=n=>{Er(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),bi=f(`$ZodCustomStringFormat`,(e,t)=>{Yr.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:`invalid_format`,format:t.format,input:n.value,inst:e,continue:!t.abort})}}),xi=f(`$ZodNumber`,(e,t)=>{j.init(e,t),e._zod.pattern=e._zod.bag.pattern??En,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),Si=f(`$ZodNumberFormat`,(e,t)=>{tr.init(e,t),xi.init(e,t)}),Ci=f(`$ZodBoolean`,(e,t)=>{j.init(e,t),e._zod.pattern=Dn,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),wi=f(`$ZodBigInt`,(e,t)=>{j.init(e,t),e._zod.pattern=wn,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value==`bigint`||n.issues.push({expected:`bigint`,code:`invalid_type`,input:n.value,inst:e}),n}}),Ti=f(`$ZodBigIntFormat`,(e,t)=>{nr.init(e,t),wi.init(e,t)}),Ei=f(`$ZodSymbol`,(e,t)=>{j.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return typeof r==`symbol`||t.issues.push({expected:`symbol`,code:`invalid_type`,input:r,inst:e}),t}}),Di=f(`$ZodUndefined`,(e,t)=>{j.init(e,t),e._zod.pattern=kn,e._zod.values=new Set([void 0]),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`undefined`,code:`invalid_type`,input:r,inst:e}),t}}),Oi=f(`$ZodNull`,(e,t)=>{j.init(e,t),e._zod.pattern=On,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t}}),ki=f(`$ZodAny`,(e,t)=>{j.init(e,t),e._zod.parse=e=>e}),Ai=f(`$ZodUnknown`,(e,t)=>{j.init(e,t),e._zod.parse=e=>e}),ji=f(`$ZodNever`,(e,t)=>{j.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)}),Mi=f(`$ZodVoid`,(e,t)=>{j.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`void`,code:`invalid_type`,input:r,inst:e}),t}}),Ni=f(`$ZodDate`,(e,t)=>{j.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let i=n.value,a=i instanceof Date;return a&&!Number.isNaN(i.getTime())||n.issues.push({expected:`date`,code:`invalid_type`,input:i,...a?{received:`Invalid Date`}:{},inst:e}),n}}),Pi=f(`$ZodArray`,(e,t)=>{j.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let o=i[e],s=t.element._zod.run({value:o,issues:[]},r);s instanceof Promise?a.push(s.then(t=>Dr(t,n,e))):Dr(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}}),Fi=f(`$ZodObject`,(e,t)=>{if(j.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,\"shape\",{get:()=>{let n={...e};return Object.defineProperty(t,\"shape\",{value:n}),n}})}let n=oe(()=>kr(t));w(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=_e,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>Or(n,t,e,s,r,i))):Or(a,t,e,s,r,i)}return i?Ar(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),Ii=f(`$ZodObjectJIT`,(e,t)=>{Fi.init(e,t);let n=e._zod.parse,r=oe(()=>kr(t)),i=e=>{let t=new br([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=he(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=he(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(`\n if (${n}.issues.length) {\n if (${o} in input) {\n payload.issues = payload.issues.concat(${n}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${o}, ...iss.path] : [${o}]\n })));\n }\n }\n \n if (${n}.value === undefined) {\n if (${o} in input) {\n newResult[${o}] = undefined;\n }\n } else {\n newResult[${o}] = ${n}.value;\n }\n \n `):c?t.write(`\n if (${n}.issues.length) {\n payload.issues = payload.issues.concat(${n}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${o}, ...iss.path] : [${o}]\n })));\n }\n \n if (${n}.value === undefined) {\n if (${o} in input) {\n newResult[${o}] = undefined;\n }\n } else {\n newResult[${o}] = ${n}.value;\n }\n \n `):t.write(`\n const ${n}_present = ${o} in input;\n if (${n}.issues.length) {\n payload.issues = payload.issues.concat(${n}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${o}, ...iss.path] : [${o}]\n })));\n }\n if (!${n}_present && !${n}.issues.length) {\n payload.issues.push({\n code: \"invalid_type\",\n expected: \"nonoptional\",\n input: undefined,\n path: [${o}]\n });\n }\n\n if (${n}_present) {\n if (${n}.value === undefined) {\n newResult[${o}] = undefined;\n } else {\n newResult[${o}] = ${n}.value;\n }\n }\n\n `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=_e,s=!y.jitless,c=s&&Ye.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?Ar([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}}),Li=f(`$ZodUnion`,(e,t)=>{j.init(e,t),w(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),w(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),w(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),w(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>ce(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>jr(t,r,e,i)):jr(o,r,e,i)}}),Ri=f(`$ZodXor`,(e,t)=>{Li.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);t instanceof Promise?(o.push(t),a=!0):o.push(t)}return a?Promise.all(o).then(t=>Mr(t,r,e,i)):Mr(o,r,e,i)}}),zi=f(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,Li.init(e,t);let n=e._zod.parse;w(e._zod,`propValues`,()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||Object.keys(r).length===0)throw Error(`Invalid discriminated union option at index \"${t.options.indexOf(n)}\"`);for(let[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(let r of n)e[t].add(r)}}return e});let r=oe(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||e.size===0)throw Error(`Invalid discriminated union option at index \"${t.options.indexOf(r)}\"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value \"${String(t)}\"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!_e(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()),input:o,path:[t.discriminator],inst:e}),i)}}),Bi=f(`$ZodIntersection`,(e,t)=>{j.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>Pr(e,t,n)):Pr(e,i,a)}}),Vi=f(`$ZodTuple`,(e,t)=>{j.init(e,t);let n=t.items;e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:`tuple`,code:`invalid_type`}),r;r.value=[];let o=[],s=Fr(n,`optin`),c=Fr(n,`optout`);if(!t.rest){if(a.length<s)return r.issues.push({code:`too_small`,minimum:s,inclusive:!0,input:a,inst:e,origin:`array`}),r;a.length>n.length&&r.issues.push({code:`too_big`,maximum:n.length,inclusive:!0,input:a,inst:e,origin:`array`})}let l=Array(n.length);for(let e=0;e<n.length;e++){let t=n[e]._zod.run({value:a[e],issues:[]},i);t instanceof Promise?o.push(t.then(t=>{l[e]=t})):l[e]=t}if(t.rest){let e=n.length-1,s=a.slice(n.length);for(let n of s){e++;let a=t.rest._zod.run({value:n,issues:[]},i);a instanceof Promise?o.push(a.then(t=>Ir(t,r,e))):Ir(a,r,e)}}return o.length?Promise.all(o).then(()=>Lr(l,r,n,a,c)):Lr(l,r,n,a,c)}}),M=f(`$ZodRecord`,(e,t)=>{j.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!ve(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let c of o)if(typeof c==`string`||typeof c==`number`||typeof c==`symbol`){s.add(typeof c==`number`?c.toString():c);let o=t.keyType._zod.run({value:c,issues:[]},r);if(o instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(o.issues.length){n.issues.push({code:`invalid_key`,origin:`record`,issues:o.issues.map(e=>Ie(e,r,p())),input:c,path:[c],inst:e});continue}let l=o.value,u=t.valueType._zod.run({value:i[c],issues:[]},r);u instanceof Promise?a.push(u.then(e=>{e.issues.length&&n.issues.push(...Pe(c,e.issues)),n.value[l]=e.value})):(u.issues.length&&n.issues.push(...Pe(c,u.issues)),n.value[l]=u.value)}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`||!Object.prototype.propertyIsEnumerable.call(i,o))continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof o==`string`&&En.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(s=e)}if(s.issues.length){t.mode===`loose`?n.value[o]=i[o]:n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>Ie(e,r,p())),input:o,path:[o],inst:e});continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...Pe(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...Pe(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),Hi=f(`$ZodMap`,(e,t)=>{j.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Map))return n.issues.push({expected:`map`,code:`invalid_type`,input:i,inst:e}),n;let a=[];n.value=new Map;for(let[o,s]of i){let c=t.keyType._zod.run({value:o,issues:[]},r),l=t.valueType._zod.run({value:s,issues:[]},r);c instanceof Promise||l instanceof Promise?a.push(Promise.all([c,l]).then(([t,a])=>{Rr(t,a,n,o,i,e,r)})):Rr(c,l,n,o,i,e,r)}return a.length?Promise.all(a).then(()=>n):n}}),Ui=f(`$ZodSet`,(e,t)=>{j.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Set))return n.issues.push({input:i,inst:e,expected:`set`,code:`invalid_type`}),n;let a=[];n.value=new Set;for(let e of i){let i=t.valueType._zod.run({value:e,issues:[]},r);i instanceof Promise?a.push(i.then(e=>zr(e,n))):zr(i,n)}return a.length?Promise.all(a).then(()=>n):n}}),Wi=f(`$ZodEnum`,(e,t)=>{j.init(e,t);let n=ie(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>Ze.has(typeof e)).map(e=>typeof e==`string`?xe(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),Gi=f(`$ZodLiteral`,(e,t)=>{if(j.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?xe(e):e?xe(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),Ki=f(`$ZodFile`,(e,t)=>{j.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r instanceof File||t.issues.push({expected:`file`,code:`invalid_type`,input:r,inst:e}),t}}),qi=f(`$ZodTransform`,(e,t)=>{j.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new v(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new _;return n.value=i,n.fallback=!0,n}}),Ji=f(`$ZodOptional`,(e,t)=>{j.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,w(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),w(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${ce(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>Br(e,r)):Br(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),Yi=f(`$ZodExactOptional`,(e,t)=>{Ji.init(e,t),w(e._zod,`values`,()=>t.innerType._zod.values),w(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),Xi=f(`$ZodNullable`,(e,t)=>{j.init(e,t),w(e._zod,`optin`,()=>t.innerType._zod.optin),w(e._zod,`optout`,()=>t.innerType._zod.optout),w(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${ce(e.source)}|null)$`):void 0}),w(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),Zi=f(`$ZodDefault`,(e,t)=>{j.init(e,t),e._zod.optin=`optional`,w(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>Vr(e,t)):Vr(r,t)}}),Qi=f(`$ZodPrefault`,(e,t)=>{j.init(e,t),e._zod.optin=`optional`,w(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),$i=f(`$ZodNonOptional`,(e,t)=>{j.init(e,t),w(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>Hr(t,e)):Hr(i,e)}}),ea=f(`$ZodSuccess`,(e,t)=>{j.init(e,t),e._zod.parse=(e,n)=>{if(n.direction===`backward`)throw new v(`ZodSuccess`);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>(e.value=t.issues.length===0,e)):(e.value=r.issues.length===0,e)}}),ta=f(`$ZodCatch`,(e,t)=>{j.init(e,t),e._zod.optin=`optional`,w(e._zod,`optout`,()=>t.innerType._zod.optout),w(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Ie(e,n,p()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Ie(e,n,p()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),na=f(`$ZodNaN`,(e,t)=>{j.init(e,t),e._zod.parse=(t,n)=>((typeof t.value!=`number`||!Number.isNaN(t.value))&&t.issues.push({input:t.value,inst:e,expected:`nan`,code:`invalid_type`}),t)}),ra=f(`$ZodPipe`,(e,t)=>{j.init(e,t),w(e._zod,`values`,()=>t.in._zod.values),w(e._zod,`optin`,()=>t.in._zod.optin),w(e._zod,`optout`,()=>t.out._zod.optout),w(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Ur(e,t.in,n)):Ur(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Ur(e,t.out,n)):Ur(r,t.out,n)}}),ia=f(`$ZodCodec`,(e,t)=>{j.init(e,t),w(e._zod,`values`,()=>t.in._zod.values),w(e._zod,`optin`,()=>t.in._zod.optin),w(e._zod,`optout`,()=>t.out._zod.optout),w(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if((n.direction||`forward`)===`forward`){let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Wr(e,t,n)):Wr(r,t,n)}else{let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Wr(e,t,n)):Wr(r,t,n)}}}),aa=f(`$ZodPreprocess`,(e,t)=>{ra.init(e,t)}),oa=f(`$ZodReadonly`,(e,t)=>{j.init(e,t),w(e._zod,`propValues`,()=>t.innerType._zod.propValues),w(e._zod,`values`,()=>t.innerType._zod.values),w(e._zod,`optin`,()=>t.innerType?._zod?.optin),w(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(Kr):Kr(r)}}),sa=f(`$ZodTemplateLiteral`,(e,t)=>{j.init(e,t);let n=[];for(let e of t.parts)if(typeof e==`object`&&e){if(!e._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);let t=e._zod.pattern instanceof RegExp?e._zod.pattern.source:e._zod.pattern;if(!t)throw Error(`Invalid template literal part: ${e._zod.traits}`);let r=+!!t.startsWith(`^`),i=t.endsWith(`$`)?t.length-1:t.length;n.push(t.slice(r,i))}else if(e===null||Qe.has(typeof e))n.push(xe(`${e}`));else throw Error(`Invalid template literal part: ${e}`);e._zod.pattern=RegExp(`^${n.join(``)}$`),e._zod.parse=(n,r)=>typeof n.value==`string`?(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:`invalid_format`,format:t.format??`template_literal`,pattern:e._zod.pattern.source}),n):(n.issues.push({input:n.value,inst:e,expected:`string`,code:`invalid_type`}),n)}),ca=f(`$ZodFunction`,(e,t)=>(j.init(e,t),e._def=t,e._zod.def=t,e.implement=t=>{if(typeof t!=`function`)throw Error(`implement() must be called with a function`);return function(...n){let r=e._def.input?ft(e._def.input,n):n,i=Reflect.apply(t,this,r);return e._def.output?ft(e._def.output,i):i}},e.implementAsync=t=>{if(typeof t!=`function`)throw Error(`implementAsync() must be called with a function`);return async function(...n){let r=e._def.input?await mt(e._def.input,n):n,i=await Reflect.apply(t,this,r);return e._def.output?await mt(e._def.output,i):i}},e._zod.parse=(t,n)=>typeof t.value==`function`?(e._def.output&&e._def.output._zod.def.type===`promise`?t.value=e.implementAsync(t.value):t.value=e.implement(t.value),t):(t.issues.push({code:`invalid_type`,expected:`function`,input:t.value,inst:e}),t),e.input=(...t)=>{let n=e.constructor;return Array.isArray(t[0])?new n({type:`function`,input:new Vi({type:`tuple`,items:t[0],rest:t[1]}),output:e._def.output}):new n({type:`function`,input:t[0],output:e._def.output})},e.output=t=>{let n=e.constructor;return new n({type:`function`,input:e._def.input,output:t})},e)),la=f(`$ZodPromise`,(e,t)=>{j.init(e,t),e._zod.parse=(e,n)=>Promise.resolve(e.value).then(e=>t.innerType._zod.run({value:e,issues:[]},n))}),ua=f(`$ZodLazy`,(e,t)=>{j.init(e,t),w(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),w(e._zod,`pattern`,()=>e._zod.innerType?._zod?.pattern),w(e._zod,`propValues`,()=>e._zod.innerType?._zod?.propValues),w(e._zod,`optin`,()=>e._zod.innerType?._zod?.optin??void 0),w(e._zod,`optout`,()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),da=f(`$ZodCustom`,(e,t)=>{Xn.init(e,t),j.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>qr(t,n,r,e));qr(i,n,r,e)}})}));function pa(){return{localeError:ma()}}var ma,ha=t((()=>{A(),ma=()=>{let e={string:{unit:`حرف`,verb:`أن يحوي`},file:{unit:`بايت`,verb:`أن يحوي`},array:{unit:`عنصر`,verb:`أن يحوي`},set:{unit:`عنصر`,verb:`أن يحوي`}};function t(t){return e[t]??null}let n={regex:`مدخل`,email:`بريد إلكتروني`,url:`رابط`,emoji:`إيموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاريخ ووقت بمعيار ISO`,date:`تاريخ بمعيار ISO`,time:`وقت بمعيار ISO`,duration:`مدة بمعيار ISO`,ipv4:`عنوان IPv4`,ipv6:`عنوان IPv6`,cidrv4:`مدى عناوين بصيغة IPv4`,cidrv6:`مدى عناوين بصيغة IPv6`,base64:`نَص بترميز base64-encoded`,base64url:`نَص بترميز base64url-encoded`,json_string:`نَص على هيئة JSON`,e164:`رقم هاتف بمعيار E.164`,jwt:`JWT`,template_literal:`مدخل`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`مدخلات غير مقبولة: يفترض إدخال instanceof ${e.expected}، ولكن تم إدخال ${i}`:`مدخلات غير مقبولة: يفترض إدخال ${t}، ولكن تم إدخال ${i}`}case`invalid_value`:return e.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${O(e.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${C(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?` أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()} ${r.unit??`عنصر`}`:`أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()} ${r.unit}`:`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`نَص غير مقبول: يجب أن يبدأ بـ \"${e.prefix}\"`:t.format===`ends_with`?`نَص غير مقبول: يجب أن ينتهي بـ \"${t.suffix}\"`:t.format===`includes`?`نَص غير مقبول: يجب أن يتضمَّن \"${t.includes}\"`:t.format===`regex`?`نَص غير مقبول: يجب أن يطابق النمط ${t.pattern}`:`${n[t.format]??e.format} غير مقبول`}case`not_multiple_of`:return`رقم غير مقبول: يجب أن يكون من مضاعفات ${e.divisor}`;case`unrecognized_keys`:return`معرف${e.keys.length>1?`ات`:``} غريب${e.keys.length>1?`ة`:``}: ${C(e.keys,`، `)}`;case`invalid_key`:return`معرف غير مقبول في ${e.origin}`;case`invalid_union`:return`مدخل غير مقبول`;case`invalid_element`:return`مدخل غير مقبول في ${e.origin}`;default:return`مدخل غير مقبول`}}}}));function ga(){return{localeError:_a()}}var _a,va=t((()=>{A(),_a=()=>{let e={string:{unit:`simvol`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`element`,verb:`olmalıdır`},set:{unit:`element`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Yanlış dəyər: gözlənilən instanceof ${e.expected}, daxil olan ${i}`:`Yanlış dəyər: gözlənilən ${t}, daxil olan ${i}`}case`invalid_value`:return e.values.length===1?`Yanlış dəyər: gözlənilən ${O(e.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${C(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()} ${r.unit??`element`}`:`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Yanlış mətn: \"${t.prefix}\" ilə başlamalıdır`:t.format===`ends_with`?`Yanlış mətn: \"${t.suffix}\" ilə bitməlidir`:t.format===`includes`?`Yanlış mətn: \"${t.includes}\" daxil olmalıdır`:t.format===`regex`?`Yanlış mətn: ${t.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${n[t.format]??e.format}`}case`not_multiple_of`:return`Yanlış ədəd: ${e.divisor} ilə bölünə bilən olmalıdır`;case`unrecognized_keys`:return`Tanınmayan açar${e.keys.length>1?`lar`:``}: ${C(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} daxilində yanlış açar`;case`invalid_union`:return`Yanlış dəyər`;case`invalid_element`:return`${e.origin} daxilində yanlış dəyər`;default:return`Yanlış dəyər`}}}}));function ya(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}function ba(){return{localeError:xa()}}var xa,Sa=t((()=>{A(),xa=()=>{let e={string:{unit:{one:`сімвал`,few:`сімвалы`,many:`сімвалаў`},verb:`мець`},array:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},set:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},file:{unit:{one:`байт`,few:`байты`,many:`байтаў`},verb:`мець`}};function t(t){return e[t]??null}let n={regex:`увод`,email:`email адрас`,url:`URL`,emoji:`эмодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата і час`,date:`ISO дата`,time:`ISO час`,duration:`ISO працягласць`,ipv4:`IPv4 адрас`,ipv6:`IPv6 адрас`,cidrv4:`IPv4 дыяпазон`,cidrv6:`IPv6 дыяпазон`,base64:`радок у фармаце base64`,base64url:`радок у фармаце base64url`,json_string:`JSON радок`,e164:`нумар E.164`,jwt:`JWT`,template_literal:`увод`},r={nan:`NaN`,number:`лік`,array:`масіў`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Няправільны ўвод: чакаўся instanceof ${e.expected}, атрымана ${i}`:`Няправільны ўвод: чакаўся ${t}, атрымана ${i}`}case`invalid_value`:return e.values.length===1?`Няправільны ўвод: чакалася ${O(e.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${C(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=ya(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна ${r.verb} ${n}${e.maximum.toString()} ${t}`}return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна быць ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=ya(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Занадта малы: чакалася, што ${e.origin} павінна ${r.verb} ${n}${e.minimum.toString()} ${t}`}return`Занадта малы: чакалася, што ${e.origin} павінна быць ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Няправільны радок: павінен пачынацца з \"${t.prefix}\"`:t.format===`ends_with`?`Няправільны радок: павінен заканчвацца на \"${t.suffix}\"`:t.format===`includes`?`Няправільны радок: павінен змяшчаць \"${t.includes}\"`:t.format===`regex`?`Няправільны радок: павінен адпавядаць шаблону ${t.pattern}`:`Няправільны ${n[t.format]??e.format}`}case`not_multiple_of`:return`Няправільны лік: павінен быць кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспазнаны ${e.keys.length>1?`ключы`:`ключ`}: ${C(e.keys,`, `)}`;case`invalid_key`:return`Няправільны ключ у ${e.origin}`;case`invalid_union`:return`Няправільны ўвод`;case`invalid_element`:return`Няправільнае значэнне ў ${e.origin}`;default:return`Няправільны ўвод`}}}}));function Ca(){return{localeError:wa()}}var wa,Ta=t((()=>{A(),wa=()=>{let e={string:{unit:`символа`,verb:`да съдържа`},file:{unit:`байта`,verb:`да съдържа`},array:{unit:`елемента`,verb:`да съдържа`},set:{unit:`елемента`,verb:`да съдържа`}};function t(t){return e[t]??null}let n={regex:`вход`,email:`имейл адрес`,url:`URL`,emoji:`емоджи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO време`,date:`ISO дата`,time:`ISO време`,duration:`ISO продължителност`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`base64-кодиран низ`,base64url:`base64url-кодиран низ`,json_string:`JSON низ`,e164:`E.164 номер`,jwt:`JWT`,template_literal:`вход`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Невалиден вход: очакван instanceof ${e.expected}, получен ${i}`:`Невалиден вход: очакван ${t}, получен ${i}`}case`invalid_value`:return e.values.length===1?`Невалиден вход: очакван ${O(e.values[0])}`:`Невалидна опция: очаквано едно от ${C(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Твърде голямо: очаква се ${e.origin??`стойност`} да съдържа ${n}${e.maximum.toString()} ${r.unit??`елемента`}`:`Твърде голямо: очаква се ${e.origin??`стойност`} да бъде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Твърде малко: очаква се ${e.origin} да съдържа ${n}${e.minimum.toString()} ${r.unit}`:`Твърде малко: очаква се ${e.origin} да бъде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;if(t.format===`starts_with`)return`Невалиден низ: трябва да започва с \"${t.prefix}\"`;if(t.format===`ends_with`)return`Невалиден низ: трябва да завършва с \"${t.suffix}\"`;if(t.format===`includes`)return`Невалиден низ: трябва да включва \"${t.includes}\"`;if(t.format===`regex`)return`Невалиден низ: трябва да съвпада с ${t.pattern}`;let r=`Невалиден`;return t.format===`emoji`&&(r=`Невалидно`),t.format===`datetime`&&(r=`Невалидно`),t.format===`date`&&(r=`Невалидна`),t.format===`time`&&(r=`Невалидно`),t.format===`duration`&&(r=`Невалидна`),`${r} ${n[t.format]??e.format}`}case`not_multiple_of`:return`Невалидно число: трябва да бъде кратно на ${e.divisor}`;case`unrecognized_keys`:return`Неразпознат${e.keys.length>1?`и`:``} ключ${e.keys.length>1?`ове`:``}: ${C(e.keys,`, `)}`;case`invalid_key`:return`Невалиден ключ в ${e.origin}`;case`invalid_union`:return`Невалиден вход`;case`invalid_element`:return`Невалидна стойност в ${e.origin}`;default:return`Невалиден вход`}}}}));function Ea(){return{localeError:Da()}}var Da,Oa=t((()=>{A(),Da=()=>{let e={string:{unit:`caràcters`,verb:`contenir`},file:{unit:`bytes`,verb:`contenir`},array:{unit:`elements`,verb:`contenir`},set:{unit:`elements`,verb:`contenir`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`adreça electrònica`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data i hora ISO`,date:`data ISO`,time:`hora ISO`,duration:`durada ISO`,ipv4:`adreça IPv4`,ipv6:`adreça IPv6`,cidrv4:`rang IPv4`,cidrv6:`rang IPv6`,base64:`cadena codificada en base64`,base64url:`cadena codificada en base64url`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipus invàlid: s'esperava instanceof ${e.expected}, s'ha rebut ${i}`:`Tipus invàlid: s'esperava ${t}, s'ha rebut ${i}`}case`invalid_value`:return e.values.length===1?`Valor invàlid: s'esperava ${O(e.values[0])}`:`Opció invàlida: s'esperava una de ${C(e.values,` o `)}`;case`too_big`:{let n=e.inclusive?`com a màxim`:`menys de`,r=t(e.origin);return r?`Massa gran: s'esperava que ${e.origin??`el valor`} contingués ${n} ${e.maximum.toString()} ${r.unit??`elements`}`:`Massa gran: s'esperava que ${e.origin??`el valor`} fos ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`com a mínim`:`més de`,r=t(e.origin);return r?`Massa petit: s'esperava que ${e.origin} contingués ${n} ${e.minimum.toString()} ${r.unit}`:`Massa petit: s'esperava que ${e.origin} fos ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Format invàlid: ha de començar amb \"${t.prefix}\"`:t.format===`ends_with`?`Format invàlid: ha d'acabar amb \"${t.suffix}\"`:t.format===`includes`?`Format invàlid: ha d'incloure \"${t.includes}\"`:t.format===`regex`?`Format invàlid: ha de coincidir amb el patró ${t.pattern}`:`Format invàlid per a ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número invàlid: ha de ser múltiple de ${e.divisor}`;case`unrecognized_keys`:return`Clau${e.keys.length>1?`s`:``} no reconeguda${e.keys.length>1?`s`:``}: ${C(e.keys,`, `)}`;case`invalid_key`:return`Clau invàlida a ${e.origin}`;case`invalid_union`:return`Entrada invàlida`;case`invalid_element`:return`Element invàlid a ${e.origin}`;default:return`Entrada invàlida`}}}}));function ka(){return{localeError:Aa()}}var Aa,ja=t((()=>{A(),Aa=()=>{let e={string:{unit:`znaků`,verb:`mít`},file:{unit:`bajtů`,verb:`mít`},array:{unit:`prvků`,verb:`mít`},set:{unit:`prvků`,verb:`mít`}};function t(t){return e[t]??null}let n={regex:`regulární výraz`,email:`e-mailová adresa`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`datum a čas ve formátu ISO`,date:`datum ve formátu ISO`,time:`čas ve formátu ISO`,duration:`doba trvání ISO`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,cidrv4:`rozsah IPv4`,cidrv6:`rozsah IPv6`,base64:`řetězec zakódovaný ve formátu base64`,base64url:`řetězec zakódovaný ve formátu base64url`,json_string:`řetězec ve formátu JSON`,e164:`číslo E.164`,jwt:`JWT`,template_literal:`vstup`},r={nan:`NaN`,number:`číslo`,string:`řetězec`,function:`funkce`,array:`pole`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neplatný vstup: očekáváno instanceof ${e.expected}, obdrženo ${i}`:`Neplatný vstup: očekáváno ${t}, obdrženo ${i}`}case`invalid_value`:return e.values.length===1?`Neplatný vstup: očekáváno ${O(e.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${C(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Hodnota je příliš velká: ${e.origin??`hodnota`} musí mít ${n}${e.maximum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš velká: ${e.origin??`hodnota`} musí být ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Hodnota je příliš malá: ${e.origin??`hodnota`} musí mít ${n}${e.minimum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš malá: ${e.origin??`hodnota`} musí být ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neplatný řetězec: musí začínat na \"${t.prefix}\"`:t.format===`ends_with`?`Neplatný řetězec: musí končit na \"${t.suffix}\"`:t.format===`includes`?`Neplatný řetězec: musí obsahovat \"${t.includes}\"`:t.format===`regex`?`Neplatný řetězec: musí odpovídat vzoru ${t.pattern}`:`Neplatný formát ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neplatné číslo: musí být násobkem ${e.divisor}`;case`unrecognized_keys`:return`Neznámé klíče: ${C(e.keys,`, `)}`;case`invalid_key`:return`Neplatný klíč v ${e.origin}`;case`invalid_union`:return`Neplatný vstup`;case`invalid_element`:return`Neplatná hodnota v ${e.origin}`;default:return`Neplatný vstup`}}}}));function Ma(){return{localeError:Na()}}var Na,Pa=t((()=>{A(),Na=()=>{let e={string:{unit:`tegn`,verb:`havde`},file:{unit:`bytes`,verb:`havde`},array:{unit:`elementer`,verb:`indeholdt`},set:{unit:`elementer`,verb:`indeholdt`}};function t(t){return e[t]??null}let n={regex:`input`,email:`e-mailadresse`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dato- og klokkeslæt`,date:`ISO-dato`,time:`ISO-klokkeslæt`,duration:`ISO-varighed`,ipv4:`IPv4-område`,ipv6:`IPv6-område`,cidrv4:`IPv4-spektrum`,cidrv6:`IPv6-spektrum`,base64:`base64-kodet streng`,base64url:`base64url-kodet streng`,json_string:`JSON-streng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,string:`streng`,number:`tal`,boolean:`boolean`,array:`liste`,object:`objekt`,set:`sæt`,file:`fil`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldigt input: forventede instanceof ${e.expected}, fik ${i}`:`Ugyldigt input: forventede ${t}, fik ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig værdi: forventede ${O(e.values[0])}`:`Ugyldigt valg: forventede en af følgende ${C(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For stor: forventede ${a??`value`} ${i.verb} ${n} ${e.maximum.toString()} ${i.unit??`elementer`}`:`For stor: forventede ${a??`value`} havde ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For lille: forventede ${a} ${i.verb} ${n} ${e.minimum.toString()} ${i.unit}`:`For lille: forventede ${a} havde ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: skal starte med \"${t.prefix}\"`:t.format===`ends_with`?`Ugyldig streng: skal ende med \"${t.suffix}\"`:t.format===`includes`?`Ugyldig streng: skal indeholde \"${t.includes}\"`:t.format===`regex`?`Ugyldig streng: skal matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldigt tal: skal være deleligt med ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukendte nøgler`:`Ukendt nøgle`}: ${C(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøgle i ${e.origin}`;case`invalid_union`:return`Ugyldigt input: matcher ingen af de tilladte typer`;case`invalid_element`:return`Ugyldig værdi i ${e.origin}`;default:return`Ugyldigt input`}}}}));function Fa(){return{localeError:Ia()}}var Ia,La=t((()=>{A(),Ia=()=>{let e={string:{unit:`Zeichen`,verb:`zu haben`},file:{unit:`Bytes`,verb:`zu haben`},array:{unit:`Elemente`,verb:`zu haben`},set:{unit:`Elemente`,verb:`zu haben`}};function t(t){return e[t]??null}let n={regex:`Eingabe`,email:`E-Mail-Adresse`,url:`URL`,emoji:`Emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-Datum und -Uhrzeit`,date:`ISO-Datum`,time:`ISO-Uhrzeit`,duration:`ISO-Dauer`,ipv4:`IPv4-Adresse`,ipv6:`IPv6-Adresse`,cidrv4:`IPv4-Bereich`,cidrv6:`IPv6-Bereich`,base64:`Base64-codierter String`,base64url:`Base64-URL-codierter String`,json_string:`JSON-String`,e164:`E.164-Nummer`,jwt:`JWT`,template_literal:`Eingabe`},r={nan:`NaN`,number:`Zahl`,array:`Array`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ungültige Eingabe: erwartet instanceof ${e.expected}, erhalten ${i}`:`Ungültige Eingabe: erwartet ${t}, erhalten ${i}`}case`invalid_value`:return e.values.length===1?`Ungültige Eingabe: erwartet ${O(e.values[0])}`:`Ungültige Option: erwartet eine von ${C(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ${r.unit??`Elemente`} hat`:`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ist`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ${r.unit} hat`:`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ist`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ungültiger String: muss mit \"${t.prefix}\" beginnen`:t.format===`ends_with`?`Ungültiger String: muss mit \"${t.suffix}\" enden`:t.format===`includes`?`Ungültiger String: muss \"${t.includes}\" enthalten`:t.format===`regex`?`Ungültiger String: muss dem Muster ${t.pattern} entsprechen`:`Ungültig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ungültige Zahl: muss ein Vielfaches von ${e.divisor} sein`;case`unrecognized_keys`:return`${e.keys.length>1?`Unbekannte Schlüssel`:`Unbekannter Schlüssel`}: ${C(e.keys,`, `)}`;case`invalid_key`:return`Ungültiger Schlüssel in ${e.origin}`;case`invalid_union`:return`Ungültige Eingabe`;case`invalid_element`:return`Ungültiger Wert in ${e.origin}`;default:return`Ungültige Eingabe`}}}}));function Ra(){return{localeError:za()}}var za,Ba=t((()=>{A(),za=()=>{let e={string:{unit:`χαρακτήρες`,verb:`να έχει`},file:{unit:`bytes`,verb:`να έχει`},array:{unit:`στοιχεία`,verb:`να έχει`},set:{unit:`στοιχεία`,verb:`να έχει`},map:{unit:`καταχωρήσεις`,verb:`να έχει`}};function t(t){return e[t]??null}let n={regex:`είσοδος`,email:`διεύθυνση email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO ημερομηνία και ώρα`,date:`ISO ημερομηνία`,time:`ISO ώρα`,duration:`ISO διάρκεια`,ipv4:`διεύθυνση IPv4`,ipv6:`διεύθυνση IPv6`,mac:`διεύθυνση MAC`,cidrv4:`εύρος IPv4`,cidrv6:`εύρος IPv6`,base64:`συμβολοσειρά κωδικοποιημένη σε base64`,base64url:`συμβολοσειρά κωδικοποιημένη σε base64url`,json_string:`συμβολοσειρά JSON`,e164:`αριθμός E.164`,jwt:`JWT`,template_literal:`είσοδος`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return typeof e.expected==`string`&&/^[A-Z]/.test(e.expected)?`Μη έγκυρη είσοδος: αναμενόταν instanceof ${e.expected}, λήφθηκε ${i}`:`Μη έγκυρη είσοδος: αναμενόταν ${t}, λήφθηκε ${i}`}case`invalid_value`:return e.values.length===1?`Μη έγκυρη είσοδος: αναμενόταν ${O(e.values[0])}`:`Μη έγκυρη επιλογή: αναμενόταν ένα από ${C(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Πολύ μεγάλο: αναμενόταν ${e.origin??`τιμή`} να έχει ${n}${e.maximum.toString()} ${r.unit??`στοιχεία`}`:`Πολύ μεγάλο: αναμενόταν ${e.origin??`τιμή`} να είναι ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Πολύ μικρό: αναμενόταν ${e.origin} να έχει ${n}${e.minimum.toString()} ${r.unit}`:`Πολύ μικρό: αναμενόταν ${e.origin} να είναι ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με \"${t.prefix}\"`:t.format===`ends_with`?`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με \"${t.suffix}\"`:t.format===`includes`?`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει \"${t.includes}\"`:t.format===`regex`?`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${t.pattern}`:`Μη έγκυρο: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${e.divisor}`;case`unrecognized_keys`:return`Άγνωστ${e.keys.length>1?`α`:`ο`} κλειδ${e.keys.length>1?`ιά`:`ί`}: ${C(e.keys,`, `)}`;case`invalid_key`:return`Μη έγκυρο κλειδί στο ${e.origin}`;case`invalid_union`:return`Μη έγκυρη είσοδος`;case`invalid_element`:return`Μη έγκυρη τιμή στο ${e.origin}`;default:return`Μη έγκυρη είσοδος`}}}}));function Va(){return{localeError:Ha()}}var Ha,Ua=t((()=>{A(),Ha=()=>{let e={string:{unit:`characters`,verb:`to have`},file:{unit:`bytes`,verb:`to have`},array:{unit:`items`,verb:`to have`},set:{unit:`items`,verb:`to have`},map:{unit:`entries`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input);return`Invalid input: expected ${t}, received ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${O(e.values[0])}`:`Invalid option: expected one of ${C(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with \"${t.prefix}\"`:t.format===`ends_with`?`Invalid string: must end with \"${t.suffix}\"`:t.format===`includes`?`Invalid string: must include \"${t.includes}\"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${C(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(e=>`'${e}'`).join(` | `)}`:`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}}}));function Wa(){return{localeError:Ga()}}var Ga,Ka=t((()=>{A(),Ga=()=>{let e={string:{unit:`karaktrojn`,verb:`havi`},file:{unit:`bajtojn`,verb:`havi`},array:{unit:`elementojn`,verb:`havi`},set:{unit:`elementojn`,verb:`havi`}};function t(t){return e[t]??null}let n={regex:`enigo`,email:`retadreso`,url:`URL`,emoji:`emoĝio`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-datotempo`,date:`ISO-dato`,time:`ISO-tempo`,duration:`ISO-daŭro`,ipv4:`IPv4-adreso`,ipv6:`IPv6-adreso`,cidrv4:`IPv4-rango`,cidrv6:`IPv6-rango`,base64:`64-ume kodita karaktraro`,base64url:`URL-64-ume kodita karaktraro`,json_string:`JSON-karaktraro`,e164:`E.164-nombro`,jwt:`JWT`,template_literal:`enigo`},r={nan:`NaN`,number:`nombro`,array:`tabelo`,null:`senvalora`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nevalida enigo: atendiĝis instanceof ${e.expected}, riceviĝis ${i}`:`Nevalida enigo: atendiĝis ${t}, riceviĝis ${i}`}case`invalid_value`:return e.values.length===1?`Nevalida enigo: atendiĝis ${O(e.values[0])}`:`Nevalida opcio: atendiĝis unu el ${C(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()} ${r.unit??`elementojn`}`:`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Tro malgranda: atendiĝis ke ${e.origin} havu ${n}${e.minimum.toString()} ${r.unit}`:`Tro malgranda: atendiĝis ke ${e.origin} estu ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nevalida karaktraro: devas komenciĝi per \"${t.prefix}\"`:t.format===`ends_with`?`Nevalida karaktraro: devas finiĝi per \"${t.suffix}\"`:t.format===`includes`?`Nevalida karaktraro: devas inkluzivi \"${t.includes}\"`:t.format===`regex`?`Nevalida karaktraro: devas kongrui kun la modelo ${t.pattern}`:`Nevalida ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nevalida nombro: devas esti oblo de ${e.divisor}`;case`unrecognized_keys`:return`Nekonata${e.keys.length>1?`j`:``} ŝlosilo${e.keys.length>1?`j`:``}: ${C(e.keys,`, `)}`;case`invalid_key`:return`Nevalida ŝlosilo en ${e.origin}`;case`invalid_union`:return`Nevalida enigo`;case`invalid_element`:return`Nevalida valoro en ${e.origin}`;default:return`Nevalida enigo`}}}}));function qa(){return{localeError:Ja()}}var Ja,Ya=t((()=>{A(),Ja=()=>{let e={string:{unit:`caracteres`,verb:`tener`},file:{unit:`bytes`,verb:`tener`},array:{unit:`elementos`,verb:`tener`},set:{unit:`elementos`,verb:`tener`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`dirección de correo electrónico`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`fecha y hora ISO`,date:`fecha ISO`,time:`hora ISO`,duration:`duración ISO`,ipv4:`dirección IPv4`,ipv6:`dirección IPv6`,cidrv4:`rango IPv4`,cidrv6:`rango IPv6`,base64:`cadena codificada en base64`,base64url:`URL codificada en base64`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,string:`texto`,number:`número`,boolean:`booleano`,array:`arreglo`,object:`objeto`,set:`conjunto`,file:`archivo`,date:`fecha`,bigint:`número grande`,symbol:`símbolo`,undefined:`indefinido`,null:`nulo`,function:`función`,map:`mapa`,record:`registro`,tuple:`tupla`,enum:`enumeración`,union:`unión`,literal:`literal`,promise:`promesa`,void:`vacío`,never:`nunca`,unknown:`desconocido`,any:`cualquiera`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrada inválida: se esperaba instanceof ${e.expected}, recibido ${i}`:`Entrada inválida: se esperaba ${t}, recibido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: se esperaba ${O(e.values[0])}`:`Opción inválida: se esperaba una de ${C(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado grande: se esperaba que ${a??`valor`} tuviera ${n}${e.maximum.toString()} ${i.unit??`elementos`}`:`Demasiado grande: se esperaba que ${a??`valor`} fuera ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado pequeño: se esperaba que ${a} tuviera ${n}${e.minimum.toString()} ${i.unit}`:`Demasiado pequeño: se esperaba que ${a} fuera ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Cadena inválida: debe comenzar con \"${t.prefix}\"`:t.format===`ends_with`?`Cadena inválida: debe terminar en \"${t.suffix}\"`:t.format===`includes`?`Cadena inválida: debe incluir \"${t.includes}\"`:t.format===`regex`?`Cadena inválida: debe coincidir con el patrón ${t.pattern}`:`Inválido ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número inválido: debe ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Llave${e.keys.length>1?`s`:``} desconocida${e.keys.length>1?`s`:``}: ${C(e.keys,`, `)}`;case`invalid_key`:return`Llave inválida en ${r[e.origin]??e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido en ${r[e.origin]??e.origin}`;default:return`Entrada inválida`}}}}));function Xa(){return{localeError:Za()}}var Za,Qa=t((()=>{A(),Za=()=>{let e={string:{unit:`کاراکتر`,verb:`داشته باشد`},file:{unit:`بایت`,verb:`داشته باشد`},array:{unit:`آیتم`,verb:`داشته باشد`},set:{unit:`آیتم`,verb:`داشته باشد`}};function t(t){return e[t]??null}let n={regex:`ورودی`,email:`آدرس ایمیل`,url:`URL`,emoji:`ایموجی`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاریخ و زمان ایزو`,date:`تاریخ ایزو`,time:`زمان ایزو`,duration:`مدت زمان ایزو`,ipv4:`IPv4 آدرس`,ipv6:`IPv6 آدرس`,cidrv4:`IPv4 دامنه`,cidrv6:`IPv6 دامنه`,base64:`base64-encoded رشته`,base64url:`base64url-encoded رشته`,json_string:`JSON رشته`,e164:`E.164 عدد`,jwt:`JWT`,template_literal:`ورودی`},r={nan:`NaN`,number:`عدد`,array:`آرایه`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ورودی نامعتبر: میبایست instanceof ${e.expected} میبود، ${i} دریافت شد`:`ورودی نامعتبر: میبایست ${t} میبود، ${i} دریافت شد`}case`invalid_value`:return e.values.length===1?`ورودی نامعتبر: میبایست ${O(e.values[0])} میبود`:`گزینه نامعتبر: میبایست یکی از ${C(e.values,`|`)} میبود`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصر`} باشد`:`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} باشد`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} باشد`:`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} باشد`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`رشته نامعتبر: باید با \"${t.prefix}\" شروع شود`:t.format===`ends_with`?`رشته نامعتبر: باید با \"${t.suffix}\" تمام شود`:t.format===`includes`?`رشته نامعتبر: باید شامل \"${t.includes}\" باشد`:t.format===`regex`?`رشته نامعتبر: باید با الگوی ${t.pattern} مطابقت داشته باشد`:`${n[t.format]??e.format} نامعتبر`}case`not_multiple_of`:return`عدد نامعتبر: باید مضرب ${e.divisor} باشد`;case`unrecognized_keys`:return`کلید${e.keys.length>1?`های`:``} ناشناس: ${C(e.keys,`, `)}`;case`invalid_key`:return`کلید ناشناس در ${e.origin}`;case`invalid_union`:return`ورودی نامعتبر`;case`invalid_element`:return`مقدار نامعتبر در ${e.origin}`;default:return`ورودی نامعتبر`}}}}));function $a(){return{localeError:eo()}}var eo,to=t((()=>{A(),eo=()=>{let e={string:{unit:`merkkiä`,subject:`merkkijonon`},file:{unit:`tavua`,subject:`tiedoston`},array:{unit:`alkiota`,subject:`listan`},set:{unit:`alkiota`,subject:`joukon`},number:{unit:``,subject:`luvun`},bigint:{unit:``,subject:`suuren kokonaisluvun`},int:{unit:``,subject:`kokonaisluvun`},date:{unit:``,subject:`päivämäärän`}};function t(t){return e[t]??null}let n={regex:`säännöllinen lauseke`,email:`sähköpostiosoite`,url:`URL-osoite`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-aikaleima`,date:`ISO-päivämäärä`,time:`ISO-aika`,duration:`ISO-kesto`,ipv4:`IPv4-osoite`,ipv6:`IPv6-osoite`,cidrv4:`IPv4-alue`,cidrv6:`IPv6-alue`,base64:`base64-koodattu merkkijono`,base64url:`base64url-koodattu merkkijono`,json_string:`JSON-merkkijono`,e164:`E.164-luku`,jwt:`JWT`,template_literal:`templaattimerkkijono`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Virheellinen tyyppi: odotettiin instanceof ${e.expected}, oli ${i}`:`Virheellinen tyyppi: odotettiin ${t}, oli ${i}`}case`invalid_value`:return e.values.length===1?`Virheellinen syöte: täytyy olla ${O(e.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${C(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Liian suuri: ${r.subject} täytyy olla ${n}${e.maximum.toString()} ${r.unit}`.trim():`Liian suuri: arvon täytyy olla ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Liian pieni: ${r.subject} täytyy olla ${n}${e.minimum.toString()} ${r.unit}`.trim():`Liian pieni: arvon täytyy olla ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Virheellinen syöte: täytyy alkaa \"${t.prefix}\"`:t.format===`ends_with`?`Virheellinen syöte: täytyy loppua \"${t.suffix}\"`:t.format===`includes`?`Virheellinen syöte: täytyy sisältää \"${t.includes}\"`:t.format===`regex`?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${t.pattern}`:`Virheellinen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Virheellinen luku: täytyy olla luvun ${e.divisor} monikerta`;case`unrecognized_keys`:return`${e.keys.length>1?`Tuntemattomat avaimet`:`Tuntematon avain`}: ${C(e.keys,`, `)}`;case`invalid_key`:return`Virheellinen avain tietueessa`;case`invalid_union`:return`Virheellinen unioni`;case`invalid_element`:return`Virheellinen arvo joukossa`;default:return`Virheellinen syöte`}}}}));function no(){return{localeError:ro()}}var ro,io=t((()=>{A(),ro=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,email:`adresse e-mail`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`date et heure ISO`,date:`date ISO`,time:`heure ISO`,duration:`durée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={string:`chaîne`,number:`nombre`,int:`entier`,boolean:`booléen`,bigint:`grand entier`,symbol:`symbole`,undefined:`indéfini`,null:`null`,never:`jamais`,void:`vide`,date:`date`,array:`tableau`,object:`objet`,tuple:`tuple`,record:`enregistrement`,map:`carte`,set:`ensemble`,file:`fichier`,nonoptional:`non-optionnel`,nan:`NaN`,function:`fonction`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : instanceof ${e.expected} attendu, ${i} reçu`:`Entrée invalide : ${t} attendu, ${i} reçu`}case`invalid_value`:return e.values.length===1?`Entrée invalide : ${O(e.values[0])} attendu`:`Option invalide : une valeur parmi ${C(e.values,`|`)} attendue`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin);return i?`Trop grand : ${r[e.origin]??`valeur`} doit ${i.verb} ${n}${e.maximum.toString()} ${i.unit??`élément(s)`}`:`Trop grand : ${r[e.origin]??`valeur`} doit être ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin);return i?`Trop petit : ${r[e.origin]??`valeur`} doit ${i.verb} ${n}${e.minimum.toString()} ${i.unit}`:`Trop petit : ${r[e.origin]??`valeur`} doit être ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par \"${t.prefix}\"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par \"${t.suffix}\"`:t.format===`includes`?`Chaîne invalide : doit inclure \"${t.includes}\"`:t.format===`regex`?`Chaîne invalide : doit correspondre au modèle ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${C(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}}}));function ao(){return{localeError:oo()}}var oo,so=t((()=>{A(),oo=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,email:`adresse courriel`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`date-heure ISO`,date:`date ISO`,time:`heure ISO`,duration:`durée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : attendu instanceof ${e.expected}, reçu ${i}`:`Entrée invalide : attendu ${t}, reçu ${i}`}case`invalid_value`:return e.values.length===1?`Entrée invalide : attendu ${O(e.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${C(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`≤`:`<`,r=t(e.origin);return r?`Trop grand : attendu que ${e.origin??`la valeur`} ait ${n}${e.maximum.toString()} ${r.unit}`:`Trop grand : attendu que ${e.origin??`la valeur`} soit ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`≥`:`>`,r=t(e.origin);return r?`Trop petit : attendu que ${e.origin} ait ${n}${e.minimum.toString()} ${r.unit}`:`Trop petit : attendu que ${e.origin} soit ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par \"${t.prefix}\"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par \"${t.suffix}\"`:t.format===`includes`?`Chaîne invalide : doit inclure \"${t.includes}\"`:t.format===`regex`?`Chaîne invalide : doit correspondre au motif ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${C(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}}}));function co(){return{localeError:lo()}}var lo,uo=t((()=>{A(),lo=()=>{let e={string:{label:`מחרוזת`,gender:`f`},number:{label:`מספר`,gender:`m`},boolean:{label:`ערך בוליאני`,gender:`m`},bigint:{label:`BigInt`,gender:`m`},date:{label:`תאריך`,gender:`m`},array:{label:`מערך`,gender:`m`},object:{label:`אובייקט`,gender:`m`},null:{label:`ערך ריק (null)`,gender:`m`},undefined:{label:`ערך לא מוגדר (undefined)`,gender:`m`},symbol:{label:`סימבול (Symbol)`,gender:`m`},function:{label:`פונקציה`,gender:`f`},map:{label:`מפה (Map)`,gender:`f`},set:{label:`קבוצה (Set)`,gender:`f`},file:{label:`קובץ`,gender:`m`},promise:{label:`Promise`,gender:`m`},NaN:{label:`NaN`,gender:`m`},unknown:{label:`ערך לא ידוע`,gender:`m`},value:{label:`ערך`,gender:`m`}},t={string:{unit:`תווים`,shortLabel:`קצר`,longLabel:`ארוך`},file:{unit:`בייטים`,shortLabel:`קטן`,longLabel:`גדול`},array:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},set:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},number:{unit:``,shortLabel:`קטן`,longLabel:`גדול`}},n=t=>t?e[t]:void 0,r=t=>{let r=n(t);return r?r.label:t??e.unknown.label},i=e=>`ה${r(e)}`,a=e=>(n(e)?.gender??`m`)===`f`?`צריכה להיות`:`צריך להיות`,o=e=>e?t[e]??null:null,s={regex:{label:`קלט`,gender:`m`},email:{label:`כתובת אימייל`,gender:`f`},url:{label:`כתובת רשת`,gender:`f`},emoji:{label:`אימוג'י`,gender:`m`},uuid:{label:`UUID`,gender:`m`},nanoid:{label:`nanoid`,gender:`m`},guid:{label:`GUID`,gender:`m`},cuid:{label:`cuid`,gender:`m`},cuid2:{label:`cuid2`,gender:`m`},ulid:{label:`ULID`,gender:`m`},xid:{label:`XID`,gender:`m`},ksuid:{label:`KSUID`,gender:`m`},datetime:{label:`תאריך וזמן ISO`,gender:`m`},date:{label:`תאריך ISO`,gender:`m`},time:{label:`זמן ISO`,gender:`m`},duration:{label:`משך זמן ISO`,gender:`m`},ipv4:{label:`כתובת IPv4`,gender:`f`},ipv6:{label:`כתובת IPv6`,gender:`f`},cidrv4:{label:`טווח IPv4`,gender:`m`},cidrv6:{label:`טווח IPv6`,gender:`m`},base64:{label:`מחרוזת בבסיס 64`,gender:`f`},base64url:{label:`מחרוזת בבסיס 64 לכתובות רשת`,gender:`f`},json_string:{label:`מחרוזת JSON`,gender:`f`},e164:{label:`מספר E.164`,gender:`m`},jwt:{label:`JWT`,gender:`m`},ends_with:{label:`קלט`,gender:`m`},includes:{label:`קלט`,gender:`m`},lowercase:{label:`קלט`,gender:`m`},starts_with:{label:`קלט`,gender:`m`},uppercase:{label:`קלט`,gender:`m`}},c={nan:`NaN`};return t=>{switch(t.code){case`invalid_type`:{let n=t.expected,i=c[n??``]??r(n),a=k(t.input),o=c[a]??e[a]?.label??a;return/^[A-Z]/.test(t.expected)?`קלט לא תקין: צריך להיות instanceof ${t.expected}, התקבל ${o}`:`קלט לא תקין: צריך להיות ${i}, התקבל ${o}`}case`invalid_value`:{if(t.values.length===1)return`ערך לא תקין: הערך חייב להיות ${O(t.values[0])}`;let e=t.values.map(e=>O(e));if(t.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${e[0]} או ${e[1]}`;let n=e[e.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${e.slice(0,-1).join(`, `)} או ${n}`}case`too_big`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.longLabel??`ארוך`} מדי: ${n} צריכה להכיל ${t.maximum.toString()} ${e?.unit??``} ${t.inclusive?`או פחות`:`לכל היותר`}`.trim();if(t.origin===`number`)return`גדול מדי: ${n} צריך להיות ${t.inclusive?`קטן או שווה ל-${t.maximum}`:`קטן מ-${t.maximum}`}`;if(t.origin===`array`||t.origin===`set`)return`גדול מדי: ${n} ${t.origin===`set`?`צריכה`:`צריך`} להכיל ${t.inclusive?`${t.maximum} ${e?.unit??``} או פחות`:`פחות מ-${t.maximum} ${e?.unit??``}`}`.trim();let r=t.inclusive?`<=`:`<`,s=a(t.origin??`value`);return e?.unit?`${e.longLabel} מדי: ${n} ${s} ${r}${t.maximum.toString()} ${e.unit}`:`${e?.longLabel??`גדול`} מדי: ${n} ${s} ${r}${t.maximum.toString()}`}case`too_small`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.shortLabel??`קצר`} מדי: ${n} צריכה להכיל ${t.minimum.toString()} ${e?.unit??``} ${t.inclusive?`או יותר`:`לפחות`}`.trim();if(t.origin===`number`)return`קטן מדי: ${n} צריך להיות ${t.inclusive?`גדול או שווה ל-${t.minimum}`:`גדול מ-${t.minimum}`}`;if(t.origin===`array`||t.origin===`set`){let r=t.origin===`set`?`צריכה`:`צריך`;return t.minimum===1&&t.inclusive?`קטן מדי: ${n} ${r} להכיל ${t.origin,`לפחות פריט אחד`}`:`קטן מדי: ${n} ${r} להכיל ${t.inclusive?`${t.minimum} ${e?.unit??``} או יותר`:`יותר מ-${t.minimum} ${e?.unit??``}`}`.trim()}let r=t.inclusive?`>=`:`>`,s=a(t.origin??`value`);return e?.unit?`${e.shortLabel} מדי: ${n} ${s} ${r}${t.minimum.toString()} ${e.unit}`:`${e?.shortLabel??`קטן`} מדי: ${n} ${s} ${r}${t.minimum.toString()}`}case`invalid_format`:{let e=t;if(e.format===`starts_with`)return`המחרוזת חייבת להתחיל ב \"${e.prefix}\"`;if(e.format===`ends_with`)return`המחרוזת חייבת להסתיים ב \"${e.suffix}\"`;if(e.format===`includes`)return`המחרוזת חייבת לכלול \"${e.includes}\"`;if(e.format===`regex`)return`המחרוזת חייבת להתאים לתבנית ${e.pattern}`;let n=s[e.format];return`${n?.label??e.format} לא ${(n?.gender??`m`)===`f`?`תקינה`:`תקין`}`}case`not_multiple_of`:return`מספר לא תקין: חייב להיות מכפלה של ${t.divisor}`;case`unrecognized_keys`:return`מפתח${t.keys.length>1?`ות`:``} לא מזוה${t.keys.length>1?`ים`:`ה`}: ${C(t.keys,`, `)}`;case`invalid_key`:return`שדה לא תקין באובייקט`;case`invalid_union`:return`קלט לא תקין`;case`invalid_element`:return`ערך לא תקין ב${i(t.origin??`array`)}`;default:return`קלט לא תקין`}}}}));function fo(){return{localeError:po()}}var po,mo=t((()=>{A(),po=()=>{let e={string:{unit:`znakova`,verb:`imati`},file:{unit:`bajtova`,verb:`imati`},array:{unit:`stavki`,verb:`imati`},set:{unit:`stavki`,verb:`imati`}};function t(t){return e[t]??null}let n={regex:`unos`,email:`email adresa`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum i vrijeme`,date:`ISO datum`,time:`ISO vrijeme`,duration:`ISO trajanje`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,cidrv4:`IPv4 raspon`,cidrv6:`IPv6 raspon`,base64:`base64 kodirani tekst`,base64url:`base64url kodirani tekst`,json_string:`JSON tekst`,e164:`E.164 broj`,jwt:`JWT`,template_literal:`unos`},r={nan:`NaN`,string:`tekst`,number:`broj`,boolean:`boolean`,array:`niz`,object:`objekt`,set:`skup`,file:`datoteka`,date:`datum`,bigint:`bigint`,symbol:`simbol`,undefined:`undefined`,null:`null`,function:`funkcija`,map:`mapa`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neispravan unos: očekuje se instanceof ${e.expected}, a primljeno je ${i}`:`Neispravan unos: očekuje se ${t}, a primljeno je ${i}`}case`invalid_value`:return e.values.length===1?`Neispravna vrijednost: očekivano ${O(e.values[0])}`:`Neispravna opcija: očekivano jedno od ${C(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Preveliko: očekivano da ${a??`vrijednost`} ima ${n}${e.maximum.toString()} ${i.unit??`elemenata`}`:`Preveliko: očekivano da ${a??`vrijednost`} bude ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Premalo: očekivano da ${a} ima ${n}${e.minimum.toString()} ${i.unit}`:`Premalo: očekivano da ${a} bude ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neispravan tekst: mora započinjati s \"${t.prefix}\"`:t.format===`ends_with`?`Neispravan tekst: mora završavati s \"${t.suffix}\"`:t.format===`includes`?`Neispravan tekst: mora sadržavati \"${t.includes}\"`:t.format===`regex`?`Neispravan tekst: mora odgovarati uzorku ${t.pattern}`:`Neispravna ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neispravan broj: mora biti višekratnik od ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznat${e.keys.length>1?`i ključevi`:` ključ`}: ${C(e.keys,`, `)}`;case`invalid_key`:return`Neispravan ključ u ${r[e.origin]??e.origin}`;case`invalid_union`:return`Neispravan unos`;case`invalid_element`:return`Neispravna vrijednost u ${r[e.origin]??e.origin}`;default:return`Neispravan unos`}}}}));function ho(){return{localeError:go()}}var go,_o=t((()=>{A(),go=()=>{let e={string:{unit:`karakter`,verb:`legyen`},file:{unit:`byte`,verb:`legyen`},array:{unit:`elem`,verb:`legyen`},set:{unit:`elem`,verb:`legyen`}};function t(t){return e[t]??null}let n={regex:`bemenet`,email:`email cím`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO időbélyeg`,date:`ISO dátum`,time:`ISO idő`,duration:`ISO időintervallum`,ipv4:`IPv4 cím`,ipv6:`IPv6 cím`,cidrv4:`IPv4 tartomány`,cidrv6:`IPv6 tartomány`,base64:`base64-kódolt string`,base64url:`base64url-kódolt string`,json_string:`JSON string`,e164:`E.164 szám`,jwt:`JWT`,template_literal:`bemenet`},r={nan:`NaN`,number:`szám`,array:`tömb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Érvénytelen bemenet: a várt érték instanceof ${e.expected}, a kapott érték ${i}`:`Érvénytelen bemenet: a várt érték ${t}, a kapott érték ${i}`}case`invalid_value`:return e.values.length===1?`Érvénytelen bemenet: a várt érték ${O(e.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${C(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Túl nagy: ${e.origin??`érték`} mérete túl nagy ${n}${e.maximum.toString()} ${r.unit??`elem`}`:`Túl nagy: a bemeneti érték ${e.origin??`érték`} túl nagy: ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Túl kicsi: a bemeneti érték ${e.origin} mérete túl kicsi ${n}${e.minimum.toString()} ${r.unit}`:`Túl kicsi: a bemeneti érték ${e.origin} túl kicsi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Érvénytelen string: \"${t.prefix}\" értékkel kell kezdődnie`:t.format===`ends_with`?`Érvénytelen string: \"${t.suffix}\" értékkel kell végződnie`:t.format===`includes`?`Érvénytelen string: \"${t.includes}\" értéket kell tartalmaznia`:t.format===`regex`?`Érvénytelen string: ${t.pattern} mintának kell megfelelnie`:`Érvénytelen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Érvénytelen szám: ${e.divisor} többszörösének kell lennie`;case`unrecognized_keys`:return`Ismeretlen kulcs${e.keys.length>1?`s`:``}: ${C(e.keys,`, `)}`;case`invalid_key`:return`Érvénytelen kulcs ${e.origin}`;case`invalid_union`:return`Érvénytelen bemenet`;case`invalid_element`:return`Érvénytelen érték: ${e.origin}`;default:return`Érvénytelen bemenet`}}}}));function vo(e,t,n){return Math.abs(e)===1?t:n}function yo(e){if(!e)return``;let t=[`ա`,`ե`,`ը`,`ի`,`ո`,`ու`,`օ`],n=e[e.length-1];return e+(t.includes(n)?`ն`:`ը`)}function bo(){return{localeError:N()}}var N,xo=t((()=>{A(),N=()=>{let e={string:{unit:{one:`նշան`,many:`նշաններ`},verb:`ունենալ`},file:{unit:{one:`բայթ`,many:`բայթեր`},verb:`ունենալ`},array:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`},set:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`}};function t(t){return e[t]??null}let n={regex:`մուտք`,email:`էլ. հասցե`,url:`URL`,emoji:`էմոջի`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO ամսաթիվ և ժամ`,date:`ISO ամսաթիվ`,time:`ISO ժամ`,duration:`ISO տևողություն`,ipv4:`IPv4 հասցե`,ipv6:`IPv6 հասցե`,cidrv4:`IPv4 միջակայք`,cidrv6:`IPv6 միջակայք`,base64:`base64 ձևաչափով տող`,base64url:`base64url ձևաչափով տող`,json_string:`JSON տող`,e164:`E.164 համար`,jwt:`JWT`,template_literal:`մուտք`},r={nan:`NaN`,number:`թիվ`,array:`զանգված`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Սխալ մուտքագրում․ սպասվում էր instanceof ${e.expected}, ստացվել է ${i}`:`Սխալ մուտքագրում․ սպասվում էր ${t}, ստացվել է ${i}`}case`invalid_value`:return e.values.length===1?`Սխալ մուտքագրում․ սպասվում էր ${O(e.values[1])}`:`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${C(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=vo(Number(e.maximum),r.unit.one,r.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${yo(e.origin??`արժեք`)} կունենա ${n}${e.maximum.toString()} ${t}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${yo(e.origin??`արժեք`)} լինի ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=vo(Number(e.minimum),r.unit.one,r.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${yo(e.origin)} կունենա ${n}${e.minimum.toString()} ${t}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${yo(e.origin)} լինի ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Սխալ տող․ պետք է սկսվի \"${t.prefix}\"-ով`:t.format===`ends_with`?`Սխալ տող․ պետք է ավարտվի \"${t.suffix}\"-ով`:t.format===`includes`?`Սխալ տող․ պետք է պարունակի \"${t.includes}\"`:t.format===`regex`?`Սխալ տող․ պետք է համապատասխանի ${t.pattern} ձևաչափին`:`Սխալ ${n[t.format]??e.format}`}case`not_multiple_of`:return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${e.divisor}-ի`;case`unrecognized_keys`:return`Չճանաչված բանալի${e.keys.length>1?`ներ`:``}. ${C(e.keys,`, `)}`;case`invalid_key`:return`Սխալ բանալի ${yo(e.origin)}-ում`;case`invalid_union`:return`Սխալ մուտքագրում`;case`invalid_element`:return`Սխալ արժեք ${yo(e.origin)}-ում`;default:return`Սխալ մուտքագրում`}}}}));function So(){return{localeError:Co()}}var Co,wo=t((()=>{A(),Co=()=>{let e={string:{unit:`karakter`,verb:`memiliki`},file:{unit:`byte`,verb:`memiliki`},array:{unit:`item`,verb:`memiliki`},set:{unit:`item`,verb:`memiliki`}};function t(t){return e[t]??null}let n={regex:`input`,email:`alamat email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`tanggal dan waktu format ISO`,date:`tanggal format ISO`,time:`jam format ISO`,duration:`durasi format ISO`,ipv4:`alamat IPv4`,ipv6:`alamat IPv6`,cidrv4:`rentang alamat IPv4`,cidrv6:`rentang alamat IPv6`,base64:`string dengan enkode base64`,base64url:`string dengan enkode base64url`,json_string:`string JSON`,e164:`angka E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak valid: diharapkan instanceof ${e.expected}, diterima ${i}`:`Input tidak valid: diharapkan ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak valid: diharapkan ${O(e.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${C(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: diharapkan ${e.origin??`value`} memiliki ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: diharapkan ${e.origin??`value`} menjadi ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: diharapkan ${e.origin} memiliki ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: diharapkan ${e.origin} menjadi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak valid: harus dimulai dengan \"${t.prefix}\"`:t.format===`ends_with`?`String tidak valid: harus berakhir dengan \"${t.suffix}\"`:t.format===`includes`?`String tidak valid: harus menyertakan \"${t.includes}\"`:t.format===`regex`?`String tidak valid: harus sesuai pola ${t.pattern}`:`${n[t.format]??e.format} tidak valid`}case`not_multiple_of`:return`Angka tidak valid: harus kelipatan dari ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali ${e.keys.length>1?`s`:``}: ${C(e.keys,`, `)}`;case`invalid_key`:return`Kunci tidak valid di ${e.origin}`;case`invalid_union`:return`Input tidak valid`;case`invalid_element`:return`Nilai tidak valid di ${e.origin}`;default:return`Input tidak valid`}}}}));function To(){return{localeError:Eo()}}var Eo,Do=t((()=>{A(),Eo=()=>{let e={string:{unit:`stafi`,verb:`að hafa`},file:{unit:`bæti`,verb:`að hafa`},array:{unit:`hluti`,verb:`að hafa`},set:{unit:`hluti`,verb:`að hafa`}};function t(t){return e[t]??null}let n={regex:`gildi`,email:`netfang`,url:`vefslóð`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dagsetning og tími`,date:`ISO dagsetning`,time:`ISO tími`,duration:`ISO tímalengd`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded strengur`,base64url:`base64url-encoded strengur`,json_string:`JSON strengur`,e164:`E.164 tölugildi`,jwt:`JWT`,template_literal:`gildi`},r={nan:`NaN`,number:`númer`,array:`fylki`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Rangt gildi: Þú slóst inn ${i} þar sem á að vera instanceof ${e.expected}`:`Rangt gildi: Þú slóst inn ${i} þar sem á að vera ${t}`}case`invalid_value`:return e.values.length===1?`Rangt gildi: gert ráð fyrir ${O(e.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${C(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} hafi ${n}${e.maximum.toString()} ${r.unit??`hluti`}`:`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} sé ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Of lítið: gert er ráð fyrir að ${e.origin} hafi ${n}${e.minimum.toString()} ${r.unit}`:`Of lítið: gert er ráð fyrir að ${e.origin} sé ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ógildur strengur: verður að byrja á \"${t.prefix}\"`:t.format===`ends_with`?`Ógildur strengur: verður að enda á \"${t.suffix}\"`:t.format===`includes`?`Ógildur strengur: verður að innihalda \"${t.includes}\"`:t.format===`regex`?`Ógildur strengur: verður að fylgja mynstri ${t.pattern}`:`Rangt ${n[t.format]??e.format}`}case`not_multiple_of`:return`Röng tala: verður að vera margfeldi af ${e.divisor}`;case`unrecognized_keys`:return`Óþekkt ${e.keys.length>1?`ir lyklar`:`ur lykill`}: ${C(e.keys,`, `)}`;case`invalid_key`:return`Rangur lykill í ${e.origin}`;case`invalid_union`:return`Rangt gildi`;case`invalid_element`:return`Rangt gildi í ${e.origin}`;default:return`Rangt gildi`}}}}));function Oo(){return{localeError:ko()}}var ko,Ao=t((()=>{A(),ko=()=>{let e={string:{unit:`caratteri`,verb:`avere`},file:{unit:`byte`,verb:`avere`},array:{unit:`elementi`,verb:`avere`},set:{unit:`elementi`,verb:`avere`}};function t(t){return e[t]??null}let n={regex:`input`,email:`indirizzo email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data e ora ISO`,date:`data ISO`,time:`ora ISO`,duration:`durata ISO`,ipv4:`indirizzo IPv4`,ipv6:`indirizzo IPv6`,cidrv4:`intervallo IPv4`,cidrv6:`intervallo IPv6`,base64:`stringa codificata in base64`,base64url:`URL codificata in base64`,json_string:`stringa JSON`,e164:`numero E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`numero`,array:`vettore`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input non valido: atteso instanceof ${e.expected}, ricevuto ${i}`:`Input non valido: atteso ${t}, ricevuto ${i}`}case`invalid_value`:return e.values.length===1?`Input non valido: atteso ${O(e.values[0])}`:`Opzione non valida: atteso uno tra ${C(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Troppo grande: ${e.origin??`valore`} deve avere ${n}${e.maximum.toString()} ${r.unit??`elementi`}`:`Troppo grande: ${e.origin??`valore`} deve essere ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Troppo piccolo: ${e.origin} deve avere ${n}${e.minimum.toString()} ${r.unit}`:`Troppo piccolo: ${e.origin} deve essere ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Stringa non valida: deve iniziare con \"${t.prefix}\"`:t.format===`ends_with`?`Stringa non valida: deve terminare con \"${t.suffix}\"`:t.format===`includes`?`Stringa non valida: deve includere \"${t.includes}\"`:t.format===`regex`?`Stringa non valida: deve corrispondere al pattern ${t.pattern}`:`Input non valido: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Numero non valido: deve essere un multiplo di ${e.divisor}`;case`unrecognized_keys`:return`Chiav${e.keys.length>1?`i`:`e`} non riconosciut${e.keys.length>1?`e`:`a`}: ${C(e.keys,`, `)}`;case`invalid_key`:return`Chiave non valida in ${e.origin}`;case`invalid_union`:return`Input non valido`;case`invalid_element`:return`Valore non valido in ${e.origin}`;default:return`Input non valido`}}}}));function jo(){return{localeError:Mo()}}var Mo,No=t((()=>{A(),Mo=()=>{let e={string:{unit:`文字`,verb:`である`},file:{unit:`バイト`,verb:`である`},array:{unit:`要素`,verb:`である`},set:{unit:`要素`,verb:`である`}};function t(t){return e[t]??null}let n={regex:`入力値`,email:`メールアドレス`,url:`URL`,emoji:`絵文字`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日時`,date:`ISO日付`,time:`ISO時刻`,duration:`ISO期間`,ipv4:`IPv4アドレス`,ipv6:`IPv6アドレス`,cidrv4:`IPv4範囲`,cidrv6:`IPv6範囲`,base64:`base64エンコード文字列`,base64url:`base64urlエンコード文字列`,json_string:`JSON文字列`,e164:`E.164番号`,jwt:`JWT`,template_literal:`入力値`},r={nan:`NaN`,number:`数値`,array:`配列`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無効な入力: instanceof ${e.expected}が期待されましたが、${i}が入力されました`:`無効な入力: ${t}が期待されましたが、${i}が入力されました`}case`invalid_value`:return e.values.length===1?`無効な入力: ${O(e.values[0])}が期待されました`:`無効な選択: ${C(e.values,`、`)}のいずれかである必要があります`;case`too_big`:{let n=e.inclusive?`以下である`:`より小さい`,r=t(e.origin);return r?`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${r.unit??`要素`}${n}必要があります`:`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${n}必要があります`}case`too_small`:{let n=e.inclusive?`以上である`:`より大きい`,r=t(e.origin);return r?`小さすぎる値: ${e.origin}は${e.minimum.toString()}${r.unit}${n}必要があります`:`小さすぎる値: ${e.origin}は${e.minimum.toString()}${n}必要があります`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無効な文字列: \"${t.prefix}\"で始まる必要があります`:t.format===`ends_with`?`無効な文字列: \"${t.suffix}\"で終わる必要があります`:t.format===`includes`?`無効な文字列: \"${t.includes}\"を含む必要があります`:t.format===`regex`?`無効な文字列: パターン${t.pattern}に一致する必要があります`:`無効な${n[t.format]??e.format}`}case`not_multiple_of`:return`無効な数値: ${e.divisor}の倍数である必要があります`;case`unrecognized_keys`:return`認識されていないキー${e.keys.length>1?`群`:``}: ${C(e.keys,`、`)}`;case`invalid_key`:return`${e.origin}内の無効なキー`;case`invalid_union`:return`無効な入力`;case`invalid_element`:return`${e.origin}内の無効な値`;default:return`無効な入力`}}}}));function Po(){return{localeError:Fo()}}var Fo,Io=t((()=>{A(),Fo=()=>{let e={string:{unit:`სიმბოლო`,verb:`უნდა შეიცავდეს`},file:{unit:`ბაიტი`,verb:`უნდა შეიცავდეს`},array:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`},set:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`}};function t(t){return e[t]??null}let n={regex:`შეყვანა`,email:`ელ-ფოსტის მისამართი`,url:`URL`,emoji:`ემოჯი`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`თარიღი-დრო`,date:`თარიღი`,time:`დრო`,duration:`ხანგრძლივობა`,ipv4:`IPv4 მისამართი`,ipv6:`IPv6 მისამართი`,cidrv4:`IPv4 დიაპაზონი`,cidrv6:`IPv6 დიაპაზონი`,base64:`base64-კოდირებული ველი`,base64url:`base64url-კოდირებული ველი`,json_string:`JSON ველი`,e164:`E.164 ნომერი`,jwt:`JWT`,template_literal:`შეყვანა`},r={nan:`NaN`,number:`რიცხვი`,string:`ველი`,boolean:`ბულეანი`,function:`ფუნქცია`,array:`მასივი`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`არასწორი შეყვანა: მოსალოდნელი instanceof ${e.expected}, მიღებული ${i}`:`არასწორი შეყვანა: მოსალოდნელი ${t}, მიღებული ${i}`}case`invalid_value`:return e.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${O(e.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${C(e.values,`|`)}-დან`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} იყოს ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ზედმეტად პატარა: მოსალოდნელი ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${e.origin} იყოს ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`არასწორი ველი: უნდა იწყებოდეს \"${t.prefix}\"-ით`:t.format===`ends_with`?`არასწორი ველი: უნდა მთავრდებოდეს \"${t.suffix}\"-ით`:t.format===`includes`?`არასწორი ველი: უნდა შეიცავდეს \"${t.includes}\"-ს`:t.format===`regex`?`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${t.pattern}`:`არასწორი ${n[t.format]??e.format}`}case`not_multiple_of`:return`არასწორი რიცხვი: უნდა იყოს ${e.divisor}-ის ჯერადი`;case`unrecognized_keys`:return`უცნობი გასაღებ${e.keys.length>1?`ები`:`ი`}: ${C(e.keys,`, `)}`;case`invalid_key`:return`არასწორი გასაღები ${e.origin}-ში`;case`invalid_union`:return`არასწორი შეყვანა`;case`invalid_element`:return`არასწორი მნიშვნელობა ${e.origin}-ში`;default:return`არასწორი შეყვანა`}}}}));function Lo(){return{localeError:Ro()}}var Ro,zo=t((()=>{A(),Ro=()=>{let e={string:{unit:`តួអក្សរ`,verb:`គួរមាន`},file:{unit:`បៃ`,verb:`គួរមាន`},array:{unit:`ធាតុ`,verb:`គួរមាន`},set:{unit:`ធាតុ`,verb:`គួរមាន`}};function t(t){return e[t]??null}let n={regex:`ទិន្នន័យបញ្ចូល`,email:`អាសយដ្ឋានអ៊ីមែល`,url:`URL`,emoji:`សញ្ញាអារម្មណ៍`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`កាលបរិច្ឆេទ និងម៉ោង ISO`,date:`កាលបរិច្ឆេទ ISO`,time:`ម៉ោង ISO`,duration:`រយៈពេល ISO`,ipv4:`អាសយដ្ឋាន IPv4`,ipv6:`អាសយដ្ឋាន IPv6`,cidrv4:`ដែនអាសយដ្ឋាន IPv4`,cidrv6:`ដែនអាសយដ្ឋាន IPv6`,base64:`ខ្សែអក្សរអ៊ិកូដ base64`,base64url:`ខ្សែអក្សរអ៊ិកូដ base64url`,json_string:`ខ្សែអក្សរ JSON`,e164:`លេខ E.164`,jwt:`JWT`,template_literal:`ទិន្នន័យបញ្ចូល`},r={nan:`NaN`,number:`លេខ`,array:`អារេ (Array)`,null:`គ្មានតម្លៃ (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${e.expected} ប៉ុន្តែទទួលបាន ${i}`:`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${t} ប៉ុន្តែទទួលបាន ${i}`}case`invalid_value`:return e.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${O(e.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${C(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()} ${r.unit??`ធាតុ`}`:`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()} ${r.unit}`:`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ \"${t.prefix}\"`:t.format===`ends_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ \"${t.suffix}\"`:t.format===`includes`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន \"${t.includes}\"`:t.format===`regex`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${t.pattern}`:`មិនត្រឹមត្រូវ៖ ${n[t.format]??e.format}`}case`not_multiple_of`:return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${e.divisor}`;case`unrecognized_keys`:return`រកឃើញសោមិនស្គាល់៖ ${C(e.keys,`, `)}`;case`invalid_key`:return`សោមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;case`invalid_union`:return`ទិន្នន័យមិនត្រឹមត្រូវ`;case`invalid_element`:return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;default:return`ទិន្នន័យមិនត្រឹមត្រូវ`}}}}));function Bo(){return Lo()}var Vo=t((()=>{zo()}));function Ho(){return{localeError:Uo()}}var Uo,Wo=t((()=>{A(),Uo=()=>{let e={string:{unit:`문자`,verb:`to have`},file:{unit:`바이트`,verb:`to have`},array:{unit:`개`,verb:`to have`},set:{unit:`개`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`입력`,email:`이메일 주소`,url:`URL`,emoji:`이모지`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO 날짜시간`,date:`ISO 날짜`,time:`ISO 시간`,duration:`ISO 기간`,ipv4:`IPv4 주소`,ipv6:`IPv6 주소`,cidrv4:`IPv4 범위`,cidrv6:`IPv6 범위`,base64:`base64 인코딩 문자열`,base64url:`base64url 인코딩 문자열`,json_string:`JSON 문자열`,e164:`E.164 번호`,jwt:`JWT`,template_literal:`입력`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`잘못된 입력: 예상 타입은 instanceof ${e.expected}, 받은 타입은 ${i}입니다`:`잘못된 입력: 예상 타입은 ${t}, 받은 타입은 ${i}입니다`}case`invalid_value`:return e.values.length===1?`잘못된 입력: 값은 ${O(e.values[0])} 이어야 합니다`:`잘못된 옵션: ${C(e.values,`또는 `)} 중 하나여야 합니다`;case`too_big`:{let n=e.inclusive?`이하`:`미만`,r=n===`미만`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()} ${n}${r}`}case`too_small`:{let n=e.inclusive?`이상`:`초과`,r=n===`이상`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()} ${n}${r}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`잘못된 문자열: \"${t.prefix}\"(으)로 시작해야 합니다`:t.format===`ends_with`?`잘못된 문자열: \"${t.suffix}\"(으)로 끝나야 합니다`:t.format===`includes`?`잘못된 문자열: \"${t.includes}\"을(를) 포함해야 합니다`:t.format===`regex`?`잘못된 문자열: 정규식 ${t.pattern} 패턴과 일치해야 합니다`:`잘못된 ${n[t.format]??e.format}`}case`not_multiple_of`:return`잘못된 숫자: ${e.divisor}의 배수여야 합니다`;case`unrecognized_keys`:return`인식할 수 없는 키: ${C(e.keys,`, `)}`;case`invalid_key`:return`잘못된 키: ${e.origin}`;case`invalid_union`:return`잘못된 입력`;case`invalid_element`:return`잘못된 값: ${e.origin}`;default:return`잘못된 입력`}}}}));function Go(e){let t=Math.abs(e),n=t%10,r=t%100;return r>=11&&r<=19||n===0?`many`:n===1?`one`:`few`}function Ko(){return{localeError:Jo()}}var qo,Jo,Yo=t((()=>{A(),qo=e=>e.charAt(0).toUpperCase()+e.slice(1),Jo=()=>{let e={string:{unit:{one:`simbolis`,few:`simboliai`,many:`simbolių`},verb:{smaller:{inclusive:`turi būti ne ilgesnė kaip`,notInclusive:`turi būti trumpesnė kaip`},bigger:{inclusive:`turi būti ne trumpesnė kaip`,notInclusive:`turi būti ilgesnė kaip`}}},file:{unit:{one:`baitas`,few:`baitai`,many:`baitų`},verb:{smaller:{inclusive:`turi būti ne didesnis kaip`,notInclusive:`turi būti mažesnis kaip`},bigger:{inclusive:`turi būti ne mažesnis kaip`,notInclusive:`turi būti didesnis kaip`}}},array:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}},set:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}}};function t(t,n,r,i){let a=e[t]??null;return a===null?a:{unit:a.unit[n],verb:a.verb[i][r?`inclusive`:`notInclusive`]}}let n={regex:`įvestis`,email:`el. pašto adresas`,url:`URL`,emoji:`jaustukas`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO data ir laikas`,date:`ISO data`,time:`ISO laikas`,duration:`ISO trukmė`,ipv4:`IPv4 adresas`,ipv6:`IPv6 adresas`,cidrv4:`IPv4 tinklo prefiksas (CIDR)`,cidrv6:`IPv6 tinklo prefiksas (CIDR)`,base64:`base64 užkoduota eilutė`,base64url:`base64url užkoduota eilutė`,json_string:`JSON eilutė`,e164:`E.164 numeris`,jwt:`JWT`,template_literal:`įvestis`},r={nan:`NaN`,number:`skaičius`,bigint:`sveikasis skaičius`,string:`eilutė`,boolean:`loginė reikšmė`,undefined:`neapibrėžta reikšmė`,function:`funkcija`,symbol:`simbolis`,array:`masyvas`,object:`objektas`,null:`nulinė reikšmė`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Gautas tipas ${i}, o tikėtasi - instanceof ${e.expected}`:`Gautas tipas ${i}, o tikėtasi - ${t}`}case`invalid_value`:return e.values.length===1?`Privalo būti ${O(e.values[0])}`:`Privalo būti vienas iš ${C(e.values,`|`)} pasirinkimų`;case`too_big`:{let n=r[e.origin]??e.origin,i=t(e.origin,Go(Number(e.maximum)),e.inclusive??!1,`smaller`);if(i?.verb)return`${qo(n??e.origin??`reikšmė`)} ${i.verb} ${e.maximum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne didesnis kaip`:`mažesnis kaip`;return`${qo(n??e.origin??`reikšmė`)} turi būti ${a} ${e.maximum.toString()} ${i?.unit}`}case`too_small`:{let n=r[e.origin]??e.origin,i=t(e.origin,Go(Number(e.minimum)),e.inclusive??!1,`bigger`);if(i?.verb)return`${qo(n??e.origin??`reikšmė`)} ${i.verb} ${e.minimum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne mažesnis kaip`:`didesnis kaip`;return`${qo(n??e.origin??`reikšmė`)} turi būti ${a} ${e.minimum.toString()} ${i?.unit}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Eilutė privalo prasidėti \"${t.prefix}\"`:t.format===`ends_with`?`Eilutė privalo pasibaigti \"${t.suffix}\"`:t.format===`includes`?`Eilutė privalo įtraukti \"${t.includes}\"`:t.format===`regex`?`Eilutė privalo atitikti ${t.pattern}`:`Neteisingas ${n[t.format]??e.format}`}case`not_multiple_of`:return`Skaičius privalo būti ${e.divisor} kartotinis.`;case`unrecognized_keys`:return`Neatpažint${e.keys.length>1?`i`:`as`} rakt${e.keys.length>1?`ai`:`as`}: ${C(e.keys,`, `)}`;case`invalid_key`:return`Rastas klaidingas raktas`;case`invalid_union`:return`Klaidinga įvestis`;case`invalid_element`:return`${qo(r[e.origin]??e.origin??e.origin??`reikšmė`)} turi klaidingą įvestį`;default:return`Klaidinga įvestis`}}}}));function Xo(){return{localeError:Zo()}}var Zo,Qo=t((()=>{A(),Zo=()=>{let e={string:{unit:`знаци`,verb:`да имаат`},file:{unit:`бајти`,verb:`да имаат`},array:{unit:`ставки`,verb:`да имаат`},set:{unit:`ставки`,verb:`да имаат`}};function t(t){return e[t]??null}let n={regex:`внес`,email:`адреса на е-пошта`,url:`URL`,emoji:`емоџи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO датум и време`,date:`ISO датум`,time:`ISO време`,duration:`ISO времетраење`,ipv4:`IPv4 адреса`,ipv6:`IPv6 адреса`,cidrv4:`IPv4 опсег`,cidrv6:`IPv6 опсег`,base64:`base64-енкодирана низа`,base64url:`base64url-енкодирана низа`,json_string:`JSON низа`,e164:`E.164 број`,jwt:`JWT`,template_literal:`внес`},r={nan:`NaN`,number:`број`,array:`низа`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Грешен внес: се очекува instanceof ${e.expected}, примено ${i}`:`Грешен внес: се очекува ${t}, примено ${i}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${O(e.values[0])}`:`Грешана опција: се очекува една ${C(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Премногу голем: се очекува ${e.origin??`вредноста`} да има ${n}${e.maximum.toString()} ${r.unit??`елементи`}`:`Премногу голем: се очекува ${e.origin??`вредноста`} да биде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Премногу мал: се очекува ${e.origin} да има ${n}${e.minimum.toString()} ${r.unit}`:`Премногу мал: се очекува ${e.origin} да биде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неважечка низа: мора да започнува со \"${t.prefix}\"`:t.format===`ends_with`?`Неважечка низа: мора да завршува со \"${t.suffix}\"`:t.format===`includes`?`Неважечка низа: мора да вклучува \"${t.includes}\"`:t.format===`regex`?`Неважечка низа: мора да одгоара на патернот ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Грешен број: мора да биде делив со ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Непрепознаени клучеви`:`Непрепознаен клуч`}: ${C(e.keys,`, `)}`;case`invalid_key`:return`Грешен клуч во ${e.origin}`;case`invalid_union`:return`Грешен внес`;case`invalid_element`:return`Грешна вредност во ${e.origin}`;default:return`Грешен внес`}}}}));function $o(){return{localeError:es()}}var es,ts=t((()=>{A(),es=()=>{let e={string:{unit:`aksara`,verb:`mempunyai`},file:{unit:`bait`,verb:`mempunyai`},array:{unit:`elemen`,verb:`mempunyai`},set:{unit:`elemen`,verb:`mempunyai`}};function t(t){return e[t]??null}let n={regex:`input`,email:`alamat e-mel`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`tarikh masa ISO`,date:`tarikh ISO`,time:`masa ISO`,duration:`tempoh ISO`,ipv4:`alamat IPv4`,ipv6:`alamat IPv6`,cidrv4:`julat IPv4`,cidrv6:`julat IPv6`,base64:`string dikodkan base64`,base64url:`string dikodkan base64url`,json_string:`string JSON`,e164:`nombor E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`nombor`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak sah: dijangka instanceof ${e.expected}, diterima ${i}`:`Input tidak sah: dijangka ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak sah: dijangka ${O(e.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${C(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: dijangka ${e.origin??`nilai`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: dijangka ${e.origin??`nilai`} adalah ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: dijangka ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: dijangka ${e.origin} adalah ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak sah: mesti bermula dengan \"${t.prefix}\"`:t.format===`ends_with`?`String tidak sah: mesti berakhir dengan \"${t.suffix}\"`:t.format===`includes`?`String tidak sah: mesti mengandungi \"${t.includes}\"`:t.format===`regex`?`String tidak sah: mesti sepadan dengan corak ${t.pattern}`:`${n[t.format]??e.format} tidak sah`}case`not_multiple_of`:return`Nombor tidak sah: perlu gandaan ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali: ${C(e.keys,`, `)}`;case`invalid_key`:return`Kunci tidak sah dalam ${e.origin}`;case`invalid_union`:return`Input tidak sah`;case`invalid_element`:return`Nilai tidak sah dalam ${e.origin}`;default:return`Input tidak sah`}}}}));function ns(){return{localeError:rs()}}var rs,is=t((()=>{A(),rs=()=>{let e={string:{unit:`tekens`,verb:`heeft`},file:{unit:`bytes`,verb:`heeft`},array:{unit:`elementen`,verb:`heeft`},set:{unit:`elementen`,verb:`heeft`}};function t(t){return e[t]??null}let n={regex:`invoer`,email:`emailadres`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum en tijd`,date:`ISO datum`,time:`ISO tijd`,duration:`ISO duur`,ipv4:`IPv4-adres`,ipv6:`IPv6-adres`,cidrv4:`IPv4-bereik`,cidrv6:`IPv6-bereik`,base64:`base64-gecodeerde tekst`,base64url:`base64 URL-gecodeerde tekst`,json_string:`JSON string`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`invoer`},r={nan:`NaN`,number:`getal`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ongeldige invoer: verwacht instanceof ${e.expected}, ontving ${i}`:`Ongeldige invoer: verwacht ${t}, ontving ${i}`}case`invalid_value`:return e.values.length===1?`Ongeldige invoer: verwacht ${O(e.values[0])}`:`Ongeldige optie: verwacht één van ${C(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin),i=e.origin===`date`?`laat`:e.origin===`string`?`lang`:`groot`;return r?`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} ${r.unit??`elementen`} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} is`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin),i=e.origin===`date`?`vroeg`:e.origin===`string`?`kort`:`klein`;return r?`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} is`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ongeldige tekst: moet met \"${t.prefix}\" beginnen`:t.format===`ends_with`?`Ongeldige tekst: moet op \"${t.suffix}\" eindigen`:t.format===`includes`?`Ongeldige tekst: moet \"${t.includes}\" bevatten`:t.format===`regex`?`Ongeldige tekst: moet overeenkomen met patroon ${t.pattern}`:`Ongeldig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ongeldig getal: moet een veelvoud van ${e.divisor} zijn`;case`unrecognized_keys`:return`Onbekende key${e.keys.length>1?`s`:``}: ${C(e.keys,`, `)}`;case`invalid_key`:return`Ongeldige key in ${e.origin}`;case`invalid_union`:return`Ongeldige invoer`;case`invalid_element`:return`Ongeldige waarde in ${e.origin}`;default:return`Ongeldige invoer`}}}}));function as(){return{localeError:os()}}var os,ss=t((()=>{A(),os=()=>{let e={string:{unit:`tegn`,verb:`å ha`},file:{unit:`bytes`,verb:`å ha`},array:{unit:`elementer`,verb:`å inneholde`},set:{unit:`elementer`,verb:`å inneholde`}};function t(t){return e[t]??null}let n={regex:`input`,email:`e-postadresse`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dato- og klokkeslett`,date:`ISO-dato`,time:`ISO-klokkeslett`,duration:`ISO-varighet`,ipv4:`IPv4-område`,ipv6:`IPv6-område`,cidrv4:`IPv4-spekter`,cidrv6:`IPv6-spekter`,base64:`base64-enkodet streng`,base64url:`base64url-enkodet streng`,json_string:`JSON-streng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`tall`,array:`liste`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldig input: forventet instanceof ${e.expected}, fikk ${i}`:`Ugyldig input: forventet ${t}, fikk ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig verdi: forventet ${O(e.values[0])}`:`Ugyldig valg: forventet en av ${C(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()} ${r.unit??`elementer`}`:`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()} ${r.unit}`:`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: må starte med \"${t.prefix}\"`:t.format===`ends_with`?`Ugyldig streng: må ende med \"${t.suffix}\"`:t.format===`includes`?`Ugyldig streng: må inneholde \"${t.includes}\"`:t.format===`regex`?`Ugyldig streng: må matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldig tall: må være et multiplum av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukjente nøkler`:`Ukjent nøkkel`}: ${C(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøkkel i ${e.origin}`;case`invalid_union`:return`Ugyldig input`;case`invalid_element`:return`Ugyldig verdi i ${e.origin}`;default:return`Ugyldig input`}}}}));function cs(){return{localeError:ls()}}var ls,us=t((()=>{A(),ls=()=>{let e={string:{unit:`harf`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`unsur`,verb:`olmalıdır`},set:{unit:`unsur`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={regex:`giren`,email:`epostagâh`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO hengâmı`,date:`ISO tarihi`,time:`ISO zamanı`,duration:`ISO müddeti`,ipv4:`IPv4 nişânı`,ipv6:`IPv6 nişânı`,cidrv4:`IPv4 menzili`,cidrv6:`IPv6 menzili`,base64:`base64-şifreli metin`,base64url:`base64url-şifreli metin`,json_string:`JSON metin`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`giren`},r={nan:`NaN`,number:`numara`,array:`saf`,null:`gayb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Fâsit giren: umulan instanceof ${e.expected}, alınan ${i}`:`Fâsit giren: umulan ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Fâsit giren: umulan ${O(e.values[0])}`:`Fâsit tercih: mûteberler ${C(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} ${r.unit??`elements`} sahip olmalıydı.`:`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} olmalıydı.`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} ${r.unit} sahip olmalıydı.`:`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} olmalıydı.`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Fâsit metin: \"${t.prefix}\" ile başlamalı.`:t.format===`ends_with`?`Fâsit metin: \"${t.suffix}\" ile bitmeli.`:t.format===`includes`?`Fâsit metin: \"${t.includes}\" ihtivâ etmeli.`:t.format===`regex`?`Fâsit metin: ${t.pattern} nakşına uymalı.`:`Fâsit ${n[t.format]??e.format}`}case`not_multiple_of`:return`Fâsit sayı: ${e.divisor} katı olmalıydı.`;case`unrecognized_keys`:return`Tanınmayan anahtar ${e.keys.length>1?`s`:``}: ${C(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} için tanınmayan anahtar var.`;case`invalid_union`:return`Giren tanınamadı.`;case`invalid_element`:return`${e.origin} için tanınmayan kıymet var.`;default:return`Kıymet tanınamadı.`}}}}));function ds(){return{localeError:fs()}}var fs,ps=t((()=>{A(),fs=()=>{let e={string:{unit:`توکي`,verb:`ولري`},file:{unit:`بایټس`,verb:`ولري`},array:{unit:`توکي`,verb:`ولري`},set:{unit:`توکي`,verb:`ولري`}};function t(t){return e[t]??null}let n={regex:`ورودي`,email:`بریښنالیک`,url:`یو آر ال`,emoji:`ایموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`نیټه او وخت`,date:`نېټه`,time:`وخت`,duration:`موده`,ipv4:`د IPv4 پته`,ipv6:`د IPv6 پته`,cidrv4:`د IPv4 ساحه`,cidrv6:`د IPv6 ساحه`,base64:`base64-encoded متن`,base64url:`base64url-encoded متن`,json_string:`JSON متن`,e164:`د E.164 شمېره`,jwt:`JWT`,template_literal:`ورودي`},r={nan:`NaN`,number:`عدد`,array:`ارې`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ناسم ورودي: باید instanceof ${e.expected} وای, مګر ${i} ترلاسه شو`:`ناسم ورودي: باید ${t} وای, مګر ${i} ترلاسه شو`}case`invalid_value`:return e.values.length===1?`ناسم ورودي: باید ${O(e.values[0])} وای`:`ناسم انتخاب: باید یو له ${C(e.values,`|`)} څخه وای`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصرونه`} ولري`:`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} وي`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} ولري`:`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} وي`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ناسم متن: باید د \"${t.prefix}\" سره پیل شي`:t.format===`ends_with`?`ناسم متن: باید د \"${t.suffix}\" سره پای ته ورسيږي`:t.format===`includes`?`ناسم متن: باید \"${t.includes}\" ولري`:t.format===`regex`?`ناسم متن: باید د ${t.pattern} سره مطابقت ولري`:`${n[t.format]??e.format} ناسم دی`}case`not_multiple_of`:return`ناسم عدد: باید د ${e.divisor} مضرب وي`;case`unrecognized_keys`:return`ناسم ${e.keys.length>1?`کلیډونه`:`کلیډ`}: ${C(e.keys,`, `)}`;case`invalid_key`:return`ناسم کلیډ په ${e.origin} کې`;case`invalid_union`:return`ناسمه ورودي`;case`invalid_element`:return`ناسم عنصر په ${e.origin} کې`;default:return`ناسمه ورودي`}}}}));function ms(){return{localeError:hs()}}var hs,gs=t((()=>{A(),hs=()=>{let e={string:{unit:`znaków`,verb:`mieć`},file:{unit:`bajtów`,verb:`mieć`},array:{unit:`elementów`,verb:`mieć`},set:{unit:`elementów`,verb:`mieć`}};function t(t){return e[t]??null}let n={regex:`wyrażenie`,email:`adres email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data i godzina w formacie ISO`,date:`data w formacie ISO`,time:`godzina w formacie ISO`,duration:`czas trwania ISO`,ipv4:`adres IPv4`,ipv6:`adres IPv6`,cidrv4:`zakres IPv4`,cidrv6:`zakres IPv6`,base64:`ciąg znaków zakodowany w formacie base64`,base64url:`ciąg znaków zakodowany w formacie base64url`,json_string:`ciąg znaków w formacie JSON`,e164:`liczba E.164`,jwt:`JWT`,template_literal:`wejście`},r={nan:`NaN`,number:`liczba`,array:`tablica`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${e.expected}, otrzymano ${i}`:`Nieprawidłowe dane wejściowe: oczekiwano ${t}, otrzymano ${i}`}case`invalid_value`:return e.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${O(e.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${C(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Za duża wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.maximum.toString()} ${r.unit??`elementów`}`:`Zbyt duż(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Za mała wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.minimum.toString()} ${r.unit??`elementów`}`:`Zbyt mał(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nieprawidłowy ciąg znaków: musi zaczynać się od \"${t.prefix}\"`:t.format===`ends_with`?`Nieprawidłowy ciąg znaków: musi kończyć się na \"${t.suffix}\"`:t.format===`includes`?`Nieprawidłowy ciąg znaków: musi zawierać \"${t.includes}\"`:t.format===`regex`?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${t.pattern}`:`Nieprawidłow(y/a/e) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nieprawidłowa liczba: musi być wielokrotnością ${e.divisor}`;case`unrecognized_keys`:return`Nierozpoznane klucze${e.keys.length>1?`s`:``}: ${C(e.keys,`, `)}`;case`invalid_key`:return`Nieprawidłowy klucz w ${e.origin}`;case`invalid_union`:return`Nieprawidłowe dane wejściowe`;case`invalid_element`:return`Nieprawidłowa wartość w ${e.origin}`;default:return`Nieprawidłowe dane wejściowe`}}}}));function _s(){return{localeError:vs()}}var vs,ys=t((()=>{A(),vs=()=>{let e={string:{unit:`caracteres`,verb:`ter`},file:{unit:`bytes`,verb:`ter`},array:{unit:`itens`,verb:`ter`},set:{unit:`itens`,verb:`ter`}};function t(t){return e[t]??null}let n={regex:`padrão`,email:`endereço de e-mail`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data e hora ISO`,date:`data ISO`,time:`hora ISO`,duration:`duração ISO`,ipv4:`endereço IPv4`,ipv6:`endereço IPv6`,cidrv4:`faixa de IPv4`,cidrv6:`faixa de IPv6`,base64:`texto codificado em base64`,base64url:`URL codificada em base64`,json_string:`texto JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,number:`número`,null:`nulo`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipo inválido: esperado instanceof ${e.expected}, recebido ${i}`:`Tipo inválido: esperado ${t}, recebido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: esperado ${O(e.values[0])}`:`Opção inválida: esperada uma das ${C(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Muito grande: esperado que ${e.origin??`valor`} tivesse ${n}${e.maximum.toString()} ${r.unit??`elementos`}`:`Muito grande: esperado que ${e.origin??`valor`} fosse ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Muito pequeno: esperado que ${e.origin} tivesse ${n}${e.minimum.toString()} ${r.unit}`:`Muito pequeno: esperado que ${e.origin} fosse ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Texto inválido: deve começar com \"${t.prefix}\"`:t.format===`ends_with`?`Texto inválido: deve terminar com \"${t.suffix}\"`:t.format===`includes`?`Texto inválido: deve incluir \"${t.includes}\"`:t.format===`regex`?`Texto inválido: deve corresponder ao padrão ${t.pattern}`:`${n[t.format]??e.format} inválido`}case`not_multiple_of`:return`Número inválido: deve ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Chave${e.keys.length>1?`s`:``} desconhecida${e.keys.length>1?`s`:``}: ${C(e.keys,`, `)}`;case`invalid_key`:return`Chave inválida em ${e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido em ${e.origin}`;default:return`Campo inválido`}}}}));function bs(){return{localeError:xs()}}var xs,Ss=t((()=>{A(),xs=()=>{let e={string:{unit:`caractere`,verb:`să aibă`},file:{unit:`octeți`,verb:`să aibă`},array:{unit:`elemente`,verb:`să aibă`},set:{unit:`elemente`,verb:`să aibă`},map:{unit:`intrări`,verb:`să aibă`}};function t(t){return e[t]??null}let n={regex:`intrare`,email:`adresă de email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`dată și oră ISO`,date:`dată ISO`,time:`oră ISO`,duration:`durată ISO`,ipv4:`adresă IPv4`,ipv6:`adresă IPv6`,mac:`adresă MAC`,cidrv4:`interval IPv4`,cidrv6:`interval IPv6`,base64:`șir codat base64`,base64url:`șir codat base64url`,json_string:`șir JSON`,e164:`număr E.164`,jwt:`JWT`,template_literal:`intrare`},r={nan:`NaN`,string:`șir`,number:`număr`,boolean:`boolean`,function:`funcție`,array:`matrice`,object:`obiect`,undefined:`nedefinit`,symbol:`simbol`,bigint:`număr mare`,void:`void`,never:`never`,map:`hartă`,set:`set`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input);return`Intrare invalidă: așteptat ${t}, primit ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Intrare invalidă: așteptat ${O(e.values[0])}`:`Opțiune invalidă: așteptat una dintre ${C(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Prea mare: așteptat ca ${e.origin??`valoarea`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemente`}`:`Prea mare: așteptat ca ${e.origin??`valoarea`} să fie ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Prea mic: așteptat ca ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Prea mic: așteptat ca ${e.origin} să fie ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Șir invalid: trebuie să înceapă cu \"${t.prefix}\"`:t.format===`ends_with`?`Șir invalid: trebuie să se termine cu \"${t.suffix}\"`:t.format===`includes`?`Șir invalid: trebuie să includă \"${t.includes}\"`:t.format===`regex`?`Șir invalid: trebuie să se potrivească cu modelul ${t.pattern}`:`Format invalid: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Număr invalid: trebuie să fie multiplu de ${e.divisor}`;case`unrecognized_keys`:return`Chei nerecunoscute: ${C(e.keys,`, `)}`;case`invalid_key`:return`Cheie invalidă în ${e.origin}`;case`invalid_union`:return`Intrare invalidă`;case`invalid_element`:return`Valoare invalidă în ${e.origin}`;default:return`Intrare invalidă`}}}}));function Cs(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}function ws(){return{localeError:Ts()}}var Ts,Es=t((()=>{A(),Ts=()=>{let e={string:{unit:{one:`символ`,few:`символа`,many:`символов`},verb:`иметь`},file:{unit:{one:`байт`,few:`байта`,many:`байт`},verb:`иметь`},array:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`},set:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`}};function t(t){return e[t]??null}let n={regex:`ввод`,email:`email адрес`,url:`URL`,emoji:`эмодзи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата и время`,date:`ISO дата`,time:`ISO время`,duration:`ISO длительность`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`строка в формате base64`,base64url:`строка в формате base64url`,json_string:`JSON строка`,e164:`номер E.164`,jwt:`JWT`,template_literal:`ввод`},r={nan:`NaN`,number:`число`,array:`массив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неверный ввод: ожидалось instanceof ${e.expected}, получено ${i}`:`Неверный ввод: ожидалось ${t}, получено ${i}`}case`invalid_value`:return e.values.length===1?`Неверный ввод: ожидалось ${O(e.values[0])}`:`Неверный вариант: ожидалось одно из ${C(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=Cs(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет иметь ${n}${e.maximum.toString()} ${t}`}return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=Cs(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Слишком маленькое значение: ожидалось, что ${e.origin} будет иметь ${n}${e.minimum.toString()} ${t}`}return`Слишком маленькое значение: ожидалось, что ${e.origin} будет ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неверная строка: должна начинаться с \"${t.prefix}\"`:t.format===`ends_with`?`Неверная строка: должна заканчиваться на \"${t.suffix}\"`:t.format===`includes`?`Неверная строка: должна содержать \"${t.includes}\"`:t.format===`regex`?`Неверная строка: должна соответствовать шаблону ${t.pattern}`:`Неверный ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неверное число: должно быть кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспознанн${e.keys.length>1?`ые`:`ый`} ключ${e.keys.length>1?`и`:``}: ${C(e.keys,`, `)}`;case`invalid_key`:return`Неверный ключ в ${e.origin}`;case`invalid_union`:return`Неверные входные данные`;case`invalid_element`:return`Неверное значение в ${e.origin}`;default:return`Неверные входные данные`}}}}));function Ds(){return{localeError:Os()}}var Os,ks=t((()=>{A(),Os=()=>{let e={string:{unit:`znakov`,verb:`imeti`},file:{unit:`bajtov`,verb:`imeti`},array:{unit:`elementov`,verb:`imeti`},set:{unit:`elementov`,verb:`imeti`}};function t(t){return e[t]??null}let n={regex:`vnos`,email:`e-poštni naslov`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum in čas`,date:`ISO datum`,time:`ISO čas`,duration:`ISO trajanje`,ipv4:`IPv4 naslov`,ipv6:`IPv6 naslov`,cidrv4:`obseg IPv4`,cidrv6:`obseg IPv6`,base64:`base64 kodiran niz`,base64url:`base64url kodiran niz`,json_string:`JSON niz`,e164:`E.164 številka`,jwt:`JWT`,template_literal:`vnos`},r={nan:`NaN`,number:`število`,array:`tabela`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neveljaven vnos: pričakovano instanceof ${e.expected}, prejeto ${i}`:`Neveljaven vnos: pričakovano ${t}, prejeto ${i}`}case`invalid_value`:return e.values.length===1?`Neveljaven vnos: pričakovano ${O(e.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${C(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} imelo ${n}${e.maximum.toString()} ${r.unit??`elementov`}`:`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Premajhno: pričakovano, da bo ${e.origin} imelo ${n}${e.minimum.toString()} ${r.unit}`:`Premajhno: pričakovano, da bo ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neveljaven niz: mora se začeti z \"${t.prefix}\"`:t.format===`ends_with`?`Neveljaven niz: mora se končati z \"${t.suffix}\"`:t.format===`includes`?`Neveljaven niz: mora vsebovati \"${t.includes}\"`:t.format===`regex`?`Neveljaven niz: mora ustrezati vzorcu ${t.pattern}`:`Neveljaven ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neveljavno število: mora biti večkratnik ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznan${e.keys.length>1?`i ključi`:` ključ`}: ${C(e.keys,`, `)}`;case`invalid_key`:return`Neveljaven ključ v ${e.origin}`;case`invalid_union`:return`Neveljaven vnos`;case`invalid_element`:return`Neveljavna vrednost v ${e.origin}`;default:return`Neveljaven vnos`}}}}));function As(){return{localeError:js()}}var js,Ms=t((()=>{A(),js=()=>{let e={string:{unit:`tecken`,verb:`att ha`},file:{unit:`bytes`,verb:`att ha`},array:{unit:`objekt`,verb:`att innehålla`},set:{unit:`objekt`,verb:`att innehålla`}};function t(t){return e[t]??null}let n={regex:`reguljärt uttryck`,email:`e-postadress`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-datum och tid`,date:`ISO-datum`,time:`ISO-tid`,duration:`ISO-varaktighet`,ipv4:`IPv4-intervall`,ipv6:`IPv6-intervall`,cidrv4:`IPv4-spektrum`,cidrv6:`IPv6-spektrum`,base64:`base64-kodad sträng`,base64url:`base64url-kodad sträng`,json_string:`JSON-sträng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`mall-literal`},r={nan:`NaN`,number:`antal`,array:`lista`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ogiltig inmatning: förväntat instanceof ${e.expected}, fick ${i}`:`Ogiltig inmatning: förväntat ${t}, fick ${i}`}case`invalid_value`:return e.values.length===1?`Ogiltig inmatning: förväntat ${O(e.values[0])}`:`Ogiltigt val: förväntade en av ${C(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`För stor(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()} ${r.unit??`element`}`:`För stor(t): förväntat ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()} ${r.unit}`:`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ogiltig sträng: måste börja med \"${t.prefix}\"`:t.format===`ends_with`?`Ogiltig sträng: måste sluta med \"${t.suffix}\"`:t.format===`includes`?`Ogiltig sträng: måste innehålla \"${t.includes}\"`:t.format===`regex`?`Ogiltig sträng: måste matcha mönstret \"${t.pattern}\"`:`Ogiltig(t) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ogiltigt tal: måste vara en multipel av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Okända nycklar`:`Okänd nyckel`}: ${C(e.keys,`, `)}`;case`invalid_key`:return`Ogiltig nyckel i ${e.origin??`värdet`}`;case`invalid_union`:return`Ogiltig input`;case`invalid_element`:return`Ogiltigt värde i ${e.origin??`värdet`}`;default:return`Ogiltig input`}}}}));function Ns(){return{localeError:Ps()}}var Ps,Fs=t((()=>{A(),Ps=()=>{let e={string:{unit:`எழுத்துக்கள்`,verb:`கொண்டிருக்க வேண்டும்`},file:{unit:`பைட்டுகள்`,verb:`கொண்டிருக்க வேண்டும்`},array:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`},set:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`}};function t(t){return e[t]??null}let n={regex:`உள்ளீடு`,email:`மின்னஞ்சல் முகவரி`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO தேதி நேரம்`,date:`ISO தேதி`,time:`ISO நேரம்`,duration:`ISO கால அளவு`,ipv4:`IPv4 முகவரி`,ipv6:`IPv6 முகவரி`,cidrv4:`IPv4 வரம்பு`,cidrv6:`IPv6 வரம்பு`,base64:`base64-encoded சரம்`,base64url:`base64url-encoded சரம்`,json_string:`JSON சரம்`,e164:`E.164 எண்`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`எண்`,array:`அணி`,null:`வெறுமை`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${e.expected}, பெறப்பட்டது ${i}`:`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${t}, பெறப்பட்டது ${i}`}case`invalid_value`:return e.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${O(e.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${C(e.values,`|`)} இல் ஒன்று`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ${r.unit??`உறுப்புகள்`} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ஆக இருக்க வேண்டும்`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ஆக இருக்க வேண்டும்`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`தவறான சரம்: \"${t.prefix}\" இல் தொடங்க வேண்டும்`:t.format===`ends_with`?`தவறான சரம்: \"${t.suffix}\" இல் முடிவடைய வேண்டும்`:t.format===`includes`?`தவறான சரம்: \"${t.includes}\" ஐ உள்ளடக்க வேண்டும்`:t.format===`regex`?`தவறான சரம்: ${t.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${n[t.format]??e.format}`}case`not_multiple_of`:return`தவறான எண்: ${e.divisor} இன் பலமாக இருக்க வேண்டும்`;case`unrecognized_keys`:return`அடையாளம் தெரியாத விசை${e.keys.length>1?`கள்`:``}: ${C(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} இல் தவறான விசை`;case`invalid_union`:return`தவறான உள்ளீடு`;case`invalid_element`:return`${e.origin} இல் தவறான மதிப்பு`;default:return`தவறான உள்ளீடு`}}}}));function Is(){return{localeError:Ls()}}var Ls,Rs=t((()=>{A(),Ls=()=>{let e={string:{unit:`ตัวอักษร`,verb:`ควรมี`},file:{unit:`ไบต์`,verb:`ควรมี`},array:{unit:`รายการ`,verb:`ควรมี`},set:{unit:`รายการ`,verb:`ควรมี`}};function t(t){return e[t]??null}let n={regex:`ข้อมูลที่ป้อน`,email:`ที่อยู่อีเมล`,url:`URL`,emoji:`อิโมจิ`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`วันที่เวลาแบบ ISO`,date:`วันที่แบบ ISO`,time:`เวลาแบบ ISO`,duration:`ช่วงเวลาแบบ ISO`,ipv4:`ที่อยู่ IPv4`,ipv6:`ที่อยู่ IPv6`,cidrv4:`ช่วง IP แบบ IPv4`,cidrv6:`ช่วง IP แบบ IPv6`,base64:`ข้อความแบบ Base64`,base64url:`ข้อความแบบ Base64 สำหรับ URL`,json_string:`ข้อความแบบ JSON`,e164:`เบอร์โทรศัพท์ระหว่างประเทศ (E.164)`,jwt:`โทเคน JWT`,template_literal:`ข้อมูลที่ป้อน`},r={nan:`NaN`,number:`ตัวเลข`,array:`อาร์เรย์ (Array)`,null:`ไม่มีค่า (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${e.expected} แต่ได้รับ ${i}`:`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${t} แต่ได้รับ ${i}`}case`invalid_value`:return e.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${O(e.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${C(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`ไม่เกิน`:`น้อยกว่า`,r=t(e.origin);return r?`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()} ${r.unit??`รายการ`}`:`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`อย่างน้อย`:`มากกว่า`,r=t(e.origin);return r?`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()} ${r.unit}`:`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย \"${t.prefix}\"`:t.format===`ends_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย \"${t.suffix}\"`:t.format===`includes`?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี \"${t.includes}\" อยู่ในข้อความ`:t.format===`regex`?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${t.pattern}`:`รูปแบบไม่ถูกต้อง: ${n[t.format]??e.format}`}case`not_multiple_of`:return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${e.divisor} ได้ลงตัว`;case`unrecognized_keys`:return`พบคีย์ที่ไม่รู้จัก: ${C(e.keys,`, `)}`;case`invalid_key`:return`คีย์ไม่ถูกต้องใน ${e.origin}`;case`invalid_union`:return`ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้`;case`invalid_element`:return`ข้อมูลไม่ถูกต้องใน ${e.origin}`;default:return`ข้อมูลไม่ถูกต้อง`}}}}));function zs(){return{localeError:Bs()}}var Bs,Vs=t((()=>{A(),Bs=()=>{let e={string:{unit:`karakter`,verb:`olmalı`},file:{unit:`bayt`,verb:`olmalı`},array:{unit:`öğe`,verb:`olmalı`},set:{unit:`öğe`,verb:`olmalı`}};function t(t){return e[t]??null}let n={regex:`girdi`,email:`e-posta adresi`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO tarih ve saat`,date:`ISO tarih`,time:`ISO saat`,duration:`ISO süre`,ipv4:`IPv4 adresi`,ipv6:`IPv6 adresi`,cidrv4:`IPv4 aralığı`,cidrv6:`IPv6 aralığı`,base64:`base64 ile şifrelenmiş metin`,base64url:`base64url ile şifrelenmiş metin`,json_string:`JSON dizesi`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`Şablon dizesi`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Geçersiz değer: beklenen instanceof ${e.expected}, alınan ${i}`:`Geçersiz değer: beklenen ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Geçersiz değer: beklenen ${O(e.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${C(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()} ${r.unit??`öğe`}`:`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Geçersiz metin: \"${t.prefix}\" ile başlamalı`:t.format===`ends_with`?`Geçersiz metin: \"${t.suffix}\" ile bitmeli`:t.format===`includes`?`Geçersiz metin: \"${t.includes}\" içermeli`:t.format===`regex`?`Geçersiz metin: ${t.pattern} desenine uymalı`:`Geçersiz ${n[t.format]??e.format}`}case`not_multiple_of`:return`Geçersiz sayı: ${e.divisor} ile tam bölünebilmeli`;case`unrecognized_keys`:return`Tanınmayan anahtar${e.keys.length>1?`lar`:``}: ${C(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} içinde geçersiz anahtar`;case`invalid_union`:return`Geçersiz değer`;case`invalid_element`:return`${e.origin} içinde geçersiz değer`;default:return`Geçersiz değer`}}}}));function Hs(){return{localeError:Us()}}var Us,Ws=t((()=>{A(),Us=()=>{let e={string:{unit:`символів`,verb:`матиме`},file:{unit:`байтів`,verb:`матиме`},array:{unit:`елементів`,verb:`матиме`},set:{unit:`елементів`,verb:`матиме`}};function t(t){return e[t]??null}let n={regex:`вхідні дані`,email:`адреса електронної пошти`,url:`URL`,emoji:`емодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`дата та час ISO`,date:`дата ISO`,time:`час ISO`,duration:`тривалість ISO`,ipv4:`адреса IPv4`,ipv6:`адреса IPv6`,cidrv4:`діапазон IPv4`,cidrv6:`діапазон IPv6`,base64:`рядок у кодуванні base64`,base64url:`рядок у кодуванні base64url`,json_string:`рядок JSON`,e164:`номер E.164`,jwt:`JWT`,template_literal:`вхідні дані`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неправильні вхідні дані: очікується instanceof ${e.expected}, отримано ${i}`:`Неправильні вхідні дані: очікується ${t}, отримано ${i}`}case`invalid_value`:return e.values.length===1?`Неправильні вхідні дані: очікується ${O(e.values[0])}`:`Неправильна опція: очікується одне з ${C(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Занадто велике: очікується, що ${e.origin??`значення`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`елементів`}`:`Занадто велике: очікується, що ${e.origin??`значення`} буде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Занадто мале: очікується, що ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Занадто мале: очікується, що ${e.origin} буде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неправильний рядок: повинен починатися з \"${t.prefix}\"`:t.format===`ends_with`?`Неправильний рядок: повинен закінчуватися на \"${t.suffix}\"`:t.format===`includes`?`Неправильний рядок: повинен містити \"${t.includes}\"`:t.format===`regex`?`Неправильний рядок: повинен відповідати шаблону ${t.pattern}`:`Неправильний ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неправильне число: повинно бути кратним ${e.divisor}`;case`unrecognized_keys`:return`Нерозпізнаний ключ${e.keys.length>1?`і`:``}: ${C(e.keys,`, `)}`;case`invalid_key`:return`Неправильний ключ у ${e.origin}`;case`invalid_union`:return`Неправильні вхідні дані`;case`invalid_element`:return`Неправильне значення у ${e.origin}`;default:return`Неправильні вхідні дані`}}}}));function Gs(){return Hs()}var Ks=t((()=>{Ws()}));function qs(){return{localeError:Js()}}var Js,Ys=t((()=>{A(),Js=()=>{let e={string:{unit:`حروف`,verb:`ہونا`},file:{unit:`بائٹس`,verb:`ہونا`},array:{unit:`آئٹمز`,verb:`ہونا`},set:{unit:`آئٹمز`,verb:`ہونا`}};function t(t){return e[t]??null}let n={regex:`ان پٹ`,email:`ای میل ایڈریس`,url:`یو آر ایل`,emoji:`ایموجی`,uuid:`یو یو آئی ڈی`,uuidv4:`یو یو آئی ڈی وی 4`,uuidv6:`یو یو آئی ڈی وی 6`,nanoid:`نینو آئی ڈی`,guid:`جی یو آئی ڈی`,cuid:`سی یو آئی ڈی`,cuid2:`سی یو آئی ڈی 2`,ulid:`یو ایل آئی ڈی`,xid:`ایکس آئی ڈی`,ksuid:`کے ایس یو آئی ڈی`,datetime:`آئی ایس او ڈیٹ ٹائم`,date:`آئی ایس او تاریخ`,time:`آئی ایس او وقت`,duration:`آئی ایس او مدت`,ipv4:`آئی پی وی 4 ایڈریس`,ipv6:`آئی پی وی 6 ایڈریس`,cidrv4:`آئی پی وی 4 رینج`,cidrv6:`آئی پی وی 6 رینج`,base64:`بیس 64 ان کوڈڈ سٹرنگ`,base64url:`بیس 64 یو آر ایل ان کوڈڈ سٹرنگ`,json_string:`جے ایس او این سٹرنگ`,e164:`ای 164 نمبر`,jwt:`جے ڈبلیو ٹی`,template_literal:`ان پٹ`},r={nan:`NaN`,number:`نمبر`,array:`آرے`,null:`نل`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`غلط ان پٹ: instanceof ${e.expected} متوقع تھا، ${i} موصول ہوا`:`غلط ان پٹ: ${t} متوقع تھا، ${i} موصول ہوا`}case`invalid_value`:return e.values.length===1?`غلط ان پٹ: ${O(e.values[0])} متوقع تھا`:`غلط آپشن: ${C(e.values,`|`)} میں سے ایک متوقع تھا`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`بہت بڑا: ${e.origin??`ویلیو`} کے ${n}${e.maximum.toString()} ${r.unit??`عناصر`} ہونے متوقع تھے`:`بہت بڑا: ${e.origin??`ویلیو`} کا ${n}${e.maximum.toString()} ہونا متوقع تھا`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`بہت چھوٹا: ${e.origin} کے ${n}${e.minimum.toString()} ${r.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${e.origin} کا ${n}${e.minimum.toString()} ہونا متوقع تھا`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`غلط سٹرنگ: \"${t.prefix}\" سے شروع ہونا چاہیے`:t.format===`ends_with`?`غلط سٹرنگ: \"${t.suffix}\" پر ختم ہونا چاہیے`:t.format===`includes`?`غلط سٹرنگ: \"${t.includes}\" شامل ہونا چاہیے`:t.format===`regex`?`غلط سٹرنگ: پیٹرن ${t.pattern} سے میچ ہونا چاہیے`:`غلط ${n[t.format]??e.format}`}case`not_multiple_of`:return`غلط نمبر: ${e.divisor} کا مضاعف ہونا چاہیے`;case`unrecognized_keys`:return`غیر تسلیم شدہ کی${e.keys.length>1?`ز`:``}: ${C(e.keys,`، `)}`;case`invalid_key`:return`${e.origin} میں غلط کی`;case`invalid_union`:return`غلط ان پٹ`;case`invalid_element`:return`${e.origin} میں غلط ویلیو`;default:return`غلط ان پٹ`}}}}));function Xs(){return{localeError:Zs()}}var Zs,Qs=t((()=>{A(),Zs=()=>{let e={string:{unit:`belgi`,verb:`bo‘lishi kerak`},file:{unit:`bayt`,verb:`bo‘lishi kerak`},array:{unit:`element`,verb:`bo‘lishi kerak`},set:{unit:`element`,verb:`bo‘lishi kerak`},map:{unit:`yozuv`,verb:`bo‘lishi kerak`}};function t(t){return e[t]??null}let n={regex:`kirish`,email:`elektron pochta manzili`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO sana va vaqti`,date:`ISO sana`,time:`ISO vaqt`,duration:`ISO davomiylik`,ipv4:`IPv4 manzil`,ipv6:`IPv6 manzil`,mac:`MAC manzil`,cidrv4:`IPv4 diapazon`,cidrv6:`IPv6 diapazon`,base64:`base64 kodlangan satr`,base64url:`base64url kodlangan satr`,json_string:`JSON satr`,e164:`E.164 raqam`,jwt:`JWT`,template_literal:`kirish`},r={nan:`NaN`,number:`raqam`,array:`massiv`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Noto‘g‘ri kirish: kutilgan instanceof ${e.expected}, qabul qilingan ${i}`:`Noto‘g‘ri kirish: kutilgan ${t}, qabul qilingan ${i}`}case`invalid_value`:return e.values.length===1?`Noto‘g‘ri kirish: kutilgan ${O(e.values[0])}`:`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${C(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()} ${r.unit} ${r.verb}`:`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Noto‘g‘ri satr: \"${t.prefix}\" bilan boshlanishi kerak`:t.format===`ends_with`?`Noto‘g‘ri satr: \"${t.suffix}\" bilan tugashi kerak`:t.format===`includes`?`Noto‘g‘ri satr: \"${t.includes}\" ni o‘z ichiga olishi kerak`:t.format===`regex`?`Noto‘g‘ri satr: ${t.pattern} shabloniga mos kelishi kerak`:`Noto‘g‘ri ${n[t.format]??e.format}`}case`not_multiple_of`:return`Noto‘g‘ri raqam: ${e.divisor} ning karralisi bo‘lishi kerak`;case`unrecognized_keys`:return`Noma’lum kalit${e.keys.length>1?`lar`:``}: ${C(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} dagi kalit noto‘g‘ri`;case`invalid_union`:return`Noto‘g‘ri kirish`;case`invalid_element`:return`${e.origin} da noto‘g‘ri qiymat`;default:return`Noto‘g‘ri kirish`}}}}));function $s(){return{localeError:ec()}}var ec,tc=t((()=>{A(),ec=()=>{let e={string:{unit:`ký tự`,verb:`có`},file:{unit:`byte`,verb:`có`},array:{unit:`phần tử`,verb:`có`},set:{unit:`phần tử`,verb:`có`}};function t(t){return e[t]??null}let n={regex:`đầu vào`,email:`địa chỉ email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ngày giờ ISO`,date:`ngày ISO`,time:`giờ ISO`,duration:`khoảng thời gian ISO`,ipv4:`địa chỉ IPv4`,ipv6:`địa chỉ IPv6`,cidrv4:`dải IPv4`,cidrv6:`dải IPv6`,base64:`chuỗi mã hóa base64`,base64url:`chuỗi mã hóa base64url`,json_string:`chuỗi JSON`,e164:`số E.164`,jwt:`JWT`,template_literal:`đầu vào`},r={nan:`NaN`,number:`số`,array:`mảng`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Đầu vào không hợp lệ: mong đợi instanceof ${e.expected}, nhận được ${i}`:`Đầu vào không hợp lệ: mong đợi ${t}, nhận được ${i}`}case`invalid_value`:return e.values.length===1?`Đầu vào không hợp lệ: mong đợi ${O(e.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${C(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Quá lớn: mong đợi ${e.origin??`giá trị`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`phần tử`}`:`Quá lớn: mong đợi ${e.origin??`giá trị`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Quá nhỏ: mong đợi ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Quá nhỏ: mong đợi ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chuỗi không hợp lệ: phải bắt đầu bằng \"${t.prefix}\"`:t.format===`ends_with`?`Chuỗi không hợp lệ: phải kết thúc bằng \"${t.suffix}\"`:t.format===`includes`?`Chuỗi không hợp lệ: phải bao gồm \"${t.includes}\"`:t.format===`regex`?`Chuỗi không hợp lệ: phải khớp với mẫu ${t.pattern}`:`${n[t.format]??e.format} không hợp lệ`}case`not_multiple_of`:return`Số không hợp lệ: phải là bội số của ${e.divisor}`;case`unrecognized_keys`:return`Khóa không được nhận dạng: ${C(e.keys,`, `)}`;case`invalid_key`:return`Khóa không hợp lệ trong ${e.origin}`;case`invalid_union`:return`Đầu vào không hợp lệ`;case`invalid_element`:return`Giá trị không hợp lệ trong ${e.origin}`;default:return`Đầu vào không hợp lệ`}}}}));function nc(){return{localeError:rc()}}var rc,ic=t((()=>{A(),rc=()=>{let e={string:{unit:`字符`,verb:`包含`},file:{unit:`字节`,verb:`包含`},array:{unit:`项`,verb:`包含`},set:{unit:`项`,verb:`包含`}};function t(t){return e[t]??null}let n={regex:`输入`,email:`电子邮件`,url:`URL`,emoji:`表情符号`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日期时间`,date:`ISO日期`,time:`ISO时间`,duration:`ISO时长`,ipv4:`IPv4地址`,ipv6:`IPv6地址`,cidrv4:`IPv4网段`,cidrv6:`IPv6网段`,base64:`base64编码字符串`,base64url:`base64url编码字符串`,json_string:`JSON字符串`,e164:`E.164号码`,jwt:`JWT`,template_literal:`输入`},r={nan:`NaN`,number:`数字`,array:`数组`,null:`空值(null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`无效输入:期望 instanceof ${e.expected},实际接收 ${i}`:`无效输入:期望 ${t},实际接收 ${i}`}case`invalid_value`:return e.values.length===1?`无效输入:期望 ${O(e.values[0])}`:`无效选项:期望以下之一 ${C(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()} ${r.unit??`个元素`}`:`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`无效字符串:必须以 \"${t.prefix}\" 开头`:t.format===`ends_with`?`无效字符串:必须以 \"${t.suffix}\" 结尾`:t.format===`includes`?`无效字符串:必须包含 \"${t.includes}\"`:t.format===`regex`?`无效字符串:必须满足正则表达式 ${t.pattern}`:`无效${n[t.format]??e.format}`}case`not_multiple_of`:return`无效数字:必须是 ${e.divisor} 的倍数`;case`unrecognized_keys`:return`出现未知的键(key): ${C(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} 中的键(key)无效`;case`invalid_union`:return`无效输入`;case`invalid_element`:return`${e.origin} 中包含无效值(value)`;default:return`无效输入`}}}}));function ac(){return{localeError:oc()}}var oc,sc=t((()=>{A(),oc=()=>{let e={string:{unit:`字元`,verb:`擁有`},file:{unit:`位元組`,verb:`擁有`},array:{unit:`項目`,verb:`擁有`},set:{unit:`項目`,verb:`擁有`}};function t(t){return e[t]??null}let n={regex:`輸入`,email:`郵件地址`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO 日期時間`,date:`ISO 日期`,time:`ISO 時間`,duration:`ISO 期間`,ipv4:`IPv4 位址`,ipv6:`IPv6 位址`,cidrv4:`IPv4 範圍`,cidrv6:`IPv6 範圍`,base64:`base64 編碼字串`,base64url:`base64url 編碼字串`,json_string:`JSON 字串`,e164:`E.164 數值`,jwt:`JWT`,template_literal:`輸入`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無效的輸入值:預期為 instanceof ${e.expected},但收到 ${i}`:`無效的輸入值:預期為 ${t},但收到 ${i}`}case`invalid_value`:return e.values.length===1?`無效的輸入值:預期為 ${O(e.values[0])}`:`無效的選項:預期為以下其中之一 ${C(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()} ${r.unit??`個元素`}`:`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()} ${r.unit}`:`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無效的字串:必須以 \"${t.prefix}\" 開頭`:t.format===`ends_with`?`無效的字串:必須以 \"${t.suffix}\" 結尾`:t.format===`includes`?`無效的字串:必須包含 \"${t.includes}\"`:t.format===`regex`?`無效的字串:必須符合格式 ${t.pattern}`:`無效的 ${n[t.format]??e.format}`}case`not_multiple_of`:return`無效的數字:必須為 ${e.divisor} 的倍數`;case`unrecognized_keys`:return`無法識別的鍵值${e.keys.length>1?`們`:``}:${C(e.keys,`、`)}`;case`invalid_key`:return`${e.origin} 中有無效的鍵值`;case`invalid_union`:return`無效的輸入值`;case`invalid_element`:return`${e.origin} 中有無效的值`;default:return`無效的輸入值`}}}}));function cc(){return{localeError:lc()}}var lc,uc=t((()=>{A(),lc=()=>{let e={string:{unit:`àmi`,verb:`ní`},file:{unit:`bytes`,verb:`ní`},array:{unit:`nkan`,verb:`ní`},set:{unit:`nkan`,verb:`ní`}};function t(t){return e[t]??null}let n={regex:`ẹ̀rọ ìbáwọlé`,email:`àdírẹ́sì ìmẹ́lì`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`àkókò ISO`,date:`ọjọ́ ISO`,time:`àkókò ISO`,duration:`àkókò tó pé ISO`,ipv4:`àdírẹ́sì IPv4`,ipv6:`àdírẹ́sì IPv6`,cidrv4:`àgbègbè IPv4`,cidrv6:`àgbègbè IPv6`,base64:`ọ̀rọ̀ tí a kọ́ ní base64`,base64url:`ọ̀rọ̀ base64url`,json_string:`ọ̀rọ̀ JSON`,e164:`nọ́mbà E.164`,jwt:`JWT`,template_literal:`ẹ̀rọ ìbáwọlé`},r={nan:`NaN`,number:`nọ́mbà`,array:`akopọ`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=k(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${e.expected}, àmọ̀ a rí ${i}`:`Ìbáwọlé aṣìṣe: a ní láti fi ${t}, àmọ̀ a rí ${i}`}case`invalid_value`:return e.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${O(e.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${C(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tó pọ̀ jù: a ní láti jẹ́ pé ${e.origin??`iye`} ${r.verb} ${n}${e.maximum} ${r.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${n}${e.maximum}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Kéré ju: a ní láti jẹ́ pé ${e.origin} ${r.verb} ${n}${e.minimum} ${r.unit}`:`Kéré ju: a ní láti jẹ́ ${n}${e.minimum}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú \"${t.prefix}\"`:t.format===`ends_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú \"${t.suffix}\"`:t.format===`includes`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní \"${t.includes}\"`:t.format===`regex`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${t.pattern}`:`Aṣìṣe: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${e.divisor}`;case`unrecognized_keys`:return`Bọtìnì àìmọ̀: ${C(e.keys,`, `)}`;case`invalid_key`:return`Bọtìnì aṣìṣe nínú ${e.origin}`;case`invalid_union`:return`Ìbáwọlé aṣìṣe`;case`invalid_element`:return`Iye aṣìṣe nínú ${e.origin}`;default:return`Ìbáwọlé aṣìṣe`}}}})),dc=r({ar:()=>pa,az:()=>ga,be:()=>ba,bg:()=>Ca,ca:()=>Ea,cs:()=>ka,da:()=>Ma,de:()=>Fa,el:()=>Ra,en:()=>Va,eo:()=>Wa,es:()=>qa,fa:()=>Xa,fi:()=>$a,fr:()=>no,frCA:()=>ao,he:()=>co,hr:()=>fo,hu:()=>ho,hy:()=>bo,id:()=>So,is:()=>To,it:()=>Oo,ja:()=>jo,ka:()=>Po,kh:()=>Bo,km:()=>Lo,ko:()=>Ho,lt:()=>Ko,mk:()=>Xo,ms:()=>$o,nl:()=>ns,no:()=>as,ota:()=>cs,pl:()=>ms,ps:()=>ds,pt:()=>_s,ro:()=>bs,ru:()=>ws,sl:()=>Ds,sv:()=>As,ta:()=>Ns,th:()=>Is,tr:()=>zs,ua:()=>Gs,uk:()=>Hs,ur:()=>qs,uz:()=>Xs,vi:()=>$s,yo:()=>cc,zhCN:()=>nc,zhTW:()=>ac}),fc=t((()=>{ha(),va(),Sa(),Ta(),Oa(),ja(),Pa(),La(),Ba(),Ua(),Ka(),Ya(),Qa(),to(),io(),so(),uo(),mo(),_o(),xo(),wo(),Do(),Ao(),No(),Io(),Vo(),zo(),Wo(),Yo(),Qo(),ts(),is(),ss(),us(),ps(),gs(),ys(),Ss(),Es(),ks(),Ms(),Fs(),Rs(),Vs(),Ks(),Ws(),Ys(),Qs(),tc(),ic(),sc(),uc()}));function pc(){return new _c}var mc,hc,gc,_c,vc,yc=t((()=>{hc=Symbol(`ZodOutput`),gc=Symbol(`ZodInput`),_c=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}},(mc=globalThis).__zod_globalRegistry??(mc.__zod_globalRegistry=pc()),vc=globalThis.__zod_globalRegistry}));function bc(e,t){return new e({type:`string`,...D(t)})}function xc(e,t){return new e({type:`string`,coerce:!0,...D(t)})}function Sc(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...D(t)})}function Cc(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...D(t)})}function wc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...D(t)})}function Tc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...D(t)})}function Ec(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...D(t)})}function Dc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...D(t)})}function Oc(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...D(t)})}function kc(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...D(t)})}function Ac(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...D(t)})}function jc(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...D(t)})}function Mc(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...D(t)})}function Nc(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...D(t)})}function Pc(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...D(t)})}function Fc(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...D(t)})}function Ic(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...D(t)})}function Lc(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...D(t)})}function Rc(e,t){return new e({type:`string`,format:`mac`,check:`string_format`,abort:!1,...D(t)})}function zc(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...D(t)})}function Bc(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...D(t)})}function Vc(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...D(t)})}function Hc(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...D(t)})}function Uc(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...D(t)})}function Wc(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...D(t)})}function Gc(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...D(t)})}function Kc(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...D(t)})}function qc(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...D(t)})}function Jc(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...D(t)})}function Yc(e,t){return new e({type:`number`,checks:[],...D(t)})}function Xc(e,t){return new e({type:`number`,coerce:!0,checks:[],...D(t)})}function Zc(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...D(t)})}function Qc(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float32`,...D(t)})}function $c(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float64`,...D(t)})}function el(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`int32`,...D(t)})}function tl(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`uint32`,...D(t)})}function nl(e,t){return new e({type:`boolean`,...D(t)})}function rl(e,t){return new e({type:`boolean`,coerce:!0,...D(t)})}function il(e,t){return new e({type:`bigint`,...D(t)})}function al(e,t){return new e({type:`bigint`,coerce:!0,...D(t)})}function ol(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`int64`,...D(t)})}function sl(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`uint64`,...D(t)})}function cl(e,t){return new e({type:`symbol`,...D(t)})}function ll(e,t){return new e({type:`undefined`,...D(t)})}function ul(e,t){return new e({type:`null`,...D(t)})}function dl(e){return new e({type:`any`})}function fl(e){return new e({type:`unknown`})}function pl(e,t){return new e({type:`never`,...D(t)})}function ml(e,t){return new e({type:`void`,...D(t)})}function hl(e,t){return new e({type:`date`,...D(t)})}function gl(e,t){return new e({type:`date`,coerce:!0,...D(t)})}function _l(e,t){return new e({type:`nan`,...D(t)})}function vl(e,t){return new Qn({check:`less_than`,...D(t),value:e,inclusive:!1})}function P(e,t){return new Qn({check:`less_than`,...D(t),value:e,inclusive:!0})}function yl(e,t){return new $n({check:`greater_than`,...D(t),value:e,inclusive:!1})}function bl(e,t){return new $n({check:`greater_than`,...D(t),value:e,inclusive:!0})}function xl(e){return yl(0,e)}function Sl(e){return vl(0,e)}function Cl(e){return P(0,e)}function wl(e){return bl(0,e)}function Tl(e,t){return new er({check:`multiple_of`,...D(t),value:e})}function El(e,t){return new rr({check:`max_size`,...D(t),maximum:e})}function Dl(e,t){return new ir({check:`min_size`,...D(t),minimum:e})}function Ol(e,t){return new ar({check:`size_equals`,...D(t),size:e})}function kl(e,t){return new or({check:`max_length`,...D(t),maximum:e})}function Al(e,t){return new sr({check:`min_length`,...D(t),minimum:e})}function jl(e,t){return new cr({check:`length_equals`,...D(t),length:e})}function Ml(e,t){return new ur({check:`string_format`,format:`regex`,...D(t),pattern:e})}function Nl(e){return new dr({check:`string_format`,format:`lowercase`,...D(e)})}function Pl(e){return new fr({check:`string_format`,format:`uppercase`,...D(e)})}function Fl(e,t){return new pr({check:`string_format`,format:`includes`,...D(t),includes:e})}function Il(e,t){return new mr({check:`string_format`,format:`starts_with`,...D(t),prefix:e})}function Ll(e,t){return new hr({check:`string_format`,format:`ends_with`,...D(t),suffix:e})}function Rl(e,t,n){return new gr({check:`property`,property:e,schema:t,...D(n)})}function zl(e,t){return new _r({check:`mime_type`,mime:e,...D(t)})}function Bl(e){return new vr({check:`overwrite`,tx:e})}function Vl(e){return Bl(t=>t.normalize(e))}function Hl(){return Bl(e=>e.trim())}function Ul(){return Bl(e=>e.toLowerCase())}function Wl(){return Bl(e=>e.toUpperCase())}function Gl(){return Bl(e=>ge(e))}function Kl(e,t,n){return new e({type:`array`,element:t,...D(n)})}function ql(e,t,n){return new e({type:`union`,options:t,...D(n)})}function Jl(e,t,n){return new e({type:`union`,options:t,inclusive:!1,...D(n)})}function Yl(e,t,n,r){return new e({type:`union`,options:n,discriminator:t,...D(r)})}function F(e,t,n){return new e({type:`intersection`,left:t,right:n})}function Xl(e,t,n,r){let i=n instanceof j;return new e({type:`tuple`,items:t,rest:i?n:null,...D(i?r:n)})}function I(e,t,n,r){return new e({type:`record`,keyType:t,valueType:n,...D(r)})}function L(e,t,n,r){return new e({type:`map`,keyType:t,valueType:n,...D(r)})}function Zl(e,t,n){return new e({type:`set`,valueType:t,...D(n)})}function Ql(e,t,n){return new e({type:`enum`,entries:Array.isArray(t)?Object.fromEntries(t.map(e=>[e,e])):t,...D(n)})}function $l(e,t,n){return new e({type:`enum`,entries:t,...D(n)})}function eu(e,t,n){return new e({type:`literal`,values:Array.isArray(t)?t:[t],...D(n)})}function tu(e,t){return new e({type:`file`,...D(t)})}function nu(e,t){return new e({type:`transform`,transform:t})}function ru(e,t){return new e({type:`optional`,innerType:t})}function iu(e,t){return new e({type:`nullable`,innerType:t})}function au(e,t,n){return new e({type:`default`,innerType:t,get defaultValue(){return typeof n==`function`?n():ye(n)}})}function ou(e,t,n){return new e({type:`nonoptional`,innerType:t,...D(n)})}function su(e,t){return new e({type:`success`,innerType:t})}function cu(e,t,n){return new e({type:`catch`,innerType:t,catchValue:typeof n==`function`?n:()=>n})}function lu(e,t,n){return new e({type:`pipe`,in:t,out:n})}function uu(e,t){return new e({type:`readonly`,innerType:t})}function du(e,t,n){return new e({type:`template_literal`,parts:t,...D(n)})}function fu(e,t){return new e({type:`lazy`,getter:t})}function pu(e,t){return new e({type:`promise`,innerType:t})}function mu(e,t,n){let r=D(n);return r.abort??=!0,new e({type:`custom`,check:`custom`,fn:t,...r})}function hu(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...D(n)})}function gu(e,t){let n=_u(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(ze(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(ze(r))}},e(t.value,t)),t);return n}function _u(e,t){let n=new Xn({check:`custom`,...D(t)});return n._zod.check=e,n}function vu(e){let t=new Xn({check:`describe`});return t._zod.onattach=[t=>{let n=vc.get(t)??{};vc.add(t,{...n,description:e})}],t._zod.check=()=>{},t}function yu(e){let t=new Xn({check:`meta`});return t._zod.onattach=[t=>{let n=vc.get(t)??{};vc.add(t,{...n,...e})}],t._zod.check=()=>{},t}function bu(e,t){let n=D(t),r=n.truthy??[`true`,`1`,`yes`,`on`,`y`,`enabled`],i=n.falsy??[`false`,`0`,`no`,`off`,`n`,`disabled`];n.case!==`sensitive`&&(r=r.map(e=>typeof e==`string`?e.toLowerCase():e),i=i.map(e=>typeof e==`string`?e.toLowerCase():e));let a=new Set(r),o=new Set(i),s=e.Codec??ia,c=e.Boolean??Ci,l=new s({type:`pipe`,in:new(e.String??Jr)({type:`string`,error:n.error}),out:new c({type:`boolean`,error:n.error}),transform:((e,t)=>{let r=e;return n.case!==`sensitive`&&(r=r.toLowerCase()),a.has(r)?!0:o.has(r)?!1:(t.issues.push({code:`invalid_value`,expected:`stringbool`,values:[...a,...o],input:t.value,inst:l,continue:!1}),{})}),reverseTransform:((e,t)=>e===!0?r[0]||`true`:i[0]||`false`),error:n.error});return l}function xu(e,t,n,r={}){let i=D(r),a={...D(r),check:`string_format`,type:`string`,format:t,fn:typeof n==`function`?n:e=>n.test(e),...i};return n instanceof RegExp&&(a.pattern=n),new e(a)}var Su,Cu=t((()=>{yr(),yc(),fa(),A(),Su={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6}}));function wu(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??vc,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function Tu(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,Tu(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&Ou(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function Eu(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id \"${n}\" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>\n\nSet the \\`cycles\\` parameter to \\`\"ref\"\\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function Du(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error(\"Schema is missing an `id` property\");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,\"~standard\",{value:{...t[`~standard`],jsonSchema:{input:Au(t,`input`,e.processors),output:Au(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function Ou(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return Ou(r.element,n);if(r.type===`set`)return Ou(r.valueType,n);if(r.type===`lazy`)return Ou(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type===\"default\"||r.type===`prefault`)return Ou(r.innerType,n);if(r.type===`intersection`)return Ou(r.left,n)||Ou(r.right,n);if(r.type===`record`||r.type===`map`)return Ou(r.keyType,n)||Ou(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:Ou(r.in,n)||Ou(r.out,n);if(r.type===`object`){for(let e in r.shape)if(Ou(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(Ou(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(Ou(e,n))return!0;return!!(r.rest&&Ou(r.rest,n))}return!1}var ku,Au,ju=t((()=>{yc(),ku=(e,t={})=>n=>{let r=wu({...n,processors:t});return Tu(e,r),Eu(r,e),Du(r,e)},Au=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=wu({...i??{},target:a,io:t,processors:n});return Tu(e,o),Eu(o,e),Du(o,e)}}));function Mu(e,t){if(`_idmap`in e){let n=e,r=wu({...t,processors:yd}),i={};for(let e of n._idmap.entries()){let[t,n]=e;Tu(n,r)}let a={};r.external={registry:n,uri:t?.uri,defs:i};for(let e of n._idmap.entries()){let[t,n]=e;Eu(r,n),a[t]=Du(r,n)}return Object.keys(i).length>0&&(a.__shared={[r.target===`draft-2020-12`?`$defs`:`definitions`]:i}),{schemas:a}}let n=wu({...t,processors:yd});return Tu(e,n),Eu(n,e),Du(n,e)}var Nu,Pu,Fu,Iu,Lu,Ru,zu,Bu,Vu,Hu,Uu,Wu,Gu,Ku,qu,Ju,Yu,Xu,Zu,Qu,$u,ed,td,nd,rd,id,ad,od,sd,cd,ld,ud,dd,fd,pd,md,hd,gd,_d,vd,yd,bd=t((()=>{ju(),A(),Nu={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},Pu=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=Nu[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},Fu=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;typeof s==`string`&&s.includes(`int`)?i.type=`integer`:i.type=`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},Iu=(e,t,n,r)=>{n.type=`boolean`},Lu=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`BigInt cannot be represented in JSON Schema`)},Ru=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Symbols cannot be represented in JSON Schema`)},zu=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},Bu=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Undefined cannot be represented in JSON Schema`)},Vu=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Void cannot be represented in JSON Schema`)},Hu=(e,t,n,r)=>{n.not={}},Uu=(e,t,n,r)=>{},Wu=(e,t,n,r)=>{},Gu=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Date cannot be represented in JSON Schema`)},Ku=(e,t,n,r)=>{let i=e._zod.def,a=ie(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},qu=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error(\"Literal `undefined` cannot be represented in JSON Schema\")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a},Ju=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`NaN cannot be represented in JSON Schema`)},Yu=(e,t,n,r)=>{let i=n,a=e._zod.pattern;if(!a)throw Error(`Pattern not found in template literal`);i.type=`string`,i.pattern=a.source},Xu=(e,t,n,r)=>{let i=n,a={type:`string`,format:`binary`,contentEncoding:`binary`},{minimum:o,maximum:s,mime:c}=e._zod.bag;o!==void 0&&(a.minLength=o),s!==void 0&&(a.maxLength=s),c?c.length===1?(a.contentMediaType=c[0],Object.assign(i,a)):(Object.assign(i,a),i.anyOf=c.map(e=>({contentMediaType:e}))):Object.assign(i,a)},Zu=(e,t,n,r)=>{n.type=`boolean`},Qu=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},$u=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Function types cannot be represented in JSON Schema`)},ed=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},td=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Map cannot be represented in JSON Schema`)},nd=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Set cannot be represented in JSON Schema`)},rd=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=Tu(a.element,t,{...r,path:[...r.path,`items`]})},id=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=Tu(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=Tu(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},ad=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>Tu(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},od=(e,t,n,r)=>{let i=e._zod.def,a=Tu(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=Tu(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},sd=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`array`;let o=t.target===`draft-2020-12`?`prefixItems`:`items`,s=t.target===`draft-2020-12`||t.target===`openapi-3.0`?`items`:`additionalItems`,c=a.items.map((e,n)=>Tu(e,t,{...r,path:[...r.path,o,n]})),l=a.rest?Tu(a.rest,t,{...r,path:[...r.path,s,...t.target===`openapi-3.0`?[a.items.length]:[]]}):null;t.target===`draft-2020-12`?(i.prefixItems=c,l&&(i.items=l)):t.target===`openapi-3.0`?(i.items={anyOf:c},l&&i.items.anyOf.push(l),i.minItems=c.length,l||(i.maxItems=c.length)):(i.items=c,l&&(i.additionalItems=l));let{minimum:u,maximum:d}=e._zod.bag;typeof u==`number`&&(i.minItems=u),typeof d==`number`&&(i.maxItems=d)},cd=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=Tu(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else (t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=Tu(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=Tu(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},ld=(e,t,n,r)=>{let i=e._zod.def,a=Tu(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},ud=(e,t,n,r)=>{let i=e._zod.def;Tu(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},dd=(e,t,n,r)=>{let i=e._zod.def;Tu(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},fd=(e,t,n,r)=>{let i=e._zod.def;Tu(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},pd=(e,t,n,r)=>{let i=e._zod.def;Tu(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},md=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;Tu(o,t,r);let s=t.seen.get(e);s.ref=o},hd=(e,t,n,r)=>{let i=e._zod.def;Tu(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},gd=(e,t,n,r)=>{let i=e._zod.def;Tu(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},_d=(e,t,n,r)=>{let i=e._zod.def;Tu(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},vd=(e,t,n,r)=>{let i=e._zod.innerType;Tu(i,t,r);let a=t.seen.get(e);a.ref=i},yd={string:Pu,number:Fu,boolean:Iu,bigint:Lu,symbol:Ru,null:zu,undefined:Bu,void:Vu,never:Hu,any:Uu,unknown:Wu,date:Gu,enum:Ku,literal:qu,nan:Ju,template_literal:Yu,file:Xu,success:Zu,custom:Qu,function:$u,transform:ed,map:td,set:nd,array:rd,object:id,union:ad,intersection:od,tuple:sd,record:cd,nullable:ld,nonoptional:ud,default:dd,prefault:fd,catch:pd,pipe:md,readonly:hd,promise:gd,optional:_d,lazy:vd}})),xd,Sd=t((()=>{bd(),ju(),xd=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let t=e?.target??`draft-2020-12`;t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),this.ctx=wu({processors:yd,target:t,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,t={path:[],schemaPath:[]}){return Tu(e,this.ctx,t)}emit(e,t){t&&(t.cycles&&(this.ctx.cycles=t.cycles),t.reused&&(this.ctx.reused=t.reused),t.external&&(this.ctx.external=t.external)),Eu(this.ctx,e);let{\"~standard\":n,...r}=Du(this.ctx,e);return r}}})),Cd=r({}),wd=t((()=>{})),Td=r({$ZodAny:()=>ki,$ZodArray:()=>Pi,$ZodAsyncError:()=>_,$ZodBase64:()=>gi,$ZodBase64URL:()=>_i,$ZodBigInt:()=>wi,$ZodBigIntFormat:()=>Ti,$ZodBoolean:()=>Ci,$ZodCIDRv4:()=>mi,$ZodCIDRv6:()=>hi,$ZodCUID:()=>ni,$ZodCUID2:()=>ri,$ZodCatch:()=>ta,$ZodCheck:()=>Xn,$ZodCheckBigIntFormat:()=>nr,$ZodCheckEndsWith:()=>hr,$ZodCheckGreaterThan:()=>$n,$ZodCheckIncludes:()=>pr,$ZodCheckLengthEquals:()=>cr,$ZodCheckLessThan:()=>Qn,$ZodCheckLowerCase:()=>dr,$ZodCheckMaxLength:()=>or,$ZodCheckMaxSize:()=>rr,$ZodCheckMimeType:()=>_r,$ZodCheckMinLength:()=>sr,$ZodCheckMinSize:()=>ir,$ZodCheckMultipleOf:()=>er,$ZodCheckNumberFormat:()=>tr,$ZodCheckOverwrite:()=>vr,$ZodCheckProperty:()=>gr,$ZodCheckRegex:()=>ur,$ZodCheckSizeEquals:()=>ar,$ZodCheckStartsWith:()=>mr,$ZodCheckStringFormat:()=>lr,$ZodCheckUpperCase:()=>fr,$ZodCodec:()=>ia,$ZodCustom:()=>da,$ZodCustomStringFormat:()=>bi,$ZodDate:()=>Ni,$ZodDefault:()=>Zi,$ZodDiscriminatedUnion:()=>zi,$ZodE164:()=>vi,$ZodEmail:()=>Qr,$ZodEmoji:()=>ei,$ZodEncodeError:()=>v,$ZodEnum:()=>Wi,$ZodError:()=>ct,$ZodExactOptional:()=>Yi,$ZodFile:()=>Ki,$ZodFunction:()=>ca,$ZodGUID:()=>Xr,$ZodIPv4:()=>di,$ZodIPv6:()=>fi,$ZodISODate:()=>ci,$ZodISODateTime:()=>si,$ZodISODuration:()=>ui,$ZodISOTime:()=>li,$ZodIntersection:()=>Bi,$ZodJWT:()=>yi,$ZodKSUID:()=>oi,$ZodLazy:()=>ua,$ZodLiteral:()=>Gi,$ZodMAC:()=>pi,$ZodMap:()=>Hi,$ZodNaN:()=>na,$ZodNanoID:()=>ti,$ZodNever:()=>ji,$ZodNonOptional:()=>$i,$ZodNull:()=>Oi,$ZodNullable:()=>Xi,$ZodNumber:()=>xi,$ZodNumberFormat:()=>Si,$ZodObject:()=>Fi,$ZodObjectJIT:()=>Ii,$ZodOptional:()=>Ji,$ZodPipe:()=>ra,$ZodPrefault:()=>Qi,$ZodPreprocess:()=>aa,$ZodPromise:()=>la,$ZodReadonly:()=>oa,$ZodRealError:()=>lt,$ZodRecord:()=>M,$ZodRegistry:()=>_c,$ZodSet:()=>Ui,$ZodString:()=>Jr,$ZodStringFormat:()=>Yr,$ZodSuccess:()=>ea,$ZodSymbol:()=>Ei,$ZodTemplateLiteral:()=>sa,$ZodTransform:()=>qi,$ZodTuple:()=>Vi,$ZodType:()=>j,$ZodULID:()=>ii,$ZodURL:()=>$r,$ZodUUID:()=>Zr,$ZodUndefined:()=>Di,$ZodUnion:()=>Li,$ZodUnknown:()=>Ai,$ZodVoid:()=>Mi,$ZodXID:()=>ai,$ZodXor:()=>Ri,$brand:()=>g,$constructor:()=>f,$input:()=>gc,$output:()=>hc,Doc:()=>br,JSONSchema:()=>Cd,JSONSchemaGenerator:()=>xd,NEVER:()=>h,TimePrecision:()=>Su,_any:()=>dl,_array:()=>Kl,_base64:()=>Vc,_base64url:()=>Hc,_bigint:()=>il,_boolean:()=>nl,_catch:()=>cu,_check:()=>_u,_cidrv4:()=>zc,_cidrv6:()=>Bc,_coercedBigint:()=>al,_coercedBoolean:()=>rl,_coercedDate:()=>gl,_coercedNumber:()=>Xc,_coercedString:()=>xc,_cuid:()=>jc,_cuid2:()=>Mc,_custom:()=>mu,_date:()=>hl,_decode:()=>xt,_decodeAsync:()=>Tt,_default:()=>au,_discriminatedUnion:()=>Yl,_e164:()=>Uc,_email:()=>Sc,_emoji:()=>kc,_encode:()=>yt,_encodeAsync:()=>Ct,_endsWith:()=>Ll,_enum:()=>Ql,_file:()=>tu,_float32:()=>Qc,_float64:()=>$c,_gt:()=>yl,_gte:()=>bl,_guid:()=>Cc,_includes:()=>Fl,_int:()=>Zc,_int32:()=>el,_int64:()=>ol,_intersection:()=>F,_ipv4:()=>Ic,_ipv6:()=>Lc,_isoDate:()=>Kc,_isoDateTime:()=>Gc,_isoDuration:()=>Jc,_isoTime:()=>qc,_jwt:()=>Wc,_ksuid:()=>Fc,_lazy:()=>fu,_length:()=>jl,_literal:()=>eu,_lowercase:()=>Nl,_lt:()=>vl,_lte:()=>P,_mac:()=>Rc,_map:()=>L,_max:()=>P,_maxLength:()=>kl,_maxSize:()=>El,_mime:()=>zl,_min:()=>bl,_minLength:()=>Al,_minSize:()=>Dl,_multipleOf:()=>Tl,_nan:()=>_l,_nanoid:()=>Ac,_nativeEnum:()=>$l,_negative:()=>Sl,_never:()=>pl,_nonnegative:()=>wl,_nonoptional:()=>ou,_nonpositive:()=>Cl,_normalize:()=>Vl,_null:()=>ul,_nullable:()=>iu,_number:()=>Yc,_optional:()=>ru,_overwrite:()=>Bl,_parse:()=>dt,_parseAsync:()=>pt,_pipe:()=>lu,_positive:()=>xl,_promise:()=>pu,_property:()=>Rl,_readonly:()=>uu,_record:()=>I,_refine:()=>hu,_regex:()=>Ml,_safeDecode:()=>kt,_safeDecodeAsync:()=>Nt,_safeEncode:()=>Dt,_safeEncodeAsync:()=>jt,_safeParse:()=>ht,_safeParseAsync:()=>_t,_set:()=>Zl,_size:()=>Ol,_slugify:()=>Gl,_startsWith:()=>Il,_string:()=>bc,_stringFormat:()=>xu,_stringbool:()=>bu,_success:()=>su,_superRefine:()=>gu,_symbol:()=>cl,_templateLiteral:()=>du,_toLowerCase:()=>Ul,_toUpperCase:()=>Wl,_transform:()=>nu,_trim:()=>Hl,_tuple:()=>Xl,_uint32:()=>tl,_uint64:()=>sl,_ulid:()=>Nc,_undefined:()=>ll,_union:()=>ql,_unknown:()=>fl,_uppercase:()=>Pl,_url:()=>Oc,_uuid:()=>wc,_uuidv4:()=>Tc,_uuidv6:()=>Ec,_uuidv7:()=>Dc,_void:()=>ml,_xid:()=>Pc,_xor:()=>Jl,clone:()=>Se,config:()=>p,createStandardJSONSchemaMethod:()=>Au,createToJSONSchemaMethod:()=>ku,decode:()=>St,decodeAsync:()=>Et,describe:()=>vu,encode:()=>bt,encodeAsync:()=>wt,extractDefs:()=>Eu,finalize:()=>Du,flattenError:()=>nt,formatError:()=>rt,globalConfig:()=>y,globalRegistry:()=>vc,initializeContext:()=>wu,isValidBase64:()=>wr,isValidBase64URL:()=>Tr,isValidJWT:()=>Er,locales:()=>dc,meta:()=>yu,parse:()=>ft,parseAsync:()=>mt,prettifyError:()=>ot,process:()=>Tu,regexes:()=>It,registry:()=>pc,safeDecode:()=>At,safeDecodeAsync:()=>Pt,safeEncode:()=>Ot,safeEncodeAsync:()=>Mt,safeParse:()=>gt,safeParseAsync:()=>vt,toDotPath:()=>at,toJSONSchema:()=>Mu,treeifyError:()=>it,util:()=>x,version:()=>Sr}),Ed=t((()=>{b(),Ft(),ut(),fa(),yr(),Cr(),A(),Jn(),fc(),yc(),xr(),Cu(),ju(),bd(),Sd(),wd()}));Cu(),A(),Jn(),b(),Ft(),bd(),ut(),fc(),Ed(),yc();function Dd(e){return!!e._zod}function Od(e,t){return Dd(e)?gt(e,t):e.safeParse(t)}function kd(e){if(!e)return;let t;if(t=Dd(e)?e._zod?.def?.shape:e.shape,t){if(typeof t==`function`)try{return t()}catch{return}return t}}function Ad(e){if(Dd(e)){let t=e._zod?.def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}}let t=e._def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}let n=e.value;if(n!==void 0)return n}var jd=r({endsWith:()=>Ll,gt:()=>yl,gte:()=>bl,includes:()=>Fl,length:()=>jl,lowercase:()=>Nl,lt:()=>vl,lte:()=>P,maxLength:()=>kl,maxSize:()=>El,mime:()=>zl,minLength:()=>Al,minSize:()=>Dl,multipleOf:()=>Tl,negative:()=>Sl,nonnegative:()=>wl,nonpositive:()=>Cl,normalize:()=>Vl,overwrite:()=>Bl,positive:()=>xl,property:()=>Rl,regex:()=>Ml,size:()=>Ol,slugify:()=>Gl,startsWith:()=>Il,toLowerCase:()=>Ul,toUpperCase:()=>Wl,trim:()=>Hl,uppercase:()=>Pl}),Md=t((()=>{Ed()})),Nd=r({ZodISODate:()=>Rd,ZodISODateTime:()=>Ld,ZodISODuration:()=>Bd,ZodISOTime:()=>zd,date:()=>Pd,datetime:()=>R,duration:()=>Id,time:()=>Fd});function R(e){return Gc(Ld,e)}function Pd(e){return Kc(Rd,e)}function Fd(e){return qc(zd,e)}function Id(e){return Jc(Bd,e)}var Ld,Rd,zd,Bd,Vd=t((()=>{Ed(),nh(),Ld=f(`ZodISODateTime`,(e,t)=>{si.init(e,t),J.init(e,t)}),Rd=f(`ZodISODate`,(e,t)=>{ci.init(e,t),J.init(e,t)}),zd=f(`ZodISOTime`,(e,t)=>{li.init(e,t),J.init(e,t)}),Bd=f(`ZodISODuration`,(e,t)=>{ui.init(e,t),J.init(e,t)})})),Hd,Ud,Wd,Gd=t((()=>{Ed(),A(),Hd=(e,t)=>{ct.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>rt(e,t)},flatten:{value:t=>nt(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,ae,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,ae,2)}},isEmpty:{get(){return e.issues.length===0}}})},Ud=f(`ZodError`,Hd),Wd=f(`ZodError`,Hd,{Parent:Error})})),Kd,qd,Jd,Yd,Xd,Zd,Qd,$d,ef,tf,nf,rf,af=t((()=>{Ed(),Gd(),Kd=dt(Wd),qd=pt(Wd),Jd=ht(Wd),Yd=_t(Wd),Xd=yt(Wd),Zd=xt(Wd),Qd=Ct(Wd),$d=Tt(Wd),ef=Dt(Wd),tf=kt(Wd),nf=jt(Wd),rf=Nt(Wd)})),of=r({ZodAny:()=>gm,ZodArray:()=>xm,ZodBase64:()=>rm,ZodBase64URL:()=>im,ZodBigInt:()=>dm,ZodBigIntFormat:()=>fm,ZodBoolean:()=>um,ZodCIDRv4:()=>tm,ZodCIDRv6:()=>nm,ZodCUID:()=>qp,ZodCUID2:()=>Jp,ZodCatch:()=>Hm,ZodCodec:()=>Gm,ZodCustom:()=>Qm,ZodCustomStringFormat:()=>sm,ZodDate:()=>bm,ZodDefault:()=>Rm,ZodDiscriminatedUnion:()=>Tm,ZodE164:()=>am,ZodEmail:()=>Vp,ZodEmoji:()=>Gp,ZodEnum:()=>jm,ZodExactOptional:()=>Im,ZodFile:()=>Nm,ZodFunction:()=>Zm,ZodGUID:()=>Hp,ZodIPv4:()=>Qp,ZodIPv6:()=>em,ZodIntersection:()=>Em,ZodJWT:()=>om,ZodKSUID:()=>Zp,ZodLazy:()=>Ym,ZodLiteral:()=>Mm,ZodMAC:()=>$p,ZodMap:()=>km,ZodNaN:()=>Um,ZodNanoID:()=>Kp,ZodNever:()=>vm,ZodNonOptional:()=>Bm,ZodNull:()=>hm,ZodNullable:()=>Lm,ZodNumber:()=>cm,ZodNumberFormat:()=>lm,ZodObject:()=>Sm,ZodOptional:()=>Fm,ZodPipe:()=>Wm,ZodPrefault:()=>zm,ZodPreprocess:()=>Km,ZodPromise:()=>Xm,ZodReadonly:()=>qm,ZodRecord:()=>Om,ZodSet:()=>Am,ZodString:()=>Bp,ZodStringFormat:()=>J,ZodSuccess:()=>Vm,ZodSymbol:()=>pm,ZodTemplateLiteral:()=>Jm,ZodTransform:()=>Pm,ZodTuple:()=>Dm,ZodType:()=>q,ZodULID:()=>Yp,ZodURL:()=>Wp,ZodUUID:()=>Up,ZodUndefined:()=>mm,ZodUnion:()=>Cm,ZodUnknown:()=>_m,ZodVoid:()=>ym,ZodXID:()=>Xp,ZodXor:()=>wm,_ZodString:()=>zp,_default:()=>_p,_function:()=>Ap,any:()=>Jf,array:()=>H,base64:()=>Of,base64url:()=>kf,bigint:()=>Hf,boolean:()=>Vf,catch:()=>xp,check:()=>jp,cidrv4:()=>Ef,cidrv6:()=>Df,codec:()=>wp,cuid:()=>vf,cuid2:()=>yf,custom:()=>Mp,date:()=>Zf,describe:()=>$m,discriminatedUnion:()=>np,e164:()=>Af,email:()=>cf,emoji:()=>gf,enum:()=>lp,exactOptional:()=>mp,file:()=>dp,float32:()=>Lf,float64:()=>Rf,function:()=>Ap,guid:()=>lf,hash:()=>Ff,hex:()=>Pf,hostname:()=>Nf,httpUrl:()=>hf,instanceof:()=>Fp,int:()=>If,int32:()=>zf,int64:()=>Uf,intersection:()=>rp,invertCodec:()=>Tp,ipv4:()=>Cf,ipv6:()=>Tf,json:()=>Ip,jwt:()=>jf,keyof:()=>Qf,ksuid:()=>Sf,lazy:()=>Op,literal:()=>K,looseObject:()=>ep,looseRecord:()=>op,mac:()=>wf,map:()=>sp,meta:()=>eh,nan:()=>Sp,nanoid:()=>_f,nativeEnum:()=>up,never:()=>Yf,nonoptional:()=>yp,null:()=>qf,nullable:()=>hp,nullish:()=>gp,number:()=>B,object:()=>U,optional:()=>pp,partialRecord:()=>ap,pipe:()=>Cp,prefault:()=>vp,preprocess:()=>Lp,promise:()=>kp,readonly:()=>Ep,record:()=>G,refine:()=>Np,set:()=>cp,strictObject:()=>$f,string:()=>z,stringFormat:()=>Mf,stringbool:()=>th,success:()=>bp,superRefine:()=>Pp,symbol:()=>Gf,templateLiteral:()=>Dp,transform:()=>fp,tuple:()=>ip,uint32:()=>Bf,uint64:()=>Wf,ulid:()=>bf,undefined:()=>Kf,union:()=>W,unknown:()=>V,url:()=>mf,uuid:()=>uf,uuidv4:()=>df,uuidv6:()=>ff,uuidv7:()=>pf,void:()=>Xf,xid:()=>xf,xor:()=>tp});function sf(e,t,n){let r=Object.getPrototypeOf(e),i=Rp.get(r);if(i||(i=new Set,Rp.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}function z(e){return bc(Bp,e)}function cf(e){return Sc(Vp,e)}function lf(e){return Cc(Hp,e)}function uf(e){return wc(Up,e)}function df(e){return Tc(Up,e)}function ff(e){return Ec(Up,e)}function pf(e){return Dc(Up,e)}function mf(e){return Oc(Wp,e)}function hf(e){return Oc(Wp,{protocol:yn,hostname:vn,...D(e)})}function gf(e){return kc(Gp,e)}function _f(e){return Ac(Kp,e)}function vf(e){return jc(qp,e)}function yf(e){return Mc(Jp,e)}function bf(e){return Nc(Yp,e)}function xf(e){return Pc(Xp,e)}function Sf(e){return Fc(Zp,e)}function Cf(e){return Ic(Qp,e)}function wf(e){return Rc($p,e)}function Tf(e){return Lc(em,e)}function Ef(e){return zc(tm,e)}function Df(e){return Bc(nm,e)}function Of(e){return Vc(rm,e)}function kf(e){return Hc(im,e)}function Af(e){return Uc(am,e)}function jf(e){return Wc(om,e)}function Mf(e,t,n={}){return xu(sm,e,t,n)}function Nf(e){return xu(sm,`hostname`,_n,e)}function Pf(e){return xu(sm,`hex`,Mn,e)}function Ff(e,t){let n=`${e}_${t?.enc??`hex`}`,r=It[n];if(!r)throw Error(`Unrecognized hash format: ${n}`);return xu(sm,n,r,t)}function B(e){return Yc(cm,e)}function If(e){return Zc(lm,e)}function Lf(e){return Qc(lm,e)}function Rf(e){return $c(lm,e)}function zf(e){return el(lm,e)}function Bf(e){return tl(lm,e)}function Vf(e){return nl(um,e)}function Hf(e){return il(dm,e)}function Uf(e){return ol(fm,e)}function Wf(e){return sl(fm,e)}function Gf(e){return cl(pm,e)}function Kf(e){return ll(mm,e)}function qf(e){return ul(hm,e)}function Jf(){return dl(gm)}function V(){return fl(_m)}function Yf(e){return pl(vm,e)}function Xf(e){return ml(ym,e)}function Zf(e){return hl(bm,e)}function H(e,t){return Kl(xm,e,t)}function Qf(e){let t=e._zod.def.shape;return lp(Object.keys(t))}function U(e,t){return new Sm({type:`object`,shape:e??{},...D(t)})}function $f(e,t){return new Sm({type:`object`,shape:e,catchall:Yf(),...D(t)})}function ep(e,t){return new Sm({type:`object`,shape:e,catchall:V(),...D(t)})}function W(e,t){return new Cm({type:`union`,options:e,...D(t)})}function tp(e,t){return new wm({type:`union`,options:e,inclusive:!1,...D(t)})}function np(e,t,n){return new Tm({type:`union`,options:t,discriminator:e,...D(n)})}function rp(e,t){return new Em({type:`intersection`,left:e,right:t})}function ip(e,t,n){let r=t instanceof j;return new Dm({type:`tuple`,items:e,rest:r?t:null,...D(r?n:t)})}function G(e,t,n){return!t||!t._zod?new Om({type:`record`,keyType:z(),valueType:e,...D(t)}):new Om({type:`record`,keyType:e,valueType:t,...D(n)})}function ap(e,t,n){let r=Se(e);return r._zod.values=void 0,new Om({type:`record`,keyType:r,valueType:t,...D(n)})}function op(e,t,n){return new Om({type:`record`,keyType:e,valueType:t,mode:`loose`,...D(n)})}function sp(e,t,n){return new km({type:`map`,keyType:e,valueType:t,...D(n)})}function cp(e,t){return new Am({type:`set`,valueType:e,...D(t)})}function lp(e,t){return new jm({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...D(t)})}function up(e,t){return new jm({type:`enum`,entries:e,...D(t)})}function K(e,t){return new Mm({type:`literal`,values:Array.isArray(e)?e:[e],...D(t)})}function dp(e){return tu(Nm,e)}function fp(e){return new Pm({type:`transform`,transform:e})}function pp(e){return new Fm({type:`optional`,innerType:e})}function mp(e){return new Im({type:`optional`,innerType:e})}function hp(e){return new Lm({type:`nullable`,innerType:e})}function gp(e){return pp(hp(e))}function _p(e,t){return new Rm({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():ye(t)}})}function vp(e,t){return new zm({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():ye(t)}})}function yp(e,t){return new Bm({type:`nonoptional`,innerType:e,...D(t)})}function bp(e){return new Vm({type:`success`,innerType:e})}function xp(e,t){return new Hm({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}function Sp(e){return _l(Um,e)}function Cp(e,t){return new Wm({type:`pipe`,in:e,out:t})}function wp(e,t,n){return new Gm({type:`pipe`,in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function Tp(e){let t=e._zod.def;return new Gm({type:`pipe`,in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}function Ep(e){return new qm({type:`readonly`,innerType:e})}function Dp(e,t){return new Jm({type:`template_literal`,parts:e,...D(t)})}function Op(e){return new Ym({type:`lazy`,getter:e})}function kp(e){return new Xm({type:`promise`,innerType:e})}function Ap(e){return new Zm({type:`function`,input:Array.isArray(e?.input)?ip(e?.input):e?.input??H(V()),output:e?.output??V()})}function jp(e){let t=new Xn({check:`custom`});return t._zod.check=e,t}function Mp(e,t){return mu(Qm,e??(()=>!0),t)}function Np(e,t={}){return hu(Qm,e,t)}function Pp(e,t){return gu(e,t)}function Fp(e,t={}){let n=new Qm({type:`custom`,check:`custom`,fn:t=>t instanceof e,abort:!0,...D(t)});return n._zod.bag.Class=e,n._zod.check=t=>{t.value instanceof e||t.issues.push({code:`invalid_type`,expected:e.name,input:t.value,inst:n,path:[...n._zod.def.path??[]]})},n}function Ip(e){let t=Op(()=>W([z(e),B(),Vf(),qf(),H(t),G(z(),t)]));return t}function Lp(e,t){return new Km({type:`pipe`,in:fp(e),out:t})}var Rp,q,zp,Bp,J,Vp,Hp,Up,Wp,Gp,Kp,qp,Jp,Yp,Xp,Zp,Qp,$p,em,tm,nm,rm,im,am,om,sm,cm,lm,um,dm,fm,pm,mm,hm,gm,_m,vm,ym,bm,xm,Sm,Cm,wm,Tm,Em,Dm,Om,km,Am,jm,Mm,Nm,Pm,Fm,Im,Lm,Rm,zm,Bm,Vm,Hm,Um,Wm,Gm,Km,qm,Jm,Ym,Xm,Zm,Qm,$m,eh,th,nh=t((()=>{Ed(),bd(),ju(),Md(),Vd(),af(),Rp=new WeakMap,q=f(`ZodType`,(e,t)=>(j.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:Au(e,`input`),output:Au(e,`output`)}}),e.toJSONSchema=ku(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,\"_def\",{value:t}),e.parse=(t,n)=>Kd(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Jd(e,t,n),e.parseAsync=async(t,n)=>qd(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>Yd(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>Xd(e,t,n),e.decode=(t,n)=>Zd(e,t,n),e.encodeAsync=async(t,n)=>Qd(e,t,n),e.decodeAsync=async(t,n)=>$d(e,t,n),e.safeEncode=(t,n)=>ef(e,t,n),e.safeDecode=(t,n)=>tf(e,t,n),e.safeEncodeAsync=async(t,n)=>nf(e,t,n),e.safeDecodeAsync=async(t,n)=>rf(e,t,n),sf(e,`ZodType`,{check(...e){let t=this.def;return this.clone(E(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Se(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Np(e,t))},superRefine(e,t){return this.check(Pp(e,t))},overwrite(e){return this.check(Bl(e))},optional(){return pp(this)},exactOptional(){return mp(this)},nullable(){return hp(this)},nullish(){return pp(hp(this))},nonoptional(e){return yp(this,e)},array(){return H(this)},or(e){return W([this,e])},and(e){return rp(this,e)},transform(e){return Cp(this,fp(e))},default(e){return _p(this,e)},prefault(e){return vp(this,e)},catch(e){return xp(this,e)},pipe(e){return Cp(this,e)},readonly(){return Ep(this)},describe(e){let t=this.clone();return vc.add(t,{description:e}),t},meta(...e){if(e.length===0)return vc.get(this);let t=this.clone();return vc.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,\"description\",{get(){return vc.get(e)?.description},configurable:!0}),e)),zp=f(`_ZodString`,(e,t)=>{Jr.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Pu(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,sf(e,`_ZodString`,{regex(...e){return this.check(Ml(...e))},includes(...e){return this.check(Fl(...e))},startsWith(...e){return this.check(Il(...e))},endsWith(...e){return this.check(Ll(...e))},min(...e){return this.check(Al(...e))},max(...e){return this.check(kl(...e))},length(...e){return this.check(jl(...e))},nonempty(...e){return this.check(Al(1,...e))},lowercase(e){return this.check(Nl(e))},uppercase(e){return this.check(Pl(e))},trim(){return this.check(Hl())},normalize(...e){return this.check(Vl(...e))},toLowerCase(){return this.check(Ul())},toUpperCase(){return this.check(Wl())},slugify(){return this.check(Gl())}})}),Bp=f(`ZodString`,(e,t)=>{Jr.init(e,t),zp.init(e,t),e.email=t=>e.check(Sc(Vp,t)),e.url=t=>e.check(Oc(Wp,t)),e.jwt=t=>e.check(Wc(om,t)),e.emoji=t=>e.check(kc(Gp,t)),e.guid=t=>e.check(Cc(Hp,t)),e.uuid=t=>e.check(wc(Up,t)),e.uuidv4=t=>e.check(Tc(Up,t)),e.uuidv6=t=>e.check(Ec(Up,t)),e.uuidv7=t=>e.check(Dc(Up,t)),e.nanoid=t=>e.check(Ac(Kp,t)),e.guid=t=>e.check(Cc(Hp,t)),e.cuid=t=>e.check(jc(qp,t)),e.cuid2=t=>e.check(Mc(Jp,t)),e.ulid=t=>e.check(Nc(Yp,t)),e.base64=t=>e.check(Vc(rm,t)),e.base64url=t=>e.check(Hc(im,t)),e.xid=t=>e.check(Pc(Xp,t)),e.ksuid=t=>e.check(Fc(Zp,t)),e.ipv4=t=>e.check(Ic(Qp,t)),e.ipv6=t=>e.check(Lc(em,t)),e.cidrv4=t=>e.check(zc(tm,t)),e.cidrv6=t=>e.check(Bc(nm,t)),e.e164=t=>e.check(Uc(am,t)),e.datetime=t=>e.check(R(t)),e.date=t=>e.check(Pd(t)),e.time=t=>e.check(Fd(t)),e.duration=t=>e.check(Id(t))}),J=f(`ZodStringFormat`,(e,t)=>{Yr.init(e,t),zp.init(e,t)}),Vp=f(`ZodEmail`,(e,t)=>{Qr.init(e,t),J.init(e,t)}),Hp=f(`ZodGUID`,(e,t)=>{Xr.init(e,t),J.init(e,t)}),Up=f(`ZodUUID`,(e,t)=>{Zr.init(e,t),J.init(e,t)}),Wp=f(`ZodURL`,(e,t)=>{$r.init(e,t),J.init(e,t)}),Gp=f(`ZodEmoji`,(e,t)=>{ei.init(e,t),J.init(e,t)}),Kp=f(`ZodNanoID`,(e,t)=>{ti.init(e,t),J.init(e,t)}),qp=f(`ZodCUID`,(e,t)=>{ni.init(e,t),J.init(e,t)}),Jp=f(`ZodCUID2`,(e,t)=>{ri.init(e,t),J.init(e,t)}),Yp=f(`ZodULID`,(e,t)=>{ii.init(e,t),J.init(e,t)}),Xp=f(`ZodXID`,(e,t)=>{ai.init(e,t),J.init(e,t)}),Zp=f(`ZodKSUID`,(e,t)=>{oi.init(e,t),J.init(e,t)}),Qp=f(`ZodIPv4`,(e,t)=>{di.init(e,t),J.init(e,t)}),$p=f(`ZodMAC`,(e,t)=>{pi.init(e,t),J.init(e,t)}),em=f(`ZodIPv6`,(e,t)=>{fi.init(e,t),J.init(e,t)}),tm=f(`ZodCIDRv4`,(e,t)=>{mi.init(e,t),J.init(e,t)}),nm=f(`ZodCIDRv6`,(e,t)=>{hi.init(e,t),J.init(e,t)}),rm=f(`ZodBase64`,(e,t)=>{gi.init(e,t),J.init(e,t)}),im=f(`ZodBase64URL`,(e,t)=>{_i.init(e,t),J.init(e,t)}),am=f(`ZodE164`,(e,t)=>{vi.init(e,t),J.init(e,t)}),om=f(`ZodJWT`,(e,t)=>{yi.init(e,t),J.init(e,t)}),sm=f(`ZodCustomStringFormat`,(e,t)=>{bi.init(e,t),J.init(e,t)}),cm=f(`ZodNumber`,(e,t)=>{xi.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Fu(e,t,n,r),sf(e,`ZodNumber`,{gt(e,t){return this.check(yl(e,t))},gte(e,t){return this.check(bl(e,t))},min(e,t){return this.check(bl(e,t))},lt(e,t){return this.check(vl(e,t))},lte(e,t){return this.check(P(e,t))},max(e,t){return this.check(P(e,t))},int(e){return this.check(If(e))},safe(e){return this.check(If(e))},positive(e){return this.check(yl(0,e))},nonnegative(e){return this.check(bl(0,e))},negative(e){return this.check(vl(0,e))},nonpositive(e){return this.check(P(0,e))},multipleOf(e,t){return this.check(Tl(e,t))},step(e,t){return this.check(Tl(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null}),lm=f(`ZodNumberFormat`,(e,t)=>{Si.init(e,t),cm.init(e,t)}),um=f(`ZodBoolean`,(e,t)=>{Ci.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Iu(e,t,n,r)}),dm=f(`ZodBigInt`,(e,t)=>{wi.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Lu(e,t,n,r),e.gte=(t,n)=>e.check(bl(t,n)),e.min=(t,n)=>e.check(bl(t,n)),e.gt=(t,n)=>e.check(yl(t,n)),e.gte=(t,n)=>e.check(bl(t,n)),e.min=(t,n)=>e.check(bl(t,n)),e.lt=(t,n)=>e.check(vl(t,n)),e.lte=(t,n)=>e.check(P(t,n)),e.max=(t,n)=>e.check(P(t,n)),e.positive=t=>e.check(yl(BigInt(0),t)),e.negative=t=>e.check(vl(BigInt(0),t)),e.nonpositive=t=>e.check(P(BigInt(0),t)),e.nonnegative=t=>e.check(bl(BigInt(0),t)),e.multipleOf=(t,n)=>e.check(Tl(t,n));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null}),fm=f(`ZodBigIntFormat`,(e,t)=>{Ti.init(e,t),dm.init(e,t)}),pm=f(`ZodSymbol`,(e,t)=>{Ei.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ru(e,t,n,r)}),mm=f(`ZodUndefined`,(e,t)=>{Di.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Bu(e,t,n,r)}),hm=f(`ZodNull`,(e,t)=>{Oi.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zu(e,t,n,r)}),gm=f(`ZodAny`,(e,t)=>{ki.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Uu(e,t,n,r)}),_m=f(`ZodUnknown`,(e,t)=>{Ai.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Wu(e,t,n,r)}),vm=f(`ZodNever`,(e,t)=>{ji.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Hu(e,t,n,r)}),ym=f(`ZodVoid`,(e,t)=>{Mi.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vu(e,t,n,r)}),bm=f(`ZodDate`,(e,t)=>{Ni.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Gu(e,t,n,r),e.min=(t,n)=>e.check(bl(t,n)),e.max=(t,n)=>e.check(P(t,n));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null}),xm=f(`ZodArray`,(e,t)=>{Pi.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>rd(e,t,n,r),e.element=t.element,sf(e,`ZodArray`,{min(e,t){return this.check(Al(e,t))},nonempty(e){return this.check(Al(1,e))},max(e,t){return this.check(kl(e,t))},length(e,t){return this.check(jl(e,t))},unwrap(){return this.element}})}),Sm=f(`ZodObject`,(e,t)=>{Ii.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>id(e,t,n,r),w(e,`shape`,()=>t.shape),sf(e,`ZodObject`,{keyof(){return lp(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:V()})},loose(){return this.clone({...this._zod.def,catchall:V()})},strict(){return this.clone({...this._zod.def,catchall:Yf()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return De(this,e)},safeExtend(e){return Oe(this,e)},merge(e){return ke(this,e)},pick(e){return Te(this,e)},omit(e){return Ee(this,e)},partial(...e){return Ae(Fm,this,e[0])},required(...e){return je(Bm,this,e[0])}})}),Cm=f(`ZodUnion`,(e,t)=>{Li.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ad(e,t,n,r),e.options=t.options}),wm=f(`ZodXor`,(e,t)=>{Cm.init(e,t),Ri.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ad(e,t,n,r),e.options=t.options}),Tm=f(`ZodDiscriminatedUnion`,(e,t)=>{Cm.init(e,t),zi.init(e,t)}),Em=f(`ZodIntersection`,(e,t)=>{Bi.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>od(e,t,n,r)}),Dm=f(`ZodTuple`,(e,t)=>{Vi.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sd(e,t,n,r),e.rest=t=>e.clone({...e._zod.def,rest:t})}),Om=f(`ZodRecord`,(e,t)=>{M.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>cd(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType}),km=f(`ZodMap`,(e,t)=>{Hi.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>td(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(Dl(...t)),e.nonempty=t=>e.check(Dl(1,t)),e.max=(...t)=>e.check(El(...t)),e.size=(...t)=>e.check(Ol(...t))}),Am=f(`ZodSet`,(e,t)=>{Ui.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nd(e,t,n,r),e.min=(...t)=>e.check(Dl(...t)),e.nonempty=t=>e.check(Dl(1,t)),e.max=(...t)=>e.check(El(...t)),e.size=(...t)=>e.check(Ol(...t))}),jm=f(`ZodEnum`,(e,t)=>{Wi.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ku(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new jm({...t,checks:[],...D(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new jm({...t,checks:[],...D(r),entries:i})}}),Mm=f(`ZodLiteral`,(e,t)=>{Gi.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qu(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,\"value\",{get(){if(t.values.length>1)throw Error(\"This schema contains multiple valid literal values. Use `.values` instead.\");return t.values[0]}})}),Nm=f(`ZodFile`,(e,t)=>{Ki.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Xu(e,t,n,r),e.min=(t,n)=>e.check(Dl(t,n)),e.max=(t,n)=>e.check(El(t,n)),e.mime=(t,n)=>e.check(zl(Array.isArray(t)?t:[t],n))}),Pm=f(`ZodTransform`,(e,t)=>{qi.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ed(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new v(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(ze(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(ze(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}}),Fm=f(`ZodOptional`,(e,t)=>{Ji.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_d(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Im=f(`ZodExactOptional`,(e,t)=>{Yi.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_d(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Lm=f(`ZodNullable`,(e,t)=>{Xi.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ld(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Rm=f(`ZodDefault`,(e,t)=>{Zi.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>dd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),zm=f(`ZodPrefault`,(e,t)=>{Qi.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Bm=f(`ZodNonOptional`,(e,t)=>{$i.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ud(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Vm=f(`ZodSuccess`,(e,t)=>{ea.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Zu(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Hm=f(`ZodCatch`,(e,t)=>{ta.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>pd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),Um=f(`ZodNaN`,(e,t)=>{na.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ju(e,t,n,r)}),Wm=f(`ZodPipe`,(e,t)=>{ra.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>md(e,t,n,r),e.in=t.in,e.out=t.out}),Gm=f(`ZodCodec`,(e,t)=>{Wm.init(e,t),ia.init(e,t)}),Km=f(`ZodPreprocess`,(e,t)=>{Wm.init(e,t),aa.init(e,t)}),qm=f(`ZodReadonly`,(e,t)=>{oa.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>hd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Jm=f(`ZodTemplateLiteral`,(e,t)=>{sa.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Yu(e,t,n,r)}),Ym=f(`ZodLazy`,(e,t)=>{ua.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>vd(e,t,n,r),e.unwrap=()=>e._zod.def.getter()}),Xm=f(`ZodPromise`,(e,t)=>{la.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>gd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Zm=f(`ZodFunction`,(e,t)=>{ca.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$u(e,t,n,r)}),Qm=f(`ZodCustom`,(e,t)=>{da.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Qu(e,t,n,r)}),$m=vu,eh=yu,th=(...e)=>bu({Codec:Gm,Boolean:um,String:Bp},...e)}));function rh(e){p({customError:e})}function ih(){return p().customError}var ah,oh,sh=t((()=>{Ed(),ah={invalid_type:`invalid_type`,too_big:`too_big`,too_small:`too_small`,invalid_format:`invalid_format`,not_multiple_of:`not_multiple_of`,unrecognized_keys:`unrecognized_keys`,invalid_union:`invalid_union`,invalid_key:`invalid_key`,invalid_element:`invalid_element`,invalid_value:`invalid_value`,custom:`custom`},oh||={}}));function ch(e,t){let n=e.$schema;return n===`https://json-schema.org/draft/2020-12/schema`?`draft-2020-12`:n===`http://json-schema.org/draft-07/schema#`?`draft-7`:n===`http://json-schema.org/draft-04/schema#`?`draft-4`:t??`draft-2020-12`}function lh(e,t){if(!e.startsWith(`#`))throw Error(`External $ref is not supported, only local refs (#/...) are allowed`);let n=e.slice(1).split(`/`).filter(Boolean);if(n.length===0)return t.rootSchema;let r=t.version===`draft-2020-12`?`$defs`:`definitions`;if(n[0]===r){let r=n[1];if(!r||!t.defs[r])throw Error(`Reference not found: ${e}`);return t.defs[r]}throw Error(`Reference not found: ${e}`)}function uh(e,t){if(e.not!==void 0){if(typeof e.not==`object`&&Object.keys(e.not).length===0)return Y.never();throw Error(`not is not supported in Zod (except { not: {} } for never)`)}if(e.unevaluatedItems!==void 0)throw Error(`unevaluatedItems is not supported`);if(e.unevaluatedProperties!==void 0)throw Error(`unevaluatedProperties is not supported`);if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw Error(`Conditional schemas (if/then/else) are not supported`);if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw Error(`dependentSchemas and dependentRequired are not supported`);if(e.$ref){let n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return Y.lazy(()=>{if(!t.refs.has(n))throw Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let r=dh(lh(n,t),t);return t.refs.set(n,r),t.processing.delete(n),r}if(e.enum!==void 0){let n=e.enum;if(t.version===`openapi-3.0`&&e.nullable===!0&&n.length===1&&n[0]===null)return Y.null();if(n.length===0)return Y.never();if(n.length===1)return Y.literal(n[0]);if(n.every(e=>typeof e==`string`))return Y.enum(n);let r=n.map(e=>Y.literal(e));return r.length<2?r[0]:Y.union([r[0],r[1],...r.slice(2)])}if(e.const!==void 0)return Y.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(n=>uh({...e,type:n},t));return r.length===0?Y.never():r.length===1?r[0]:Y.union(r)}if(!n)return Y.any();let r;switch(n){case`string`:{let t=Y.string();if(e.format){let n=e.format;n===`email`?t=t.check(Y.email()):n===`uri`||n===`uri-reference`?t=t.check(Y.url()):n===`uuid`||n===`guid`?t=t.check(Y.uuid()):n===`date-time`?t=t.check(Y.iso.datetime()):n===`date`?t=t.check(Y.iso.date()):n===`time`?t=t.check(Y.iso.time()):n===`duration`?t=t.check(Y.iso.duration()):n===`ipv4`?t=t.check(Y.ipv4()):n===`ipv6`?t=t.check(Y.ipv6()):n===`mac`?t=t.check(Y.mac()):n===`cidr`?t=t.check(Y.cidrv4()):n===`cidr-v6`?t=t.check(Y.cidrv6()):n===`base64`?t=t.check(Y.base64()):n===`base64url`?t=t.check(Y.base64url()):n===`e164`?t=t.check(Y.e164()):n===`jwt`?t=t.check(Y.jwt()):n===`emoji`?t=t.check(Y.emoji()):n===`nanoid`?t=t.check(Y.nanoid()):n===`cuid`?t=t.check(Y.cuid()):n===`cuid2`?t=t.check(Y.cuid2()):n===`ulid`?t=t.check(Y.ulid()):n===`xid`?t=t.check(Y.xid()):n===`ksuid`&&(t=t.check(Y.ksuid()))}typeof e.minLength==`number`&&(t=t.min(e.minLength)),typeof e.maxLength==`number`&&(t=t.max(e.maxLength)),e.pattern&&(t=t.regex(new RegExp(e.pattern))),r=t;break}case`number`:case`integer`:{let t=n===`integer`?Y.number().int():Y.number();typeof e.minimum==`number`&&(t=t.min(e.minimum)),typeof e.maximum==`number`&&(t=t.max(e.maximum)),typeof e.exclusiveMinimum==`number`?t=t.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum==`number`&&(t=t.gt(e.minimum)),typeof e.exclusiveMaximum==`number`?t=t.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum==`number`&&(t=t.lt(e.maximum)),typeof e.multipleOf==`number`&&(t=t.multipleOf(e.multipleOf)),r=t;break}case`boolean`:r=Y.boolean();break;case`null`:r=Y.null();break;case`object`:{let n={},i=e.properties||{},a=new Set(e.required||[]);for(let[e,r]of Object.entries(i)){let i=dh(r,t);n[e]=a.has(e)?i:i.optional()}if(e.propertyNames){let i=dh(e.propertyNames,t),a=e.additionalProperties&&typeof e.additionalProperties==`object`?dh(e.additionalProperties,t):Y.any();if(Object.keys(n).length===0){r=Y.record(i,a);break}let o=Y.object(n).passthrough(),s=Y.looseRecord(i,a);r=Y.intersection(o,s);break}if(e.patternProperties){let i=e.patternProperties,a=Object.keys(i),o=[];for(let e of a){let n=dh(i[e],t),r=Y.string().regex(new RegExp(e));o.push(Y.looseRecord(r,n))}let s=[];if(Object.keys(n).length>0&&s.push(Y.object(n).passthrough()),s.push(...o),s.length===0)r=Y.object({}).passthrough();else if(s.length===1)r=s[0];else{let e=Y.intersection(s[0],s[1]);for(let t=2;t<s.length;t++)e=Y.intersection(e,s[t]);r=e}break}let o=Y.object(n);r=e.additionalProperties===!1?o.strict():typeof e.additionalProperties==`object`?o.catchall(dh(e.additionalProperties,t)):o.passthrough();break}case`array`:{let n=e.prefixItems,i=e.items;if(n&&Array.isArray(n)){let a=n.map(e=>dh(e,t)),o=i&&typeof i==`object`&&!Array.isArray(i)?dh(i,t):void 0;r=o?Y.tuple(a).rest(o):Y.tuple(a),typeof e.minItems==`number`&&(r=r.check(Y.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check(Y.maxLength(e.maxItems)))}else if(Array.isArray(i)){let n=i.map(e=>dh(e,t)),a=e.additionalItems&&typeof e.additionalItems==`object`?dh(e.additionalItems,t):void 0;r=a?Y.tuple(n).rest(a):Y.tuple(n),typeof e.minItems==`number`&&(r=r.check(Y.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check(Y.maxLength(e.maxItems)))}else if(i!==void 0){let n=dh(i,t),a=Y.array(n);typeof e.minItems==`number`&&(a=a.min(e.minItems)),typeof e.maxItems==`number`&&(a=a.max(e.maxItems)),r=a}else r=Y.array(Y.any());break}default:throw Error(`Unsupported type: ${n}`)}return r}function dh(e,t){if(typeof e==`boolean`)return e?Y.any():Y.never();let n=uh(e,t),r=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let i=e.anyOf.map(e=>dh(e,t)),a=Y.union(i);n=r?Y.intersection(n,a):a}if(e.oneOf&&Array.isArray(e.oneOf)){let i=e.oneOf.map(e=>dh(e,t)),a=Y.xor(i);n=r?Y.intersection(n,a):a}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=r?n:Y.any();else{let i=r?n:dh(e.allOf[0],t),a=+!r;for(let n=a;n<e.allOf.length;n++)i=Y.intersection(i,dh(e.allOf[n],t));n=i}e.nullable===!0&&t.version===`openapi-3.0`&&(n=Y.nullable(n)),e.readOnly===!0&&(n=Y.readonly(n)),e.default!==void 0&&(n=n.default(e.default));let i={};for(let t of[`$id`,`id`,`$comment`,`$anchor`,`$vocabulary`,`$dynamicRef`,`$dynamicAnchor`])t in e&&(i[t]=e[t]);for(let t of[`contentEncoding`,`contentMediaType`,`contentSchema`])t in e&&(i[t]=e[t]);for(let t of Object.keys(e))ph.has(t)||(i[t]=e[t]);return Object.keys(i).length>0&&t.registry.add(n,i),e.description&&(n=n.describe(e.description)),n}function fh(e,t){if(typeof e==`boolean`)return e?Y.any():Y.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw Error(`fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas`)}let r={version:ch(n,t?.defaultTarget),defs:n.$defs||n.definitions||{},refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??vc};return dh(n,r)}var Y,ph,mh=t((()=>{yc(),Md(),Vd(),nh(),Y={...of,...jd,iso:Nd},ph=new Set(`$schema.$ref.$defs.definitions.$id.id.$comment.$anchor.$vocabulary.$dynamicRef.$dynamicAnchor.type.enum.const.anyOf.oneOf.allOf.not.properties.required.additionalProperties.patternProperties.propertyNames.minProperties.maxProperties.items.prefixItems.additionalItems.minItems.maxItems.uniqueItems.contains.minContains.maxContains.minLength.maxLength.pattern.format.minimum.maximum.exclusiveMinimum.exclusiveMaximum.multipleOf.description.default.contentEncoding.contentMediaType.contentSchema.unevaluatedItems.unevaluatedProperties.if.then.else.dependentSchemas.dependentRequired.nullable.readOnly`.split(`.`))})),hh=r({bigint:()=>yh,boolean:()=>vh,date:()=>bh,number:()=>_h,string:()=>gh});function gh(e){return xc(Bp,e)}function _h(e){return Xc(cm,e)}function vh(e){return rl(um,e)}function yh(e){return al(dm,e)}function bh(e){return gl(bm,e)}var xh=t((()=>{Ed(),nh()})),Sh=r({$brand:()=>g,$input:()=>gc,$output:()=>hc,NEVER:()=>h,TimePrecision:()=>Su,ZodAny:()=>gm,ZodArray:()=>xm,ZodBase64:()=>rm,ZodBase64URL:()=>im,ZodBigInt:()=>dm,ZodBigIntFormat:()=>fm,ZodBoolean:()=>um,ZodCIDRv4:()=>tm,ZodCIDRv6:()=>nm,ZodCUID:()=>qp,ZodCUID2:()=>Jp,ZodCatch:()=>Hm,ZodCodec:()=>Gm,ZodCustom:()=>Qm,ZodCustomStringFormat:()=>sm,ZodDate:()=>bm,ZodDefault:()=>Rm,ZodDiscriminatedUnion:()=>Tm,ZodE164:()=>am,ZodEmail:()=>Vp,ZodEmoji:()=>Gp,ZodEnum:()=>jm,ZodError:()=>Ud,ZodExactOptional:()=>Im,ZodFile:()=>Nm,ZodFirstPartyTypeKind:()=>oh,ZodFunction:()=>Zm,ZodGUID:()=>Hp,ZodIPv4:()=>Qp,ZodIPv6:()=>em,ZodISODate:()=>Rd,ZodISODateTime:()=>Ld,ZodISODuration:()=>Bd,ZodISOTime:()=>zd,ZodIntersection:()=>Em,ZodIssueCode:()=>ah,ZodJWT:()=>om,ZodKSUID:()=>Zp,ZodLazy:()=>Ym,ZodLiteral:()=>Mm,ZodMAC:()=>$p,ZodMap:()=>km,ZodNaN:()=>Um,ZodNanoID:()=>Kp,ZodNever:()=>vm,ZodNonOptional:()=>Bm,ZodNull:()=>hm,ZodNullable:()=>Lm,ZodNumber:()=>cm,ZodNumberFormat:()=>lm,ZodObject:()=>Sm,ZodOptional:()=>Fm,ZodPipe:()=>Wm,ZodPrefault:()=>zm,ZodPreprocess:()=>Km,ZodPromise:()=>Xm,ZodReadonly:()=>qm,ZodRealError:()=>Wd,ZodRecord:()=>Om,ZodSet:()=>Am,ZodString:()=>Bp,ZodStringFormat:()=>J,ZodSuccess:()=>Vm,ZodSymbol:()=>pm,ZodTemplateLiteral:()=>Jm,ZodTransform:()=>Pm,ZodTuple:()=>Dm,ZodType:()=>q,ZodULID:()=>Yp,ZodURL:()=>Wp,ZodUUID:()=>Up,ZodUndefined:()=>mm,ZodUnion:()=>Cm,ZodUnknown:()=>_m,ZodVoid:()=>ym,ZodXID:()=>Xp,ZodXor:()=>wm,_ZodString:()=>zp,_default:()=>_p,_function:()=>Ap,any:()=>Jf,array:()=>H,base64:()=>Of,base64url:()=>kf,bigint:()=>Hf,boolean:()=>Vf,catch:()=>xp,check:()=>jp,cidrv4:()=>Ef,cidrv6:()=>Df,clone:()=>Se,codec:()=>wp,coerce:()=>hh,config:()=>p,core:()=>Td,cuid:()=>vf,cuid2:()=>yf,custom:()=>Mp,date:()=>Zf,decode:()=>Zd,decodeAsync:()=>$d,describe:()=>$m,discriminatedUnion:()=>np,e164:()=>Af,email:()=>cf,emoji:()=>gf,encode:()=>Xd,encodeAsync:()=>Qd,endsWith:()=>Ll,enum:()=>lp,exactOptional:()=>mp,file:()=>dp,flattenError:()=>nt,float32:()=>Lf,float64:()=>Rf,formatError:()=>rt,fromJSONSchema:()=>fh,function:()=>Ap,getErrorMap:()=>ih,globalRegistry:()=>vc,gt:()=>yl,gte:()=>bl,guid:()=>lf,hash:()=>Ff,hex:()=>Pf,hostname:()=>Nf,httpUrl:()=>hf,includes:()=>Fl,instanceof:()=>Fp,int:()=>If,int32:()=>zf,int64:()=>Uf,intersection:()=>rp,invertCodec:()=>Tp,ipv4:()=>Cf,ipv6:()=>Tf,iso:()=>Nd,json:()=>Ip,jwt:()=>jf,keyof:()=>Qf,ksuid:()=>Sf,lazy:()=>Op,length:()=>jl,literal:()=>K,locales:()=>dc,looseObject:()=>ep,looseRecord:()=>op,lowercase:()=>Nl,lt:()=>vl,lte:()=>P,mac:()=>wf,map:()=>sp,maxLength:()=>kl,maxSize:()=>El,meta:()=>eh,mime:()=>zl,minLength:()=>Al,minSize:()=>Dl,multipleOf:()=>Tl,nan:()=>Sp,nanoid:()=>_f,nativeEnum:()=>up,negative:()=>Sl,never:()=>Yf,nonnegative:()=>wl,nonoptional:()=>yp,nonpositive:()=>Cl,normalize:()=>Vl,null:()=>qf,nullable:()=>hp,nullish:()=>gp,number:()=>B,object:()=>U,optional:()=>pp,overwrite:()=>Bl,parse:()=>Kd,parseAsync:()=>qd,partialRecord:()=>ap,pipe:()=>Cp,positive:()=>xl,prefault:()=>vp,preprocess:()=>Lp,prettifyError:()=>ot,promise:()=>kp,property:()=>Rl,readonly:()=>Ep,record:()=>G,refine:()=>Np,regex:()=>Ml,regexes:()=>It,registry:()=>pc,safeDecode:()=>tf,safeDecodeAsync:()=>rf,safeEncode:()=>ef,safeEncodeAsync:()=>nf,safeParse:()=>Jd,safeParseAsync:()=>Yd,set:()=>cp,setErrorMap:()=>rh,size:()=>Ol,slugify:()=>Gl,startsWith:()=>Il,strictObject:()=>$f,string:()=>z,stringFormat:()=>Mf,stringbool:()=>th,success:()=>bp,superRefine:()=>Pp,symbol:()=>Gf,templateLiteral:()=>Dp,toJSONSchema:()=>Mu,toLowerCase:()=>Ul,toUpperCase:()=>Wl,transform:()=>fp,treeifyError:()=>it,trim:()=>Hl,tuple:()=>ip,uint32:()=>Bf,uint64:()=>Wf,ulid:()=>bf,undefined:()=>Kf,union:()=>W,unknown:()=>V,uppercase:()=>Pl,url:()=>mf,util:()=>x,uuid:()=>uf,uuidv4:()=>df,uuidv6:()=>ff,uuidv7:()=>pf,void:()=>Xf,xid:()=>xf,xor:()=>tp}),Ch=t((()=>{Ed(),nh(),Md(),Gd(),af(),sh(),Ua(),bd(),mh(),fc(),Vd(),xh(),p(Va())})),wh,Th=t((()=>{Ch(),Ch(),wh=Sh})),Eh=r({$brand:()=>g,$input:()=>gc,$output:()=>hc,NEVER:()=>h,TimePrecision:()=>Su,ZodAny:()=>gm,ZodArray:()=>xm,ZodBase64:()=>rm,ZodBase64URL:()=>im,ZodBigInt:()=>dm,ZodBigIntFormat:()=>fm,ZodBoolean:()=>um,ZodCIDRv4:()=>tm,ZodCIDRv6:()=>nm,ZodCUID:()=>qp,ZodCUID2:()=>Jp,ZodCatch:()=>Hm,ZodCodec:()=>Gm,ZodCustom:()=>Qm,ZodCustomStringFormat:()=>sm,ZodDate:()=>bm,ZodDefault:()=>Rm,ZodDiscriminatedUnion:()=>Tm,ZodE164:()=>am,ZodEmail:()=>Vp,ZodEmoji:()=>Gp,ZodEnum:()=>jm,ZodError:()=>Ud,ZodExactOptional:()=>Im,ZodFile:()=>Nm,ZodFirstPartyTypeKind:()=>oh,ZodFunction:()=>Zm,ZodGUID:()=>Hp,ZodIPv4:()=>Qp,ZodIPv6:()=>em,ZodISODate:()=>Rd,ZodISODateTime:()=>Ld,ZodISODuration:()=>Bd,ZodISOTime:()=>zd,ZodIntersection:()=>Em,ZodIssueCode:()=>ah,ZodJWT:()=>om,ZodKSUID:()=>Zp,ZodLazy:()=>Ym,ZodLiteral:()=>Mm,ZodMAC:()=>$p,ZodMap:()=>km,ZodNaN:()=>Um,ZodNanoID:()=>Kp,ZodNever:()=>vm,ZodNonOptional:()=>Bm,ZodNull:()=>hm,ZodNullable:()=>Lm,ZodNumber:()=>cm,ZodNumberFormat:()=>lm,ZodObject:()=>Sm,ZodOptional:()=>Fm,ZodPipe:()=>Wm,ZodPrefault:()=>zm,ZodPreprocess:()=>Km,ZodPromise:()=>Xm,ZodReadonly:()=>qm,ZodRealError:()=>Wd,ZodRecord:()=>Om,ZodSet:()=>Am,ZodString:()=>Bp,ZodStringFormat:()=>J,ZodSuccess:()=>Vm,ZodSymbol:()=>pm,ZodTemplateLiteral:()=>Jm,ZodTransform:()=>Pm,ZodTuple:()=>Dm,ZodType:()=>q,ZodULID:()=>Yp,ZodURL:()=>Wp,ZodUUID:()=>Up,ZodUndefined:()=>mm,ZodUnion:()=>Cm,ZodUnknown:()=>_m,ZodVoid:()=>ym,ZodXID:()=>Xp,ZodXor:()=>wm,_ZodString:()=>zp,_default:()=>_p,_function:()=>Ap,any:()=>Jf,array:()=>H,base64:()=>Of,base64url:()=>kf,bigint:()=>Hf,boolean:()=>Vf,catch:()=>xp,check:()=>jp,cidrv4:()=>Ef,cidrv6:()=>Df,clone:()=>Se,codec:()=>wp,coerce:()=>hh,config:()=>p,core:()=>Td,cuid:()=>vf,cuid2:()=>yf,custom:()=>Mp,date:()=>Zf,decode:()=>Zd,decodeAsync:()=>$d,default:()=>Dh,describe:()=>$m,discriminatedUnion:()=>np,e164:()=>Af,email:()=>cf,emoji:()=>gf,encode:()=>Xd,encodeAsync:()=>Qd,endsWith:()=>Ll,enum:()=>lp,exactOptional:()=>mp,file:()=>dp,flattenError:()=>nt,float32:()=>Lf,float64:()=>Rf,formatError:()=>rt,fromJSONSchema:()=>fh,function:()=>Ap,getErrorMap:()=>ih,globalRegistry:()=>vc,gt:()=>yl,gte:()=>bl,guid:()=>lf,hash:()=>Ff,hex:()=>Pf,hostname:()=>Nf,httpUrl:()=>hf,includes:()=>Fl,instanceof:()=>Fp,int:()=>If,int32:()=>zf,int64:()=>Uf,intersection:()=>rp,invertCodec:()=>Tp,ipv4:()=>Cf,ipv6:()=>Tf,iso:()=>Nd,json:()=>Ip,jwt:()=>jf,keyof:()=>Qf,ksuid:()=>Sf,lazy:()=>Op,length:()=>jl,literal:()=>K,locales:()=>dc,looseObject:()=>ep,looseRecord:()=>op,lowercase:()=>Nl,lt:()=>vl,lte:()=>P,mac:()=>wf,map:()=>sp,maxLength:()=>kl,maxSize:()=>El,meta:()=>eh,mime:()=>zl,minLength:()=>Al,minSize:()=>Dl,multipleOf:()=>Tl,nan:()=>Sp,nanoid:()=>_f,nativeEnum:()=>up,negative:()=>Sl,never:()=>Yf,nonnegative:()=>wl,nonoptional:()=>yp,nonpositive:()=>Cl,normalize:()=>Vl,null:()=>qf,nullable:()=>hp,nullish:()=>gp,number:()=>B,object:()=>U,optional:()=>pp,overwrite:()=>Bl,parse:()=>Kd,parseAsync:()=>qd,partialRecord:()=>ap,pipe:()=>Cp,positive:()=>xl,prefault:()=>vp,preprocess:()=>Lp,prettifyError:()=>ot,promise:()=>kp,property:()=>Rl,readonly:()=>Ep,record:()=>G,refine:()=>Np,regex:()=>Ml,regexes:()=>It,registry:()=>pc,safeDecode:()=>tf,safeDecodeAsync:()=>rf,safeEncode:()=>ef,safeEncodeAsync:()=>nf,safeParse:()=>Jd,safeParseAsync:()=>Yd,set:()=>cp,setErrorMap:()=>rh,size:()=>Ol,slugify:()=>Gl,startsWith:()=>Il,strictObject:()=>$f,string:()=>z,stringFormat:()=>Mf,stringbool:()=>th,success:()=>bp,superRefine:()=>Pp,symbol:()=>Gf,templateLiteral:()=>Dp,toJSONSchema:()=>Mu,toLowerCase:()=>Ul,toUpperCase:()=>Wl,transform:()=>fp,treeifyError:()=>it,trim:()=>Hl,tuple:()=>ip,uint32:()=>Bf,uint64:()=>Wf,ulid:()=>bf,undefined:()=>Kf,union:()=>W,unknown:()=>V,uppercase:()=>Pl,url:()=>mf,util:()=>x,uuid:()=>uf,uuidv4:()=>df,uuidv6:()=>ff,uuidv7:()=>pf,void:()=>Xf,xid:()=>xf,xor:()=>tp,z:()=>Sh}),Dh,Oh=t((()=>{Th(),Th(),Dh=wh}));Oh();var kh=`io.modelcontextprotocol/related-task`,Ah=Mp(e=>e!==null&&(typeof e==`object`||typeof e==`function`)),jh=W([z(),B().int()]),Mh=z();ep({ttl:B().optional(),pollInterval:B().optional()});var Nh=U({ttl:B().optional()}),Ph=U({taskId:z()}),Fh=ep({progressToken:jh.optional(),[kh]:Ph.optional()}),Ih=U({_meta:Fh.optional()}),Lh=Ih.extend({task:Nh.optional()}),Rh=e=>Lh.safeParse(e).success,zh=U({method:z(),params:Ih.loose().optional()}),Bh=U({_meta:Fh.optional()}),Vh=U({method:z(),params:Bh.loose().optional()}),Hh=ep({_meta:Fh.optional()}),Uh=W([z(),B().int()]),Wh=U({jsonrpc:K(`2.0`),id:Uh,...zh.shape}).strict(),Gh=e=>Wh.safeParse(e).success,Kh=U({jsonrpc:K(`2.0`),...Vh.shape}).strict(),qh=e=>Kh.safeParse(e).success,Jh=U({jsonrpc:K(`2.0`),id:Uh,result:Hh}).strict(),Yh=e=>Jh.safeParse(e).success,Xh;(function(e){e[e.ConnectionClosed=-32e3]=`ConnectionClosed`,e[e.RequestTimeout=-32001]=`RequestTimeout`,e[e.ParseError=-32700]=`ParseError`,e[e.InvalidRequest=-32600]=`InvalidRequest`,e[e.MethodNotFound=-32601]=`MethodNotFound`,e[e.InvalidParams=-32602]=`InvalidParams`,e[e.InternalError=-32603]=`InternalError`,e[e.UrlElicitationRequired=-32042]=`UrlElicitationRequired`})(Xh||={});var Zh=U({jsonrpc:K(`2.0`),id:Uh.optional(),error:U({code:B().int(),message:z(),data:V().optional()})}).strict(),Qh=e=>Zh.safeParse(e).success,$h=W([Wh,Kh,Jh,Zh]);W([Jh,Zh]);var eg=Hh.strict(),tg=Bh.extend({requestId:Uh.optional(),reason:z().optional()}),ng=Vh.extend({method:K(`notifications/cancelled`),params:tg}),rg=U({icons:H(U({src:z(),mimeType:z().optional(),sizes:H(z()).optional(),theme:lp([`light`,`dark`]).optional()})).optional()}),ig=U({name:z(),title:z().optional()}),ag=ig.extend({...ig.shape,...rg.shape,version:z(),websiteUrl:z().optional(),description:z().optional()}),og=Lp(e=>e&&typeof e==`object`&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,rp(U({form:rp(U({applyDefaults:Vf().optional()}),G(z(),V())).optional(),url:Ah.optional()}),G(z(),V()).optional())),sg=ep({list:Ah.optional(),cancel:Ah.optional(),requests:ep({sampling:ep({createMessage:Ah.optional()}).optional(),elicitation:ep({create:Ah.optional()}).optional()}).optional()}),cg=ep({list:Ah.optional(),cancel:Ah.optional(),requests:ep({tools:ep({call:Ah.optional()}).optional()}).optional()}),lg=U({experimental:G(z(),Ah).optional(),sampling:U({context:Ah.optional(),tools:Ah.optional()}).optional(),elicitation:og.optional(),roots:U({listChanged:Vf().optional()}).optional(),tasks:sg.optional(),extensions:G(z(),Ah).optional()}),ug=Ih.extend({protocolVersion:z(),capabilities:lg,clientInfo:ag}),dg=zh.extend({method:K(`initialize`),params:ug}),fg=U({experimental:G(z(),Ah).optional(),logging:Ah.optional(),completions:Ah.optional(),prompts:U({listChanged:Vf().optional()}).optional(),resources:U({subscribe:Vf().optional(),listChanged:Vf().optional()}).optional(),tools:U({listChanged:Vf().optional()}).optional(),tasks:cg.optional(),extensions:G(z(),Ah).optional()}),pg=Hh.extend({protocolVersion:z(),capabilities:fg,serverInfo:ag,instructions:z().optional()}),mg=Vh.extend({method:K(`notifications/initialized`),params:Bh.optional()}),hg=zh.extend({method:K(`ping`),params:Ih.optional()}),gg=U({progress:B(),total:pp(B()),message:pp(z())}),_g=U({...Bh.shape,...gg.shape,progressToken:jh}),vg=Vh.extend({method:K(`notifications/progress`),params:_g}),yg=Ih.extend({cursor:Mh.optional()}),bg=zh.extend({params:yg.optional()}),xg=Hh.extend({nextCursor:Mh.optional()}),Sg=lp([`working`,`input_required`,`completed`,`failed`,`cancelled`]),Cg=U({taskId:z(),status:Sg,ttl:W([B(),qf()]),createdAt:z(),lastUpdatedAt:z(),pollInterval:pp(B()),statusMessage:pp(z())}),wg=Hh.extend({task:Cg}),Tg=Bh.merge(Cg),Eg=Vh.extend({method:K(`notifications/tasks/status`),params:Tg}),Dg=zh.extend({method:K(`tasks/get`),params:Ih.extend({taskId:z()})}),Og=Hh.merge(Cg),kg=zh.extend({method:K(`tasks/result`),params:Ih.extend({taskId:z()})});Hh.loose();var Ag=bg.extend({method:K(`tasks/list`)}),jg=xg.extend({tasks:H(Cg)}),Mg=zh.extend({method:K(`tasks/cancel`),params:Ih.extend({taskId:z()})}),Ng=Hh.merge(Cg),Pg=U({uri:z(),mimeType:pp(z()),_meta:G(z(),V()).optional()}),Fg=Pg.extend({text:z()}),Ig=z().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:`Invalid Base64 string`}),Lg=Pg.extend({blob:Ig}),Rg=lp([`user`,`assistant`]),zg=U({audience:H(Rg).optional(),priority:B().min(0).max(1).optional(),lastModified:R({offset:!0}).optional()}),Bg=U({...ig.shape,...rg.shape,uri:z(),description:pp(z()),mimeType:pp(z()),size:pp(B()),annotations:zg.optional(),_meta:pp(ep({}))}),Vg=U({...ig.shape,...rg.shape,uriTemplate:z(),description:pp(z()),mimeType:pp(z()),annotations:zg.optional(),_meta:pp(ep({}))}),Hg=bg.extend({method:K(`resources/list`)}),Ug=xg.extend({resources:H(Bg)}),Wg=bg.extend({method:K(`resources/templates/list`)}),Gg=xg.extend({resourceTemplates:H(Vg)}),Kg=Ih.extend({uri:z()}),qg=Kg,Jg=zh.extend({method:K(`resources/read`),params:qg}),Yg=Hh.extend({contents:H(W([Fg,Lg]))}),Xg=Vh.extend({method:K(`notifications/resources/list_changed`),params:Bh.optional()}),Zg=Kg,Qg=zh.extend({method:K(`resources/subscribe`),params:Zg}),$g=Kg,e_=zh.extend({method:K(`resources/unsubscribe`),params:$g}),t_=Bh.extend({uri:z()}),n_=Vh.extend({method:K(`notifications/resources/updated`),params:t_}),r_=U({name:z(),description:pp(z()),required:pp(Vf())}),i_=U({...ig.shape,...rg.shape,description:pp(z()),arguments:pp(H(r_)),_meta:pp(ep({}))}),a_=bg.extend({method:K(`prompts/list`)}),o_=xg.extend({prompts:H(i_)}),s_=Ih.extend({name:z(),arguments:G(z(),z()).optional()}),c_=zh.extend({method:K(`prompts/get`),params:s_}),l_=U({type:K(`text`),text:z(),annotations:zg.optional(),_meta:G(z(),V()).optional()}),u_=U({type:K(`image`),data:Ig,mimeType:z(),annotations:zg.optional(),_meta:G(z(),V()).optional()}),d_=U({type:K(`audio`),data:Ig,mimeType:z(),annotations:zg.optional(),_meta:G(z(),V()).optional()}),f_=U({type:K(`tool_use`),name:z(),id:z(),input:G(z(),V()),_meta:G(z(),V()).optional()}),p_=U({type:K(`resource`),resource:W([Fg,Lg]),annotations:zg.optional(),_meta:G(z(),V()).optional()}),m_=Bg.extend({type:K(`resource_link`)}),h_=W([l_,u_,d_,m_,p_]),g_=U({role:Rg,content:h_}),__=Hh.extend({description:z().optional(),messages:H(g_)}),v_=Vh.extend({method:K(`notifications/prompts/list_changed`),params:Bh.optional()}),y_=U({title:z().optional(),readOnlyHint:Vf().optional(),destructiveHint:Vf().optional(),idempotentHint:Vf().optional(),openWorldHint:Vf().optional()}),b_=U({taskSupport:lp([`required`,`optional`,`forbidden`]).optional()}),x_=U({...ig.shape,...rg.shape,description:z().optional(),inputSchema:U({type:K(`object`),properties:G(z(),Ah).optional(),required:H(z()).optional()}).catchall(V()),outputSchema:U({type:K(`object`),properties:G(z(),Ah).optional(),required:H(z()).optional()}).catchall(V()).optional(),annotations:y_.optional(),execution:b_.optional(),_meta:G(z(),V()).optional()}),S_=bg.extend({method:K(`tools/list`)}),C_=xg.extend({tools:H(x_)}),w_=Hh.extend({content:H(h_).default([]),structuredContent:G(z(),V()).optional(),isError:Vf().optional()});w_.or(Hh.extend({toolResult:V()}));var T_=Lh.extend({name:z(),arguments:G(z(),V()).optional()}),E_=zh.extend({method:K(`tools/call`),params:T_}),D_=Vh.extend({method:K(`notifications/tools/list_changed`),params:Bh.optional()});U({autoRefresh:Vf().default(!0),debounceMs:B().int().nonnegative().default(300)});var O_=lp([`debug`,`info`,`notice`,`warning`,`error`,`critical`,`alert`,`emergency`]),k_=Ih.extend({level:O_}),A_=zh.extend({method:K(`logging/setLevel`),params:k_}),j_=Bh.extend({level:O_,logger:z().optional(),data:V()}),M_=Vh.extend({method:K(`notifications/message`),params:j_}),N_=U({hints:H(U({name:z().optional()})).optional(),costPriority:B().min(0).max(1).optional(),speedPriority:B().min(0).max(1).optional(),intelligencePriority:B().min(0).max(1).optional()}),P_=U({mode:lp([`auto`,`required`,`none`]).optional()}),F_=U({type:K(`tool_result`),toolUseId:z().describe(`The unique identifier for the corresponding tool call.`),content:H(h_).default([]),structuredContent:U({}).loose().optional(),isError:Vf().optional(),_meta:G(z(),V()).optional()}),I_=np(`type`,[l_,u_,d_]),L_=np(`type`,[l_,u_,d_,f_,F_]),R_=U({role:Rg,content:W([L_,H(L_)]),_meta:G(z(),V()).optional()}),z_=Lh.extend({messages:H(R_),modelPreferences:N_.optional(),systemPrompt:z().optional(),includeContext:lp([`none`,`thisServer`,`allServers`]).optional(),temperature:B().optional(),maxTokens:B().int(),stopSequences:H(z()).optional(),metadata:Ah.optional(),tools:H(x_).optional(),toolChoice:P_.optional()}),B_=zh.extend({method:K(`sampling/createMessage`),params:z_}),V_=Hh.extend({model:z(),stopReason:pp(lp([`endTurn`,`stopSequence`,`maxTokens`]).or(z())),role:Rg,content:I_}),H_=Hh.extend({model:z(),stopReason:pp(lp([`endTurn`,`stopSequence`,`maxTokens`,`toolUse`]).or(z())),role:Rg,content:W([L_,H(L_)])}),U_=U({type:K(`boolean`),title:z().optional(),description:z().optional(),default:Vf().optional()}),W_=U({type:K(`string`),title:z().optional(),description:z().optional(),minLength:B().optional(),maxLength:B().optional(),format:lp([`email`,`uri`,`date`,`date-time`]).optional(),default:z().optional()}),G_=U({type:lp([`number`,`integer`]),title:z().optional(),description:z().optional(),minimum:B().optional(),maximum:B().optional(),default:B().optional()}),K_=U({type:K(`string`),title:z().optional(),description:z().optional(),enum:H(z()),default:z().optional()}),q_=U({type:K(`string`),title:z().optional(),description:z().optional(),oneOf:H(U({const:z(),title:z()})),default:z().optional()}),J_=W([W([U({type:K(`string`),title:z().optional(),description:z().optional(),enum:H(z()),enumNames:H(z()).optional(),default:z().optional()}),W([K_,q_]),W([U({type:K(`array`),title:z().optional(),description:z().optional(),minItems:B().optional(),maxItems:B().optional(),items:U({type:K(`string`),enum:H(z())}),default:H(z()).optional()}),U({type:K(`array`),title:z().optional(),description:z().optional(),minItems:B().optional(),maxItems:B().optional(),items:U({anyOf:H(U({const:z(),title:z()}))}),default:H(z()).optional()})])]),U_,W_,G_]),Y_=W([Lh.extend({mode:K(`form`).optional(),message:z(),requestedSchema:U({type:K(`object`),properties:G(z(),J_),required:H(z()).optional()})}),Lh.extend({mode:K(`url`),message:z(),elicitationId:z(),url:z().url()})]),X_=zh.extend({method:K(`elicitation/create`),params:Y_}),Z_=Bh.extend({elicitationId:z()}),Q_=Vh.extend({method:K(`notifications/elicitation/complete`),params:Z_}),$_=Hh.extend({action:lp([`accept`,`decline`,`cancel`]),content:Lp(e=>e===null?void 0:e,G(z(),W([z(),B(),Vf(),H(z())])).optional())}),ev=U({type:K(`ref/resource`),uri:z()}),tv=U({type:K(`ref/prompt`),name:z()}),nv=Ih.extend({ref:W([tv,ev]),argument:U({name:z(),value:z()}),context:U({arguments:G(z(),z()).optional()}).optional()}),rv=zh.extend({method:K(`completion/complete`),params:nv}),iv=Hh.extend({completion:ep({values:H(z()).max(100),total:pp(B().int()),hasMore:pp(Vf())})}),av=U({uri:z().startsWith(`file://`),name:z().optional(),_meta:G(z(),V()).optional()}),ov=zh.extend({method:K(`roots/list`),params:Ih.optional()}),sv=Hh.extend({roots:H(av)}),cv=Vh.extend({method:K(`notifications/roots/list_changed`),params:Bh.optional()});W([hg,dg,rv,A_,c_,a_,Hg,Wg,Jg,Qg,e_,E_,S_,Dg,kg,Ag,Mg]),W([ng,vg,mg,cv,Eg]),W([eg,V_,H_,$_,sv,Og,jg,wg]),W([hg,B_,X_,ov,Dg,kg,Ag,Mg]),W([ng,vg,M_,n_,Xg,D_,v_,Eg,Q_]),W([eg,pg,iv,__,o_,Ug,Gg,Yg,w_,C_,Og,jg,wg]);var lv=class e extends Error{constructor(e,t,n){super(`MCP error ${e}: ${t}`),this.code=e,this.data=n,this.name=`McpError`}static fromError(t,n,r){if(t===Xh.UrlElicitationRequired&&r){let e=r;if(e.elicitations)return new uv(e.elicitations,n)}return new e(t,n,r)}},uv=class extends lv{constructor(e,t=`URL elicitation${e.length>1?`s`:``} required`){super(Xh.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}};function dv(e){return e===`completed`||e===`failed`||e===`cancelled`}function fv(e){let t=kd(e)?.method;if(!t)throw Error(`Schema is missing a method literal`);let n=Ad(t);if(typeof n!=`string`)throw Error(`Schema method literal must be a string`);return n}function pv(e,t){let n=Od(e,t);if(!n.success)throw n.error;return n.data}var mv=class{constructor(e){this._options=e,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(ng,e=>{this._oncancel(e)}),this.setNotificationHandler(vg,e=>{this._onprogress(e)}),this.setRequestHandler(hg,e=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(Dg,async(e,t)=>{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new lv(Xh.InvalidParams,`Failed to retrieve task: Task not found`);return{...n}}),this.setRequestHandler(kg,async(e,t)=>{let n=async()=>{let r=e.params.taskId;if(this._taskMessageQueue){let e;for(;e=await this._taskMessageQueue.dequeue(r,t.sessionId);){if(e.type===`response`||e.type===`error`){let t=e.message,n=t.id,r=this._requestResolvers.get(n);if(r)if(this._requestResolvers.delete(n),e.type===`response`)r(t);else{let e=t;r(new lv(e.error.code,e.error.message,e.error.data))}else{let t=e.type===`response`?`Response`:`Error`;this._onerror(Error(`${t} handler missing for request ${n}`))}continue}await this._transport?.send(e.message,{relatedRequestId:t.requestId})}}let i=await this._taskStore.getTask(r,t.sessionId);if(!i)throw new lv(Xh.InvalidParams,`Task not found: ${r}`);if(!dv(i.status))return await this._waitForTaskUpdate(r,t.signal),await n();if(dv(i.status)){let e=await this._taskStore.getTaskResult(r,t.sessionId);return this._clearTaskQueue(r),{...e,_meta:{...e._meta,[kh]:{taskId:r}}}}return await n()};return await n()}),this.setRequestHandler(Ag,async(e,t)=>{try{let{tasks:n,nextCursor:r}=await this._taskStore.listTasks(e.params?.cursor,t.sessionId);return{tasks:n,nextCursor:r,_meta:{}}}catch(e){throw new lv(Xh.InvalidParams,`Failed to list tasks: ${e instanceof Error?e.message:String(e)}`)}}),this.setRequestHandler(Mg,async(e,t)=>{try{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new lv(Xh.InvalidParams,`Task not found: ${e.params.taskId}`);if(dv(n.status))throw new lv(Xh.InvalidParams,`Cannot cancel task in terminal status: ${n.status}`);await this._taskStore.updateTaskStatus(e.params.taskId,`cancelled`,`Client cancelled task execution.`,t.sessionId),this._clearTaskQueue(e.params.taskId);let r=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!r)throw new lv(Xh.InvalidParams,`Task not found after cancellation: ${e.params.taskId}`);return{_meta:{},...r}}catch(e){throw e instanceof lv?e:new lv(Xh.InvalidRequest,`Failed to cancel task: ${e instanceof Error?e.message:String(e)}`)}}))}async _oncancel(e){e.params.requestId&&this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,t,n,r,i=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(r,t),startTime:Date.now(),timeout:t,maxTotalTimeout:n,resetTimeoutOnProgress:i,onTimeout:r})}_resetTimeout(e){let t=this._timeoutInfo.get(e);if(!t)return!1;let n=Date.now()-t.startTime;if(t.maxTotalTimeout&&n>=t.maxTotalTimeout)throw this._timeoutInfo.delete(e),lv.fromError(Xh.RequestTimeout,`Maximum total timeout exceeded`,{maxTotalTimeout:t.maxTotalTimeout,totalElapsed:n});return clearTimeout(t.timeoutId),t.timeoutId=setTimeout(t.onTimeout,t.timeout),!0}_cleanupTimeout(e){let t=this._timeoutInfo.get(e);t&&(clearTimeout(t.timeoutId),this._timeoutInfo.delete(e))}async connect(e){if(this._transport)throw Error(`Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.`);this._transport=e;let t=this.transport?.onclose;this._transport.onclose=()=>{t?.(),this._onclose()};let n=this.transport?.onerror;this._transport.onerror=e=>{n?.(e),this._onerror(e)};let r=this._transport?.onmessage;this._transport.onmessage=(e,t)=>{r?.(e,t),Yh(e)||Qh(e)?this._onresponse(e):Gh(e)?this._onrequest(e,t):qh(e)?this._onnotification(e):this._onerror(Error(`Unknown message type: ${JSON.stringify(e)}`))},await this._transport.start()}_onclose(){let e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let e of this._timeoutInfo.values())clearTimeout(e.timeoutId);this._timeoutInfo.clear();for(let e of this._requestHandlerAbortControllers.values())e.abort();this._requestHandlerAbortControllers.clear();let t=lv.fromError(Xh.ConnectionClosed,`Connection closed`);this._transport=void 0,this.onclose?.();for(let n of e.values())n(t)}_onerror(e){this.onerror?.(e)}_onnotification(e){let t=this._notificationHandlers.get(e.method)??this.fallbackNotificationHandler;t!==void 0&&Promise.resolve().then(()=>t(e)).catch(e=>this._onerror(Error(`Uncaught error in notification handler: ${e}`)))}_onrequest(e,t){let n=this._requestHandlers.get(e.method)??this.fallbackRequestHandler,r=this._transport,i=e.params?._meta?.[kh]?.taskId;if(n===void 0){let t={jsonrpc:`2.0`,id:e.id,error:{code:Xh.MethodNotFound,message:`Method not found`}};i&&this._taskMessageQueue?this._enqueueTaskMessage(i,{type:`error`,message:t,timestamp:Date.now()},r?.sessionId).catch(e=>this._onerror(Error(`Failed to enqueue error response: ${e}`))):r?.send(t).catch(e=>this._onerror(Error(`Failed to send an error response: ${e}`)));return}let a=new AbortController;this._requestHandlerAbortControllers.set(e.id,a);let o=Rh(e.params)?e.params.task:void 0,s=this._taskStore?this.requestTaskStore(e,r?.sessionId):void 0,c={signal:a.signal,sessionId:r?.sessionId,_meta:e.params?._meta,sendNotification:async t=>{if(a.signal.aborted)return;let n={relatedRequestId:e.id};i&&(n.relatedTask={taskId:i}),await this.notification(t,n)},sendRequest:async(t,n,r)=>{if(a.signal.aborted)throw new lv(Xh.ConnectionClosed,`Request was cancelled`);let o={...r,relatedRequestId:e.id};i&&!o.relatedTask&&(o.relatedTask={taskId:i});let c=o.relatedTask?.taskId??i;return c&&s&&await s.updateTaskStatus(c,`input_required`),await this.request(t,n,o)},authInfo:t?.authInfo,requestId:e.id,requestInfo:t?.requestInfo,taskId:i,taskStore:s,taskRequestedTtl:o?.ttl,closeSSEStream:t?.closeSSEStream,closeStandaloneSSEStream:t?.closeStandaloneSSEStream};Promise.resolve().then(()=>{o&&this.assertTaskHandlerCapability(e.method)}).then(()=>n(e,c)).then(async t=>{if(a.signal.aborted)return;let n={result:t,jsonrpc:`2.0`,id:e.id};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`response`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)},async t=>{if(a.signal.aborted)return;let n={jsonrpc:`2.0`,id:e.id,error:{code:Number.isSafeInteger(t.code)?t.code:Xh.InternalError,message:t.message??`Internal error`,...t.data!==void 0&&{data:t.data}}};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`error`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)}).catch(e=>this._onerror(Error(`Failed to send response: ${e}`))).finally(()=>{this._requestHandlerAbortControllers.get(e.id)===a&&this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){let{progressToken:t,...n}=e.params,r=Number(t),i=this._progressHandlers.get(r);if(!i){this._onerror(Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let a=this._responseHandlers.get(r),o=this._timeoutInfo.get(r);if(o&&a&&o.resetTimeoutOnProgress)try{this._resetTimeout(r)}catch(e){this._responseHandlers.delete(r),this._progressHandlers.delete(r),this._cleanupTimeout(r),a(e);return}i(n)}_onresponse(e){let t=Number(e.id),n=this._requestResolvers.get(t);if(n){this._requestResolvers.delete(t),Yh(e)?n(e):n(new lv(e.error.code,e.error.message,e.error.data));return}let r=this._responseHandlers.get(t);if(r===void 0){this._onerror(Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(t),this._cleanupTimeout(t);let i=!1;if(Yh(e)&&e.result&&typeof e.result==`object`){let n=e.result;if(n.task&&typeof n.task==`object`){let e=n.task;typeof e.taskId==`string`&&(i=!0,this._taskProgressTokens.set(e.taskId,t))}}i||this._progressHandlers.delete(t),Yh(e)?r(e):r(lv.fromError(e.error.code,e.error.message,e.error.data))}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(e,t,n){let{task:r}=n??{};if(!r){try{yield{type:`result`,result:await this.request(e,t,n)}}catch(e){yield{type:`error`,error:e instanceof lv?e:new lv(Xh.InternalError,String(e))}}return}let i;try{let r=await this.request(e,wg,n);if(r.task)i=r.task.taskId,yield{type:`taskCreated`,task:r.task};else throw new lv(Xh.InternalError,`Task creation did not return a task`);for(;;){let e=await this.getTask({taskId:i},n);if(yield{type:`taskStatus`,task:e},dv(e.status)){e.status===`completed`?yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)}:e.status===`failed`?yield{type:`error`,error:new lv(Xh.InternalError,`Task ${i} failed`)}:e.status===`cancelled`&&(yield{type:`error`,error:new lv(Xh.InternalError,`Task ${i} was cancelled`)});return}if(e.status===`input_required`){yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)};return}let r=e.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(e=>setTimeout(e,r)),n?.signal?.throwIfAborted()}}catch(e){yield{type:`error`,error:e instanceof lv?e:new lv(Xh.InternalError,String(e))}}}request(e,t,n){let{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a,task:o,relatedTask:s}=n??{};return new Promise((c,l)=>{let u=e=>{l(e)};if(!this._transport){u(Error(`Not connected`));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(e.method),o&&this.assertTaskCapability(e.method)}catch(e){u(e);return}n?.signal?.throwIfAborted();let d=this._requestMessageId++,f={...e,jsonrpc:`2.0`,id:d};n?.onprogress&&(this._progressHandlers.set(d,n.onprogress),f.params={...e.params,_meta:{...e.params?._meta||{},progressToken:d}}),o&&(f.params={...f.params,task:o}),s&&(f.params={...f.params,_meta:{...f.params?._meta||{},[kh]:s}});let p=e=>{this._responseHandlers.delete(d),this._progressHandlers.delete(d),this._cleanupTimeout(d),this._transport?.send({jsonrpc:`2.0`,method:`notifications/cancelled`,params:{requestId:d,reason:String(e)}},{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>this._onerror(Error(`Failed to send cancellation: ${e}`))),l(e instanceof lv?e:new lv(Xh.RequestTimeout,String(e)))};this._responseHandlers.set(d,e=>{if(!n?.signal?.aborted){if(e instanceof Error)return l(e);try{let n=Od(t,e.result);n.success?c(n.data):l(n.error)}catch(e){l(e)}}}),n?.signal?.addEventListener(`abort`,()=>{p(n?.signal?.reason)});let m=n?.timeout??6e4;this._setupTimeout(d,m,n?.maxTotalTimeout,()=>p(lv.fromError(Xh.RequestTimeout,`Request timed out`,{timeout:m})),n?.resetTimeoutOnProgress??!1);let h=s?.taskId;h?(this._requestResolvers.set(d,e=>{let t=this._responseHandlers.get(d);t?t(e):this._onerror(Error(`Response handler missing for side-channeled request ${d}`))}),this._enqueueTaskMessage(h,{type:`request`,message:f,timestamp:Date.now()}).catch(e=>{this._cleanupTimeout(d),l(e)})):this._transport.send(f,{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>{this._cleanupTimeout(d),l(e)})})}async getTask(e,t){return this.request({method:`tasks/get`,params:e},Og,t)}async getTaskResult(e,t,n){return this.request({method:`tasks/result`,params:e},t,n)}async listTasks(e,t){return this.request({method:`tasks/list`,params:e},jg,t)}async cancelTask(e,t){return this.request({method:`tasks/cancel`,params:e},Ng,t)}async notification(e,t){if(!this._transport)throw Error(`Not connected`);this.assertNotificationCapability(e.method);let n=t?.relatedTask?.taskId;if(n){let r={...e,jsonrpc:`2.0`,params:{...e.params,_meta:{...e.params?._meta||{},[kh]:t.relatedTask}}};await this._enqueueTaskMessage(n,{type:`notification`,message:r,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(e.method)&&!e.params&&!t?.relatedRequestId&&!t?.relatedTask){if(this._pendingDebouncedNotifications.has(e.method))return;this._pendingDebouncedNotifications.add(e.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let n={...e,jsonrpc:`2.0`};t?.relatedTask&&(n={...n,params:{...n.params,_meta:{...n.params?._meta||{},[kh]:t.relatedTask}}}),this._transport?.send(n,t).catch(e=>this._onerror(e))});return}let r={...e,jsonrpc:`2.0`};t?.relatedTask&&(r={...r,params:{...r.params,_meta:{...r.params?._meta||{},[kh]:t.relatedTask}}}),await this._transport.send(r,t)}setRequestHandler(e,t){let n=fv(e);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(n,r)=>{let i=pv(e,n);return Promise.resolve(t(i,r))})}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,t){let n=fv(e);this._notificationHandlers.set(n,n=>{let r=pv(e,n);return Promise.resolve(t(r))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){let t=this._taskProgressTokens.get(e);t!==void 0&&(this._progressHandlers.delete(t),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,t,n){if(!this._taskStore||!this._taskMessageQueue)throw Error(`Cannot enqueue task message: taskStore and taskMessageQueue are not configured`);let r=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(e,t,n,r)}async _clearTaskQueue(e,t){if(this._taskMessageQueue){let n=await this._taskMessageQueue.dequeueAll(e,t);for(let t of n)if(t.type===`request`&&Gh(t.message)){let n=t.message.id,r=this._requestResolvers.get(n);r?(r(new lv(Xh.InternalError,`Task cancelled or completed`)),this._requestResolvers.delete(n)):this._onerror(Error(`Resolver missing for request ${n} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,t){let n=this._options?.defaultTaskPollInterval??1e3;try{let t=await this._taskStore?.getTask(e);t?.pollInterval&&(n=t.pollInterval)}catch{}return new Promise((e,r)=>{if(t.aborted){r(new lv(Xh.InvalidRequest,`Request cancelled`));return}let i=setTimeout(e,n);t.addEventListener(`abort`,()=>{clearTimeout(i),r(new lv(Xh.InvalidRequest,`Request cancelled`))},{once:!0})})}requestTaskStore(e,t){let n=this._taskStore;if(!n)throw Error(`No task store configured`);return{createTask:async r=>{if(!e)throw Error(`No request provided`);return await n.createTask(r,e.id,{method:e.method,params:e.params},t)},getTask:async e=>{let r=await n.getTask(e,t);if(!r)throw new lv(Xh.InvalidParams,`Failed to retrieve task: Task not found`);return r},storeTaskResult:async(e,r,i)=>{await n.storeTaskResult(e,r,i,t);let a=await n.getTask(e,t);if(a){let t=Eg.parse({method:`notifications/tasks/status`,params:a});await this.notification(t),dv(a.status)&&this._cleanupTaskProgressHandler(e)}},getTaskResult:e=>n.getTaskResult(e,t),updateTaskStatus:async(e,r,i)=>{let a=await n.getTask(e,t);if(!a)throw new lv(Xh.InvalidParams,`Task \"${e}\" not found - it may have been cleaned up`);if(dv(a.status))throw new lv(Xh.InvalidParams,`Cannot update task \"${e}\" from terminal status \"${a.status}\" to \"${r}\". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(e,r,i,t);let o=await n.getTask(e,t);if(o){let t=Eg.parse({method:`notifications/tasks/status`,params:o});await this.notification(t),dv(o.status)&&this._cleanupTaskProgressHandler(e)}},listTasks:e=>n.listTasks(e,t)}}};function hv(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function gv(e,t){let n={...e};for(let e in t){let r=e,i=t[r];if(i===void 0)continue;let a=n[r];hv(a)&&hv(i)?n[r]={...a,...i}:n[r]=i}return n}var X=a();Oh(),(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error(`Dynamic require of \"`+e+`\" is not supported`)});var _v=class extends mv{_registeredMethods=new Set;_eventSlots=new Map;onEventDispatch(e,t){}_ensureEventSlot(e){let t=this._eventSlots.get(e);if(!t){let n=this.eventSchemas[e];if(!n)throw Error(`Unknown event: ${String(e)}`);t={listeners:[]},this._eventSlots.set(e,t);let r=n.shape.method.value;this._registeredMethods.add(r);let i=t;super.setNotificationHandler(n,t=>{let n=t.params;this.onEventDispatch(e,n),i.onHandler?.(n);for(let e of[...i.listeners])e(n)})}return t}setEventHandler(e,t){let n=this._ensureEventSlot(e);n.onHandler&&t&&console.warn(`[MCP Apps] on${String(e)} handler replaced. Use addEventListener(\"${String(e)}\", …) to add multiple listeners without replacing.`),n.onHandler=t}getEventHandler(e){return this._eventSlots.get(e)?.onHandler}addEventListener(e,t){this._ensureEventSlot(e).listeners.push(t)}removeEventListener(e,t){let n=this._eventSlots.get(e);if(!n)return;let r=n.listeners.indexOf(t);r!==-1&&n.listeners.splice(r,1)}setRequestHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setRequestHandler`),super.setRequestHandler(e,t)};setNotificationHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setNotificationHandler`),super.setNotificationHandler(e,t)};warnIfRequestHandlerReplaced(e,t,n){t&&n&&console.warn(`[MCP Apps] ${e} handler replaced. Previous handler will no longer be called.`)}replaceRequestHandler=(e,t)=>{let n=e.shape.method.value;this._registeredMethods.add(n),super.setRequestHandler(e,t)};_assertMethodNotRegistered(e,t){let n=e.shape.method.value;if(this._registeredMethods.has(n))throw Error(`Handler for \"${n}\" already registered (via ${t}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(n)}},vv=`2026-01-26`,yv=class{eventTarget;eventSource;messageListener;constructor(e=window.parent,t){this.eventTarget=e,this.eventSource=t,this.messageListener=e=>{if(t&&e.source!==this.eventSource){console.debug(`Ignoring message from unknown source`,e);return}let n=$h.safeParse(e.data);n.success?(console.debug(`Parsed message`,n.data),this.onmessage?.(n.data)):e.data?.jsonrpc===`2.0`?(console.error(`Failed to parse message`,n.error.message,e),this.onerror?.(Error(`Invalid JSON-RPC message received: `+n.error.message))):console.debug(`Ignoring non-JSON-RPC message`,n.error.message,e)}}async start(){window.addEventListener(`message`,this.messageListener)}async send(e,t){e.method!==`ui/notifications/tool-input-partial`&&console.debug(`Sending message`,e),this.eventTarget.postMessage(e,`*`)}async close(){window.removeEventListener(`message`,this.messageListener),this.onclose?.()}onclose;onerror;onmessage;sessionId;setProtocolVersion},bv=W([K(`light`),K(`dark`)]).describe(`Color theme preference for the host environment.`),xv=W([K(`inline`),K(`fullscreen`),K(`pip`)]).describe(`Display mode for UI presentation.`),Sv=G(W([K(`--color-background-primary`),K(`--color-background-secondary`),K(`--color-background-tertiary`),K(`--color-background-inverse`),K(`--color-background-ghost`),K(`--color-background-info`),K(`--color-background-danger`),K(`--color-background-success`),K(`--color-background-warning`),K(`--color-background-disabled`),K(`--color-text-primary`),K(`--color-text-secondary`),K(`--color-text-tertiary`),K(`--color-text-inverse`),K(`--color-text-ghost`),K(`--color-text-info`),K(`--color-text-danger`),K(`--color-text-success`),K(`--color-text-warning`),K(`--color-text-disabled`),K(`--color-border-primary`),K(`--color-border-secondary`),K(`--color-border-tertiary`),K(`--color-border-inverse`),K(`--color-border-ghost`),K(`--color-border-info`),K(`--color-border-danger`),K(`--color-border-success`),K(`--color-border-warning`),K(`--color-border-disabled`),K(`--color-ring-primary`),K(`--color-ring-secondary`),K(`--color-ring-inverse`),K(`--color-ring-info`),K(`--color-ring-danger`),K(`--color-ring-success`),K(`--color-ring-warning`),K(`--font-sans`),K(`--font-mono`),K(`--font-weight-normal`),K(`--font-weight-medium`),K(`--font-weight-semibold`),K(`--font-weight-bold`),K(`--font-text-xs-size`),K(`--font-text-sm-size`),K(`--font-text-md-size`),K(`--font-text-lg-size`),K(`--font-heading-xs-size`),K(`--font-heading-sm-size`),K(`--font-heading-md-size`),K(`--font-heading-lg-size`),K(`--font-heading-xl-size`),K(`--font-heading-2xl-size`),K(`--font-heading-3xl-size`),K(`--font-text-xs-line-height`),K(`--font-text-sm-line-height`),K(`--font-text-md-line-height`),K(`--font-text-lg-line-height`),K(`--font-heading-xs-line-height`),K(`--font-heading-sm-line-height`),K(`--font-heading-md-line-height`),K(`--font-heading-lg-line-height`),K(`--font-heading-xl-line-height`),K(`--font-heading-2xl-line-height`),K(`--font-heading-3xl-line-height`),K(`--border-radius-xs`),K(`--border-radius-sm`),K(`--border-radius-md`),K(`--border-radius-lg`),K(`--border-radius-xl`),K(`--border-radius-full`),K(`--border-width-regular`),K(`--shadow-hairline`),K(`--shadow-sm`),K(`--shadow-md`),K(`--shadow-lg`)]).describe(`CSS variable keys available to MCP apps for theming.`).describe(`Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses \\`Record<K, string | undefined>\\` rather than \\`Partial<Record<K, string>>\\`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation.`),W([z(),Kf()]).describe(`Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses \\`Record<K, string | undefined>\\` rather than \\`Partial<Record<K, string>>\\`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation.`)).describe(`Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses \\`Record<K, string | undefined>\\` rather than \\`Partial<Record<K, string>>\\`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation.`);U({method:K(`ui/open-link`),params:U({url:z().describe(`URL to open in the host's browser`)})});var Cv=U({isError:Vf().optional().describe(`True if the host failed to open the URL (e.g., due to security policy).`)}).passthrough(),wv=U({isError:Vf().optional().describe(`True if the download failed (e.g., user cancelled or host denied).`)}).passthrough(),Tv=U({isError:Vf().optional().describe(`True if the host rejected or failed to deliver the message.`)}).passthrough();U({method:K(`ui/notifications/sandbox-proxy-ready`),params:U({})});var Ev=U({connectDomains:H(z()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket).\n\n- Maps to CSP \\`connect-src\\` directive\n- Empty or omitted → no network connections (secure default)`),resourceDomains:H(z()).optional().describe(\"Origins for static resources (images, scripts, stylesheets, fonts, media).\\n\\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\\n- Wildcard subdomains supported: `https://*.example.com`\\n- Empty or omitted → no network resources (secure default)\"),frameDomains:H(z()).optional().describe(\"Origins for nested iframes.\\n\\n- Maps to CSP `frame-src` directive\\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)\"),baseUriDomains:H(z()).optional().describe(\"Allowed base URIs for the document.\\n\\n- Maps to CSP `base-uri` directive\\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)\")}),Dv=U({camera:U({}).optional().describe(`Request camera access.\n\nMaps to Permission Policy \\`camera\\` feature.`),microphone:U({}).optional().describe(`Request microphone access.\n\nMaps to Permission Policy \\`microphone\\` feature.`),geolocation:U({}).optional().describe(`Request geolocation access.\n\nMaps to Permission Policy \\`geolocation\\` feature.`),clipboardWrite:U({}).optional().describe(`Request clipboard write access.\n\nMaps to Permission Policy \\`clipboard-write\\` feature.`)});U({method:K(`ui/notifications/size-changed`),params:U({width:B().optional().describe(`New width in pixels.`),height:B().optional().describe(`New height in pixels.`)})});var Ov=U({method:K(`ui/notifications/tool-input`),params:U({arguments:G(z(),V().describe(`Complete tool call arguments as key-value pairs.`)).optional().describe(`Complete tool call arguments as key-value pairs.`)})}),kv=U({method:K(`ui/notifications/tool-input-partial`),params:U({arguments:G(z(),V().describe(`Partial tool call arguments (incomplete, may change).`)).optional().describe(`Partial tool call arguments (incomplete, may change).`)})}),Av=U({method:K(`ui/notifications/tool-cancelled`),params:U({reason:z().optional().describe(`Optional reason for the cancellation (e.g., \"user action\", \"timeout\").`)})}),jv=U({fonts:z().optional()}),Mv=U({variables:Sv.optional().describe(`CSS variables for theming the app.`),css:jv.optional().describe(`CSS blocks that apps can inject.`)}),Nv=U({method:K(`ui/resource-teardown`),params:U({})});G(z(),V());var Pv=U({text:U({}).optional().describe(`Host supports text content blocks.`),image:U({}).optional().describe(`Host supports image content blocks.`),audio:U({}).optional().describe(`Host supports audio content blocks.`),resource:U({}).optional().describe(`Host supports resource content blocks.`),resourceLink:U({}).optional().describe(`Host supports resource link content blocks.`),structuredContent:U({}).optional().describe(`Host supports structured content.`)});U({method:K(`ui/notifications/request-teardown`),params:U({}).optional()});var Fv=U({experimental:G(z(),G(z(),Jf()).describe(`Experimental features keyed by identifier.`)).optional().describe(`Experimental features keyed by identifier.`),openLinks:U({}).optional().describe(`Host supports opening external URLs.`),downloadFile:U({}).optional().describe(`Host supports file downloads via ui/download-file.`),serverTools:U({listChanged:Vf().optional().describe(`Host supports tools/list_changed notifications.`)}).optional().describe(`Host can proxy tool calls to the MCP server.`),serverResources:U({listChanged:Vf().optional().describe(`Host supports resources/list_changed notifications.`)}).optional().describe(`Host can proxy resource reads to the MCP server.`),logging:U({}).optional().describe(`Host accepts log messages.`),sandbox:U({permissions:Dv.optional().describe(`Permissions granted by the host (camera, microphone, geolocation).`),csp:Ev.optional().describe(`CSP domains approved by the host.`)}).optional().describe(`Sandbox configuration applied by the host.`),updateModelContext:Pv.optional().describe(`Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns.`),message:Pv.optional().describe(`Host supports receiving content messages (ui/message) from the view.`),sampling:U({tools:U({}).optional().describe(\"Host supports tool use via `tools` and `toolChoice` parameters.\")}).optional().describe(\"Host supports LLM sampling (sampling/createMessage) from the view.\\nMirrors the MCP `ClientCapabilities.sampling` shape so hosts can pass it through.\")}),Iv=U({experimental:G(z(),G(z(),Jf()).describe(`Experimental features keyed by identifier.`)).optional().describe(`Experimental features keyed by identifier.`),tools:U({listChanged:Vf().optional().describe(`App supports tools/list_changed notifications.`)}).optional().describe(`App exposes MCP-style tools that the host can call.`),availableDisplayModes:H(xv).optional().describe(`Display modes the app supports.`)});U({method:K(`ui/notifications/initialized`),params:U({}).optional()}),U({csp:Ev.optional().describe(`Content Security Policy configuration for UI resources.`),permissions:Dv.optional().describe(`Sandbox permissions requested by the UI resource.`),domain:z().optional().describe(`Dedicated origin for view sandbox.\n\nUseful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists.\n\n**Host-dependent:** The format and validation rules for this field are determined by each host. Servers MUST consult host-specific documentation for the expected domain format. Common patterns include:\n- Hash-based subdomains (e.g., \\`{hash}.claudemcpcontent.com\\`)\n- URL-derived subdomains (e.g., \\`www-example-com.oaiusercontent.com\\`)\n\nIf omitted, host uses default sandbox origin (typically per-conversation).`),prefersBorder:Vf().optional().describe(`Visual boundary preference - true if view prefers a visible border.\n\nBoolean requesting whether a visible border and background is provided by the host. Specifying an explicit value for this is recommended because hosts' defaults may vary.\n\n- \\`true\\`: request visible border + background\n- \\`false\\`: request no visible border + background\n- omitted: host decides border`)}),U({method:K(`ui/request-display-mode`),params:U({mode:xv.describe(`The display mode being requested.`)})});var Lv=U({mode:xv.describe(`The display mode that was actually set. May differ from requested if not supported.`)}).passthrough(),Rv=W([K(`model`),K(`app`)]).describe(`Tool visibility scope - who can access the tool.`);U({resourceUri:z().optional(),visibility:H(Rv).optional().describe(`Who can access this tool. Default: [\"model\", \"app\"]\n- \"model\": Tool visible to and callable by the agent\n- \"app\": Tool callable by the app from this server only`),csp:Yf().optional(),permissions:Yf().optional()}),U({mimeTypes:H(z()).optional().describe('Array of supported MIME types for UI resources.\\nMust include `\"text/html;profile=mcp-app\"` for MCP Apps support.')}),U({method:K(`ui/download-file`),params:U({contents:H(W([p_,m_])).describe(`Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.`)})}),U({method:K(`ui/message`),params:U({role:K(`user`).describe(`Message role, currently only \"user\" is supported.`),content:H(h_).describe(`Message content blocks (text, image, etc.).`)})}),U({method:K(`ui/notifications/sandbox-resource-ready`),params:U({html:z().describe(`HTML content to load into the inner iframe.`),sandbox:z().optional().describe(`Optional override for the inner iframe's sandbox attribute.`),csp:Ev.optional().describe(`CSP configuration from resource metadata.`),permissions:Dv.optional().describe(`Sandbox permissions from resource metadata.`)})});var zv=U({method:K(`ui/notifications/tool-result`),params:w_.describe(`Standard MCP tool execution result.`)}),Bv=U({toolInfo:U({id:Uh.optional().describe(`JSON-RPC id of the tools/call request.`),tool:x_.describe(`Tool definition including name, inputSchema, etc.`)}).optional().describe(`Metadata of the tool call that instantiated this App.`),theme:bv.optional().describe(`Current color theme preference.`),styles:Mv.optional().describe(`Style configuration for theming the app.`),displayMode:xv.optional().describe(`How the UI is currently displayed.`),availableDisplayModes:H(xv).optional().describe(`Display modes the host supports.`),containerDimensions:W([U({height:B().describe(`Fixed container height in pixels.`)}),U({maxHeight:W([B(),Kf()]).optional().describe(`Maximum container height in pixels.`)})]).and(W([U({width:B().describe(`Fixed container width in pixels.`)}),U({maxWidth:W([B(),Kf()]).optional().describe(`Maximum container width in pixels.`)})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other\ncontainer holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:z().optional().describe(`User's language and region preference in BCP 47 format.`),timeZone:z().optional().describe(`User's timezone in IANA format.`),userAgent:z().optional().describe(`Host application identifier.`),platform:W([K(`web`),K(`desktop`),K(`mobile`)]).optional().describe(`Platform type for responsive design decisions.`),deviceCapabilities:U({touch:Vf().optional().describe(`Whether the device supports touch input.`),hover:Vf().optional().describe(`Whether the device supports hover interactions.`)}).optional().describe(`Device input capabilities.`),safeAreaInsets:U({top:B().describe(`Top safe area inset in pixels.`),right:B().describe(`Right safe area inset in pixels.`),bottom:B().describe(`Bottom safe area inset in pixels.`),left:B().describe(`Left safe area inset in pixels.`)}).optional().describe(`Mobile safe area boundaries in pixels.`)}).passthrough(),Vv=U({method:K(`ui/notifications/host-context-changed`),params:Bv.describe(`Partial context update containing only changed fields.`)});U({method:K(`ui/update-model-context`),params:U({content:H(h_).optional().describe(`Context content blocks (text, image, etc.).`),structuredContent:G(z(),V().describe(`Structured content for machine-readable context data.`)).optional().describe(`Structured content for machine-readable context data.`)})}),U({method:K(`ui/initialize`),params:U({appInfo:ag.describe(`App identification (name and version).`),appCapabilities:Iv.describe(`Features and capabilities this app provides.`),protocolVersion:z().describe(`Protocol version this app supports.`)})});var Hv=U({protocolVersion:z().describe(`Negotiated protocol version string (e.g., \"2025-11-21\").`),hostInfo:ag.describe(`Host application identification and version.`),hostCapabilities:Fv.describe(`Features and capabilities provided by the host.`),hostContext:Bv.describe(`Rich context about the host environment.`)}).passthrough(),Uv={target:`draft-2020-12`};async function Wv(e,t){let n=e[`~standard`];if(n.jsonSchema)return n.jsonSchema[t](Uv);if(n.vendor===`zod`){let{z:n}=await Promise.resolve().then(()=>(Oh(),Eh));return n.toJSONSchema(e,{io:t})}throw Error(`Schema (vendor: ${n.vendor}) does not implement Standard JSON Schema (~standard.jsonSchema). Use a library that does (zod v4, ArkType, Valibot) or wrap your schema accordingly.`)}async function Gv(e,t,n=``){let r=await e[`~standard`].validate(t);if(r.issues){let e=r.issues.map(e=>{let t=e.path?.map(e=>typeof e==`object`?e.key:e).join(`.`);return t?`${t}: ${e.message}`:e.message}).join(`; `);throw Error(n+e)}return r.value}function Kv(){let e=document.documentElement.getAttribute(`data-theme`);return e===`dark`||e===`light`?e:document.documentElement.classList.contains(`dark`)?`dark`:`light`}function qv(e){let t=document.documentElement;t.setAttribute(`data-theme`,e),t.style.colorScheme=e}function Jv(e,t=document.documentElement){for(let[n,r]of Object.entries(e))r!==void 0&&t.style.setProperty(n,r)}function Yv(e){if(document.getElementById(`__mcp-host-fonts`))return;let t=document.createElement(`style`);t.id=`__mcp-host-fonts`,t.textContent=e,document.head.appendChild(t)}var Xv=class e extends _v{_appInfo;_capabilities;options;_hostCapabilities;_hostInfo;_hostContext;_registeredTools={};_initializedSent=!1;_assertInitialized(e){if(this._initializedSent)return;let t=`[ext-apps] App.${e}() called before connect() completed the ui/initialize handshake. Await app.connect() before calling this method, or move data loading to an ontoolresult handler.`;if(this.options?.strict)throw Error(t);console.warn(`${t}. This will throw in a future release.`)}eventSchemas={toolinput:Ov,toolinputpartial:kv,toolresult:zv,toolcancelled:Av,hostcontextchanged:Vv};static ONE_SHOT_EVENTS=new Set([`toolinput`,`toolinputpartial`,`toolresult`,`toolcancelled`]);_everHadListener=new Set;_assertHandlerTiming(t){if(!e.ONE_SHOT_EVENTS.has(t)||this._everHadListener.has(t)||(this._everHadListener.add(t),!this._initializedSent))return;let n=`[ext-apps] \"${String(t)}\" handler registered after connect() completed the ui/initialize handshake. The host may have already sent this notification. Register handlers before calling app.connect().`;if(this.options?.strict)throw Error(n);console.warn(n)}setEventHandler(e,t){t&&this._assertHandlerTiming(e),super.setEventHandler(e,t)}addEventListener(e,t){this._assertHandlerTiming(e),super.addEventListener(e,t)}onEventDispatch(e,t){e===`hostcontextchanged`&&(this._hostContext={...this._hostContext,...t})}constructor(e,t={},n={autoResize:!0}){super(n),this._appInfo=e,this._capabilities=t,this.options=n,n.allowUnsafeEval||p({jitless:!0}),this.setRequestHandler(hg,e=>(console.log(`Received ping:`,e.params),{})),this.setEventHandler(`hostcontextchanged`,void 0)}registerCapabilities(e){if(this.transport)throw Error(`Cannot register capabilities after transport is established`);this._capabilities=gv(this._capabilities,e)}registerTool(e,t,n){if(this._registeredTools[e])throw Error(`Tool ${e} is already registered`);let r=this,i=()=>{r._initializedSent&&r._capabilities.tools?.listChanged&&r.sendToolListChanged()},a=t.inputSchema!==void 0,o={title:t.title,description:t.description,inputSchema:t.inputSchema,outputSchema:t.outputSchema,annotations:t.annotations,_meta:t._meta,enabled:!0,enable(){this.enabled=!0,i()},disable(){this.enabled=!1,i()},update(e){Object.assign(this,e),i()},remove(){r._registeredTools[e]===o&&(delete r._registeredTools[e],i())},handler:async(t,r)=>{if(!o.enabled)throw Error(`Tool ${e} is disabled`);let i;if(a){let a=o.inputSchema;i=await n(a?await Gv(a,t??{},`Invalid input for tool ${e}: `):t??{},r)}else i=await n(r);return o.outputSchema&&!i.isError&&(i.structuredContent=await Gv(o.outputSchema,i.structuredContent,`Invalid output for tool ${e}: `)),i}};return this._registeredTools[e]=o,!this._capabilities.tools&&!this.transport&&this.registerCapabilities({tools:{listChanged:!0}}),this.ensureToolHandlersInitialized(),i(),o}_toolHandlersInitialized=!1;ensureToolHandlersInitialized(){this._toolHandlersInitialized||(this._toolHandlersInitialized=!0,this.oncalltool=async(e,t)=>{let n=this._registeredTools[e.name];if(!n)throw Error(`Tool ${e.name} not found`);return n.handler(e.arguments,t)},this.onlisttools=async(e,t)=>({tools:await Promise.all(Object.entries(this._registeredTools).filter(([e,t])=>t.enabled).map(async([e,t])=>{let n={name:e,title:t.title,description:t.description,inputSchema:t.inputSchema?await Wv(t.inputSchema,`input`):{type:`object`,properties:{}}};return t.outputSchema&&(n.outputSchema=await Wv(t.outputSchema,`output`)),t.annotations&&(n.annotations=t.annotations),t._meta&&(n._meta=t._meta),n}))}))}async sendToolListChanged(e={}){this._assertInitialized(`sendToolListChanged`),await this.notification({method:`notifications/tools/list_changed`,params:e})}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}get ontoolinput(){return this.getEventHandler(`toolinput`)}set ontoolinput(e){this.setEventHandler(`toolinput`,e)}get ontoolinputpartial(){return this.getEventHandler(`toolinputpartial`)}set ontoolinputpartial(e){this.setEventHandler(`toolinputpartial`,e)}get ontoolresult(){return this.getEventHandler(`toolresult`)}set ontoolresult(e){this.setEventHandler(`toolresult`,e)}get ontoolcancelled(){return this.getEventHandler(`toolcancelled`)}set ontoolcancelled(e){this.setEventHandler(`toolcancelled`,e)}get onhostcontextchanged(){return this.getEventHandler(`hostcontextchanged`)}set onhostcontextchanged(e){this.setEventHandler(`hostcontextchanged`,e)}_onteardown;get onteardown(){return this._onteardown}set onteardown(e){this.warnIfRequestHandlerReplaced(`onteardown`,this._onteardown,e),this._onteardown=e,this.replaceRequestHandler(Nv,(e,t)=>{if(!this._onteardown)throw Error(`No onteardown handler set`);return this._onteardown(e.params,t)})}_oncalltool;get oncalltool(){return this._oncalltool}set oncalltool(e){this.warnIfRequestHandlerReplaced(`oncalltool`,this._oncalltool,e),this._oncalltool=e,this.replaceRequestHandler(E_,(e,t)=>{if(!this._oncalltool)throw Error(`No oncalltool handler set`);return this._oncalltool(e.params,t)})}_onlisttools;get onlisttools(){return this._onlisttools}set onlisttools(e){this.warnIfRequestHandlerReplaced(`onlisttools`,this._onlisttools,e),this._onlisttools=e,this.replaceRequestHandler(S_,(e,t)=>{if(!this._onlisttools)throw Error(`No onlisttools handler set`);return this._onlisttools(e.params,t)})}assertCapabilityForMethod(e){switch(e){case`sampling/createMessage`:if(!this._hostCapabilities?.sampling)throw Error(`Host does not support sampling (required for ${e})`);break}}assertRequestHandlerCapability(e){switch(e){case`tools/call`:case`tools/list`:if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${e})`);return;case`ping`:case`ui/resource-teardown`:return;default:throw Error(`No handler for method ${e} registered`)}}assertNotificationCapability(e){}assertTaskCapability(e){throw Error(`Tasks are not supported in MCP Apps`)}assertTaskHandlerCapability(e){throw Error(`Task handlers are not supported in MCP Apps`)}async callServerTool(e,t){if(this._assertInitialized(`callServerTool`),typeof e==`string`)throw Error(`callServerTool() expects an object as its first argument, but received a string (\"${e}\"). Did you mean: callServerTool({ name: \"${e}\", arguments: { ... } })?`);return await this.request({method:`tools/call`,params:e},w_,{onprogress:()=>{},resetTimeoutOnProgress:!0,...t})}async readServerResource(e,t){return this._assertInitialized(`readServerResource`),await this.request({method:`resources/read`,params:e},Yg,t)}async listServerResources(e,t){return this._assertInitialized(`listServerResources`),await this.request({method:`resources/list`,params:e},Ug,t)}async createSamplingMessage(e,t){this._assertInitialized(`createSamplingMessage`);let n=e.tools?H_:V_;return await this.request({method:`sampling/createMessage`,params:e},n,t)}sendMessage(e,t){return this._assertInitialized(`sendMessage`),this.request({method:`ui/message`,params:e},Tv,t)}sendLog(e){return this.notification({method:`notifications/message`,params:e})}updateModelContext(e,t){return this._assertInitialized(`updateModelContext`),this.request({method:`ui/update-model-context`,params:e},eg,t)}openLink(e,t){return this._assertInitialized(`openLink`),this.request({method:`ui/open-link`,params:e},Cv,t)}sendOpenLink=this.openLink;downloadFile(e,t){return this._assertInitialized(`downloadFile`),this.request({method:`ui/download-file`,params:e},wv,t)}requestTeardown(e={}){return this.notification({method:`ui/notifications/request-teardown`,params:e})}requestDisplayMode(e,t){return this._assertInitialized(`requestDisplayMode`),this.request({method:`ui/request-display-mode`,params:e},Lv,t)}sendSizeChanged(e){return this.notification({method:`ui/notifications/size-changed`,params:e})}setupSizeChangedNotifications(){let e=!1,t=0,n=0,r=()=>{e||(e=!0,requestAnimationFrame(()=>{e=!1;let r=document.documentElement,i=r.style.height;r.style.height=`max-content`;let a=Math.ceil(r.getBoundingClientRect().height);r.style.height=i;let o=Math.ceil(window.innerWidth);(o!==t||a!==n)&&(t=o,n=a,this.sendSizeChanged({width:o,height:a}))}))};r();let i=new ResizeObserver(r);return i.observe(document.documentElement),i.observe(document.body),()=>i.disconnect()}async connect(e=new yv(window.parent,window.parent),t){if(this.transport)throw Error(`App is already connected. Call close() before connecting again.`);this._initializedSent=!1,await super.connect(e);try{let e=await this.request({method:`ui/initialize`,params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:vv}},Hv,t);if(e===void 0)throw Error(`Server sent invalid initialize result: ${e}`);this._hostCapabilities=e.hostCapabilities,this._hostInfo=e.hostInfo,this._hostContext=e.hostContext,await this.notification({method:`ui/notifications/initialized`}),this._initializedSent=!0,this.options?.autoResize&&this.setupSizeChangedNotifications()}catch(e){throw this.close(),e}}};function Zv({appInfo:e,capabilities:t,onAppCreated:n,autoResize:r=!0,strict:i}){let[a,o]=(0,X.useState)(null),[s,c]=(0,X.useState)(!1),[l,u]=(0,X.useState)(null);return(0,X.useEffect)(()=>{let a=!0,s;async function l(){try{let l=new yv(window.parent,window.parent);if(s=new Xv(e,t,{autoResize:r,strict:i}),n?.(s),await s.connect(l),!a){s.close();return}o(s),c(!0),u(null)}catch(e){a&&(o(null),c(!1),u(e instanceof Error?e:Error(`Failed to connect`)))}}return l(),()=>{a=!1,s?.close()}},[]),{app:a,isConnected:s,error:l}}function Qv(){let[e,t]=(0,X.useState)(Kv);return(0,X.useEffect)(()=>{let e=new MutationObserver(()=>{t(Kv())});return e.observe(document.documentElement,{attributes:!0,attributeFilter:[`data-theme`,`class`],characterData:!1,childList:!1,subtree:!1}),()=>e.disconnect()},[]),e}function $v(e,t){let n=(0,X.useRef)(!1);(0,X.useEffect)(()=>{n.current||(t?.theme&&qv(t.theme),t?.styles?.variables&&Jv(t.styles.variables),(t?.theme||t?.styles?.variables)&&(n.current=!0))},[t]),(0,X.useEffect)(()=>{if(!e)return;let t=e=>{e.theme&&qv(e.theme),e.styles?.variables&&Jv(e.styles.variables)};return e.addEventListener(`hostcontextchanged`,t),()=>e.removeEventListener(`hostcontextchanged`,t)},[e])}function ey(e,t){let n=(0,X.useRef)(!1);(0,X.useEffect)(()=>{n.current||t?.styles?.css?.fonts&&(Yv(t.styles.css.fonts),n.current=!0)},[t]),(0,X.useEffect)(()=>{if(!e)return;let t=e=>{e.styles?.css?.fonts&&Yv(e.styles.css.fonts)};return e.addEventListener(`hostcontextchanged`,t),()=>e.removeEventListener(`hostcontextchanged`,t)},[e])}function ty(e,t){$v(e,t),ey(e,t)}var ny=`Tool call failed`;function ry(e){if(e.structuredContent!==void 0)return e.structuredContent;let t=e.content?.find(e=>e.type===`text`);if(t?.type===`text`)try{return JSON.parse(t.text)}catch{return{success:!e.isError,data:t.text}}}function iy(e){let t=[e.error?.trim()||ny];if(e.code&&t.push(`[${e.code}]`),e.details&&Object.keys(e.details).length>0)try{t.push(JSON.stringify(e.details))}catch{t.push(String(e.details))}return t.join(` `)}function ay(e){let t=ry(e);if(typeof t!=`object`||!t)return{data:void 0,error:e.isError?ny:void 0};let n=t;return typeof n.success==`boolean`?e.isError===!0||n.success===!1?{data:void 0,error:iy(n)}:{data:n.data,error:void 0,...oy(n)}:{data:e.isError?void 0:t,error:e.isError?ny:void 0}}function oy(e){return{...typeof e.totalCount==`number`?{totalCount:e.totalCount}:{},...typeof e.hasNextPage==`boolean`?{hasNextPage:e.hasNextPage}:{},...typeof e.nextCursor==`string`&&e.nextCursor.length>0?{nextCursor:e.nextCursor}:{}}}function sy({appInfo:e,capabilities:t={}}){let[n,r]=(0,X.useState)(void 0),[i,a]=(0,X.useState)(void 0),[o,s]=(0,X.useState)(!1),c=(0,X.useRef)(0),l=(0,X.useRef)(0),{app:u,isConnected:d,error:f}=Zv({appInfo:e,capabilities:t,autoResize:!0,onAppCreated:e=>{e.addEventListener(`toolresult`,e=>{let t=ay(e);t.error!==void 0&&console.error(`[mcp-app] tool result error`,t.error,e),r(t.data),a(t.error)}),e.addEventListener(`toolcancelled`,e=>{let t=e.reason??`Tool call cancelled`;console.error(`[mcp-app] tool cancelled`,t,e),a(t),l.current+=1,c.current=0,s(!1)})}});return ty(u,u?.getHostContext()),{app:u,isConnected:d,connectionError:f,theme:Qv(),data:n,toolError:i,isCallingTool:o,callTool:(0,X.useCallback)(async(e,t)=>{if(!u)throw Error(`Cannot call \"${e}\" before the app is connected to its host`);l.current+=1;let n=l.current;c.current+=1,s(!0);try{let i=await u.callServerTool({name:e,arguments:t??{}}),o=ay(i);return o.error!==void 0&&console.error(`[mcp-app] callTool \"${e}\" failed`,o.error,i),n===l.current&&(r(o.data),a(o.error)),o.error===void 0?o.data:void 0}finally{c.current=Math.max(0,c.current-1),c.current===0&&s(!1)}},[u])}}function cy(e,t){let[n,r]=(0,X.useState)(void 0),[i,a]=(0,X.useState)(void 0),[o,s]=(0,X.useState)(!1),c=(0,X.useRef)(0),l=(0,X.useRef)(0);return{data:n,error:i,isLoading:o,call:(0,X.useCallback)(async n=>{if(!e)throw Error(`Cannot call \"${t}\" before the app is connected to its host`);l.current+=1;let i=l.current;c.current+=1,s(!0);try{let o=await e.callServerTool({name:t,arguments:n??{}}),s=ay(o);return s.error!==void 0&&console.error(`[mcp-app] useTool \"${t}\" failed`,s.error,o),i===l.current&&(r(s.data),a(s.error)),s}catch(e){let n=e instanceof Error?e.message:String(e);return console.error(`[mcp-app] useTool \"${t}\" threw`,e),i===l.current&&(r(void 0),a(n)),{data:void 0,error:n}}finally{c.current=Math.max(0,c.current-1),c.current===0&&s(!1)}},[e,t])}}var ly=n((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),Z=n(((e,t)=>{t.exports=ly()}))(),uy=`basis-[min(85dvh,32rem)]`,dy=`bg-card flex flex-col overflow-hidden p-6 text-on-card rounded-lg`;function fy({isFullscreen:e,header:t,subheader:n,children:r,inlineContentClassName:i=uy}){return(0,Z.jsxs)(`div`,{className:e?`h-[90dvh] w-full ${dy}`:`mx-auto w-full min-w-0 max-w-view ${dy}`,children:[(0,Z.jsx)(`div`,{className:`shrink-0`,children:t}),n?(0,Z.jsx)(`div`,{className:`flex shrink-0 gap-5 pt-2`,children:n}):null,(0,Z.jsx)(`div`,{className:e?`flex min-h-0 flex-1 flex-col pt-5`:`flex min-h-0 shrink flex-1 flex-col pt-5 ${i}`,children:r})]})}function py(e){return e}var my=py({Whole:`whole`,Significant:`significant`});function hy(e,t=my.Whole){if(!Number.isFinite(e))return`0`;let n=Math.round(e);return Math.abs(n)<1e3?String(n):new Intl.NumberFormat(`en`,{notation:`compact`,...t===my.Significant?{maximumSignificantDigits:3}:{maximumFractionDigits:0}}).format(n)}function gy(){return(0,Z.jsx)(`span`,{className:`compact-count-shimmer`,\"aria-hidden\":!0})}function _y({value:e,busy:t=!1,format:n=my.Whole,className:r}){let i=t?`inline-flex h-[1lh] items-center`:`inline-flex items-center`;return(0,Z.jsx)(`span`,{className:r?`${i} ${r}`:i,\"aria-busy\":t||void 0,children:t?(0,Z.jsx)(gy,{}):hy(e,n)})}var vy=py({Active:`active`,Idle:`idle`}),yy={[vy.Active]:`bg-brand`,[vy.Idle]:`bg-content-subtle`};function by({count:e,tone:t=vy.Idle,busy:n=!1}){return(0,Z.jsx)(`span`,{className:`inline-flex w-8 shrink-0 items-center justify-center`,children:(0,Z.jsx)(`span`,{className:`inline-flex h-4 min-w-4 items-center justify-center rounded-full px-1 text-xs font-medium tabular-nums text-on-fill ${yy[t]}`,children:(0,Z.jsx)(_y,{value:e,busy:n})})})}var xy=py({Neutral:`neutral`,Emphasis:`emphasis`}),Sy={[xy.Neutral]:`inline-flex items-center rounded-sm bg-fill-neutral px-1.5 py-0.5 text-sm font-semibold uppercase tracking-wide text-on-card-subtle`,[xy.Emphasis]:`inline-flex w-fit items-center rounded-sm bg-fill-dormant px-1.5 py-0.5 text-sm font-semibold uppercase tracking-wide text-on-fill`};function Cy({children:e,tone:t=xy.Neutral}){return(0,Z.jsx)(`span`,{className:Sy[t],children:e})}var wy=1.4,Ty=2.55/wy,Ey=4.4/wy,Dy=.48/wy,Oy=`cubic-bezier(0.11, 0.41, 0.97, 0.55)`,ky=2.4/wy,Ay=1.5/wy,jy=.7/wy,My=.35/wy,Ny=.38,Py=.02,Fy=18.5,Iy=18.5,Ly=7.3,Ry=12.2,zy=17.1,By=2.5,Vy=`0 0 37 37`,Hy=10.3,Uy=`${Fy-Hy} ${Iy-Hy} ${Hy*2} ${Hy*2}`;function Wy(e,t){let n=(t-90)*Math.PI/180;return{x:Fy+e*Math.cos(n),y:Iy+e*Math.sin(n)}}function Gy(e,t,n){let r=Wy(e,t),i=Wy(e,n),a=+(((n-t)%360+360)%360>180);return`M ${r.x} ${r.y} A ${e} ${e} 0 ${a} 1 ${i.x} ${i.y}`}function Ky(e,t,n){let r=360/t;return Array.from({length:t},(t,i)=>Gy(e,i*r,i*r+n))}var qy=Ky(Ry,5,52),Jy=Ky(zy,10,22);function Yy(e){let t=Math.sin(e*12.9898)*43758.5453;return t-Math.floor(t)}function Xy(e,t){let n=Yy(e*17.13+t*91.7)*Dy,r=Ty+Yy(e*23.71+t*53.9)*(Ey-Ty);return{animationDelay:`${n}s`,animationDuration:`${r}s`}}function Zy(e,t){return{width:`${t}px`,height:`${t}px`,\"--transcend-logo-spinner-trim-duration\":`${4.964285714285714/2}s`,\"--transcend-logo-spinner-trim-ease\":Oy,\"--transcend-logo-spinner-inner-duration\":`${e?Ay:ky}s`,\"--transcend-logo-spinner-fill-duration\":`${e?My:jy}s`,\"--transcend-logo-spinner-inner-tip\":`${Py} ${1-Py}`,\"--transcend-logo-spinner-inner-rest\":`${1-Ny} ${Ny}`}}var Qy=py({Default:`default`,Small:`small`});function $y({variant:e=Qy.Default,size:t,color:n=`var(--color-on-card-subtle)`,trackColor:r=`var(--color-card-line)`,label:i=`Loading`}){let a=e===Qy.Small,o=(0,Z.jsx)(`svg`,{className:`block overflow-visible`,style:Zy(a,t??(a?20:55)),viewBox:a?Uy:Vy,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,\"aria-hidden\":`true`,children:(0,Z.jsxs)(`g`,{strokeWidth:a?4:By,strokeLinecap:`round`,fill:`none`,children:[(0,Z.jsxs)(`g`,{transform:`rotate(-90 ${Fy} ${Iy})`,children:[(0,Z.jsx)(`circle`,{cx:Fy,cy:Iy,r:Ly,stroke:r}),(0,Z.jsx)(`circle`,{className:`transcend-logo-spinner-inner`,cx:Fy,cy:Iy,r:Ly,stroke:n,pathLength:1})]}),a?null:[{segments:qy,seed:2,name:`middle`},{segments:Jy,seed:3,name:`outer`}].map(({segments:e,seed:t,name:i})=>e.map((e,a)=>(0,Z.jsxs)(`g`,{children:[(0,Z.jsx)(`path`,{d:e,stroke:r}),(0,Z.jsx)(`path`,{className:`transcend-logo-spinner-trim`,d:e,stroke:n,pathLength:1,style:Xy(t,a)})]},`${i}-${a}`)))]})});return a?(0,Z.jsx)(`span`,{className:`inline-flex items-center justify-center leading-none`,role:`status`,\"aria-label\":i,\"aria-busy\":`true`,children:o}):(0,Z.jsxs)(`div`,{className:`flex flex-1 flex-col items-center justify-center gap-3 py-8`,role:`status`,\"aria-label\":i,\"aria-busy\":`true`,children:[o,i?(0,Z.jsx)(`p`,{className:`text-sm text-on-card-muted`,\"aria-hidden\":`true`,children:i}):null]})}var eb=py({Primary:`primary`,Secondary:`secondary`,Action:`action`,Icon:`icon`,Text:`text`}),tb=`inline-flex shrink-0 cursor-pointer items-center rounded-sm border bg-card hover:not-disabled:bg-card-sunken disabled:cursor-not-allowed disabled:opacity-60`,nb={idle:`border-card-line`,active:`border-brand`},rb={[eb.Primary]:`inline-flex cursor-pointer items-center justify-center gap-2 rounded-sm bg-brand px-3 py-1.5 text-sm font-medium text-on-fill hover:bg-brand-hovered disabled:cursor-not-allowed disabled:opacity-60`,[eb.Secondary]:`${tb} gap-1.5 px-2 py-1 text-sm text-on-card`,[eb.Action]:`${tb} h-9 px-2.5 text-sm font-medium`,[eb.Icon]:`${tb} size-9 justify-center`,[eb.Text]:`inline-flex cursor-pointer items-center gap-1 border-0 bg-transparent p-0 text-sm font-medium text-on-card-subtle hover:underline disabled:cursor-not-allowed disabled:opacity-60`};function ib({variant:e=eb.Secondary,busy:t=!1,busyLabel:n,active:r=!1,disabled:i,className:a,children:o,type:s=`button`,...c}){let l=e!==eb.Primary&&e!==eb.Text?`${rb[e]} ${r?nb.active:nb.idle}`:rb[e];return(0,Z.jsxs)(`button`,{type:s,className:a?`${l} ${a}`:l,disabled:i||t,\"aria-busy\":t||void 0,...c,children:[t?(0,Z.jsx)($y,{variant:Qy.Small,label:n??(typeof o==`string`?o:`Loading`)}):null,e!==eb.Icon||!t?o:null]})}var ab=`<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\" fill=\"none\">\n <path\n d=\"M3.2 7.6L6.6 11L12.8 3.8\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n`,ob=`<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\" fill=\"none\">\n <path\n d=\"M4 4L12 12M12 4L4 12\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n</svg>\n`,sb=`<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\" fill=\"none\">\n <path\n d=\"M0.75 3.25C0.75 1.87 1.87 0.75 3.25 0.75H13.25C14.63 0.75 15.75 1.87 15.75 3.25V15.33C15.75 15.48 15.67 15.62 15.54 15.7C15.4 15.77 15.24 15.77 15.11 15.69L12.55 14.08H3.25C1.87 14.08 0.75 12.96 0.75 11.58V3.25Z\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path d=\"M4.92 5.75H8.25\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" />\n <path d=\"M11.58 5.75H10.75\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" />\n <path d=\"M11.58 9.08H8.25\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" />\n <path d=\"M4.92 9.08H5.75\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" />\n</svg>\n`,cb=/^<svg\\b([^>]*)>([\\s\\S]*)<\\/svg>\\s*$/i;function lb({svg:e,width:t=16,height:n=16,\"aria-hidden\":r=!0,...i}){let a=cb.exec(e.trim());if(!a)throw Error(`SvgIcon expected a single root <svg>…</svg> document`);let[,o=``,s=``]=a;return(0,Z.jsx)(`svg`,{viewBox:db(o,`viewBox`)??`0 0 16 16`,fill:db(o,`fill`)??`none`,width:t,height:n,\"aria-hidden\":r,...i,dangerouslySetInnerHTML:{__html:s}})}function ub(e,t){function n(t){return(0,Z.jsx)(lb,{svg:e,...t})}return n.displayName=t,n}function db(e,t){return RegExp(`\\\\b${t}\\\\s*=\\\\s*[\"']([^\"']*)[\"']`,`i`).exec(e)?.[1]}var fb=`<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\" fill=\"none\">\n <path\n d=\"M10.37 14.01H5.64C4.86 14.01 4.21 13.4 4.15 12.62L3.5 4.25H12.51L11.86 12.62C11.8 13.4 11.15 14.01 10.37 14.01Z\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path d=\"M13.34 4.25H2.67\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" />\n <path\n d=\"M6.13 2H9.88C10.29 2 10.63 2.34 10.63 2.75V4.25H5.38V2.75C5.38 2.34 5.71 2 6.13 2Z\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n d=\"M7 8.11L9 9.9M7.11 10L8.9 8\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n`;function pb(e){return(0,Z.jsx)(`svg`,{viewBox:`0 0 11 8`,fill:`none`,\"aria-hidden\":`true`,width:16,height:16,...e,children:(0,Z.jsx)(`path`,{d:`M0.75 3.42L4.08 6.75L10.08 0.75`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})})}var mb=ub(ab,`ApproveCheckIcon`),hb=ub(ob,`CancelIcon`),gb=ub(fb,`TrashIcon`),_b=ub(sb,`CommentIcon`);function vb(e){return(0,Z.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,\"aria-hidden\":`true`,width:24,height:24,...e,children:(0,Z.jsx)(`path`,{d:`M8 10L12 14L16 10`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})})}function yb(e){return(0,Z.jsxs)(`svg`,{width:16,height:16,viewBox:`0 0 24 24`,fill:`none`,\"aria-hidden\":`true`,...e,children:[(0,Z.jsx)(`path`,{d:`M12 3.99666C7.96456 3.99728 4.56082 7.00215 4.05982 11.0064C3.55881 15.0106 6.11729 18.7615 10.0282 19.7563C13.9391 20.7512 17.9789 18.6788 19.4521 14.9219C20.9254 11.165 19.3712 6.89889 15.8266 4.97006`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,Z.jsx)(`path`,{d:`M15.8265 8.04635V4.50888H19.364`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]})}function bb(e){return(0,Z.jsxs)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,\"aria-hidden\":`true`,width:16,height:16,...e,children:[(0,Z.jsx)(`path`,{d:`M2.5 6.5V2.5H6.5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,Z.jsx)(`path`,{d:`M13.5 6.5V2.5H9.5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,Z.jsx)(`path`,{d:`M2.5 9.5V13.5H6.5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,Z.jsx)(`path`,{d:`M13.5 9.5V13.5H9.5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]})}function xb(e){return(0,Z.jsxs)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,\"aria-hidden\":`true`,width:16,height:16,...e,children:[(0,Z.jsx)(`path`,{d:`M6.5 2.5V6.5H2.5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,Z.jsx)(`path`,{d:`M9.5 2.5V6.5H13.5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,Z.jsx)(`path`,{d:`M6.5 13.5V9.5H2.5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,Z.jsx)(`path`,{d:`M9.5 13.5V9.5H13.5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]})}var Sb=8,Cb=4,wb=8,Tb=224;function Eb(e,t){let n=t.height-e.bottom-Cb-wb,r=e.top-Cb-wb,i=n<Tb&&r>n,a=Math.max(0,i?r:n),o=Math.max(wb,t.width-e.width-wb);return{left:Math.min(Math.max(wb,e.left),o),minWidth:e.width,maxHeight:Math.min(Tb,a),...i?{bottom:t.height-e.top+Cb}:{top:e.bottom+Cb}}}function Db(e,t){let n=e.getBoundingClientRect(),r=window.innerWidth-n.right-Sb>=256;return{text:t,top:Math.max(8,n.top),left:r?n.right+Sb:Math.max(8,n.left-Sb-256)}}var Ob=l(),kb=(0,X.memo)(function({ariaLabel:e,listboxLabel:t,selected:n,options:r,disabled:i=!1,onChange:a,renderValue:o,renderOption:s}){let[c,l]=(0,X.useState)(!1),[u,d]=(0,X.useState)(),[f,p]=(0,X.useState)(),m=(0,X.useRef)(null),h=(0,X.useRef)(null),g=(0,X.useRef)(null),_=(0,X.useId)(),v=(0,X.useId)(),y=new Set(n);(0,X.useLayoutEffect)(()=>{if(!c||!h.current){p(void 0);return}function e(){h.current&&p(Eb(h.current.getBoundingClientRect(),{width:window.innerWidth,height:window.innerHeight}))}return e(),window.addEventListener(`scroll`,e,!0),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`scroll`,e,!0),window.removeEventListener(`resize`,e)}},[c]),(0,X.useEffect)(()=>{if(!c){d(void 0);return}function e(e){let t=e.target;m.current?.contains(t)||g.current?.contains(t)||l(!1)}function t(e){e.key===`Escape`&&l(!1)}function n(){d(void 0)}return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),window.addEventListener(`scroll`,n,!0),window.addEventListener(`resize`,n),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t),window.removeEventListener(`scroll`,n,!0),window.removeEventListener(`resize`,n)}},[c]);async function b(e){let t=r.find(t=>t.id===e);i||t?.disabled||await a(y.has(e)?n.filter(t=>t!==e):[...n,e])}function x(e,t){if(!t){d(void 0);return}d(Db(e,t))}return(0,Z.jsxs)(`div`,{className:`relative min-w-0`,ref:m,children:[(0,Z.jsxs)(`button`,{ref:h,type:`button`,className:`flex w-full min-w-0 cursor-pointer items-start gap-2 rounded-sm border bg-card px-1.5 py-1.5 text-left disabled:cursor-not-allowed disabled:opacity-60 ${c?`border-focus`:`border-card-line`}`,\"aria-haspopup\":`listbox`,\"aria-expanded\":c,\"aria-controls\":_,\"aria-label\":e,disabled:i||r.length===0,onClick:()=>l(e=>!e),children:[(0,Z.jsx)(`span`,{className:`flex min-w-0 flex-1 flex-wrap items-center gap-1`,children:o(n,r)}),(0,Z.jsx)(`span`,{className:`mt-0.5 shrink-0 text-on-card-muted`,\"aria-hidden\":`true`,children:(0,Z.jsx)(vb,{})})]}),c&&f?(0,Ob.createPortal)((0,Z.jsx)(`div`,{ref:g,id:_,role:`listbox`,\"aria-multiselectable\":`true`,\"aria-label\":t,\"aria-describedby\":u?v:void 0,className:`fixed z-[100] w-max overflow-y-auto rounded-sm border border-card-line bg-card py-1 shadow-sm`,style:{top:f.top,bottom:f.bottom,left:f.left,minWidth:f.minWidth,maxHeight:f.maxHeight},children:r.map(e=>{let t=y.has(e.id),n=i||!!e.disabled;return(0,Z.jsxs)(`label`,{className:`flex items-center gap-2 px-2.5 py-1.5 text-sm text-on-card ${n?`cursor-not-allowed opacity-60`:`cursor-pointer`} ${t?`bg-fill-brand-subtle`:n?``:`hover:bg-card-sunken`}`,role:`option`,\"aria-selected\":t,\"aria-disabled\":n||void 0,onMouseEnter:t=>{x(t.currentTarget,e.disabledReason)},onMouseLeave:()=>{d(void 0)},onFocus:t=>{x(t.currentTarget,e.disabledReason)},onBlur:()=>{d(void 0)},children:[(0,Z.jsx)(`input`,{type:`checkbox`,className:`sr-only`,checked:t,disabled:n,onChange:()=>{b(e.id)}}),(0,Z.jsx)(`span`,{className:`min-w-0 flex-1 whitespace-nowrap`,children:s?s(e):e.label}),(0,Z.jsx)(`span`,{className:`inline-flex size-4 shrink-0 items-center justify-center text-brand ${t?`opacity-100`:`opacity-0`}`,\"aria-hidden\":`true`,children:(0,Z.jsx)(pb,{width:12,height:12})})]},e.id)})}),document.body):null,u?(0,Ob.createPortal)((0,Z.jsx)(`div`,{id:v,role:`tooltip`,className:`pointer-events-none fixed z-[100] max-w-64 rounded-sm border border-card-line bg-card px-2.5 py-1.5 text-xs leading-snug text-on-card shadow-sm`,style:{top:u.top,left:u.left,maxWidth:256},children:u.text}),document.body):null]})});function Ab({title:e,children:t,confirmLabel:n,cancelLabel:r=`Cancel`,busyLabel:i,onConfirm:a,onCancel:o,busy:s=!1}){let c=(0,X.useId)(),l=(0,X.useId)();return(0,X.useEffect)(()=>{function e(e){e.key===`Escape`&&!s&&(e.preventDefault(),o())}return window.addEventListener(`keydown`,e),()=>{window.removeEventListener(`keydown`,e)}},[s,o]),(0,Ob.createPortal)((0,Z.jsx)(`div`,{className:`fixed inset-0 z-[200] flex items-center justify-center bg-black/40 p-4`,role:`presentation`,onMouseDown:e=>{!s&&e.target===e.currentTarget&&o()},children:(0,Z.jsxs)(`div`,{role:`alertdialog`,\"aria-modal\":`true`,\"aria-labelledby\":c,\"aria-describedby\":l,className:`w-full max-w-md rounded-sm border border-card-line bg-card p-4 shadow-sm`,children:[(0,Z.jsx)(`h2`,{id:c,className:`text-base font-medium text-on-card font-semibold`,children:e}),(0,Z.jsx)(`div`,{id:l,className:`mt-2 text-sm text-on-card-muted`,children:t}),(0,Z.jsxs)(`div`,{className:`mt-4 flex flex-wrap justify-end gap-2`,children:[(0,Z.jsx)(ib,{variant:eb.Secondary,disabled:s,autoFocus:!0,onClick:o,children:r}),(0,Z.jsx)(ib,{variant:eb.Primary,busy:s,busyLabel:i??n,onClick:a,children:n})]})]})}),document.body)}function jb(e){let[t,n]=(0,X.useState)(`inline`),[r,i]=(0,X.useState)([]);(0,X.useEffect)(()=>{if(!e)return;let t=()=>{let t=e.getHostContext();t?.displayMode!==void 0&&n(t.displayMode),t?.availableDisplayModes!==void 0&&i(t.availableDisplayModes)};return t(),e.addEventListener(`hostcontextchanged`,t),()=>{e.removeEventListener(`hostcontextchanged`,t)}},[e]);let a=(0,X.useCallback)(async t=>{if(!e||!r.includes(t))return;let i=await e.requestDisplayMode({mode:t});return n(i.mode),i.mode},[e,r]);return{displayMode:t,availableDisplayModes:r,canFullscreen:r.includes(`fullscreen`),isFullscreen:t===`fullscreen`,requestDisplayMode:a}}var Mb=(0,X.memo)(function({app:e,className:t}){let{canFullscreen:n,isFullscreen:r,requestDisplayMode:i}=jb(e);return(0,X.useEffect)(()=>{if(!r)return;function e(e){e.key!==`Escape`||e.defaultPrevented||document.querySelector(`[aria-modal=\"true\"], [role=\"listbox\"]`)||(e.preventDefault(),i(`inline`))}return window.addEventListener(`keydown`,e),()=>{window.removeEventListener(`keydown`,e)}},[r,i]),n?(0,Z.jsx)(ib,{type:`button`,className:t,\"aria-pressed\":r,variant:eb.Icon,onClick:()=>{i(r?`inline`:`fullscreen`)},children:r?(0,Z.jsx)(xb,{}):(0,Z.jsx)(bb,{})}):null});function Nb({title:e,message:t,action:n}){return(0,Z.jsxs)(`section`,{className:`shrink-0 rounded-sm border border-danger/40 bg-surface px-3 py-2`,role:`alert`,children:[(0,Z.jsx)(`p`,{className:`text-sm font-semibold text-danger`,children:e}),typeof t==`string`?(0,Z.jsx)(`p`,{className:`text-sm text-danger whitespace-pre-wrap break-words`,children:t}):t,n?(0,Z.jsx)(`div`,{className:`mt-2`,children:n}):null]})}function Pb({label:e,value:t,valueClassName:n,busy:r=!1}){return(0,Z.jsxs)(`div`,{className:`flex min-w-16 flex-col gap-1 border border-card-line rounded-md p-2 grow-0 shrink-0 basis-[108px]`,children:[(0,Z.jsx)(`div`,{className:`text-sm uppercase`,children:e}),(0,Z.jsx)(`div`,{className:n?`text-heading-md font-semibold tabular-nums ${n}`:`text-heading-md font-semibold tabular-nums`,children:(0,Z.jsx)(_y,{value:t,busy:r,format:my.Significant})})]})}var Fb=(0,X.memo)(function({items:e,selectedId:t,onSelect:n,ariaLabel:r,idPrefix:i=`mcp-tab`}){function a(e){n(e),document.getElementById(`${i}-${e}`)?.focus()}function o(t,n){let r;switch(t.key){case`ArrowRight`:r=(n+1)%e.length;break;case`ArrowLeft`:r=(n-1+e.length)%e.length;break;case`Home`:r=0;break;case`End`:r=e.length-1;break;default:return}t.preventDefault();let i=e[r];i!==void 0&&a(i.id)}return(0,Z.jsx)(`div`,{className:`border-b border-line-subtle`,children:(0,Z.jsx)(`div`,{className:`flex flex-wrap gap-x-6 gap-y-1`,role:`tablist`,\"aria-label\":r,children:e.map((e,r)=>{let a=e.id===t;return(0,Z.jsxs)(`button`,{type:`button`,role:`tab`,\"aria-selected\":a,tabIndex:a?0:-1,id:`${i}-${e.id}`,className:a?`relative -mb-px flex cursor-pointer items-center gap-1 border-b-2 border-brand bg-transparent pb-2 pt-1 text-sm font-medium text-brand`:`relative -mb-px flex cursor-pointer items-center gap-1 border-b-2 border-transparent bg-transparent pb-2 pt-1 text-sm font-medium text-on-card-subtle`,onClick:()=>n(e.id),onKeyDown:e=>o(e,r),children:[(0,Z.jsx)(`span`,{children:e.label}),e.count===void 0?null:(0,Z.jsx)(by,{count:e.count,busy:e.countBusy,tone:a?vy.Active:vy.Idle})]},e.id)})})})});function Ib({status:e,shownCount:t,totalCount:n,title:r=`All caught up`,message:i,action:a,children:o}){return e===`done`?(0,Z.jsxs)(`div`,{className:`flex flex-col items-center gap-2 py-8 text-center`,children:[(0,Z.jsx)(`p`,{className:`text-heading-sm font-semibold text-on-card`,children:r}),i?(0,Z.jsx)(`p`,{className:`text-md text-on-card-muted`,children:i}):null,o?(0,Z.jsx)(`p`,{className:`text-sm text-on-card-subtle`,children:o}):null]}):(0,Z.jsxs)(`div`,{className:`flex flex-col items-center gap-2 py-5 text-center`,children:[(0,Z.jsxs)(`p`,{className:`text-sm text-on-card-subtle`,children:[t.toLocaleString(`en-US`),` of `,n.toLocaleString(`en-US`),` shown`]}),a,o?(0,Z.jsx)(`p`,{className:`text-sm text-on-card-subtle`,children:o}):null]})}var Lb=`mx-auto w-full max-w-view rounded-lg bg-surface-raised px-6 py-5 shadow-sm`,Rb=`mb-1 text-heading-md font-semibold text-content`,zb=`text-sm text-content-muted`;function Bb({message:e,detail:t,title:n=`Could not reach the host`}){return(0,Z.jsxs)(`section`,{className:`${Lb} border-l-4 border-l-danger`,role:`alert`,children:[(0,Z.jsx)(`h1`,{className:Rb,children:n}),(0,Z.jsx)(`p`,{className:`text-sm text-danger whitespace-pre-wrap break-words`,children:e}),t?(0,Z.jsx)(`div`,{className:`${zb} mt-2`,children:t}):null]})}function Vb({label:e}){return(0,Z.jsx)(`section`,{className:Lb,\"aria-busy\":`true`,children:(0,Z.jsx)($y,{label:e})})}function Hb({labels:e=[],children:t}){return(0,Z.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,Z.jsx)(`div`,{className:`flex min-w-0 flex-wrap`,children:e.map(e=>(0,Z.jsx)(`span`,{className:`before:content-['·'] before:mr-1 before:ml-1 first:before:content-none uppercase text-sm`,children:e},e))}),t?(0,Z.jsx)(`div`,{className:`flex shrink-0 items-center gap-2`,children:t}):null]})}function Ub({app:e,href:t,label:n}){return(0,Z.jsx)(`a`,{className:`cursor-pointer text-brand-text no-underline`,href:t,onClick:n=>{n.preventDefault(),e&&e.openLink({url:t})},children:n})}var Wb=d(),Gb=(0,X.createContext)(null),Kb=(0,X.createContext)(null),qb=(0,X.createContext)(null),Jb=(0,X.createContext)(null),Yb=(0,X.createContext)(null),Xb=(0,X.createContext)({}),Zb=(0,X.createContext)(null);function Qb(){let e=(0,X.useContext)(Gb);if(!e)throw Error(`useCookieTriageMeta must be used within CookieTriageProvider`);return e}function $b(){let e=(0,X.useContext)(Kb);if(!e)throw Error(`useCookieTriageSummary must be used within CookieTriageProvider`);return e}function ex(){let e=(0,X.useContext)(qb);if(!e)throw Error(`useCookieTriageChrome must be used within CookieTriageProvider`);return e}function tx(){let e=(0,X.useContext)(Jb);if(!e)throw Error(`useCookieTriageActiveCategory must be used within CookieTriageProvider`);return e}function nx(){let e=(0,X.useContext)(Yb);if(!e)throw Error(`useCookieTriageActions must be used within CookieTriageProvider`);return e}function rx(){return ex().selectedPurpose}function ix(e){return(0,X.useContext)(Xb)[e]??[]}function ax(){let e=(0,X.useContext)(Zb);if(!e)throw Error(`useRequestDelete must be used within CookieTriageLoaded`);return e}var ox=py({Cookies:`cookies`,DataFlows:`data_flows`}),sx=py({Approve:`approve`,Junk:`junk`,Review:`review`}),cx=py({Idle:`idle`,Loading:`loading`,Ready:`ready`,Error:`error`}),lx=`https://app.transcend.io`,ux={singular:`cookie`,plural:`cookies`,singularTitle:`Cookie`,pluralTitle:`Cookies`},dx={singular:`data flow`,plural:`data flows`,singularTitle:`Data flow`,pluralTitle:`Data flows`},fx={[ox.Cookies]:`/consent-manager/cookies`,[ox.DataFlows]:`/consent-manager/data-flows`};function px(e,t=lx){let n=e===ox.Cookies?ux:dx,r=t.replace(/\\/+$/,``);return{...n,dashboardUrl:`${r}${fx[e]}`}}var mx=(0,X.memo)(function({app:e}){let t=cy(e,`admin_get_organization`),{triageType:n}=Qb(),{isRefreshing:r}=ex(),{refresh:i}=nx();(0,X.useEffect)(()=>{e&&t.call({})},[e,t.call]);let a=new Date().toLocaleDateString(`en-GB`,{day:`numeric`,month:`short`,year:`numeric`}),o=[`Scan`,t.data?.name,a].filter(e=>typeof e==`string`&&e.length>0),{plural:s}=px(n);return(0,Z.jsxs)(Hb,{labels:o,children:[(0,Z.jsx)(ib,{variant:eb.Icon,busy:r,busyLabel:`Refreshing ${s}`,onClick:()=>i(),children:(0,Z.jsx)(yb,{})}),(0,Z.jsx)(Mb,{app:e})]})}),hx=(0,X.memo)(function(){let{triagedCount:e,dormantCount:t,pendingCount:n,summaryBusy:r}=$b();return(0,Z.jsxs)(`div`,{className:`flex shrink justify-end gap-2 items-start`,children:[(0,Z.jsx)(Pb,{label:`Pending`,value:n,busy:r}),(0,Z.jsx)(Pb,{label:`Dormant`,value:t,busy:r,valueClassName:`text-fill-dormant`}),(0,Z.jsx)(Pb,{label:`Triaged`,value:e})]})}),gx=1e3*60*60*24*30,_x=`Unknown`,vx=py({Essential:`Essential`,Functional:`Functional`,Advertising:`Advertising`,Analytics:`Analytics`,SaleOfInfo:`SaleOfInfo`}),Q=py({...vx,Unknown:`Unknown`,Custom:`Custom`}),yx=[vx.Essential,vx.Functional,vx.Advertising,vx.Analytics,vx.SaleOfInfo],bx=[...yx,Q.Unknown,Q.Custom];function xx(e){return bx.includes(e)}var Sx=(0,X.memo)(function({triageType:e,row:t,onSave:n,open:r,onToggle:i}){let{singular:a}=px(e),o=(0,X.useRef)(null),s=(0,X.useRef)(!1),c=(0,X.useRef)(t.notes),l=(0,X.useRef)(i),[u,d]=(0,X.useState)(t.notes),[f,p]=(0,X.useState)(),[m,h]=(0,X.useState)(!1),g=u!==t.notes,_=t.notes.trim().length>0;s.current=m,c.current=t.notes,l.current=i,(0,X.useEffect)(()=>{r&&(p(void 0),d(t.notes))},[r,t.notes]),(0,X.useEffect)(()=>{r&&o.current?.focus()},[r]),(0,X.useEffect)(()=>{if(!r)return;function e(e){e.key!==`Escape`||s.current||(e.preventDefault(),p(void 0),d(c.current),l.current())}return window.addEventListener(`keydown`,e),()=>{window.removeEventListener(`keydown`,e)}},[r]);function v(){m||(p(void 0),d(t.notes),i())}async function y(){if(!(m||!g)){h(!0),p(void 0);try{await n(u)}catch(e){p(e instanceof Error?e.message:`Failed to save note`)}finally{h(!1)}}}return(0,Z.jsxs)(Z.Fragment,{children:[_&&!r?(0,Z.jsx)(`tr`,{className:`border-b border-card-line`,children:(0,Z.jsx)(`td`,{colSpan:4,className:`px-4 pb-3`,children:(0,Z.jsxs)(`div`,{className:`inline-flex max-w-[60%] items-center gap-1.5`,children:[(0,Z.jsx)(Cy,{children:`Note`}),(0,Z.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm text-on-card-muted`,children:t.notes}),(0,Z.jsx)(ib,{variant:eb.Text,className:`flex-0 font-semibold`,onClick:i,children:`Edit`})]})})}):null,r?(0,Z.jsx)(`tr`,{className:`border-b border-card-line bg-card-sunken`,children:(0,Z.jsxs)(`td`,{colSpan:4,className:`px-4 py-3`,children:[(0,Z.jsxs)(`label`,{className:`flex flex-col gap-2`,children:[(0,Z.jsxs)(`span`,{className:`sr-only`,children:[`Note for `,t.initial.name]}),(0,Z.jsx)(`textarea`,{ref:o,className:`min-h-24 w-full resize-y rounded-sm border border-card-line bg-card px-3 py-2 text-sm text-on-card placeholder:text-on-card-muted focus:border-brand-text focus:outline-none`,placeholder:`Note for the team — why this decision, who owns the ${a}, what to check next`,value:u,disabled:m,onChange:e=>{d(e.target.value)},onKeyDown:e=>{e.key===`Enter`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),y())}})]}),(0,Z.jsxs)(`div`,{className:`mt-2 flex flex-wrap items-center gap-3`,children:[(0,Z.jsx)(ib,{variant:eb.Primary,busy:m,busyLabel:`Saving`,disabled:!g,onClick:()=>{y()},children:`Save note`}),(0,Z.jsx)(ib,{variant:eb.Text,disabled:m,onClick:v,children:`Cancel`})]}),(0,Z.jsxs)(`p`,{className:`mt-2 text-sm text-on-card-muted`,children:[`Writes to the Notes field on this `,a,` in the dashboard.`]}),f?(0,Z.jsx)(`p`,{className:`mt-1 text-sm text-danger`,role:`alert`,children:f}):null]})}):null]})});new Map(yx.map((e,t)=>[e.toLowerCase(),{purpose:e,index:t}]));var Cx=new Set(yx.map(e=>e.toLowerCase()));function wx(e){return e.toLowerCase()===_x.toLowerCase()}function Tx(e){return Cx.has(e.toLowerCase())}function Ex(e){return e.lastActivityAt===void 0||new Date(e.lastActivityAt).getTime()<Date.now()-2592e6}function Dx(e){return(e.trackingPurposes??[]).some(e=>e.trim().length>0&&!wx(e))}function Ox(e){return e.occurrences===void 0||e.occurrences<5}function kx(e){return!Dx(e)||Ex(e)||Ox(e)?sx.Junk:sx.Approve}function Ax(e){if(e.decision===void 0)return kx(e.initial)}function jx(){return{totalCount:0,cookies:[],loadStatus:cx.Idle,nextOffset:0,hasNextPage:!0,countBusy:!1}}function Mx(){return{[Q.Essential]:jx(),[Q.Functional]:jx(),[Q.Advertising]:jx(),[Q.Analytics]:jx(),[Q.SaleOfInfo]:jx(),[Q.Unknown]:jx(),[Q.Custom]:jx()}}function $(e,t){switch(t){case Q.Essential:return e[Q.Essential];case Q.Functional:return e[Q.Functional];case Q.Advertising:return e[Q.Advertising];case Q.Analytics:return e[Q.Analytics];case Q.SaleOfInfo:return e[Q.SaleOfInfo];case Q.Unknown:return e[Q.Unknown];case Q.Custom:return e[Q.Custom];default:return t}}function Nx(){return[...yx]}function Px(e){return e.filter(e=>!Tx(e)&&!wx(e))}function Fx(e){return{triageType:e,categories:Mx(),selectedPurpose:Q.Essential,purposeOptions:Nx(),purposeOptionsLoaded:!1,summaryLoadStatus:cx.Loading}}function Ix(e){return e.purposeOptionsLoaded&&Px(e.purposeOptions).length===0?bx.filter(e=>e!==Q.Custom):[...bx]}function Lx(e){return e.initial.id||e.name}function Rx(e){let t=new Set;for(let n of Object.values(e))for(let e of n.cookies)e.decision!==void 0&&t.add(Lx(e));return t.size}function zx(e){let t=0,n=0,r=0;for(let i of e.cookies){if(i.decision!==void 0){r++;continue}let e=kx(i.initial);e===sx.Approve?t++:e===sx.Junk&&n++}return{approveSuggestionCount:t,junkSuggestionCount:n,triagedCount:r}}function Bx(e){let t=[];if(e.approveSuggestionCount>0&&t.push(`${e.approveSuggestionCount} approve`),e.junkSuggestionCount>0&&t.push(`${e.junkSuggestionCount} junk`),t.length!==0)return`Apply suggestions · ${t.join(` · `)}`}function Vx(e,t){if(t.length===0)return[];let n=new Set(e.cookies.filter(e=>e.decision!==void 0).map(e=>e.name));return t.filter(e=>n.has(e))}function Hx(e){if(!(e<=0))return`Undo suggestions · ${e}`}function Ux(e){return e===void 0||!Number.isFinite(e)?`—`:new Intl.NumberFormat(`en-US`).format(e)}function Wx(e,t=Date.now()){if(e===void 0)return`—`;let n=new Date(e).getTime();if(Number.isNaN(n))return`—`;let r=Math.round((n-t)/1e3),i=Math.abs(r),a=new Intl.RelativeTimeFormat(`en`,{numeric:`auto`});return i<60?a.format(r,`second`):i<3600?a.format(Math.round(r/60),`minute`):i<3600*24?a.format(Math.round(r/3600),`hour`):a.format(Math.round(r/(3600*24)),`day`)}function Gx(e){switch(e){case sx.Approve:return`Approved`;case sx.Junk:return`Junked`;case sx.Review:return`Review`;default:return e}}function Kx(e){let{triageType:t,item:n}=e,{singular:r}=px(t),i=n.trackingPurposes&&n.trackingPurposes.length>0?n.trackingPurposes.join(`, `):`none`,a=Ex(n);return[`Please recommend a triage action for this ${r} needing review.`,``,`Name: ${n.name}`,`Service: ${n.service??`Unknown`}`,`Assigned purposes: ${i}`,`Encounters: ${Ux(n.occurrences)}`,`Last activity: ${Wx(n.lastActivityAt)}`,`Dormant (no activity in 30+ days): ${a?`yes`:`no`}`,``,`Recommend one of: approve, junk, or review.`,`If approve, also recommend tracking purpose slug(s) and a one-sentence reason citing evidence.`,`Keep the response short so I can apply the decision in the triage UI.`].join(`\n`)}function qx(e,t,n){return $(e,t).cookies.find(e=>e.name===n)}function Jx(e,t,n){return e.name===t||n!==void 0&&e.initial.id===n}function Yx(e,t,n){return{...e,cookies:e.cookies.map(e=>e.name===t?{...e,...n}:e)}}function Xx(e,t,n,r){let i=!1,a={...e};for(let o of bx){let s=$(e,o),c=!1,l=s.cookies.map(e=>Jx(e,t,n)?(c=!0,{...e,...r}):e);c&&(i=!0,a[o]={...s,cookies:l})}return i?a:e}function Zx(e){return[...e.initial.trackingPurposes??[]]}function Qx(e,t){let n=e??[];if(n.length!==t.length)return!1;let r=new Set(n);return t.every(e=>r.has(e))}function $x(e,t){e.add(t.name),t.initial.id!==void 0&&e.add(t.initial.id)}function eS(e,t){e.add(t.name),t.id!==void 0&&e.add(t.id)}function tS(e){let t=new Set;for(let n of e.cookies)$x(t,n);return t}function nS(e,t){return t.name===e.name||e.id!==void 0&&t.initial.id===e.id}function rS(e){return{name:e.name,initial:structuredClone(e),notes:e.description??``}}function iS(e,t){return e===Q.Custom?(t??[]).some(e=>e.trim().length>0&&!Tx(e)&&!wx(e)):e===Q.Unknown?t?.length?t.some(wx):!0:(t??[]).some(t=>t.toLowerCase()===e.toLowerCase())}function aS(e,t,n){let r=$(e,t),i=[...r.cookies.filter(e=>e.decision!==void 0)],a=tS(r),o=[],s=[];for(let e of n){if(!iS(t,e.trackingPurposes))continue;let n=i.findIndex(t=>nS(e,t));if(n>=0){let[t]=i.splice(n,1);t!==void 0&&s.push(e);continue}a.has(e.name)||e.id!==void 0&&a.has(e.id)||(o.push(e),eS(a,e))}return{claimed:o,revived:s}}function oS(e,t){switch(t.type){case`decide`:{let n=qx(e.categories,t.purpose,t.name);return n?{...e,categories:Xx(e.categories,t.name,n.initial.id,{decision:t.decision})}:e}case`undo`:{let n=qx(e.categories,t.purpose,t.name);return!n||n.decision===void 0?e:{...e,categories:Xx(e.categories,t.name,n.initial.id,{decision:void 0})}}case`setNotes`:{let n=qx(e.categories,t.purpose,t.name);return!n||n.notes===t.notes?e:{...e,categories:Xx(e.categories,t.name,n.initial.id,{notes:t.notes})}}case`setTrackingPurposes`:{let n=$(e.categories,t.purpose),r=qx(e.categories,t.purpose,t.name);return!r||Qx(r.initial.trackingPurposes,t.trackingPurposes)?e:{...e,categories:{...e.categories,[t.purpose]:Yx(n,t.name,{initial:{...r.initial,trackingPurposes:[...t.trackingPurposes]}})}}}case`setPurposeOptions`:{if(t.purposeOptions.length===0)return e;let n=e.selectedPurpose===Q.Custom&&Px(t.purposeOptions).length===0?Q.Unknown:e.selectedPurpose;return{...e,purposeOptions:t.purposeOptions,purposeOptionsLoaded:!0,selectedPurpose:n}}case`selectPurpose`:return!bx.includes(t.purpose)||e.selectedPurpose===t.purpose?e:{...e,selectedPurpose:t.purpose};case`loadStart`:{let n=$(e.categories,t.purpose);return n.loadStatus===cx.Loading?e:{...e,categories:{...e.categories,[t.purpose]:{...n,loadStatus:cx.Loading,loadError:void 0}}}}case`refreshStart`:{let n=$(e.categories,t.purpose);if(n.loadStatus===cx.Loading)return e;let r=n.cookies.filter(e=>e.decision!==void 0);return{...e,categories:{...e.categories,[t.purpose]:{...n,cookies:r,nextOffset:0,hasNextPage:!0,loadStatus:cx.Loading,loadError:void 0,totalCount:n.totalCount}}}}case`appendPage`:{let n=$(e.categories,t.purpose),{claimed:r,revived:i}=aS(e.categories,t.purpose,t.items),a=n.cookies;if(i.length>0||r.length>0){let e=new Set;for(let t of i)eS(e,t);a=[...n.cookies.filter(t=>t.decision===void 0?!0:!e.has(t.name)&&(t.initial.id===void 0||!e.has(t.initial.id))),...i.map(rS),...r.map(rS)]}let o=t.totalCount??n.totalCount;return{...e,categories:{...e.categories,[t.purpose]:{...n,cookies:a,totalCount:o,nextOffset:n.nextOffset+t.fetchedCount,hasNextPage:t.hasNextPage,loadStatus:cx.Ready,loadError:void 0}}}}case`loadError`:{let n=$(e.categories,t.purpose);return{...e,categories:{...e.categories,[t.purpose]:{...n,loadStatus:cx.Error,loadError:t.error}}}}case`setCategoryCount`:{let n=$(e.categories,t.purpose);return{...e,categories:{...e.categories,[t.purpose]:{...n,totalCount:t.totalCount,countBusy:!1,...t.deferListLoad?{loadStatus:cx.Idle,loadError:void 0}:{}}}}}case`countFetchStart`:{let n=$(e.categories,t.purpose);return n.countBusy?e:{...e,categories:{...e.categories,[t.purpose]:{...n,countBusy:!0}}}}case`summaryLoadStart`:return e.summaryLoadStatus===cx.Loading?e:{...e,summaryLoadStatus:cx.Loading};case`setSummaryTotals`:return{...e,summaryLoadStatus:cx.Ready,...t.pendingTotal===void 0?{}:{pendingTotal:t.pendingTotal},...t.dormantTotal===void 0?{}:{dormantTotal:t.dormantTotal}};case`remove`:{let n=qx(e.categories,t.purpose,t.name);if(!n)return e;let r=n.decision===void 0,i=r&&Ex(n.initial),a=n.initial.id,o=!1,s={...e.categories};for(let n of bx){let r=$(e.categories,n),i=r.cookies.filter(e=>!Jx(e,t.name,a)),c=r.cookies.length-i.length;c!==0&&(o=!0,s[n]={...r,cookies:i,totalCount:Math.max(0,r.totalCount-c)})}return o?{...e,categories:s,...r&&e.pendingTotal!==void 0?{pendingTotal:Math.max(0,e.pendingTotal-1)}:{},...i&&e.dormantTotal!==void 0?{dormantTotal:Math.max(0,e.dormantTotal-1)}:{}}:e}default:return e}}var sS={[Q.Essential]:`border-purpose-essential text-purpose-essential`,[Q.Functional]:`border-purpose-functional text-purpose-functional`,[Q.Advertising]:`border-purpose-advertising text-purpose-advertising`,[Q.Analytics]:`border-purpose-analytics text-purpose-analytics`,[Q.SaleOfInfo]:`border-purpose-sale text-purpose-sale`,[Q.Custom]:`border-purpose-other text-purpose-other`,[Q.Unknown]:`border-purpose-other text-purpose-other`};function cS(e){switch(e){case Q.Essential:return sS[Q.Essential];case Q.Functional:return sS[Q.Functional];case Q.Advertising:return sS[Q.Advertising];case Q.Analytics:return sS[Q.Analytics];case Q.SaleOfInfo:return sS[Q.SaleOfInfo];case Q.Custom:return sS[Q.Custom];case Q.Unknown:return sS[Q.Unknown];default:return e}}function lS(e){return`border bg-fill-neutral ${e!==void 0&&xx(e)?cS(e):sS[Q.Custom]}`}var uS=vx.Essential,dS=`Essential cannot be combined with other purposes. Clear Essential first.`,fS=`Essential cannot be combined with other purposes. Clear the other purposes first.`;function pS(e){return e.toLowerCase()===uS.toLowerCase()}function mS(e,t){if(t.some(t=>t===e))return;let n=t.some(pS),r=t.some(e=>!pS(e));return pS(e)?r?fS:void 0:n?dS:void 0}function hS(e,t){let n=e.filter(e=>!wx(e)),r=new Set(n),i=t.filter(e=>e.length>0&&!wx(e)&&!r.has(e));return i.length===0?[...n]:[...i,...n]}function gS(e,t){let n=new Set(e),r=[];for(let e of t)n.has(e)&&(r.push(e),n.delete(e));for(let t of e)n.has(t)&&(r.push(t),n.delete(t));return r}var _S=(0,X.memo)(function({itemName:e,selected:t,options:n,disabled:r=!1,onChange:i}){let a=(0,X.useMemo)(()=>hS(n,t),[n,t]),o=(0,X.useMemo)(()=>gS(t,a),[t,a]),s=(0,X.useMemo)(()=>a.map(e=>{let t=mS(e,o);return{id:e,label:e,...t?{disabled:!0,disabledReason:t}:{}}}),[o,a]),c=(0,X.useCallback)(e=>i(gS(e,a)),[i,a]),l=(0,X.useCallback)(e=>e.length===0?(0,Z.jsx)(`span`,{className:`inline-flex h-6 items-center rounded-sm border border-card-line bg-card px-1.5 text-sm text-on-card-muted`,children:`Select`}):e.map(e=>(0,Z.jsx)(`span`,{className:`inline-flex h-6 max-w-full items-center truncate rounded-sm px-1.5 text-sm ${lS(e)}`,children:e},e)),[]),u=(0,X.useCallback)(e=>(0,Z.jsx)(`span`,{className:`inline-flex h-6 max-w-full items-center truncate rounded-sm px-1.5 text-sm ${lS(e.id)}`,children:e.id}),[]);return(0,Z.jsx)(kb,{ariaLabel:`Tracking purposes for ${e}`,listboxLabel:`Choose tracking purposes for ${e}`,selected:o,options:s,disabled:r,onChange:c,renderValue:l,renderOption:u})}),vS=(0,X.memo)(function({purpose:e,row:t}){let{triageType:n,purposeOptions:r}=Qb(),{decide:i,undo:a,askOpinion:o,updateNotes:s,updatePurpose:c}=nx(),l=ax(),[u,d]=(0,X.useState)(!1),[f,p]=(0,X.useState)(!1),[m,h]=(0,X.useState)(),[g,_]=(0,X.useState)(!1),v=t.initial,y=Ex(v),b=Ax(t),x=Zx(t),ee=t.decision,te=ee===sx.Approve||ee===sx.Junk,S=u||f,ne=t.notes.trim().length>0,{singular:re}=px(n),ie=(0,X.useCallback)(async n=>{if(!(f||n===t.decision)){p(!0),h(void 0);try{await i(e,t.name,n)}catch(e){h(e instanceof Error?e.message:`Failed to save decision`)}finally{p(!1)}}},[i,f,e,t.decision,t.name]),C=(0,X.useCallback)(async()=>{if(!(f||t.decision===void 0)){p(!0),h(void 0);try{await a(e,t.name)}catch(e){h(e instanceof Error?e.message:`Failed to undo decision`)}finally{p(!1)}}},[f,e,t.decision,t.name,a]),ae=(0,X.useCallback)(async()=>{if(!u){d(!0),h(void 0);try{await o(e,t.name)}catch(e){h(e instanceof Error?e.message:`Failed to ask for a recommendation`)}finally{d(!1)}}},[o,u,e,t.name]),oe=(0,X.useCallback)(async n=>{if(!f){p(!0),h(void 0);try{await c(e,t.name,n)}catch(e){h(e instanceof Error?e.message:`Failed to update purposes`)}finally{p(!1)}}},[f,e,t.name,c]),se=(0,X.useCallback)(n=>s(e,t.name,n),[e,t.name,s]);function ce(){_(e=>!e)}return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(`tr`,{className:`align-middle ${ne||g?``:`border-b border-card-line`}`,children:[(0,Z.jsx)(`td`,{className:`min-w-0 px-4 py-3`,children:(0,Z.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-0.5`,children:[(0,Z.jsx)(`span`,{className:`text-sm font-medium text-on-card break-all`,children:v.name}),(0,Z.jsx)(`span`,{className:`text-sm text-on-card-muted break-words`,children:v.service??`Unknown`})]})}),(0,Z.jsx)(`td`,{className:`min-w-0 px-4 py-3`,children:(0,Z.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-0.5`,children:[(0,Z.jsx)(`span`,{className:`text-sm tabular-nums text-on-card`,children:Ux(v.occurrences)}),(0,Z.jsx)(`span`,{className:`text-sm text-on-card-muted break-words`,children:Wx(v.lastActivityAt)}),y?(0,Z.jsx)(`span`,{className:`mt-0.5`,children:(0,Z.jsx)(Cy,{tone:xy.Emphasis,children:`DORMANT`})}):null]})}),(0,Z.jsx)(`td`,{className:`min-w-0 px-4 py-3`,children:(0,Z.jsx)(_S,{itemName:v.name,selected:x,options:r,disabled:S,onChange:oe})}),(0,Z.jsx)(`td`,{className:`min-w-0 px-4 py-3`,children:(0,Z.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,Z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2.5`,role:`group`,\"aria-label\":`Decision`,children:[(0,Z.jsx)(ib,{variant:eb.Action,title:`Ask the assistant what action to take`,disabled:S,\"aria-busy\":u,onClick:()=>{ae()},children:`Ask Agent`}),(0,Z.jsx)(ib,{variant:eb.Icon,active:g||ne,\"aria-label\":g?`Close note`:`Add note`,\"aria-pressed\":g,title:g?`Close note`:`Add note`,onClick:ce,children:(0,Z.jsx)(_b,{})}),te?(0,Z.jsxs)(`span`,{className:`inline-flex items-baseline gap-2 text-sm`,children:[(0,Z.jsx)(`span`,{className:`font-semibold ${ee===sx.Approve?`text-success`:`text-danger`}`,\"aria-label\":`Decision: ${Gx(ee)}`,children:Gx(ee)}),(0,Z.jsx)(ib,{variant:eb.Text,className:`text-on-card-muted`,\"aria-label\":`Undo decision`,disabled:S,\"aria-busy\":f,onClick:()=>{C()},children:f?`Undoing`:`Undo`})]}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(ib,{variant:eb.Icon,active:b===sx.Approve,\"aria-label\":`Approve`,disabled:S,\"aria-busy\":f,onClick:()=>{ie(sx.Approve)},children:(0,Z.jsx)(mb,{})}),(0,Z.jsx)(ib,{variant:eb.Icon,active:b===sx.Junk,\"aria-label\":`Junk`,disabled:S,\"aria-busy\":f,onClick:()=>{ie(sx.Junk)},children:(0,Z.jsx)(hb,{})}),(0,Z.jsx)(ib,{variant:eb.Icon,\"aria-label\":`Delete`,disabled:S,\"aria-busy\":f,title:`Permanently delete this ${re}`,onClick:()=>{_(!1),l({purpose:e,name:t.name,itemLabel:v.name})},children:(0,Z.jsx)(gb,{})})]})]}),m?(0,Z.jsx)(`p`,{className:`text-sm text-danger`,role:`alert`,children:m}):null]})})]}),(0,Z.jsx)(Sx,{triageType:n,row:t,open:g,onToggle:ce,onSave:se})]})}),yS=`px-4 py-2.5 text-left text-sm font-semibold uppercase text-on-card`,bS=(0,X.memo)(function({triageType:e,purpose:t,cookies:n,footer:r}){let{singularTitle:i}=px(e);return(0,Z.jsxs)(`div`,{className:`min-h-0 min-w-0 w-full flex-1 overflow-y-auto overflow-x-hidden`,children:[(0,Z.jsxs)(`table`,{className:`w-full table-fixed border-collapse`,children:[(0,Z.jsxs)(`colgroup`,{children:[(0,Z.jsx)(`col`,{className:`w-[26%]`}),(0,Z.jsx)(`col`,{className:`w-[16%]`}),(0,Z.jsx)(`col`,{className:`w-[24%]`}),(0,Z.jsx)(`col`,{className:`w-[34%]`})]}),(0,Z.jsx)(`thead`,{className:`sticky top-0 z-10`,children:(0,Z.jsxs)(`tr`,{className:`border-b border-card-line bg-card`,children:[(0,Z.jsxs)(`th`,{scope:`col`,className:yS,children:[(0,Z.jsx)(`span`,{className:`block`,children:i}),(0,Z.jsx)(`span`,{className:`block font-normal text-on-card-subtle`,children:`Service`})]}),(0,Z.jsxs)(`th`,{scope:`col`,className:yS,children:[(0,Z.jsx)(`span`,{className:`block`,children:`Encounters`}),(0,Z.jsx)(`span`,{className:`block font-normal text-on-card-subtle`,children:`Last activity`})]}),(0,Z.jsx)(`th`,{scope:`col`,className:yS,children:`Purpose`}),(0,Z.jsx)(`th`,{scope:`col`,className:yS,children:`Decision`})]})}),(0,Z.jsx)(`tbody`,{children:n.map(e=>(0,Z.jsx)(vS,{purpose:t,row:e},`${t}:${e.name}`))})]}),r?(0,Z.jsx)(`div`,{className:`px-4`,children:r}):null]})}),xS=(0,X.memo)(function({app:e,purpose:t}){let{triageType:n,dashboardUrl:r}=Qb(),i=tx(),a=ix(t),{loadMore:o,applySuggestions:s,undoSuggestions:c}=nx(),[l,u]=(0,X.useState)(),[d,f]=(0,X.useState)(),{plural:p,dashboardUrl:m}=px(n,r),h=(0,X.useMemo)(()=>Bx(zx(i)),[i]),g=(0,X.useMemo)(()=>Vx(i,a),[i,a]),_=(0,X.useMemo)(()=>Hx(g.length),[g.length]),v=l===`apply`?{mode:`apply`,label:h??`Apply suggestions`}:l===`undo`?{mode:`undo`,label:_??`Undo suggestions`}:_===void 0?h===void 0?void 0:{mode:`apply`,label:h}:{mode:`undo`,label:_},y=i.loadStatus===cx.Loading,b=y&&i.cookies.length===0,x=y&&i.cookies.length>0,ee=l!==void 0,te=i.cookies.length,S=Math.min(20,Math.max(0,i.totalCount-te));async function ne(){u(`apply`),f(void 0);try{await s(t)}catch(e){f({title:`Failed to apply suggestions`,message:e instanceof Error?e.message:String(e)})}finally{u(void 0)}}async function re(){u(`undo`),f(void 0);try{await c(t)}catch(e){f({title:`Failed to undo suggestions`,message:e instanceof Error?e.message:String(e)})}finally{u(void 0)}}return(0,Z.jsxs)(`section`,{className:`flex min-h-0 min-w-0 flex-1 flex-col gap-4 pt-4`,\"aria-labelledby\":`cookie-triage-group-${t}`,children:[(0,Z.jsxs)(`div`,{className:`flex min-w-0 shrink-0 justify-between gap-4 items-center`,children:[(0,Z.jsx)(`div`,{className:`flex min-w-0 flex-col gap-0.5`,children:(0,Z.jsxs)(`div`,{className:`flex flex-wrap items-baseline gap-2.5`,children:[(0,Z.jsx)(`h2`,{id:`cookie-triage-group-${t}`,className:`text-heading-sm font-semibold text-on-card`,children:t}),(0,Z.jsxs)(`span`,{className:`text-sm text-on-card-subtle`,children:[i.totalCount.toLocaleString(`en-US`),` `,p]})]})}),(0,Z.jsx)(ib,{variant:eb.Primary,className:`shrink-0`,busy:ee,busyLabel:l===`undo`?`Undoing suggestions`:`Applying suggestions`,disabled:ee||!v,onClick:()=>{v?.mode===`undo`?re():ne()},children:v?.label??`Apply suggestions`})]}),d?(0,Z.jsx)(Nb,{title:d.title,message:d.message}):null,b?(0,Z.jsx)(`div`,{className:`shrink-0`,\"aria-busy\":`true`,children:(0,Z.jsx)($y,{label:`Loading ${p}…`})}):null,i.loadError?(0,Z.jsx)(Nb,{title:`Failed to load ${p}`,message:i.loadError,action:(0,Z.jsx)(ib,{variant:eb.Primary,onClick:()=>o(t),children:`Retry`})}):null,i.cookies.length>0?(0,Z.jsx)(bS,{triageType:n,purpose:t,cookies:i.cookies,footer:i.loadStatus===cx.Ready||x?i.hasNextPage?(0,Z.jsxs)(Ib,{status:`more`,shownCount:te,totalCount:i.totalCount,action:(0,Z.jsxs)(ib,{variant:eb.Text,className:`text-md font-medium text-on-card`,disabled:x||S===0,busy:x,busyLabel:`Loading more`,onClick:()=>o(t),children:[`Show next `,S.toLocaleString(`en-US`),` rows`,(0,Z.jsx)(vb,{width:16,height:16,className:`shrink-0`})]}),children:[`Prefer the full list?`,` `,(0,Z.jsx)(Ub,{app:e,href:m,label:`Open in admin dashboard ↗`})]}):(0,Z.jsxs)(Ib,{status:`done`,shownCount:te,totalCount:i.totalCount,message:`No more ${p} to triage under this purpose.`,children:[`Double check in the `,(0,Z.jsx)(Ub,{app:e,href:m,label:`admin dashboard ↗`})]}):null}):!b&&!i.loadError&&i.loadStatus===cx.Ready?(0,Z.jsxs)(Ib,{status:`done`,shownCount:0,totalCount:i.totalCount,message:`No ${p} to triage under this purpose.`,children:[`Double check in the `,(0,Z.jsx)(Ub,{app:e,href:m,label:`admin dashboard ↗`})]}):null]})}),SS=(0,X.memo)(function(){let{purposes:e,selectedPurpose:t,tabs:n}=ex(),{selectPurpose:r}=nx();return(0,Z.jsx)(Fb,{items:(0,X.useMemo)(()=>e.map(e=>{let t=n.find(t=>t.id===e);return{id:e,label:e,count:t?.totalCount??0,countBusy:t?.countBusy===!0}}),[e,n]),selectedId:t,ariaLabel:`Cookie purposes`,idPrefix:`cookie-triage-tab`,onSelect:e=>{xx(e)&&r(e)}})});function CS({app:e}){let{triageType:t,dashboardUrl:n}=Qb(),r=rx(),{remove:i}=nx(),{isFullscreen:a}=jb(e),{singular:o,plural:s,pluralTitle:c,dashboardUrl:l}=px(t,n),[u,d]=(0,X.useState)(),[f,p]=(0,X.useState)(!1),[m,h]=(0,X.useState)(),g=(0,X.useCallback)(e=>{h(void 0),d(e)},[]);async function _(){if(!(!u||f)){p(!0),h(void 0);try{await i(u.purpose,u.name),d(void 0)}catch(e){h(e instanceof Error?e.message:`Failed to delete ${o}`),console.error(`[cookie-triage] remove failed`,e)}finally{p(!1)}}}return(0,Z.jsxs)(Zb.Provider,{value:g,children:[(0,Z.jsxs)(fy,{isFullscreen:a,header:(0,Z.jsx)(mx,{app:e}),subheader:(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(`span`,{className:`flex-1 shrink-1 text-sm`,children:[c,` needing review are grouped by the purpose Transcend assigned. Review each row and set a decision. You can also`,` `,(0,Z.jsx)(Ub,{app:e,href:l,label:`go to the Transcend App`}),` to review and triage `,s,`.`]}),(0,Z.jsx)(hx,{})]}),children:[(0,Z.jsx)(`div`,{className:`shrink-0`,children:(0,Z.jsx)(SS,{})}),(0,Z.jsx)(xS,{app:e,purpose:r})]}),u?(0,Z.jsxs)(Ab,{title:`Delete ${o} \"${u.itemLabel}\"?`,confirmLabel:`Delete permanently`,busyLabel:`Deleting`,busy:f,onCancel:()=>{f||(h(void 0),d(void 0))},onConfirm:()=>{_()},children:[(0,Z.jsxs)(`p`,{children:[`This permanently removes the `,o,` from your consent manager. It cannot be undone.`]}),(0,Z.jsx)(`p`,{className:`mt-2`,children:`Prefer Junk if you only want to hide it from review.`}),m?(0,Z.jsx)(`p`,{className:`mt-2 text-sm text-danger`,role:`alert`,children:m}):null]}):null]})}function wS(e){let t=[];for(let n of e){if(n.isActive===!1||n.deletedAt)continue;let e=n.trackingType?.trim();!e||wx(e)||t.push({slug:e,displayOrder:n.displayOrder??2**53-1})}return t.sort((e,t)=>e.displayOrder===t.displayOrder?e.slug.localeCompare(t.slug):e.displayOrder-t.displayOrder),t.map(e=>e.slug)}var TS=function(e){return e.Live=`LIVE`,e.NeedsReview=`NEEDS_REVIEW`,e}({}),ES=py({Asc:`ASC`,Desc:`DESC`}),DS=py({Name:`name`,CreatedAt:`createdAt`,UpdatedAt:`updatedAt`,Occurrences:`occurrences`});function OS(e=Date.now()){return new Date(e-gx).toISOString()}function kS(e,t,n,r=[]){let i=t===Q.Custom?[...r]:[t];if(i.length===0)return null;let a=e===ox.Cookies?{trackingPurposes:i}:{trackingTypes:i};return{status:TS.NeedsReview,limit:20,offset:n,orderField:DS.Occurrences,orderDirection:ES.Desc,...e===ox.DataFlows?{showZeroActivity:!0}:{},...a}}function AS(e,t,n=[]){let r=kS(e,t,0,n);return r===null?null:{...r,limit:1}}function jS(){return{status:TS.NeedsReview,limit:1,offset:0}}function MS(e=Date.now()){return{status:TS.NeedsReview,limit:1,offset:0,lastDiscoveredAtBefore:OS(e)}}function NS(e,t){if(e===void 0)return{status:TS.NeedsReview,isJunk:!1};if(e===sx.Approve)return{status:TS.Live,isJunk:!1,...t.trackingPurposes&&t.trackingPurposes.length>0?{trackingPurposes:t.trackingPurposes}:{}};if(e===sx.Junk)return{status:TS.Live,isJunk:!0};throw Error(`Unsupported triage decision: ${e}`)}function PS(e,t){if(t.length===0)throw Error(`At least one triage update target is required`);return e===ox.Cookies?{cookies:t.map(({item:e,decision:t})=>({name:e.name,...NS(t,e)}))}:{dataFlows:t.map(({item:e,decision:t})=>({id:e.id,...NS(t,e)}))}}function FS(e,t,n){return PS(e,[{item:t,decision:n}])}function IS(e,t,n){return e===ox.Cookies?{cookies:[{name:t.name,description:n}]}:{dataFlows:[{id:t.id,description:n}]}}function LS(e,t,n){return e===ox.Cookies?{cookies:[{name:t.name,trackingPurposes:n}]}:{dataFlows:[{id:t.id,trackingPurposes:n}]}}function RS(e){if(e.name===void 0||e.name.length===0)throw Error(`Cookie list node is missing a name`);if(e.id===void 0||e.id.length===0)throw Error(`Cookie list node is missing an id`);return{name:e.name,id:e.id,...e.service?.title?{service:e.service.title}:{},...e.description===void 0?{}:{description:e.description},...e.trackingPurposes?{trackingPurposes:e.trackingPurposes}:{},...e.occurrences===void 0?{}:{occurrences:e.occurrences},...e.lastDiscoveredAt?{lastActivityAt:e.lastDiscoveredAt}:{}}}function zS(e){if(e.value===void 0||e.value.length===0)throw Error(`Data-flow list node is missing a value`);if(e.id===void 0||e.id.length===0)throw Error(`Data-flow list node is missing an id`);return{name:e.value,id:e.id,...e.service?.title?{service:e.service.title}:{},...e.description===void 0?{}:{description:e.description},...e.trackingType?{trackingPurposes:e.trackingType}:{},...e.occurrences===void 0?{}:{occurrences:e.occurrences},...e.lastDiscoveredAt?{lastActivityAt:e.lastDiscoveredAt}:{}}}function BS(e,t){let n=VS(t);if(n)try{return e===ox.Cookies?RS(n):zS(n)}catch{return}}function VS(e){if(typeof e!=`object`||!e)return;let t=e,n=HS(t.service);return{...US(t.id)?{id:US(t.id)}:{},...US(t.name)?{name:US(t.name)}:{},...US(t.value)?{value:US(t.value)}:{},...n?{service:n}:{},...typeof t.description==`string`?{description:t.description}:{},...WS(t.trackingPurposes)?{trackingPurposes:WS(t.trackingPurposes)}:{},...WS(t.trackingType)?{trackingType:WS(t.trackingType)}:{},...typeof t.occurrences==`number`&&Number.isFinite(t.occurrences)?{occurrences:t.occurrences}:{},...US(t.lastDiscoveredAt)?{lastDiscoveredAt:US(t.lastDiscoveredAt)}:{}}}function HS(e){if(typeof e!=`object`||!e)return;let t=US(e.title);return t?{title:t}:void 0}function US(e){return typeof e==`string`&&e.length>0?e:void 0}function WS(e){if(!Array.isArray(e))return;let t=e.filter(e=>typeof e==`string`);return t.length>0?t:void 0}function GS(e){return e.id?`id:${e.id}`:`name:${e.name}`}async function KS(e,t,n){for(let n of t)if(e.has(n))throw Error(t.length===1?`A triage update is already in progress for this row`:`A triage update is already in progress for one or more rows`);for(let n of t)e.add(n);try{return await n()}finally{for(let n of t)e.delete(n)}}function qS(e,t,n){let r=oS(e.current,n);return e.current=r,t(n),r}function JS(e){if(e.error!==void 0)throw Error(e.error)}function YS(e){function t(t){qS(e.stateRef,e.dispatch,t)}async function n(n,r,i){let a=$(e.stateRef.current.categories,n).cookies.find(e=>e.name===r);if(!a)throw Error(`Row not found: ${r}`);if(i!==void 0&&i!==sx.Approve&&i!==sx.Junk)throw Error(`Unsupported triage decision: ${i}`);if(i===void 0&&a.decision===void 0||i!==void 0&&a.decision===i)return;let o=GS(a.initial);await KS(e.mutatingRowsRef.current,[o],async()=>{JS(await e.updateCallRef.current(FS(e.stateRef.current.triageType,a.initial,i))),t(i===void 0?{type:`undo`,purpose:n,name:r}:{type:`decide`,purpose:n,name:r,decision:i})})}async function r(n){let r=$(e.stateRef.current.categories,n).cookies.flatMap(e=>{let t=Ax(e);return t===void 0?[]:[{row:e,decision:t}]});if(r.length===0)return;let i=r.map(e=>GS(e.row.initial));await KS(e.mutatingRowsRef.current,i,async()=>{JS(await e.updateCallRef.current(PS(e.stateRef.current.triageType,r.map(({row:e,decision:t})=>({item:e.initial,decision:t})))));for(let{row:e,decision:i}of r)t({type:`decide`,purpose:n,name:e.name,decision:i});e.setAppliedSuggestionsByPurpose(e=>({...e,[n]:r.map(({row:e})=>e.name)}))})}async function i(n){let r=e.appliedSuggestionsRef.current[n]??[];if(r.length===0)return;let i=r.flatMap(t=>{let r=$(e.stateRef.current.categories,n).cookies.find(e=>e.name===t);return!r||r.decision===void 0?[]:[r]});if(i.length===0){e.setAppliedSuggestionsByPurpose(e=>({...e,[n]:[]}));return}let a=i.map(e=>GS(e.initial));await KS(e.mutatingRowsRef.current,a,async()=>{JS(await e.updateCallRef.current(PS(e.stateRef.current.triageType,i.map(e=>({item:e.initial,decision:void 0})))));for(let e of i)t({type:`undo`,purpose:n,name:e.name});e.setAppliedSuggestionsByPurpose(e=>({...e,[n]:[]}))})}async function a(n,r,i){let a=$(e.stateRef.current.categories,n).cookies.find(e=>e.name===r);if(!a)throw Error(`Row not found: ${r}`);let o=GS(a.initial);e.pendingNotesRef.current.set(o,i);let s=(e.notesChainRef.current.get(o)??Promise.resolve()).catch(()=>void 0).then(async()=>{let i=e.pendingNotesRef.current.get(o);if(i===void 0)return;let a=$(e.stateRef.current.categories,n).cookies.find(e=>e.name===r);if(!a)throw e.pendingNotesRef.current.delete(o),Error(`Row not found: ${r}`);if(a.notes===i){e.pendingNotesRef.current.delete(o);return}JS(await e.updateCallRef.current(IS(e.stateRef.current.triageType,a.initial,i))),t({type:`setNotes`,purpose:n,name:r,notes:i}),e.pendingNotesRef.current.get(o)===i&&e.pendingNotesRef.current.delete(o)});e.notesChainRef.current.set(o,s);try{await s}finally{e.notesChainRef.current.get(o)===s&&e.notesChainRef.current.delete(o)}}async function o(n,r){let i=$(e.stateRef.current.categories,n).cookies.find(e=>e.name===r);if(!i)throw Error(`Row not found: ${r}`);let a=GS(i.initial);await KS(e.mutatingRowsRef.current,[a],async()=>{let i=e.stateRef.current.triageType,{singular:a}=px(i),o=$(e.stateRef.current.categories,n).cookies.find(e=>e.name===r);if(!o)throw Error(`Row not found: ${r}`);if(!o.initial.id)throw Error(`${a} \"${r}\" is missing an id and cannot be deleted`);JS(await e.deleteCallRef.current({ids:[o.initial.id]})),t({type:`remove`,purpose:n,name:r})})}async function s(n,r,i){let a=i.map(e=>e.trim()).filter(e=>e.length>0),o=$(e.stateRef.current.categories,n).cookies.find(e=>e.name===r);if(!o)throw Error(`Row not found: ${r}`);let s=o.initial.trackingPurposes??[];if(s.length===a.length&&s.every(e=>a.includes(e))&&a.every(e=>s.includes(e)))return;let c=GS(o.initial);await KS(e.mutatingRowsRef.current,[c],async()=>{JS(await e.updateCallRef.current(LS(e.stateRef.current.triageType,o.initial,a))),t({type:`setTrackingPurposes`,purpose:n,name:r,trackingPurposes:a})})}return{persistDecision:n,applySuggestions:r,undoSuggestions:i,persistNotes:a,persistRemove:o,persistPurposes:s}}function XS(e){function t(t){return qS(e.stateRef,e.dispatch,t)}async function n(n){t({type:`summaryLoadStart`});let[r,i]=await Promise.all([e.callRef.current(jS()),e.callRef.current(MS())]);if(n?.())return;let a=r.error===void 0?r.totalCount:void 0,o=i.error===void 0?i.totalCount:void 0;t({type:`setSummaryTotals`,...a===void 0?{}:{pendingTotal:a},...o===void 0?{}:{dormantTotal:o}})}async function r(n,r){let i=e.stateRef.current,a=i.triageType,o=AS(a,n,Px(i.purposeOptions));if(o!==null){if(r?.afterRefresh){if(e.inFlightRef.current.has(n)||$(i.categories,n).loadStatus===cx.Loading)return;e.inFlightRef.current.add(n),i=t({type:`refreshStart`,purpose:n})}else if(r?.markBusy){if(e.countInFlightRef.current.has(n))return;e.countInFlightRef.current.add(n),$(i.categories,n).countBusy||(i=t({type:`countFetchStart`,purpose:n}))}try{let i=await e.callRef.current(o);if(r?.isCancelled?.()){r.markBusy&&t({type:`setCategoryCount`,purpose:n,totalCount:$(e.stateRef.current.categories,n).totalCount});return}if(i.error!==void 0){r?.afterRefresh?t({type:`loadError`,purpose:n,error:i.error}):r?.markBusy&&t({type:`setCategoryCount`,purpose:n,totalCount:$(e.stateRef.current.categories,n).totalCount});return}if(i.totalCount===void 0){(r?.afterRefresh||r?.markBusy)&&t({type:`setCategoryCount`,purpose:n,totalCount:$(e.stateRef.current.categories,n).totalCount,...r.afterRefresh?{deferListLoad:!0}:{}});return}t({type:`setCategoryCount`,purpose:n,totalCount:i.totalCount,...r?.afterRefresh?{deferListLoad:!0}:{}})}finally{r?.afterRefresh&&e.inFlightRef.current.delete(n),r?.markBusy&&e.countInFlightRef.current.delete(n)}}}async function i(n,r){if(e.inFlightRef.current.has(n))return;let i=e.stateRef.current,a=i.triageType,o=$(i.categories,n);if(r===`initial`&&(o.loadStatus===cx.Ready||o.loadStatus===cx.Loading)||(r===`more`||r===`refresh`)&&o.loadStatus===cx.Loading||r===`more`&&!o.hasNextPage&&o.loadStatus!==cx.Error)return;let s=Px(i.purposeOptions);if(kS(a,n,0,s)===null)return;e.inFlightRef.current.add(n),i=t(r===`refresh`?{type:`refreshStart`,purpose:n}:{type:`loadStart`,purpose:n});let c=$(i.categories,n).cookies.filter(e=>e.decision===void 0).length;try{for(let r=0;r<6;r+=1){let r=$(i.categories,n).nextOffset,o=kS(a,n,r,s);if(o===null)return;let l=await e.callRef.current(o);if(l.error!==void 0){t({type:`loadError`,purpose:n,error:l.error});return}let u=Array.isArray(l.data)?l.data:[];if(i=t({type:`appendPage`,purpose:n,items:u.map(e=>BS(a,e)).filter(e=>e!==void 0),fetchedCount:u.length,...l.totalCount===void 0?{}:{totalCount:l.totalCount},hasNextPage:l.hasNextPage??!1}),$(i.categories,n).cookies.filter(e=>e.decision===void 0).length>c||!$(i.categories,n).hasNextPage)return}}finally{e.inFlightRef.current.delete(n)}}async function a(){n();let t=e.stateRef.current.selectedPurpose,a=Ix(e.stateRef.current);await Promise.all(a.map(e=>e===t?i(e,`refresh`):r(e,{afterRefresh:!0})))}return{fetchSummaryTotals:n,fetchCategoryCount:r,fetchPurposePages:i,refresh:a}}function ZS(e){return bx.filter(t=>t!==Q.Custom&&t!==e)}var QS={[ox.Cookies]:`consent_list_cookies`,[ox.DataFlows]:`consent_list_data_flows`},$S={[ox.Cookies]:`consent_update_cookies`,[ox.DataFlows]:`consent_update_data_flows`},eC={[ox.Cookies]:`consent_delete_cookies`,[ox.DataFlows]:`consent_delete_data_flows`},tC=`consent_list_purposes`;function nC(e){let t=Ix(e);return{selectedPurpose:e.selectedPurpose,purposes:t,isRefreshing:Object.values(e.categories).some(e=>e.loadStatus===cx.Loading),tabs:t.map(t=>{let n=$(e.categories,t);return{id:t,totalCount:n.totalCount,countBusy:n.countBusy===!0||n.loadStatus===cx.Loading,loadStatus:n.loadStatus}})}}function rC(e){return[e.selectedPurpose,e.isRefreshing?`1`:`0`,e.purposes.join(`,`),e.tabs.map(e=>`${e.id}:${e.totalCount}:${+!!e.countBusy}:${e.loadStatus}`).join(`|`)].join(`/`)}function iC({triageType:e,dashboardUrl:t,app:n,children:r}){let[i,a]=(0,X.useReducer)(oS,e,Fx),[o,s]=(0,X.useState)({}),c=cy(n,QS[e]),l=cy(n,$S[e]),u=cy(n,eC[e]),d=cy(n,tC),f=(0,X.useRef)(i);f.current=i;let p=(0,X.useRef)(o);p.current=o;let m=(0,X.useRef)(c.call);m.current=c.call;let h=(0,X.useRef)(l.call);h.current=l.call;let g=(0,X.useRef)(u.call);g.current=u.call;let _=(0,X.useRef)(d.call);_.current=d.call;let v=(0,X.useRef)(new Set),y=(0,X.useRef)(new Set),b=(0,X.useRef)(new Set),x=(0,X.useRef)(new Map),ee=(0,X.useRef)(new Map),te=(0,X.useRef)(n);te.current=n;let S=(0,X.useRef)(void 0);S.current===void 0&&(S.current=YS({stateRef:f,appliedSuggestionsRef:p,setAppliedSuggestionsByPurpose:s,updateCallRef:h,deleteCallRef:g,mutatingRowsRef:b,notesChainRef:x,pendingNotesRef:ee,dispatch:a}));let ne=S.current,re=(0,X.useRef)(void 0);re.current===void 0&&(re.current=XS({stateRef:f,callRef:m,purposesCallRef:_,inFlightRef:v,countInFlightRef:y,dispatch:a}));let ie=re.current;(0,X.useEffect)(()=>{if(!n)return;let e=!1;return(async()=>{let t=await _.current({limit:100});if(e||t.error!==void 0||!Array.isArray(t.data))return;let n=wS(t.data);n.length!==0&&a({type:`setPurposeOptions`,purposeOptions:n})})(),()=>{e=!0}},[n]),(0,X.useEffect)(()=>{if(!n)return;let e=!1;return(async()=>{let t=f.current.selectedPurpose;t!==Q.Custom&&qS(f,a,{type:`countFetchStart`,purpose:Q.Custom}),await Promise.all(ZS(t).map(t=>ie.fetchCategoryCount(t,{markBusy:!0,isCancelled:()=>e})))})(),()=>{e=!0}},[n,ie,e]),(0,X.useEffect)(()=>{if(!n)return;let e=!1;return ie.fetchSummaryTotals(()=>e),()=>{e=!0}},[n,ie,e]),(0,X.useEffect)(()=>{n&&ie.fetchPurposePages(i.selectedPurpose,`initial`)},[n,ie,i.selectedPurpose]);let C=Px(i.purposeOptions).join(`,`);(0,X.useEffect)(()=>{if(!(!n||!i.purposeOptionsLoaded)){if(C.length===0){a({type:`setCategoryCount`,purpose:Q.Custom,totalCount:$(f.current.categories,Q.Custom).totalCount});return}f.current.selectedPurpose===Q.Custom?ie.fetchPurposePages(Q.Custom,`initial`):ie.fetchCategoryCount(Q.Custom,{markBusy:!0})}},[n,C,ie,i.purposeOptionsLoaded]);let ae=(0,X.useMemo)(()=>({decide:(e,t,n)=>ne.persistDecision(e,t,n),applySuggestions:ne.applySuggestions,undoSuggestions:ne.undoSuggestions,undo:(e,t)=>ne.persistDecision(e,t,void 0),updateNotes:ne.persistNotes,updatePurpose:ne.persistPurposes,selectPurpose:e=>a({type:`selectPurpose`,purpose:e}),loadMore:e=>{ie.fetchPurposePages(e,`more`)},refresh:()=>{ie.refresh()},askOpinion:async(e,t)=>{let n=te.current;if(!n)throw Error(`Not connected to the host`);let r=$(f.current.categories,e).cookies.find(e=>e.name===t);if(!r)throw Error(`Row not found: ${t}`);if((await n.sendMessage({role:`user`,content:[{type:`text`,text:Kx({triageType:f.current.triageType,item:r.initial})}]})).isError)throw Error(`Host rejected the recommendation request`)},remove:ne.persistRemove}),[ie,ne]),oe=(0,X.useMemo)(()=>({triageType:i.triageType,dashboardUrl:t,purposeOptions:i.purposeOptions}),[t,i.purposeOptions,i.triageType]),se=Rx(i.categories),ce=(0,X.useMemo)(()=>({pendingCount:i.pendingTotal??0,dormantCount:i.dormantTotal??0,triagedCount:se,summaryBusy:i.summaryLoadStatus===cx.Loading}),[i.dormantTotal,i.pendingTotal,i.summaryLoadStatus,se]),le=nC(i),w=rC(le),ue=(0,X.useRef)(le);rC(ue.current)!==w&&(ue.current=le);let T=ue.current,E=$(i.categories,i.selectedPurpose);return(0,Z.jsx)(Gb.Provider,{value:oe,children:(0,Z.jsx)(Kb.Provider,{value:ce,children:(0,Z.jsx)(qb.Provider,{value:T,children:(0,Z.jsx)(Jb.Provider,{value:E,children:(0,Z.jsx)(Xb.Provider,{value:o,children:(0,Z.jsx)(Yb.Provider,{value:ae,children:r})})})})})})}function aC(){let{app:e,isConnected:t,connectionError:n,data:r}=sy({appInfo:{name:`transcend-consent-cookie-triage`,version:`1.0.0`},capabilities:{availableDisplayModes:[`inline`,`fullscreen`]}}),[i,a]=(0,X.useState)(),[o,s]=(0,X.useState)();return(0,X.useEffect)(()=>{r?.triageType&&a(e=>e??r.triageType),r?.dashboardUrl&&s(e=>e??r.dashboardUrl)},[r?.dashboardUrl,r?.triageType]),n?(0,Z.jsx)(Bb,{message:n.message,detail:`See the browser console for the full error.`}):!t||i===void 0||o===void 0?(0,Z.jsx)(Vb,{label:t?`Loading triage…`:`Connecting to the host…`}):(0,Z.jsx)(iC,{triageType:i,dashboardUrl:o,app:e,children:(0,Z.jsx)(CS,{app:e})},i)}var oC=document.getElementById(`root`);if(!oC)throw Error(`MCP App view \"cookie-triage\" could not start: the document has no #root container`);(0,Wb.createRoot)(oC).render((0,Z.jsx)(X.StrictMode,{children:(0,Z.jsx)(aC,{})}))})();\n <\/script>\n </body>\n</html>\n",
|
|
861
|
-
moduleUrl: import.meta.url,
|
|
862
|
-
view: "cookie-triage"
|
|
863
|
-
}),
|
|
864
|
-
prefersBorder: false
|
|
865
|
-
});
|
|
866
|
-
//#endregion
|
|
867
|
-
//#region src/lib/cookieTriageConfig.ts
|
|
868
|
-
/**
|
|
869
|
-
* Tunable constants and shared enums for the consent triage MCP App.
|
|
870
|
-
*
|
|
871
|
-
* Keep experience knobs here so purpose tabs, fetch caps, and suggestion
|
|
872
|
-
* thresholds can be adjusted in one place.
|
|
873
|
-
*/
|
|
874
|
-
/** Page size the triage view requests from list tools */
|
|
875
|
-
const COOKIE_TRIAGE_UI_PAGE_SIZE = 20;
|
|
876
|
-
/** Max cookies shown per purpose bucket in the triage UI */
|
|
877
|
-
const COOKIE_TRIAGE_MAX_PER_PURPOSE = 100;
|
|
878
|
-
/** Page size when the triage app pulls NEEDS_REVIEW items (baseline hosts) */
|
|
879
|
-
const COOKIE_TRIAGE_FETCH_PAGE_SIZE = 100;
|
|
880
|
-
/** Soft cap for a single triage app open across all purpose tabs */
|
|
881
|
-
const COOKIE_TRIAGE_FETCH_MAX = 600;
|
|
882
|
-
/** Encounter count below which a row is suggested as junk */
|
|
883
|
-
const COOKIE_TRIAGE_MIN_OCCURRENCES = 5;
|
|
884
|
-
/** API / tab slug for cookies with no assigned tracking purpose */
|
|
885
|
-
const COOKIE_TRIAGE_UNKNOWN_PURPOSE_SLUG = "Unknown";
|
|
886
|
-
/** Built-in tracking-purpose slugs used by the default triage tabs (rank order) */
|
|
887
|
-
const CookieTriageDefaultPurpose = makeEnum({
|
|
888
|
-
/** Strictly necessary */
|
|
889
|
-
Essential: "Essential",
|
|
890
|
-
/** Functional / preference */
|
|
891
|
-
Functional: "Functional",
|
|
892
|
-
/** Advertising / marketing */
|
|
893
|
-
Advertising: "Advertising",
|
|
894
|
-
/** Analytics / measurement */
|
|
895
|
-
Analytics: "Analytics",
|
|
896
|
-
/** Sale of personal information */
|
|
897
|
-
SaleOfInfo: "SaleOfInfo"
|
|
898
|
-
});
|
|
899
|
-
/** Primary purpose bucket used when grouping cookies for triage */
|
|
900
|
-
const CookieTriagePurposeCategory = makeEnum({
|
|
901
|
-
...CookieTriageDefaultPurpose,
|
|
902
|
-
/** No assigned tracking purpose */
|
|
903
|
-
Unknown: "Unknown",
|
|
904
|
-
/** Org-defined non-default purposes */
|
|
905
|
-
Custom: "Custom"
|
|
906
|
-
});
|
|
907
|
-
/** Built-in tracking-purpose slugs used by the default triage tabs */
|
|
908
|
-
const COOKIE_TRIAGE_DEFAULT_PURPOSE_SLUGS = [
|
|
909
|
-
CookieTriageDefaultPurpose.Essential,
|
|
910
|
-
CookieTriageDefaultPurpose.Functional,
|
|
911
|
-
CookieTriageDefaultPurpose.Advertising,
|
|
912
|
-
CookieTriageDefaultPurpose.Analytics,
|
|
913
|
-
CookieTriageDefaultPurpose.SaleOfInfo
|
|
914
|
-
];
|
|
915
|
-
/** Display order for purpose tabs in the cookie triage UI */
|
|
916
|
-
const COOKIE_TRIAGE_PURPOSE_ORDER = [
|
|
917
|
-
...COOKIE_TRIAGE_DEFAULT_PURPOSE_SLUGS,
|
|
918
|
-
CookieTriagePurposeCategory.Unknown,
|
|
919
|
-
CookieTriagePurposeCategory.Custom
|
|
920
|
-
];
|
|
921
|
-
//#endregion
|
|
922
|
-
//#region src/lib/cookieTriageTypes.ts
|
|
923
|
-
/** What the consent triage review app loads from the API */
|
|
924
|
-
const ConsentTriageType = makeEnum({
|
|
925
|
-
/** Cookie inventory triage */
|
|
926
|
-
Cookies: "cookies",
|
|
927
|
-
/** Data-flow inventory triage */
|
|
928
|
-
DataFlows: "data_flows"
|
|
929
|
-
});
|
|
930
|
-
/** User triage decision for a cookie or data-flow row */
|
|
931
|
-
const CookieTriageDecision = makeEnum({
|
|
932
|
-
/** Approve and mark LIVE */
|
|
933
|
-
Approve: "approve",
|
|
934
|
-
/** Mark LIVE + junk */
|
|
935
|
-
Junk: "junk",
|
|
936
|
-
/** Keep in review (explicit review decision) */
|
|
937
|
-
Review: "review"
|
|
938
|
-
});
|
|
939
|
-
/** Per-tab / overview fetch status */
|
|
940
|
-
const CookieTriageLoadStatus = makeEnum({
|
|
941
|
-
/** Not started */
|
|
942
|
-
Idle: "idle",
|
|
943
|
-
/** In flight */
|
|
944
|
-
Loading: "loading",
|
|
945
|
-
/** Succeeded */
|
|
946
|
-
Ready: "ready",
|
|
947
|
-
/** Failed */
|
|
948
|
-
Error: "error"
|
|
949
|
-
});
|
|
950
|
-
//#endregion
|
|
951
|
-
//#region src/lib/projectTriageItem.ts
|
|
952
|
-
/** Project a cookie list node into the slim triage row shape. */
|
|
953
|
-
function projectCookieForTriage(cookie) {
|
|
954
|
-
if (cookie.name === void 0 || cookie.name.length === 0) throw new Error("Cookie list node is missing a name");
|
|
955
|
-
if (cookie.id === void 0 || cookie.id.length === 0) throw new Error("Cookie list node is missing an id");
|
|
956
|
-
return {
|
|
957
|
-
name: cookie.name,
|
|
958
|
-
id: cookie.id,
|
|
959
|
-
...cookie.service?.title ? { service: cookie.service.title } : {},
|
|
960
|
-
...cookie.description !== void 0 ? { description: cookie.description } : {},
|
|
961
|
-
...cookie.trackingPurposes ? { trackingPurposes: cookie.trackingPurposes } : {},
|
|
962
|
-
...cookie.occurrences !== void 0 ? { occurrences: cookie.occurrences } : {},
|
|
963
|
-
...cookie.lastDiscoveredAt ? { lastActivityAt: cookie.lastDiscoveredAt } : {}
|
|
964
|
-
};
|
|
965
|
-
}
|
|
966
|
-
/** Project a data-flow list node into the slim triage row shape. */
|
|
967
|
-
function projectDataFlowForTriage(flow) {
|
|
968
|
-
if (flow.value === void 0 || flow.value.length === 0) throw new Error("Data-flow list node is missing a value");
|
|
969
|
-
if (flow.id === void 0 || flow.id.length === 0) throw new Error("Data-flow list node is missing an id");
|
|
970
|
-
return {
|
|
971
|
-
name: flow.value,
|
|
972
|
-
id: flow.id,
|
|
973
|
-
...flow.service?.title ? { service: flow.service.title } : {},
|
|
974
|
-
...flow.description !== void 0 ? { description: flow.description } : {},
|
|
975
|
-
...flow.trackingType ? { trackingPurposes: flow.trackingType } : {},
|
|
976
|
-
...flow.occurrences !== void 0 ? { occurrences: flow.occurrences } : {},
|
|
977
|
-
...flow.lastDiscoveredAt ? { lastActivityAt: flow.lastDiscoveredAt } : {}
|
|
978
|
-
};
|
|
979
|
-
}
|
|
980
|
-
/** Project an unknown list-tool row, or `undefined` when it cannot be shown. */
|
|
981
|
-
function projectListNodeForTriage(triageType, node) {
|
|
982
|
-
const shaped = asListNode(node);
|
|
983
|
-
if (!shaped) return;
|
|
984
|
-
try {
|
|
985
|
-
return triageType === ConsentTriageType.Cookies ? projectCookieForTriage(shaped) : projectDataFlowForTriage(shaped);
|
|
986
|
-
} catch {
|
|
987
|
-
return;
|
|
988
|
-
}
|
|
989
|
-
}
|
|
990
|
-
function asListNode(node) {
|
|
991
|
-
if (node === null || typeof node !== "object") return;
|
|
992
|
-
const record = node;
|
|
993
|
-
const service = asService(record.service);
|
|
994
|
-
return {
|
|
995
|
-
...asNonEmptyString(record.id) ? { id: asNonEmptyString(record.id) } : {},
|
|
996
|
-
...asNonEmptyString(record.name) ? { name: asNonEmptyString(record.name) } : {},
|
|
997
|
-
...asNonEmptyString(record.value) ? { value: asNonEmptyString(record.value) } : {},
|
|
998
|
-
...service ? { service } : {},
|
|
999
|
-
...typeof record.description === "string" ? { description: record.description } : {},
|
|
1000
|
-
...asStringArray(record.trackingPurposes) ? { trackingPurposes: asStringArray(record.trackingPurposes) } : {},
|
|
1001
|
-
...asStringArray(record.trackingType) ? { trackingType: asStringArray(record.trackingType) } : {},
|
|
1002
|
-
...typeof record.occurrences === "number" && Number.isFinite(record.occurrences) ? { occurrences: record.occurrences } : {},
|
|
1003
|
-
...asNonEmptyString(record.lastDiscoveredAt) ? { lastDiscoveredAt: asNonEmptyString(record.lastDiscoveredAt) } : {}
|
|
1004
|
-
};
|
|
1005
|
-
}
|
|
1006
|
-
function asService(value) {
|
|
1007
|
-
if (value === null || typeof value !== "object") return;
|
|
1008
|
-
const title = asNonEmptyString(value.title);
|
|
1009
|
-
return title ? { title } : void 0;
|
|
1010
|
-
}
|
|
1011
|
-
function asNonEmptyString(value) {
|
|
1012
|
-
return typeof value === "string" && value.length > 0 ? value : void 0;
|
|
1013
|
-
}
|
|
1014
|
-
function asStringArray(value) {
|
|
1015
|
-
if (!Array.isArray(value)) return;
|
|
1016
|
-
const strings = value.filter((item) => typeof item === "string");
|
|
1017
|
-
return strings.length > 0 ? strings : void 0;
|
|
1018
|
-
}
|
|
1019
|
-
//#endregion
|
|
1020
|
-
//#region src/lib/fetchConsentTriageItems.ts
|
|
1021
|
-
const ORGANIZATION_NAME_QUERY = `
|
|
1022
|
-
query ConsentTriageOrganization {
|
|
1023
|
-
organization {
|
|
1024
|
-
name
|
|
1025
|
-
}
|
|
1026
|
-
}
|
|
1027
|
-
`;
|
|
1028
|
-
/**
|
|
1029
|
-
* Fetch the organization display name for the triage header.
|
|
1030
|
-
*
|
|
1031
|
-
* @param clients - MCP tool GraphQL clients
|
|
1032
|
-
* @returns Organization name, or a fallback when missing
|
|
1033
|
-
*/
|
|
1034
|
-
async function fetchTriageOrganizationName(clients) {
|
|
1035
|
-
return (await clients.graphql.makeRequest(ORGANIZATION_NAME_QUERY)).organization.name || "Organization";
|
|
1036
|
-
}
|
|
1037
|
-
/**
|
|
1038
|
-
* Paginate NEEDS_REVIEW cookies up to {@link COOKIE_TRIAGE_FETCH_MAX}.
|
|
1039
|
-
*
|
|
1040
|
-
* @param clients - MCP tool GraphQL clients
|
|
1041
|
-
* @returns Projected cookie rows for the triage UI
|
|
1042
|
-
*/
|
|
1043
|
-
async function fetchCookiesForTriage(clients) {
|
|
1044
|
-
const airgapBundleId = await resolveAirgapBundleId(clients.graphql);
|
|
1045
|
-
const items = [];
|
|
1046
|
-
let offset = 0;
|
|
1047
|
-
while (items.length < 600) {
|
|
1048
|
-
const pageSize = Math.min(100, 600 - items.length);
|
|
1049
|
-
const { nodes, totalCount } = (await clients.graphql.makeRequest(COOKIES, {
|
|
1050
|
-
input: { airgapBundleId },
|
|
1051
|
-
first: pageSize,
|
|
1052
|
-
offset,
|
|
1053
|
-
filterBy: { status: ConsentTrackerStatus.NeedsReview }
|
|
1054
|
-
})).cookies;
|
|
1055
|
-
items.push(...nodes.map(projectCookieForTriage));
|
|
1056
|
-
offset += nodes.length;
|
|
1057
|
-
if (nodes.length === 0 || offset >= totalCount) break;
|
|
1058
|
-
}
|
|
1059
|
-
return items;
|
|
1060
|
-
}
|
|
1061
|
-
/**
|
|
1062
|
-
* Paginate NEEDS_REVIEW data flows up to {@link COOKIE_TRIAGE_FETCH_MAX}.
|
|
1063
|
-
*
|
|
1064
|
-
* @param clients - MCP tool GraphQL clients
|
|
1065
|
-
* @returns Projected data-flow rows for the triage UI
|
|
1066
|
-
*/
|
|
1067
|
-
async function fetchDataFlowsForTriage(clients) {
|
|
1068
|
-
const airgapBundleId = await resolveAirgapBundleId(clients.graphql);
|
|
1069
|
-
const items = [];
|
|
1070
|
-
let offset = 0;
|
|
1071
|
-
while (items.length < 600) {
|
|
1072
|
-
const pageSize = Math.min(100, 600 - items.length);
|
|
1073
|
-
const { nodes, totalCount } = (await clients.graphql.makeRequest(DATA_FLOWS, {
|
|
1074
|
-
input: { airgapBundleId },
|
|
1075
|
-
first: pageSize,
|
|
1076
|
-
offset,
|
|
1077
|
-
filterBy: { status: ConsentTrackerStatus.NeedsReview }
|
|
1078
|
-
})).dataFlows;
|
|
1079
|
-
items.push(...nodes.map(projectDataFlowForTriage));
|
|
1080
|
-
offset += nodes.length;
|
|
1081
|
-
if (nodes.length === 0 || offset >= totalCount) break;
|
|
1082
|
-
}
|
|
1083
|
-
return items;
|
|
1084
|
-
}
|
|
1085
|
-
/**
|
|
1086
|
-
* Fetch NEEDS_REVIEW cookies or data flows for the triage app.
|
|
1087
|
-
*
|
|
1088
|
-
* @param clients - MCP tool GraphQL clients
|
|
1089
|
-
* @param triageType - Whether to load cookies or data flows
|
|
1090
|
-
* @returns Projected triage rows
|
|
1091
|
-
*/
|
|
1092
|
-
async function fetchConsentTriageItems(clients, triageType) {
|
|
1093
|
-
return triageType === ConsentTriageType.Cookies ? fetchCookiesForTriage(clients) : fetchDataFlowsForTriage(clients);
|
|
1094
|
-
}
|
|
1095
|
-
//#endregion
|
|
1096
|
-
//#region src/lib/resolvePrimaryCookiePurpose.ts
|
|
1097
|
-
const PURPOSE_RANK_LOOKUP = new Map(COOKIE_TRIAGE_DEFAULT_PURPOSE_SLUGS.map((purpose, index) => [purpose.toLowerCase(), {
|
|
1098
|
-
purpose,
|
|
1099
|
-
index
|
|
1100
|
-
}]));
|
|
1101
|
-
new Set(COOKIE_TRIAGE_DEFAULT_PURPOSE_SLUGS.map((slug) => slug.toLowerCase()));
|
|
1102
|
-
/**
|
|
1103
|
-
* Whether a tracking-purpose slug is the Unknown / unassigned purpose.
|
|
1104
|
-
*/
|
|
1105
|
-
function isUnknownCookiePurposeSlug(slug) {
|
|
1106
|
-
return slug.toLowerCase() === COOKIE_TRIAGE_UNKNOWN_PURPOSE_SLUG.toLowerCase();
|
|
1107
|
-
}
|
|
1108
|
-
/**
|
|
1109
|
-
* Pick the highest-ranked purpose slug when a cookie has multiple assigned purposes.
|
|
1110
|
-
*
|
|
1111
|
-
* Rank (highest first): Essential, Functional, Advertising, Analytics, SaleOfInfo.
|
|
1112
|
-
* Returns `Unknown` when the list is empty or only `Unknown`, or `Custom` when only
|
|
1113
|
-
* other non-default slugs are present.
|
|
1114
|
-
*/
|
|
1115
|
-
function resolvePrimaryCookiePurpose(trackingPurposes) {
|
|
1116
|
-
if (!trackingPurposes?.length) return CookieTriagePurposeCategory.Unknown;
|
|
1117
|
-
let best;
|
|
1118
|
-
for (const slug of trackingPurposes) {
|
|
1119
|
-
const match = PURPOSE_RANK_LOOKUP.get(slug.toLowerCase());
|
|
1120
|
-
if (match && (best === void 0 || match.index < best.index)) best = match;
|
|
1121
|
-
}
|
|
1122
|
-
if (best) return best.purpose;
|
|
1123
|
-
return trackingPurposes.some((slug) => slug.trim().length > 0 && !isUnknownCookiePurposeSlug(slug)) ? CookieTriagePurposeCategory.Custom : CookieTriagePurposeCategory.Unknown;
|
|
1124
|
-
}
|
|
1125
|
-
//#endregion
|
|
1126
|
-
//#region src/lib/groupCookiesForTriage.ts
|
|
1127
|
-
/** Sort cookies highest traffic first; missing occurrences rank last. */
|
|
1128
|
-
function compareCookiesByOccurrencesDesc(a, b) {
|
|
1129
|
-
return (b.occurrences ?? 0) - (a.occurrences ?? 0);
|
|
1130
|
-
}
|
|
1131
|
-
/**
|
|
1132
|
-
* Group flat triage items by primary purpose, sort by occurrences, and cap per bucket.
|
|
1133
|
-
*
|
|
1134
|
-
* Primary purpose uses {@link resolvePrimaryCookiePurpose} on each item's `trackingPurposes`.
|
|
1135
|
-
* `totalCount` is the full grouped size; `cookies` / `shownCount` are capped at
|
|
1136
|
-
* {@link COOKIE_TRIAGE_MAX_PER_PURPOSE}.
|
|
1137
|
-
*/
|
|
1138
|
-
function groupCookiesForTriage(cookies) {
|
|
1139
|
-
const buckets = /* @__PURE__ */ new Map();
|
|
1140
|
-
for (const cookie of cookies) {
|
|
1141
|
-
const purpose = resolvePrimaryCookiePurpose(cookie.trackingPurposes);
|
|
1142
|
-
const list = buckets.get(purpose);
|
|
1143
|
-
if (list) list.push(cookie);
|
|
1144
|
-
else buckets.set(purpose, [cookie]);
|
|
1145
|
-
}
|
|
1146
|
-
return COOKIE_TRIAGE_PURPOSE_ORDER.flatMap((purpose) => {
|
|
1147
|
-
const grouped = buckets.get(purpose);
|
|
1148
|
-
if (!grouped?.length) return [];
|
|
1149
|
-
const sorted = [...grouped].sort(compareCookiesByOccurrencesDesc);
|
|
1150
|
-
const shown = sorted.slice(0, 100);
|
|
1151
|
-
return [{
|
|
1152
|
-
purpose,
|
|
1153
|
-
totalCount: sorted.length,
|
|
1154
|
-
cookies: shown,
|
|
1155
|
-
shownCount: shown.length
|
|
1156
|
-
}];
|
|
1157
|
-
});
|
|
1158
|
-
}
|
|
1159
|
-
//#endregion
|
|
1160
|
-
//#region src/tools/cookie_triage_app.ts
|
|
1161
|
-
const ConsentTriageTypeSchema = z.enum([ConsentTriageType.Cookies, ConsentTriageType.DataFlows]).describe("Open the review UI for cookies or data flows that need review");
|
|
1162
|
-
const CookieTriageAppSchema = z.object({ triageType: ConsentTriageTypeSchema });
|
|
1163
|
-
const COOKIE_TRIAGE_APP_DESCRIPTION = `Opens an interactive consent triage review UI for cookies or data flows. Pass triageType ("${ConsentTriageType.Cookies}" | "${ConsentTriageType.DataFlows}"). On MCP App hosts the tool returns a fast shell and the view pages consent_list_cookies or consent_list_data_flows; elsewhere the tool fetches the organization name and items (pages of 100, cap ~600), groups by purpose (≤100/tab), and sorts by traffic. No agent classification suggestions. Use the consent-triage prompt for the full workflow.`;
|
|
1164
|
-
/**
|
|
1165
|
-
* Re-throw a fetch failure with the step name so the UI/agent can see what broke.
|
|
1166
|
-
*
|
|
1167
|
-
* @param step - Which fetch failed
|
|
1168
|
-
* @param triageType - cookies vs data_flows
|
|
1169
|
-
* @param error - Underlying failure
|
|
1170
|
-
*/
|
|
1171
|
-
function wrapTriageFetchError(step, triageType, error) {
|
|
1172
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
1173
|
-
const code = error instanceof ToolError ? error.code : ErrorCode.API_ERROR;
|
|
1174
|
-
const retryable = error instanceof ToolError ? error.retryable : false;
|
|
1175
|
-
const details = {
|
|
1176
|
-
step,
|
|
1177
|
-
triageType,
|
|
1178
|
-
...error instanceof ToolError && error.details ? error.details : {}
|
|
1179
|
-
};
|
|
1180
|
-
return new ToolError(code, `Failed to fetch ${step} for consent triage (${triageType}): ${message}`, retryable, details);
|
|
1181
|
-
}
|
|
1182
|
-
/**
|
|
1183
|
-
* Fast shell so MCP App hosts can mount the iframe before GraphQL work starts.
|
|
1184
|
-
*
|
|
1185
|
-
* @param input - Open-app arguments
|
|
1186
|
-
* @param dashboardUrl - Admin dashboard base URL from server config
|
|
1187
|
-
* @returns Payload with `loaded: false`, empty categories, and an agent message
|
|
1188
|
-
*/
|
|
1189
|
-
function buildShellPayload(input, dashboardUrl) {
|
|
1190
|
-
const kind = input.triageType === ConsentTriageType.DataFlows ? "data flows" : "cookies";
|
|
1191
|
-
return {
|
|
1192
|
-
triageType: input.triageType,
|
|
1193
|
-
dashboardUrl,
|
|
1194
|
-
organizationName: "",
|
|
1195
|
-
categories: [],
|
|
1196
|
-
loaded: false,
|
|
1197
|
-
message: `Interactive review UI opened for ${kind}. Tell the user: use the interactive UI to review ${kind} and ask any follow-up questions. Do not call consent_list_cookies or consent_list_data_flows.`
|
|
1198
|
-
};
|
|
1199
|
-
}
|
|
1200
|
-
/**
|
|
1201
|
-
* Interactive cookie/data-flow triage review UI that loads NEEDS_REVIEW items from the API.
|
|
1202
|
-
*
|
|
1203
|
-
* On MCP App hosts the open call returns a shell immediately; the view then pages
|
|
1204
|
-
* `consent_list_cookies` or `consent_list_data_flows`. Baseline hosts get the
|
|
1205
|
-
* full payload from the main tool handler.
|
|
1206
|
-
*/
|
|
1207
|
-
function createConsentCookieTriageAppTool(clients) {
|
|
1208
|
-
const { dashboardUrl } = clients;
|
|
1209
|
-
async function buildPayload(input) {
|
|
1210
|
-
let organizationName;
|
|
1211
|
-
try {
|
|
1212
|
-
organizationName = await fetchTriageOrganizationName(clients);
|
|
1213
|
-
} catch (error) {
|
|
1214
|
-
console.error("[consent_cookie_triage_review_app] organization fetch failed", error);
|
|
1215
|
-
throw wrapTriageFetchError("organization", input.triageType, error);
|
|
1216
|
-
}
|
|
1217
|
-
let items;
|
|
1218
|
-
try {
|
|
1219
|
-
items = await fetchConsentTriageItems(clients, input.triageType);
|
|
1220
|
-
} catch (error) {
|
|
1221
|
-
console.error(`[consent_cookie_triage_review_app] ${input.triageType} fetch failed`, error);
|
|
1222
|
-
throw wrapTriageFetchError(input.triageType, input.triageType, error);
|
|
1223
|
-
}
|
|
1224
|
-
return {
|
|
1225
|
-
triageType: input.triageType,
|
|
1226
|
-
dashboardUrl,
|
|
1227
|
-
organizationName,
|
|
1228
|
-
categories: groupCookiesForTriage(items),
|
|
1229
|
-
loaded: true
|
|
1230
|
-
};
|
|
1231
|
-
}
|
|
1232
|
-
return defineToolWithCapabilities({
|
|
1233
|
-
name: "consent_cookie_triage_review_app",
|
|
1234
|
-
description: COOKIE_TRIAGE_APP_DESCRIPTION,
|
|
1235
|
-
category: "Consent Management",
|
|
1236
|
-
readOnly: true,
|
|
1237
|
-
experimental: true,
|
|
1238
|
-
annotations: {
|
|
1239
|
-
readOnlyHint: true,
|
|
1240
|
-
destructiveHint: false,
|
|
1241
|
-
idempotentHint: true
|
|
1242
|
-
},
|
|
1243
|
-
zodSchema: CookieTriageAppSchema,
|
|
1244
|
-
handler: async (input) => createToolResult(true, await buildPayload(input)),
|
|
1245
|
-
variants: { [McpClientCapability.McpApp]: {
|
|
1246
|
-
resource: COOKIE_TRIAGE_APP_RESOURCE,
|
|
1247
|
-
handler: async (input) => createToolResult(true, buildShellPayload(input, dashboardUrl))
|
|
1248
|
-
} }
|
|
1249
|
-
});
|
|
1250
|
-
}
|
|
1251
|
-
//#endregion
|
|
1252
|
-
//#region src/tools/index.ts
|
|
1253
|
-
function getConsentTools(clients) {
|
|
1254
|
-
return [
|
|
1255
|
-
createConsentGetPreferencesTool(clients),
|
|
1256
|
-
createConsentListPurposesTool(clients),
|
|
1257
|
-
createConsentListDataFlowsTool(clients),
|
|
1258
|
-
createConsentListCookiesTool(clients),
|
|
1259
|
-
createConsentListAirgapBundlesTool(clients),
|
|
1260
|
-
createConsentListRegimesTool(clients),
|
|
1261
|
-
createConsentGetInventoryStatsTool(clients),
|
|
1262
|
-
createConsentCookieTriageAppTool(clients),
|
|
1263
|
-
createConsentGetAggregateAnalyticsTool(clients),
|
|
1264
|
-
createConsentGetTimeseriesAnalyticsTool(clients),
|
|
1265
|
-
createConsentGetAnalyticsDataTool(clients),
|
|
1266
|
-
createConsentUpdateCookiesTool(clients),
|
|
1267
|
-
createConsentDeleteCookiesTool(clients),
|
|
1268
|
-
createConsentUpdateDataFlowsTool(clients),
|
|
1269
|
-
createConsentDeleteDataFlowsTool(clients),
|
|
1270
|
-
createConsentBulkTriageTool(clients),
|
|
1271
|
-
createConsentListRocRecordsTool(clients)
|
|
1272
|
-
];
|
|
1273
|
-
}
|
|
1274
|
-
//#endregion
|
|
1275
|
-
//#region src/prompts/consent_inspect_site.ts
|
|
1276
|
-
const consentInspectSitePrompt = {
|
|
1277
|
-
name: "consent-inspect-site",
|
|
1278
|
-
description: "Live site investigation methodology for consent triage using browser DevTools. Covers regime overrides, consent verification, performance entries, HTML search, ad infrastructure checks, and airgap classification queries.",
|
|
1279
|
-
arguments: [
|
|
1280
|
-
{
|
|
1281
|
-
name: "site_url",
|
|
1282
|
-
description: "The site to investigate (e.g. \"https://example.com\")",
|
|
1283
|
-
required: true
|
|
1284
|
-
},
|
|
1285
|
-
{
|
|
1286
|
-
name: "tracker_domains",
|
|
1287
|
-
description: "Comma-separated tracker domains to look for (e.g. \"doubleclick.net,google-analytics.com\")",
|
|
1288
|
-
required: true
|
|
1289
|
-
},
|
|
1290
|
-
{
|
|
1291
|
-
name: "regime",
|
|
1292
|
-
description: "The most permissive regime name for URL override (e.g. \"us\"). Choose the regime with fewest opted-out purposes so trackers fire.",
|
|
1293
|
-
required: false
|
|
1294
|
-
}
|
|
1295
|
-
],
|
|
1296
|
-
handler: (args) => {
|
|
1297
|
-
const siteUrl = args.site_url || "(not specified)";
|
|
1298
|
-
const trackerDomains = args.tracker_domains || "(not specified)";
|
|
1299
|
-
const regime = args.regime || "us";
|
|
1300
|
-
const domainList = trackerDomains.split(",").map((d) => d.trim()).filter(Boolean);
|
|
1301
|
-
const domainArrayLiteral = JSON.stringify(domainList);
|
|
1302
|
-
return [{
|
|
1303
|
-
role: "user",
|
|
1304
|
-
content: {
|
|
1305
|
-
type: "text",
|
|
1306
|
-
text: `Investigate how these trackers load on ${siteUrl}: ${trackerDomains}. Use regime "${regime}" for debug overrides.`
|
|
1307
|
-
}
|
|
1308
|
-
}, {
|
|
1309
|
-
role: "assistant",
|
|
1310
|
-
content: {
|
|
1311
|
-
type: "text",
|
|
1312
|
-
text: `## Live Site Investigation
|
|
1313
|
-
|
|
1314
|
-
### Important: Platform vs Client Sites
|
|
1315
|
-
|
|
1316
|
-
The bundle name (e.g. "acme-platform") may be a platform provider, not the actual
|
|
1317
|
-
site with trackers. If the main domain is a corporate page without ad trackers, find a
|
|
1318
|
-
real client site from links on the homepage and use that instead.
|
|
1319
|
-
|
|
1320
|
-
### Step 1: Navigate with Debug Overrides
|
|
1321
|
-
|
|
1322
|
-
Load the page with hash parameters to control consent behavior:
|
|
1323
|
-
|
|
1324
|
-
\`\`\`
|
|
1325
|
-
${siteUrl}/#tcm-regime=${regime}&tcm-prompt=Hidden&log=*
|
|
1326
|
-
\`\`\`
|
|
1327
|
-
|
|
1328
|
-
| Parameter | Purpose |
|
|
1329
|
-
|-----------|---------|
|
|
1330
|
-
| \`tcm-regime=${regime}\` | Force the most permissive privacy regime |
|
|
1331
|
-
| \`tcm-prompt=Hidden\` | Suppress the consent banner |
|
|
1332
|
-
| \`log=*\` | Enable verbose airgap debug logging |
|
|
1333
|
-
|
|
1334
|
-
When \`docs_list\` / \`docs_fetch\` are available, fetch the debugging article for full detail; otherwise open:
|
|
1335
|
-
https://docs.transcend.io/docs/articles/consent-management/reference/debugging-and-testing
|
|
1336
|
-
|
|
1337
|
-
### Step 2: Verify Consent State
|
|
1338
|
-
|
|
1339
|
-
\`\`\`javascript
|
|
1340
|
-
(() => {
|
|
1341
|
-
if (!window.airgap) return 'airgap not loaded';
|
|
1342
|
-
return JSON.stringify({
|
|
1343
|
-
regimes: airgap.getRegimes(),
|
|
1344
|
-
purposes: airgap.getConsent().purposes,
|
|
1345
|
-
regimePurposes: airgap.getRegimePurposes(),
|
|
1346
|
-
}, null, 2);
|
|
1347
|
-
})()
|
|
1348
|
-
\`\`\`
|
|
1349
|
-
|
|
1350
|
-
All purposes should be \`true\` or \`"Auto"\`. If not, opt in manually:
|
|
1351
|
-
|
|
1352
|
-
\`\`\`javascript
|
|
1353
|
-
(() => {
|
|
1354
|
-
airgap.optIn(Object.fromEntries(
|
|
1355
|
-
airgap.getRegimePurposes().map(p => [p, true])
|
|
1356
|
-
));
|
|
1357
|
-
return JSON.stringify(airgap.getConsent().purposes);
|
|
1358
|
-
})()
|
|
1359
|
-
\`\`\`
|
|
1360
|
-
|
|
1361
|
-
### Step 3: Check Performance Entries for Tracker Domains
|
|
1362
|
-
|
|
1363
|
-
\`\`\`javascript
|
|
1364
|
-
(() => {
|
|
1365
|
-
const domains = ${domainArrayLiteral};
|
|
1366
|
-
const entries = performance.getEntriesByType('resource');
|
|
1367
|
-
const results = {};
|
|
1368
|
-
for (const d of domains) {
|
|
1369
|
-
results[d] = entries.filter(e => e.name.includes(d)).map(e => ({
|
|
1370
|
-
url: e.name,
|
|
1371
|
-
initiator: e.initiatorType,
|
|
1372
|
-
duration: Math.round(e.duration),
|
|
1373
|
-
size: e.transferSize,
|
|
1374
|
-
}));
|
|
1375
|
-
}
|
|
1376
|
-
return JSON.stringify(results, null, 2);
|
|
1377
|
-
})()
|
|
1378
|
-
\`\`\`
|
|
1379
|
-
|
|
1380
|
-
### Step 4: Search Page HTML
|
|
1381
|
-
|
|
1382
|
-
\`\`\`javascript
|
|
1383
|
-
(() => {
|
|
1384
|
-
const terms = ${domainArrayLiteral};
|
|
1385
|
-
const html = document.documentElement.outerHTML;
|
|
1386
|
-
const results = {};
|
|
1387
|
-
for (const term of terms) {
|
|
1388
|
-
const matches = [];
|
|
1389
|
-
let i = 0;
|
|
1390
|
-
while ((i = html.indexOf(term, i)) !== -1) {
|
|
1391
|
-
matches.push(html.substring(Math.max(0, i - 100), Math.min(html.length, i + 100)));
|
|
1392
|
-
i += term.length;
|
|
1393
|
-
if (matches.length > 3) break;
|
|
1394
|
-
}
|
|
1395
|
-
results[term] = { count: matches.length, samples: matches };
|
|
1396
|
-
}
|
|
1397
|
-
return JSON.stringify(results, null, 2);
|
|
1398
|
-
})()
|
|
1399
|
-
\`\`\`
|
|
1400
|
-
|
|
1401
|
-
### Step 5: Identify Ad Infrastructure
|
|
1402
|
-
|
|
1403
|
-
\`\`\`javascript
|
|
1404
|
-
(() => {
|
|
1405
|
-
const scripts = Array.from(document.querySelectorAll('script[src]')).map(s => s.src);
|
|
1406
|
-
// Non-exhaustive list of common ad tech scripts; look for any third-party ad scripts beyond these
|
|
1407
|
-
const adScripts = scripts.filter(s =>
|
|
1408
|
-
s.includes('prebid') || s.includes('gpt.js') || s.includes('googletag') ||
|
|
1409
|
-
s.includes('taboola') || s.includes('criteo') || s.includes('amazon-adsystem') ||
|
|
1410
|
-
s.includes('adsbygoogle') || s.includes('doubleclick')
|
|
1411
|
-
);
|
|
1412
|
-
const adDivs = Array.from(document.querySelectorAll(
|
|
1413
|
-
'[data-prebid], [data-ad], [data-ad-slot], [data-ad-unit], [id*="ad-slot"], [id*="ad-unit"], [class*="ad-container"]'
|
|
1414
|
-
));
|
|
1415
|
-
const adSlots = adDivs.map(d => ({
|
|
1416
|
-
tag: d.tagName, id: d.id, class: d.className?.substring(0, 60),
|
|
1417
|
-
dataSizes: d.getAttribute('data-sizes'),
|
|
1418
|
-
dataPrebid: d.getAttribute('data-prebid'),
|
|
1419
|
-
dataTargeting: d.getAttribute('data-targeting'),
|
|
1420
|
-
}));
|
|
1421
|
-
const iframes = Array.from(document.querySelectorAll('iframe'));
|
|
1422
|
-
const adIframes = iframes.filter(f => f.title?.includes('ad') || f.id?.includes('ad'));
|
|
1423
|
-
return JSON.stringify({
|
|
1424
|
-
adScripts,
|
|
1425
|
-
adSlotCount: adSlots.length,
|
|
1426
|
-
adSlotSamples: adSlots.slice(0, 5),
|
|
1427
|
-
adIframes: adIframes.map(f => ({
|
|
1428
|
-
id: f.id, src: f.src?.substring(0, 150), title: f.title,
|
|
1429
|
-
})),
|
|
1430
|
-
}, null, 2);
|
|
1431
|
-
})()
|
|
1432
|
-
\`\`\`
|
|
1433
|
-
|
|
1434
|
-
### Step 6: Check Inline Initialization Scripts
|
|
1435
|
-
|
|
1436
|
-
\`\`\`javascript
|
|
1437
|
-
(() => {
|
|
1438
|
-
const scripts = Array.from(document.querySelectorAll('script:not([src])'));
|
|
1439
|
-
const adInline = scripts.filter(s =>
|
|
1440
|
-
s.textContent.includes('prebid') || s.textContent.includes('googletag') ||
|
|
1441
|
-
s.textContent.includes('adsbygoogle') || s.textContent.includes('criteo') ||
|
|
1442
|
-
s.textContent.includes('taboola')
|
|
1443
|
-
);
|
|
1444
|
-
return JSON.stringify(adInline.map(s => ({
|
|
1445
|
-
parent: s.parentElement?.tagName,
|
|
1446
|
-
preview: s.textContent.substring(0, 500),
|
|
1447
|
-
})), null, 2);
|
|
1448
|
-
})()
|
|
1449
|
-
\`\`\`
|
|
1450
|
-
|
|
1451
|
-
### Step 7: Check Window Globals and Ad Config
|
|
1452
|
-
|
|
1453
|
-
\`\`\`javascript
|
|
1454
|
-
(() => {
|
|
1455
|
-
const knownAdGlobals = ['pbjs', 'googletag', '__tcfapi', '__gpp', '__cmp',
|
|
1456
|
-
'adsbygoogle', '_taboola', 'criteo_q', 'apstag'];
|
|
1457
|
-
const adGlobals = Object.keys(window).filter(k =>
|
|
1458
|
-
knownAdGlobals.some(g => k.toLowerCase().includes(g.toLowerCase()))
|
|
1459
|
-
);
|
|
1460
|
-
const configs = {};
|
|
1461
|
-
for (const g of adGlobals) {
|
|
1462
|
-
try {
|
|
1463
|
-
const val = window[g];
|
|
1464
|
-
if (val && typeof val === 'object') {
|
|
1465
|
-
configs[g] = JSON.stringify(val).substring(0, 500);
|
|
1466
|
-
}
|
|
1467
|
-
} catch {}
|
|
1468
|
-
}
|
|
1469
|
-
return JSON.stringify({ adGlobals, configs }, null, 2);
|
|
1470
|
-
})()
|
|
1471
|
-
\`\`\`
|
|
1472
|
-
|
|
1473
|
-
### Step 8: Check Airgap Classification Per Tracker
|
|
1474
|
-
|
|
1475
|
-
\`\`\`javascript
|
|
1476
|
-
(async () => {
|
|
1477
|
-
if (!window.airgap) return 'airgap not loaded';
|
|
1478
|
-
const domains = ${domainArrayLiteral};
|
|
1479
|
-
const results = {};
|
|
1480
|
-
for (const d of domains) {
|
|
1481
|
-
try {
|
|
1482
|
-
const purposes = await airgap.getPurposes('https://' + d + '/');
|
|
1483
|
-
const allowed = await airgap.isAllowed('https://' + d + '/');
|
|
1484
|
-
results[d] = { purposes, allowed };
|
|
1485
|
-
} catch (e) { results[d] = { error: e.message }; }
|
|
1486
|
-
}
|
|
1487
|
-
return JSON.stringify(results, null, 2);
|
|
1488
|
-
})()
|
|
1489
|
-
\`\`\`
|
|
1490
|
-
|
|
1491
|
-
### Step 9: Read Console Logs
|
|
1492
|
-
|
|
1493
|
-
Read the browser console output. The \`log=*\` override makes airgap emit detailed
|
|
1494
|
-
allow/block decisions for every request, including purpose lookups. Search these logs
|
|
1495
|
-
for each tracker domain to see how airgap classifies and handles it.
|
|
1496
|
-
|
|
1497
|
-
## Useful Console Commands Reference
|
|
1498
|
-
|
|
1499
|
-
| Command | Purpose |
|
|
1500
|
-
|---------|---------|
|
|
1501
|
-
| \`airgap.getConsent().purposes\` | Current consent state per purpose |
|
|
1502
|
-
| \`airgap.getRegimes()\` | Active regime(s) for this session |
|
|
1503
|
-
| \`airgap.getRegimePurposes()\` | Purposes regulated under current regime |
|
|
1504
|
-
| \`await airgap.getPurposes('{url}')\` | What purposes a URL is classified under |
|
|
1505
|
-
| \`await airgap.isAllowed('{url}')\` | Whether a URL is currently allowed |
|
|
1506
|
-
| \`await airgap.isCookieAllowed({name:'{name}'})\` | Whether a cookie is allowed |
|
|
1507
|
-
| \`await airgap.getCookiePurposes({name:'{name}'})\` | Cookie's assigned purposes |
|
|
1508
|
-
| \`airgap.export().requests\` | Quarantined requests |
|
|
1509
|
-
| \`airgap.export().cookies\` | Quarantined cookies |
|
|
1510
|
-
| \`airgap.version\` | Current airgap version |
|
|
1511
|
-
|
|
1512
|
-
## Output Format
|
|
1513
|
-
|
|
1514
|
-
For each tracker return:
|
|
1515
|
-
|
|
1516
|
-
\`\`\`json
|
|
1517
|
-
{
|
|
1518
|
-
"domain": "<domain>",
|
|
1519
|
-
"found_on_page": true,
|
|
1520
|
-
"loading_method": "direct_script|tag_manager|iframe|dynamic|not_found",
|
|
1521
|
-
"loaded_by": "<what script or mechanism loads it>",
|
|
1522
|
-
"in_main_document": true,
|
|
1523
|
-
"airgap_purposes": ["Advertising"],
|
|
1524
|
-
"airgap_allowed": true,
|
|
1525
|
-
"ad_infrastructure": "<detected ad chain, e.g. Prebid -> GPT>",
|
|
1526
|
-
"related_config": "<relevant config values>",
|
|
1527
|
-
"notes": "<additional observations>"
|
|
1528
|
-
}
|
|
1529
|
-
\`\`\`
|
|
1530
|
-
|
|
1531
|
-
Also return a site summary:
|
|
1532
|
-
|
|
1533
|
-
\`\`\`json
|
|
1534
|
-
{
|
|
1535
|
-
"site_investigated": "<actual URL used>",
|
|
1536
|
-
"ad_stack": "<detected stack, e.g. Prebid -> Google Publisher Tags>",
|
|
1537
|
-
"consent_manager": "Transcend CMP",
|
|
1538
|
-
"total_ad_slots": "<count>",
|
|
1539
|
-
"total_scripts": "<count>",
|
|
1540
|
-
"total_iframes": "<count>"
|
|
1541
|
-
}
|
|
1542
|
-
\`\`\``
|
|
1543
|
-
}
|
|
1544
|
-
}];
|
|
1545
|
-
}
|
|
1546
|
-
};
|
|
1547
|
-
//#endregion
|
|
1548
|
-
//#region src/prompts/consent_research_tracker.ts
|
|
1549
|
-
const consentResearchTrackerPrompt = {
|
|
1550
|
-
name: "consent-research-tracker",
|
|
1551
|
-
description: "Research methodology for classifying cookies and data flows. Covers company identification, privacy policy lookup, CMP database checks, and structured evidence gathering for consent purpose assignment.",
|
|
1552
|
-
arguments: [
|
|
1553
|
-
{
|
|
1554
|
-
name: "domain",
|
|
1555
|
-
description: "The tracker domain or cookie name to research (e.g. \"doubleclick.net\", \"_ga\")",
|
|
1556
|
-
required: true
|
|
1557
|
-
},
|
|
1558
|
-
{
|
|
1559
|
-
name: "type",
|
|
1560
|
-
description: "Whether this is a \"cookie\" or \"data_flow\" (default: \"data_flow\")",
|
|
1561
|
-
required: false
|
|
1562
|
-
},
|
|
1563
|
-
{
|
|
1564
|
-
name: "available_purposes",
|
|
1565
|
-
description: "Comma-separated list of the customer's configured purposes (e.g. \"Essential,Functional,Analytics,Advertising,SaleOfInfo\"). Only recommend purposes from this list.",
|
|
1566
|
-
required: false
|
|
1567
|
-
}
|
|
1568
|
-
],
|
|
1569
|
-
handler: (args) => {
|
|
1570
|
-
const domain = args.domain || "(not specified)";
|
|
1571
|
-
return [{
|
|
1572
|
-
role: "user",
|
|
1573
|
-
content: {
|
|
1574
|
-
type: "text",
|
|
1575
|
-
text: `Research the ${args.type || "data_flow"} "${domain}" to determine its consent classification. Available purposes: ${args.available_purposes || "(fetch from consent_list_purposes)"}`
|
|
1576
|
-
}
|
|
1577
|
-
}, {
|
|
1578
|
-
role: "assistant",
|
|
1579
|
-
content: {
|
|
1580
|
-
type: "text",
|
|
1581
|
-
text: `## Research Methodology
|
|
1582
|
-
|
|
1583
|
-
For each tracker or cookie, follow these steps in order:
|
|
1584
|
-
|
|
1585
|
-
### Step 1: Company Identification
|
|
1586
|
-
|
|
1587
|
-
Search the root domain (strip subdomains for broader matches) to find the operating company.
|
|
1588
|
-
Check for recent acquisitions or rebrands — ad tech companies frequently change ownership.
|
|
1589
|
-
|
|
1590
|
-
### Step 2: First-Party Privacy Docs
|
|
1591
|
-
|
|
1592
|
-
Find and read the company's privacy policy and/or cookie policy. Look for:
|
|
1593
|
-
- How they classify their own tracking
|
|
1594
|
-
- What data they collect
|
|
1595
|
-
- Stated purposes for data processing
|
|
1596
|
-
- Data retention periods
|
|
1597
|
-
|
|
1598
|
-
### Step 3: Service Description
|
|
1599
|
-
|
|
1600
|
-
Understand the business model:
|
|
1601
|
-
- Ad tech (DSP, SSP, ad exchange, header bidding)?
|
|
1602
|
-
- Analytics (pageview counters, session recording, A/B testing)?
|
|
1603
|
-
- CMP (consent management platform)?
|
|
1604
|
-
- CDN / performance (content delivery, image optimization)?
|
|
1605
|
-
- Functional (chat, support, preferences, authentication)?
|
|
1606
|
-
- Data broker (selling/sharing data with third parties)?
|
|
1607
|
-
|
|
1608
|
-
### Step 4: CMP Database Lookups
|
|
1609
|
-
|
|
1610
|
-
Search these databases for existing classifications:
|
|
1611
|
-
|
|
1612
|
-
| Database | URL | Use For |
|
|
1613
|
-
|----------|-----|---------|
|
|
1614
|
-
| CookieDatabase.org | https://cookiedatabase.org/ | Cookie name lookup |
|
|
1615
|
-
| better.fyi trackers | https://better.fyi/trackers/ | Domain-to-company lookup |
|
|
1616
|
-
| Ghostery TrackerDB | https://www.ghostery.com/trackerdb | Tracker classification |
|
|
1617
|
-
| Cookiepedia | https://cookiepedia.co.uk/ | Cookie purpose database |
|
|
1618
|
-
| BuiltWith | https://builtwith.com/ | Site technology stack |
|
|
1619
|
-
| urlscan.io | https://urlscan.io/ | Domain/infrastructure analysis |
|
|
1620
|
-
|
|
1621
|
-
### Step 5: Third-Party Cookie Policies
|
|
1622
|
-
|
|
1623
|
-
Find other companies' published cookie policies that classify this same tracker/service.
|
|
1624
|
-
Multiple independent classifications strengthen confidence.
|
|
1625
|
-
|
|
1626
|
-
### Step 6: Essential vs Non-Essential Determination
|
|
1627
|
-
|
|
1628
|
-
Based on all evidence:
|
|
1629
|
-
- Would the site break without this tracker? (Essential)
|
|
1630
|
-
- Is it required for core functionality like auth, security, or the CMP itself? (Essential)
|
|
1631
|
-
- Does it enhance features without being required? (Functional)
|
|
1632
|
-
- Does it measure usage or behavior? (Analytics)
|
|
1633
|
-
- Does it serve, target, or retarget ads? (Advertising)
|
|
1634
|
-
- Is data sold or shared with third parties for their own use? (SaleOfInfo)
|
|
1635
|
-
|
|
1636
|
-
Items can have multiple purposes (e.g. ["Advertising", "Analytics"] for an ad platform
|
|
1637
|
-
that also tracks impressions).
|
|
1638
|
-
|
|
1639
|
-
IMPORTANT: Only recommend purposes from the customer's configured list. If research
|
|
1640
|
-
suggests a purpose that doesn't exist for this customer, flag it and suggest the closest
|
|
1641
|
-
available match.
|
|
1642
|
-
|
|
1643
|
-
## Junk Indicators
|
|
1644
|
-
|
|
1645
|
-
Mark as JUNK (not a real tracker to classify) if:
|
|
1646
|
-
- From a browser extension (Grammarly, LastPass, ad blockers injecting scripts)
|
|
1647
|
-
- Malware or unwanted injection not placed by the site operator
|
|
1648
|
-
- A development/testing artifact (localhost, staging URLs)
|
|
1649
|
-
- A subdomain variant of an already-approved regex rule
|
|
1650
|
-
|
|
1651
|
-
## Confidence Levels
|
|
1652
|
-
|
|
1653
|
-
- **High**: First-party docs confirm, OR multiple CMPs agree, OR well-known tracker
|
|
1654
|
-
- **Medium**: Some evidence but no definitive first-party documentation
|
|
1655
|
-
- **Low**: No docs found, best-guess only — flag for manual review
|
|
1656
|
-
|
|
1657
|
-
## Output Format
|
|
1658
|
-
|
|
1659
|
-
Return a structured finding for each item:
|
|
1660
|
-
|
|
1661
|
-
\`\`\`json
|
|
1662
|
-
{
|
|
1663
|
-
"domain": "<domain or cookie name>",
|
|
1664
|
-
"company_name": "<identified company>",
|
|
1665
|
-
"company_description": "<what the company does, 1-2 sentences>",
|
|
1666
|
-
"service_url": "<company homepage>",
|
|
1667
|
-
"specific_product": "<what product/feature this domain serves>",
|
|
1668
|
-
"recommended_purposes": ["Advertising"],
|
|
1669
|
-
"confidence": "High",
|
|
1670
|
-
"is_junk": false,
|
|
1671
|
-
"evidence_summary": "<2-3 sentence summary with key facts>",
|
|
1672
|
-
"sources": ["<url1>", "<url2>"],
|
|
1673
|
-
"suggested_description": "<one-line description to save as Transcend note>",
|
|
1674
|
-
"first_party_privacy_url": "<URL of their privacy/cookie policy if found>",
|
|
1675
|
-
"other_cmps_classify_as": "<what other CMPs say>"
|
|
1676
|
-
}
|
|
1677
|
-
\`\`\``
|
|
1678
|
-
}
|
|
1679
|
-
}];
|
|
1680
|
-
}
|
|
1681
|
-
};
|
|
1682
|
-
//#endregion
|
|
1683
|
-
//#region src/prompts/consent_triage.ts
|
|
1684
|
-
const consentTriagePrompt = {
|
|
1685
|
-
name: "consent-triage",
|
|
1686
|
-
description: "Systematically triage cookies and data flows discovered by Transcend consent telemetry. Opens consent_cookie_triage_review_app for interactive review, then pushes confirmed classifications.",
|
|
1687
|
-
arguments: [{
|
|
1688
|
-
name: "triage_type",
|
|
1689
|
-
description: `What to triage: "${ConsentTriageType.Cookies}", "${ConsentTriageType.DataFlows}", or "both" (default: "both")`,
|
|
1690
|
-
required: false
|
|
1691
|
-
}, {
|
|
1692
|
-
name: "batch_size",
|
|
1693
|
-
description: "Number of items per batch for markdown-only review when the MCP App host is unavailable (default: 10)",
|
|
1694
|
-
required: false
|
|
1695
|
-
}],
|
|
1696
|
-
handler: (args) => {
|
|
1697
|
-
const triageType = args.triage_type || "both";
|
|
1698
|
-
const batchSize = args.batch_size || "10";
|
|
1699
|
-
return [{
|
|
1700
|
-
role: "user",
|
|
1701
|
-
content: {
|
|
1702
|
-
type: "text",
|
|
1703
|
-
text: `Triage ${triageType === "both" ? "cookies and data flows" : triageType}. Prefer consent_cookie_triage_review_app with triageType for interactive review; use batch size ${batchSize} only for markdown-only fallback.`
|
|
1704
|
-
}
|
|
1705
|
-
}, {
|
|
1706
|
-
role: "assistant",
|
|
1707
|
-
content: {
|
|
1708
|
-
type: "text",
|
|
1709
|
-
text: `I'll walk through the consent triage workflow. Here's how it works:
|
|
1710
|
-
|
|
1711
|
-
## Phase 1: Setup
|
|
1712
|
-
|
|
1713
|
-
Gather the customer's consent configuration by calling these tools in parallel:
|
|
1714
|
-
|
|
1715
|
-
1. \`consent_list_airgap_bundles\` — get the consent manager info (bundle ID is auto-resolved)
|
|
1716
|
-
2. \`consent_get_inventory_stats\` — backlog overview
|
|
1717
|
-
3. \`consent_list_purposes\` — the customer's configured tracking purposes
|
|
1718
|
-
4. \`consent_list_regimes\` — consent experiences with regions, purposes, and opt-out defaults
|
|
1719
|
-
|
|
1720
|
-
CRITICAL: Each customer configures their own purposes. Do NOT assume defaults exist. Only use purposes returned by \`consent_list_purposes\` for classification.
|
|
1721
|
-
|
|
1722
|
-
From the regimes data, determine:
|
|
1723
|
-
- Which purposes can be opted out of per experience
|
|
1724
|
-
- Which purposes default to opted-out
|
|
1725
|
-
- The most permissive regime (fewest opted-out purposes) — needed for live site investigation
|
|
1726
|
-
|
|
1727
|
-
Present the customer's setup:
|
|
1728
|
-
|
|
1729
|
-
| Purpose | Slug | Used in Regimes |
|
|
1730
|
-
|---------|------|-----------------|
|
|
1731
|
-
| (from API) | (from API) | (cross-ref with regimes) |
|
|
1732
|
-
|
|
1733
|
-
Present triage stats from \`consent_get_inventory_stats\` (cookie and data-flow counts match the Consent Manager tables; CSP data flows are omitted like the UI):
|
|
1734
|
-
|
|
1735
|
-
| Metric | Cookies | Data Flows |
|
|
1736
|
-
|--------|---------|------------|
|
|
1737
|
-
| Needs Review | cookies.needReviewCount | dataFlows.needReviewCount |
|
|
1738
|
-
| Live (Approved) | cookies.liveCount | dataFlows.liveCount |
|
|
1739
|
-
| Junk | cookies.junkCount | dataFlows.junkCount |
|
|
1740
|
-
|
|
1741
|
-
## Phase 2: Open the review UI (default)
|
|
1742
|
-
|
|
1743
|
-
Call \`consent_cookie_triage_review_app\` with only \`triageType\`:
|
|
1744
|
-
|
|
1745
|
-
${[triageType === ConsentTriageType.Cookies || triageType === "both" ? `- Cookies: \`{ "triageType": "${ConsentTriageType.Cookies}" }\` — opens the review UI (App hosts page consent_list_cookies in the view; otherwise the tool returns them grouped by purpose)` : "", triageType === ConsentTriageType.DataFlows || triageType === "both" ? `- Data flows: \`{ "triageType": "${ConsentTriageType.DataFlows}" }\` — opens the review UI (App hosts page consent_list_data_flows in the view; otherwise the tool returns them grouped by purpose)` : ""].filter(Boolean).join("\n")}
|
|
1746
|
-
|
|
1747
|
-
Do **not** pre-fetch cookies/data flows for the app, and do **not** pass classification suggestions. After the user reviews in the UI, push confirmed changes with \`consent_update_cookies\`, \`consent_update_data_flows\`, or \`consent_bulk_triage\`.
|
|
1748
|
-
|
|
1749
|
-
When triaging both, open cookies first, then data flows (or ask the user which to start with).
|
|
1750
|
-
|
|
1751
|
-
## Phase 3: Markdown fallback (no MCP App host)
|
|
1752
|
-
|
|
1753
|
-
If the host cannot render MCP Apps, fetch a batch and present findings in markdown:
|
|
1754
|
-
|
|
1755
|
-
${[triageType === ConsentTriageType.Cookies || triageType === "both" ? "- Cookies: `consent_list_cookies { status: \"NEEDS_REVIEW\", limit: " + batchSize + ", orderField: \"occurrences\", orderDirection: \"DESC\" }`" : "", triageType === ConsentTriageType.DataFlows || triageType === "both" ? "- Data flows: `consent_list_data_flows { status: \"NEEDS_REVIEW\", limit: " + batchSize + ", orderField: \"occurrences\", orderDirection: \"DESC\" }`" : ""].filter(Boolean).join("\n")}
|
|
1756
|
-
|
|
1757
|
-
Present in this table format:
|
|
1758
|
-
|
|
1759
|
-
| # | Name/Domain | Type | Service | Auto-Purposes | Occurrences | Sites | First Seen |
|
|
1760
|
-
|---|-------------|------|---------|---------------|-------------|-------|------------|
|
|
1761
|
-
|
|
1762
|
-
For each item, research its purpose using web search and CMP databases.
|
|
1763
|
-
Use the \`consent-research-tracker\` prompt for detailed research methodology.
|
|
1764
|
-
If browser/DevTools access is available, use the \`consent-inspect-site\` prompt for live site investigation.
|
|
1765
|
-
|
|
1766
|
-
Split items into parallel research groups of 3–5 items each for efficiency.
|
|
1767
|
-
|
|
1768
|
-
For each researched item, decide:
|
|
1769
|
-
- **approve** — vendor/docs clearly identify the tracker and its consent purpose
|
|
1770
|
-
- **junk** — noise, duplicate, test artifact, or not a real tracker
|
|
1771
|
-
- **review** — conflicting sources, unknown vendor, or low confidence
|
|
1772
|
-
|
|
1773
|
-
Include a one-sentence **reason** citing the evidence.
|
|
1774
|
-
|
|
1775
|
-
For each researched item, present:
|
|
1776
|
-
|
|
1777
|
-
### {name/domain}
|
|
1778
|
-
| Field | Value |
|
|
1779
|
-
|-------|-------|
|
|
1780
|
-
| Type | Cookie / Data Flow (HOST/REGEX) |
|
|
1781
|
-
| Domain | \`example.com\` |
|
|
1782
|
-
| Service | Service Name (or "Unknown") |
|
|
1783
|
-
| Current Purposes | What Transcend auto-classified (if any) |
|
|
1784
|
-
| Recommended Purpose | Research-based recommendation |
|
|
1785
|
-
| Confidence | High / Medium / Low |
|
|
1786
|
-
| How Loaded | Direct script / Tag manager / iframe / Dynamic |
|
|
1787
|
-
| Occurrences | N |
|
|
1788
|
-
| Evidence | Brief summary + source URLs |
|
|
1789
|
-
| Recommended Action | APPROVE with purposes / JUNK / NEEDS MANUAL REVIEW |
|
|
1790
|
-
| Suggested Note | Description to save to Transcend |
|
|
1791
|
-
|
|
1792
|
-
Then show a summary action table:
|
|
1793
|
-
|
|
1794
|
-
| # | Name/Domain | Action | Purposes | Service | Note |
|
|
1795
|
-
|---|-------------|--------|----------|---------|------|
|
|
1796
|
-
|
|
1797
|
-
Ask the user to confirm, modify, or reject each recommendation before proceeding.
|
|
1798
|
-
|
|
1799
|
-
## Phase 4: Push Classifications
|
|
1800
|
-
|
|
1801
|
-
For confirmed items, update Transcend:
|
|
1802
|
-
|
|
1803
|
-
- Individual updates with notes: \`consent_update_data_flows\` / \`consent_update_cookies\` with id, tracking_purposes, description, service, status: "LIVE"
|
|
1804
|
-
- Bulk approve/junk: \`consent_bulk_triage\` with items array containing type, id, action, tracking_purposes
|
|
1805
|
-
- Mark junk items with action "JUNK" (no purposes needed)
|
|
1806
|
-
|
|
1807
|
-
After pushing, report what was updated and show the remaining triage count.
|
|
1808
|
-
|
|
1809
|
-
## Phase 5: Loop
|
|
1810
|
-
|
|
1811
|
-
Ask the user if they want to continue with the next batch. Repeat from Phase 2.
|
|
1812
|
-
|
|
1813
|
-
## Key References
|
|
1814
|
-
|
|
1815
|
-
When \`docs_list\` / \`docs_fetch\` are available (e.g. the unified \`@transcend-io/mcp\` server), prefer those for full markdown. Otherwise open the docs URLs directly:
|
|
1816
|
-
|
|
1817
|
-
- Triage guide: https://docs.transcend.io/docs/articles/consent-management/configuration/triage-cookies-and-dataflows-guide
|
|
1818
|
-
- Data flows & cookies: https://docs.transcend.io/docs/articles/consent-management/concepts/data-flows-and-cookies
|
|
1819
|
-
- Tracking purposes: https://docs.transcend.io/docs/articles/consent-management/concepts/tracking-purposes
|
|
1820
|
-
- Regional experiences: https://docs.transcend.io/docs/articles/consent-management/configuration/regional-experiences
|
|
1821
|
-
- Telemetry overview: https://docs.transcend.io/docs/articles/consent-management/configuration/telemetry-overview`
|
|
1822
|
-
}
|
|
1823
|
-
}];
|
|
1824
|
-
}
|
|
1825
|
-
};
|
|
1826
|
-
//#endregion
|
|
1827
|
-
//#region src/prompts/index.ts
|
|
1828
|
-
/**
|
|
1829
|
-
* Returns consent workflow prompt templates for MCP prompts/list and prompts/get.
|
|
1830
|
-
*
|
|
1831
|
-
* @param _clients - Unused; accepted so createMCPServer can pass the same factory shape as getTools
|
|
1832
|
-
*/
|
|
1833
|
-
function getConsentPrompts(_clients) {
|
|
1834
|
-
return [
|
|
1835
|
-
consentTriagePrompt,
|
|
1836
|
-
consentResearchTrackerPrompt,
|
|
1837
|
-
consentInspectSitePrompt
|
|
1838
|
-
];
|
|
1839
|
-
}
|
|
1840
|
-
//#endregion
|
|
1841
|
-
//#region src/scopes.ts
|
|
1842
|
-
/** OAuth scopes required for Consent MCP tools (offline_access added by base). */
|
|
1843
|
-
const CONSENT_OAUTH_SCOPES = [
|
|
1844
|
-
ScopeName.ViewConsentManager,
|
|
1845
|
-
ScopeName.ViewAssignedConsentManager,
|
|
1846
|
-
ScopeName.ManageConsentManager,
|
|
1847
|
-
ScopeName.ManageAssignedConsentManager,
|
|
1848
|
-
ScopeName.ViewDataFlow,
|
|
1849
|
-
ScopeName.ManageDataFlow,
|
|
1850
|
-
ScopeName.ViewManagedConsentDatabaseAdminApi
|
|
1851
|
-
];
|
|
1852
|
-
//#endregion
|
|
1853
|
-
export { ListRegimesSchema as A, resolveAnalyticsDateRange as B, COOKIE_TRIAGE_PURPOSE_ORDER as C, UpdateDataFlowsSchema as D, UpdateDataFlowItemSchema as E, GetTimeseriesAnalyticsSchema as F, resolveAirgapBundleId as G, DeleteCookiesSchema as H, GetPreferencesSchema as I, GetInventoryStatsSchema as L, ListDataFlowsSchema as M, ListCookiesSchema as N, UpdateCookieItemSchema as O, ListAirgapBundlesSchema as P, GetAnalyticsDataSchema as R, COOKIE_TRIAGE_MIN_OCCURRENCES as S, CookieTriagePurposeCategory as T, BulkTriageItemSchema as U, DeleteDataFlowsSchema as V, BulkTriageSchema as W, CookieTriageDecision as _, CookieTriageAppSchema as a, COOKIE_TRIAGE_FETCH_PAGE_SIZE as b, resolvePrimaryCookiePurpose as c, fetchDataFlowsForTriage as d, fetchTriageOrganizationName as f, ConsentTriageType as g, projectListNodeForTriage as h, ConsentTriageTypeSchema as i, ListPurposesSchema as j, UpdateCookiesSchema as k, fetchConsentTriageItems as l, projectDataFlowForTriage as m, getConsentPrompts as n, compareCookiesByOccurrencesDesc as o, projectCookieForTriage as p, getConsentTools as r, groupCookiesForTriage as s, CONSENT_OAUTH_SCOPES as t, fetchCookiesForTriage as u, CookieTriageLoadStatus as v, COOKIE_TRIAGE_UI_PAGE_SIZE as w, COOKIE_TRIAGE_MAX_PER_PURPOSE as x, COOKIE_TRIAGE_FETCH_MAX as y, GetAggregateAnalyticsSchema as z };
|
|
1854
|
-
|
|
1855
|
-
//# sourceMappingURL=scopes-BFDLHW1-.mjs.map
|