@zktx.io/sui-mcp 0.5.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.
Files changed (218) hide show
  1. package/LICENSE +21 -0
  2. package/LICENSES/@mysten-bcs-2.0.5-Apache-2.0.txt +205 -0
  3. package/LICENSES/@mysten-sui-2.17.0-Apache-2.0.txt +201 -0
  4. package/LICENSES/@mysten-utils-0.3.3-Apache-2.0.txt +205 -0
  5. package/LICENSES/fancy-canvas-2.1.0-MIT.txt +7 -0
  6. package/LICENSES/lightweight-charts-5.2.0-NOTICE.txt +2 -0
  7. package/README.md +288 -0
  8. package/dist/adapters/adapterLifecycleValidators.js +5 -0
  9. package/dist/adapters/adapterPromptSurfaces.js +60 -0
  10. package/dist/adapters/deepbook/deepbookHumanReviewProducer.js +178 -0
  11. package/dist/adapters/deepbook/deepbookQuotePolicy.js +112 -0
  12. package/dist/adapters/deepbook/deepbookReviewEvidence.js +507 -0
  13. package/dist/adapters/deepbook/deepbookReviewLifecycle.js +85 -0
  14. package/dist/adapters/deepbook/deepbookSwapIntent.js +79 -0
  15. package/dist/adapters/deepbook/deepbookTransactionMaterialProducer.js +254 -0
  16. package/dist/adapters/intentPlanFactories.js +51 -0
  17. package/dist/adapters/reviewAdapters.js +47 -0
  18. package/dist/core/action/adapterLifecycleValidation.js +12 -0
  19. package/dist/core/action/contractNameRegistry.js +151 -0
  20. package/dist/core/action/forbiddenFields.js +43 -0
  21. package/dist/core/action/humanReadableReviewEvidence.js +193 -0
  22. package/dist/core/action/humanReadableReviewProjectionVerifier.js +29 -0
  23. package/dist/core/action/ptbVisualizationProducer.js +71 -0
  24. package/dist/core/action/receiptPtbGraph.js +29 -0
  25. package/dist/core/action/reviewCheckResults.js +6 -0
  26. package/dist/core/action/reviewStateValidation.js +11 -0
  27. package/dist/core/action/reviewTimeSimulationEvidence.js +470 -0
  28. package/dist/core/action/schemas.js +491 -0
  29. package/dist/core/action/signableAdapterContract.js +998 -0
  30. package/dist/core/action/suiChainReceiptEvidence.js +106 -0
  31. package/dist/core/action/suiChainReceiptMapping.js +107 -0
  32. package/dist/core/action/suiChainReceiptReader.js +211 -0
  33. package/dist/core/action/suiChainReceiptVerifier.js +178 -0
  34. package/dist/core/action/swapHumanReadableReviewProjection.js +130 -0
  35. package/dist/core/action/swapQuotePolicyEvidence.js +271 -0
  36. package/dist/core/action/transactionFunding.js +244 -0
  37. package/dist/core/action/transactionObjectOwnershipEvidence.js +256 -0
  38. package/dist/core/action/transactionObjectOwnershipProducer.js +323 -0
  39. package/dist/core/action/types.js +33 -0
  40. package/dist/core/action/walletReviewContractAssembler.js +286 -0
  41. package/dist/core/activity/accountAssetTimeline.js +157 -0
  42. package/dist/core/activity/accountAssetTimelineUsdcReferences.js +120 -0
  43. package/dist/core/activity/activityStore.js +16 -0
  44. package/dist/core/activity/externalActivityCoverage.js +76 -0
  45. package/dist/core/activity/externalActivityTransactionStream.js +82 -0
  46. package/dist/core/activity/localDataService.js +296 -0
  47. package/dist/core/activity/localDataTypes.js +11 -0
  48. package/dist/core/activity/localDataValidation.js +439 -0
  49. package/dist/core/activity/schemaVersion.js +2 -0
  50. package/dist/core/activity/sqliteActivityStore.js +1068 -0
  51. package/dist/core/activity/sqliteActivityStoreRows.js +389 -0
  52. package/dist/core/activity/sqliteActivityStoreSchema.js +367 -0
  53. package/dist/core/activity/sqliteActivityStoreTypes.js +5 -0
  54. package/dist/core/activity/suiFunctionTarget.js +43 -0
  55. package/dist/core/activity/transactionActivityAccountEffects.js +186 -0
  56. package/dist/core/activity/transactionActivityAnalysis.js +295 -0
  57. package/dist/core/activity/transactionActivityClassifier.js +306 -0
  58. package/dist/core/activity/transactionActivityDetails.js +229 -0
  59. package/dist/core/activity/transactionActivityProtocolRules.js +218 -0
  60. package/dist/core/activity/transactionActivityScanPolicy.js +170 -0
  61. package/dist/core/activity/transactionActivityService.js +379 -0
  62. package/dist/core/activity/transactionActivityTypes.js +18 -0
  63. package/dist/core/eventlog/sink.js +35 -0
  64. package/dist/core/evidence/settlementFamilies.js +85 -0
  65. package/dist/core/evidence/userAnswerUse.js +1 -0
  66. package/dist/core/numeric/rawU64.js +63 -0
  67. package/dist/core/preferences/preferencesStore.js +26 -0
  68. package/dist/core/preferences/sqlitePreferencesRepository.js +136 -0
  69. package/dist/core/proposal/externalProposalReview.js +347 -0
  70. package/dist/core/proposal/schemas.js +208 -0
  71. package/dist/core/proposal/types.js +35 -0
  72. package/dist/core/read/amounts.js +14 -0
  73. package/dist/core/read/coinMetadata.js +60 -0
  74. package/dist/core/read/deepbookOfficialIndexerSource.js +373 -0
  75. package/dist/core/read/deepbookRawQuoteClient.js +86 -0
  76. package/dist/core/read/deepbookReadHelpers.js +321 -0
  77. package/dist/core/read/deepbookRegistry.js +157 -0
  78. package/dist/core/read/deepbookSourceOwners.js +159 -0
  79. package/dist/core/read/deepbookUsdcChartService.js +342 -0
  80. package/dist/core/read/intentEvidenceResponseFormatting.js +228 -0
  81. package/dist/core/read/readCardInputs.js +19 -0
  82. package/dist/core/read/readCardResult.js +40 -0
  83. package/dist/core/read/readResponseGuidance.js +402 -0
  84. package/dist/core/read/readService.js +1639 -0
  85. package/dist/core/read/readServiceTypes.js +88 -0
  86. package/dist/core/read/settlementParityFormatting.js +82 -0
  87. package/dist/core/read/walletReadHelpers.js +99 -0
  88. package/dist/core/review/reviewChecks.js +45 -0
  89. package/dist/core/review/reviewComputation.js +38 -0
  90. package/dist/core/review/reviewComputationResult.js +87 -0
  91. package/dist/core/session/cardSession.js +31 -0
  92. package/dist/core/session/cardSessionStore.js +204 -0
  93. package/dist/core/session/keyedRecordStore.js +18 -0
  94. package/dist/core/session/liveReviewSessionContract.js +3 -0
  95. package/dist/core/session/localSession.js +31 -0
  96. package/dist/core/session/privateReviewArtifacts.js +75 -0
  97. package/dist/core/session/reviewValidity.js +49 -0
  98. package/dist/core/session/sessionErrors.js +9 -0
  99. package/dist/core/session/sessionRecordStore.js +40 -0
  100. package/dist/core/session/sessionStore.js +655 -0
  101. package/dist/core/session/settingsSession.js +1 -0
  102. package/dist/core/session/settingsSessions.js +45 -0
  103. package/dist/core/session/sqliteCardStore.js +88 -0
  104. package/dist/core/session/sqliteSessionStore.js +213 -0
  105. package/dist/core/session/sqliteTransactionMaterialStore.js +64 -0
  106. package/dist/core/session/sqliteWalletWorkflowStore.js +821 -0
  107. package/dist/core/session/status.js +60 -0
  108. package/dist/core/session/transactionMaterialStore.js +221 -0
  109. package/dist/core/session/transactionRequest.js +72 -0
  110. package/dist/core/session/wait.js +79 -0
  111. package/dist/core/session/walletConnection.js +92 -0
  112. package/dist/core/session/walletRuntime.js +38 -0
  113. package/dist/core/session/walletWorkflow.js +608 -0
  114. package/dist/core/session/workflowState.js +80 -0
  115. package/dist/core/session/workflowView.js +150 -0
  116. package/dist/core/suiAddress.js +18 -0
  117. package/dist/core/suiEndpoint.js +72 -0
  118. package/dist/mcp/activeAccountResponse.js +24 -0
  119. package/dist/mcp/prompts.js +146 -0
  120. package/dist/mcp/registerTool.js +19 -0
  121. package/dist/mcp/resources.js +72 -0
  122. package/dist/mcp/responseGuidance.js +326 -0
  123. package/dist/mcp/result.js +17 -0
  124. package/dist/mcp/schemas.js +11 -0
  125. package/dist/mcp/server.js +32 -0
  126. package/dist/mcp/serverInfo.js +131 -0
  127. package/dist/mcp/toolErrors.js +118 -0
  128. package/dist/mcp/toolNames.js +58 -0
  129. package/dist/mcp/tools/account/index.js +44 -0
  130. package/dist/mcp/tools/action/prepareSuiActionReview.js +126 -0
  131. package/dist/mcp/tools/read/commonSchemas.js +43 -0
  132. package/dist/mcp/tools/read/deepbookReadTools.js +686 -0
  133. package/dist/mcp/tools/read/index.js +14 -0
  134. package/dist/mcp/tools/read/readToolHelpers.js +97 -0
  135. package/dist/mcp/tools/read/reviewActivityTools.js +179 -0
  136. package/dist/mcp/tools/read/serverStatusTools.js +100 -0
  137. package/dist/mcp/tools/read/transactionActivityOutput.js +371 -0
  138. package/dist/mcp/tools/read/transactionActivityTools.js +858 -0
  139. package/dist/mcp/tools/read/walletReadTools.js +734 -0
  140. package/dist/mcp/tools/session/executionResultTools.js +44 -0
  141. package/dist/mcp/tools/session/index.js +8 -0
  142. package/dist/mcp/tools/session/shared.js +36 -0
  143. package/dist/mcp/tools/session/statusTools.js +69 -0
  144. package/dist/mcp/tools/session/walletConnectionTools.js +69 -0
  145. package/dist/mcp/tools/settings/index.js +66 -0
  146. package/dist/mcp-app/account.html +3133 -0
  147. package/dist/mcp-app/account.notices.txt +973 -0
  148. package/dist/mcp-app/chart.html +3354 -0
  149. package/dist/mcp-app/chart.notices.txt +1194 -0
  150. package/dist/mcp-app/connect.html +3179 -0
  151. package/dist/mcp-app/connect.notices.txt +1012 -0
  152. package/dist/mcp-app/receipt.html +8430 -0
  153. package/dist/mcp-app/receipt.notices.txt +3549 -0
  154. package/dist/mcp-app/review.html +8430 -0
  155. package/dist/mcp-app/review.notices.txt +3549 -0
  156. package/dist/mcp-ui/contracts.js +31 -0
  157. package/dist/mcp-ui/readCards.js +28 -0
  158. package/dist/mcp-ui/tools.js +134 -0
  159. package/dist/review-app/brand-dark.svg +1 -0
  160. package/dist/review-app/brand-light.svg +1 -0
  161. package/dist/review-app/favicon.svg +1 -0
  162. package/dist/review-app/settings.css +1 -0
  163. package/dist/review-app/settings.js +1 -0
  164. package/dist/review-app/ui.css +809 -0
  165. package/dist/review-server/assets.js +48 -0
  166. package/dist/review-server/html.js +45 -0
  167. package/dist/review-server/http.js +47 -0
  168. package/dist/review-server/middleware/hostOrigin.js +48 -0
  169. package/dist/review-server/middleware/reviewToken.js +7 -0
  170. package/dist/review-server/reviewServerPolicy.js +1 -0
  171. package/dist/review-server/server.js +72 -0
  172. package/dist/review-server/settingsApi.js +158 -0
  173. package/dist/runtime/application.js +203 -0
  174. package/dist/runtime/config.js +97 -0
  175. package/dist/runtime/localSettingsService.js +198 -0
  176. package/dist/runtime/logger.js +66 -0
  177. package/dist/runtime/reviewDependencies.js +58 -0
  178. package/dist/runtime/reviewServerAcquire.js +93 -0
  179. package/dist/runtime/runtimeTermination.js +60 -0
  180. package/dist/runtime/shared/authenticatedFetch.js +127 -0
  181. package/dist/runtime/shared/control.js +93 -0
  182. package/dist/runtime/shared/dataAccess.js +66 -0
  183. package/dist/runtime/shared/mcpHttp.js +84 -0
  184. package/dist/runtime/shared/ownerLease.js +50 -0
  185. package/dist/runtime/shared/server.js +98 -0
  186. package/dist/runtime/shared/stdio.js +113 -0
  187. package/dist/runtime/smokeMainnetRead.js +391 -0
  188. package/dist/runtime/smokeMainnetReadAssertions.js +306 -0
  189. package/dist/runtime/smokeReview.js +40 -0
  190. package/dist/runtime/start.js +90 -0
  191. package/dist/runtime/suiEndpoint.js +97 -0
  192. package/dist/runtime/suiTransactionGraphqlMapping.js +200 -0
  193. package/dist/runtime/suiTransactionGraphqlQueries.js +231 -0
  194. package/dist/runtime/suiTransactionGraphqlSource.js +148 -0
  195. package/dist/runtime/walletConnectConfig.js +3 -0
  196. package/dist/runtime/walletConnectStorage.js +99 -0
  197. package/dist/runtime/walletConnectTransport.js +128 -0
  198. package/dist/runtime/walletSdkChild.js +3 -0
  199. package/dist/runtime/walletSdkChildRuntime.js +160 -0
  200. package/dist/runtime/walletSdkIpc.js +26 -0
  201. package/dist/runtime/walletSdkProcess.js +358 -0
  202. package/docs/AGENT_BEHAVIOR.md +524 -0
  203. package/docs/AGENT_DEVELOPMENT_POLICY.md +815 -0
  204. package/docs/FRONTEND_POLICY.md +534 -0
  205. package/docs/LOCAL_DB_ARCHITECTURE.md +381 -0
  206. package/docs/MCP_SETUP.md +742 -0
  207. package/docs/MCP_TOOLS.md +1318 -0
  208. package/docs/SDK_API.md +206 -0
  209. package/docs/SIGNABLE_ADAPTER_CONTRACT.md +396 -0
  210. package/docs/TRANSACTION_ACTIVITY_LOG.md +194 -0
  211. package/docs/UTILITY_INDEX.md +275 -0
  212. package/docs/WALLET_CONNECTION.md +238 -0
  213. package/docs/golden-scenarios/BEHAVIOR_MATRIX.md +166 -0
  214. package/docs/golden-scenarios/INTENT_EVIDENCE_GOLDEN_ANSWERS.md +161 -0
  215. package/docs/golden-scenarios/INTENT_EVIDENCE_MATRIX.md +259 -0
  216. package/package.json +79 -0
  217. package/protocols/deepbook-margin.md +15 -0
  218. package/protocols/deepbook-v3.md +24 -0
@@ -0,0 +1,3179 @@
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-shell{min-height:100vh;position:relative}.ui-header{background:var(--ui-surface);border-bottom:.5px solid var(--ui-border);align-items:center;gap:12px;padding:12px 20px;display:flex}.ui-brand{color:var(--ui-text);white-space:nowrap;align-items:center;gap:8px;font-size:15px;font-weight:500;text-decoration:none;display:inline-flex}.ui-brand img{width:24px;height:24px;display:block}:root[data-theme=light] .ui-brand-dark,:root[data-theme=dark] .ui-brand-light{display:none}.ui-header-spacer{margin-left:auto}.ui-main{max-width:920px;margin:0 auto;padding:22px 20px 48px}.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-overlay{background:color-mix(in srgb, var(--ui-bg) 70%, transparent);z-index:50;justify-content:center;align-items:center;display:none;position:fixed;inset:0}.ui-shell[aria-busy=true] .ui-overlay{display:flex}.ui-shell[aria-busy=true] .ui-header,.ui-shell[aria-busy=true] .ui-main{filter:opacity(.55);pointer-events:none}.ui-overlay-box{background:var(--ui-surface);border:.5px solid var(--ui-border-strong);border-radius:14px;flex-direction:column;align-items:center;gap:11px;padding:20px 26px;display:flex}.ui-spinner{border:3px solid var(--ui-border-strong);border-top-color:var(--ui-accent);border-radius:50%;width:30px;height:30px;animation:.8s linear infinite ui-spin}.ui-overlay-label{font-size:14px;font-weight:500}@keyframes ui-spin{to{transform:rotate(360deg)}}.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%}}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}.workflow-card{gap:var(--space-4,1rem);grid-template-columns:minmax(0,1fr);min-width:0;display:grid}.workflow-card form{margin-block:var(--space-3,.75rem)}.workflow-qr{max-width:100%;height:auto;margin:auto;display:block}.workflow-qr[hidden]{display:none}.workflow-decision{border-block-start:1px solid var(--ui-border);margin-block-start:var(--space-4,1rem);padding-block-start:var(--space-3,.75rem)}.review-primary-action,.review-recovery-action{width:100%}.review-primary-action[hidden]{display:none}.review-status[hidden]{visibility:hidden;display:grid}.review-action-row{align-items:stretch;gap:var(--ui-space-2,8px);grid-template-columns:minmax(0,7fr) minmax(0,3fr);width:100%;display:grid}.review-primary-slot{min-width:0;display:flex}.review-lifetime{justify-content:space-between;align-items:center;gap:var(--ui-space-2,8px);margin-block:var(--ui-space-2,8px);display:flex}.review-lifetime .card-progress-hint{margin:0}.review-time-remaining{color:var(--ui-text-muted);font-variant-numeric:tabular-nums;font-size:12px}
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.29.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
+ dijkstrajs 1.0.3
953
+ ```
954
+ Dijkstra path-finding functions. Adapted from the Dijkstar Python project.
955
+
956
+ Copyright (C) 2008
957
+ Wyatt Baldwin &lt;self@wyattbaldwin.com&gt;
958
+ All rights reserved
959
+
960
+ Licensed under the MIT license.
961
+
962
+ http://www.opensource.org/licenses/mit-license.php
963
+
964
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
965
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
966
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
967
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
968
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
969
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
970
+ THE SOFTWARE.
971
+ ```
972
+
973
+
974
+ ---
975
+
976
+ qrcode 1.5.4
977
+ The MIT License (MIT)
978
+
979
+ Copyright (c) 2012 Ryan Day
980
+
981
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
982
+
983
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
984
+
985
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
986
+
987
+
988
+
989
+ ---
990
+
991
+ zod 4.4.3
992
+ MIT License
993
+
994
+ Copyright (c) 2025 Colin McDonnell
995
+
996
+ Permission is hereby granted, free of charge, to any person obtaining a copy
997
+ of this software and associated documentation files (the "Software"), to deal
998
+ in the Software without restriction, including without limitation the rights
999
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1000
+ copies of the Software, and to permit persons to whom the Software is
1001
+ furnished to do so, subject to the following conditions:
1002
+
1003
+ The above copyright notice and this permission notice shall be included in all
1004
+ copies or substantial portions of the Software.
1005
+
1006
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1007
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1008
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1009
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1010
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1011
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1012
+ SOFTWARE.
1013
+
1014
+ </template><script type="module">var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(e&&(t=e(e=0)),t),s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,a)=>(a=n==null?{}:e(i(n)),l(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),d=(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 f(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,`_zod`,{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,`name`,{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,`init`,{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,`name`,{value:e}),o}function p(e){return e&&Object.assign(ee,e),ee}var m,h,g,_,v,ee,te=o((()=>{h=Object.freeze({status:`aborted`}),g=Symbol(`zod_brand`),_=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},v=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},(m=globalThis).__zod_globalConfig??(m.__zod_globalConfig={}),ee=globalThis.__zod_globalConfig})),ne=c({BIGINT_FORMAT_RANGES:()=>tt,Class:()=>nt,NUMBER_FORMAT_RANGES:()=>et,aborted:()=>Ne,allowsEval:()=>Xe,assert:()=>ie,assertEqual:()=>y,assertIs:()=>x,assertNever:()=>re,assertNotEqual:()=>b,assignProp:()=>de,base64ToUint8Array:()=>He,base64urlToUint8Array:()=>We,cached:()=>oe,captureStackTrace:()=>Ye,cleanEnum:()=>Ve,cleanRegex:()=>ce,clone:()=>Ce,cloneDef:()=>pe,createTransparentProxy:()=>we,defineLazy:()=>w,esc:()=>ge,escapeRegex:()=>Se,explicitlyAborted:()=>Pe,extend:()=>Oe,finalizeIssue:()=>Le,floatSafeRemainder:()=>le,getElementAtPath:()=>T,getEnumValues:()=>ae,getLengthableOrigin:()=>ze,getParsedType:()=>Ze,getSizableOrigin:()=>Re,hexToUint8Array:()=>Ke,isObject:()=>ve,isPlainObject:()=>ye,issue:()=>Be,joinValues:()=>S,jsonStringifyReplacer:()=>C,merge:()=>Ae,mergeDefs:()=>fe,normalizeParams:()=>E,nullish:()=>se,numKeys:()=>xe,objectClone:()=>ue,omit:()=>De,optionalKeys:()=>Te,parsedType:()=>O,partial:()=>je,pick:()=>Ee,prefixIssues:()=>Fe,primitiveTypes:()=>$e,promiseAllObject:()=>me,propertyKeyTypes:()=>Qe,randomString:()=>he,required:()=>Me,safeExtend:()=>ke,shallowClone:()=>be,slugify:()=>_e,stringifyPrimitive:()=>D,uint8ArrayToBase64:()=>Ue,uint8ArrayToBase64url:()=>Ge,uint8ArrayToHex:()=>qe,unwrapMessage:()=>Ie});function y(e){return e}function b(e){return e}function x(e){}function re(e){throw Error(`Unexpected value in exhaustive check`)}function ie(e){}function ae(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function S(e,t=`|`){return e.map(e=>D(e)).join(t)}function C(e,t){return typeof t==`bigint`?t.toString():t}function oe(e){return{get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}throw Error(`cached value already set`)}}}function se(e){return e==null}function ce(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function le(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}function w(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Je)return r===void 0&&(r=Je,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function ue(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function de(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function fe(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}function pe(e){return fe(e._zod.def)}function T(e,t){return t?t.reduce((e,t)=>e?.[t],e):e}function me(e){let t=Object.keys(e),n=t.map(t=>e[t]);return Promise.all(n).then(e=>{let n={};for(let r=0;r<t.length;r++)n[t[r]]=e[r];return n})}function he(e=10){let t=``;for(let n=0;n<e;n++)t+=`abcdefghijklmnopqrstuvwxyz`[Math.floor(Math.random()*26)];return t}function ge(e){return JSON.stringify(e)}function _e(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}function ve(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function ye(e){if(ve(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(ve(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function be(e){return ye(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function xe(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}function Se(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function Ce(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function E(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function we(e){let t;return new Proxy({},{get(n,r,i){return t??=e(),Reflect.get(t,r,i)},set(n,r,i,a){return t??=e(),Reflect.set(t,r,i,a)},has(n,r){return t??=e(),Reflect.has(t,r)},deleteProperty(n,r){return t??=e(),Reflect.deleteProperty(t,r)},ownKeys(n){return t??=e(),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,r){return t??=e(),Reflect.getOwnPropertyDescriptor(t,r)},defineProperty(n,r,i){return t??=e(),Reflect.defineProperty(t,r,i)}})}function D(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function Te(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}function Ee(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return Ce(e,fe(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 de(this,`shape`,e),e},checks:[]}))}function De(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return Ce(e,fe(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 de(this,`shape`,r),r},checks:[]}))}function Oe(e,t){if(!ye(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return Ce(e,fe(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return de(this,`shape`,n),n}}))}function ke(e,t){if(!ye(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return Ce(e,fe(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return de(this,`shape`,n),n}}))}function Ae(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return Ce(e,fe(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return de(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function je(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return Ce(t,fe(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 de(this,`shape`,i),i},checks:[]}))}function Me(e,t,n){return Ce(t,fe(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 de(this,`shape`,i),i}}))}function Ne(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Pe(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function Fe(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function Ie(e){return typeof e==`string`?e:e?.message}function Le(e,t,n){let r=e.message?e.message:Ie(e.inst?._zod.def?.error?.(e))??Ie(t?.error?.(e))??Ie(n.customError?.(e))??Ie(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function Re(e){return e instanceof Set?`set`:e instanceof Map?`map`:e instanceof File?`file`:`unknown`}function ze(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function O(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function Be(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function Ve(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function He(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}function Ue(e){let t=``;for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function We(e){let t=e.replace(/-/g,`+`).replace(/_/g,`/`);return He(t+`=`.repeat((4-t.length%4)%4))}function Ge(e){return Ue(e).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=/g,``)}function Ke(e){let t=e.replace(/^0x/,``);if(t.length%2!=0)throw Error(`Invalid hex string length`);let n=new Uint8Array(t.length/2);for(let e=0;e<t.length;e+=2)n[e/2]=Number.parseInt(t.slice(e,e+2),16);return n}function qe(e){return Array.from(e).map(e=>e.toString(16).padStart(2,`0`)).join(``)}var Je,Ye,Xe,Ze,Qe,$e,et,tt,nt,k=o((()=>{te(),Je=Symbol(`evaluating`),Ye=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{},Xe=oe(()=>{if(ee.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}}),Ze=e=>{let t=typeof e;switch(t){case`undefined`:return`undefined`;case`string`:return`string`;case`number`:return Number.isNaN(e)?`nan`:`number`;case`boolean`:return`boolean`;case`function`:return`function`;case`bigint`:return`bigint`;case`symbol`:return`symbol`;case`object`:return Array.isArray(e)?`array`:e===null?`null`:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?`promise`:typeof Map<`u`&&e instanceof Map?`map`:typeof Set<`u`&&e instanceof Set?`set`:typeof Date<`u`&&e instanceof Date?`date`:typeof File<`u`&&e instanceof File?`file`:`object`;default:throw Error(`Unknown data type: ${t}`)}},Qe=new Set([`string`,`number`,`symbol`]),$e=new Set([`string`,`number`,`bigint`,`boolean`,`symbol`,`undefined`]),et={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},tt={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]},nt=class{constructor(...e){}}}));function rt(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function it(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i<e.length;){let n=e[i];i===e.length-1?(r[n]=r[n]||{_errors:[]},r[n]._errors.push(t(a))):r[n]=r[n]||{_errors:[]},r=r[n],i++}}}};return r(e),n}function at(e,t=e=>e.message){let n={errors:[]},r=(e,i=[])=>{var a,o;for(let s of e.issues)if(s.code===`invalid_union`&&s.errors.length)s.errors.map(e=>r({issues:e},[...i,...s.path]));else if(s.code===`invalid_key`)r({issues:s.issues},[...i,...s.path]);else if(s.code===`invalid_element`)r({issues:s.issues},[...i,...s.path]);else{let e=[...i,...s.path];if(e.length===0){n.errors.push(t(s));continue}let r=n,c=0;for(;c<e.length;){let n=e[c],i=c===e.length-1;typeof n==`string`?(r.properties??={},(a=r.properties)[n]??(a[n]={errors:[]}),r=r.properties[n]):(r.items??=[],(o=r.items)[n]??(o[n]={errors:[]}),r=r.items[n]),i&&r.errors.push(t(s)),c++}}};return r(e),n}function ot(e){let t=[],n=e.map(e=>typeof e==`object`?e.key:e);for(let e of n)typeof e==`number`?t.push(`[${e}]`):typeof e==`symbol`?t.push(`[${JSON.stringify(String(e))}]`):/[^\w$]/.test(e)?t.push(`[${JSON.stringify(e)}]`):(t.length&&t.push(`.`),t.push(e));return t.join(``)}function st(e){let t=[],n=[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length);for(let e of n)t.push(`✖ ${e.message}`),e.path?.length&&t.push(` → at ${ot(e.path)}`);return t.join(`
1015
+ `)}var ct,lt,ut,dt=o((()=>{te(),k(),ct=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,`_zod`,{value:e._zod,enumerable:!1}),Object.defineProperty(e,`issues`,{value:t,enumerable:!1}),e.message=JSON.stringify(t,C,2),Object.defineProperty(e,`toString`,{value:()=>e.message,enumerable:!1})},lt=f(`$ZodError`,ct),ut=f(`$ZodError`,ct,{Parent:Error})})),ft,pt,mt,ht,gt,_t,vt,yt,bt,xt,St,Ct,wt,Tt,Et,Dt,Ot,kt,At,jt,Mt,Nt,Pt,Ft,It=o((()=>{te(),dt(),k(),ft=e=>(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new _;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>Le(e,a,p())));throw Ye(t,i?.callee),t}return o.value},pt=ft(ut),mt=e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>Le(e,a,p())));throw Ye(t,i?.callee),t}return o.value},ht=mt(ut),gt=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new _;return a.issues.length?{success:!1,error:new(e??lt)(a.issues.map(e=>Le(e,i,p())))}:{success:!0,data:a.value}},_t=gt(ut),vt=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>Le(e,i,p())))}:{success:!0,data:a.value}},yt=vt(ut),bt=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return ft(e)(t,n,i)},xt=bt(ut),St=e=>(t,n,r)=>ft(e)(t,n,r),Ct=St(ut),wt=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return mt(e)(t,n,i)},Tt=wt(ut),Et=e=>async(t,n,r)=>mt(e)(t,n,r),Dt=Et(ut),Ot=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return gt(e)(t,n,i)},kt=Ot(ut),At=e=>(t,n,r)=>gt(e)(t,n,r),jt=At(ut),Mt=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return vt(e)(t,n,i)},Nt=Mt(ut),Pt=e=>async(t,n,r)=>vt(e)(t,n,r),Ft=Pt(ut)})),Lt=c({base64:()=>gn,base64url:()=>_n,bigint:()=>Tn,boolean:()=>On,browserEmail:()=>ln,cidrv4:()=>mn,cidrv6:()=>hn,cuid:()=>Wt,cuid2:()=>Gt,date:()=>Cn,datetime:()=>Vt,domain:()=>yn,duration:()=>Xt,e164:()=>xn,email:()=>rn,emoji:()=>Rt,extendedDuration:()=>Zt,guid:()=>Qt,hex:()=>Nn,hostname:()=>vn,html5Email:()=>an,httpProtocol:()=>bn,idnEmail:()=>cn,integer:()=>En,ipv4:()=>dn,ipv6:()=>fn,ksuid:()=>Jt,lowercase:()=>jn,mac:()=>pn,md5_base64:()=>Fn,md5_base64url:()=>In,md5_hex:()=>Pn,nanoid:()=>Yt,null:()=>kn,number:()=>Dn,rfc5322Email:()=>on,sha1_base64:()=>Rn,sha1_base64url:()=>zn,sha1_hex:()=>Ln,sha256_base64:()=>Vn,sha256_base64url:()=>Hn,sha256_hex:()=>Bn,sha384_base64:()=>Wn,sha384_base64url:()=>Gn,sha384_hex:()=>Un,sha512_base64:()=>qn,sha512_base64url:()=>Jn,sha512_hex:()=>Kn,string:()=>wn,time:()=>Bt,ulid:()=>Kt,undefined:()=>An,unicodeEmail:()=>sn,uppercase:()=>Mn,uuid:()=>$t,uuid4:()=>en,uuid6:()=>tn,uuid7:()=>nn,xid:()=>qt});function Rt(){return new RegExp(un,`u`)}function zt(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Bt(e){return RegExp(`^${zt(e)}$`)}function Vt(e){let t=zt({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${Sn}T(?:${r})$`)}function Ht(e,t){return RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Ut(e){return RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var Wt,Gt,Kt,qt,Jt,Yt,Xt,Zt,Qt,$t,en,tn,nn,rn,an,on,sn,cn,ln,un,dn,fn,pn,mn,hn,gn,_n,vn,yn,bn,xn,Sn,Cn,wn,Tn,En,Dn,On,kn,An,jn,Mn,Nn,Pn,Fn,In,Ln,Rn,zn,Bn,Vn,Hn,Un,Wn,Gn,Kn,qn,Jn,Yn=o((()=>{k(),Wt=/^[cC][0-9a-z]{6,}$/,Gt=/^[0-9a-z]+$/,Kt=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,qt=/^[0-9a-vA-V]{20}$/,Jt=/^[A-Za-z0-9]{27}$/,Yt=/^[a-zA-Z0-9_-]{21}$/,Xt=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Zt=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Qt=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,$t=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,en=$t(4),tn=$t(6),nn=$t(7),rn=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,an=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,on=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,sn=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,cn=sn,ln=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,un=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,dn=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,fn=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,pn=e=>{let t=Se(e??`:`);return RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},mn=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,hn=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,gn=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,_n=/^[A-Za-z0-9_-]*$/,vn=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,yn=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,bn=/^https?$/,xn=/^\+[1-9]\d{6,14}$/,Sn=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,Cn=RegExp(`^${Sn}$`),wn=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},Tn=/^-?\d+n?$/,En=/^-?\d+$/,Dn=/^-?\d+(?:\.\d+)?$/,On=/^(?:true|false)$/i,kn=/^null$/i,An=/^undefined$/i,jn=/^[^A-Z]*$/,Mn=/^[^a-z]*$/,Nn=/^[0-9a-fA-F]*$/,Pn=/^[0-9a-fA-F]{32}$/,Fn=Ht(22,`==`),In=Ut(22),Ln=/^[0-9a-fA-F]{40}$/,Rn=Ht(27,`=`),zn=Ut(27),Bn=/^[0-9a-fA-F]{64}$/,Vn=Ht(43,`=`),Hn=Ut(43),Un=/^[0-9a-fA-F]{96}$/,Wn=Ht(64,``),Gn=Ut(64),Kn=/^[0-9a-fA-F]{128}$/,qn=Ht(86,`==`),Jn=Ut(86)}));function Xn(e,t,n){e.issues.length&&t.issues.push(...Fe(n,e.issues))}var A,Zn,Qn,$n,er,tr,nr,rr,ir,ar,or,sr,cr,lr,ur,dr,fr,pr,mr,hr,gr,_r,vr,yr=o((()=>{te(),Yn(),k(),A=f(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Zn={number:`number`,bigint:`bigint`,object:`date`},Qn=f(`$ZodCheckLessThan`,(e,t)=>{A.init(e,t);let n=Zn[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),$n=f(`$ZodCheckGreaterThan`,(e,t)=>{A.init(e,t);let n=Zn[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),er=f(`$ZodCheckMultipleOf`,(e,t)=>{A.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):le(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),tr=f(`$ZodCheckNumberFormat`,(e,t)=>{A.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=et[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=En)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),nr=f(`$ZodCheckBigIntFormat`,(e,t)=>{A.init(e,t);let[n,r]=tt[t.format];e._zod.onattach.push(e=>{let i=e._zod.bag;i.format=t.format,i.minimum=n,i.maximum=r}),e._zod.check=i=>{let a=i.value;a<n&&i.issues.push({origin:`bigint`,input:a,code:`too_small`,minimum:n,inclusive:!0,inst:e,continue:!t.abort}),a>r&&i.issues.push({origin:`bigint`,input:a,code:`too_big`,maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),rr=f(`$ZodCheckMaxSize`,(e,t)=>{var n;A.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!se(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;r.size<=t.maximum||n.issues.push({origin:Re(r),code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),ir=f(`$ZodCheckMinSize`,(e,t)=>{var n;A.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!se(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;r.size>=t.minimum||n.issues.push({origin:Re(r),code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),ar=f(`$ZodCheckSizeEquals`,(e,t)=>{var n;A.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!se(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=n=>{let r=n.value,i=r.size;if(i===t.size)return;let a=i>t.size;n.issues.push({origin:Re(r),...a?{code:`too_big`,maximum:t.size}:{code:`too_small`,minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),or=f(`$ZodCheckMaxLength`,(e,t)=>{var n;A.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!se(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=ze(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),sr=f(`$ZodCheckMinLength`,(e,t)=>{var n;A.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!se(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=ze(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),cr=f(`$ZodCheckLengthEquals`,(e,t)=>{var n;A.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!se(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=ze(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),lr=f(`$ZodCheckStringFormat`,(e,t)=>{var n,r;A.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),ur=f(`$ZodCheckRegex`,(e,t)=>{lr.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),dr=f(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=jn,lr.init(e,t)}),fr=f(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=Mn,lr.init(e,t)}),pr=f(`$ZodCheckIncludes`,(e,t)=>{A.init(e,t);let n=Se(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),mr=f(`$ZodCheckStartsWith`,(e,t)=>{A.init(e,t);let n=RegExp(`^${Se(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),hr=f(`$ZodCheckEndsWith`,(e,t)=>{A.init(e,t);let n=RegExp(`.*${Se(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),gr=f(`$ZodCheckProperty`,(e,t)=>{A.init(e,t),e._zod.check=e=>{let n=t.schema._zod.run({value:e.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(n=>Xn(n,e,t.property));Xn(n,e,t.property)}}),_r=f(`$ZodCheckMimeType`,(e,t)=>{A.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(e=>{e._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:`invalid_value`,values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),vr=f(`$ZodCheckOverwrite`,(e,t)=>{A.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}})})),br,xr=o((()=>{br=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
1016
+ `).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(`
1017
+ `))}}})),Sr,Cr=o((()=>{Sr={major:4,minor:4,patch:3}}));function wr(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}function Tr(e){if(!_n.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return wr(t.padEnd(Math.ceil(t.length/4)*4,`=`))}function Er(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}function Dr(e,t,n){e.issues.length&&t.issues.push(...Fe(n,e.issues)),t.value[n]=e.value}function Or(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...Fe(n,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}function kr(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=Te(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Ar(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>Or(e,n,i,t,u,d))):Or(a,n,i,t,u,d)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}function jr(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!Ne(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>Le(e,r,p())))}),t)}function Mr(e,t,n,r){let i=e.filter(e=>e.issues.length===0);return i.length===1?(t.value=i[0].value,t):(i.length===0?t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>Le(e,r,p())))}):t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:[],inclusive:!1}),t)}function Nr(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(ye(e)&&ye(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=Nr(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=Nr(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Pr(e,t,n){let r=new Map,i;for(let n of t.issues)if(n.code===`unrecognized_keys`){i??=n;for(let e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=!0}else e.issues.push(n);for(let t of n.issues)if(t.code===`unrecognized_keys`)for(let e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=!0;else e.issues.push(t);let a=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),Ne(e))return e;let o=Nr(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}function Fr(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!==`optional`)return n+1;return 0}function Ir(e,t,n){e.issues.length&&t.issues.push(...Fe(n,e.issues)),t.value[n]=e.value}function Lr(e,t,n,r,i){for(let a=0;a<n.length;a++){let n=e[a],o=a<r.length;if(n.issues.length){if(!o&&a>=i){t.value.length=a;break}t.issues.push(...Fe(a,n.issues))}t.value[a]=n.value}for(let e=t.value.length-1;e>=r.length&&n[e]._zod.optout===`optional`&&t.value[e]===void 0;e--)t.value.length=e;return t}function Rr(e,t,n,r,i,a,o){e.issues.length&&(Qe.has(typeof r)?n.issues.push(...Fe(r,e.issues)):n.issues.push({code:`invalid_key`,origin:`map`,input:i,inst:a,issues:e.issues.map(e=>Le(e,o,p()))})),t.issues.length&&(Qe.has(typeof r)?n.issues.push(...Fe(r,t.issues)):n.issues.push({origin:`map`,code:`invalid_element`,input:i,inst:a,key:r,issues:t.issues.map(e=>Le(e,o,p()))})),n.value.set(e.value,t.value)}function zr(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}function Br(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}function Vr(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}function Hr(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}function Ur(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}function Wr(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||`forward`)===`forward`){let r=t.transform(e.value,e);return r instanceof Promise?r.then(r=>Gr(e,r,t.out,n)):Gr(e,r,t.out,n)}else{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(r=>Gr(e,r,t.in,n)):Gr(e,r,t.in,n)}}function Gr(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}function Kr(e){return e.value=Object.freeze(e.value),e}function qr(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(Be(e))}}var j,Jr,M,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,oa,sa,ca,la,ua,da,fa=o((()=>{yr(),te(),xr(),It(),Yn(),k(),Cr(),j=f(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Sr;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=Ne(e),i;for(let a of t){if(a._zod.def.when){if(Pe(e)||!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new _;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=Ne(e,t))});else{if(e.issues.length===t)continue;r||=Ne(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(Ne(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new _;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new _;return o.then(e=>t(e,r,a))}return t(o,r,a)}}w(e,`~standard`,()=>({validate:t=>{try{let n=_t(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return yt(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),Jr=f(`$ZodString`,(e,t)=>{j.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??wn(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),M=f(`$ZodStringFormat`,(e,t)=>{lr.init(e,t),Jr.init(e,t)}),Yr=f(`$ZodGUID`,(e,t)=>{t.pattern??=Qt,M.init(e,t)}),Xr=f(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=$t(e)}else t.pattern??=$t();M.init(e,t)}),Zr=f(`$ZodEmail`,(e,t)=>{t.pattern??=rn,M.init(e,t)}),Qr=f(`$ZodURL`,(e,t)=>{M.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===bn.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),$r=f(`$ZodEmoji`,(e,t)=>{t.pattern??=Rt(),M.init(e,t)}),ei=f(`$ZodNanoID`,(e,t)=>{t.pattern??=Yt,M.init(e,t)}),ti=f(`$ZodCUID`,(e,t)=>{t.pattern??=Wt,M.init(e,t)}),ni=f(`$ZodCUID2`,(e,t)=>{t.pattern??=Gt,M.init(e,t)}),ri=f(`$ZodULID`,(e,t)=>{t.pattern??=Kt,M.init(e,t)}),ii=f(`$ZodXID`,(e,t)=>{t.pattern??=qt,M.init(e,t)}),ai=f(`$ZodKSUID`,(e,t)=>{t.pattern??=Jt,M.init(e,t)}),oi=f(`$ZodISODateTime`,(e,t)=>{t.pattern??=Vt(t),M.init(e,t)}),si=f(`$ZodISODate`,(e,t)=>{t.pattern??=Cn,M.init(e,t)}),ci=f(`$ZodISOTime`,(e,t)=>{t.pattern??=Bt(t),M.init(e,t)}),li=f(`$ZodISODuration`,(e,t)=>{t.pattern??=Xt,M.init(e,t)}),ui=f(`$ZodIPv4`,(e,t)=>{t.pattern??=dn,M.init(e,t),e._zod.bag.format=`ipv4`}),di=f(`$ZodIPv6`,(e,t)=>{t.pattern??=fn,M.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})}}}),fi=f(`$ZodMAC`,(e,t)=>{t.pattern??=pn(t.delimiter),M.init(e,t),e._zod.bag.format=`mac`}),pi=f(`$ZodCIDRv4`,(e,t)=>{t.pattern??=mn,M.init(e,t)}),mi=f(`$ZodCIDRv6`,(e,t)=>{t.pattern??=hn,M.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})}}}),hi=f(`$ZodBase64`,(e,t)=>{t.pattern??=gn,M.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{wr(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}}),gi=f(`$ZodBase64URL`,(e,t)=>{t.pattern??=_n,M.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{Tr(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),_i=f(`$ZodE164`,(e,t)=>{t.pattern??=xn,M.init(e,t)}),vi=f(`$ZodJWT`,(e,t)=>{M.init(e,t),e._zod.check=n=>{Er(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),yi=f(`$ZodCustomStringFormat`,(e,t)=>{M.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})}}),bi=f(`$ZodNumber`,(e,t)=>{j.init(e,t),e._zod.pattern=e._zod.bag.pattern??Dn,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),xi=f(`$ZodNumberFormat`,(e,t)=>{tr.init(e,t),bi.init(e,t)}),Si=f(`$ZodBoolean`,(e,t)=>{j.init(e,t),e._zod.pattern=On,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),Ci=f(`$ZodBigInt`,(e,t)=>{j.init(e,t),e._zod.pattern=Tn,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value==`bigint`||n.issues.push({expected:`bigint`,code:`invalid_type`,input:n.value,inst:e}),n}}),wi=f(`$ZodBigIntFormat`,(e,t)=>{nr.init(e,t),Ci.init(e,t)}),Ti=f(`$ZodSymbol`,(e,t)=>{j.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return typeof r==`symbol`||t.issues.push({expected:`symbol`,code:`invalid_type`,input:r,inst:e}),t}}),Ei=f(`$ZodUndefined`,(e,t)=>{j.init(e,t),e._zod.pattern=An,e._zod.values=new Set([void 0]),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`undefined`,code:`invalid_type`,input:r,inst:e}),t}}),Di=f(`$ZodNull`,(e,t)=>{j.init(e,t),e._zod.pattern=kn,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t}}),Oi=f(`$ZodAny`,(e,t)=>{j.init(e,t),e._zod.parse=e=>e}),ki=f(`$ZodUnknown`,(e,t)=>{j.init(e,t),e._zod.parse=e=>e}),Ai=f(`$ZodNever`,(e,t)=>{j.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)}),ji=f(`$ZodVoid`,(e,t)=>{j.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`void`,code:`invalid_type`,input:r,inst:e}),t}}),Mi=f(`$ZodDate`,(e,t)=>{j.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let i=n.value,a=i instanceof Date;return a&&!Number.isNaN(i.getTime())||n.issues.push({expected:`date`,code:`invalid_type`,input:i,...a?{received:`Invalid Date`}:{},inst:e}),n}}),Ni=f(`$ZodArray`,(e,t)=>{j.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let o=i[e],s=t.element._zod.run({value:o,issues:[]},r);s instanceof Promise?a.push(s.then(t=>Dr(t,n,e))):Dr(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}}),Pi=f(`$ZodObject`,(e,t)=>{if(j.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,`shape`,{get:()=>{let n={...e};return Object.defineProperty(t,`shape`,{value:n}),n}})}let n=oe(()=>kr(t));w(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=ve,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>Or(n,t,e,s,r,i))):Or(a,t,e,s,r,i)}return i?Ar(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),Fi=f(`$ZodObjectJIT`,(e,t)=>{Pi.init(e,t);let n=e._zod.parse,r=oe(()=>kr(t)),i=e=>{let t=new br([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=ge(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=ge(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(`
1018
+ if (${n}.issues.length) {
1019
+ if (${o} in input) {
1020
+ payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
1021
+ ...iss,
1022
+ path: iss.path ? [${o}, ...iss.path] : [${o}]
1023
+ })));
1024
+ }
1025
+ }
1026
+
1027
+ if (${n}.value === undefined) {
1028
+ if (${o} in input) {
1029
+ newResult[${o}] = undefined;
1030
+ }
1031
+ } else {
1032
+ newResult[${o}] = ${n}.value;
1033
+ }
1034
+
1035
+ `):c?t.write(`
1036
+ if (${n}.issues.length) {
1037
+ payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
1038
+ ...iss,
1039
+ path: iss.path ? [${o}, ...iss.path] : [${o}]
1040
+ })));
1041
+ }
1042
+
1043
+ if (${n}.value === undefined) {
1044
+ if (${o} in input) {
1045
+ newResult[${o}] = undefined;
1046
+ }
1047
+ } else {
1048
+ newResult[${o}] = ${n}.value;
1049
+ }
1050
+
1051
+ `):t.write(`
1052
+ const ${n}_present = ${o} in input;
1053
+ if (${n}.issues.length) {
1054
+ payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
1055
+ ...iss,
1056
+ path: iss.path ? [${o}, ...iss.path] : [${o}]
1057
+ })));
1058
+ }
1059
+ if (!${n}_present && !${n}.issues.length) {
1060
+ payload.issues.push({
1061
+ code: "invalid_type",
1062
+ expected: "nonoptional",
1063
+ input: undefined,
1064
+ path: [${o}]
1065
+ });
1066
+ }
1067
+
1068
+ if (${n}_present) {
1069
+ if (${n}.value === undefined) {
1070
+ newResult[${o}] = undefined;
1071
+ } else {
1072
+ newResult[${o}] = ${n}.value;
1073
+ }
1074
+ }
1075
+
1076
+ `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=ve,s=!ee.jitless,c=s&&Xe.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?Ar([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}}),Ii=f(`$ZodUnion`,(e,t)=>{j.init(e,t),w(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),w(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),w(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),w(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>ce(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>jr(t,r,e,i)):jr(o,r,e,i)}}),Li=f(`$ZodXor`,(e,t)=>{Ii.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);t instanceof Promise?(o.push(t),a=!0):o.push(t)}return a?Promise.all(o).then(t=>Mr(t,r,e,i)):Mr(o,r,e,i)}}),Ri=f(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,Ii.init(e,t);let n=e._zod.parse;w(e._zod,`propValues`,()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||Object.keys(r).length===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(let r of n)e[t].add(r)}}return e});let r=oe(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||e.size===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!ve(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()),input:o,path:[t.discriminator],inst:e}),i)}}),zi=f(`$ZodIntersection`,(e,t)=>{j.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>Pr(e,t,n)):Pr(e,i,a)}}),Bi=f(`$ZodTuple`,(e,t)=>{j.init(e,t);let n=t.items;e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:`tuple`,code:`invalid_type`}),r;r.value=[];let o=[],s=Fr(n,`optin`),c=Fr(n,`optout`);if(!t.rest){if(a.length<s)return r.issues.push({code:`too_small`,minimum:s,inclusive:!0,input:a,inst:e,origin:`array`}),r;a.length>n.length&&r.issues.push({code:`too_big`,maximum:n.length,inclusive:!0,input:a,inst:e,origin:`array`})}let l=Array(n.length);for(let e=0;e<n.length;e++){let t=n[e]._zod.run({value:a[e],issues:[]},i);t instanceof Promise?o.push(t.then(t=>{l[e]=t})):l[e]=t}if(t.rest){let e=n.length-1,s=a.slice(n.length);for(let n of s){e++;let a=t.rest._zod.run({value:n,issues:[]},i);a instanceof Promise?o.push(a.then(t=>Ir(t,r,e))):Ir(a,r,e)}}return o.length?Promise.all(o).then(()=>Lr(l,r,n,a,c)):Lr(l,r,n,a,c)}}),Vi=f(`$ZodRecord`,(e,t)=>{j.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!ye(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let c of o)if(typeof c==`string`||typeof c==`number`||typeof c==`symbol`){s.add(typeof c==`number`?c.toString():c);let o=t.keyType._zod.run({value:c,issues:[]},r);if(o instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(o.issues.length){n.issues.push({code:`invalid_key`,origin:`record`,issues:o.issues.map(e=>Le(e,r,p())),input:c,path:[c],inst:e});continue}let l=o.value,u=t.valueType._zod.run({value:i[c],issues:[]},r);u instanceof Promise?a.push(u.then(e=>{e.issues.length&&n.issues.push(...Fe(c,e.issues)),n.value[l]=e.value})):(u.issues.length&&n.issues.push(...Fe(c,u.issues)),n.value[l]=u.value)}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`||!Object.prototype.propertyIsEnumerable.call(i,o))continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof o==`string`&&Dn.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(s=e)}if(s.issues.length){t.mode===`loose`?n.value[o]=i[o]:n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>Le(e,r,p())),input:o,path:[o],inst:e});continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...Fe(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...Fe(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),Hi=f(`$ZodMap`,(e,t)=>{j.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Map))return n.issues.push({expected:`map`,code:`invalid_type`,input:i,inst:e}),n;let a=[];n.value=new Map;for(let[o,s]of i){let c=t.keyType._zod.run({value:o,issues:[]},r),l=t.valueType._zod.run({value:s,issues:[]},r);c instanceof Promise||l instanceof Promise?a.push(Promise.all([c,l]).then(([t,a])=>{Rr(t,a,n,o,i,e,r)})):Rr(c,l,n,o,i,e,r)}return a.length?Promise.all(a).then(()=>n):n}}),Ui=f(`$ZodSet`,(e,t)=>{j.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Set))return n.issues.push({input:i,inst:e,expected:`set`,code:`invalid_type`}),n;let a=[];n.value=new Set;for(let e of i){let i=t.valueType._zod.run({value:e,issues:[]},r);i instanceof Promise?a.push(i.then(e=>zr(e,n))):zr(i,n)}return a.length?Promise.all(a).then(()=>n):n}}),Wi=f(`$ZodEnum`,(e,t)=>{j.init(e,t);let n=ae(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>Qe.has(typeof e)).map(e=>typeof e==`string`?Se(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),Gi=f(`$ZodLiteral`,(e,t)=>{if(j.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?Se(e):e?Se(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),Ki=f(`$ZodFile`,(e,t)=>{j.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r instanceof File||t.issues.push({expected:`file`,code:`invalid_type`,input:r,inst:e}),t}}),qi=f(`$ZodTransform`,(e,t)=>{j.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new v(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new _;return n.value=i,n.fallback=!0,n}}),Ji=f(`$ZodOptional`,(e,t)=>{j.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,w(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),w(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${ce(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>Br(e,r)):Br(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),Yi=f(`$ZodExactOptional`,(e,t)=>{Ji.init(e,t),w(e._zod,`values`,()=>t.innerType._zod.values),w(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),Xi=f(`$ZodNullable`,(e,t)=>{j.init(e,t),w(e._zod,`optin`,()=>t.innerType._zod.optin),w(e._zod,`optout`,()=>t.innerType._zod.optout),w(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${ce(e.source)}|null)$`):void 0}),w(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),Zi=f(`$ZodDefault`,(e,t)=>{j.init(e,t),e._zod.optin=`optional`,w(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>Vr(e,t)):Vr(r,t)}}),Qi=f(`$ZodPrefault`,(e,t)=>{j.init(e,t),e._zod.optin=`optional`,w(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),$i=f(`$ZodNonOptional`,(e,t)=>{j.init(e,t),w(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>Hr(t,e)):Hr(i,e)}}),ea=f(`$ZodSuccess`,(e,t)=>{j.init(e,t),e._zod.parse=(e,n)=>{if(n.direction===`backward`)throw new v(`ZodSuccess`);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>(e.value=t.issues.length===0,e)):(e.value=r.issues.length===0,e)}}),ta=f(`$ZodCatch`,(e,t)=>{j.init(e,t),e._zod.optin=`optional`,w(e._zod,`optout`,()=>t.innerType._zod.optout),w(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Le(e,n,p()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Le(e,n,p()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),na=f(`$ZodNaN`,(e,t)=>{j.init(e,t),e._zod.parse=(t,n)=>((typeof t.value!=`number`||!Number.isNaN(t.value))&&t.issues.push({input:t.value,inst:e,expected:`nan`,code:`invalid_type`}),t)}),ra=f(`$ZodPipe`,(e,t)=>{j.init(e,t),w(e._zod,`values`,()=>t.in._zod.values),w(e._zod,`optin`,()=>t.in._zod.optin),w(e._zod,`optout`,()=>t.out._zod.optout),w(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Ur(e,t.in,n)):Ur(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Ur(e,t.out,n)):Ur(r,t.out,n)}}),ia=f(`$ZodCodec`,(e,t)=>{j.init(e,t),w(e._zod,`values`,()=>t.in._zod.values),w(e._zod,`optin`,()=>t.in._zod.optin),w(e._zod,`optout`,()=>t.out._zod.optout),w(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if((n.direction||`forward`)===`forward`){let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Wr(e,t,n)):Wr(r,t,n)}else{let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Wr(e,t,n)):Wr(r,t,n)}}}),aa=f(`$ZodPreprocess`,(e,t)=>{ra.init(e,t)}),oa=f(`$ZodReadonly`,(e,t)=>{j.init(e,t),w(e._zod,`propValues`,()=>t.innerType._zod.propValues),w(e._zod,`values`,()=>t.innerType._zod.values),w(e._zod,`optin`,()=>t.innerType?._zod?.optin),w(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(Kr):Kr(r)}}),sa=f(`$ZodTemplateLiteral`,(e,t)=>{j.init(e,t);let n=[];for(let e of t.parts)if(typeof e==`object`&&e){if(!e._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);let t=e._zod.pattern instanceof RegExp?e._zod.pattern.source:e._zod.pattern;if(!t)throw Error(`Invalid template literal part: ${e._zod.traits}`);let r=+!!t.startsWith(`^`),i=t.endsWith(`$`)?t.length-1:t.length;n.push(t.slice(r,i))}else if(e===null||$e.has(typeof e))n.push(Se(`${e}`));else throw Error(`Invalid template literal part: ${e}`);e._zod.pattern=RegExp(`^${n.join(``)}$`),e._zod.parse=(n,r)=>typeof n.value==`string`?(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:`invalid_format`,format:t.format??`template_literal`,pattern:e._zod.pattern.source}),n):(n.issues.push({input:n.value,inst:e,expected:`string`,code:`invalid_type`}),n)}),ca=f(`$ZodFunction`,(e,t)=>(j.init(e,t),e._def=t,e._zod.def=t,e.implement=t=>{if(typeof t!=`function`)throw Error(`implement() must be called with a function`);return function(...n){let r=e._def.input?pt(e._def.input,n):n,i=Reflect.apply(t,this,r);return e._def.output?pt(e._def.output,i):i}},e.implementAsync=t=>{if(typeof t!=`function`)throw Error(`implementAsync() must be called with a function`);return async function(...n){let r=e._def.input?await ht(e._def.input,n):n,i=await Reflect.apply(t,this,r);return e._def.output?await ht(e._def.output,i):i}},e._zod.parse=(t,n)=>typeof t.value==`function`?(e._def.output&&e._def.output._zod.def.type===`promise`?t.value=e.implementAsync(t.value):t.value=e.implement(t.value),t):(t.issues.push({code:`invalid_type`,expected:`function`,input:t.value,inst:e}),t),e.input=(...t)=>{let n=e.constructor;return Array.isArray(t[0])?new n({type:`function`,input:new Bi({type:`tuple`,items:t[0],rest:t[1]}),output:e._def.output}):new n({type:`function`,input:t[0],output:e._def.output})},e.output=t=>{let n=e.constructor;return new n({type:`function`,input:e._def.input,output:t})},e)),la=f(`$ZodPromise`,(e,t)=>{j.init(e,t),e._zod.parse=(e,n)=>Promise.resolve(e.value).then(e=>t.innerType._zod.run({value:e,issues:[]},n))}),ua=f(`$ZodLazy`,(e,t)=>{j.init(e,t),w(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),w(e._zod,`pattern`,()=>e._zod.innerType?._zod?.pattern),w(e._zod,`propValues`,()=>e._zod.innerType?._zod?.propValues),w(e._zod,`optin`,()=>e._zod.innerType?._zod?.optin??void 0),w(e._zod,`optout`,()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),da=f(`$ZodCustom`,(e,t)=>{A.init(e,t),j.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>qr(t,n,r,e));qr(i,n,r,e)}})}));function pa(){return{localeError:ma()}}var ma,ha=o((()=>{k(),ma=()=>{let e={string:{unit:`حرف`,verb:`أن يحوي`},file:{unit:`بايت`,verb:`أن يحوي`},array:{unit:`عنصر`,verb:`أن يحوي`},set:{unit:`عنصر`,verb:`أن يحوي`}};function t(t){return e[t]??null}let n={regex:`مدخل`,email:`بريد إلكتروني`,url:`رابط`,emoji:`إيموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاريخ ووقت بمعيار ISO`,date:`تاريخ بمعيار ISO`,time:`وقت بمعيار ISO`,duration:`مدة بمعيار ISO`,ipv4:`عنوان IPv4`,ipv6:`عنوان IPv6`,cidrv4:`مدى عناوين بصيغة IPv4`,cidrv6:`مدى عناوين بصيغة IPv6`,base64:`نَص بترميز base64-encoded`,base64url:`نَص بترميز base64url-encoded`,json_string:`نَص على هيئة JSON`,e164:`رقم هاتف بمعيار E.164`,jwt:`JWT`,template_literal:`مدخل`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`مدخلات غير مقبولة: يفترض إدخال instanceof ${e.expected}، ولكن تم إدخال ${i}`:`مدخلات غير مقبولة: يفترض إدخال ${t}، ولكن تم إدخال ${i}`}case`invalid_value`:return e.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${D(e.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?` أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()} ${r.unit??`عنصر`}`:`أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()} ${r.unit}`:`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`نَص غير مقبول: يجب أن يبدأ بـ "${e.prefix}"`:t.format===`ends_with`?`نَص غير مقبول: يجب أن ينتهي بـ "${t.suffix}"`:t.format===`includes`?`نَص غير مقبول: يجب أن يتضمَّن "${t.includes}"`:t.format===`regex`?`نَص غير مقبول: يجب أن يطابق النمط ${t.pattern}`:`${n[t.format]??e.format} غير مقبول`}case`not_multiple_of`:return`رقم غير مقبول: يجب أن يكون من مضاعفات ${e.divisor}`;case`unrecognized_keys`:return`معرف${e.keys.length>1?`ات`:``} غريب${e.keys.length>1?`ة`:``}: ${S(e.keys,`، `)}`;case`invalid_key`:return`معرف غير مقبول في ${e.origin}`;case`invalid_union`:return`مدخل غير مقبول`;case`invalid_element`:return`مدخل غير مقبول في ${e.origin}`;default:return`مدخل غير مقبول`}}}}));function ga(){return{localeError:_a()}}var _a,va=o((()=>{k(),_a=()=>{let e={string:{unit:`simvol`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`element`,verb:`olmalıdır`},set:{unit:`element`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Yanlış dəyər: gözlənilən instanceof ${e.expected}, daxil olan ${i}`:`Yanlış dəyər: gözlənilən ${t}, daxil olan ${i}`}case`invalid_value`:return e.values.length===1?`Yanlış dəyər: gözlənilən ${D(e.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()} ${r.unit??`element`}`:`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Yanlış mətn: "${t.prefix}" ilə başlamalıdır`:t.format===`ends_with`?`Yanlış mətn: "${t.suffix}" ilə bitməlidir`:t.format===`includes`?`Yanlış mətn: "${t.includes}" daxil olmalıdır`:t.format===`regex`?`Yanlış mətn: ${t.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${n[t.format]??e.format}`}case`not_multiple_of`:return`Yanlış ədəd: ${e.divisor} ilə bölünə bilən olmalıdır`;case`unrecognized_keys`:return`Tanınmayan açar${e.keys.length>1?`lar`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} daxilində yanlış açar`;case`invalid_union`:return`Yanlış dəyər`;case`invalid_element`:return`${e.origin} daxilində yanlış dəyər`;default:return`Yanlış dəyər`}}}}));function ya(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}function ba(){return{localeError:xa()}}var xa,Sa=o((()=>{k(),xa=()=>{let e={string:{unit:{one:`сімвал`,few:`сімвалы`,many:`сімвалаў`},verb:`мець`},array:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},set:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},file:{unit:{one:`байт`,few:`байты`,many:`байтаў`},verb:`мець`}};function t(t){return e[t]??null}let n={regex:`увод`,email:`email адрас`,url:`URL`,emoji:`эмодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата і час`,date:`ISO дата`,time:`ISO час`,duration:`ISO працягласць`,ipv4:`IPv4 адрас`,ipv6:`IPv6 адрас`,cidrv4:`IPv4 дыяпазон`,cidrv6:`IPv6 дыяпазон`,base64:`радок у фармаце base64`,base64url:`радок у фармаце base64url`,json_string:`JSON радок`,e164:`нумар E.164`,jwt:`JWT`,template_literal:`увод`},r={nan:`NaN`,number:`лік`,array:`масіў`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Няправільны ўвод: чакаўся instanceof ${e.expected}, атрымана ${i}`:`Няправільны ўвод: чакаўся ${t}, атрымана ${i}`}case`invalid_value`:return e.values.length===1?`Няправільны ўвод: чакалася ${D(e.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=ya(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна ${r.verb} ${n}${e.maximum.toString()} ${t}`}return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна быць ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=ya(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Занадта малы: чакалася, што ${e.origin} павінна ${r.verb} ${n}${e.minimum.toString()} ${t}`}return`Занадта малы: чакалася, што ${e.origin} павінна быць ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Няправільны радок: павінен пачынацца з "${t.prefix}"`:t.format===`ends_with`?`Няправільны радок: павінен заканчвацца на "${t.suffix}"`:t.format===`includes`?`Няправільны радок: павінен змяшчаць "${t.includes}"`:t.format===`regex`?`Няправільны радок: павінен адпавядаць шаблону ${t.pattern}`:`Няправільны ${n[t.format]??e.format}`}case`not_multiple_of`:return`Няправільны лік: павінен быць кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспазнаны ${e.keys.length>1?`ключы`:`ключ`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Няправільны ключ у ${e.origin}`;case`invalid_union`:return`Няправільны ўвод`;case`invalid_element`:return`Няправільнае значэнне ў ${e.origin}`;default:return`Няправільны ўвод`}}}}));function Ca(){return{localeError:wa()}}var wa,Ta=o((()=>{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:`ISO време`,date:`ISO дата`,time:`ISO време`,duration:`ISO продължителност`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`base64-кодиран низ`,base64url:`base64url-кодиран низ`,json_string:`JSON низ`,e164:`E.164 номер`,jwt:`JWT`,template_literal:`вход`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Невалиден вход: очакван instanceof ${e.expected}, получен ${i}`:`Невалиден вход: очакван ${t}, получен ${i}`}case`invalid_value`:return e.values.length===1?`Невалиден вход: очакван ${D(e.values[0])}`:`Невалидна опция: очаквано едно от ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Твърде голямо: очаква се ${e.origin??`стойност`} да съдържа ${n}${e.maximum.toString()} ${r.unit??`елемента`}`:`Твърде голямо: очаква се ${e.origin??`стойност`} да бъде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Твърде малко: очаква се ${e.origin} да съдържа ${n}${e.minimum.toString()} ${r.unit}`:`Твърде малко: очаква се ${e.origin} да бъде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;if(t.format===`starts_with`)return`Невалиден низ: трябва да започва с "${t.prefix}"`;if(t.format===`ends_with`)return`Невалиден низ: трябва да завършва с "${t.suffix}"`;if(t.format===`includes`)return`Невалиден низ: трябва да включва "${t.includes}"`;if(t.format===`regex`)return`Невалиден низ: трябва да съвпада с ${t.pattern}`;let r=`Невалиден`;return t.format===`emoji`&&(r=`Невалидно`),t.format===`datetime`&&(r=`Невалидно`),t.format===`date`&&(r=`Невалидна`),t.format===`time`&&(r=`Невалидно`),t.format===`duration`&&(r=`Невалидна`),`${r} ${n[t.format]??e.format}`}case`not_multiple_of`:return`Невалидно число: трябва да бъде кратно на ${e.divisor}`;case`unrecognized_keys`:return`Неразпознат${e.keys.length>1?`и`:``} ключ${e.keys.length>1?`ове`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Невалиден ключ в ${e.origin}`;case`invalid_union`:return`Невалиден вход`;case`invalid_element`:return`Невалидна стойност в ${e.origin}`;default:return`Невалиден вход`}}}}));function Ea(){return{localeError:Da()}}var Da,Oa=o((()=>{k(),Da=()=>{let e={string:{unit:`caràcters`,verb:`contenir`},file:{unit:`bytes`,verb:`contenir`},array:{unit:`elements`,verb:`contenir`},set:{unit:`elements`,verb:`contenir`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`adreça electrònica`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data i hora ISO`,date:`data ISO`,time:`hora ISO`,duration:`durada ISO`,ipv4:`adreça IPv4`,ipv6:`adreça IPv6`,cidrv4:`rang IPv4`,cidrv6:`rang IPv6`,base64:`cadena codificada en base64`,base64url:`cadena codificada en base64url`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipus invàlid: s'esperava instanceof ${e.expected}, s'ha rebut ${i}`:`Tipus invàlid: s'esperava ${t}, s'ha rebut ${i}`}case`invalid_value`:return e.values.length===1?`Valor invàlid: s'esperava ${D(e.values[0])}`:`Opció invàlida: s'esperava una de ${S(e.values,` o `)}`;case`too_big`:{let n=e.inclusive?`com a màxim`:`menys de`,r=t(e.origin);return r?`Massa gran: s'esperava que ${e.origin??`el valor`} contingués ${n} ${e.maximum.toString()} ${r.unit??`elements`}`:`Massa gran: s'esperava que ${e.origin??`el valor`} fos ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`com a mínim`:`més de`,r=t(e.origin);return r?`Massa petit: s'esperava que ${e.origin} contingués ${n} ${e.minimum.toString()} ${r.unit}`:`Massa petit: s'esperava que ${e.origin} fos ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Format invàlid: ha de començar amb "${t.prefix}"`:t.format===`ends_with`?`Format invàlid: ha d'acabar amb "${t.suffix}"`:t.format===`includes`?`Format invàlid: ha d'incloure "${t.includes}"`:t.format===`regex`?`Format invàlid: ha de coincidir amb el patró ${t.pattern}`:`Format invàlid per a ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número invàlid: ha de ser múltiple de ${e.divisor}`;case`unrecognized_keys`:return`Clau${e.keys.length>1?`s`:``} no reconeguda${e.keys.length>1?`s`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Clau invàlida a ${e.origin}`;case`invalid_union`:return`Entrada invàlida`;case`invalid_element`:return`Element invàlid a ${e.origin}`;default:return`Entrada invàlida`}}}}));function ka(){return{localeError:Aa()}}var Aa,ja=o((()=>{k(),Aa=()=>{let e={string:{unit:`znaků`,verb:`mít`},file:{unit:`bajtů`,verb:`mít`},array:{unit:`prvků`,verb:`mít`},set:{unit:`prvků`,verb:`mít`}};function t(t){return e[t]??null}let n={regex:`regulární výraz`,email:`e-mailová adresa`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`datum a čas ve formátu ISO`,date:`datum ve formátu ISO`,time:`čas ve formátu ISO`,duration:`doba trvání ISO`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,cidrv4:`rozsah IPv4`,cidrv6:`rozsah IPv6`,base64:`řetězec zakódovaný ve formátu base64`,base64url:`řetězec zakódovaný ve formátu base64url`,json_string:`řetězec ve formátu JSON`,e164:`číslo E.164`,jwt:`JWT`,template_literal:`vstup`},r={nan:`NaN`,number:`číslo`,string:`řetězec`,function:`funkce`,array:`pole`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neplatný vstup: očekáváno instanceof ${e.expected}, obdrženo ${i}`:`Neplatný vstup: očekáváno ${t}, obdrženo ${i}`}case`invalid_value`:return e.values.length===1?`Neplatný vstup: očekáváno ${D(e.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Hodnota je příliš velká: ${e.origin??`hodnota`} musí mít ${n}${e.maximum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš velká: ${e.origin??`hodnota`} musí být ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Hodnota je příliš malá: ${e.origin??`hodnota`} musí mít ${n}${e.minimum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš malá: ${e.origin??`hodnota`} musí být ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neplatný řetězec: musí začínat na "${t.prefix}"`:t.format===`ends_with`?`Neplatný řetězec: musí končit na "${t.suffix}"`:t.format===`includes`?`Neplatný řetězec: musí obsahovat "${t.includes}"`:t.format===`regex`?`Neplatný řetězec: musí odpovídat vzoru ${t.pattern}`:`Neplatný formát ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neplatné číslo: musí být násobkem ${e.divisor}`;case`unrecognized_keys`:return`Neznámé klíče: ${S(e.keys,`, `)}`;case`invalid_key`:return`Neplatný klíč v ${e.origin}`;case`invalid_union`:return`Neplatný vstup`;case`invalid_element`:return`Neplatná hodnota v ${e.origin}`;default:return`Neplatný vstup`}}}}));function Ma(){return{localeError:Na()}}var Na,Pa=o((()=>{k(),Na=()=>{let e={string:{unit:`tegn`,verb:`havde`},file:{unit:`bytes`,verb:`havde`},array:{unit:`elementer`,verb:`indeholdt`},set:{unit:`elementer`,verb:`indeholdt`}};function t(t){return e[t]??null}let n={regex:`input`,email:`e-mailadresse`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dato- og klokkeslæt`,date:`ISO-dato`,time:`ISO-klokkeslæt`,duration:`ISO-varighed`,ipv4:`IPv4-område`,ipv6:`IPv6-område`,cidrv4:`IPv4-spektrum`,cidrv6:`IPv6-spektrum`,base64:`base64-kodet streng`,base64url:`base64url-kodet streng`,json_string:`JSON-streng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,string:`streng`,number:`tal`,boolean:`boolean`,array:`liste`,object:`objekt`,set:`sæt`,file:`fil`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldigt input: forventede instanceof ${e.expected}, fik ${i}`:`Ugyldigt input: forventede ${t}, fik ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig værdi: forventede ${D(e.values[0])}`:`Ugyldigt valg: forventede en af følgende ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For stor: forventede ${a??`value`} ${i.verb} ${n} ${e.maximum.toString()} ${i.unit??`elementer`}`:`For stor: forventede ${a??`value`} havde ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For lille: forventede ${a} ${i.verb} ${n} ${e.minimum.toString()} ${i.unit}`:`For lille: forventede ${a} havde ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: skal starte med "${t.prefix}"`:t.format===`ends_with`?`Ugyldig streng: skal ende med "${t.suffix}"`:t.format===`includes`?`Ugyldig streng: skal indeholde "${t.includes}"`:t.format===`regex`?`Ugyldig streng: skal matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldigt tal: skal være deleligt med ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukendte nøgler`:`Ukendt nøgle`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøgle i ${e.origin}`;case`invalid_union`:return`Ugyldigt input: matcher ingen af de tilladte typer`;case`invalid_element`:return`Ugyldig værdi i ${e.origin}`;default:return`Ugyldigt input`}}}}));function Fa(){return{localeError:Ia()}}var Ia,La=o((()=>{k(),Ia=()=>{let e={string:{unit:`Zeichen`,verb:`zu haben`},file:{unit:`Bytes`,verb:`zu haben`},array:{unit:`Elemente`,verb:`zu haben`},set:{unit:`Elemente`,verb:`zu haben`}};function t(t){return e[t]??null}let n={regex:`Eingabe`,email:`E-Mail-Adresse`,url:`URL`,emoji:`Emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-Datum und -Uhrzeit`,date:`ISO-Datum`,time:`ISO-Uhrzeit`,duration:`ISO-Dauer`,ipv4:`IPv4-Adresse`,ipv6:`IPv6-Adresse`,cidrv4:`IPv4-Bereich`,cidrv6:`IPv6-Bereich`,base64:`Base64-codierter String`,base64url:`Base64-URL-codierter String`,json_string:`JSON-String`,e164:`E.164-Nummer`,jwt:`JWT`,template_literal:`Eingabe`},r={nan:`NaN`,number:`Zahl`,array:`Array`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ungültige Eingabe: erwartet instanceof ${e.expected}, erhalten ${i}`:`Ungültige Eingabe: erwartet ${t}, erhalten ${i}`}case`invalid_value`:return e.values.length===1?`Ungültige Eingabe: erwartet ${D(e.values[0])}`:`Ungültige Option: erwartet eine von ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ${r.unit??`Elemente`} hat`:`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ist`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ${r.unit} hat`:`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ist`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ungültiger String: muss mit "${t.prefix}" beginnen`:t.format===`ends_with`?`Ungültiger String: muss mit "${t.suffix}" enden`:t.format===`includes`?`Ungültiger String: muss "${t.includes}" enthalten`:t.format===`regex`?`Ungültiger String: muss dem Muster ${t.pattern} entsprechen`:`Ungültig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ungültige Zahl: muss ein Vielfaches von ${e.divisor} sein`;case`unrecognized_keys`:return`${e.keys.length>1?`Unbekannte Schlüssel`:`Unbekannter Schlüssel`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Ungültiger Schlüssel in ${e.origin}`;case`invalid_union`:return`Ungültige Eingabe`;case`invalid_element`:return`Ungültiger Wert in ${e.origin}`;default:return`Ungültige Eingabe`}}}}));function Ra(){return{localeError:za()}}var za,Ba=o((()=>{k(),za=()=>{let e={string:{unit:`χαρακτήρες`,verb:`να έχει`},file:{unit:`bytes`,verb:`να έχει`},array:{unit:`στοιχεία`,verb:`να έχει`},set:{unit:`στοιχεία`,verb:`να έχει`},map:{unit:`καταχωρήσεις`,verb:`να έχει`}};function t(t){return e[t]??null}let n={regex:`είσοδος`,email:`διεύθυνση email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO ημερομηνία και ώρα`,date:`ISO ημερομηνία`,time:`ISO ώρα`,duration:`ISO διάρκεια`,ipv4:`διεύθυνση IPv4`,ipv6:`διεύθυνση IPv6`,mac:`διεύθυνση MAC`,cidrv4:`εύρος IPv4`,cidrv6:`εύρος IPv6`,base64:`συμβολοσειρά κωδικοποιημένη σε base64`,base64url:`συμβολοσειρά κωδικοποιημένη σε base64url`,json_string:`συμβολοσειρά JSON`,e164:`αριθμός E.164`,jwt:`JWT`,template_literal:`είσοδος`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return typeof e.expected==`string`&&/^[A-Z]/.test(e.expected)?`Μη έγκυρη είσοδος: αναμενόταν instanceof ${e.expected}, λήφθηκε ${i}`:`Μη έγκυρη είσοδος: αναμενόταν ${t}, λήφθηκε ${i}`}case`invalid_value`:return e.values.length===1?`Μη έγκυρη είσοδος: αναμενόταν ${D(e.values[0])}`:`Μη έγκυρη επιλογή: αναμενόταν ένα από ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Πολύ μεγάλο: αναμενόταν ${e.origin??`τιμή`} να έχει ${n}${e.maximum.toString()} ${r.unit??`στοιχεία`}`:`Πολύ μεγάλο: αναμενόταν ${e.origin??`τιμή`} να είναι ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Πολύ μικρό: αναμενόταν ${e.origin} να έχει ${n}${e.minimum.toString()} ${r.unit}`:`Πολύ μικρό: αναμενόταν ${e.origin} να είναι ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${t.prefix}"`:t.format===`ends_with`?`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${t.suffix}"`:t.format===`includes`?`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${t.includes}"`:t.format===`regex`?`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${t.pattern}`:`Μη έγκυρο: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${e.divisor}`;case`unrecognized_keys`:return`Άγνωστ${e.keys.length>1?`α`:`ο`} κλειδ${e.keys.length>1?`ιά`:`ί`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Μη έγκυρο κλειδί στο ${e.origin}`;case`invalid_union`:return`Μη έγκυρη είσοδος`;case`invalid_element`:return`Μη έγκυρη τιμή στο ${e.origin}`;default:return`Μη έγκυρη είσοδος`}}}}));function Va(){return{localeError:Ha()}}var Ha,Ua=o((()=>{k(),Ha=()=>{let e={string:{unit:`characters`,verb:`to have`},file:{unit:`bytes`,verb:`to have`},array:{unit:`items`,verb:`to have`},set:{unit:`items`,verb:`to have`},map:{unit:`entries`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input);return`Invalid input: expected ${t}, received ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${D(e.values[0])}`:`Invalid option: expected one of ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with "${t.prefix}"`:t.format===`ends_with`?`Invalid string: must end with "${t.suffix}"`:t.format===`includes`?`Invalid string: must include "${t.includes}"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(e=>`'${e}'`).join(` | `)}`:`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}}}));function Wa(){return{localeError:Ga()}}var Ga,Ka=o((()=>{k(),Ga=()=>{let e={string:{unit:`karaktrojn`,verb:`havi`},file:{unit:`bajtojn`,verb:`havi`},array:{unit:`elementojn`,verb:`havi`},set:{unit:`elementojn`,verb:`havi`}};function t(t){return e[t]??null}let n={regex:`enigo`,email:`retadreso`,url:`URL`,emoji:`emoĝio`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-datotempo`,date:`ISO-dato`,time:`ISO-tempo`,duration:`ISO-daŭro`,ipv4:`IPv4-adreso`,ipv6:`IPv6-adreso`,cidrv4:`IPv4-rango`,cidrv6:`IPv6-rango`,base64:`64-ume kodita karaktraro`,base64url:`URL-64-ume kodita karaktraro`,json_string:`JSON-karaktraro`,e164:`E.164-nombro`,jwt:`JWT`,template_literal:`enigo`},r={nan:`NaN`,number:`nombro`,array:`tabelo`,null:`senvalora`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nevalida enigo: atendiĝis instanceof ${e.expected}, riceviĝis ${i}`:`Nevalida enigo: atendiĝis ${t}, riceviĝis ${i}`}case`invalid_value`:return e.values.length===1?`Nevalida enigo: atendiĝis ${D(e.values[0])}`:`Nevalida opcio: atendiĝis unu el ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()} ${r.unit??`elementojn`}`:`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Tro malgranda: atendiĝis ke ${e.origin} havu ${n}${e.minimum.toString()} ${r.unit}`:`Tro malgranda: atendiĝis ke ${e.origin} estu ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nevalida karaktraro: devas komenciĝi per "${t.prefix}"`:t.format===`ends_with`?`Nevalida karaktraro: devas finiĝi per "${t.suffix}"`:t.format===`includes`?`Nevalida karaktraro: devas inkluzivi "${t.includes}"`:t.format===`regex`?`Nevalida karaktraro: devas kongrui kun la modelo ${t.pattern}`:`Nevalida ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nevalida nombro: devas esti oblo de ${e.divisor}`;case`unrecognized_keys`:return`Nekonata${e.keys.length>1?`j`:``} ŝlosilo${e.keys.length>1?`j`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Nevalida ŝlosilo en ${e.origin}`;case`invalid_union`:return`Nevalida enigo`;case`invalid_element`:return`Nevalida valoro en ${e.origin}`;default:return`Nevalida enigo`}}}}));function qa(){return{localeError:Ja()}}var Ja,Ya=o((()=>{k(),Ja=()=>{let e={string:{unit:`caracteres`,verb:`tener`},file:{unit:`bytes`,verb:`tener`},array:{unit:`elementos`,verb:`tener`},set:{unit:`elementos`,verb:`tener`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`dirección de correo electrónico`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`fecha y hora ISO`,date:`fecha ISO`,time:`hora ISO`,duration:`duración ISO`,ipv4:`dirección IPv4`,ipv6:`dirección IPv6`,cidrv4:`rango IPv4`,cidrv6:`rango IPv6`,base64:`cadena codificada en base64`,base64url:`URL codificada en base64`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,string:`texto`,number:`número`,boolean:`booleano`,array:`arreglo`,object:`objeto`,set:`conjunto`,file:`archivo`,date:`fecha`,bigint:`número grande`,symbol:`símbolo`,undefined:`indefinido`,null:`nulo`,function:`función`,map:`mapa`,record:`registro`,tuple:`tupla`,enum:`enumeración`,union:`unión`,literal:`literal`,promise:`promesa`,void:`vacío`,never:`nunca`,unknown:`desconocido`,any:`cualquiera`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrada inválida: se esperaba instanceof ${e.expected}, recibido ${i}`:`Entrada inválida: se esperaba ${t}, recibido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: se esperaba ${D(e.values[0])}`:`Opción inválida: se esperaba una de ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado grande: se esperaba que ${a??`valor`} tuviera ${n}${e.maximum.toString()} ${i.unit??`elementos`}`:`Demasiado grande: se esperaba que ${a??`valor`} fuera ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado pequeño: se esperaba que ${a} tuviera ${n}${e.minimum.toString()} ${i.unit}`:`Demasiado pequeño: se esperaba que ${a} fuera ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Cadena inválida: debe comenzar con "${t.prefix}"`:t.format===`ends_with`?`Cadena inválida: debe terminar en "${t.suffix}"`:t.format===`includes`?`Cadena inválida: debe incluir "${t.includes}"`:t.format===`regex`?`Cadena inválida: debe coincidir con el patrón ${t.pattern}`:`Inválido ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número inválido: debe ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Llave${e.keys.length>1?`s`:``} desconocida${e.keys.length>1?`s`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Llave inválida en ${r[e.origin]??e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido en ${r[e.origin]??e.origin}`;default:return`Entrada inválida`}}}}));function Xa(){return{localeError:Za()}}var Za,Qa=o((()=>{k(),Za=()=>{let e={string:{unit:`کاراکتر`,verb:`داشته باشد`},file:{unit:`بایت`,verb:`داشته باشد`},array:{unit:`آیتم`,verb:`داشته باشد`},set:{unit:`آیتم`,verb:`داشته باشد`}};function t(t){return e[t]??null}let n={regex:`ورودی`,email:`آدرس ایمیل`,url:`URL`,emoji:`ایموجی`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاریخ و زمان ایزو`,date:`تاریخ ایزو`,time:`زمان ایزو`,duration:`مدت زمان ایزو`,ipv4:`IPv4 آدرس`,ipv6:`IPv6 آدرس`,cidrv4:`IPv4 دامنه`,cidrv6:`IPv6 دامنه`,base64:`base64-encoded رشته`,base64url:`base64url-encoded رشته`,json_string:`JSON رشته`,e164:`E.164 عدد`,jwt:`JWT`,template_literal:`ورودی`},r={nan:`NaN`,number:`عدد`,array:`آرایه`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ورودی نامعتبر: می‌بایست instanceof ${e.expected} می‌بود، ${i} دریافت شد`:`ورودی نامعتبر: می‌بایست ${t} می‌بود، ${i} دریافت شد`}case`invalid_value`:return e.values.length===1?`ورودی نامعتبر: می‌بایست ${D(e.values[0])} می‌بود`:`گزینه نامعتبر: می‌بایست یکی از ${S(e.values,`|`)} می‌بود`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصر`} باشد`:`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} باشد`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} باشد`:`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} باشد`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`رشته نامعتبر: باید با "${t.prefix}" شروع شود`:t.format===`ends_with`?`رشته نامعتبر: باید با "${t.suffix}" تمام شود`:t.format===`includes`?`رشته نامعتبر: باید شامل "${t.includes}" باشد`:t.format===`regex`?`رشته نامعتبر: باید با الگوی ${t.pattern} مطابقت داشته باشد`:`${n[t.format]??e.format} نامعتبر`}case`not_multiple_of`:return`عدد نامعتبر: باید مضرب ${e.divisor} باشد`;case`unrecognized_keys`:return`کلید${e.keys.length>1?`های`:``} ناشناس: ${S(e.keys,`, `)}`;case`invalid_key`:return`کلید ناشناس در ${e.origin}`;case`invalid_union`:return`ورودی نامعتبر`;case`invalid_element`:return`مقدار نامعتبر در ${e.origin}`;default:return`ورودی نامعتبر`}}}}));function $a(){return{localeError:eo()}}var eo,to=o((()=>{k(),eo=()=>{let e={string:{unit:`merkkiä`,subject:`merkkijonon`},file:{unit:`tavua`,subject:`tiedoston`},array:{unit:`alkiota`,subject:`listan`},set:{unit:`alkiota`,subject:`joukon`},number:{unit:``,subject:`luvun`},bigint:{unit:``,subject:`suuren kokonaisluvun`},int:{unit:``,subject:`kokonaisluvun`},date:{unit:``,subject:`päivämäärän`}};function t(t){return e[t]??null}let n={regex:`säännöllinen lauseke`,email:`sähköpostiosoite`,url:`URL-osoite`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-aikaleima`,date:`ISO-päivämäärä`,time:`ISO-aika`,duration:`ISO-kesto`,ipv4:`IPv4-osoite`,ipv6:`IPv6-osoite`,cidrv4:`IPv4-alue`,cidrv6:`IPv6-alue`,base64:`base64-koodattu merkkijono`,base64url:`base64url-koodattu merkkijono`,json_string:`JSON-merkkijono`,e164:`E.164-luku`,jwt:`JWT`,template_literal:`templaattimerkkijono`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Virheellinen tyyppi: odotettiin instanceof ${e.expected}, oli ${i}`:`Virheellinen tyyppi: odotettiin ${t}, oli ${i}`}case`invalid_value`:return e.values.length===1?`Virheellinen syöte: täytyy olla ${D(e.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Liian suuri: ${r.subject} täytyy olla ${n}${e.maximum.toString()} ${r.unit}`.trim():`Liian suuri: arvon täytyy olla ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Liian pieni: ${r.subject} täytyy olla ${n}${e.minimum.toString()} ${r.unit}`.trim():`Liian pieni: arvon täytyy olla ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Virheellinen syöte: täytyy alkaa "${t.prefix}"`:t.format===`ends_with`?`Virheellinen syöte: täytyy loppua "${t.suffix}"`:t.format===`includes`?`Virheellinen syöte: täytyy sisältää "${t.includes}"`:t.format===`regex`?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${t.pattern}`:`Virheellinen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Virheellinen luku: täytyy olla luvun ${e.divisor} monikerta`;case`unrecognized_keys`:return`${e.keys.length>1?`Tuntemattomat avaimet`:`Tuntematon avain`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Virheellinen avain tietueessa`;case`invalid_union`:return`Virheellinen unioni`;case`invalid_element`:return`Virheellinen arvo joukossa`;default:return`Virheellinen syöte`}}}}));function no(){return{localeError:ro()}}var ro,io=o((()=>{k(),ro=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,email:`adresse e-mail`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`date et heure ISO`,date:`date ISO`,time:`heure ISO`,duration:`durée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={string:`chaîne`,number:`nombre`,int:`entier`,boolean:`booléen`,bigint:`grand entier`,symbol:`symbole`,undefined:`indéfini`,null:`null`,never:`jamais`,void:`vide`,date:`date`,array:`tableau`,object:`objet`,tuple:`tuple`,record:`enregistrement`,map:`carte`,set:`ensemble`,file:`fichier`,nonoptional:`non-optionnel`,nan:`NaN`,function:`fonction`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : instanceof ${e.expected} attendu, ${i} reçu`:`Entrée invalide : ${t} attendu, ${i} reçu`}case`invalid_value`:return e.values.length===1?`Entrée invalide : ${D(e.values[0])} attendu`:`Option invalide : une valeur parmi ${S(e.values,`|`)} attendue`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin);return i?`Trop grand : ${r[e.origin]??`valeur`} doit ${i.verb} ${n}${e.maximum.toString()} ${i.unit??`élément(s)`}`:`Trop grand : ${r[e.origin]??`valeur`} doit être ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin);return i?`Trop petit : ${r[e.origin]??`valeur`} doit ${i.verb} ${n}${e.minimum.toString()} ${i.unit}`:`Trop petit : ${r[e.origin]??`valeur`} doit être ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par "${t.prefix}"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par "${t.suffix}"`:t.format===`includes`?`Chaîne invalide : doit inclure "${t.includes}"`:t.format===`regex`?`Chaîne invalide : doit correspondre au modèle ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${S(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}}}));function ao(){return{localeError:oo()}}var oo,so=o((()=>{k(),oo=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,email:`adresse courriel`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`date-heure ISO`,date:`date ISO`,time:`heure ISO`,duration:`durée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : attendu instanceof ${e.expected}, reçu ${i}`:`Entrée invalide : attendu ${t}, reçu ${i}`}case`invalid_value`:return e.values.length===1?`Entrée invalide : attendu ${D(e.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`≤`:`<`,r=t(e.origin);return r?`Trop grand : attendu que ${e.origin??`la valeur`} ait ${n}${e.maximum.toString()} ${r.unit}`:`Trop grand : attendu que ${e.origin??`la valeur`} soit ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`≥`:`>`,r=t(e.origin);return r?`Trop petit : attendu que ${e.origin} ait ${n}${e.minimum.toString()} ${r.unit}`:`Trop petit : attendu que ${e.origin} soit ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par "${t.prefix}"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par "${t.suffix}"`:t.format===`includes`?`Chaîne invalide : doit inclure "${t.includes}"`:t.format===`regex`?`Chaîne invalide : doit correspondre au motif ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${S(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}}}));function co(){return{localeError:lo()}}var lo,uo=o((()=>{k(),lo=()=>{let e={string:{label:`מחרוזת`,gender:`f`},number:{label:`מספר`,gender:`m`},boolean:{label:`ערך בוליאני`,gender:`m`},bigint:{label:`BigInt`,gender:`m`},date:{label:`תאריך`,gender:`m`},array:{label:`מערך`,gender:`m`},object:{label:`אובייקט`,gender:`m`},null:{label:`ערך ריק (null)`,gender:`m`},undefined:{label:`ערך לא מוגדר (undefined)`,gender:`m`},symbol:{label:`סימבול (Symbol)`,gender:`m`},function:{label:`פונקציה`,gender:`f`},map:{label:`מפה (Map)`,gender:`f`},set:{label:`קבוצה (Set)`,gender:`f`},file:{label:`קובץ`,gender:`m`},promise:{label:`Promise`,gender:`m`},NaN:{label:`NaN`,gender:`m`},unknown:{label:`ערך לא ידוע`,gender:`m`},value:{label:`ערך`,gender:`m`}},t={string:{unit:`תווים`,shortLabel:`קצר`,longLabel:`ארוך`},file:{unit:`בייטים`,shortLabel:`קטן`,longLabel:`גדול`},array:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},set:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},number:{unit:``,shortLabel:`קטן`,longLabel:`גדול`}},n=t=>t?e[t]:void 0,r=t=>{let r=n(t);return r?r.label:t??e.unknown.label},i=e=>`ה${r(e)}`,a=e=>(n(e)?.gender??`m`)===`f`?`צריכה להיות`:`צריך להיות`,o=e=>e?t[e]??null:null,s={regex:{label:`קלט`,gender:`m`},email:{label:`כתובת אימייל`,gender:`f`},url:{label:`כתובת רשת`,gender:`f`},emoji:{label:`אימוג'י`,gender:`m`},uuid:{label:`UUID`,gender:`m`},nanoid:{label:`nanoid`,gender:`m`},guid:{label:`GUID`,gender:`m`},cuid:{label:`cuid`,gender:`m`},cuid2:{label:`cuid2`,gender:`m`},ulid:{label:`ULID`,gender:`m`},xid:{label:`XID`,gender:`m`},ksuid:{label:`KSUID`,gender:`m`},datetime:{label:`תאריך וזמן ISO`,gender:`m`},date:{label:`תאריך ISO`,gender:`m`},time:{label:`זמן ISO`,gender:`m`},duration:{label:`משך זמן ISO`,gender:`m`},ipv4:{label:`כתובת IPv4`,gender:`f`},ipv6:{label:`כתובת IPv6`,gender:`f`},cidrv4:{label:`טווח IPv4`,gender:`m`},cidrv6:{label:`טווח IPv6`,gender:`m`},base64:{label:`מחרוזת בבסיס 64`,gender:`f`},base64url:{label:`מחרוזת בבסיס 64 לכתובות רשת`,gender:`f`},json_string:{label:`מחרוזת JSON`,gender:`f`},e164:{label:`מספר E.164`,gender:`m`},jwt:{label:`JWT`,gender:`m`},ends_with:{label:`קלט`,gender:`m`},includes:{label:`קלט`,gender:`m`},lowercase:{label:`קלט`,gender:`m`},starts_with:{label:`קלט`,gender:`m`},uppercase:{label:`קלט`,gender:`m`}},c={nan:`NaN`};return t=>{switch(t.code){case`invalid_type`:{let n=t.expected,i=c[n??``]??r(n),a=O(t.input),o=c[a]??e[a]?.label??a;return/^[A-Z]/.test(t.expected)?`קלט לא תקין: צריך להיות instanceof ${t.expected}, התקבל ${o}`:`קלט לא תקין: צריך להיות ${i}, התקבל ${o}`}case`invalid_value`:{if(t.values.length===1)return`ערך לא תקין: הערך חייב להיות ${D(t.values[0])}`;let e=t.values.map(e=>D(e));if(t.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${e[0]} או ${e[1]}`;let n=e[e.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${e.slice(0,-1).join(`, `)} או ${n}`}case`too_big`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.longLabel??`ארוך`} מדי: ${n} צריכה להכיל ${t.maximum.toString()} ${e?.unit??``} ${t.inclusive?`או פחות`:`לכל היותר`}`.trim();if(t.origin===`number`)return`גדול מדי: ${n} צריך להיות ${t.inclusive?`קטן או שווה ל-${t.maximum}`:`קטן מ-${t.maximum}`}`;if(t.origin===`array`||t.origin===`set`)return`גדול מדי: ${n} ${t.origin===`set`?`צריכה`:`צריך`} להכיל ${t.inclusive?`${t.maximum} ${e?.unit??``} או פחות`:`פחות מ-${t.maximum} ${e?.unit??``}`}`.trim();let r=t.inclusive?`<=`:`<`,s=a(t.origin??`value`);return e?.unit?`${e.longLabel} מדי: ${n} ${s} ${r}${t.maximum.toString()} ${e.unit}`:`${e?.longLabel??`גדול`} מדי: ${n} ${s} ${r}${t.maximum.toString()}`}case`too_small`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.shortLabel??`קצר`} מדי: ${n} צריכה להכיל ${t.minimum.toString()} ${e?.unit??``} ${t.inclusive?`או יותר`:`לפחות`}`.trim();if(t.origin===`number`)return`קטן מדי: ${n} צריך להיות ${t.inclusive?`גדול או שווה ל-${t.minimum}`:`גדול מ-${t.minimum}`}`;if(t.origin===`array`||t.origin===`set`){let r=t.origin===`set`?`צריכה`:`צריך`;return t.minimum===1&&t.inclusive?`קטן מדי: ${n} ${r} להכיל ${t.origin,`לפחות פריט אחד`}`:`קטן מדי: ${n} ${r} להכיל ${t.inclusive?`${t.minimum} ${e?.unit??``} או יותר`:`יותר מ-${t.minimum} ${e?.unit??``}`}`.trim()}let r=t.inclusive?`>=`:`>`,s=a(t.origin??`value`);return e?.unit?`${e.shortLabel} מדי: ${n} ${s} ${r}${t.minimum.toString()} ${e.unit}`:`${e?.shortLabel??`קטן`} מדי: ${n} ${s} ${r}${t.minimum.toString()}`}case`invalid_format`:{let e=t;if(e.format===`starts_with`)return`המחרוזת חייבת להתחיל ב "${e.prefix}"`;if(e.format===`ends_with`)return`המחרוזת חייבת להסתיים ב "${e.suffix}"`;if(e.format===`includes`)return`המחרוזת חייבת לכלול "${e.includes}"`;if(e.format===`regex`)return`המחרוזת חייבת להתאים לתבנית ${e.pattern}`;let n=s[e.format];return`${n?.label??e.format} לא ${(n?.gender??`m`)===`f`?`תקינה`:`תקין`}`}case`not_multiple_of`:return`מספר לא תקין: חייב להיות מכפלה של ${t.divisor}`;case`unrecognized_keys`:return`מפתח${t.keys.length>1?`ות`:``} לא מזוה${t.keys.length>1?`ים`:`ה`}: ${S(t.keys,`, `)}`;case`invalid_key`:return`שדה לא תקין באובייקט`;case`invalid_union`:return`קלט לא תקין`;case`invalid_element`:return`ערך לא תקין ב${i(t.origin??`array`)}`;default:return`קלט לא תקין`}}}}));function fo(){return{localeError:po()}}var po,mo=o((()=>{k(),po=()=>{let e={string:{unit:`znakova`,verb:`imati`},file:{unit:`bajtova`,verb:`imati`},array:{unit:`stavki`,verb:`imati`},set:{unit:`stavki`,verb:`imati`}};function t(t){return e[t]??null}let n={regex:`unos`,email:`email adresa`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum i vrijeme`,date:`ISO datum`,time:`ISO vrijeme`,duration:`ISO trajanje`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,cidrv4:`IPv4 raspon`,cidrv6:`IPv6 raspon`,base64:`base64 kodirani tekst`,base64url:`base64url kodirani tekst`,json_string:`JSON tekst`,e164:`E.164 broj`,jwt:`JWT`,template_literal:`unos`},r={nan:`NaN`,string:`tekst`,number:`broj`,boolean:`boolean`,array:`niz`,object:`objekt`,set:`skup`,file:`datoteka`,date:`datum`,bigint:`bigint`,symbol:`simbol`,undefined:`undefined`,null:`null`,function:`funkcija`,map:`mapa`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neispravan unos: očekuje se instanceof ${e.expected}, a primljeno je ${i}`:`Neispravan unos: očekuje se ${t}, a primljeno je ${i}`}case`invalid_value`:return e.values.length===1?`Neispravna vrijednost: očekivano ${D(e.values[0])}`:`Neispravna opcija: očekivano jedno od ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Preveliko: očekivano da ${a??`vrijednost`} ima ${n}${e.maximum.toString()} ${i.unit??`elemenata`}`:`Preveliko: očekivano da ${a??`vrijednost`} bude ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Premalo: očekivano da ${a} ima ${n}${e.minimum.toString()} ${i.unit}`:`Premalo: očekivano da ${a} bude ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neispravan tekst: mora započinjati s "${t.prefix}"`:t.format===`ends_with`?`Neispravan tekst: mora završavati s "${t.suffix}"`:t.format===`includes`?`Neispravan tekst: mora sadržavati "${t.includes}"`:t.format===`regex`?`Neispravan tekst: mora odgovarati uzorku ${t.pattern}`:`Neispravna ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neispravan broj: mora biti višekratnik od ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznat${e.keys.length>1?`i ključevi`:` ključ`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Neispravan ključ u ${r[e.origin]??e.origin}`;case`invalid_union`:return`Neispravan unos`;case`invalid_element`:return`Neispravna vrijednost u ${r[e.origin]??e.origin}`;default:return`Neispravan unos`}}}}));function ho(){return{localeError:go()}}var go,_o=o((()=>{k(),go=()=>{let e={string:{unit:`karakter`,verb:`legyen`},file:{unit:`byte`,verb:`legyen`},array:{unit:`elem`,verb:`legyen`},set:{unit:`elem`,verb:`legyen`}};function t(t){return e[t]??null}let n={regex:`bemenet`,email:`email cím`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO időbélyeg`,date:`ISO dátum`,time:`ISO idő`,duration:`ISO időintervallum`,ipv4:`IPv4 cím`,ipv6:`IPv6 cím`,cidrv4:`IPv4 tartomány`,cidrv6:`IPv6 tartomány`,base64:`base64-kódolt string`,base64url:`base64url-kódolt string`,json_string:`JSON string`,e164:`E.164 szám`,jwt:`JWT`,template_literal:`bemenet`},r={nan:`NaN`,number:`szám`,array:`tömb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Érvénytelen bemenet: a várt érték instanceof ${e.expected}, a kapott érték ${i}`:`Érvénytelen bemenet: a várt érték ${t}, a kapott érték ${i}`}case`invalid_value`:return e.values.length===1?`Érvénytelen bemenet: a várt érték ${D(e.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Túl nagy: ${e.origin??`érték`} mérete túl nagy ${n}${e.maximum.toString()} ${r.unit??`elem`}`:`Túl nagy: a bemeneti érték ${e.origin??`érték`} túl nagy: ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Túl kicsi: a bemeneti érték ${e.origin} mérete túl kicsi ${n}${e.minimum.toString()} ${r.unit}`:`Túl kicsi: a bemeneti érték ${e.origin} túl kicsi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Érvénytelen string: "${t.prefix}" értékkel kell kezdődnie`:t.format===`ends_with`?`Érvénytelen string: "${t.suffix}" értékkel kell végződnie`:t.format===`includes`?`Érvénytelen string: "${t.includes}" értéket kell tartalmaznia`:t.format===`regex`?`Érvénytelen string: ${t.pattern} mintának kell megfelelnie`:`Érvénytelen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Érvénytelen szám: ${e.divisor} többszörösének kell lennie`;case`unrecognized_keys`:return`Ismeretlen kulcs${e.keys.length>1?`s`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Érvénytelen kulcs ${e.origin}`;case`invalid_union`:return`Érvénytelen bemenet`;case`invalid_element`:return`Érvénytelen érték: ${e.origin}`;default:return`Érvénytelen bemenet`}}}}));function vo(e,t,n){return Math.abs(e)===1?t:n}function yo(e){if(!e)return``;let t=[`ա`,`ե`,`ը`,`ի`,`ո`,`ու`,`օ`],n=e[e.length-1];return e+(t.includes(n)?`ն`:`ը`)}function bo(){return{localeError:xo()}}var xo,So=o((()=>{k(),xo=()=>{let e={string:{unit:{one:`նշան`,many:`նշաններ`},verb:`ունենալ`},file:{unit:{one:`բայթ`,many:`բայթեր`},verb:`ունենալ`},array:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`},set:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`}};function t(t){return e[t]??null}let n={regex:`մուտք`,email:`էլ. հասցե`,url:`URL`,emoji:`էմոջի`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO ամսաթիվ և ժամ`,date:`ISO ամսաթիվ`,time:`ISO ժամ`,duration:`ISO տևողություն`,ipv4:`IPv4 հասցե`,ipv6:`IPv6 հասցե`,cidrv4:`IPv4 միջակայք`,cidrv6:`IPv6 միջակայք`,base64:`base64 ձևաչափով տող`,base64url:`base64url ձևաչափով տող`,json_string:`JSON տող`,e164:`E.164 համար`,jwt:`JWT`,template_literal:`մուտք`},r={nan:`NaN`,number:`թիվ`,array:`զանգված`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Սխալ մուտքագրում․ սպասվում էր instanceof ${e.expected}, ստացվել է ${i}`:`Սխալ մուտքագրում․ սպասվում էր ${t}, ստացվել է ${i}`}case`invalid_value`:return e.values.length===1?`Սխալ մուտքագրում․ սպասվում էր ${D(e.values[1])}`:`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=vo(Number(e.maximum),r.unit.one,r.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${yo(e.origin??`արժեք`)} կունենա ${n}${e.maximum.toString()} ${t}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${yo(e.origin??`արժեք`)} լինի ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=vo(Number(e.minimum),r.unit.one,r.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${yo(e.origin)} կունենա ${n}${e.minimum.toString()} ${t}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${yo(e.origin)} լինի ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Սխալ տող․ պետք է սկսվի "${t.prefix}"-ով`:t.format===`ends_with`?`Սխալ տող․ պետք է ավարտվի "${t.suffix}"-ով`:t.format===`includes`?`Սխալ տող․ պետք է պարունակի "${t.includes}"`:t.format===`regex`?`Սխալ տող․ պետք է համապատասխանի ${t.pattern} ձևաչափին`:`Սխալ ${n[t.format]??e.format}`}case`not_multiple_of`:return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${e.divisor}-ի`;case`unrecognized_keys`:return`Չճանաչված բանալի${e.keys.length>1?`ներ`:``}. ${S(e.keys,`, `)}`;case`invalid_key`:return`Սխալ բանալի ${yo(e.origin)}-ում`;case`invalid_union`:return`Սխալ մուտքագրում`;case`invalid_element`:return`Սխալ արժեք ${yo(e.origin)}-ում`;default:return`Սխալ մուտքագրում`}}}}));function Co(){return{localeError:wo()}}var wo,To=o((()=>{k(),wo=()=>{let e={string:{unit:`karakter`,verb:`memiliki`},file:{unit:`byte`,verb:`memiliki`},array:{unit:`item`,verb:`memiliki`},set:{unit:`item`,verb:`memiliki`}};function t(t){return e[t]??null}let n={regex:`input`,email:`alamat email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`tanggal dan waktu format ISO`,date:`tanggal format ISO`,time:`jam format ISO`,duration:`durasi format ISO`,ipv4:`alamat IPv4`,ipv6:`alamat IPv6`,cidrv4:`rentang alamat IPv4`,cidrv6:`rentang alamat IPv6`,base64:`string dengan enkode base64`,base64url:`string dengan enkode base64url`,json_string:`string JSON`,e164:`angka E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak valid: diharapkan instanceof ${e.expected}, diterima ${i}`:`Input tidak valid: diharapkan ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak valid: diharapkan ${D(e.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: diharapkan ${e.origin??`value`} memiliki ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: diharapkan ${e.origin??`value`} menjadi ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: diharapkan ${e.origin} memiliki ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: diharapkan ${e.origin} menjadi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak valid: harus dimulai dengan "${t.prefix}"`:t.format===`ends_with`?`String tidak valid: harus berakhir dengan "${t.suffix}"`:t.format===`includes`?`String tidak valid: harus menyertakan "${t.includes}"`:t.format===`regex`?`String tidak valid: harus sesuai pola ${t.pattern}`:`${n[t.format]??e.format} tidak valid`}case`not_multiple_of`:return`Angka tidak valid: harus kelipatan dari ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali ${e.keys.length>1?`s`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Kunci tidak valid di ${e.origin}`;case`invalid_union`:return`Input tidak valid`;case`invalid_element`:return`Nilai tidak valid di ${e.origin}`;default:return`Input tidak valid`}}}}));function Eo(){return{localeError:Do()}}var Do,Oo=o((()=>{k(),Do=()=>{let e={string:{unit:`stafi`,verb:`að hafa`},file:{unit:`bæti`,verb:`að hafa`},array:{unit:`hluti`,verb:`að hafa`},set:{unit:`hluti`,verb:`að hafa`}};function t(t){return e[t]??null}let n={regex:`gildi`,email:`netfang`,url:`vefslóð`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dagsetning og tími`,date:`ISO dagsetning`,time:`ISO tími`,duration:`ISO tímalengd`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded strengur`,base64url:`base64url-encoded strengur`,json_string:`JSON strengur`,e164:`E.164 tölugildi`,jwt:`JWT`,template_literal:`gildi`},r={nan:`NaN`,number:`númer`,array:`fylki`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Rangt gildi: Þú slóst inn ${i} þar sem á að vera instanceof ${e.expected}`:`Rangt gildi: Þú slóst inn ${i} þar sem á að vera ${t}`}case`invalid_value`:return e.values.length===1?`Rangt gildi: gert ráð fyrir ${D(e.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} hafi ${n}${e.maximum.toString()} ${r.unit??`hluti`}`:`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} sé ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Of lítið: gert er ráð fyrir að ${e.origin} hafi ${n}${e.minimum.toString()} ${r.unit}`:`Of lítið: gert er ráð fyrir að ${e.origin} sé ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ógildur strengur: verður að byrja á "${t.prefix}"`:t.format===`ends_with`?`Ógildur strengur: verður að enda á "${t.suffix}"`:t.format===`includes`?`Ógildur strengur: verður að innihalda "${t.includes}"`:t.format===`regex`?`Ógildur strengur: verður að fylgja mynstri ${t.pattern}`:`Rangt ${n[t.format]??e.format}`}case`not_multiple_of`:return`Röng tala: verður að vera margfeldi af ${e.divisor}`;case`unrecognized_keys`:return`Óþekkt ${e.keys.length>1?`ir lyklar`:`ur lykill`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Rangur lykill í ${e.origin}`;case`invalid_union`:return`Rangt gildi`;case`invalid_element`:return`Rangt gildi í ${e.origin}`;default:return`Rangt gildi`}}}}));function ko(){return{localeError:Ao()}}var Ao,jo=o((()=>{k(),Ao=()=>{let e={string:{unit:`caratteri`,verb:`avere`},file:{unit:`byte`,verb:`avere`},array:{unit:`elementi`,verb:`avere`},set:{unit:`elementi`,verb:`avere`}};function t(t){return e[t]??null}let n={regex:`input`,email:`indirizzo email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data e ora ISO`,date:`data ISO`,time:`ora ISO`,duration:`durata ISO`,ipv4:`indirizzo IPv4`,ipv6:`indirizzo IPv6`,cidrv4:`intervallo IPv4`,cidrv6:`intervallo IPv6`,base64:`stringa codificata in base64`,base64url:`URL codificata in base64`,json_string:`stringa JSON`,e164:`numero E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`numero`,array:`vettore`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input non valido: atteso instanceof ${e.expected}, ricevuto ${i}`:`Input non valido: atteso ${t}, ricevuto ${i}`}case`invalid_value`:return e.values.length===1?`Input non valido: atteso ${D(e.values[0])}`:`Opzione non valida: atteso uno tra ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Troppo grande: ${e.origin??`valore`} deve avere ${n}${e.maximum.toString()} ${r.unit??`elementi`}`:`Troppo grande: ${e.origin??`valore`} deve essere ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Troppo piccolo: ${e.origin} deve avere ${n}${e.minimum.toString()} ${r.unit}`:`Troppo piccolo: ${e.origin} deve essere ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Stringa non valida: deve iniziare con "${t.prefix}"`:t.format===`ends_with`?`Stringa non valida: deve terminare con "${t.suffix}"`:t.format===`includes`?`Stringa non valida: deve includere "${t.includes}"`:t.format===`regex`?`Stringa non valida: deve corrispondere al pattern ${t.pattern}`:`Input non valido: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Numero non valido: deve essere un multiplo di ${e.divisor}`;case`unrecognized_keys`:return`Chiav${e.keys.length>1?`i`:`e`} non riconosciut${e.keys.length>1?`e`:`a`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Chiave non valida in ${e.origin}`;case`invalid_union`:return`Input non valido`;case`invalid_element`:return`Valore non valido in ${e.origin}`;default:return`Input non valido`}}}}));function Mo(){return{localeError:No()}}var No,Po=o((()=>{k(),No=()=>{let e={string:{unit:`文字`,verb:`である`},file:{unit:`バイト`,verb:`である`},array:{unit:`要素`,verb:`である`},set:{unit:`要素`,verb:`である`}};function t(t){return e[t]??null}let n={regex:`入力値`,email:`メールアドレス`,url:`URL`,emoji:`絵文字`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日時`,date:`ISO日付`,time:`ISO時刻`,duration:`ISO期間`,ipv4:`IPv4アドレス`,ipv6:`IPv6アドレス`,cidrv4:`IPv4範囲`,cidrv6:`IPv6範囲`,base64:`base64エンコード文字列`,base64url:`base64urlエンコード文字列`,json_string:`JSON文字列`,e164:`E.164番号`,jwt:`JWT`,template_literal:`入力値`},r={nan:`NaN`,number:`数値`,array:`配列`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無効な入力: instanceof ${e.expected}が期待されましたが、${i}が入力されました`:`無効な入力: ${t}が期待されましたが、${i}が入力されました`}case`invalid_value`:return e.values.length===1?`無効な入力: ${D(e.values[0])}が期待されました`:`無効な選択: ${S(e.values,`、`)}のいずれかである必要があります`;case`too_big`:{let n=e.inclusive?`以下である`:`より小さい`,r=t(e.origin);return r?`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${r.unit??`要素`}${n}必要があります`:`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${n}必要があります`}case`too_small`:{let n=e.inclusive?`以上である`:`より大きい`,r=t(e.origin);return r?`小さすぎる値: ${e.origin}は${e.minimum.toString()}${r.unit}${n}必要があります`:`小さすぎる値: ${e.origin}は${e.minimum.toString()}${n}必要があります`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無効な文字列: "${t.prefix}"で始まる必要があります`:t.format===`ends_with`?`無効な文字列: "${t.suffix}"で終わる必要があります`:t.format===`includes`?`無効な文字列: "${t.includes}"を含む必要があります`:t.format===`regex`?`無効な文字列: パターン${t.pattern}に一致する必要があります`:`無効な${n[t.format]??e.format}`}case`not_multiple_of`:return`無効な数値: ${e.divisor}の倍数である必要があります`;case`unrecognized_keys`:return`認識されていないキー${e.keys.length>1?`群`:``}: ${S(e.keys,`、`)}`;case`invalid_key`:return`${e.origin}内の無効なキー`;case`invalid_union`:return`無効な入力`;case`invalid_element`:return`${e.origin}内の無効な値`;default:return`無効な入力`}}}}));function Fo(){return{localeError:Io()}}var Io,Lo=o((()=>{k(),Io=()=>{let e={string:{unit:`სიმბოლო`,verb:`უნდა შეიცავდეს`},file:{unit:`ბაიტი`,verb:`უნდა შეიცავდეს`},array:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`},set:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`}};function t(t){return e[t]??null}let n={regex:`შეყვანა`,email:`ელ-ფოსტის მისამართი`,url:`URL`,emoji:`ემოჯი`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`თარიღი-დრო`,date:`თარიღი`,time:`დრო`,duration:`ხანგრძლივობა`,ipv4:`IPv4 მისამართი`,ipv6:`IPv6 მისამართი`,cidrv4:`IPv4 დიაპაზონი`,cidrv6:`IPv6 დიაპაზონი`,base64:`base64-კოდირებული ველი`,base64url:`base64url-კოდირებული ველი`,json_string:`JSON ველი`,e164:`E.164 ნომერი`,jwt:`JWT`,template_literal:`შეყვანა`},r={nan:`NaN`,number:`რიცხვი`,string:`ველი`,boolean:`ბულეანი`,function:`ფუნქცია`,array:`მასივი`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`არასწორი შეყვანა: მოსალოდნელი instanceof ${e.expected}, მიღებული ${i}`:`არასწორი შეყვანა: მოსალოდნელი ${t}, მიღებული ${i}`}case`invalid_value`:return e.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${D(e.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${S(e.values,`|`)}-დან`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} იყოს ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ზედმეტად პატარა: მოსალოდნელი ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${e.origin} იყოს ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`არასწორი ველი: უნდა იწყებოდეს "${t.prefix}"-ით`:t.format===`ends_with`?`არასწორი ველი: უნდა მთავრდებოდეს "${t.suffix}"-ით`:t.format===`includes`?`არასწორი ველი: უნდა შეიცავდეს "${t.includes}"-ს`:t.format===`regex`?`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${t.pattern}`:`არასწორი ${n[t.format]??e.format}`}case`not_multiple_of`:return`არასწორი რიცხვი: უნდა იყოს ${e.divisor}-ის ჯერადი`;case`unrecognized_keys`:return`უცნობი გასაღებ${e.keys.length>1?`ები`:`ი`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`არასწორი გასაღები ${e.origin}-ში`;case`invalid_union`:return`არასწორი შეყვანა`;case`invalid_element`:return`არასწორი მნიშვნელობა ${e.origin}-ში`;default:return`არასწორი შეყვანა`}}}}));function Ro(){return{localeError:zo()}}var zo,Bo=o((()=>{k(),zo=()=>{let e={string:{unit:`តួអក្សរ`,verb:`គួរមាន`},file:{unit:`បៃ`,verb:`គួរមាន`},array:{unit:`ធាតុ`,verb:`គួរមាន`},set:{unit:`ធាតុ`,verb:`គួរមាន`}};function t(t){return e[t]??null}let n={regex:`ទិន្នន័យបញ្ចូល`,email:`អាសយដ្ឋានអ៊ីមែល`,url:`URL`,emoji:`សញ្ញាអារម្មណ៍`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`កាលបរិច្ឆេទ និងម៉ោង ISO`,date:`កាលបរិច្ឆេទ ISO`,time:`ម៉ោង ISO`,duration:`រយៈពេល ISO`,ipv4:`អាសយដ្ឋាន IPv4`,ipv6:`អាសយដ្ឋាន IPv6`,cidrv4:`ដែនអាសយដ្ឋាន IPv4`,cidrv6:`ដែនអាសយដ្ឋាន IPv6`,base64:`ខ្សែអក្សរអ៊ិកូដ base64`,base64url:`ខ្សែអក្សរអ៊ិកូដ base64url`,json_string:`ខ្សែអក្សរ JSON`,e164:`លេខ E.164`,jwt:`JWT`,template_literal:`ទិន្នន័យបញ្ចូល`},r={nan:`NaN`,number:`លេខ`,array:`អារេ (Array)`,null:`គ្មានតម្លៃ (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${e.expected} ប៉ុន្តែទទួលបាន ${i}`:`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${t} ប៉ុន្តែទទួលបាន ${i}`}case`invalid_value`:return e.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${D(e.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()} ${r.unit??`ធាតុ`}`:`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()} ${r.unit}`:`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${t.prefix}"`:t.format===`ends_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${t.suffix}"`:t.format===`includes`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${t.includes}"`:t.format===`regex`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${t.pattern}`:`មិនត្រឹមត្រូវ៖ ${n[t.format]??e.format}`}case`not_multiple_of`:return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${e.divisor}`;case`unrecognized_keys`:return`រកឃើញសោមិនស្គាល់៖ ${S(e.keys,`, `)}`;case`invalid_key`:return`សោមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;case`invalid_union`:return`ទិន្នន័យមិនត្រឹមត្រូវ`;case`invalid_element`:return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;default:return`ទិន្នន័យមិនត្រឹមត្រូវ`}}}}));function Vo(){return Ro()}var Ho=o((()=>{Bo()}));function Uo(){return{localeError:Wo()}}var Wo,Go=o((()=>{k(),Wo=()=>{let e={string:{unit:`문자`,verb:`to have`},file:{unit:`바이트`,verb:`to have`},array:{unit:`개`,verb:`to have`},set:{unit:`개`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`입력`,email:`이메일 주소`,url:`URL`,emoji:`이모지`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO 날짜시간`,date:`ISO 날짜`,time:`ISO 시간`,duration:`ISO 기간`,ipv4:`IPv4 주소`,ipv6:`IPv6 주소`,cidrv4:`IPv4 범위`,cidrv6:`IPv6 범위`,base64:`base64 인코딩 문자열`,base64url:`base64url 인코딩 문자열`,json_string:`JSON 문자열`,e164:`E.164 번호`,jwt:`JWT`,template_literal:`입력`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`잘못된 입력: 예상 타입은 instanceof ${e.expected}, 받은 타입은 ${i}입니다`:`잘못된 입력: 예상 타입은 ${t}, 받은 타입은 ${i}입니다`}case`invalid_value`:return e.values.length===1?`잘못된 입력: 값은 ${D(e.values[0])} 이어야 합니다`:`잘못된 옵션: ${S(e.values,`또는 `)} 중 하나여야 합니다`;case`too_big`:{let n=e.inclusive?`이하`:`미만`,r=n===`미만`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()} ${n}${r}`}case`too_small`:{let n=e.inclusive?`이상`:`초과`,r=n===`이상`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()} ${n}${r}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`잘못된 문자열: "${t.prefix}"(으)로 시작해야 합니다`:t.format===`ends_with`?`잘못된 문자열: "${t.suffix}"(으)로 끝나야 합니다`:t.format===`includes`?`잘못된 문자열: "${t.includes}"을(를) 포함해야 합니다`:t.format===`regex`?`잘못된 문자열: 정규식 ${t.pattern} 패턴과 일치해야 합니다`:`잘못된 ${n[t.format]??e.format}`}case`not_multiple_of`:return`잘못된 숫자: ${e.divisor}의 배수여야 합니다`;case`unrecognized_keys`:return`인식할 수 없는 키: ${S(e.keys,`, `)}`;case`invalid_key`:return`잘못된 키: ${e.origin}`;case`invalid_union`:return`잘못된 입력`;case`invalid_element`:return`잘못된 값: ${e.origin}`;default:return`잘못된 입력`}}}}));function Ko(e){let t=Math.abs(e),n=t%10,r=t%100;return r>=11&&r<=19||n===0?`many`:n===1?`one`:`few`}function qo(){return{localeError:Yo()}}var Jo,Yo,Xo=o((()=>{k(),Jo=e=>e.charAt(0).toUpperCase()+e.slice(1),Yo=()=>{let e={string:{unit:{one:`simbolis`,few:`simboliai`,many:`simbolių`},verb:{smaller:{inclusive:`turi būti ne ilgesnė kaip`,notInclusive:`turi būti trumpesnė kaip`},bigger:{inclusive:`turi būti ne trumpesnė kaip`,notInclusive:`turi būti ilgesnė kaip`}}},file:{unit:{one:`baitas`,few:`baitai`,many:`baitų`},verb:{smaller:{inclusive:`turi būti ne didesnis kaip`,notInclusive:`turi būti mažesnis kaip`},bigger:{inclusive:`turi būti ne mažesnis kaip`,notInclusive:`turi būti didesnis kaip`}}},array:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}},set:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}}};function t(t,n,r,i){let a=e[t]??null;return a===null?a:{unit:a.unit[n],verb:a.verb[i][r?`inclusive`:`notInclusive`]}}let n={regex:`įvestis`,email:`el. pašto adresas`,url:`URL`,emoji:`jaustukas`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO data ir laikas`,date:`ISO data`,time:`ISO laikas`,duration:`ISO trukmė`,ipv4:`IPv4 adresas`,ipv6:`IPv6 adresas`,cidrv4:`IPv4 tinklo prefiksas (CIDR)`,cidrv6:`IPv6 tinklo prefiksas (CIDR)`,base64:`base64 užkoduota eilutė`,base64url:`base64url užkoduota eilutė`,json_string:`JSON eilutė`,e164:`E.164 numeris`,jwt:`JWT`,template_literal:`įvestis`},r={nan:`NaN`,number:`skaičius`,bigint:`sveikasis skaičius`,string:`eilutė`,boolean:`loginė reikšmė`,undefined:`neapibrėžta reikšmė`,function:`funkcija`,symbol:`simbolis`,array:`masyvas`,object:`objektas`,null:`nulinė reikšmė`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Gautas tipas ${i}, o tikėtasi - instanceof ${e.expected}`:`Gautas tipas ${i}, o tikėtasi - ${t}`}case`invalid_value`:return e.values.length===1?`Privalo būti ${D(e.values[0])}`:`Privalo būti vienas iš ${S(e.values,`|`)} pasirinkimų`;case`too_big`:{let n=r[e.origin]??e.origin,i=t(e.origin,Ko(Number(e.maximum)),e.inclusive??!1,`smaller`);if(i?.verb)return`${Jo(n??e.origin??`reikšmė`)} ${i.verb} ${e.maximum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne didesnis kaip`:`mažesnis kaip`;return`${Jo(n??e.origin??`reikšmė`)} turi būti ${a} ${e.maximum.toString()} ${i?.unit}`}case`too_small`:{let n=r[e.origin]??e.origin,i=t(e.origin,Ko(Number(e.minimum)),e.inclusive??!1,`bigger`);if(i?.verb)return`${Jo(n??e.origin??`reikšmė`)} ${i.verb} ${e.minimum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne mažesnis kaip`:`didesnis kaip`;return`${Jo(n??e.origin??`reikšmė`)} turi būti ${a} ${e.minimum.toString()} ${i?.unit}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Eilutė privalo prasidėti "${t.prefix}"`:t.format===`ends_with`?`Eilutė privalo pasibaigti "${t.suffix}"`:t.format===`includes`?`Eilutė privalo įtraukti "${t.includes}"`:t.format===`regex`?`Eilutė privalo atitikti ${t.pattern}`:`Neteisingas ${n[t.format]??e.format}`}case`not_multiple_of`:return`Skaičius privalo būti ${e.divisor} kartotinis.`;case`unrecognized_keys`:return`Neatpažint${e.keys.length>1?`i`:`as`} rakt${e.keys.length>1?`ai`:`as`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Rastas klaidingas raktas`;case`invalid_union`:return`Klaidinga įvestis`;case`invalid_element`:return`${Jo(r[e.origin]??e.origin??e.origin??`reikšmė`)} turi klaidingą įvestį`;default:return`Klaidinga įvestis`}}}}));function Zo(){return{localeError:Qo()}}var Qo,$o=o((()=>{k(),Qo=()=>{let e={string:{unit:`знаци`,verb:`да имаат`},file:{unit:`бајти`,verb:`да имаат`},array:{unit:`ставки`,verb:`да имаат`},set:{unit:`ставки`,verb:`да имаат`}};function t(t){return e[t]??null}let n={regex:`внес`,email:`адреса на е-пошта`,url:`URL`,emoji:`емоџи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO датум и време`,date:`ISO датум`,time:`ISO време`,duration:`ISO времетраење`,ipv4:`IPv4 адреса`,ipv6:`IPv6 адреса`,cidrv4:`IPv4 опсег`,cidrv6:`IPv6 опсег`,base64:`base64-енкодирана низа`,base64url:`base64url-енкодирана низа`,json_string:`JSON низа`,e164:`E.164 број`,jwt:`JWT`,template_literal:`внес`},r={nan:`NaN`,number:`број`,array:`низа`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Грешен внес: се очекува instanceof ${e.expected}, примено ${i}`:`Грешен внес: се очекува ${t}, примено ${i}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${D(e.values[0])}`:`Грешана опција: се очекува една ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Премногу голем: се очекува ${e.origin??`вредноста`} да има ${n}${e.maximum.toString()} ${r.unit??`елементи`}`:`Премногу голем: се очекува ${e.origin??`вредноста`} да биде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Премногу мал: се очекува ${e.origin} да има ${n}${e.minimum.toString()} ${r.unit}`:`Премногу мал: се очекува ${e.origin} да биде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неважечка низа: мора да започнува со "${t.prefix}"`:t.format===`ends_with`?`Неважечка низа: мора да завршува со "${t.suffix}"`:t.format===`includes`?`Неважечка низа: мора да вклучува "${t.includes}"`:t.format===`regex`?`Неважечка низа: мора да одгоара на патернот ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Грешен број: мора да биде делив со ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Непрепознаени клучеви`:`Непрепознаен клуч`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Грешен клуч во ${e.origin}`;case`invalid_union`:return`Грешен внес`;case`invalid_element`:return`Грешна вредност во ${e.origin}`;default:return`Грешен внес`}}}}));function es(){return{localeError:ts()}}var ts,ns=o((()=>{k(),ts=()=>{let e={string:{unit:`aksara`,verb:`mempunyai`},file:{unit:`bait`,verb:`mempunyai`},array:{unit:`elemen`,verb:`mempunyai`},set:{unit:`elemen`,verb:`mempunyai`}};function t(t){return e[t]??null}let n={regex:`input`,email:`alamat e-mel`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`tarikh masa ISO`,date:`tarikh ISO`,time:`masa ISO`,duration:`tempoh ISO`,ipv4:`alamat IPv4`,ipv6:`alamat IPv6`,cidrv4:`julat IPv4`,cidrv6:`julat IPv6`,base64:`string dikodkan base64`,base64url:`string dikodkan base64url`,json_string:`string JSON`,e164:`nombor E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`nombor`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak sah: dijangka instanceof ${e.expected}, diterima ${i}`:`Input tidak sah: dijangka ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak sah: dijangka ${D(e.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: dijangka ${e.origin??`nilai`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: dijangka ${e.origin??`nilai`} adalah ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: dijangka ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: dijangka ${e.origin} adalah ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak sah: mesti bermula dengan "${t.prefix}"`:t.format===`ends_with`?`String tidak sah: mesti berakhir dengan "${t.suffix}"`:t.format===`includes`?`String tidak sah: mesti mengandungi "${t.includes}"`:t.format===`regex`?`String tidak sah: mesti sepadan dengan corak ${t.pattern}`:`${n[t.format]??e.format} tidak sah`}case`not_multiple_of`:return`Nombor tidak sah: perlu gandaan ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali: ${S(e.keys,`, `)}`;case`invalid_key`:return`Kunci tidak sah dalam ${e.origin}`;case`invalid_union`:return`Input tidak sah`;case`invalid_element`:return`Nilai tidak sah dalam ${e.origin}`;default:return`Input tidak sah`}}}}));function rs(){return{localeError:is()}}var is,as=o((()=>{k(),is=()=>{let e={string:{unit:`tekens`,verb:`heeft`},file:{unit:`bytes`,verb:`heeft`},array:{unit:`elementen`,verb:`heeft`},set:{unit:`elementen`,verb:`heeft`}};function t(t){return e[t]??null}let n={regex:`invoer`,email:`emailadres`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum en tijd`,date:`ISO datum`,time:`ISO tijd`,duration:`ISO duur`,ipv4:`IPv4-adres`,ipv6:`IPv6-adres`,cidrv4:`IPv4-bereik`,cidrv6:`IPv6-bereik`,base64:`base64-gecodeerde tekst`,base64url:`base64 URL-gecodeerde tekst`,json_string:`JSON string`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`invoer`},r={nan:`NaN`,number:`getal`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ongeldige invoer: verwacht instanceof ${e.expected}, ontving ${i}`:`Ongeldige invoer: verwacht ${t}, ontving ${i}`}case`invalid_value`:return e.values.length===1?`Ongeldige invoer: verwacht ${D(e.values[0])}`:`Ongeldige optie: verwacht één van ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin),i=e.origin===`date`?`laat`:e.origin===`string`?`lang`:`groot`;return r?`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} ${r.unit??`elementen`} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} is`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin),i=e.origin===`date`?`vroeg`:e.origin===`string`?`kort`:`klein`;return r?`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} is`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ongeldige tekst: moet met "${t.prefix}" beginnen`:t.format===`ends_with`?`Ongeldige tekst: moet op "${t.suffix}" eindigen`:t.format===`includes`?`Ongeldige tekst: moet "${t.includes}" bevatten`:t.format===`regex`?`Ongeldige tekst: moet overeenkomen met patroon ${t.pattern}`:`Ongeldig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ongeldig getal: moet een veelvoud van ${e.divisor} zijn`;case`unrecognized_keys`:return`Onbekende key${e.keys.length>1?`s`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Ongeldige key in ${e.origin}`;case`invalid_union`:return`Ongeldige invoer`;case`invalid_element`:return`Ongeldige waarde in ${e.origin}`;default:return`Ongeldige invoer`}}}}));function os(){return{localeError:ss()}}var ss,cs=o((()=>{k(),ss=()=>{let e={string:{unit:`tegn`,verb:`å ha`},file:{unit:`bytes`,verb:`å ha`},array:{unit:`elementer`,verb:`å inneholde`},set:{unit:`elementer`,verb:`å inneholde`}};function t(t){return e[t]??null}let n={regex:`input`,email:`e-postadresse`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dato- og klokkeslett`,date:`ISO-dato`,time:`ISO-klokkeslett`,duration:`ISO-varighet`,ipv4:`IPv4-område`,ipv6:`IPv6-område`,cidrv4:`IPv4-spekter`,cidrv6:`IPv6-spekter`,base64:`base64-enkodet streng`,base64url:`base64url-enkodet streng`,json_string:`JSON-streng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`tall`,array:`liste`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldig input: forventet instanceof ${e.expected}, fikk ${i}`:`Ugyldig input: forventet ${t}, fikk ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig verdi: forventet ${D(e.values[0])}`:`Ugyldig valg: forventet en av ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()} ${r.unit??`elementer`}`:`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()} ${r.unit}`:`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: må starte med "${t.prefix}"`:t.format===`ends_with`?`Ugyldig streng: må ende med "${t.suffix}"`:t.format===`includes`?`Ugyldig streng: må inneholde "${t.includes}"`:t.format===`regex`?`Ugyldig streng: må matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldig tall: må være et multiplum av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukjente nøkler`:`Ukjent nøkkel`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøkkel i ${e.origin}`;case`invalid_union`:return`Ugyldig input`;case`invalid_element`:return`Ugyldig verdi i ${e.origin}`;default:return`Ugyldig input`}}}}));function ls(){return{localeError:us()}}var us,ds=o((()=>{k(),us=()=>{let e={string:{unit:`harf`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`unsur`,verb:`olmalıdır`},set:{unit:`unsur`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={regex:`giren`,email:`epostagâh`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO hengâmı`,date:`ISO tarihi`,time:`ISO zamanı`,duration:`ISO müddeti`,ipv4:`IPv4 nişânı`,ipv6:`IPv6 nişânı`,cidrv4:`IPv4 menzili`,cidrv6:`IPv6 menzili`,base64:`base64-şifreli metin`,base64url:`base64url-şifreli metin`,json_string:`JSON metin`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`giren`},r={nan:`NaN`,number:`numara`,array:`saf`,null:`gayb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Fâsit giren: umulan instanceof ${e.expected}, alınan ${i}`:`Fâsit giren: umulan ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Fâsit giren: umulan ${D(e.values[0])}`:`Fâsit tercih: mûteberler ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} ${r.unit??`elements`} sahip olmalıydı.`:`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} olmalıydı.`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} ${r.unit} sahip olmalıydı.`:`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} olmalıydı.`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Fâsit metin: "${t.prefix}" ile başlamalı.`:t.format===`ends_with`?`Fâsit metin: "${t.suffix}" ile bitmeli.`:t.format===`includes`?`Fâsit metin: "${t.includes}" ihtivâ etmeli.`:t.format===`regex`?`Fâsit metin: ${t.pattern} nakşına uymalı.`:`Fâsit ${n[t.format]??e.format}`}case`not_multiple_of`:return`Fâsit sayı: ${e.divisor} katı olmalıydı.`;case`unrecognized_keys`:return`Tanınmayan anahtar ${e.keys.length>1?`s`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} için tanınmayan anahtar var.`;case`invalid_union`:return`Giren tanınamadı.`;case`invalid_element`:return`${e.origin} için tanınmayan kıymet var.`;default:return`Kıymet tanınamadı.`}}}}));function fs(){return{localeError:ps()}}var ps,ms=o((()=>{k(),ps=()=>{let e={string:{unit:`توکي`,verb:`ولري`},file:{unit:`بایټس`,verb:`ولري`},array:{unit:`توکي`,verb:`ولري`},set:{unit:`توکي`,verb:`ولري`}};function t(t){return e[t]??null}let n={regex:`ورودي`,email:`بریښنالیک`,url:`یو آر ال`,emoji:`ایموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`نیټه او وخت`,date:`نېټه`,time:`وخت`,duration:`موده`,ipv4:`د IPv4 پته`,ipv6:`د IPv6 پته`,cidrv4:`د IPv4 ساحه`,cidrv6:`د IPv6 ساحه`,base64:`base64-encoded متن`,base64url:`base64url-encoded متن`,json_string:`JSON متن`,e164:`د E.164 شمېره`,jwt:`JWT`,template_literal:`ورودي`},r={nan:`NaN`,number:`عدد`,array:`ارې`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ناسم ورودي: باید instanceof ${e.expected} وای, مګر ${i} ترلاسه شو`:`ناسم ورودي: باید ${t} وای, مګر ${i} ترلاسه شو`}case`invalid_value`:return e.values.length===1?`ناسم ورودي: باید ${D(e.values[0])} وای`:`ناسم انتخاب: باید یو له ${S(e.values,`|`)} څخه وای`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصرونه`} ولري`:`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} وي`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} ولري`:`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} وي`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ناسم متن: باید د "${t.prefix}" سره پیل شي`:t.format===`ends_with`?`ناسم متن: باید د "${t.suffix}" سره پای ته ورسيږي`:t.format===`includes`?`ناسم متن: باید "${t.includes}" ولري`:t.format===`regex`?`ناسم متن: باید د ${t.pattern} سره مطابقت ولري`:`${n[t.format]??e.format} ناسم دی`}case`not_multiple_of`:return`ناسم عدد: باید د ${e.divisor} مضرب وي`;case`unrecognized_keys`:return`ناسم ${e.keys.length>1?`کلیډونه`:`کلیډ`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`ناسم کلیډ په ${e.origin} کې`;case`invalid_union`:return`ناسمه ورودي`;case`invalid_element`:return`ناسم عنصر په ${e.origin} کې`;default:return`ناسمه ورودي`}}}}));function hs(){return{localeError:gs()}}var gs,_s=o((()=>{k(),gs=()=>{let e={string:{unit:`znaków`,verb:`mieć`},file:{unit:`bajtów`,verb:`mieć`},array:{unit:`elementów`,verb:`mieć`},set:{unit:`elementów`,verb:`mieć`}};function t(t){return e[t]??null}let n={regex:`wyrażenie`,email:`adres email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data i godzina w formacie ISO`,date:`data w formacie ISO`,time:`godzina w formacie ISO`,duration:`czas trwania ISO`,ipv4:`adres IPv4`,ipv6:`adres IPv6`,cidrv4:`zakres IPv4`,cidrv6:`zakres IPv6`,base64:`ciąg znaków zakodowany w formacie base64`,base64url:`ciąg znaków zakodowany w formacie base64url`,json_string:`ciąg znaków w formacie JSON`,e164:`liczba E.164`,jwt:`JWT`,template_literal:`wejście`},r={nan:`NaN`,number:`liczba`,array:`tablica`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${e.expected}, otrzymano ${i}`:`Nieprawidłowe dane wejściowe: oczekiwano ${t}, otrzymano ${i}`}case`invalid_value`:return e.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${D(e.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Za duża wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.maximum.toString()} ${r.unit??`elementów`}`:`Zbyt duż(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Za mała wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.minimum.toString()} ${r.unit??`elementów`}`:`Zbyt mał(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${t.prefix}"`:t.format===`ends_with`?`Nieprawidłowy ciąg znaków: musi kończyć się na "${t.suffix}"`:t.format===`includes`?`Nieprawidłowy ciąg znaków: musi zawierać "${t.includes}"`:t.format===`regex`?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${t.pattern}`:`Nieprawidłow(y/a/e) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nieprawidłowa liczba: musi być wielokrotnością ${e.divisor}`;case`unrecognized_keys`:return`Nierozpoznane klucze${e.keys.length>1?`s`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Nieprawidłowy klucz w ${e.origin}`;case`invalid_union`:return`Nieprawidłowe dane wejściowe`;case`invalid_element`:return`Nieprawidłowa wartość w ${e.origin}`;default:return`Nieprawidłowe dane wejściowe`}}}}));function vs(){return{localeError:ys()}}var ys,bs=o((()=>{k(),ys=()=>{let e={string:{unit:`caracteres`,verb:`ter`},file:{unit:`bytes`,verb:`ter`},array:{unit:`itens`,verb:`ter`},set:{unit:`itens`,verb:`ter`}};function t(t){return e[t]??null}let n={regex:`padrão`,email:`endereço de e-mail`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data e hora ISO`,date:`data ISO`,time:`hora ISO`,duration:`duração ISO`,ipv4:`endereço IPv4`,ipv6:`endereço IPv6`,cidrv4:`faixa de IPv4`,cidrv6:`faixa de IPv6`,base64:`texto codificado em base64`,base64url:`URL codificada em base64`,json_string:`texto JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,number:`número`,null:`nulo`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipo inválido: esperado instanceof ${e.expected}, recebido ${i}`:`Tipo inválido: esperado ${t}, recebido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: esperado ${D(e.values[0])}`:`Opção inválida: esperada uma das ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Muito grande: esperado que ${e.origin??`valor`} tivesse ${n}${e.maximum.toString()} ${r.unit??`elementos`}`:`Muito grande: esperado que ${e.origin??`valor`} fosse ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Muito pequeno: esperado que ${e.origin} tivesse ${n}${e.minimum.toString()} ${r.unit}`:`Muito pequeno: esperado que ${e.origin} fosse ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Texto inválido: deve começar com "${t.prefix}"`:t.format===`ends_with`?`Texto inválido: deve terminar com "${t.suffix}"`:t.format===`includes`?`Texto inválido: deve incluir "${t.includes}"`:t.format===`regex`?`Texto inválido: deve corresponder ao padrão ${t.pattern}`:`${n[t.format]??e.format} inválido`}case`not_multiple_of`:return`Número inválido: deve ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Chave${e.keys.length>1?`s`:``} desconhecida${e.keys.length>1?`s`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Chave inválida em ${e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido em ${e.origin}`;default:return`Campo inválido`}}}}));function xs(){return{localeError:Ss()}}var Ss,Cs=o((()=>{k(),Ss=()=>{let e={string:{unit:`caractere`,verb:`să aibă`},file:{unit:`octeți`,verb:`să aibă`},array:{unit:`elemente`,verb:`să aibă`},set:{unit:`elemente`,verb:`să aibă`},map:{unit:`intrări`,verb:`să aibă`}};function t(t){return e[t]??null}let n={regex:`intrare`,email:`adresă de email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`dată și oră ISO`,date:`dată ISO`,time:`oră ISO`,duration:`durată ISO`,ipv4:`adresă IPv4`,ipv6:`adresă IPv6`,mac:`adresă MAC`,cidrv4:`interval IPv4`,cidrv6:`interval IPv6`,base64:`șir codat base64`,base64url:`șir codat base64url`,json_string:`șir JSON`,e164:`număr E.164`,jwt:`JWT`,template_literal:`intrare`},r={nan:`NaN`,string:`șir`,number:`număr`,boolean:`boolean`,function:`funcție`,array:`matrice`,object:`obiect`,undefined:`nedefinit`,symbol:`simbol`,bigint:`număr mare`,void:`void`,never:`never`,map:`hartă`,set:`set`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input);return`Intrare invalidă: așteptat ${t}, primit ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Intrare invalidă: așteptat ${D(e.values[0])}`:`Opțiune invalidă: așteptat una dintre ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Prea mare: așteptat ca ${e.origin??`valoarea`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemente`}`:`Prea mare: așteptat ca ${e.origin??`valoarea`} să fie ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Prea mic: așteptat ca ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Prea mic: așteptat ca ${e.origin} să fie ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Șir invalid: trebuie să înceapă cu "${t.prefix}"`:t.format===`ends_with`?`Șir invalid: trebuie să se termine cu "${t.suffix}"`:t.format===`includes`?`Șir invalid: trebuie să includă "${t.includes}"`:t.format===`regex`?`Șir invalid: trebuie să se potrivească cu modelul ${t.pattern}`:`Format invalid: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Număr invalid: trebuie să fie multiplu de ${e.divisor}`;case`unrecognized_keys`:return`Chei nerecunoscute: ${S(e.keys,`, `)}`;case`invalid_key`:return`Cheie invalidă în ${e.origin}`;case`invalid_union`:return`Intrare invalidă`;case`invalid_element`:return`Valoare invalidă în ${e.origin}`;default:return`Intrare invalidă`}}}}));function ws(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}function Ts(){return{localeError:Es()}}var Es,Ds=o((()=>{k(),Es=()=>{let e={string:{unit:{one:`символ`,few:`символа`,many:`символов`},verb:`иметь`},file:{unit:{one:`байт`,few:`байта`,many:`байт`},verb:`иметь`},array:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`},set:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`}};function t(t){return e[t]??null}let n={regex:`ввод`,email:`email адрес`,url:`URL`,emoji:`эмодзи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата и время`,date:`ISO дата`,time:`ISO время`,duration:`ISO длительность`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`строка в формате base64`,base64url:`строка в формате base64url`,json_string:`JSON строка`,e164:`номер E.164`,jwt:`JWT`,template_literal:`ввод`},r={nan:`NaN`,number:`число`,array:`массив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неверный ввод: ожидалось instanceof ${e.expected}, получено ${i}`:`Неверный ввод: ожидалось ${t}, получено ${i}`}case`invalid_value`:return e.values.length===1?`Неверный ввод: ожидалось ${D(e.values[0])}`:`Неверный вариант: ожидалось одно из ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=ws(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет иметь ${n}${e.maximum.toString()} ${t}`}return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=ws(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Слишком маленькое значение: ожидалось, что ${e.origin} будет иметь ${n}${e.minimum.toString()} ${t}`}return`Слишком маленькое значение: ожидалось, что ${e.origin} будет ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неверная строка: должна начинаться с "${t.prefix}"`:t.format===`ends_with`?`Неверная строка: должна заканчиваться на "${t.suffix}"`:t.format===`includes`?`Неверная строка: должна содержать "${t.includes}"`:t.format===`regex`?`Неверная строка: должна соответствовать шаблону ${t.pattern}`:`Неверный ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неверное число: должно быть кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспознанн${e.keys.length>1?`ые`:`ый`} ключ${e.keys.length>1?`и`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Неверный ключ в ${e.origin}`;case`invalid_union`:return`Неверные входные данные`;case`invalid_element`:return`Неверное значение в ${e.origin}`;default:return`Неверные входные данные`}}}}));function Os(){return{localeError:ks()}}var ks,As=o((()=>{k(),ks=()=>{let e={string:{unit:`znakov`,verb:`imeti`},file:{unit:`bajtov`,verb:`imeti`},array:{unit:`elementov`,verb:`imeti`},set:{unit:`elementov`,verb:`imeti`}};function t(t){return e[t]??null}let n={regex:`vnos`,email:`e-poštni naslov`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum in čas`,date:`ISO datum`,time:`ISO čas`,duration:`ISO trajanje`,ipv4:`IPv4 naslov`,ipv6:`IPv6 naslov`,cidrv4:`obseg IPv4`,cidrv6:`obseg IPv6`,base64:`base64 kodiran niz`,base64url:`base64url kodiran niz`,json_string:`JSON niz`,e164:`E.164 številka`,jwt:`JWT`,template_literal:`vnos`},r={nan:`NaN`,number:`število`,array:`tabela`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neveljaven vnos: pričakovano instanceof ${e.expected}, prejeto ${i}`:`Neveljaven vnos: pričakovano ${t}, prejeto ${i}`}case`invalid_value`:return e.values.length===1?`Neveljaven vnos: pričakovano ${D(e.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} imelo ${n}${e.maximum.toString()} ${r.unit??`elementov`}`:`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Premajhno: pričakovano, da bo ${e.origin} imelo ${n}${e.minimum.toString()} ${r.unit}`:`Premajhno: pričakovano, da bo ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neveljaven niz: mora se začeti z "${t.prefix}"`:t.format===`ends_with`?`Neveljaven niz: mora se končati z "${t.suffix}"`:t.format===`includes`?`Neveljaven niz: mora vsebovati "${t.includes}"`:t.format===`regex`?`Neveljaven niz: mora ustrezati vzorcu ${t.pattern}`:`Neveljaven ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neveljavno število: mora biti večkratnik ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznan${e.keys.length>1?`i ključi`:` ključ`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Neveljaven ključ v ${e.origin}`;case`invalid_union`:return`Neveljaven vnos`;case`invalid_element`:return`Neveljavna vrednost v ${e.origin}`;default:return`Neveljaven vnos`}}}}));function js(){return{localeError:Ms()}}var Ms,Ns=o((()=>{k(),Ms=()=>{let e={string:{unit:`tecken`,verb:`att ha`},file:{unit:`bytes`,verb:`att ha`},array:{unit:`objekt`,verb:`att innehålla`},set:{unit:`objekt`,verb:`att innehålla`}};function t(t){return e[t]??null}let n={regex:`reguljärt uttryck`,email:`e-postadress`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-datum och tid`,date:`ISO-datum`,time:`ISO-tid`,duration:`ISO-varaktighet`,ipv4:`IPv4-intervall`,ipv6:`IPv6-intervall`,cidrv4:`IPv4-spektrum`,cidrv6:`IPv6-spektrum`,base64:`base64-kodad sträng`,base64url:`base64url-kodad sträng`,json_string:`JSON-sträng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`mall-literal`},r={nan:`NaN`,number:`antal`,array:`lista`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ogiltig inmatning: förväntat instanceof ${e.expected}, fick ${i}`:`Ogiltig inmatning: förväntat ${t}, fick ${i}`}case`invalid_value`:return e.values.length===1?`Ogiltig inmatning: förväntat ${D(e.values[0])}`:`Ogiltigt val: förväntade en av ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`För stor(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()} ${r.unit??`element`}`:`För stor(t): förväntat ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()} ${r.unit}`:`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ogiltig sträng: måste börja med "${t.prefix}"`:t.format===`ends_with`?`Ogiltig sträng: måste sluta med "${t.suffix}"`:t.format===`includes`?`Ogiltig sträng: måste innehålla "${t.includes}"`:t.format===`regex`?`Ogiltig sträng: måste matcha mönstret "${t.pattern}"`:`Ogiltig(t) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ogiltigt tal: måste vara en multipel av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Okända nycklar`:`Okänd nyckel`}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Ogiltig nyckel i ${e.origin??`värdet`}`;case`invalid_union`:return`Ogiltig input`;case`invalid_element`:return`Ogiltigt värde i ${e.origin??`värdet`}`;default:return`Ogiltig input`}}}}));function Ps(){return{localeError:Fs()}}var Fs,Is=o((()=>{k(),Fs=()=>{let e={string:{unit:`எழுத்துக்கள்`,verb:`கொண்டிருக்க வேண்டும்`},file:{unit:`பைட்டுகள்`,verb:`கொண்டிருக்க வேண்டும்`},array:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`},set:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`}};function t(t){return e[t]??null}let n={regex:`உள்ளீடு`,email:`மின்னஞ்சல் முகவரி`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO தேதி நேரம்`,date:`ISO தேதி`,time:`ISO நேரம்`,duration:`ISO கால அளவு`,ipv4:`IPv4 முகவரி`,ipv6:`IPv6 முகவரி`,cidrv4:`IPv4 வரம்பு`,cidrv6:`IPv6 வரம்பு`,base64:`base64-encoded சரம்`,base64url:`base64url-encoded சரம்`,json_string:`JSON சரம்`,e164:`E.164 எண்`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`எண்`,array:`அணி`,null:`வெறுமை`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${e.expected}, பெறப்பட்டது ${i}`:`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${t}, பெறப்பட்டது ${i}`}case`invalid_value`:return e.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${D(e.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${S(e.values,`|`)} இல் ஒன்று`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ${r.unit??`உறுப்புகள்`} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ஆக இருக்க வேண்டும்`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ஆக இருக்க வேண்டும்`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`தவறான சரம்: "${t.prefix}" இல் தொடங்க வேண்டும்`:t.format===`ends_with`?`தவறான சரம்: "${t.suffix}" இல் முடிவடைய வேண்டும்`:t.format===`includes`?`தவறான சரம்: "${t.includes}" ஐ உள்ளடக்க வேண்டும்`:t.format===`regex`?`தவறான சரம்: ${t.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${n[t.format]??e.format}`}case`not_multiple_of`:return`தவறான எண்: ${e.divisor} இன் பலமாக இருக்க வேண்டும்`;case`unrecognized_keys`:return`அடையாளம் தெரியாத விசை${e.keys.length>1?`கள்`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} இல் தவறான விசை`;case`invalid_union`:return`தவறான உள்ளீடு`;case`invalid_element`:return`${e.origin} இல் தவறான மதிப்பு`;default:return`தவறான உள்ளீடு`}}}}));function Ls(){return{localeError:Rs()}}var Rs,zs=o((()=>{k(),Rs=()=>{let e={string:{unit:`ตัวอักษร`,verb:`ควรมี`},file:{unit:`ไบต์`,verb:`ควรมี`},array:{unit:`รายการ`,verb:`ควรมี`},set:{unit:`รายการ`,verb:`ควรมี`}};function t(t){return e[t]??null}let n={regex:`ข้อมูลที่ป้อน`,email:`ที่อยู่อีเมล`,url:`URL`,emoji:`อิโมจิ`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`วันที่เวลาแบบ ISO`,date:`วันที่แบบ ISO`,time:`เวลาแบบ ISO`,duration:`ช่วงเวลาแบบ ISO`,ipv4:`ที่อยู่ IPv4`,ipv6:`ที่อยู่ IPv6`,cidrv4:`ช่วง IP แบบ IPv4`,cidrv6:`ช่วง IP แบบ IPv6`,base64:`ข้อความแบบ Base64`,base64url:`ข้อความแบบ Base64 สำหรับ URL`,json_string:`ข้อความแบบ JSON`,e164:`เบอร์โทรศัพท์ระหว่างประเทศ (E.164)`,jwt:`โทเคน JWT`,template_literal:`ข้อมูลที่ป้อน`},r={nan:`NaN`,number:`ตัวเลข`,array:`อาร์เรย์ (Array)`,null:`ไม่มีค่า (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${e.expected} แต่ได้รับ ${i}`:`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${t} แต่ได้รับ ${i}`}case`invalid_value`:return e.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${D(e.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`ไม่เกิน`:`น้อยกว่า`,r=t(e.origin);return r?`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()} ${r.unit??`รายการ`}`:`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`อย่างน้อย`:`มากกว่า`,r=t(e.origin);return r?`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()} ${r.unit}`:`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${t.prefix}"`:t.format===`ends_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${t.suffix}"`:t.format===`includes`?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${t.includes}" อยู่ในข้อความ`:t.format===`regex`?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${t.pattern}`:`รูปแบบไม่ถูกต้อง: ${n[t.format]??e.format}`}case`not_multiple_of`:return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${e.divisor} ได้ลงตัว`;case`unrecognized_keys`:return`พบคีย์ที่ไม่รู้จัก: ${S(e.keys,`, `)}`;case`invalid_key`:return`คีย์ไม่ถูกต้องใน ${e.origin}`;case`invalid_union`:return`ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้`;case`invalid_element`:return`ข้อมูลไม่ถูกต้องใน ${e.origin}`;default:return`ข้อมูลไม่ถูกต้อง`}}}}));function Bs(){return{localeError:Vs()}}var Vs,Hs=o((()=>{k(),Vs=()=>{let e={string:{unit:`karakter`,verb:`olmalı`},file:{unit:`bayt`,verb:`olmalı`},array:{unit:`öğe`,verb:`olmalı`},set:{unit:`öğe`,verb:`olmalı`}};function t(t){return e[t]??null}let n={regex:`girdi`,email:`e-posta adresi`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO tarih ve saat`,date:`ISO tarih`,time:`ISO saat`,duration:`ISO süre`,ipv4:`IPv4 adresi`,ipv6:`IPv6 adresi`,cidrv4:`IPv4 aralığı`,cidrv6:`IPv6 aralığı`,base64:`base64 ile şifrelenmiş metin`,base64url:`base64url ile şifrelenmiş metin`,json_string:`JSON dizesi`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`Şablon dizesi`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Geçersiz değer: beklenen instanceof ${e.expected}, alınan ${i}`:`Geçersiz değer: beklenen ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Geçersiz değer: beklenen ${D(e.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()} ${r.unit??`öğe`}`:`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Geçersiz metin: "${t.prefix}" ile başlamalı`:t.format===`ends_with`?`Geçersiz metin: "${t.suffix}" ile bitmeli`:t.format===`includes`?`Geçersiz metin: "${t.includes}" içermeli`:t.format===`regex`?`Geçersiz metin: ${t.pattern} desenine uymalı`:`Geçersiz ${n[t.format]??e.format}`}case`not_multiple_of`:return`Geçersiz sayı: ${e.divisor} ile tam bölünebilmeli`;case`unrecognized_keys`:return`Tanınmayan anahtar${e.keys.length>1?`lar`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} içinde geçersiz anahtar`;case`invalid_union`:return`Geçersiz değer`;case`invalid_element`:return`${e.origin} içinde geçersiz değer`;default:return`Geçersiz değer`}}}}));function Us(){return{localeError:Ws()}}var Ws,Gs=o((()=>{k(),Ws=()=>{let e={string:{unit:`символів`,verb:`матиме`},file:{unit:`байтів`,verb:`матиме`},array:{unit:`елементів`,verb:`матиме`},set:{unit:`елементів`,verb:`матиме`}};function t(t){return e[t]??null}let n={regex:`вхідні дані`,email:`адреса електронної пошти`,url:`URL`,emoji:`емодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`дата та час ISO`,date:`дата ISO`,time:`час ISO`,duration:`тривалість ISO`,ipv4:`адреса IPv4`,ipv6:`адреса IPv6`,cidrv4:`діапазон IPv4`,cidrv6:`діапазон IPv6`,base64:`рядок у кодуванні base64`,base64url:`рядок у кодуванні base64url`,json_string:`рядок JSON`,e164:`номер E.164`,jwt:`JWT`,template_literal:`вхідні дані`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неправильні вхідні дані: очікується instanceof ${e.expected}, отримано ${i}`:`Неправильні вхідні дані: очікується ${t}, отримано ${i}`}case`invalid_value`:return e.values.length===1?`Неправильні вхідні дані: очікується ${D(e.values[0])}`:`Неправильна опція: очікується одне з ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Занадто велике: очікується, що ${e.origin??`значення`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`елементів`}`:`Занадто велике: очікується, що ${e.origin??`значення`} буде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Занадто мале: очікується, що ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Занадто мале: очікується, що ${e.origin} буде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неправильний рядок: повинен починатися з "${t.prefix}"`:t.format===`ends_with`?`Неправильний рядок: повинен закінчуватися на "${t.suffix}"`:t.format===`includes`?`Неправильний рядок: повинен містити "${t.includes}"`:t.format===`regex`?`Неправильний рядок: повинен відповідати шаблону ${t.pattern}`:`Неправильний ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неправильне число: повинно бути кратним ${e.divisor}`;case`unrecognized_keys`:return`Нерозпізнаний ключ${e.keys.length>1?`і`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`Неправильний ключ у ${e.origin}`;case`invalid_union`:return`Неправильні вхідні дані`;case`invalid_element`:return`Неправильне значення у ${e.origin}`;default:return`Неправильні вхідні дані`}}}}));function Ks(){return Us()}var qs=o((()=>{Gs()}));function Js(){return{localeError:Ys()}}var Ys,Xs=o((()=>{k(),Ys=()=>{let e={string:{unit:`حروف`,verb:`ہونا`},file:{unit:`بائٹس`,verb:`ہونا`},array:{unit:`آئٹمز`,verb:`ہونا`},set:{unit:`آئٹمز`,verb:`ہونا`}};function t(t){return e[t]??null}let n={regex:`ان پٹ`,email:`ای میل ایڈریس`,url:`یو آر ایل`,emoji:`ایموجی`,uuid:`یو یو آئی ڈی`,uuidv4:`یو یو آئی ڈی وی 4`,uuidv6:`یو یو آئی ڈی وی 6`,nanoid:`نینو آئی ڈی`,guid:`جی یو آئی ڈی`,cuid:`سی یو آئی ڈی`,cuid2:`سی یو آئی ڈی 2`,ulid:`یو ایل آئی ڈی`,xid:`ایکس آئی ڈی`,ksuid:`کے ایس یو آئی ڈی`,datetime:`آئی ایس او ڈیٹ ٹائم`,date:`آئی ایس او تاریخ`,time:`آئی ایس او وقت`,duration:`آئی ایس او مدت`,ipv4:`آئی پی وی 4 ایڈریس`,ipv6:`آئی پی وی 6 ایڈریس`,cidrv4:`آئی پی وی 4 رینج`,cidrv6:`آئی پی وی 6 رینج`,base64:`بیس 64 ان کوڈڈ سٹرنگ`,base64url:`بیس 64 یو آر ایل ان کوڈڈ سٹرنگ`,json_string:`جے ایس او این سٹرنگ`,e164:`ای 164 نمبر`,jwt:`جے ڈبلیو ٹی`,template_literal:`ان پٹ`},r={nan:`NaN`,number:`نمبر`,array:`آرے`,null:`نل`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`غلط ان پٹ: instanceof ${e.expected} متوقع تھا، ${i} موصول ہوا`:`غلط ان پٹ: ${t} متوقع تھا، ${i} موصول ہوا`}case`invalid_value`:return e.values.length===1?`غلط ان پٹ: ${D(e.values[0])} متوقع تھا`:`غلط آپشن: ${S(e.values,`|`)} میں سے ایک متوقع تھا`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`بہت بڑا: ${e.origin??`ویلیو`} کے ${n}${e.maximum.toString()} ${r.unit??`عناصر`} ہونے متوقع تھے`:`بہت بڑا: ${e.origin??`ویلیو`} کا ${n}${e.maximum.toString()} ہونا متوقع تھا`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`بہت چھوٹا: ${e.origin} کے ${n}${e.minimum.toString()} ${r.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${e.origin} کا ${n}${e.minimum.toString()} ہونا متوقع تھا`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`غلط سٹرنگ: "${t.prefix}" سے شروع ہونا چاہیے`:t.format===`ends_with`?`غلط سٹرنگ: "${t.suffix}" پر ختم ہونا چاہیے`:t.format===`includes`?`غلط سٹرنگ: "${t.includes}" شامل ہونا چاہیے`:t.format===`regex`?`غلط سٹرنگ: پیٹرن ${t.pattern} سے میچ ہونا چاہیے`:`غلط ${n[t.format]??e.format}`}case`not_multiple_of`:return`غلط نمبر: ${e.divisor} کا مضاعف ہونا چاہیے`;case`unrecognized_keys`:return`غیر تسلیم شدہ کی${e.keys.length>1?`ز`:``}: ${S(e.keys,`، `)}`;case`invalid_key`:return`${e.origin} میں غلط کی`;case`invalid_union`:return`غلط ان پٹ`;case`invalid_element`:return`${e.origin} میں غلط ویلیو`;default:return`غلط ان پٹ`}}}}));function Zs(){return{localeError:Qs()}}var Qs,$s=o((()=>{k(),Qs=()=>{let e={string:{unit:`belgi`,verb:`bo‘lishi kerak`},file:{unit:`bayt`,verb:`bo‘lishi kerak`},array:{unit:`element`,verb:`bo‘lishi kerak`},set:{unit:`element`,verb:`bo‘lishi kerak`},map:{unit:`yozuv`,verb:`bo‘lishi kerak`}};function t(t){return e[t]??null}let n={regex:`kirish`,email:`elektron pochta manzili`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO sana va vaqti`,date:`ISO sana`,time:`ISO vaqt`,duration:`ISO davomiylik`,ipv4:`IPv4 manzil`,ipv6:`IPv6 manzil`,mac:`MAC manzil`,cidrv4:`IPv4 diapazon`,cidrv6:`IPv6 diapazon`,base64:`base64 kodlangan satr`,base64url:`base64url kodlangan satr`,json_string:`JSON satr`,e164:`E.164 raqam`,jwt:`JWT`,template_literal:`kirish`},r={nan:`NaN`,number:`raqam`,array:`massiv`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Noto‘g‘ri kirish: kutilgan instanceof ${e.expected}, qabul qilingan ${i}`:`Noto‘g‘ri kirish: kutilgan ${t}, qabul qilingan ${i}`}case`invalid_value`:return e.values.length===1?`Noto‘g‘ri kirish: kutilgan ${D(e.values[0])}`:`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()} ${r.unit} ${r.verb}`:`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Noto‘g‘ri satr: "${t.prefix}" bilan boshlanishi kerak`:t.format===`ends_with`?`Noto‘g‘ri satr: "${t.suffix}" bilan tugashi kerak`:t.format===`includes`?`Noto‘g‘ri satr: "${t.includes}" ni o‘z ichiga olishi kerak`:t.format===`regex`?`Noto‘g‘ri satr: ${t.pattern} shabloniga mos kelishi kerak`:`Noto‘g‘ri ${n[t.format]??e.format}`}case`not_multiple_of`:return`Noto‘g‘ri raqam: ${e.divisor} ning karralisi bo‘lishi kerak`;case`unrecognized_keys`:return`Noma’lum kalit${e.keys.length>1?`lar`:``}: ${S(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} dagi kalit noto‘g‘ri`;case`invalid_union`:return`Noto‘g‘ri kirish`;case`invalid_element`:return`${e.origin} da noto‘g‘ri qiymat`;default:return`Noto‘g‘ri kirish`}}}}));function ec(){return{localeError:tc()}}var tc,nc=o((()=>{k(),tc=()=>{let e={string:{unit:`ký tự`,verb:`có`},file:{unit:`byte`,verb:`có`},array:{unit:`phần tử`,verb:`có`},set:{unit:`phần tử`,verb:`có`}};function t(t){return e[t]??null}let n={regex:`đầu vào`,email:`địa chỉ email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ngày giờ ISO`,date:`ngày ISO`,time:`giờ ISO`,duration:`khoảng thời gian ISO`,ipv4:`địa chỉ IPv4`,ipv6:`địa chỉ IPv6`,cidrv4:`dải IPv4`,cidrv6:`dải IPv6`,base64:`chuỗi mã hóa base64`,base64url:`chuỗi mã hóa base64url`,json_string:`chuỗi JSON`,e164:`số E.164`,jwt:`JWT`,template_literal:`đầu vào`},r={nan:`NaN`,number:`số`,array:`mảng`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Đầu vào không hợp lệ: mong đợi instanceof ${e.expected}, nhận được ${i}`:`Đầu vào không hợp lệ: mong đợi ${t}, nhận được ${i}`}case`invalid_value`:return e.values.length===1?`Đầu vào không hợp lệ: mong đợi ${D(e.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Quá lớn: mong đợi ${e.origin??`giá trị`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`phần tử`}`:`Quá lớn: mong đợi ${e.origin??`giá trị`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Quá nhỏ: mong đợi ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Quá nhỏ: mong đợi ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chuỗi không hợp lệ: phải bắt đầu bằng "${t.prefix}"`:t.format===`ends_with`?`Chuỗi không hợp lệ: phải kết thúc bằng "${t.suffix}"`:t.format===`includes`?`Chuỗi không hợp lệ: phải bao gồm "${t.includes}"`:t.format===`regex`?`Chuỗi không hợp lệ: phải khớp với mẫu ${t.pattern}`:`${n[t.format]??e.format} không hợp lệ`}case`not_multiple_of`:return`Số không hợp lệ: phải là bội số của ${e.divisor}`;case`unrecognized_keys`:return`Khóa không được nhận dạng: ${S(e.keys,`, `)}`;case`invalid_key`:return`Khóa không hợp lệ trong ${e.origin}`;case`invalid_union`:return`Đầu vào không hợp lệ`;case`invalid_element`:return`Giá trị không hợp lệ trong ${e.origin}`;default:return`Đầu vào không hợp lệ`}}}}));function rc(){return{localeError:ic()}}var ic,ac=o((()=>{k(),ic=()=>{let e={string:{unit:`字符`,verb:`包含`},file:{unit:`字节`,verb:`包含`},array:{unit:`项`,verb:`包含`},set:{unit:`项`,verb:`包含`}};function t(t){return e[t]??null}let n={regex:`输入`,email:`电子邮件`,url:`URL`,emoji:`表情符号`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日期时间`,date:`ISO日期`,time:`ISO时间`,duration:`ISO时长`,ipv4:`IPv4地址`,ipv6:`IPv6地址`,cidrv4:`IPv4网段`,cidrv6:`IPv6网段`,base64:`base64编码字符串`,base64url:`base64url编码字符串`,json_string:`JSON字符串`,e164:`E.164号码`,jwt:`JWT`,template_literal:`输入`},r={nan:`NaN`,number:`数字`,array:`数组`,null:`空值(null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`无效输入:期望 instanceof ${e.expected},实际接收 ${i}`:`无效输入:期望 ${t},实际接收 ${i}`}case`invalid_value`:return e.values.length===1?`无效输入:期望 ${D(e.values[0])}`:`无效选项:期望以下之一 ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()} ${r.unit??`个元素`}`:`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`无效字符串:必须以 "${t.prefix}" 开头`:t.format===`ends_with`?`无效字符串:必须以 "${t.suffix}" 结尾`:t.format===`includes`?`无效字符串:必须包含 "${t.includes}"`:t.format===`regex`?`无效字符串:必须满足正则表达式 ${t.pattern}`:`无效${n[t.format]??e.format}`}case`not_multiple_of`:return`无效数字:必须是 ${e.divisor} 的倍数`;case`unrecognized_keys`:return`出现未知的键(key): ${S(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} 中的键(key)无效`;case`invalid_union`:return`无效输入`;case`invalid_element`:return`${e.origin} 中包含无效值(value)`;default:return`无效输入`}}}}));function oc(){return{localeError:sc()}}var sc,cc=o((()=>{k(),sc=()=>{let e={string:{unit:`字元`,verb:`擁有`},file:{unit:`位元組`,verb:`擁有`},array:{unit:`項目`,verb:`擁有`},set:{unit:`項目`,verb:`擁有`}};function t(t){return e[t]??null}let n={regex:`輸入`,email:`郵件地址`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO 日期時間`,date:`ISO 日期`,time:`ISO 時間`,duration:`ISO 期間`,ipv4:`IPv4 位址`,ipv6:`IPv6 位址`,cidrv4:`IPv4 範圍`,cidrv6:`IPv6 範圍`,base64:`base64 編碼字串`,base64url:`base64url 編碼字串`,json_string:`JSON 字串`,e164:`E.164 數值`,jwt:`JWT`,template_literal:`輸入`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無效的輸入值:預期為 instanceof ${e.expected},但收到 ${i}`:`無效的輸入值:預期為 ${t},但收到 ${i}`}case`invalid_value`:return e.values.length===1?`無效的輸入值:預期為 ${D(e.values[0])}`:`無效的選項:預期為以下其中之一 ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()} ${r.unit??`個元素`}`:`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()} ${r.unit}`:`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無效的字串:必須以 "${t.prefix}" 開頭`:t.format===`ends_with`?`無效的字串:必須以 "${t.suffix}" 結尾`:t.format===`includes`?`無效的字串:必須包含 "${t.includes}"`:t.format===`regex`?`無效的字串:必須符合格式 ${t.pattern}`:`無效的 ${n[t.format]??e.format}`}case`not_multiple_of`:return`無效的數字:必須為 ${e.divisor} 的倍數`;case`unrecognized_keys`:return`無法識別的鍵值${e.keys.length>1?`們`:``}:${S(e.keys,`、`)}`;case`invalid_key`:return`${e.origin} 中有無效的鍵值`;case`invalid_union`:return`無效的輸入值`;case`invalid_element`:return`${e.origin} 中有無效的值`;default:return`無效的輸入值`}}}}));function lc(){return{localeError:uc()}}var uc,dc=o((()=>{k(),uc=()=>{let e={string:{unit:`àmi`,verb:`ní`},file:{unit:`bytes`,verb:`ní`},array:{unit:`nkan`,verb:`ní`},set:{unit:`nkan`,verb:`ní`}};function t(t){return e[t]??null}let n={regex:`ẹ̀rọ ìbáwọlé`,email:`àdírẹ́sì ìmẹ́lì`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`àkókò ISO`,date:`ọjọ́ ISO`,time:`àkókò ISO`,duration:`àkókò tó pé ISO`,ipv4:`àdírẹ́sì IPv4`,ipv6:`àdírẹ́sì IPv6`,cidrv4:`àgbègbè IPv4`,cidrv6:`àgbègbè IPv6`,base64:`ọ̀rọ̀ tí a kọ́ ní base64`,base64url:`ọ̀rọ̀ base64url`,json_string:`ọ̀rọ̀ JSON`,e164:`nọ́mbà E.164`,jwt:`JWT`,template_literal:`ẹ̀rọ ìbáwọlé`},r={nan:`NaN`,number:`nọ́mbà`,array:`akopọ`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=O(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${e.expected}, àmọ̀ a rí ${i}`:`Ìbáwọlé aṣìṣe: a ní láti fi ${t}, àmọ̀ a rí ${i}`}case`invalid_value`:return e.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${D(e.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${S(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tó pọ̀ jù: a ní láti jẹ́ pé ${e.origin??`iye`} ${r.verb} ${n}${e.maximum} ${r.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${n}${e.maximum}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Kéré ju: a ní láti jẹ́ pé ${e.origin} ${r.verb} ${n}${e.minimum} ${r.unit}`:`Kéré ju: a ní láti jẹ́ ${n}${e.minimum}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${t.prefix}"`:t.format===`ends_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${t.suffix}"`:t.format===`includes`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${t.includes}"`:t.format===`regex`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${t.pattern}`:`Aṣìṣe: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${e.divisor}`;case`unrecognized_keys`:return`Bọtìnì àìmọ̀: ${S(e.keys,`, `)}`;case`invalid_key`:return`Bọtìnì aṣìṣe nínú ${e.origin}`;case`invalid_union`:return`Ìbáwọlé aṣìṣe`;case`invalid_element`:return`Iye aṣìṣe nínú ${e.origin}`;default:return`Ìbáwọlé aṣìṣe`}}}})),fc=c({ar:()=>pa,az:()=>ga,be:()=>ba,bg:()=>Ca,ca:()=>Ea,cs:()=>ka,da:()=>Ma,de:()=>Fa,el:()=>Ra,en:()=>Va,eo:()=>Wa,es:()=>qa,fa:()=>Xa,fi:()=>$a,fr:()=>no,frCA:()=>ao,he:()=>co,hr:()=>fo,hu:()=>ho,hy:()=>bo,id:()=>Co,is:()=>Eo,it:()=>ko,ja:()=>Mo,ka:()=>Fo,kh:()=>Vo,km:()=>Ro,ko:()=>Uo,lt:()=>qo,mk:()=>Zo,ms:()=>es,nl:()=>rs,no:()=>os,ota:()=>ls,pl:()=>hs,ps:()=>fs,pt:()=>vs,ro:()=>xs,ru:()=>Ts,sl:()=>Os,sv:()=>js,ta:()=>Ps,th:()=>Ls,tr:()=>Bs,ua:()=>Ks,uk:()=>Us,ur:()=>Js,uz:()=>Zs,vi:()=>ec,yo:()=>lc,zhCN:()=>rc,zhTW:()=>oc}),pc=o((()=>{ha(),va(),Sa(),Ta(),Oa(),ja(),Pa(),La(),Ba(),Ua(),Ka(),Ya(),Qa(),to(),io(),so(),uo(),mo(),_o(),So(),To(),Oo(),jo(),Po(),Lo(),Ho(),Bo(),Go(),Xo(),$o(),ns(),as(),cs(),ds(),ms(),_s(),bs(),Cs(),Ds(),As(),Ns(),Is(),zs(),Hs(),qs(),Gs(),Xs(),$s(),nc(),ac(),cc(),dc()}));function mc(){return new vc}var hc,gc,_c,vc,yc,bc=o((()=>{gc=Symbol(`ZodOutput`),_c=Symbol(`ZodInput`),vc=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}},(hc=globalThis).__zod_globalRegistry??(hc.__zod_globalRegistry=mc()),yc=globalThis.__zod_globalRegistry}));function xc(e,t){return new e({type:`string`,...E(t)})}function Sc(e,t){return new e({type:`string`,coerce:!0,...E(t)})}function Cc(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...E(t)})}function wc(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...E(t)})}function Tc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...E(t)})}function Ec(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...E(t)})}function Dc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...E(t)})}function Oc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...E(t)})}function kc(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...E(t)})}function Ac(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...E(t)})}function jc(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...E(t)})}function Mc(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...E(t)})}function Nc(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...E(t)})}function Pc(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...E(t)})}function Fc(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...E(t)})}function Ic(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...E(t)})}function Lc(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...E(t)})}function Rc(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...E(t)})}function zc(e,t){return new e({type:`string`,format:`mac`,check:`string_format`,abort:!1,...E(t)})}function Bc(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...E(t)})}function Vc(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...E(t)})}function Hc(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...E(t)})}function Uc(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...E(t)})}function Wc(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...E(t)})}function Gc(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...E(t)})}function Kc(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...E(t)})}function qc(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...E(t)})}function Jc(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...E(t)})}function Yc(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...E(t)})}function Xc(e,t){return new e({type:`number`,checks:[],...E(t)})}function Zc(e,t){return new e({type:`number`,coerce:!0,checks:[],...E(t)})}function Qc(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...E(t)})}function $c(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float32`,...E(t)})}function el(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float64`,...E(t)})}function tl(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`int32`,...E(t)})}function nl(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`uint32`,...E(t)})}function rl(e,t){return new e({type:`boolean`,...E(t)})}function il(e,t){return new e({type:`boolean`,coerce:!0,...E(t)})}function al(e,t){return new e({type:`bigint`,...E(t)})}function ol(e,t){return new e({type:`bigint`,coerce:!0,...E(t)})}function sl(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`int64`,...E(t)})}function cl(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`uint64`,...E(t)})}function ll(e,t){return new e({type:`symbol`,...E(t)})}function ul(e,t){return new e({type:`undefined`,...E(t)})}function dl(e,t){return new e({type:`null`,...E(t)})}function fl(e){return new e({type:`any`})}function pl(e){return new e({type:`unknown`})}function ml(e,t){return new e({type:`never`,...E(t)})}function hl(e,t){return new e({type:`void`,...E(t)})}function gl(e,t){return new e({type:`date`,...E(t)})}function _l(e,t){return new e({type:`date`,coerce:!0,...E(t)})}function vl(e,t){return new e({type:`nan`,...E(t)})}function yl(e,t){return new Qn({check:`less_than`,...E(t),value:e,inclusive:!1})}function bl(e,t){return new Qn({check:`less_than`,...E(t),value:e,inclusive:!0})}function xl(e,t){return new $n({check:`greater_than`,...E(t),value:e,inclusive:!1})}function Sl(e,t){return new $n({check:`greater_than`,...E(t),value:e,inclusive:!0})}function Cl(e){return xl(0,e)}function wl(e){return yl(0,e)}function Tl(e){return bl(0,e)}function El(e){return Sl(0,e)}function Dl(e,t){return new er({check:`multiple_of`,...E(t),value:e})}function Ol(e,t){return new rr({check:`max_size`,...E(t),maximum:e})}function kl(e,t){return new ir({check:`min_size`,...E(t),minimum:e})}function Al(e,t){return new ar({check:`size_equals`,...E(t),size:e})}function jl(e,t){return new or({check:`max_length`,...E(t),maximum:e})}function Ml(e,t){return new sr({check:`min_length`,...E(t),minimum:e})}function Nl(e,t){return new cr({check:`length_equals`,...E(t),length:e})}function Pl(e,t){return new ur({check:`string_format`,format:`regex`,...E(t),pattern:e})}function Fl(e){return new dr({check:`string_format`,format:`lowercase`,...E(e)})}function Il(e){return new fr({check:`string_format`,format:`uppercase`,...E(e)})}function Ll(e,t){return new pr({check:`string_format`,format:`includes`,...E(t),includes:e})}function Rl(e,t){return new mr({check:`string_format`,format:`starts_with`,...E(t),prefix:e})}function zl(e,t){return new hr({check:`string_format`,format:`ends_with`,...E(t),suffix:e})}function Bl(e,t,n){return new gr({check:`property`,property:e,schema:t,...E(n)})}function Vl(e,t){return new _r({check:`mime_type`,mime:e,...E(t)})}function Hl(e){return new vr({check:`overwrite`,tx:e})}function Ul(e){return Hl(t=>t.normalize(e))}function Wl(){return Hl(e=>e.trim())}function Gl(){return Hl(e=>e.toLowerCase())}function Kl(){return Hl(e=>e.toUpperCase())}function ql(){return Hl(e=>_e(e))}function Jl(e,t,n){return new e({type:`array`,element:t,...E(n)})}function Yl(e,t,n){return new e({type:`union`,options:t,...E(n)})}function Xl(e,t,n){return new e({type:`union`,options:t,inclusive:!1,...E(n)})}function Zl(e,t,n,r){return new e({type:`union`,options:n,discriminator:t,...E(r)})}function Ql(e,t,n){return new e({type:`intersection`,left:t,right:n})}function $l(e,t,n,r){let i=n instanceof j;return new e({type:`tuple`,items:t,rest:i?n:null,...E(i?r:n)})}function eu(e,t,n,r){return new e({type:`record`,keyType:t,valueType:n,...E(r)})}function tu(e,t,n,r){return new e({type:`map`,keyType:t,valueType:n,...E(r)})}function nu(e,t,n){return new e({type:`set`,valueType:t,...E(n)})}function ru(e,t,n){return new e({type:`enum`,entries:Array.isArray(t)?Object.fromEntries(t.map(e=>[e,e])):t,...E(n)})}function iu(e,t,n){return new e({type:`enum`,entries:t,...E(n)})}function au(e,t,n){return new e({type:`literal`,values:Array.isArray(t)?t:[t],...E(n)})}function ou(e,t){return new e({type:`file`,...E(t)})}function su(e,t){return new e({type:`transform`,transform:t})}function cu(e,t){return new e({type:`optional`,innerType:t})}function lu(e,t){return new e({type:`nullable`,innerType:t})}function uu(e,t,n){return new e({type:`default`,innerType:t,get defaultValue(){return typeof n==`function`?n():be(n)}})}function du(e,t,n){return new e({type:`nonoptional`,innerType:t,...E(n)})}function fu(e,t){return new e({type:`success`,innerType:t})}function pu(e,t,n){return new e({type:`catch`,innerType:t,catchValue:typeof n==`function`?n:()=>n})}function mu(e,t,n){return new e({type:`pipe`,in:t,out:n})}function hu(e,t){return new e({type:`readonly`,innerType:t})}function gu(e,t,n){return new e({type:`template_literal`,parts:t,...E(n)})}function _u(e,t){return new e({type:`lazy`,getter:t})}function vu(e,t){return new e({type:`promise`,innerType:t})}function yu(e,t,n){let r=E(n);return r.abort??=!0,new e({type:`custom`,check:`custom`,fn:t,...r})}function bu(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...E(n)})}function xu(e,t){let n=Su(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(Be(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(Be(r))}},e(t.value,t)),t);return n}function Su(e,t){let n=new A({check:`custom`,...E(t)});return n._zod.check=e,n}function Cu(e){let t=new A({check:`describe`});return t._zod.onattach=[t=>{let n=yc.get(t)??{};yc.add(t,{...n,description:e})}],t._zod.check=()=>{},t}function wu(e){let t=new A({check:`meta`});return t._zod.onattach=[t=>{let n=yc.get(t)??{};yc.add(t,{...n,...e})}],t._zod.check=()=>{},t}function Tu(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??ia,c=e.Boolean??Si,l=new s({type:`pipe`,in:new(e.String??Jr)({type:`string`,error:n.error}),out:new c({type:`boolean`,error:n.error}),transform:((e,t)=>{let r=e;return n.case!==`sensitive`&&(r=r.toLowerCase()),a.has(r)?!0:o.has(r)?!1:(t.issues.push({code:`invalid_value`,expected:`stringbool`,values:[...a,...o],input:t.value,inst:l,continue:!1}),{})}),reverseTransform:((e,t)=>e===!0?r[0]||`true`:i[0]||`false`),error:n.error});return l}function Eu(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 Du,Ou=o((()=>{yr(),bc(),fa(),k(),Du={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6}}));function ku(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??yc,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function N(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,N(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`&&Mu(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 Au(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>
1077
+
1078
+ 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 ju(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:Pu(t,`input`,e.processors),output:Pu(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function Mu(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 Mu(r.element,n);if(r.type===`set`)return Mu(r.valueType,n);if(r.type===`lazy`)return Mu(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 Mu(r.innerType,n);if(r.type===`intersection`)return Mu(r.left,n)||Mu(r.right,n);if(r.type===`record`||r.type===`map`)return Mu(r.keyType,n)||Mu(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:Mu(r.in,n)||Mu(r.out,n);if(r.type===`object`){for(let e in r.shape)if(Mu(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(Mu(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(Mu(e,n))return!0;return!!(r.rest&&Mu(r.rest,n))}return!1}var Nu,Pu,Fu=o((()=>{bc(),Nu=(e,t={})=>n=>{let r=ku({...n,processors:t});return N(e,r),Au(r,e),ju(r,e)},Pu=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=ku({...i??{},target:a,io:t,processors:n});return N(e,o),Au(o,e),ju(o,e)}}));function Iu(e,t){if(`_idmap`in e){let n=e,r=ku({...t,processors:Cd}),i={};for(let e of n._idmap.entries()){let[t,n]=e;N(n,r)}let a={};r.external={registry:n,uri:t?.uri,defs:i};for(let e of n._idmap.entries()){let[t,n]=e;Au(r,n),a[t]=ju(r,n)}return Object.keys(i).length>0&&(a.__shared={[r.target===`draft-2020-12`?`$defs`:`definitions`]:i}),{schemas:a}}let n=ku({...t,processors:Cd});return N(e,n),Au(n,e),ju(n,e)}var Lu,Ru,zu,Bu,Vu,Hu,Uu,Wu,Gu,Ku,qu,Ju,Yu,Xu,Zu,Qu,$u,ed,td,nd,rd,id,ad,od,sd,cd,ld,ud,dd,fd,pd,md,hd,gd,_d,vd,yd,bd,xd,Sd,Cd,wd=o((()=>{Fu(),k(),Lu={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},Ru=(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=Lu[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}))])}},zu=(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)},Bu=(e,t,n,r)=>{n.type=`boolean`},Vu=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`BigInt cannot be represented in JSON Schema`)},Hu=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Symbols cannot be represented in JSON Schema`)},Uu=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},Wu=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Undefined cannot be represented in JSON Schema`)},Gu=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Void cannot be represented in JSON Schema`)},Ku=(e,t,n,r)=>{n.not={}},qu=(e,t,n,r)=>{},Ju=(e,t,n,r)=>{},Yu=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Date cannot be represented in JSON Schema`)},Xu=(e,t,n,r)=>{let i=e._zod.def,a=ae(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},Zu=(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},Qu=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`NaN cannot be represented in JSON Schema`)},$u=(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},ed=(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)},td=(e,t,n,r)=>{n.type=`boolean`},nd=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},rd=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Function types cannot be represented in JSON Schema`)},id=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},ad=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Map cannot be represented in JSON Schema`)},od=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Set cannot be represented in JSON Schema`)},sd=(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=N(a.element,t,{...r,path:[...r.path,`items`]})},cd=(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]=N(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=N(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},ld=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>N(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},ud=(e,t,n,r)=>{let i=e._zod.def,a=N(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=N(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]]},dd=(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)=>N(e,t,{...r,path:[...r.path,o,n]})),l=a.rest?N(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)},fd=(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=N(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=N(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=N(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)}},pd=(e,t,n,r)=>{let i=e._zod.def,a=N(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`}]},md=(e,t,n,r)=>{let i=e._zod.def;N(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},hd=(e,t,n,r)=>{let i=e._zod.def;N(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},gd=(e,t,n,r)=>{let i=e._zod.def;N(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)))},_d=(e,t,n,r)=>{let i=e._zod.def;N(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},vd=(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;N(o,t,r);let s=t.seen.get(e);s.ref=o},yd=(e,t,n,r)=>{let i=e._zod.def;N(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},bd=(e,t,n,r)=>{let i=e._zod.def;N(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},xd=(e,t,n,r)=>{let i=e._zod.def;N(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Sd=(e,t,n,r)=>{let i=e._zod.innerType;N(i,t,r);let a=t.seen.get(e);a.ref=i},Cd={string:Ru,number:zu,boolean:Bu,bigint:Vu,symbol:Hu,null:Uu,undefined:Wu,void:Gu,never:Ku,any:qu,unknown:Ju,date:Yu,enum:Xu,literal:Zu,nan:Qu,template_literal:$u,file:ed,success:td,custom:nd,function:rd,transform:id,map:ad,set:od,array:sd,object:cd,union:ld,intersection:ud,tuple:dd,record:fd,nullable:pd,nonoptional:md,default:hd,prefault:gd,catch:_d,pipe:vd,readonly:yd,promise:bd,optional:xd,lazy:Sd}})),Td,Ed=o((()=>{wd(),Fu(),Td=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=ku({processors:Cd,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 N(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)),Au(this.ctx,e);let{"~standard":n,...r}=ju(this.ctx,e);return r}}})),Dd=c({}),Od=o((()=>{})),kd=c({$ZodAny:()=>Oi,$ZodArray:()=>Ni,$ZodAsyncError:()=>_,$ZodBase64:()=>hi,$ZodBase64URL:()=>gi,$ZodBigInt:()=>Ci,$ZodBigIntFormat:()=>wi,$ZodBoolean:()=>Si,$ZodCIDRv4:()=>pi,$ZodCIDRv6:()=>mi,$ZodCUID:()=>ti,$ZodCUID2:()=>ni,$ZodCatch:()=>ta,$ZodCheck:()=>A,$ZodCheckBigIntFormat:()=>nr,$ZodCheckEndsWith:()=>hr,$ZodCheckGreaterThan:()=>$n,$ZodCheckIncludes:()=>pr,$ZodCheckLengthEquals:()=>cr,$ZodCheckLessThan:()=>Qn,$ZodCheckLowerCase:()=>dr,$ZodCheckMaxLength:()=>or,$ZodCheckMaxSize:()=>rr,$ZodCheckMimeType:()=>_r,$ZodCheckMinLength:()=>sr,$ZodCheckMinSize:()=>ir,$ZodCheckMultipleOf:()=>er,$ZodCheckNumberFormat:()=>tr,$ZodCheckOverwrite:()=>vr,$ZodCheckProperty:()=>gr,$ZodCheckRegex:()=>ur,$ZodCheckSizeEquals:()=>ar,$ZodCheckStartsWith:()=>mr,$ZodCheckStringFormat:()=>lr,$ZodCheckUpperCase:()=>fr,$ZodCodec:()=>ia,$ZodCustom:()=>da,$ZodCustomStringFormat:()=>yi,$ZodDate:()=>Mi,$ZodDefault:()=>Zi,$ZodDiscriminatedUnion:()=>Ri,$ZodE164:()=>_i,$ZodEmail:()=>Zr,$ZodEmoji:()=>$r,$ZodEncodeError:()=>v,$ZodEnum:()=>Wi,$ZodError:()=>lt,$ZodExactOptional:()=>Yi,$ZodFile:()=>Ki,$ZodFunction:()=>ca,$ZodGUID:()=>Yr,$ZodIPv4:()=>ui,$ZodIPv6:()=>di,$ZodISODate:()=>si,$ZodISODateTime:()=>oi,$ZodISODuration:()=>li,$ZodISOTime:()=>ci,$ZodIntersection:()=>zi,$ZodJWT:()=>vi,$ZodKSUID:()=>ai,$ZodLazy:()=>ua,$ZodLiteral:()=>Gi,$ZodMAC:()=>fi,$ZodMap:()=>Hi,$ZodNaN:()=>na,$ZodNanoID:()=>ei,$ZodNever:()=>Ai,$ZodNonOptional:()=>$i,$ZodNull:()=>Di,$ZodNullable:()=>Xi,$ZodNumber:()=>bi,$ZodNumberFormat:()=>xi,$ZodObject:()=>Pi,$ZodObjectJIT:()=>Fi,$ZodOptional:()=>Ji,$ZodPipe:()=>ra,$ZodPrefault:()=>Qi,$ZodPreprocess:()=>aa,$ZodPromise:()=>la,$ZodReadonly:()=>oa,$ZodRealError:()=>ut,$ZodRecord:()=>Vi,$ZodRegistry:()=>vc,$ZodSet:()=>Ui,$ZodString:()=>Jr,$ZodStringFormat:()=>M,$ZodSuccess:()=>ea,$ZodSymbol:()=>Ti,$ZodTemplateLiteral:()=>sa,$ZodTransform:()=>qi,$ZodTuple:()=>Bi,$ZodType:()=>j,$ZodULID:()=>ri,$ZodURL:()=>Qr,$ZodUUID:()=>Xr,$ZodUndefined:()=>Ei,$ZodUnion:()=>Ii,$ZodUnknown:()=>ki,$ZodVoid:()=>ji,$ZodXID:()=>ii,$ZodXor:()=>Li,$brand:()=>g,$constructor:()=>f,$input:()=>_c,$output:()=>gc,Doc:()=>br,JSONSchema:()=>Dd,JSONSchemaGenerator:()=>Td,NEVER:()=>h,TimePrecision:()=>Du,_any:()=>fl,_array:()=>Jl,_base64:()=>Hc,_base64url:()=>Uc,_bigint:()=>al,_boolean:()=>rl,_catch:()=>pu,_check:()=>Su,_cidrv4:()=>Bc,_cidrv6:()=>Vc,_coercedBigint:()=>ol,_coercedBoolean:()=>il,_coercedDate:()=>_l,_coercedNumber:()=>Zc,_coercedString:()=>Sc,_cuid:()=>Mc,_cuid2:()=>Nc,_custom:()=>yu,_date:()=>gl,_decode:()=>St,_decodeAsync:()=>Et,_default:()=>uu,_discriminatedUnion:()=>Zl,_e164:()=>Wc,_email:()=>Cc,_emoji:()=>Ac,_encode:()=>bt,_encodeAsync:()=>wt,_endsWith:()=>zl,_enum:()=>ru,_file:()=>ou,_float32:()=>$c,_float64:()=>el,_gt:()=>xl,_gte:()=>Sl,_guid:()=>wc,_includes:()=>Ll,_int:()=>Qc,_int32:()=>tl,_int64:()=>sl,_intersection:()=>Ql,_ipv4:()=>Lc,_ipv6:()=>Rc,_isoDate:()=>qc,_isoDateTime:()=>Kc,_isoDuration:()=>Yc,_isoTime:()=>Jc,_jwt:()=>Gc,_ksuid:()=>Ic,_lazy:()=>_u,_length:()=>Nl,_literal:()=>au,_lowercase:()=>Fl,_lt:()=>yl,_lte:()=>bl,_mac:()=>zc,_map:()=>tu,_max:()=>bl,_maxLength:()=>jl,_maxSize:()=>Ol,_mime:()=>Vl,_min:()=>Sl,_minLength:()=>Ml,_minSize:()=>kl,_multipleOf:()=>Dl,_nan:()=>vl,_nanoid:()=>jc,_nativeEnum:()=>iu,_negative:()=>wl,_never:()=>ml,_nonnegative:()=>El,_nonoptional:()=>du,_nonpositive:()=>Tl,_normalize:()=>Ul,_null:()=>dl,_nullable:()=>lu,_number:()=>Xc,_optional:()=>cu,_overwrite:()=>Hl,_parse:()=>ft,_parseAsync:()=>mt,_pipe:()=>mu,_positive:()=>Cl,_promise:()=>vu,_property:()=>Bl,_readonly:()=>hu,_record:()=>eu,_refine:()=>bu,_regex:()=>Pl,_safeDecode:()=>At,_safeDecodeAsync:()=>Pt,_safeEncode:()=>Ot,_safeEncodeAsync:()=>Mt,_safeParse:()=>gt,_safeParseAsync:()=>vt,_set:()=>nu,_size:()=>Al,_slugify:()=>ql,_startsWith:()=>Rl,_string:()=>xc,_stringFormat:()=>Eu,_stringbool:()=>Tu,_success:()=>fu,_superRefine:()=>xu,_symbol:()=>ll,_templateLiteral:()=>gu,_toLowerCase:()=>Gl,_toUpperCase:()=>Kl,_transform:()=>su,_trim:()=>Wl,_tuple:()=>$l,_uint32:()=>nl,_uint64:()=>cl,_ulid:()=>Pc,_undefined:()=>ul,_union:()=>Yl,_unknown:()=>pl,_uppercase:()=>Il,_url:()=>kc,_uuid:()=>Tc,_uuidv4:()=>Ec,_uuidv6:()=>Dc,_uuidv7:()=>Oc,_void:()=>hl,_xid:()=>Fc,_xor:()=>Xl,clone:()=>Ce,config:()=>p,createStandardJSONSchemaMethod:()=>Pu,createToJSONSchemaMethod:()=>Nu,decode:()=>Ct,decodeAsync:()=>Dt,describe:()=>Cu,encode:()=>xt,encodeAsync:()=>Tt,extractDefs:()=>Au,finalize:()=>ju,flattenError:()=>rt,formatError:()=>it,globalConfig:()=>ee,globalRegistry:()=>yc,initializeContext:()=>ku,isValidBase64:()=>wr,isValidBase64URL:()=>Tr,isValidJWT:()=>Er,locales:()=>fc,meta:()=>wu,parse:()=>pt,parseAsync:()=>ht,prettifyError:()=>st,process:()=>N,regexes:()=>Lt,registry:()=>mc,safeDecode:()=>jt,safeDecodeAsync:()=>Ft,safeEncode:()=>kt,safeEncodeAsync:()=>Nt,safeParse:()=>_t,safeParseAsync:()=>yt,toDotPath:()=>ot,toJSONSchema:()=>Iu,treeifyError:()=>at,util:()=>ne,version:()=>Sr}),Ad=o((()=>{te(),It(),dt(),fa(),yr(),Cr(),k(),Yn(),pc(),bc(),xr(),Ou(),Fu(),wd(),Ed(),Od()}));function jd(e){return!!e._zod}function Md(e,t){return jd(e)?_t(e,t):e.safeParse(t)}function Nd(e){if(!e)return;let t;if(t=jd(e)?e._zod?.def?.shape:e.shape,t){if(typeof t==`function`)try{return t()}catch{return}return t}}function Pd(e){if(jd(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 Fd=c({endsWith:()=>zl,gt:()=>xl,gte:()=>Sl,includes:()=>Ll,length:()=>Nl,lowercase:()=>Fl,lt:()=>yl,lte:()=>bl,maxLength:()=>jl,maxSize:()=>Ol,mime:()=>Vl,minLength:()=>Ml,minSize:()=>kl,multipleOf:()=>Dl,negative:()=>wl,nonnegative:()=>El,nonpositive:()=>Tl,normalize:()=>Ul,overwrite:()=>Hl,positive:()=>Cl,property:()=>Bl,regex:()=>Pl,size:()=>Al,slugify:()=>ql,startsWith:()=>Rl,toLowerCase:()=>Gl,toUpperCase:()=>Kl,trim:()=>Wl,uppercase:()=>Il}),Id=o((()=>{Ad()})),Ld=c({ZodISODate:()=>Ud,ZodISODateTime:()=>Hd,ZodISODuration:()=>Gd,ZodISOTime:()=>Wd,date:()=>zd,datetime:()=>Rd,duration:()=>Vd,time:()=>Bd});function Rd(e){return Kc(Hd,e)}function zd(e){return qc(Ud,e)}function Bd(e){return Jc(Wd,e)}function Vd(e){return Yc(Gd,e)}var Hd,Ud,Wd,Gd,Kd=o((()=>{Ad(),ih(),Hd=f(`ZodISODateTime`,(e,t)=>{oi.init(e,t),K.init(e,t)}),Ud=f(`ZodISODate`,(e,t)=>{si.init(e,t),K.init(e,t)}),Wd=f(`ZodISOTime`,(e,t)=>{ci.init(e,t),K.init(e,t)}),Gd=f(`ZodISODuration`,(e,t)=>{li.init(e,t),K.init(e,t)})})),qd,Jd,Yd,Xd=o((()=>{Ad(),k(),qd=(e,t)=>{lt.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>it(e,t)},flatten:{value:t=>rt(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,C,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,C,2)}},isEmpty:{get(){return e.issues.length===0}}})},Jd=f(`ZodError`,qd),Yd=f(`ZodError`,qd,{Parent:Error})})),Zd,Qd,$d,ef,tf,nf,rf,af,of,sf,cf,lf,uf=o((()=>{Ad(),Xd(),Zd=ft(Yd),Qd=mt(Yd),$d=gt(Yd),ef=vt(Yd),tf=bt(Yd),nf=St(Yd),rf=wt(Yd),af=Et(Yd),of=Ot(Yd),sf=At(Yd),cf=Mt(Yd),lf=Pt(Yd)})),df=c({ZodAny:()=>vm,ZodArray:()=>Cm,ZodBase64:()=>am,ZodBase64URL:()=>om,ZodBigInt:()=>pm,ZodBigIntFormat:()=>mm,ZodBoolean:()=>fm,ZodCIDRv4:()=>rm,ZodCIDRv6:()=>im,ZodCUID:()=>Yp,ZodCUID2:()=>Xp,ZodCatch:()=>Wm,ZodCodec:()=>qm,ZodCustom:()=>eh,ZodCustomStringFormat:()=>lm,ZodDate:()=>Sm,ZodDefault:()=>Bm,ZodDiscriminatedUnion:()=>Dm,ZodE164:()=>sm,ZodEmail:()=>Up,ZodEmoji:()=>qp,ZodEnum:()=>Nm,ZodExactOptional:()=>Rm,ZodFile:()=>Fm,ZodFunction:()=>$m,ZodGUID:()=>Wp,ZodIPv4:()=>em,ZodIPv6:()=>nm,ZodIntersection:()=>Om,ZodJWT:()=>cm,ZodKSUID:()=>$p,ZodLazy:()=>Zm,ZodLiteral:()=>Pm,ZodMAC:()=>tm,ZodMap:()=>jm,ZodNaN:()=>Gm,ZodNanoID:()=>Jp,ZodNever:()=>bm,ZodNonOptional:()=>Hm,ZodNull:()=>_m,ZodNullable:()=>zm,ZodNumber:()=>um,ZodNumberFormat:()=>dm,ZodObject:()=>wm,ZodOptional:()=>Lm,ZodPipe:()=>Km,ZodPrefault:()=>Vm,ZodPreprocess:()=>Jm,ZodPromise:()=>Qm,ZodReadonly:()=>Ym,ZodRecord:()=>Am,ZodSet:()=>Mm,ZodString:()=>Hp,ZodStringFormat:()=>K,ZodSuccess:()=>Um,ZodSymbol:()=>hm,ZodTemplateLiteral:()=>Xm,ZodTransform:()=>Im,ZodTuple:()=>km,ZodType:()=>G,ZodULID:()=>Zp,ZodURL:()=>Kp,ZodUUID:()=>Gp,ZodUndefined:()=>gm,ZodUnion:()=>Tm,ZodUnknown:()=>ym,ZodVoid:()=>xm,ZodXID:()=>Qp,ZodXor:()=>Em,_ZodString:()=>Vp,_default:()=>yp,_function:()=>Mp,any:()=>Qf,array:()=>R,base64:()=>Nf,base64url:()=>Pf,bigint:()=>Kf,boolean:()=>I,catch:()=>Cp,check:()=>Np,cidrv4:()=>jf,cidrv6:()=>Mf,codec:()=>Ep,cuid:()=>Cf,cuid2:()=>wf,custom:()=>Pp,date:()=>tp,describe:()=>th,discriminatedUnion:()=>op,e164:()=>Ff,email:()=>pf,emoji:()=>xf,enum:()=>H,exactOptional:()=>gp,file:()=>mp,float32:()=>Hf,float64:()=>Uf,function:()=>Mp,guid:()=>mf,hash:()=>Bf,hex:()=>zf,hostname:()=>Rf,httpUrl:()=>bf,instanceof:()=>Lp,int:()=>Vf,int32:()=>Wf,int64:()=>qf,intersection:()=>sp,invertCodec:()=>Dp,ipv4:()=>Of,ipv6:()=>Af,json:()=>Rp,jwt:()=>If,keyof:()=>np,ksuid:()=>Df,lazy:()=>Ap,literal:()=>U,looseObject:()=>ip,looseRecord:()=>up,mac:()=>kf,map:()=>dp,meta:()=>nh,nan:()=>wp,nanoid:()=>Sf,nativeEnum:()=>pp,never:()=>$f,nonoptional:()=>xp,null:()=>Zf,nullable:()=>_p,nullish:()=>vp,number:()=>F,object:()=>z,optional:()=>W,partialRecord:()=>lp,pipe:()=>Tp,prefault:()=>bp,preprocess:()=>zp,promise:()=>jp,readonly:()=>Op,record:()=>V,refine:()=>Fp,set:()=>fp,strictObject:()=>rp,string:()=>P,stringFormat:()=>Lf,stringbool:()=>rh,success:()=>Sp,superRefine:()=>Ip,symbol:()=>Yf,templateLiteral:()=>kp,transform:()=>hp,tuple:()=>cp,uint32:()=>Gf,uint64:()=>Jf,ulid:()=>Tf,undefined:()=>Xf,union:()=>B,unknown:()=>L,url:()=>yf,uuid:()=>hf,uuidv4:()=>gf,uuidv6:()=>_f,uuidv7:()=>vf,void:()=>ep,xid:()=>Ef,xor:()=>ap});function ff(e,t,n){let r=Object.getPrototypeOf(e),i=Bp.get(r);if(i||(i=new Set,Bp.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 P(e){return xc(Hp,e)}function pf(e){return Cc(Up,e)}function mf(e){return wc(Wp,e)}function hf(e){return Tc(Gp,e)}function gf(e){return Ec(Gp,e)}function _f(e){return Dc(Gp,e)}function vf(e){return Oc(Gp,e)}function yf(e){return kc(Kp,e)}function bf(e){return kc(Kp,{protocol:bn,hostname:yn,...E(e)})}function xf(e){return Ac(qp,e)}function Sf(e){return jc(Jp,e)}function Cf(e){return Mc(Yp,e)}function wf(e){return Nc(Xp,e)}function Tf(e){return Pc(Zp,e)}function Ef(e){return Fc(Qp,e)}function Df(e){return Ic($p,e)}function Of(e){return Lc(em,e)}function kf(e){return zc(tm,e)}function Af(e){return Rc(nm,e)}function jf(e){return Bc(rm,e)}function Mf(e){return Vc(im,e)}function Nf(e){return Hc(am,e)}function Pf(e){return Uc(om,e)}function Ff(e){return Wc(sm,e)}function If(e){return Gc(cm,e)}function Lf(e,t,n={}){return Eu(lm,e,t,n)}function Rf(e){return Eu(lm,`hostname`,vn,e)}function zf(e){return Eu(lm,`hex`,Nn,e)}function Bf(e,t){let n=`${e}_${t?.enc??`hex`}`,r=Lt[n];if(!r)throw Error(`Unrecognized hash format: ${n}`);return Eu(lm,n,r,t)}function F(e){return Xc(um,e)}function Vf(e){return Qc(dm,e)}function Hf(e){return $c(dm,e)}function Uf(e){return el(dm,e)}function Wf(e){return tl(dm,e)}function Gf(e){return nl(dm,e)}function I(e){return rl(fm,e)}function Kf(e){return al(pm,e)}function qf(e){return sl(mm,e)}function Jf(e){return cl(mm,e)}function Yf(e){return ll(hm,e)}function Xf(e){return ul(gm,e)}function Zf(e){return dl(_m,e)}function Qf(){return fl(vm)}function L(){return pl(ym)}function $f(e){return ml(bm,e)}function ep(e){return hl(xm,e)}function tp(e){return gl(Sm,e)}function R(e,t){return Jl(Cm,e,t)}function np(e){let t=e._zod.def.shape;return H(Object.keys(t))}function z(e,t){return new wm({type:`object`,shape:e??{},...E(t)})}function rp(e,t){return new wm({type:`object`,shape:e,catchall:$f(),...E(t)})}function ip(e,t){return new wm({type:`object`,shape:e,catchall:L(),...E(t)})}function B(e,t){return new Tm({type:`union`,options:e,...E(t)})}function ap(e,t){return new Em({type:`union`,options:e,inclusive:!1,...E(t)})}function op(e,t,n){return new Dm({type:`union`,options:t,discriminator:e,...E(n)})}function sp(e,t){return new Om({type:`intersection`,left:e,right:t})}function cp(e,t,n){let r=t instanceof j;return new km({type:`tuple`,items:e,rest:r?t:null,...E(r?n:t)})}function V(e,t,n){return!t||!t._zod?new Am({type:`record`,keyType:P(),valueType:e,...E(t)}):new Am({type:`record`,keyType:e,valueType:t,...E(n)})}function lp(e,t,n){let r=Ce(e);return r._zod.values=void 0,new Am({type:`record`,keyType:r,valueType:t,...E(n)})}function up(e,t,n){return new Am({type:`record`,keyType:e,valueType:t,mode:`loose`,...E(n)})}function dp(e,t,n){return new jm({type:`map`,keyType:e,valueType:t,...E(n)})}function fp(e,t){return new Mm({type:`set`,valueType:e,...E(t)})}function H(e,t){return new Nm({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...E(t)})}function pp(e,t){return new Nm({type:`enum`,entries:e,...E(t)})}function U(e,t){return new Pm({type:`literal`,values:Array.isArray(e)?e:[e],...E(t)})}function mp(e){return ou(Fm,e)}function hp(e){return new Im({type:`transform`,transform:e})}function W(e){return new Lm({type:`optional`,innerType:e})}function gp(e){return new Rm({type:`optional`,innerType:e})}function _p(e){return new zm({type:`nullable`,innerType:e})}function vp(e){return W(_p(e))}function yp(e,t){return new Bm({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():be(t)}})}function bp(e,t){return new Vm({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():be(t)}})}function xp(e,t){return new Hm({type:`nonoptional`,innerType:e,...E(t)})}function Sp(e){return new Um({type:`success`,innerType:e})}function Cp(e,t){return new Wm({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}function wp(e){return vl(Gm,e)}function Tp(e,t){return new Km({type:`pipe`,in:e,out:t})}function Ep(e,t,n){return new qm({type:`pipe`,in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function Dp(e){let t=e._zod.def;return new qm({type:`pipe`,in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}function Op(e){return new Ym({type:`readonly`,innerType:e})}function kp(e,t){return new Xm({type:`template_literal`,parts:e,...E(t)})}function Ap(e){return new Zm({type:`lazy`,getter:e})}function jp(e){return new Qm({type:`promise`,innerType:e})}function Mp(e){return new $m({type:`function`,input:Array.isArray(e?.input)?cp(e?.input):e?.input??R(L()),output:e?.output??L()})}function Np(e){let t=new A({check:`custom`});return t._zod.check=e,t}function Pp(e,t){return yu(eh,e??(()=>!0),t)}function Fp(e,t={}){return bu(eh,e,t)}function Ip(e,t){return xu(e,t)}function Lp(e,t={}){let n=new eh({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 Rp(e){let t=Ap(()=>B([P(e),F(),I(),Zf(),R(t),V(P(),t)]));return t}function zp(e,t){return new Jm({type:`pipe`,in:hp(e),out:t})}var Bp,G,Vp,Hp,K,Up,Wp,Gp,Kp,qp,Jp,Yp,Xp,Zp,Qp,$p,em,tm,nm,rm,im,am,om,sm,cm,lm,um,dm,fm,pm,mm,hm,gm,_m,vm,ym,bm,xm,Sm,Cm,wm,Tm,Em,Dm,Om,km,Am,jm,Mm,Nm,Pm,Fm,Im,Lm,Rm,zm,Bm,Vm,Hm,Um,Wm,Gm,Km,qm,Jm,Ym,Xm,Zm,Qm,$m,eh,th,nh,rh,ih=o((()=>{Ad(),wd(),Fu(),Id(),Kd(),uf(),Bp=new WeakMap,G=f(`ZodType`,(e,t)=>(j.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:Pu(e,`input`),output:Pu(e,`output`)}}),e.toJSONSchema=Nu(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.parse=(t,n)=>Zd(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>$d(e,t,n),e.parseAsync=async(t,n)=>Qd(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>ef(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>tf(e,t,n),e.decode=(t,n)=>nf(e,t,n),e.encodeAsync=async(t,n)=>rf(e,t,n),e.decodeAsync=async(t,n)=>af(e,t,n),e.safeEncode=(t,n)=>of(e,t,n),e.safeDecode=(t,n)=>sf(e,t,n),e.safeEncodeAsync=async(t,n)=>cf(e,t,n),e.safeDecodeAsync=async(t,n)=>lf(e,t,n),ff(e,`ZodType`,{check(...e){let t=this.def;return this.clone(fe(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Ce(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Fp(e,t))},superRefine(e,t){return this.check(Ip(e,t))},overwrite(e){return this.check(Hl(e))},optional(){return W(this)},exactOptional(){return gp(this)},nullable(){return _p(this)},nullish(){return W(_p(this))},nonoptional(e){return xp(this,e)},array(){return R(this)},or(e){return B([this,e])},and(e){return sp(this,e)},transform(e){return Tp(this,hp(e))},default(e){return yp(this,e)},prefault(e){return bp(this,e)},catch(e){return Cp(this,e)},pipe(e){return Tp(this,e)},readonly(){return Op(this)},describe(e){let t=this.clone();return yc.add(t,{description:e}),t},meta(...e){if(e.length===0)return yc.get(this);let t=this.clone();return yc.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,`description`,{get(){return yc.get(e)?.description},configurable:!0}),e)),Vp=f(`_ZodString`,(e,t)=>{Jr.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ru(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,ff(e,`_ZodString`,{regex(...e){return this.check(Pl(...e))},includes(...e){return this.check(Ll(...e))},startsWith(...e){return this.check(Rl(...e))},endsWith(...e){return this.check(zl(...e))},min(...e){return this.check(Ml(...e))},max(...e){return this.check(jl(...e))},length(...e){return this.check(Nl(...e))},nonempty(...e){return this.check(Ml(1,...e))},lowercase(e){return this.check(Fl(e))},uppercase(e){return this.check(Il(e))},trim(){return this.check(Wl())},normalize(...e){return this.check(Ul(...e))},toLowerCase(){return this.check(Gl())},toUpperCase(){return this.check(Kl())},slugify(){return this.check(ql())}})}),Hp=f(`ZodString`,(e,t)=>{Jr.init(e,t),Vp.init(e,t),e.email=t=>e.check(Cc(Up,t)),e.url=t=>e.check(kc(Kp,t)),e.jwt=t=>e.check(Gc(cm,t)),e.emoji=t=>e.check(Ac(qp,t)),e.guid=t=>e.check(wc(Wp,t)),e.uuid=t=>e.check(Tc(Gp,t)),e.uuidv4=t=>e.check(Ec(Gp,t)),e.uuidv6=t=>e.check(Dc(Gp,t)),e.uuidv7=t=>e.check(Oc(Gp,t)),e.nanoid=t=>e.check(jc(Jp,t)),e.guid=t=>e.check(wc(Wp,t)),e.cuid=t=>e.check(Mc(Yp,t)),e.cuid2=t=>e.check(Nc(Xp,t)),e.ulid=t=>e.check(Pc(Zp,t)),e.base64=t=>e.check(Hc(am,t)),e.base64url=t=>e.check(Uc(om,t)),e.xid=t=>e.check(Fc(Qp,t)),e.ksuid=t=>e.check(Ic($p,t)),e.ipv4=t=>e.check(Lc(em,t)),e.ipv6=t=>e.check(Rc(nm,t)),e.cidrv4=t=>e.check(Bc(rm,t)),e.cidrv6=t=>e.check(Vc(im,t)),e.e164=t=>e.check(Wc(sm,t)),e.datetime=t=>e.check(Rd(t)),e.date=t=>e.check(zd(t)),e.time=t=>e.check(Bd(t)),e.duration=t=>e.check(Vd(t))}),K=f(`ZodStringFormat`,(e,t)=>{M.init(e,t),Vp.init(e,t)}),Up=f(`ZodEmail`,(e,t)=>{Zr.init(e,t),K.init(e,t)}),Wp=f(`ZodGUID`,(e,t)=>{Yr.init(e,t),K.init(e,t)}),Gp=f(`ZodUUID`,(e,t)=>{Xr.init(e,t),K.init(e,t)}),Kp=f(`ZodURL`,(e,t)=>{Qr.init(e,t),K.init(e,t)}),qp=f(`ZodEmoji`,(e,t)=>{$r.init(e,t),K.init(e,t)}),Jp=f(`ZodNanoID`,(e,t)=>{ei.init(e,t),K.init(e,t)}),Yp=f(`ZodCUID`,(e,t)=>{ti.init(e,t),K.init(e,t)}),Xp=f(`ZodCUID2`,(e,t)=>{ni.init(e,t),K.init(e,t)}),Zp=f(`ZodULID`,(e,t)=>{ri.init(e,t),K.init(e,t)}),Qp=f(`ZodXID`,(e,t)=>{ii.init(e,t),K.init(e,t)}),$p=f(`ZodKSUID`,(e,t)=>{ai.init(e,t),K.init(e,t)}),em=f(`ZodIPv4`,(e,t)=>{ui.init(e,t),K.init(e,t)}),tm=f(`ZodMAC`,(e,t)=>{fi.init(e,t),K.init(e,t)}),nm=f(`ZodIPv6`,(e,t)=>{di.init(e,t),K.init(e,t)}),rm=f(`ZodCIDRv4`,(e,t)=>{pi.init(e,t),K.init(e,t)}),im=f(`ZodCIDRv6`,(e,t)=>{mi.init(e,t),K.init(e,t)}),am=f(`ZodBase64`,(e,t)=>{hi.init(e,t),K.init(e,t)}),om=f(`ZodBase64URL`,(e,t)=>{gi.init(e,t),K.init(e,t)}),sm=f(`ZodE164`,(e,t)=>{_i.init(e,t),K.init(e,t)}),cm=f(`ZodJWT`,(e,t)=>{vi.init(e,t),K.init(e,t)}),lm=f(`ZodCustomStringFormat`,(e,t)=>{yi.init(e,t),K.init(e,t)}),um=f(`ZodNumber`,(e,t)=>{bi.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zu(e,t,n,r),ff(e,`ZodNumber`,{gt(e,t){return this.check(xl(e,t))},gte(e,t){return this.check(Sl(e,t))},min(e,t){return this.check(Sl(e,t))},lt(e,t){return this.check(yl(e,t))},lte(e,t){return this.check(bl(e,t))},max(e,t){return this.check(bl(e,t))},int(e){return this.check(Vf(e))},safe(e){return this.check(Vf(e))},positive(e){return this.check(xl(0,e))},nonnegative(e){return this.check(Sl(0,e))},negative(e){return this.check(yl(0,e))},nonpositive(e){return this.check(bl(0,e))},multipleOf(e,t){return this.check(Dl(e,t))},step(e,t){return this.check(Dl(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}),dm=f(`ZodNumberFormat`,(e,t)=>{xi.init(e,t),um.init(e,t)}),fm=f(`ZodBoolean`,(e,t)=>{Si.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Bu(e,t,n,r)}),pm=f(`ZodBigInt`,(e,t)=>{Ci.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vu(e,t,n,r),e.gte=(t,n)=>e.check(Sl(t,n)),e.min=(t,n)=>e.check(Sl(t,n)),e.gt=(t,n)=>e.check(xl(t,n)),e.gte=(t,n)=>e.check(Sl(t,n)),e.min=(t,n)=>e.check(Sl(t,n)),e.lt=(t,n)=>e.check(yl(t,n)),e.lte=(t,n)=>e.check(bl(t,n)),e.max=(t,n)=>e.check(bl(t,n)),e.positive=t=>e.check(xl(BigInt(0),t)),e.negative=t=>e.check(yl(BigInt(0),t)),e.nonpositive=t=>e.check(bl(BigInt(0),t)),e.nonnegative=t=>e.check(Sl(BigInt(0),t)),e.multipleOf=(t,n)=>e.check(Dl(t,n));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null}),mm=f(`ZodBigIntFormat`,(e,t)=>{wi.init(e,t),pm.init(e,t)}),hm=f(`ZodSymbol`,(e,t)=>{Ti.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Hu(e,t,n,r)}),gm=f(`ZodUndefined`,(e,t)=>{Ei.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Wu(e,t,n,r)}),_m=f(`ZodNull`,(e,t)=>{Di.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Uu(e,t,n,r)}),vm=f(`ZodAny`,(e,t)=>{Oi.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qu(e,t,n,r)}),ym=f(`ZodUnknown`,(e,t)=>{ki.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ju(e,t,n,r)}),bm=f(`ZodNever`,(e,t)=>{Ai.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ku(e,t,n,r)}),xm=f(`ZodVoid`,(e,t)=>{ji.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Gu(e,t,n,r)}),Sm=f(`ZodDate`,(e,t)=>{Mi.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Yu(e,t,n,r),e.min=(t,n)=>e.check(Sl(t,n)),e.max=(t,n)=>e.check(bl(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}),Cm=f(`ZodArray`,(e,t)=>{Ni.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sd(e,t,n,r),e.element=t.element,ff(e,`ZodArray`,{min(e,t){return this.check(Ml(e,t))},nonempty(e){return this.check(Ml(1,e))},max(e,t){return this.check(jl(e,t))},length(e,t){return this.check(Nl(e,t))},unwrap(){return this.element}})}),wm=f(`ZodObject`,(e,t)=>{Fi.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>cd(e,t,n,r),w(e,`shape`,()=>t.shape),ff(e,`ZodObject`,{keyof(){return H(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:L()})},loose(){return this.clone({...this._zod.def,catchall:L()})},strict(){return this.clone({...this._zod.def,catchall:$f()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return Oe(this,e)},safeExtend(e){return ke(this,e)},merge(e){return Ae(this,e)},pick(e){return Ee(this,e)},omit(e){return De(this,e)},partial(...e){return je(Lm,this,e[0])},required(...e){return Me(Hm,this,e[0])}})}),Tm=f(`ZodUnion`,(e,t)=>{Ii.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ld(e,t,n,r),e.options=t.options}),Em=f(`ZodXor`,(e,t)=>{Tm.init(e,t),Li.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ld(e,t,n,r),e.options=t.options}),Dm=f(`ZodDiscriminatedUnion`,(e,t)=>{Tm.init(e,t),Ri.init(e,t)}),Om=f(`ZodIntersection`,(e,t)=>{zi.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ud(e,t,n,r)}),km=f(`ZodTuple`,(e,t)=>{Bi.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>dd(e,t,n,r),e.rest=t=>e.clone({...e._zod.def,rest:t})}),Am=f(`ZodRecord`,(e,t)=>{Vi.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fd(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType}),jm=f(`ZodMap`,(e,t)=>{Hi.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ad(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(kl(...t)),e.nonempty=t=>e.check(kl(1,t)),e.max=(...t)=>e.check(Ol(...t)),e.size=(...t)=>e.check(Al(...t))}),Mm=f(`ZodSet`,(e,t)=>{Ui.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>od(e,t,n,r),e.min=(...t)=>e.check(kl(...t)),e.nonempty=t=>e.check(kl(1,t)),e.max=(...t)=>e.check(Ol(...t)),e.size=(...t)=>e.check(Al(...t))}),Nm=f(`ZodEnum`,(e,t)=>{Wi.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Xu(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 Nm({...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 Nm({...t,checks:[],...E(r),entries:i})}}),Pm=f(`ZodLiteral`,(e,t)=>{Gi.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Zu(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]}})}),Fm=f(`ZodFile`,(e,t)=>{Ki.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ed(e,t,n,r),e.min=(t,n)=>e.check(kl(t,n)),e.max=(t,n)=>e.check(Ol(t,n)),e.mime=(t,n)=>e.check(Vl(Array.isArray(t)?t:[t],n))}),Im=f(`ZodTransform`,(e,t)=>{qi.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>id(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new v(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Be(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(Be(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}}),Lm=f(`ZodOptional`,(e,t)=>{Ji.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Rm=f(`ZodExactOptional`,(e,t)=>{Yi.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),zm=f(`ZodNullable`,(e,t)=>{Xi.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>pd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Bm=f(`ZodDefault`,(e,t)=>{Zi.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>hd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),Vm=f(`ZodPrefault`,(e,t)=>{Qi.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>gd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Hm=f(`ZodNonOptional`,(e,t)=>{$i.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>md(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Um=f(`ZodSuccess`,(e,t)=>{ea.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>td(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Wm=f(`ZodCatch`,(e,t)=>{ta.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_d(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),Gm=f(`ZodNaN`,(e,t)=>{na.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Qu(e,t,n,r)}),Km=f(`ZodPipe`,(e,t)=>{ra.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>vd(e,t,n,r),e.in=t.in,e.out=t.out}),qm=f(`ZodCodec`,(e,t)=>{Km.init(e,t),ia.init(e,t)}),Jm=f(`ZodPreprocess`,(e,t)=>{Km.init(e,t),aa.init(e,t)}),Ym=f(`ZodReadonly`,(e,t)=>{oa.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>yd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Xm=f(`ZodTemplateLiteral`,(e,t)=>{sa.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$u(e,t,n,r)}),Zm=f(`ZodLazy`,(e,t)=>{ua.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Sd(e,t,n,r),e.unwrap=()=>e._zod.def.getter()}),Qm=f(`ZodPromise`,(e,t)=>{la.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>bd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),$m=f(`ZodFunction`,(e,t)=>{ca.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>rd(e,t,n,r)}),eh=f(`ZodCustom`,(e,t)=>{da.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nd(e,t,n,r)}),th=Cu,nh=wu,rh=(...e)=>Tu({Codec:qm,Boolean:fm,String:Hp},...e)}));function ah(e){p({customError:e})}function oh(){return p().customError}var sh,ch,lh=o((()=>{Ad(),sh={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`},(function(e){})(ch||={})}));function uh(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 dh(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 fh(e,t){if(e.not!==void 0){if(typeof e.not==`object`&&Object.keys(e.not).length===0)return q.never();throw Error(`not is not supported in Zod (except { not: {} } for never)`)}if(e.unevaluatedItems!==void 0)throw Error(`unevaluatedItems is not supported`);if(e.unevaluatedProperties!==void 0)throw Error(`unevaluatedProperties is not supported`);if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw Error(`Conditional schemas (if/then/else) are not supported`);if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw Error(`dependentSchemas and dependentRequired are not supported`);if(e.$ref){let n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return q.lazy(()=>{if(!t.refs.has(n))throw Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let r=ph(dh(n,t),t);return t.refs.set(n,r),t.processing.delete(n),r}if(e.enum!==void 0){let n=e.enum;if(t.version===`openapi-3.0`&&e.nullable===!0&&n.length===1&&n[0]===null)return q.null();if(n.length===0)return q.never();if(n.length===1)return q.literal(n[0]);if(n.every(e=>typeof e==`string`))return q.enum(n);let r=n.map(e=>q.literal(e));return r.length<2?r[0]:q.union([r[0],r[1],...r.slice(2)])}if(e.const!==void 0)return q.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(n=>fh({...e,type:n},t));return r.length===0?q.never():r.length===1?r[0]:q.union(r)}if(!n)return q.any();let r;switch(n){case`string`:{let t=q.string();if(e.format){let n=e.format;n===`email`?t=t.check(q.email()):n===`uri`||n===`uri-reference`?t=t.check(q.url()):n===`uuid`||n===`guid`?t=t.check(q.uuid()):n===`date-time`?t=t.check(q.iso.datetime()):n===`date`?t=t.check(q.iso.date()):n===`time`?t=t.check(q.iso.time()):n===`duration`?t=t.check(q.iso.duration()):n===`ipv4`?t=t.check(q.ipv4()):n===`ipv6`?t=t.check(q.ipv6()):n===`mac`?t=t.check(q.mac()):n===`cidr`?t=t.check(q.cidrv4()):n===`cidr-v6`?t=t.check(q.cidrv6()):n===`base64`?t=t.check(q.base64()):n===`base64url`?t=t.check(q.base64url()):n===`e164`?t=t.check(q.e164()):n===`jwt`?t=t.check(q.jwt()):n===`emoji`?t=t.check(q.emoji()):n===`nanoid`?t=t.check(q.nanoid()):n===`cuid`?t=t.check(q.cuid()):n===`cuid2`?t=t.check(q.cuid2()):n===`ulid`?t=t.check(q.ulid()):n===`xid`?t=t.check(q.xid()):n===`ksuid`&&(t=t.check(q.ksuid()))}typeof e.minLength==`number`&&(t=t.min(e.minLength)),typeof e.maxLength==`number`&&(t=t.max(e.maxLength)),e.pattern&&(t=t.regex(new RegExp(e.pattern))),r=t;break}case`number`:case`integer`:{let t=n===`integer`?q.number().int():q.number();typeof e.minimum==`number`&&(t=t.min(e.minimum)),typeof e.maximum==`number`&&(t=t.max(e.maximum)),typeof e.exclusiveMinimum==`number`?t=t.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum==`number`&&(t=t.gt(e.minimum)),typeof e.exclusiveMaximum==`number`?t=t.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum==`number`&&(t=t.lt(e.maximum)),typeof e.multipleOf==`number`&&(t=t.multipleOf(e.multipleOf)),r=t;break}case`boolean`:r=q.boolean();break;case`null`:r=q.null();break;case`object`:{let n={},i=e.properties||{},a=new Set(e.required||[]);for(let[e,r]of Object.entries(i)){let i=ph(r,t);n[e]=a.has(e)?i:i.optional()}if(e.propertyNames){let i=ph(e.propertyNames,t),a=e.additionalProperties&&typeof e.additionalProperties==`object`?ph(e.additionalProperties,t):q.any();if(Object.keys(n).length===0){r=q.record(i,a);break}let o=q.object(n).passthrough(),s=q.looseRecord(i,a);r=q.intersection(o,s);break}if(e.patternProperties){let i=e.patternProperties,a=Object.keys(i),o=[];for(let e of a){let n=ph(i[e],t),r=q.string().regex(new RegExp(e));o.push(q.looseRecord(r,n))}let s=[];if(Object.keys(n).length>0&&s.push(q.object(n).passthrough()),s.push(...o),s.length===0)r=q.object({}).passthrough();else if(s.length===1)r=s[0];else{let e=q.intersection(s[0],s[1]);for(let t=2;t<s.length;t++)e=q.intersection(e,s[t]);r=e}break}let o=q.object(n);r=e.additionalProperties===!1?o.strict():typeof e.additionalProperties==`object`?o.catchall(ph(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=>ph(e,t)),o=i&&typeof i==`object`&&!Array.isArray(i)?ph(i,t):void 0;r=o?q.tuple(a).rest(o):q.tuple(a),typeof e.minItems==`number`&&(r=r.check(q.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check(q.maxLength(e.maxItems)))}else if(Array.isArray(i)){let n=i.map(e=>ph(e,t)),a=e.additionalItems&&typeof e.additionalItems==`object`?ph(e.additionalItems,t):void 0;r=a?q.tuple(n).rest(a):q.tuple(n),typeof e.minItems==`number`&&(r=r.check(q.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check(q.maxLength(e.maxItems)))}else if(i!==void 0){let n=ph(i,t),a=q.array(n);typeof e.minItems==`number`&&(a=a.min(e.minItems)),typeof e.maxItems==`number`&&(a=a.max(e.maxItems)),r=a}else r=q.array(q.any());break}default:throw Error(`Unsupported type: ${n}`)}return r}function ph(e,t){if(typeof e==`boolean`)return e?q.any():q.never();let n=fh(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=>ph(e,t)),a=q.union(i);n=r?q.intersection(n,a):a}if(e.oneOf&&Array.isArray(e.oneOf)){let i=e.oneOf.map(e=>ph(e,t)),a=q.xor(i);n=r?q.intersection(n,a):a}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=r?n:q.any();else{let i=r?n:ph(e.allOf[0],t),a=+!r;for(let n=a;n<e.allOf.length;n++)i=q.intersection(i,ph(e.allOf[n],t));n=i}e.nullable===!0&&t.version===`openapi-3.0`&&(n=q.nullable(n)),e.readOnly===!0&&(n=q.readonly(n)),e.default!==void 0&&(n=n.default(e.default));let i={};for(let t of[`$id`,`id`,`$comment`,`$anchor`,`$vocabulary`,`$dynamicRef`,`$dynamicAnchor`])t in e&&(i[t]=e[t]);for(let t of[`contentEncoding`,`contentMediaType`,`contentSchema`])t in e&&(i[t]=e[t]);for(let t of Object.keys(e))hh.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 mh(e,t){if(typeof e==`boolean`)return e?q.any():q.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw Error(`fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas`)}let r={version:uh(n,t?.defaultTarget),defs:n.$defs||n.definitions||{},refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??yc};return ph(n,r)}var q,hh,gh=o((()=>{bc(),Id(),Kd(),ih(),q={...df,...Fd,iso:Ld},hh=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(`.`))})),_h=c({bigint:()=>xh,boolean:()=>bh,date:()=>Sh,number:()=>yh,string:()=>vh});function vh(e){return Sc(Hp,e)}function yh(e){return Zc(um,e)}function bh(e){return il(fm,e)}function xh(e){return ol(pm,e)}function Sh(e){return _l(Sm,e)}var Ch=o((()=>{Ad(),ih()})),wh=c({$brand:()=>g,$input:()=>_c,$output:()=>gc,NEVER:()=>h,TimePrecision:()=>Du,ZodAny:()=>vm,ZodArray:()=>Cm,ZodBase64:()=>am,ZodBase64URL:()=>om,ZodBigInt:()=>pm,ZodBigIntFormat:()=>mm,ZodBoolean:()=>fm,ZodCIDRv4:()=>rm,ZodCIDRv6:()=>im,ZodCUID:()=>Yp,ZodCUID2:()=>Xp,ZodCatch:()=>Wm,ZodCodec:()=>qm,ZodCustom:()=>eh,ZodCustomStringFormat:()=>lm,ZodDate:()=>Sm,ZodDefault:()=>Bm,ZodDiscriminatedUnion:()=>Dm,ZodE164:()=>sm,ZodEmail:()=>Up,ZodEmoji:()=>qp,ZodEnum:()=>Nm,ZodError:()=>Jd,ZodExactOptional:()=>Rm,ZodFile:()=>Fm,ZodFirstPartyTypeKind:()=>ch,ZodFunction:()=>$m,ZodGUID:()=>Wp,ZodIPv4:()=>em,ZodIPv6:()=>nm,ZodISODate:()=>Ud,ZodISODateTime:()=>Hd,ZodISODuration:()=>Gd,ZodISOTime:()=>Wd,ZodIntersection:()=>Om,ZodIssueCode:()=>sh,ZodJWT:()=>cm,ZodKSUID:()=>$p,ZodLazy:()=>Zm,ZodLiteral:()=>Pm,ZodMAC:()=>tm,ZodMap:()=>jm,ZodNaN:()=>Gm,ZodNanoID:()=>Jp,ZodNever:()=>bm,ZodNonOptional:()=>Hm,ZodNull:()=>_m,ZodNullable:()=>zm,ZodNumber:()=>um,ZodNumberFormat:()=>dm,ZodObject:()=>wm,ZodOptional:()=>Lm,ZodPipe:()=>Km,ZodPrefault:()=>Vm,ZodPreprocess:()=>Jm,ZodPromise:()=>Qm,ZodReadonly:()=>Ym,ZodRealError:()=>Yd,ZodRecord:()=>Am,ZodSet:()=>Mm,ZodString:()=>Hp,ZodStringFormat:()=>K,ZodSuccess:()=>Um,ZodSymbol:()=>hm,ZodTemplateLiteral:()=>Xm,ZodTransform:()=>Im,ZodTuple:()=>km,ZodType:()=>G,ZodULID:()=>Zp,ZodURL:()=>Kp,ZodUUID:()=>Gp,ZodUndefined:()=>gm,ZodUnion:()=>Tm,ZodUnknown:()=>ym,ZodVoid:()=>xm,ZodXID:()=>Qp,ZodXor:()=>Em,_ZodString:()=>Vp,_default:()=>yp,_function:()=>Mp,any:()=>Qf,array:()=>R,base64:()=>Nf,base64url:()=>Pf,bigint:()=>Kf,boolean:()=>I,catch:()=>Cp,check:()=>Np,cidrv4:()=>jf,cidrv6:()=>Mf,clone:()=>Ce,codec:()=>Ep,coerce:()=>_h,config:()=>p,core:()=>kd,cuid:()=>Cf,cuid2:()=>wf,custom:()=>Pp,date:()=>tp,decode:()=>nf,decodeAsync:()=>af,describe:()=>th,discriminatedUnion:()=>op,e164:()=>Ff,email:()=>pf,emoji:()=>xf,encode:()=>tf,encodeAsync:()=>rf,endsWith:()=>zl,enum:()=>H,exactOptional:()=>gp,file:()=>mp,flattenError:()=>rt,float32:()=>Hf,float64:()=>Uf,formatError:()=>it,fromJSONSchema:()=>mh,function:()=>Mp,getErrorMap:()=>oh,globalRegistry:()=>yc,gt:()=>xl,gte:()=>Sl,guid:()=>mf,hash:()=>Bf,hex:()=>zf,hostname:()=>Rf,httpUrl:()=>bf,includes:()=>Ll,instanceof:()=>Lp,int:()=>Vf,int32:()=>Wf,int64:()=>qf,intersection:()=>sp,invertCodec:()=>Dp,ipv4:()=>Of,ipv6:()=>Af,iso:()=>Ld,json:()=>Rp,jwt:()=>If,keyof:()=>np,ksuid:()=>Df,lazy:()=>Ap,length:()=>Nl,literal:()=>U,locales:()=>fc,looseObject:()=>ip,looseRecord:()=>up,lowercase:()=>Fl,lt:()=>yl,lte:()=>bl,mac:()=>kf,map:()=>dp,maxLength:()=>jl,maxSize:()=>Ol,meta:()=>nh,mime:()=>Vl,minLength:()=>Ml,minSize:()=>kl,multipleOf:()=>Dl,nan:()=>wp,nanoid:()=>Sf,nativeEnum:()=>pp,negative:()=>wl,never:()=>$f,nonnegative:()=>El,nonoptional:()=>xp,nonpositive:()=>Tl,normalize:()=>Ul,null:()=>Zf,nullable:()=>_p,nullish:()=>vp,number:()=>F,object:()=>z,optional:()=>W,overwrite:()=>Hl,parse:()=>Zd,parseAsync:()=>Qd,partialRecord:()=>lp,pipe:()=>Tp,positive:()=>Cl,prefault:()=>bp,preprocess:()=>zp,prettifyError:()=>st,promise:()=>jp,property:()=>Bl,readonly:()=>Op,record:()=>V,refine:()=>Fp,regex:()=>Pl,regexes:()=>Lt,registry:()=>mc,safeDecode:()=>sf,safeDecodeAsync:()=>lf,safeEncode:()=>of,safeEncodeAsync:()=>cf,safeParse:()=>$d,safeParseAsync:()=>ef,set:()=>fp,setErrorMap:()=>ah,size:()=>Al,slugify:()=>ql,startsWith:()=>Rl,strictObject:()=>rp,string:()=>P,stringFormat:()=>Lf,stringbool:()=>rh,success:()=>Sp,superRefine:()=>Ip,symbol:()=>Yf,templateLiteral:()=>kp,toJSONSchema:()=>Iu,toLowerCase:()=>Gl,toUpperCase:()=>Kl,transform:()=>hp,treeifyError:()=>at,trim:()=>Wl,tuple:()=>cp,uint32:()=>Gf,uint64:()=>Jf,ulid:()=>Tf,undefined:()=>Xf,union:()=>B,unknown:()=>L,uppercase:()=>Il,url:()=>yf,util:()=>ne,uuid:()=>hf,uuidv4:()=>gf,uuidv6:()=>_f,uuidv7:()=>vf,void:()=>ep,xid:()=>Ef,xor:()=>ap}),Th=o((()=>{Ad(),ih(),Id(),Xd(),uf(),lh(),Ua(),wd(),gh(),pc(),Kd(),Ch(),p(Va())})),Eh,Dh=o((()=>{Th(),Th(),Eh=wh})),Oh=c({$brand:()=>g,$input:()=>_c,$output:()=>gc,NEVER:()=>h,TimePrecision:()=>Du,ZodAny:()=>vm,ZodArray:()=>Cm,ZodBase64:()=>am,ZodBase64URL:()=>om,ZodBigInt:()=>pm,ZodBigIntFormat:()=>mm,ZodBoolean:()=>fm,ZodCIDRv4:()=>rm,ZodCIDRv6:()=>im,ZodCUID:()=>Yp,ZodCUID2:()=>Xp,ZodCatch:()=>Wm,ZodCodec:()=>qm,ZodCustom:()=>eh,ZodCustomStringFormat:()=>lm,ZodDate:()=>Sm,ZodDefault:()=>Bm,ZodDiscriminatedUnion:()=>Dm,ZodE164:()=>sm,ZodEmail:()=>Up,ZodEmoji:()=>qp,ZodEnum:()=>Nm,ZodError:()=>Jd,ZodExactOptional:()=>Rm,ZodFile:()=>Fm,ZodFirstPartyTypeKind:()=>ch,ZodFunction:()=>$m,ZodGUID:()=>Wp,ZodIPv4:()=>em,ZodIPv6:()=>nm,ZodISODate:()=>Ud,ZodISODateTime:()=>Hd,ZodISODuration:()=>Gd,ZodISOTime:()=>Wd,ZodIntersection:()=>Om,ZodIssueCode:()=>sh,ZodJWT:()=>cm,ZodKSUID:()=>$p,ZodLazy:()=>Zm,ZodLiteral:()=>Pm,ZodMAC:()=>tm,ZodMap:()=>jm,ZodNaN:()=>Gm,ZodNanoID:()=>Jp,ZodNever:()=>bm,ZodNonOptional:()=>Hm,ZodNull:()=>_m,ZodNullable:()=>zm,ZodNumber:()=>um,ZodNumberFormat:()=>dm,ZodObject:()=>wm,ZodOptional:()=>Lm,ZodPipe:()=>Km,ZodPrefault:()=>Vm,ZodPreprocess:()=>Jm,ZodPromise:()=>Qm,ZodReadonly:()=>Ym,ZodRealError:()=>Yd,ZodRecord:()=>Am,ZodSet:()=>Mm,ZodString:()=>Hp,ZodStringFormat:()=>K,ZodSuccess:()=>Um,ZodSymbol:()=>hm,ZodTemplateLiteral:()=>Xm,ZodTransform:()=>Im,ZodTuple:()=>km,ZodType:()=>G,ZodULID:()=>Zp,ZodURL:()=>Kp,ZodUUID:()=>Gp,ZodUndefined:()=>gm,ZodUnion:()=>Tm,ZodUnknown:()=>ym,ZodVoid:()=>xm,ZodXID:()=>Qp,ZodXor:()=>Em,_ZodString:()=>Vp,_default:()=>yp,_function:()=>Mp,any:()=>Qf,array:()=>R,base64:()=>Nf,base64url:()=>Pf,bigint:()=>Kf,boolean:()=>I,catch:()=>Cp,check:()=>Np,cidrv4:()=>jf,cidrv6:()=>Mf,clone:()=>Ce,codec:()=>Ep,coerce:()=>_h,config:()=>p,core:()=>kd,cuid:()=>Cf,cuid2:()=>wf,custom:()=>Pp,date:()=>tp,decode:()=>nf,decodeAsync:()=>af,default:()=>kh,describe:()=>th,discriminatedUnion:()=>op,e164:()=>Ff,email:()=>pf,emoji:()=>xf,encode:()=>tf,encodeAsync:()=>rf,endsWith:()=>zl,enum:()=>H,exactOptional:()=>gp,file:()=>mp,flattenError:()=>rt,float32:()=>Hf,float64:()=>Uf,formatError:()=>it,fromJSONSchema:()=>mh,function:()=>Mp,getErrorMap:()=>oh,globalRegistry:()=>yc,gt:()=>xl,gte:()=>Sl,guid:()=>mf,hash:()=>Bf,hex:()=>zf,hostname:()=>Rf,httpUrl:()=>bf,includes:()=>Ll,instanceof:()=>Lp,int:()=>Vf,int32:()=>Wf,int64:()=>qf,intersection:()=>sp,invertCodec:()=>Dp,ipv4:()=>Of,ipv6:()=>Af,iso:()=>Ld,json:()=>Rp,jwt:()=>If,keyof:()=>np,ksuid:()=>Df,lazy:()=>Ap,length:()=>Nl,literal:()=>U,locales:()=>fc,looseObject:()=>ip,looseRecord:()=>up,lowercase:()=>Fl,lt:()=>yl,lte:()=>bl,mac:()=>kf,map:()=>dp,maxLength:()=>jl,maxSize:()=>Ol,meta:()=>nh,mime:()=>Vl,minLength:()=>Ml,minSize:()=>kl,multipleOf:()=>Dl,nan:()=>wp,nanoid:()=>Sf,nativeEnum:()=>pp,negative:()=>wl,never:()=>$f,nonnegative:()=>El,nonoptional:()=>xp,nonpositive:()=>Tl,normalize:()=>Ul,null:()=>Zf,nullable:()=>_p,nullish:()=>vp,number:()=>F,object:()=>z,optional:()=>W,overwrite:()=>Hl,parse:()=>Zd,parseAsync:()=>Qd,partialRecord:()=>lp,pipe:()=>Tp,positive:()=>Cl,prefault:()=>bp,preprocess:()=>zp,prettifyError:()=>st,promise:()=>jp,property:()=>Bl,readonly:()=>Op,record:()=>V,refine:()=>Fp,regex:()=>Pl,regexes:()=>Lt,registry:()=>mc,safeDecode:()=>sf,safeDecodeAsync:()=>lf,safeEncode:()=>of,safeEncodeAsync:()=>cf,safeParse:()=>$d,safeParseAsync:()=>ef,set:()=>fp,setErrorMap:()=>ah,size:()=>Al,slugify:()=>ql,startsWith:()=>Rl,strictObject:()=>rp,string:()=>P,stringFormat:()=>Lf,stringbool:()=>rh,success:()=>Sp,superRefine:()=>Ip,symbol:()=>Yf,templateLiteral:()=>kp,toJSONSchema:()=>Iu,toLowerCase:()=>Gl,toUpperCase:()=>Kl,transform:()=>hp,treeifyError:()=>at,trim:()=>Wl,tuple:()=>cp,uint32:()=>Gf,uint64:()=>Jf,ulid:()=>Tf,undefined:()=>Xf,union:()=>B,unknown:()=>L,uppercase:()=>Il,url:()=>yf,util:()=>ne,uuid:()=>hf,uuidv4:()=>gf,uuidv6:()=>_f,uuidv7:()=>vf,void:()=>ep,xid:()=>Ef,xor:()=>ap,z:()=>wh}),kh,Ah=o((()=>{Dh(),Dh(),kh=Eh}));Ah();var jh=`io.modelcontextprotocol/related-task`,Mh=Pp(e=>e!==null&&(typeof e==`object`||typeof e==`function`)),Nh=B([P(),F().int()]),Ph=P();ip({ttl:F().optional(),pollInterval:F().optional()});var Fh=z({ttl:F().optional()}),Ih=z({taskId:P()}),Lh=ip({progressToken:Nh.optional(),[jh]:Ih.optional()}),Rh=z({_meta:Lh.optional()}),zh=Rh.extend({task:Fh.optional()}),Bh=e=>zh.safeParse(e).success,Vh=z({method:P(),params:Rh.loose().optional()}),Hh=z({_meta:Lh.optional()}),Uh=z({method:P(),params:Hh.loose().optional()}),Wh=ip({_meta:Lh.optional()}),Gh=B([P(),F().int()]),Kh=z({jsonrpc:U(`2.0`),id:Gh,...Vh.shape}).strict(),qh=e=>Kh.safeParse(e).success,Jh=z({jsonrpc:U(`2.0`),...Uh.shape}).strict(),Yh=e=>Jh.safeParse(e).success,Xh=z({jsonrpc:U(`2.0`),id:Gh,result:Wh}).strict(),Zh=e=>Xh.safeParse(e).success,J;(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`})(J||={});var Qh=z({jsonrpc:U(`2.0`),id:Gh.optional(),error:z({code:F().int(),message:P(),data:L().optional()})}).strict(),$h=e=>Qh.safeParse(e).success,eg=B([Kh,Jh,Xh,Qh]);B([Xh,Qh]);var tg=Wh.strict(),ng=Hh.extend({requestId:Gh.optional(),reason:P().optional()}),rg=Uh.extend({method:U(`notifications/cancelled`),params:ng}),ig=z({icons:R(z({src:P(),mimeType:P().optional(),sizes:R(P()).optional(),theme:H([`light`,`dark`]).optional()})).optional()}),ag=z({name:P(),title:P().optional()}),og=ag.extend({...ag.shape,...ig.shape,version:P(),websiteUrl:P().optional(),description:P().optional()}),sg=zp(e=>e&&typeof e==`object`&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,sp(z({form:sp(z({applyDefaults:I().optional()}),V(P(),L())).optional(),url:Mh.optional()}),V(P(),L()).optional())),cg=ip({list:Mh.optional(),cancel:Mh.optional(),requests:ip({sampling:ip({createMessage:Mh.optional()}).optional(),elicitation:ip({create:Mh.optional()}).optional()}).optional()}),lg=ip({list:Mh.optional(),cancel:Mh.optional(),requests:ip({tools:ip({call:Mh.optional()}).optional()}).optional()}),ug=z({experimental:V(P(),Mh).optional(),sampling:z({context:Mh.optional(),tools:Mh.optional()}).optional(),elicitation:sg.optional(),roots:z({listChanged:I().optional()}).optional(),tasks:cg.optional(),extensions:V(P(),Mh).optional()}),dg=Rh.extend({protocolVersion:P(),capabilities:ug,clientInfo:og}),fg=Vh.extend({method:U(`initialize`),params:dg}),pg=z({experimental:V(P(),Mh).optional(),logging:Mh.optional(),completions:Mh.optional(),prompts:z({listChanged:I().optional()}).optional(),resources:z({subscribe:I().optional(),listChanged:I().optional()}).optional(),tools:z({listChanged:I().optional()}).optional(),tasks:lg.optional(),extensions:V(P(),Mh).optional()}),mg=Wh.extend({protocolVersion:P(),capabilities:pg,serverInfo:og,instructions:P().optional()}),hg=Uh.extend({method:U(`notifications/initialized`),params:Hh.optional()}),gg=Vh.extend({method:U(`ping`),params:Rh.optional()}),_g=z({progress:F(),total:W(F()),message:W(P())}),vg=z({...Hh.shape,..._g.shape,progressToken:Nh}),yg=Uh.extend({method:U(`notifications/progress`),params:vg}),bg=Rh.extend({cursor:Ph.optional()}),xg=Vh.extend({params:bg.optional()}),Sg=Wh.extend({nextCursor:Ph.optional()}),Cg=H([`working`,`input_required`,`completed`,`failed`,`cancelled`]),wg=z({taskId:P(),status:Cg,ttl:B([F(),Zf()]),createdAt:P(),lastUpdatedAt:P(),pollInterval:W(F()),statusMessage:W(P())}),Tg=Wh.extend({task:wg}),Eg=Hh.merge(wg),Dg=Uh.extend({method:U(`notifications/tasks/status`),params:Eg}),Og=Vh.extend({method:U(`tasks/get`),params:Rh.extend({taskId:P()})}),kg=Wh.merge(wg),Ag=Vh.extend({method:U(`tasks/result`),params:Rh.extend({taskId:P()})});Wh.loose();var jg=xg.extend({method:U(`tasks/list`)}),Mg=Sg.extend({tasks:R(wg)}),Ng=Vh.extend({method:U(`tasks/cancel`),params:Rh.extend({taskId:P()})}),Pg=Wh.merge(wg),Fg=z({uri:P(),mimeType:W(P()),_meta:V(P(),L()).optional()}),Ig=Fg.extend({text:P()}),Lg=P().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:`Invalid Base64 string`}),Rg=Fg.extend({blob:Lg}),zg=H([`user`,`assistant`]),Bg=z({audience:R(zg).optional(),priority:F().min(0).max(1).optional(),lastModified:Rd({offset:!0}).optional()}),Vg=z({...ag.shape,...ig.shape,uri:P(),description:W(P()),mimeType:W(P()),size:W(F()),annotations:Bg.optional(),_meta:W(ip({}))}),Hg=z({...ag.shape,...ig.shape,uriTemplate:P(),description:W(P()),mimeType:W(P()),annotations:Bg.optional(),_meta:W(ip({}))}),Ug=xg.extend({method:U(`resources/list`)}),Wg=Sg.extend({resources:R(Vg)}),Gg=xg.extend({method:U(`resources/templates/list`)}),Kg=Sg.extend({resourceTemplates:R(Hg)}),qg=Rh.extend({uri:P()}),Jg=qg,Yg=Vh.extend({method:U(`resources/read`),params:Jg}),Xg=Wh.extend({contents:R(B([Ig,Rg]))}),Zg=Uh.extend({method:U(`notifications/resources/list_changed`),params:Hh.optional()}),Qg=qg,$g=Vh.extend({method:U(`resources/subscribe`),params:Qg}),e_=qg,t_=Vh.extend({method:U(`resources/unsubscribe`),params:e_}),n_=Hh.extend({uri:P()}),r_=Uh.extend({method:U(`notifications/resources/updated`),params:n_}),i_=z({name:P(),description:W(P()),required:W(I())}),a_=z({...ag.shape,...ig.shape,description:W(P()),arguments:W(R(i_)),_meta:W(ip({}))}),o_=xg.extend({method:U(`prompts/list`)}),s_=Sg.extend({prompts:R(a_)}),c_=Rh.extend({name:P(),arguments:V(P(),P()).optional()}),l_=Vh.extend({method:U(`prompts/get`),params:c_}),u_=z({type:U(`text`),text:P(),annotations:Bg.optional(),_meta:V(P(),L()).optional()}),d_=z({type:U(`image`),data:Lg,mimeType:P(),annotations:Bg.optional(),_meta:V(P(),L()).optional()}),f_=z({type:U(`audio`),data:Lg,mimeType:P(),annotations:Bg.optional(),_meta:V(P(),L()).optional()}),p_=z({type:U(`tool_use`),name:P(),id:P(),input:V(P(),L()),_meta:V(P(),L()).optional()}),m_=z({type:U(`resource`),resource:B([Ig,Rg]),annotations:Bg.optional(),_meta:V(P(),L()).optional()}),h_=Vg.extend({type:U(`resource_link`)}),g_=B([u_,d_,f_,h_,m_]),__=z({role:zg,content:g_}),v_=Wh.extend({description:P().optional(),messages:R(__)}),y_=Uh.extend({method:U(`notifications/prompts/list_changed`),params:Hh.optional()}),b_=z({title:P().optional(),readOnlyHint:I().optional(),destructiveHint:I().optional(),idempotentHint:I().optional(),openWorldHint:I().optional()}),x_=z({taskSupport:H([`required`,`optional`,`forbidden`]).optional()}),S_=z({...ag.shape,...ig.shape,description:P().optional(),inputSchema:z({type:U(`object`),properties:V(P(),Mh).optional(),required:R(P()).optional()}).catchall(L()),outputSchema:z({type:U(`object`),properties:V(P(),Mh).optional(),required:R(P()).optional()}).catchall(L()).optional(),annotations:b_.optional(),execution:x_.optional(),_meta:V(P(),L()).optional()}),C_=xg.extend({method:U(`tools/list`)}),w_=Sg.extend({tools:R(S_)}),T_=Wh.extend({content:R(g_).default([]),structuredContent:V(P(),L()).optional(),isError:I().optional()});T_.or(Wh.extend({toolResult:L()}));var E_=zh.extend({name:P(),arguments:V(P(),L()).optional()}),D_=Vh.extend({method:U(`tools/call`),params:E_}),O_=Uh.extend({method:U(`notifications/tools/list_changed`),params:Hh.optional()});z({autoRefresh:I().default(!0),debounceMs:F().int().nonnegative().default(300)});var k_=H([`debug`,`info`,`notice`,`warning`,`error`,`critical`,`alert`,`emergency`]),A_=Rh.extend({level:k_}),j_=Vh.extend({method:U(`logging/setLevel`),params:A_}),M_=Hh.extend({level:k_,logger:P().optional(),data:L()}),N_=Uh.extend({method:U(`notifications/message`),params:M_}),P_=z({hints:R(z({name:P().optional()})).optional(),costPriority:F().min(0).max(1).optional(),speedPriority:F().min(0).max(1).optional(),intelligencePriority:F().min(0).max(1).optional()}),F_=z({mode:H([`auto`,`required`,`none`]).optional()}),I_=z({type:U(`tool_result`),toolUseId:P().describe(`The unique identifier for the corresponding tool call.`),content:R(g_).default([]),structuredContent:z({}).loose().optional(),isError:I().optional(),_meta:V(P(),L()).optional()}),L_=op(`type`,[u_,d_,f_]),R_=op(`type`,[u_,d_,f_,p_,I_]),z_=z({role:zg,content:B([R_,R(R_)]),_meta:V(P(),L()).optional()}),B_=zh.extend({messages:R(z_),modelPreferences:P_.optional(),systemPrompt:P().optional(),includeContext:H([`none`,`thisServer`,`allServers`]).optional(),temperature:F().optional(),maxTokens:F().int(),stopSequences:R(P()).optional(),metadata:Mh.optional(),tools:R(S_).optional(),toolChoice:F_.optional()}),V_=Vh.extend({method:U(`sampling/createMessage`),params:B_}),H_=Wh.extend({model:P(),stopReason:W(H([`endTurn`,`stopSequence`,`maxTokens`]).or(P())),role:zg,content:L_}),U_=Wh.extend({model:P(),stopReason:W(H([`endTurn`,`stopSequence`,`maxTokens`,`toolUse`]).or(P())),role:zg,content:B([R_,R(R_)])}),W_=z({type:U(`boolean`),title:P().optional(),description:P().optional(),default:I().optional()}),G_=z({type:U(`string`),title:P().optional(),description:P().optional(),minLength:F().optional(),maxLength:F().optional(),format:H([`email`,`uri`,`date`,`date-time`]).optional(),default:P().optional()}),K_=z({type:H([`number`,`integer`]),title:P().optional(),description:P().optional(),minimum:F().optional(),maximum:F().optional(),default:F().optional()}),q_=z({type:U(`string`),title:P().optional(),description:P().optional(),enum:R(P()),default:P().optional()}),J_=z({type:U(`string`),title:P().optional(),description:P().optional(),oneOf:R(z({const:P(),title:P()})),default:P().optional()}),Y_=B([B([z({type:U(`string`),title:P().optional(),description:P().optional(),enum:R(P()),enumNames:R(P()).optional(),default:P().optional()}),B([q_,J_]),B([z({type:U(`array`),title:P().optional(),description:P().optional(),minItems:F().optional(),maxItems:F().optional(),items:z({type:U(`string`),enum:R(P())}),default:R(P()).optional()}),z({type:U(`array`),title:P().optional(),description:P().optional(),minItems:F().optional(),maxItems:F().optional(),items:z({anyOf:R(z({const:P(),title:P()}))}),default:R(P()).optional()})])]),W_,G_,K_]),X_=B([zh.extend({mode:U(`form`).optional(),message:P(),requestedSchema:z({type:U(`object`),properties:V(P(),Y_),required:R(P()).optional()})}),zh.extend({mode:U(`url`),message:P(),elicitationId:P(),url:P().url()})]),Z_=Vh.extend({method:U(`elicitation/create`),params:X_}),Q_=Hh.extend({elicitationId:P()}),$_=Uh.extend({method:U(`notifications/elicitation/complete`),params:Q_}),ev=Wh.extend({action:H([`accept`,`decline`,`cancel`]),content:zp(e=>e===null?void 0:e,V(P(),B([P(),F(),I(),R(P())])).optional())}),tv=z({type:U(`ref/resource`),uri:P()}),nv=z({type:U(`ref/prompt`),name:P()}),rv=Rh.extend({ref:B([nv,tv]),argument:z({name:P(),value:P()}),context:z({arguments:V(P(),P()).optional()}).optional()}),iv=Vh.extend({method:U(`completion/complete`),params:rv}),av=Wh.extend({completion:ip({values:R(P()).max(100),total:W(F().int()),hasMore:W(I())})}),ov=z({uri:P().startsWith(`file://`),name:P().optional(),_meta:V(P(),L()).optional()}),sv=Vh.extend({method:U(`roots/list`),params:Rh.optional()}),cv=Wh.extend({roots:R(ov)}),lv=Uh.extend({method:U(`notifications/roots/list_changed`),params:Hh.optional()});B([gg,fg,iv,j_,l_,o_,Ug,Gg,Yg,$g,t_,D_,C_,Og,Ag,jg,Ng]),B([rg,yg,hg,lv,Dg]),B([tg,H_,U_,ev,cv,kg,Mg,Tg]),B([gg,V_,Z_,sv,Og,Ag,jg,Ng]),B([rg,yg,N_,r_,Zg,O_,y_,Dg,$_]),B([tg,mg,av,v_,s_,Wg,Kg,Xg,T_,w_,kg,Mg,Tg]);var Y=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===J.UrlElicitationRequired&&r){let e=r;if(e.elicitations)return new uv(e.elicitations,n)}return new e(t,n,r)}},uv=class extends Y{constructor(e,t=`URL elicitation${e.length>1?`s`:``} required`){super(J.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}};function dv(e){return e===`completed`||e===`failed`||e===`cancelled`}function fv(e){let t=Nd(e)?.method;if(!t)throw Error(`Schema is missing a method literal`);let n=Pd(t);if(typeof n!=`string`)throw Error(`Schema method literal must be a string`);return n}function pv(e,t){let n=Md(e,t);if(!n.success)throw n.error;return n.data}var mv=class{constructor(e){this._options=e,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(rg,e=>{this._oncancel(e)}),this.setNotificationHandler(yg,e=>{this._onprogress(e)}),this.setRequestHandler(gg,e=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(Og,async(e,t)=>{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new Y(J.InvalidParams,`Failed to retrieve task: Task not found`);return{...n}}),this.setRequestHandler(Ag,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 Y(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 Y(J.InvalidParams,`Task not found: ${r}`);if(!dv(i.status))return await this._waitForTaskUpdate(r,t.signal),await n();if(dv(i.status)){let e=await this._taskStore.getTaskResult(r,t.sessionId);return this._clearTaskQueue(r),{...e,_meta:{...e._meta,[jh]:{taskId:r}}}}return await n()};return await n()}),this.setRequestHandler(jg,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 Y(J.InvalidParams,`Failed to list tasks: ${e instanceof Error?e.message:String(e)}`)}}),this.setRequestHandler(Ng,async(e,t)=>{try{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new Y(J.InvalidParams,`Task not found: ${e.params.taskId}`);if(dv(n.status))throw new Y(J.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 Y(J.InvalidParams,`Task not found after cancellation: ${e.params.taskId}`);return{_meta:{},...r}}catch(e){throw e instanceof Y?e:new Y(J.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),Y.fromError(J.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),Zh(e)||$h(e)?this._onresponse(e):qh(e)?this._onrequest(e,t):Yh(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=Y.fromError(J.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?.[jh]?.taskId;if(n===void 0){let t={jsonrpc:`2.0`,id:e.id,error:{code:J.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=Bh(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 Y(J.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:J.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),Zh(e)?n(e):n(new Y(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(Zh(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),Zh(e)?r(e):r(Y.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 Y?e:new Y(J.InternalError,String(e))}}return}let i;try{let r=await this.request(e,Tg,n);if(r.task)i=r.task.taskId,yield{type:`taskCreated`,task:r.task};else throw new Y(J.InternalError,`Task creation did not return a task`);for(;;){let e=await this.getTask({taskId:i},n);if(yield{type:`taskStatus`,task:e},dv(e.status)){e.status===`completed`?yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)}:e.status===`failed`?yield{type:`error`,error:new Y(J.InternalError,`Task ${i} failed`)}:e.status===`cancelled`&&(yield{type:`error`,error:new Y(J.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 Y?e:new Y(J.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||{},[jh]: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 Y?e:new Y(J.RequestTimeout,String(e)))};this._responseHandlers.set(d,e=>{if(!n?.signal?.aborted){if(e instanceof Error)return l(e);try{let n=Md(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(Y.fromError(J.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},kg,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},Mg,t)}async cancelTask(e,t){return this.request({method:`tasks/cancel`,params:e},Pg,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||{},[jh]: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||{},[jh]: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||{},[jh]:t.relatedTask}}}),await this._transport.send(r,t)}setRequestHandler(e,t){let n=fv(e);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(n,r)=>{let i=pv(e,n);return Promise.resolve(t(i,r))})}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,t){let n=fv(e);this._notificationHandlers.set(n,n=>{let r=pv(e,n);return Promise.resolve(t(r))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){let t=this._taskProgressTokens.get(e);t!==void 0&&(this._progressHandlers.delete(t),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,t,n){if(!this._taskStore||!this._taskMessageQueue)throw Error(`Cannot enqueue task message: taskStore and taskMessageQueue are not configured`);let r=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(e,t,n,r)}async _clearTaskQueue(e,t){if(this._taskMessageQueue){let n=await this._taskMessageQueue.dequeueAll(e,t);for(let t of n)if(t.type===`request`&&qh(t.message)){let n=t.message.id,r=this._requestResolvers.get(n);r?(r(new Y(J.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 Y(J.InvalidRequest,`Request cancelled`));return}let i=setTimeout(e,n);t.addEventListener(`abort`,()=>{clearTimeout(i),r(new Y(J.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 Y(J.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=Dg.parse({method:`notifications/tasks/status`,params:a});await this.notification(t),dv(a.status)&&this._cleanupTaskProgressHandler(e)}},getTaskResult:e=>n.getTaskResult(e,t),updateTaskStatus:async(e,r,i)=>{let a=await n.getTask(e,t);if(!a)throw new Y(J.InvalidParams,`Task "${e}" not found - it may have been cleaned up`);if(dv(a.status))throw new Y(J.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=Dg.parse({method:`notifications/tasks/status`,params:o});await this.notification(t),dv(o.status)&&this._cleanupTaskProgressHandler(e)}},listTasks:e=>n.listTasks(e,t)}}};function hv(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function gv(e,t){let n={...e};for(let e in t){let r=e,i=t[r];if(i===void 0)continue;let a=n[r];hv(a)&&hv(i)?n[r]={...a,...i}:n[r]=i}return n}var _v=`modulepreload`,vv=function(e){return`/`+e},yv={},bv=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=vv(t,n),t in yv)return;yv[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`:_v,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)})};Ah(),(e=>typeof d<`u`?d:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof d<`u`?d:e)[t]}):e)(function(e){if(typeof d<`u`)return d.apply(this,arguments);throw Error(`Dynamic require of "`+e+`" is not supported`)});var xv=class extends mv{_registeredMethods=new Set;_eventSlots=new Map;onEventDispatch(e,t){}_ensureEventSlot(e){let t=this._eventSlots.get(e);if(!t){let n=this.eventSchemas[e];if(!n)throw Error(`Unknown event: ${String(e)}`);t={listeners:[]},this._eventSlots.set(e,t);let r=n.shape.method.value;this._registeredMethods.add(r);let i=t;super.setNotificationHandler(n,t=>{let n=t.params;this.onEventDispatch(e,n),i.onHandler?.(n);for(let e of[...i.listeners])e(n)})}return t}setEventHandler(e,t){let n=this._ensureEventSlot(e);n.onHandler&&t&&console.warn(`[MCP Apps] on${String(e)} handler replaced. Use addEventListener("${String(e)}", …) to add multiple listeners without replacing.`),n.onHandler=t}getEventHandler(e){return this._eventSlots.get(e)?.onHandler}addEventListener(e,t){this._ensureEventSlot(e).listeners.push(t)}removeEventListener(e,t){let n=this._eventSlots.get(e);if(!n)return;let r=n.listeners.indexOf(t);r!==-1&&n.listeners.splice(r,1)}setRequestHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setRequestHandler`),super.setRequestHandler(e,t)};setNotificationHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setNotificationHandler`),super.setNotificationHandler(e,t)};warnIfRequestHandlerReplaced(e,t,n){t&&n&&console.warn(`[MCP Apps] ${e} handler replaced. Previous handler will no longer be called.`)}replaceRequestHandler=(e,t)=>{let n=e.shape.method.value;this._registeredMethods.add(n),super.setRequestHandler(e,t)};_assertMethodNotRegistered(e,t){let n=e.shape.method.value;if(this._registeredMethods.has(n))throw Error(`Handler for "${n}" already registered (via ${t}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(n)}},Sv=`2026-01-26`,Cv=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=eg.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},wv=B([U(`light`),U(`dark`)]).describe(`Color theme preference for the host environment.`),Tv=B([U(`inline`),U(`fullscreen`),U(`pip`)]).describe(`Display mode for UI presentation.`),Ev=V(B([U(`--color-background-primary`),U(`--color-background-secondary`),U(`--color-background-tertiary`),U(`--color-background-inverse`),U(`--color-background-ghost`),U(`--color-background-info`),U(`--color-background-danger`),U(`--color-background-success`),U(`--color-background-warning`),U(`--color-background-disabled`),U(`--color-text-primary`),U(`--color-text-secondary`),U(`--color-text-tertiary`),U(`--color-text-inverse`),U(`--color-text-ghost`),U(`--color-text-info`),U(`--color-text-danger`),U(`--color-text-success`),U(`--color-text-warning`),U(`--color-text-disabled`),U(`--color-border-primary`),U(`--color-border-secondary`),U(`--color-border-tertiary`),U(`--color-border-inverse`),U(`--color-border-ghost`),U(`--color-border-info`),U(`--color-border-danger`),U(`--color-border-success`),U(`--color-border-warning`),U(`--color-border-disabled`),U(`--color-ring-primary`),U(`--color-ring-secondary`),U(`--color-ring-inverse`),U(`--color-ring-info`),U(`--color-ring-danger`),U(`--color-ring-success`),U(`--color-ring-warning`),U(`--font-sans`),U(`--font-mono`),U(`--font-weight-normal`),U(`--font-weight-medium`),U(`--font-weight-semibold`),U(`--font-weight-bold`),U(`--font-text-xs-size`),U(`--font-text-sm-size`),U(`--font-text-md-size`),U(`--font-text-lg-size`),U(`--font-heading-xs-size`),U(`--font-heading-sm-size`),U(`--font-heading-md-size`),U(`--font-heading-lg-size`),U(`--font-heading-xl-size`),U(`--font-heading-2xl-size`),U(`--font-heading-3xl-size`),U(`--font-text-xs-line-height`),U(`--font-text-sm-line-height`),U(`--font-text-md-line-height`),U(`--font-text-lg-line-height`),U(`--font-heading-xs-line-height`),U(`--font-heading-sm-line-height`),U(`--font-heading-md-line-height`),U(`--font-heading-lg-line-height`),U(`--font-heading-xl-line-height`),U(`--font-heading-2xl-line-height`),U(`--font-heading-3xl-line-height`),U(`--border-radius-xs`),U(`--border-radius-sm`),U(`--border-radius-md`),U(`--border-radius-lg`),U(`--border-radius-xl`),U(`--border-radius-full`),U(`--border-width-regular`),U(`--shadow-hairline`),U(`--shadow-sm`),U(`--shadow-md`),U(`--shadow-lg`)]).describe(`CSS variable keys available to MCP apps for theming.`).describe(`Style variables for theming MCP apps.
1079
+
1080
+ Individual style keys are optional - hosts may provide any subset of these values.
1081
+ Values are strings containing CSS values (colors, sizes, font stacks, etc.).
1082
+
1083
+ Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
1084
+ for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),B([P(),Xf()]).describe(`Style variables for theming MCP apps.
1085
+
1086
+ Individual style keys are optional - hosts may provide any subset of these values.
1087
+ Values are strings containing CSS values (colors, sizes, font stacks, etc.).
1088
+
1089
+ Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
1090
+ for compatibility with Zod schema generation. Both are functionally equivalent for validation.`)).describe(`Style variables for theming MCP apps.
1091
+
1092
+ Individual style keys are optional - hosts may provide any subset of these values.
1093
+ Values are strings containing CSS values (colors, sizes, font stacks, etc.).
1094
+
1095
+ Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
1096
+ for compatibility with Zod schema generation. Both are functionally equivalent for validation.`);z({method:U(`ui/open-link`),params:z({url:P().describe(`URL to open in the host's browser`)})});var Dv=z({isError:I().optional().describe(`True if the host failed to open the URL (e.g., due to security policy).`)}).passthrough(),Ov=z({isError:I().optional().describe(`True if the download failed (e.g., user cancelled or host denied).`)}).passthrough(),kv=z({isError:I().optional().describe(`True if the host rejected or failed to deliver the message.`)}).passthrough();z({method:U(`ui/notifications/sandbox-proxy-ready`),params:z({})});var Av=z({connectDomains:R(P()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket).
1097
+
1098
+ - Maps to CSP \`connect-src\` directive
1099
+ - Empty or omitted → no network connections (secure default)`),resourceDomains:R(P()).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:R(P()).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:R(P()).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'`)")}),jv=z({camera:z({}).optional().describe(`Request camera access.
1100
+
1101
+ Maps to Permission Policy \`camera\` feature.`),microphone:z({}).optional().describe(`Request microphone access.
1102
+
1103
+ Maps to Permission Policy \`microphone\` feature.`),geolocation:z({}).optional().describe(`Request geolocation access.
1104
+
1105
+ Maps to Permission Policy \`geolocation\` feature.`),clipboardWrite:z({}).optional().describe(`Request clipboard write access.
1106
+
1107
+ Maps to Permission Policy \`clipboard-write\` feature.`)});z({method:U(`ui/notifications/size-changed`),params:z({width:F().optional().describe(`New width in pixels.`),height:F().optional().describe(`New height in pixels.`)})});var Mv=z({method:U(`ui/notifications/tool-input`),params:z({arguments:V(P(),L().describe(`Complete tool call arguments as key-value pairs.`)).optional().describe(`Complete tool call arguments as key-value pairs.`)})}),Nv=z({method:U(`ui/notifications/tool-input-partial`),params:z({arguments:V(P(),L().describe(`Partial tool call arguments (incomplete, may change).`)).optional().describe(`Partial tool call arguments (incomplete, may change).`)})}),Pv=z({method:U(`ui/notifications/tool-cancelled`),params:z({reason:P().optional().describe(`Optional reason for the cancellation (e.g., "user action", "timeout").`)})}),Fv=z({fonts:P().optional()}),Iv=z({variables:Ev.optional().describe(`CSS variables for theming the app.`),css:Fv.optional().describe(`CSS blocks that apps can inject.`)}),Lv=z({method:U(`ui/resource-teardown`),params:z({})});V(P(),L());var Rv=z({text:z({}).optional().describe(`Host supports text content blocks.`),image:z({}).optional().describe(`Host supports image content blocks.`),audio:z({}).optional().describe(`Host supports audio content blocks.`),resource:z({}).optional().describe(`Host supports resource content blocks.`),resourceLink:z({}).optional().describe(`Host supports resource link content blocks.`),structuredContent:z({}).optional().describe(`Host supports structured content.`)});z({method:U(`ui/notifications/request-teardown`),params:z({}).optional()});var zv=z({experimental:V(P(),V(P(),Qf()).describe(`Experimental features keyed by identifier.`)).optional().describe(`Experimental features keyed by identifier.`),openLinks:z({}).optional().describe(`Host supports opening external URLs.`),downloadFile:z({}).optional().describe(`Host supports file downloads via ui/download-file.`),serverTools:z({listChanged:I().optional().describe(`Host supports tools/list_changed notifications.`)}).optional().describe(`Host can proxy tool calls to the MCP server.`),serverResources:z({listChanged:I().optional().describe(`Host supports resources/list_changed notifications.`)}).optional().describe(`Host can proxy resource reads to the MCP server.`),logging:z({}).optional().describe(`Host accepts log messages.`),sandbox:z({permissions:jv.optional().describe(`Permissions granted by the host (camera, microphone, geolocation).`),csp:Av.optional().describe(`CSP domains approved by the host.`)}).optional().describe(`Sandbox configuration applied by the host.`),updateModelContext:Rv.optional().describe(`Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns.`),message:Rv.optional().describe(`Host supports receiving content messages (ui/message) from the view.`),sampling:z({tools:z({}).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.")}),Bv=z({experimental:V(P(),V(P(),Qf()).describe(`Experimental features keyed by identifier.`)).optional().describe(`Experimental features keyed by identifier.`),tools:z({listChanged:I().optional().describe(`App supports tools/list_changed notifications.`)}).optional().describe(`App exposes MCP-style tools that the host can call.`),availableDisplayModes:R(Tv).optional().describe(`Display modes the app supports.`)});z({method:U(`ui/notifications/initialized`),params:z({}).optional()}),z({csp:Av.optional().describe(`Content Security Policy configuration for UI resources.`),permissions:jv.optional().describe(`Sandbox permissions requested by the UI resource.`),domain:P().optional().describe(`Dedicated origin for view sandbox.
1108
+
1109
+ Useful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists.
1110
+
1111
+ **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:
1112
+ - Hash-based subdomains (e.g., \`{hash}.claudemcpcontent.com\`)
1113
+ - URL-derived subdomains (e.g., \`www-example-com.oaiusercontent.com\`)
1114
+
1115
+ If omitted, host uses default sandbox origin (typically per-conversation).`),prefersBorder:I().optional().describe(`Visual boundary preference - true if view prefers a visible border.
1116
+
1117
+ 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.
1118
+
1119
+ - \`true\`: request visible border + background
1120
+ - \`false\`: request no visible border + background
1121
+ - omitted: host decides border`)}),z({method:U(`ui/request-display-mode`),params:z({mode:Tv.describe(`The display mode being requested.`)})});var Vv=z({mode:Tv.describe(`The display mode that was actually set. May differ from requested if not supported.`)}).passthrough(),Hv=B([U(`model`),U(`app`)]).describe(`Tool visibility scope - who can access the tool.`);z({resourceUri:P().optional(),visibility:R(Hv).optional().describe(`Who can access this tool. Default: ["model", "app"]
1122
+ - "model": Tool visible to and callable by the agent
1123
+ - "app": Tool callable by the app from this server only`),csp:$f().optional(),permissions:$f().optional()}),z({mimeTypes:R(P()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')}),z({method:U(`ui/download-file`),params:z({contents:R(B([m_,h_])).describe(`Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.`)})}),z({method:U(`ui/message`),params:z({role:U(`user`).describe(`Message role, currently only "user" is supported.`),content:R(g_).describe(`Message content blocks (text, image, etc.).`)})}),z({method:U(`ui/notifications/sandbox-resource-ready`),params:z({html:P().describe(`HTML content to load into the inner iframe.`),sandbox:P().optional().describe(`Optional override for the inner iframe's sandbox attribute.`),csp:Av.optional().describe(`CSP configuration from resource metadata.`),permissions:jv.optional().describe(`Sandbox permissions from resource metadata.`)})});var Uv=z({method:U(`ui/notifications/tool-result`),params:T_.describe(`Standard MCP tool execution result.`)}),Wv=z({toolInfo:z({id:Gh.optional().describe(`JSON-RPC id of the tools/call request.`),tool:S_.describe(`Tool definition including name, inputSchema, etc.`)}).optional().describe(`Metadata of the tool call that instantiated this App.`),theme:wv.optional().describe(`Current color theme preference.`),styles:Iv.optional().describe(`Style configuration for theming the app.`),displayMode:Tv.optional().describe(`How the UI is currently displayed.`),availableDisplayModes:R(Tv).optional().describe(`Display modes the host supports.`),containerDimensions:B([z({height:F().describe(`Fixed container height in pixels.`)}),z({maxHeight:B([F(),Xf()]).optional().describe(`Maximum container height in pixels.`)})]).and(B([z({width:F().describe(`Fixed container width in pixels.`)}),z({maxWidth:B([F(),Xf()]).optional().describe(`Maximum container width in pixels.`)})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other
1124
+ container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:P().optional().describe(`User's language and region preference in BCP 47 format.`),timeZone:P().optional().describe(`User's timezone in IANA format.`),userAgent:P().optional().describe(`Host application identifier.`),platform:B([U(`web`),U(`desktop`),U(`mobile`)]).optional().describe(`Platform type for responsive design decisions.`),deviceCapabilities:z({touch:I().optional().describe(`Whether the device supports touch input.`),hover:I().optional().describe(`Whether the device supports hover interactions.`)}).optional().describe(`Device input capabilities.`),safeAreaInsets:z({top:F().describe(`Top safe area inset in pixels.`),right:F().describe(`Right safe area inset in pixels.`),bottom:F().describe(`Bottom safe area inset in pixels.`),left:F().describe(`Left safe area inset in pixels.`)}).optional().describe(`Mobile safe area boundaries in pixels.`)}).passthrough(),Gv=z({method:U(`ui/notifications/host-context-changed`),params:Wv.describe(`Partial context update containing only changed fields.`)});z({method:U(`ui/update-model-context`),params:z({content:R(g_).optional().describe(`Context content blocks (text, image, etc.).`),structuredContent:V(P(),L().describe(`Structured content for machine-readable context data.`)).optional().describe(`Structured content for machine-readable context data.`)})}),z({method:U(`ui/initialize`),params:z({appInfo:og.describe(`App identification (name and version).`),appCapabilities:Bv.describe(`Features and capabilities this app provides.`),protocolVersion:P().describe(`Protocol version this app supports.`)})});var Kv=z({protocolVersion:P().describe(`Negotiated protocol version string (e.g., "2025-11-21").`),hostInfo:og.describe(`Host application identification and version.`),hostCapabilities:zv.describe(`Features and capabilities provided by the host.`),hostContext:Wv.describe(`Rich context about the host environment.`)}).passthrough(),qv={target:`draft-2020-12`};async function Jv(e,t){let n=e[`~standard`];if(n.jsonSchema)return n.jsonSchema[t](qv);if(n.vendor===`zod`){let{z:n}=await bv(async()=>{let{z:e}=await Promise.resolve().then(()=>(Ah(),Oh));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 Yv(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 Xv=class e extends xv{_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:Mv,toolinputpartial:Nv,toolresult:Uv,toolcancelled:Pv,hostcontextchanged:Gv};static ONE_SHOT_EVENTS=new Set([`toolinput`,`toolinputpartial`,`toolresult`,`toolcancelled`]);_everHadListener=new Set;_assertHandlerTiming(t){if(!e.ONE_SHOT_EVENTS.has(t)||this._everHadListener.has(t)||(this._everHadListener.add(t),!this._initializedSent))return;let n=`[ext-apps] "${String(t)}" handler registered after connect() completed the ui/initialize handshake. The host may have already sent this notification. Register handlers before calling app.connect().`;if(this.options?.strict)throw Error(n);console.warn(n)}setEventHandler(e,t){t&&this._assertHandlerTiming(e),super.setEventHandler(e,t)}addEventListener(e,t){this._assertHandlerTiming(e),super.addEventListener(e,t)}onEventDispatch(e,t){e===`hostcontextchanged`&&(this._hostContext={...this._hostContext,...t})}constructor(e,t={},n={autoResize:!0}){super(n),this._appInfo=e,this._capabilities=t,this.options=n,n.allowUnsafeEval||p({jitless:!0}),this.setRequestHandler(gg,e=>(console.log(`Received ping:`,e.params),{})),this.setEventHandler(`hostcontextchanged`,void 0)}registerCapabilities(e){if(this.transport)throw Error(`Cannot register capabilities after transport is established`);this._capabilities=gv(this._capabilities,e)}registerTool(e,t,n){if(this._registeredTools[e])throw Error(`Tool ${e} is already registered`);let r=this,i=()=>{r._initializedSent&&r._capabilities.tools?.listChanged&&r.sendToolListChanged()},a=t.inputSchema!==void 0,o={title:t.title,description:t.description,inputSchema:t.inputSchema,outputSchema:t.outputSchema,annotations:t.annotations,_meta:t._meta,enabled:!0,enable(){this.enabled=!0,i()},disable(){this.enabled=!1,i()},update(e){Object.assign(this,e),i()},remove(){r._registeredTools[e]===o&&(delete r._registeredTools[e],i())},handler:async(t,r)=>{if(!o.enabled)throw Error(`Tool ${e} is disabled`);let i;if(a){let a=o.inputSchema;i=await n(a?await Yv(a,t??{},`Invalid input for tool ${e}: `):t??{},r)}else i=await n(r);return o.outputSchema&&!i.isError&&(i.structuredContent=await Yv(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 Jv(t.inputSchema,`input`):{type:`object`,properties:{}}};return t.outputSchema&&(n.outputSchema=await Jv(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(Lv,(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(D_,(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(C_,(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},T_,{onprogress:()=>{},resetTimeoutOnProgress:!0,...t})}async readServerResource(e,t){return this._assertInitialized(`readServerResource`),await this.request({method:`resources/read`,params:e},Xg,t)}async listServerResources(e,t){return this._assertInitialized(`listServerResources`),await this.request({method:`resources/list`,params:e},Wg,t)}async createSamplingMessage(e,t){this._assertInitialized(`createSamplingMessage`);let n=e.tools?U_:H_;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},kv,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},tg,t)}openLink(e,t){return this._assertInitialized(`openLink`),this.request({method:`ui/open-link`,params:e},Dv,t)}sendOpenLink=this.openLink;downloadFile(e,t){return this._assertInitialized(`downloadFile`),this.request({method:`ui/download-file`,params:e},Ov,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},Vv,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 Cv(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:Sv}},Kv,t);if(e===void 0)throw Error(`Server sent invalid initialize result: ${e}`);this._hostCapabilities=e.hostCapabilities,this._hostInfo=e.hostInfo,this._hostContext=e.hostContext,await this.notification({method:`ui/notifications/initialized`}),this._initializedSent=!0,this.options?.autoResize&&this.setupSizeChangedNotifications()}catch(e){throw this.close(),e}}};function Zv(e){return e.length>14?`${e.slice(0,8)}…${e.slice(-6)}`:e}function Qv(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 X(e,t,n){let r=document.createElement(e);return t&&(r.className=t),n!==void 0&&(r.textContent=n),r}function $v(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 ey(e,t){let n=document.createElement(`label`);return n.className=`ui-field`,n.append(X(`span`,void 0,e),t),n}function ty(e){let t=document.createElement(`select`);t.className=`ui-select`;for(let n of e.choices){let r=document.createElement(`option`);r.value=n.value,r.textContent=n.label,e.value===n.value&&(r.selected=!0),t.append(r)}return e.id&&(t.id=e.id),e.name&&(t.name=e.name),e.onChange&&t.addEventListener(`change`,()=>e.onChange(t.value)),t}function ny(e){let t=X(`section`,`ui-section`);return e&&t.append(X(`h2`,`ui-section-title`,e)),t}function ry(e,t){let n=X(`div`,`ui-row`);n.append(X(`span`,`ui-row-label`,e));let r=X(`span`,`ui-row-value`);return typeof t==`string`?r.textContent=t:r.append(t),n.append(r),n}function iy(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(X(`span`,void 0,e));let i=X(`div`,`ui-accordion-body`);return n.append(r,i),{details:n,body:i}}function ay(e){return X(`span`,`ui-mono`,e)}function oy(e){let t=ay(Zv(e));return t.title=e,t.setAttribute(`aria-label`,e),t.tabIndex=0,t}function sy(e){let t=X(`time`,void 0,Qv(e));return t.dateTime=e,t.title=e,t.setAttribute(`aria-label`,e),t}var cy=/^(?!.*(^(?!@)|[-.@])($|[-.@]))(?:[a-z0-9-]{0,63}(?:\.[a-z0-9-]{0,63})*)?@[a-z0-9-]{0,63}$/i,ly=/^(?!.*(^|[-.])($|[-.]))(?:[a-z0-9-]{0,63}\.)+sui$/i,uy=235;function dy(e){return e.length>uy?!1:e.includes(`@`)?cy.test(e):ly.test(e)}function fy(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name===`Uint8Array`&&`BYTES_PER_ELEMENT`in e&&e.BYTES_PER_ELEMENT===1}function py(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 my(e){if(typeof e!=`function`)throw TypeError(`function expected`);return!0}function hy(e,t){if(typeof t!=`string`)throw TypeError(`${e}: string expected`);return!0}function gy(e){if(typeof e!=`number`)throw TypeError(`number expected, got ${typeof e}`);if(!Number.isSafeInteger(e))throw RangeError(`invalid integer: ${e}`)}function _y(e){if(!Array.isArray(e))throw TypeError(`array expected`)}function vy(e,t){if(!py(!0,t))throw TypeError(`${e}: array of strings expected`)}function yy(e,t){if(!py(!1,t))throw TypeError(`${e}: array of numbers expected`)}function by(...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 xy(e){let t=typeof e==`string`?e.split(``):e,n=t.length;vy(`alphabet`,t);let r=new Map(t.map((e,t)=>[e,t]));return{encode:r=>(_y(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=>(_y(t),t.map(t=>{hy(`alphabet.decode`,t);let n=r.get(t);if(n===void 0)throw Error(`Unknown letter: "${t}". Allowed: ${e}`);return n}))}}function Sy(e=``){return hy(`join`,e),{encode:t=>(vy(`join.decode`,t),t.join(e)),decode:t=>(hy(`join.decode`,t),t.split(e))}}function Cy(e,t=`=`){return gy(e),hy(`padding`,t),{encode(n){for(vy(`padding.encode`,n);n.length*e%8;)n.push(t);return n},decode(n){vy(`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 wy(e){return my(e),{encode:e=>e,decode:t=>e(t)}}function Ty(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(_y(e),!e.length)return[];let r=0,i=[],a=Array.from(e,e=>{if(gy(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 Ey=(e,t)=>t===0?e:Ey(t,e%t),Dy=(e,t)=>e+(t-Ey(e,t)),Oy=(()=>{let e=[];for(let t=0;t<40;t++)e.push(2**t);return e})();function ky(e,t,n,r){if(_y(e),t<=0||t>32)throw RangeError(`convertRadix2: wrong from=${t}`);if(n<=0||n>32)throw RangeError(`convertRadix2: wrong to=${n}`);if(Dy(t,n)>32)throw Error(`convertRadix2: carry overflow from=${t} to=${n} carryBits=${Dy(t,n)}`);let i=0,a=0,o=Oy[t],s=Oy[n]-1,c=[];for(let r of e){if(gy(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=Oy[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 Ay(e){return gy(e),{encode:t=>{if(!fy(t))throw TypeError(`radix.encode input should be Uint8Array`);return Ty(Array.from(t),256,e)},decode:t=>(yy(`radix.decode`,t),Uint8Array.from(Ty(t,e,256)))}}function jy(e,t=!1){if(gy(e),e<=0||e>32)throw RangeError(`radix2: bits should be in (0..32]`);if(Dy(8,e)>32||Dy(e,8)>32)throw RangeError(`radix2: carry overflow`);return{encode:n=>{if(!fy(n))throw TypeError(`radix2.encode input should be Uint8Array`);return ky(Array.from(n),8,e,!t)},decode:n=>(yy(`radix2.decode`,n),Uint8Array.from(ky(n,e,8,t)))}}function My(e){return my(e),function(...t){try{return e.apply(null,t)}catch{}}}function Ny(e,t){if(gy(e),e<=0)throw RangeError(`checksum length must be positive: ${e}`);my(t);let n=t;return{encode(t){if(!fy(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(!fy(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 Py=Object.freeze({alphabet:xy,chain:by,checksum:Ny,convertRadix:Ty,convertRadix2:ky,radix:Ay,radix2:jy,join:Sy,padding:Cy});by(jy(4),xy(`0123456789ABCDEF`),Sy(``)),by(jy(5),xy(`ABCDEFGHIJKLMNOPQRSTUVWXYZ234567`),Cy(5),Sy(``)),by(jy(5),xy(`ABCDEFGHIJKLMNOPQRSTUVWXYZ234567`),Sy(``)),by(jy(5),xy(`0123456789ABCDEFGHIJKLMNOPQRSTUV`),Cy(5),Sy(``)),by(jy(5),xy(`0123456789ABCDEFGHIJKLMNOPQRSTUV`),Sy(``)),by(jy(5),xy(`0123456789ABCDEFGHJKMNPQRSTVWXYZ`),Sy(``),wy(e=>e.toUpperCase().replace(/O/g,`0`).replace(/[IL]/g,`1`)));var Fy=typeof Uint8Array.from([]).toBase64==`function`&&typeof Uint8Array.fromBase64==`function`;Fy||by(jy(6),xy(`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`),Cy(6),Sy(``)),by(jy(6),xy(`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`),Sy(``)),Fy||by(jy(6),xy(`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`),Cy(6),Sy(``)),by(jy(6),xy(`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`),Sy(``));var Iy=Object.freeze((e=>by(Ay(58),xy(e),Sy(``)))(`123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz`)),Ly=by(xy(`qpzry9x8gf2tvdw0s3jn54khce6mua7l`),Sy(``)),Ry=[996825010,642813549,513874426,1027748829,705979059];function zy(e){let t=e>>25,n=(e&33554431)<<5;for(let e=0;e<Ry.length;e++)(t>>e&1)==1&&(n^=Ry[e]);return n}function By(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=zy(i)^n>>5}i=zy(i);for(let t=0;t<r;t++)i=zy(i)^e.charCodeAt(t)&31;for(let e of t)i=zy(i)^e;for(let e=0;e<6;e++)i=zy(i);return i^=n,Ly.encode(ky([i%Oy[30]],30,5,!1))}function Vy(e){let t=e===`bech32`?1:734539939,n=jy(5),r=n.decode,i=n.encode,a=My(r);function o(e,n,r=90){hy(`bech32.encode prefix`,e),fy(n)&&(n=Array.from(n)),yy(`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=By(o,n,t);return`${o}1${Ly.encode(n)}${s}`}function s(e,n=90){hy(`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=Ly.decode(s).slice(0,-6),l=By(o,c,t);if(!s.endsWith(l))throw Error(`Invalid checksum in ${e}: expected "${l}"`);return{prefix:o,words:c}}let c=My(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 Hy=Object.freeze(Vy(`bech32`));Vy(`bech32m`),``.isWellFormed,typeof Uint8Array.from([]).toHex==`function`&&typeof Uint8Array.fromHex==`function`||by(jy(4),xy(`0123456789abcdef`),Sy(``),wy(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 Uy=e=>Iy.decode(e);function Wy(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 Gy=32;function Ky(e){try{return Uy(e).length===Gy}catch{return!1}}function qy(e){return Qy(e)&&$y(e)===32}function Jy(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=Jy(t);return typeof n==`string`?`vector<${n}>`:`vector<${Xy(n)}>`}return e.includes(`::`)?Yy(e):e}function Yy(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=ib(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(`<`)?Wy(a.slice(a.indexOf(`<`)+1,a.lastIndexOf(`>`))).map(e=>Jy(e.trim())):[];return{address:i?n:Zy(n),module:r,name:o,typeParams:s}}function Xy(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`?Yy(e):e;return`${t}::${n}::${r}${i?.length>0?`<${i.map(e=>typeof e==`string`?e:Xy(e)).join(`,`)}>`:``}`}function Zy(e,t=!1){let n=e.toLowerCase();return!t&&n.startsWith(`0x`)&&(n=n.slice(2)),`0x${n.padStart(64,`0`)}`}function Qy(e){return/^(0x|0X)?[a-fA-F0-9]+$/.test(e)&&e.length%2==0}function $y(e){return/^(0x|0X)/.test(e)?(e.length-2)/2:e.length/2}var eb=/^([a-z0-9]+(?:-[a-z0-9]+)*)$/,tb=/^\d+$/,nb=64,rb=`/`,ib=e=>{let t=e.split(rb);if(t.length<2||t.length>3)return!1;let[n,r,i]=t;return i!==void 0&&!tb.test(i)||!dy(n)?!1:eb.test(r)&&r.length<nb};function ab(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name===`Uint8Array`&&`BYTES_PER_ELEMENT`in e&&e.BYTES_PER_ELEMENT===1}function ob(e,t,n=``){let r=ab(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 sb(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 cb(e,t){ob(e,void 0,`digestInto() output`);let n=t.outputLen;if(e.length<n)throw RangeError(`"digestInto() output" expected to be of length >=`+n)}function lb(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function ub(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function db(e,t){return e<<32-t|e>>>t}new Uint8Array(new Uint32Array([287454020]).buffer)[0],typeof Uint8Array.from([]).toHex==`function`&&Uint8Array.fromHex;function fb(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 pb=e=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,e])});function mb(e,t,n){return e&t^~e&n}function hb(e,t,n){return e&t^e&n^t&n}var gb=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=ub(this.buffer)}update(e){sb(this),ob(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=ub(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){sb(this),cb(e,this),this.finished=!0;let{buffer:t,view:n,blockLen:r,isLE:i}=this,{pos:a}=this;t[a++]=128,lb(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=ub(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()}},_b=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),vb=BigInt(2**32-1),yb=BigInt(32);function bb(e,t=!1){return t?{h:Number(e&vb),l:Number(e>>yb&vb)}:{h:Number(e>>yb&vb)|0,l:Number(e&vb)|0}}function xb(e,t=!1){let n=e.length,r=new Uint32Array(n),i=new Uint32Array(n);for(let a=0;a<n;a++){let{h:n,l:o}=bb(e[a],t);[r[a],i[a]]=[n,o]}return[r,i]}var Sb=`0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI`,Cb=P().refine(qy,`Expected a 32-byte Sui address`),wb=P().refine(Ky,`Expected a Sui transaction digest`);Cb.transform(e=>Zy(e));var Tb=`sui:mainnet`,Eb=P().uuid(),Db=H([`process_start`,`sdk_start`,`session_restore`,`state_sync`]),Ob=H([`initialization_failed`,`restoration_failed`,`wallet_state_unavailable`]),kb=op(`status`,[z({status:U(`available`),walletRunId:Eb}).strict(),z({status:U(`initializing`),walletRunId:Eb,stage:Db,message:P()}).strict(),z({status:U(`recovering`),walletRunId:Eb,message:P()}).strict(),z({status:U(`unavailable`),walletRunId:Eb.optional(),reason:Ob,message:P()}).strict()]),Ab=op(`status`,[z({status:U(`idle`)}).strict(),z({status:U(`waiting`)}).strict(),z({status:U(`unavailable`),reason:U(`wallet_unavailable`),message:P()}).strict()]),jb=H([`awaiting_approval`,`connected`,`rejected`,`failed`,`expired`,`stopped`,`disconnected`]),Mb=z({connectionId:P().min(1),status:jb,revision:F().int().nonnegative(),accounts:R(Cb),methods:R(P()),chain:U(Tb),createdAt:P().datetime(),updatedAt:P().datetime(),expiresAt:P().datetime(),walletName:P().optional(),reason:P().optional()}).strict(),Nb=z({reason:U(`multiple_connections`),connectionIds:R(P().min(1)).min(2).refine(e=>new Set(e).size===e.length)}).strict(),Pb=`More than one wallet connection is saved. Disconnect the connections you no longer need before continuing.`,Fb=op(`status`,[z({status:U(`available`),account:Cb}).strict(),z({status:U(`address_required`)}).strict()]),Ib=(1n<<64n)-1n,Lb=/^(?:0|[1-9][0-9]*)$/,Rb=/^(?:0|-?[1-9][0-9]*)$/;function zb(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>Ib)throw Error(`${t} must fit u64`);return r}function Bb(e){let t=e===`rawAmount`?`amount`:e;return P().min(1).refine(t=>{try{return zb(t,e),!0}catch{return!1}},`Expected a raw u64 ${t} string`)}function Vb(e,t,n={}){if(!Lb.test(e))throw Error(`${t} must be a canonical unsigned integer string`);return zb(e,t,n)}function Hb(e){return P().min(1).refine(t=>{try{return Vb(t,e),!0}catch{return!1}},`Expected an unsigned integer string`)}function Ub(e,t){if(!Rb.test(e))throw Error(`${t} must be a signed integer string`);return BigInt(e)}function Wb(e){return P().min(1).refine(t=>{try{return Ub(t,e),!0}catch{return!1}},`Expected a signed integer string`)}function Gb(e){return Xy(e)}var Kb=[`transaction`,`effects`,`balanceChanges`,`objectTypes`],qb=P().refine(e=>{let t=new Date(e);return Number.isFinite(t.getTime())&&t.toISOString()===e},`Expected ISO 8601 UTC timestamp`),Jb=R(H(Kb)).length(Kb.length).superRefine((e,t)=>{for(let n of Kb)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`})}),Yb=P().min(1).max(512).refine(e=>{try{return Gb(e),!0}catch{return!1}},`Expected a Sui struct tag coin type`),Xb=z({commandIndex:F().int().nonnegative(),packageId:Cb,module:P().min(1).max(128),function:P().min(1).max(128),target:P().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`})}),Zb=z({index:F().int().nonnegative(),coinType:Yb,amountRaw:Wb(`accountBalanceChanges[].amountRaw`),direction:H([`increase`,`decrease`,`zero`])}).strict().superRefine((e,t)=>{let n=Ub(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`})}),Qb=op(`success`,[z({success:U(!0),errorKind:$f().optional(),errorMessage:$f().optional()}).strict(),z({success:U(!1),errorKind:P().min(1).max(200).optional(),errorMessage:P().min(1).max(2e3).optional()}).strict()]),$b=z({kind:U(`sui_chain_receipt_v1`),source:z({method:U(`client.core.getTransaction`),network:U(`sui:mainnet`),chainIdentifier:P().min(1),fetchedAt:qb,include:Jb}).strict(),txDigest:wb,sender:Cb,effectsStatus:Qb,packageCalls:R(Xb),accountBalanceChanges:R(Zb),objectTypes:V(Cb,P().min(1).max(512))}).strict(),ex=H([`awaiting_signature`,`submitting`,`awaiting_chain_result`,`stopped`,`request_failed`,`outcome_unknown`,`completed`]),tx=z({reviewSessionId:P().min(1),attemptId:P().min(1),planId:P().min(1),status:H([`success`,`failure`]),txDigest:wb,chainReceipt:$b,failureReason:U(`chain_execution_failed`).optional(),recordedAt:P().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.`})}),nx=z({attemptId:P().min(1),reviewSessionId:P().min(1),planId:P().min(1),reviewRevision:F().int().nonnegative(),account:Cb,transactionDigest:wb,requestStatus:ex,revision:F().int().nonnegative(),createdAt:P().datetime(),updatedAt:P().datetime(),signatureVerifiedAt:P().datetime().optional(),submittedAt:P().datetime().optional(),reason:P().optional(),execution:tx.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.`})}),rx=[`connect`,`disconnect`,`use_account`,`stop_connection`,`prepare_review`,`request_signature`,`cancel`,`stop_waiting`,`read_result`],ix=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]),ax=new Uint32Array(64),ox=class extends gb{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)ax[n]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=ax[e-15],n=ax[e-2],r=db(t,7)^db(t,18)^t>>>3;ax[e]=(db(n,17)^db(n,19)^n>>>10)+ax[e-7]+r+ax[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=db(o,6)^db(o,11)^db(o,25),u=l+t+mb(o,s,c)+ix[e]+ax[e]|0,d=(db(n,2)^db(n,13)^db(n,22))+hb(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(){lb(ax)}destroy(){this.destroyed=!0,this.set(0,0,0,0,0,0,0,0),lb(this.buffer)}},sx=class extends ox{A=_b[0]|0;B=_b[1]|0;C=_b[2]|0;D=_b[3]|0;E=_b[4]|0;F=_b[5]|0;G=_b[6]|0;H=_b[7]|0;constructor(){super(32)}},cx=xb(`0x428a2f98d728ae22.0x7137449123ef65cd.0xb5c0fbcfec4d3b2f.0xe9b5dba58189dbbc.0x3956c25bf348b538.0x59f111f1b605d019.0x923f82a4af194f9b.0xab1c5ed5da6d8118.0xd807aa98a3030242.0x12835b0145706fbe.0x243185be4ee4b28c.0x550c7dc3d5ffb4e2.0x72be5d74f27b896f.0x80deb1fe3b1696b1.0x9bdc06a725c71235.0xc19bf174cf692694.0xe49b69c19ef14ad2.0xefbe4786384f25e3.0x0fc19dc68b8cd5b5.0x240ca1cc77ac9c65.0x2de92c6f592b0275.0x4a7484aa6ea6e483.0x5cb0a9dcbd41fbd4.0x76f988da831153b5.0x983e5152ee66dfab.0xa831c66d2db43210.0xb00327c898fb213f.0xbf597fc7beef0ee4.0xc6e00bf33da88fc2.0xd5a79147930aa725.0x06ca6351e003826f.0x142929670a0e6e70.0x27b70a8546d22ffc.0x2e1b21385c26c926.0x4d2c6dfc5ac42aed.0x53380d139d95b3df.0x650a73548baf63de.0x766a0abb3c77b2a8.0x81c2c92e47edaee6.0x92722c851482353b.0xa2bfe8a14cf10364.0xa81a664bbc423001.0xc24b8b70d0f89791.0xc76c51a30654be30.0xd192e819d6ef5218.0xd69906245565a910.0xf40e35855771202a.0x106aa07032bbd1b8.0x19a4c116b8d2d0c8.0x1e376c085141ab53.0x2748774cdf8eeb99.0x34b0bcb5e19b48a8.0x391c0cb3c5c95a63.0x4ed8aa4ae3418acb.0x5b9cca4f7763e373.0x682e6ff3d6b2b8a3.0x748f82ee5defb2fc.0x78a5636f43172f60.0x84c87814a1f0ab72.0x8cc702081a6439ec.0x90befffa23631e28.0xa4506cebde82bde9.0xbef9a3f7b2c67915.0xc67178f2e372532b.0xca273eceea26619c.0xd186b8c721c0c207.0xeada7dd6cde0eb1e.0xf57d4f7fee6ed178.0x06f067aa72176fba.0x0a637dc5a2c898a6.0x113f9804bef90dae.0x1b710b35131c471b.0x28db77f523047d84.0x32caab7b40c72493.0x3c9ebe0a15c9bebc.0x431d67c49c100d4c.0x4cc5d4becb3e42b6.0x597f299cfc657e2a.0x5fcb6fab3ad6faec.0x6c44198c4a475817`.split(`.`).map(e=>BigInt(e)));cx[0],cx[1];var lx=fb(()=>new sx,pb(1));function ux(e){if(typeof e!=`string`)throw TypeError(`invalid mnemonic type: `+typeof e);return e.normalize(`NFKD`)}function dx(e){let t=ux(e),n=t.split(` `);if(![12,15,18,21,24].includes(n.length))throw Error(`Invalid mnemonic`);return{nfkd:t,words:n}}function fx(e){if(ob(e),![16,20,24,28,32].includes(e.length))throw RangeError(`invalid entropy length`)}var px=e=>{let t=8-e.length/4;return new Uint8Array([lx(e)[0]>>t<<t])};function mx(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)}),Py.chain(Py.checksum(1,px),Py.radix2(11,!0),Py.alphabet(e))}function hx(e,t){let{words:n}=dx(e),r=mx(t).decode(n);return fx(r),r}function gx(e,t){try{hx(e,t)}catch{return!1}return!0}var _x=Object.freeze(`abandon
1125
+ ability
1126
+ able
1127
+ about
1128
+ above
1129
+ absent
1130
+ absorb
1131
+ abstract
1132
+ absurd
1133
+ abuse
1134
+ access
1135
+ accident
1136
+ account
1137
+ accuse
1138
+ achieve
1139
+ acid
1140
+ acoustic
1141
+ acquire
1142
+ across
1143
+ act
1144
+ action
1145
+ actor
1146
+ actress
1147
+ actual
1148
+ adapt
1149
+ add
1150
+ addict
1151
+ address
1152
+ adjust
1153
+ admit
1154
+ adult
1155
+ advance
1156
+ advice
1157
+ aerobic
1158
+ affair
1159
+ afford
1160
+ afraid
1161
+ again
1162
+ age
1163
+ agent
1164
+ agree
1165
+ ahead
1166
+ aim
1167
+ air
1168
+ airport
1169
+ aisle
1170
+ alarm
1171
+ album
1172
+ alcohol
1173
+ alert
1174
+ alien
1175
+ all
1176
+ alley
1177
+ allow
1178
+ almost
1179
+ alone
1180
+ alpha
1181
+ already
1182
+ also
1183
+ alter
1184
+ always
1185
+ amateur
1186
+ amazing
1187
+ among
1188
+ amount
1189
+ amused
1190
+ analyst
1191
+ anchor
1192
+ ancient
1193
+ anger
1194
+ angle
1195
+ angry
1196
+ animal
1197
+ ankle
1198
+ announce
1199
+ annual
1200
+ another
1201
+ answer
1202
+ antenna
1203
+ antique
1204
+ anxiety
1205
+ any
1206
+ apart
1207
+ apology
1208
+ appear
1209
+ apple
1210
+ approve
1211
+ april
1212
+ arch
1213
+ arctic
1214
+ area
1215
+ arena
1216
+ argue
1217
+ arm
1218
+ armed
1219
+ armor
1220
+ army
1221
+ around
1222
+ arrange
1223
+ arrest
1224
+ arrive
1225
+ arrow
1226
+ art
1227
+ artefact
1228
+ artist
1229
+ artwork
1230
+ ask
1231
+ aspect
1232
+ assault
1233
+ asset
1234
+ assist
1235
+ assume
1236
+ asthma
1237
+ athlete
1238
+ atom
1239
+ attack
1240
+ attend
1241
+ attitude
1242
+ attract
1243
+ auction
1244
+ audit
1245
+ august
1246
+ aunt
1247
+ author
1248
+ auto
1249
+ autumn
1250
+ average
1251
+ avocado
1252
+ avoid
1253
+ awake
1254
+ aware
1255
+ away
1256
+ awesome
1257
+ awful
1258
+ awkward
1259
+ axis
1260
+ baby
1261
+ bachelor
1262
+ bacon
1263
+ badge
1264
+ bag
1265
+ balance
1266
+ balcony
1267
+ ball
1268
+ bamboo
1269
+ banana
1270
+ banner
1271
+ bar
1272
+ barely
1273
+ bargain
1274
+ barrel
1275
+ base
1276
+ basic
1277
+ basket
1278
+ battle
1279
+ beach
1280
+ bean
1281
+ beauty
1282
+ because
1283
+ become
1284
+ beef
1285
+ before
1286
+ begin
1287
+ behave
1288
+ behind
1289
+ believe
1290
+ below
1291
+ belt
1292
+ bench
1293
+ benefit
1294
+ best
1295
+ betray
1296
+ better
1297
+ between
1298
+ beyond
1299
+ bicycle
1300
+ bid
1301
+ bike
1302
+ bind
1303
+ biology
1304
+ bird
1305
+ birth
1306
+ bitter
1307
+ black
1308
+ blade
1309
+ blame
1310
+ blanket
1311
+ blast
1312
+ bleak
1313
+ bless
1314
+ blind
1315
+ blood
1316
+ blossom
1317
+ blouse
1318
+ blue
1319
+ blur
1320
+ blush
1321
+ board
1322
+ boat
1323
+ body
1324
+ boil
1325
+ bomb
1326
+ bone
1327
+ bonus
1328
+ book
1329
+ boost
1330
+ border
1331
+ boring
1332
+ borrow
1333
+ boss
1334
+ bottom
1335
+ bounce
1336
+ box
1337
+ boy
1338
+ bracket
1339
+ brain
1340
+ brand
1341
+ brass
1342
+ brave
1343
+ bread
1344
+ breeze
1345
+ brick
1346
+ bridge
1347
+ brief
1348
+ bright
1349
+ bring
1350
+ brisk
1351
+ broccoli
1352
+ broken
1353
+ bronze
1354
+ broom
1355
+ brother
1356
+ brown
1357
+ brush
1358
+ bubble
1359
+ buddy
1360
+ budget
1361
+ buffalo
1362
+ build
1363
+ bulb
1364
+ bulk
1365
+ bullet
1366
+ bundle
1367
+ bunker
1368
+ burden
1369
+ burger
1370
+ burst
1371
+ bus
1372
+ business
1373
+ busy
1374
+ butter
1375
+ buyer
1376
+ buzz
1377
+ cabbage
1378
+ cabin
1379
+ cable
1380
+ cactus
1381
+ cage
1382
+ cake
1383
+ call
1384
+ calm
1385
+ camera
1386
+ camp
1387
+ can
1388
+ canal
1389
+ cancel
1390
+ candy
1391
+ cannon
1392
+ canoe
1393
+ canvas
1394
+ canyon
1395
+ capable
1396
+ capital
1397
+ captain
1398
+ car
1399
+ carbon
1400
+ card
1401
+ cargo
1402
+ carpet
1403
+ carry
1404
+ cart
1405
+ case
1406
+ cash
1407
+ casino
1408
+ castle
1409
+ casual
1410
+ cat
1411
+ catalog
1412
+ catch
1413
+ category
1414
+ cattle
1415
+ caught
1416
+ cause
1417
+ caution
1418
+ cave
1419
+ ceiling
1420
+ celery
1421
+ cement
1422
+ census
1423
+ century
1424
+ cereal
1425
+ certain
1426
+ chair
1427
+ chalk
1428
+ champion
1429
+ change
1430
+ chaos
1431
+ chapter
1432
+ charge
1433
+ chase
1434
+ chat
1435
+ cheap
1436
+ check
1437
+ cheese
1438
+ chef
1439
+ cherry
1440
+ chest
1441
+ chicken
1442
+ chief
1443
+ child
1444
+ chimney
1445
+ choice
1446
+ choose
1447
+ chronic
1448
+ chuckle
1449
+ chunk
1450
+ churn
1451
+ cigar
1452
+ cinnamon
1453
+ circle
1454
+ citizen
1455
+ city
1456
+ civil
1457
+ claim
1458
+ clap
1459
+ clarify
1460
+ claw
1461
+ clay
1462
+ clean
1463
+ clerk
1464
+ clever
1465
+ click
1466
+ client
1467
+ cliff
1468
+ climb
1469
+ clinic
1470
+ clip
1471
+ clock
1472
+ clog
1473
+ close
1474
+ cloth
1475
+ cloud
1476
+ clown
1477
+ club
1478
+ clump
1479
+ cluster
1480
+ clutch
1481
+ coach
1482
+ coast
1483
+ coconut
1484
+ code
1485
+ coffee
1486
+ coil
1487
+ coin
1488
+ collect
1489
+ color
1490
+ column
1491
+ combine
1492
+ come
1493
+ comfort
1494
+ comic
1495
+ common
1496
+ company
1497
+ concert
1498
+ conduct
1499
+ confirm
1500
+ congress
1501
+ connect
1502
+ consider
1503
+ control
1504
+ convince
1505
+ cook
1506
+ cool
1507
+ copper
1508
+ copy
1509
+ coral
1510
+ core
1511
+ corn
1512
+ correct
1513
+ cost
1514
+ cotton
1515
+ couch
1516
+ country
1517
+ couple
1518
+ course
1519
+ cousin
1520
+ cover
1521
+ coyote
1522
+ crack
1523
+ cradle
1524
+ craft
1525
+ cram
1526
+ crane
1527
+ crash
1528
+ crater
1529
+ crawl
1530
+ crazy
1531
+ cream
1532
+ credit
1533
+ creek
1534
+ crew
1535
+ cricket
1536
+ crime
1537
+ crisp
1538
+ critic
1539
+ crop
1540
+ cross
1541
+ crouch
1542
+ crowd
1543
+ crucial
1544
+ cruel
1545
+ cruise
1546
+ crumble
1547
+ crunch
1548
+ crush
1549
+ cry
1550
+ crystal
1551
+ cube
1552
+ culture
1553
+ cup
1554
+ cupboard
1555
+ curious
1556
+ current
1557
+ curtain
1558
+ curve
1559
+ cushion
1560
+ custom
1561
+ cute
1562
+ cycle
1563
+ dad
1564
+ damage
1565
+ damp
1566
+ dance
1567
+ danger
1568
+ daring
1569
+ dash
1570
+ daughter
1571
+ dawn
1572
+ day
1573
+ deal
1574
+ debate
1575
+ debris
1576
+ decade
1577
+ december
1578
+ decide
1579
+ decline
1580
+ decorate
1581
+ decrease
1582
+ deer
1583
+ defense
1584
+ define
1585
+ defy
1586
+ degree
1587
+ delay
1588
+ deliver
1589
+ demand
1590
+ demise
1591
+ denial
1592
+ dentist
1593
+ deny
1594
+ depart
1595
+ depend
1596
+ deposit
1597
+ depth
1598
+ deputy
1599
+ derive
1600
+ describe
1601
+ desert
1602
+ design
1603
+ desk
1604
+ despair
1605
+ destroy
1606
+ detail
1607
+ detect
1608
+ develop
1609
+ device
1610
+ devote
1611
+ diagram
1612
+ dial
1613
+ diamond
1614
+ diary
1615
+ dice
1616
+ diesel
1617
+ diet
1618
+ differ
1619
+ digital
1620
+ dignity
1621
+ dilemma
1622
+ dinner
1623
+ dinosaur
1624
+ direct
1625
+ dirt
1626
+ disagree
1627
+ discover
1628
+ disease
1629
+ dish
1630
+ dismiss
1631
+ disorder
1632
+ display
1633
+ distance
1634
+ divert
1635
+ divide
1636
+ divorce
1637
+ dizzy
1638
+ doctor
1639
+ document
1640
+ dog
1641
+ doll
1642
+ dolphin
1643
+ domain
1644
+ donate
1645
+ donkey
1646
+ donor
1647
+ door
1648
+ dose
1649
+ double
1650
+ dove
1651
+ draft
1652
+ dragon
1653
+ drama
1654
+ drastic
1655
+ draw
1656
+ dream
1657
+ dress
1658
+ drift
1659
+ drill
1660
+ drink
1661
+ drip
1662
+ drive
1663
+ drop
1664
+ drum
1665
+ dry
1666
+ duck
1667
+ dumb
1668
+ dune
1669
+ during
1670
+ dust
1671
+ dutch
1672
+ duty
1673
+ dwarf
1674
+ dynamic
1675
+ eager
1676
+ eagle
1677
+ early
1678
+ earn
1679
+ earth
1680
+ easily
1681
+ east
1682
+ easy
1683
+ echo
1684
+ ecology
1685
+ economy
1686
+ edge
1687
+ edit
1688
+ educate
1689
+ effort
1690
+ egg
1691
+ eight
1692
+ either
1693
+ elbow
1694
+ elder
1695
+ electric
1696
+ elegant
1697
+ element
1698
+ elephant
1699
+ elevator
1700
+ elite
1701
+ else
1702
+ embark
1703
+ embody
1704
+ embrace
1705
+ emerge
1706
+ emotion
1707
+ employ
1708
+ empower
1709
+ empty
1710
+ enable
1711
+ enact
1712
+ end
1713
+ endless
1714
+ endorse
1715
+ enemy
1716
+ energy
1717
+ enforce
1718
+ engage
1719
+ engine
1720
+ enhance
1721
+ enjoy
1722
+ enlist
1723
+ enough
1724
+ enrich
1725
+ enroll
1726
+ ensure
1727
+ enter
1728
+ entire
1729
+ entry
1730
+ envelope
1731
+ episode
1732
+ equal
1733
+ equip
1734
+ era
1735
+ erase
1736
+ erode
1737
+ erosion
1738
+ error
1739
+ erupt
1740
+ escape
1741
+ essay
1742
+ essence
1743
+ estate
1744
+ eternal
1745
+ ethics
1746
+ evidence
1747
+ evil
1748
+ evoke
1749
+ evolve
1750
+ exact
1751
+ example
1752
+ excess
1753
+ exchange
1754
+ excite
1755
+ exclude
1756
+ excuse
1757
+ execute
1758
+ exercise
1759
+ exhaust
1760
+ exhibit
1761
+ exile
1762
+ exist
1763
+ exit
1764
+ exotic
1765
+ expand
1766
+ expect
1767
+ expire
1768
+ explain
1769
+ expose
1770
+ express
1771
+ extend
1772
+ extra
1773
+ eye
1774
+ eyebrow
1775
+ fabric
1776
+ face
1777
+ faculty
1778
+ fade
1779
+ faint
1780
+ faith
1781
+ fall
1782
+ false
1783
+ fame
1784
+ family
1785
+ famous
1786
+ fan
1787
+ fancy
1788
+ fantasy
1789
+ farm
1790
+ fashion
1791
+ fat
1792
+ fatal
1793
+ father
1794
+ fatigue
1795
+ fault
1796
+ favorite
1797
+ feature
1798
+ february
1799
+ federal
1800
+ fee
1801
+ feed
1802
+ feel
1803
+ female
1804
+ fence
1805
+ festival
1806
+ fetch
1807
+ fever
1808
+ few
1809
+ fiber
1810
+ fiction
1811
+ field
1812
+ figure
1813
+ file
1814
+ film
1815
+ filter
1816
+ final
1817
+ find
1818
+ fine
1819
+ finger
1820
+ finish
1821
+ fire
1822
+ firm
1823
+ first
1824
+ fiscal
1825
+ fish
1826
+ fit
1827
+ fitness
1828
+ fix
1829
+ flag
1830
+ flame
1831
+ flash
1832
+ flat
1833
+ flavor
1834
+ flee
1835
+ flight
1836
+ flip
1837
+ float
1838
+ flock
1839
+ floor
1840
+ flower
1841
+ fluid
1842
+ flush
1843
+ fly
1844
+ foam
1845
+ focus
1846
+ fog
1847
+ foil
1848
+ fold
1849
+ follow
1850
+ food
1851
+ foot
1852
+ force
1853
+ forest
1854
+ forget
1855
+ fork
1856
+ fortune
1857
+ forum
1858
+ forward
1859
+ fossil
1860
+ foster
1861
+ found
1862
+ fox
1863
+ fragile
1864
+ frame
1865
+ frequent
1866
+ fresh
1867
+ friend
1868
+ fringe
1869
+ frog
1870
+ front
1871
+ frost
1872
+ frown
1873
+ frozen
1874
+ fruit
1875
+ fuel
1876
+ fun
1877
+ funny
1878
+ furnace
1879
+ fury
1880
+ future
1881
+ gadget
1882
+ gain
1883
+ galaxy
1884
+ gallery
1885
+ game
1886
+ gap
1887
+ garage
1888
+ garbage
1889
+ garden
1890
+ garlic
1891
+ garment
1892
+ gas
1893
+ gasp
1894
+ gate
1895
+ gather
1896
+ gauge
1897
+ gaze
1898
+ general
1899
+ genius
1900
+ genre
1901
+ gentle
1902
+ genuine
1903
+ gesture
1904
+ ghost
1905
+ giant
1906
+ gift
1907
+ giggle
1908
+ ginger
1909
+ giraffe
1910
+ girl
1911
+ give
1912
+ glad
1913
+ glance
1914
+ glare
1915
+ glass
1916
+ glide
1917
+ glimpse
1918
+ globe
1919
+ gloom
1920
+ glory
1921
+ glove
1922
+ glow
1923
+ glue
1924
+ goat
1925
+ goddess
1926
+ gold
1927
+ good
1928
+ goose
1929
+ gorilla
1930
+ gospel
1931
+ gossip
1932
+ govern
1933
+ gown
1934
+ grab
1935
+ grace
1936
+ grain
1937
+ grant
1938
+ grape
1939
+ grass
1940
+ gravity
1941
+ great
1942
+ green
1943
+ grid
1944
+ grief
1945
+ grit
1946
+ grocery
1947
+ group
1948
+ grow
1949
+ grunt
1950
+ guard
1951
+ guess
1952
+ guide
1953
+ guilt
1954
+ guitar
1955
+ gun
1956
+ gym
1957
+ habit
1958
+ hair
1959
+ half
1960
+ hammer
1961
+ hamster
1962
+ hand
1963
+ happy
1964
+ harbor
1965
+ hard
1966
+ harsh
1967
+ harvest
1968
+ hat
1969
+ have
1970
+ hawk
1971
+ hazard
1972
+ head
1973
+ health
1974
+ heart
1975
+ heavy
1976
+ hedgehog
1977
+ height
1978
+ hello
1979
+ helmet
1980
+ help
1981
+ hen
1982
+ hero
1983
+ hidden
1984
+ high
1985
+ hill
1986
+ hint
1987
+ hip
1988
+ hire
1989
+ history
1990
+ hobby
1991
+ hockey
1992
+ hold
1993
+ hole
1994
+ holiday
1995
+ hollow
1996
+ home
1997
+ honey
1998
+ hood
1999
+ hope
2000
+ horn
2001
+ horror
2002
+ horse
2003
+ hospital
2004
+ host
2005
+ hotel
2006
+ hour
2007
+ hover
2008
+ hub
2009
+ huge
2010
+ human
2011
+ humble
2012
+ humor
2013
+ hundred
2014
+ hungry
2015
+ hunt
2016
+ hurdle
2017
+ hurry
2018
+ hurt
2019
+ husband
2020
+ hybrid
2021
+ ice
2022
+ icon
2023
+ idea
2024
+ identify
2025
+ idle
2026
+ ignore
2027
+ ill
2028
+ illegal
2029
+ illness
2030
+ image
2031
+ imitate
2032
+ immense
2033
+ immune
2034
+ impact
2035
+ impose
2036
+ improve
2037
+ impulse
2038
+ inch
2039
+ include
2040
+ income
2041
+ increase
2042
+ index
2043
+ indicate
2044
+ indoor
2045
+ industry
2046
+ infant
2047
+ inflict
2048
+ inform
2049
+ inhale
2050
+ inherit
2051
+ initial
2052
+ inject
2053
+ injury
2054
+ inmate
2055
+ inner
2056
+ innocent
2057
+ input
2058
+ inquiry
2059
+ insane
2060
+ insect
2061
+ inside
2062
+ inspire
2063
+ install
2064
+ intact
2065
+ interest
2066
+ into
2067
+ invest
2068
+ invite
2069
+ involve
2070
+ iron
2071
+ island
2072
+ isolate
2073
+ issue
2074
+ item
2075
+ ivory
2076
+ jacket
2077
+ jaguar
2078
+ jar
2079
+ jazz
2080
+ jealous
2081
+ jeans
2082
+ jelly
2083
+ jewel
2084
+ job
2085
+ join
2086
+ joke
2087
+ journey
2088
+ joy
2089
+ judge
2090
+ juice
2091
+ jump
2092
+ jungle
2093
+ junior
2094
+ junk
2095
+ just
2096
+ kangaroo
2097
+ keen
2098
+ keep
2099
+ ketchup
2100
+ key
2101
+ kick
2102
+ kid
2103
+ kidney
2104
+ kind
2105
+ kingdom
2106
+ kiss
2107
+ kit
2108
+ kitchen
2109
+ kite
2110
+ kitten
2111
+ kiwi
2112
+ knee
2113
+ knife
2114
+ knock
2115
+ know
2116
+ lab
2117
+ label
2118
+ labor
2119
+ ladder
2120
+ lady
2121
+ lake
2122
+ lamp
2123
+ language
2124
+ laptop
2125
+ large
2126
+ later
2127
+ latin
2128
+ laugh
2129
+ laundry
2130
+ lava
2131
+ law
2132
+ lawn
2133
+ lawsuit
2134
+ layer
2135
+ lazy
2136
+ leader
2137
+ leaf
2138
+ learn
2139
+ leave
2140
+ lecture
2141
+ left
2142
+ leg
2143
+ legal
2144
+ legend
2145
+ leisure
2146
+ lemon
2147
+ lend
2148
+ length
2149
+ lens
2150
+ leopard
2151
+ lesson
2152
+ letter
2153
+ level
2154
+ liar
2155
+ liberty
2156
+ library
2157
+ license
2158
+ life
2159
+ lift
2160
+ light
2161
+ like
2162
+ limb
2163
+ limit
2164
+ link
2165
+ lion
2166
+ liquid
2167
+ list
2168
+ little
2169
+ live
2170
+ lizard
2171
+ load
2172
+ loan
2173
+ lobster
2174
+ local
2175
+ lock
2176
+ logic
2177
+ lonely
2178
+ long
2179
+ loop
2180
+ lottery
2181
+ loud
2182
+ lounge
2183
+ love
2184
+ loyal
2185
+ lucky
2186
+ luggage
2187
+ lumber
2188
+ lunar
2189
+ lunch
2190
+ luxury
2191
+ lyrics
2192
+ machine
2193
+ mad
2194
+ magic
2195
+ magnet
2196
+ maid
2197
+ mail
2198
+ main
2199
+ major
2200
+ make
2201
+ mammal
2202
+ man
2203
+ manage
2204
+ mandate
2205
+ mango
2206
+ mansion
2207
+ manual
2208
+ maple
2209
+ marble
2210
+ march
2211
+ margin
2212
+ marine
2213
+ market
2214
+ marriage
2215
+ mask
2216
+ mass
2217
+ master
2218
+ match
2219
+ material
2220
+ math
2221
+ matrix
2222
+ matter
2223
+ maximum
2224
+ maze
2225
+ meadow
2226
+ mean
2227
+ measure
2228
+ meat
2229
+ mechanic
2230
+ medal
2231
+ media
2232
+ melody
2233
+ melt
2234
+ member
2235
+ memory
2236
+ mention
2237
+ menu
2238
+ mercy
2239
+ merge
2240
+ merit
2241
+ merry
2242
+ mesh
2243
+ message
2244
+ metal
2245
+ method
2246
+ middle
2247
+ midnight
2248
+ milk
2249
+ million
2250
+ mimic
2251
+ mind
2252
+ minimum
2253
+ minor
2254
+ minute
2255
+ miracle
2256
+ mirror
2257
+ misery
2258
+ miss
2259
+ mistake
2260
+ mix
2261
+ mixed
2262
+ mixture
2263
+ mobile
2264
+ model
2265
+ modify
2266
+ mom
2267
+ moment
2268
+ monitor
2269
+ monkey
2270
+ monster
2271
+ month
2272
+ moon
2273
+ moral
2274
+ more
2275
+ morning
2276
+ mosquito
2277
+ mother
2278
+ motion
2279
+ motor
2280
+ mountain
2281
+ mouse
2282
+ move
2283
+ movie
2284
+ much
2285
+ muffin
2286
+ mule
2287
+ multiply
2288
+ muscle
2289
+ museum
2290
+ mushroom
2291
+ music
2292
+ must
2293
+ mutual
2294
+ myself
2295
+ mystery
2296
+ myth
2297
+ naive
2298
+ name
2299
+ napkin
2300
+ narrow
2301
+ nasty
2302
+ nation
2303
+ nature
2304
+ near
2305
+ neck
2306
+ need
2307
+ negative
2308
+ neglect
2309
+ neither
2310
+ nephew
2311
+ nerve
2312
+ nest
2313
+ net
2314
+ network
2315
+ neutral
2316
+ never
2317
+ news
2318
+ next
2319
+ nice
2320
+ night
2321
+ noble
2322
+ noise
2323
+ nominee
2324
+ noodle
2325
+ normal
2326
+ north
2327
+ nose
2328
+ notable
2329
+ note
2330
+ nothing
2331
+ notice
2332
+ novel
2333
+ now
2334
+ nuclear
2335
+ number
2336
+ nurse
2337
+ nut
2338
+ oak
2339
+ obey
2340
+ object
2341
+ oblige
2342
+ obscure
2343
+ observe
2344
+ obtain
2345
+ obvious
2346
+ occur
2347
+ ocean
2348
+ october
2349
+ odor
2350
+ off
2351
+ offer
2352
+ office
2353
+ often
2354
+ oil
2355
+ okay
2356
+ old
2357
+ olive
2358
+ olympic
2359
+ omit
2360
+ once
2361
+ one
2362
+ onion
2363
+ online
2364
+ only
2365
+ open
2366
+ opera
2367
+ opinion
2368
+ oppose
2369
+ option
2370
+ orange
2371
+ orbit
2372
+ orchard
2373
+ order
2374
+ ordinary
2375
+ organ
2376
+ orient
2377
+ original
2378
+ orphan
2379
+ ostrich
2380
+ other
2381
+ outdoor
2382
+ outer
2383
+ output
2384
+ outside
2385
+ oval
2386
+ oven
2387
+ over
2388
+ own
2389
+ owner
2390
+ oxygen
2391
+ oyster
2392
+ ozone
2393
+ pact
2394
+ paddle
2395
+ page
2396
+ pair
2397
+ palace
2398
+ palm
2399
+ panda
2400
+ panel
2401
+ panic
2402
+ panther
2403
+ paper
2404
+ parade
2405
+ parent
2406
+ park
2407
+ parrot
2408
+ party
2409
+ pass
2410
+ patch
2411
+ path
2412
+ patient
2413
+ patrol
2414
+ pattern
2415
+ pause
2416
+ pave
2417
+ payment
2418
+ peace
2419
+ peanut
2420
+ pear
2421
+ peasant
2422
+ pelican
2423
+ pen
2424
+ penalty
2425
+ pencil
2426
+ people
2427
+ pepper
2428
+ perfect
2429
+ permit
2430
+ person
2431
+ pet
2432
+ phone
2433
+ photo
2434
+ phrase
2435
+ physical
2436
+ piano
2437
+ picnic
2438
+ picture
2439
+ piece
2440
+ pig
2441
+ pigeon
2442
+ pill
2443
+ pilot
2444
+ pink
2445
+ pioneer
2446
+ pipe
2447
+ pistol
2448
+ pitch
2449
+ pizza
2450
+ place
2451
+ planet
2452
+ plastic
2453
+ plate
2454
+ play
2455
+ please
2456
+ pledge
2457
+ pluck
2458
+ plug
2459
+ plunge
2460
+ poem
2461
+ poet
2462
+ point
2463
+ polar
2464
+ pole
2465
+ police
2466
+ pond
2467
+ pony
2468
+ pool
2469
+ popular
2470
+ portion
2471
+ position
2472
+ possible
2473
+ post
2474
+ potato
2475
+ pottery
2476
+ poverty
2477
+ powder
2478
+ power
2479
+ practice
2480
+ praise
2481
+ predict
2482
+ prefer
2483
+ prepare
2484
+ present
2485
+ pretty
2486
+ prevent
2487
+ price
2488
+ pride
2489
+ primary
2490
+ print
2491
+ priority
2492
+ prison
2493
+ private
2494
+ prize
2495
+ problem
2496
+ process
2497
+ produce
2498
+ profit
2499
+ program
2500
+ project
2501
+ promote
2502
+ proof
2503
+ property
2504
+ prosper
2505
+ protect
2506
+ proud
2507
+ provide
2508
+ public
2509
+ pudding
2510
+ pull
2511
+ pulp
2512
+ pulse
2513
+ pumpkin
2514
+ punch
2515
+ pupil
2516
+ puppy
2517
+ purchase
2518
+ purity
2519
+ purpose
2520
+ purse
2521
+ push
2522
+ put
2523
+ puzzle
2524
+ pyramid
2525
+ quality
2526
+ quantum
2527
+ quarter
2528
+ question
2529
+ quick
2530
+ quit
2531
+ quiz
2532
+ quote
2533
+ rabbit
2534
+ raccoon
2535
+ race
2536
+ rack
2537
+ radar
2538
+ radio
2539
+ rail
2540
+ rain
2541
+ raise
2542
+ rally
2543
+ ramp
2544
+ ranch
2545
+ random
2546
+ range
2547
+ rapid
2548
+ rare
2549
+ rate
2550
+ rather
2551
+ raven
2552
+ raw
2553
+ razor
2554
+ ready
2555
+ real
2556
+ reason
2557
+ rebel
2558
+ rebuild
2559
+ recall
2560
+ receive
2561
+ recipe
2562
+ record
2563
+ recycle
2564
+ reduce
2565
+ reflect
2566
+ reform
2567
+ refuse
2568
+ region
2569
+ regret
2570
+ regular
2571
+ reject
2572
+ relax
2573
+ release
2574
+ relief
2575
+ rely
2576
+ remain
2577
+ remember
2578
+ remind
2579
+ remove
2580
+ render
2581
+ renew
2582
+ rent
2583
+ reopen
2584
+ repair
2585
+ repeat
2586
+ replace
2587
+ report
2588
+ require
2589
+ rescue
2590
+ resemble
2591
+ resist
2592
+ resource
2593
+ response
2594
+ result
2595
+ retire
2596
+ retreat
2597
+ return
2598
+ reunion
2599
+ reveal
2600
+ review
2601
+ reward
2602
+ rhythm
2603
+ rib
2604
+ ribbon
2605
+ rice
2606
+ rich
2607
+ ride
2608
+ ridge
2609
+ rifle
2610
+ right
2611
+ rigid
2612
+ ring
2613
+ riot
2614
+ ripple
2615
+ risk
2616
+ ritual
2617
+ rival
2618
+ river
2619
+ road
2620
+ roast
2621
+ robot
2622
+ robust
2623
+ rocket
2624
+ romance
2625
+ roof
2626
+ rookie
2627
+ room
2628
+ rose
2629
+ rotate
2630
+ rough
2631
+ round
2632
+ route
2633
+ royal
2634
+ rubber
2635
+ rude
2636
+ rug
2637
+ rule
2638
+ run
2639
+ runway
2640
+ rural
2641
+ sad
2642
+ saddle
2643
+ sadness
2644
+ safe
2645
+ sail
2646
+ salad
2647
+ salmon
2648
+ salon
2649
+ salt
2650
+ salute
2651
+ same
2652
+ sample
2653
+ sand
2654
+ satisfy
2655
+ satoshi
2656
+ sauce
2657
+ sausage
2658
+ save
2659
+ say
2660
+ scale
2661
+ scan
2662
+ scare
2663
+ scatter
2664
+ scene
2665
+ scheme
2666
+ school
2667
+ science
2668
+ scissors
2669
+ scorpion
2670
+ scout
2671
+ scrap
2672
+ screen
2673
+ script
2674
+ scrub
2675
+ sea
2676
+ search
2677
+ season
2678
+ seat
2679
+ second
2680
+ secret
2681
+ section
2682
+ security
2683
+ seed
2684
+ seek
2685
+ segment
2686
+ select
2687
+ sell
2688
+ seminar
2689
+ senior
2690
+ sense
2691
+ sentence
2692
+ series
2693
+ service
2694
+ session
2695
+ settle
2696
+ setup
2697
+ seven
2698
+ shadow
2699
+ shaft
2700
+ shallow
2701
+ share
2702
+ shed
2703
+ shell
2704
+ sheriff
2705
+ shield
2706
+ shift
2707
+ shine
2708
+ ship
2709
+ shiver
2710
+ shock
2711
+ shoe
2712
+ shoot
2713
+ shop
2714
+ short
2715
+ shoulder
2716
+ shove
2717
+ shrimp
2718
+ shrug
2719
+ shuffle
2720
+ shy
2721
+ sibling
2722
+ sick
2723
+ side
2724
+ siege
2725
+ sight
2726
+ sign
2727
+ silent
2728
+ silk
2729
+ silly
2730
+ silver
2731
+ similar
2732
+ simple
2733
+ since
2734
+ sing
2735
+ siren
2736
+ sister
2737
+ situate
2738
+ six
2739
+ size
2740
+ skate
2741
+ sketch
2742
+ ski
2743
+ skill
2744
+ skin
2745
+ skirt
2746
+ skull
2747
+ slab
2748
+ slam
2749
+ sleep
2750
+ slender
2751
+ slice
2752
+ slide
2753
+ slight
2754
+ slim
2755
+ slogan
2756
+ slot
2757
+ slow
2758
+ slush
2759
+ small
2760
+ smart
2761
+ smile
2762
+ smoke
2763
+ smooth
2764
+ snack
2765
+ snake
2766
+ snap
2767
+ sniff
2768
+ snow
2769
+ soap
2770
+ soccer
2771
+ social
2772
+ sock
2773
+ soda
2774
+ soft
2775
+ solar
2776
+ soldier
2777
+ solid
2778
+ solution
2779
+ solve
2780
+ someone
2781
+ song
2782
+ soon
2783
+ sorry
2784
+ sort
2785
+ soul
2786
+ sound
2787
+ soup
2788
+ source
2789
+ south
2790
+ space
2791
+ spare
2792
+ spatial
2793
+ spawn
2794
+ speak
2795
+ special
2796
+ speed
2797
+ spell
2798
+ spend
2799
+ sphere
2800
+ spice
2801
+ spider
2802
+ spike
2803
+ spin
2804
+ spirit
2805
+ split
2806
+ spoil
2807
+ sponsor
2808
+ spoon
2809
+ sport
2810
+ spot
2811
+ spray
2812
+ spread
2813
+ spring
2814
+ spy
2815
+ square
2816
+ squeeze
2817
+ squirrel
2818
+ stable
2819
+ stadium
2820
+ staff
2821
+ stage
2822
+ stairs
2823
+ stamp
2824
+ stand
2825
+ start
2826
+ state
2827
+ stay
2828
+ steak
2829
+ steel
2830
+ stem
2831
+ step
2832
+ stereo
2833
+ stick
2834
+ still
2835
+ sting
2836
+ stock
2837
+ stomach
2838
+ stone
2839
+ stool
2840
+ story
2841
+ stove
2842
+ strategy
2843
+ street
2844
+ strike
2845
+ strong
2846
+ struggle
2847
+ student
2848
+ stuff
2849
+ stumble
2850
+ style
2851
+ subject
2852
+ submit
2853
+ subway
2854
+ success
2855
+ such
2856
+ sudden
2857
+ suffer
2858
+ sugar
2859
+ suggest
2860
+ suit
2861
+ summer
2862
+ sun
2863
+ sunny
2864
+ sunset
2865
+ super
2866
+ supply
2867
+ supreme
2868
+ sure
2869
+ surface
2870
+ surge
2871
+ surprise
2872
+ surround
2873
+ survey
2874
+ suspect
2875
+ sustain
2876
+ swallow
2877
+ swamp
2878
+ swap
2879
+ swarm
2880
+ swear
2881
+ sweet
2882
+ swift
2883
+ swim
2884
+ swing
2885
+ switch
2886
+ sword
2887
+ symbol
2888
+ symptom
2889
+ syrup
2890
+ system
2891
+ table
2892
+ tackle
2893
+ tag
2894
+ tail
2895
+ talent
2896
+ talk
2897
+ tank
2898
+ tape
2899
+ target
2900
+ task
2901
+ taste
2902
+ tattoo
2903
+ taxi
2904
+ teach
2905
+ team
2906
+ tell
2907
+ ten
2908
+ tenant
2909
+ tennis
2910
+ tent
2911
+ term
2912
+ test
2913
+ text
2914
+ thank
2915
+ that
2916
+ theme
2917
+ then
2918
+ theory
2919
+ there
2920
+ they
2921
+ thing
2922
+ this
2923
+ thought
2924
+ three
2925
+ thrive
2926
+ throw
2927
+ thumb
2928
+ thunder
2929
+ ticket
2930
+ tide
2931
+ tiger
2932
+ tilt
2933
+ timber
2934
+ time
2935
+ tiny
2936
+ tip
2937
+ tired
2938
+ tissue
2939
+ title
2940
+ toast
2941
+ tobacco
2942
+ today
2943
+ toddler
2944
+ toe
2945
+ together
2946
+ toilet
2947
+ token
2948
+ tomato
2949
+ tomorrow
2950
+ tone
2951
+ tongue
2952
+ tonight
2953
+ tool
2954
+ tooth
2955
+ top
2956
+ topic
2957
+ topple
2958
+ torch
2959
+ tornado
2960
+ tortoise
2961
+ toss
2962
+ total
2963
+ tourist
2964
+ toward
2965
+ tower
2966
+ town
2967
+ toy
2968
+ track
2969
+ trade
2970
+ traffic
2971
+ tragic
2972
+ train
2973
+ transfer
2974
+ trap
2975
+ trash
2976
+ travel
2977
+ tray
2978
+ treat
2979
+ tree
2980
+ trend
2981
+ trial
2982
+ tribe
2983
+ trick
2984
+ trigger
2985
+ trim
2986
+ trip
2987
+ trophy
2988
+ trouble
2989
+ truck
2990
+ true
2991
+ truly
2992
+ trumpet
2993
+ trust
2994
+ truth
2995
+ try
2996
+ tube
2997
+ tuition
2998
+ tumble
2999
+ tuna
3000
+ tunnel
3001
+ turkey
3002
+ turn
3003
+ turtle
3004
+ twelve
3005
+ twenty
3006
+ twice
3007
+ twin
3008
+ twist
3009
+ two
3010
+ type
3011
+ typical
3012
+ ugly
3013
+ umbrella
3014
+ unable
3015
+ unaware
3016
+ uncle
3017
+ uncover
3018
+ under
3019
+ undo
3020
+ unfair
3021
+ unfold
3022
+ unhappy
3023
+ uniform
3024
+ unique
3025
+ unit
3026
+ universe
3027
+ unknown
3028
+ unlock
3029
+ until
3030
+ unusual
3031
+ unveil
3032
+ update
3033
+ upgrade
3034
+ uphold
3035
+ upon
3036
+ upper
3037
+ upset
3038
+ urban
3039
+ urge
3040
+ usage
3041
+ use
3042
+ used
3043
+ useful
3044
+ useless
3045
+ usual
3046
+ utility
3047
+ vacant
3048
+ vacuum
3049
+ vague
3050
+ valid
3051
+ valley
3052
+ valve
3053
+ van
3054
+ vanish
3055
+ vapor
3056
+ various
3057
+ vast
3058
+ vault
3059
+ vehicle
3060
+ velvet
3061
+ vendor
3062
+ venture
3063
+ venue
3064
+ verb
3065
+ verify
3066
+ version
3067
+ very
3068
+ vessel
3069
+ veteran
3070
+ viable
3071
+ vibrant
3072
+ vicious
3073
+ victory
3074
+ video
3075
+ view
3076
+ village
3077
+ vintage
3078
+ violin
3079
+ virtual
3080
+ virus
3081
+ visa
3082
+ visit
3083
+ visual
3084
+ vital
3085
+ vivid
3086
+ vocal
3087
+ voice
3088
+ void
3089
+ volcano
3090
+ volume
3091
+ vote
3092
+ voyage
3093
+ wage
3094
+ wagon
3095
+ wait
3096
+ walk
3097
+ wall
3098
+ walnut
3099
+ want
3100
+ warfare
3101
+ warm
3102
+ warrior
3103
+ wash
3104
+ wasp
3105
+ waste
3106
+ water
3107
+ wave
3108
+ way
3109
+ wealth
3110
+ weapon
3111
+ wear
3112
+ weasel
3113
+ weather
3114
+ web
3115
+ wedding
3116
+ weekend
3117
+ weird
3118
+ welcome
3119
+ west
3120
+ wet
3121
+ whale
3122
+ what
3123
+ wheat
3124
+ wheel
3125
+ when
3126
+ where
3127
+ whip
3128
+ whisper
3129
+ wide
3130
+ width
3131
+ wife
3132
+ wild
3133
+ will
3134
+ win
3135
+ window
3136
+ wine
3137
+ wing
3138
+ wink
3139
+ winner
3140
+ winter
3141
+ wire
3142
+ wisdom
3143
+ wise
3144
+ wish
3145
+ witness
3146
+ wolf
3147
+ woman
3148
+ wonder
3149
+ wood
3150
+ wool
3151
+ word
3152
+ work
3153
+ world
3154
+ worry
3155
+ worth
3156
+ wrap
3157
+ wreck
3158
+ wrestle
3159
+ wrist
3160
+ write
3161
+ wrong
3162
+ yard
3163
+ year
3164
+ yellow
3165
+ you
3166
+ young
3167
+ youth
3168
+ zebra
3169
+ zero
3170
+ zone
3171
+ zoo`.split(`
3172
+ `)),vx={0:`ED25519`,1:`Secp256k1`,2:`Secp256r1`,3:`MultiSig`,5:`ZkLogin`,6:`Passkey`};function yx(e){let{prefix:t,words:n}=Hy.decode(e);if(t!==`suiprivkey`)throw Error(`invalid private key prefix`);let r=new Uint8Array(Hy.fromWords(n)),i=r.slice(1);return{scheme:vx[r[0]],secretKey:i}}var bx=`external-proposal-alpha-2026-05-25`,xx=`proposal-review-model-alpha-2026-05-25`,Sx=P().refine(e=>{let t=new Date(e);return!Number.isNaN(t.getTime())&&t.toISOString()===e},`Expected ISO 8601 UTC timestamp`),Cx=/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,wx=/(?:0x[0-9a-fA-F]{160,}|[A-Za-z0-9+/_=-]{160,})/,Tx=/suiprivkey1[023456789acdefghjklmnpqrstuvwxyz]+/gi,Ex=/(^|[^0-9a-fA-F])(?:0x)?[0-9a-fA-F]{64}($|[^0-9a-fA-F])/,Dx=/(^|[^A-Za-z0-9+/_=-])(?:[A-Za-z0-9+/]{43}=|[A-Za-z0-9+/]{44}|[A-Za-z0-9_-]{43,44})($|[^A-Za-z0-9+/_=-])/,Ox=/^(?:0|[1-9][0-9]*)(?:\.[0-9]+)?$/,kx=[12,15,18,21,24];function Ax(e,t,n={}){return P().min(1).max(e).superRefine((e,r)=>{(Cx.test(e)||wx.test(e)||Mx(e)||Nx(e)||!n.allowRawSecretLikeText&&Px(e))&&r.addIssue({code:`custom`,message:`${t} must not contain executable, signing, private-key, mnemonic, route-selected, or encoded secret-like material`})})}function jx(e,t){return Ax(e,t,{allowRawSecretLikeText:!0})}function Mx(e){return(e.match(Tx)??[]).some(e=>{try{return yx(e.toLowerCase()),!0}catch{return e.toLowerCase().startsWith(`suiprivkey1`)}})}function Nx(e){let t=e.normalize(`NFKD`).toLowerCase().replace(/[^a-z]+/g,` `).trim().split(/\s+/).filter(Boolean);for(let e of kx)if(!(t.length<e)){for(let n=0;n<=t.length-e;n+=1)if(gx(t.slice(n,n+e).join(` `),_x))return!0}return!1}function Px(e){return Ex.test(e)||Dx.test(e)}var Fx=Ax(80,`amountDisplay`).refine(e=>Ox.test(e)&&/[1-9]/.test(e),{message:`Expected a positive decimal display amount`}),Ix=z({kind:H([`mcp_server`,`ai_client`,`user`,`other`]),name:Ax(120,`source.name`),reference:Ax(256,`source.reference`).optional()}).strict(),Lx=z({address:Cb.optional(),label:Ax(120,`party.label`).optional()}).strict().refine(e=>e.address!==void 0||e.label!==void 0,{message:`Expected address or label`}),Rx=z({amountDisplay:Fx,amountKind:U(`display_proposal`).default(`display_proposal`),symbol:Ax(64,`amount.symbol`).optional(),coinType:jx(512,`amount.coinType`).optional(),denomination:Ax(64,`amount.denomination`).optional()}).strict(),zx=z({packageId:jx(128,`action.target.packageId`).optional(),module:Ax(128,`action.target.module`).optional(),function:Ax(128,`action.target.function`).optional(),objectId:jx(128,`action.target.objectId`).optional(),label:Ax(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`}),Bx=z({direction:H([`outgoing`,`expected_incoming`,`fee`]),amount:Rx,recipient:Lx.optional(),description:Ax(512,`assetFlow.description`).optional()}).strict(),Vx=z({id:Ax(120,`proposal.id`),source:Ix,network:U(`sui:mainnet`),createdAt:Sx,expiresAt:Sx.optional(),purpose:Ax(512,`purpose`),assumptions:R(Ax(512,`assumptions[]`)).max(20).optional(),requiredUserChoices:R(Ax(512,`requiredUserChoices[]`)).max(20).optional()}).strict(),Hx=op(`type`,[Vx.extend({type:U(`payment`),payment:z({amount:Rx,recipient:Lx,target:Ax(512,`payment.target`).optional()}).strict()}).strict(),Vx.extend({type:U(`sui_action`),action:z({actionKind:Ax(120,`action.actionKind`),target:zx,recipient:Lx.optional(),assetFlow:R(Bx).max(20).optional()}).strict()}).strict()]),Ux=z({id:P(),label:P(),status:H([`pass`,`warning`,`fail`]),message:P(),source:H([`proposal`,`adapter`,`registry`,`quote`,`wallet`,`simulation`,`network`])}).strict(),Wx=z({id:P(),label:P(),reason:P()}).strict(),Gx=z({modelVersion:U(xx),contractVersion:U(bx),proposalId:P(),proposalType:H([`payment`,`sui_action`]),proposalSource:Ix,proposedAction:z({kind:H([`payment`,`sui_action`]),title:P(),purpose:P(),network:U(`sui:mainnet`),recipient:Lx.optional(),target:B([P(),zx]).optional()}).strict(),assetFlow:z({outgoing:R(Rx),expectedIncoming:R(Rx),fees:R(Rx)}).strict(),recipients:R(Lx),targets:R(B([P(),zx])),evidenceUsed:R(z({id:P(),label:P(),source:H([`external_proposal`,`local_schema`]),summary:P()}).strict()),missingEvidence:R(Wx),requiredUserChoices:R(Wx),unsupportedClaims:R(z({id:P(),label:P(),reason:P()}).strict()),rejectedExecutableFields:R(z({fieldName:P(),reason:P()}).strict()),freshness:z({proposalCreatedAt:Sx,proposalExpiresAt:Sx.optional(),evaluatedAt:Sx,status:H([`current`,`expired`,`created_in_future`,`expiry_not_provided`]),reason:P()}).strict(),blockingChecks:R(Ux),nonSignableReason:z({code:U(`external_proposal_review_only`),message:P(),blockedCapabilities:R(P())}).strict()}).strict();z({requestedIntent:Hx,implementationStatus:U(`read_only_review_only`),contractVersion:U(bx)}).strict();var Kx=[`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`],qx=[`review_evidence_stale`,`quote_stale`,`quote_unavailable`,`simulation_transient_failure`,`review_update_failed`,`wallet_connection_changed`],Jx=[`proposed`,`awaiting_wallet`,`wallet_connected`,`ready_for_wallet_review`,`refresh_required`,`blocked`,`expired`],Yx=[`humanReadableReview`,`simulation`,`transactionReviewData`,`ptbVisualization`,`assetFlowActual`,`beforeAfterBalance`],Xx=H([`client.core.simulateTransaction`,`client.transactionExecutionService.simulateTransaction`]),Zx=`ptb-visualization-contract-alpha-2026-05-25`,Qx=[`proposedAction`,`assetFlow`,`recipients`,`targets`,`evidenceUsed`,`missingEvidence`,`requiredUserChoices`,`unsupportedClaims`,`freshness`,`blockingChecks`],$x=[`effects`,`balanceChanges`,`objectTypes`,`transaction`],eS=[`transaction_bytes`,`serialized_transaction`,`wallet_signature_request`,`private_key_material`,`wallet_authorization`,`signing_data`,`signing_readiness`,`payment_execution_readiness`],tS=[`transaction_building_input`,`wallet_authorization`,`signing_data`,`signing_readiness`,`payment_execution_readiness`,`route_recommendation`],nS=Sb,rS=`MIST`,iS=[`checkedAt`,`expiresAt`],aS=[`checkedAt`,`expiryStatus`],oS=[`rawAmount`,`asset`,`amountRole`],sS=[`minOutRaw`,`asset`,`amountRole`],cS=[`gasBudgetRaw`,`asset`,`amountRole`],lS=[`gasUsedRaw`,`asset`,`amountRole`],uS=[`checkedAt`,`gasResolutionStatus`,`unresolvedReason`],dS=[`balanceChanges`,`asset`,`amountRole`],fS=[`coinType`,`decimals`],pS=[`quoteEvidenceId`,`minOutRaw`],mS=[`maxSlippageBps`,`userSelection`],hS=[`maxSlippageBps`,`minOutRaw`],gS=[`ownerAccount`,`objects`],_S=[`pinned_sdk_registry`,`verified_mainnet_onchain_metadata`,`wallet_account_read`,`quote_evidence`,`review_time_simulation`,`validated_request_fact`,`user_explicit_choice`],vS=[`input`,`expected_output`,`minimum_output`,`gas_budget`,`gas_used`,`fee`,`balance_delta`],yS={input:{kinds:[`validated_request_fact`,`wallet_account_read`,`user_explicit_choice`],fields:oS},expected_output:{kinds:[`quote_evidence`,`review_time_simulation`],fields:oS},minimum_output:{kinds:[`quote_evidence`],fields:sS},gas_budget:{kinds:[`review_time_simulation`],fields:cS},gas_used:{kinds:[`review_time_simulation`],fields:lS},fee:{kinds:[`review_time_simulation`],fields:oS},balance_delta:{kinds:[`review_time_simulation`],fields:dS}},bS={pinned_sdk_metadata:{kinds:[`pinned_sdk_registry`],fields:fS},verified_mainnet_onchain_metadata:{kinds:[`verified_mainnet_onchain_metadata`],fields:fS}},xS={user_explicit:{kinds:[`user_explicit_choice`],fields:mS},adapter_policy_from_quote_evidence:{kinds:[`quote_evidence`],fields:hS}},SS={kinds:[`review_time_simulation`],fields:uS},CS={kinds:[`quote_evidence`],fields:pS},wS={kinds:[`validated_request_fact`],fields:iS},TS={kinds:[`validated_request_fact`],fields:aS},ES={raw_quantity_amount:{byRole:yS},unit_metadata:{bySource:bS},gas_unresolved_status:SS,expiry_status:{current:wS,expired:wS,not_provided:TS,not_applicable:TS},quote_min_out:CS,slippage_policy:{bySource:xS},object_ownership:{kinds:[`wallet_account_read`],fields:gS},simulation_result:{kinds:[`review_time_simulation`],fields:$x}},DS={gasBudgetClaimId:{factKind:`raw_quantity_amount`,role:`gas_budget`,assetCoinType:nS,rawUnit:rS},gasUsedClaimId:{factKind:`raw_quantity_amount`,role:`gas_used`,assetCoinType:nS,rawUnit:rS},gasObjectOwnershipClaimId:{factKind:`object_ownership`,ownership:`owned_by_account`}},OS=P().refine(e=>{let t=new Date(e);return!Number.isNaN(t.getTime())&&t.toISOString()===e},`Expected ISO 8601 UTC timestamp`),kS=Hb(`unsigned integer`),AS=P().regex(/^0x[0-9a-fA-F]{1,64}$/,{message:`Expected a Sui object id`}),jS=P().min(1).max(512).refine(e=>{try{return Gb(e)===e}catch{return!1}},`Expected a normalized Sui struct tag coin type`),Z=P().min(1).max(120),MS=z({symbol:P().min(1).max(64).optional(),coinType:jS}).strict(),NS=/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,PS=/(?:0x[0-9a-fA-F]{160,}|[A-Za-z0-9+/_=-]{160,})/;function FS(e,t){return P().min(1).max(e).superRefine((e,n)=>{(NS.test(e)||PS.test(e))&&n.addIssue({code:`custom`,message:`${t} must not contain executable transaction, signing, private-key, mnemonic, or long encoded material`})})}function IS(e,t){let n=new Set(e);return t.filter(e=>!n.has(e))}function LS(e,t,n,r,i){let a=IS(t,n);a.length!==0&&e.addIssue({code:`custom`,path:r,message:`${i} must include ${a.join(`, `)}`})}function RS(e,t,n,r,i){LS(e,t,n,r,i)}function zS(e,t,n){e.addIssue({code:`custom`,path:t,message:`${n} must match referenced evidence claim`})}function Q(e,t,n,r,i){t!==n&&zS(e,r,i)}function BS(e,t,n,r,i){let a=new Set(t),o=new Set(n);if(a.size!==o.size){zS(e,r,i);return}for(let t of a)if(!o.has(t)){zS(e,r,i);return}}function VS(e,t,n,r,i){(t.symbol!==n.symbol||t.coinType!==n.coinType)&&zS(e,r,i)}function HS(e,t,n,r,i){try{Gb(t.coinType)!==n&&zS(e,r,i)}catch{zS(e,r,i)}}var US=z({kind:H([`natural_language_intent`,`external_proposal`,`mcp_action_request`,`local_review_request`]),sourceId:P().min(1).max(160),capturedAt:OS,authority:U(`untrusted_until_review_regenerates_and_verifies`),userSelectionSource:H([`user_explicit`,`prior_user_explicit_context`]).optional()}).strict(),WS=z({id:Z,kind:H(_S),network:U(`sui:mainnet`),source:P().min(1).max(240),verifiedAt:OS,fields:R(P().min(1).max(120)).min(1)}).strict(),GS=op(`factKind`,[z({id:Z,factKind:U(`raw_quantity_amount`),sourceEvidenceId:Z,role:H(vS),asset:MS,rawAmount:kS}).strict(),z({id:Z,factKind:U(`unit_metadata`),sourceEvidenceId:Z,source:H([`pinned_sdk_metadata`,`verified_mainnet_onchain_metadata`]),coinType:jS,decimals:F().int().min(0).max(255)}).strict(),z({id:Z,factKind:U(`gas_unresolved_status`),sourceEvidenceId:Z,checkedAt:OS,status:U(`unresolved`),reason:P().min(1).max(240)}).strict(),z({id:Z,factKind:U(`expiry_status`),sourceEvidenceId:Z,checkedAt:OS,status:H([`current`,`expired`,`not_provided`,`not_applicable`]),expiresAt:OS.optional(),reason:P().min(1).max(240).optional()}).strict(),z({id:Z,factKind:U(`quote_min_out`),sourceEvidenceId:Z,quoteEvidenceId:P().min(1).max(120),minOutRaw:kS}).strict(),z({id:Z,factKind:U(`slippage_policy`),sourceEvidenceId:Z,policySource:H([`user_explicit`,`adapter_policy_from_quote_evidence`]),maxSlippageBps:F().int().min(0).max(1e4),minOutRaw:kS.optional()}).strict(),z({id:Z,factKind:U(`object_ownership`),sourceEvidenceId:Z,objectId:AS,ownerAccount:Cb,ownership:H([`owned_by_account`,`shared_object`,`immutable_or_package`,`not_owned_by_account`])}).strict(),z({id:Z,factKind:U(`simulation_result`),sourceEvidenceId:Z,provider:Xx,checksEnabled:U(!0),simulatedAt:OS,status:H([`success`,`failed`,`unavailable`]),requiredFields:R(H($x)).min($x.length),missingFields:R(H($x)).default([]),failureReason:P().min(1).max(240).optional()}).strict()]),KS=z({id:Z,role:H(vS),asset:MS,rawAmount:kS,unit:z({decimals:F().int().min(0).max(255),source:H([`pinned_sdk_metadata`,`verified_mainnet_onchain_metadata`]),sourceField:P().min(1).max(160),unitClaimId:Z}).strict(),amountClaimId:Z,displayOnly:z({amountDisplay:P().min(1).max(120),reason:U(`presentation_only_not_signing_input`)}).strict().optional()}).strict(),qS=z({objectId:AS,ownerAccount:Cb,ownershipClaimId:Z}).strict(),JS=z({source:U(`review_time_simulation`),checkedAt:OS,gasBudgetRaw:kS.optional(),gasBudgetClaimId:Z.optional(),gasUsedRaw:kS.optional(),gasUsedClaimId:Z.optional(),gasObjects:R(qS).optional(),unresolvedReason:P().min(1).max(240).optional(),unresolvedClaimId:Z.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`})}),YS=op(`status`,[z({checkedAt:OS,status:U(`current`),expiresAt:OS,evidenceClaimId:Z}).strict(),z({checkedAt:OS,status:U(`expired`),expiresAt:OS,evidenceClaimId:Z}).strict(),z({checkedAt:OS,status:U(`not_provided`),evidenceClaimId:Z,reason:P().min(1).max(240),expiresAt:$f().optional()}).strict(),z({checkedAt:OS,status:U(`not_applicable`),evidenceClaimId:Z,reason:P().min(1).max(240),expiresAt:$f().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`})}),XS=z({status:H([`required_and_verified`,`not_required_for_action`,`missing`,`stale`]),quoteEvidenceId:P().min(1).max(120).optional(),quoteEvidenceClaimId:Z.optional(),maxSlippageBps:F().int().min(0).max(1e4).optional(),minOutRaw:kS.optional(),policySource:H([`user_explicit`,`adapter_policy_from_quote_evidence`]).optional(),policyEvidenceClaimId:Z.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`})}),ZS=z({checkedAt:OS,ownerAccount:Cb,objects:R(z({objectId:AS,role:H([`input_coin`,`gas_coin`,`protocol_object`,`shared_object`,`receiving_object`]),ownership:H([`owned_by_account`,`shared_object`,`immutable_or_package`,`not_owned_by_account`]),evidenceClaimId:Z}).strict()).min(1)}).strict(),QS=z({evidenceClaimId:Z,transactionDigest:wb,provider:Xx,checksEnabled:U(!0),simulatedAt:OS,status:H([`success`,`failed`,`unavailable`]),requiredFields:R(H($x)).min($x.length),missingFields:R(H($x)).default([]),failureReason:P().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=>$x.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`}),$S=z({fields:R(H(Qx)).min(Qx.length),transactionDigest:wb,source:U(`review_model_or_adapter_equivalent`),purpose:U(`human_review_before_wallet_authorization`)}).strict().refine(e=>Qx.every(t=>e.fields.includes(t)),{message:`Human-readable review fields must include every required review field`}),eC=z({runtimeStatus:U(`emitted_pre_handoff`),mcpAndReviewUiMayExpose:R(H([`human_readable_review`,`ptb_visualization_artifact`,`diagnostics`,`status_checks`])).min(1),prohibited:R(H(eS)).min(1)}).strict().superRefine((e,t)=>{RS(t,e.prohibited,eS,[`prohibited`],`prohibited`)}),tC=z({schemaVersion:U(1),adapterId:P().min(1).max(120),protocol:P().min(1).max(120),actionKind:P().min(1).max(120),network:U(`sui:mainnet`),inputProvenance:US,sourceReferences:R(WS).min(1),evidenceClaims:R(GS).min(1),rawQuantities:R(KS).min(1),gas:JS,expiry:YS,slippageOrMinOut:XS,objectOwnership:ZS,simulation:QS,humanReadableReview:$S,outputBoundary:eC,reviewedTransactionDigest:wb}).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(`, `)}`}),LS(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,ES.raw_quantity_amount.byRole[e.role],[`evidenceClaims`,n,`sourceEvidenceId`],`evidenceClaims[${n}].raw_quantity_amount`),e.factKind===`unit_metadata`&&l(e.sourceEvidenceId,ES.unit_metadata.bySource[e.source],[`evidenceClaims`,n,`sourceEvidenceId`],`evidenceClaims[${n}].unit_metadata`),e.factKind===`gas_unresolved_status`&&l(e.sourceEvidenceId,ES.gas_unresolved_status,[`evidenceClaims`,n,`sourceEvidenceId`],`evidenceClaims[${n}].gas_unresolved_status`),e.factKind===`expiry_status`&&(l(e.sourceEvidenceId,ES.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,ES.quote_min_out,[`evidenceClaims`,n,`sourceEvidenceId`],`evidenceClaims[${n}].quote_min_out`),e.factKind===`slippage_policy`&&(l(e.sourceEvidenceId,ES.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,ES.object_ownership,[`evidenceClaims`,n,`sourceEvidenceId`],`evidenceClaims[${n}].object_ownership`),e.factKind===`simulation_result`&&(l(e.sourceEvidenceId,ES.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`}),$x.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`&&(Q(t,e.role,r.role,[`rawQuantities`,n,`role`],`rawQuantities[${n}].role`),Q(t,e.rawAmount,r.rawAmount,[`rawQuantities`,n,`rawAmount`],`rawQuantities[${n}].rawAmount`),VS(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`&&(Q(t,e.unit.source,i.source,[`rawQuantities`,n,`unit`,`source`],`rawQuantities[${n}].unit.source`),Q(t,e.unit.decimals,i.decimals,[`rawQuantities`,n,`unit`,`decimals`],`rawQuantities[${n}].unit.decimals`),e.asset.coinType!==void 0&&Q(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`&&(Q(t,n.role,DS.gasBudgetClaimId.role,[`gas`,`gasBudgetClaimId`],`gas.gasBudgetClaimId role`),HS(t,n.asset,DS.gasBudgetClaimId.assetCoinType,[`gas`,`gasBudgetClaimId`],`gas.gasBudgetClaimId asset`),Q(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`&&(Q(t,n.role,DS.gasUsedClaimId.role,[`gas`,`gasUsedClaimId`],`gas.gasUsedClaimId role`),HS(t,n.asset,DS.gasUsedClaimId.assetCoinType,[`gas`,`gasUsedClaimId`],`gas.gasUsedClaimId asset`),Q(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`&&(Q(t,n.status,`unresolved`,[`gas`,`unresolvedClaimId`],`gas.unresolvedClaimId status`),Q(t,e.gas.checkedAt,n.checkedAt,[`gas`,`checkedAt`],`gas.checkedAt`),Q(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`&&(Q(t,e.objectId,r.objectId,[`gas`,`gasObjects`,n,`objectId`],`gas.gasObjects[${n}].objectId`),Q(t,e.ownerAccount,r.ownerAccount,[`gas`,`gasObjects`,n,`ownerAccount`],`gas.gasObjects[${n}].ownerAccount`),Q(t,r.ownership,DS.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`&&(Q(t,e.expiry.status,d.status,[`expiry`,`status`],`expiry.status`),Q(t,e.expiry.checkedAt,d.checkedAt,[`expiry`,`checkedAt`],`expiry.checkedAt`),e.expiry.status===`current`||e.expiry.status===`expired`?Q(t,e.expiry.expiresAt,d.expiresAt,[`expiry`,`expiresAt`],`expiry.expiresAt`):Q(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`&&(Q(t,e.slippageOrMinOut.quoteEvidenceId,n.quoteEvidenceId,[`slippageOrMinOut`,`quoteEvidenceId`],`slippageOrMinOut.quoteEvidenceId`),Q(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`&&(Q(t,e.slippageOrMinOut.policySource,n.policySource,[`slippageOrMinOut`,`policySource`],`slippageOrMinOut.policySource`),Q(t,e.slippageOrMinOut.maxSlippageBps,n.maxSlippageBps,[`slippageOrMinOut`,`maxSlippageBps`],`slippageOrMinOut.maxSlippageBps`),n.policySource===`adapter_policy_from_quote_evidence`&&Q(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`&&(Q(t,n.objectId,i.objectId,[`objectOwnership`,`objects`,r,`objectId`],`objectOwnership.objects[${r}].objectId`),Q(t,e.objectOwnership.ownerAccount,i.ownerAccount,[`objectOwnership`,`ownerAccount`],`objectOwnership.ownerAccount`),Q(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`&&(Q(t,e.simulation.provider,f.provider,[`simulation`,`provider`],`simulation.provider`),Q(t,e.simulation.checksEnabled,f.checksEnabled,[`simulation`,`checksEnabled`],`simulation.checksEnabled`),Q(t,e.simulation.simulatedAt,f.simulatedAt,[`simulation`,`simulatedAt`],`simulation.simulatedAt`),Q(t,e.simulation.status,f.status,[`simulation`,`status`],`simulation.status`),BS(t,e.simulation.requiredFields,f.requiredFields,[`simulation`,`requiredFields`],`simulation.requiredFields`),BS(t,e.simulation.missingFields,f.missingFields,[`simulation`,`missingFields`],`simulation.missingFields`),Q(t,e.simulation.failureReason,f.failureReason,[`simulation`,`failureReason`],`simulation.failureReason`))}).superRefine((e,t)=>{let n=e.reviewedTransactionDigest;Q(t,e.humanReadableReview.transactionDigest,n,[`humanReadableReview`,`transactionDigest`],`humanReadableReview.transactionDigest`),Q(t,e.simulation.transactionDigest,n,[`simulation`,`transactionDigest`],`simulation.transactionDigest`)}),nC=z({contractVersion:U(Zx),artifactKind:U(`ptb_visualization`),generatedAt:OS,source:z({adapterId:P().min(1).max(120),planId:P().min(1).max(120).optional(),sourceKind:H([`review_time_generated_transaction_kind`,`review_time_ir`,`renderer_model`]),authority:U(`visualization_only_not_wallet_authorization`),renderer:z({name:P().min(1).max(120),packageName:P().min(1).max(120).optional(),version:P().min(1).max(80).optional()}).strict().optional()}).strict(),mermaid:z({diagramType:U(`flowchart`),text:FS(2e4,`mermaid.text`),namedText:FS(2e4,`mermaid.namedText`)}).strict(),diagnostics:R(z({severity:H([`info`,`warning`,`error`]),code:P().min(1).max(120),message:FS(512,`diagnostics.message`),source:H([`adapter`,`renderer`,`schema`,`simulation`])}).strict()).default([]),unsupportedUse:R(H(tS)).min(1),executableMaterial:z({included:U(!1),policy:U(`mcp_and_review_ui_outputs_must_not_include_executable_transaction_material`)}).strict()}).strict().superRefine((e,t)=>{RS(t,e.unsupportedUse,tS,[`unsupportedUse`],`unsupportedUse`)}),rC=V(P(),L()),iC=H(Kx),aC=H(qx);H([`ready_for_wallet_review`,`refresh_required`,`blocked`]);var oC=H(Jx);H([`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 sC=z({id:P(),label:P(),status:H([`pass`,`warning`,`fail`]),message:P(),source:H([`registry`,`quote`,`wallet`,`simulation`,`adapter`,`network`,`proposal`])}),cC=P().min(1),lC=`human_readable_review`,uC=`review_time_simulation`,dC=z({stageCatalogId:P().min(1),adapterId:P(),protocol:P(),actionKind:P(),completedStages:R(cC),missingStages:R(cC)}).strict().superRefine((e,t)=>{let n=fC(e.completedStages);n&&t.addIssue({code:`custom`,path:[`completedStages`],message:`completedStages contains duplicate stage '${n}'`});let r=fC(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 fC(e){let t=new Set;for(let n of e){if(t.has(n))return n;t.add(n)}}var pC=z({symbol:P(),amount:P(),coinType:P().optional(),approx:I().optional()}).strict(),mC=pC.extend({amountKind:U(`display_intent`).default(`display_intent`)}),hC=z({outgoing:R(mC),expectedIncoming:R(mC),minimumIncoming:R(mC).optional(),fees:R(mC).optional()}),gC=z({outgoing:R(pC),expectedIncoming:R(pC),minimumIncoming:R(pC).optional(),fees:R(pC).optional()}),_C=z({before:R(pC),after:R(pC),delta:R(pC)}),vC=z({computationCostRaw:Bb(`computationCostRaw`),storageCostRaw:Bb(`storageCostRaw`),storageRebateRaw:Bb(`storageRebateRaw`),nonRefundableStorageFeeRaw:Bb(`nonRefundableStorageFeeRaw`)}).strict(),yC=z({address:Cb,coinType:P().min(1).max(512).refine(e=>{try{return Gb(e)===e}catch{return!1}},`Expected a normalized Sui struct tag coin type`),amount:Wb(`balanceChanges[].amount`)}).strict(),bC=z({objectId:Cb,objectType:P().min(1).max(512).optional(),inputState:P().min(1).max(80),outputState:P().min(1).max(80),idOperation:P().min(1).max(80)}).strict(),xC=z({provider:Xx,checksEnabled:I(),success:I(),gasCostSummary:vC.optional(),balanceChanges:R(yC).optional(),objectChanges:R(bC).optional(),error:P().optional()}),SC=xC,CC=xC.extend({checksEnabled:U(!0),success:U(!0),gasCostSummary:vC,balanceChanges:R(yC),objectChanges:R(bC),error:$f().optional()}).strict(),wC=z({role:H([`input`,`expected_output`,`minimum_output`,`fee`]),symbol:P(),coinType:P().min(1).max(512).refine(e=>{try{return Gb(e),!0}catch{return!1}},`Expected a Sui struct tag coin type`),decimals:F().int().min(0).max(255),rawAmount:Bb(`rawAmount`),rawAmountSource:U(`quote_policy_evidence`),displayAmount:P().optional(),displayAmountSource:U(`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`})}),TC=z({role:H([`connected_account`,`output_recipient`]),address:Cb}).strict(),EC=z({kind:U(`swap_output_asset`),symbol:P(),coinType:P().min(1).max(512).refine(e=>{try{return Gb(e),!0}catch{return!1}},`Expected a Sui struct tag coin type`),protocol:P(),poolKey:P(),direction:H([`base_to_quote`,`quote_to_base`])}).strict(),DC=z({id:P(),label:P(),source:B([H([`registry`,`quote`,`wallet`,`simulation`,`adapter`,`network`,`proposal`]),H([`transaction_material`,`digest_commitment`])]),summary:P()}).strict(),OC=z({id:P(),label:P(),reason:P()}).strict(),kC=z({proposedAction:z({title:P(),summary:P(),actionKind:P(),adapterId:P(),protocol:P(),network:U(`sui:mainnet`)}).strict(),recipients:R(TC),evidenceUsed:R(DC),missingEvidence:R(OC),requiredUserChoices:R(OC),unsupportedClaims:R(OC),freshness:z({status:U(`current`),evaluatedAt:P(),expiresAt:P(),reason:P()}).strict(),blockingChecks:R(sC)}).strict(),AC=z({assetFlow:z({outgoing:R(wC),expectedIncoming:R(wC),minimumIncoming:R(wC),fees:R(wC)}).strict(),targets:R(EC)}).strict(),jC=op(`kind`,[kC.extend({kind:U(`swap_human_readable_review`)}).merge(AC)]),MC=z({id:P(),actionKind:P(),adapterId:P(),protocol:P(),title:P(),summary:P(),assetFlowPreview:hC,reviewModel:Gx.optional(),adapterData:rC,createdAt:P(),expiresAt:P().optional(),registryVersion:P().optional(),preliminaryChecks:R(sC).optional()}),NC=z({planId:P(),reviewSessionId:P(),account:Cb,checks:R(sC),assetFlowActual:gC.optional(),beforeAfterBalance:_C.optional(),simulation:SC.optional(),humanReadableReview:jC.optional(),transactionReviewData:tC.optional(),ptbVisualization:nC.optional(),adapterLifecycle:dC.optional(),updatedAt:P()}),PC=op(`status`,[NC.extend({status:U(`ready_for_wallet_review`),evidenceValidity:$f().optional(),blockedReason:$f().optional(),refreshReason:$f().optional()}),NC.extend({status:U(`refresh_required`),evidenceValidity:U(`invalidated`).optional(),refreshReason:aC,blockedReason:$f().optional()}),NC.extend({status:U(`blocked`),evidenceValidity:U(`invalidated`).optional(),blockedReason:iC,refreshReason:$f().optional()})]).superRefine((e,t)=>{if(e.evidenceValidity===`invalidated`)for(let n of Yx)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&&FC(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 FC(e,t){let n=e.adapterLifecycle;n&&(e.humanReadableReview!==void 0&&IC(t,n,lC,[`humanReadableReview`]),e.simulation!==void 0&&(IC(t,n,uC,[`simulation`]),IC(t,n,lC,[`simulation`]),LC(t,e.simulation,[`simulation`])),n.missingStages.includes(uC)&&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(lC)&&e.humanReadableReview!==void 0&&t.addIssue({code:`custom`,path:[`humanReadableReview`],message:`humanReadableReview public evidence cannot be present while human_readable_review is missing`}))}function IC(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 LC(e,t,n){CC.safeParse(t).success||e.addIssue({code:`custom`,path:n,message:`simulation public evidence requires a successful checks-enabled review-time simulation projection`})}var RC=z({topic:P().min(1),accounts:R(Cb).min(1),methods:R(P()),chain:U(Tb),expiresAt:P().datetime(),walletName:P().optional()}).strict(),zC=op(`status`,[z({topic:P().min(1),version:F().int().positive(),status:U(`present`),session:RC}).strict(),z({topic:P().min(1),version:F().int().positive(),status:H([`absent`,`unusable`])}).strict()]),BC=z({runId:Eb,sequence:F().int().positive(),observedAt:P().datetime()}).strict();BC.extend({sessions:R(zC)}).strict();var VC=z({kind:U(`wallet_service_recovery`),priorRunId:Eb,admittedAt:P().datetime(),updatedAt:P().datetime()}),HC=B([VC.extend({phase:U(`stopping`)}).strict(),VC.extend({phase:U(`starting`),nextRunId:Eb}).strict(),VC.extend({outcome:H([`available`,`failed`,`superseded`,`server_restarted`]),nextRunId:Eb.optional(),message:P().optional()}).strict()]),UC=`A wallet connection provides account context; it is not a transaction approval or proof of address ownership.`,WC=`Review evidence is not a safety guarantee. Only an explicit card action and wallet approval may authorize this exact transaction.`,GC=Mb.extend({pendingAction:U(`disconnect`).optional()});H([`input_required`,`awaiting_approval`,`disconnect_pending`]);var KC=z({action:U(`connect`),walletRunId:Eb}).strict(),qC=z({action:U(`disconnect`),walletRunId:Eb,connectionId:P().min(1)}).strict(),JC=z({action:U(`use_account`),walletRunId:Eb,connectionId:P().min(1),account:Cb}).strict(),YC=z({action:H([`prepare_review`,`request_signature`]),connectionId:P().min(1),walletRunId:Eb,account:Cb,reviewRevision:F().int().nonnegative()}).strict(),XC=B([KC,qC,JC,YC,z({action:H([`cancel`,`stop_connection`,`stop_waiting`,`read_result`])}).strict()]),ZC=B([KC,YC.extend({action:U(`prepare_review`)})]),QC=z({kind:H([`connect`,`review`]),mode:H([`connect`,`review`,`review_manage`]),allowedActions:R(H(rx)),actionRemainingMs:F().int().nonnegative(),nextStateReadAfterMs:F().int().nonnegative().optional(),automaticAction:ZC.optional(),observe:I(),walletAvailability:kb,walletObservation:BC.optional(),runtimeRecovery:HC.optional(),connectionConflict:Nb.optional(),usableConnectionId:P().min(1).optional(),assetReadAccount:Fb.optional(),acceptedWalletRunId:Eb.optional(),progress:Ab,boundary:H([UC,WC]),connections:R(GC),activeAccount:P().optional(),connection:GC.optional(),connectionAction:H([`connect`,`disconnect`]).optional(),review:z({reviewSessionId:P(),plan:MC,reviewRevision:F().int().nonnegative(),status:oC,account:P().optional(),preparing:I(),accountRequestPending:U(!0).optional(),error:P().optional(),state:PC.optional()}).strict().optional(),request:nx.optional(),receipt:L().optional(),netGasMist:P().regex(/^-?[0-9]+$/).optional(),observationStopped:I().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.connections.some(e=>e.pendingAction||e.status===`awaiting_approval`))&&t.addIssue({code:`custom`,path:[`usableConnectionId`],message:`The usable connection must match current connection facts.`}),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 $C(e,t,n=!1){return e.connections.filter(r=>r.connectionId===e.usableConnectionId&&r.accounts.includes(t)&&(!n||r.methods.includes(`sui_signTransaction`)))}var ew={uiOpenAccount:`ui.open_account`,uiOpenReceipt:`ui.open_receipt`,uiOpenChart:`ui.open_chart`,uiReadCard:`ui.read_card`,uiSubmitCard:`ui.submit_card`,uiActCard:`ui.act_card`,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`,accountClearActiveAccount:`account.clear_active_account`},tw=z({connectionId:P().min(1),pairingUri:P().startsWith(`wc:`),expiresAt:P().datetime()}).strict(),nw=H([`account`,`receipt`,`chart`,`connect`,`review`]),rw=z({cardId:P().min(1),kind:nw,state:H([`ready`,`running`,`closed`]),revision:F().int().nonnegative(),createdAt:P().datetime(),expiresAt:P().datetime(),input:V(P(),L()),data:L().optional(),reason:H([`completed`,`expired`,`failed`,`server_restarted`,`cancelled`]).optional(),error:P().optional()}).strict().extend({pollAfterMs:F().int().positive(),inputRemainingMs:F().int().nonnegative()}),iw=z({transactionDigest:P().min(1),pureInputs:R(z({index:F().int().nonnegative(),bytes:P().regex(/^0x(?:[0-9a-f]{2})*$/i)}).strict()).refine(e=>new Set(e.map(e=>e.index)).size===e.length,`Duplicate input index.`),ptbGraph:z({mermaid:z({text:P(),namedText:P()}).strict()}).strict().optional()}).strict(),aw=`sui-mcp/card`,ow=`sui-mcp/receipt-display`,sw=`sui-mcp/wallet-display`,cw=`suimcp://cards/`,lw=op(`kind`,[z({kind:U(`account`),status:U(`input_required`),field:U(`account`),message:P().min(1)}).strict(),z({kind:U(`receipt`),status:U(`input_required`),field:U(`digest`),message:P().min(1)}).strict()]),uw=z({cardId:P().min(1),permission:P().min(1)}).strict();uw.extend({revision:F().int().nonnegative(),input:V(P(),L())}).strict();var dw=iw.extend({cardId:P().min(1),revision:F().int().nonnegative(),attemptId:P().min(1).optional()}),fw=tw.extend({cardId:P().min(1),revision:F().int().nonnegative()}),pw={account:ew.uiOpenAccount,receipt:ew.uiOpenReceipt,chart:ew.uiOpenChart,read:ew.uiReadCard,submit:ew.uiSubmitCard,act:ew.uiActCard};function mw(e){let t=e.commandPending;if(t)return t.phase===`confirming`?`Checking the current selection…`:t.action===`request_signature`?`Waiting for a response… Ask in chat to check the status of this same transaction request. Do not request approval again while its outcome is unknown.`:`Waiting for a response… You can ask in chat to check this same request.`}function $(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:void 0}function hw(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 hw(i,void 0)}return n}function gw(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 _w(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(cw.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 vw(e){let t=$(e.structuredContent),n=t?.ok===!0?lw.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:rw.parse(i),o=$(e._meta)?.[ow],s=o===void 0?void 0:dw.parse(o);if(s&&!gw(a,s))throw Error(`Transaction details do not match this saved result.`);let c=$(e._meta)?.[sw],l=c===void 0?void 0:fw.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 yw(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 Xv({name:`sui-mcp-card`,version:`0.5.0`},{},{autoResize:!0,strict:!0}),d=new AbortController,f=e===`connect`||e===`review`,p,m,h,g,_,v,ee,te=!1,ne=!1,y,b,x={status:`unconfirmed`},re,ie,ae,S,C,oe=`continue`,se,ce,le=0,w=0,ue,de,fe,pe,T,me,he,ge,_e=!1;function ve(){if(!S||!g)return;let{input:e,basis:t}=S,n=$(g.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 g.state===`running`||g.reason===`completed`?S.delivery===`rejected`?`past`:`observed`:g.state===`closed`?`past`:`active`;if(e.walletRunId&&e.walletRunId!==$(n?.walletAvailability)?.walletRunId&&e.walletRunId!==n?.acceptedWalletRunId)return`past`;switch(e.action){case`connect`:if(g.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(g.reason===`cancelled`)return`observed`;break;case`disconnect`:if(o&&o.connectionId===e.connectionId&&(o.pendingAction===`disconnect`||g.state!==`ready`&&o.status===`disconnected`))return`observed`;break;case`use_account`:if(g.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 ye()||typeof n?.actionRemainingMs==`number`&&n.actionRemainingMs<=0||[`connect`,`disconnect`,`use_account`,`cancel`,`prepare_review`,`request_signature`].includes(String(e.action))&&(g.state!==`ready`||a?.status===`expired`)?`past`:`active`}function ye(){let e=XC.safeParse(S?.input);if(!e.success||e.data.action!==`disconnect`&&e.data.action!==`use_account`)return!1;let t=e.data,n=QC.safeParse(g?.data);if(!n.success)return!1;let r=n.data.connections.find(e=>e.connectionId===t.connectionId);return r?[`disconnected`,`failed`,`rejected`,`stopped`,`expired`].includes(r.status)||t.action===`use_account`&&r.status===`connected`&&!r.accounts.includes(t.account):!1}function be(){if(!S)return;let e=ve();e&&S.disposition!==`observed`&&(e!==`active`||S.disposition===`active`)&&(S.disposition=e),S.disposition===`observed`&&(S.retryRequired=!1)}function xe(){let e=ZC.safeParse($(g?.data)?.automaticAction);return S?.retryRequired&&e.success&&S.input.action===e.data.action?e.data:void 0}function Se(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 Ce(e){if(e!==`past`||!S)return;let t=Se(S),n=S.input.action===`read_result`&&$($(g?.data)?.request)?.requestStatus===`outcome_unknown`?` To check this transaction again, ask to open its result in chat.`:``;return`Message from an earlier ${t}: “${S.message}”${n}`}function E(){let t=$(g?.data),n=Array.isArray(t?.allowedActions)?t.allowedActions:[],r=e===`review`&&t?.mode===`review`&&!t.request&&!!p&&g?.state===`ready`,i=r&&ue!==void 0&&Date.now()>=ue,a=document.visibilityState!==`hidden`,o=d.signal.aborted||x.status===`rejected`,s=x.status===`confirmed`,c=S?.disposition,l=c===`active`,u=S?.retryRequired===!0,h=S?.input.action===`request_signature`&&c===`active`,_=oe===`paused`,v=me?.pending?.()===!0,ee=me?.displayRecovery?.(),ne=s&&!o&&!ie&&!v&&!i&&!!p,y=ne&&!C&&(!f||!(se&&(l||u||_))),le=ZC.safeParse(t?.automaticAction),de=!!g&&(f?t?.observe===!0:g.state===`running`),fe=!!m&&te&&!o&&!se&&a&&(ce===`explicit`||x.status!==`read_failed`&&(ce===`background`||x.status===`needed`&&x.automatic)),pe=a&&ne&&!re&&!se&&!ce&&!C&&!u&&!h&&!_&&f&&le.success&&n.includes(le.data.action)?le.data:void 0,T;!o&&m&&(x.status===`read_failed`||re||x.status===`unconfirmed`?T=`read`:x.status===`needed`?x.automatic||(T=`read`):ie||ee?T=`read`:p?$(t?.progress)?.status===`unavailable`||$(t?.walletAvailability)?.status===`initializing`&&$(t?.walletAvailability)?.stage===`state_sync`?T=`read`:!_&&xe()?T=`retry`:l&&!de&&!(_&&n.length>0)&&!(S?.input.action===`prepare_review`&&n.includes(`prepare_review`)&&t?.automaticAction===void 0)&&f&&(T=`read`):(g?.state!==`closed`||ie)&&(T=`read`));let he=f?t?.actionRemainingMs:g?.inputRemainingMs;T===`retry`&&i&&(T=`read`);let ge=f?t?.nextStateReadAfterMs:void 0,_e=[(f?n.length>0:g?.state===`ready`)?he:void 0,ge].filter(e=>typeof e==`number`&&Number.isFinite(e)&&e>0),ve=!o&&!!p&&a&&!b&&!re&&x.status!==`read_failed`,ye=$(t?.review),be=r&&!o&&!re&&!ie&&!l&&!u&&!_&&x.status!==`read_failed`&&(v||C?.input.action===`prepare_review`||ye?.preparing===!0||le.success&&le.data.action===`prepare_review`||x.status===`needed`&&ye?.status===`ready_for_wallet_review`);return{current:s,inputEnabled:y,permitted:n,disposition:c,read:fe,auto:pe,recover:T,paused:_,partialDisplayFailure:ee,reviewUpdatePending:be,reviewCommandDeliveryFailed:l&&S?.input.action===`prepare_review`,reviewHint:i?void 0:be?v||ye?.preparing||C?.input.action===`prepare_review`?`Updating review…`:`Checking status…`:r&&$(ye?.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,re&&x.status!==`rejected`?`This card could not be opened. Reported message: “${re}”`:void 0,l&&S?`Message for this ${Se(S)}: “${S.message}”`:void 0,ie,ee?.message],note:[ae,Ce(c)].filter(Boolean).join(` `),expiryAt:ve&&s&&_e.length?w+Math.min(..._e):void 0,poll:ve&&(de||x.status===`needed`&&!x.automatic),lifetimeAt:!o&&a&&r?ue:void 0}}function we(e){return e.recover===`retry`?S?.input.action===`connect`?`Retry connection`:`Retry review`:e.recover===`read`?`Check status`:void 0}function D(e){if(d.signal.aborted)return``;let n=e.errors.some(Boolean)||e.recover!==void 0||!!g&&!p&&g.state!==`closed`||g?.state===`closed`&&g.reason!==`completed`,r=e.errors.some(Boolean)||x.status!==`confirmed`||e.recover===`retry`;if(n&&r&&x.status!==`rejected`){if(se||e.read)return`Checking status…`;let t=we(e);if(t)return t===`Check status`?ie||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(Te(e)&&me?.selectionHint)return me.selectionHint}return t.guidance?.(g,{confirmed:e.current,readOnly:!p,recoveryNeeded:n,visibleConfirmation:me?.visibleConfirmation?.(),commandPending:f&&C&&e.current&&!e.errors.some(Boolean)&&(C.phase===`confirming`||g?.state===`ready`&&!$(g.data)?.runtimeRecovery&&!$(g.data)?.request&&!$($(g.data)?.review)?.preparing)?{phase:C.phase,action:String(C.input.action)}:void 0,approvalUnresolved:S?.input.action===`request_signature`&&e.disposition===`active`||C?.input.action===`request_signature`,automaticPaused:e.paused})??``}function Te(e=E()){return e.inputEnabled&&g?.state===`ready`&&_e}function Ee(e,t=E()){return f&&t.inputEnabled&&(e?t.permitted.includes(e.action):t.permitted.length>0)}function De(e){let u=$(g?.data),m=s.querySelector(`.review-action-feedback`),h=s.querySelector(`.review-primary-action`);if(h&&m){let e=s.querySelector(`.review-lifetime`);e?(e.append(l),m.prepend(a)):m.prepend(l,a),m.append(o)}else n.insertBefore(a,s),n.insertBefore(l,c),n.insertBefore(o,l);a.className=h?`ui-note`:`ui-error`,g?(r.textContent=t.titleFor?.(g)??t.title,i.textContent=x.status===`rejected`?`Card unavailable`:!e.current&&g.state===`ready`?h?``:!d.signal.aborted&&(se||e.read)?`Checking whether actions are available in this card…`:`Actions are unavailable until this card's status is checked.`:!p&&g.state!==`closed`?`View only.`:f?$(u?.progress)?.status===`unavailable`?`Current progress is unavailable. The last recorded state is shown.`:!u?.request&&g.state===`closed`&&[`expired`,`server_restarted`,`cancelled`].includes(g.reason??``)?`This card no longer accepts actions.`:``:g.state===`running`?`Reading the requested data…`:g.reason===`completed`?``:g.error??(g.reason===`expired`?`The time to make a selection has ended.`:g.reason===`server_restarted`?`This request ended when Sui MCP restarted.`:``)):i.textContent=b?``:x.status===`read_failed`?`Card status unavailable`:re||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 _=s.querySelector(`.review-status`);_&&(_.hidden=!!h&&(e.reviewUpdatePending||!!a.textContent));let v=s.querySelector(`.review-material-status`);if(v&&(v.textContent=v.dataset.previous===`true`||!e.current||e.reviewUpdatePending?v.dataset.previousLabel??``:v.dataset.currentLabel??``),o.textContent=[e.note,D(e)].filter(Boolean).join(` `),o.hidden=!o.textContent,_e)for(let t of s.querySelectorAll(`input, button, select`))(!f||t.tagName!==`BUTTON`||t.dataset.cardAction!==void 0)&&(t.disabled=f?!Ee(void 0,e):!Te(e));if(f)for(let t of s.querySelectorAll(`[data-card-action]`))t.disabled=!Ee({action:t.dataset.cardAction},e);h&&(e.reviewUpdatePending||h.dataset.cardAction===`request_signature`&&e.reviewCommandDeliveryFailed||h.dataset.cardAction===void 0)&&(h.disabled=!0),T&&(T.disabled=!!C||!!se)}function Oe(e){try{e?.()}catch{ie=`The card display could not be closed cleanly. Its stored information is unchanged.`}}function ke(e){if(!g||d.signal.aborted||g.state===`ready`&&x.status!==`confirmed`)return;if(g.state===`running`&&!f){ie=void 0;return}let n=f?{...$(g.data),actionRemainingMs:void 0,nextStateReadAfterMs:void 0}:void 0,r=`${oe===`paused`}:${g.revision}:${p!==void 0}:${_!==void 0}:${ee!==void 0}:${JSON.stringify(n)}`;if(r===he||r===ge&&!e)return;ge=r;let i=[...s.children],a=new Set([...s.querySelectorAll(`details`)].filter(e=>e.open).map(e=>e.querySelector(`summary`)?.textContent)),o,c=!1,l=!1;try{let e={automaticPaused:oe===`paused`,onDisplayChange:()=>Pe()};if(me?.update?.(g,e)){he=r,ie=void 0;return}if(g.state===`ready`&&p){let n=t.controls(g,e=>{Be(e)},_,ee,e);o=`node`in n?n:{node:n},c=!0}else (f||g.reason===`completed`)&&g.data!==void 0&&(o=t.result(g,_,p?e=>{Be(e)}:void 0,ee,e));s.replaceChildren(...o?[o.node]:[]),l=!0,o?.mount?.();for(let e of s.querySelectorAll(`details`))a.has(e.querySelector(`summary`)?.textContent)&&(e.open=!0)}catch{l&&s.replaceChildren(...i),Oe(o?.dispose),ie=`This card could not be displayed. Its stored information is unchanged.`;return}let u=me?.dispose;me=o,_e=c,he=r,ie=void 0,Oe(u)}function Ae(t,n,r,i,a){if(d.signal.aborted||x.status===`rejected`)return!1;if(t.kind!==e||t.cardId!==m)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:ZC.safeParse(o.automaticAction);if(l&&!l.success)throw Error(`This card could not start the next step.`);if(g&&t.revision<g.revision)return!1;if(h&&[...new Set([...Object.keys(h),...Object.keys(t.input)])].some(e=>JSON.stringify(t.input[e])!==JSON.stringify(h[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);!h&&(f||t.state!==`ready`)&&(h={...t.input});let u=r!==`preview`;return(!g||t.revision!==g.revision)&&(_=void 0,ee=void 0),g=t,be(),u&&(w=Date.now(),p&&e===`review`&&o?.mode===`review`&&!o.request&&typeof o.actionRemainingMs==`number`&&Number.isFinite(o.actionRemainingMs)&&o.actionRemainingMs>=0&&(ue=Math.min(ue??1/0,w+o.actionRemainingMs))),r===`read`&&(x.status!==`needed`||a>x.afterRead)&&(x={status:`confirmed`},re=void 0),n&&(_=n),ee=i,!0}function je(){de!==void 0&&clearTimeout(de),fe!==void 0&&clearTimeout(fe),pe!==void 0&&clearTimeout(pe),de=void 0,fe=void 0,pe=void 0,l.hidden=!0}function Me(e){let t=we(e);T?.textContent!==t&&(T?.remove(),T=void 0,t&&(T=$v(t,()=>{if(!(se||C||d.signal.aborted))if(E().recover===`retry`){let e=xe();e&&O(e)}else Ne()})));let n=s.querySelector(`.review-primary-action`),r=s.querySelector(`.review-primary-slot`);n&&(n.hidden=!!T&&!!r),T&&(T.disabled=!!se||!!C,r?(T.classList.add(`review-recovery-action`),r.append(T)):(T.classList.remove(`review-recovery-action`),c.append(T)))}async function Ne(){let e=me,t=e?.displayRecovery?.(),n=await Ie(!0);n?.kind===`accepted`&&g===n.snapshot&&x.status===`confirmed`&&!d.signal.aborted&&document.visibilityState!==`hidden`&&!ie&&e===me&&t&&e?.displayRecovery?.()===t&&(t.retry(),Pe())}function Pe(e=!1){if(b){let e=document.createElement(`p`);e.className=`ui-note`,e.textContent=b,s.replaceChildren(e)}else ke(e);let t=E();if(De(t),je(),Me(t),d.signal.aborted||x.status===`rejected`)return;t.expiryAt!==void 0&&(fe=setTimeout(()=>{Fe(),Pe()},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)pe=setTimeout(r,Math.min(1e3,t));else{let e=E();De(e),Me(e)}};r()}if(t.poll&&g){let e=w+g.pollAfterMs-Date.now();de=setTimeout(()=>{Ie(!1)},e>0?e:g.pollAfterMs)}t.read?(ce=void 0,Le()):t.auto&&(de=setTimeout(()=>{let e=E().auto;e&&He(e,`automatic`)},0))}function Fe(){x.status!==`rejected`&&x.status!==`read_failed`&&(x={status:`needed`,afterRead:le,automatic:!0})}function Ie(e){return d.signal.aborted||x.status===`rejected`||!m||!te?Promise.resolve(void 0):se?se.promise:x.status===`read_failed`&&!e?Promise.resolve(void 0):(ce=e?`explicit`:`background`,Pe(),se?.promise??Promise.resolve(void 0))}function Le(){let e=++le,t={id:e,promise:Promise.resolve().then(async()=>{try{let t,n,r;if(p){let e=vw(await Re(pw.read,p));if(!e.snapshot)throw Error(e.error??`Saved card data is unavailable.`);if(e.error)throw Error(e.error);t=e.snapshot,n=e.display,r=e.wallet}else{let e=`${cw}${encodeURIComponent(m)}`,r=(await u.readServerResource({uri:e},{signal:d.signal})).contents.find(t=>t.uri===e&&`text`in t);if(!r||!(`text`in r))throw Error(`Saved card data is unavailable.`);t=rw.parse(JSON.parse(r.text));let i=_??v;n=i&&gw(t,i)?i:void 0}if(d.signal.aborted||x.status===`rejected`)return{kind:`disposed`,id:e};let i=Ae(t,n,`read`,r,e);return v=void 0,!i&&x.status===`needed`&&e>x.afterRead&&(x={...x,automatic:!1}),Pe(i),i&&x.status===`confirmed`?{kind:`accepted`,snapshot:t,id:e}:{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(()=>{se===t&&(se=void 0),Pe()})};se=t,Pe()}async function Re(e,t){return hw(await u.callServerTool({name:e,arguments:t},{signal:d.signal}),u.getHostVersion()?.name)}function ze(e,t,n){let r=QC.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&&$C(i,String(e.account),e.action===`request_signature`).some(t=>t.connectionId===e.connectionId):e.action===`disconnect`||e.action===`use_account`?i.connections.some(t=>t.connectionId===e.connectionId&&t.status===`connected`&&!t.pendingAction&&(e.action!==`use_account`||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 O(e){if(!g||se||!Ee(e))return;let t={input:e,basis:g,phase:`confirming`};C=t;let n=await Ie(!1);C===t&&(C=void 0,n?.kind===`accepted`&&g===n.snapshot&&x.status===`confirmed`&&!d.signal.aborted&&document.visibilityState!==`hidden`&&ze(e,t.basis,n.snapshot)&&Ee(e)?await He(e):x.status!==`read_failed`&&x.status!==`rejected`&&!d.signal.aborted&&(ae=`The card state changed. Check the current selection before trying again.`),Pe())}async function Be(e){f&&(S?.disposition===`active`||S?.retryRequired||oe===`paused`)?await O(e):await He(e)}function Ve(e,t,n){S={input:e.input,basis:e.basis,message:t,delivery:n,disposition:`active`,retryRequired:e.input.action===`connect`||e.input.action===`prepare_review`},be(),[`cancel`,`disconnect`,`stop_connection`,`stop_waiting`,`use_account`].includes(String(e.input.action))&&(oe=`paused`),(f||n===`unknown`)&&Fe()}async function He(e,t=`user`){if(!g||!p||(f?!Ee(e):!Te()))return;let n={input:e,basis:g,phase:`sending`};C=n,oe=`continue`,(t===`user`||S?.disposition!==`past`)&&(S=void 0),ae=void 0,Pe();try{let t=vw(await Re(f?pw.act:pw.submit,{...p,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&&Ve(n,t.error,`rejected`),Ae(t.snapshot,t.display,`action`,t.wallet)}catch(e){!d.signal.aborted&&x.status!==`rejected`&&Ve(n,e instanceof Error?e.message:`The request could not be confirmed.`,`unknown`)}finally{C===n&&(C=void 0),Pe()}}async function Ue(){if(!(!te||y===void 0||ne)){ne=!0;try{let t=hw(y,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?.[aw];if(r!==void 0){let e=uw.safeParse(r);if(!e.success)throw Error(`This card cannot accept actions with the access information provided by the app.`);p=e.data}let i=vw(t);if(i.inputRequired){if(i.inputRequired.kind!==e||p)throw Error(`The app provided inconsistent card input information.`);b=i.inputRequired.message,Pe();return}let a=_w(t,u.getHostVersion()?.name),o=[i.snapshot?.cardId,p?.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);m=o[0];let s=i.snapshot;s&&(f||s.state!==`ready`)&&(h={...s.input}),v=i.display,s&&p&&Ae(s,i.display,`preview`,i.wallet),Fe(),Pe()}catch(e){if(d.signal.aborted)return;re=e instanceof Error?e.message:`Card data could not be read.`,Pe()}}}u.ontoolresult=e=>{if(y===void 0){y=e,Ue();return}try{let t=vw(hw(y,u.getHostVersion()?.name)).snapshot??g,n=vw(hw(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.`},Pe()}},u.onhostcontextchanged=e=>{e.theme&&(document.documentElement.dataset.theme=e.theme)};let We=()=>{document.visibilityState!==`hidden`&&p&&ne&&x.status!==`read_failed`?Ie(!1):Pe()};document.addEventListener?.(`visibilitychange`,We),u.onteardown=async()=>{if(d.signal.aborted)return{};d.abort(),C=void 0,document.removeEventListener?.(`visibilitychange`,We);let e=me?.dispose;return me=void 0,Oe(e),Pe(),{}},u.connect().then(()=>{d.signal.aborted||(te=!0,document.documentElement.dataset.theme=u.getHostContext()?.theme??`light`,Ue())}).catch(()=>{d.signal.aborted||(re=`Could not connect this card to the app.`,Pe())})}var bw=s(((e,t)=>{t.exports=function(){return typeof Promise==`function`&&Promise.prototype&&Promise.prototype.then}})),xw=s((e=>{var t,n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(e){if(!e)throw Error(`"version" cannot be null or undefined`);if(e<1||e>40)throw Error(`"version" should be in range from 1 to 40`);return e*4+17},e.getSymbolTotalCodewords=function(e){return n[e]},e.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t},e.setToSJISFunction=function(e){if(typeof e!=`function`)throw Error(`"toSJISFunc" is not a valid function.`);t=e},e.isKanjiModeEnabled=function(){return t!==void 0},e.toSJIS=function(e){return t(e)}})),Sw=s((e=>{e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(t){if(typeof t!=`string`)throw Error(`Param is not a string`);switch(t.toLowerCase()){case`l`:case`low`:return e.L;case`m`:case`medium`:return e.M;case`q`:case`quartile`:return e.Q;case`h`:case`high`:return e.H;default:throw Error(`Unknown EC Level: `+t)}}e.isValid=function(e){return e&&e.bit!==void 0&&e.bit>=0&&e.bit<4},e.from=function(n,r){if(e.isValid(n))return n;try{return t(n)}catch{return r}}})),Cw=s(((e,t)=>{function n(){this.buffer=[],this.length=0}n.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},t.exports=n})),ww=s(((e,t)=>{function n(e){if(!e||e<1)throw Error(`BitMatrix size must be defined and greater than 0`);this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}n.prototype.set=function(e,t,n,r){let i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)},n.prototype.get=function(e,t){return this.data[e*this.size+t]},n.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},n.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},t.exports=n})),Tw=s((e=>{var t=xw().getSymbolSize;e.getRowColCoords=function(e){if(e===1)return[];let n=Math.floor(e/7)+2,r=t(e),i=r===145?26:Math.ceil((r-13)/(2*n-2))*2,a=[r-7];for(let e=1;e<n-1;e++)a[e]=a[e-1]-i;return a.push(6),a.reverse()},e.getPositions=function(t){let n=[],r=e.getRowColCoords(t),i=r.length;for(let e=0;e<i;e++)for(let t=0;t<i;t++)e===0&&t===0||e===0&&t===i-1||e===i-1&&t===0||n.push([r[e],r[t]]);return n}})),Ew=s((e=>{var t=xw().getSymbolSize,n=7;e.getPositions=function(e){let r=t(e);return[[0,0],[r-n,0],[0,r-n]]}})),Dw=s((e=>{e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(e){return e!=null&&e!==``&&!isNaN(e)&&e>=0&&e<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(e){let n=e.size,r=0,i=0,a=0,o=null,s=null;for(let c=0;c<n;c++){i=a=0,o=s=null;for(let l=0;l<n;l++){let n=e.get(c,l);n===o?i++:(i>=5&&(r+=t.N1+(i-5)),o=n,i=1),n=e.get(l,c),n===s?a++:(a>=5&&(r+=t.N1+(a-5)),s=n,a=1)}i>=5&&(r+=t.N1+(i-5)),a>=5&&(r+=t.N1+(a-5))}return r},e.getPenaltyN2=function(e){let n=e.size,r=0;for(let t=0;t<n-1;t++)for(let i=0;i<n-1;i++){let n=e.get(t,i)+e.get(t,i+1)+e.get(t+1,i)+e.get(t+1,i+1);(n===4||n===0)&&r++}return r*t.N2},e.getPenaltyN3=function(e){let n=e.size,r=0,i=0,a=0;for(let t=0;t<n;t++){i=a=0;for(let o=0;o<n;o++)i=i<<1&2047|e.get(t,o),o>=10&&(i===1488||i===93)&&r++,a=a<<1&2047|e.get(o,t),o>=10&&(a===1488||a===93)&&r++}return r*t.N3},e.getPenaltyN4=function(e){let n=0,r=e.data.length;for(let t=0;t<r;t++)n+=e.data[t];return Math.abs(Math.ceil(n*100/r/5)-10)*t.N4};function n(t,n,r){switch(t){case e.Patterns.PATTERN000:return(n+r)%2==0;case e.Patterns.PATTERN001:return n%2==0;case e.Patterns.PATTERN010:return r%3==0;case e.Patterns.PATTERN011:return(n+r)%3==0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case e.Patterns.PATTERN101:return n*r%2+n*r%3==0;case e.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0;case e.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2==0;default:throw Error(`bad maskPattern:`+t)}}e.applyMask=function(e,t){let r=t.size;for(let i=0;i<r;i++)for(let a=0;a<r;a++)t.isReserved(a,i)||t.xor(a,i,n(e,a,i))},e.getBestMask=function(t,n){let r=Object.keys(e.Patterns).length,i=0,a=1/0;for(let o=0;o<r;o++){n(o),e.applyMask(o,t);let r=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(o,t),r<a&&(a=r,i=o)}return i}})),Ow=s((e=>{var t=Sw(),n=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],r=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(e,r){switch(r){case t.L:return n[(e-1)*4+0];case t.M:return n[(e-1)*4+1];case t.Q:return n[(e-1)*4+2];case t.H:return n[(e-1)*4+3];default:return}},e.getTotalCodewordsCount=function(e,n){switch(n){case t.L:return r[(e-1)*4+0];case t.M:return r[(e-1)*4+1];case t.Q:return r[(e-1)*4+2];case t.H:return r[(e-1)*4+3];default:return}}})),kw=s((e=>{var t=new Uint8Array(512),n=new Uint8Array(256);(function(){let e=1;for(let r=0;r<255;r++)t[r]=e,n[e]=r,e<<=1,e&256&&(e^=285);for(let e=255;e<512;e++)t[e]=t[e-255]})(),e.log=function(e){if(e<1)throw Error(`log(`+e+`)`);return n[e]},e.exp=function(e){return t[e]},e.mul=function(e,r){return e===0||r===0?0:t[n[e]+n[r]]}})),Aw=s((e=>{var t=kw();e.mul=function(e,n){let r=new Uint8Array(e.length+n.length-1);for(let i=0;i<e.length;i++)for(let a=0;a<n.length;a++)r[i+a]^=t.mul(e[i],n[a]);return r},e.mod=function(e,n){let r=new Uint8Array(e);for(;r.length-n.length>=0;){let e=r[0];for(let i=0;i<n.length;i++)r[i]^=t.mul(n[i],e);let i=0;for(;i<r.length&&r[i]===0;)i++;r=r.slice(i)}return r},e.generateECPolynomial=function(n){let r=new Uint8Array([1]);for(let i=0;i<n;i++)r=e.mul(r,new Uint8Array([1,t.exp(i)]));return r}})),jw=s(((e,t)=>{var n=Aw();function r(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}r.prototype.initialize=function(e){this.degree=e,this.genPoly=n.generateECPolynomial(this.degree)},r.prototype.encode=function(e){if(!this.genPoly)throw Error(`Encoder not initialized`);let t=new Uint8Array(e.length+this.degree);t.set(e);let r=n.mod(t,this.genPoly),i=this.degree-r.length;if(i>0){let e=new Uint8Array(this.degree);return e.set(r,i),e}return r},t.exports=r})),Mw=s((e=>{e.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}})),Nw=s((e=>{var t=`[0-9]+`,n=`[A-Z $%*+\\-./:]+`,r=`(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+`;r=r.replace(/u/g,`\\u`);var i=`(?:(?![A-Z0-9 $%*+\\-./:]|`+r+`)(?:.|[\r
3173
+ ]))+`;e.KANJI=new RegExp(r,`g`),e.BYTE_KANJI=RegExp(`[^A-Z0-9 $%*+\\-./:]+`,`g`),e.BYTE=new RegExp(i,`g`),e.NUMERIC=new RegExp(t,`g`),e.ALPHANUMERIC=new RegExp(n,`g`);var a=RegExp(`^`+r+`$`),o=RegExp(`^`+t+`$`),s=RegExp(`^[A-Z0-9 $%*+\\-./:]+$`);e.testKanji=function(e){return a.test(e)},e.testNumeric=function(e){return o.test(e)},e.testAlphanumeric=function(e){return s.test(e)}})),Pw=s((e=>{var t=Mw(),n=Nw();e.NUMERIC={id:`Numeric`,bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:`Alphanumeric`,bit:2,ccBits:[9,11,13]},e.BYTE={id:`Byte`,bit:4,ccBits:[8,16,16]},e.KANJI={id:`Kanji`,bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(e,n){if(!e.ccBits)throw Error(`Invalid mode: `+e);if(!t.isValid(n))throw Error(`Invalid version: `+n);return n>=1&&n<10?e.ccBits[0]:n<27?e.ccBits[1]:e.ccBits[2]},e.getBestModeForData=function(t){return n.testNumeric(t)?e.NUMERIC:n.testAlphanumeric(t)?e.ALPHANUMERIC:n.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(e){if(e&&e.id)return e.id;throw Error(`Invalid mode`)},e.isValid=function(e){return e&&e.bit&&e.ccBits};function r(t){if(typeof t!=`string`)throw Error(`Param is not a string`);switch(t.toLowerCase()){case`numeric`:return e.NUMERIC;case`alphanumeric`:return e.ALPHANUMERIC;case`kanji`:return e.KANJI;case`byte`:return e.BYTE;default:throw Error(`Unknown mode: `+t)}}e.from=function(t,n){if(e.isValid(t))return t;try{return r(t)}catch{return n}}})),Fw=s((e=>{var t=xw(),n=Ow(),r=Sw(),i=Pw(),a=Mw(),o=7973,s=t.getBCHDigit(o);function c(t,n,r){for(let i=1;i<=40;i++)if(n<=e.getCapacity(i,r,t))return i}function l(e,t){return i.getCharCountIndicator(e,t)+4}function u(e,t){let n=0;return e.forEach(function(e){let r=l(e.mode,t);n+=r+e.getBitsLength()}),n}function d(t,n){for(let r=1;r<=40;r++)if(u(t,r)<=e.getCapacity(r,n,i.MIXED))return r}e.from=function(e,t){return a.isValid(e)?parseInt(e,10):t},e.getCapacity=function(e,r,o){if(!a.isValid(e))throw Error(`Invalid QR Code version`);o===void 0&&(o=i.BYTE);let s=(t.getSymbolTotalCodewords(e)-n.getTotalCodewordsCount(e,r))*8;if(o===i.MIXED)return s;let c=s-l(o,e);switch(o){case i.NUMERIC:return Math.floor(c/10*3);case i.ALPHANUMERIC:return Math.floor(c/11*2);case i.KANJI:return Math.floor(c/13);case i.BYTE:default:return Math.floor(c/8)}},e.getBestVersionForData=function(e,t){let n,i=r.from(t,r.M);if(Array.isArray(e)){if(e.length>1)return d(e,i);if(e.length===0)return 1;n=e[0]}else n=e;return c(n.mode,n.getLength(),i)},e.getEncodedBits=function(e){if(!a.isValid(e)||e<7)throw Error(`Invalid QR Code version`);let n=e<<12;for(;t.getBCHDigit(n)-s>=0;)n^=o<<t.getBCHDigit(n)-s;return e<<12|n}})),Iw=s((e=>{var t=xw(),n=1335,r=21522,i=t.getBCHDigit(n);e.getEncodedBits=function(e,a){let o=e.bit<<3|a,s=o<<10;for(;t.getBCHDigit(s)-i>=0;)s^=n<<t.getBCHDigit(s)-i;return(o<<10|s)^r}})),Lw=s(((e,t)=>{var n=Pw();function r(e){this.mode=n.NUMERIC,this.data=e.toString()}r.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){let t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);let i=this.data.length-t;i>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,i*3+1))},t.exports=r})),Rw=s(((e,t)=>{var n=Pw(),r=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`.split(``);function i(e){this.mode=n.ALPHANUMERIC,this.data=e}i.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=r.indexOf(this.data[t])*45;n+=r.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(r.indexOf(this.data[t]),6)},t.exports=i})),zw=s(((e,t)=>{var n=Pw();function r(e){this.mode=n.BYTE,typeof e==`string`?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}r.getBitsLength=function(e){return e*8},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},t.exports=r})),Bw=s(((e,t)=>{var n=Pw(),r=xw();function i(e){this.mode=n.KANJI,this.data=e}i.getBitsLength=function(e){return e*13},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=r.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw Error(`Invalid SJIS character: `+this.data[t]+`
3174
+ Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}},t.exports=i})),Vw=s(((e,t)=>{var n={single_source_shortest_paths:function(e,t,r){var i={},a={};a[t]=0;var o=n.PriorityQueue.make();o.push(t,0);for(var s,c,l,u,d,f,p,m,h;!o.empty();)for(l in s=o.pop(),c=s.value,u=s.cost,d=e[c]||{},d)d.hasOwnProperty(l)&&(f=d[l],p=u+f,m=a[l],h=a[l]===void 0,(h||m>p)&&(a[l]=p,o.push(l,p),i[l]=c));if(r!==void 0&&a[r]===void 0){var g=[`Could not find a path from `,t,` to `,r,`.`].join(``);throw Error(g)}return i},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,t,r){var i=n.single_source_shortest_paths(e,t,r);return n.extract_shortest_path_from_predecessor_list(i,r)},PriorityQueue:{make:function(e){var t=n.PriorityQueue,r={},i;for(i in e||={},t)t.hasOwnProperty(i)&&(r[i]=t[i]);return r.queue=[],r.sorter=e.sorter||t.default_sorter,r},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};t!==void 0&&(t.exports=n)})),Hw=s((e=>{var t=Pw(),n=Lw(),r=Rw(),i=zw(),a=Bw(),o=Nw(),s=xw(),c=Vw();function l(e){return unescape(encodeURIComponent(e)).length}function u(e,t,n){let r=[],i;for(;(i=e.exec(n))!==null;)r.push({data:i[0],index:i.index,mode:t,length:i[0].length});return r}function d(e){let n=u(o.NUMERIC,t.NUMERIC,e),r=u(o.ALPHANUMERIC,t.ALPHANUMERIC,e),i,a;return s.isKanjiModeEnabled()?(i=u(o.BYTE,t.BYTE,e),a=u(o.KANJI,t.KANJI,e)):(i=u(o.BYTE_KANJI,t.BYTE,e),a=[]),n.concat(r,i,a).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function f(e,o){switch(o){case t.NUMERIC:return n.getBitsLength(e);case t.ALPHANUMERIC:return r.getBitsLength(e);case t.KANJI:return a.getBitsLength(e);case t.BYTE:return i.getBitsLength(e)}}function p(e){return e.reduce(function(e,t){let n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}function m(e){let n=[];for(let r=0;r<e.length;r++){let i=e[r];switch(i.mode){case t.NUMERIC:n.push([i,{data:i.data,mode:t.ALPHANUMERIC,length:i.length},{data:i.data,mode:t.BYTE,length:i.length}]);break;case t.ALPHANUMERIC:n.push([i,{data:i.data,mode:t.BYTE,length:i.length}]);break;case t.KANJI:n.push([i,{data:i.data,mode:t.BYTE,length:l(i.data)}]);break;case t.BYTE:n.push([{data:i.data,mode:t.BYTE,length:l(i.data)}])}}return n}function h(e,n){let r={},i={start:{}},a=[`start`];for(let o=0;o<e.length;o++){let s=e[o],c=[];for(let e=0;e<s.length;e++){let l=s[e],u=``+o+e;c.push(u),r[u]={node:l,lastCount:0},i[u]={};for(let e=0;e<a.length;e++){let o=a[e];r[o]&&r[o].node.mode===l.mode?(i[o][u]=f(r[o].lastCount+l.length,l.mode)-f(r[o].lastCount,l.mode),r[o].lastCount+=l.length):(r[o]&&(r[o].lastCount=l.length),i[o][u]=f(l.length,l.mode)+4+t.getCharCountIndicator(l.mode,n))}}a=c}for(let e=0;e<a.length;e++)i[a[e]].end=0;return{map:i,table:r}}function g(e,o){let c,l=t.getBestModeForData(e);if(c=t.from(o,l),c!==t.BYTE&&c.bit<l.bit)throw Error(`"`+e+`" cannot be encoded with mode `+t.toString(c)+`.
3175
+ Suggested mode is: `+t.toString(l));switch(c===t.KANJI&&!s.isKanjiModeEnabled()&&(c=t.BYTE),c){case t.NUMERIC:return new n(e);case t.ALPHANUMERIC:return new r(e);case t.KANJI:return new a(e);case t.BYTE:return new i(e)}}e.fromArray=function(e){return e.reduce(function(e,t){return typeof t==`string`?e.push(g(t,null)):t.data&&e.push(g(t.data,t.mode)),e},[])},e.fromString=function(t,n){let r=h(m(d(t,s.isKanjiModeEnabled())),n),i=c.find_path(r.map,`start`,`end`),a=[];for(let e=1;e<i.length-1;e++)a.push(r.table[i[e]].node);return e.fromArray(p(a))},e.rawSplit=function(t){return e.fromArray(d(t,s.isKanjiModeEnabled()))}})),Uw=s((e=>{var t=xw(),n=Sw(),r=Cw(),i=ww(),a=Tw(),o=Ew(),s=Dw(),c=Ow(),l=jw(),u=Fw(),d=Iw(),f=Pw(),p=Hw();function m(e,t){let n=e.size,r=o.getPositions(t);for(let t=0;t<r.length;t++){let i=r[t][0],a=r[t][1];for(let t=-1;t<=7;t++)if(!(i+t<=-1||n<=i+t))for(let r=-1;r<=7;r++)a+r<=-1||n<=a+r||(t>=0&&t<=6&&(r===0||r===6)||r>=0&&r<=6&&(t===0||t===6)||t>=2&&t<=4&&r>=2&&r<=4?e.set(i+t,a+r,!0,!0):e.set(i+t,a+r,!1,!0))}}function h(e){let t=e.size;for(let n=8;n<t-8;n++){let t=n%2==0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}function g(e,t){let n=a.getPositions(t);for(let t=0;t<n.length;t++){let r=n[t][0],i=n[t][1];for(let t=-2;t<=2;t++)for(let n=-2;n<=2;n++)t===-2||t===2||n===-2||n===2||t===0&&n===0?e.set(r+t,i+n,!0,!0):e.set(r+t,i+n,!1,!0)}}function _(e,t){let n=e.size,r=u.getEncodedBits(t),i,a,o;for(let t=0;t<18;t++)i=Math.floor(t/3),a=t%3+n-8-3,o=(r>>t&1)==1,e.set(i,a,o,!0),e.set(a,i,o,!0)}function v(e,t,n){let r=e.size,i=d.getEncodedBits(t,n),a,o;for(a=0;a<15;a++)o=(i>>a&1)==1,a<6?e.set(a,8,o,!0):a<8?e.set(a+1,8,o,!0):e.set(r-15+a,8,o,!0),a<8?e.set(8,r-a-1,o,!0):a<9?e.set(8,15-a-1+1,o,!0):e.set(8,15-a-1,o,!0);e.set(r-8,8,1,!0)}function ee(e,t){let n=e.size,r=-1,i=n-1,a=7,o=0;for(let s=n-1;s>0;s-=2)for(s===6&&s--;;){for(let n=0;n<2;n++)if(!e.isReserved(i,s-n)){let r=!1;o<t.length&&(r=(t[o]>>>a&1)==1),e.set(i,s-n,r),a--,a===-1&&(o++,a=7)}if(i+=r,i<0||n<=i){i-=r,r=-r;break}}}function te(e,n,i){let a=new r;i.forEach(function(t){a.put(t.mode.bit,4),a.put(t.getLength(),f.getCharCountIndicator(t.mode,e)),t.write(a)});let o=(t.getSymbolTotalCodewords(e)-c.getTotalCodewordsCount(e,n))*8;for(a.getLengthInBits()+4<=o&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(0);let s=(o-a.getLengthInBits())/8;for(let e=0;e<s;e++)a.put(e%2?17:236,8);return ne(a,e,n)}function ne(e,n,r){let i=t.getSymbolTotalCodewords(n),a=i-c.getTotalCodewordsCount(n,r),o=c.getBlocksCount(n,r),s=o-i%o,u=Math.floor(i/o),d=Math.floor(a/o),f=d+1,p=u-d,m=new l(p),h=0,g=Array(o),_=Array(o),v=0,ee=new Uint8Array(e.buffer);for(let e=0;e<o;e++){let t=e<s?d:f;g[e]=ee.slice(h,h+t),_[e]=m.encode(g[e]),h+=t,v=Math.max(v,t)}let te=new Uint8Array(i),ne=0,y,b;for(y=0;y<v;y++)for(b=0;b<o;b++)y<g[b].length&&(te[ne++]=g[b][y]);for(y=0;y<p;y++)for(b=0;b<o;b++)te[ne++]=_[b][y];return te}function y(e,n,r,a){let o;if(Array.isArray(e))o=p.fromArray(e);else if(typeof e==`string`){let t=n;if(!t){let n=p.rawSplit(e);t=u.getBestVersionForData(n,r)}o=p.fromString(e,t||40)}else throw Error(`Invalid data`);let c=u.getBestVersionForData(o,r);if(!c)throw Error(`The amount of data is too big to be stored in a QR Code`);if(!n)n=c;else if(n<c)throw Error(`
3176
+ The chosen QR Code version cannot contain this amount of data.
3177
+ Minimum version required to store current data is: `+c+`.
3178
+ `);let l=te(n,r,o),d=new i(t.getSymbolSize(n));return m(d,n),h(d),g(d,n),v(d,r,0),n>=7&&_(d,n),ee(d,l),isNaN(a)&&(a=s.getBestMask(d,v.bind(null,d,r))),s.applyMask(a,d),v(d,r,a),{modules:d,version:n,errorCorrectionLevel:r,maskPattern:a,segments:o}}e.create=function(e,r){if(e===void 0||e===``)throw Error(`No input text`);let i=n.M,a,o;return r!==void 0&&(i=n.from(r.errorCorrectionLevel,n.M),a=u.from(r.version),o=s.from(r.maskPattern),r.toSJISFunc&&t.setToSJISFunction(r.toSJISFunc)),y(e,a,i,o)}})),Ww=s((e=>{function t(e){if(typeof e==`number`&&(e=e.toString()),typeof e!=`string`)throw Error(`Color should be defined as hex string`);let t=e.slice().replace(`#`,``).split(``);if(t.length<3||t.length===5||t.length>8)throw Error(`Invalid hex color: `+e);(t.length===3||t.length===4)&&(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),t.length===6&&t.push(`F`,`F`);let n=parseInt(t.join(``),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:n&255,hex:`#`+t.slice(0,6).join(``)}}e.getOptions=function(e){e||={},e.color||={};let n=e.margin===void 0||e.margin===null||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:r,scale:r?4:i,margin:n,color:{dark:t(e.color.dark||`#000000ff`),light:t(e.color.light||`#ffffffff`)},type:e.type,rendererOpts:e.rendererOpts||{}}},e.getScale=function(e,t){return t.width&&t.width>=e+t.margin*2?t.width/(e+t.margin*2):t.scale},e.getImageWidth=function(t,n){let r=e.getScale(t,n);return Math.floor((t+n.margin*2)*r)},e.qrToImageData=function(t,n,r){let i=n.modules.size,a=n.modules.data,o=e.getScale(i,r),s=Math.floor((i+r.margin*2)*o),c=r.margin*o,l=[r.color.light,r.color.dark];for(let e=0;e<s;e++)for(let n=0;n<s;n++){let u=(e*s+n)*4,d=r.color.light;if(e>=c&&n>=c&&e<s-c&&n<s-c){let t=Math.floor((e-c)/o),r=Math.floor((n-c)/o);d=l[+!!a[t*i+r]]}t[u++]=d.r,t[u++]=d.g,t[u++]=d.b,t[u]=d.a}}})),Gw=s((e=>{var t=Ww();function n(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||={},t.height=n,t.width=n,t.style.height=n+`px`,t.style.width=n+`px`}function r(){try{return document.createElement(`canvas`)}catch{throw Error(`You need to specify a canvas element`)}}e.render=function(e,i,a){let o=a,s=i;o===void 0&&(!i||!i.getContext)&&(o=i,i=void 0),i||(s=r()),o=t.getOptions(o);let c=t.getImageWidth(e.modules.size,o),l=s.getContext(`2d`),u=l.createImageData(c,c);return t.qrToImageData(u.data,e,o),n(l,s,c),l.putImageData(u,0,0),s},e.renderToDataURL=function(t,n,r){let i=r;i===void 0&&(!n||!n.getContext)&&(i=n,n=void 0),i||={};let a=e.render(t,n,i),o=i.type||`image/png`,s=i.rendererOpts||{};return a.toDataURL(o,s.quality)}})),Kw=s((e=>{var t=Ww();function n(e,t){let n=e.a/255,r=t+`="`+e.hex+`"`;return n<1?r+` `+t+`-opacity="`+n.toFixed(2).slice(1)+`"`:r}function r(e,t,n){let r=e+t;return n!==void 0&&(r+=` `+n),r}function i(e,t,n){let i=``,a=0,o=!1,s=0;for(let c=0;c<e.length;c++){let l=Math.floor(c%t),u=Math.floor(c/t);!l&&!o&&(o=!0),e[c]?(s++,c>0&&l>0&&e[c-1]||(i+=o?r(`M`,l+n,.5+u+n):r(`m`,a,0),a=0,o=!1),l+1<t&&e[c+1]||(i+=r(`h`,s),s=0)):a++}return i}e.render=function(e,r,a){let o=t.getOptions(r),s=e.modules.size,c=e.modules.data,l=s+o.margin*2,u=o.color.light.a?`<path `+n(o.color.light,`fill`)+` d="M0 0h`+l+`v`+l+`H0z"/>`:``,d=`<path `+n(o.color.dark,`stroke`)+` d="`+i(c,s,o.margin)+`"/>`,f=`viewBox="0 0 `+l+` `+l+`"`,p=`<svg xmlns="http://www.w3.org/2000/svg" `+(o.width?`width="`+o.width+`" height="`+o.width+`" `:``)+f+` shape-rendering="crispEdges">`+u+d+`</svg>
3179
+ `;return typeof a==`function`&&a(null,p),p}})),qw=u(s((e=>{var t=bw(),n=Uw(),r=Gw(),i=Kw();function a(e,r,i,a,o){let s=[].slice.call(arguments,1),c=s.length,l=typeof s[c-1]==`function`;if(!l&&!t())throw Error(`Callback required as last argument`);if(l){if(c<2)throw Error(`Too few arguments provided`);c===2?(o=i,i=r,r=a=void 0):c===3&&(r.getContext&&o===void 0?(o=a,a=void 0):(o=a,a=i,i=r,r=void 0))}else{if(c<1)throw Error(`Too few arguments provided`);return c===1?(i=r,r=a=void 0):c===2&&!r.getContext&&(a=i,i=r,r=void 0),new Promise(function(t,o){try{t(e(n.create(i,a),r,a))}catch(e){o(e)}})}try{let t=n.create(i,a);o(null,e(t,r,a))}catch(e){o(e)}}e.create=n.create,e.toCanvas=a.bind(null,r.render),e.toDataURL=a.bind(null,r.renderToDataURL),e.toString=a.bind(null,function(e,t,n){return i.render(e,n)})}))(),1),Jw={brand:`Sui MCP`,shell:{toggleTheme:`Toggle theme`},account:{name:`Name`,address:`Account address`,balances:`Balances`,noBalances:`No token balances were returned.`,nfts:`NFTs`,noNfts:`No NFTs in the scanned objects.`,noImage:`No image`,objectsTruncated:`Some objects beyond the scanned range are omitted.`},receipt:{success:`Transaction succeeded on Sui`,failure:`Transaction failed on Sui`,sender:`Sender`,account:`Affected account`,object:`Object`,noBalanceChanges:`No balance changes were recorded.`,gasComputation:`Computation cost`,gasStorage:`Storage cost`,gasRebate:`Storage rebate`,gasBudget:`Network fee limit (gas budget)`,netFeeExplanation:`The network fee shown above includes the storage rebate. If it is negative, the rebate exceeds the computation and storage charges.`,estimatedNetFeeExplanation:`The estimated network fee shown above includes the storage rebate. If it is negative, the rebate exceeds the estimated computation and storage charges.`,gasLimitExplanation:`The gas budget limits network fee spending. It is not an estimate of the amount charged.`,gasPrice:`Gas price`,gasPayment:`Gas payment object`,graph:`Transaction graph`,graphTip:`A diagram of this transaction's programmable transaction block (PTB), derived from public on-chain data. It is a diagnostic view only, not transaction input, signing, or a safety verdict.`,graphReviewTip:`A diagram of the transaction prepared for this review and simulation. It shows what is being reviewed, not an actual result, permission to sign, or a guarantee of safety.`,graphRendering:`Rendering the transaction graph…`,graphFailed:`The transaction graph could not be rendered`,graphZoomIn:`Zoom in`,graphZoomOut:`Zoom out`,graphCenter:`Center`,graphShowAddresses:`Show full addresses`,graphShowNames:`Show readable labels`,moveCalls:`Move calls`,noMoveCalls:`No Move calls were recorded.`,inputs:`Inputs`,noInputs:`No inputs were recorded.`,inputKinds:{object:`Owned object`,shared_object:`Shared object`,receiving:`Receiving object`,pure:`Pure value`,withdrawal:`Balance withdrawal`,unknown:`Input`},bytes:`bytes`,events:`Events`,noEvents:`No events were recorded.`,objectChanges:`Object changes`,noObjectChanges:`No object changes were recorded.`},chart:{boundaryUsdc:`Prices are in USDC, not USD; dollar parity is not guaranteed.`,boundaryScope:`Historical prices, not live quotes.`,source:`Source: DeepBookV3 Indexer.`,renderedWith:`Rendered with`,library:`TradingView Lightweight Charts`},common:{walletStatusRecovery:`To restart the connection service, fully quit all apps using Sui MCP, then reopen them. This does not confirm removal of a connection in your wallet app.`,mainnet:`Sui mainnet`,retrievedAt:`Data retrieved`}},Yw={en:Jw};function Xw(){try{return(navigator.language||`en`).slice(0,2).toLowerCase()}catch{return`en`}}function Zw(e=Xw()){return Yw[e]??Jw}var Qw=Zw(),$w={awaiting_approval:`Approve the connection in your wallet`,connected:`Wallet connected`,rejected:`Connection declined`,failed:`Wallet connection unavailable`,expired:`Connection expired`,stopped:`Connection request stopped`,disconnected:`Wallet disconnected`};function eT(e,t,n,r){let i=QC.parse(e.data),a=X(`div`,`workflow-card`),o=ny(),s=!1,c,l=e=>{if(s)return;let t=c?.overview??[...a.children];c=e?{action:e.action,overview:t}:void 0,a.replaceChildren(...e?[e.node]:t),r?.onDisplayChange?.()},u=i.connections.filter(e=>e.status===`connected`),d=i.connection?i.connection.accounts.length?[i.connection]:[]:u,f=d.length>1||!!i.connectionConflict,p=u.filter(e=>e.pendingAction===void 0),m=i.connections.find(e=>e.connectionId===i.usableConnectionId),h=i.connections.some(e=>e.status===`awaiting_approval`||e.pendingAction===`disconnect`),g=!i.connection&&i.connections.some(e=>e.status===`awaiting_approval`),_=(e,n)=>{let r=[`connect`,`disconnect`,`use_account`].includes(String(n.action))?{...n,walletRunId:i.walletAvailability.walletRunId}:n,a=$v(e,()=>{s||t?.(r)},[`disconnect`].includes(String(n.action))?`danger`:n.action===`connect`?`primary`:`secondary`);return a.dataset.cardAction=String(n.action),a.disabled=!t,a};if(o.append(ry(`Network`,Qw.common.mainnet)),i.runtimeRecovery){let e=i.runtimeRecovery,t=ry(`Wallet service`,`phase`in e?e.phase===`stopping`?`Stopping the wallet connection service…`:i.walletAvailability.status===`available`?`Confirming wallet service recovery…`:i.walletAvailability.message:e.outcome===`available`?`Wallet service restarted.`:e.outcome===`superseded`?`A newer wallet service restart replaced this request.`:e.message??`This wallet service restart could not be confirmed.`);return t.setAttribute(`role`,`status`),o.append(t),o.append(X(`p`,`ui-note`,`Restarting the service does not approve a connection, revoke a connection in your wallet, or cancel a submitted transaction.`)),a.append(o),{node:a,dispose:()=>{s=!0}}}let v=ry(i.walletAvailability.status===`available`?`Status`:`Last recorded status`,i.connectionAction===`disconnect`&&i.connection?.status===`failed`?`Disconnection could not be confirmed`:(i.connection?i.connection.pendingAction===`disconnect`:h&&u.some(e=>e.pendingAction===`disconnect`))?`Disconnecting wallet…`:i.connection?$w[i.connection.status]:i.connectionConflict?`Multiple wallet connections need attention`:g?`Connection approval is pending in another card`:m?`Wallet connected`:i.walletAvailability.status===`available`?u.length?`No usable wallet connection`:`No wallet connected`:u.length?`Wallet connected`:`Connection not confirmed`);v.setAttribute(`role`,`status`),o.append(v),i.walletAvailability.status!==`available`&&(o.append(X(`p`,`ui-note`,i.walletAvailability.message)),i.connection&&!d.length&&o.append(ry(`Last updated`,sy(i.connection.updatedAt)))),i.connection?.reason&&o.append(X(`p`,`ui-note`,i.connection.reason)),i.activeAccount&&u.some(e=>e.accounts.some(e=>e!==i.activeAccount))&&o.append(ry(`Saved default address`,oy(i.activeAccount))),i.connectionConflict&&o.append(X(`p`,`ui-note`,Pb)),t&&i.allowedActions.includes(`connect`)&&e.input.intent===`manage`&&o.append(_(`Connect wallet`,{action:`connect`})),a.append(o);let ee=iy(`Details`);i.walletObservation&&ee.body.append(ry(`Last service check`,sy(i.walletObservation.observedAt))),i.connection&&!f&&ee.body.append(ry(`Connection`,i.connection.connectionId));let te=m?.accounts.map(e=>({connection:m,account:e}))??[],ne=i.assetReadAccount;if(t&&i.allowedActions.includes(`use_account`)&&te.some(e=>ne?.status!==`available`||e.account!==ne.account)){let e=ny(`Address for reads`);if(e.append(X(`p`,`ui-note`,`Choose the default address for reads. Existing transaction reviews keep their original address.`)),te.length===1){let t=te[0];e.append(_(`Use address`,{action:`use_account`,connectionId:t.connection.connectionId,account:t.account}))}else{let n=document.createElement(`form`),r=ty({choices:[{value:``,label:`Select an address`},...te.map(e=>({value:e.account,label:e.account}))]});n.className=`ui-form`,r.required=!0,r.setAttribute(`aria-label`,`Default address for reads`);let a=$v(`Use address`,()=>void 0);a.type=`submit`,a.dataset.cardAction=`use_account`,n.append(ey(`Address`,r),a),n.addEventListener(`submit`,e=>{e.preventDefault();let n=te.find(e=>e.account===r.value);!s&&n&&t?.({action:`use_account`,walletRunId:i.walletAvailability.walletRunId,connectionId:n.connection.connectionId,account:n.account})}),e.append(n)}o.append(e)}for(let n of d){let r=X(`div`);f&&r.append(ry(`Connection`,n.connectionId)),i.walletAvailability.status===`unavailable`&&r.append(ry(`Last updated`,sy(n.updatedAt))),ee.body.append(ry(`Connection expires`,sy(n.expiresAt))),r.append(ry(`Wallet`,n.walletName??`Connected wallet`)),!i.connection&&!i.connectionConflict&&i.walletAvailability.status===`available`&&!h&&n.connectionId!==i.usableConnectionId&&r.append(X(`p`,`ui-note`,`Recorded connection. It is not available for account use.`));for(let e of n.accounts)r.append(ry(`Approved address`,oy(e)));if(t&&n.status===`connected`&&!n.pendingAction&&i.allowedActions.includes(`disconnect`)){let i=X(`div`,`card-actions`),a=$v(`Disconnect`,()=>void 0,`secondary`);a.dataset.cardAction=`disconnect`,a.disabled=!t,a.addEventListener(`click`,()=>{if(s)return;let e=ny(`Disconnect wallet?`);e.append(ry(`Wallet`,n.walletName??`Wallet`),ry(`Network`,Qw.common.mainnet)),f&&e.append(ry(`Connection`,n.connectionId));for(let t of n.accounts)e.append(ry(`Account`,oy(t)));let t=$v(`Back`,()=>l(),`secondary`),r=X(`div`,`card-actions`);r.append(_(`Confirm disconnect`,{action:`disconnect`,connectionId:n.connectionId}),t),e.append(r),l({action:`disconnect`,node:e})}),i.append(a),r.append(i),e.input.intent===`disconnect`&&p.length===1&&queueMicrotask(()=>{s||a.click()})}o.append(r)}let y,b;i.connection?.status===`awaiting_approval`&&i.walletAvailability.status===`available`&&(n&&n.connectionId===i.connection.connectionId?(y=document.createElement(`canvas`),y.className=`workflow-qr`,y.hidden=!0,y.setAttribute(`role`,`img`),y.setAttribute(`aria-label`,`Wallet connection QR code`),b=X(`p`,`ui-note workflow-qr-instruction`,`Scan to connect your Sui wallet.`),b.hidden=!0,o.append(b,y)):o.append(X(`p`,`ui-note`,`The QR code is not available in this view.`))),t&&i.allowedActions.includes(`stop_connection`)&&o.append(_(`Stop connecting`,{action:`stop_connection`})),ee.body.children.length&&o.append(ee.details);let x=!1,re,ie=()=>{s||x||!y||!n||(x=!0,re=void 0,y.hidden=!0,b&&(b.hidden=!0),qw.toCanvas(y,n.pairingUri).then(()=>{s||(x=!1,y.hidden=!1,b&&(b.hidden=!1),r?.onDisplayChange?.())},()=>{s||(x=!1,re={message:`The QR code could not be displayed.`,retry:ie},r?.onDisplayChange?.())}))};return{node:a,mount:ie,displayRecovery:()=>re,visibleConfirmation:()=>c?.action,dispose:()=>{s=!0,c=void 0}}}yw(`connect`,{title:`Wallet connection`,guidance(e,t){let n=mw(t);if(n)return n;let r=QC.safeParse(e?.data);if(!t.confirmed||!r.success)return t.recoveryNeeded?`Ask in chat to check your wallet connection.`:void 0;let i=r.data;if(i.connectionAction===`disconnect`&&i.connection?.status===`failed`)return`Check the connection in your wallet app and remove it there if it is still listed. Disconnection was not confirmed here.`;if(!t.visibleConfirmation&&!i.runtimeRecovery){if(i.connectionAction===`disconnect`&&i.connection?.status===`disconnected`)return i.connectionConflict?`Ask in chat to open wallet connection controls to disconnect another saved connection.`:i.connections.some(e=>e.status===`connected`)?`To manage the remaining connection, ask in chat to open wallet connection controls.`:void 0;if(i.walletAvailability.status===`unavailable`)return Qw.common.walletStatusRecovery;if(i.connection?.pendingAction===`disconnect`||!i.connection&&i.connections.some(e=>e.pendingAction===`disconnect`))return`If this disconnection is not responding, fully quit all apps using Sui MCP, then reopen them. Check any retained connection in your wallet app.`;if(i.connectionConflict)return t.readOnly||!i.allowedActions.includes(`disconnect`)?`Ask in chat to open wallet connection controls, then disconnect the connections you no longer need.`:void 0;if(!i.connection&&i.connections.some(e=>e.status===`awaiting_approval`))return`Continue in the wallet connection card you opened first.`;if(i.connection?.status===`awaiting_approval`)return t.readOnly?`You can ask in chat to check this connection request.`:void 0;if(i.connections.some(e=>e.status===`connected`||e.pendingAction))return t.recoveryNeeded&&t.readOnly?`Ask in chat to check your wallet connection.`:void 0;if(!(i.automaticAction&&!t.automaticPaused))return i.allowedActions.includes(`connect`)&&e?.input.intent===`manage`&&!t.readOnly?void 0:`Ask in chat to connect your wallet.`}},controls:(e,t,n,r=void 0,i=void 0)=>eT(e,t,r,i),result:(e,t,n,r=void 0,i=void 0)=>eT(e,n,r,i)});</script></body></html>