@zktx.io/sui-mcp 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/dist/adapters/deepbook/deepbookTransactionMaterialProducer.js +3 -3
- package/dist/core/activity/localDataService.js +71 -52
- package/dist/core/activity/localDataValidation.js +1 -3
- package/dist/core/activity/sqliteActivityStore.js +24 -16
- package/dist/core/activity/sqliteActivityStoreSchema.js +83 -12
- package/dist/core/preferences/sqlitePreferencesRepository.js +5 -3
- package/dist/core/session/cardSession.js +1 -1
- package/dist/core/session/cardSessionStore.js +53 -3
- package/dist/core/session/sessionStore.js +0 -17
- package/dist/core/session/settingsFileIdentity.js +11 -0
- package/dist/core/session/settingsFileProtocol.js +25 -0
- package/dist/core/session/settingsFileStore.js +346 -0
- package/dist/core/session/settingsInputError.js +34 -0
- package/dist/core/session/settingsOperation.js +224 -0
- package/dist/core/session/settingsPreparationSql.js +15 -0
- package/dist/core/session/settingsWorkflow.js +1219 -0
- package/dist/core/session/sqliteSessionStore.js +0 -40
- package/dist/core/session/sqliteSettingsWorkflowStore.js +463 -0
- package/dist/core/session/sqliteWalletWorkflowStore.js +164 -41
- package/dist/core/session/status.js +2 -2
- package/dist/core/session/walletConnection.js +27 -8
- package/dist/core/session/walletWorkflow.js +73 -15
- package/dist/core/session/workflowState.js +16 -8
- package/dist/core/session/workflowView.js +18 -2
- package/dist/mcp/responseGuidance.js +10 -5
- package/dist/mcp/serverInfo.js +3 -4
- package/dist/mcp/toolNames.js +2 -2
- package/dist/mcp/tools/account/index.js +1 -19
- package/dist/mcp/tools/read/readToolHelpers.js +5 -4
- package/dist/mcp/tools/session/executionResultTools.js +2 -2
- package/dist/mcp/tools/session/shared.js +1 -0
- package/dist/mcp/tools/session/statusTools.js +4 -3
- package/dist/mcp/tools/settings/index.js +8 -28
- package/dist/mcp-app/account.html +14 -14
- package/dist/mcp-app/account.notices.txt +1 -1
- package/dist/mcp-app/chart.html +9 -9
- package/dist/mcp-app/chart.notices.txt +1 -1
- package/dist/mcp-app/connect.html +14 -14
- package/dist/mcp-app/connect.notices.txt +1 -1
- package/dist/mcp-app/receipt.html +1298 -1463
- package/dist/mcp-app/receipt.notices.txt +226 -1204
- package/dist/mcp-app/review.html +1298 -1463
- package/dist/mcp-app/review.notices.txt +226 -1204
- package/dist/mcp-app/settings.html +3133 -0
- package/dist/mcp-app/settings.notices.txt +973 -0
- package/dist/mcp-ui/contracts.js +8 -2
- package/dist/mcp-ui/readCards.js +1 -1
- package/dist/mcp-ui/tools.js +33 -2
- package/dist/review-server/server.js +5 -51
- package/dist/runtime/application.js +41 -14
- package/dist/runtime/localSettingsService.js +26 -2
- package/dist/runtime/shared/authenticatedFetch.js +6 -2
- package/dist/runtime/shared/control.js +5 -6
- package/dist/runtime/shared/http.js +14 -0
- package/dist/runtime/shared/mcpHttp.js +9 -4
- package/dist/runtime/shared/server.js +1 -1
- package/dist/runtime/smokeMainnetRead.js +0 -1
- package/dist/runtime/walletConnectStorage.js +2 -4
- package/dist/runtime/walletSdkChildRuntime.js +2 -1
- package/dist/runtime/walletSdkIpc.js +2 -1
- package/dist/runtime/walletSdkProcess.js +3 -2
- package/docs/AGENT_BEHAVIOR.md +44 -10
- package/docs/AGENT_DEVELOPMENT_POLICY.md +16 -12
- package/docs/FRONTEND_POLICY.md +105 -28
- package/docs/LOCAL_DB_ARCHITECTURE.md +143 -20
- package/docs/MCP_SETUP.md +99 -39
- package/docs/MCP_TOOLS.md +273 -24
- package/docs/SDK_API.md +51 -10
- package/docs/UTILITY_INDEX.md +9 -6
- package/docs/WALLET_CONNECTION.md +30 -9
- package/package.json +13 -7
- package/dist/core/activity/schemaVersion.js +0 -2
- package/dist/core/session/keyedRecordStore.js +0 -18
- package/dist/core/session/settingsSession.js +0 -1
- package/dist/core/session/settingsSessions.js +0 -45
- package/dist/review-app/brand-dark.svg +0 -1
- package/dist/review-app/brand-light.svg +0 -1
- package/dist/review-app/favicon.svg +0 -1
- package/dist/review-app/settings.css +0 -1
- package/dist/review-app/settings.js +0 -1
- package/dist/review-app/ui.css +0 -809
- package/dist/review-server/assets.js +0 -48
- package/dist/review-server/html.js +0 -45
- package/dist/review-server/http.js +0 -47
- package/dist/review-server/middleware/reviewToken.js +0 -7
- package/dist/review-server/settingsApi.js +0 -158
|
@@ -0,0 +1,3133 @@
|
|
|
1
|
+
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Sui MCP</title><style>:root[data-theme=light]{--ui-bg:#f6f8fa;--ui-surface:#fff;--ui-surface-2:#eef1f5;--ui-border:#e3e8ef;--ui-border-strong:#cdd5e0;--ui-text:#18202b;--ui-text-muted:#5b6675;--ui-accent:#1565c0;--ui-accent-hover:#0d47a1;--ui-on-accent:#fff;--ui-focus:#1565c040;--ui-ok-bg:#e2f3e9;--ui-ok-text:#1b6b43;--ui-warn-bg:#fbeeda;--ui-warn-text:#8a5a08;--ui-danger:#b3261e;--ui-danger-bg:#fbe9e7;--ui-up:#1b7f43;--ui-down:#b3261e}:root[data-theme=dark]{--ui-bg:#0e141b;--ui-surface:#161d26;--ui-surface-2:#1e2733;--ui-border:#28323f;--ui-border-strong:#3a4859;--ui-text:#e7edf4;--ui-text-muted:#9aa7b6;--ui-accent:#4da2ff;--ui-accent-hover:#6fb8ff;--ui-on-accent:#06243f;--ui-focus:#4da2ff52;--ui-ok-bg:#10362a;--ui-ok-text:#7fe0b0;--ui-warn-bg:#3a2e16;--ui-warn-text:#f0c97a;--ui-danger:#ff8a80;--ui-danger-bg:#3a1f1d;--ui-up:#46c79e;--ui-down:#ff8a80}:root{--ui-r:10px;--ui-font-sans:ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;--ui-font-mono:ui-monospace, SFMono-Regular, Menlo, monospace}*,:before,:after{box-sizing:border-box}body{background:var(--ui-bg);color:var(--ui-text);font-family:var(--ui-font-sans);-webkit-font-smoothing:antialiased;margin:0;font-weight:400}.ui-mono{font-family:var(--ui-font-mono);overflow-wrap:anywhere;font-size:12.5px}.ui-btn{border:.5px solid var(--ui-border-strong);border-radius:var(--ui-r);background:var(--ui-surface);min-height:38px;color:var(--ui-text);font:inherit;cursor:pointer;justify-content:center;align-items:center;gap:7px;padding:0 16px;font-size:14px;font-weight:500;transition:background .12s,border-color .12s,transform 60ms;display:inline-flex}.ui-btn:hover{background:var(--ui-surface-2);border-color:var(--ui-accent)}.ui-btn:active{transform:scale(.975)}.ui-btn:focus-visible{box-shadow:0 0 0 3px var(--ui-focus);outline:none}.ui-btn--primary{background:var(--ui-accent);border-color:var(--ui-accent);color:var(--ui-on-accent)}.ui-btn--primary:hover{background:var(--ui-accent-hover);border-color:var(--ui-accent-hover)}.ui-btn--danger{border-color:var(--ui-danger);color:var(--ui-danger)}.ui-btn--danger:hover{background:var(--ui-danger-bg)}.ui-btn:disabled{cursor:not-allowed;color:var(--ui-text-muted);background:var(--ui-surface-2);border-color:var(--ui-border)}.ui-btn-row{flex-wrap:wrap;gap:10px;margin-top:12px;display:flex}.ui-btn-row>.ui-btn{flex:1 1 0;min-width:12rem}.ui-btn-row--end{justify-content:flex-end}.ui-btn-row--end>.ui-btn{flex:none;min-width:0}.ui-icon-btn{border:.5px solid var(--ui-border-strong);background:var(--ui-surface);width:34px;height:34px;color:var(--ui-text);cursor:pointer;border-radius:9px;flex:none;justify-content:center;align-items:center;padding:0;transition:background .12s,border-color .12s,transform 60ms;display:inline-flex}.ui-icon-btn:hover{background:var(--ui-surface-2);border-color:var(--ui-accent)}.ui-icon-btn:active{transform:scale(.94)}.ui-icon-btn:focus-visible{box-shadow:0 0 0 3px var(--ui-focus);outline:none}.ui-icon-btn svg{width:18px;height:18px}.ui-link{color:var(--ui-accent);cursor:pointer;text-decoration:none}.ui-link:hover{color:var(--ui-accent-hover);text-decoration:underline}.ui-field{color:var(--ui-text-muted);flex-direction:column;gap:5px;font-size:12px;display:flex}.ui-input,input.ui-input{border:.5px solid var(--ui-border-strong);border-radius:var(--ui-r);background:var(--ui-surface);height:38px;color:var(--ui-text);font:inherit;outline:none;padding:0 12px;font-size:14px;transition:border-color .12s,box-shadow .12s}.ui-input{width:100%}.ui-input::placeholder{color:var(--ui-text-muted)}.ui-select{border:.5px solid var(--ui-border-strong);border-radius:var(--ui-r);background:var(--ui-surface);width:100%;height:38px;color:var(--ui-text);font:inherit;cursor:pointer;outline:none;padding:0 12px;font-size:14px;transition:border-color .12s,box-shadow .12s}.ui-select:focus,.ui-input:focus{border-color:var(--ui-accent);box-shadow:0 0 0 3px var(--ui-focus)}.ui-card{background:var(--ui-surface);border:.5px solid var(--ui-border);padding:var(--ui-card-padding-block,16px) var(--ui-card-padding-inline,18px);border-radius:12px;margin:0 0 14px}.ui-section{min-width:0;margin-block:0 16px}.ui-section-title{justify-content:space-between;align-items:center;gap:10px;margin:0 0 10px;font-size:14px;font-weight:500;display:flex}.ui-card-title{margin:0 0 10px;font-size:14px;font-weight:500}.ui-card-head{margin:calc(-1 * var(--ui-card-padding-block,16px)) calc(-1 * var(--ui-card-padding-inline,18px)) 14px;padding:9px var(--ui-card-padding-inline,18px);background:var(--ui-surface-2);border-bottom:.5px solid var(--ui-border);border-radius:12px 12px 0 0;justify-content:space-between;align-items:center;gap:10px;font-size:14px;font-weight:500;display:flex}.ui-card-head+.ui-detail-item,.ui-card-head+.ui-row{border-top:0}.ui-row{border-top:.5px solid var(--ui-border);grid-template-columns:minmax(140px,.34fr) minmax(0,1fr);gap:12px;padding:9px 0;font-size:14px;display:grid}.ui-row:first-child{border-top:0}.ui-row-label{color:var(--ui-text-muted)}.ui-row-value{color:var(--ui-text);overflow-wrap:anywhere;font-variant-numeric:tabular-nums;text-align:right}.ui-status-banner{border-radius:var(--ui-r);border:.5px solid var(--ui-border-strong);background:var(--ui-surface-2);color:var(--ui-text);align-items:center;gap:9px;padding:11px 0;font-size:14px;font-weight:500;display:flex}.ui-status-icon{flex:none;display:inline-flex}.ui-status-icon svg{width:18px;height:18px}.ui-status-banner--success{background:var(--ui-ok-bg);color:var(--ui-ok-text);border-color:#0000}.ui-status-banner--failure{background:var(--ui-danger-bg);color:var(--ui-danger);border-color:#0000}.ui-status-banner--pending{color:var(--ui-text-muted)}.ui-detail-item{border-top:.5px solid var(--ui-border);padding:9px 0}.ui-detail-head{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:12px;display:flex}.ui-detail-title{color:var(--ui-text);overflow-wrap:anywhere;font-weight:500}.ui-detail-trailing{color:var(--ui-text);overflow-wrap:anywhere}.ui-detail-trailing--up{color:var(--ui-up)}.ui-detail-trailing--down{color:var(--ui-down)}.ui-detail-meta{color:var(--ui-text-muted);overflow-wrap:anywhere;gap:8px;margin-top:3px;font-size:12.5px;display:flex}.ui-detail-metalabel{color:var(--ui-text-muted);flex:none}.ui-feedback{border:.5px solid var(--ui-border);background:var(--ui-surface);color:var(--ui-text);border-left-width:3px;border-radius:8px;margin:0 0 14px;padding:11px 13px;font-size:13.5px}.ui-feedback--ok{border-left-color:var(--ui-ok-text)}.ui-feedback--error{border-left-color:var(--ui-danger)}.ui-card>.ui-feedback{margin:14px 0}.ui-card>.ui-feedback:last-child{margin-bottom:0}.ui-feedback-detail{color:var(--ui-text-muted);overflow-wrap:anywhere;margin-top:4px;font-size:12.5px;display:block}.ui-placeholder{border:.5px dashed var(--ui-border-strong);color:var(--ui-text-muted);text-align:center;border-radius:12px;margin:0 0 14px;padding:18px;font-size:13.5px}.ui-note{color:var(--ui-text-muted);margin:12px 0 0;font-size:12.5px;line-height:1.6}.ui-info{border:.5px solid var(--ui-border-strong);width:1.3em;height:1.3em;color:var(--ui-text-muted);cursor:help;vertical-align:middle;border-radius:50%;justify-content:center;align-items:center;margin-left:.3em;font-size:.72em;font-style:normal;font-weight:500;line-height:1;display:inline-flex}.ui-info:hover,.ui-info:focus-visible{border-color:var(--ui-accent);color:var(--ui-accent);outline:none}.ui-ptb-graph{min-height:60px;color:var(--ui-text-muted);font-size:13px;overflow-x:auto}.ui-ptb-graph svg{max-width:100%;height:auto}.ui-ptb-graph--error{color:var(--ui-danger)}.ui-chain-receipt-gas{margin-bottom:6px}.ui-chain-receipt-ptb{background:var(--ui-surface);min-width:0;overflow:hidden}.ui-ptb-actions{align-items:center;gap:4px;display:flex}.ui-ptb-graph-controls .ui-icon-btn{background:var(--ui-surface-2);box-shadow:0 1px 3px #0003}.ui-ptb-graph--interactive{cursor:grab;-webkit-user-select:none;user-select:none;touch-action:none;height:420px;position:relative;overflow:hidden}.ui-ptb-graph--grabbing{cursor:grabbing}.ui-ptb-graph-content{transform-origin:0 0;width:100%}.ui-ptb-graph-controls{z-index:2;flex-direction:column;gap:5px;display:flex;position:absolute;top:8px;right:8px}.ui-ptb-graph-controls .ui-icon-btn{width:28px;height:28px}.ui-ptb-graph-controls .ui-icon-btn svg{width:15px;height:15px}.ui-accordion{border-block-start:1px solid var(--ui-border);margin-block:12px}.ui-accordion-summary{cursor:pointer;color:var(--ui-text);justify-content:space-between;align-items:center;gap:10px;padding:11px 0;font-size:13px;font-weight:500;list-style:none;display:flex}.ui-accordion-summary::-webkit-details-marker{display:none}.ui-accordion-summary:hover{color:var(--ui-accent)}.ui-accordion-summary:focus-visible{box-shadow:0 0 0 3px var(--ui-focus);border-radius:var(--ui-r);outline:none}.ui-accordion-summary:after{content:"";border-right:1.5px solid var(--ui-text-muted);border-bottom:1.5px solid var(--ui-text-muted);flex:none;width:7px;height:7px;transition:transform .15s;transform:rotate(45deg)}.ui-accordion[open] .ui-accordion-summary:after{transform:rotate(-135deg)}.ui-accordion[open] .ui-accordion-summary{color:var(--ui-accent)}.ui-accordion-body{padding:4px 0 12px}.ui-accordion[open]>.ui-accordion-body{animation:.18s ease-out ui-reveal}@keyframes ui-reveal{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){.ui-accordion[open]>.ui-accordion-body{animation:none}}@container mcp-card (width<=28rem){.ui-card{--ui-card-padding-block:12px;--ui-card-padding-inline:12px}.ui-row{grid-template-columns:minmax(0,1fr);gap:4px}.ui-row-value{text-align:left}.ui-detail-meta{flex-wrap:wrap}}@container mcp-card (width>=0){.ui-card,.ui-card-head>:first-child,.ui-detail-head>*,.ui-detail-meta>*{min-width:0}.ui-ptb-actions{flex:none}.ui-ptb-graph--interactive{height:clamp(280px,75cqi,420px)}}.ui-error:not(:empty){color:var(--ui-danger)}.ui-note:empty,.ui-error:empty{display:none}.ui-form{flex-wrap:wrap;align-items:end;gap:12px;display:flex}.ui-form>*{min-width:0;max-width:100%}.ui-form>input,.ui-form>select,.ui-form>label{flex:14rem}.ui-form label{flex-direction:column;gap:6px;display:flex}.ui-form label>input,.ui-form label>select{width:100%}.ui-form>details,.ui-form>p,.ui-form>.card-actions{flex-basis:100%}@container mcp-card (width<=28rem){.ui-form>button{width:100%}}.settings-card{overflow-x:clip}.settings-card .settings-page--forward{animation:.18s ease-out settings-forward}.settings-card .settings-page--back{animation:.18s ease-out settings-back}@keyframes settings-forward{0%{opacity:0;transform:translate(16px)}to{opacity:1;transform:translate(0)}}@keyframes settings-back{0%{opacity:0;transform:translate(-16px)}to{opacity:1;transform:translate(0)}}@media (prefers-reduced-motion:reduce){.settings-card .settings-page--forward,.settings-card .settings-page--back{animation:none}}.settings-card .settings-toolbar{border-bottom:1px solid var(--ui-border);flex-wrap:wrap;align-items:center;gap:12px;margin-block-end:20px;padding-block:0 14px;display:flex}.settings-card .settings-location{color:var(--ui-text-muted);font-size:13px}.settings-card .settings-back{background:0 0;border-color:#0000;padding-inline:0 10px}.settings-card .settings-back:before{content:"←";margin-inline-end:8px}.settings-card .settings-menu{margin-block:16px;display:grid}.settings-card .settings-menu-item{text-align:start;white-space:normal;border:0;border-bottom:1px solid var(--ui-border);width:100%;color:var(--ui-text);background:0 0;border-radius:0;grid-template-columns:minmax(0,1fr);justify-content:stretch;justify-items:start;gap:5px;padding:18px 32px 18px 12px;display:grid;position:relative}.settings-card .settings-menu-item:hover{background:var(--ui-surface-2)}.settings-card .settings-menu-item:after{content:"";inset-inline-end:14px;border-top:1.5px solid var(--ui-text-muted);border-right:1.5px solid var(--ui-text-muted);width:7px;height:7px;position:absolute;top:50%;transform:translateY(-50%)rotate(45deg)}.settings-card .settings-menu-title{font-weight:600}.settings-card .settings-menu-description{color:var(--ui-text-muted);font-size:13px;font-weight:400}.settings-card .settings-pending{margin-block:20px}.settings-card .settings-action-row{align-items:stretch;gap:var(--ui-space-2,8px);grid-template-columns:minmax(0,1fr);margin-block-start:12px;display:grid}.settings-card .settings-action-row>.ui-btn{white-space:normal;overflow-wrap:anywhere;width:100%;min-width:0}.settings-card .settings-path{white-space:normal;overflow-wrap:anywhere}.settings-card .settings-backup-location .ui-row{grid-template-columns:minmax(0,1fr);gap:6px}.settings-card .settings-backup-location .ui-row-value{text-align:start}.settings-card .settings-choice{border-bottom:1px solid var(--ui-border);flex-wrap:wrap;align-items:center;gap:12px 20px;padding-block:18px;display:flex}.settings-card .settings-choice-copy{flex:16rem;min-width:0}.settings-card .settings-choice h3{margin-block:0 6px}.settings-card .settings-choice p{margin:0}.settings-card .settings-endpoint{border-bottom:1px solid var(--ui-border);padding-block:16px}.settings-card .settings-endpoint label{flex-direction:column;gap:8px;display:flex}html,body{min-height:0;margin:0}body{color:var(--ui-text);background:var(--ui-bg)}#app{padding:var(--ui-space-4,16px);overflow-wrap:anywhere;min-width:0;max-width:100%;container:mcp-card/inline-size}#app h1{margin:0 0 12px;font-size:20px;font-weight:500}.card-actions{margin-top:12px}.card-actions,.card-actions>div{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.card-chart{width:100%;min-width:0;height:clamp(280px,75cqi,400px)}.card-progress-hint{color:var(--ui-text-muted);align-items:center;gap:10px;margin-block:12px;font-size:12px;display:flex}.card-progress-hint[hidden]{display:none}
|
|
2
|
+
/*$vite$:1*/</style></head><body><main id="app" aria-live="polite"></main><template id="dependency-notices">@modelcontextprotocol/ext-apps 1.7.5
|
|
3
|
+
The MCP project is undergoing a licensing transition from the MIT License to the Apache License, Version 2.0 ("Apache-2.0"). All new code and specification contributions to the project are licensed under Apache-2.0. Documentation contributions (excluding specifications) are licensed under CC-BY-4.0.
|
|
4
|
+
|
|
5
|
+
Contributions for which relicensing consent has been obtained are licensed under Apache-2.0. Contributions made by authors who originally licensed their work under the MIT License and who have not yet granted explicit permission to relicense remain licensed under the MIT License.
|
|
6
|
+
|
|
7
|
+
No rights beyond those granted by the applicable original license are conveyed for such contributions.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
Apache License
|
|
12
|
+
Version 2.0, January 2004
|
|
13
|
+
http://www.apache.org/licenses/
|
|
14
|
+
|
|
15
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
16
|
+
|
|
17
|
+
1. Definitions.
|
|
18
|
+
|
|
19
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
20
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
21
|
+
|
|
22
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
23
|
+
the copyright owner that is granting the License.
|
|
24
|
+
|
|
25
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
26
|
+
other entities that control, are controlled by, or are under common
|
|
27
|
+
control with that entity. For the purposes of this definition,
|
|
28
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
29
|
+
direction or management of such entity, whether by contract or
|
|
30
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
31
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
32
|
+
|
|
33
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
34
|
+
exercising permissions granted by this License.
|
|
35
|
+
|
|
36
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
37
|
+
including but not limited to software source code, documentation
|
|
38
|
+
source, and configuration files.
|
|
39
|
+
|
|
40
|
+
"Object" form shall mean any form resulting from mechanical
|
|
41
|
+
transformation or translation of a Source form, including but
|
|
42
|
+
not limited to compiled object code, generated documentation,
|
|
43
|
+
and conversions to other media types.
|
|
44
|
+
|
|
45
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
46
|
+
Object form, made available under the License, as indicated by a
|
|
47
|
+
copyright notice that is included in or attached to the work
|
|
48
|
+
(an example is provided in the Appendix below).
|
|
49
|
+
|
|
50
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
51
|
+
form, that is based on (or derived from) the Work and for which the
|
|
52
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
53
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
54
|
+
of this License, Derivative Works shall not include works that remain
|
|
55
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
56
|
+
the Work and Derivative Works thereof.
|
|
57
|
+
|
|
58
|
+
"Contribution" shall mean any work of authorship, including
|
|
59
|
+
the original version of the Work and any modifications or additions
|
|
60
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
61
|
+
submitted to the Licensor for inclusion in the Work by the copyright
|
|
62
|
+
owner or by an individual or Legal Entity authorized to submit on behalf
|
|
63
|
+
of the copyright owner. For the purposes of this definition, "submitted"
|
|
64
|
+
means any form of electronic, verbal, or written communication sent
|
|
65
|
+
to the Licensor or its representatives, including but not limited to
|
|
66
|
+
communication on electronic mailing lists, source code control systems,
|
|
67
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
68
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
69
|
+
excluding communication that is conspicuously marked or otherwise
|
|
70
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
71
|
+
|
|
72
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
73
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
74
|
+
subsequently incorporated within the Work.
|
|
75
|
+
|
|
76
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
77
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
78
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
79
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
80
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
81
|
+
Work and such Derivative Works in Source or Object form.
|
|
82
|
+
|
|
83
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
84
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
85
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
86
|
+
(except as stated in this section) patent license to make, have made,
|
|
87
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
88
|
+
where such license applies only to those patent claims licensable
|
|
89
|
+
by such Contributor that are necessarily infringed by their
|
|
90
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
91
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
92
|
+
institute patent litigation against any entity (including a
|
|
93
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
94
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
95
|
+
or contributory patent infringement, then any patent licenses
|
|
96
|
+
granted to You under this License for that Work shall terminate
|
|
97
|
+
as of the date such litigation is filed.
|
|
98
|
+
|
|
99
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
100
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
101
|
+
modifications, and in Source or Object form, provided that You
|
|
102
|
+
meet the following conditions:
|
|
103
|
+
|
|
104
|
+
(a) You must give any other recipients of the Work or
|
|
105
|
+
Derivative Works a copy of this License; and
|
|
106
|
+
|
|
107
|
+
(b) You must cause any modified files to carry prominent notices
|
|
108
|
+
stating that You changed the files; and
|
|
109
|
+
|
|
110
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
111
|
+
that You distribute, all copyright, patent, trademark, and
|
|
112
|
+
attribution notices from the Source form of the Work,
|
|
113
|
+
excluding those notices that do not pertain to any part of
|
|
114
|
+
the Derivative Works; and
|
|
115
|
+
|
|
116
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
117
|
+
distribution, then any Derivative Works that You distribute must
|
|
118
|
+
include a readable copy of the attribution notices contained
|
|
119
|
+
within such NOTICE file, excluding those notices that do not
|
|
120
|
+
pertain to any part of the Derivative Works, in at least one
|
|
121
|
+
of the following places: within a NOTICE text file distributed
|
|
122
|
+
as part of the Derivative Works; within the Source form or
|
|
123
|
+
documentation, if provided along with the Derivative Works; or,
|
|
124
|
+
within a display generated by the Derivative Works, if and
|
|
125
|
+
wherever such third-party notices normally appear. The contents
|
|
126
|
+
of the NOTICE file are for informational purposes only and
|
|
127
|
+
do not modify the License. You may add Your own attribution
|
|
128
|
+
notices within Derivative Works that You distribute, alongside
|
|
129
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
130
|
+
that such additional attribution notices cannot be construed
|
|
131
|
+
as modifying the License.
|
|
132
|
+
|
|
133
|
+
You may add Your own copyright statement to Your modifications and
|
|
134
|
+
may provide additional or different license terms and conditions
|
|
135
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
136
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
137
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
138
|
+
the conditions stated in this License.
|
|
139
|
+
|
|
140
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
141
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
142
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
143
|
+
this License, without any additional terms or conditions.
|
|
144
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
145
|
+
the terms of any separate license agreement you may have executed
|
|
146
|
+
with Licensor regarding such Contributions.
|
|
147
|
+
|
|
148
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
149
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
150
|
+
except as required for reasonable and customary use in describing the
|
|
151
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
152
|
+
|
|
153
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
154
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
155
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
156
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
157
|
+
implied, including, without limitation, any warranties or conditions
|
|
158
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
159
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
160
|
+
appropriateness of using or redistributing the Work and assume any
|
|
161
|
+
risks associated with Your exercise of permissions under this License.
|
|
162
|
+
|
|
163
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
164
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
165
|
+
unless required by applicable law (such as deliberate and grossly
|
|
166
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
167
|
+
liable to You for damages, including any direct, indirect, special,
|
|
168
|
+
incidental, or consequential damages of any character arising as a
|
|
169
|
+
result of this License or out of the use or inability to use the
|
|
170
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
171
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
172
|
+
other commercial damages or losses), even if such Contributor
|
|
173
|
+
has been advised of the possibility of such damages.
|
|
174
|
+
|
|
175
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
176
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
177
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
178
|
+
or other liability obligations and/or rights consistent with this
|
|
179
|
+
License. However, in accepting such obligations, You may act only
|
|
180
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
181
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
182
|
+
defend, and hold each Contributor harmless for any liability
|
|
183
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
184
|
+
of your accepting any such warranty or additional liability.
|
|
185
|
+
|
|
186
|
+
END OF TERMS AND CONDITIONS
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
MIT License
|
|
191
|
+
|
|
192
|
+
Copyright (c) 2024-2025 Model Context Protocol a Series of LF Projects, LLC.
|
|
193
|
+
|
|
194
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
195
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
196
|
+
in the Software without restriction, including without limitation the rights
|
|
197
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
198
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
199
|
+
furnished to do so, subject to the following conditions:
|
|
200
|
+
|
|
201
|
+
The above copyright notice and this permission notice shall be included in all
|
|
202
|
+
copies or substantial portions of the Software.
|
|
203
|
+
|
|
204
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
205
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
206
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
207
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
208
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
209
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
210
|
+
SOFTWARE.
|
|
211
|
+
|
|
212
|
+
---
|
|
213
|
+
|
|
214
|
+
Creative Commons Attribution 4.0 International (CC-BY-4.0)
|
|
215
|
+
|
|
216
|
+
Documentation in this project (excluding specifications) is licensed under
|
|
217
|
+
CC-BY-4.0. See https://creativecommons.org/licenses/by/4.0/legalcode for
|
|
218
|
+
the full license text.
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
---
|
|
222
|
+
|
|
223
|
+
@modelcontextprotocol/sdk 1.31.0
|
|
224
|
+
MIT License
|
|
225
|
+
|
|
226
|
+
Copyright (c) 2024 Anthropic, PBC
|
|
227
|
+
|
|
228
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
229
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
230
|
+
in the Software without restriction, including without limitation the rights
|
|
231
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
232
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
233
|
+
furnished to do so, subject to the following conditions:
|
|
234
|
+
|
|
235
|
+
The above copyright notice and this permission notice shall be included in all
|
|
236
|
+
copies or substantial portions of the Software.
|
|
237
|
+
|
|
238
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
239
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
240
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
241
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
242
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
243
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
244
|
+
SOFTWARE.
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
---
|
|
248
|
+
|
|
249
|
+
@mysten/bcs 2.0.5
|
|
250
|
+
@mysten/bcs 2.0.5
|
|
251
|
+
Copyright (c) Mysten Labs, Inc.
|
|
252
|
+
SPDX-License-Identifier: Apache-2.0
|
|
253
|
+
|
|
254
|
+
Apache License
|
|
255
|
+
Version 2.0, January 2004
|
|
256
|
+
http://www.apache.org/licenses/
|
|
257
|
+
|
|
258
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
259
|
+
|
|
260
|
+
1. Definitions.
|
|
261
|
+
|
|
262
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
263
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
264
|
+
|
|
265
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
266
|
+
the copyright owner that is granting the License.
|
|
267
|
+
|
|
268
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
269
|
+
other entities that control, are controlled by, or are under common
|
|
270
|
+
control with that entity. For the purposes of this definition,
|
|
271
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
272
|
+
direction or management of such entity, whether by contract or
|
|
273
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
274
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
275
|
+
|
|
276
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
277
|
+
exercising permissions granted by this License.
|
|
278
|
+
|
|
279
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
280
|
+
including but not limited to software source code, documentation
|
|
281
|
+
source, and configuration files.
|
|
282
|
+
|
|
283
|
+
"Object" form shall mean any form resulting from mechanical
|
|
284
|
+
transformation or translation of a Source form, including but
|
|
285
|
+
not limited to compiled object code, generated documentation,
|
|
286
|
+
and conversions to other media types.
|
|
287
|
+
|
|
288
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
289
|
+
Object form, made available under the License, as indicated by a
|
|
290
|
+
copyright notice that is included in or attached to the work
|
|
291
|
+
(an example is provided in the Appendix below).
|
|
292
|
+
|
|
293
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
294
|
+
form, that is based on (or derived from) the Work and for which the
|
|
295
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
296
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
297
|
+
of this License, Derivative Works shall not include works that remain
|
|
298
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
299
|
+
the Work and Derivative Works thereof.
|
|
300
|
+
|
|
301
|
+
"Contribution" shall mean any work of authorship, including
|
|
302
|
+
the original version of the Work and any modifications or additions
|
|
303
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
304
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
305
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
306
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
307
|
+
means any form of electronic, verbal, or written communication sent
|
|
308
|
+
to the Licensor or its representatives, including but not limited to
|
|
309
|
+
communication on electronic mailing lists, source code control systems,
|
|
310
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
311
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
312
|
+
excluding communication that is conspicuously marked or otherwise
|
|
313
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
314
|
+
|
|
315
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
316
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
317
|
+
subsequently incorporated within the Work.
|
|
318
|
+
|
|
319
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
320
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
321
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
322
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
323
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
324
|
+
Work and such Derivative Works in Source or Object form.
|
|
325
|
+
|
|
326
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
327
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
328
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
329
|
+
(except as stated in this section) patent license to make, have made,
|
|
330
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
331
|
+
where such license applies only to those patent claims licensable
|
|
332
|
+
by such Contributor that are necessarily infringed by their
|
|
333
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
334
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
335
|
+
institute patent litigation against any entity (including a
|
|
336
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
337
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
338
|
+
or contributory patent infringement, then any patent licenses
|
|
339
|
+
granted to You under this License for that Work shall terminate
|
|
340
|
+
as of the date such litigation is filed.
|
|
341
|
+
|
|
342
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
343
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
344
|
+
modifications, and in Source or Object form, provided that You
|
|
345
|
+
meet the following conditions:
|
|
346
|
+
|
|
347
|
+
(a) You must give any other recipients of the Work or
|
|
348
|
+
Derivative Works a copy of this License; and
|
|
349
|
+
|
|
350
|
+
(b) You must cause any modified files to carry prominent notices
|
|
351
|
+
stating that You changed the files; and
|
|
352
|
+
|
|
353
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
354
|
+
that You distribute, all copyright, patent, trademark, and
|
|
355
|
+
attribution notices from the Source form of the Work,
|
|
356
|
+
excluding those notices that do not pertain to any part of
|
|
357
|
+
the Derivative Works; and
|
|
358
|
+
|
|
359
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
360
|
+
distribution, then any Derivative Works that You distribute must
|
|
361
|
+
include a readable copy of the attribution notices contained
|
|
362
|
+
within such NOTICE file, excluding those notices that do not
|
|
363
|
+
pertain to any part of the Derivative Works, in at least one
|
|
364
|
+
of the following places: within a NOTICE text file distributed
|
|
365
|
+
as part of the Derivative Works; within the Source form or
|
|
366
|
+
documentation, if provided along with the Derivative Works; or,
|
|
367
|
+
within a display generated by the Derivative Works, if and
|
|
368
|
+
wherever such third-party notices normally appear. The contents
|
|
369
|
+
of the NOTICE file are for informational purposes only and
|
|
370
|
+
do not modify the License. You may add Your own attribution
|
|
371
|
+
notices within Derivative Works that You distribute, alongside
|
|
372
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
373
|
+
that such additional attribution notices cannot be construed
|
|
374
|
+
as modifying the License.
|
|
375
|
+
|
|
376
|
+
You may add Your own copyright statement to Your modifications and
|
|
377
|
+
may provide additional or different license terms and conditions
|
|
378
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
379
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
380
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
381
|
+
the conditions stated in this License.
|
|
382
|
+
|
|
383
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
384
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
385
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
386
|
+
this License, without any additional terms or conditions.
|
|
387
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
388
|
+
the terms of any separate license agreement you may have executed
|
|
389
|
+
with Licensor regarding such Contributions.
|
|
390
|
+
|
|
391
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
392
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
393
|
+
except as required for reasonable and customary use in describing the
|
|
394
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
395
|
+
|
|
396
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
397
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
398
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
399
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
400
|
+
implied, including, without limitation, any warranties or conditions
|
|
401
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
402
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
403
|
+
appropriateness of using or redistributing the Work and assume any
|
|
404
|
+
risks associated with Your exercise of permissions under this License.
|
|
405
|
+
|
|
406
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
407
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
408
|
+
unless required by applicable law (such as deliberate and grossly
|
|
409
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
410
|
+
liable to You for damages, including any direct, indirect, special,
|
|
411
|
+
incidental, or consequential damages of any character arising as a
|
|
412
|
+
result of this License or out of the use or inability to use the
|
|
413
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
414
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
415
|
+
other commercial damages or losses), even if such Contributor
|
|
416
|
+
has been advised of the possibility of such damages.
|
|
417
|
+
|
|
418
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
419
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
420
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
421
|
+
or other liability obligations and/or rights consistent with this
|
|
422
|
+
License. However, in accepting such obligations, You may act only
|
|
423
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
424
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
425
|
+
defend, and hold each Contributor harmless for any liability
|
|
426
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
427
|
+
of your accepting any such warranty or additional liability.
|
|
428
|
+
|
|
429
|
+
END OF TERMS AND CONDITIONS
|
|
430
|
+
|
|
431
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
432
|
+
|
|
433
|
+
To apply the Apache License to your work, attach the following
|
|
434
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
435
|
+
replaced with your own identifying information. (Don't include
|
|
436
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
437
|
+
comment syntax for the file format. We also recommend that a
|
|
438
|
+
file or class name and description of purpose be included on the
|
|
439
|
+
same "printed page" as the copyright notice for easier
|
|
440
|
+
identification within third-party archives.
|
|
441
|
+
|
|
442
|
+
Copyright [yyyy] [name of copyright owner]
|
|
443
|
+
|
|
444
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
445
|
+
you may not use this file except in compliance with the License.
|
|
446
|
+
You may obtain a copy of the License at
|
|
447
|
+
|
|
448
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
449
|
+
|
|
450
|
+
Unless required by applicable law or agreed to in writing, software
|
|
451
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
452
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
453
|
+
See the License for the specific language governing permissions and
|
|
454
|
+
limitations under the License.
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
---
|
|
458
|
+
|
|
459
|
+
@mysten/sui 2.17.0
|
|
460
|
+
Apache License
|
|
461
|
+
Version 2.0, January 2004
|
|
462
|
+
http://www.apache.org/licenses/
|
|
463
|
+
|
|
464
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
465
|
+
|
|
466
|
+
1. Definitions.
|
|
467
|
+
|
|
468
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
469
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
470
|
+
|
|
471
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
472
|
+
the copyright owner that is granting the License.
|
|
473
|
+
|
|
474
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
475
|
+
other entities that control, are controlled by, or are under common
|
|
476
|
+
control with that entity. For the purposes of this definition,
|
|
477
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
478
|
+
direction or management of such entity, whether by contract or
|
|
479
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
480
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
481
|
+
|
|
482
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
483
|
+
exercising permissions granted by this License.
|
|
484
|
+
|
|
485
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
486
|
+
including but not limited to software source code, documentation
|
|
487
|
+
source, and configuration files.
|
|
488
|
+
|
|
489
|
+
"Object" form shall mean any form resulting from mechanical
|
|
490
|
+
transformation or translation of a Source form, including but
|
|
491
|
+
not limited to compiled object code, generated documentation,
|
|
492
|
+
and conversions to other media types.
|
|
493
|
+
|
|
494
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
495
|
+
Object form, made available under the License, as indicated by a
|
|
496
|
+
copyright notice that is included in or attached to the work
|
|
497
|
+
(an example is provided in the Appendix below).
|
|
498
|
+
|
|
499
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
500
|
+
form, that is based on (or derived from) the Work and for which the
|
|
501
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
502
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
503
|
+
of this License, Derivative Works shall not include works that remain
|
|
504
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
505
|
+
the Work and Derivative Works thereof.
|
|
506
|
+
|
|
507
|
+
"Contribution" shall mean any work of authorship, including
|
|
508
|
+
the original version of the Work and any modifications or additions
|
|
509
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
510
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
511
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
512
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
513
|
+
means any form of electronic, verbal, or written communication sent
|
|
514
|
+
to the Licensor or its representatives, including but not limited to
|
|
515
|
+
communication on electronic mailing lists, source code control systems,
|
|
516
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
517
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
518
|
+
excluding communication that is conspicuously marked or otherwise
|
|
519
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
520
|
+
|
|
521
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
522
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
523
|
+
subsequently incorporated within the Work.
|
|
524
|
+
|
|
525
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
526
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
527
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
528
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
529
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
530
|
+
Work and such Derivative Works in Source or Object form.
|
|
531
|
+
|
|
532
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
533
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
534
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
535
|
+
(except as stated in this section) patent license to make, have made,
|
|
536
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
537
|
+
where such license applies only to those patent claims licensable
|
|
538
|
+
by such Contributor that are necessarily infringed by their
|
|
539
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
540
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
541
|
+
institute patent litigation against any entity (including a
|
|
542
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
543
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
544
|
+
or contributory patent infringement, then any patent licenses
|
|
545
|
+
granted to You under this License for that Work shall terminate
|
|
546
|
+
as of the date such litigation is filed.
|
|
547
|
+
|
|
548
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
549
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
550
|
+
modifications, and in Source or Object form, provided that You
|
|
551
|
+
meet the following conditions:
|
|
552
|
+
|
|
553
|
+
(a) You must give any other recipients of the Work or
|
|
554
|
+
Derivative Works a copy of this License; and
|
|
555
|
+
|
|
556
|
+
(b) You must cause any modified files to carry prominent notices
|
|
557
|
+
stating that You changed the files; and
|
|
558
|
+
|
|
559
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
560
|
+
that You distribute, all copyright, patent, trademark, and
|
|
561
|
+
attribution notices from the Source form of the Work,
|
|
562
|
+
excluding those notices that do not pertain to any part of
|
|
563
|
+
the Derivative Works; and
|
|
564
|
+
|
|
565
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
566
|
+
distribution, then any Derivative Works that You distribute must
|
|
567
|
+
include a readable copy of the attribution notices contained
|
|
568
|
+
within such NOTICE file, excluding those notices that do not
|
|
569
|
+
pertain to any part of the Derivative Works, in at least one
|
|
570
|
+
of the following places: within a NOTICE text file distributed
|
|
571
|
+
as part of the Derivative Works; within the Source form or
|
|
572
|
+
documentation, if provided along with the Derivative Works; or,
|
|
573
|
+
within a display generated by the Derivative Works, if and
|
|
574
|
+
wherever such third-party notices normally appear. The contents
|
|
575
|
+
of the NOTICE file are for informational purposes only and
|
|
576
|
+
do not modify the License. You may add Your own attribution
|
|
577
|
+
notices within Derivative Works that You distribute, alongside
|
|
578
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
579
|
+
that such additional attribution notices cannot be construed
|
|
580
|
+
as modifying the License.
|
|
581
|
+
|
|
582
|
+
You may add Your own copyright statement to Your modifications and
|
|
583
|
+
may provide additional or different license terms and conditions
|
|
584
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
585
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
586
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
587
|
+
the conditions stated in this License.
|
|
588
|
+
|
|
589
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
590
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
591
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
592
|
+
this License, without any additional terms or conditions.
|
|
593
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
594
|
+
the terms of any separate license agreement you may have executed
|
|
595
|
+
with Licensor regarding such Contributions.
|
|
596
|
+
|
|
597
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
598
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
599
|
+
except as required for reasonable and customary use in describing the
|
|
600
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
601
|
+
|
|
602
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
603
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
604
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
605
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
606
|
+
implied, including, without limitation, any warranties or conditions
|
|
607
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
608
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
609
|
+
appropriateness of using or redistributing the Work and assume any
|
|
610
|
+
risks associated with Your exercise of permissions under this License.
|
|
611
|
+
|
|
612
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
613
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
614
|
+
unless required by applicable law (such as deliberate and grossly
|
|
615
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
616
|
+
liable to You for damages, including any direct, indirect, special,
|
|
617
|
+
incidental, or consequential damages of any character arising as a
|
|
618
|
+
result of this License or out of the use or inability to use the
|
|
619
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
620
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
621
|
+
other commercial damages or losses), even if such Contributor
|
|
622
|
+
has been advised of the possibility of such damages.
|
|
623
|
+
|
|
624
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
625
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
626
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
627
|
+
or other liability obligations and/or rights consistent with this
|
|
628
|
+
License. However, in accepting such obligations, You may act only
|
|
629
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
630
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
631
|
+
defend, and hold each Contributor harmless for any liability
|
|
632
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
633
|
+
of your accepting any such warranty or additional liability.
|
|
634
|
+
|
|
635
|
+
END OF TERMS AND CONDITIONS
|
|
636
|
+
|
|
637
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
638
|
+
|
|
639
|
+
To apply the Apache License to your work, attach the following
|
|
640
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
641
|
+
replaced with your own identifying information. (Don't include
|
|
642
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
643
|
+
comment syntax for the file format. We also recommend that a
|
|
644
|
+
file or class name and description of purpose be included on the
|
|
645
|
+
same "printed page" as the copyright notice for easier
|
|
646
|
+
identification within third-party archives.
|
|
647
|
+
|
|
648
|
+
Copyright [yyyy] [name of copyright owner]
|
|
649
|
+
|
|
650
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
651
|
+
you may not use this file except in compliance with the License.
|
|
652
|
+
You may obtain a copy of the License at
|
|
653
|
+
|
|
654
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
655
|
+
|
|
656
|
+
Unless required by applicable law or agreed to in writing, software
|
|
657
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
658
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
659
|
+
See the License for the specific language governing permissions and
|
|
660
|
+
limitations under the License.
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
---
|
|
664
|
+
|
|
665
|
+
@mysten/utils 0.3.3
|
|
666
|
+
@mysten/utils 0.3.3
|
|
667
|
+
Copyright (c) Mysten Labs, Inc.
|
|
668
|
+
SPDX-License-Identifier: Apache-2.0
|
|
669
|
+
|
|
670
|
+
Apache License
|
|
671
|
+
Version 2.0, January 2004
|
|
672
|
+
http://www.apache.org/licenses/
|
|
673
|
+
|
|
674
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
675
|
+
|
|
676
|
+
1. Definitions.
|
|
677
|
+
|
|
678
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
679
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
680
|
+
|
|
681
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
682
|
+
the copyright owner that is granting the License.
|
|
683
|
+
|
|
684
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
685
|
+
other entities that control, are controlled by, or are under common
|
|
686
|
+
control with that entity. For the purposes of this definition,
|
|
687
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
688
|
+
direction or management of such entity, whether by contract or
|
|
689
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
690
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
691
|
+
|
|
692
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
693
|
+
exercising permissions granted by this License.
|
|
694
|
+
|
|
695
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
696
|
+
including but not limited to software source code, documentation
|
|
697
|
+
source, and configuration files.
|
|
698
|
+
|
|
699
|
+
"Object" form shall mean any form resulting from mechanical
|
|
700
|
+
transformation or translation of a Source form, including but
|
|
701
|
+
not limited to compiled object code, generated documentation,
|
|
702
|
+
and conversions to other media types.
|
|
703
|
+
|
|
704
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
705
|
+
Object form, made available under the License, as indicated by a
|
|
706
|
+
copyright notice that is included in or attached to the work
|
|
707
|
+
(an example is provided in the Appendix below).
|
|
708
|
+
|
|
709
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
710
|
+
form, that is based on (or derived from) the Work and for which the
|
|
711
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
712
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
713
|
+
of this License, Derivative Works shall not include works that remain
|
|
714
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
715
|
+
the Work and Derivative Works thereof.
|
|
716
|
+
|
|
717
|
+
"Contribution" shall mean any work of authorship, including
|
|
718
|
+
the original version of the Work and any modifications or additions
|
|
719
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
720
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
721
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
722
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
723
|
+
means any form of electronic, verbal, or written communication sent
|
|
724
|
+
to the Licensor or its representatives, including but not limited to
|
|
725
|
+
communication on electronic mailing lists, source code control systems,
|
|
726
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
727
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
728
|
+
excluding communication that is conspicuously marked or otherwise
|
|
729
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
730
|
+
|
|
731
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
732
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
733
|
+
subsequently incorporated within the Work.
|
|
734
|
+
|
|
735
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
736
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
737
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
738
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
739
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
740
|
+
Work and such Derivative Works in Source or Object form.
|
|
741
|
+
|
|
742
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
743
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
744
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
745
|
+
(except as stated in this section) patent license to make, have made,
|
|
746
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
747
|
+
where such license applies only to those patent claims licensable
|
|
748
|
+
by such Contributor that are necessarily infringed by their
|
|
749
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
750
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
751
|
+
institute patent litigation against any entity (including a
|
|
752
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
753
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
754
|
+
or contributory patent infringement, then any patent licenses
|
|
755
|
+
granted to You under this License for that Work shall terminate
|
|
756
|
+
as of the date such litigation is filed.
|
|
757
|
+
|
|
758
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
759
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
760
|
+
modifications, and in Source or Object form, provided that You
|
|
761
|
+
meet the following conditions:
|
|
762
|
+
|
|
763
|
+
(a) You must give any other recipients of the Work or
|
|
764
|
+
Derivative Works a copy of this License; and
|
|
765
|
+
|
|
766
|
+
(b) You must cause any modified files to carry prominent notices
|
|
767
|
+
stating that You changed the files; and
|
|
768
|
+
|
|
769
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
770
|
+
that You distribute, all copyright, patent, trademark, and
|
|
771
|
+
attribution notices from the Source form of the Work,
|
|
772
|
+
excluding those notices that do not pertain to any part of
|
|
773
|
+
the Derivative Works; and
|
|
774
|
+
|
|
775
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
776
|
+
distribution, then any Derivative Works that You distribute must
|
|
777
|
+
include a readable copy of the attribution notices contained
|
|
778
|
+
within such NOTICE file, excluding those notices that do not
|
|
779
|
+
pertain to any part of the Derivative Works, in at least one
|
|
780
|
+
of the following places: within a NOTICE text file distributed
|
|
781
|
+
as part of the Derivative Works; within the Source form or
|
|
782
|
+
documentation, if provided along with the Derivative Works; or,
|
|
783
|
+
within a display generated by the Derivative Works, if and
|
|
784
|
+
wherever such third-party notices normally appear. The contents
|
|
785
|
+
of the NOTICE file are for informational purposes only and
|
|
786
|
+
do not modify the License. You may add Your own attribution
|
|
787
|
+
notices within Derivative Works that You distribute, alongside
|
|
788
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
789
|
+
that such additional attribution notices cannot be construed
|
|
790
|
+
as modifying the License.
|
|
791
|
+
|
|
792
|
+
You may add Your own copyright statement to Your modifications and
|
|
793
|
+
may provide additional or different license terms and conditions
|
|
794
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
795
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
796
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
797
|
+
the conditions stated in this License.
|
|
798
|
+
|
|
799
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
800
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
801
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
802
|
+
this License, without any additional terms or conditions.
|
|
803
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
804
|
+
the terms of any separate license agreement you may have executed
|
|
805
|
+
with Licensor regarding such Contributions.
|
|
806
|
+
|
|
807
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
808
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
809
|
+
except as required for reasonable and customary use in describing the
|
|
810
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
811
|
+
|
|
812
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
813
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
814
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
815
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
816
|
+
implied, including, without limitation, any warranties or conditions
|
|
817
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
818
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
819
|
+
appropriateness of using or redistributing the Work and assume any
|
|
820
|
+
risks associated with Your exercise of permissions under this License.
|
|
821
|
+
|
|
822
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
823
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
824
|
+
unless required by applicable law (such as deliberate and grossly
|
|
825
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
826
|
+
liable to You for damages, including any direct, indirect, special,
|
|
827
|
+
incidental, or consequential damages of any character arising as a
|
|
828
|
+
result of this License or out of the use or inability to use the
|
|
829
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
830
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
831
|
+
other commercial damages or losses), even if such Contributor
|
|
832
|
+
has been advised of the possibility of such damages.
|
|
833
|
+
|
|
834
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
835
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
836
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
837
|
+
or other liability obligations and/or rights consistent with this
|
|
838
|
+
License. However, in accepting such obligations, You may act only
|
|
839
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
840
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
841
|
+
defend, and hold each Contributor harmless for any liability
|
|
842
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
843
|
+
of your accepting any such warranty or additional liability.
|
|
844
|
+
|
|
845
|
+
END OF TERMS AND CONDITIONS
|
|
846
|
+
|
|
847
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
848
|
+
|
|
849
|
+
To apply the Apache License to your work, attach the following
|
|
850
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
851
|
+
replaced with your own identifying information. (Don't include
|
|
852
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
853
|
+
comment syntax for the file format. We also recommend that a
|
|
854
|
+
file or class name and description of purpose be included on the
|
|
855
|
+
same "printed page" as the copyright notice for easier
|
|
856
|
+
identification within third-party archives.
|
|
857
|
+
|
|
858
|
+
Copyright [yyyy] [name of copyright owner]
|
|
859
|
+
|
|
860
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
861
|
+
you may not use this file except in compliance with the License.
|
|
862
|
+
You may obtain a copy of the License at
|
|
863
|
+
|
|
864
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
865
|
+
|
|
866
|
+
Unless required by applicable law or agreed to in writing, software
|
|
867
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
868
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
869
|
+
See the License for the specific language governing permissions and
|
|
870
|
+
limitations under the License.
|
|
871
|
+
|
|
872
|
+
|
|
873
|
+
---
|
|
874
|
+
|
|
875
|
+
@noble/hashes 2.2.0
|
|
876
|
+
The MIT License (MIT)
|
|
877
|
+
|
|
878
|
+
Copyright (c) 2022 Paul Miller (https://paulmillr.com)
|
|
879
|
+
|
|
880
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
881
|
+
of this software and associated documentation files (the “Software”), to deal
|
|
882
|
+
in the Software without restriction, including without limitation the rights
|
|
883
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
884
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
885
|
+
furnished to do so, subject to the following conditions:
|
|
886
|
+
|
|
887
|
+
The above copyright notice and this permission notice shall be included in
|
|
888
|
+
all copies or substantial portions of the Software.
|
|
889
|
+
|
|
890
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
891
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
892
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
893
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
894
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
895
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
896
|
+
THE SOFTWARE.
|
|
897
|
+
|
|
898
|
+
---
|
|
899
|
+
|
|
900
|
+
@scure/base 2.2.0
|
|
901
|
+
The MIT License (MIT)
|
|
902
|
+
|
|
903
|
+
Copyright (c) 2022 Paul Miller (https://paulmillr.com)
|
|
904
|
+
|
|
905
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
906
|
+
of this software and associated documentation files (the “Software”), to deal
|
|
907
|
+
in the Software without restriction, including without limitation the rights
|
|
908
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
909
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
910
|
+
furnished to do so, subject to the following conditions:
|
|
911
|
+
|
|
912
|
+
The above copyright notice and this permission notice shall be included in
|
|
913
|
+
all copies or substantial portions of the Software.
|
|
914
|
+
|
|
915
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
916
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
917
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
918
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
919
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
920
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
921
|
+
THE SOFTWARE.
|
|
922
|
+
|
|
923
|
+
|
|
924
|
+
---
|
|
925
|
+
|
|
926
|
+
@scure/bip39 2.2.0
|
|
927
|
+
The MIT License (MIT)
|
|
928
|
+
|
|
929
|
+
Copyright (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com)
|
|
930
|
+
|
|
931
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
932
|
+
of this software and associated documentation files (the “Software”), to deal
|
|
933
|
+
in the Software without restriction, including without limitation the rights
|
|
934
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
935
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
936
|
+
furnished to do so, subject to the following conditions:
|
|
937
|
+
|
|
938
|
+
The above copyright notice and this permission notice shall be included in
|
|
939
|
+
all copies or substantial portions of the Software.
|
|
940
|
+
|
|
941
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
942
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
943
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
944
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
945
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
946
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
947
|
+
THE SOFTWARE.
|
|
948
|
+
|
|
949
|
+
|
|
950
|
+
---
|
|
951
|
+
|
|
952
|
+
zod 4.4.3
|
|
953
|
+
MIT License
|
|
954
|
+
|
|
955
|
+
Copyright (c) 2025 Colin McDonnell
|
|
956
|
+
|
|
957
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
958
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
959
|
+
in the Software without restriction, including without limitation the rights
|
|
960
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
961
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
962
|
+
furnished to do so, subject to the following conditions:
|
|
963
|
+
|
|
964
|
+
The above copyright notice and this permission notice shall be included in all
|
|
965
|
+
copies or substantial portions of the Software.
|
|
966
|
+
|
|
967
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
968
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
969
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
970
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
971
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
972
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
973
|
+
SOFTWARE.
|
|
974
|
+
|
|
975
|
+
</template><script type="module">var e=Object.defineProperty,t=(e,t)=>()=>(e&&(t=e(e=0)),t),n=(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},r=(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('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});function i(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 a(e){return e&&Object.assign(d,e),d}var o,s,c,l,u,d,f=t((()=>{s=Object.freeze({status:`aborted`}),c=Symbol(`zod_brand`),l=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},u=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},(o=globalThis).__zod_globalConfig??(o.__zod_globalConfig={}),d=globalThis.__zod_globalConfig})),p=n({BIGINT_FORMAT_RANGES:()=>qe,Class:()=>Je,NUMBER_FORMAT_RANGES:()=>Ke,aborted:()=>Te,allowsEval:()=>He,assert:()=>ee,assertEqual:()=>m,assertIs:()=>g,assertNever:()=>_,assertNotEqual:()=>h,assignProp:()=>oe,base64ToUint8Array:()=>Pe,base64urlToUint8Array:()=>Ie,cached:()=>ne,captureStackTrace:()=>Ve,cleanEnum:()=>Ne,cleanRegex:()=>ie,clone:()=>T,cloneDef:()=>se,createTransparentProxy:()=>ge,defineLazy:()=>b,esc:()=>ue,escapeRegex:()=>he,explicitlyAborted:()=>Ee,extend:()=>be,finalizeIssue:()=>ke,floatSafeRemainder:()=>ae,getElementAtPath:()=>C,getEnumValues:()=>v,getLengthableOrigin:()=>je,getParsedType:()=>Ue,getSizableOrigin:()=>Ae,hexToUint8Array:()=>Re,isObject:()=>fe,isPlainObject:()=>w,issue:()=>Me,joinValues:()=>y,jsonStringifyReplacer:()=>te,merge:()=>Se,mergeDefs:()=>S,normalizeParams:()=>E,nullish:()=>re,numKeys:()=>me,objectClone:()=>x,omit:()=>ye,optionalKeys:()=>_e,parsedType:()=>O,partial:()=>Ce,pick:()=>ve,prefixIssues:()=>De,primitiveTypes:()=>Ge,promiseAllObject:()=>ce,propertyKeyTypes:()=>We,randomString:()=>le,required:()=>we,safeExtend:()=>xe,shallowClone:()=>pe,slugify:()=>de,stringifyPrimitive:()=>D,uint8ArrayToBase64:()=>Fe,uint8ArrayToBase64url:()=>Le,uint8ArrayToHex:()=>ze,unwrapMessage:()=>Oe});function m(e){return e}function h(e){return e}function g(e){}function _(e){throw Error(`Unexpected value in exhaustive check`)}function ee(e){}function v(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 y(e,t=`|`){return e.map(e=>D(e)).join(t)}function te(e,t){return typeof t==`bigint`?t.toString():t}function ne(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}throw Error(`cached value already set`)}}}function re(e){return e==null}function ie(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function ae(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 b(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Be)return r===void 0&&(r=Be,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function x(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function oe(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function S(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}function se(e){return S(e._zod.def)}function C(e,t){return t?t.reduce((e,t)=>e?.[t],e):e}function ce(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 le(e=10){let t=``;for(let n=0;n<e;n++)t+=`abcdefghijklmnopqrstuvwxyz`[Math.floor(Math.random()*26)];return t}function ue(e){return JSON.stringify(e)}function de(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}function fe(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function w(e){if(fe(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(fe(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function pe(e){return w(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function me(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}function he(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function T(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 ge(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 _e(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}function ve(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 T(e,S(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 oe(this,`shape`,e),e},checks:[]}))}function ye(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 T(e,S(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 oe(this,`shape`,r),r},checks:[]}))}function be(e,t){if(!w(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 T(e,S(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return oe(this,`shape`,n),n}}))}function xe(e,t){if(!w(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return T(e,S(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return oe(this,`shape`,n),n}}))}function Se(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return T(e,S(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return oe(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function Ce(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 T(t,S(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 oe(this,`shape`,i),i},checks:[]}))}function we(e,t,n){return T(t,S(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 oe(this,`shape`,i),i}}))}function Te(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 Ee(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 De(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function Oe(e){return typeof e==`string`?e:e?.message}function ke(e,t,n){let r=e.message?e.message:Oe(e.inst?._zod.def?.error?.(e))??Oe(t?.error?.(e))??Oe(n.customError?.(e))??Oe(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 Ae(e){return e instanceof Set?`set`:e instanceof Map?`map`:e instanceof File?`file`:`unknown`}function je(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 Me(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function Ne(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function Pe(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 Fe(e){let t=``;for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function Ie(e){let t=e.replace(/-/g,`+`).replace(/_/g,`/`);return Pe(t+`=`.repeat((4-t.length%4)%4))}function Le(e){return Fe(e).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=/g,``)}function Re(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 ze(e){return Array.from(e).map(e=>e.toString(16).padStart(2,`0`)).join(``)}var Be,Ve,He,Ue,We,Ge,Ke,qe,Je,k=t((()=>{f(),Be=Symbol(`evaluating`),Ve=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{},He=ne(()=>{if(d.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}}),Ue=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}`)}},We=new Set([`string`,`number`,`symbol`]),Ge=new Set([`string`,`number`,`bigint`,`boolean`,`symbol`,`undefined`]),Ke={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},qe={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]},Je=class{constructor(...e){}}}));function Ye(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 Xe(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 Ze(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 Qe(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 $e(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 ${Qe(e.path)}`);return t.join(`
|
|
976
|
+
`)}var et,tt,nt,rt=t((()=>{f(),k(),et=(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,te,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},tt=i(`$ZodError`,et),nt=i(`$ZodError`,et,{Parent:Error})})),it,at,ot,st,ct,lt,ut,dt,ft,pt,mt,ht,gt,_t,vt,yt,bt,xt,St,Ct,wt,Tt,Et,Dt,Ot=t((()=>{f(),rt(),k(),it=e=>(t,n,r,i)=>{let o=r?{...r,async:!1}:{async:!1},s=t._zod.run({value:n,issues:[]},o);if(s instanceof Promise)throw new l;if(s.issues.length){let t=new(i?.Err??e)(s.issues.map(e=>ke(e,o,a())));throw Ve(t,i?.callee),t}return s.value},at=it(nt),ot=e=>async(t,n,r,i)=>{let o=r?{...r,async:!0}:{async:!0},s=t._zod.run({value:n,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){let t=new(i?.Err??e)(s.issues.map(e=>ke(e,o,a())));throw Ve(t,i?.callee),t}return s.value},st=ot(nt),ct=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},i);if(o instanceof Promise)throw new l;return o.issues.length?{success:!1,error:new(e??tt)(o.issues.map(e=>ke(e,i,a())))}:{success:!0,data:o.value}},lt=ct(nt),ut=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(e=>ke(e,i,a())))}:{success:!0,data:o.value}},dt=ut(nt),ft=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return it(e)(t,n,i)},pt=ft(nt),mt=e=>(t,n,r)=>it(e)(t,n,r),ht=mt(nt),gt=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return ot(e)(t,n,i)},_t=gt(nt),vt=e=>async(t,n,r)=>ot(e)(t,n,r),yt=vt(nt),bt=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return ct(e)(t,n,i)},xt=bt(nt),St=e=>(t,n,r)=>ct(e)(t,n,r),Ct=St(nt),wt=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return ut(e)(t,n,i)},Tt=wt(nt),Et=e=>async(t,n,r)=>ut(e)(t,n,r),Dt=Et(nt)})),kt=n({base64:()=>cn,base64url:()=>ln,bigint:()=>_n,boolean:()=>bn,browserEmail:()=>en,cidrv4:()=>on,cidrv6:()=>sn,cuid:()=>It,cuid2:()=>Lt,date:()=>hn,datetime:()=>Nt,domain:()=>dn,duration:()=>Ht,e164:()=>pn,email:()=>Yt,emoji:()=>At,extendedDuration:()=>Ut,guid:()=>Wt,hex:()=>Tn,hostname:()=>un,html5Email:()=>Xt,httpProtocol:()=>fn,idnEmail:()=>$t,integer:()=>vn,ipv4:()=>nn,ipv6:()=>rn,ksuid:()=>Bt,lowercase:()=>Cn,mac:()=>an,md5_base64:()=>Dn,md5_base64url:()=>On,md5_hex:()=>En,nanoid:()=>Vt,null:()=>xn,number:()=>yn,rfc5322Email:()=>Zt,sha1_base64:()=>An,sha1_base64url:()=>jn,sha1_hex:()=>kn,sha256_base64:()=>Nn,sha256_base64url:()=>Pn,sha256_hex:()=>Mn,sha384_base64:()=>In,sha384_base64url:()=>Ln,sha384_hex:()=>Fn,sha512_base64:()=>zn,sha512_base64url:()=>Bn,sha512_hex:()=>Rn,string:()=>gn,time:()=>Mt,ulid:()=>Rt,undefined:()=>Sn,unicodeEmail:()=>Qt,uppercase:()=>wn,uuid:()=>Gt,uuid4:()=>Kt,uuid6:()=>qt,uuid7:()=>Jt,xid:()=>zt});function At(){return new RegExp(tn,`u`)}function jt(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 Mt(e){return RegExp(`^${jt(e)}$`)}function Nt(e){let t=jt({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(`^${mn}T(?:${r})$`)}function Pt(e,t){return RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Ft(e){return RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var It,Lt,Rt,zt,Bt,Vt,Ht,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=t((()=>{k(),It=/^[cC][0-9a-z]{6,}$/,Lt=/^[0-9a-z]+$/,Rt=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,zt=/^[0-9a-vA-V]{20}$/,Bt=/^[A-Za-z0-9]{27}$/,Vt=/^[a-zA-Z0-9_-]{21}$/,Ht=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Ut=/^[-+]?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)?)??$/,Wt=/^([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})$/,Gt=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)$/,Kt=Gt(4),qt=Gt(6),Jt=Gt(7),Yt=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Xt=/^[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])?)*$/,Zt=/^(([^<>()\[\]\\.,;:\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,}))$/,Qt=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,$t=Qt,en=/^[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])?)*$/,tn=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,nn=/^(?:(?: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])$/,rn=/^(([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}|:))$/,an=e=>{let t=he(e??`:`);return RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},on=/^((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])$/,sn=/^(([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])$/,cn=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ln=/^[A-Za-z0-9_-]*$/,un=/^(?=.{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])?)*\.?$/,dn=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,fn=/^https?$/,pn=/^\+[1-9]\d{6,14}$/,mn=`(?:(?:\\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])))`,hn=RegExp(`^${mn}$`),gn=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},_n=/^-?\d+n?$/,vn=/^-?\d+$/,yn=/^-?\d+(?:\.\d+)?$/,bn=/^(?:true|false)$/i,xn=/^null$/i,Sn=/^undefined$/i,Cn=/^[^A-Z]*$/,wn=/^[^a-z]*$/,Tn=/^[0-9a-fA-F]*$/,En=/^[0-9a-fA-F]{32}$/,Dn=Pt(22,`==`),On=Ft(22),kn=/^[0-9a-fA-F]{40}$/,An=Pt(27,`=`),jn=Ft(27),Mn=/^[0-9a-fA-F]{64}$/,Nn=Pt(43,`=`),Pn=Ft(43),Fn=/^[0-9a-fA-F]{96}$/,In=Pt(64,``),Ln=Ft(64),Rn=/^[0-9a-fA-F]{128}$/,zn=Pt(86,`==`),Bn=Ft(86)}));function Hn(e,t,n){e.issues.length&&t.issues.push(...De(n,e.issues))}var Un,Wn,Gn,Kn,qn,Jn,Yn,Xn,Zn,Qn,$n,er,tr,nr,rr,ir,ar,or,sr,cr,lr,ur,dr,fr=t((()=>{f(),Vn(),k(),Un=i(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Wn={number:`number`,bigint:`bigint`,object:`date`},Gn=i(`$ZodCheckLessThan`,(e,t)=>{Un.init(e,t);let n=Wn[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})}}),Kn=i(`$ZodCheckGreaterThan`,(e,t)=>{Un.init(e,t);let n=Wn[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})}}),qn=i(`$ZodCheckMultipleOf`,(e,t)=>{Un.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):ae(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})}}),Jn=i(`$ZodCheckNumberFormat`,(e,t)=>{Un.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=Ke[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=vn)}),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})}}),Yn=i(`$ZodCheckBigIntFormat`,(e,t)=>{Un.init(e,t);let[n,r]=qe[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})}}),Xn=i(`$ZodCheckMaxSize`,(e,t)=>{var n;Un.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!re(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:Ae(r),code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Zn=i(`$ZodCheckMinSize`,(e,t)=>{var n;Un.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!re(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:Ae(r),code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Qn=i(`$ZodCheckSizeEquals`,(e,t)=>{var n;Un.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!re(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:Ae(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})}}),$n=i(`$ZodCheckMaxLength`,(e,t)=>{var n;Un.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!re(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=je(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),er=i(`$ZodCheckMinLength`,(e,t)=>{var n;Un.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!re(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=je(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),tr=i(`$ZodCheckLengthEquals`,(e,t)=>{var n;Un.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!re(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=je(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})}}),nr=i(`$ZodCheckStringFormat`,(e,t)=>{var n,r;Un.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=()=>{})}),rr=i(`$ZodCheckRegex`,(e,t)=>{nr.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})}}),ir=i(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=Cn,nr.init(e,t)}),ar=i(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=wn,nr.init(e,t)}),or=i(`$ZodCheckIncludes`,(e,t)=>{Un.init(e,t);let n=he(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})}}),sr=i(`$ZodCheckStartsWith`,(e,t)=>{Un.init(e,t);let n=RegExp(`^${he(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})}}),cr=i(`$ZodCheckEndsWith`,(e,t)=>{Un.init(e,t);let n=RegExp(`.*${he(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})}}),lr=i(`$ZodCheckProperty`,(e,t)=>{Un.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=>Hn(n,e,t.property));Hn(n,e,t.property)}}),ur=i(`$ZodCheckMimeType`,(e,t)=>{Un.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})}}),dr=i(`$ZodCheckOverwrite`,(e,t)=>{Un.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}})})),pr,mr=t((()=>{pr=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(`
|
|
977
|
+
`).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(`
|
|
978
|
+
`))}}})),hr,gr=t((()=>{hr={major:4,minor:4,patch:3}}));function _r(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}function vr(e){if(!ln.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return _r(t.padEnd(Math.ceil(t.length/4)*4,`=`))}function yr(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 br(e,t,n){e.issues.length&&t.issues.push(...De(n,e.issues)),t.value[n]=e.value}function xr(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...De(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 Sr(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=_e(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Cr(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=>xr(e,n,i,t,u,d))):xr(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 wr(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=>!Te(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=>ke(e,r,a())))}),t)}function Tr(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=>ke(e,r,a())))}):t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:[],inclusive:!1}),t)}function Er(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(w(e)&&w(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=Er(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=Er(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 Dr(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}),Te(e))return e;let o=Er(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}function Or(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!==`optional`)return n+1;return 0}function kr(e,t,n){e.issues.length&&t.issues.push(...De(n,e.issues)),t.value[n]=e.value}function Ar(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(...De(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 jr(e,t,n,r,i,o,s){e.issues.length&&(We.has(typeof r)?n.issues.push(...De(r,e.issues)):n.issues.push({code:`invalid_key`,origin:`map`,input:i,inst:o,issues:e.issues.map(e=>ke(e,s,a()))})),t.issues.length&&(We.has(typeof r)?n.issues.push(...De(r,t.issues)):n.issues.push({origin:`map`,code:`invalid_element`,input:i,inst:o,key:r,issues:t.issues.map(e=>ke(e,s,a()))})),n.value.set(e.value,t.value)}function Mr(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}function Nr(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}function Pr(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}function Fr(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 Ir(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 Lr(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=>Rr(e,r,t.out,n)):Rr(e,r,t.out,n)}else{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(r=>Rr(e,r,t.in,n)):Rr(e,r,t.in,n)}}function Rr(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}function zr(e){return e.value=Object.freeze(e.value),e}function Br(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(Me(e))}}var A,Vr,j,Hr,Ur,Wr,Gr,Kr,qr,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,Hi,Ui,Wi,Gi,Ki,qi,Ji,Yi,Xi,Zi,Qi,$i,ea,ta,na,ra,ia,aa=t((()=>{fr(),f(),mr(),Ot(),Vn(),k(),gr(),A=i(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=hr;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=Te(e),i;for(let a of t){if(a._zod.def.when){if(Ee(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 l;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=Te(e,t))});else{if(e.issues.length===t)continue;r||=Te(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(Te(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new l;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 l;return o.then(e=>t(e,r,a))}return t(o,r,a)}}b(e,`~standard`,()=>({validate:t=>{try{let n=lt(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return dt(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),Vr=i(`$ZodString`,(e,t)=>{A.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??gn(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}}),j=i(`$ZodStringFormat`,(e,t)=>{nr.init(e,t),Vr.init(e,t)}),Hr=i(`$ZodGUID`,(e,t)=>{t.pattern??=Wt,j.init(e,t)}),Ur=i(`$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??=Gt(e)}else t.pattern??=Gt();j.init(e,t)}),Wr=i(`$ZodEmail`,(e,t)=>{t.pattern??=Yt,j.init(e,t)}),Gr=i(`$ZodURL`,(e,t)=>{j.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===fn.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})}}}),Kr=i(`$ZodEmoji`,(e,t)=>{t.pattern??=At(),j.init(e,t)}),qr=i(`$ZodNanoID`,(e,t)=>{t.pattern??=Vt,j.init(e,t)}),Jr=i(`$ZodCUID`,(e,t)=>{t.pattern??=It,j.init(e,t)}),Yr=i(`$ZodCUID2`,(e,t)=>{t.pattern??=Lt,j.init(e,t)}),Xr=i(`$ZodULID`,(e,t)=>{t.pattern??=Rt,j.init(e,t)}),Zr=i(`$ZodXID`,(e,t)=>{t.pattern??=zt,j.init(e,t)}),Qr=i(`$ZodKSUID`,(e,t)=>{t.pattern??=Bt,j.init(e,t)}),$r=i(`$ZodISODateTime`,(e,t)=>{t.pattern??=Nt(t),j.init(e,t)}),ei=i(`$ZodISODate`,(e,t)=>{t.pattern??=hn,j.init(e,t)}),ti=i(`$ZodISOTime`,(e,t)=>{t.pattern??=Mt(t),j.init(e,t)}),ni=i(`$ZodISODuration`,(e,t)=>{t.pattern??=Ht,j.init(e,t)}),ri=i(`$ZodIPv4`,(e,t)=>{t.pattern??=nn,j.init(e,t),e._zod.bag.format=`ipv4`}),ii=i(`$ZodIPv6`,(e,t)=>{t.pattern??=rn,j.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})}}}),ai=i(`$ZodMAC`,(e,t)=>{t.pattern??=an(t.delimiter),j.init(e,t),e._zod.bag.format=`mac`}),oi=i(`$ZodCIDRv4`,(e,t)=>{t.pattern??=on,j.init(e,t)}),si=i(`$ZodCIDRv6`,(e,t)=>{t.pattern??=sn,j.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})}}}),ci=i(`$ZodBase64`,(e,t)=>{t.pattern??=cn,j.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{_r(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}}),li=i(`$ZodBase64URL`,(e,t)=>{t.pattern??=ln,j.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{vr(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),ui=i(`$ZodE164`,(e,t)=>{t.pattern??=pn,j.init(e,t)}),di=i(`$ZodJWT`,(e,t)=>{j.init(e,t),e._zod.check=n=>{yr(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),fi=i(`$ZodCustomStringFormat`,(e,t)=>{j.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})}}),pi=i(`$ZodNumber`,(e,t)=>{A.init(e,t),e._zod.pattern=e._zod.bag.pattern??yn,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}}),mi=i(`$ZodNumberFormat`,(e,t)=>{Jn.init(e,t),pi.init(e,t)}),hi=i(`$ZodBoolean`,(e,t)=>{A.init(e,t),e._zod.pattern=bn,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}}),gi=i(`$ZodBigInt`,(e,t)=>{A.init(e,t),e._zod.pattern=_n,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}}),_i=i(`$ZodBigIntFormat`,(e,t)=>{Yn.init(e,t),gi.init(e,t)}),vi=i(`$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}}),yi=i(`$ZodUndefined`,(e,t)=>{A.init(e,t),e._zod.pattern=Sn,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}}),bi=i(`$ZodNull`,(e,t)=>{A.init(e,t),e._zod.pattern=xn,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}}),xi=i(`$ZodAny`,(e,t)=>{A.init(e,t),e._zod.parse=e=>e}),Si=i(`$ZodUnknown`,(e,t)=>{A.init(e,t),e._zod.parse=e=>e}),Ci=i(`$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)}),wi=i(`$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}}),Ti=i(`$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}}),Ei=i(`$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=>br(t,n,e))):br(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}}),Di=i(`$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=ne(()=>Sr(t));b(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=fe,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=>xr(n,t,e,s,r,i))):xr(a,t,e,s,r,i)}return i?Cr(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),Oi=i(`$ZodObjectJIT`,(e,t)=>{Di.init(e,t);let n=e._zod.parse,r=ne(()=>Sr(t)),i=e=>{let t=new pr([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=ue(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=ue(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(`
|
|
979
|
+
if (${n}.issues.length) {
|
|
980
|
+
if (${o} in input) {
|
|
981
|
+
payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
|
|
982
|
+
...iss,
|
|
983
|
+
path: iss.path ? [${o}, ...iss.path] : [${o}]
|
|
984
|
+
})));
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
if (${n}.value === undefined) {
|
|
989
|
+
if (${o} in input) {
|
|
990
|
+
newResult[${o}] = undefined;
|
|
991
|
+
}
|
|
992
|
+
} else {
|
|
993
|
+
newResult[${o}] = ${n}.value;
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
`):c?t.write(`
|
|
997
|
+
if (${n}.issues.length) {
|
|
998
|
+
payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
|
|
999
|
+
...iss,
|
|
1000
|
+
path: iss.path ? [${o}, ...iss.path] : [${o}]
|
|
1001
|
+
})));
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
if (${n}.value === undefined) {
|
|
1005
|
+
if (${o} in input) {
|
|
1006
|
+
newResult[${o}] = undefined;
|
|
1007
|
+
}
|
|
1008
|
+
} else {
|
|
1009
|
+
newResult[${o}] = ${n}.value;
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
`):t.write(`
|
|
1013
|
+
const ${n}_present = ${o} in input;
|
|
1014
|
+
if (${n}.issues.length) {
|
|
1015
|
+
payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
|
|
1016
|
+
...iss,
|
|
1017
|
+
path: iss.path ? [${o}, ...iss.path] : [${o}]
|
|
1018
|
+
})));
|
|
1019
|
+
}
|
|
1020
|
+
if (!${n}_present && !${n}.issues.length) {
|
|
1021
|
+
payload.issues.push({
|
|
1022
|
+
code: "invalid_type",
|
|
1023
|
+
expected: "nonoptional",
|
|
1024
|
+
input: undefined,
|
|
1025
|
+
path: [${o}]
|
|
1026
|
+
});
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
if (${n}_present) {
|
|
1030
|
+
if (${n}.value === undefined) {
|
|
1031
|
+
newResult[${o}] = undefined;
|
|
1032
|
+
} else {
|
|
1033
|
+
newResult[${o}] = ${n}.value;
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
`)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=fe,s=!d.jitless,c=s&&He.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?Cr([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}}),ki=i(`$ZodUnion`,(e,t)=>{A.init(e,t),b(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),b(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),b(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),b(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=>ie(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=>wr(t,r,e,i)):wr(o,r,e,i)}}),Ai=i(`$ZodXor`,(e,t)=>{ki.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=>Tr(t,r,e,i)):Tr(o,r,e,i)}}),ji=i(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,ki.init(e,t);let n=e._zod.parse;b(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=ne(()=>{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(!fe(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)}}),Mi=i(`$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])=>Dr(e,t,n)):Dr(e,i,a)}}),Ni=i(`$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=Or(n,`optin`),c=Or(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=>kr(t,r,e))):kr(a,r,e)}}return o.length?Promise.all(o).then(()=>Ar(l,r,n,a,c)):Ar(l,r,n,a,c)}}),Pi=i(`$ZodRecord`,(e,t)=>{A.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!w(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let o=[],s=t.keyType._zod.values;if(s){n.value={};let c=new Set;for(let l of s)if(typeof l==`string`||typeof l==`number`||typeof l==`symbol`){c.add(typeof l==`number`?l.toString():l);let s=t.keyType._zod.run({value:l,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(s.issues.length){n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>ke(e,r,a())),input:l,path:[l],inst:e});continue}let u=s.value,d=t.valueType._zod.run({value:i[l],issues:[]},r);d instanceof Promise?o.push(d.then(e=>{e.issues.length&&n.issues.push(...De(l,e.issues)),n.value[u]=e.value})):(d.issues.length&&n.issues.push(...De(l,d.issues)),n.value[u]=d.value)}let l;for(let e in i)c.has(e)||(l??=[],l.push(e));l&&l.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:l})}else{n.value={};for(let s of Reflect.ownKeys(i)){if(s===`__proto__`||!Object.prototype.propertyIsEnumerable.call(i,s))continue;let c=t.keyType._zod.run({value:s,issues:[]},r);if(c instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof s==`string`&&yn.test(s)&&c.issues.length){let e=t.keyType._zod.run({value:Number(s),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(c=e)}if(c.issues.length){t.mode===`loose`?n.value[s]=i[s]:n.issues.push({code:`invalid_key`,origin:`record`,issues:c.issues.map(e=>ke(e,r,a())),input:s,path:[s],inst:e});continue}let l=t.valueType._zod.run({value:i[s],issues:[]},r);l instanceof Promise?o.push(l.then(e=>{e.issues.length&&n.issues.push(...De(s,e.issues)),n.value[c.value]=e.value})):(l.issues.length&&n.issues.push(...De(s,l.issues)),n.value[c.value]=l.value)}}return o.length?Promise.all(o).then(()=>n):n}}),Fi=i(`$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])=>{jr(t,a,n,o,i,e,r)})):jr(c,l,n,o,i,e,r)}return a.length?Promise.all(a).then(()=>n):n}}),Ii=i(`$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=>Mr(e,n))):Mr(i,n)}return a.length?Promise.all(a).then(()=>n):n}}),Li=i(`$ZodEnum`,(e,t)=>{A.init(e,t);let n=v(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>We.has(typeof e)).map(e=>typeof e==`string`?he(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}}),Ri=i(`$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`?he(e):e?he(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}}),zi=i(`$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}}),Bi=i(`$ZodTransform`,(e,t)=>{A.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new u(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 l;return n.value=i,n.fallback=!0,n}}),Vi=i(`$ZodOptional`,(e,t)=>{A.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,b(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),b(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${ie(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=>Nr(e,r)):Nr(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),Hi=i(`$ZodExactOptional`,(e,t)=>{Vi.init(e,t),b(e._zod,`values`,()=>t.innerType._zod.values),b(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),Ui=i(`$ZodNullable`,(e,t)=>{A.init(e,t),b(e._zod,`optin`,()=>t.innerType._zod.optin),b(e._zod,`optout`,()=>t.innerType._zod.optout),b(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${ie(e.source)}|null)$`):void 0}),b(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)}),Wi=i(`$ZodDefault`,(e,t)=>{A.init(e,t),e._zod.optin=`optional`,b(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=>Pr(e,t)):Pr(r,t)}}),Gi=i(`$ZodPrefault`,(e,t)=>{A.init(e,t),e._zod.optin=`optional`,b(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))}),Ki=i(`$ZodNonOptional`,(e,t)=>{A.init(e,t),b(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=>Fr(t,e)):Fr(i,e)}}),qi=i(`$ZodSuccess`,(e,t)=>{A.init(e,t),e._zod.parse=(e,n)=>{if(n.direction===`backward`)throw new u(`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)}}),Ji=i(`$ZodCatch`,(e,t)=>{A.init(e,t),e._zod.optin=`optional`,b(e._zod,`optout`,()=>t.innerType._zod.optout),b(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=>ke(e,n,a()))},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=>ke(e,n,a()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),Yi=i(`$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)}),Xi=i(`$ZodPipe`,(e,t)=>{A.init(e,t),b(e._zod,`values`,()=>t.in._zod.values),b(e._zod,`optin`,()=>t.in._zod.optin),b(e._zod,`optout`,()=>t.out._zod.optout),b(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=>Ir(e,t.in,n)):Ir(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Ir(e,t.out,n)):Ir(r,t.out,n)}}),Zi=i(`$ZodCodec`,(e,t)=>{A.init(e,t),b(e._zod,`values`,()=>t.in._zod.values),b(e._zod,`optin`,()=>t.in._zod.optin),b(e._zod,`optout`,()=>t.out._zod.optout),b(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=>Lr(e,t,n)):Lr(r,t,n)}else{let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Lr(e,t,n)):Lr(r,t,n)}}}),Qi=i(`$ZodPreprocess`,(e,t)=>{Xi.init(e,t)}),$i=i(`$ZodReadonly`,(e,t)=>{A.init(e,t),b(e._zod,`propValues`,()=>t.innerType._zod.propValues),b(e._zod,`values`,()=>t.innerType._zod.values),b(e._zod,`optin`,()=>t.innerType?._zod?.optin),b(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(zr):zr(r)}}),ea=i(`$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||Ge.has(typeof e))n.push(he(`${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)}),ta=i(`$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?at(e._def.input,n):n,i=Reflect.apply(t,this,r);return e._def.output?at(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 st(e._def.input,n):n,i=await Reflect.apply(t,this,r);return e._def.output?await st(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 Ni({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)),na=i(`$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))}),ra=i(`$ZodLazy`,(e,t)=>{A.init(e,t),b(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),b(e._zod,`pattern`,()=>e._zod.innerType?._zod?.pattern),b(e._zod,`propValues`,()=>e._zod.innerType?._zod?.propValues),b(e._zod,`optin`,()=>e._zod.innerType?._zod?.optin??void 0),b(e._zod,`optout`,()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),ia=i(`$ZodCustom`,(e,t)=>{Un.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=>Br(t,n,r,e));Br(i,n,r,e)}})}));function oa(){return{localeError:sa()}}var sa,ca=t((()=>{k(),sa=()=>{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])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${y(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?`ة`:``}: ${y(e.keys,`، `)}`;case`invalid_key`:return`معرف غير مقبول في ${e.origin}`;case`invalid_union`:return`مدخل غير مقبول`;case`invalid_element`:return`مدخل غير مقبول في ${e.origin}`;default:return`مدخل غير مقبول`}}}}));function la(){return{localeError:ua()}}var ua,da=t((()=>{k(),ua=()=>{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: ${y(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`:``}: ${y(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 fa(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 pa(){return{localeError:ma()}}var ma,ha=t((()=>{k(),ma=()=>{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])}`:`Няправільны варыянт: чакаўся адзін з ${y(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=fa(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=fa(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?`ключы`:`ключ`}: ${y(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((()=>{k(),_a=()=>{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])}`:`Невалидна опция: очаквано едно от ${y(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?`ове`:``}: ${y(e.keys,`, `)}`;case`invalid_key`:return`Невалиден ключ в ${e.origin}`;case`invalid_union`:return`Невалиден вход`;case`invalid_element`:return`Невалидна стойност в ${e.origin}`;default:return`Невалиден вход`}}}}));function ya(){return{localeError:ba()}}var ba,xa=t((()=>{k(),ba=()=>{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 ${y(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`:``}: ${y(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 Sa(){return{localeError:Ca()}}var Ca,wa=t((()=>{k(),Ca=()=>{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 ${y(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: ${y(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 Ta(){return{localeError:Ea()}}var Ea,Da=t((()=>{k(),Ea=()=>{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 ${y(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`}: ${y(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 Oa(){return{localeError:ka()}}var ka,Aa=t((()=>{k(),ka=()=>{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 ${y(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`}: ${y(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 ja(){return{localeError:Ma()}}var Ma,Na=t((()=>{k(),Ma=()=>{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])}`:`Μη έγκυρη επιλογή: αναμενόταν ένα από ${y(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?`ιά`:`ί`}: ${y(e.keys,`, `)}`;case`invalid_key`:return`Μη έγκυρο κλειδί στο ${e.origin}`;case`invalid_union`:return`Μη έγκυρη είσοδος`;case`invalid_element`:return`Μη έγκυρη τιμή στο ${e.origin}`;default:return`Μη έγκυρη είσοδος`}}}}));function Pa(){return{localeError:Fa()}}var Fa,Ia=t((()=>{k(),Fa=()=>{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 ${y(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`:``}: ${y(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 La(){return{localeError:Ra()}}var Ra,za=t((()=>{k(),Ra=()=>{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 ${y(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`:``}: ${y(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 Ba(){return{localeError:Va()}}var Va,Ha=t((()=>{k(),Va=()=>{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 ${y(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`:``}: ${y(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 Ua(){return{localeError:Wa()}}var Wa,Ga=t((()=>{k(),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:`تاریخ و زمان ایزو`,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])} میبود`:`گزینه نامعتبر: میبایست یکی از ${y(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?`های`:``} ناشناس: ${y(e.keys,`, `)}`;case`invalid_key`:return`کلید ناشناس در ${e.origin}`;case`invalid_union`:return`ورودی نامعتبر`;case`invalid_element`:return`مقدار نامعتبر در ${e.origin}`;default:return`ورودی نامعتبر`}}}}));function Ka(){return{localeError:qa()}}var qa,Ja=t((()=>{k(),qa=()=>{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: ${y(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`}: ${y(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 Ya(){return{localeError:Xa()}}var Xa,Za=t((()=>{k(),Xa=()=>{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 ${y(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`:``} : ${y(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 Qa(){return{localeError:$a()}}var $a,eo=t((()=>{k(),$a=()=>{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 ${y(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`:``} : ${y(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 to(){return{localeError:no()}}var no,ro=t((()=>{k(),no=()=>{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?`ים`:`ה`}: ${y(t.keys,`, `)}`;case`invalid_key`:return`שדה לא תקין באובייקט`;case`invalid_union`:return`קלט לא תקין`;case`invalid_element`:return`ערך לא תקין ב${i(t.origin??`array`)}`;default:return`קלט לא תקין`}}}}));function io(){return{localeError:ao()}}var ao,oo=t((()=>{k(),ao=()=>{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 ${y(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č`}: ${y(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 so(){return{localeError:co()}}var co,lo=t((()=>{k(),co=()=>{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 ${y(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`:``}: ${y(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 uo(e,t,n){return Math.abs(e)===1?t:n}function fo(e){if(!e)return``;let t=[`ա`,`ե`,`ը`,`ի`,`ո`,`ու`,`օ`],n=e[e.length-1];return e+(t.includes(n)?`ն`:`ը`)}function po(){return{localeError:mo()}}var mo,ho=t((()=>{k(),mo=()=>{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])}`:`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${y(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=uo(Number(e.maximum),r.unit.one,r.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${fo(e.origin??`արժեք`)} կունենա ${n}${e.maximum.toString()} ${t}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${fo(e.origin??`արժեք`)} լինի ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=uo(Number(e.minimum),r.unit.one,r.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${fo(e.origin)} կունենա ${n}${e.minimum.toString()} ${t}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${fo(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?`ներ`:``}. ${y(e.keys,`, `)}`;case`invalid_key`:return`Սխալ բանալի ${fo(e.origin)}-ում`;case`invalid_union`:return`Սխալ մուտքագրում`;case`invalid_element`:return`Սխալ արժեք ${fo(e.origin)}-ում`;default:return`Սխալ մուտքագրում`}}}}));function go(){return{localeError:_o()}}var _o,vo=t((()=>{k(),_o=()=>{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 ${y(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`:``}: ${y(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 yo(){return{localeError:bo()}}var bo,xo=t((()=>{k(),bo=()=>{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 ${y(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`}: ${y(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 So(){return{localeError:Co()}}var Co,wo=t((()=>{k(),Co=()=>{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 ${y(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`}: ${y(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 To(){return{localeError:Eo()}}var Eo,Do=t((()=>{k(),Eo=()=>{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])}が期待されました`:`無効な選択: ${y(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?`群`:``}: ${y(e.keys,`、`)}`;case`invalid_key`:return`${e.origin}内の無効なキー`;case`invalid_union`:return`無効な入力`;case`invalid_element`:return`${e.origin}内の無効な値`;default:return`無効な入力`}}}}));function Oo(){return{localeError:ko()}}var ko,Ao=t((()=>{k(),ko=()=>{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])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${y(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?`ები`:`ი`}: ${y(e.keys,`, `)}`;case`invalid_key`:return`არასწორი გასაღები ${e.origin}-ში`;case`invalid_union`:return`არასწორი შეყვანა`;case`invalid_element`:return`არასწორი მნიშვნელობა ${e.origin}-ში`;default:return`არასწორი შეყვანა`}}}}));function jo(){return{localeError:Mo()}}var Mo,No=t((()=>{k(),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:`អារេ (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])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${y(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`រកឃើញសោមិនស្គាល់៖ ${y(e.keys,`, `)}`;case`invalid_key`:return`សោមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;case`invalid_union`:return`ទិន្នន័យមិនត្រឹមត្រូវ`;case`invalid_element`:return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;default:return`ទិន្នន័យមិនត្រឹមត្រូវ`}}}}));function Po(){return jo()}var Fo=t((()=>{No()}));function Io(){return{localeError:Lo()}}var Lo,Ro=t((()=>{k(),Lo=()=>{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])} 이어야 합니다`:`잘못된 옵션: ${y(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`인식할 수 없는 키: ${y(e.keys,`, `)}`;case`invalid_key`:return`잘못된 키: ${e.origin}`;case`invalid_union`:return`잘못된 입력`;case`invalid_element`:return`잘못된 값: ${e.origin}`;default:return`잘못된 입력`}}}}));function zo(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 Bo(){return{localeError:Ho()}}var Vo,Ho,Uo=t((()=>{k(),Vo=e=>e.charAt(0).toUpperCase()+e.slice(1),Ho=()=>{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š ${y(e.values,`|`)} pasirinkimų`;case`too_big`:{let n=r[e.origin]??e.origin,i=t(e.origin,zo(Number(e.maximum)),e.inclusive??!1,`smaller`);if(i?.verb)return`${Vo(n??e.origin??`reikšmė`)} ${i.verb} ${e.maximum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne didesnis kaip`:`mažesnis kaip`;return`${Vo(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,zo(Number(e.minimum)),e.inclusive??!1,`bigger`);if(i?.verb)return`${Vo(n??e.origin??`reikšmė`)} ${i.verb} ${e.minimum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne mažesnis kaip`:`didesnis kaip`;return`${Vo(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`}: ${y(e.keys,`, `)}`;case`invalid_key`:return`Rastas klaidingas raktas`;case`invalid_union`:return`Klaidinga įvestis`;case`invalid_element`:return`${Vo(r[e.origin]??e.origin??e.origin??`reikšmė`)} turi klaidingą įvestį`;default:return`Klaidinga įvestis`}}}}));function Wo(){return{localeError:Go()}}var Go,Ko=t((()=>{k(),Go=()=>{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])}`:`Грешана опција: се очекува една ${y(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?`Непрепознаени клучеви`:`Непрепознаен клуч`}: ${y(e.keys,`, `)}`;case`invalid_key`:return`Грешен клуч во ${e.origin}`;case`invalid_union`:return`Грешен внес`;case`invalid_element`:return`Грешна вредност во ${e.origin}`;default:return`Грешен внес`}}}}));function qo(){return{localeError:Jo()}}var Jo,Yo=t((()=>{k(),Jo=()=>{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 ${y(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: ${y(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 Xo(){return{localeError:Zo()}}var Zo,Qo=t((()=>{k(),Zo=()=>{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 ${y(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`:``}: ${y(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 $o(){return{localeError:es()}}var es,ts=t((()=>{k(),es=()=>{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 ${y(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`}: ${y(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 ns(){return{localeError:rs()}}var rs,is=t((()=>{k(),rs=()=>{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 ${y(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`:``}: ${y(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 as(){return{localeError:os()}}var os,ss=t((()=>{k(),os=()=>{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])} وای`:`ناسم انتخاب: باید یو له ${y(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?`کلیډونه`:`کلیډ`}: ${y(e.keys,`, `)}`;case`invalid_key`:return`ناسم کلیډ په ${e.origin} کې`;case`invalid_union`:return`ناسمه ورودي`;case`invalid_element`:return`ناسم عنصر په ${e.origin} کې`;default:return`ناسمه ورودي`}}}}));function cs(){return{localeError:ls()}}var ls,us=t((()=>{k(),ls=()=>{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 ${y(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`:``}: ${y(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 ds(){return{localeError:fs()}}var fs,ps=t((()=>{k(),fs=()=>{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 ${y(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`:``}: ${y(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 ms(){return{localeError:hs()}}var hs,gs=t((()=>{k(),hs=()=>{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 ${y(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: ${y(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 _s(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 vs(){return{localeError:ys()}}var ys,bs=t((()=>{k(),ys=()=>{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])}`:`Неверный вариант: ожидалось одно из ${y(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=_s(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=_s(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?`и`:``}: ${y(e.keys,`, `)}`;case`invalid_key`:return`Неверный ключ в ${e.origin}`;case`invalid_union`:return`Неверные входные данные`;case`invalid_element`:return`Неверное значение в ${e.origin}`;default:return`Неверные входные данные`}}}}));function xs(){return{localeError:Ss()}}var Ss,Cs=t((()=>{k(),Ss=()=>{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 ${y(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č`}: ${y(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 ws(){return{localeError:Ts()}}var Ts,Es=t((()=>{k(),Ts=()=>{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 ${y(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`}: ${y(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 Ds(){return{localeError:Os()}}var Os,ks=t((()=>{k(),Os=()=>{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])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${y(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?`கள்`:``}: ${y(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} இல் தவறான விசை`;case`invalid_union`:return`தவறான உள்ளீடு`;case`invalid_element`:return`${e.origin} இல் தவறான மதிப்பு`;default:return`தவறான உள்ளீடு`}}}}));function As(){return{localeError:js()}}var js,Ms=t((()=>{k(),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:`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])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${y(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`พบคีย์ที่ไม่รู้จัก: ${y(e.keys,`, `)}`;case`invalid_key`:return`คีย์ไม่ถูกต้องใน ${e.origin}`;case`invalid_union`:return`ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้`;case`invalid_element`:return`ข้อมูลไม่ถูกต้องใน ${e.origin}`;default:return`ข้อมูลไม่ถูกต้อง`}}}}));function Ns(){return{localeError:Ps()}}var Ps,Fs=t((()=>{k(),Ps=()=>{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ı: ${y(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`:``}: ${y(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 Is(){return{localeError:Ls()}}var Ls,Rs=t((()=>{k(),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:`діапазон 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])}`:`Неправильна опція: очікується одне з ${y(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?`і`:``}: ${y(e.keys,`, `)}`;case`invalid_key`:return`Неправильний ключ у ${e.origin}`;case`invalid_union`:return`Неправильні вхідні дані`;case`invalid_element`:return`Неправильне значення у ${e.origin}`;default:return`Неправильні вхідні дані`}}}}));function zs(){return Is()}var Bs=t((()=>{Rs()}));function Vs(){return{localeError:Hs()}}var Hs,Us=t((()=>{k(),Hs=()=>{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])} متوقع تھا`:`غلط آپشن: ${y(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?`ز`:``}: ${y(e.keys,`، `)}`;case`invalid_key`:return`${e.origin} میں غلط کی`;case`invalid_union`:return`غلط ان پٹ`;case`invalid_element`:return`${e.origin} میں غلط ویلیو`;default:return`غلط ان پٹ`}}}}));function Ws(){return{localeError:Gs()}}var Gs,Ks=t((()=>{k(),Gs=()=>{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 ${y(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`:``}: ${y(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 qs(){return{localeError:Js()}}var Js,Ys=t((()=>{k(),Js=()=>{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ị ${y(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: ${y(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 Xs(){return{localeError:Zs()}}var Zs,Qs=t((()=>{k(),Zs=()=>{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])}`:`无效选项:期望以下之一 ${y(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): ${y(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} 中的键(key)无效`;case`invalid_union`:return`无效输入`;case`invalid_element`:return`${e.origin} 中包含无效值(value)`;default:return`无效输入`}}}}));function $s(){return{localeError:ec()}}var ec,tc=t((()=>{k(),ec=()=>{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])}`:`無效的選項:預期為以下其中之一 ${y(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?`們`:``}:${y(e.keys,`、`)}`;case`invalid_key`:return`${e.origin} 中有無效的鍵值`;case`invalid_union`:return`無效的輸入值`;case`invalid_element`:return`${e.origin} 中有無效的值`;default:return`無效的輸入值`}}}}));function nc(){return{localeError:rc()}}var rc,ic=t((()=>{k(),rc=()=>{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 ${y(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ọ̀: ${y(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`}}}})),ac=n({ar:()=>oa,az:()=>la,be:()=>pa,bg:()=>ga,ca:()=>ya,cs:()=>Sa,da:()=>Ta,de:()=>Oa,el:()=>ja,en:()=>Pa,eo:()=>La,es:()=>Ba,fa:()=>Ua,fi:()=>Ka,fr:()=>Ya,frCA:()=>Qa,he:()=>to,hr:()=>io,hu:()=>so,hy:()=>po,id:()=>go,is:()=>yo,it:()=>So,ja:()=>To,ka:()=>Oo,kh:()=>Po,km:()=>jo,ko:()=>Io,lt:()=>Bo,mk:()=>Wo,ms:()=>qo,nl:()=>Xo,no:()=>$o,ota:()=>ns,pl:()=>cs,ps:()=>as,pt:()=>ds,ro:()=>ms,ru:()=>vs,sl:()=>xs,sv:()=>ws,ta:()=>Ds,th:()=>As,tr:()=>Ns,ua:()=>zs,uk:()=>Is,ur:()=>Vs,uz:()=>Ws,vi:()=>qs,yo:()=>nc,zhCN:()=>Xs,zhTW:()=>$s}),oc=t((()=>{ca(),da(),ha(),va(),xa(),wa(),Da(),Aa(),Na(),Ia(),za(),Ha(),Ga(),Ja(),Za(),eo(),ro(),oo(),lo(),ho(),vo(),xo(),wo(),Do(),Ao(),Fo(),No(),Ro(),Uo(),Ko(),Yo(),Qo(),ts(),is(),ss(),us(),ps(),gs(),bs(),Cs(),Es(),ks(),Ms(),Fs(),Bs(),Rs(),Us(),Ks(),Ys(),Qs(),tc(),ic()}));function sc(){return new dc}var cc,lc,uc,dc,fc,pc=t((()=>{lc=Symbol(`ZodOutput`),uc=Symbol(`ZodInput`),dc=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)}},(cc=globalThis).__zod_globalRegistry??(cc.__zod_globalRegistry=sc()),fc=globalThis.__zod_globalRegistry}));function mc(e,t){return new e({type:`string`,...E(t)})}function hc(e,t){return new e({type:`string`,coerce:!0,...E(t)})}function gc(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...E(t)})}function _c(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...E(t)})}function vc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...E(t)})}function yc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...E(t)})}function bc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...E(t)})}function xc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...E(t)})}function Sc(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...E(t)})}function Cc(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...E(t)})}function wc(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...E(t)})}function Tc(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...E(t)})}function Ec(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...E(t)})}function Dc(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...E(t)})}function Oc(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...E(t)})}function kc(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...E(t)})}function Ac(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...E(t)})}function jc(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...E(t)})}function Mc(e,t){return new e({type:`string`,format:`mac`,check:`string_format`,abort:!1,...E(t)})}function Nc(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...E(t)})}function Pc(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...E(t)})}function Fc(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...E(t)})}function Ic(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...E(t)})}function Lc(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...E(t)})}function Rc(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...E(t)})}function zc(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...E(t)})}function Bc(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...E(t)})}function Vc(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...E(t)})}function Hc(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...E(t)})}function Uc(e,t){return new e({type:`number`,checks:[],...E(t)})}function Wc(e,t){return new e({type:`number`,coerce:!0,checks:[],...E(t)})}function Gc(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...E(t)})}function Kc(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float32`,...E(t)})}function qc(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float64`,...E(t)})}function Jc(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`int32`,...E(t)})}function Yc(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`uint32`,...E(t)})}function Xc(e,t){return new e({type:`boolean`,...E(t)})}function Zc(e,t){return new e({type:`boolean`,coerce:!0,...E(t)})}function Qc(e,t){return new e({type:`bigint`,...E(t)})}function $c(e,t){return new e({type:`bigint`,coerce:!0,...E(t)})}function el(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`int64`,...E(t)})}function tl(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`uint64`,...E(t)})}function nl(e,t){return new e({type:`symbol`,...E(t)})}function rl(e,t){return new e({type:`undefined`,...E(t)})}function il(e,t){return new e({type:`null`,...E(t)})}function al(e){return new e({type:`any`})}function ol(e){return new e({type:`unknown`})}function sl(e,t){return new e({type:`never`,...E(t)})}function cl(e,t){return new e({type:`void`,...E(t)})}function ll(e,t){return new e({type:`date`,...E(t)})}function ul(e,t){return new e({type:`date`,coerce:!0,...E(t)})}function dl(e,t){return new e({type:`nan`,...E(t)})}function fl(e,t){return new Gn({check:`less_than`,...E(t),value:e,inclusive:!1})}function pl(e,t){return new Gn({check:`less_than`,...E(t),value:e,inclusive:!0})}function ml(e,t){return new Kn({check:`greater_than`,...E(t),value:e,inclusive:!1})}function hl(e,t){return new Kn({check:`greater_than`,...E(t),value:e,inclusive:!0})}function gl(e){return ml(0,e)}function _l(e){return fl(0,e)}function vl(e){return pl(0,e)}function yl(e){return hl(0,e)}function bl(e,t){return new qn({check:`multiple_of`,...E(t),value:e})}function xl(e,t){return new Xn({check:`max_size`,...E(t),maximum:e})}function Sl(e,t){return new Zn({check:`min_size`,...E(t),minimum:e})}function Cl(e,t){return new Qn({check:`size_equals`,...E(t),size:e})}function wl(e,t){return new $n({check:`max_length`,...E(t),maximum:e})}function Tl(e,t){return new er({check:`min_length`,...E(t),minimum:e})}function El(e,t){return new tr({check:`length_equals`,...E(t),length:e})}function Dl(e,t){return new rr({check:`string_format`,format:`regex`,...E(t),pattern:e})}function Ol(e){return new ir({check:`string_format`,format:`lowercase`,...E(e)})}function kl(e){return new ar({check:`string_format`,format:`uppercase`,...E(e)})}function Al(e,t){return new or({check:`string_format`,format:`includes`,...E(t),includes:e})}function jl(e,t){return new sr({check:`string_format`,format:`starts_with`,...E(t),prefix:e})}function Ml(e,t){return new cr({check:`string_format`,format:`ends_with`,...E(t),suffix:e})}function Nl(e,t,n){return new lr({check:`property`,property:e,schema:t,...E(n)})}function Pl(e,t){return new ur({check:`mime_type`,mime:e,...E(t)})}function Fl(e){return new dr({check:`overwrite`,tx:e})}function Il(e){return Fl(t=>t.normalize(e))}function Ll(){return Fl(e=>e.trim())}function Rl(){return Fl(e=>e.toLowerCase())}function zl(){return Fl(e=>e.toUpperCase())}function Bl(){return Fl(e=>de(e))}function Vl(e,t,n){return new e({type:`array`,element:t,...E(n)})}function Hl(e,t,n){return new e({type:`union`,options:t,...E(n)})}function Ul(e,t,n){return new e({type:`union`,options:t,inclusive:!1,...E(n)})}function Wl(e,t,n,r){return new e({type:`union`,options:n,discriminator:t,...E(r)})}function Gl(e,t,n){return new e({type:`intersection`,left:t,right:n})}function Kl(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 ql(e,t,n,r){return new e({type:`record`,keyType:t,valueType:n,...E(r)})}function Jl(e,t,n,r){return new e({type:`map`,keyType:t,valueType:n,...E(r)})}function Yl(e,t,n){return new e({type:`set`,valueType:t,...E(n)})}function Xl(e,t,n){return new e({type:`enum`,entries:Array.isArray(t)?Object.fromEntries(t.map(e=>[e,e])):t,...E(n)})}function Zl(e,t,n){return new e({type:`enum`,entries:t,...E(n)})}function Ql(e,t,n){return new e({type:`literal`,values:Array.isArray(t)?t:[t],...E(n)})}function $l(e,t){return new e({type:`file`,...E(t)})}function eu(e,t){return new e({type:`transform`,transform:t})}function tu(e,t){return new e({type:`optional`,innerType:t})}function nu(e,t){return new e({type:`nullable`,innerType:t})}function ru(e,t,n){return new e({type:`default`,innerType:t,get defaultValue(){return typeof n==`function`?n():pe(n)}})}function iu(e,t,n){return new e({type:`nonoptional`,innerType:t,...E(n)})}function au(e,t){return new e({type:`success`,innerType:t})}function ou(e,t,n){return new e({type:`catch`,innerType:t,catchValue:typeof n==`function`?n:()=>n})}function su(e,t,n){return new e({type:`pipe`,in:t,out:n})}function cu(e,t){return new e({type:`readonly`,innerType:t})}function lu(e,t,n){return new e({type:`template_literal`,parts:t,...E(n)})}function uu(e,t){return new e({type:`lazy`,getter:t})}function du(e,t){return new e({type:`promise`,innerType:t})}function fu(e,t,n){let r=E(n);return r.abort??=!0,new e({type:`custom`,check:`custom`,fn:t,...r})}function pu(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...E(n)})}function mu(e,t){let n=hu(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(Me(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(Me(r))}},e(t.value,t)),t);return n}function hu(e,t){let n=new Un({check:`custom`,...E(t)});return n._zod.check=e,n}function gu(e){let t=new Un({check:`describe`});return t._zod.onattach=[t=>{let n=fc.get(t)??{};fc.add(t,{...n,description:e})}],t._zod.check=()=>{},t}function _u(e){let t=new Un({check:`meta`});return t._zod.onattach=[t=>{let n=fc.get(t)??{};fc.add(t,{...n,...e})}],t._zod.check=()=>{},t}function vu(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??Zi,c=e.Boolean??hi,l=new s({type:`pipe`,in:new(e.String??Vr)({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 yu(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 bu,xu=t((()=>{fr(),pc(),aa(),k(),bu={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6}}));function Su(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??fc,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 M(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,M(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`&&Tu(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 Cu(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>
|
|
1038
|
+
|
|
1039
|
+
Set 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 wu(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:Du(t,`input`,e.processors),output:Du(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function Tu(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 Tu(r.element,n);if(r.type===`set`)return Tu(r.valueType,n);if(r.type===`lazy`)return Tu(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 Tu(r.innerType,n);if(r.type===`intersection`)return Tu(r.left,n)||Tu(r.right,n);if(r.type===`record`||r.type===`map`)return Tu(r.keyType,n)||Tu(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:Tu(r.in,n)||Tu(r.out,n);if(r.type===`object`){for(let e in r.shape)if(Tu(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(Tu(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(Tu(e,n))return!0;return!!(r.rest&&Tu(r.rest,n))}return!1}var Eu,Du,Ou=t((()=>{pc(),Eu=(e,t={})=>n=>{let r=Su({...n,processors:t});return M(e,r),Cu(r,e),wu(r,e)},Du=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=Su({...i??{},target:a,io:t,processors:n});return M(e,o),Cu(o,e),wu(o,e)}}));function ku(e,t){if(`_idmap`in e){let n=e,r=Su({...t,processors:gd}),i={};for(let e of n._idmap.entries()){let[t,n]=e;M(n,r)}let a={};r.external={registry:n,uri:t?.uri,defs:i};for(let e of n._idmap.entries()){let[t,n]=e;Cu(r,n),a[t]=wu(r,n)}return Object.keys(i).length>0&&(a.__shared={[r.target===`draft-2020-12`?`$defs`:`definitions`]:i}),{schemas:a}}let n=Su({...t,processors:gd});return M(e,n),Cu(n,e),wu(n,e)}var Au,ju,Mu,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=t((()=>{Ou(),k(),Au={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},ju=(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=Au[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}))])}},Mu=(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)},Nu=(e,t,n,r)=>{n.type=`boolean`},Pu=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`BigInt cannot be represented in JSON Schema`)},Fu=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Symbols cannot be represented in JSON Schema`)},Iu=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},Lu=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Undefined cannot be represented in JSON Schema`)},Ru=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Void cannot be represented in JSON Schema`)},zu=(e,t,n,r)=>{n.not={}},Bu=(e,t,n,r)=>{},Vu=(e,t,n,r)=>{},Hu=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Date cannot be represented in JSON Schema`)},Uu=(e,t,n,r)=>{let i=e._zod.def,a=v(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},Wu=(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},Gu=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`NaN cannot be represented in JSON Schema`)},Ku=(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},qu=(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)},Ju=(e,t,n,r)=>{n.type=`boolean`},Yu=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},Xu=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Function types cannot be represented in JSON Schema`)},Zu=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},Qu=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Map cannot be represented in JSON Schema`)},$u=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Set cannot be represented in JSON Schema`)},ed=(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=M(a.element,t,{...r,path:[...r.path,`items`]})},td=(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]=M(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=M(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},nd=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>M(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},rd=(e,t,n,r)=>{let i=e._zod.def,a=M(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=M(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]]},id=(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)=>M(e,t,{...r,path:[...r.path,o,n]})),l=a.rest?M(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)},ad=(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=M(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=M(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=M(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)}},od=(e,t,n,r)=>{let i=e._zod.def,a=M(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`}]},sd=(e,t,n,r)=>{let i=e._zod.def;M(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},cd=(e,t,n,r)=>{let i=e._zod.def;M(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},ld=(e,t,n,r)=>{let i=e._zod.def;M(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)))},ud=(e,t,n,r)=>{let i=e._zod.def;M(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},dd=(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;M(o,t,r);let s=t.seen.get(e);s.ref=o},fd=(e,t,n,r)=>{let i=e._zod.def;M(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},pd=(e,t,n,r)=>{let i=e._zod.def;M(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},md=(e,t,n,r)=>{let i=e._zod.def;M(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},hd=(e,t,n,r)=>{let i=e._zod.innerType;M(i,t,r);let a=t.seen.get(e);a.ref=i},gd={string:ju,number:Mu,boolean:Nu,bigint:Pu,symbol:Fu,null:Iu,undefined:Lu,void:Ru,never:zu,any:Bu,unknown:Vu,date:Hu,enum:Uu,literal:Wu,nan:Gu,template_literal:Ku,file:qu,success:Ju,custom:Yu,function:Xu,transform:Zu,map:Qu,set:$u,array:ed,object:td,union:nd,intersection:rd,tuple:id,record:ad,nullable:od,nonoptional:sd,default:cd,prefault:ld,catch:ud,pipe:dd,readonly:fd,promise:pd,optional:md,lazy:hd}})),vd,yd=t((()=>{_d(),Ou(),vd=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=Su({processors:gd,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 M(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)),Cu(this.ctx,e);let{"~standard":n,...r}=wu(this.ctx,e);return r}}})),bd=n({}),xd=t((()=>{})),Sd=n({$ZodAny:()=>xi,$ZodArray:()=>Ei,$ZodAsyncError:()=>l,$ZodBase64:()=>ci,$ZodBase64URL:()=>li,$ZodBigInt:()=>gi,$ZodBigIntFormat:()=>_i,$ZodBoolean:()=>hi,$ZodCIDRv4:()=>oi,$ZodCIDRv6:()=>si,$ZodCUID:()=>Jr,$ZodCUID2:()=>Yr,$ZodCatch:()=>Ji,$ZodCheck:()=>Un,$ZodCheckBigIntFormat:()=>Yn,$ZodCheckEndsWith:()=>cr,$ZodCheckGreaterThan:()=>Kn,$ZodCheckIncludes:()=>or,$ZodCheckLengthEquals:()=>tr,$ZodCheckLessThan:()=>Gn,$ZodCheckLowerCase:()=>ir,$ZodCheckMaxLength:()=>$n,$ZodCheckMaxSize:()=>Xn,$ZodCheckMimeType:()=>ur,$ZodCheckMinLength:()=>er,$ZodCheckMinSize:()=>Zn,$ZodCheckMultipleOf:()=>qn,$ZodCheckNumberFormat:()=>Jn,$ZodCheckOverwrite:()=>dr,$ZodCheckProperty:()=>lr,$ZodCheckRegex:()=>rr,$ZodCheckSizeEquals:()=>Qn,$ZodCheckStartsWith:()=>sr,$ZodCheckStringFormat:()=>nr,$ZodCheckUpperCase:()=>ar,$ZodCodec:()=>Zi,$ZodCustom:()=>ia,$ZodCustomStringFormat:()=>fi,$ZodDate:()=>Ti,$ZodDefault:()=>Wi,$ZodDiscriminatedUnion:()=>ji,$ZodE164:()=>ui,$ZodEmail:()=>Wr,$ZodEmoji:()=>Kr,$ZodEncodeError:()=>u,$ZodEnum:()=>Li,$ZodError:()=>tt,$ZodExactOptional:()=>Hi,$ZodFile:()=>zi,$ZodFunction:()=>ta,$ZodGUID:()=>Hr,$ZodIPv4:()=>ri,$ZodIPv6:()=>ii,$ZodISODate:()=>ei,$ZodISODateTime:()=>$r,$ZodISODuration:()=>ni,$ZodISOTime:()=>ti,$ZodIntersection:()=>Mi,$ZodJWT:()=>di,$ZodKSUID:()=>Qr,$ZodLazy:()=>ra,$ZodLiteral:()=>Ri,$ZodMAC:()=>ai,$ZodMap:()=>Fi,$ZodNaN:()=>Yi,$ZodNanoID:()=>qr,$ZodNever:()=>Ci,$ZodNonOptional:()=>Ki,$ZodNull:()=>bi,$ZodNullable:()=>Ui,$ZodNumber:()=>pi,$ZodNumberFormat:()=>mi,$ZodObject:()=>Di,$ZodObjectJIT:()=>Oi,$ZodOptional:()=>Vi,$ZodPipe:()=>Xi,$ZodPrefault:()=>Gi,$ZodPreprocess:()=>Qi,$ZodPromise:()=>na,$ZodReadonly:()=>$i,$ZodRealError:()=>nt,$ZodRecord:()=>Pi,$ZodRegistry:()=>dc,$ZodSet:()=>Ii,$ZodString:()=>Vr,$ZodStringFormat:()=>j,$ZodSuccess:()=>qi,$ZodSymbol:()=>vi,$ZodTemplateLiteral:()=>ea,$ZodTransform:()=>Bi,$ZodTuple:()=>Ni,$ZodType:()=>A,$ZodULID:()=>Xr,$ZodURL:()=>Gr,$ZodUUID:()=>Ur,$ZodUndefined:()=>yi,$ZodUnion:()=>ki,$ZodUnknown:()=>Si,$ZodVoid:()=>wi,$ZodXID:()=>Zr,$ZodXor:()=>Ai,$brand:()=>c,$constructor:()=>i,$input:()=>uc,$output:()=>lc,Doc:()=>pr,JSONSchema:()=>bd,JSONSchemaGenerator:()=>vd,NEVER:()=>s,TimePrecision:()=>bu,_any:()=>al,_array:()=>Vl,_base64:()=>Fc,_base64url:()=>Ic,_bigint:()=>Qc,_boolean:()=>Xc,_catch:()=>ou,_check:()=>hu,_cidrv4:()=>Nc,_cidrv6:()=>Pc,_coercedBigint:()=>$c,_coercedBoolean:()=>Zc,_coercedDate:()=>ul,_coercedNumber:()=>Wc,_coercedString:()=>hc,_cuid:()=>Tc,_cuid2:()=>Ec,_custom:()=>fu,_date:()=>ll,_decode:()=>mt,_decodeAsync:()=>vt,_default:()=>ru,_discriminatedUnion:()=>Wl,_e164:()=>Lc,_email:()=>gc,_emoji:()=>Cc,_encode:()=>ft,_encodeAsync:()=>gt,_endsWith:()=>Ml,_enum:()=>Xl,_file:()=>$l,_float32:()=>Kc,_float64:()=>qc,_gt:()=>ml,_gte:()=>hl,_guid:()=>_c,_includes:()=>Al,_int:()=>Gc,_int32:()=>Jc,_int64:()=>el,_intersection:()=>Gl,_ipv4:()=>Ac,_ipv6:()=>jc,_isoDate:()=>Bc,_isoDateTime:()=>zc,_isoDuration:()=>Hc,_isoTime:()=>Vc,_jwt:()=>Rc,_ksuid:()=>kc,_lazy:()=>uu,_length:()=>El,_literal:()=>Ql,_lowercase:()=>Ol,_lt:()=>fl,_lte:()=>pl,_mac:()=>Mc,_map:()=>Jl,_max:()=>pl,_maxLength:()=>wl,_maxSize:()=>xl,_mime:()=>Pl,_min:()=>hl,_minLength:()=>Tl,_minSize:()=>Sl,_multipleOf:()=>bl,_nan:()=>dl,_nanoid:()=>wc,_nativeEnum:()=>Zl,_negative:()=>_l,_never:()=>sl,_nonnegative:()=>yl,_nonoptional:()=>iu,_nonpositive:()=>vl,_normalize:()=>Il,_null:()=>il,_nullable:()=>nu,_number:()=>Uc,_optional:()=>tu,_overwrite:()=>Fl,_parse:()=>it,_parseAsync:()=>ot,_pipe:()=>su,_positive:()=>gl,_promise:()=>du,_property:()=>Nl,_readonly:()=>cu,_record:()=>ql,_refine:()=>pu,_regex:()=>Dl,_safeDecode:()=>St,_safeDecodeAsync:()=>Et,_safeEncode:()=>bt,_safeEncodeAsync:()=>wt,_safeParse:()=>ct,_safeParseAsync:()=>ut,_set:()=>Yl,_size:()=>Cl,_slugify:()=>Bl,_startsWith:()=>jl,_string:()=>mc,_stringFormat:()=>yu,_stringbool:()=>vu,_success:()=>au,_superRefine:()=>mu,_symbol:()=>nl,_templateLiteral:()=>lu,_toLowerCase:()=>Rl,_toUpperCase:()=>zl,_transform:()=>eu,_trim:()=>Ll,_tuple:()=>Kl,_uint32:()=>Yc,_uint64:()=>tl,_ulid:()=>Dc,_undefined:()=>rl,_union:()=>Hl,_unknown:()=>ol,_uppercase:()=>kl,_url:()=>Sc,_uuid:()=>vc,_uuidv4:()=>yc,_uuidv6:()=>bc,_uuidv7:()=>xc,_void:()=>cl,_xid:()=>Oc,_xor:()=>Ul,clone:()=>T,config:()=>a,createStandardJSONSchemaMethod:()=>Du,createToJSONSchemaMethod:()=>Eu,decode:()=>ht,decodeAsync:()=>yt,describe:()=>gu,encode:()=>pt,encodeAsync:()=>_t,extractDefs:()=>Cu,finalize:()=>wu,flattenError:()=>Ye,formatError:()=>Xe,globalConfig:()=>d,globalRegistry:()=>fc,initializeContext:()=>Su,isValidBase64:()=>_r,isValidBase64URL:()=>vr,isValidJWT:()=>yr,locales:()=>ac,meta:()=>_u,parse:()=>at,parseAsync:()=>st,prettifyError:()=>$e,process:()=>M,regexes:()=>kt,registry:()=>sc,safeDecode:()=>Ct,safeDecodeAsync:()=>Dt,safeEncode:()=>xt,safeEncodeAsync:()=>Tt,safeParse:()=>lt,safeParseAsync:()=>dt,toDotPath:()=>Qe,toJSONSchema:()=>ku,treeifyError:()=>Ze,util:()=>p,version:()=>hr}),Cd=t((()=>{f(),Ot(),rt(),aa(),fr(),gr(),k(),Vn(),oc(),pc(),mr(),xu(),Ou(),_d(),yd(),xd()}));xu(),k(),Vn(),f(),Ot(),_d(),rt(),oc(),Cd(),pc();function wd(e){return!!e._zod}function Td(e,t){return wd(e)?lt(e,t):e.safeParse(t)}function Ed(e){if(!e)return;let t;if(t=wd(e)?e._zod?.def?.shape:e.shape,t){if(typeof t==`function`)try{return t()}catch{return}return t}}function Dd(e){if(wd(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 Od=n({endsWith:()=>Ml,gt:()=>ml,gte:()=>hl,includes:()=>Al,length:()=>El,lowercase:()=>Ol,lt:()=>fl,lte:()=>pl,maxLength:()=>wl,maxSize:()=>xl,mime:()=>Pl,minLength:()=>Tl,minSize:()=>Sl,multipleOf:()=>bl,negative:()=>_l,nonnegative:()=>yl,nonpositive:()=>vl,normalize:()=>Il,overwrite:()=>Fl,positive:()=>gl,property:()=>Nl,regex:()=>Dl,size:()=>Cl,slugify:()=>Bl,startsWith:()=>jl,toLowerCase:()=>Rl,toUpperCase:()=>zl,trim:()=>Ll,uppercase:()=>kl}),kd=t((()=>{Cd()})),Ad=n({ZodISODate:()=>Id,ZodISODateTime:()=>Fd,ZodISODuration:()=>Rd,ZodISOTime:()=>Ld,date:()=>Md,datetime:()=>jd,duration:()=>Pd,time:()=>Nd});function jd(e){return zc(Fd,e)}function Md(e){return Bc(Id,e)}function Nd(e){return Vc(Ld,e)}function Pd(e){return Hc(Rd,e)}var Fd,Id,Ld,Rd,zd=t((()=>{Cd(),Qm(),Fd=i(`ZodISODateTime`,(e,t)=>{$r.init(e,t),W.init(e,t)}),Id=i(`ZodISODate`,(e,t)=>{ei.init(e,t),W.init(e,t)}),Ld=i(`ZodISOTime`,(e,t)=>{ti.init(e,t),W.init(e,t)}),Rd=i(`ZodISODuration`,(e,t)=>{ni.init(e,t),W.init(e,t)})})),Bd,Vd,Hd,Ud=t((()=>{Cd(),k(),Bd=(e,t)=>{tt.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Xe(e,t)},flatten:{value:t=>Ye(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,te,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,te,2)}},isEmpty:{get(){return e.issues.length===0}}})},Vd=i(`ZodError`,Bd),Hd=i(`ZodError`,Bd,{Parent:Error})})),Wd,Gd,Kd,qd,Jd,Yd,Xd,Zd,Qd,$d,ef,tf,nf=t((()=>{Cd(),Ud(),Wd=it(Hd),Gd=ot(Hd),Kd=ct(Hd),qd=ut(Hd),Jd=ft(Hd),Yd=mt(Hd),Xd=gt(Hd),Zd=vt(Hd),Qd=bt(Hd),$d=St(Hd),ef=wt(Hd),tf=Et(Hd)})),rf=n({ZodAny:()=>fm,ZodArray:()=>_m,ZodBase64:()=>$p,ZodBase64URL:()=>em,ZodBigInt:()=>sm,ZodBigIntFormat:()=>cm,ZodBoolean:()=>om,ZodCIDRv4:()=>Zp,ZodCIDRv6:()=>Qp,ZodCUID:()=>Up,ZodCUID2:()=>Wp,ZodCatch:()=>Rm,ZodCodec:()=>Vm,ZodCustom:()=>Jm,ZodCustomStringFormat:()=>rm,ZodDate:()=>gm,ZodDefault:()=>Pm,ZodDiscriminatedUnion:()=>xm,ZodE164:()=>tm,ZodEmail:()=>Lp,ZodEmoji:()=>Vp,ZodEnum:()=>Dm,ZodExactOptional:()=>Mm,ZodFile:()=>km,ZodFunction:()=>qm,ZodGUID:()=>Rp,ZodIPv4:()=>Jp,ZodIPv6:()=>Xp,ZodIntersection:()=>Sm,ZodJWT:()=>nm,ZodKSUID:()=>qp,ZodLazy:()=>Gm,ZodLiteral:()=>Om,ZodMAC:()=>Yp,ZodMap:()=>Tm,ZodNaN:()=>zm,ZodNanoID:()=>Hp,ZodNever:()=>mm,ZodNonOptional:()=>Im,ZodNull:()=>dm,ZodNullable:()=>Nm,ZodNumber:()=>im,ZodNumberFormat:()=>am,ZodObject:()=>vm,ZodOptional:()=>jm,ZodPipe:()=>Bm,ZodPrefault:()=>Fm,ZodPreprocess:()=>Hm,ZodPromise:()=>Km,ZodReadonly:()=>Um,ZodRecord:()=>wm,ZodSet:()=>Em,ZodString:()=>Ip,ZodStringFormat:()=>W,ZodSuccess:()=>Lm,ZodSymbol:()=>lm,ZodTemplateLiteral:()=>Wm,ZodTransform:()=>Am,ZodTuple:()=>Cm,ZodType:()=>U,ZodULID:()=>Gp,ZodURL:()=>Bp,ZodUUID:()=>zp,ZodUndefined:()=>um,ZodUnion:()=>ym,ZodUnknown:()=>pm,ZodVoid:()=>hm,ZodXID:()=>Kp,ZodXor:()=>bm,_ZodString:()=>Fp,_default:()=>pp,_function:()=>Ep,any:()=>Gf,array:()=>L,base64:()=>Ef,base64url:()=>Df,bigint:()=>zf,boolean:()=>F,catch:()=>_p,check:()=>Dp,cidrv4:()=>wf,cidrv6:()=>Tf,codec:()=>bp,cuid:()=>gf,cuid2:()=>_f,custom:()=>Op,date:()=>Jf,describe:()=>Ym,discriminatedUnion:()=>$f,e164:()=>Of,email:()=>of,emoji:()=>mf,enum:()=>V,exactOptional:()=>up,file:()=>sp,float32:()=>Ff,float64:()=>If,function:()=>Ep,guid:()=>sf,hash:()=>Nf,hex:()=>Mf,hostname:()=>jf,httpUrl:()=>pf,instanceof:()=>jp,int:()=>Pf,int32:()=>Lf,int64:()=>Bf,intersection:()=>ep,invertCodec:()=>xp,ipv4:()=>xf,ipv6:()=>Cf,json:()=>Mp,jwt:()=>kf,keyof:()=>Yf,ksuid:()=>bf,lazy:()=>wp,literal:()=>H,looseObject:()=>Zf,looseRecord:()=>rp,mac:()=>Sf,map:()=>ip,meta:()=>Xm,nan:()=>vp,nanoid:()=>hf,nativeEnum:()=>op,never:()=>Kf,nonoptional:()=>hp,null:()=>Wf,nullable:()=>dp,nullish:()=>fp,number:()=>P,object:()=>R,optional:()=>lp,partialRecord:()=>np,pipe:()=>yp,prefault:()=>mp,preprocess:()=>Np,promise:()=>Tp,readonly:()=>Sp,record:()=>B,refine:()=>kp,set:()=>ap,strictObject:()=>Xf,string:()=>N,stringFormat:()=>Af,stringbool:()=>Zm,success:()=>gp,superRefine:()=>Ap,symbol:()=>Hf,templateLiteral:()=>Cp,transform:()=>cp,tuple:()=>tp,uint32:()=>Rf,uint64:()=>Vf,ulid:()=>vf,undefined:()=>Uf,union:()=>z,unknown:()=>I,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=Pp.get(r);if(i||(i=new Set,Pp.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 N(e){return mc(Ip,e)}function of(e){return gc(Lp,e)}function sf(e){return _c(Rp,e)}function cf(e){return vc(zp,e)}function lf(e){return yc(zp,e)}function uf(e){return bc(zp,e)}function df(e){return xc(zp,e)}function ff(e){return Sc(Bp,e)}function pf(e){return Sc(Bp,{protocol:fn,hostname:dn,...E(e)})}function mf(e){return Cc(Vp,e)}function hf(e){return wc(Hp,e)}function gf(e){return Tc(Up,e)}function _f(e){return Ec(Wp,e)}function vf(e){return Dc(Gp,e)}function yf(e){return Oc(Kp,e)}function bf(e){return kc(qp,e)}function xf(e){return Ac(Jp,e)}function Sf(e){return Mc(Yp,e)}function Cf(e){return jc(Xp,e)}function wf(e){return Nc(Zp,e)}function Tf(e){return Pc(Qp,e)}function Ef(e){return Fc($p,e)}function Df(e){return Ic(em,e)}function Of(e){return Lc(tm,e)}function kf(e){return Rc(nm,e)}function Af(e,t,n={}){return yu(rm,e,t,n)}function jf(e){return yu(rm,`hostname`,un,e)}function Mf(e){return yu(rm,`hex`,Tn,e)}function Nf(e,t){let n=`${e}_${t?.enc??`hex`}`,r=kt[n];if(!r)throw Error(`Unrecognized hash format: ${n}`);return yu(rm,n,r,t)}function P(e){return Uc(im,e)}function Pf(e){return Gc(am,e)}function Ff(e){return Kc(am,e)}function If(e){return qc(am,e)}function Lf(e){return Jc(am,e)}function Rf(e){return Yc(am,e)}function F(e){return Xc(om,e)}function zf(e){return Qc(sm,e)}function Bf(e){return el(cm,e)}function Vf(e){return tl(cm,e)}function Hf(e){return nl(lm,e)}function Uf(e){return rl(um,e)}function Wf(e){return il(dm,e)}function Gf(){return al(fm)}function I(){return ol(pm)}function Kf(e){return sl(mm,e)}function qf(e){return cl(hm,e)}function Jf(e){return ll(gm,e)}function L(e,t){return Vl(_m,e,t)}function Yf(e){let t=e._zod.def.shape;return V(Object.keys(t))}function R(e,t){return new vm({type:`object`,shape:e??{},...E(t)})}function Xf(e,t){return new vm({type:`object`,shape:e,catchall:Kf(),...E(t)})}function Zf(e,t){return new vm({type:`object`,shape:e,catchall:I(),...E(t)})}function z(e,t){return new ym({type:`union`,options:e,...E(t)})}function Qf(e,t){return new bm({type:`union`,options:e,inclusive:!1,...E(t)})}function $f(e,t,n){return new xm({type:`union`,options:t,discriminator:e,...E(n)})}function ep(e,t){return new Sm({type:`intersection`,left:e,right:t})}function tp(e,t,n){let r=t instanceof A;return new Cm({type:`tuple`,items:e,rest:r?t:null,...E(r?n:t)})}function B(e,t,n){return!t||!t._zod?new wm({type:`record`,keyType:N(),valueType:e,...E(t)}):new wm({type:`record`,keyType:e,valueType:t,...E(n)})}function np(e,t,n){let r=T(e);return r._zod.values=void 0,new wm({type:`record`,keyType:r,valueType:t,...E(n)})}function rp(e,t,n){return new wm({type:`record`,keyType:e,valueType:t,mode:`loose`,...E(n)})}function ip(e,t,n){return new Tm({type:`map`,keyType:e,valueType:t,...E(n)})}function ap(e,t){return new Em({type:`set`,valueType:e,...E(t)})}function V(e,t){return new Dm({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...E(t)})}function op(e,t){return new Dm({type:`enum`,entries:e,...E(t)})}function H(e,t){return new Om({type:`literal`,values:Array.isArray(e)?e:[e],...E(t)})}function sp(e){return $l(km,e)}function cp(e){return new Am({type:`transform`,transform:e})}function lp(e){return new jm({type:`optional`,innerType:e})}function up(e){return new Mm({type:`optional`,innerType:e})}function dp(e){return new Nm({type:`nullable`,innerType:e})}function fp(e){return lp(dp(e))}function pp(e,t){return new Pm({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():pe(t)}})}function mp(e,t){return new Fm({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():pe(t)}})}function hp(e,t){return new Im({type:`nonoptional`,innerType:e,...E(t)})}function gp(e){return new Lm({type:`success`,innerType:e})}function _p(e,t){return new Rm({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}function vp(e){return dl(zm,e)}function yp(e,t){return new Bm({type:`pipe`,in:e,out:t})}function bp(e,t,n){return new Vm({type:`pipe`,in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function xp(e){let t=e._zod.def;return new Vm({type:`pipe`,in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}function Sp(e){return new Um({type:`readonly`,innerType:e})}function Cp(e,t){return new Wm({type:`template_literal`,parts:e,...E(t)})}function wp(e){return new Gm({type:`lazy`,getter:e})}function Tp(e){return new Km({type:`promise`,innerType:e})}function Ep(e){return new qm({type:`function`,input:Array.isArray(e?.input)?tp(e?.input):e?.input??L(I()),output:e?.output??I()})}function Dp(e){let t=new Un({check:`custom`});return t._zod.check=e,t}function Op(e,t){return fu(Jm,e??(()=>!0),t)}function kp(e,t={}){return pu(Jm,e,t)}function Ap(e,t){return mu(e,t)}function jp(e,t={}){let n=new Jm({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 Mp(e){let t=wp(()=>z([N(e),P(),F(),Wf(),L(t),B(N(),t)]));return t}function Np(e,t){return new Hm({type:`pipe`,in:cp(e),out:t})}var Pp,U,Fp,Ip,W,Lp,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=t((()=>{Cd(),_d(),Ou(),kd(),zd(),nf(),Pp=new WeakMap,U=i(`ZodType`,(e,t)=>(A.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:Du(e,`input`),output:Du(e,`output`)}}),e.toJSONSchema=Eu(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>Wd(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Kd(e,t,n),e.parseAsync=async(t,n)=>Gd(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(S(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 T(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(kp(e,t))},superRefine(e,t){return this.check(Ap(e,t))},overwrite(e){return this.check(Fl(e))},optional(){return lp(this)},exactOptional(){return up(this)},nullable(){return dp(this)},nullish(){return lp(dp(this))},nonoptional(e){return hp(this,e)},array(){return L(this)},or(e){return z([this,e])},and(e){return ep(this,e)},transform(e){return yp(this,cp(e))},default(e){return pp(this,e)},prefault(e){return mp(this,e)},catch(e){return _p(this,e)},pipe(e){return yp(this,e)},readonly(){return Sp(this)},describe(e){let t=this.clone();return fc.add(t,{description:e}),t},meta(...e){if(e.length===0)return fc.get(this);let t=this.clone();return fc.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 fc.get(e)?.description},configurable:!0}),e)),Fp=i(`_ZodString`,(e,t)=>{Vr.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ju(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(Dl(...e))},includes(...e){return this.check(Al(...e))},startsWith(...e){return this.check(jl(...e))},endsWith(...e){return this.check(Ml(...e))},min(...e){return this.check(Tl(...e))},max(...e){return this.check(wl(...e))},length(...e){return this.check(El(...e))},nonempty(...e){return this.check(Tl(1,...e))},lowercase(e){return this.check(Ol(e))},uppercase(e){return this.check(kl(e))},trim(){return this.check(Ll())},normalize(...e){return this.check(Il(...e))},toLowerCase(){return this.check(Rl())},toUpperCase(){return this.check(zl())},slugify(){return this.check(Bl())}})}),Ip=i(`ZodString`,(e,t)=>{Vr.init(e,t),Fp.init(e,t),e.email=t=>e.check(gc(Lp,t)),e.url=t=>e.check(Sc(Bp,t)),e.jwt=t=>e.check(Rc(nm,t)),e.emoji=t=>e.check(Cc(Vp,t)),e.guid=t=>e.check(_c(Rp,t)),e.uuid=t=>e.check(vc(zp,t)),e.uuidv4=t=>e.check(yc(zp,t)),e.uuidv6=t=>e.check(bc(zp,t)),e.uuidv7=t=>e.check(xc(zp,t)),e.nanoid=t=>e.check(wc(Hp,t)),e.guid=t=>e.check(_c(Rp,t)),e.cuid=t=>e.check(Tc(Up,t)),e.cuid2=t=>e.check(Ec(Wp,t)),e.ulid=t=>e.check(Dc(Gp,t)),e.base64=t=>e.check(Fc($p,t)),e.base64url=t=>e.check(Ic(em,t)),e.xid=t=>e.check(Oc(Kp,t)),e.ksuid=t=>e.check(kc(qp,t)),e.ipv4=t=>e.check(Ac(Jp,t)),e.ipv6=t=>e.check(jc(Xp,t)),e.cidrv4=t=>e.check(Nc(Zp,t)),e.cidrv6=t=>e.check(Pc(Qp,t)),e.e164=t=>e.check(Lc(tm,t)),e.datetime=t=>e.check(jd(t)),e.date=t=>e.check(Md(t)),e.time=t=>e.check(Nd(t)),e.duration=t=>e.check(Pd(t))}),W=i(`ZodStringFormat`,(e,t)=>{j.init(e,t),Fp.init(e,t)}),Lp=i(`ZodEmail`,(e,t)=>{Wr.init(e,t),W.init(e,t)}),Rp=i(`ZodGUID`,(e,t)=>{Hr.init(e,t),W.init(e,t)}),zp=i(`ZodUUID`,(e,t)=>{Ur.init(e,t),W.init(e,t)}),Bp=i(`ZodURL`,(e,t)=>{Gr.init(e,t),W.init(e,t)}),Vp=i(`ZodEmoji`,(e,t)=>{Kr.init(e,t),W.init(e,t)}),Hp=i(`ZodNanoID`,(e,t)=>{qr.init(e,t),W.init(e,t)}),Up=i(`ZodCUID`,(e,t)=>{Jr.init(e,t),W.init(e,t)}),Wp=i(`ZodCUID2`,(e,t)=>{Yr.init(e,t),W.init(e,t)}),Gp=i(`ZodULID`,(e,t)=>{Xr.init(e,t),W.init(e,t)}),Kp=i(`ZodXID`,(e,t)=>{Zr.init(e,t),W.init(e,t)}),qp=i(`ZodKSUID`,(e,t)=>{Qr.init(e,t),W.init(e,t)}),Jp=i(`ZodIPv4`,(e,t)=>{ri.init(e,t),W.init(e,t)}),Yp=i(`ZodMAC`,(e,t)=>{ai.init(e,t),W.init(e,t)}),Xp=i(`ZodIPv6`,(e,t)=>{ii.init(e,t),W.init(e,t)}),Zp=i(`ZodCIDRv4`,(e,t)=>{oi.init(e,t),W.init(e,t)}),Qp=i(`ZodCIDRv6`,(e,t)=>{si.init(e,t),W.init(e,t)}),$p=i(`ZodBase64`,(e,t)=>{ci.init(e,t),W.init(e,t)}),em=i(`ZodBase64URL`,(e,t)=>{li.init(e,t),W.init(e,t)}),tm=i(`ZodE164`,(e,t)=>{ui.init(e,t),W.init(e,t)}),nm=i(`ZodJWT`,(e,t)=>{di.init(e,t),W.init(e,t)}),rm=i(`ZodCustomStringFormat`,(e,t)=>{fi.init(e,t),W.init(e,t)}),im=i(`ZodNumber`,(e,t)=>{pi.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Mu(e,t,n,r),af(e,`ZodNumber`,{gt(e,t){return this.check(ml(e,t))},gte(e,t){return this.check(hl(e,t))},min(e,t){return this.check(hl(e,t))},lt(e,t){return this.check(fl(e,t))},lte(e,t){return this.check(pl(e,t))},max(e,t){return this.check(pl(e,t))},int(e){return this.check(Pf(e))},safe(e){return this.check(Pf(e))},positive(e){return this.check(ml(0,e))},nonnegative(e){return this.check(hl(0,e))},negative(e){return this.check(fl(0,e))},nonpositive(e){return this.check(pl(0,e))},multipleOf(e,t){return this.check(bl(e,t))},step(e,t){return this.check(bl(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}),am=i(`ZodNumberFormat`,(e,t)=>{mi.init(e,t),im.init(e,t)}),om=i(`ZodBoolean`,(e,t)=>{hi.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Nu(e,t,n,r)}),sm=i(`ZodBigInt`,(e,t)=>{gi.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Pu(e,t,n,r),e.gte=(t,n)=>e.check(hl(t,n)),e.min=(t,n)=>e.check(hl(t,n)),e.gt=(t,n)=>e.check(ml(t,n)),e.gte=(t,n)=>e.check(hl(t,n)),e.min=(t,n)=>e.check(hl(t,n)),e.lt=(t,n)=>e.check(fl(t,n)),e.lte=(t,n)=>e.check(pl(t,n)),e.max=(t,n)=>e.check(pl(t,n)),e.positive=t=>e.check(ml(BigInt(0),t)),e.negative=t=>e.check(fl(BigInt(0),t)),e.nonpositive=t=>e.check(pl(BigInt(0),t)),e.nonnegative=t=>e.check(hl(BigInt(0),t)),e.multipleOf=(t,n)=>e.check(bl(t,n));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null}),cm=i(`ZodBigIntFormat`,(e,t)=>{_i.init(e,t),sm.init(e,t)}),lm=i(`ZodSymbol`,(e,t)=>{vi.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Fu(e,t,n,r)}),um=i(`ZodUndefined`,(e,t)=>{yi.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Lu(e,t,n,r)}),dm=i(`ZodNull`,(e,t)=>{bi.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Iu(e,t,n,r)}),fm=i(`ZodAny`,(e,t)=>{xi.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Bu(e,t,n,r)}),pm=i(`ZodUnknown`,(e,t)=>{Si.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vu(e,t,n,r)}),mm=i(`ZodNever`,(e,t)=>{Ci.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zu(e,t,n,r)}),hm=i(`ZodVoid`,(e,t)=>{wi.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ru(e,t,n,r)}),gm=i(`ZodDate`,(e,t)=>{Ti.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Hu(e,t,n,r),e.min=(t,n)=>e.check(hl(t,n)),e.max=(t,n)=>e.check(pl(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}),_m=i(`ZodArray`,(e,t)=>{Ei.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ed(e,t,n,r),e.element=t.element,af(e,`ZodArray`,{min(e,t){return this.check(Tl(e,t))},nonempty(e){return this.check(Tl(1,e))},max(e,t){return this.check(wl(e,t))},length(e,t){return this.check(El(e,t))},unwrap(){return this.element}})}),vm=i(`ZodObject`,(e,t)=>{Oi.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>td(e,t,n,r),b(e,`shape`,()=>t.shape),af(e,`ZodObject`,{keyof(){return V(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:I()})},loose(){return this.clone({...this._zod.def,catchall:I()})},strict(){return this.clone({...this._zod.def,catchall:Kf()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return be(this,e)},safeExtend(e){return xe(this,e)},merge(e){return Se(this,e)},pick(e){return ve(this,e)},omit(e){return ye(this,e)},partial(...e){return Ce(jm,this,e[0])},required(...e){return we(Im,this,e[0])}})}),ym=i(`ZodUnion`,(e,t)=>{ki.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nd(e,t,n,r),e.options=t.options}),bm=i(`ZodXor`,(e,t)=>{ym.init(e,t),Ai.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nd(e,t,n,r),e.options=t.options}),xm=i(`ZodDiscriminatedUnion`,(e,t)=>{ym.init(e,t),ji.init(e,t)}),Sm=i(`ZodIntersection`,(e,t)=>{Mi.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>rd(e,t,n,r)}),Cm=i(`ZodTuple`,(e,t)=>{Ni.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>id(e,t,n,r),e.rest=t=>e.clone({...e._zod.def,rest:t})}),wm=i(`ZodRecord`,(e,t)=>{Pi.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ad(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType}),Tm=i(`ZodMap`,(e,t)=>{Fi.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Qu(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(Sl(...t)),e.nonempty=t=>e.check(Sl(1,t)),e.max=(...t)=>e.check(xl(...t)),e.size=(...t)=>e.check(Cl(...t))}),Em=i(`ZodSet`,(e,t)=>{Ii.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$u(e,t,n,r),e.min=(...t)=>e.check(Sl(...t)),e.nonempty=t=>e.check(Sl(1,t)),e.max=(...t)=>e.check(xl(...t)),e.size=(...t)=>e.check(Cl(...t))}),Dm=i(`ZodEnum`,(e,t)=>{Li.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Uu(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 Dm({...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 Dm({...t,checks:[],...E(r),entries:i})}}),Om=i(`ZodLiteral`,(e,t)=>{Ri.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Wu(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]}})}),km=i(`ZodFile`,(e,t)=>{zi.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qu(e,t,n,r),e.min=(t,n)=>e.check(Sl(t,n)),e.max=(t,n)=>e.check(xl(t,n)),e.mime=(t,n)=>e.check(Pl(Array.isArray(t)?t:[t],n))}),Am=i(`ZodTransform`,(e,t)=>{Bi.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Zu(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new u(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Me(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(Me(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)}}),jm=i(`ZodOptional`,(e,t)=>{Vi.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>md(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Mm=i(`ZodExactOptional`,(e,t)=>{Hi.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>md(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Nm=i(`ZodNullable`,(e,t)=>{Ui.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>od(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Pm=i(`ZodDefault`,(e,t)=>{Wi.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>cd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),Fm=i(`ZodPrefault`,(e,t)=>{Gi.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ld(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Im=i(`ZodNonOptional`,(e,t)=>{Ki.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Lm=i(`ZodSuccess`,(e,t)=>{qi.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ju(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Rm=i(`ZodCatch`,(e,t)=>{Ji.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ud(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),zm=i(`ZodNaN`,(e,t)=>{Yi.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Gu(e,t,n,r)}),Bm=i(`ZodPipe`,(e,t)=>{Xi.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>dd(e,t,n,r),e.in=t.in,e.out=t.out}),Vm=i(`ZodCodec`,(e,t)=>{Bm.init(e,t),Zi.init(e,t)}),Hm=i(`ZodPreprocess`,(e,t)=>{Bm.init(e,t),Qi.init(e,t)}),Um=i(`ZodReadonly`,(e,t)=>{$i.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Wm=i(`ZodTemplateLiteral`,(e,t)=>{ea.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ku(e,t,n,r)}),Gm=i(`ZodLazy`,(e,t)=>{ra.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>hd(e,t,n,r),e.unwrap=()=>e._zod.def.getter()}),Km=i(`ZodPromise`,(e,t)=>{na.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>pd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),qm=i(`ZodFunction`,(e,t)=>{ta.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Xu(e,t,n,r)}),Jm=i(`ZodCustom`,(e,t)=>{ia.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Yu(e,t,n,r)}),Ym=gu,Xm=_u,Zm=(...e)=>vu({Codec:Vm,Boolean:om,String:Ip},...e)}));function $m(e){a({customError:e})}function eh(){return a().customError}var th,nh,rh=t((()=>{Cd(),th={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`},nh||={}}));function ih(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 ah(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 oh(e,t){if(e.not!==void 0){if(typeof e.not==`object`&&Object.keys(e.not).length===0)return G.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 G.lazy(()=>{if(!t.refs.has(n))throw Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let r=sh(ah(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 G.null();if(n.length===0)return G.never();if(n.length===1)return G.literal(n[0]);if(n.every(e=>typeof e==`string`))return G.enum(n);let r=n.map(e=>G.literal(e));return r.length<2?r[0]:G.union([r[0],r[1],...r.slice(2)])}if(e.const!==void 0)return G.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(n=>oh({...e,type:n},t));return r.length===0?G.never():r.length===1?r[0]:G.union(r)}if(!n)return G.any();let r;switch(n){case`string`:{let t=G.string();if(e.format){let n=e.format;n===`email`?t=t.check(G.email()):n===`uri`||n===`uri-reference`?t=t.check(G.url()):n===`uuid`||n===`guid`?t=t.check(G.uuid()):n===`date-time`?t=t.check(G.iso.datetime()):n===`date`?t=t.check(G.iso.date()):n===`time`?t=t.check(G.iso.time()):n===`duration`?t=t.check(G.iso.duration()):n===`ipv4`?t=t.check(G.ipv4()):n===`ipv6`?t=t.check(G.ipv6()):n===`mac`?t=t.check(G.mac()):n===`cidr`?t=t.check(G.cidrv4()):n===`cidr-v6`?t=t.check(G.cidrv6()):n===`base64`?t=t.check(G.base64()):n===`base64url`?t=t.check(G.base64url()):n===`e164`?t=t.check(G.e164()):n===`jwt`?t=t.check(G.jwt()):n===`emoji`?t=t.check(G.emoji()):n===`nanoid`?t=t.check(G.nanoid()):n===`cuid`?t=t.check(G.cuid()):n===`cuid2`?t=t.check(G.cuid2()):n===`ulid`?t=t.check(G.ulid()):n===`xid`?t=t.check(G.xid()):n===`ksuid`&&(t=t.check(G.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`?G.number().int():G.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=G.boolean();break;case`null`:r=G.null();break;case`object`:{let n={},i=e.properties||{},a=new Set(e.required||[]);for(let[e,r]of Object.entries(i)){let i=sh(r,t);n[e]=a.has(e)?i:i.optional()}if(e.propertyNames){let i=sh(e.propertyNames,t),a=e.additionalProperties&&typeof e.additionalProperties==`object`?sh(e.additionalProperties,t):G.any();if(Object.keys(n).length===0){r=G.record(i,a);break}let o=G.object(n).passthrough(),s=G.looseRecord(i,a);r=G.intersection(o,s);break}if(e.patternProperties){let i=e.patternProperties,a=Object.keys(i),o=[];for(let e of a){let n=sh(i[e],t),r=G.string().regex(new RegExp(e));o.push(G.looseRecord(r,n))}let s=[];if(Object.keys(n).length>0&&s.push(G.object(n).passthrough()),s.push(...o),s.length===0)r=G.object({}).passthrough();else if(s.length===1)r=s[0];else{let e=G.intersection(s[0],s[1]);for(let t=2;t<s.length;t++)e=G.intersection(e,s[t]);r=e}break}let o=G.object(n);r=e.additionalProperties===!1?o.strict():typeof e.additionalProperties==`object`?o.catchall(sh(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=>sh(e,t)),o=i&&typeof i==`object`&&!Array.isArray(i)?sh(i,t):void 0;r=o?G.tuple(a).rest(o):G.tuple(a),typeof e.minItems==`number`&&(r=r.check(G.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check(G.maxLength(e.maxItems)))}else if(Array.isArray(i)){let n=i.map(e=>sh(e,t)),a=e.additionalItems&&typeof e.additionalItems==`object`?sh(e.additionalItems,t):void 0;r=a?G.tuple(n).rest(a):G.tuple(n),typeof e.minItems==`number`&&(r=r.check(G.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check(G.maxLength(e.maxItems)))}else if(i!==void 0){let n=sh(i,t),a=G.array(n);typeof e.minItems==`number`&&(a=a.min(e.minItems)),typeof e.maxItems==`number`&&(a=a.max(e.maxItems)),r=a}else r=G.array(G.any());break}default:throw Error(`Unsupported type: ${n}`)}return r}function sh(e,t){if(typeof e==`boolean`)return e?G.any():G.never();let n=oh(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=>sh(e,t)),a=G.union(i);n=r?G.intersection(n,a):a}if(e.oneOf&&Array.isArray(e.oneOf)){let i=e.oneOf.map(e=>sh(e,t)),a=G.xor(i);n=r?G.intersection(n,a):a}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=r?n:G.any();else{let i=r?n:sh(e.allOf[0],t),a=+!r;for(let n=a;n<e.allOf.length;n++)i=G.intersection(i,sh(e.allOf[n],t));n=i}e.nullable===!0&&t.version===`openapi-3.0`&&(n=G.nullable(n)),e.readOnly===!0&&(n=G.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))lh.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 ch(e,t){if(typeof e==`boolean`)return e?G.any():G.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:ih(n,t?.defaultTarget),defs:n.$defs||n.definitions||{},refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??fc};return sh(n,r)}var G,lh,uh=t((()=>{pc(),kd(),zd(),Qm(),G={...rf,...Od,iso:Ad},lh=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(`.`))})),dh=n({bigint:()=>hh,boolean:()=>mh,date:()=>gh,number:()=>ph,string:()=>fh});function fh(e){return hc(Ip,e)}function ph(e){return Wc(im,e)}function mh(e){return Zc(om,e)}function hh(e){return $c(sm,e)}function gh(e){return ul(gm,e)}var _h=t((()=>{Cd(),Qm()})),vh=n({$brand:()=>c,$input:()=>uc,$output:()=>lc,NEVER:()=>s,TimePrecision:()=>bu,ZodAny:()=>fm,ZodArray:()=>_m,ZodBase64:()=>$p,ZodBase64URL:()=>em,ZodBigInt:()=>sm,ZodBigIntFormat:()=>cm,ZodBoolean:()=>om,ZodCIDRv4:()=>Zp,ZodCIDRv6:()=>Qp,ZodCUID:()=>Up,ZodCUID2:()=>Wp,ZodCatch:()=>Rm,ZodCodec:()=>Vm,ZodCustom:()=>Jm,ZodCustomStringFormat:()=>rm,ZodDate:()=>gm,ZodDefault:()=>Pm,ZodDiscriminatedUnion:()=>xm,ZodE164:()=>tm,ZodEmail:()=>Lp,ZodEmoji:()=>Vp,ZodEnum:()=>Dm,ZodError:()=>Vd,ZodExactOptional:()=>Mm,ZodFile:()=>km,ZodFirstPartyTypeKind:()=>nh,ZodFunction:()=>qm,ZodGUID:()=>Rp,ZodIPv4:()=>Jp,ZodIPv6:()=>Xp,ZodISODate:()=>Id,ZodISODateTime:()=>Fd,ZodISODuration:()=>Rd,ZodISOTime:()=>Ld,ZodIntersection:()=>Sm,ZodIssueCode:()=>th,ZodJWT:()=>nm,ZodKSUID:()=>qp,ZodLazy:()=>Gm,ZodLiteral:()=>Om,ZodMAC:()=>Yp,ZodMap:()=>Tm,ZodNaN:()=>zm,ZodNanoID:()=>Hp,ZodNever:()=>mm,ZodNonOptional:()=>Im,ZodNull:()=>dm,ZodNullable:()=>Nm,ZodNumber:()=>im,ZodNumberFormat:()=>am,ZodObject:()=>vm,ZodOptional:()=>jm,ZodPipe:()=>Bm,ZodPrefault:()=>Fm,ZodPreprocess:()=>Hm,ZodPromise:()=>Km,ZodReadonly:()=>Um,ZodRealError:()=>Hd,ZodRecord:()=>wm,ZodSet:()=>Em,ZodString:()=>Ip,ZodStringFormat:()=>W,ZodSuccess:()=>Lm,ZodSymbol:()=>lm,ZodTemplateLiteral:()=>Wm,ZodTransform:()=>Am,ZodTuple:()=>Cm,ZodType:()=>U,ZodULID:()=>Gp,ZodURL:()=>Bp,ZodUUID:()=>zp,ZodUndefined:()=>um,ZodUnion:()=>ym,ZodUnknown:()=>pm,ZodVoid:()=>hm,ZodXID:()=>Kp,ZodXor:()=>bm,_ZodString:()=>Fp,_default:()=>pp,_function:()=>Ep,any:()=>Gf,array:()=>L,base64:()=>Ef,base64url:()=>Df,bigint:()=>zf,boolean:()=>F,catch:()=>_p,check:()=>Dp,cidrv4:()=>wf,cidrv6:()=>Tf,clone:()=>T,codec:()=>bp,coerce:()=>dh,config:()=>a,core:()=>Sd,cuid:()=>gf,cuid2:()=>_f,custom:()=>Op,date:()=>Jf,decode:()=>Yd,decodeAsync:()=>Zd,describe:()=>Ym,discriminatedUnion:()=>$f,e164:()=>Of,email:()=>of,emoji:()=>mf,encode:()=>Jd,encodeAsync:()=>Xd,endsWith:()=>Ml,enum:()=>V,exactOptional:()=>up,file:()=>sp,flattenError:()=>Ye,float32:()=>Ff,float64:()=>If,formatError:()=>Xe,fromJSONSchema:()=>ch,function:()=>Ep,getErrorMap:()=>eh,globalRegistry:()=>fc,gt:()=>ml,gte:()=>hl,guid:()=>sf,hash:()=>Nf,hex:()=>Mf,hostname:()=>jf,httpUrl:()=>pf,includes:()=>Al,instanceof:()=>jp,int:()=>Pf,int32:()=>Lf,int64:()=>Bf,intersection:()=>ep,invertCodec:()=>xp,ipv4:()=>xf,ipv6:()=>Cf,iso:()=>Ad,json:()=>Mp,jwt:()=>kf,keyof:()=>Yf,ksuid:()=>bf,lazy:()=>wp,length:()=>El,literal:()=>H,locales:()=>ac,looseObject:()=>Zf,looseRecord:()=>rp,lowercase:()=>Ol,lt:()=>fl,lte:()=>pl,mac:()=>Sf,map:()=>ip,maxLength:()=>wl,maxSize:()=>xl,meta:()=>Xm,mime:()=>Pl,minLength:()=>Tl,minSize:()=>Sl,multipleOf:()=>bl,nan:()=>vp,nanoid:()=>hf,nativeEnum:()=>op,negative:()=>_l,never:()=>Kf,nonnegative:()=>yl,nonoptional:()=>hp,nonpositive:()=>vl,normalize:()=>Il,null:()=>Wf,nullable:()=>dp,nullish:()=>fp,number:()=>P,object:()=>R,optional:()=>lp,overwrite:()=>Fl,parse:()=>Wd,parseAsync:()=>Gd,partialRecord:()=>np,pipe:()=>yp,positive:()=>gl,prefault:()=>mp,preprocess:()=>Np,prettifyError:()=>$e,promise:()=>Tp,property:()=>Nl,readonly:()=>Sp,record:()=>B,refine:()=>kp,regex:()=>Dl,regexes:()=>kt,registry:()=>sc,safeDecode:()=>$d,safeDecodeAsync:()=>tf,safeEncode:()=>Qd,safeEncodeAsync:()=>ef,safeParse:()=>Kd,safeParseAsync:()=>qd,set:()=>ap,setErrorMap:()=>$m,size:()=>Cl,slugify:()=>Bl,startsWith:()=>jl,strictObject:()=>Xf,string:()=>N,stringFormat:()=>Af,stringbool:()=>Zm,success:()=>gp,superRefine:()=>Ap,symbol:()=>Hf,templateLiteral:()=>Cp,toJSONSchema:()=>ku,toLowerCase:()=>Rl,toUpperCase:()=>zl,transform:()=>cp,treeifyError:()=>Ze,trim:()=>Ll,tuple:()=>tp,uint32:()=>Rf,uint64:()=>Vf,ulid:()=>vf,undefined:()=>Uf,union:()=>z,unknown:()=>I,uppercase:()=>kl,url:()=>ff,util:()=>p,uuid:()=>cf,uuidv4:()=>lf,uuidv6:()=>uf,uuidv7:()=>df,void:()=>qf,xid:()=>yf,xor:()=>Qf}),yh=t((()=>{Cd(),Qm(),kd(),Ud(),nf(),rh(),Ia(),_d(),uh(),oc(),zd(),_h(),a(Pa())})),bh,xh=t((()=>{yh(),yh(),bh=vh})),Sh=n({$brand:()=>c,$input:()=>uc,$output:()=>lc,NEVER:()=>s,TimePrecision:()=>bu,ZodAny:()=>fm,ZodArray:()=>_m,ZodBase64:()=>$p,ZodBase64URL:()=>em,ZodBigInt:()=>sm,ZodBigIntFormat:()=>cm,ZodBoolean:()=>om,ZodCIDRv4:()=>Zp,ZodCIDRv6:()=>Qp,ZodCUID:()=>Up,ZodCUID2:()=>Wp,ZodCatch:()=>Rm,ZodCodec:()=>Vm,ZodCustom:()=>Jm,ZodCustomStringFormat:()=>rm,ZodDate:()=>gm,ZodDefault:()=>Pm,ZodDiscriminatedUnion:()=>xm,ZodE164:()=>tm,ZodEmail:()=>Lp,ZodEmoji:()=>Vp,ZodEnum:()=>Dm,ZodError:()=>Vd,ZodExactOptional:()=>Mm,ZodFile:()=>km,ZodFirstPartyTypeKind:()=>nh,ZodFunction:()=>qm,ZodGUID:()=>Rp,ZodIPv4:()=>Jp,ZodIPv6:()=>Xp,ZodISODate:()=>Id,ZodISODateTime:()=>Fd,ZodISODuration:()=>Rd,ZodISOTime:()=>Ld,ZodIntersection:()=>Sm,ZodIssueCode:()=>th,ZodJWT:()=>nm,ZodKSUID:()=>qp,ZodLazy:()=>Gm,ZodLiteral:()=>Om,ZodMAC:()=>Yp,ZodMap:()=>Tm,ZodNaN:()=>zm,ZodNanoID:()=>Hp,ZodNever:()=>mm,ZodNonOptional:()=>Im,ZodNull:()=>dm,ZodNullable:()=>Nm,ZodNumber:()=>im,ZodNumberFormat:()=>am,ZodObject:()=>vm,ZodOptional:()=>jm,ZodPipe:()=>Bm,ZodPrefault:()=>Fm,ZodPreprocess:()=>Hm,ZodPromise:()=>Km,ZodReadonly:()=>Um,ZodRealError:()=>Hd,ZodRecord:()=>wm,ZodSet:()=>Em,ZodString:()=>Ip,ZodStringFormat:()=>W,ZodSuccess:()=>Lm,ZodSymbol:()=>lm,ZodTemplateLiteral:()=>Wm,ZodTransform:()=>Am,ZodTuple:()=>Cm,ZodType:()=>U,ZodULID:()=>Gp,ZodURL:()=>Bp,ZodUUID:()=>zp,ZodUndefined:()=>um,ZodUnion:()=>ym,ZodUnknown:()=>pm,ZodVoid:()=>hm,ZodXID:()=>Kp,ZodXor:()=>bm,_ZodString:()=>Fp,_default:()=>pp,_function:()=>Ep,any:()=>Gf,array:()=>L,base64:()=>Ef,base64url:()=>Df,bigint:()=>zf,boolean:()=>F,catch:()=>_p,check:()=>Dp,cidrv4:()=>wf,cidrv6:()=>Tf,clone:()=>T,codec:()=>bp,coerce:()=>dh,config:()=>a,core:()=>Sd,cuid:()=>gf,cuid2:()=>_f,custom:()=>Op,date:()=>Jf,decode:()=>Yd,decodeAsync:()=>Zd,default:()=>Ch,describe:()=>Ym,discriminatedUnion:()=>$f,e164:()=>Of,email:()=>of,emoji:()=>mf,encode:()=>Jd,encodeAsync:()=>Xd,endsWith:()=>Ml,enum:()=>V,exactOptional:()=>up,file:()=>sp,flattenError:()=>Ye,float32:()=>Ff,float64:()=>If,formatError:()=>Xe,fromJSONSchema:()=>ch,function:()=>Ep,getErrorMap:()=>eh,globalRegistry:()=>fc,gt:()=>ml,gte:()=>hl,guid:()=>sf,hash:()=>Nf,hex:()=>Mf,hostname:()=>jf,httpUrl:()=>pf,includes:()=>Al,instanceof:()=>jp,int:()=>Pf,int32:()=>Lf,int64:()=>Bf,intersection:()=>ep,invertCodec:()=>xp,ipv4:()=>xf,ipv6:()=>Cf,iso:()=>Ad,json:()=>Mp,jwt:()=>kf,keyof:()=>Yf,ksuid:()=>bf,lazy:()=>wp,length:()=>El,literal:()=>H,locales:()=>ac,looseObject:()=>Zf,looseRecord:()=>rp,lowercase:()=>Ol,lt:()=>fl,lte:()=>pl,mac:()=>Sf,map:()=>ip,maxLength:()=>wl,maxSize:()=>xl,meta:()=>Xm,mime:()=>Pl,minLength:()=>Tl,minSize:()=>Sl,multipleOf:()=>bl,nan:()=>vp,nanoid:()=>hf,nativeEnum:()=>op,negative:()=>_l,never:()=>Kf,nonnegative:()=>yl,nonoptional:()=>hp,nonpositive:()=>vl,normalize:()=>Il,null:()=>Wf,nullable:()=>dp,nullish:()=>fp,number:()=>P,object:()=>R,optional:()=>lp,overwrite:()=>Fl,parse:()=>Wd,parseAsync:()=>Gd,partialRecord:()=>np,pipe:()=>yp,positive:()=>gl,prefault:()=>mp,preprocess:()=>Np,prettifyError:()=>$e,promise:()=>Tp,property:()=>Nl,readonly:()=>Sp,record:()=>B,refine:()=>kp,regex:()=>Dl,regexes:()=>kt,registry:()=>sc,safeDecode:()=>$d,safeDecodeAsync:()=>tf,safeEncode:()=>Qd,safeEncodeAsync:()=>ef,safeParse:()=>Kd,safeParseAsync:()=>qd,set:()=>ap,setErrorMap:()=>$m,size:()=>Cl,slugify:()=>Bl,startsWith:()=>jl,strictObject:()=>Xf,string:()=>N,stringFormat:()=>Af,stringbool:()=>Zm,success:()=>gp,superRefine:()=>Ap,symbol:()=>Hf,templateLiteral:()=>Cp,toJSONSchema:()=>ku,toLowerCase:()=>Rl,toUpperCase:()=>zl,transform:()=>cp,treeifyError:()=>Ze,trim:()=>Ll,tuple:()=>tp,uint32:()=>Rf,uint64:()=>Vf,ulid:()=>vf,undefined:()=>Uf,union:()=>z,unknown:()=>I,uppercase:()=>kl,url:()=>ff,util:()=>p,uuid:()=>cf,uuidv4:()=>lf,uuidv6:()=>uf,uuidv7:()=>df,void:()=>qf,xid:()=>yf,xor:()=>Qf,z:()=>vh}),Ch,wh=t((()=>{xh(),xh(),Ch=bh}));wh();var Th=`io.modelcontextprotocol/related-task`,Eh=Op(e=>e!==null&&(typeof e==`object`||typeof e==`function`)),Dh=z([N(),P().int()]),Oh=N();Zf({ttl:P().optional(),pollInterval:P().optional()});var kh=R({ttl:P().optional()}),Ah=R({taskId:N()}),jh=Zf({progressToken:Dh.optional(),[Th]:Ah.optional()}),Mh=R({_meta:jh.optional()}),Nh=Mh.extend({task:kh.optional()}),Ph=e=>Nh.safeParse(e).success,Fh=R({method:N(),params:Mh.loose().optional()}),Ih=R({_meta:jh.optional()}),Lh=R({method:N(),params:Ih.loose().optional()}),Rh=Zf({_meta:jh.optional()}),zh=z([N(),P().int()]),Bh=R({jsonrpc:H(`2.0`),id:zh,...Fh.shape}).strict(),Vh=e=>Bh.safeParse(e).success,Hh=R({jsonrpc:H(`2.0`),...Lh.shape}).strict(),Uh=e=>Hh.safeParse(e).success,Wh=R({jsonrpc:H(`2.0`),id:zh,result:Rh}).strict(),Gh=e=>Wh.safeParse(e).success,K;(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`})(K||={});var Kh=R({jsonrpc:H(`2.0`),id:zh.optional(),error:R({code:P().int(),message:N(),data:I().optional()})}).strict(),qh=e=>Kh.safeParse(e).success,Jh=z([Bh,Hh,Wh,Kh]);z([Wh,Kh]);var Yh=Rh.strict(),Xh=Ih.extend({requestId:zh.optional(),reason:N().optional()}),Zh=Lh.extend({method:H(`notifications/cancelled`),params:Xh}),Qh=R({icons:L(R({src:N(),mimeType:N().optional(),sizes:L(N()).optional(),theme:V([`light`,`dark`]).optional()})).optional()}),$h=R({name:N(),title:N().optional()}),eg=$h.extend({...$h.shape,...Qh.shape,version:N(),websiteUrl:N().optional(),description:N().optional()}),tg=Np(e=>e&&typeof e==`object`&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,ep(R({form:ep(R({applyDefaults:F().optional()}),B(N(),I())).optional(),url:Eh.optional()}),B(N(),I()).optional())),ng=Zf({list:Eh.optional(),cancel:Eh.optional(),requests:Zf({sampling:Zf({createMessage:Eh.optional()}).optional(),elicitation:Zf({create:Eh.optional()}).optional()}).optional()}),rg=Zf({list:Eh.optional(),cancel:Eh.optional(),requests:Zf({tools:Zf({call:Eh.optional()}).optional()}).optional()}),ig=R({experimental:B(N(),Eh).optional(),sampling:R({context:Eh.optional(),tools:Eh.optional()}).optional(),elicitation:tg.optional(),roots:R({listChanged:F().optional()}).optional(),tasks:ng.optional(),extensions:B(N(),Eh).optional()}),ag=Mh.extend({protocolVersion:N(),capabilities:ig,clientInfo:eg}),og=Fh.extend({method:H(`initialize`),params:ag}),sg=R({experimental:B(N(),Eh).optional(),logging:Eh.optional(),completions:Eh.optional(),prompts:R({listChanged:F().optional()}).optional(),resources:R({subscribe:F().optional(),listChanged:F().optional()}).optional(),tools:R({listChanged:F().optional()}).optional(),tasks:rg.optional(),extensions:B(N(),Eh).optional()}),cg=Rh.extend({protocolVersion:N(),capabilities:sg,serverInfo:eg,instructions:N().optional()}),lg=Lh.extend({method:H(`notifications/initialized`),params:Ih.optional()}),ug=Fh.extend({method:H(`ping`),params:Mh.optional()}),dg=R({progress:P(),total:lp(P()),message:lp(N())}),fg=R({...Ih.shape,...dg.shape,progressToken:Dh}),pg=Lh.extend({method:H(`notifications/progress`),params:fg}),mg=Mh.extend({cursor:Oh.optional()}),hg=Fh.extend({params:mg.optional()}),gg=Rh.extend({nextCursor:Oh.optional()}),_g=V([`working`,`input_required`,`completed`,`failed`,`cancelled`]),vg=R({taskId:N(),status:_g,ttl:z([P(),Wf()]),createdAt:N(),lastUpdatedAt:N(),pollInterval:lp(P()),statusMessage:lp(N())}),yg=Rh.extend({task:vg}),bg=Ih.merge(vg),xg=Lh.extend({method:H(`notifications/tasks/status`),params:bg}),Sg=Fh.extend({method:H(`tasks/get`),params:Mh.extend({taskId:N()})}),Cg=Rh.merge(vg),wg=Fh.extend({method:H(`tasks/result`),params:Mh.extend({taskId:N()})});Rh.loose();var Tg=hg.extend({method:H(`tasks/list`)}),Eg=gg.extend({tasks:L(vg)}),Dg=Fh.extend({method:H(`tasks/cancel`),params:Mh.extend({taskId:N()})}),Og=Rh.merge(vg),kg=R({uri:N(),mimeType:lp(N()),_meta:B(N(),I()).optional()}),Ag=kg.extend({text:N()}),jg=N().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:`Invalid Base64 string`}),Mg=kg.extend({blob:jg}),Ng=V([`user`,`assistant`]),Pg=R({audience:L(Ng).optional(),priority:P().min(0).max(1).optional(),lastModified:jd({offset:!0}).optional()}),Fg=R({...$h.shape,...Qh.shape,uri:N(),description:lp(N()),mimeType:lp(N()),size:lp(P()),annotations:Pg.optional(),_meta:lp(Zf({}))}),Ig=R({...$h.shape,...Qh.shape,uriTemplate:N(),description:lp(N()),mimeType:lp(N()),annotations:Pg.optional(),_meta:lp(Zf({}))}),Lg=hg.extend({method:H(`resources/list`)}),Rg=gg.extend({resources:L(Fg)}),zg=hg.extend({method:H(`resources/templates/list`)}),Bg=gg.extend({resourceTemplates:L(Ig)}),Vg=Mh.extend({uri:N()}),Hg=Vg,Ug=Fh.extend({method:H(`resources/read`),params:Hg}),Wg=Rh.extend({contents:L(z([Ag,Mg]))}),Gg=Lh.extend({method:H(`notifications/resources/list_changed`),params:Ih.optional()}),Kg=Vg,qg=Fh.extend({method:H(`resources/subscribe`),params:Kg}),Jg=Vg,Yg=Fh.extend({method:H(`resources/unsubscribe`),params:Jg}),Xg=Ih.extend({uri:N()}),Zg=Lh.extend({method:H(`notifications/resources/updated`),params:Xg}),Qg=R({name:N(),description:lp(N()),required:lp(F())}),$g=R({...$h.shape,...Qh.shape,description:lp(N()),arguments:lp(L(Qg)),_meta:lp(Zf({}))}),e_=hg.extend({method:H(`prompts/list`)}),t_=gg.extend({prompts:L($g)}),n_=Mh.extend({name:N(),arguments:B(N(),N()).optional()}),r_=Fh.extend({method:H(`prompts/get`),params:n_}),i_=R({type:H(`text`),text:N(),annotations:Pg.optional(),_meta:B(N(),I()).optional()}),a_=R({type:H(`image`),data:jg,mimeType:N(),annotations:Pg.optional(),_meta:B(N(),I()).optional()}),o_=R({type:H(`audio`),data:jg,mimeType:N(),annotations:Pg.optional(),_meta:B(N(),I()).optional()}),s_=R({type:H(`tool_use`),name:N(),id:N(),input:B(N(),I()),_meta:B(N(),I()).optional()}),c_=R({type:H(`resource`),resource:z([Ag,Mg]),annotations:Pg.optional(),_meta:B(N(),I()).optional()}),l_=Fg.extend({type:H(`resource_link`)}),u_=z([i_,a_,o_,l_,c_]),d_=R({role:Ng,content:u_}),f_=Rh.extend({description:N().optional(),messages:L(d_)}),p_=Lh.extend({method:H(`notifications/prompts/list_changed`),params:Ih.optional()}),m_=R({title:N().optional(),readOnlyHint:F().optional(),destructiveHint:F().optional(),idempotentHint:F().optional(),openWorldHint:F().optional()}),h_=R({taskSupport:V([`required`,`optional`,`forbidden`]).optional()}),g_=R({...$h.shape,...Qh.shape,description:N().optional(),inputSchema:R({type:H(`object`),properties:B(N(),Eh).optional(),required:L(N()).optional()}).catchall(I()),outputSchema:R({type:H(`object`),properties:B(N(),Eh).optional(),required:L(N()).optional()}).catchall(I()).optional(),annotations:m_.optional(),execution:h_.optional(),_meta:B(N(),I()).optional()}),__=hg.extend({method:H(`tools/list`)}),v_=gg.extend({tools:L(g_)}),y_=Rh.extend({content:L(u_).default([]),structuredContent:B(N(),I()).optional(),isError:F().optional()});y_.or(Rh.extend({toolResult:I()}));var b_=Nh.extend({name:N(),arguments:B(N(),I()).optional()}),x_=Fh.extend({method:H(`tools/call`),params:b_}),S_=Lh.extend({method:H(`notifications/tools/list_changed`),params:Ih.optional()});R({autoRefresh:F().default(!0),debounceMs:P().int().nonnegative().default(300)});var C_=V([`debug`,`info`,`notice`,`warning`,`error`,`critical`,`alert`,`emergency`]),w_=Mh.extend({level:C_}),T_=Fh.extend({method:H(`logging/setLevel`),params:w_}),E_=Ih.extend({level:C_,logger:N().optional(),data:I()}),D_=Lh.extend({method:H(`notifications/message`),params:E_}),O_=R({hints:L(R({name:N().optional()})).optional(),costPriority:P().min(0).max(1).optional(),speedPriority:P().min(0).max(1).optional(),intelligencePriority:P().min(0).max(1).optional()}),k_=R({mode:V([`auto`,`required`,`none`]).optional()}),A_=R({type:H(`tool_result`),toolUseId:N().describe(`The unique identifier for the corresponding tool call.`),content:L(u_).default([]),structuredContent:R({}).loose().optional(),isError:F().optional(),_meta:B(N(),I()).optional()}),j_=$f(`type`,[i_,a_,o_]),M_=$f(`type`,[i_,a_,o_,s_,A_]),N_=R({role:Ng,content:z([M_,L(M_)]),_meta:B(N(),I()).optional()}),P_=Nh.extend({messages:L(N_),modelPreferences:O_.optional(),systemPrompt:N().optional(),includeContext:V([`none`,`thisServer`,`allServers`]).optional(),temperature:P().optional(),maxTokens:P().int(),stopSequences:L(N()).optional(),metadata:Eh.optional(),tools:L(g_).optional(),toolChoice:k_.optional()}),F_=Fh.extend({method:H(`sampling/createMessage`),params:P_}),I_=Rh.extend({model:N(),stopReason:lp(V([`endTurn`,`stopSequence`,`maxTokens`]).or(N())),role:Ng,content:j_}),L_=Rh.extend({model:N(),stopReason:lp(V([`endTurn`,`stopSequence`,`maxTokens`,`toolUse`]).or(N())),role:Ng,content:z([M_,L(M_)])}),R_=R({type:H(`boolean`),title:N().optional(),description:N().optional(),default:F().optional()}),z_=R({type:H(`string`),title:N().optional(),description:N().optional(),minLength:P().optional(),maxLength:P().optional(),format:V([`email`,`uri`,`date`,`date-time`]).optional(),default:N().optional()}),B_=R({type:V([`number`,`integer`]),title:N().optional(),description:N().optional(),minimum:P().optional(),maximum:P().optional(),default:P().optional()}),V_=R({type:H(`string`),title:N().optional(),description:N().optional(),enum:L(N()),default:N().optional()}),H_=R({type:H(`string`),title:N().optional(),description:N().optional(),oneOf:L(R({const:N(),title:N()})),default:N().optional()}),U_=z([z([R({type:H(`string`),title:N().optional(),description:N().optional(),enum:L(N()),enumNames:L(N()).optional(),default:N().optional()}),z([V_,H_]),z([R({type:H(`array`),title:N().optional(),description:N().optional(),minItems:P().optional(),maxItems:P().optional(),items:R({type:H(`string`),enum:L(N())}),default:L(N()).optional()}),R({type:H(`array`),title:N().optional(),description:N().optional(),minItems:P().optional(),maxItems:P().optional(),items:R({anyOf:L(R({const:N(),title:N()}))}),default:L(N()).optional()})])]),R_,z_,B_]),W_=z([Nh.extend({mode:H(`form`).optional(),message:N(),requestedSchema:R({type:H(`object`),properties:B(N(),U_),required:L(N()).optional()})}),Nh.extend({mode:H(`url`),message:N(),elicitationId:N(),url:N().url()})]),G_=Fh.extend({method:H(`elicitation/create`),params:W_}),K_=Ih.extend({elicitationId:N()}),q_=Lh.extend({method:H(`notifications/elicitation/complete`),params:K_}),J_=Rh.extend({action:V([`accept`,`decline`,`cancel`]),content:Np(e=>e===null?void 0:e,B(N(),z([N(),P(),F(),L(N())])).optional())}),Y_=R({type:H(`ref/resource`),uri:N()}),X_=R({type:H(`ref/prompt`),name:N()}),Z_=Mh.extend({ref:z([X_,Y_]),argument:R({name:N(),value:N()}),context:R({arguments:B(N(),N()).optional()}).optional()}),Q_=Fh.extend({method:H(`completion/complete`),params:Z_}),$_=Rh.extend({completion:Zf({values:L(N()).max(100),total:lp(P().int()),hasMore:lp(F())})}),ev=R({uri:N().startsWith(`file://`),name:N().optional(),_meta:B(N(),I()).optional()}),tv=Fh.extend({method:H(`roots/list`),params:Mh.optional()}),nv=Rh.extend({roots:L(ev)}),rv=Lh.extend({method:H(`notifications/roots/list_changed`),params:Ih.optional()});z([ug,og,Q_,T_,r_,e_,Lg,zg,Ug,qg,Yg,x_,__,Sg,wg,Tg,Dg]),z([Zh,pg,lg,rv,xg]),z([Yh,I_,L_,J_,nv,Cg,Eg,yg]),z([ug,F_,G_,tv,Sg,wg,Tg,Dg]),z([Zh,pg,D_,Zg,Gg,S_,p_,xg,q_]),z([Yh,cg,$_,f_,t_,Rg,Bg,Wg,y_,v_,Cg,Eg,yg]);var q=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===K.UrlElicitationRequired&&r){let e=r;if(e.elicitations)return new iv(e.elicitations,n)}return new e(t,n,r)}},iv=class extends q{constructor(e,t=`URL elicitation${e.length>1?`s`:``} required`){super(K.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}};function av(e){return e===`completed`||e===`failed`||e===`cancelled`}function ov(e){let t=Ed(e)?.method;if(!t)throw Error(`Schema is missing a method literal`);let n=Dd(t);if(typeof n!=`string`)throw Error(`Schema method literal must be a string`);return n}function sv(e,t){let n=Td(e,t);if(!n.success)throw n.error;return n.data}var cv=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(Zh,e=>{this._oncancel(e)}),this.setNotificationHandler(pg,e=>{this._onprogress(e)}),this.setRequestHandler(ug,e=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(Sg,async(e,t)=>{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new q(K.InvalidParams,`Failed to retrieve task: Task not found`);return{...n}}),this.setRequestHandler(wg,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 q(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 q(K.InvalidParams,`Task not found: ${r}`);if(!av(i.status))return await this._waitForTaskUpdate(r,t.signal),await n();if(av(i.status)){let e=await this._taskStore.getTaskResult(r,t.sessionId);return this._clearTaskQueue(r),{...e,_meta:{...e._meta,[Th]:{taskId:r}}}}return await n()};return await n()}),this.setRequestHandler(Tg,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 q(K.InvalidParams,`Failed to list tasks: ${e instanceof Error?e.message:String(e)}`)}}),this.setRequestHandler(Dg,async(e,t)=>{try{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new q(K.InvalidParams,`Task not found: ${e.params.taskId}`);if(av(n.status))throw new q(K.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 q(K.InvalidParams,`Task not found after cancellation: ${e.params.taskId}`);return{_meta:{},...r}}catch(e){throw e instanceof q?e:new q(K.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),q.fromError(K.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),Gh(e)||qh(e)?this._onresponse(e):Vh(e)?this._onrequest(e,t):Uh(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=q.fromError(K.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?.[Th]?.taskId;if(n===void 0){let t={jsonrpc:`2.0`,id:e.id,error:{code:K.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=Ph(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 q(K.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:K.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),Gh(e)?n(e):n(new q(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(Gh(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),Gh(e)?r(e):r(q.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 q?e:new q(K.InternalError,String(e))}}return}let i;try{let r=await this.request(e,yg,n);if(r.task)i=r.task.taskId,yield{type:`taskCreated`,task:r.task};else throw new q(K.InternalError,`Task creation did not return a task`);for(;;){let e=await this.getTask({taskId:i},n);if(yield{type:`taskStatus`,task:e},av(e.status)){e.status===`completed`?yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)}:e.status===`failed`?yield{type:`error`,error:new q(K.InternalError,`Task ${i} failed`)}:e.status===`cancelled`&&(yield{type:`error`,error:new q(K.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 q?e:new q(K.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||{},[Th]: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 q?e:new q(K.RequestTimeout,String(e)))};this._responseHandlers.set(d,e=>{if(!n?.signal?.aborted){if(e instanceof Error)return l(e);try{let n=Td(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(q.fromError(K.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},Cg,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},Eg,t)}async cancelTask(e,t){return this.request({method:`tasks/cancel`,params:e},Og,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||{},[Th]: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||{},[Th]: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||{},[Th]:t.relatedTask}}}),await this._transport.send(r,t)}setRequestHandler(e,t){let n=ov(e);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(n,r)=>{let i=sv(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=ov(e);this._notificationHandlers.set(n,n=>{let r=sv(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`&&Vh(t.message)){let n=t.message.id,r=this._requestResolvers.get(n);r?(r(new q(K.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 q(K.InvalidRequest,`Request cancelled`));return}let i=setTimeout(e,n);t.addEventListener(`abort`,()=>{clearTimeout(i),r(new q(K.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 q(K.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=xg.parse({method:`notifications/tasks/status`,params:a});await this.notification(t),av(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 q(K.InvalidParams,`Task "${e}" not found - it may have been cleaned up`);if(av(a.status))throw new q(K.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=xg.parse({method:`notifications/tasks/status`,params:o});await this.notification(t),av(o.status)&&this._cleanupTaskProgressHandler(e)}},listTasks:e=>n.listTasks(e,t)}}};function lv(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function uv(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];lv(a)&&lv(i)?n[r]={...a,...i}:n[r]=i}return n}var dv=`modulepreload`,fv=function(e){return`/`+e},pv={},mv=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=fv(t,n),t in pv)return;pv[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:dv,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};wh(),(e=>typeof r<`u`?r:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof r<`u`?r:e)[t]}):e)(function(e){if(typeof r<`u`)return r.apply(this,arguments);throw Error(`Dynamic require of "`+e+`" is not supported`)});var hv=class extends cv{_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=Jh.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=z([H(`light`),H(`dark`)]).describe(`Color theme preference for the host environment.`),yv=z([H(`inline`),H(`fullscreen`),H(`pip`)]).describe(`Display mode for UI presentation.`),bv=B(z([H(`--color-background-primary`),H(`--color-background-secondary`),H(`--color-background-tertiary`),H(`--color-background-inverse`),H(`--color-background-ghost`),H(`--color-background-info`),H(`--color-background-danger`),H(`--color-background-success`),H(`--color-background-warning`),H(`--color-background-disabled`),H(`--color-text-primary`),H(`--color-text-secondary`),H(`--color-text-tertiary`),H(`--color-text-inverse`),H(`--color-text-ghost`),H(`--color-text-info`),H(`--color-text-danger`),H(`--color-text-success`),H(`--color-text-warning`),H(`--color-text-disabled`),H(`--color-border-primary`),H(`--color-border-secondary`),H(`--color-border-tertiary`),H(`--color-border-inverse`),H(`--color-border-ghost`),H(`--color-border-info`),H(`--color-border-danger`),H(`--color-border-success`),H(`--color-border-warning`),H(`--color-border-disabled`),H(`--color-ring-primary`),H(`--color-ring-secondary`),H(`--color-ring-inverse`),H(`--color-ring-info`),H(`--color-ring-danger`),H(`--color-ring-success`),H(`--color-ring-warning`),H(`--font-sans`),H(`--font-mono`),H(`--font-weight-normal`),H(`--font-weight-medium`),H(`--font-weight-semibold`),H(`--font-weight-bold`),H(`--font-text-xs-size`),H(`--font-text-sm-size`),H(`--font-text-md-size`),H(`--font-text-lg-size`),H(`--font-heading-xs-size`),H(`--font-heading-sm-size`),H(`--font-heading-md-size`),H(`--font-heading-lg-size`),H(`--font-heading-xl-size`),H(`--font-heading-2xl-size`),H(`--font-heading-3xl-size`),H(`--font-text-xs-line-height`),H(`--font-text-sm-line-height`),H(`--font-text-md-line-height`),H(`--font-text-lg-line-height`),H(`--font-heading-xs-line-height`),H(`--font-heading-sm-line-height`),H(`--font-heading-md-line-height`),H(`--font-heading-lg-line-height`),H(`--font-heading-xl-line-height`),H(`--font-heading-2xl-line-height`),H(`--font-heading-3xl-line-height`),H(`--border-radius-xs`),H(`--border-radius-sm`),H(`--border-radius-md`),H(`--border-radius-lg`),H(`--border-radius-xl`),H(`--border-radius-full`),H(`--border-width-regular`),H(`--shadow-hairline`),H(`--shadow-sm`),H(`--shadow-md`),H(`--shadow-lg`)]).describe(`CSS variable keys available to MCP apps for theming.`).describe(`Style variables for theming MCP apps.
|
|
1040
|
+
|
|
1041
|
+
Individual style keys are optional - hosts may provide any subset of these values.
|
|
1042
|
+
Values are strings containing CSS values (colors, sizes, font stacks, etc.).
|
|
1043
|
+
|
|
1044
|
+
Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
|
|
1045
|
+
for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),z([N(),Uf()]).describe(`Style variables for theming MCP apps.
|
|
1046
|
+
|
|
1047
|
+
Individual style keys are optional - hosts may provide any subset of these values.
|
|
1048
|
+
Values are strings containing CSS values (colors, sizes, font stacks, etc.).
|
|
1049
|
+
|
|
1050
|
+
Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
|
|
1051
|
+
for compatibility with Zod schema generation. Both are functionally equivalent for validation.`)).describe(`Style variables for theming MCP apps.
|
|
1052
|
+
|
|
1053
|
+
Individual style keys are optional - hosts may provide any subset of these values.
|
|
1054
|
+
Values are strings containing CSS values (colors, sizes, font stacks, etc.).
|
|
1055
|
+
|
|
1056
|
+
Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
|
|
1057
|
+
for compatibility with Zod schema generation. Both are functionally equivalent for validation.`);R({method:H(`ui/open-link`),params:R({url:N().describe(`URL to open in the host's browser`)})});var xv=R({isError:F().optional().describe(`True if the host failed to open the URL (e.g., due to security policy).`)}).passthrough(),Sv=R({isError:F().optional().describe(`True if the download failed (e.g., user cancelled or host denied).`)}).passthrough(),Cv=R({isError:F().optional().describe(`True if the host rejected or failed to deliver the message.`)}).passthrough();R({method:H(`ui/notifications/sandbox-proxy-ready`),params:R({})});var wv=R({connectDomains:L(N()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket).
|
|
1058
|
+
|
|
1059
|
+
- Maps to CSP \`connect-src\` directive
|
|
1060
|
+
- Empty or omitted → no network connections (secure default)`),resourceDomains:L(N()).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:L(N()).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:L(N()).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=R({camera:R({}).optional().describe(`Request camera access.
|
|
1061
|
+
|
|
1062
|
+
Maps to Permission Policy \`camera\` feature.`),microphone:R({}).optional().describe(`Request microphone access.
|
|
1063
|
+
|
|
1064
|
+
Maps to Permission Policy \`microphone\` feature.`),geolocation:R({}).optional().describe(`Request geolocation access.
|
|
1065
|
+
|
|
1066
|
+
Maps to Permission Policy \`geolocation\` feature.`),clipboardWrite:R({}).optional().describe(`Request clipboard write access.
|
|
1067
|
+
|
|
1068
|
+
Maps to Permission Policy \`clipboard-write\` feature.`)});R({method:H(`ui/notifications/size-changed`),params:R({width:P().optional().describe(`New width in pixels.`),height:P().optional().describe(`New height in pixels.`)})});var Ev=R({method:H(`ui/notifications/tool-input`),params:R({arguments:B(N(),I().describe(`Complete tool call arguments as key-value pairs.`)).optional().describe(`Complete tool call arguments as key-value pairs.`)})}),Dv=R({method:H(`ui/notifications/tool-input-partial`),params:R({arguments:B(N(),I().describe(`Partial tool call arguments (incomplete, may change).`)).optional().describe(`Partial tool call arguments (incomplete, may change).`)})}),Ov=R({method:H(`ui/notifications/tool-cancelled`),params:R({reason:N().optional().describe(`Optional reason for the cancellation (e.g., "user action", "timeout").`)})}),kv=R({fonts:N().optional()}),Av=R({variables:bv.optional().describe(`CSS variables for theming the app.`),css:kv.optional().describe(`CSS blocks that apps can inject.`)}),jv=R({method:H(`ui/resource-teardown`),params:R({})});B(N(),I());var Mv=R({text:R({}).optional().describe(`Host supports text content blocks.`),image:R({}).optional().describe(`Host supports image content blocks.`),audio:R({}).optional().describe(`Host supports audio content blocks.`),resource:R({}).optional().describe(`Host supports resource content blocks.`),resourceLink:R({}).optional().describe(`Host supports resource link content blocks.`),structuredContent:R({}).optional().describe(`Host supports structured content.`)});R({method:H(`ui/notifications/request-teardown`),params:R({}).optional()});var Nv=R({experimental:B(N(),B(N(),Gf()).describe(`Experimental features keyed by identifier.`)).optional().describe(`Experimental features keyed by identifier.`),openLinks:R({}).optional().describe(`Host supports opening external URLs.`),downloadFile:R({}).optional().describe(`Host supports file downloads via ui/download-file.`),serverTools:R({listChanged:F().optional().describe(`Host supports tools/list_changed notifications.`)}).optional().describe(`Host can proxy tool calls to the MCP server.`),serverResources:R({listChanged:F().optional().describe(`Host supports resources/list_changed notifications.`)}).optional().describe(`Host can proxy resource reads to the MCP server.`),logging:R({}).optional().describe(`Host accepts log messages.`),sandbox:R({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:R({tools:R({}).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=R({experimental:B(N(),B(N(),Gf()).describe(`Experimental features keyed by identifier.`)).optional().describe(`Experimental features keyed by identifier.`),tools:R({listChanged:F().optional().describe(`App supports tools/list_changed notifications.`)}).optional().describe(`App exposes MCP-style tools that the host can call.`),availableDisplayModes:L(yv).optional().describe(`Display modes the app supports.`)});R({method:H(`ui/notifications/initialized`),params:R({}).optional()}),R({csp:wv.optional().describe(`Content Security Policy configuration for UI resources.`),permissions:Tv.optional().describe(`Sandbox permissions requested by the UI resource.`),domain:N().optional().describe(`Dedicated origin for view sandbox.
|
|
1069
|
+
|
|
1070
|
+
Useful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists.
|
|
1071
|
+
|
|
1072
|
+
**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:
|
|
1073
|
+
- Hash-based subdomains (e.g., \`{hash}.claudemcpcontent.com\`)
|
|
1074
|
+
- URL-derived subdomains (e.g., \`www-example-com.oaiusercontent.com\`)
|
|
1075
|
+
|
|
1076
|
+
If omitted, host uses default sandbox origin (typically per-conversation).`),prefersBorder:F().optional().describe(`Visual boundary preference - true if view prefers a visible border.
|
|
1077
|
+
|
|
1078
|
+
Boolean 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.
|
|
1079
|
+
|
|
1080
|
+
- \`true\`: request visible border + background
|
|
1081
|
+
- \`false\`: request no visible border + background
|
|
1082
|
+
- omitted: host decides border`)}),R({method:H(`ui/request-display-mode`),params:R({mode:yv.describe(`The display mode being requested.`)})});var Fv=R({mode:yv.describe(`The display mode that was actually set. May differ from requested if not supported.`)}).passthrough(),Iv=z([H(`model`),H(`app`)]).describe(`Tool visibility scope - who can access the tool.`);R({resourceUri:N().optional(),visibility:L(Iv).optional().describe(`Who can access this tool. Default: ["model", "app"]
|
|
1083
|
+
- "model": Tool visible to and callable by the agent
|
|
1084
|
+
- "app": Tool callable by the app from this server only`),csp:Kf().optional(),permissions:Kf().optional()}),R({mimeTypes:L(N()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')}),R({method:H(`ui/download-file`),params:R({contents:L(z([c_,l_])).describe(`Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.`)})}),R({method:H(`ui/message`),params:R({role:H(`user`).describe(`Message role, currently only "user" is supported.`),content:L(u_).describe(`Message content blocks (text, image, etc.).`)})}),R({method:H(`ui/notifications/sandbox-resource-ready`),params:R({html:N().describe(`HTML content to load into the inner iframe.`),sandbox:N().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=R({method:H(`ui/notifications/tool-result`),params:y_.describe(`Standard MCP tool execution result.`)}),Rv=R({toolInfo:R({id:zh.optional().describe(`JSON-RPC id of the tools/call request.`),tool:g_.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:L(yv).optional().describe(`Display modes the host supports.`),containerDimensions:z([R({height:P().describe(`Fixed container height in pixels.`)}),R({maxHeight:z([P(),Uf()]).optional().describe(`Maximum container height in pixels.`)})]).and(z([R({width:P().describe(`Fixed container width in pixels.`)}),R({maxWidth:z([P(),Uf()]).optional().describe(`Maximum container width in pixels.`)})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other
|
|
1085
|
+
container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:N().optional().describe(`User's language and region preference in BCP 47 format.`),timeZone:N().optional().describe(`User's timezone in IANA format.`),userAgent:N().optional().describe(`Host application identifier.`),platform:z([H(`web`),H(`desktop`),H(`mobile`)]).optional().describe(`Platform type for responsive design decisions.`),deviceCapabilities:R({touch:F().optional().describe(`Whether the device supports touch input.`),hover:F().optional().describe(`Whether the device supports hover interactions.`)}).optional().describe(`Device input capabilities.`),safeAreaInsets:R({top:P().describe(`Top safe area inset in pixels.`),right:P().describe(`Right safe area inset in pixels.`),bottom:P().describe(`Bottom safe area inset in pixels.`),left:P().describe(`Left safe area inset in pixels.`)}).optional().describe(`Mobile safe area boundaries in pixels.`)}).passthrough(),zv=R({method:H(`ui/notifications/host-context-changed`),params:Rv.describe(`Partial context update containing only changed fields.`)});R({method:H(`ui/update-model-context`),params:R({content:L(u_).optional().describe(`Context content blocks (text, image, etc.).`),structuredContent:B(N(),I().describe(`Structured content for machine-readable context data.`)).optional().describe(`Structured content for machine-readable context data.`)})}),R({method:H(`ui/initialize`),params:R({appInfo:eg.describe(`App identification (name and version).`),appCapabilities:Pv.describe(`Features and capabilities this app provides.`),protocolVersion:N().describe(`Protocol version this app supports.`)})});var Bv=R({protocolVersion:N().describe(`Negotiated protocol version string (e.g., "2025-11-21").`),hostInfo:eg.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 mv(async()=>{let{z:e}=await Promise.resolve().then(()=>(wh(),Sh));return{z:e}},void 0);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}var Wv=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||a({jitless:!0}),this.setRequestHandler(ug,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=uv(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(x_,(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(__,(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},y_,{onprogress:()=>{},resetTimeoutOnProgress:!0,...t})}async readServerResource(e,t){return this._assertInitialized(`readServerResource`),await this.request({method:`resources/read`,params:e},Wg,t)}async listServerResources(e,t){return this._assertInitialized(`listServerResources`),await this.request({method:`resources/list`,params:e},Rg,t)}async createSamplingMessage(e,t){this._assertInitialized(`createSamplingMessage`);let n=e.tools?L_:I_;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},Yh,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 Gv(e){let t=new Date(e);return Number.isFinite(t.getTime())?`${t.toISOString().slice(0,19).replace(`T`,` `)} UTC`:typeof e==`number`?`${e} milliseconds since 1970-01-01T00:00:00Z`:e}function J(e,t,n){let r=document.createElement(e);return t&&(r.className=t),n!==void 0&&(r.textContent=n),r}function Kv(e,t,n=`primary`){let r=document.createElement(`button`);return r.type=`button`,r.className=n===`primary`?`ui-btn ui-btn--primary`:n===`danger`?`ui-btn ui-btn--danger`:`ui-btn`,r.textContent=e,r.addEventListener(`click`,t),r}function qv(...e){let t=J(`div`,`ui-btn-row`);return t.append(...e),t}function Jv(e){let t=qv(e);return t.classList.add(`ui-btn-row--end`),t}function Yv(e){let t=document.createElement(`input`);return t.className=`ui-input`,t.type=e.type??`text`,e.value!==void 0&&(t.value=e.value),e.placeholder!==void 0&&(t.placeholder=e.placeholder),e.id&&(t.id=e.id),e.name&&(t.name=e.name),t.autocomplete=`off`,t}function Xv(e,t){let n=document.createElement(`label`);return n.className=`ui-field`,n.append(J(`span`,void 0,e),t),n}function Zv(e){let t=J(`section`,`ui-section`);return e&&t.append(J(`h2`,`ui-section-title`,e)),t}function Y(e,t){let n=J(`div`,`ui-row`);n.append(J(`span`,`ui-row-label`,e));let r=J(`span`,`ui-row-value`);return typeof t==`string`?r.textContent=t:r.append(t),n.append(r),n}function Qv(e,t=!1){let n=document.createElement(`details`);n.className=`ui-accordion`,n.open=t;let r=document.createElement(`summary`);r.className=`ui-accordion-summary`,r.append(J(`span`,void 0,e));let i=J(`div`,`ui-accordion-body`);return n.append(r,i),{details:n,body:i}}function $v(e){return J(`span`,`ui-mono`,e)}function ey(e){let t=J(`time`,void 0,Gv(e));return t.dateTime=e,t.title=e,t.setAttribute(`aria-label`,e),t}var ty=/^(?!.*(^(?!@)|[-.@])($|[-.@]))(?:[a-z0-9-]{0,63}(?:\.[a-z0-9-]{0,63})*)?@[a-z0-9-]{0,63}$/i,ny=/^(?!.*(^|[-.])($|[-.]))(?:[a-z0-9-]{0,63}\.)+sui$/i,ry=235;function iy(e){return e.length>ry?!1:e.includes(`@`)?ty.test(e):ny.test(e)}function ay(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name===`Uint8Array`&&`BYTES_PER_ELEMENT`in e&&e.BYTES_PER_ELEMENT===1}function oy(e,t){return Array.isArray(t)?t.length===0?!0:e?t.every(e=>typeof e==`string`):t.every(e=>Number.isSafeInteger(e)):!1}function sy(e){if(typeof e!=`function`)throw TypeError(`function expected`);return!0}function cy(e,t){if(typeof t!=`string`)throw TypeError(`${e}: string expected`);return!0}function ly(e){if(typeof e!=`number`)throw TypeError(`number expected, got ${typeof e}`);if(!Number.isSafeInteger(e))throw RangeError(`invalid integer: ${e}`)}function uy(e){if(!Array.isArray(e))throw TypeError(`array expected`)}function dy(e,t){if(!oy(!0,t))throw TypeError(`${e}: array of strings expected`)}function fy(e,t){if(!oy(!1,t))throw TypeError(`${e}: array of numbers expected`)}function py(...e){let t=e=>e,n=(e,t)=>n=>e(t(n));return{encode:e.map(e=>e.encode).reduceRight(n,t),decode:e.map(e=>e.decode).reduce(n,t)}}function my(e){let t=typeof e==`string`?e.split(``):e,n=t.length;dy(`alphabet`,t);let r=new Map(t.map((e,t)=>[e,t]));return{encode:r=>(uy(r),r.map(r=>{if(!Number.isSafeInteger(r)||r<0||r>=n)throw Error(`alphabet.encode: digit index outside alphabet "${r}". Allowed: ${e}`);return t[r]})),decode:t=>(uy(t),t.map(t=>{cy(`alphabet.decode`,t);let n=r.get(t);if(n===void 0)throw Error(`Unknown letter: "${t}". Allowed: ${e}`);return n}))}}function hy(e=``){return cy(`join`,e),{encode:t=>(dy(`join.decode`,t),t.join(e)),decode:t=>(cy(`join.decode`,t),t.split(e))}}function gy(e,t=`=`){return ly(e),cy(`padding`,t),{encode(n){for(dy(`padding.encode`,n);n.length*e%8;)n.push(t);return n},decode(n){dy(`padding.decode`,n);let r=n.length;if(r*e%8)throw Error(`padding: invalid, string should have whole number of bytes`);for(;r>0&&n[r-1]===t;r--)if((r-1)*e%8==0)throw Error(`padding: invalid, string has too much padding`);return n.slice(0,r)}}}function _y(e){return sy(e),{encode:e=>e,decode:t=>e(t)}}function vy(e,t,n){if(t<2)throw RangeError(`convertRadix: invalid from=${t}, base cannot be less than 2`);if(n<2)throw RangeError(`convertRadix: invalid to=${n}, base cannot be less than 2`);if(uy(e),!e.length)return[];let r=0,i=[],a=Array.from(e,e=>{if(ly(e),e<0||e>=t)throw Error(`invalid integer: ${e}`);return e}),o=a.length;for(;;){let e=0,s=!0;for(let i=r;i<o;i++){let o=a[i],c=t*e,l=c+o;if(!Number.isSafeInteger(l)||c/t!==e||l-o!==c)throw Error(`convertRadix: carry overflow`);let u=l/n;e=l%n;let d=Math.floor(u);if(a[i]=d,!Number.isSafeInteger(d)||d*n+e!==l)throw Error(`convertRadix: carry overflow`);if(s)d?s=!1:r=i;else continue}if(i.push(e),s)break}for(let t=0;t<e.length-1&&e[t]===0;t++)i.push(0);return i.reverse()}var yy=(e,t)=>t===0?e:yy(t,e%t),by=(e,t)=>e+(t-yy(e,t)),xy=(()=>{let e=[];for(let t=0;t<40;t++)e.push(2**t);return e})();function Sy(e,t,n,r){if(uy(e),t<=0||t>32)throw RangeError(`convertRadix2: wrong from=${t}`);if(n<=0||n>32)throw RangeError(`convertRadix2: wrong to=${n}`);if(by(t,n)>32)throw Error(`convertRadix2: carry overflow from=${t} to=${n} carryBits=${by(t,n)}`);let i=0,a=0,o=xy[t],s=xy[n]-1,c=[];for(let r of e){if(ly(r),r>=o)throw Error(`convertRadix2: invalid data word=${r} from=${t}`);if(i=i<<t|r,a+t>32)throw Error(`convertRadix2: carry overflow pos=${a} from=${t}`);for(a+=t;a>=n;a-=n)c.push((i>>a-n&s)>>>0);let e=xy[a];if(e===void 0)throw Error(`invalid carry`);i&=e-1}if(i=i<<n-a&s,!r&&a>=t)throw Error(`Excess padding`);if(!r&&i>0)throw Error(`Non-zero padding: ${i}`);return r&&a>0&&c.push(i>>>0),c}function Cy(e){return ly(e),{encode:t=>{if(!ay(t))throw TypeError(`radix.encode input should be Uint8Array`);return vy(Array.from(t),256,e)},decode:t=>(fy(`radix.decode`,t),Uint8Array.from(vy(t,e,256)))}}function wy(e,t=!1){if(ly(e),e<=0||e>32)throw RangeError(`radix2: bits should be in (0..32]`);if(by(8,e)>32||by(e,8)>32)throw RangeError(`radix2: carry overflow`);return{encode:n=>{if(!ay(n))throw TypeError(`radix2.encode input should be Uint8Array`);return Sy(Array.from(n),8,e,!t)},decode:n=>(fy(`radix2.decode`,n),Uint8Array.from(Sy(n,e,8,t)))}}function Ty(e){return sy(e),function(...t){try{return e.apply(null,t)}catch{}}}function Ey(e,t){if(ly(e),e<=0)throw RangeError(`checksum length must be positive: ${e}`);sy(t);let n=t;return{encode(t){if(!ay(t))throw TypeError(`checksum.encode: input should be Uint8Array`);let r=n(t).slice(0,e),i=new Uint8Array(t.length+e);return i.set(t),i.set(r,t.length),i},decode(t){if(!ay(t))throw TypeError(`checksum.decode: input should be Uint8Array`);let r=t.slice(0,-e),i=t.slice(-e),a=n(r).slice(0,e);for(let t=0;t<e;t++)if(a[t]!==i[t])throw Error(`Invalid checksum`);return r}}}var Dy=Object.freeze({alphabet:my,chain:py,checksum:Ey,convertRadix:vy,convertRadix2:Sy,radix:Cy,radix2:wy,join:hy,padding:gy});py(wy(4),my(`0123456789ABCDEF`),hy(``)),py(wy(5),my(`ABCDEFGHIJKLMNOPQRSTUVWXYZ234567`),gy(5),hy(``)),py(wy(5),my(`ABCDEFGHIJKLMNOPQRSTUVWXYZ234567`),hy(``)),py(wy(5),my(`0123456789ABCDEFGHIJKLMNOPQRSTUV`),gy(5),hy(``)),py(wy(5),my(`0123456789ABCDEFGHIJKLMNOPQRSTUV`),hy(``)),py(wy(5),my(`0123456789ABCDEFGHJKMNPQRSTVWXYZ`),hy(``),_y(e=>e.toUpperCase().replace(/O/g,`0`).replace(/[IL]/g,`1`)));var Oy=typeof Uint8Array.from([]).toBase64==`function`&&typeof Uint8Array.fromBase64==`function`;Oy||py(wy(6),my(`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`),gy(6),hy(``)),py(wy(6),my(`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`),hy(``)),Oy||py(wy(6),my(`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`),gy(6),hy(``)),py(wy(6),my(`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`),hy(``));var ky=Object.freeze((e=>py(Cy(58),my(e),hy(``)))(`123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz`)),Ay=py(my(`qpzry9x8gf2tvdw0s3jn54khce6mua7l`),hy(``)),jy=[996825010,642813549,513874426,1027748829,705979059];function My(e){let t=e>>25,n=(e&33554431)<<5;for(let e=0;e<jy.length;e++)(t>>e&1)==1&&(n^=jy[e]);return n}function Ny(e,t,n=1){let r=e.length,i=1;for(let t=0;t<r;t++){let n=e.charCodeAt(t);if(n<33||n>126)throw Error(`Invalid prefix (${e})`);i=My(i)^n>>5}i=My(i);for(let t=0;t<r;t++)i=My(i)^e.charCodeAt(t)&31;for(let e of t)i=My(i)^e;for(let e=0;e<6;e++)i=My(i);return i^=n,Ay.encode(Sy([i%xy[30]],30,5,!1))}function Py(e){let t=e===`bech32`?1:734539939,n=wy(5),r=n.decode,i=n.encode,a=Ty(r);function o(e,n,r=90){cy(`bech32.encode prefix`,e),ay(n)&&(n=Array.from(n)),fy(`bech32.encode`,n);let i=e.length;if(i===0)throw TypeError(`Invalid prefix length ${i}`);let a=i+7+n.length;if(r!==!1&&a>r)throw TypeError(`Length ${a} exceeds limit ${r}`);let o=e.toLowerCase(),s=Ny(o,n,t);return`${o}1${Ay.encode(n)}${s}`}function s(e,n=90){cy(`bech32.decode input`,e);let r=e.length;if(r<8||n!==!1&&r>n)throw TypeError(`invalid string length: ${r} (${e}). Expected (8..${n})`);let i=e.toLowerCase();if(e!==i&&e!==e.toUpperCase())throw Error(`String must be lowercase or uppercase`);let a=i.lastIndexOf(`1`);if(a===0||a===-1)throw Error(`Letter "1" must be present between prefix and data only`);let o=i.slice(0,a),s=i.slice(a+1);if(s.length<6)throw Error(`Data must be at least 6 characters long`);let c=Ay.decode(s).slice(0,-6),l=Ny(o,c,t);if(!s.endsWith(l))throw Error(`Invalid checksum in ${e}: expected "${l}"`);return{prefix:o,words:c}}let c=Ty(s);function l(e){let{prefix:t,words:n}=s(e,!1);return{prefix:t,words:n,bytes:r(n)}}function u(e,t){return o(e,i(t))}return{encode:o,decode:s,encodeFromBytes:u,decodeToBytes:l,decodeUnsafe:c,fromWords:r,fromWordsUnsafe:a,toWords:i}}var Fy=Object.freeze(Py(`bech32`));Py(`bech32m`),typeof Uint8Array.from([]).toHex==`function`&&typeof Uint8Array.fromHex==`function`||py(wy(4),my(`0123456789abcdef`),hy(``),_y(e=>{if(typeof e!=`string`||e.length%2!=0)throw TypeError(`hex.decode: expected string, got ${typeof e} with length ${e.length}`);return e.toLowerCase()}));var Iy=e=>ky.decode(e);function Ly(e,t=[`<`,`>`]){let[n,r]=t,i=[],a=``,o=0;for(let t=0;t<e.length;t++){let s=e[t];if(s===n&&o++,s===r&&o--,o===0&&s===`,`){i.push(a.trim()),a=``;continue}a+=s}return i.push(a.trim()),i}var Ry=32;function zy(e){try{return Iy(e).length===Ry}catch{return!1}}function By(e){return Gy(e)&&Ky(e)===32}function Vy(e){if(e.startsWith(`vector<`)){if(!e.endsWith(`>`))throw Error(`Invalid type tag: ${e}`);let t=e.slice(7,-1);if(!t)throw Error(`Invalid type tag: ${e}`);let n=Vy(t);return typeof n==`string`?`vector<${n}>`:`vector<${Uy(n)}>`}return e.includes(`::`)?Hy(e):e}function Hy(e){let t=e.split(`::`);if(t.length<3)throw Error(`Invalid struct tag: ${e}`);let[n,r]=t;if(!n||!r)throw Error(`Invalid struct tag: ${e}`);let i=Zy(n),a=e.slice(n.length+r.length+4),o=a.includes(`<`)?a.slice(0,a.indexOf(`<`)):a;if(!o||a.includes(`<`)&&!a.endsWith(`>`))throw Error(`Invalid struct tag: ${e}`);let s=a.includes(`<`)?Ly(a.slice(a.indexOf(`<`)+1,a.lastIndexOf(`>`))).map(e=>Vy(e.trim())):[];return{address:i?n:Wy(n),module:r,name:o,typeParams:s}}function Uy(e){if(typeof e==`string`&&e.startsWith(`vector<`))throw Error(`normalizeStructTag does not support vector types. Use normalizeTypeTag instead.`);let{address:t,module:n,name:r,typeParams:i}=typeof e==`string`?Hy(e):e;return`${t}::${n}::${r}${i?.length>0?`<${i.map(e=>typeof e==`string`?e:Uy(e)).join(`,`)}>`:``}`}function Wy(e,t=!1){let n=e.toLowerCase();return!t&&n.startsWith(`0x`)&&(n=n.slice(2)),`0x${n.padStart(64,`0`)}`}function Gy(e){return/^(0x|0X)?[a-fA-F0-9]+$/.test(e)&&e.length%2==0}function Ky(e){return/^(0x|0X)/.test(e)?(e.length-2)/2:e.length/2}var qy=/^([a-z0-9]+(?:-[a-z0-9]+)*)$/,Jy=/^\d+$/,Yy=64,Xy=`/`,Zy=e=>{let t=e.split(Xy);if(t.length<2||t.length>3)return!1;let[n,r,i]=t;return i!==void 0&&!Jy.test(i)||!iy(n)?!1:qy.test(r)&&r.length<Yy};function Qy(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name===`Uint8Array`&&`BYTES_PER_ELEMENT`in e&&e.BYTES_PER_ELEMENT===1}function $y(e,t,n=``){let r=Qy(e),i=e?.length,a=t!==void 0;if(!r||a&&i!==t){let o=n&&`"${n}" `,s=a?` of length ${t}`:``,c=r?`length=${i}`:`type=${typeof e}`,l=o+`expected Uint8Array`+s+`, got `+c;throw r?RangeError(l):TypeError(l)}return e}function eb(e,t=!0){if(e.destroyed)throw Error(`Hash instance has been destroyed`);if(t&&e.finished)throw Error(`Hash#digest() has already been called`)}function tb(e,t){$y(e,void 0,`digestInto() output`);let n=t.outputLen;if(e.length<n)throw RangeError(`"digestInto() output" expected to be of length >=`+n)}function nb(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function rb(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function ib(e,t){return e<<32-t|e>>>t}var ab=typeof Uint8Array.from([]).toHex==`function`&&typeof Uint8Array.fromHex==`function`,ob=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,`0`));function sb(e){if($y(e),ab)return e.toHex();let t=``;for(let n=0;n<e.length;n++)t+=ob[e[n]];return t}function cb(e,t={}){let n=(t,n)=>e(n).update(t).digest(),r=e(void 0);return n.outputLen=r.outputLen,n.blockLen=r.blockLen,n.canXOF=r.canXOF,n.create=t=>e(t),Object.assign(n,t),Object.freeze(n)}var lb=e=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,e])});function ub(e,t,n){return e&t^~e&n}function db(e,t,n){return e&t^e&n^t&n}var fb=class{blockLen;outputLen;canXOF=!1;padOffset;isLE;buffer;view;finished=!1;length=0;pos=0;destroyed=!1;constructor(e,t,n,r){this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=r,this.buffer=new Uint8Array(e),this.view=rb(this.buffer)}update(e){eb(this),$y(e);let{view:t,buffer:n,blockLen:r}=this,i=e.length;for(let a=0;a<i;){let o=Math.min(r-this.pos,i-a);if(o===r){let t=rb(e);for(;r<=i-a;a+=r)this.process(t,a);continue}n.set(e.subarray(a,a+o),this.pos),this.pos+=o,a+=o,this.pos===r&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){eb(this),tb(e,this),this.finished=!0;let{buffer:t,view:n,blockLen:r,isLE:i}=this,{pos:a}=this;t[a++]=128,nb(this.buffer.subarray(a)),this.padOffset>r-a&&(this.process(n,0),a=0);for(let e=a;e<r;e++)t[e]=0;n.setBigUint64(r-8,BigInt(this.length*8),i),this.process(n,0);let o=rb(e),s=this.outputLen;if(s%4)throw Error(`_sha2: outputLen must be aligned to 32bit`);let c=s/4,l=this.get();if(c>l.length)throw Error(`_sha2: outputLen bigger than state`);for(let e=0;e<c;e++)o.setUint32(4*e,l[e],i)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let n=e.slice(0,t);return this.destroy(),n}_cloneInto(e){e||=new this.constructor,e.set(...this.get());let{blockLen:t,buffer:n,length:r,finished:i,destroyed:a,pos:o}=this;return e.destroyed=a,e.finished=i,e.length=r,e.pos=o,r%t&&e.buffer.set(n),e}clone(){return this._cloneInto()}},pb=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),mb=`0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI`;yh();var hb=N().refine(By,`Expected a 32-byte Sui address`),gb=N().refine(zy,`Expected a Sui transaction digest`);hb.transform(e=>Wy(e)),yh();var _b=(1n<<64n)-1n,vb=/^(?:0|[1-9][0-9]*)$/,yb=/^(?:0|-?[1-9][0-9]*)$/;function bb(e,t,n={}){if(!/^\d+$/.test(e))throw Error(`${t} must be an unsigned integer string`);let r=BigInt(e);if(n.positive&&r===0n)throw Error(`${t} must be positive`);if(r>_b)throw Error(`${t} must fit u64`);return r}function xb(e){let t=e===`rawAmount`?`amount`:e;return N().min(1).refine(t=>{try{return bb(t,e),!0}catch{return!1}},`Expected a raw u64 ${t} string`)}function Sb(e,t,n={}){if(!vb.test(e))throw Error(`${t} must be a canonical unsigned integer string`);return bb(e,t,n)}function Cb(e){return N().min(1).refine(t=>{try{return Sb(t,e),!0}catch{return!1}},`Expected an unsigned integer string`)}function wb(e,t){if(!yb.test(e))throw Error(`${t} must be a signed integer string`);return BigInt(e)}function Tb(e){return N().min(1).refine(t=>{try{return wb(t,e),!0}catch{return!1}},`Expected a signed integer string`)}function Eb(e){return Uy(e)}yh();var Db=[`transaction`,`effects`,`balanceChanges`,`objectTypes`],Ob=N().refine(e=>{let t=new Date(e);return Number.isFinite(t.getTime())&&t.toISOString()===e},`Expected ISO 8601 UTC timestamp`),kb=L(V(Db)).length(Db.length).superRefine((e,t)=>{for(let n of Db)e.includes(n)||t.addIssue({code:`custom`,path:[],message:`chain receipt include is missing '${n}'`});new Set(e).size!==e.length&&t.addIssue({code:`custom`,path:[],message:`chain receipt include fields must not be duplicated`})}),Ab=N().min(1).max(512).refine(e=>{try{return Eb(e),!0}catch{return!1}},`Expected a Sui struct tag coin type`),jb=R({commandIndex:P().int().nonnegative(),packageId:hb,module:N().min(1).max(128),function:N().min(1).max(128),target:N().min(1).max(512)}).strict().superRefine((e,t)=>{let n=`${e.packageId}::${e.module}::${e.function}`;e.target!==n&&t.addIssue({code:`custom`,path:[`target`],message:`package call target must match packageId::module::function`})}),Mb=R({index:P().int().nonnegative(),coinType:Ab,amountRaw:Tb(`accountBalanceChanges[].amountRaw`),direction:V([`increase`,`decrease`,`zero`])}).strict().superRefine((e,t)=>{let n=wb(e.amountRaw,`accountBalanceChanges[].amountRaw`),r=n>0n?`increase`:n<0n?`decrease`:`zero`;e.direction!==r&&t.addIssue({code:`custom`,path:[`direction`],message:`balance change direction must match amountRaw sign`})}),Nb=$f(`success`,[R({success:H(!0),errorKind:Kf().optional(),errorMessage:Kf().optional()}).strict(),R({success:H(!1),errorKind:N().min(1).max(200).optional(),errorMessage:N().min(1).max(2e3).optional()}).strict()]),Pb=R({kind:H(`sui_chain_receipt_v1`),source:R({method:H(`client.core.getTransaction`),network:H(`sui:mainnet`),chainIdentifier:N().min(1),fetchedAt:Ob,include:kb}).strict(),txDigest:gb,sender:hb,effectsStatus:Nb,packageCalls:L(jb),accountBalanceChanges:L(Mb),objectTypes:B(hb,N().min(1).max(512))}).strict();yh();var Fb=V([`awaiting_signature`,`submitting`,`awaiting_chain_result`,`stopped`,`request_failed`,`outcome_unknown`,`completed`]),Ib=R({reviewSessionId:N().min(1),attemptId:N().min(1),planId:N().min(1),status:V([`success`,`failure`]),txDigest:gb,chainReceipt:Pb,failureReason:H(`chain_execution_failed`).optional(),recordedAt:N().datetime()}).strict().superRefine((e,t)=>{(e.txDigest!==e.chainReceipt.txDigest||e.status===`success`!==e.chainReceipt.effectsStatus.success)&&t.addIssue({code:`custom`,message:`Execution must match the observed chain receipt.`}),e.status===`failure`!=(e.failureReason!==void 0)&&t.addIssue({code:`custom`,message:`Only a chain failure has a chain execution failure reason.`})}),Lb=R({attemptId:N().min(1),reviewSessionId:N().min(1),planId:N().min(1),reviewRevision:P().int().nonnegative(),account:hb,transactionDigest:gb,requestStatus:Fb,revision:P().int().nonnegative(),createdAt:N().datetime(),updatedAt:N().datetime(),signatureVerifiedAt:N().datetime().optional(),submittedAt:N().datetime().optional(),reason:N().optional(),execution:Ib.optional()}).strict().superRefine((e,t)=>{let n=e.execution;e.requestStatus===`completed`!=(n!==void 0)&&t.addIssue({code:`custom`,message:`Completed requests require an observed execution result.`}),n&&(n.attemptId!==e.attemptId||n.reviewSessionId!==e.reviewSessionId||n.planId!==e.planId||n.txDigest!==e.transactionDigest||n.chainReceipt.sender!==e.account)&&t.addIssue({code:`custom`,message:`Execution identity differs from the admitted request.`})});yh();var Rb=`sui:mainnet`,zb=N().uuid(),Bb=V([`process_start`,`sdk_start`,`session_restore`,`state_sync`]),Vb=V([`initialization_failed`,`restoration_failed`,`wallet_state_unavailable`]),Hb=$f(`status`,[R({status:H(`available`),walletRunId:zb}).strict(),R({status:H(`initializing`),walletRunId:zb,stage:Bb,message:N()}).strict(),R({status:H(`recovering`),walletRunId:zb,message:N()}).strict(),R({status:H(`unavailable`),walletRunId:zb.optional(),reason:Vb,message:N()}).strict()]),Ub=$f(`status`,[R({status:H(`idle`)}).strict(),R({status:H(`waiting`)}).strict(),R({status:H(`unavailable`),reason:H(`wallet_unavailable`),message:N()}).strict()]),Wb=V([`awaiting_approval`,`connected`,`rejected`,`failed`,`expired`,`stopped`,`disconnected`]),Gb=R({runId:N().uuid(),connections:L(R({connectionId:N().min(1),revision:P().int().nonnegative(),status:Wb,accounts:L(hb),walletName:N().optional(),sdkPending:F(),disconnectPending:F()}).strict()),preparations:L(R({id:N().min(1),revision:P().int().nonnegative(),review_revision:P().int().nonnegative(),preparation_id:N().nullable(),wallet_connection_id:N().nullable()}).strict()),requests:L(R({attempt_id:N().min(1),revision:P().int().nonnegative(),request_status:Fb,can_submit:P().int().min(0).max(1),sdk_pending:P().int().min(0).max(1),submit_pending:P().int().min(0).max(1),lookup_pending:P().int().min(0).max(1)}).strict())}).strict(),Kb=R({connectionId:N().min(1),status:Wb,revision:P().int().nonnegative(),accounts:L(hb),methods:L(N()),chain:H(Rb),createdAt:N().datetime(),updatedAt:N().datetime(),expiresAt:N().datetime(),walletName:N().optional(),reason:N().optional()}).strict(),qb=R({reason:H(`multiple_connections`),connectionIds:L(N().min(1)).min(2).refine(e=>new Set(e).size===e.length)}).strict(),Jb=`A wallet connection in the connection service is not recorded here. Remove the retained connection in your wallet app, then check its status. If needed, open Settings and use Troubleshooting to restart the connection service and inspect it again. Restarting does not approve an unrecorded connection.`,Yb=$f(`status`,[R({status:H(`available`),account:hb}).strict(),R({status:H(`address_required`)}).strict()]),Xb=[`connect`,`disconnect`,`use_account`,`stop_connection`,`prepare_review`,`request_signature`,`cancel`,`stop_waiting`,`read_result`],Zb=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Qb=new Uint32Array(64),$b=class extends fb{constructor(e){super(64,e,8,!1)}get(){let{A:e,B:t,C:n,D:r,E:i,F:a,G:o,H:s}=this;return[e,t,n,r,i,a,o,s]}set(e,t,n,r,i,a,o,s){this.A=e|0,this.B=t|0,this.C=n|0,this.D=r|0,this.E=i|0,this.F=a|0,this.G=o|0,this.H=s|0}process(e,t){for(let n=0;n<16;n++,t+=4)Qb[n]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=Qb[e-15],n=Qb[e-2],r=ib(t,7)^ib(t,18)^t>>>3;Qb[e]=(ib(n,17)^ib(n,19)^n>>>10)+Qb[e-7]+r+Qb[e-16]|0}let{A:n,B:r,C:i,D:a,E:o,F:s,G:c,H:l}=this;for(let e=0;e<64;e++){let t=ib(o,6)^ib(o,11)^ib(o,25),u=l+t+ub(o,s,c)+Zb[e]+Qb[e]|0,d=(ib(n,2)^ib(n,13)^ib(n,22))+db(n,r,i)|0;l=c,c=s,s=o,o=a+u|0,a=i,i=r,r=n,n=u+d|0}n=n+this.A|0,r=r+this.B|0,i=i+this.C|0,a=a+this.D|0,o=o+this.E|0,s=s+this.F|0,c=c+this.G|0,l=l+this.H|0,this.set(n,r,i,a,o,s,c,l)}roundClean(){nb(Qb)}destroy(){this.destroyed=!0,this.set(0,0,0,0,0,0,0,0),nb(this.buffer)}},ex=class extends $b{A=pb[0]|0;B=pb[1]|0;C=pb[2]|0;D=pb[3]|0;E=pb[4]|0;F=pb[5]|0;G=pb[6]|0;H=pb[7]|0;constructor(){super(32)}},tx=cb(()=>new ex,lb(1));function nx(e){if(typeof e!=`string`)throw TypeError(`invalid mnemonic type: `+typeof e);return e.normalize(`NFKD`)}function rx(e){let t=nx(e),n=t.split(` `);if(![12,15,18,21,24].includes(n.length))throw Error(`Invalid mnemonic`);return{nfkd:t,words:n}}function ix(e){if($y(e),![16,20,24,28,32].includes(e.length))throw RangeError(`invalid entropy length`)}var ax=e=>{let t=8-e.length/4;return new Uint8Array([tx(e)[0]>>t<<t])};function ox(e){if(!Array.isArray(e)||e.length!==2048||typeof e[0]!=`string`)throw TypeError(`Wordlist: expected array of 2048 strings`);return e.forEach(e=>{if(typeof e!=`string`)throw TypeError(`wordlist: non-string element: `+e)}),Dy.chain(Dy.checksum(1,ax),Dy.radix2(11,!0),Dy.alphabet(e))}function sx(e,t){let{words:n}=rx(e),r=ox(t).decode(n);return ix(r),r}function cx(e,t){try{sx(e,t)}catch{return!1}return!0}var lx=Object.freeze(`abandon
|
|
1086
|
+
ability
|
|
1087
|
+
able
|
|
1088
|
+
about
|
|
1089
|
+
above
|
|
1090
|
+
absent
|
|
1091
|
+
absorb
|
|
1092
|
+
abstract
|
|
1093
|
+
absurd
|
|
1094
|
+
abuse
|
|
1095
|
+
access
|
|
1096
|
+
accident
|
|
1097
|
+
account
|
|
1098
|
+
accuse
|
|
1099
|
+
achieve
|
|
1100
|
+
acid
|
|
1101
|
+
acoustic
|
|
1102
|
+
acquire
|
|
1103
|
+
across
|
|
1104
|
+
act
|
|
1105
|
+
action
|
|
1106
|
+
actor
|
|
1107
|
+
actress
|
|
1108
|
+
actual
|
|
1109
|
+
adapt
|
|
1110
|
+
add
|
|
1111
|
+
addict
|
|
1112
|
+
address
|
|
1113
|
+
adjust
|
|
1114
|
+
admit
|
|
1115
|
+
adult
|
|
1116
|
+
advance
|
|
1117
|
+
advice
|
|
1118
|
+
aerobic
|
|
1119
|
+
affair
|
|
1120
|
+
afford
|
|
1121
|
+
afraid
|
|
1122
|
+
again
|
|
1123
|
+
age
|
|
1124
|
+
agent
|
|
1125
|
+
agree
|
|
1126
|
+
ahead
|
|
1127
|
+
aim
|
|
1128
|
+
air
|
|
1129
|
+
airport
|
|
1130
|
+
aisle
|
|
1131
|
+
alarm
|
|
1132
|
+
album
|
|
1133
|
+
alcohol
|
|
1134
|
+
alert
|
|
1135
|
+
alien
|
|
1136
|
+
all
|
|
1137
|
+
alley
|
|
1138
|
+
allow
|
|
1139
|
+
almost
|
|
1140
|
+
alone
|
|
1141
|
+
alpha
|
|
1142
|
+
already
|
|
1143
|
+
also
|
|
1144
|
+
alter
|
|
1145
|
+
always
|
|
1146
|
+
amateur
|
|
1147
|
+
amazing
|
|
1148
|
+
among
|
|
1149
|
+
amount
|
|
1150
|
+
amused
|
|
1151
|
+
analyst
|
|
1152
|
+
anchor
|
|
1153
|
+
ancient
|
|
1154
|
+
anger
|
|
1155
|
+
angle
|
|
1156
|
+
angry
|
|
1157
|
+
animal
|
|
1158
|
+
ankle
|
|
1159
|
+
announce
|
|
1160
|
+
annual
|
|
1161
|
+
another
|
|
1162
|
+
answer
|
|
1163
|
+
antenna
|
|
1164
|
+
antique
|
|
1165
|
+
anxiety
|
|
1166
|
+
any
|
|
1167
|
+
apart
|
|
1168
|
+
apology
|
|
1169
|
+
appear
|
|
1170
|
+
apple
|
|
1171
|
+
approve
|
|
1172
|
+
april
|
|
1173
|
+
arch
|
|
1174
|
+
arctic
|
|
1175
|
+
area
|
|
1176
|
+
arena
|
|
1177
|
+
argue
|
|
1178
|
+
arm
|
|
1179
|
+
armed
|
|
1180
|
+
armor
|
|
1181
|
+
army
|
|
1182
|
+
around
|
|
1183
|
+
arrange
|
|
1184
|
+
arrest
|
|
1185
|
+
arrive
|
|
1186
|
+
arrow
|
|
1187
|
+
art
|
|
1188
|
+
artefact
|
|
1189
|
+
artist
|
|
1190
|
+
artwork
|
|
1191
|
+
ask
|
|
1192
|
+
aspect
|
|
1193
|
+
assault
|
|
1194
|
+
asset
|
|
1195
|
+
assist
|
|
1196
|
+
assume
|
|
1197
|
+
asthma
|
|
1198
|
+
athlete
|
|
1199
|
+
atom
|
|
1200
|
+
attack
|
|
1201
|
+
attend
|
|
1202
|
+
attitude
|
|
1203
|
+
attract
|
|
1204
|
+
auction
|
|
1205
|
+
audit
|
|
1206
|
+
august
|
|
1207
|
+
aunt
|
|
1208
|
+
author
|
|
1209
|
+
auto
|
|
1210
|
+
autumn
|
|
1211
|
+
average
|
|
1212
|
+
avocado
|
|
1213
|
+
avoid
|
|
1214
|
+
awake
|
|
1215
|
+
aware
|
|
1216
|
+
away
|
|
1217
|
+
awesome
|
|
1218
|
+
awful
|
|
1219
|
+
awkward
|
|
1220
|
+
axis
|
|
1221
|
+
baby
|
|
1222
|
+
bachelor
|
|
1223
|
+
bacon
|
|
1224
|
+
badge
|
|
1225
|
+
bag
|
|
1226
|
+
balance
|
|
1227
|
+
balcony
|
|
1228
|
+
ball
|
|
1229
|
+
bamboo
|
|
1230
|
+
banana
|
|
1231
|
+
banner
|
|
1232
|
+
bar
|
|
1233
|
+
barely
|
|
1234
|
+
bargain
|
|
1235
|
+
barrel
|
|
1236
|
+
base
|
|
1237
|
+
basic
|
|
1238
|
+
basket
|
|
1239
|
+
battle
|
|
1240
|
+
beach
|
|
1241
|
+
bean
|
|
1242
|
+
beauty
|
|
1243
|
+
because
|
|
1244
|
+
become
|
|
1245
|
+
beef
|
|
1246
|
+
before
|
|
1247
|
+
begin
|
|
1248
|
+
behave
|
|
1249
|
+
behind
|
|
1250
|
+
believe
|
|
1251
|
+
below
|
|
1252
|
+
belt
|
|
1253
|
+
bench
|
|
1254
|
+
benefit
|
|
1255
|
+
best
|
|
1256
|
+
betray
|
|
1257
|
+
better
|
|
1258
|
+
between
|
|
1259
|
+
beyond
|
|
1260
|
+
bicycle
|
|
1261
|
+
bid
|
|
1262
|
+
bike
|
|
1263
|
+
bind
|
|
1264
|
+
biology
|
|
1265
|
+
bird
|
|
1266
|
+
birth
|
|
1267
|
+
bitter
|
|
1268
|
+
black
|
|
1269
|
+
blade
|
|
1270
|
+
blame
|
|
1271
|
+
blanket
|
|
1272
|
+
blast
|
|
1273
|
+
bleak
|
|
1274
|
+
bless
|
|
1275
|
+
blind
|
|
1276
|
+
blood
|
|
1277
|
+
blossom
|
|
1278
|
+
blouse
|
|
1279
|
+
blue
|
|
1280
|
+
blur
|
|
1281
|
+
blush
|
|
1282
|
+
board
|
|
1283
|
+
boat
|
|
1284
|
+
body
|
|
1285
|
+
boil
|
|
1286
|
+
bomb
|
|
1287
|
+
bone
|
|
1288
|
+
bonus
|
|
1289
|
+
book
|
|
1290
|
+
boost
|
|
1291
|
+
border
|
|
1292
|
+
boring
|
|
1293
|
+
borrow
|
|
1294
|
+
boss
|
|
1295
|
+
bottom
|
|
1296
|
+
bounce
|
|
1297
|
+
box
|
|
1298
|
+
boy
|
|
1299
|
+
bracket
|
|
1300
|
+
brain
|
|
1301
|
+
brand
|
|
1302
|
+
brass
|
|
1303
|
+
brave
|
|
1304
|
+
bread
|
|
1305
|
+
breeze
|
|
1306
|
+
brick
|
|
1307
|
+
bridge
|
|
1308
|
+
brief
|
|
1309
|
+
bright
|
|
1310
|
+
bring
|
|
1311
|
+
brisk
|
|
1312
|
+
broccoli
|
|
1313
|
+
broken
|
|
1314
|
+
bronze
|
|
1315
|
+
broom
|
|
1316
|
+
brother
|
|
1317
|
+
brown
|
|
1318
|
+
brush
|
|
1319
|
+
bubble
|
|
1320
|
+
buddy
|
|
1321
|
+
budget
|
|
1322
|
+
buffalo
|
|
1323
|
+
build
|
|
1324
|
+
bulb
|
|
1325
|
+
bulk
|
|
1326
|
+
bullet
|
|
1327
|
+
bundle
|
|
1328
|
+
bunker
|
|
1329
|
+
burden
|
|
1330
|
+
burger
|
|
1331
|
+
burst
|
|
1332
|
+
bus
|
|
1333
|
+
business
|
|
1334
|
+
busy
|
|
1335
|
+
butter
|
|
1336
|
+
buyer
|
|
1337
|
+
buzz
|
|
1338
|
+
cabbage
|
|
1339
|
+
cabin
|
|
1340
|
+
cable
|
|
1341
|
+
cactus
|
|
1342
|
+
cage
|
|
1343
|
+
cake
|
|
1344
|
+
call
|
|
1345
|
+
calm
|
|
1346
|
+
camera
|
|
1347
|
+
camp
|
|
1348
|
+
can
|
|
1349
|
+
canal
|
|
1350
|
+
cancel
|
|
1351
|
+
candy
|
|
1352
|
+
cannon
|
|
1353
|
+
canoe
|
|
1354
|
+
canvas
|
|
1355
|
+
canyon
|
|
1356
|
+
capable
|
|
1357
|
+
capital
|
|
1358
|
+
captain
|
|
1359
|
+
car
|
|
1360
|
+
carbon
|
|
1361
|
+
card
|
|
1362
|
+
cargo
|
|
1363
|
+
carpet
|
|
1364
|
+
carry
|
|
1365
|
+
cart
|
|
1366
|
+
case
|
|
1367
|
+
cash
|
|
1368
|
+
casino
|
|
1369
|
+
castle
|
|
1370
|
+
casual
|
|
1371
|
+
cat
|
|
1372
|
+
catalog
|
|
1373
|
+
catch
|
|
1374
|
+
category
|
|
1375
|
+
cattle
|
|
1376
|
+
caught
|
|
1377
|
+
cause
|
|
1378
|
+
caution
|
|
1379
|
+
cave
|
|
1380
|
+
ceiling
|
|
1381
|
+
celery
|
|
1382
|
+
cement
|
|
1383
|
+
census
|
|
1384
|
+
century
|
|
1385
|
+
cereal
|
|
1386
|
+
certain
|
|
1387
|
+
chair
|
|
1388
|
+
chalk
|
|
1389
|
+
champion
|
|
1390
|
+
change
|
|
1391
|
+
chaos
|
|
1392
|
+
chapter
|
|
1393
|
+
charge
|
|
1394
|
+
chase
|
|
1395
|
+
chat
|
|
1396
|
+
cheap
|
|
1397
|
+
check
|
|
1398
|
+
cheese
|
|
1399
|
+
chef
|
|
1400
|
+
cherry
|
|
1401
|
+
chest
|
|
1402
|
+
chicken
|
|
1403
|
+
chief
|
|
1404
|
+
child
|
|
1405
|
+
chimney
|
|
1406
|
+
choice
|
|
1407
|
+
choose
|
|
1408
|
+
chronic
|
|
1409
|
+
chuckle
|
|
1410
|
+
chunk
|
|
1411
|
+
churn
|
|
1412
|
+
cigar
|
|
1413
|
+
cinnamon
|
|
1414
|
+
circle
|
|
1415
|
+
citizen
|
|
1416
|
+
city
|
|
1417
|
+
civil
|
|
1418
|
+
claim
|
|
1419
|
+
clap
|
|
1420
|
+
clarify
|
|
1421
|
+
claw
|
|
1422
|
+
clay
|
|
1423
|
+
clean
|
|
1424
|
+
clerk
|
|
1425
|
+
clever
|
|
1426
|
+
click
|
|
1427
|
+
client
|
|
1428
|
+
cliff
|
|
1429
|
+
climb
|
|
1430
|
+
clinic
|
|
1431
|
+
clip
|
|
1432
|
+
clock
|
|
1433
|
+
clog
|
|
1434
|
+
close
|
|
1435
|
+
cloth
|
|
1436
|
+
cloud
|
|
1437
|
+
clown
|
|
1438
|
+
club
|
|
1439
|
+
clump
|
|
1440
|
+
cluster
|
|
1441
|
+
clutch
|
|
1442
|
+
coach
|
|
1443
|
+
coast
|
|
1444
|
+
coconut
|
|
1445
|
+
code
|
|
1446
|
+
coffee
|
|
1447
|
+
coil
|
|
1448
|
+
coin
|
|
1449
|
+
collect
|
|
1450
|
+
color
|
|
1451
|
+
column
|
|
1452
|
+
combine
|
|
1453
|
+
come
|
|
1454
|
+
comfort
|
|
1455
|
+
comic
|
|
1456
|
+
common
|
|
1457
|
+
company
|
|
1458
|
+
concert
|
|
1459
|
+
conduct
|
|
1460
|
+
confirm
|
|
1461
|
+
congress
|
|
1462
|
+
connect
|
|
1463
|
+
consider
|
|
1464
|
+
control
|
|
1465
|
+
convince
|
|
1466
|
+
cook
|
|
1467
|
+
cool
|
|
1468
|
+
copper
|
|
1469
|
+
copy
|
|
1470
|
+
coral
|
|
1471
|
+
core
|
|
1472
|
+
corn
|
|
1473
|
+
correct
|
|
1474
|
+
cost
|
|
1475
|
+
cotton
|
|
1476
|
+
couch
|
|
1477
|
+
country
|
|
1478
|
+
couple
|
|
1479
|
+
course
|
|
1480
|
+
cousin
|
|
1481
|
+
cover
|
|
1482
|
+
coyote
|
|
1483
|
+
crack
|
|
1484
|
+
cradle
|
|
1485
|
+
craft
|
|
1486
|
+
cram
|
|
1487
|
+
crane
|
|
1488
|
+
crash
|
|
1489
|
+
crater
|
|
1490
|
+
crawl
|
|
1491
|
+
crazy
|
|
1492
|
+
cream
|
|
1493
|
+
credit
|
|
1494
|
+
creek
|
|
1495
|
+
crew
|
|
1496
|
+
cricket
|
|
1497
|
+
crime
|
|
1498
|
+
crisp
|
|
1499
|
+
critic
|
|
1500
|
+
crop
|
|
1501
|
+
cross
|
|
1502
|
+
crouch
|
|
1503
|
+
crowd
|
|
1504
|
+
crucial
|
|
1505
|
+
cruel
|
|
1506
|
+
cruise
|
|
1507
|
+
crumble
|
|
1508
|
+
crunch
|
|
1509
|
+
crush
|
|
1510
|
+
cry
|
|
1511
|
+
crystal
|
|
1512
|
+
cube
|
|
1513
|
+
culture
|
|
1514
|
+
cup
|
|
1515
|
+
cupboard
|
|
1516
|
+
curious
|
|
1517
|
+
current
|
|
1518
|
+
curtain
|
|
1519
|
+
curve
|
|
1520
|
+
cushion
|
|
1521
|
+
custom
|
|
1522
|
+
cute
|
|
1523
|
+
cycle
|
|
1524
|
+
dad
|
|
1525
|
+
damage
|
|
1526
|
+
damp
|
|
1527
|
+
dance
|
|
1528
|
+
danger
|
|
1529
|
+
daring
|
|
1530
|
+
dash
|
|
1531
|
+
daughter
|
|
1532
|
+
dawn
|
|
1533
|
+
day
|
|
1534
|
+
deal
|
|
1535
|
+
debate
|
|
1536
|
+
debris
|
|
1537
|
+
decade
|
|
1538
|
+
december
|
|
1539
|
+
decide
|
|
1540
|
+
decline
|
|
1541
|
+
decorate
|
|
1542
|
+
decrease
|
|
1543
|
+
deer
|
|
1544
|
+
defense
|
|
1545
|
+
define
|
|
1546
|
+
defy
|
|
1547
|
+
degree
|
|
1548
|
+
delay
|
|
1549
|
+
deliver
|
|
1550
|
+
demand
|
|
1551
|
+
demise
|
|
1552
|
+
denial
|
|
1553
|
+
dentist
|
|
1554
|
+
deny
|
|
1555
|
+
depart
|
|
1556
|
+
depend
|
|
1557
|
+
deposit
|
|
1558
|
+
depth
|
|
1559
|
+
deputy
|
|
1560
|
+
derive
|
|
1561
|
+
describe
|
|
1562
|
+
desert
|
|
1563
|
+
design
|
|
1564
|
+
desk
|
|
1565
|
+
despair
|
|
1566
|
+
destroy
|
|
1567
|
+
detail
|
|
1568
|
+
detect
|
|
1569
|
+
develop
|
|
1570
|
+
device
|
|
1571
|
+
devote
|
|
1572
|
+
diagram
|
|
1573
|
+
dial
|
|
1574
|
+
diamond
|
|
1575
|
+
diary
|
|
1576
|
+
dice
|
|
1577
|
+
diesel
|
|
1578
|
+
diet
|
|
1579
|
+
differ
|
|
1580
|
+
digital
|
|
1581
|
+
dignity
|
|
1582
|
+
dilemma
|
|
1583
|
+
dinner
|
|
1584
|
+
dinosaur
|
|
1585
|
+
direct
|
|
1586
|
+
dirt
|
|
1587
|
+
disagree
|
|
1588
|
+
discover
|
|
1589
|
+
disease
|
|
1590
|
+
dish
|
|
1591
|
+
dismiss
|
|
1592
|
+
disorder
|
|
1593
|
+
display
|
|
1594
|
+
distance
|
|
1595
|
+
divert
|
|
1596
|
+
divide
|
|
1597
|
+
divorce
|
|
1598
|
+
dizzy
|
|
1599
|
+
doctor
|
|
1600
|
+
document
|
|
1601
|
+
dog
|
|
1602
|
+
doll
|
|
1603
|
+
dolphin
|
|
1604
|
+
domain
|
|
1605
|
+
donate
|
|
1606
|
+
donkey
|
|
1607
|
+
donor
|
|
1608
|
+
door
|
|
1609
|
+
dose
|
|
1610
|
+
double
|
|
1611
|
+
dove
|
|
1612
|
+
draft
|
|
1613
|
+
dragon
|
|
1614
|
+
drama
|
|
1615
|
+
drastic
|
|
1616
|
+
draw
|
|
1617
|
+
dream
|
|
1618
|
+
dress
|
|
1619
|
+
drift
|
|
1620
|
+
drill
|
|
1621
|
+
drink
|
|
1622
|
+
drip
|
|
1623
|
+
drive
|
|
1624
|
+
drop
|
|
1625
|
+
drum
|
|
1626
|
+
dry
|
|
1627
|
+
duck
|
|
1628
|
+
dumb
|
|
1629
|
+
dune
|
|
1630
|
+
during
|
|
1631
|
+
dust
|
|
1632
|
+
dutch
|
|
1633
|
+
duty
|
|
1634
|
+
dwarf
|
|
1635
|
+
dynamic
|
|
1636
|
+
eager
|
|
1637
|
+
eagle
|
|
1638
|
+
early
|
|
1639
|
+
earn
|
|
1640
|
+
earth
|
|
1641
|
+
easily
|
|
1642
|
+
east
|
|
1643
|
+
easy
|
|
1644
|
+
echo
|
|
1645
|
+
ecology
|
|
1646
|
+
economy
|
|
1647
|
+
edge
|
|
1648
|
+
edit
|
|
1649
|
+
educate
|
|
1650
|
+
effort
|
|
1651
|
+
egg
|
|
1652
|
+
eight
|
|
1653
|
+
either
|
|
1654
|
+
elbow
|
|
1655
|
+
elder
|
|
1656
|
+
electric
|
|
1657
|
+
elegant
|
|
1658
|
+
element
|
|
1659
|
+
elephant
|
|
1660
|
+
elevator
|
|
1661
|
+
elite
|
|
1662
|
+
else
|
|
1663
|
+
embark
|
|
1664
|
+
embody
|
|
1665
|
+
embrace
|
|
1666
|
+
emerge
|
|
1667
|
+
emotion
|
|
1668
|
+
employ
|
|
1669
|
+
empower
|
|
1670
|
+
empty
|
|
1671
|
+
enable
|
|
1672
|
+
enact
|
|
1673
|
+
end
|
|
1674
|
+
endless
|
|
1675
|
+
endorse
|
|
1676
|
+
enemy
|
|
1677
|
+
energy
|
|
1678
|
+
enforce
|
|
1679
|
+
engage
|
|
1680
|
+
engine
|
|
1681
|
+
enhance
|
|
1682
|
+
enjoy
|
|
1683
|
+
enlist
|
|
1684
|
+
enough
|
|
1685
|
+
enrich
|
|
1686
|
+
enroll
|
|
1687
|
+
ensure
|
|
1688
|
+
enter
|
|
1689
|
+
entire
|
|
1690
|
+
entry
|
|
1691
|
+
envelope
|
|
1692
|
+
episode
|
|
1693
|
+
equal
|
|
1694
|
+
equip
|
|
1695
|
+
era
|
|
1696
|
+
erase
|
|
1697
|
+
erode
|
|
1698
|
+
erosion
|
|
1699
|
+
error
|
|
1700
|
+
erupt
|
|
1701
|
+
escape
|
|
1702
|
+
essay
|
|
1703
|
+
essence
|
|
1704
|
+
estate
|
|
1705
|
+
eternal
|
|
1706
|
+
ethics
|
|
1707
|
+
evidence
|
|
1708
|
+
evil
|
|
1709
|
+
evoke
|
|
1710
|
+
evolve
|
|
1711
|
+
exact
|
|
1712
|
+
example
|
|
1713
|
+
excess
|
|
1714
|
+
exchange
|
|
1715
|
+
excite
|
|
1716
|
+
exclude
|
|
1717
|
+
excuse
|
|
1718
|
+
execute
|
|
1719
|
+
exercise
|
|
1720
|
+
exhaust
|
|
1721
|
+
exhibit
|
|
1722
|
+
exile
|
|
1723
|
+
exist
|
|
1724
|
+
exit
|
|
1725
|
+
exotic
|
|
1726
|
+
expand
|
|
1727
|
+
expect
|
|
1728
|
+
expire
|
|
1729
|
+
explain
|
|
1730
|
+
expose
|
|
1731
|
+
express
|
|
1732
|
+
extend
|
|
1733
|
+
extra
|
|
1734
|
+
eye
|
|
1735
|
+
eyebrow
|
|
1736
|
+
fabric
|
|
1737
|
+
face
|
|
1738
|
+
faculty
|
|
1739
|
+
fade
|
|
1740
|
+
faint
|
|
1741
|
+
faith
|
|
1742
|
+
fall
|
|
1743
|
+
false
|
|
1744
|
+
fame
|
|
1745
|
+
family
|
|
1746
|
+
famous
|
|
1747
|
+
fan
|
|
1748
|
+
fancy
|
|
1749
|
+
fantasy
|
|
1750
|
+
farm
|
|
1751
|
+
fashion
|
|
1752
|
+
fat
|
|
1753
|
+
fatal
|
|
1754
|
+
father
|
|
1755
|
+
fatigue
|
|
1756
|
+
fault
|
|
1757
|
+
favorite
|
|
1758
|
+
feature
|
|
1759
|
+
february
|
|
1760
|
+
federal
|
|
1761
|
+
fee
|
|
1762
|
+
feed
|
|
1763
|
+
feel
|
|
1764
|
+
female
|
|
1765
|
+
fence
|
|
1766
|
+
festival
|
|
1767
|
+
fetch
|
|
1768
|
+
fever
|
|
1769
|
+
few
|
|
1770
|
+
fiber
|
|
1771
|
+
fiction
|
|
1772
|
+
field
|
|
1773
|
+
figure
|
|
1774
|
+
file
|
|
1775
|
+
film
|
|
1776
|
+
filter
|
|
1777
|
+
final
|
|
1778
|
+
find
|
|
1779
|
+
fine
|
|
1780
|
+
finger
|
|
1781
|
+
finish
|
|
1782
|
+
fire
|
|
1783
|
+
firm
|
|
1784
|
+
first
|
|
1785
|
+
fiscal
|
|
1786
|
+
fish
|
|
1787
|
+
fit
|
|
1788
|
+
fitness
|
|
1789
|
+
fix
|
|
1790
|
+
flag
|
|
1791
|
+
flame
|
|
1792
|
+
flash
|
|
1793
|
+
flat
|
|
1794
|
+
flavor
|
|
1795
|
+
flee
|
|
1796
|
+
flight
|
|
1797
|
+
flip
|
|
1798
|
+
float
|
|
1799
|
+
flock
|
|
1800
|
+
floor
|
|
1801
|
+
flower
|
|
1802
|
+
fluid
|
|
1803
|
+
flush
|
|
1804
|
+
fly
|
|
1805
|
+
foam
|
|
1806
|
+
focus
|
|
1807
|
+
fog
|
|
1808
|
+
foil
|
|
1809
|
+
fold
|
|
1810
|
+
follow
|
|
1811
|
+
food
|
|
1812
|
+
foot
|
|
1813
|
+
force
|
|
1814
|
+
forest
|
|
1815
|
+
forget
|
|
1816
|
+
fork
|
|
1817
|
+
fortune
|
|
1818
|
+
forum
|
|
1819
|
+
forward
|
|
1820
|
+
fossil
|
|
1821
|
+
foster
|
|
1822
|
+
found
|
|
1823
|
+
fox
|
|
1824
|
+
fragile
|
|
1825
|
+
frame
|
|
1826
|
+
frequent
|
|
1827
|
+
fresh
|
|
1828
|
+
friend
|
|
1829
|
+
fringe
|
|
1830
|
+
frog
|
|
1831
|
+
front
|
|
1832
|
+
frost
|
|
1833
|
+
frown
|
|
1834
|
+
frozen
|
|
1835
|
+
fruit
|
|
1836
|
+
fuel
|
|
1837
|
+
fun
|
|
1838
|
+
funny
|
|
1839
|
+
furnace
|
|
1840
|
+
fury
|
|
1841
|
+
future
|
|
1842
|
+
gadget
|
|
1843
|
+
gain
|
|
1844
|
+
galaxy
|
|
1845
|
+
gallery
|
|
1846
|
+
game
|
|
1847
|
+
gap
|
|
1848
|
+
garage
|
|
1849
|
+
garbage
|
|
1850
|
+
garden
|
|
1851
|
+
garlic
|
|
1852
|
+
garment
|
|
1853
|
+
gas
|
|
1854
|
+
gasp
|
|
1855
|
+
gate
|
|
1856
|
+
gather
|
|
1857
|
+
gauge
|
|
1858
|
+
gaze
|
|
1859
|
+
general
|
|
1860
|
+
genius
|
|
1861
|
+
genre
|
|
1862
|
+
gentle
|
|
1863
|
+
genuine
|
|
1864
|
+
gesture
|
|
1865
|
+
ghost
|
|
1866
|
+
giant
|
|
1867
|
+
gift
|
|
1868
|
+
giggle
|
|
1869
|
+
ginger
|
|
1870
|
+
giraffe
|
|
1871
|
+
girl
|
|
1872
|
+
give
|
|
1873
|
+
glad
|
|
1874
|
+
glance
|
|
1875
|
+
glare
|
|
1876
|
+
glass
|
|
1877
|
+
glide
|
|
1878
|
+
glimpse
|
|
1879
|
+
globe
|
|
1880
|
+
gloom
|
|
1881
|
+
glory
|
|
1882
|
+
glove
|
|
1883
|
+
glow
|
|
1884
|
+
glue
|
|
1885
|
+
goat
|
|
1886
|
+
goddess
|
|
1887
|
+
gold
|
|
1888
|
+
good
|
|
1889
|
+
goose
|
|
1890
|
+
gorilla
|
|
1891
|
+
gospel
|
|
1892
|
+
gossip
|
|
1893
|
+
govern
|
|
1894
|
+
gown
|
|
1895
|
+
grab
|
|
1896
|
+
grace
|
|
1897
|
+
grain
|
|
1898
|
+
grant
|
|
1899
|
+
grape
|
|
1900
|
+
grass
|
|
1901
|
+
gravity
|
|
1902
|
+
great
|
|
1903
|
+
green
|
|
1904
|
+
grid
|
|
1905
|
+
grief
|
|
1906
|
+
grit
|
|
1907
|
+
grocery
|
|
1908
|
+
group
|
|
1909
|
+
grow
|
|
1910
|
+
grunt
|
|
1911
|
+
guard
|
|
1912
|
+
guess
|
|
1913
|
+
guide
|
|
1914
|
+
guilt
|
|
1915
|
+
guitar
|
|
1916
|
+
gun
|
|
1917
|
+
gym
|
|
1918
|
+
habit
|
|
1919
|
+
hair
|
|
1920
|
+
half
|
|
1921
|
+
hammer
|
|
1922
|
+
hamster
|
|
1923
|
+
hand
|
|
1924
|
+
happy
|
|
1925
|
+
harbor
|
|
1926
|
+
hard
|
|
1927
|
+
harsh
|
|
1928
|
+
harvest
|
|
1929
|
+
hat
|
|
1930
|
+
have
|
|
1931
|
+
hawk
|
|
1932
|
+
hazard
|
|
1933
|
+
head
|
|
1934
|
+
health
|
|
1935
|
+
heart
|
|
1936
|
+
heavy
|
|
1937
|
+
hedgehog
|
|
1938
|
+
height
|
|
1939
|
+
hello
|
|
1940
|
+
helmet
|
|
1941
|
+
help
|
|
1942
|
+
hen
|
|
1943
|
+
hero
|
|
1944
|
+
hidden
|
|
1945
|
+
high
|
|
1946
|
+
hill
|
|
1947
|
+
hint
|
|
1948
|
+
hip
|
|
1949
|
+
hire
|
|
1950
|
+
history
|
|
1951
|
+
hobby
|
|
1952
|
+
hockey
|
|
1953
|
+
hold
|
|
1954
|
+
hole
|
|
1955
|
+
holiday
|
|
1956
|
+
hollow
|
|
1957
|
+
home
|
|
1958
|
+
honey
|
|
1959
|
+
hood
|
|
1960
|
+
hope
|
|
1961
|
+
horn
|
|
1962
|
+
horror
|
|
1963
|
+
horse
|
|
1964
|
+
hospital
|
|
1965
|
+
host
|
|
1966
|
+
hotel
|
|
1967
|
+
hour
|
|
1968
|
+
hover
|
|
1969
|
+
hub
|
|
1970
|
+
huge
|
|
1971
|
+
human
|
|
1972
|
+
humble
|
|
1973
|
+
humor
|
|
1974
|
+
hundred
|
|
1975
|
+
hungry
|
|
1976
|
+
hunt
|
|
1977
|
+
hurdle
|
|
1978
|
+
hurry
|
|
1979
|
+
hurt
|
|
1980
|
+
husband
|
|
1981
|
+
hybrid
|
|
1982
|
+
ice
|
|
1983
|
+
icon
|
|
1984
|
+
idea
|
|
1985
|
+
identify
|
|
1986
|
+
idle
|
|
1987
|
+
ignore
|
|
1988
|
+
ill
|
|
1989
|
+
illegal
|
|
1990
|
+
illness
|
|
1991
|
+
image
|
|
1992
|
+
imitate
|
|
1993
|
+
immense
|
|
1994
|
+
immune
|
|
1995
|
+
impact
|
|
1996
|
+
impose
|
|
1997
|
+
improve
|
|
1998
|
+
impulse
|
|
1999
|
+
inch
|
|
2000
|
+
include
|
|
2001
|
+
income
|
|
2002
|
+
increase
|
|
2003
|
+
index
|
|
2004
|
+
indicate
|
|
2005
|
+
indoor
|
|
2006
|
+
industry
|
|
2007
|
+
infant
|
|
2008
|
+
inflict
|
|
2009
|
+
inform
|
|
2010
|
+
inhale
|
|
2011
|
+
inherit
|
|
2012
|
+
initial
|
|
2013
|
+
inject
|
|
2014
|
+
injury
|
|
2015
|
+
inmate
|
|
2016
|
+
inner
|
|
2017
|
+
innocent
|
|
2018
|
+
input
|
|
2019
|
+
inquiry
|
|
2020
|
+
insane
|
|
2021
|
+
insect
|
|
2022
|
+
inside
|
|
2023
|
+
inspire
|
|
2024
|
+
install
|
|
2025
|
+
intact
|
|
2026
|
+
interest
|
|
2027
|
+
into
|
|
2028
|
+
invest
|
|
2029
|
+
invite
|
|
2030
|
+
involve
|
|
2031
|
+
iron
|
|
2032
|
+
island
|
|
2033
|
+
isolate
|
|
2034
|
+
issue
|
|
2035
|
+
item
|
|
2036
|
+
ivory
|
|
2037
|
+
jacket
|
|
2038
|
+
jaguar
|
|
2039
|
+
jar
|
|
2040
|
+
jazz
|
|
2041
|
+
jealous
|
|
2042
|
+
jeans
|
|
2043
|
+
jelly
|
|
2044
|
+
jewel
|
|
2045
|
+
job
|
|
2046
|
+
join
|
|
2047
|
+
joke
|
|
2048
|
+
journey
|
|
2049
|
+
joy
|
|
2050
|
+
judge
|
|
2051
|
+
juice
|
|
2052
|
+
jump
|
|
2053
|
+
jungle
|
|
2054
|
+
junior
|
|
2055
|
+
junk
|
|
2056
|
+
just
|
|
2057
|
+
kangaroo
|
|
2058
|
+
keen
|
|
2059
|
+
keep
|
|
2060
|
+
ketchup
|
|
2061
|
+
key
|
|
2062
|
+
kick
|
|
2063
|
+
kid
|
|
2064
|
+
kidney
|
|
2065
|
+
kind
|
|
2066
|
+
kingdom
|
|
2067
|
+
kiss
|
|
2068
|
+
kit
|
|
2069
|
+
kitchen
|
|
2070
|
+
kite
|
|
2071
|
+
kitten
|
|
2072
|
+
kiwi
|
|
2073
|
+
knee
|
|
2074
|
+
knife
|
|
2075
|
+
knock
|
|
2076
|
+
know
|
|
2077
|
+
lab
|
|
2078
|
+
label
|
|
2079
|
+
labor
|
|
2080
|
+
ladder
|
|
2081
|
+
lady
|
|
2082
|
+
lake
|
|
2083
|
+
lamp
|
|
2084
|
+
language
|
|
2085
|
+
laptop
|
|
2086
|
+
large
|
|
2087
|
+
later
|
|
2088
|
+
latin
|
|
2089
|
+
laugh
|
|
2090
|
+
laundry
|
|
2091
|
+
lava
|
|
2092
|
+
law
|
|
2093
|
+
lawn
|
|
2094
|
+
lawsuit
|
|
2095
|
+
layer
|
|
2096
|
+
lazy
|
|
2097
|
+
leader
|
|
2098
|
+
leaf
|
|
2099
|
+
learn
|
|
2100
|
+
leave
|
|
2101
|
+
lecture
|
|
2102
|
+
left
|
|
2103
|
+
leg
|
|
2104
|
+
legal
|
|
2105
|
+
legend
|
|
2106
|
+
leisure
|
|
2107
|
+
lemon
|
|
2108
|
+
lend
|
|
2109
|
+
length
|
|
2110
|
+
lens
|
|
2111
|
+
leopard
|
|
2112
|
+
lesson
|
|
2113
|
+
letter
|
|
2114
|
+
level
|
|
2115
|
+
liar
|
|
2116
|
+
liberty
|
|
2117
|
+
library
|
|
2118
|
+
license
|
|
2119
|
+
life
|
|
2120
|
+
lift
|
|
2121
|
+
light
|
|
2122
|
+
like
|
|
2123
|
+
limb
|
|
2124
|
+
limit
|
|
2125
|
+
link
|
|
2126
|
+
lion
|
|
2127
|
+
liquid
|
|
2128
|
+
list
|
|
2129
|
+
little
|
|
2130
|
+
live
|
|
2131
|
+
lizard
|
|
2132
|
+
load
|
|
2133
|
+
loan
|
|
2134
|
+
lobster
|
|
2135
|
+
local
|
|
2136
|
+
lock
|
|
2137
|
+
logic
|
|
2138
|
+
lonely
|
|
2139
|
+
long
|
|
2140
|
+
loop
|
|
2141
|
+
lottery
|
|
2142
|
+
loud
|
|
2143
|
+
lounge
|
|
2144
|
+
love
|
|
2145
|
+
loyal
|
|
2146
|
+
lucky
|
|
2147
|
+
luggage
|
|
2148
|
+
lumber
|
|
2149
|
+
lunar
|
|
2150
|
+
lunch
|
|
2151
|
+
luxury
|
|
2152
|
+
lyrics
|
|
2153
|
+
machine
|
|
2154
|
+
mad
|
|
2155
|
+
magic
|
|
2156
|
+
magnet
|
|
2157
|
+
maid
|
|
2158
|
+
mail
|
|
2159
|
+
main
|
|
2160
|
+
major
|
|
2161
|
+
make
|
|
2162
|
+
mammal
|
|
2163
|
+
man
|
|
2164
|
+
manage
|
|
2165
|
+
mandate
|
|
2166
|
+
mango
|
|
2167
|
+
mansion
|
|
2168
|
+
manual
|
|
2169
|
+
maple
|
|
2170
|
+
marble
|
|
2171
|
+
march
|
|
2172
|
+
margin
|
|
2173
|
+
marine
|
|
2174
|
+
market
|
|
2175
|
+
marriage
|
|
2176
|
+
mask
|
|
2177
|
+
mass
|
|
2178
|
+
master
|
|
2179
|
+
match
|
|
2180
|
+
material
|
|
2181
|
+
math
|
|
2182
|
+
matrix
|
|
2183
|
+
matter
|
|
2184
|
+
maximum
|
|
2185
|
+
maze
|
|
2186
|
+
meadow
|
|
2187
|
+
mean
|
|
2188
|
+
measure
|
|
2189
|
+
meat
|
|
2190
|
+
mechanic
|
|
2191
|
+
medal
|
|
2192
|
+
media
|
|
2193
|
+
melody
|
|
2194
|
+
melt
|
|
2195
|
+
member
|
|
2196
|
+
memory
|
|
2197
|
+
mention
|
|
2198
|
+
menu
|
|
2199
|
+
mercy
|
|
2200
|
+
merge
|
|
2201
|
+
merit
|
|
2202
|
+
merry
|
|
2203
|
+
mesh
|
|
2204
|
+
message
|
|
2205
|
+
metal
|
|
2206
|
+
method
|
|
2207
|
+
middle
|
|
2208
|
+
midnight
|
|
2209
|
+
milk
|
|
2210
|
+
million
|
|
2211
|
+
mimic
|
|
2212
|
+
mind
|
|
2213
|
+
minimum
|
|
2214
|
+
minor
|
|
2215
|
+
minute
|
|
2216
|
+
miracle
|
|
2217
|
+
mirror
|
|
2218
|
+
misery
|
|
2219
|
+
miss
|
|
2220
|
+
mistake
|
|
2221
|
+
mix
|
|
2222
|
+
mixed
|
|
2223
|
+
mixture
|
|
2224
|
+
mobile
|
|
2225
|
+
model
|
|
2226
|
+
modify
|
|
2227
|
+
mom
|
|
2228
|
+
moment
|
|
2229
|
+
monitor
|
|
2230
|
+
monkey
|
|
2231
|
+
monster
|
|
2232
|
+
month
|
|
2233
|
+
moon
|
|
2234
|
+
moral
|
|
2235
|
+
more
|
|
2236
|
+
morning
|
|
2237
|
+
mosquito
|
|
2238
|
+
mother
|
|
2239
|
+
motion
|
|
2240
|
+
motor
|
|
2241
|
+
mountain
|
|
2242
|
+
mouse
|
|
2243
|
+
move
|
|
2244
|
+
movie
|
|
2245
|
+
much
|
|
2246
|
+
muffin
|
|
2247
|
+
mule
|
|
2248
|
+
multiply
|
|
2249
|
+
muscle
|
|
2250
|
+
museum
|
|
2251
|
+
mushroom
|
|
2252
|
+
music
|
|
2253
|
+
must
|
|
2254
|
+
mutual
|
|
2255
|
+
myself
|
|
2256
|
+
mystery
|
|
2257
|
+
myth
|
|
2258
|
+
naive
|
|
2259
|
+
name
|
|
2260
|
+
napkin
|
|
2261
|
+
narrow
|
|
2262
|
+
nasty
|
|
2263
|
+
nation
|
|
2264
|
+
nature
|
|
2265
|
+
near
|
|
2266
|
+
neck
|
|
2267
|
+
need
|
|
2268
|
+
negative
|
|
2269
|
+
neglect
|
|
2270
|
+
neither
|
|
2271
|
+
nephew
|
|
2272
|
+
nerve
|
|
2273
|
+
nest
|
|
2274
|
+
net
|
|
2275
|
+
network
|
|
2276
|
+
neutral
|
|
2277
|
+
never
|
|
2278
|
+
news
|
|
2279
|
+
next
|
|
2280
|
+
nice
|
|
2281
|
+
night
|
|
2282
|
+
noble
|
|
2283
|
+
noise
|
|
2284
|
+
nominee
|
|
2285
|
+
noodle
|
|
2286
|
+
normal
|
|
2287
|
+
north
|
|
2288
|
+
nose
|
|
2289
|
+
notable
|
|
2290
|
+
note
|
|
2291
|
+
nothing
|
|
2292
|
+
notice
|
|
2293
|
+
novel
|
|
2294
|
+
now
|
|
2295
|
+
nuclear
|
|
2296
|
+
number
|
|
2297
|
+
nurse
|
|
2298
|
+
nut
|
|
2299
|
+
oak
|
|
2300
|
+
obey
|
|
2301
|
+
object
|
|
2302
|
+
oblige
|
|
2303
|
+
obscure
|
|
2304
|
+
observe
|
|
2305
|
+
obtain
|
|
2306
|
+
obvious
|
|
2307
|
+
occur
|
|
2308
|
+
ocean
|
|
2309
|
+
october
|
|
2310
|
+
odor
|
|
2311
|
+
off
|
|
2312
|
+
offer
|
|
2313
|
+
office
|
|
2314
|
+
often
|
|
2315
|
+
oil
|
|
2316
|
+
okay
|
|
2317
|
+
old
|
|
2318
|
+
olive
|
|
2319
|
+
olympic
|
|
2320
|
+
omit
|
|
2321
|
+
once
|
|
2322
|
+
one
|
|
2323
|
+
onion
|
|
2324
|
+
online
|
|
2325
|
+
only
|
|
2326
|
+
open
|
|
2327
|
+
opera
|
|
2328
|
+
opinion
|
|
2329
|
+
oppose
|
|
2330
|
+
option
|
|
2331
|
+
orange
|
|
2332
|
+
orbit
|
|
2333
|
+
orchard
|
|
2334
|
+
order
|
|
2335
|
+
ordinary
|
|
2336
|
+
organ
|
|
2337
|
+
orient
|
|
2338
|
+
original
|
|
2339
|
+
orphan
|
|
2340
|
+
ostrich
|
|
2341
|
+
other
|
|
2342
|
+
outdoor
|
|
2343
|
+
outer
|
|
2344
|
+
output
|
|
2345
|
+
outside
|
|
2346
|
+
oval
|
|
2347
|
+
oven
|
|
2348
|
+
over
|
|
2349
|
+
own
|
|
2350
|
+
owner
|
|
2351
|
+
oxygen
|
|
2352
|
+
oyster
|
|
2353
|
+
ozone
|
|
2354
|
+
pact
|
|
2355
|
+
paddle
|
|
2356
|
+
page
|
|
2357
|
+
pair
|
|
2358
|
+
palace
|
|
2359
|
+
palm
|
|
2360
|
+
panda
|
|
2361
|
+
panel
|
|
2362
|
+
panic
|
|
2363
|
+
panther
|
|
2364
|
+
paper
|
|
2365
|
+
parade
|
|
2366
|
+
parent
|
|
2367
|
+
park
|
|
2368
|
+
parrot
|
|
2369
|
+
party
|
|
2370
|
+
pass
|
|
2371
|
+
patch
|
|
2372
|
+
path
|
|
2373
|
+
patient
|
|
2374
|
+
patrol
|
|
2375
|
+
pattern
|
|
2376
|
+
pause
|
|
2377
|
+
pave
|
|
2378
|
+
payment
|
|
2379
|
+
peace
|
|
2380
|
+
peanut
|
|
2381
|
+
pear
|
|
2382
|
+
peasant
|
|
2383
|
+
pelican
|
|
2384
|
+
pen
|
|
2385
|
+
penalty
|
|
2386
|
+
pencil
|
|
2387
|
+
people
|
|
2388
|
+
pepper
|
|
2389
|
+
perfect
|
|
2390
|
+
permit
|
|
2391
|
+
person
|
|
2392
|
+
pet
|
|
2393
|
+
phone
|
|
2394
|
+
photo
|
|
2395
|
+
phrase
|
|
2396
|
+
physical
|
|
2397
|
+
piano
|
|
2398
|
+
picnic
|
|
2399
|
+
picture
|
|
2400
|
+
piece
|
|
2401
|
+
pig
|
|
2402
|
+
pigeon
|
|
2403
|
+
pill
|
|
2404
|
+
pilot
|
|
2405
|
+
pink
|
|
2406
|
+
pioneer
|
|
2407
|
+
pipe
|
|
2408
|
+
pistol
|
|
2409
|
+
pitch
|
|
2410
|
+
pizza
|
|
2411
|
+
place
|
|
2412
|
+
planet
|
|
2413
|
+
plastic
|
|
2414
|
+
plate
|
|
2415
|
+
play
|
|
2416
|
+
please
|
|
2417
|
+
pledge
|
|
2418
|
+
pluck
|
|
2419
|
+
plug
|
|
2420
|
+
plunge
|
|
2421
|
+
poem
|
|
2422
|
+
poet
|
|
2423
|
+
point
|
|
2424
|
+
polar
|
|
2425
|
+
pole
|
|
2426
|
+
police
|
|
2427
|
+
pond
|
|
2428
|
+
pony
|
|
2429
|
+
pool
|
|
2430
|
+
popular
|
|
2431
|
+
portion
|
|
2432
|
+
position
|
|
2433
|
+
possible
|
|
2434
|
+
post
|
|
2435
|
+
potato
|
|
2436
|
+
pottery
|
|
2437
|
+
poverty
|
|
2438
|
+
powder
|
|
2439
|
+
power
|
|
2440
|
+
practice
|
|
2441
|
+
praise
|
|
2442
|
+
predict
|
|
2443
|
+
prefer
|
|
2444
|
+
prepare
|
|
2445
|
+
present
|
|
2446
|
+
pretty
|
|
2447
|
+
prevent
|
|
2448
|
+
price
|
|
2449
|
+
pride
|
|
2450
|
+
primary
|
|
2451
|
+
print
|
|
2452
|
+
priority
|
|
2453
|
+
prison
|
|
2454
|
+
private
|
|
2455
|
+
prize
|
|
2456
|
+
problem
|
|
2457
|
+
process
|
|
2458
|
+
produce
|
|
2459
|
+
profit
|
|
2460
|
+
program
|
|
2461
|
+
project
|
|
2462
|
+
promote
|
|
2463
|
+
proof
|
|
2464
|
+
property
|
|
2465
|
+
prosper
|
|
2466
|
+
protect
|
|
2467
|
+
proud
|
|
2468
|
+
provide
|
|
2469
|
+
public
|
|
2470
|
+
pudding
|
|
2471
|
+
pull
|
|
2472
|
+
pulp
|
|
2473
|
+
pulse
|
|
2474
|
+
pumpkin
|
|
2475
|
+
punch
|
|
2476
|
+
pupil
|
|
2477
|
+
puppy
|
|
2478
|
+
purchase
|
|
2479
|
+
purity
|
|
2480
|
+
purpose
|
|
2481
|
+
purse
|
|
2482
|
+
push
|
|
2483
|
+
put
|
|
2484
|
+
puzzle
|
|
2485
|
+
pyramid
|
|
2486
|
+
quality
|
|
2487
|
+
quantum
|
|
2488
|
+
quarter
|
|
2489
|
+
question
|
|
2490
|
+
quick
|
|
2491
|
+
quit
|
|
2492
|
+
quiz
|
|
2493
|
+
quote
|
|
2494
|
+
rabbit
|
|
2495
|
+
raccoon
|
|
2496
|
+
race
|
|
2497
|
+
rack
|
|
2498
|
+
radar
|
|
2499
|
+
radio
|
|
2500
|
+
rail
|
|
2501
|
+
rain
|
|
2502
|
+
raise
|
|
2503
|
+
rally
|
|
2504
|
+
ramp
|
|
2505
|
+
ranch
|
|
2506
|
+
random
|
|
2507
|
+
range
|
|
2508
|
+
rapid
|
|
2509
|
+
rare
|
|
2510
|
+
rate
|
|
2511
|
+
rather
|
|
2512
|
+
raven
|
|
2513
|
+
raw
|
|
2514
|
+
razor
|
|
2515
|
+
ready
|
|
2516
|
+
real
|
|
2517
|
+
reason
|
|
2518
|
+
rebel
|
|
2519
|
+
rebuild
|
|
2520
|
+
recall
|
|
2521
|
+
receive
|
|
2522
|
+
recipe
|
|
2523
|
+
record
|
|
2524
|
+
recycle
|
|
2525
|
+
reduce
|
|
2526
|
+
reflect
|
|
2527
|
+
reform
|
|
2528
|
+
refuse
|
|
2529
|
+
region
|
|
2530
|
+
regret
|
|
2531
|
+
regular
|
|
2532
|
+
reject
|
|
2533
|
+
relax
|
|
2534
|
+
release
|
|
2535
|
+
relief
|
|
2536
|
+
rely
|
|
2537
|
+
remain
|
|
2538
|
+
remember
|
|
2539
|
+
remind
|
|
2540
|
+
remove
|
|
2541
|
+
render
|
|
2542
|
+
renew
|
|
2543
|
+
rent
|
|
2544
|
+
reopen
|
|
2545
|
+
repair
|
|
2546
|
+
repeat
|
|
2547
|
+
replace
|
|
2548
|
+
report
|
|
2549
|
+
require
|
|
2550
|
+
rescue
|
|
2551
|
+
resemble
|
|
2552
|
+
resist
|
|
2553
|
+
resource
|
|
2554
|
+
response
|
|
2555
|
+
result
|
|
2556
|
+
retire
|
|
2557
|
+
retreat
|
|
2558
|
+
return
|
|
2559
|
+
reunion
|
|
2560
|
+
reveal
|
|
2561
|
+
review
|
|
2562
|
+
reward
|
|
2563
|
+
rhythm
|
|
2564
|
+
rib
|
|
2565
|
+
ribbon
|
|
2566
|
+
rice
|
|
2567
|
+
rich
|
|
2568
|
+
ride
|
|
2569
|
+
ridge
|
|
2570
|
+
rifle
|
|
2571
|
+
right
|
|
2572
|
+
rigid
|
|
2573
|
+
ring
|
|
2574
|
+
riot
|
|
2575
|
+
ripple
|
|
2576
|
+
risk
|
|
2577
|
+
ritual
|
|
2578
|
+
rival
|
|
2579
|
+
river
|
|
2580
|
+
road
|
|
2581
|
+
roast
|
|
2582
|
+
robot
|
|
2583
|
+
robust
|
|
2584
|
+
rocket
|
|
2585
|
+
romance
|
|
2586
|
+
roof
|
|
2587
|
+
rookie
|
|
2588
|
+
room
|
|
2589
|
+
rose
|
|
2590
|
+
rotate
|
|
2591
|
+
rough
|
|
2592
|
+
round
|
|
2593
|
+
route
|
|
2594
|
+
royal
|
|
2595
|
+
rubber
|
|
2596
|
+
rude
|
|
2597
|
+
rug
|
|
2598
|
+
rule
|
|
2599
|
+
run
|
|
2600
|
+
runway
|
|
2601
|
+
rural
|
|
2602
|
+
sad
|
|
2603
|
+
saddle
|
|
2604
|
+
sadness
|
|
2605
|
+
safe
|
|
2606
|
+
sail
|
|
2607
|
+
salad
|
|
2608
|
+
salmon
|
|
2609
|
+
salon
|
|
2610
|
+
salt
|
|
2611
|
+
salute
|
|
2612
|
+
same
|
|
2613
|
+
sample
|
|
2614
|
+
sand
|
|
2615
|
+
satisfy
|
|
2616
|
+
satoshi
|
|
2617
|
+
sauce
|
|
2618
|
+
sausage
|
|
2619
|
+
save
|
|
2620
|
+
say
|
|
2621
|
+
scale
|
|
2622
|
+
scan
|
|
2623
|
+
scare
|
|
2624
|
+
scatter
|
|
2625
|
+
scene
|
|
2626
|
+
scheme
|
|
2627
|
+
school
|
|
2628
|
+
science
|
|
2629
|
+
scissors
|
|
2630
|
+
scorpion
|
|
2631
|
+
scout
|
|
2632
|
+
scrap
|
|
2633
|
+
screen
|
|
2634
|
+
script
|
|
2635
|
+
scrub
|
|
2636
|
+
sea
|
|
2637
|
+
search
|
|
2638
|
+
season
|
|
2639
|
+
seat
|
|
2640
|
+
second
|
|
2641
|
+
secret
|
|
2642
|
+
section
|
|
2643
|
+
security
|
|
2644
|
+
seed
|
|
2645
|
+
seek
|
|
2646
|
+
segment
|
|
2647
|
+
select
|
|
2648
|
+
sell
|
|
2649
|
+
seminar
|
|
2650
|
+
senior
|
|
2651
|
+
sense
|
|
2652
|
+
sentence
|
|
2653
|
+
series
|
|
2654
|
+
service
|
|
2655
|
+
session
|
|
2656
|
+
settle
|
|
2657
|
+
setup
|
|
2658
|
+
seven
|
|
2659
|
+
shadow
|
|
2660
|
+
shaft
|
|
2661
|
+
shallow
|
|
2662
|
+
share
|
|
2663
|
+
shed
|
|
2664
|
+
shell
|
|
2665
|
+
sheriff
|
|
2666
|
+
shield
|
|
2667
|
+
shift
|
|
2668
|
+
shine
|
|
2669
|
+
ship
|
|
2670
|
+
shiver
|
|
2671
|
+
shock
|
|
2672
|
+
shoe
|
|
2673
|
+
shoot
|
|
2674
|
+
shop
|
|
2675
|
+
short
|
|
2676
|
+
shoulder
|
|
2677
|
+
shove
|
|
2678
|
+
shrimp
|
|
2679
|
+
shrug
|
|
2680
|
+
shuffle
|
|
2681
|
+
shy
|
|
2682
|
+
sibling
|
|
2683
|
+
sick
|
|
2684
|
+
side
|
|
2685
|
+
siege
|
|
2686
|
+
sight
|
|
2687
|
+
sign
|
|
2688
|
+
silent
|
|
2689
|
+
silk
|
|
2690
|
+
silly
|
|
2691
|
+
silver
|
|
2692
|
+
similar
|
|
2693
|
+
simple
|
|
2694
|
+
since
|
|
2695
|
+
sing
|
|
2696
|
+
siren
|
|
2697
|
+
sister
|
|
2698
|
+
situate
|
|
2699
|
+
six
|
|
2700
|
+
size
|
|
2701
|
+
skate
|
|
2702
|
+
sketch
|
|
2703
|
+
ski
|
|
2704
|
+
skill
|
|
2705
|
+
skin
|
|
2706
|
+
skirt
|
|
2707
|
+
skull
|
|
2708
|
+
slab
|
|
2709
|
+
slam
|
|
2710
|
+
sleep
|
|
2711
|
+
slender
|
|
2712
|
+
slice
|
|
2713
|
+
slide
|
|
2714
|
+
slight
|
|
2715
|
+
slim
|
|
2716
|
+
slogan
|
|
2717
|
+
slot
|
|
2718
|
+
slow
|
|
2719
|
+
slush
|
|
2720
|
+
small
|
|
2721
|
+
smart
|
|
2722
|
+
smile
|
|
2723
|
+
smoke
|
|
2724
|
+
smooth
|
|
2725
|
+
snack
|
|
2726
|
+
snake
|
|
2727
|
+
snap
|
|
2728
|
+
sniff
|
|
2729
|
+
snow
|
|
2730
|
+
soap
|
|
2731
|
+
soccer
|
|
2732
|
+
social
|
|
2733
|
+
sock
|
|
2734
|
+
soda
|
|
2735
|
+
soft
|
|
2736
|
+
solar
|
|
2737
|
+
soldier
|
|
2738
|
+
solid
|
|
2739
|
+
solution
|
|
2740
|
+
solve
|
|
2741
|
+
someone
|
|
2742
|
+
song
|
|
2743
|
+
soon
|
|
2744
|
+
sorry
|
|
2745
|
+
sort
|
|
2746
|
+
soul
|
|
2747
|
+
sound
|
|
2748
|
+
soup
|
|
2749
|
+
source
|
|
2750
|
+
south
|
|
2751
|
+
space
|
|
2752
|
+
spare
|
|
2753
|
+
spatial
|
|
2754
|
+
spawn
|
|
2755
|
+
speak
|
|
2756
|
+
special
|
|
2757
|
+
speed
|
|
2758
|
+
spell
|
|
2759
|
+
spend
|
|
2760
|
+
sphere
|
|
2761
|
+
spice
|
|
2762
|
+
spider
|
|
2763
|
+
spike
|
|
2764
|
+
spin
|
|
2765
|
+
spirit
|
|
2766
|
+
split
|
|
2767
|
+
spoil
|
|
2768
|
+
sponsor
|
|
2769
|
+
spoon
|
|
2770
|
+
sport
|
|
2771
|
+
spot
|
|
2772
|
+
spray
|
|
2773
|
+
spread
|
|
2774
|
+
spring
|
|
2775
|
+
spy
|
|
2776
|
+
square
|
|
2777
|
+
squeeze
|
|
2778
|
+
squirrel
|
|
2779
|
+
stable
|
|
2780
|
+
stadium
|
|
2781
|
+
staff
|
|
2782
|
+
stage
|
|
2783
|
+
stairs
|
|
2784
|
+
stamp
|
|
2785
|
+
stand
|
|
2786
|
+
start
|
|
2787
|
+
state
|
|
2788
|
+
stay
|
|
2789
|
+
steak
|
|
2790
|
+
steel
|
|
2791
|
+
stem
|
|
2792
|
+
step
|
|
2793
|
+
stereo
|
|
2794
|
+
stick
|
|
2795
|
+
still
|
|
2796
|
+
sting
|
|
2797
|
+
stock
|
|
2798
|
+
stomach
|
|
2799
|
+
stone
|
|
2800
|
+
stool
|
|
2801
|
+
story
|
|
2802
|
+
stove
|
|
2803
|
+
strategy
|
|
2804
|
+
street
|
|
2805
|
+
strike
|
|
2806
|
+
strong
|
|
2807
|
+
struggle
|
|
2808
|
+
student
|
|
2809
|
+
stuff
|
|
2810
|
+
stumble
|
|
2811
|
+
style
|
|
2812
|
+
subject
|
|
2813
|
+
submit
|
|
2814
|
+
subway
|
|
2815
|
+
success
|
|
2816
|
+
such
|
|
2817
|
+
sudden
|
|
2818
|
+
suffer
|
|
2819
|
+
sugar
|
|
2820
|
+
suggest
|
|
2821
|
+
suit
|
|
2822
|
+
summer
|
|
2823
|
+
sun
|
|
2824
|
+
sunny
|
|
2825
|
+
sunset
|
|
2826
|
+
super
|
|
2827
|
+
supply
|
|
2828
|
+
supreme
|
|
2829
|
+
sure
|
|
2830
|
+
surface
|
|
2831
|
+
surge
|
|
2832
|
+
surprise
|
|
2833
|
+
surround
|
|
2834
|
+
survey
|
|
2835
|
+
suspect
|
|
2836
|
+
sustain
|
|
2837
|
+
swallow
|
|
2838
|
+
swamp
|
|
2839
|
+
swap
|
|
2840
|
+
swarm
|
|
2841
|
+
swear
|
|
2842
|
+
sweet
|
|
2843
|
+
swift
|
|
2844
|
+
swim
|
|
2845
|
+
swing
|
|
2846
|
+
switch
|
|
2847
|
+
sword
|
|
2848
|
+
symbol
|
|
2849
|
+
symptom
|
|
2850
|
+
syrup
|
|
2851
|
+
system
|
|
2852
|
+
table
|
|
2853
|
+
tackle
|
|
2854
|
+
tag
|
|
2855
|
+
tail
|
|
2856
|
+
talent
|
|
2857
|
+
talk
|
|
2858
|
+
tank
|
|
2859
|
+
tape
|
|
2860
|
+
target
|
|
2861
|
+
task
|
|
2862
|
+
taste
|
|
2863
|
+
tattoo
|
|
2864
|
+
taxi
|
|
2865
|
+
teach
|
|
2866
|
+
team
|
|
2867
|
+
tell
|
|
2868
|
+
ten
|
|
2869
|
+
tenant
|
|
2870
|
+
tennis
|
|
2871
|
+
tent
|
|
2872
|
+
term
|
|
2873
|
+
test
|
|
2874
|
+
text
|
|
2875
|
+
thank
|
|
2876
|
+
that
|
|
2877
|
+
theme
|
|
2878
|
+
then
|
|
2879
|
+
theory
|
|
2880
|
+
there
|
|
2881
|
+
they
|
|
2882
|
+
thing
|
|
2883
|
+
this
|
|
2884
|
+
thought
|
|
2885
|
+
three
|
|
2886
|
+
thrive
|
|
2887
|
+
throw
|
|
2888
|
+
thumb
|
|
2889
|
+
thunder
|
|
2890
|
+
ticket
|
|
2891
|
+
tide
|
|
2892
|
+
tiger
|
|
2893
|
+
tilt
|
|
2894
|
+
timber
|
|
2895
|
+
time
|
|
2896
|
+
tiny
|
|
2897
|
+
tip
|
|
2898
|
+
tired
|
|
2899
|
+
tissue
|
|
2900
|
+
title
|
|
2901
|
+
toast
|
|
2902
|
+
tobacco
|
|
2903
|
+
today
|
|
2904
|
+
toddler
|
|
2905
|
+
toe
|
|
2906
|
+
together
|
|
2907
|
+
toilet
|
|
2908
|
+
token
|
|
2909
|
+
tomato
|
|
2910
|
+
tomorrow
|
|
2911
|
+
tone
|
|
2912
|
+
tongue
|
|
2913
|
+
tonight
|
|
2914
|
+
tool
|
|
2915
|
+
tooth
|
|
2916
|
+
top
|
|
2917
|
+
topic
|
|
2918
|
+
topple
|
|
2919
|
+
torch
|
|
2920
|
+
tornado
|
|
2921
|
+
tortoise
|
|
2922
|
+
toss
|
|
2923
|
+
total
|
|
2924
|
+
tourist
|
|
2925
|
+
toward
|
|
2926
|
+
tower
|
|
2927
|
+
town
|
|
2928
|
+
toy
|
|
2929
|
+
track
|
|
2930
|
+
trade
|
|
2931
|
+
traffic
|
|
2932
|
+
tragic
|
|
2933
|
+
train
|
|
2934
|
+
transfer
|
|
2935
|
+
trap
|
|
2936
|
+
trash
|
|
2937
|
+
travel
|
|
2938
|
+
tray
|
|
2939
|
+
treat
|
|
2940
|
+
tree
|
|
2941
|
+
trend
|
|
2942
|
+
trial
|
|
2943
|
+
tribe
|
|
2944
|
+
trick
|
|
2945
|
+
trigger
|
|
2946
|
+
trim
|
|
2947
|
+
trip
|
|
2948
|
+
trophy
|
|
2949
|
+
trouble
|
|
2950
|
+
truck
|
|
2951
|
+
true
|
|
2952
|
+
truly
|
|
2953
|
+
trumpet
|
|
2954
|
+
trust
|
|
2955
|
+
truth
|
|
2956
|
+
try
|
|
2957
|
+
tube
|
|
2958
|
+
tuition
|
|
2959
|
+
tumble
|
|
2960
|
+
tuna
|
|
2961
|
+
tunnel
|
|
2962
|
+
turkey
|
|
2963
|
+
turn
|
|
2964
|
+
turtle
|
|
2965
|
+
twelve
|
|
2966
|
+
twenty
|
|
2967
|
+
twice
|
|
2968
|
+
twin
|
|
2969
|
+
twist
|
|
2970
|
+
two
|
|
2971
|
+
type
|
|
2972
|
+
typical
|
|
2973
|
+
ugly
|
|
2974
|
+
umbrella
|
|
2975
|
+
unable
|
|
2976
|
+
unaware
|
|
2977
|
+
uncle
|
|
2978
|
+
uncover
|
|
2979
|
+
under
|
|
2980
|
+
undo
|
|
2981
|
+
unfair
|
|
2982
|
+
unfold
|
|
2983
|
+
unhappy
|
|
2984
|
+
uniform
|
|
2985
|
+
unique
|
|
2986
|
+
unit
|
|
2987
|
+
universe
|
|
2988
|
+
unknown
|
|
2989
|
+
unlock
|
|
2990
|
+
until
|
|
2991
|
+
unusual
|
|
2992
|
+
unveil
|
|
2993
|
+
update
|
|
2994
|
+
upgrade
|
|
2995
|
+
uphold
|
|
2996
|
+
upon
|
|
2997
|
+
upper
|
|
2998
|
+
upset
|
|
2999
|
+
urban
|
|
3000
|
+
urge
|
|
3001
|
+
usage
|
|
3002
|
+
use
|
|
3003
|
+
used
|
|
3004
|
+
useful
|
|
3005
|
+
useless
|
|
3006
|
+
usual
|
|
3007
|
+
utility
|
|
3008
|
+
vacant
|
|
3009
|
+
vacuum
|
|
3010
|
+
vague
|
|
3011
|
+
valid
|
|
3012
|
+
valley
|
|
3013
|
+
valve
|
|
3014
|
+
van
|
|
3015
|
+
vanish
|
|
3016
|
+
vapor
|
|
3017
|
+
various
|
|
3018
|
+
vast
|
|
3019
|
+
vault
|
|
3020
|
+
vehicle
|
|
3021
|
+
velvet
|
|
3022
|
+
vendor
|
|
3023
|
+
venture
|
|
3024
|
+
venue
|
|
3025
|
+
verb
|
|
3026
|
+
verify
|
|
3027
|
+
version
|
|
3028
|
+
very
|
|
3029
|
+
vessel
|
|
3030
|
+
veteran
|
|
3031
|
+
viable
|
|
3032
|
+
vibrant
|
|
3033
|
+
vicious
|
|
3034
|
+
victory
|
|
3035
|
+
video
|
|
3036
|
+
view
|
|
3037
|
+
village
|
|
3038
|
+
vintage
|
|
3039
|
+
violin
|
|
3040
|
+
virtual
|
|
3041
|
+
virus
|
|
3042
|
+
visa
|
|
3043
|
+
visit
|
|
3044
|
+
visual
|
|
3045
|
+
vital
|
|
3046
|
+
vivid
|
|
3047
|
+
vocal
|
|
3048
|
+
voice
|
|
3049
|
+
void
|
|
3050
|
+
volcano
|
|
3051
|
+
volume
|
|
3052
|
+
vote
|
|
3053
|
+
voyage
|
|
3054
|
+
wage
|
|
3055
|
+
wagon
|
|
3056
|
+
wait
|
|
3057
|
+
walk
|
|
3058
|
+
wall
|
|
3059
|
+
walnut
|
|
3060
|
+
want
|
|
3061
|
+
warfare
|
|
3062
|
+
warm
|
|
3063
|
+
warrior
|
|
3064
|
+
wash
|
|
3065
|
+
wasp
|
|
3066
|
+
waste
|
|
3067
|
+
water
|
|
3068
|
+
wave
|
|
3069
|
+
way
|
|
3070
|
+
wealth
|
|
3071
|
+
weapon
|
|
3072
|
+
wear
|
|
3073
|
+
weasel
|
|
3074
|
+
weather
|
|
3075
|
+
web
|
|
3076
|
+
wedding
|
|
3077
|
+
weekend
|
|
3078
|
+
weird
|
|
3079
|
+
welcome
|
|
3080
|
+
west
|
|
3081
|
+
wet
|
|
3082
|
+
whale
|
|
3083
|
+
what
|
|
3084
|
+
wheat
|
|
3085
|
+
wheel
|
|
3086
|
+
when
|
|
3087
|
+
where
|
|
3088
|
+
whip
|
|
3089
|
+
whisper
|
|
3090
|
+
wide
|
|
3091
|
+
width
|
|
3092
|
+
wife
|
|
3093
|
+
wild
|
|
3094
|
+
will
|
|
3095
|
+
win
|
|
3096
|
+
window
|
|
3097
|
+
wine
|
|
3098
|
+
wing
|
|
3099
|
+
wink
|
|
3100
|
+
winner
|
|
3101
|
+
winter
|
|
3102
|
+
wire
|
|
3103
|
+
wisdom
|
|
3104
|
+
wise
|
|
3105
|
+
wish
|
|
3106
|
+
witness
|
|
3107
|
+
wolf
|
|
3108
|
+
woman
|
|
3109
|
+
wonder
|
|
3110
|
+
wood
|
|
3111
|
+
wool
|
|
3112
|
+
word
|
|
3113
|
+
work
|
|
3114
|
+
world
|
|
3115
|
+
worry
|
|
3116
|
+
worth
|
|
3117
|
+
wrap
|
|
3118
|
+
wreck
|
|
3119
|
+
wrestle
|
|
3120
|
+
wrist
|
|
3121
|
+
write
|
|
3122
|
+
wrong
|
|
3123
|
+
yard
|
|
3124
|
+
year
|
|
3125
|
+
yellow
|
|
3126
|
+
you
|
|
3127
|
+
young
|
|
3128
|
+
youth
|
|
3129
|
+
zebra
|
|
3130
|
+
zero
|
|
3131
|
+
zone
|
|
3132
|
+
zoo`.split(`
|
|
3133
|
+
`)),ux={0:`ED25519`,1:`Secp256k1`,2:`Secp256r1`,3:`MultiSig`,5:`ZkLogin`,6:`Passkey`};function dx(e){let{prefix:t,words:n}=Fy.decode(e);if(t!==`suiprivkey`)throw Error(`invalid private key prefix`);let r=new Uint8Array(Fy.fromWords(n)),i=r.slice(1);return{scheme:ux[r[0]],secretKey:i}}var fx=`external-proposal-alpha-2026-05-25`,px=`proposal-review-model-alpha-2026-05-25`;yh();var mx=N().refine(e=>{let t=new Date(e);return!Number.isNaN(t.getTime())&&t.toISOString()===e},`Expected ISO 8601 UTC timestamp`),hx=/transaction\s*bytes?|transactionBytes|tx\s*bytes?|serialized\s*transaction|serializedTransaction|signed\s*transaction|signing\s*request|signingRequest|wallet\s*authorization|walletAuthorization|private\s*key|privateKey|secret\s*key|secretKey|seed\s*phrase|mnemonic|suiprivkey|signature|route[-_\s]*selected|routeSelectedPlan|bcs\s*transaction|programmable\s*transaction/i,gx=/(?:0x[0-9a-fA-F]{160,}|[A-Za-z0-9+/_=-]{160,})/,_x=/suiprivkey1[023456789acdefghjklmnpqrstuvwxyz]+/gi,vx=/(^|[^0-9a-fA-F])(?:0x)?[0-9a-fA-F]{64}($|[^0-9a-fA-F])/,yx=/(^|[^A-Za-z0-9+/_=-])(?:[A-Za-z0-9+/]{43}=|[A-Za-z0-9+/]{44}|[A-Za-z0-9_-]{43,44})($|[^A-Za-z0-9+/_=-])/,bx=/^(?:0|[1-9][0-9]*)(?:\.[0-9]+)?$/,xx=[12,15,18,21,24];function Sx(e,t,n={}){return N().min(1).max(e).superRefine((e,r)=>{(hx.test(e)||gx.test(e)||wx(e)||Tx(e)||!n.allowRawSecretLikeText&&Ex(e))&&r.addIssue({code:`custom`,message:`${t} must not contain executable, signing, private-key, mnemonic, route-selected, or encoded secret-like material`})})}function Cx(e,t){return Sx(e,t,{allowRawSecretLikeText:!0})}function wx(e){return(e.match(_x)??[]).some(e=>{try{return dx(e.toLowerCase()),!0}catch{return e.toLowerCase().startsWith(`suiprivkey1`)}})}function Tx(e){let t=e.normalize(`NFKD`).toLowerCase().replace(/[^a-z]+/g,` `).trim().split(/\s+/).filter(Boolean);for(let e of xx)if(!(t.length<e)){for(let n=0;n<=t.length-e;n+=1)if(cx(t.slice(n,n+e).join(` `),lx))return!0}return!1}function Ex(e){return vx.test(e)||yx.test(e)}var Dx=Sx(80,`amountDisplay`).refine(e=>bx.test(e)&&/[1-9]/.test(e),{message:`Expected a positive decimal display amount`}),Ox=R({kind:V([`mcp_server`,`ai_client`,`user`,`other`]),name:Sx(120,`source.name`),reference:Sx(256,`source.reference`).optional()}).strict(),kx=R({address:hb.optional(),label:Sx(120,`party.label`).optional()}).strict().refine(e=>e.address!==void 0||e.label!==void 0,{message:`Expected address or label`}),Ax=R({amountDisplay:Dx,amountKind:H(`display_proposal`).default(`display_proposal`),symbol:Sx(64,`amount.symbol`).optional(),coinType:Cx(512,`amount.coinType`).optional(),denomination:Sx(64,`amount.denomination`).optional()}).strict(),jx=R({packageId:Cx(128,`action.target.packageId`).optional(),module:Sx(128,`action.target.module`).optional(),function:Sx(128,`action.target.function`).optional(),objectId:Cx(128,`action.target.objectId`).optional(),label:Sx(120,`action.target.label`).optional()}).strict().refine(e=>e.packageId!==void 0||e.module!==void 0||e.function!==void 0||e.objectId!==void 0||e.label!==void 0,{message:`Expected at least one action target field`}),Mx=R({direction:V([`outgoing`,`expected_incoming`,`fee`]),amount:Ax,recipient:kx.optional(),description:Sx(512,`assetFlow.description`).optional()}).strict(),Nx=R({id:Sx(120,`proposal.id`),source:Ox,network:H(`sui:mainnet`),createdAt:mx,expiresAt:mx.optional(),purpose:Sx(512,`purpose`),assumptions:L(Sx(512,`assumptions[]`)).max(20).optional(),requiredUserChoices:L(Sx(512,`requiredUserChoices[]`)).max(20).optional()}).strict(),Px=$f(`type`,[Nx.extend({type:H(`payment`),payment:R({amount:Ax,recipient:kx,target:Sx(512,`payment.target`).optional()}).strict()}).strict(),Nx.extend({type:H(`sui_action`),action:R({actionKind:Sx(120,`action.actionKind`),target:jx,recipient:kx.optional(),assetFlow:L(Mx).max(20).optional()}).strict()}).strict()]),Fx=R({id:N(),label:N(),status:V([`pass`,`warning`,`fail`]),message:N(),source:V([`proposal`,`adapter`,`registry`,`quote`,`wallet`,`simulation`,`network`])}).strict(),Ix=R({id:N(),label:N(),reason:N()}).strict(),Lx=R({modelVersion:H(px),contractVersion:H(fx),proposalId:N(),proposalType:V([`payment`,`sui_action`]),proposalSource:Ox,proposedAction:R({kind:V([`payment`,`sui_action`]),title:N(),purpose:N(),network:H(`sui:mainnet`),recipient:kx.optional(),target:z([N(),jx]).optional()}).strict(),assetFlow:R({outgoing:L(Ax),expectedIncoming:L(Ax),fees:L(Ax)}).strict(),recipients:L(kx),targets:L(z([N(),jx])),evidenceUsed:L(R({id:N(),label:N(),source:V([`external_proposal`,`local_schema`]),summary:N()}).strict()),missingEvidence:L(Ix),requiredUserChoices:L(Ix),unsupportedClaims:L(R({id:N(),label:N(),reason:N()}).strict()),rejectedExecutableFields:L(R({fieldName:N(),reason:N()}).strict()),freshness:R({proposalCreatedAt:mx,proposalExpiresAt:mx.optional(),evaluatedAt:mx,status:V([`current`,`expired`,`created_in_future`,`expiry_not_provided`]),reason:N()}).strict(),blockingChecks:L(Fx),nonSignableReason:R({code:H(`external_proposal_review_only`),message:N(),blockedCapabilities:L(N())}).strict()}).strict();R({requestedIntent:Px,implementationStatus:H(`read_only_review_only`),contractVersion:H(fx)}).strict();var Rx=[`adapter_not_implemented`,`producer_stage_missing`,`wallet_review_contract_emit_missing`,`network_mismatch`,`insufficient_balance`,`insufficient_gas`,`allowlist_violation`,`asset_mismatch`,`amount_mismatch`,`wallet_mismatch`,`unsupported_action`,`object_resolution_failed`,`proposal_review_only`],zx=[`review_evidence_stale`,`quote_stale`,`quote_unavailable`,`simulation_transient_failure`,`review_update_failed`,`wallet_connection_changed`],Bx=[`proposed`,`awaiting_wallet`,`wallet_connected`,`ready_for_wallet_review`,`refresh_required`,`blocked`,`expired`],Vx=[`humanReadableReview`,`simulation`,`transactionReviewData`,`ptbVisualization`,`assetFlowActual`,`beforeAfterBalance`];yh();var Hx=V([`client.core.simulateTransaction`,`client.transactionExecutionService.simulateTransaction`]),Ux=`ptb-visualization-contract-alpha-2026-05-25`,Wx=[`proposedAction`,`assetFlow`,`recipients`,`targets`,`evidenceUsed`,`missingEvidence`,`requiredUserChoices`,`unsupportedClaims`,`freshness`,`blockingChecks`],Gx=[`effects`,`balanceChanges`,`objectTypes`,`transaction`],Kx=[`transaction_bytes`,`serialized_transaction`,`wallet_signature_request`,`private_key_material`,`wallet_authorization`,`signing_data`,`signing_readiness`,`payment_execution_readiness`],qx=[`transaction_building_input`,`wallet_authorization`,`signing_data`,`signing_readiness`,`payment_execution_readiness`,`route_recommendation`],Jx=mb,Yx=`MIST`,Xx=[`checkedAt`,`expiresAt`],Zx=[`checkedAt`,`expiryStatus`],Qx=[`rawAmount`,`asset`,`amountRole`],$x=[`minOutRaw`,`asset`,`amountRole`],eS=[`gasBudgetRaw`,`asset`,`amountRole`],tS=[`gasUsedRaw`,`asset`,`amountRole`],nS=[`checkedAt`,`gasResolutionStatus`,`unresolvedReason`],rS=[`balanceChanges`,`asset`,`amountRole`],iS=[`coinType`,`decimals`],aS=[`quoteEvidenceId`,`minOutRaw`],oS=[`maxSlippageBps`,`userSelection`],sS=[`maxSlippageBps`,`minOutRaw`],cS=[`ownerAccount`,`objects`],lS=[`pinned_sdk_registry`,`verified_mainnet_onchain_metadata`,`wallet_account_read`,`quote_evidence`,`review_time_simulation`,`validated_request_fact`,`user_explicit_choice`],uS=[`input`,`expected_output`,`minimum_output`,`gas_budget`,`gas_used`,`fee`,`balance_delta`],dS={input:{kinds:[`validated_request_fact`,`wallet_account_read`,`user_explicit_choice`],fields:Qx},expected_output:{kinds:[`quote_evidence`,`review_time_simulation`],fields:Qx},minimum_output:{kinds:[`quote_evidence`],fields:$x},gas_budget:{kinds:[`review_time_simulation`],fields:eS},gas_used:{kinds:[`review_time_simulation`],fields:tS},fee:{kinds:[`review_time_simulation`],fields:Qx},balance_delta:{kinds:[`review_time_simulation`],fields:rS}},fS={pinned_sdk_metadata:{kinds:[`pinned_sdk_registry`],fields:iS},verified_mainnet_onchain_metadata:{kinds:[`verified_mainnet_onchain_metadata`],fields:iS}},pS={user_explicit:{kinds:[`user_explicit_choice`],fields:oS},adapter_policy_from_quote_evidence:{kinds:[`quote_evidence`],fields:sS}},mS={kinds:[`review_time_simulation`],fields:nS},hS={kinds:[`quote_evidence`],fields:aS},gS={kinds:[`validated_request_fact`],fields:Xx},_S={kinds:[`validated_request_fact`],fields:Zx},vS={raw_quantity_amount:{byRole:dS},unit_metadata:{bySource:fS},gas_unresolved_status:mS,expiry_status:{current:gS,expired:gS,not_provided:_S,not_applicable:_S},quote_min_out:hS,slippage_policy:{bySource:pS},object_ownership:{kinds:[`wallet_account_read`],fields:cS},simulation_result:{kinds:[`review_time_simulation`],fields:Gx}},yS={gasBudgetClaimId:{factKind:`raw_quantity_amount`,role:`gas_budget`,assetCoinType:Jx,rawUnit:Yx},gasUsedClaimId:{factKind:`raw_quantity_amount`,role:`gas_used`,assetCoinType:Jx,rawUnit:Yx},gasObjectOwnershipClaimId:{factKind:`object_ownership`,ownership:`owned_by_account`}},bS=N().refine(e=>{let t=new Date(e);return!Number.isNaN(t.getTime())&&t.toISOString()===e},`Expected ISO 8601 UTC timestamp`),xS=Cb(`unsigned integer`),SS=N().regex(/^0x[0-9a-fA-F]{1,64}$/,{message:`Expected a Sui object id`}),CS=N().min(1).max(512).refine(e=>{try{return Eb(e)===e}catch{return!1}},`Expected a normalized Sui struct tag coin type`),X=N().min(1).max(120),wS=R({symbol:N().min(1).max(64).optional(),coinType:CS}).strict(),TS=/transaction\s*bytes?|tx\s*bytes?|serialized\s*transaction|serializedTransaction|signed\s*transaction|signing\s*request|signingRequest|wallet\s*authorization|walletAuthorization|private\s*key|privateKey|secret\s*key|secretKey|seed\s*phrase|mnemonic|suiprivkey|signature|bcs\s*transaction/i,ES=/(?:0x[0-9a-fA-F]{160,}|[A-Za-z0-9+/_=-]{160,})/;function DS(e,t){return N().min(1).max(e).superRefine((e,n)=>{(TS.test(e)||ES.test(e))&&n.addIssue({code:`custom`,message:`${t} must not contain executable transaction, signing, private-key, mnemonic, or long encoded material`})})}function OS(e,t){let n=new Set(e);return t.filter(e=>!n.has(e))}function kS(e,t,n,r,i){let a=OS(t,n);a.length!==0&&e.addIssue({code:`custom`,path:r,message:`${i} must include ${a.join(`, `)}`})}function AS(e,t,n,r,i){kS(e,t,n,r,i)}function jS(e,t,n){e.addIssue({code:`custom`,path:t,message:`${n} must match referenced evidence claim`})}function Z(e,t,n,r,i){t!==n&&jS(e,r,i)}function MS(e,t,n,r,i){let a=new Set(t),o=new Set(n);if(a.size!==o.size){jS(e,r,i);return}for(let t of a)if(!o.has(t)){jS(e,r,i);return}}function NS(e,t,n,r,i){(t.symbol!==n.symbol||t.coinType!==n.coinType)&&jS(e,r,i)}function PS(e,t,n,r,i){try{Eb(t.coinType)!==n&&jS(e,r,i)}catch{jS(e,r,i)}}var FS=R({kind:V([`natural_language_intent`,`external_proposal`,`mcp_action_request`,`local_review_request`]),sourceId:N().min(1).max(160),capturedAt:bS,authority:H(`untrusted_until_review_regenerates_and_verifies`),userSelectionSource:V([`user_explicit`,`prior_user_explicit_context`]).optional()}).strict(),IS=R({id:X,kind:V(lS),network:H(`sui:mainnet`),source:N().min(1).max(240),verifiedAt:bS,fields:L(N().min(1).max(120)).min(1)}).strict(),LS=$f(`factKind`,[R({id:X,factKind:H(`raw_quantity_amount`),sourceEvidenceId:X,role:V(uS),asset:wS,rawAmount:xS}).strict(),R({id:X,factKind:H(`unit_metadata`),sourceEvidenceId:X,source:V([`pinned_sdk_metadata`,`verified_mainnet_onchain_metadata`]),coinType:CS,decimals:P().int().min(0).max(255)}).strict(),R({id:X,factKind:H(`gas_unresolved_status`),sourceEvidenceId:X,checkedAt:bS,status:H(`unresolved`),reason:N().min(1).max(240)}).strict(),R({id:X,factKind:H(`expiry_status`),sourceEvidenceId:X,checkedAt:bS,status:V([`current`,`expired`,`not_provided`,`not_applicable`]),expiresAt:bS.optional(),reason:N().min(1).max(240).optional()}).strict(),R({id:X,factKind:H(`quote_min_out`),sourceEvidenceId:X,quoteEvidenceId:N().min(1).max(120),minOutRaw:xS}).strict(),R({id:X,factKind:H(`slippage_policy`),sourceEvidenceId:X,policySource:V([`user_explicit`,`adapter_policy_from_quote_evidence`]),maxSlippageBps:P().int().min(0).max(1e4),minOutRaw:xS.optional()}).strict(),R({id:X,factKind:H(`object_ownership`),sourceEvidenceId:X,objectId:SS,ownerAccount:hb,ownership:V([`owned_by_account`,`shared_object`,`immutable_or_package`,`not_owned_by_account`])}).strict(),R({id:X,factKind:H(`simulation_result`),sourceEvidenceId:X,provider:Hx,checksEnabled:H(!0),simulatedAt:bS,status:V([`success`,`failed`,`unavailable`]),requiredFields:L(V(Gx)).min(Gx.length),missingFields:L(V(Gx)).default([]),failureReason:N().min(1).max(240).optional()}).strict()]),RS=R({id:X,role:V(uS),asset:wS,rawAmount:xS,unit:R({decimals:P().int().min(0).max(255),source:V([`pinned_sdk_metadata`,`verified_mainnet_onchain_metadata`]),sourceField:N().min(1).max(160),unitClaimId:X}).strict(),amountClaimId:X,displayOnly:R({amountDisplay:N().min(1).max(120),reason:H(`presentation_only_not_signing_input`)}).strict().optional()}).strict(),zS=R({objectId:SS,ownerAccount:hb,ownershipClaimId:X}).strict(),BS=R({source:H(`review_time_simulation`),checkedAt:bS,gasBudgetRaw:xS.optional(),gasBudgetClaimId:X.optional(),gasUsedRaw:xS.optional(),gasUsedClaimId:X.optional(),gasObjects:L(zS).optional(),unresolvedReason:N().min(1).max(240).optional(),unresolvedClaimId:X.optional()}).strict().superRefine((e,t)=>{let n=e.gasBudgetRaw!==void 0||e.gasUsedRaw!==void 0;!n&&e.unresolvedReason===void 0&&t.addIssue({code:`custom`,message:`Expected gas evidence or unresolvedReason`}),n&&e.unresolvedReason!==void 0&&t.addIssue({code:`custom`,path:[`unresolvedReason`],message:`Resolved gas quantities must not include unresolvedReason`}),e.gasBudgetRaw!==void 0&&e.gasBudgetClaimId===void 0&&t.addIssue({code:`custom`,path:[`gasBudgetClaimId`],message:`gasBudgetRaw requires gasBudgetClaimId`}),e.gasBudgetRaw===void 0&&e.gasBudgetClaimId!==void 0&&t.addIssue({code:`custom`,path:[`gasBudgetClaimId`],message:`gasBudgetClaimId requires gasBudgetRaw`}),e.gasUsedRaw!==void 0&&e.gasUsedClaimId===void 0&&t.addIssue({code:`custom`,path:[`gasUsedClaimId`],message:`gasUsedRaw requires gasUsedClaimId`}),e.gasUsedRaw===void 0&&e.gasUsedClaimId!==void 0&&t.addIssue({code:`custom`,path:[`gasUsedClaimId`],message:`gasUsedClaimId requires gasUsedRaw`}),e.unresolvedReason!==void 0&&e.unresolvedClaimId===void 0&&t.addIssue({code:`custom`,path:[`unresolvedClaimId`],message:`unresolvedReason requires unresolvedClaimId`}),e.unresolvedReason===void 0&&e.unresolvedClaimId!==void 0&&t.addIssue({code:`custom`,path:[`unresolvedClaimId`],message:`unresolvedClaimId requires unresolvedReason`})}),VS=$f(`status`,[R({checkedAt:bS,status:H(`current`),expiresAt:bS,evidenceClaimId:X}).strict(),R({checkedAt:bS,status:H(`expired`),expiresAt:bS,evidenceClaimId:X}).strict(),R({checkedAt:bS,status:H(`not_provided`),evidenceClaimId:X,reason:N().min(1).max(240),expiresAt:Kf().optional()}).strict(),R({checkedAt:bS,status:H(`not_applicable`),evidenceClaimId:X,reason:N().min(1).max(240),expiresAt:Kf().optional()}).strict()]).superRefine((e,t)=>{e.status===`current`&&Date.parse(e.expiresAt)<=Date.parse(e.checkedAt)&&t.addIssue({code:`custom`,path:[`expiresAt`],message:`Current expiry evidence requires expiresAt after checkedAt`}),e.status===`expired`&&Date.parse(e.expiresAt)>Date.parse(e.checkedAt)&&t.addIssue({code:`custom`,path:[`expiresAt`],message:`Expired expiry evidence requires expiresAt at or before checkedAt`})}),HS=R({status:V([`required_and_verified`,`not_required_for_action`,`missing`,`stale`]),quoteEvidenceId:N().min(1).max(120).optional(),quoteEvidenceClaimId:X.optional(),maxSlippageBps:P().int().min(0).max(1e4).optional(),minOutRaw:xS.optional(),policySource:V([`user_explicit`,`adapter_policy_from_quote_evidence`]).optional(),policyEvidenceClaimId:X.optional()}).strict().superRefine((e,t)=>{e.status===`required_and_verified`&&(e.quoteEvidenceId===void 0||e.quoteEvidenceClaimId===void 0||e.maxSlippageBps===void 0||e.minOutRaw===void 0||e.policySource===void 0||e.policyEvidenceClaimId===void 0)&&t.addIssue({code:`custom`,message:`Verified min-out evidence requires quoteEvidenceId, quoteEvidenceClaimId, maxSlippageBps, minOutRaw, policySource, and policyEvidenceClaimId`}),e.quoteEvidenceId!==void 0&&e.quoteEvidenceClaimId===void 0&&t.addIssue({code:`custom`,path:[`quoteEvidenceClaimId`],message:`quoteEvidenceId requires quoteEvidenceClaimId`}),e.quoteEvidenceId===void 0&&e.quoteEvidenceClaimId!==void 0&&t.addIssue({code:`custom`,path:[`quoteEvidenceClaimId`],message:`quoteEvidenceClaimId requires quoteEvidenceId`}),e.minOutRaw!==void 0&&e.quoteEvidenceClaimId===void 0&&t.addIssue({code:`custom`,path:[`quoteEvidenceClaimId`],message:`minOutRaw requires quoteEvidenceClaimId`}),e.maxSlippageBps!==void 0&&e.policySource===void 0&&t.addIssue({code:`custom`,path:[`policySource`],message:`maxSlippageBps requires policySource`}),e.policySource!==void 0&&e.policyEvidenceClaimId===void 0&&t.addIssue({code:`custom`,path:[`policyEvidenceClaimId`],message:`policySource requires policyEvidenceClaimId`}),e.policySource===void 0&&e.policyEvidenceClaimId!==void 0&&t.addIssue({code:`custom`,path:[`policyEvidenceClaimId`],message:`policyEvidenceClaimId requires policySource`})}),US=R({checkedAt:bS,ownerAccount:hb,objects:L(R({objectId:SS,role:V([`input_coin`,`gas_coin`,`protocol_object`,`shared_object`,`receiving_object`]),ownership:V([`owned_by_account`,`shared_object`,`immutable_or_package`,`not_owned_by_account`]),evidenceClaimId:X}).strict()).min(1)}).strict(),WS=R({evidenceClaimId:X,transactionDigest:gb,provider:Hx,checksEnabled:H(!0),simulatedAt:bS,status:V([`success`,`failed`,`unavailable`]),requiredFields:L(V(Gx)).min(Gx.length),missingFields:L(V(Gx)).default([]),failureReason:N().min(1).max(240).optional()}).strict().refine(e=>e.status!==`success`||e.missingFields.length===0,{message:`Successful simulation evidence must not have missing required fields`}).refine(e=>Gx.every(t=>e.requiredFields.includes(t)),{message:`Simulation evidence must include every required simulation field`}).refine(e=>e.status===`success`||e.failureReason!==void 0,{message:`Failed or unavailable simulation evidence requires failureReason`}).refine(e=>e.status!==`success`||e.failureReason===void 0,{message:`Successful simulation evidence must not include failureReason`}),GS=R({fields:L(V(Wx)).min(Wx.length),transactionDigest:gb,source:H(`review_model_or_adapter_equivalent`),purpose:H(`human_review_before_wallet_authorization`)}).strict().refine(e=>Wx.every(t=>e.fields.includes(t)),{message:`Human-readable review fields must include every required review field`}),KS=R({runtimeStatus:H(`emitted_pre_handoff`),mcpAndReviewUiMayExpose:L(V([`human_readable_review`,`ptb_visualization_artifact`,`diagnostics`,`status_checks`])).min(1),prohibited:L(V(Kx)).min(1)}).strict().superRefine((e,t)=>{AS(t,e.prohibited,Kx,[`prohibited`],`prohibited`)}),qS=R({schemaVersion:H(1),adapterId:N().min(1).max(120),protocol:N().min(1).max(120),actionKind:N().min(1).max(120),network:H(`sui:mainnet`),inputProvenance:FS,sourceReferences:L(IS).min(1),evidenceClaims:L(LS).min(1),rawQuantities:L(RS).min(1),gas:BS,expiry:VS,slippageOrMinOut:HS,objectOwnership:US,simulation:WS,humanReadableReview:GS,outputBoundary:KS,reviewedTransactionDigest:gb}).strict().superRefine((e,t)=>{let n=new Set,r=new Map,i=new Map;e.sourceReferences.forEach((e,a)=>{n.has(e.id)&&t.addIssue({code:`custom`,path:[`sourceReferences`,a,`id`],message:`sourceReferences id must be unique: ${e.id}`}),n.add(e.id),r.has(e.id)||(r.set(e.id,e),i.set(e.id,a))});let a=new Set,o=new Map,s=new Map;e.evidenceClaims.forEach((e,n)=>{a.has(e.id)&&t.addIssue({code:`custom`,path:[`evidenceClaims`,n,`id`],message:`evidenceClaims id must be unique: ${e.id}`}),a.add(e.id),o.has(e.id)||(o.set(e.id,e),s.set(e.id,n))});let c=(e,n)=>{if(e===void 0)return;let i=r.get(e);if(i!==void 0)return i;t.addIssue({code:`custom`,path:n,message:`source evidence id must reference sourceReferences[].id: ${e}`})},l=(e,n,r,a)=>{if(e===void 0)return;let o=c(e,r);if(o===void 0)return;let s=i.get(e),l=s===void 0?r:[`sourceReferences`,s];n.kinds.includes(o.kind)||t.addIssue({code:`custom`,path:[...l,`kind`],message:`${a} source kind must be one of ${n.kinds.join(`, `)}`}),kS(t,o.fields,n.fields,[...l,`fields`],`${a} sourceReferences fields`)},u=(e,n,r,i)=>{if(e===void 0){t.addIssue({code:`custom`,path:r,message:`${i} must reference evidenceClaims[].id`});return}let a=o.get(e);if(a===void 0){t.addIssue({code:`custom`,path:r,message:`${i} must reference evidenceClaims[].id: ${e}`});return}if(a.factKind!==n){let a=s.get(e),o=a===void 0?r:[`evidenceClaims`,a,`factKind`];t.addIssue({code:`custom`,path:o,message:`${i} evidence claim factKind must be ${n}`})}return a};if(e.evidenceClaims.forEach((e,n)=>{e.factKind===`raw_quantity_amount`&&l(e.sourceEvidenceId,vS.raw_quantity_amount.byRole[e.role],[`evidenceClaims`,n,`sourceEvidenceId`],`evidenceClaims[${n}].raw_quantity_amount`),e.factKind===`unit_metadata`&&l(e.sourceEvidenceId,vS.unit_metadata.bySource[e.source],[`evidenceClaims`,n,`sourceEvidenceId`],`evidenceClaims[${n}].unit_metadata`),e.factKind===`gas_unresolved_status`&&l(e.sourceEvidenceId,vS.gas_unresolved_status,[`evidenceClaims`,n,`sourceEvidenceId`],`evidenceClaims[${n}].gas_unresolved_status`),e.factKind===`expiry_status`&&(l(e.sourceEvidenceId,vS.expiry_status[e.status],[`evidenceClaims`,n,`sourceEvidenceId`],`evidenceClaims[${n}].expiry_status`),(e.status===`current`||e.status===`expired`)&&e.expiresAt===void 0&&t.addIssue({code:`custom`,path:[`evidenceClaims`,n,`expiresAt`],message:`Current or expired expiry claim requires expiresAt`}),(e.status===`not_provided`||e.status===`not_applicable`)&&e.reason===void 0&&t.addIssue({code:`custom`,path:[`evidenceClaims`,n,`reason`],message:`Unavailable expiry claim requires reason`}),(e.status===`not_provided`||e.status===`not_applicable`)&&e.expiresAt!==void 0&&t.addIssue({code:`custom`,path:[`evidenceClaims`,n,`expiresAt`],message:`Unavailable expiry claim must not include expiresAt`}),e.status===`current`&&e.expiresAt!==void 0&&Date.parse(e.expiresAt)<=Date.parse(e.checkedAt)&&t.addIssue({code:`custom`,path:[`evidenceClaims`,n,`expiresAt`],message:`Current expiry claim requires expiresAt after checkedAt`}),e.status===`expired`&&e.expiresAt!==void 0&&Date.parse(e.expiresAt)>Date.parse(e.checkedAt)&&t.addIssue({code:`custom`,path:[`evidenceClaims`,n,`expiresAt`],message:`Expired expiry claim requires expiresAt at or before checkedAt`})),e.factKind===`quote_min_out`&&l(e.sourceEvidenceId,vS.quote_min_out,[`evidenceClaims`,n,`sourceEvidenceId`],`evidenceClaims[${n}].quote_min_out`),e.factKind===`slippage_policy`&&(l(e.sourceEvidenceId,vS.slippage_policy.bySource[e.policySource],[`evidenceClaims`,n,`sourceEvidenceId`],`evidenceClaims[${n}].slippage_policy`),e.policySource===`adapter_policy_from_quote_evidence`&&e.minOutRaw===void 0&&t.addIssue({code:`custom`,path:[`evidenceClaims`,n,`minOutRaw`],message:`Adapter-derived slippage policy claim requires minOutRaw`})),e.factKind===`object_ownership`&&l(e.sourceEvidenceId,vS.object_ownership,[`evidenceClaims`,n,`sourceEvidenceId`],`evidenceClaims[${n}].object_ownership`),e.factKind===`simulation_result`&&(l(e.sourceEvidenceId,vS.simulation_result,[`evidenceClaims`,n,`sourceEvidenceId`],`evidenceClaims[${n}].simulation_result`),e.status===`success`&&e.missingFields.length!==0&&t.addIssue({code:`custom`,path:[`evidenceClaims`,n,`missingFields`],message:`Successful simulation claim must not have missing required fields`}),Gx.every(t=>e.requiredFields.includes(t))||t.addIssue({code:`custom`,path:[`evidenceClaims`,n,`requiredFields`],message:`Simulation claim must include every required simulation field`}),e.status!==`success`&&e.failureReason===void 0&&t.addIssue({code:`custom`,path:[`evidenceClaims`,n,`failureReason`],message:`Failed or unavailable simulation claim requires failureReason`}),e.status===`success`&&e.failureReason!==void 0&&t.addIssue({code:`custom`,path:[`evidenceClaims`,n,`failureReason`],message:`Successful simulation claim must not include failureReason`}))}),e.rawQuantities.forEach((e,n)=>{let r=u(e.amountClaimId,`raw_quantity_amount`,[`rawQuantities`,n,`amountClaimId`],`rawQuantities[${n}].amountClaimId`);r?.factKind===`raw_quantity_amount`&&(Z(t,e.role,r.role,[`rawQuantities`,n,`role`],`rawQuantities[${n}].role`),Z(t,e.rawAmount,r.rawAmount,[`rawQuantities`,n,`rawAmount`],`rawQuantities[${n}].rawAmount`),NS(t,e.asset,r.asset,[`rawQuantities`,n,`asset`],`rawQuantities[${n}].asset`));let i=u(e.unit.unitClaimId,`unit_metadata`,[`rawQuantities`,n,`unit`,`unitClaimId`],`rawQuantities[${n}].unit.unitClaimId`);i?.factKind===`unit_metadata`&&(Z(t,e.unit.source,i.source,[`rawQuantities`,n,`unit`,`source`],`rawQuantities[${n}].unit.source`),Z(t,e.unit.decimals,i.decimals,[`rawQuantities`,n,`unit`,`decimals`],`rawQuantities[${n}].unit.decimals`),e.asset.coinType!==void 0&&Z(t,e.asset.coinType,i.coinType,[`rawQuantities`,n,`asset`,`coinType`],`rawQuantities[${n}].asset.coinType`))}),e.gas.gasBudgetRaw!==void 0){let n=u(e.gas.gasBudgetClaimId,`raw_quantity_amount`,[`gas`,`gasBudgetClaimId`],`gas.gasBudgetClaimId`);n?.factKind===`raw_quantity_amount`&&(Z(t,n.role,yS.gasBudgetClaimId.role,[`gas`,`gasBudgetClaimId`],`gas.gasBudgetClaimId role`),PS(t,n.asset,yS.gasBudgetClaimId.assetCoinType,[`gas`,`gasBudgetClaimId`],`gas.gasBudgetClaimId asset`),Z(t,e.gas.gasBudgetRaw,n.rawAmount,[`gas`,`gasBudgetRaw`],`gas.gasBudgetRaw`))}if(e.gas.gasUsedRaw!==void 0){let n=u(e.gas.gasUsedClaimId,`raw_quantity_amount`,[`gas`,`gasUsedClaimId`],`gas.gasUsedClaimId`);n?.factKind===`raw_quantity_amount`&&(Z(t,n.role,yS.gasUsedClaimId.role,[`gas`,`gasUsedClaimId`],`gas.gasUsedClaimId role`),PS(t,n.asset,yS.gasUsedClaimId.assetCoinType,[`gas`,`gasUsedClaimId`],`gas.gasUsedClaimId asset`),Z(t,e.gas.gasUsedRaw,n.rawAmount,[`gas`,`gasUsedRaw`],`gas.gasUsedRaw`))}if(e.gas.unresolvedReason!==void 0){let n=u(e.gas.unresolvedClaimId,`gas_unresolved_status`,[`gas`,`unresolvedClaimId`],`gas.unresolvedClaimId`);n?.factKind===`gas_unresolved_status`&&(Z(t,n.status,`unresolved`,[`gas`,`unresolvedClaimId`],`gas.unresolvedClaimId status`),Z(t,e.gas.checkedAt,n.checkedAt,[`gas`,`checkedAt`],`gas.checkedAt`),Z(t,e.gas.unresolvedReason,n.reason,[`gas`,`unresolvedReason`],`gas.unresolvedReason`))}e.gas.gasObjects?.forEach((e,n)=>{let r=u(e.ownershipClaimId,`object_ownership`,[`gas`,`gasObjects`,n,`ownershipClaimId`],`gas.gasObjects[${n}].ownershipClaimId`);r?.factKind===`object_ownership`&&(Z(t,e.objectId,r.objectId,[`gas`,`gasObjects`,n,`objectId`],`gas.gasObjects[${n}].objectId`),Z(t,e.ownerAccount,r.ownerAccount,[`gas`,`gasObjects`,n,`ownerAccount`],`gas.gasObjects[${n}].ownerAccount`),Z(t,r.ownership,yS.gasObjectOwnershipClaimId.ownership,[`gas`,`gasObjects`,n,`ownershipClaimId`],`gas.gasObjects[${n}].ownershipClaimId ownership`))});let d=u(e.expiry.evidenceClaimId,`expiry_status`,[`expiry`,`evidenceClaimId`],`expiry.evidenceClaimId`);if(d?.factKind===`expiry_status`&&(Z(t,e.expiry.status,d.status,[`expiry`,`status`],`expiry.status`),Z(t,e.expiry.checkedAt,d.checkedAt,[`expiry`,`checkedAt`],`expiry.checkedAt`),e.expiry.status===`current`||e.expiry.status===`expired`?Z(t,e.expiry.expiresAt,d.expiresAt,[`expiry`,`expiresAt`],`expiry.expiresAt`):Z(t,e.expiry.reason,d.reason,[`expiry`,`reason`],`expiry.reason`)),e.slippageOrMinOut.quoteEvidenceClaimId!==void 0){let n=u(e.slippageOrMinOut.quoteEvidenceClaimId,`quote_min_out`,[`slippageOrMinOut`,`quoteEvidenceClaimId`],`slippageOrMinOut.quoteEvidenceClaimId`);n?.factKind===`quote_min_out`&&(Z(t,e.slippageOrMinOut.quoteEvidenceId,n.quoteEvidenceId,[`slippageOrMinOut`,`quoteEvidenceId`],`slippageOrMinOut.quoteEvidenceId`),Z(t,e.slippageOrMinOut.minOutRaw,n.minOutRaw,[`slippageOrMinOut`,`minOutRaw`],`slippageOrMinOut.minOutRaw`))}if(e.slippageOrMinOut.minOutRaw!==void 0&&(e.rawQuantities.some(t=>t.role===`minimum_output`&&t.rawAmount===e.slippageOrMinOut.minOutRaw)||t.addIssue({code:`custom`,path:[`slippageOrMinOut`,`minOutRaw`],message:`slippageOrMinOut.minOutRaw must match a minimum_output rawQuantities entry`})),e.slippageOrMinOut.policyEvidenceClaimId!==void 0){let n=u(e.slippageOrMinOut.policyEvidenceClaimId,`slippage_policy`,[`slippageOrMinOut`,`policyEvidenceClaimId`],`slippageOrMinOut.policyEvidenceClaimId`);n?.factKind===`slippage_policy`&&(Z(t,e.slippageOrMinOut.policySource,n.policySource,[`slippageOrMinOut`,`policySource`],`slippageOrMinOut.policySource`),Z(t,e.slippageOrMinOut.maxSlippageBps,n.maxSlippageBps,[`slippageOrMinOut`,`maxSlippageBps`],`slippageOrMinOut.maxSlippageBps`),n.policySource===`adapter_policy_from_quote_evidence`&&Z(t,e.slippageOrMinOut.minOutRaw,n.minOutRaw,[`slippageOrMinOut`,`minOutRaw`],`slippageOrMinOut.minOutRaw`))}e.objectOwnership.objects.forEach((n,r)=>{let i=u(n.evidenceClaimId,`object_ownership`,[`objectOwnership`,`objects`,r,`evidenceClaimId`],`objectOwnership.objects[${r}].evidenceClaimId`);i?.factKind===`object_ownership`&&(Z(t,n.objectId,i.objectId,[`objectOwnership`,`objects`,r,`objectId`],`objectOwnership.objects[${r}].objectId`),Z(t,e.objectOwnership.ownerAccount,i.ownerAccount,[`objectOwnership`,`ownerAccount`],`objectOwnership.ownerAccount`),Z(t,n.ownership,i.ownership,[`objectOwnership`,`objects`,r,`ownership`],`objectOwnership.objects[${r}].ownership`))});let f=u(e.simulation.evidenceClaimId,`simulation_result`,[`simulation`,`evidenceClaimId`],`simulation.evidenceClaimId`);f?.factKind===`simulation_result`&&(Z(t,e.simulation.provider,f.provider,[`simulation`,`provider`],`simulation.provider`),Z(t,e.simulation.checksEnabled,f.checksEnabled,[`simulation`,`checksEnabled`],`simulation.checksEnabled`),Z(t,e.simulation.simulatedAt,f.simulatedAt,[`simulation`,`simulatedAt`],`simulation.simulatedAt`),Z(t,e.simulation.status,f.status,[`simulation`,`status`],`simulation.status`),MS(t,e.simulation.requiredFields,f.requiredFields,[`simulation`,`requiredFields`],`simulation.requiredFields`),MS(t,e.simulation.missingFields,f.missingFields,[`simulation`,`missingFields`],`simulation.missingFields`),Z(t,e.simulation.failureReason,f.failureReason,[`simulation`,`failureReason`],`simulation.failureReason`))}).superRefine((e,t)=>{let n=e.reviewedTransactionDigest;Z(t,e.humanReadableReview.transactionDigest,n,[`humanReadableReview`,`transactionDigest`],`humanReadableReview.transactionDigest`),Z(t,e.simulation.transactionDigest,n,[`simulation`,`transactionDigest`],`simulation.transactionDigest`)}),JS=R({contractVersion:H(Ux),artifactKind:H(`ptb_visualization`),generatedAt:bS,source:R({adapterId:N().min(1).max(120),planId:N().min(1).max(120).optional(),sourceKind:V([`review_time_generated_transaction_kind`,`review_time_ir`,`renderer_model`]),authority:H(`visualization_only_not_wallet_authorization`),renderer:R({name:N().min(1).max(120),packageName:N().min(1).max(120).optional(),version:N().min(1).max(80).optional()}).strict().optional()}).strict(),mermaid:R({diagramType:H(`flowchart`),text:DS(2e4,`mermaid.text`),namedText:DS(2e4,`mermaid.namedText`)}).strict(),diagnostics:L(R({severity:V([`info`,`warning`,`error`]),code:N().min(1).max(120),message:DS(512,`diagnostics.message`),source:V([`adapter`,`renderer`,`schema`,`simulation`])}).strict()).default([]),unsupportedUse:L(V(qx)).min(1),executableMaterial:R({included:H(!1),policy:H(`mcp_and_review_ui_outputs_must_not_include_executable_transaction_material`)}).strict()}).strict().superRefine((e,t)=>{AS(t,e.unsupportedUse,qx,[`unsupportedUse`],`unsupportedUse`)});yh();var YS=B(N(),I()),XS=V(Rx),ZS=V(zx);V([`ready_for_wallet_review`,`refresh_required`,`blocked`]);var QS=V(Bx);V([`proposed`,`awaiting_wallet`,`wallet_connected`,`ready_for_wallet_review`,`refresh_required`,`blocked`,`expired`,`awaiting_signature`,`submitting`,`awaiting_chain_result`,`stopped`,`request_failed`,`outcome_unknown`,`completed`]);var $S=R({id:N(),label:N(),status:V([`pass`,`warning`,`fail`]),message:N(),source:V([`registry`,`quote`,`wallet`,`simulation`,`adapter`,`network`,`proposal`])}),eC=N().min(1),tC=`human_readable_review`,nC=`review_time_simulation`,rC=R({stageCatalogId:N().min(1),adapterId:N(),protocol:N(),actionKind:N(),completedStages:L(eC),missingStages:L(eC)}).strict().superRefine((e,t)=>{let n=iC(e.completedStages);n&&t.addIssue({code:`custom`,path:[`completedStages`],message:`completedStages contains duplicate stage '${n}'`});let r=iC(e.missingStages);r&&t.addIssue({code:`custom`,path:[`missingStages`],message:`missingStages contains duplicate stage '${r}'`});for(let n of e.completedStages)e.missingStages.includes(n)&&t.addIssue({code:`custom`,path:[`missingStages`],message:`stage '${n}' cannot be both completed and missing`})});function iC(e){let t=new Set;for(let n of e){if(t.has(n))return n;t.add(n)}}var aC=R({symbol:N(),amount:N(),coinType:N().optional(),approx:F().optional()}).strict(),oC=aC.extend({amountKind:H(`display_intent`).default(`display_intent`)}),sC=R({outgoing:L(oC),expectedIncoming:L(oC),minimumIncoming:L(oC).optional(),fees:L(oC).optional()}),cC=R({outgoing:L(aC),expectedIncoming:L(aC),minimumIncoming:L(aC).optional(),fees:L(aC).optional()}),lC=R({before:L(aC),after:L(aC),delta:L(aC)}),uC=R({computationCostRaw:xb(`computationCostRaw`),storageCostRaw:xb(`storageCostRaw`),storageRebateRaw:xb(`storageRebateRaw`),nonRefundableStorageFeeRaw:xb(`nonRefundableStorageFeeRaw`)}).strict(),dC=R({address:hb,coinType:N().min(1).max(512).refine(e=>{try{return Eb(e)===e}catch{return!1}},`Expected a normalized Sui struct tag coin type`),amount:Tb(`balanceChanges[].amount`)}).strict(),fC=R({objectId:hb,objectType:N().min(1).max(512).optional(),inputState:N().min(1).max(80),outputState:N().min(1).max(80),idOperation:N().min(1).max(80)}).strict(),pC=R({provider:Hx,checksEnabled:F(),success:F(),gasCostSummary:uC.optional(),balanceChanges:L(dC).optional(),objectChanges:L(fC).optional(),error:N().optional()}),mC=pC,hC=pC.extend({checksEnabled:H(!0),success:H(!0),gasCostSummary:uC,balanceChanges:L(dC),objectChanges:L(fC),error:Kf().optional()}).strict(),gC=R({role:V([`input`,`expected_output`,`minimum_output`,`fee`]),symbol:N(),coinType:N().min(1).max(512).refine(e=>{try{return Eb(e),!0}catch{return!1}},`Expected a Sui struct tag coin type`),decimals:P().int().min(0).max(255),rawAmount:xb(`rawAmount`),rawAmountSource:H(`quote_policy_evidence`),displayAmount:N().optional(),displayAmountSource:H(`user_display_intent_not_signing_input`).optional()}).strict().superRefine((e,t)=>{e.displayAmount!==void 0&&e.displayAmountSource===void 0&&t.addIssue({code:`custom`,path:[`displayAmountSource`],message:`displayAmountSource is required when displayAmount is present`}),e.displayAmount===void 0&&e.displayAmountSource!==void 0&&t.addIssue({code:`custom`,path:[`displayAmount`],message:`displayAmount is required when displayAmountSource is present`})}),_C=R({role:V([`connected_account`,`output_recipient`]),address:hb}).strict(),vC=R({kind:H(`swap_output_asset`),symbol:N(),coinType:N().min(1).max(512).refine(e=>{try{return Eb(e),!0}catch{return!1}},`Expected a Sui struct tag coin type`),protocol:N(),poolKey:N(),direction:V([`base_to_quote`,`quote_to_base`])}).strict(),yC=R({id:N(),label:N(),source:z([V([`registry`,`quote`,`wallet`,`simulation`,`adapter`,`network`,`proposal`]),V([`transaction_material`,`digest_commitment`])]),summary:N()}).strict(),bC=R({id:N(),label:N(),reason:N()}).strict(),xC=R({proposedAction:R({title:N(),summary:N(),actionKind:N(),adapterId:N(),protocol:N(),network:H(`sui:mainnet`)}).strict(),recipients:L(_C),evidenceUsed:L(yC),missingEvidence:L(bC),requiredUserChoices:L(bC),unsupportedClaims:L(bC),freshness:R({status:H(`current`),evaluatedAt:N(),expiresAt:N(),reason:N()}).strict(),blockingChecks:L($S)}).strict(),SC=R({assetFlow:R({outgoing:L(gC),expectedIncoming:L(gC),minimumIncoming:L(gC),fees:L(gC)}).strict(),targets:L(vC)}).strict(),CC=$f(`kind`,[xC.extend({kind:H(`swap_human_readable_review`)}).merge(SC)]),wC=R({id:N(),actionKind:N(),adapterId:N(),protocol:N(),title:N(),summary:N(),assetFlowPreview:sC,reviewModel:Lx.optional(),adapterData:YS,createdAt:N(),expiresAt:N().optional(),registryVersion:N().optional(),preliminaryChecks:L($S).optional()}),TC=R({planId:N(),reviewSessionId:N(),account:hb,checks:L($S),assetFlowActual:cC.optional(),beforeAfterBalance:lC.optional(),simulation:mC.optional(),humanReadableReview:CC.optional(),transactionReviewData:qS.optional(),ptbVisualization:JS.optional(),adapterLifecycle:rC.optional(),updatedAt:N()}),EC=$f(`status`,[TC.extend({status:H(`ready_for_wallet_review`),evidenceValidity:Kf().optional(),blockedReason:Kf().optional(),refreshReason:Kf().optional()}),TC.extend({status:H(`refresh_required`),evidenceValidity:H(`invalidated`).optional(),refreshReason:ZS,blockedReason:Kf().optional()}),TC.extend({status:H(`blocked`),evidenceValidity:H(`invalidated`).optional(),blockedReason:XS,refreshReason:Kf().optional()})]).superRefine((e,t)=>{if(e.evidenceValidity===`invalidated`)for(let n of Vx)e[n]!==void 0&&t.addIssue({code:`custom`,path:[n],message:`Invalidated review evidence cannot carry current material-derived facts`});let n=e.adapterLifecycle;if(n!==void 0&&DC(e,t),e.humanReadableReview!==void 0&&n===void 0&&t.addIssue({code:`custom`,path:[`humanReadableReview`],message:`humanReadableReview requires adapterLifecycle evidence stage provenance`}),e.simulation!==void 0&&n===void 0&&t.addIssue({code:`custom`,path:[`simulation`],message:`simulation requires adapterLifecycle evidence stage provenance`}),e.ptbVisualization!==void 0){let e=n?.completedStages??[];e.includes(`transaction_material_build_or_verify`)&&e.includes(`digest_commitment`)||t.addIssue({code:`custom`,path:[`ptbVisualization`],message:`ptbVisualization requires completed transaction material and digest commitment lifecycle stages`})}let r=e.status===`ready_for_wallet_review`;e.transactionReviewData!==void 0&&!r&&t.addIssue({code:`custom`,path:[`transactionReviewData`],message:`transactionReviewData is only valid on ready_for_wallet_review`}),e.status===`ready_for_wallet_review`&&n!==void 0&&(e.transactionReviewData===void 0&&t.addIssue({code:`custom`,path:[`transactionReviewData`],message:`ready_for_wallet_review requires an emitted wallet review contract`}),(n===void 0||n.missingStages.length!==0)&&t.addIssue({code:`custom`,path:[`adapterLifecycle`],message:`ready_for_wallet_review requires a completed adapterLifecycle with no missing stages`}),e.humanReadableReview===void 0&&t.addIssue({code:`custom`,path:[`humanReadableReview`],message:`ready_for_wallet_review requires humanReadableReview public evidence`}),e.simulation===void 0&&t.addIssue({code:`custom`,path:[`simulation`],message:`ready_for_wallet_review requires successful simulation public evidence`})),e.status===`blocked`&&(e.blockedReason===`producer_stage_missing`&&n===void 0&&t.addIssue({code:`custom`,path:[`adapterLifecycle`],message:`producer_stage_missing requires adapterLifecycle with at least one missing stage`}),e.blockedReason===`producer_stage_missing`&&n!==void 0&&n.missingStages.length===0&&t.addIssue({code:`custom`,path:[`blockedReason`],message:`producer_stage_missing requires at least one adapterLifecycle.missingStages entry`}),e.blockedReason===`wallet_review_contract_emit_missing`&&e.transactionReviewData!==void 0&&t.addIssue({code:`custom`,path:[`transactionReviewData`],message:`wallet_review_contract_emit_missing requires the wallet review contract to be absent`}),e.blockedReason===`wallet_review_contract_emit_missing`&&n===void 0&&t.addIssue({code:`custom`,path:[`adapterLifecycle`],message:`wallet_review_contract_emit_missing requires adapterLifecycle`}),e.blockedReason===`wallet_review_contract_emit_missing`&&n!==void 0&&n.missingStages.length!==0&&t.addIssue({code:`custom`,path:[`blockedReason`],message:`wallet_review_contract_emit_missing requires a completed adapterLifecycle with no missing stages`}),e.blockedReason===`wallet_review_contract_emit_missing`&&e.evidenceValidity!==`invalidated`&&e.humanReadableReview===void 0&&t.addIssue({code:`custom`,path:[`humanReadableReview`],message:`wallet_review_contract_emit_missing requires humanReadableReview public evidence`}),e.blockedReason===`wallet_review_contract_emit_missing`&&e.evidenceValidity!==`invalidated`&&e.simulation===void 0&&t.addIssue({code:`custom`,path:[`simulation`],message:`wallet_review_contract_emit_missing requires simulation public evidence`}))});function DC(e,t){let n=e.adapterLifecycle;n&&(e.humanReadableReview!==void 0&&OC(t,n,tC,[`humanReadableReview`]),e.simulation!==void 0&&(OC(t,n,nC,[`simulation`]),OC(t,n,tC,[`simulation`]),kC(t,e.simulation,[`simulation`])),n.missingStages.includes(nC)&&e.simulation!==void 0&&t.addIssue({code:`custom`,path:[`simulation`],message:`simulation public evidence cannot be present while review_time_simulation is missing`}),n.missingStages.includes(tC)&&e.humanReadableReview!==void 0&&t.addIssue({code:`custom`,path:[`humanReadableReview`],message:`humanReadableReview public evidence cannot be present while human_readable_review is missing`}))}function OC(e,t,n,r){t.completedStages.includes(n)||e.addIssue({code:`custom`,path:r,message:`${r.join(`.`)} requires completed adapterLifecycle stage '${n}'`}),t.missingStages.includes(n)&&e.addIssue({code:`custom`,path:r,message:`${r.join(`.`)} cannot be present while adapterLifecycle stage '${n}' is missing`})}function kC(e,t,n){hC.safeParse(t).success||e.addIssue({code:`custom`,path:n,message:`simulation public evidence requires a successful checks-enabled review-time simulation projection`})}yh();var AC=R({topic:N().min(1),accounts:L(hb).min(1),methods:L(N()),chain:H(Rb),expiresAt:N().datetime(),walletName:N().optional()}).strict(),jC=$f(`status`,[R({topic:N().min(1),version:P().int().positive(),status:H(`present`),session:AC}).strict(),R({topic:N().min(1),version:P().int().positive(),status:V([`absent`,`unusable`])}).strict()]),MC=R({runId:zb,sequence:P().int().positive(),observedAt:N().datetime()}).strict();MC.extend({sessions:L(jC)}).strict();var NC=R({kind:H(`wallet_service_recovery`),priorRunId:zb,admittedAt:N().datetime(),updatedAt:N().datetime()}),PC=z([NC.extend({phase:H(`stopping`)}).strict(),NC.extend({phase:H(`starting`),nextRunId:zb}).strict(),NC.extend({outcome:V([`available`,`failed`,`superseded`,`server_restarted`]),nextRunId:zb.optional(),message:N().optional()}).strict()]);yh();var FC=`A wallet connection provides account context; it is not a transaction approval or proof of address ownership.`,IC=`Review evidence is not a safety guarantee. Only an explicit card action and wallet approval may authorize this exact transaction.`,LC=Kb.extend({pendingAction:H(`disconnect`).optional()});V([`input_required`,`awaiting_approval`,`disconnect_pending`]);var RC=R({action:H(`connect`),walletRunId:zb}).strict(),zC=R({action:H(`disconnect`),walletRunId:zb,connectionId:N().min(1)}).strict(),BC=R({action:H(`use_account`),walletRunId:zb,connectionId:N().min(1),account:hb}).strict(),VC=R({action:V([`prepare_review`,`request_signature`]),connectionId:N().min(1),walletRunId:zb,account:hb,reviewRevision:P().int().nonnegative()}).strict(),HC=z([RC,zC,BC,VC,R({action:V([`cancel`,`stop_connection`,`stop_waiting`,`read_result`])}).strict()]),UC=z([RC,VC.extend({action:H(`prepare_review`)})]),WC=R({kind:V([`connect`,`review`]),mode:V([`connect`,`review`,`review_manage`]),allowedActions:L(V(Xb)),actionRemainingMs:P().int().nonnegative(),nextStateReadAfterMs:P().int().nonnegative().optional(),automaticAction:UC.optional(),observe:F(),walletAvailability:Hb,walletObservation:MC.optional(),runtimeRecovery:PC.optional(),connectionConflict:qb.optional(),manageableConnectionIds:L(N().min(1)),connectionReconciliationRequired:H(!0).optional(),usableConnectionId:N().min(1).optional(),assetReadAccount:Yb.optional(),acceptedWalletRunId:zb.optional(),progress:Ub,boundary:V([FC,IC]),connections:L(LC),activeAccount:N().optional(),connection:LC.optional(),connectionAction:V([`connect`,`disconnect`]).optional(),review:R({reviewSessionId:N(),plan:wC,reviewRevision:P().int().nonnegative(),status:QS,account:N().optional(),preparing:F(),accountRequestPending:H(!0).optional(),error:N().optional(),state:EC.optional()}).strict().optional(),request:Lb.optional(),receipt:I().optional(),netGasMist:N().regex(/^-?[0-9]+$/).optional(),observationStopped:F().optional()}).strict().superRefine((e,t)=>{let n=e.connections.find(t=>t.connectionId===e.usableConnectionId);e.usableConnectionId&&(!n||n.status!==`connected`||e.walletAvailability.status!==`available`||e.connectionConflict||e.connectionReconciliationRequired||e.connections.some(e=>e.pendingAction||e.status===`awaiting_approval`))&&t.addIssue({code:`custom`,path:[`usableConnectionId`],message:`The usable connection must match current connection facts.`}),(new Set(e.manageableConnectionIds).size!==e.manageableConnectionIds.length||e.manageableConnectionIds.some(t=>!e.connections.some(e=>e.connectionId===t&&!e.pendingAction&&e.status!==`awaiting_approval`)))&&t.addIssue({code:`custom`,path:[`manageableConnectionIds`],message:`Management must name distinct recorded targets without pending operations.`}),e.connectionReconciliationRequired&&(e.usableConnectionId||e.assetReadAccount?.status===`available`||e.allowedActions.some(e=>[`connect`,`use_account`,`prepare_review`,`request_signature`].includes(e)))&&t.addIssue({code:`custom`,path:[`connectionReconciliationRequired`],message:`Unrecorded SDK connections cannot authorize connection or account use.`}),e.assetReadAccount?.status===`available`&&(!n||!n.accounts.includes(e.assetReadAccount.account)||e.activeAccount!==e.assetReadAccount.account)&&t.addIssue({code:`custom`,path:[`assetReadAccount`],message:`The default address must belong to the usable connection and stored selection.`})});function GC(e,t,n=!1){return e.connections.filter(r=>r.connectionId===e.usableConnectionId&&r.accounts.includes(t)&&(!n||r.methods.includes(`sui_signTransaction`)))}var KC=`sui-mcp.local-data`;yh();var qC=16*1024*1024,Q=N().uuid(),JC=P().int().nonnegative().safe(),YC=N().regex(/^[a-f0-9]{64}$/),XC=$f(`status`,[R({status:H(`no_file`)}).strict(),R({status:H(`receiving`)}).strict(),R({status:H(`checking`)}).strict(),R({status:H(`check_required`),message:N().min(1)}).strict(),R({status:H(`can_restore`)}).strict(),R({status:H(`cannot_restore`),reason:V([`invalid_backup`,`file_unavailable`,`wallet_request_unsettled`,`operation_busy`,`input_unavailable`,`check_failed`]),message:N().min(1)}).strict()]);R({fileId:Q,sha256:YC,totalSize:JC,dataEpoch:JC,userDataRevision:JC,check:XC}).strict();var ZC=$f(`kind`,[R({kind:H(`set_endpoint`),endpoint:V([`grpc`,`graphql`]),value:N().min(1)}).strict(),R({kind:H(`restore_endpoint`),endpoint:V([`grpc`,`graphql`])}).strict(),R({kind:V([`clear_read_address`,`export_local_data`,`download_backup`,`import_local_data`,`reset_local_data`,`restart_wallet_service`])}).strict()]),QC=V([`acknowledged`,`not_completed`,`unconfirmed`,`unsupported`]),$C=R({method:H(`ui/download-file`),code:H(-32601)}).strict(),ew=V([`acknowledged`,`cancelled`,`expired`,`server_restarted`,`data_replaced`,`source_unavailable`,`stored_locally`,`local_save_failed`]),tw=R({device:N().regex(/^\d+$/),inode:N().regex(/^\d+$/)}).strict(),nw=V([`not_published`,`target_conflict`,`source_unavailable`,`interrupted`]),rw=R({status:V([`needs_consent`,`saving`,`saved`,`failed`]),attemptId:Q,fileId:Q,sha256:YC,totalSize:JC,destination:N(),ownerId:N().min(1),currentSaveAttemptId:Q.optional(),attempts:L(R({saveAttemptId:Q,previousSaveAttemptId:Q.optional(),admittedAt:N().datetime(),allowPossibleCopy:F()}).strict()),sourceIdentity:tw.optional(),savedAt:N().datetime().optional(),failure:nw.optional()}).strict().superRefine((e,t)=>{(e.status===`needs_consent`?e.attempts.length!==0||e.currentSaveAttemptId!==void 0:!e.currentSaveAttemptId||!e.attempts.some(t=>t.saveAttemptId===e.currentSaveAttemptId))&&t.addIssue({code:`custom`,message:`A local save must identify its admitted attempt.`}),(new Set(e.attempts.map(e=>e.saveAttemptId)).size!==e.attempts.length||e.status===`saved`!=(e.savedAt!==void 0)||e.status===`saved`&&!e.sourceIdentity||e.status===`failed`!=(e.failure!==void 0))&&t.addIssue({code:`custom`,message:`Local save evidence must match its state.`})});R({currentAttemptId:Q,attempts:L(R({attemptId:Q,admittedAt:N().datetime(),previousAttemptId:Q.optional(),hostReport:QC.optional(),failure:$C.optional()}).strict()).min(1),readyAt:N().datetime().optional(),expiresAt:N().datetime().optional(),endReason:ew.optional(),localSave:rw.optional()}).strict().superRefine((e,t)=>{(new Set(e.attempts.map(e=>e.attemptId)).size!==e.attempts.length||!e.attempts.some(t=>t.attemptId===e.currentAttemptId)||e.readyAt===void 0!=(e.expiresAt===void 0))&&t.addIssue({code:`custom`,message:`Download attempts and lifetime must identify one stored snapshot.`}),(e.endReason===`stored_locally`&&e.localSave?.status!==`saved`||e.endReason===`local_save_failed`&&e.localSave?.status!==`failed`||e.attempts.some(e=>e.hostReport===`unsupported`!=(e.failure!==void 0))||e.localSave&&(e.localSave.attemptId!==e.currentAttemptId||!e.attempts.some(t=>t.attemptId===e.currentAttemptId&&t.hostReport===`unsupported`)||e.localSave.status===`saving`&&e.endReason!==void 0||e.localSave.status===`saved`!=(e.endReason===`stored_locally`)))&&t.addIssue({code:`custom`,message:`Local saving requires the current download's unsupported report.`})});var iw=V([`settings_retry_download`,`settings_report_download`,`settings_cancel_download`,`settings_store_backup`]),aw=$f(`action`,[R({action:H(`settings_download_backup`),operationId:Q,attemptId:Q}).strict(),R({action:H(`settings_retry_download`),operationId:Q,fileId:Q,previousAttemptId:Q,attemptId:Q}).strict(),R({action:H(`settings_report_download`),operationId:Q,fileId:Q,attemptId:Q,status:QC,failure:$C.optional()}).strict().refine(e=>e.status===`unsupported`==(e.failure!==void 0),`Only unsupported downloads require the exact method failure.`),R({action:H(`settings_store_backup`),operationId:Q,fileId:Q,attemptId:Q,saveAttemptId:Q,previousSaveAttemptId:Q.optional(),allowPossibleCopy:F()}).strict(),R({action:H(`settings_cancel_download`),operationId:Q,fileId:Q,attemptId:Q}).strict(),R({action:H(`settings_select`),draft:ZC}).strict(),R({action:H(`settings_prepare`),operationId:Q}).strict(),R({action:H(`settings_begin_upload`),operationId:Q,name:N().min(1),totalSize:JC.max(qC),sha256:YC}).strict(),R({action:H(`settings_upload_chunk`),operationId:Q,fileId:Q,offset:JC.max(qC),chunkBase64:N()}).strict(),R({action:H(`settings_seal_upload`),operationId:Q,fileId:Q}).strict(),R({action:H(`settings_confirm`),operationId:Q,preparationId:Q}).strict(),R({action:H(`settings_back`),operationId:Q}).strict(),R({action:H(`settings_cancel`)}).strict()]),ow=R({outcome:V([`completed`,`failed`,`interrupted`,`superseded`]),recordedAt:N().datetime(),message:N().min(1),details:B(N(),I()).optional(),completionScope:H(`backup_snapshot`).optional()}).strict(),sw=R({storedValue:N(),effectiveValue:N(),source:V([`environment`,`local_db`,`builtin_default`]),pendingStoredValue:N().optional(),appliesAfter:H(`mcp_server_restart`).optional()}).strict(),cw=R({endpoint:V([`grpc`,`graphql`]),key:V([`suiGrpcUrl`,`suiGraphqlUrl`]),value:N().min(1),status:V([`saved`,`reset`]),storedValue:N(),effectiveValue:N(),source:sw.shape.source}).strict().refine(e=>e.key===(e.endpoint===`grpc`?`suiGrpcUrl`:`suiGraphqlUrl`),`The endpoint kind and preference key must agree.`),lw=P().int().nonnegative().safe(),uw=R({accounts:lw,reviewSessions:lw,reviewStateSnapshots:lw,reviewStatusTransitions:lw,reviewExecutions:lw,reviewRequests:lw,outcomeUnknownRequests:lw,externalActivityScans:lw,externalActivityTransactions:lw,localSettings:lw}).strict(),dw=R({status:H(`valid`),format:H(KC),network:H(`mainnet`),exportedAt:N().datetime(),currentCounts:uw,incomingCounts:uw,willReplace:H(!0),activeAccountChange:V([`unchanged`,`set`,`cleared`]),currentReadAddress:hb.nullable(),incomingReadAddress:hb.nullable(),restartRequiredAfterImport:F()}).strict(),fw=R({kind:H(`settings`),operationId:Q,phase:V([`draft`,`uploading`,`sealed`,`prepared`,`executing`,`stopping`,`starting`,`terminal`]),draft:ZC.optional(),preparationId:Q.optional(),preparation:B(N(),I()).optional(),file:R({fileId:Q,displayName:N(),totalSize:JC,receivedSize:JC,sha256:YC,sealed:F(),cleanup:V([`pending`,`complete`,`failed`])}).strict().optional(),download:R({availability:V([`preparing`,`available`,`ended`]),currentAttemptId:Q,hostReport:QC.optional(),previousUnconfirmed:F(),endReason:ew.optional(),expiresAt:N().datetime().optional(),remainingMs:JC.optional(),localSave:R({status:V([`needs_consent`,`saving`,`saved`,`failed`]),currentSaveAttemptId:Q.optional(),failure:nw.optional(),savedAt:N().datetime().optional()}).strict().optional(),allowedFileActions:L(iw)}).strict().optional(),restoreCheck:XC.optional(),backupLocation:R({directory:N().min(1),filename:N().min(1)}).strict().optional(),result:ow.optional(),temporaryFileCleanup:V([`pending`,`complete`,`failed`]).optional(),priorRunId:Q.optional(),nextRunId:Q.optional(),supersedesOperationId:Q.optional(),supersededByOperationId:Q.optional(),allowedActions:L(V(aw.options.map(e=>e.shape.action.value))),observe:F(),facts:R({server:R({name:N(),version:N(),network:H(`mainnet`)}).strict(),localSettings:R({suiGrpcUrl:sw,suiGraphqlUrl:sw}).strict(),readAddress:N().optional(),assetReadAccount:Yb,walletAvailability:Hb,connectionReconciliationRequired:H(!0).optional(),observedAt:N().datetime().optional(),counts:uw}).strict().optional()}).strict().superRefine((e,t)=>{if(e.download&&(e.draft?.kind!==`download_backup`||!e.file||e.download.availability===`available`&&(!e.file.sealed||!e.result||e.download.endReason||!e.download.expiresAt)||e.download.availability===`ended`&&!e.download.endReason)&&t.addIssue({code:`custom`,message:`Download delivery must describe its own snapshot and lifetime.`}),e.draft?.kind===`download_backup`&&e.preparation!==void 0&&t.addIssue({code:`custom`,message:`Private download preparation is not public preparation data.`}),e.restoreCheck&&(e.draft?.kind!==`import_local_data`||e.result)&&t.addIssue({code:`custom`,message:`Restore checks belong to an uncompleted import preparation.`}),e.restoreCheck?.status===`can_restore`&&(e.phase!==`prepared`||!e.file?.sealed||!e.allowedActions.includes(`settings_confirm`))&&t.addIssue({code:`custom`,message:`Restore availability requires a sealed file and current confirmation.`}),e.draft?.kind===`import_local_data`&&e.restoreCheck?.status!==`can_restore`&&e.allowedActions.includes(`settings_confirm`)&&t.addIssue({code:`custom`,message:`An unchecked or blocked import cannot offer confirmation.`}),e.restoreCheck?.status===`receiving`&&(!e.file||e.file.sealed||![`draft`,`uploading`].includes(e.phase))&&t.addIssue({code:`custom`,message:`Receiving requires the selected unsealed upload.`}),e.restoreCheck?.status===`check_required`&&(!e.file?.sealed||e.phase!==`sealed`)&&t.addIssue({code:`custom`,message:`A new check requires the same complete sealed upload.`}),e.restoreCheck?.status===`cannot_restore`&&e.restoreCheck.reason===`invalid_backup`&&(e.phase===`prepared`||e.allowedActions.includes(`settings_prepare`))&&t.addIssue({code:`custom`,message:`A rejected backup requires an explicit new selection.`}),e.backupLocation&&!(e.result?.outcome===`completed`&&(e.draft?.kind===`export_local_data`||e.draft?.kind===`download_backup`&&e.download?.localSave?.status===`saved`&&e.download.endReason===`stored_locally`))&&t.addIssue({code:`custom`,message:`A backup location requires its recorded successful export.`}),e.download?.localSave?.status===`saved`&&!e.backupLocation&&t.addIssue({code:`custom`,message:`A saved backup must identify its verified location.`}),e.draft?.kind===`export_local_data`&&e.result?.outcome===`completed`&&typeof e.result.details?.path==`string`&&!e.backupLocation&&t.addIssue({code:`custom`,message:`A recorded backup path must provide its folder and file name.`}),e.temporaryFileCleanup&&!e.result&&t.addIssue({code:`custom`,message:`Cleanup of an applied or ended operation requires its recorded result.`}),(e.phase===`terminal`!=(e.result!==void 0)||e.phase===`terminal`&&(e.observe||e.allowedActions.length))&&t.addIssue({code:`custom`,message:`A terminal Settings result cannot grant input or observation.`}),e.phase===`prepared`&&(!e.preparationId||!e.draft||!e.preparation)&&t.addIssue({code:`custom`,message:`Settings confirmation requires a prepared identity and facts.`}),e.phase===`prepared`&&e.draft?.kind===`import_local_data`&&!dw.safeParse(e.preparation?.preview).success&&t.addIssue({code:`custom`,path:[`preparation`,`preview`],message:`Import confirmation requires the validated current and incoming read context and record counts.`}),e.phase===`prepared`&&(e.draft?.kind===`set_endpoint`||e.draft?.kind===`restore_endpoint`)){let n=cw.safeParse(e.preparation?.endpoint);(!n.success||n.data.endpoint!==e.draft.endpoint||n.data.status!==(e.draft.kind===`set_endpoint`?`saved`:`reset`)||e.draft.kind===`set_endpoint`&&n.data.value!==e.draft.value)&&t.addIssue({code:`custom`,path:[`preparation`,`endpoint`],message:`Endpoint confirmation must name its exact prepared target.`})}e.file&&e.file.receivedSize>e.file.totalSize&&t.addIssue({code:`custom`,message:`Received content exceeds the selected file.`})}),pw=64*1024;function mw(e){return new TextEncoder().encode(JSON.stringify(e)).length}function hw(e){let t=pw-mw(e);return t>0?3*Math.floor(t/4):0}function gw(e){if(!e||typeof e!=`object`)return;let t=structuredClone(e);if(!(t.method!==`tools/call`||t.params?.name!==`ui.act_card`||t.params.arguments?.input?.action!==`settings_upload_chunk`))return t.id=2**53-1,t.params.arguments.revision=2**53-1,t.params.arguments.input.offset=qC,t.params.arguments.input.chunkBase64=``,hw(t)}var _w={uiOpenAccount:`ui.open_account`,uiOpenReceipt:`ui.open_receipt`,uiOpenChart:`ui.open_chart`,uiReadCard:`ui.read_card`,uiSubmitCard:`ui.submit_card`,uiActCard:`ui.act_card`,uiReadSettingsFile:`ui.read_settings_file`,sessionOpenReviewManagement:`session.open_review_management`,readGetServerStatus:`read.get_server_status`,readListSupportedProtocols:`read.list_supported_protocols`,readListDeepbookPools:`read.list_deepbook_pools`,readListDeepbookTokens:`read.list_deepbook_tokens`,readInspectDeepbookOrderbook:`read.inspect_deepbook_orderbook`,readGetDeepbookMidPrice:`read.get_deepbook_mid_price`,readGetDeepbookUsdcPriceHistory:`read.get_deepbook_usdc_price_history`,readGetDeepbookUsdcPriceAtTime:`read.get_deepbook_usdc_price_at_time`,readQuoteDeepbookAction:`read.quote_deepbook_action`,readQuoteDeepbookDisplayAmount:`read.quote_deepbook_display_amount`,readSummarizeDeepbookAccountInventory:`read.summarize_deepbook_account_inventory`,readSummarizeWalletAssets:`read.summarize_wallet_assets`,readClassifyWalletAssets:`read.classify_wallet_assets`,readListSettlementAssetGroups:`read.list_settlement_asset_groups`,readSummarizeSettlementAssetGroupParity:`read.summarize_settlement_asset_group_parity`,readPreviewIntentEvidence:`read.preview_intent_evidence`,readListReviewActivity:`read.list_review_activity`,readSummarizeReviewFunnel:`read.summarize_review_funnel`,readGetReviewSessionDetail:`read.get_review_session_detail`,readInspectSuiTransaction:`read.inspect_sui_transaction`,readScanSuiAccountActivity:`read.scan_sui_account_activity`,readSummarizeSuiActivityScan:`read.summarize_sui_activity_scan`,readScanSuiFunctionActivity:`read.scan_sui_function_activity`,readSummarizeSuiFunctionActivityScan:`read.summarize_sui_function_activity_scan`,readSummarizeSuiAccountActivity:`read.summarize_sui_account_activity`,readGetAccountAssetTimeline:`read.get_account_asset_timeline`,settingsCreateLocalSettingsSession:`settings.create_local_settings_session`,settingsGetLocalSettings:`settings.get_local_settings`,actionPrepareSuiActionReview:`action.prepare_sui_action_review`,actionPrepareExternalProposalReview:`action.prepare_external_proposal_review`,sessionCreateWalletConnection:`session.create_wallet_connection`,sessionGetWalletConnection:`session.get_wallet_connection`,sessionWaitWalletConnection:`session.wait_wallet_connection`,sessionGetInteractionStatus:`session.get_interaction_status`,sessionGetReviewStatus:`session.get_review_status`,sessionGetExecutionResult:`session.get_execution_result`,sessionWaitExecutionResult:`session.wait_execution_result`,accountGetActiveAccount:`account.get_active_account`};yh();var vw=R({connectionId:N().min(1),pairingUri:N().startsWith(`wc:`),expiresAt:N().datetime()}).strict(),yw=V([`account`,`receipt`,`chart`,`connect`,`review`,`settings`]),bw=R({cardId:N().min(1),kind:yw,state:V([`ready`,`running`,`closed`]),revision:P().int().nonnegative(),createdAt:N().datetime(),expiresAt:N().datetime(),input:B(N(),I()),data:I().optional(),reason:V([`completed`,`expired`,`failed`,`server_restarted`,`cancelled`]).optional(),error:N().optional()}).strict().extend({pollAfterMs:P().int().positive(),inputRemainingMs:P().int().nonnegative()}),xw=R({transactionDigest:N().min(1),pureInputs:L(R({index:P().int().nonnegative(),bytes:N().regex(/^0x(?:[0-9a-f]{2})*$/i)}).strict()).refine(e=>new Set(e.map(e=>e.index)).size===e.length,`Duplicate input index.`),ptbGraph:R({mermaid:R({text:N(),namedText:N()}).strict()}).strict().optional()}).strict();yh();var Sw=`sui-mcp/card`,Cw=`sui-mcp/receipt-display`,ww=`sui-mcp/wallet-display`,Tw=`sui-mcp/settings-file`,Ew=`suimcp://cards/`,Dw=$f(`kind`,[R({kind:H(`account`),status:H(`input_required`),field:H(`account`),message:N().min(1)}).strict(),R({kind:H(`receipt`),status:H(`input_required`),field:H(`digest`),message:N().min(1)}).strict()]),Ow=R({cardId:N().min(1),permission:N().min(1)}).strict();Ow.extend({revision:P().int().nonnegative(),input:B(N(),I())}).strict();var kw=xw.extend({cardId:N().min(1),revision:P().int().nonnegative(),attemptId:N().min(1).optional()}),Aw=vw.extend({cardId:N().min(1),revision:P().int().nonnegative()}),jw=R({attemptId:N().uuid().optional(),cardId:N().min(1),operationId:N().uuid(),fileId:N().uuid(),offset:P().int().nonnegative().safe(),totalSize:P().int().nonnegative().safe(),sha256:N().regex(/^[a-f0-9]{64}$/),chunkBase64:N()}).strict(),Mw={account:_w.uiOpenAccount,receipt:_w.uiOpenReceipt,chart:_w.uiOpenChart,read:_w.uiReadCard,submit:_w.uiSubmitCard,act:_w.uiActCard,readSettingsFile:_w.uiReadSettingsFile};function $(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:void 0}function Nw(e){return e.kind!==`import_local_data`}function Pw(e,t,n){if(e.kind!==`settings`||t.kind!==`settings`||e.cardId!==t.cardId||t.state!==`ready`)return;let r=fw.safeParse(e.data),i=fw.safeParse(t.data);if(!r.success||!i.success)return;let a=r.data,o=i.data,s=o.draft;if(!s||!a.draft||a.operationId!==o.operationId||n.operationId!==o.operationId||JSON.stringify(a.draft)!==JSON.stringify(s))return;if(Nw(s))return n.action===`settings_prepare`?{kind:`preparation_response`,cardId:t.cardId,operationId:o.operationId,draft:s}:void 0;let c=o.file?.fileId;if(!(!c||!a.file?.fileId||a.file.fileId!==c||n.action!==`settings_prepare`&&n.action!==`settings_seal_upload`||n.action===`settings_seal_upload`&&n.fileId!==c))return{kind:`backup_check_response`,cardId:t.cardId,operationId:o.operationId,fileId:c,action:n.action}}function Fw(e,t){let n=$(e);if(!n)throw Error(`The app did not provide a usable card response.`);if(n.structuredContent!==void 0)return n;if(Array.isArray(n.content))for(let e of n.content){let r=$(e);if(r?.type!==`text`||typeof r.text!=`string`)continue;let i;try{i=$(JSON.parse(r.text))}catch{continue}if(i?.ok!==void 0)return{...n,structuredContent:i};if(t===`chatgpt`&&i&&Array.isArray(i.content))return Fw(i,void 0)}return n}function Iw(e,t){let n=$($(e?.data)?.request);return!!e&&(e.kind===`receipt`||e.kind===`review`)&&t.cardId===e.cardId&&t.revision===e.revision&&t.transactionDigest===(e.kind===`receipt`?e.input.digest:n?.transactionDigest)&&(e.kind!==`review`||t.attemptId===n?.attemptId)}function Lw(e,t){let n;for(let r of Array.isArray(e.content)?e.content:[]){let e=$(r),i;if(e?.type===`resource_link`&&typeof e.uri==`string`&&e.uri.startsWith(`suimcp://cards/`)&&(i=e.uri),t===`Claude`&&e?.type===`text`&&typeof e.text==`string`){let t=/^\[Resource link: card_([A-Za-z0-9_-]+)\] (suimcp:\/\/cards\/([A-Za-z0-9_-]+)) \(Saved data for this exact card\.\)$/.exec(e.text);if(t){if(t[1]!==t[3])throw Error(`The saved card links could not be matched to one card.`);i=t[2]}}if(i===void 0)continue;let a=i.slice(Ew.length);if(!a||encodeURIComponent(a)!==a||n!==void 0&&a!==n||e?.type===`resource_link`&&typeof e.name==`string`&&e.name.startsWith(`card_`)&&e.name!==`card_${a}`)throw Error(`The saved card links could not be matched to one card.`);n=a}return n}function Rw(e){let t=$(e.structuredContent),n=t?.ok===!0?Dw.safeParse(t.data):void 0,r=$($(t?.error)?.details),i=n?.success?void 0:t?.ok===!0?$(t.data)?.card??t.data:r?.snapshot,a=i===void 0?void 0:bw.parse(i);a?.kind===`settings`&&fw.parse(a.data);let o=$(e._meta)?.[Cw],s=o===void 0?void 0:kw.parse(o);if(s&&!Iw(a,s))throw Error(`Transaction details do not match this saved result.`);let c=$(e._meta)?.[ww],l=c===void 0?void 0:Aw.parse(c);if(l&&(!a||a.kind!==`connect`||l.cardId!==a.cardId||l.revision!==a.revision||l.connectionId!==$($(a.data)?.connection)?.connectionId))throw Error(`The connection QR code does not match this card.`);return{snapshot:a,display:s,wallet:l,inputRequired:n?.success?n.data:void 0,error:typeof r?.message==`string`?r.message:typeof r?.reason==`string`?r.reason:void 0}}function zw(e,t){let n=document.getElementById(`app`);if(!n)throw Error(`Card root is unavailable.`);let r=document.createElement(`h1`);r.textContent=t.title;let i=document.createElement(`p`);i.className=`ui-note`,i.setAttribute(`role`,`status`);let a=document.createElement(`p`);a.className=`ui-error`,a.setAttribute(`role`,`alert`);let o=document.createElement(`p`);o.className=`ui-note card-guidance`;let s=document.createElement(`section`),c=document.createElement(`div`);c.className=`card-actions`;let l=document.createElement(`div`);l.className=`card-progress-hint`,l.hidden=!0,n.replaceChildren(r,i,a,s,o,l,c);let u=new Wv({name:`sui-mcp-card`,version:`0.6.0`},{},{autoResize:!0,strict:!0}),d=new AbortController,f=e===`connect`||e===`review`,p=e===`settings`,m=f||p,h=!1,g,_,ee,v,y,te,ne,re=!1,ie=!1,ae,b,x={status:`unconfirmed`},oe,S,se,C,ce,le=`continue`,ue,de,fe=0,w=0,pe,me,he,T,E,ge,D,_e,ve=!1;function ye(){if(!C||!v)return;let{input:e,basis:t}=C,n=$(v.data),r=$(t.data),i=$(n?.request),a=$(n?.review),o=$(n?.connection),s=$(r?.request),c=$(r?.connection),l=!!i&&i.attemptId===s?.attemptId,u=!!o&&o.connectionId===c?.connectionId;if(!f)return v.state===`running`||v.reason===`completed`?C.delivery===`rejected`?`past`:`observed`:v.state===`closed`?`past`:`active`;if(e.walletRunId&&e.walletRunId!==$(n?.walletAvailability)?.walletRunId&&e.walletRunId!==n?.acceptedWalletRunId)return`past`;switch(e.action){case`connect`:if(v.state!==`ready`&&o)return`observed`;if(n?.walletAvailability&&$(n.walletAvailability)?.status===`available`&&Array.isArray(n.connections)&&n.connections.some(e=>$(e)?.status===`connected`))return`past`;break;case`prepare_review`:if(typeof a?.reviewRevision==`number`&&typeof e.reviewRevision==`number`&&a.reviewRevision>e.reviewRevision)return a.account===e.account?`observed`:`past`;break;case`request_signature`:if(i?.account===e.account&&i?.reviewRevision===e.reviewRevision)return`observed`;if(typeof a?.reviewRevision==`number`&&typeof e.reviewRevision==`number`&&a.reviewRevision>e.reviewRevision||!i&&a&&a.reviewRevision===e.reviewRevision&&a.account===e.account&&a.status===`refresh_required`&&$(a.state)?.refreshReason===`review_evidence_stale`&&Array.isArray(n?.allowedActions)&&n.allowedActions.includes(`prepare_review`))return`past`;break;case`cancel`:if(v.reason===`cancelled`)return`observed`;break;case`disconnect`:if(o&&o.connectionId===e.connectionId&&(o.pendingAction===`disconnect`||v.state!==`ready`&&o.status===`disconnected`))return`observed`;break;case`use_account`:if(v.reason===`completed`&&n?.activeAccount===e.account&&o?.connectionId===e.connectionId)return`observed`;break;case`stop_connection`:if(u&&o?.status===`stopped`)return`observed`;if(u&&o?.status!==`awaiting_approval`)return`past`;break;case`stop_waiting`:if(l&&(i?.requestStatus===`stopped`||n?.observationStopped===!0))return`observed`;if(l&&[`completed`,`request_failed`,`outcome_unknown`].includes(String(i?.requestStatus)))return`past`;break;case`read_result`:if(l&&(n?.observe===!0||i?.requestStatus===`completed`))return`observed`;if(l&&[`stopped`,`request_failed`].includes(String(i?.requestStatus)))return`past`;break}return be()||typeof n?.actionRemainingMs==`number`&&n.actionRemainingMs<=0||[`connect`,`disconnect`,`use_account`,`cancel`,`prepare_review`,`request_signature`].includes(String(e.action))&&(v.state!==`ready`||a?.status===`expired`)?`past`:`active`}function be(){let e=HC.safeParse(C?.input);if(!e.success||e.data.action!==`disconnect`&&e.data.action!==`use_account`)return!1;let t=e.data,n=WC.safeParse(v?.data);if(!n.success)return!1;let r=n.data.connections.find(e=>e.connectionId===t.connectionId);return r?t.action===`disconnect`?n.data.walletAvailability.status===`available`&&!r.pendingAction&&!n.data.manageableConnectionIds.includes(t.connectionId)&&[`disconnected`,`failed`,`rejected`,`stopped`,`expired`].includes(r.status):[`disconnected`,`failed`,`rejected`,`stopped`,`expired`].includes(r.status)||t.action===`use_account`&&r.status===`connected`&&!r.accounts.includes(t.account):!1}function xe(){if(!C)return;let e=ye();e&&C.disposition!==`observed`&&(e!==`active`||C.disposition===`active`)&&(C.disposition=e),C.disposition===`observed`&&(C.retryRequired=!1)}function Se(){let e=UC.safeParse($(v?.data)?.automaticAction);return C?.retryRequired&&e.success&&C.input.action===e.data.action?e.data:void 0}function Ce(e){let t={connect:`connection request`,prepare_review:`review update`,request_signature:`wallet approval request`,read_result:`transaction status check`,cancel:`cancellation request`,stop_connection:`request to stop connecting`,stop_waiting:$($(e.basis.data)?.request)?.requestStatus===`awaiting_signature`?`request to stop wallet approval`:`request to stop checking the result`,disconnect:`wallet disconnect request`,use_account:`account selection`};return f?t[String(e.input.action)]??`request`:`data request`}function we(e){if(e!==`past`||!C)return;let t=Ce(C),n=C.input.action===`read_result`&&$($(v?.data)?.request)?.requestStatus===`outcome_unknown`?` To check this transaction again, ask to open its result in chat.`:``;return`Message from an earlier ${t}: “${C.message}”${n}`}let Te,Ee;function De(){let t=$(v?.data),n=p?$(t?.download):void 0,r=Array.isArray(n?.allowedFileActions)?n.allowedFileActions:[],i=[...Array.isArray(t?.allowedActions)?t.allowedActions:[],...r.filter(e=>e===`settings_report_download`||Te===void 0||Date.now()<Te)],a=e===`review`&&t?.mode===`review`&&!t.request&&!!g&&v?.state===`ready`,o=a&&pe!==void 0&&Date.now()>=pe,s=document.visibilityState!==`hidden`,c=d.signal.aborted||x.status===`rejected`,l=x.status===`confirmed`,u=C?.disposition,ee=u===`active`,y=C?.retryRequired===!0,te=C?.input.action===`request_signature`&&u===`active`,ne=le===`paused`,ie=ge?.pending?.()===!0,ae=ge?.displayRecovery?.(),fe=l&&!c&&!S&&!ie&&!o&&!!g,me=fe&&!ce&&!h&&(!m||!(ue&&(ee||y||ne))),he=UC.safeParse(t?.automaticAction),T=p?$(n?.localSave):void 0,E=!!v&&(m?t?.observe===!0||T?.status===`saving`:v.state===`running`),D=!!_&&re&&!c&&!ue&&s&&(de===`explicit`||x.status!==`read_failed`&&(de===`background`||x.status===`needed`&&x.automatic)),_e=s&&fe&&!oe&&!ue&&!de&&!ce&&!y&&!te&&!ne&&f&&he.success&&i.includes(he.data.action)?he.data:void 0,ve=$(t?.restoreCheck),ye=p&&fe&&v?.state===`ready`&&!ce&&!h&&!t?.result&&t?.observe!==!0&&(ve?.status===`cannot_restore`&&[`operation_busy`,`wallet_request_unsettled`].includes(String(ve.reason))||!i.includes(`settings_select`)||!i.includes(`settings_download_backup`)||t?.phase===`prepared`&&!i.includes(`settings_confirm`)||t?.phase===`draft`&&$(t.draft)?.kind!==void 0&&$(t.draft)?.kind!==`import_local_data`&&!i.includes(`settings_prepare`)),be;!c&&_&&(x.status===`read_failed`||oe||x.status===`unconfirmed`?be=`read`:x.status===`needed`?x.automatic||(be=`read`):S||ae||p&&[`pending`,`failed`].includes(String(t?.temporaryFileCleanup))||T?.status===`saving`||T?.status===`needs_consent`&&!i.includes(`settings_store_backup`)||T?.status===`failed`&&T.failure===`not_published`&&!n?.endReason&&!i.includes(`settings_store_backup`)||ye?be=`read`:g?$(t?.progress)?.status===`unavailable`||$(t?.walletAvailability)?.status===`initializing`&&$(t?.walletAvailability)?.stage===`state_sync`?be=`read`:!ne&&Se()?be=`retry`:ee&&!E&&!(ne&&i.length>0)&&!(C?.input.action===`prepare_review`&&i.includes(`prepare_review`)&&t?.automaticAction===void 0)&&f&&(be=`read`):(v?.state!==`closed`||S)&&(be=`read`));let xe=f?t?.actionRemainingMs:v?.inputRemainingMs;be===`retry`&&o&&(be=`read`);let Ee=f?t?.nextStateReadAfterMs:p&&Te!==void 0?Math.max(0,Te-w):void 0,De=[(f?i.length>0:v?.state===`ready`)?xe:void 0,Ee].filter(e=>typeof e==`number`&&Number.isFinite(e)&&e>0),Oe=!c&&!!g&&s&&!b&&!oe&&x.status!==`read_failed`,ke=$(t?.review),Ae=a&&!c&&!oe&&!S&&!ee&&!y&&!ne&&x.status!==`read_failed`&&(ie||ce?.input.action===`prepare_review`||ke?.preparing===!0||he.success&&he.data.action===`prepare_review`||x.status===`needed`&&ke?.status===`ready_for_wallet_review`);return{current:l,inputEnabled:me,permitted:i,disposition:u,read:D,auto:_e,recover:be,paused:ne,partialDisplayFailure:ae,settingsInputBlocked:ye,reviewUpdatePending:Ae,reviewCommandDeliveryFailed:ee&&C?.input.action===`prepare_review`,reviewHint:o?void 0:Ae?ie||ke?.preparing||ce?.input.action===`prepare_review`?`Updating review…`:`Checking status…`:a&&$(ke?.state)?.refreshReason===`review_evidence_stale`?`Review details are out of date.`:void 0,errors:[x.status===`rejected`?x.message:x.status===`read_failed`?`This card's status could not be checked. Reported message: “${x.message}”`:void 0,oe&&x.status!==`rejected`?`This card could not be opened. Reported message: “${oe}”`:void 0,ee&&C?`Message for this ${Ce(C)}: “${C.message}”`:void 0,S,ae?.message],note:[se,we(u)].filter(Boolean).join(` `),expiryAt:Oe&&l&&De.length?w+Math.min(...De):void 0,poll:Oe&&(E||x.status===`needed`&&!x.automatic),lifetimeAt:!c&&s&&a?pe:void 0}}function Oe(e){return e.recover===`retry`?C?.input.action===`connect`?`Retry connection`:`Retry review`:e.recover===`read`?`Check status`:void 0}function ke(e){if(d.signal.aborted)return``;let n=e.errors.some(Boolean)||e.recover!==void 0||!!v&&!g&&v.state!==`closed`||v?.state===`closed`&&v.reason!==`completed`,r=e.errors.some(Boolean)||x.status!==`confirmed`||e.recover===`retry`||e.settingsInputBlocked;if(n&&r&&x.status!==`rejected`){if(ue||e.read)return`Checking status…`;let t=Oe(e);if(t)return t===`Check status`?S||e.partialDisplayFailure?`Use Check status to read this card and try displaying it again.`:`Use Check status to read this card again.`:t===`Retry connection`?`Use Retry connection to try connecting your wallet again.`:`Use Retry review to try again with the displayed wallet and account.`;if(Ae(e)&&ge?.selectionHint)return ge.selectionHint}return t.guidance?.(v,{confirmed:e.current,readOnly:!g,recoveryNeeded:n,visibleConfirmation:ge?.visibleConfirmation?.(),commandPending:m&&ce&&e.current&&!e.errors.some(Boolean)&&(ce.phase===`confirming`||v?.state===`ready`&&!$(v.data)?.runtimeRecovery&&!$(v.data)?.request&&!$($(v.data)?.review)?.preparing)?{phase:ce.phase,action:String(ce.input.action)}:void 0,approvalUnresolved:C?.input.action===`request_signature`&&e.disposition===`active`||ce?.input.action===`request_signature`,automaticPaused:e.paused})??``}function Ae(e=De()){return e.inputEnabled&&v?.state===`ready`&&ve}function je(e,t=De()){return m&&t.inputEnabled&&(e?t.permitted.includes(e.action):t.permitted.length>0)}function O(e){let t=De();return p&&h&&t.current&&!!g&&!ce&&!ue&&!S&&!d.signal.aborted&&[`settings_begin_upload`,`settings_upload_chunk`,`settings_seal_upload`,`settings_retry_download`,`settings_report_download`,`settings_cancel_download`,`settings_store_backup`].includes(String(e.action))&&t.permitted.includes(e.action)}function Me(e){let u=$(v?.data),f=s.querySelector(`.review-action-feedback`),_=s.querySelector(`.review-primary-action`);if(_&&f){let e=s.querySelector(`.review-lifetime`);e?(e.append(l),f.prepend(a)):f.prepend(l,a),f.append(o)}else n.insertBefore(a,s),n.insertBefore(l,c),n.insertBefore(o,l);a.className=_?`ui-note`:`ui-error`,v?(r.textContent=t.titleFor?.(v)??t.title,i.textContent=x.status===`rejected`?`Card unavailable`:!e.current&&v.state===`ready`?_?``:!d.signal.aborted&&(ue||e.read)?`Checking whether actions are available in this card…`:`Actions are unavailable until this card's status is checked.`:!g&&v.state!==`closed`?`View only.`:m?$(u?.progress)?.status===`unavailable`?`Current progress is unavailable. The last recorded state is shown.`:!u?.request&&v.state===`closed`&&[`expired`,`server_restarted`,`cancelled`].includes(v.reason??``)?`This card no longer accepts actions.`:``:v.state===`running`?`Reading the requested data…`:v.reason===`completed`?``:v.error??(v.reason===`expired`?`The time to make a selection has ended.`:v.reason===`server_restarted`?`This request ended when Sui MCP restarted.`:``)):i.textContent=b?``:x.status===`read_failed`?`Card status unavailable`:oe||x.status===`rejected`?`Card unavailable`:`Opening card…`,i.hidden=!i.textContent,a.textContent=[...new Set(e.errors.filter(Boolean))].join(` `),a.hidden=!a.textContent;let ee=s.querySelector(`.review-status`);ee&&(ee.hidden=!!_&&(e.reviewUpdatePending||!!a.textContent));let y=s.querySelector(`.review-material-status`);if(y&&(y.textContent=y.dataset.previous===`true`||!e.current||e.reviewUpdatePending?y.dataset.previousLabel??``:y.dataset.currentLabel??``),o.textContent=[e.note,ke(e)].filter(Boolean).join(` `),o.hidden=!o.textContent,ve)for(let t of s.querySelectorAll(`input, button, select`))(!m||t.tagName!==`BUTTON`||t.dataset.cardAction!==void 0)&&(t.disabled=m?!je(void 0,e):!Ae(e));if(m)for(let t of s.querySelectorAll(`[data-card-action]`))t.disabled=!je({action:t.dataset.cardAction},e);if(p)for(let t of s.querySelectorAll(`[data-settings-file-action]`))t.disabled=t.dataset.settingsLocalBlocked===`true`||!(h?O({action:t.dataset.cardAction}):je({action:t.dataset.cardAction},e));_&&(e.reviewUpdatePending||_.dataset.cardAction===`request_signature`&&e.reviewCommandDeliveryFailed||_.dataset.cardAction===void 0)&&(_.disabled=!0),E&&(E.disabled=!!ce||!!ue)}function Ne(e){try{e?.()}catch{S=`The card display could not be closed cleanly. Its stored information is unchanged.`}}function Pe(e){if(!v||d.signal.aborted)return;if(v.state===`ready`&&x.status!==`confirmed`){if(p&&ge?.update)try{ge.update(v,{automaticPaused:le===`paused`,settings:k,settingsCommandProgress:void 0,onDisplayChange:()=>ze()})}catch{S=`This card could not be displayed. Its stored information is unchanged.`}return}if(v.state===`running`&&!m){S=void 0;return}let n=m?{...$(v.data),actionRemainingMs:void 0,nextStateReadAfterMs:void 0,...p&&$(v.data)?.download?{download:{...$($(v.data)?.download),remainingMs:void 0}}:{}}:void 0,r=p&&ce?.phase===`sending`&&x.status===`confirmed`?Pw(ce.basis,v,ce.input):void 0,i=`${le===`paused`}:${JSON.stringify(r)}:${v.revision}:${g!==void 0}:${y!==void 0}:${ne!==void 0}:${JSON.stringify(n)}`;if(i===D||i===_e&&!e)return;_e=i;let a=[...s.children],o=new Set([...s.querySelectorAll(`details`)].filter(e=>e.open).map(e=>e.querySelector(`summary`)?.textContent)),c,l=!1,u=!1;try{let e={automaticPaused:le===`paused`,onDisplayChange:()=>ze(),...p?{settings:k,settingsCommandProgress:r}:{}};if(ge?.update?.(v,e)){D=i,S=void 0;return}if(v.state===`ready`&&g){let n=t.controls(v,e=>{Ke(e)},y,ne,e);c=`node`in n?n:{node:n},l=!0}else (m||v.reason===`completed`)&&v.data!==void 0&&(c=t.result(v,y,g?e=>{Ke(e)}:void 0,ne,e));s.replaceChildren(...c?[c.node]:[]),u=!0,c?.mount?.();for(let e of s.querySelectorAll(`details`))o.has(e.querySelector(`summary`)?.textContent)&&(e.open=!0)}catch{u&&s.replaceChildren(...a),Ne(c?.dispose),S=`This card could not be displayed. Its stored information is unchanged.`;return}let f=ge?.dispose;ge=c,ve=l,D=i,S=void 0,Ne(f)}function Fe(t,n,r,i,a){if(d.signal.aborted||x.status===`rejected`)return!1;if(t.kind!==e||t.cardId!==_)throw x={status:`rejected`,message:`The returned information does not match this card.`},Error(`The returned information does not match this card.`);let o=$(t.data),s=$(o?.request),c=$(s?.execution),l=o?.automaticAction===void 0?void 0:UC.safeParse(o.automaticAction);if(l&&!l.success)throw Error(`This card could not start the next step.`);if(v&&t.revision<v.revision)return!1;if(ee&&[...new Set([...Object.keys(ee),...Object.keys(t.input)])].some(e=>JSON.stringify(t.input[e])!==JSON.stringify(ee[e])))throw x={status:`rejected`,message:`The returned information does not match this card.`},Error(`The returned information does not match this card.`);if(e===`review`&&($(o?.review)?.reviewSessionId!==void 0&&$(o?.review)?.reviewSessionId!==t.input.reviewSessionId||s&&(s.reviewSessionId!==t.input.reviewSessionId||t.input.attemptId!==void 0&&s.attemptId!==t.input.attemptId)||c&&(c.reviewSessionId!==s?.reviewSessionId||c.attemptId!==s?.attemptId||c.txDigest!==s?.transactionDigest)||$(o?.receipt)?.status===`found`&&$($(o?.receipt)?.receipt)?.txDigest!==s?.transactionDigest)||e===`receipt`&&o?.status===`found`&&$(o.receipt)?.txDigest!==t.input.digest)throw x={status:`rejected`,message:`The saved result does not match the information requested in this card.`},Error(x.message);!ee&&(f||t.state!==`ready`)&&(ee={...t.input});let u=r!==`preview`;if((!v||t.revision!==v.revision)&&(y=void 0,ne=void 0),v=t,xe(),u){w=Date.now();let t=p?$(o?.download):void 0;if(t?.availability===`available`&&typeof t.remainingMs==`number`&&Number.isFinite(t.remainingMs)){let e=`${o?.operationId}:${$(o?.file)?.fileId}:${t.expiresAt}`;Ee!==e&&(Ee=e,Te=void 0),Te=Math.min(Te??1/0,w+Math.max(0,t.remainingMs))}else p&&t?.availability===`ended`&&(Te=void 0);g&&e===`review`&&o?.mode===`review`&&!o.request&&typeof o.actionRemainingMs==`number`&&Number.isFinite(o.actionRemainingMs)&&o.actionRemainingMs>=0&&(pe=Math.min(pe??1/0,w+o.actionRemainingMs))}return r===`read`&&(x.status!==`needed`||a>x.afterRead)&&(x={status:`confirmed`},oe=void 0),n&&(y=n),ne=i,!0}function Ie(){me!==void 0&&clearTimeout(me),he!==void 0&&clearTimeout(he),T!==void 0&&clearTimeout(T),me=void 0,he=void 0,T=void 0,l.hidden=!0}function Le(e){let t=Oe(e);E?.textContent!==t&&(E?.remove(),E=void 0,t&&(E=Kv(t,()=>{if(!(ue||ce||d.signal.aborted))if(De().recover===`retry`){let e=Se();e&&Ge(e)}else Re()})));let n=s.querySelector(`.review-primary-action`),r=s.querySelector(`.review-primary-slot`);n&&(n.hidden=!!E&&!!r),E&&(E.disabled=!!ue||!!ce,r?(E.classList.add(`review-recovery-action`),r.append(E)):(E.classList.remove(`review-recovery-action`),c.append(E)))}async function Re(){let e=ge,t=e?.displayRecovery?.(),n=await Ve(!0);n?.kind===`accepted`&&v===n.snapshot&&x.status===`confirmed`&&!d.signal.aborted&&document.visibilityState!==`hidden`&&!S&&e===ge&&t&&e?.displayRecovery?.()===t&&(t.retry(),ze())}function ze(e=!1){if(b){let e=document.createElement(`p`);e.className=`ui-note`,e.textContent=b,s.replaceChildren(e)}else Pe(e);let t=De();if(Me(t),Ie(),Le(t),d.signal.aborted||x.status===`rejected`)return;t.expiryAt!==void 0&&(he=setTimeout(()=>{Be(),ze()},Math.max(0,t.expiryAt-Date.now()))),t.reviewHint&&!a.textContent&&(l.replaceChildren(),l.textContent=t.reviewHint,l.setAttribute(`role`,`status`),l.hidden=!1);let n=s.querySelector(`.review-time-remaining`);if(n&&t.lifetimeAt!==void 0){let e=t.lifetimeAt,r=()=>{if(d.signal.aborted)return;let t=Math.max(0,e-Date.now()),i=Math.ceil(t/1e3);if(n.textContent=t>0?`Review expires in ${Math.floor(i/60)}:${String(i%60).padStart(2,`0`)}`:`Review time elapsed`,t>0)T=setTimeout(r,Math.min(1e3,t));else{let e=De();Me(e),Le(e)}};r()}if(t.poll&&v){let e=w+v.pollAfterMs-Date.now();me=setTimeout(()=>{Ve(!1)},e>0?e:v.pollAfterMs)}t.read?(de=void 0,He()):t.auto&&(me=setTimeout(()=>{let e=De().auto;e&&Je(e,`automatic`)},0))}function Be(){x.status!==`rejected`&&x.status!==`read_failed`&&(x={status:`needed`,afterRead:fe,automatic:!0})}function Ve(e){return d.signal.aborted||x.status===`rejected`||!_||!re?Promise.resolve(void 0):ue?ue.promise:x.status===`read_failed`&&!e?Promise.resolve(void 0):(de=e?`explicit`:`background`,ze(),ue?.promise??Promise.resolve(void 0))}function He(){let e=++fe,t=performance.now(),n={id:e,promise:Promise.resolve().then(async()=>{try{let n,r,i;if(g){let e=Rw(await Ue(Mw.read,g));if(!e.snapshot)throw Error(e.error??`Saved card data is unavailable.`);if(e.error)throw Error(e.error);n=e.snapshot,r=e.display,i=e.wallet}else{let e=`${Ew}${encodeURIComponent(_)}`,t=(await u.readServerResource({uri:e},{signal:d.signal})).contents.find(t=>t.uri===e&&`text`in t);if(!t||!(`text`in t))throw Error(`Saved card data is unavailable.`);n=bw.parse(JSON.parse(t.text));let i=y??te;r=i&&Iw(n,i)?i:void 0}if(d.signal.aborted||x.status===`rejected`)return{kind:`disposed`,id:e};let a=Fe(n,r,`read`,i,e);return te=void 0,!a&&x.status===`needed`&&e>x.afterRead&&(x={...x,automatic:!1}),ze(a),a&&x.status===`confirmed`?{kind:`accepted`,snapshot:n,id:e,requestStartedAt:t}:{kind:`ignored`,id:e}}catch(t){return d.signal.aborted?{kind:`disposed`,id:e}:(x.status!==`rejected`&&(x={status:`read_failed`,message:t instanceof Error?t.message:`Saved card data could not be read. The last displayed result is unchanged.`}),{kind:`failed`,id:e})}}).finally(()=>{ue===n&&(ue=void 0),ze()})};ue=n,ze()}async function Ue(e,t){return Fw(await u.callServerTool({name:e,arguments:t},{signal:d.signal}),u.getHostVersion()?.name)}function We(e,t,n){let r=WC.safeParse(n.data);if(!r.success||!r.data.allowedActions.some(t=>t===e.action))return!1;let i=r.data,a=$(t.data);return e.walletRunId&&e.walletRunId!==i.walletAvailability.walletRunId?!1:e.action===`connect`?i.allowedActions.includes(`connect`)&&[`connect`,`manage`].includes(String(n.input.intent)):e.action===`prepare_review`||e.action===`request_signature`?i.review?.reviewRevision===e.reviewRevision&&(e.action===`prepare_review`?i.assetReadAccount?.status===`available`?i.assetReadAccount.account:void 0:i.review?.account)===e.account&&GC(i,String(e.account),e.action===`request_signature`).some(t=>t.connectionId===e.connectionId):e.action===`disconnect`?i.manageableConnectionIds.includes(String(e.connectionId))&&i.connections.some(t=>t.connectionId===e.connectionId&&!t.pendingAction):e.action===`use_account`?i.connections.some(t=>t.connectionId===e.connectionId&&t.status===`connected`&&!t.pendingAction&&t.connectionId===i.usableConnectionId&&t.accounts.includes(String(e.account))):i.connection?.connectionId===$(a?.connection)?.connectionId&&i.request?.attemptId===$(a?.request)?.attemptId&&i.review?.reviewRevision===$(a?.review)?.reviewRevision}async function Ge(e){if(!v||ue||!je(e))return;let t={input:e,basis:v,phase:`confirming`};ce=t;let n=await Ve(!1);ce===t&&(ce=void 0,n?.kind===`accepted`&&v===n.snapshot&&x.status===`confirmed`&&!d.signal.aborted&&document.visibilityState!==`hidden`&&We(e,t.basis,n.snapshot)&&je(e)?await Je(e):x.status!==`read_failed`&&x.status!==`rejected`&&!d.signal.aborted&&(se=`The card state changed. Check the current selection before trying again.`),ze())}async function Ke(e){f&&(C?.disposition===`active`||C?.retryRequired||le===`paused`)?await Ge(e):await Je(e)}function qe(e,t,n){C={input:e.input,basis:e.basis,message:t,delivery:n,disposition:`active`,retryRequired:e.input.action===`connect`||e.input.action===`prepare_review`},xe(),[`cancel`,`disconnect`,`stop_connection`,`stop_waiting`,`use_account`].includes(String(e.input.action))&&(le=`paused`),(m||n===`unknown`)&&Be()}async function Je(e,t=`user`){if(!v||!g||(t===`file`?!O(e):m?!je(e):!Ae()))return;let n={input:e,basis:v,phase:`sending`};ce=n,le=`continue`,(t===`user`||C?.disposition!==`past`)&&(C=void 0),se=void 0,ze();try{let t=Rw(await Ue(m?Mw.act:Mw.submit,{...g,revision:n.basis.revision,input:e}));if(d.signal.aborted||x.status===`rejected`)return;if(!t.snapshot)throw Error(t.error??`The request could not be confirmed.`);t.error&&qe(n,t.error,`rejected`),Fe(t.snapshot,t.display,`action`,t.wallet)}catch(e){!d.signal.aborted&&x.status!==`rejected`&&(qe(n,e instanceof Error?e.message:`The request could not be confirmed.`,`unknown`),C&&(C.data=$(e)?.data))}finally{ce===n&&(ce=void 0),ze()}}let k={uploadChunkLimit(e,t){return g?gw({jsonrpc:`2.0`,id:2**53-1,method:`tools/call`,params:{name:Mw.act,arguments:{...g,revision:2**53-1,input:{action:`settings_upload_chunk`,operationId:e,fileId:t,offset:2**53-1,chunkBase64:``}}}})??0:0},async readCurrent(){let e=await Ve(!0);if(e?.kind!==`accepted`)throw Error(`The current Settings selection could not be checked. Use Check status before continuing.`);return{snapshot:e.snapshot,requestStartedAt:e.requestStartedAt}},async act(e,t=!1){if(t?!O(e):!je(e))throw Error(`This Settings action is unavailable until its current status has been checked.`);if(await Je(e,t?`file`:`user`),d.signal.aborted)throw Error(`This card closed before the request finished. Reopen the same conversation to check its status.`);if(C?.input===e){let e=Error(C.message);throw e.data=C.data,e}if(!v)throw Error(`The current Settings status could not be checked.`);return v},setFileTransferActive(e){h=e,ze()},async readFile(e){if(!g||!_||!De().current||d.signal.aborted)throw Error(`Backup read permission is unavailable.`);let t=await Ue(Mw.readSettingsFile,{...g,...e}),n=jw.parse($(t._meta)?.[Tw]);if(n.cardId!==_||n.operationId!==e.operationId||n.fileId!==e.fileId||n.offset!==e.offset||n.attemptId!==e.attemptId)throw Error(`The backup response does not match this card's selected file.`);return n},download:async(e,t,n)=>{let r=$($(v?.data)?.download);if(!g||!De().current||d.signal.aborted||document.visibilityState===`hidden`||r&&(r.currentAttemptId!==n||r.localSave||r.availability!==`available`||Te===void 0||Date.now()>=Te))throw Error(`This download is no longer available in this card.`);try{return{isError:(await u.downloadFile({contents:[{type:`resource`,resource:{uri:`file:///${encodeURIComponent(e)}`,mimeType:`application/json`,blob:t}}]},{signal:d.signal})).isError}}catch(e){if(e&&typeof e==`object`&&`code`in e&&e.code===-32601)return{unsupported:!0};throw e}}};async function Ye(){if(!(!re||ae===void 0||ie)){ie=!0;try{let t=Fw(ae,u.getHostVersion()?.name),n=$(t._meta);if(t._meta!==void 0&&!n)throw Error(`This card cannot accept actions with the access information provided by the app.`);let r=n?.[Sw];if(r!==void 0){let e=Ow.safeParse(r);if(!e.success)throw Error(`This card cannot accept actions with the access information provided by the app.`);g=e.data}let i=Rw(t);if(i.inputRequired){if(i.inputRequired.kind!==e||g)throw Error(`The app provided inconsistent card input information.`);b=i.inputRequired.message,ze();return}let a=Lw(t,u.getHostVersion()?.name),o=[i.snapshot?.cardId,g?.cardId,a].filter(e=>e!==void 0);if(!o.length)throw Error(`Card data is unavailable.`);if(o.some(e=>e!==o[0])||i.snapshot&&i.snapshot.kind!==e)throw x={status:`rejected`,message:`The returned information does not match this card.`},Error(x.message);_=o[0];let s=i.snapshot;s&&(f||s.state!==`ready`)&&(ee={...s.input}),te=i.display,s&&g&&Fe(s,i.display,`preview`,i.wallet),Be(),ze()}catch(e){if(d.signal.aborted)return;oe=e instanceof Error?e.message:`Card data could not be read.`,ze()}}}u.ontoolresult=e=>{if(ae===void 0){ae=e,Ye();return}try{let t=Rw(Fw(ae,u.getHostVersion()?.name)).snapshot??v,n=Rw(Fw(e,u.getHostVersion()?.name)).snapshot;if(t&&n&&(t.cardId!==n.cardId||t.kind!==n.kind))throw Error(`The app returned a different card.`)}catch{x={status:`rejected`,message:`The returned information does not match this card.`},ze()}},u.onhostcontextchanged=e=>{e.theme&&(document.documentElement.dataset.theme=e.theme)};let Xe=()=>{document.visibilityState!==`hidden`&&g&&ie&&x.status!==`read_failed`?Ve(!1):ze()};document.addEventListener?.(`visibilitychange`,Xe),u.onteardown=async()=>{if(d.signal.aborted)return{};d.abort(),ce=void 0,document.removeEventListener?.(`visibilitychange`,Xe);let e=ge?.dispose;return ge=void 0,Ne(e),ze(),{}},u.connect().then(()=>{d.signal.aborted||(re=!0,document.documentElement.dataset.theme=u.getHostContext()?.theme??`light`,Ye())}).catch(()=>{d.signal.aborted||(oe=`Could not connect this card to the app.`,ze())})}function Bw(e){let t=``;for(let n of e)t+=String.fromCharCode(n);return btoa(t)}function Vw(e){let t=atob(e),n=Uint8Array.from(t,e=>e.charCodeAt(0));if(Bw(n)!==e)throw Error(`Part of the backup could not be read correctly.`);return n}async function Hw(e,t,n,r,i){if(e.size>16777216)throw Error(`This backup exceeds the 16 MiB limit. Choose a smaller backup.`);let a=n();t.setFileTransferActive(!0);try{r()&&i?.({...a,stage:`reading`});let n=new Uint8Array(await e.arrayBuffer()),o=sb(tx(n));if(!r())return;i?.({...a,stage:`receiving`,sha256:o});let s=await t.act({action:`settings_begin_upload`,operationId:a.operationId,name:e.name,totalSize:n.length,sha256:o},!0),c=fw.parse(s.data),l=c.file?.receivedSize??0,u=c.file?.fileId;if(!u||c.operationId!==a.operationId||c.file?.sha256!==o||c.file.totalSize!==n.length)throw Error(`The file being received does not match your selection. Choose the backup file again.`);r()&&i?.({...a,stage:`receiving`,fileId:u,sha256:o});let d=t.uploadChunkLimit(a.operationId,u);for(;r()&&l<n.length;){if(d<1)throw Error(`This app cannot send the backup within its message size limit. Try opening Settings in another supported app.`);let e=Math.min(d,n.length-l),r={action:`settings_upload_chunk`,operationId:a.operationId,fileId:u,offset:l,chunkBase64:Bw(n.subarray(l,l+e))};try{s=await t.act(r,!0)}catch(n){let r=n&&typeof n==`object`&&`data`in n?n.data:void 0;if(r?.code!==`settings_payload_too_large`||typeof r.rawChunkLimit!=`number`||!Number.isSafeInteger(r.rawChunkLimit)||r.rawChunkLimit<1||r.rawChunkLimit>=e)throw n;let i=fw.parse((await t.readCurrent()).snapshot.data);if(i.file?.fileId!==u||i.file.receivedSize!==l)throw Error(`The file transfer changed after a message was rejected. Choose the same file again to check how much was received.`);d=r.rawChunkLimit;continue}if(c=fw.parse(s.data),c.operationId!==a.operationId||c.file?.fileId!==u||c.file.sha256!==o||c.file.receivedSize!==l+e)throw Error(`The file transfer could not be confirmed. Choose the same file again to continue.`);l=c.file.receivedSize}r()&&(i?.({...a,stage:`checking`,fileId:u,sha256:o}),await t.act({action:`settings_seal_upload`,operationId:a.operationId,fileId:u},!0))}finally{t.setFileTransferActive(!1)}}async function Uw(e,t,n,r){n(`pending`);let i;try{i=new Uint8Array(e.totalSize);let n=0;for(;n<i.length&&r();){let r=await t.readFile({operationId:e.operationId,fileId:e.fileId,offset:n,...e.attemptId?{attemptId:e.attemptId}:{}}),a=Vw(r.chunkBase64);if(r.totalSize!==i.length||r.sha256!==e.sha256||!a.length||n+a.length>i.length)throw Error(`Part of the downloaded backup does not match the original file.`);i.set(a,n),n+=a.length}if(!r())return;if(n!==i.length||sb(tx(i))!==e.sha256)throw Error(`The complete downloaded backup could not be checked against the original file.`)}catch{if(e.attemptId&&r())try{await t.readCurrent()}catch{}return r()&&n(`backup_unverified`),`backup_unverified`}if(e.attemptId)try{let n=await t.readCurrent(),i=fw.parse(n.snapshot.data);if(!r()||i.operationId!==e.operationId||i.file?.fileId!==e.fileId||i.file.sha256!==e.sha256||i.file.totalSize!==e.totalSize||i.download?.currentAttemptId!==e.attemptId||i.download.localSave||i.download.availability!==`available`||!i.download.remainingMs)return;if(i.download.remainingMs<=Math.max(0,performance.now()-n.requestStartedAt)){try{await t.readCurrent()}catch{}return}}catch{return r()&&n(`backup_unverified`),`backup_unverified`}try{if(!r())return;let a=await(e.attemptId?t.download(e.displayName,Bw(i),e.attemptId):t.download(e.displayName,Bw(i))),o=a.unsupported===!0?`unsupported`:a.isError===!0?`not_completed`:`acknowledged`;return r()&&n(o),o}catch{return r()&&n(`unconfirmed`),`unconfirmed`}}var Ww={set_endpoint:`Change network address`,restore_endpoint:`Use default network address`,clear_read_address:`Clear default address`,download_backup:`Backup`,export_local_data:`Backup`,import_local_data:`Restore`,reset_local_data:`Reset`,restart_wallet_service:`Connection service restart`},Gw={overview:`Settings`,address:`Address for viewing assets`,records:`Local records`,troubleshooting:`Troubleshooting`,advanced:`Advanced settings`},Kw={address:`View or clear the address used by default when checking your assets.`,records:`Back up, restore or delete records saved on this computer.`,troubleshooting:`Check or restart the wallet connection service.`,advanced:`Change the Sui network addresses used to retrieve data and send transactions.`},qw=`Local records are saved addresses, reviews, transaction and activity records, and Sui network settings on this computer. They do not include wallet keys, wallet connections or wallet approvals.`,Jw=`Fully quit every app using Sui MCP, then reopen them. Closing a window or quitting only one app may leave Sui MCP running.`,Yw={available:`Ready`,initializing:`Starting`,recovering:`Restarting`,unavailable:`Unavailable`},Xw={environment:`App launch settings`,local_db:`Saved in Sui MCP`,builtin_default:`Built-in default`},Zw={connected:`Connected`,awaiting_approval:`Waiting for wallet approval`,rejected:`Rejected`,failed:`Failed`,expired:`Expired`,stopped:`Stopped`,disconnected:`Disconnected`},Qw=[[`accounts`,`Saved addresses`],[`reviewSessions`,`Reviews`],[`reviewRequests`,`Transaction requests`],[`outcomeUnknownRequests`,`Transaction requests with unconfirmed results`],[`externalActivityTransactions`,`Activity records`],[`localSettings`,`Saved network settings`]],$w={set_endpoint:`Save network address?`,restore_endpoint:`Use default network address?`,clear_read_address:`Clear the default address for viewing assets?`,download_backup:`Download backup`,export_local_data:`Back up local records?`,import_local_data:`Restore available`,reset_local_data:`Reset local data?`,restart_wallet_service:`Restart connection service?`},eT={set_endpoint:`Save network address`,restore_endpoint:`Use default network address`,clear_read_address:`Clear default address`,download_backup:`Download backup`,export_local_data:`Create backup`,import_local_data:`Restore local records`,reset_local_data:`Reset local data`,restart_wallet_service:`Restart connection service`};function tT(e){return e&&typeof e==`object`&&!Array.isArray(e)?e:{}}function nT(e){return e===`clear_read_address`?`address`:e===`set_endpoint`||e===`restore_endpoint`?`advanced`:e===`restart_wallet_service`?`troubleshooting`:e?`records`:`overview`}function rT(e,t,n){let r=tT(t);e.append(J(`h3`,void 0,n));for(let[t,n]of Qw)typeof r[t]==`number`&&e.append(Y(n,String(r[t])))}function iT(e,t,n){let r=fw.parse(e.data),i=e,a=r.draft?{kind:`operation`,operation:r.draft.kind}:{kind:`section`,page:`overview`},o=!1,s=n?.settings,c=n?.onDisplayChange,l,u=!1,d,f=n?.settingsCommandProgress,p,m,h,g,_,ee=J(`div`,`settings-card`),v=(e,n,r=`secondary`)=>{let i=Kv(e,()=>{!o&&!u&&t?.(n)},r);return i.dataset.cardAction=String(n.action),i},y=(e,t)=>{let n=Kv(e,()=>{if(o)return;let e=a.kind===`section`?a.page:nT(a.operation);a=t,C(),(t.kind===`section`&&t.page===`overview`?[...ee.querySelectorAll(`.settings-menu-item`)].find(t=>t.dataset.settingsPage===e):ee.querySelector(`.settings-back`))?.focus(),c?.()},`secondary`);return n.setAttribute(`aria-label`,e),n.dataset.settingsPage=t.kind===`section`?t.page:nT(t.operation),n},te=(e,n,i=!1,s=!1)=>{let d=Kv(e,()=>{o||u||(!s&&r.draft&&JSON.stringify(r.draft)===JSON.stringify(n)?(a={kind:`operation`,operation:n.kind},C(),c?.()):(l=void 0,t?.({action:`settings_select`,draft:n})))},i?`danger`:`secondary`);return d.dataset.cardAction=`settings_select`,d};function ne(e,t,n){let r=J(`div`,`settings-choice`),i=J(`div`,`settings-choice-copy`);return i.append(J(`h3`,void 0,e),J(`p`,`ui-note`,t)),r.append(i,n),r}function re(e){let t=J(`div`,`settings-action-row`);return t.setAttribute(`aria-label`,`Settings operation actions`),t.append(e),t}async function ie(){if(!s||!m||o)return;let e=m;h=void 0,s.setFileTransferActive(!0);try{await s.act({action:`settings_report_download`,...e},!0),m===e&&(m=void 0)}catch{!o&&m===e&&(h={message:`The download response could not be recorded. Check status to record the same response without downloading again.`,retry:()=>{m===e&&ie()}})}finally{o||(s.setFileTransferActive(!!p),C(),c?.())}}function ae(){let e=p;if(!s||o||!e||e.phase!==`waiting`||r.download?.availability!==`available`||r.download.localSave||r.download.currentAttemptId!==e.attemptId||!r.file)return;e.phase=`sending`;let t={operationId:r.operationId,...r.file,attemptId:e.attemptId};Uw(t,s,t=>{p!==e||o||(d=t,C(),c?.())},()=>!o&&p===e&&document.visibilityState!==`hidden`&&r.download?.currentAttemptId===e.attemptId&&r.download.availability===`available`).then(async e=>{!o&&e&&[`acknowledged`,`not_completed`,`unconfirmed`,`unsupported`].includes(e)&&(m={operationId:t.operationId,fileId:t.fileId,attemptId:t.attemptId,status:e,...e===`unsupported`?{failure:{method:`ui/download-file`,code:-32601}}:{}},await ie())}).finally(()=>{p===e&&(p=void 0,u=!1),o||(s?.setFileTransferActive(!!p),C(),c?.())})}function b(e){if(!s||!t||o||p||u)return;let n=crypto.randomUUID(),i={attemptId:n,phase:`admitting`},a=e&&r.file&&r.download?{action:`settings_retry_download`,operationId:r.operationId,fileId:r.file.fileId,previousAttemptId:r.download.currentAttemptId,attemptId:n}:{action:`settings_download_backup`,operationId:r.operationId,attemptId:n};p=i,u=!0,d=void 0,m=void 0,h=void 0,C(),c?.(),e&&s.setFileTransferActive(!0),s.act(a,e).then(()=>{o||p!==i||(i.phase=`waiting`,s?.setFileTransferActive(!0),C(),c?.(),ae())}).catch(()=>{p===i&&(p=void 0,u=!1),o||(s?.setFileTransferActive(!1),C(),c?.())})}function x(e,t,n,r=!1){let i=Kv(e,n,`secondary`);return i.dataset.cardAction=t,t!==`settings_download_backup`&&(i.dataset.settingsFileAction=`true`),r&&(i.dataset.settingsLocalBlocked=`true`),i.disabled=r,i}function oe(e){let n=r.download,i=r.draft?.kind===`download_backup`?r.file:void 0;if(!S(e)){let r=n?.endReason===`acknowledged`?`Download requested`:n?.endReason===`cancelled`?`Download cancelled`:n?.endReason?`Download ended`:p?n?.availability===`available`?`Downloading backup…`:`Preparing backup…`:n?.hostReport===`not_completed`?`Download not completed`:n?.hostReport===`unconfirmed`?`Download unconfirmed`:`Backup ready`;e.append(J(`h2`,void 0,r)),n?.endReason===`acknowledged`?e.append(J(`p`,`ui-note`,`The app accepted the download request. This does not confirm that the file was saved or where it was saved.`)):n?.endReason===`cancelled`?e.append(J(`p`,`ui-note`,`No further download will be sent from this request. This does not close a save dialog or delete a file already saved by the app.`)):n?.endReason?e.append(J(`p`,`ui-note`,n.endReason===`expired`?`The time to download this backup has ended. Open a new Settings card to download the current records.`:`This backup can no longer be downloaded. Open a new Settings card to try again.`)):n?.hostReport===`not_completed`?e.append(J(`p`,`ui-note`,`The app did not complete the download request. It did not report whether it was cancelled, refused or failed.`)):(n?.hostReport===`unconfirmed`||n?.previousUnconfirmed||!p&&!m&&n?.availability===`available`&&!n.hostReport&&d!==`backup_unverified`)&&e.append(J(`p`,`ui-note`,`The previous download could not be confirmed.`+(t&&n?.allowedFileActions.includes(`settings_retry_download`)?` Retrying may save another copy if the app already handled it.`:``))),d===`backup_unverified`&&e.append(J(`p`,`ui-note`,`The backup could not be read or checked. Nothing was sent to the app for download.`)),i?.sealed&&(e.append(Y(`Suggested file name`,i.displayName),Y(`File size`,`${i.totalSize.toLocaleString(`en-US`)} bytes`)),i.totalSize>16777216&&e.append(J(`p`,`ui-note`,`This backup exceeds the 16 MiB restore limit.`))),t&&s&&n?.allowedFileActions.includes(`settings_retry_download`)&&e.append(x(`Retry download`,`settings_retry_download`,()=>b(!0),!!p||!!m))}t&&s&&r.file&&n?.allowedFileActions.includes(`settings_cancel_download`)&&e.append(x(`Cancel download`,`settings_cancel_download`,()=>{if(!s||o||!r.file||!r.download)return;p=void 0,u=!1,d=void 0;let e={action:`settings_cancel_download`,operationId:r.operationId,fileId:r.file.fileId,attemptId:r.download.currentAttemptId};s.setFileTransferActive(!0),s.act(e,!0).catch(()=>{}).finally(()=>{o||(s?.setFileTransferActive(!1),C(),c?.())})})),(r.temporaryFileCleanup===`pending`||r.temporaryFileCleanup===`failed`)&&e.append(J(`p`,`ui-error`,`Temporary-file cleanup has not been confirmed. Use Check status to check the same request.`)),!t&&n?.localSave?.status!==`saved`?e.append(J(`p`,`ui-note`,`To download a backup, ask in chat to open a new Settings card.`)):n?.availability===`ended`&&e.append(J(`p`,`ui-note`,`To download the current records again, ask in chat to open a new Settings card.`))}function S(e){let n=r.download,i=n?.localSave,a=r.file;if(!n||!i||i.status!==`saved`&&i.status!==`saving`&&n.endReason&&n.endReason!==`local_save_failed`)return!1;if(e.append(J(`h2`,void 0,i.status===`saved`?`Backup saved`:i.status===`saving`?`Saving backup…`:i.status===`needs_consent`?`Save a local copy?`:`Backup not saved`)),i.status===`saved`&&r.backupLocation){let t=J(`div`,`settings-backup-location`);t.append(Y(`Folder`,J(`span`,`settings-path`,r.backupLocation.directory)),Y(`File name`,J(`span`,`settings-path`,r.backupLocation.filename))),e.append(J(`p`,`ui-note`,`The backup was saved in the Sui MCP backup folder on this computer.`),t)}else i.status===`saving`?e.append(J(`p`,`ui-note`,`Wait while this backup is saved and checked. Use Check status to check the same request.`)):i.status===`failed`&&e.append(J(`p`,`ui-error`,i.failure===`target_conflict`?`The backup location already contains an item or could not be verified. It has not been replaced.`:i.failure===`not_published`?`The backup could not be saved. You can retry saving the same backup.`:`The backup could not be verified for saving. Open a new Settings card to try again.`));return i.status!==`saved`&&i.status!==`saving`&&n.previousUnconfirmed&&e.append(J(`p`,`ui-note`,`An earlier request may already have saved this backup. Saving a local copy may leave another copy.`)),a&&(i.status!==`saved`&&e.append(Y(`Suggested file name`,a.displayName)),e.append(Y(`File size`,`${a.totalSize.toLocaleString(`en-US`)} bytes`)),a.totalSize>16777216&&e.append(J(`p`,`ui-note`,`This backup exceeds the 16 MiB restore limit.`))),t&&s&&n.allowedFileActions.includes(`settings_store_backup`)&&e.append(x(i.status===`needs_consent`?`Save a local copy`:`Retry save`,`settings_store_backup`,()=>{if(!s||o||u||!r.file||!r.download)return;let e=r.download.localSave,t={action:`settings_store_backup`,operationId:r.operationId,fileId:r.file.fileId,attemptId:r.download.currentAttemptId,saveAttemptId:crypto.randomUUID(),allowPossibleCopy:r.download.previousUnconfirmed,...e?.currentSaveAttemptId?{previousSaveAttemptId:e.currentSaveAttemptId}:{}};u=!0,s.setFileTransferActive(!0),C(),c?.(),s.act(t,!0).catch(()=>{}).finally(()=>{u=!1,o||(s?.setFileTransferActive(!1),C(),c?.())})},u)),!0}function se(e,t,n,i){let a=Qv(`Details`);if(r.facts&&a.body.append(Y(`Version`,r.facts.server.version)),a.body.append(Y(`Settings request ID`,$v(r.operationId))),i&&i.kind===r.draft?.kind&&r.file&&a.body.append(Y(`File SHA-256`,$v(r.file.sha256))),i&&[`export_local_data`,`download_backup`,`import_local_data`,`reset_local_data`].includes(i.kind)&&a.body.append(J(`p`,`ui-note`,`Local backups do not contain wallet keys, wallet connections, wallet approvals, access granted to cards, transaction bytes or signatures.`)),i?.kind===`import_local_data`&&r.preparation?.preview){let e=tT(r.preparation.preview);rT(a.body,e.currentCounts,`Checked local records`),rT(a.body,e.incomingCounts,`Backup records`),a.body.append(Y(`Default address before restoring`,typeof e.currentReadAddress==`string`?$v(e.currentReadAddress):`Not selected`),Y(`Default address in this backup`,typeof e.incomingReadAddress==`string`?$v(e.incomingReadAddress):`Not selected`))}if(t===`advanced`&&r.facts)for(let[e,t,n]of[[`grpc`,`Sui node`,r.facts.localSettings.suiGrpcUrl],[`graphql`,`Activity data`,r.facts.localSettings.suiGraphqlUrl]])i&&(i.kind===`set_endpoint`||i.kind===`restore_endpoint`)&&i.endpoint!==e||(a.body.append(J(`h3`,void 0,t),Y(`Saved network address`,n.storedValue),Y(`Network address in use`,n.effectiveValue),Y(`Set by`,Xw[n.source])),n.pendingStoredValue&&a.body.append(Y(`Network address saved for next restart`,n.pendingStoredValue)));if(n){a.body.append(J(`h3`,void 0,`Connection and transaction request records`)),typeof r.preparation?.walletRunId==`string`&&a.body.append(Y(`Service run ID`,$v(r.preparation.walletRunId)));for(let e of n.connections)a.body.append(Y(`${e.walletName??`Wallet`} connection ID`,$v(e.connectionId)));for(let e of n.requests)a.body.append(Y(`Transaction request ID`,$v(e.attempt_id)),Y(`Recorded request status`,e.request_status))}e.append(a.details)}function C(e=!1){let n=ee.querySelector(`details`)?.open===!0,m=e?[...ee.querySelectorAll(`input`)].filter(e=>e.type!==`file`).map(e=>e.value):void 0,h=Zv(),ie=f&&i.state===`ready`&&f.cardId===i.cardId&&f.operationId===r.operationId&&(f.kind===`backup_check_response`?r.draft?.kind===`import_local_data`&&f.fileId===r.file?.fileId:JSON.stringify(f.draft)===JSON.stringify(r.draft))?f:void 0,ae=r.result||r.restoreCheck?.status===`can_restore`||r.restoreCheck?.status===`cannot_restore`&&[`invalid_backup`,`file_unavailable`,`input_unavailable`].includes(r.restoreCheck.reason),S=r.restoreCheck?.status===`checking`||!ae&&(ie?.kind===`backup_check_response`||_?.progress?.stage===`checking`),ce=[`executing`,`stopping`,`starting`].includes(r.phase)||S,le=r.draft?.kind===`import_local_data`&&r.restoreCheck?.status===`can_restore`,ue=p?.phase===`admitting`,de=ue?`progress`:r.result?`result`:ce?`progress`:a.kind===`section`?`section`:r.phase===`prepared`&&(r.draft?.kind!==`import_local_data`||le)?`confirmation`:`input`,fe=a.kind===`section`?a.page:nT(a.operation),w=ue?{kind:`download_backup`}:de===`section`?void 0:r.draft,pe=w?nT(w.kind):fe,me=w?.kind===`restart_wallet_service`&&r.preparation?.impact?Gb.parse(r.preparation.impact):void 0,he=de===`result`||de===`progress`?g??2:de===`confirmation`?3:de===`input`?2:pe===`overview`?0:1;h.classList.add(`settings-page`),g!==void 0&&he!==g&&h.classList.add(he>g?`settings-page--forward`:`settings-page--back`),g=he;let T=J(`nav`,`settings-toolbar`);if(T.setAttribute(`aria-label`,`Settings navigation`),ee.dataset.settingsPage=pe,de===`confirmation`&&w&&t&&r.allowedActions.includes(`settings_back`)){let e=`Back to ${Ww[w.kind]}`,n=Kv(e,()=>{o||u||(a={kind:`operation`,operation:w.kind},t({action:`settings_back`,operationId:r.operationId}))},`secondary`);n.dataset.cardAction=`settings_back`,n.setAttribute(`aria-label`,e),n.classList.add(`settings-back`),T.append(n)}else if(de===`input`&&w&&t){let e=y(`Back to ${Gw[pe]}`,{kind:`section`,page:pe});e.classList.add(`settings-back`),T.append(e)}else if(de===`section`&&pe!==`overview`){let e=y(`Back to Settings`,{kind:`section`,page:`overview`});e.classList.add(`settings-back`),T.append(e)}let E=J(`span`,`settings-location`,[`Settings`,...pe===`overview`?[]:[Gw[pe]],...w?[Ww[w.kind]]:[],...de===`result`?[`Result`]:de===`progress`?[w?.kind===`download_backup`?`Downloading`:S?`Checking backup`:`Applying change`]:de===`confirmation`?[`Confirm`]:[]].join(` / `));if(E.setAttribute(`aria-current`,`page`),T.append(E),h.append(T),w?.kind===`download_backup`)oe(h);else if(de===`result`&&r.result){h.append(J(`p`,r.result.outcome===`failed`?`ui-error`:`ui-note`,r.result.message));let e=tT(r.result.details);if(typeof e.storedValue==`string`&&(h.append(Y(e.endpoint===`grpc`?`Saved Sui node address (gRPC)`:`Saved activity data address (GraphQL)`,e.storedValue)),typeof e.effectiveValueAtSave==`string`&&h.append(Y(`Network address in use when saved`,e.effectiveValueAtSave)),h.append(J(`p`,`ui-note`,e.effectiveSourceAtSave===`environment`?`When this address was saved, the app launch settings specified the network address in use. If that setting is still present, restarting will keep using it. Remove that launch setting before restarting to use the saved address.`:`The saved address is used after Sui MCP restarts, unless the app launch settings specify another address.`),J(`p`,`ui-note`,Jw))),typeof e.path==`string`){if(r.backupLocation){let e=J(`div`,`settings-backup-location`);e.append(Y(`Folder`,J(`span`,`settings-path`,r.backupLocation.directory)),Y(`File name`,J(`span`,`settings-path`,r.backupLocation.filename))),h.append(e)}if(r.file){if(h.append(Y(`File size`,`${r.file.totalSize.toLocaleString(`en-US`)} bytes`)),r.file.totalSize>16777216&&h.append(J(`p`,`ui-note`,`This backup exceeds the 16 MiB restore limit. The entire backup was saved, but this installation cannot restore a file this large.`)),t&&s){let e=Kv(`Download this backup`,()=>{o||!s||!r.file||u||(u=!0,e.disabled=!0,Uw({operationId:r.operationId,...r.file},s,e=>{d=e,C(),c?.()},()=>!o).finally(()=>{u=!1,o||(C(),c?.())}))},`secondary`);e.dataset.settingsDownload=`true`,e.disabled=u,h.append(e)}d&&h.append(J(`p`,`ui-note`,{pending:`Checking the backup before downloading…`,backup_unverified:`The backup file could not be read or checked. Nothing was sent to the app for download. Check the folder shown above, or open a new Settings card to create another backup.`,acknowledged:`The app received the download request. This does not confirm that the file was saved or where it was saved.`,not_completed:`The app did not complete the download request. It did not report whether the download was cancelled, refused or failed. The file passed its check before the request.`,unsupported:`This app cannot receive this file. The existing backup remains in the folder shown above.`,unconfirmed:`The download could not be confirmed. You can try Download this backup again; the same file will be checked before it is sent.`}[d]))}}let n=r.temporaryFileCleanup??r.file?.cleanup;(n===`failed`||n===`pending`)&&h.append(J(`p`,`ui-error`,`Temporary-file cleanup has not been confirmed. The result above is unchanged. Use Check status to check again.`)),h.append(J(`p`,`ui-note`,`To make another change, ask in chat to open a new Settings card.`))}else if(de===`progress`){let e=J(`p`,`ui-note`,S?`Checking backup…`:r.phase===`stopping`?`Stopping the wallet connection service…`:r.phase===`starting`?`Starting the wallet connection service…`:`Finishing this change…`);e.setAttribute(`role`,`status`),h.append(e),r.phase===`starting`&&h.append(J(`p`,`ui-note`,`If the service is not responding, you can request another restart in a new Settings card under Troubleshooting. This card keeps the result of the current restart.`))}else if(de===`confirmation`&&r.draft){if(h.append(J(`h2`,void 0,$w[r.draft.kind])),le&&r.file&&h.append(Y(`Backup file`,r.file.displayName)),r.draft.kind===`set_endpoint`||r.draft.kind===`restore_endpoint`){let e=tT(r.preparation?.endpoint);h.append(Y(`Setting`,r.draft.endpoint===`grpc`?`Sui node (gRPC)`:`Activity data (GraphQL)`)),typeof e.storedValue==`string`&&h.append(Y(`Previously saved network address`,e.storedValue)),typeof e.value==`string`&&h.append(Y(`Network address to save`,e.value)),h.append(J(`p`,`ui-note`,`Sui MCP checks that this address connects to Sui mainnet before saving it. Fully quit and reopen all apps using Sui MCP to use the change. Restarting only the wallet connection service does not apply it.`)),e.source===`environment`&&h.append(J(`p`,`ui-note`,`The app launch settings specify the network address to use. Restarting without removing that launch setting will keep using that address.`))}if(r.draft.kind===`clear_read_address`&&h.append(J(`p`,`ui-note`,`Clear the address used by default when viewing assets. This does not disconnect your wallet or cancel any transaction.`)),[`export_local_data`,`reset_local_data`].includes(r.draft.kind)&&h.append(J(`p`,`ui-note`,qw)),r.draft.kind===`reset_local_data`||r.draft.kind===`import_local_data`){le?h.append(J(`p`,`ui-error`,`Restoring replaces local records and saved network settings, including records with unconfirmed transaction results. You cannot undo this from this card. Other open cards will no longer work; open new cards after restoring.`),J(`p`,`ui-note`,`Wallet keys and approvals are not restored. Transactions on Sui are not cancelled.`)):(h.append(J(`p`,`ui-error`,`This deletes local records and saved settings, including records whose transaction results are still unconfirmed. It does not cancel transactions on Sui. Data cannot be replaced until pending wallet or transaction responses and the initial result-checking period have ended.`)),h.append(J(`p`,`ui-error`,`You cannot undo this from this card. Other open cards will no longer work. You can still read this change's result.`)));let e=tT(r.preparation?.preview);if(r.draft.kind===`import_local_data`){let t=tT(e.currentCounts),n=tT(e.incomingCounts);h.append(J(`h3`,void 0,`Records to replace (now → backup)`));for(let[e,r]of Qw)typeof t[e]==`number`&&typeof n[e]==`number`&&(t[e]!==0||n[e]!==0)&&h.append(Y(r,`${t[e]} → ${n[e]}`));typeof t.outcomeUnknownRequests==`number`&&t.outcomeUnknownRequests>0&&h.append(J(`p`,`ui-error`,`The current records with unconfirmed transaction results will be removed.`)),e.activeAccountChange!==`unchanged`&&h.append(Y(`Default address for viewing assets`,e.activeAccountChange===`cleared`?`Will be cleared`:typeof e.incomingReadAddress==`string`?$v(e.incomingReadAddress):`Not selected`)),e.restartRequiredAfterImport===!0&&h.append(J(`p`,`ui-note`,`After restoring, fully quit and reopen all apps using Sui MCP. Network addresses specified in the app launch settings still take priority over the restored settings.`)),h.append(J(`p`,`ui-note`,`Restoring a saved address does not reconnect your wallet. It can be used by default for viewing assets only when the same wallet connection is active and approves that address.`))}else rT(h,r.preparation?.counts,`Current local records`)}if(r.draft.kind===`restart_wallet_service`){h.append(J(`p`,`ui-note`,`The wallet connection service restarts while your apps stay open. Pending wallet approvals can no longer send a transaction, and unfinished review checks stop. Transactions already sent to Sui are not cancelled; checks already in progress continue. Restarting does not confirm a failed disconnection or remove the connection from your wallet app.`));let e=me??Gb.parse(r.preparation?.impact);h.append(Y(`Wallet connection records`,String(e.connections.length)),J(`p`,`ui-note`,`These are recorded connections, not confirmation that a wallet is connected now. Restarting does not reconnect a disconnected wallet.`));for(let t of e.connections){h.append(Y(`Wallet`,t.walletName??`Wallet`),Y(`Recorded status`,Zw[t.status]));for(let e of t.accounts)h.append(Y(`Recorded wallet address`,$v(e)));t.disconnectPending&&h.append(J(`p`,`ui-note`,`This wallet's disconnection has not been confirmed.`))}let t=e.requests.filter(e=>e.request_status===`awaiting_signature`).length;h.append(Y(`Wallet approval requests to stop`,String(t)),Y(`Other transaction requests`,String(e.requests.length-t)))}t&&r.allowedActions.includes(`settings_confirm`)?h.append(re(v(eT[r.draft.kind],{action:`settings_confirm`,operationId:r.operationId,preparationId:r.preparationId},[`reset_local_data`,`import_local_data`].includes(r.draft.kind)?`danger`:`primary`))):t&&h.append(J(`p`,`ui-note`,`This change cannot be confirmed right now.`))}else if(w){let e;if(h.append(J(`h2`,void 0,Ww[w.kind])),pe===`records`&&h.append(J(`p`,`ui-note`,qw)),w.kind===`import_local_data`){if(r.restoreCheck?.status===`cannot_restore`){let e=J(`p`,`ui-error`,r.restoreCheck.message);e.setAttribute(`role`,`alert`),h.append(J(`h3`,void 0,`Cannot restore`),e)}else r.restoreCheck?.status===`check_required`&&h.append(J(`p`,`ui-note`,r.restoreCheck.message));if(_?.progress&&!S&&!ae){let e=J(`p`,`ui-note`,_.progress.stage===`reading`?`Reading the selected file…`:`Receiving backup…`);e.setAttribute(`role`,`status`),h.append(e)}let n=Yv({type:`file`});n.accept=`.json,application/json`,n.dataset.cardAction=`settings_begin_upload`,n.addEventListener(`change`,()=>{let e=n.files?.[0];if(!e||!s||u||o)return;let t={startingRevision:i.revision,progress:void 0};_=t,u=!0,l=void 0,Hw(e,s,()=>({operationId:r.operationId,cardId:i.cardId}),()=>!o&&_===t,e=>{o||_!==t||e.operationId!==r.operationId||e.cardId!==i.cardId||(t.progress=e,C(),c?.())}).then(()=>{!o&&_===t&&(l=void 0)}).catch(e=>{!o&&_===t&&(l={cardId:i.cardId,operationId:r.operationId,revision:i.revision,draft:JSON.stringify(r.draft),fileId:r.file?.fileId,message:e instanceof Error?e.message:`The file transfer could not be confirmed. Choose the file again to continue.`})}).finally(()=>{_===t&&(_=void 0),u=!1,o||(C(),c?.())})}),t&&!r.file?.sealed&&h.append(Xv(r.file?`Choose the same file to continue`:`Choose a Sui MCP backup (up to 16 MiB)`,n)),r.file&&(h.append(Y(`Selected file`,r.file.displayName),Y(`File received`,`${r.file.receivedSize.toLocaleString(`en-US`)} / ${r.file.totalSize.toLocaleString(`en-US`)} bytes`)),t&&r.allowedActions.includes(`settings_prepare`)&&(e=v(`Check backup again`,{action:`settings_prepare`,operationId:r.operationId},`primary`)),t&&h.append(te(`Change backup file`,{kind:`import_local_data`},!1,!0)))}else{if(w.kind===`set_endpoint`||w.kind===`restore_endpoint`){let e=w.endpoint===`grpc`?r.facts?.localSettings.suiGrpcUrl:r.facts?.localSettings.suiGraphqlUrl;h.append(Y(`Network setting`,w.endpoint===`grpc`?`Sui node (gRPC)`:`Activity data (GraphQL)`)),e&&h.append(Y(`Current saved address`,e.storedValue)),w.kind===`set_endpoint`?h.append(Y(`Selected network address`,w.value)):h.append(J(`p`,`ui-note`,`Review the built-in default address before confirming this change.`)),e?.source===`environment`&&h.append(J(`p`,`ui-note`,`The app launch settings specify the network address in use. Saving or restoring an address here does not remove that launch setting.`))}else w.kind===`clear_read_address`?h.append(Y(`Default address for viewing assets`,r.facts?.readAddress?$v(r.facts.readAddress):`Not selected`),J(`p`,`ui-note`,`Clearing this default does not disconnect your wallet or change wallet approvals.`)):w.kind===`restart_wallet_service`?(r.facts&&h.append(Y(`Wallet connection service`,Yw[r.facts.walletAvailability.status])),r.facts?.connectionReconciliationRequired&&h.append(J(`p`,`ui-error`,Jb)),r.facts&&r.facts.walletAvailability.status!==`available`&&h.append(J(`p`,`ui-note`,r.facts.walletAvailability.message)),h.append(J(`p`,`ui-note`,`Review the connection and transaction requests affected before confirming a service restart.`))):w.kind===`export_local_data`?h.append(J(`p`,`ui-note`,`Review the local records to save, then create the backup file.`)):w.kind===`reset_local_data`&&h.append(J(`p`,`ui-note`,`Review the records and saved settings to delete before confirming the reset.`));t&&r.allowedActions.includes(`settings_prepare`)&&(e=v(`Continue`,{action:`settings_prepare`,operationId:r.operationId},`primary`))}e&&h.append(re(e))}else{if(h.append(J(`h2`,void 0,fe===`overview`?`Choose a section`:Gw[fe])),fe===`overview`){h.append(J(`p`,`ui-note`,`You can use the default Sui mainnet network settings. Custom settings are optional.`)),r.facts?.connectionReconciliationRequired&&h.append(J(`p`,`ui-error`,Jb));let e=r.facts?.walletAvailability;e&&e.status!==`available`&&h.append(J(`p`,e.status===`unavailable`?`ui-error`:`ui-note`,e.message),...e.status===`unavailable`?[J(`p`,`ui-note`,`Open Troubleshooting below to check the connection service.`)]:[]);let t=J(`div`,`settings-menu`);t.setAttribute(`aria-label`,`Settings sections`);for(let e of[`address`,`records`,`troubleshooting`,`advanced`]){let n=y(Gw[e],{kind:`section`,page:e});n.classList.add(`settings-menu-item`),n.setAttribute(`aria-label`,Gw[e]),n.textContent=``,n.append(J(`span`,`settings-menu-title`,Gw[e]),J(`span`,`settings-menu-description`,Kw[e])),t.append(n)}if(h.append(t),r.draft){let e=J(`div`,`settings-pending`);e.append(J(`p`,`ui-note`,`Unfinished change: ${Ww[r.draft.kind]}.`),y(`Resume`,{kind:`operation`,operation:r.draft.kind})),h.append(e)}}else if(fe===`address`)h.append(Y(`Default address for viewing assets`,r.facts?.readAddress?$v(r.facts.readAddress):`Not selected`)),r.facts?.assetReadAccount.status===`address_required`&&r.facts.readAddress&&h.append(J(`p`,`ui-note`,`This saved address cannot currently be used by default. Provide an address in chat, or open Wallet connection and select an address approved by your connected wallet.`)),h.append(J(`p`,`ui-note`,`The default address is used when you ask to view assets without naming an address. To connect or disconnect your wallet, or select an approved address, ask in chat to open Wallet connection. Clearing the default does not disconnect your wallet.`)),t&&r.facts?.readAddress&&h.append(te(`Clear default address`,{kind:`clear_read_address`}));else if(fe===`records`)h.append(J(`p`,`ui-note`,qw)),t&&h.append(ne(`Backup`,`Download the current local records and Sui network settings as one backup file. If this connection cannot provide downloads, the same file is saved in the Sui MCP backup folder on this computer.`,x(`Download backup`,`settings_download_backup`,()=>b(!1))),ne(`Restore`,`Choose a Sui MCP backup. It will be checked automatically before you confirm the restore.`,te(`Restore local records`,{kind:`import_local_data`})),ne(`Reset`,`Review the local records and stored settings to delete. This does not cancel transactions on Sui.`,te(`Reset local data`,{kind:`reset_local_data`},!0)));else if(fe===`troubleshooting`)r.facts&&(h.append(Y(`Wallet connection service`,Yw[r.facts.walletAvailability.status])),r.facts.connectionReconciliationRequired&&h.append(J(`p`,`ui-error`,Jb)),r.facts.observedAt&&h.append(Y(`Status checked at`,ey(r.facts.observedAt))),r.facts.walletAvailability.status!==`available`&&h.append(J(`p`,`ui-note`,r.facts.walletAvailability.message))),h.append(J(`p`,`ui-note`,`Restart the wallet connection service if a connection request is not responding. Starting up or waiting for you to approve in your wallet does not by itself mean a failure.`)),t&&h.append(te(`Restart connection service`,{kind:`restart_wallet_service`}));else if(fe===`advanced`&&r.facts)for(let e of[`grpc`,`graphql`]){let n=e===`grpc`?r.facts.localSettings.suiGrpcUrl:r.facts.localSettings.suiGraphqlUrl,i=Yv({value:r.draft?.kind===`set_endpoint`&&r.draft.endpoint===e?r.draft.value:n.storedValue});i.dataset.cardAction=`settings_select`;let a=J(`div`,`settings-endpoint`);if(a.append(Xv(e===`grpc`?`Sui node (gRPC)`:`Activity data (GraphQL)`,i),J(`p`,`ui-note`,e===`grpc`?`Used to retrieve balances, check transactions before wallet approval and send approved transactions.`:`Used to retrieve transaction activity.`)),t){let n=Kv(`Select network address`,()=>{!u&&!o&&t({action:`settings_select`,draft:{kind:`set_endpoint`,endpoint:e,value:i.value}})},`secondary`);n.dataset.cardAction=`settings_select`,a.append(qv(n,te(`Select default network address`,{kind:`restore_endpoint`,endpoint:e})))}n.appliesAfter&&a.append(J(`p`,`ui-note`,`A saved change needs an app restart. Fully quit every app using Sui MCP, then reopen them. Closing a window or quitting only one app may leave Sui MCP running.`)),n.source===`environment`&&a.append(J(`p`,`ui-note`,`The app launch settings specify the network address to use. Remove that launch setting before restarting to use an address saved here.`)),h.append(a)}fe!==`overview`&&r.draft&&fe===nT(r.draft.kind)&&h.append(J(`p`,`ui-note`,`Unfinished change: ${Ww[r.draft.kind]}.`),y(`Resume`,{kind:`operation`,operation:r.draft.kind})),t&&fe===`overview`&&r.allowedActions.includes(`settings_cancel`)&&(r.draft&&h.append(J(`p`,`ui-note`,`Closing Settings discards this unfinished change. Nothing will be applied.`)),h.append(Jv(v(`Close Settings`,{action:`settings_cancel`}))))}if(ie?.kind===`preparation_response`&&!r.result&&!ce){let e=J(`p`,`ui-note`,`Waiting for a response…`);e.setAttribute(`role`,`status`),h.append(e)}l&&de===`input`&&w?.kind===`import_local_data`&&h.append(J(`p`,`ui-note`,l.message)),se(h,pe,me,w),ee.replaceChildren(h),m&&[...ee.querySelectorAll(`input`)].filter(e=>e.type!==`file`).forEach((e,t)=>{m[t]!==void 0&&(e.value=m[t])}),n&&(ee.querySelector(`details`).open=!0)}return C(),{node:ee,update(e,t){let n=fw.parse(e.data);if(n.operationId!==r.operationId)return!1;m&&n.file?.fileId===m.fileId&&n.download?.currentAttemptId===m.attemptId&&n.download.hostReport===m.status&&(m=void 0,h=void 0),m&&(!n.download?.allowedFileActions.includes(`settings_report_download`)||n.file?.fileId!==m.fileId)&&(m=void 0,h=void 0),l&&(n.result||e.revision!==l.revision||e.cardId!==l.cardId||n.operationId!==l.operationId||JSON.stringify(n.draft)!==l.draft||n.file?.fileId!==l.fileId)&&(l=void 0);let o=e===i;if(o&&!f&&!t.settingsCommandProgress)return!0;JSON.stringify(n.draft)!==JSON.stringify(r.draft)&&(a=n.draft?{kind:`operation`,operation:n.draft.kind}:{kind:`section`,page:nT(r.draft?.kind)});let u=_?.progress;return _&&(n.result||n.draft?.kind!==`import_local_data`||u?.stage===`reading`&&e.revision>_.startingRevision||u?.fileId&&n.file?.fileId!==u.fileId||u?.sha256&&n.file&&n.file.sha256!==u.sha256)&&(_=void 0),r=n,i=e,s=t.settings,c=t.onDisplayChange,f=t.settingsCommandProgress,C(o),ae(),!0},displayRecovery(){return m?h:void 0},dispose(){o=!0,_=void 0,l=void 0,p=void 0,m=void 0}}}zw(`settings`,{title:`Settings`,controls:(e,t,n,r,i)=>iT(e,t,i),result:(e,t,n,r,i)=>iT(e,n,i)});</script></body></html>
|