@decocms/mesh 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-BpngO4aw.js → AlertCircle-BOdIbqIs.js} +1 -1
- package/dist/client/assets/{ArrowLeft-DnNeLtGd.js → ArrowLeft--mrEcY9t.js} +1 -1
- package/dist/client/assets/{Calendar-D9128Zt6.js → Calendar-FEvoSB5L.js} +1 -1
- package/dist/client/assets/{CheckCircle-pvl06c1v.js → CheckCircle-DCY43SXR.js} +1 -1
- package/dist/client/assets/{ChevronDown-DDObtPy0.js → ChevronDown-BQbWxkfW.js} +1 -1
- package/dist/client/assets/{Clock-Bhch8Dmk.js → Clock-B2GhwaAI.js} +1 -1
- package/dist/client/assets/{Copy01-D0UvfCIS.js → Copy01-CNQxqLRw.js} +1 -1
- package/dist/client/assets/{CpuChip02-CHkUken-.js → CpuChip02-BiTasWbD.js} +1 -1
- package/dist/client/assets/{DotsVertical-Dx8byzRL.js → DotsVertical-D0xC4MY4.js} +1 -1
- package/dist/client/assets/{File06-BhKX70V2.js → File06-CginPRn9.js} +1 -1
- package/dist/client/assets/{GitBranch01-B4CzhWKg.js → GitBranch01-GzTSxN9T.js} +1 -1
- package/dist/client/assets/{Inbox01-C3XiWYYM.js → Inbox01-D9KmcOy8.js} +1 -1
- package/dist/client/assets/{InfoCircle-RxSckwOE.js → InfoCircle-D8mTtKdA.js} +1 -1
- package/dist/client/assets/{Key01-Df_FMcod.js → Key01-e6YzBDTD.js} +1 -1
- package/dist/client/assets/{LinkExternal01-BKGS1ajv.js → LinkExternal01-NfJeAPv5.js} +1 -1
- package/dist/client/assets/{Loading01-BKEuP0BH.js → Loading01-CCRghFAi.js} +1 -1
- package/dist/client/assets/{Plus-QVXsH8wr.js → Plus-Bu89Xdvq.js} +1 -1
- package/dist/client/assets/{SearchMd-C9aO1pvs.js → SearchMd-9OvHwtrD.js} +1 -1
- package/dist/client/assets/Terminal-CS-oYY6X.js +1 -0
- package/dist/client/assets/{Trash01-Dz5QBjzt.js → Trash01-D6Jd-C-A.js} +1 -1
- package/dist/client/assets/{Upload01-D2Q9ozBI.js → Upload01-p9mtwUJO.js} +1 -1
- package/dist/client/assets/{X-B6099MPR.js → X-CPWcGQX-.js} +1 -1
- package/dist/client/assets/{XClose-DSJxdHjH.js → XClose-Bg1dQbEQ.js} +1 -1
- package/dist/client/assets/{alert-dialog-Bsv_icPD.js → alert-dialog-C5WdCZb7.js} +2 -2
- package/dist/client/assets/auth-PBZStuMm.js +26 -0
- package/dist/client/assets/{auth-catchall-BBXFE5-p.js → auth-catchall-BXbesUXT.js} +1 -1
- package/dist/client/assets/{avatar-DBXvQJLu.js → avatar-_r3OideF.js} +1 -1
- package/dist/client/assets/{badge-EdnCME49.js → badge-C0Qf1_P5.js} +1 -1
- package/dist/client/assets/{button-BBbnP-v9.js → button-C6Q9i6bB.js} +1 -1
- package/dist/client/assets/{card-oQzKnd4e.js → card-CkqxLUmD.js} +1 -1
- package/dist/client/assets/{checkbox-AVyYmXWI.js → checkbox-BrNiXyG6.js} +1 -1
- package/dist/client/assets/{collection-detail-CnS3NqzF.js → collection-detail-D9-8PQpD.js} +2 -2
- package/dist/client/assets/{collection-display-button-DVo3HJTi.js → collection-display-button-CapIICNB.js} +1 -1
- package/dist/client/assets/{collection-header-BpXu8Vzd.js → collection-header-xspJxL_F.js} +1 -1
- package/dist/client/assets/{collection-page-BDOciB5D.js → collection-page-BcW_e2hi.js} +1 -1
- package/dist/client/assets/{collection-search-Clscyxb6.js → collection-search-BP4aaz_a.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DrJQ8qIR.js → collection-table-wrapper-BqYO84av.js} +1 -1
- package/dist/client/assets/{connection-card-DNEpv4P8.js → connection-card-CVvPIgot.js} +1 -1
- package/dist/client/assets/connection-detail-JBGxZxkM.js +1 -0
- package/dist/client/assets/connections-B74A-ujA.js +1 -0
- package/dist/client/assets/{core-B2H4SHem.js → core-CrBooOPa.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-BgaQBiov.js → create-organization-dialog-DKjCEIp0.js} +1 -1
- package/dist/client/assets/{dialog-zSQgybFt.js → dialog-wqLP6s8y.js} +1 -1
- package/dist/client/assets/{dropdown-menu-DjQlOq7B.js → dropdown-menu-Cf1-ucSW.js} +1 -1
- package/dist/client/assets/env-vars-editor-Clod5sfm.js +1 -0
- package/dist/client/assets/{error-boundary-DnOs9ptq.js → error-boundary-BvHIgIeG.js} +1 -1
- package/dist/client/assets/extract-connection-data-CbrawrDX.js +1 -0
- package/dist/client/assets/{form-DbXTocCZ.js → form-eTDr0W4q.js} +1 -1
- package/dist/client/assets/formatDistanceToNow-BxzU2by2.js +1 -0
- package/dist/client/assets/{gateway-detail-D_Eeu8GA.js → gateway-detail-DKkqklk0.js} +1 -1
- package/dist/client/assets/{gateways-CpOqHGPf.js → gateways-BhKn-EFm.js} +1 -1
- package/dist/client/assets/{home-DH79MOVs.js → home-DI8Z0JFU.js} +1 -1
- package/dist/client/assets/index-BWHtrgim.js +1 -0
- package/dist/client/assets/index-CZLUv0P3.js +25 -0
- package/dist/client/assets/{index-DmnZvHNs.js → index-CZhZ_SKX.js} +1 -1
- package/dist/client/assets/{index-DIMg3McT.js → index-Cvm_GyUI.js} +26 -26
- package/dist/client/assets/index-Dgn6D_6Q.css +1 -0
- package/dist/client/assets/{input-DuLixXzs.js → input-CRJkMCdz.js} +1 -1
- package/dist/client/assets/json-CcI2X6AJ.js +1 -0
- package/dist/client/assets/{json-syntax-highlighter-DzeQqB3N.js → json-syntax-highlighter-B03842aR.js} +2 -2
- package/dist/client/assets/{layout-BXMoCa5p.js → layout-6uTC86JS.js} +1 -1
- package/dist/client/assets/{lazy-highlighter-DlCJvY4E.js → lazy-highlighter-BSMDGfqn.js} +1 -1
- package/dist/client/assets/{localstorage-keys-DUsAqGtJ.js → localstorage-keys-CcQMsGvY.js} +1 -1
- package/dist/client/assets/{login-DzOOW3NK.js → login-DGpMcH9O.js} +1 -1
- package/dist/client/assets/mcp-oauth-DQCyGoJw.js +1 -0
- package/dist/client/assets/{members-BcgmC3Q2.js → members-F8i7vdZR.js} +1 -1
- package/dist/client/assets/{monitoring-Ci-6RfIl.js → monitoring-C2lb19h6.js} +1 -1
- package/dist/client/assets/{oauth-callback-D7HKnm8-.js → oauth-callback-DtKkmmTQ.js} +1 -1
- package/dist/client/assets/{page-D8EXKf1f.js → page-DIUi9KSN.js} +1 -1
- package/dist/client/assets/{popover-CSmu1XQf.js → popover-Un-VhPfR.js} +1 -1
- package/dist/client/assets/prism-light-DUBQ6Lm-.js +1 -0
- package/dist/client/assets/resizable-Dnzm7-QR.js +99 -0
- package/dist/client/assets/{resource-tabs-UHT4jRlB.js → resource-tabs-BYy3Anud.js} +1 -1
- package/dist/client/assets/{select-yhQhGgIP.js → select-7BtgByyw.js} +1 -1
- package/dist/client/assets/{settings-LFw_pLDl.js → settings-rADjIbaj.js} +1 -1
- package/dist/client/assets/{shell-layout-BcDSRee_.js → shell-layout-CvvtwN5U.js} +2 -2
- package/dist/client/assets/{spinner-BZx2tm9C.js → spinner-DveBEBL5.js} +1 -1
- package/dist/client/assets/{store-QDtOTGzB.js → store-BiC_Wlh-.js} +1 -1
- package/dist/client/assets/{store-app-detail-gbykHeE1.js → store-app-detail-D_pvzf3Y.js} +1 -1
- package/dist/client/assets/{switch-7ykyI8eT.js → switch-Bbk1L7Rg.js} +1 -1
- package/dist/client/assets/{tools-list-Cg7Vdfai.js → tools-list-CUD0lf51.js} +1 -1
- package/dist/client/assets/{tooltip-C8Lb1JlD.js → tooltip-CZ2WJBN2.js} +1 -1
- package/dist/client/assets/{types-mJaNg2R7.js → types-BqGYxJd7.js} +1 -1
- package/dist/client/assets/use-binding-B349nAGS.js +38 -0
- package/dist/client/assets/{use-connection-CdhlvEhz.js → use-connection-B9lcLaJ5.js} +1 -1
- package/dist/client/assets/{use-connection-resources-DLA7YNHa.js → use-connection-resources-DixC-5o3.js} +1 -1
- package/dist/client/assets/{use-gateway-DGSuI4Pr.js → use-gateway-t9P_FOn3.js} +1 -1
- package/dist/client/assets/{use-list-state-BCOB_OIi.js → use-list-state-BYLR5Bm8.js} +1 -1
- package/dist/client/assets/{use-mcp-i7kSvKqD.js → use-mcp-Bi_aHqdL.js} +1 -1
- package/dist/client/assets/{use-members-C4WkWKg7.js → use-members-DaneJZgJ.js} +1 -1
- package/dist/client/assets/{use-mobile-DJp6G0-T.js → use-mobile-_A8zw_eW.js} +1 -1
- package/dist/client/assets/{use-organization-settings-Dhw1as1Y.js → use-organization-settings-DsAkGjtI.js} +1 -1
- package/dist/client/assets/{use-tool-call-ZoYxiLnk.js → use-tool-call-DdkMQUZF.js} +1 -1
- package/dist/client/assets/useQuery-DhoA2M5z.js +1 -0
- package/dist/client/assets/utils-CYeWJWkG.js +1 -0
- package/dist/client/assets/{view-mode-toggle-CgM7sjNw.js → view-mode-toggle-DHnvkOqv.js} +1 -1
- package/dist/client/assets/{well-known-mcp-59JQWa69.js → well-known-mcp-C4yFJOry.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +315 -351
- package/dist/server/migrate.js +206 -215
- package/dist/server/server.js +329 -365
- package/package.json +2 -3
- package/dist/client/assets/auth-DRlnk2xb.js +0 -1
- package/dist/client/assets/connection-detail-DJQ5DpK4.js +0 -1
- package/dist/client/assets/connections-B8KLLrqT.js +0 -1
- package/dist/client/assets/extract-connection-data-C4TbfE2g.js +0 -5
- package/dist/client/assets/formatDistanceToNow-DXvTo8fz.js +0 -1
- package/dist/client/assets/index-Bw8uh6yx.css +0 -1
- package/dist/client/assets/index-CGQ5MQzC.js +0 -32
- package/dist/client/assets/index-CLqXtDUO.js +0 -1
- package/dist/client/assets/json-BR-1n4UW.js +0 -1
- package/dist/client/assets/mcp-oauth-u1f9o4pW.js +0 -1
- package/dist/client/assets/prism-light-DdlubWED.js +0 -1
- package/dist/client/assets/resizable-DaIbtpXr.js +0 -124
- package/dist/client/assets/schema-DLujv0-N.js +0 -1
- package/dist/client/assets/use-binding-DGE2EQtT.js +0 -27
- package/dist/client/assets/useQuery-CMnzSYEG.js +0 -1
- package/dist/client/assets/utils-B0Sj2akX.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-Cvm_GyUI.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M12 8v4m0 4h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z"}));i.displayName="AlertCircle";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-Cvm_GyUI.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M19 12H5m0 0 7 7m-7-7 7-7"}));i.displayName="ArrowLeft";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-Cvm_GyUI.js";const a=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M21 10H3m13-8v4M8 2v4m-.2 16h8.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C21 19.72 21 18.88 21 17.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C18.72 4 17.88 4 16.2 4H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 6.28 3 7.12 3 8.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 22 6.12 22 7.8 22Z"}));a.displayName="Calendar";export{a as n};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-Cvm_GyUI.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"m7.5 12 3 3 6-6m5.5 3c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z"}));i.displayName="CheckCircle";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-Cvm_GyUI.js";const n=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"m6 9 6 6 6-6"}));n.displayName="ChevronDown";export{n as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-Cvm_GyUI.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M12 6v6l4 2m6-2c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z"}));i.displayName="Clock";export{i as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-Cvm_GyUI.js";const o=({size:e=24,color:t="currentColor",...a})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...a},r.createElement("path",{d:"M5 15c-.932 0-1.398 0-1.765-.152a2 2 0 0 1-1.083-1.083C2 13.398 2 12.932 2 12V5.2c0-1.12 0-1.68.218-2.108a2 2 0 0 1 .874-.874C3.52 2 4.08 2 5.2 2H12c.932 0 1.398 0 1.765.152a2 2 0 0 1 1.083 1.083C15 3.602 15 4.068 15 5m-2.8 17h6.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C22 20.48 22 19.92 22 18.8v-6.6c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C20.48 9 19.92 9 18.8 9h-6.6c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C9 10.52 9 11.08 9 12.2v6.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C10.52 22 11.08 22 12.2 22Z"}));o.displayName="Copy01";export{o as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-Cvm_GyUI.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M9 2v3m6-3v3M9 19v3m6-3v3m4-13h3m-3 5h3M2 9h3m-3 5h3m4.8 5h4.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C19 16.72 19 15.88 19 14.2V9.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C16.72 5 15.88 5 14.2 5H9.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C5 7.28 5 8.12 5 9.8v4.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C7.28 19 8.12 19 9.8 19Z"}));i.displayName="CpuChip02";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t}from"./index-
|
|
1
|
+
import{r as t}from"./index-Cvm_GyUI.js";const i=({size:e=24,color:r="currentColor",...o})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},t.createElement("path",{d:"M12 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0-7a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 14a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"}));i.displayName="DotsVertical";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-Cvm_GyUI.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M14 2.27V6.4c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437c.214.11.494.11 1.054.11h4.13M16 13H8m8 4H8m2-8H8m6-7H8.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C4 4.28 4 5.12 4 6.8v10.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C6.28 22 7.12 22 8.8 22h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C20 19.72 20 18.88 20 17.2V8l-6-6Z"}));i.displayName="File06";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-Cvm_GyUI.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M3 3v10.2c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 18 6.12 18 7.8 18H15m0 0a3 3 0 1 0 6 0 3 3 0 0 0-6 0ZM3 8h12m0 0a3 3 0 1 0 6 0 3 3 0 0 0-6 0Z"}));i.displayName="GitBranch01";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-Cvm_GyUI.js";const c=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M2.5 12h3.382c.685 0 1.312.387 1.618 1 .306.613.933 1 1.618 1h5.764c.685 0 1.312-.387 1.618-1 .306-.613.933-1 1.618-1H21.5M8.967 4h6.066c1.077 0 1.616 0 2.091.164a3 3 0 0 1 1.121.693c.36.352.6.833 1.082 1.796l2.166 4.333c.19.378.284.567.35.765.06.177.102.357.128.541.029.207.029.418.029.841V15.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C19.72 20 18.88 20 17.2 20H6.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C2 17.72 2 16.88 2 15.2v-2.067c0-.422 0-.634.029-.84.026-.184.068-.365.128-.541.066-.199.16-.388.35-.766l2.166-4.333c.482-.963.723-1.444 1.082-1.796a3 3 0 0 1 1.12-.693C7.352 4 7.89 4 8.968 4Z"}));c.displayName="Inbox01";export{c as n};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-Cvm_GyUI.js";const i=({size:e=24,color:o="currentColor",...t})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},r.createElement("path",{d:"M12 16v-4m0-4h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z"}));i.displayName="InfoCircle";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-Cvm_GyUI.js";const a=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M17 9a1.99 1.99 0 0 0-.586-1.414A1.994 1.994 0 0 0 15 7m0 8a6 6 0 1 0-5.946-5.193c.058.434.087.651.068.789a.853.853 0 0 1-.117.346c-.068.121-.187.24-.426.479l-5.11 5.11c-.173.173-.26.26-.322.36a1 1 0 0 0-.12.29C3 17.296 3 17.418 3 17.663V19.4c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C3.76 21 4.04 21 4.6 21H7v-2h2v-2h2l1.58-1.58c.238-.238.357-.357.478-.425a.852.852 0 0 1 .346-.117c.138-.02.355.01.789.068.264.036.533.054.807.054Z"}));a.displayName="Key01";export{a as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-Cvm_GyUI.js";const n=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M21 9V3m0 0h-6m6 0-8 8m-3-6H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 7.28 3 8.12 3 9.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 21 6.12 21 7.8 21h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C19 18.72 19 17.88 19 16.2V14"}));n.displayName="LinkExternal01";export{n};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-Cvm_GyUI.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M12 2.25v2.5M12 18v4M5.75 12h-3.5m19 0h-1.5m-1.293 6.457-.707-.707m.914-12.334L17.25 6.83M4.922 19.078 7.75 16.25M5.129 5.209 7.25 7.33"}));i.displayName="Loading01";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-Cvm_GyUI.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M12 5v14m-7-7h14"}));i.displayName="Plus";export{i as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as E,j as t,r as v}from"./index-
|
|
1
|
+
import{c as E,j as t,r as v}from"./index-Cvm_GyUI.js";import{c as N}from"./utils-CYeWJWkG.js";function y(){const s=E.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx("img",{src:"/empty-state-cards.png",alt:"",width:218,height:190,"aria-hidden":"true"}),s[0]=e):e=s[0],e}function S(s){const e=E.c(24),{image:i,title:p,description:h,actions:x,className:u,descriptionClassName:j,actionsClassName:g}=s;let l;e[0]!==u?(l=N("flex flex-1 flex-col items-center justify-center gap-8 p-4",u),e[0]=u,e[1]=l):l=e[1];let r;e[2]!==i?(r=i!==null&&t.jsx("div",{className:"flex items-center justify-center",children:i??t.jsx(y,{})}),e[2]=i,e[3]=r):r=e[3];let a;e[4]!==p?(a=t.jsx("h3",{className:"text-lg font-medium text-foreground",children:p}),e[4]=p,e[5]=a):a=e[5];let c;e[6]!==j?(c=N("text-sm text-muted-foreground text-center max-w-[300px]",j),e[6]=j,e[7]=c):c=e[7];let n;e[8]!==h||e[9]!==c?(n=t.jsx("div",{className:c,children:h}),e[8]=h,e[9]=c,e[10]=n):n=e[10];let o;e[11]!==a||e[12]!==n?(o=t.jsxs("div",{className:"flex flex-col items-center gap-2",children:[a,n]}),e[11]=a,e[12]=n,e[13]=o):o=e[13];let m;e[14]!==x||e[15]!==g?(m=x&&t.jsx("div",{className:N("flex items-center gap-2",g),children:x}),e[14]=x,e[15]=g,e[16]=m):m=e[16];let d;e[17]!==o||e[18]!==m?(d=t.jsxs("div",{className:"flex flex-col items-center gap-4",children:[o,m]}),e[17]=o,e[18]=m,e[19]=d):d=e[19];let f;return e[20]!==l||e[21]!==r||e[22]!==d?(f=t.jsxs("div",{className:l,children:[r,d]}),e[20]=l,e[21]=r,e[22]=d,e[23]=f):f=e[23],f}const k=({size:s=24,color:e="currentColor",...i})=>v.createElement("svg",{viewBox:"0 0 24 24",width:s,height:s,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},v.createElement("path",{d:"m21 21-4.35-4.35M19 11a8 8 0 1 1-16 0 8 8 0 0 1 16 0Z"}));k.displayName="SearchMd";export{S as E,k as i};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r}from"./index-Cvm_GyUI.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"m4 17 6-6-6-6m8 14h8"}));i.displayName="Terminal";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-Cvm_GyUI.js";const a=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M16 6v-.8c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C14.48 2 13.92 2 12.8 2h-1.6c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C8 3.52 8 4.08 8 5.2V6m2 5.5v5m4-5v5M3 6h18m-2 0v11.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C16.72 22 15.88 22 14.2 22H9.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C5 19.72 5 18.88 5 17.2V6"}));a.displayName="Trash01";export{a as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-Cvm_GyUI.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M21 15v1.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V15m14-7-5-5m0 0L7 8m5-5v12"}));i.displayName="Upload01";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-Cvm_GyUI.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M17 7 7 17M7 7l10 10"}));i.displayName="X";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t}from"./index-
|
|
1
|
+
import{r as t}from"./index-Cvm_GyUI.js";const i=({size:e=24,color:r="currentColor",...o})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},t.createElement("path",{d:"M12 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm7 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM5 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"}));i.displayName="DotsHorizontal";const n=({size:e=24,color:r="currentColor",...o})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},t.createElement("path",{d:"M18 6 6 18M6 6l12 12"}));n.displayName="XClose";export{i,n as s};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{r as i,
|
|
1
|
+
import{r as i,b4 as m,a1 as A,j as r,b5 as T,F as w,C as O,B as M,b6 as I,g as D,R as F,T as z,D as L,P as G,aI as k,O as B,c as n}from"./index-Cvm_GyUI.js";import{c as p}from"./utils-CYeWJWkG.js";import{b as v}from"./button-C6Q9i6bB.js";var x="AlertDialog",[H]=w(x,[m]),d=m(),N=l=>{const{__scopeAlertDialog:e,...t}=l,a=d(e);return r.jsx(F,{...a,...t,modal:!0})};N.displayName=x;var V="AlertDialogTrigger",W=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(k,{...o,...a,ref:e})});W.displayName=V;var Y="AlertDialogPortal",y=l=>{const{__scopeAlertDialog:e,...t}=l,a=d(e);return r.jsx(G,{...a,...t})};y.displayName=Y;var q="AlertDialogOverlay",_=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(B,{...o,...a,ref:e})});_.displayName=q;var f="AlertDialogContent",[J,K]=H(f),Q=I("AlertDialogContent"),j=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,children:a,...o}=l,s=d(t),c=i.useRef(null),S=A(e,c),u=i.useRef(null);return r.jsx(T,{contentName:f,titleName:b,docsSlug:"alert-dialog",children:r.jsx(J,{scope:t,cancelRef:u,children:r.jsxs(O,{role:"alertdialog",...s,...o,ref:S,onOpenAutoFocus:M(o.onOpenAutoFocus,g=>{g.preventDefault(),u.current?.focus({preventScroll:!0})}),onPointerDownOutside:g=>g.preventDefault(),onInteractOutside:g=>g.preventDefault(),children:[r.jsx(Q,{children:a}),r.jsx(X,{contentRef:c})]})})})});j.displayName=f;var b="AlertDialogTitle",h=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(z,{...o,...a,ref:e})});h.displayName=b;var R="AlertDialogDescription",C=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(L,{...o,...a,ref:e})});C.displayName=R;var U="AlertDialogAction",E=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(D,{...o,...a,ref:e})});E.displayName=U;var $="AlertDialogCancel",P=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,{cancelRef:o}=K($,t),s=d(t),c=A(e,o);return r.jsx(D,{...s,...a,ref:c})});P.displayName=$;var X=({contentRef:l})=>{const e=`\`${f}\` requires a description for the component to be accessible for screen reader users.
|
|
2
2
|
|
|
3
3
|
You can add a description to the \`${f}\` by passing a \`${R}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
4
4
|
|
|
5
5
|
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${f}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
6
6
|
|
|
7
|
-
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return i.useEffect(()=>{document.getElementById(l.current?.getAttribute("aria-describedby"))||console.warn(e)},[e,l]),null},Z=N,ee=y,te=
|
|
7
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return i.useEffect(()=>{document.getElementById(l.current?.getAttribute("aria-describedby"))||console.warn(e)},[e,l]),null},Z=N,ee=y,te=_,ae=j,oe=E,le=P,se=h,re=C;function fe(l){const e=n.c(4);let t;e[0]!==l?({...t}=l,e[0]=l,e[1]=t):t=e[1];let a;return e[2]!==t?(a=r.jsx(Z,{"data-slot":"alert-dialog",...t}),e[2]=t,e[3]=a):a=e[3],a}function ie(l){const e=n.c(4);let t;e[0]!==l?({...t}=l,e[0]=l,e[1]=t):t=e[1];let a;return e[2]!==t?(a=r.jsx(ee,{"data-slot":"alert-dialog-portal",...t}),e[2]=t,e[3]=a):a=e[3],a}function ne(l){const e=n.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let o;e[3]!==t?(o=p("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=o):o=e[4];let s;return e[5]!==a||e[6]!==o?(s=r.jsx(te,{"data-slot":"alert-dialog-overlay",className:o,...a}),e[5]=a,e[6]=o,e[7]=s):s=e[7],s}function ge(l){const e=n.c(9);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx(ne,{}),e[3]=o):o=e[3];let s;e[4]!==t?(s=p("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-xl border p-6 shadow-lg duration-200 sm:max-w-lg",t),e[4]=t,e[5]=s):s=e[5];let c;return e[6]!==a||e[7]!==s?(c=r.jsxs(ie,{children:[o,r.jsx(ae,{"data-slot":"alert-dialog-content",className:s,...a})]}),e[6]=a,e[7]=s,e[8]=c):c=e[8],c}function ue(l){const e=n.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let o;e[3]!==t?(o=p("flex flex-col gap-2 text-center sm:text-left",t),e[3]=t,e[4]=o):o=e[4];let s;return e[5]!==a||e[6]!==o?(s=r.jsx("div",{"data-slot":"alert-dialog-header",className:o,...a}),e[5]=a,e[6]=o,e[7]=s):s=e[7],s}function me(l){const e=n.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let o;e[3]!==t?(o=p("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),e[3]=t,e[4]=o):o=e[4];let s;return e[5]!==a||e[6]!==o?(s=r.jsx("div",{"data-slot":"alert-dialog-footer",className:o,...a}),e[5]=a,e[6]=o,e[7]=s):s=e[7],s}function Ae(l){const e=n.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let o;e[3]!==t?(o=p("text-lg font-semibold",t),e[3]=t,e[4]=o):o=e[4];let s;return e[5]!==a||e[6]!==o?(s=r.jsx(se,{"data-slot":"alert-dialog-title",className:o,...a}),e[5]=a,e[6]=o,e[7]=s):s=e[7],s}function De(l){const e=n.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let o;e[3]!==t?(o=p("text-muted-foreground text-sm",t),e[3]=t,e[4]=o):o=e[4];let s;return e[5]!==a||e[6]!==o?(s=r.jsx(re,{"data-slot":"alert-dialog-description",className:o,...a}),e[5]=a,e[6]=o,e[7]=s):s=e[7],s}function ve(l){const e=n.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let o;e[3]!==t?(o=p(v(),t),e[3]=t,e[4]=o):o=e[4];let s;return e[5]!==a||e[6]!==o?(s=r.jsx(oe,{className:o,...a}),e[5]=a,e[6]=o,e[7]=s):s=e[7],s}function xe(l){const e=n.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let o;e[3]!==t?(o=p(v({variant:"outline"}),t),e[3]=t,e[4]=o):o=e[4];let s;return e[5]!==a||e[6]!==o?(s=r.jsx(le,{className:o,...a}),e[5]=a,e[6]=o,e[7]=s):s=e[7],s}export{xe as A,ge as a,ue as b,Ae as c,De as d,me as e,fe as f,ve as g};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import{bB as c,bC as Mn,bD as Ye,bE as Xe,bF as oe,bG as Dn,bH as v,bI as Fn,bJ as Vn,bK as Mt,bL as Dt,bM as ee,bN as Ue,a$ as Wn,bO as Bn,bP as te,bQ as Hn,bR as J,bS as Qe,aF as Gn,bT as Jn,bU as _e,bV as fe,bW as Ae,bX as ne,bY as d,bZ as Kn,b_ as Yn,b$ as Xn,c0 as Qn,c1 as eo,c2 as to,c3 as no,c4 as et,c5 as oo,c6 as ro,c7 as io,c8 as ao,c9 as so,ca as co,cb as uo,cc as lo}from"./index-Cvm_GyUI.js";const po=/^[cC][^\s-]{8,}$/,ho=/^[0-9a-z]+$/,mo=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,_o=/^[0-9a-vA-V]{20}$/,fo=/^[A-Za-z0-9]{27}$/,go=/^[a-zA-Z0-9_-]{21}$/,vo=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,wo=/^([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})$/,St=e=>e?new 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)$/,ko=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,bo="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function So(){return new RegExp(bo,"u")}const zo=/^(?:(?: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])$/,Ro=/^(([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})$/,$o=/^((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])$/,yo=/^(([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])$/,Zo=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Ft=/^[A-Za-z0-9_-]*$/,xo=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,To=/^\+(?:[0-9]){6,14}[0-9]$/,Vt="(?:(?:\\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])))",Io=new RegExp(`^${Vt}$`);function Wt(e){const 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 Co(e){return new RegExp(`^${Wt(e)}$`)}function Po(e){const t=Wt({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-]\\d{2}:\\d{2})");const o=`${t}(?:${n.join("|")})`;return new RegExp(`^${Vt}T(?:${o})$`)}const Eo=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Uo=/^\d+$/,Ao=/^-?\d+(?:\.\d+)?/i,Oo=/true|false/i,No=/null/i,Lo=/^[^A-Z]*$/,qo=/^[^a-z]*$/,M=c("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Bt={number:"number",bigint:"bigint",object:"date"},Ht=c("$ZodCheckLessThan",(e,t)=>{M.init(e,t);const n=Bt[typeof t.value];e._zod.onattach.push(o=>{const r=o._zod.bag,a=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<a&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:n,code:"too_big",maximum:t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Gt=c("$ZodCheckGreaterThan",(e,t)=>{M.init(e,t);const n=Bt[typeof t.value];e._zod.onattach.push(o=>{const r=o._zod.bag,a=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>a&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:n,code:"too_small",minimum:t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),jo=c("$ZodCheckMultipleOf",(e,t)=>{M.init(e,t),e._zod.onattach.push(n=>{var o;(o=n._zod.bag).multipleOf??(o.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):Mn(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})}}),Mo=c("$ZodCheckNumberFormat",(e,t)=>{M.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),o=n?"int":"number",[r,a]=Dn[t.format];e._zod.onattach.push(s=>{const u=s._zod.bag;u.format=t.format,u.minimum=r,u.maximum=a,n&&(u.pattern=Uo)}),e._zod.check=s=>{const u=s.value;if(n){if(!Number.isInteger(u)){s.issues.push({expected:o,format:t.format,code:"invalid_type",input:u,inst:e});return}if(!Number.isSafeInteger(u)){u>0?s.issues.push({input:u,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,continue:!t.abort}):s.issues.push({input:u,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,continue:!t.abort});return}}u<r&&s.issues.push({origin:"number",input:u,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),u>a&&s.issues.push({origin:"number",input:u,code:"too_big",maximum:a,inst:e})}}),Do=c("$ZodCheckMaxLength",(e,t)=>{var n;M.init(e,t),(n=e._zod.def).when??(n.when=o=>{const r=o.value;return!Ye(r)&&r.length!==void 0}),e._zod.onattach.push(o=>{const r=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{const r=o.value;if(r.length<=t.maximum)return;const s=Xe(r);o.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Fo=c("$ZodCheckMinLength",(e,t)=>{var n;M.init(e,t),(n=e._zod.def).when??(n.when=o=>{const r=o.value;return!Ye(r)&&r.length!==void 0}),e._zod.onattach.push(o=>{const r=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{const r=o.value;if(r.length>=t.minimum)return;const s=Xe(r);o.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Vo=c("$ZodCheckLengthEquals",(e,t)=>{var n;M.init(e,t),(n=e._zod.def).when??(n.when=o=>{const r=o.value;return!Ye(r)&&r.length!==void 0}),e._zod.onattach.push(o=>{const r=o._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=o=>{const r=o.value,a=r.length;if(a===t.length)return;const s=Xe(r),u=a>t.length;o.issues.push({origin:s,...u?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Re=c("$ZodCheckStringFormat",(e,t)=>{var n,o;M.init(e,t),e._zod.onattach.push(r=>{const a=r._zod.bag;a.format=t.format,t.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),Wo=c("$ZodCheckRegex",(e,t)=>{Re.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})}}),Bo=c("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Lo),Re.init(e,t)}),Ho=c("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=qo),Re.init(e,t)}),Go=c("$ZodCheckIncludes",(e,t)=>{M.init(e,t);const n=oe(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=o,e._zod.onattach.push(r=>{const a=r._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(o)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),Jo=c("$ZodCheckStartsWith",(e,t)=>{M.init(e,t);const n=new RegExp(`^${oe(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{const r=o._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),Ko=c("$ZodCheckEndsWith",(e,t)=>{M.init(e,t);const n=new RegExp(`.*${oe(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{const r=o._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}}),Yo=c("$ZodCheckOverwrite",(e,t)=>{M.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Xo{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const o=t.split(`
|
|
2
|
+
`).filter(s=>s),r=Math.min(...o.map(s=>s.length-s.trimStart().length)),a=o.map(s=>s.slice(r)).map(s=>" ".repeat(this.indent*2)+s);for(const s of a)this.content.push(s)}compile(){const t=Function,n=this?.args,r=[...(this?.content??[""]).map(a=>` ${a}`)];return new t(...n,r.join(`
|
|
3
|
+
`))}}const Qo={major:4,minor:0,patch:0},k=c("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Qo;const o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(const r of o)for(const a of r._zod.onattach)a(e);if(o.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const r=(a,s,u)=>{let h=te(a),_;for(const y of s){if(y._zod.def.when){if(!y._zod.def.when(a))continue}else if(h)continue;const f=a.issues.length,g=y._zod.check(a);if(g instanceof Promise&&u?.async===!1)throw new Ue;if(_||g instanceof Promise)_=(_??Promise.resolve()).then(async()=>{await g,a.issues.length!==f&&(h||(h=te(a,f)))});else{if(a.issues.length===f)continue;h||(h=te(a,f))}}return _?_.then(()=>a):a};e._zod.run=(a,s)=>{const u=e._zod.parse(a,s);if(u instanceof Promise){if(s.async===!1)throw new Ue;return u.then(h=>r(h,o,s))}return r(u,o,s)}}e["~standard"]={validate:r=>{try{const a=Wn(e,r);return a.success?{value:a.data}:{issues:a.error?.issues}}catch{return Bn(e,r).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}}),tt=c("$ZodString",(e,t)=>{k.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Eo(e._zod.bag),e._zod.parse=(n,o)=>{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}}),Z=c("$ZodStringFormat",(e,t)=>{Re.init(e,t),tt.init(e,t)}),er=c("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=wo),Z.init(e,t)}),tr=c("$ZodUUID",(e,t)=>{if(t.version){const o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=St(o))}else t.pattern??(t.pattern=St());Z.init(e,t)}),nr=c("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=ko),Z.init(e,t)}),or=c("$ZodURL",(e,t)=>{Z.init(e,t),e._zod.check=n=>{try{const o=n.value,r=new URL(o),a=r.href;t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(r.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:xo.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(r.protocol.endsWith(":")?r.protocol.slice(0,-1):r.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),!o.endsWith("/")&&a.endsWith("/")?n.value=a.slice(0,-1):n.value=a;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),rr=c("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=So()),Z.init(e,t)}),ir=c("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=go),Z.init(e,t)}),ar=c("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=po),Z.init(e,t)}),sr=c("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=ho),Z.init(e,t)}),cr=c("$ZodULID",(e,t)=>{t.pattern??(t.pattern=mo),Z.init(e,t)}),ur=c("$ZodXID",(e,t)=>{t.pattern??(t.pattern=_o),Z.init(e,t)}),lr=c("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=fo),Z.init(e,t)}),pr=c("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Po(t)),Z.init(e,t)}),dr=c("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Io),Z.init(e,t)}),hr=c("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Co(t)),Z.init(e,t)}),mr=c("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=vo),Z.init(e,t)}),_r=c("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=zo),Z.init(e,t),e._zod.onattach.push(n=>{const o=n._zod.bag;o.format="ipv4"})}),fr=c("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Ro),Z.init(e,t),e._zod.onattach.push(n=>{const o=n._zod.bag;o.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})}}}),gr=c("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=$o),Z.init(e,t)}),vr=c("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=yo),Z.init(e,t),e._zod.check=n=>{const[o,r]=n.value.split("/");try{if(!r)throw new Error;const a=Number(r);if(`${a}`!==r)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${o}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function Jt(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const wr=c("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Zo),Z.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64"}),e._zod.check=n=>{Jt(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function kr(e){if(!Ft.test(e))return!1;const t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Jt(n)}const br=c("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Ft),Z.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64url"}),e._zod.check=n=>{kr(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Sr=c("$ZodE164",(e,t)=>{t.pattern??(t.pattern=To),Z.init(e,t)});function zr(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[o]=n;if(!o)return!1;const r=JSON.parse(atob(o));return!("typ"in r&&r?.typ!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))}catch{return!1}}const Rr=c("$ZodJWT",(e,t)=>{Z.init(e,t),e._zod.check=n=>{zr(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Kt=c("$ZodNumber",(e,t)=>{k.init(e,t),e._zod.pattern=e._zod.bag.pattern??Ao,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const r=n.value;if(typeof r=="number"&&!Number.isNaN(r)&&Number.isFinite(r))return n;const a=typeof r=="number"?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...a?{received:a}:{}}),n}}),$r=c("$ZodNumber",(e,t)=>{Mo.init(e,t),Kt.init(e,t)}),yr=c("$ZodBoolean",(e,t)=>{k.init(e,t),e._zod.pattern=Oo,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=!!n.value}catch{}const r=n.value;return typeof r=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),n}}),Zr=c("$ZodNull",(e,t)=>{k.init(e,t),e._zod.pattern=No,e._zod.values=new Set([null]),e._zod.parse=(n,o)=>{const r=n.value;return r===null||n.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),n}}),xr=c("$ZodAny",(e,t)=>{k.init(e,t),e._zod.parse=n=>n}),Tr=c("$ZodUnknown",(e,t)=>{k.init(e,t),e._zod.parse=n=>n}),Ir=c("$ZodNever",(e,t)=>{k.init(e,t),e._zod.parse=(n,o)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function zt(e,t,n){e.issues.length&&t.issues.push(...J(n,e.issues)),t.value[n]=e.value}const Cr=c("$ZodArray",(e,t)=>{k.init(e,t),e._zod.parse=(n,o)=>{const r=n.value;if(!Array.isArray(r))return n.issues.push({expected:"array",code:"invalid_type",input:r,inst:e}),n;n.value=Array(r.length);const a=[];for(let s=0;s<r.length;s++){const u=r[s],h=t.element._zod.run({value:u,issues:[]},o);h instanceof Promise?a.push(h.then(_=>zt(_,n,s))):zt(h,n,s)}return a.length?Promise.all(a).then(()=>n):n}});function de(e,t,n){e.issues.length&&t.issues.push(...J(n,e.issues)),t.value[n]=e.value}function Rt(e,t,n,o){e.issues.length?o[n]===void 0?n in o?t.value[n]=void 0:t.value[n]=e.value:t.issues.push(...J(n,e.issues)):e.value===void 0?n in o&&(t.value[n]=void 0):t.value[n]=e.value}const Pr=c("$ZodObject",(e,t)=>{k.init(e,t);const n=Mt(()=>{const f=Object.keys(t.shape);for(const S of f)if(!(t.shape[S]instanceof k))throw new Error(`Invalid element at key "${S}": expected a Zod schema`);const g=Hn(t.shape);return{shape:t.shape,keys:f,keySet:new Set(f),numKeys:f.length,optionalKeys:new Set(g)}});v(e._zod,"propValues",()=>{const f=t.shape,g={};for(const S in f){const j=f[S]._zod;if(j.values){g[S]??(g[S]=new Set);for(const H of j.values)g[S].add(H)}}return g});const o=f=>{const g=new Xo(["shape","payload","ctx"]),S=n.value,j=E=>{const b=ee(E);return`shape[${b}]._zod.run({ value: input[${b}], issues: [] }, ctx)`};g.write("const input = payload.value;");const H=Object.create(null);let D=0;for(const E of S.keys)H[E]=`key_${D++}`;g.write("const newResult = {}");for(const E of S.keys)if(S.optionalKeys.has(E)){const b=H[E];g.write(`const ${b} = ${j(E)};`);const P=ee(E);g.write(`
|
|
4
|
+
if (${b}.issues.length) {
|
|
5
|
+
if (input[${P}] === undefined) {
|
|
6
|
+
if (${P} in input) {
|
|
7
|
+
newResult[${P}] = undefined;
|
|
8
|
+
}
|
|
9
|
+
} else {
|
|
10
|
+
payload.issues = payload.issues.concat(
|
|
11
|
+
${b}.issues.map((iss) => ({
|
|
12
|
+
...iss,
|
|
13
|
+
path: iss.path ? [${P}, ...iss.path] : [${P}],
|
|
14
|
+
}))
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
} else if (${b}.value === undefined) {
|
|
18
|
+
if (${P} in input) newResult[${P}] = undefined;
|
|
19
|
+
} else {
|
|
20
|
+
newResult[${P}] = ${b}.value;
|
|
21
|
+
}
|
|
22
|
+
`)}else{const b=H[E];g.write(`const ${b} = ${j(E)};`),g.write(`
|
|
23
|
+
if (${b}.issues.length) payload.issues = payload.issues.concat(${b}.issues.map(iss => ({
|
|
24
|
+
...iss,
|
|
25
|
+
path: iss.path ? [${ee(E)}, ...iss.path] : [${ee(E)}]
|
|
26
|
+
})));`),g.write(`newResult[${ee(E)}] = ${b}.value`)}g.write("payload.value = newResult;"),g.write("return payload;");const G=g.compile();return(E,b)=>G(f,E,b)};let r;const a=Dt,s=!Fn.jitless,h=s&&Vn.value,_=t.catchall;let y;e._zod.parse=(f,g)=>{y??(y=n.value);const S=f.value;if(!a(S))return f.issues.push({expected:"object",code:"invalid_type",input:S,inst:e}),f;const j=[];if(s&&h&&g?.async===!1&&g.jitless!==!0)r||(r=o(t.shape)),f=r(f,g);else{f.value={};const b=y.shape;for(const P of y.keys){const Q=b[P],pe=Q._zod.run({value:S[P],issues:[]},g),kt=Q._zod.optin==="optional"&&Q._zod.optout==="optional";pe instanceof Promise?j.push(pe.then(bt=>kt?Rt(bt,f,P,S):de(bt,f,P))):kt?Rt(pe,f,P,S):de(pe,f,P)}}if(!_)return j.length?Promise.all(j).then(()=>f):f;const H=[],D=y.keySet,G=_._zod,E=G.def.type;for(const b of Object.keys(S)){if(D.has(b))continue;if(E==="never"){H.push(b);continue}const P=G.run({value:S[b],issues:[]},g);P instanceof Promise?j.push(P.then(Q=>de(Q,f,b))):de(P,f,b)}return H.length&&f.issues.push({code:"unrecognized_keys",keys:H,input:S,inst:e}),j.length?Promise.all(j).then(()=>f):f}});function $t(e,t,n,o){for(const r of e)if(r.issues.length===0)return t.value=r.value,t;return t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(r=>r.issues.map(a=>_e(a,o,fe())))}),t}const Yt=c("$ZodUnion",(e,t)=>{k.init(e,t),v(e._zod,"optin",()=>t.options.some(n=>n._zod.optin==="optional")?"optional":void 0),v(e._zod,"optout",()=>t.options.some(n=>n._zod.optout==="optional")?"optional":void 0),v(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),v(e._zod,"pattern",()=>{if(t.options.every(n=>n._zod.pattern)){const n=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${n.map(o=>Qe(o.source)).join("|")})$`)}}),e._zod.parse=(n,o)=>{let r=!1;const a=[];for(const s of t.options){const u=s._zod.run({value:n.value,issues:[]},o);if(u instanceof Promise)a.push(u),r=!0;else{if(u.issues.length===0)return u;a.push(u)}}return r?Promise.all(a).then(s=>$t(s,n,e,o)):$t(a,n,e,o)}}),Er=c("$ZodDiscriminatedUnion",(e,t)=>{Yt.init(e,t);const n=e._zod.parse;v(e._zod,"propValues",()=>{const r={};for(const a of t.options){const s=a._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(const[u,h]of Object.entries(s)){r[u]||(r[u]=new Set);for(const _ of h)r[u].add(_)}}return r});const o=Mt(()=>{const r=t.options,a=new Map;for(const s of r){const u=s._zod.propValues[t.discriminator];if(!u||u.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(s)}"`);for(const h of u){if(a.has(h))throw new Error(`Duplicate discriminator value "${String(h)}"`);a.set(h,s)}}return a});e._zod.parse=(r,a)=>{const s=r.value;if(!Dt(s))return r.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),r;const u=o.value.get(s?.[t.discriminator]);return u?u._zod.run(r,a):t.unionFallback?n(r,a):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",input:s,path:[t.discriminator],inst:e}),r)}}),Ur=c("$ZodIntersection",(e,t)=>{k.init(e,t),e._zod.parse=(n,o)=>{const r=n.value,a=t.left._zod.run({value:r,issues:[]},o),s=t.right._zod.run({value:r,issues:[]},o);return a instanceof Promise||s instanceof Promise?Promise.all([a,s]).then(([h,_])=>yt(n,h,_)):yt(n,a,s)}});function Oe(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Ae(e)&&Ae(t)){const n=Object.keys(t),o=Object.keys(e).filter(a=>n.indexOf(a)!==-1),r={...e,...t};for(const a of o){const s=Oe(e[a],t[a]);if(!s.valid)return{valid:!1,mergeErrorPath:[a,...s.mergeErrorPath]};r[a]=s.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let o=0;o<e.length;o++){const r=e[o],a=t[o],s=Oe(r,a);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};n.push(s.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function yt(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),te(e))return e;const o=Oe(t.value,n.value);if(!o.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}const Ar=c("$ZodRecord",(e,t)=>{k.init(e,t),e._zod.parse=(n,o)=>{const r=n.value;if(!Ae(r))return n.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),n;const a=[];if(t.keyType._zod.values){const s=t.keyType._zod.values;n.value={};for(const h of s)if(typeof h=="string"||typeof h=="number"||typeof h=="symbol"){const _=t.valueType._zod.run({value:r[h],issues:[]},o);_ instanceof Promise?a.push(_.then(y=>{y.issues.length&&n.issues.push(...J(h,y.issues)),n.value[h]=y.value})):(_.issues.length&&n.issues.push(...J(h,_.issues)),n.value[h]=_.value)}let u;for(const h in r)s.has(h)||(u=u??[],u.push(h));u&&u.length>0&&n.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:u})}else{n.value={};for(const s of Reflect.ownKeys(r)){if(s==="__proto__")continue;const u=t.keyType._zod.run({value:s,issues:[]},o);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(u.issues.length){n.issues.push({origin:"record",code:"invalid_key",issues:u.issues.map(_=>_e(_,o,fe())),input:s,path:[s],inst:e}),n.value[u.value]=u.value;continue}const h=t.valueType._zod.run({value:r[s],issues:[]},o);h instanceof Promise?a.push(h.then(_=>{_.issues.length&&n.issues.push(...J(s,_.issues)),n.value[u.value]=_.value})):(h.issues.length&&n.issues.push(...J(s,h.issues)),n.value[u.value]=h.value)}}return a.length?Promise.all(a).then(()=>n):n}}),Or=c("$ZodEnum",(e,t)=>{k.init(e,t);const n=Gn(t.entries);e._zod.values=new Set(n),e._zod.pattern=new RegExp(`^(${n.filter(o=>Jn.has(typeof o)).map(o=>typeof o=="string"?oe(o):o.toString()).join("|")})$`),e._zod.parse=(o,r)=>{const a=o.value;return e._zod.values.has(a)||o.issues.push({code:"invalid_value",values:n,input:a,inst:e}),o}}),Nr=c("$ZodLiteral",(e,t)=>{k.init(e,t),e._zod.values=new Set(t.values),e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?oe(n):n?n.toString():String(n)).join("|")})$`),e._zod.parse=(n,o)=>{const r=n.value;return e._zod.values.has(r)||n.issues.push({code:"invalid_value",values:t.values,input:r,inst:e}),n}}),Lr=c("$ZodTransform",(e,t)=>{k.init(e,t),e._zod.parse=(n,o)=>{const r=t.transform(n.value,n);if(o.async)return(r instanceof Promise?r:Promise.resolve(r)).then(s=>(n.value=s,n));if(r instanceof Promise)throw new Ue;return n.value=r,n}}),qr=c("$ZodOptional",(e,t)=>{k.init(e,t),e._zod.optin="optional",e._zod.optout="optional",v(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),v(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Qe(n.source)})?$`):void 0}),e._zod.parse=(n,o)=>t.innerType._zod.optin==="optional"?t.innerType._zod.run(n,o):n.value===void 0?n:t.innerType._zod.run(n,o)}),jr=c("$ZodNullable",(e,t)=>{k.init(e,t),v(e._zod,"optin",()=>t.innerType._zod.optin),v(e._zod,"optout",()=>t.innerType._zod.optout),v(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Qe(n.source)}|null)$`):void 0}),v(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,o)=>n.value===null?n:t.innerType._zod.run(n,o)}),Mr=c("$ZodDefault",(e,t)=>{k.init(e,t),e._zod.optin="optional",v(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(n.value===void 0)return n.value=t.defaultValue,n;const r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(a=>Zt(a,t)):Zt(r,t)}});function Zt(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Dr=c("$ZodPrefault",(e,t)=>{k.init(e,t),e._zod.optin="optional",v(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>(n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,o))}),Fr=c("$ZodNonOptional",(e,t)=>{k.init(e,t),v(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(o=>o!==void 0)):void 0}),e._zod.parse=(n,o)=>{const r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(a=>xt(a,e)):xt(r,e)}});function xt(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const Vr=c("$ZodCatch",(e,t)=>{k.init(e,t),e._zod.optin="optional",v(e._zod,"optout",()=>t.innerType._zod.optout),v(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{const r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(a=>(n.value=a.value,a.issues.length&&(n.value=t.catchValue({...n,error:{issues:a.issues.map(s=>_e(s,o,fe()))},input:n.value}),n.issues=[]),n)):(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(a=>_e(a,o,fe()))},input:n.value}),n.issues=[]),n)}}),Wr=c("$ZodPipe",(e,t)=>{k.init(e,t),v(e._zod,"values",()=>t.in._zod.values),v(e._zod,"optin",()=>t.in._zod.optin),v(e._zod,"optout",()=>t.out._zod.optout),e._zod.parse=(n,o)=>{const r=t.in._zod.run(n,o);return r instanceof Promise?r.then(a=>Tt(a,t,o)):Tt(r,t,o)}});function Tt(e,t,n){return te(e)?e:t.out._zod.run({value:e.value,issues:e.issues},n)}const Br=c("$ZodReadonly",(e,t)=>{k.init(e,t),v(e._zod,"propValues",()=>t.innerType._zod.propValues),v(e._zod,"values",()=>t.innerType._zod.values),v(e._zod,"optin",()=>t.innerType._zod.optin),v(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(n,o)=>{const r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(It):It(r)}});function It(e){return e.value=Object.freeze(e.value),e}const Hr=c("$ZodLazy",(e,t)=>{k.init(e,t),v(e._zod,"innerType",()=>t.getter()),v(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),v(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),v(e._zod,"optin",()=>e._zod.innerType._zod.optin),v(e._zod,"optout",()=>e._zod.innerType._zod.optout),e._zod.parse=(n,o)=>e._zod.innerType._zod.run(n,o)}),Gr=c("$ZodCustom",(e,t)=>{M.init(e,t),k.init(e,t),e._zod.parse=(n,o)=>n,e._zod.check=n=>{const o=n.value,r=t.fn(o);if(r instanceof Promise)return r.then(a=>Ct(a,n,o,e));Ct(r,n,o,e)}});function Ct(e,t,n,o){if(!e){const r={code:"custom",input:n,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(r.params=o._zod.def.params),t.issues.push(ne(r))}}class Jr{constructor(){this._map=new Map,this._idmap=new Map}add(t,...n){const o=n[0];if(this._map.set(t,o),o&&typeof o=="object"&&"id"in o){if(this._idmap.has(o.id))throw new Error(`ID ${o.id} already exists in the registry`);this._idmap.set(o.id,t)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const o={...this.get(n)??{}};return delete o.id,{...o,...this._map.get(t)}}return this._map.get(t)}has(t){return this._map.has(t)}}function Kr(){return new Jr}const he=Kr();function Yr(e,t){return new e({type:"string",...d(t)})}function Xr(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...d(t)})}function Pt(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...d(t)})}function Qr(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...d(t)})}function ei(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...d(t)})}function ti(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...d(t)})}function ni(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...d(t)})}function Xt(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...d(t)})}function oi(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...d(t)})}function ri(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...d(t)})}function ii(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...d(t)})}function ai(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...d(t)})}function si(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...d(t)})}function ci(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...d(t)})}function ui(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...d(t)})}function li(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...d(t)})}function pi(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...d(t)})}function di(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...d(t)})}function hi(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...d(t)})}function mi(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...d(t)})}function _i(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...d(t)})}function fi(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...d(t)})}function gi(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...d(t)})}function vi(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...d(t)})}function wi(e,t){return new e({type:"string",format:"date",check:"string_format",...d(t)})}function ki(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...d(t)})}function bi(e,t){return new e({type:"string",format:"duration",check:"string_format",...d(t)})}function Si(e,t){return new e({type:"number",checks:[],...d(t)})}function zi(e,t){return new e({type:"number",coerce:!0,checks:[],...d(t)})}function Ri(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...d(t)})}function $i(e,t){return new e({type:"boolean",...d(t)})}function yi(e,t){return new e({type:"null",...d(t)})}function Zi(e){return new e({type:"any"})}function xi(e){return new e({type:"unknown"})}function Ti(e,t){return new e({type:"never",...d(t)})}function Et(e,t){return new Ht({check:"less_than",...d(t),value:e,inclusive:!1})}function xe(e,t){return new Ht({check:"less_than",...d(t),value:e,inclusive:!0})}function Ut(e,t){return new Gt({check:"greater_than",...d(t),value:e,inclusive:!1})}function Te(e,t){return new Gt({check:"greater_than",...d(t),value:e,inclusive:!0})}function At(e,t){return new jo({check:"multiple_of",...d(t),value:e})}function Qt(e,t){return new Do({check:"max_length",...d(t),maximum:e})}function ge(e,t){return new Fo({check:"min_length",...d(t),minimum:e})}function en(e,t){return new Vo({check:"length_equals",...d(t),length:e})}function Ii(e,t){return new Wo({check:"string_format",format:"regex",...d(t),pattern:e})}function Ci(e){return new Bo({check:"string_format",format:"lowercase",...d(e)})}function Pi(e){return new Ho({check:"string_format",format:"uppercase",...d(e)})}function Ei(e,t){return new Go({check:"string_format",format:"includes",...d(t),includes:e})}function Ui(e,t){return new Jo({check:"string_format",format:"starts_with",...d(t),prefix:e})}function Ai(e,t){return new Ko({check:"string_format",format:"ends_with",...d(t),suffix:e})}function re(e){return new Yo({check:"overwrite",tx:e})}function Oi(e){return re(t=>t.normalize(e))}function Ni(){return re(e=>e.trim())}function Li(){return re(e=>e.toLowerCase())}function qi(){return re(e=>e.toUpperCase())}function ji(e,t,n){return new e({type:"array",element:t,...d(n)})}function Mi(e,t,n){const o=d(n);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}function Di(e,t,n){return new e({type:"custom",check:"custom",fn:t,...d(n)})}const Fi=c("ZodISODateTime",(e,t)=>{pr.init(e,t),I.init(e,t)});function tn(e){return vi(Fi,e)}const Vi=c("ZodISODate",(e,t)=>{dr.init(e,t),I.init(e,t)});function Wi(e){return wi(Vi,e)}const Bi=c("ZodISOTime",(e,t)=>{hr.init(e,t),I.init(e,t)});function Hi(e){return ki(Bi,e)}const Gi=c("ZodISODuration",(e,t)=>{mr.init(e,t),I.init(e,t)});function Ji(e){return bi(Gi,e)}const Ki=(e,t)=>{Kn.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Xn(e,n)},flatten:{value:n=>Yn(e,n)},addIssue:{value:n=>e.issues.push(n)},addIssues:{value:n=>e.issues.push(...n)},isEmpty:{get(){return e.issues.length===0}}})},$e=c("ZodError",Ki,{Parent:Error}),Yi=Qn($e),Xi=to($e),Qi=eo($e),ea=no($e),R=c("ZodType",(e,t)=>(k.init(e,t),e.def=t,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),e.clone=(n,o)=>uo(e,n,o),e.brand=()=>e,e.register=((n,o)=>(n.add(e,o),e)),e.parse=(n,o)=>Yi(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>Qi(e,n,o),e.parseAsync=async(n,o)=>Xi(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>ea(e,n,o),e.spa=e.safeParseAsync,e.refine=(n,o)=>e.check(Ba(n,o)),e.superRefine=n=>e.check(Ha(n)),e.overwrite=n=>e.check(re(n)),e.optional=()=>C(e),e.nullable=()=>Lt(e),e.nullish=()=>C(Lt(e)),e.nonoptional=n=>Na(e,n),e.array=()=>l(e),e.or=n=>$([e,n]),e.and=n=>rt(e,n),e.transform=n=>Le(e,un(n)),e.default=n=>Ua(e,n),e.prefault=n=>Oa(e,n),e.catch=n=>qa(e,n),e.pipe=n=>Le(e,n),e.readonly=()=>Da(e),e.describe=n=>{const o=e.clone();return he.add(o,{description:n}),o},Object.defineProperty(e,"description",{get(){return he.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return he.get(e);const o=e.clone();return he.add(o,n[0]),o},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),nn=c("_ZodString",(e,t)=>{tt.init(e,t),R.init(e,t);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...o)=>e.check(Ii(...o)),e.includes=(...o)=>e.check(Ei(...o)),e.startsWith=(...o)=>e.check(Ui(...o)),e.endsWith=(...o)=>e.check(Ai(...o)),e.min=(...o)=>e.check(ge(...o)),e.max=(...o)=>e.check(Qt(...o)),e.length=(...o)=>e.check(en(...o)),e.nonempty=(...o)=>e.check(ge(1,...o)),e.lowercase=o=>e.check(Ci(o)),e.uppercase=o=>e.check(Pi(o)),e.trim=()=>e.check(Ni()),e.normalize=(...o)=>e.check(Oi(...o)),e.toLowerCase=()=>e.check(Li()),e.toUpperCase=()=>e.check(qi())}),ta=c("ZodString",(e,t)=>{tt.init(e,t),nn.init(e,t),e.email=n=>e.check(Xr(na,n)),e.url=n=>e.check(Xt(on,n)),e.jwt=n=>e.check(gi(va,n)),e.emoji=n=>e.check(oi(ra,n)),e.guid=n=>e.check(Pt(Ot,n)),e.uuid=n=>e.check(Qr(me,n)),e.uuidv4=n=>e.check(ei(me,n)),e.uuidv6=n=>e.check(ti(me,n)),e.uuidv7=n=>e.check(ni(me,n)),e.nanoid=n=>e.check(ri(ia,n)),e.guid=n=>e.check(Pt(Ot,n)),e.cuid=n=>e.check(ii(aa,n)),e.cuid2=n=>e.check(ai(sa,n)),e.ulid=n=>e.check(si(ca,n)),e.base64=n=>e.check(mi(_a,n)),e.base64url=n=>e.check(_i(fa,n)),e.xid=n=>e.check(ci(ua,n)),e.ksuid=n=>e.check(ui(la,n)),e.ipv4=n=>e.check(li(pa,n)),e.ipv6=n=>e.check(pi(da,n)),e.cidrv4=n=>e.check(di(ha,n)),e.cidrv6=n=>e.check(hi(ma,n)),e.e164=n=>e.check(fi(ga,n)),e.datetime=n=>e.check(tn(n)),e.date=n=>e.check(Wi(n)),e.time=n=>e.check(Hi(n)),e.duration=n=>e.check(Ji(n))});function i(e){return Yr(ta,e)}const I=c("ZodStringFormat",(e,t)=>{Z.init(e,t),nn.init(e,t)}),na=c("ZodEmail",(e,t)=>{nr.init(e,t),I.init(e,t)}),Ot=c("ZodGUID",(e,t)=>{er.init(e,t),I.init(e,t)}),me=c("ZodUUID",(e,t)=>{tr.init(e,t),I.init(e,t)}),on=c("ZodURL",(e,t)=>{or.init(e,t),I.init(e,t)});function oa(e){return Xt(on,e)}const ra=c("ZodEmoji",(e,t)=>{rr.init(e,t),I.init(e,t)}),ia=c("ZodNanoID",(e,t)=>{ir.init(e,t),I.init(e,t)}),aa=c("ZodCUID",(e,t)=>{ar.init(e,t),I.init(e,t)}),sa=c("ZodCUID2",(e,t)=>{sr.init(e,t),I.init(e,t)}),ca=c("ZodULID",(e,t)=>{cr.init(e,t),I.init(e,t)}),ua=c("ZodXID",(e,t)=>{ur.init(e,t),I.init(e,t)}),la=c("ZodKSUID",(e,t)=>{lr.init(e,t),I.init(e,t)}),pa=c("ZodIPv4",(e,t)=>{_r.init(e,t),I.init(e,t)}),da=c("ZodIPv6",(e,t)=>{fr.init(e,t),I.init(e,t)}),ha=c("ZodCIDRv4",(e,t)=>{gr.init(e,t),I.init(e,t)}),ma=c("ZodCIDRv6",(e,t)=>{vr.init(e,t),I.init(e,t)}),_a=c("ZodBase64",(e,t)=>{wr.init(e,t),I.init(e,t)}),fa=c("ZodBase64URL",(e,t)=>{br.init(e,t),I.init(e,t)}),ga=c("ZodE164",(e,t)=>{Sr.init(e,t),I.init(e,t)}),va=c("ZodJWT",(e,t)=>{Rr.init(e,t),I.init(e,t)}),nt=c("ZodNumber",(e,t)=>{Kt.init(e,t),R.init(e,t),e.gt=(o,r)=>e.check(Ut(o,r)),e.gte=(o,r)=>e.check(Te(o,r)),e.min=(o,r)=>e.check(Te(o,r)),e.lt=(o,r)=>e.check(Et(o,r)),e.lte=(o,r)=>e.check(xe(o,r)),e.max=(o,r)=>e.check(xe(o,r)),e.int=o=>e.check(Nt(o)),e.safe=o=>e.check(Nt(o)),e.positive=o=>e.check(Ut(0,o)),e.nonnegative=o=>e.check(Te(0,o)),e.negative=o=>e.check(Et(0,o)),e.nonpositive=o=>e.check(xe(0,o)),e.multipleOf=(o,r)=>e.check(At(o,r)),e.step=(o,r)=>e.check(At(o,r)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function w(e){return Si(nt,e)}const wa=c("ZodNumberFormat",(e,t)=>{$r.init(e,t),nt.init(e,t)});function Nt(e){return Ri(wa,e)}const ka=c("ZodBoolean",(e,t)=>{yr.init(e,t),R.init(e,t)});function z(e){return $i(ka,e)}const ba=c("ZodNull",(e,t)=>{Zr.init(e,t),R.init(e,t)});function rn(e){return yi(ba,e)}const Sa=c("ZodAny",(e,t)=>{xr.init(e,t),R.init(e,t)});function za(){return Zi(Sa)}const Ra=c("ZodUnknown",(e,t)=>{Tr.init(e,t),R.init(e,t)});function x(){return xi(Ra)}const $a=c("ZodNever",(e,t)=>{Ir.init(e,t),R.init(e,t)});function an(e){return Ti($a,e)}const ya=c("ZodArray",(e,t)=>{Cr.init(e,t),R.init(e,t),e.element=t.element,e.min=(n,o)=>e.check(ge(n,o)),e.nonempty=n=>e.check(ge(1,n)),e.max=(n,o)=>e.check(Qt(n,o)),e.length=(n,o)=>e.check(en(n,o)),e.unwrap=()=>e.element});function l(e,t){return ji(ya,e,t)}const ot=c("ZodObject",(e,t)=>{Pr.init(e,t),R.init(e,t),v(e,"shape",()=>t.shape),e.keyof=()=>F(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:x()}),e.loose=()=>e.clone({...e._zod.def,catchall:x()}),e.strict=()=>e.clone({...e._zod.def,catchall:an()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>oo(e,n),e.merge=n=>ro(e,n),e.pick=n=>io(e,n),e.omit=n=>ao(e,n),e.partial=(...n)=>so(ln,e,n[0]),e.required=(...n)=>co(pn,e,n[0])});function p(e,t){const n={type:"object",get shape(){return et(this,"shape",{...e}),this.shape},...d(t)};return new ot(n)}function wu(e,t){return new ot({type:"object",get shape(){return et(this,"shape",{...e}),this.shape},catchall:an(),...d(t)})}function O(e,t){return new ot({type:"object",get shape(){return et(this,"shape",{...e}),this.shape},catchall:x(),...d(t)})}const sn=c("ZodUnion",(e,t)=>{Yt.init(e,t),R.init(e,t),e.options=t.options});function $(e,t){return new sn({type:"union",options:e,...d(t)})}const Za=c("ZodDiscriminatedUnion",(e,t)=>{sn.init(e,t),Er.init(e,t)});function cn(e,t,n){return new Za({type:"union",options:t,discriminator:e,...d(n)})}const xa=c("ZodIntersection",(e,t)=>{Ur.init(e,t),R.init(e,t)});function rt(e,t){return new xa({type:"intersection",left:e,right:t})}const Ta=c("ZodRecord",(e,t)=>{Ar.init(e,t),R.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function T(e,t,n){return new Ta({type:"record",keyType:e,valueType:t,...d(n)})}const Ne=c("ZodEnum",(e,t)=>{Or.init(e,t),R.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(o,r)=>{const a={};for(const s of o)if(n.has(s))a[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new Ne({...t,checks:[],...d(r),entries:a})},e.exclude=(o,r)=>{const a={...t.entries};for(const s of o)if(n.has(s))delete a[s];else throw new Error(`Key ${s} not found in enum`);return new Ne({...t,checks:[],...d(r),entries:a})}});function F(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new Ne({type:"enum",entries:n,...d(t)})}const Ia=c("ZodLiteral",(e,t)=>{Nr.init(e,t),R.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function m(e,t){return new Ia({type:"literal",values:Array.isArray(e)?e:[e],...d(t)})}const Ca=c("ZodTransform",(e,t)=>{Lr.init(e,t),R.init(e,t),e._zod.parse=(n,o)=>{n.addIssue=a=>{if(typeof a=="string")n.issues.push(ne(a,n.value,t));else{const s=a;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=n.value),s.inst??(s.inst=e),s.continue??(s.continue=!0),n.issues.push(ne(s))}};const r=t.transform(n.value,n);return r instanceof Promise?r.then(a=>(n.value=a,n)):(n.value=r,n)}});function un(e){return new Ca({type:"transform",transform:e})}const ln=c("ZodOptional",(e,t)=>{qr.init(e,t),R.init(e,t),e.unwrap=()=>e._zod.def.innerType});function C(e){return new ln({type:"optional",innerType:e})}const Pa=c("ZodNullable",(e,t)=>{jr.init(e,t),R.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Lt(e){return new Pa({type:"nullable",innerType:e})}const Ea=c("ZodDefault",(e,t)=>{Mr.init(e,t),R.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Ua(e,t){return new Ea({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():t}})}const Aa=c("ZodPrefault",(e,t)=>{Dr.init(e,t),R.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Oa(e,t){return new Aa({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():t}})}const pn=c("ZodNonOptional",(e,t)=>{Fr.init(e,t),R.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Na(e,t){return new pn({type:"nonoptional",innerType:e,...d(t)})}const La=c("ZodCatch",(e,t)=>{Vr.init(e,t),R.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function qa(e,t){return new La({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const ja=c("ZodPipe",(e,t)=>{Wr.init(e,t),R.init(e,t),e.in=t.in,e.out=t.out});function Le(e,t){return new ja({type:"pipe",in:e,out:t})}const Ma=c("ZodReadonly",(e,t)=>{Br.init(e,t),R.init(e,t)});function Da(e){return new Ma({type:"readonly",innerType:e})}const Fa=c("ZodLazy",(e,t)=>{Hr.init(e,t),R.init(e,t),e.unwrap=()=>e._zod.def.getter()});function ku(e){return new Fa({type:"lazy",getter:e})}const it=c("ZodCustom",(e,t)=>{Gr.init(e,t),R.init(e,t)});function Va(e){const t=new M({check:"custom"});return t._zod.check=e,t}function Wa(e,t){return Mi(it,e??(()=>!0),t)}function Ba(e,t={}){return Di(it,e,t)}function Ha(e){const t=Va(n=>(n.addIssue=o=>{if(typeof o=="string")n.issues.push(ne(o,n.value,t._zod.def));else{const r=o;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=n.value),r.inst??(r.inst=t),r.continue??(r.continue=!t._zod.def.abort),n.issues.push(ne(r))}},e(n.value,n)));return t}function bu(e,t={error:`Input not instance of ${e.name}`}){const n=new it({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...d(t)});return n._zod.bag.Class=e,n}function dn(e,t){return Le(un(e),t)}const Ga={custom:"custom"};function Ja(e){return zi(nt,e)}const at="2025-11-25",Su=[at,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],Ka="io.modelcontextprotocol/related-task",ye="2.0",N=Wa(e=>e!==null&&(typeof e=="object"||typeof e=="function")),hn=$([i(),w().int()]),mn=i();O({ttl:$([w(),rn()]).optional(),pollInterval:w().optional()});const Ya=p({ttl:w().optional()}),Xa=p({taskId:i()}),st=O({progressToken:hn.optional(),[Ka]:Xa.optional()}),V=p({_meta:st.optional()}),ie=V.extend({task:Ya.optional()}),zu=e=>ie.safeParse(e).success,L=p({method:i(),params:V.loose().optional()}),W=p({_meta:st.optional()}),B=p({method:i(),params:W.loose().optional()}),q=O({_meta:st.optional()}),Ze=$([i(),w().int()]),_n=p({jsonrpc:m(ye),id:Ze,...L.shape}).strict(),Ru=e=>_n.safeParse(e).success,fn=p({jsonrpc:m(ye),...B.shape}).strict(),$u=e=>fn.safeParse(e).success,ct=p({jsonrpc:m(ye),id:Ze,result:q}).strict(),yu=e=>ct.safeParse(e).success;var ve;(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"})(ve||(ve={}));const ut=p({jsonrpc:m(ye),id:Ze.optional(),error:p({code:w().int(),message:i(),data:x().optional()})}).strict(),Zu=e=>ut.safeParse(e).success,xu=$([_n,fn,ct,ut]);$([ct,ut]);const gn=q.strict(),Qa=W.extend({requestId:Ze.optional(),reason:i().optional()}),vn=B.extend({method:m("notifications/cancelled"),params:Qa}),es=p({src:i(),mimeType:i().optional(),sizes:l(i()).optional(),theme:F(["light","dark"]).optional()}),ae=p({icons:l(es).optional()}),K=p({name:i(),title:i().optional()}),wn=K.extend({...K.shape,...ae.shape,version:i(),websiteUrl:i().optional(),description:i().optional()}),ts=rt(p({applyDefaults:z().optional()}),T(i(),x())),ns=dn(e=>e&&typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,rt(p({form:ts.optional(),url:N.optional()}),T(i(),x()).optional())),os=O({list:N.optional(),cancel:N.optional(),requests:O({sampling:O({createMessage:N.optional()}).optional(),elicitation:O({create:N.optional()}).optional()}).optional()}),rs=O({list:N.optional(),cancel:N.optional(),requests:O({tools:O({call:N.optional()}).optional()}).optional()}),is=p({experimental:T(i(),N).optional(),sampling:p({context:N.optional(),tools:N.optional()}).optional(),elicitation:ns.optional(),roots:p({listChanged:z().optional()}).optional(),tasks:os.optional()}),as=V.extend({protocolVersion:i(),capabilities:is,clientInfo:wn}),ss=L.extend({method:m("initialize"),params:as}),cs=p({experimental:T(i(),N).optional(),logging:N.optional(),completions:N.optional(),prompts:p({listChanged:z().optional()}).optional(),resources:p({subscribe:z().optional(),listChanged:z().optional()}).optional(),tools:p({listChanged:z().optional()}).optional(),tasks:rs.optional()}),us=q.extend({protocolVersion:i(),capabilities:cs,serverInfo:wn,instructions:i().optional()}),kn=B.extend({method:m("notifications/initialized"),params:W.optional()}),Tu=e=>kn.safeParse(e).success,bn=L.extend({method:m("ping"),params:V.optional()}),ls=p({progress:w(),total:C(w()),message:C(i())}),ps=p({...W.shape,...ls.shape,progressToken:hn}),Sn=B.extend({method:m("notifications/progress"),params:ps}),ds=V.extend({cursor:mn.optional()}),se=L.extend({params:ds.optional()}),ce=q.extend({nextCursor:mn.optional()}),hs=F(["working","input_required","completed","failed","cancelled"]),ue=p({taskId:i(),status:hs,ttl:$([w(),rn()]),createdAt:i(),lastUpdatedAt:i(),pollInterval:C(w()),statusMessage:C(i())}),zn=q.extend({task:ue}),ms=W.merge(ue),Rn=B.extend({method:m("notifications/tasks/status"),params:ms}),$n=L.extend({method:m("tasks/get"),params:V.extend({taskId:i()})}),yn=q.merge(ue),Zn=L.extend({method:m("tasks/result"),params:V.extend({taskId:i()})});q.loose();const xn=se.extend({method:m("tasks/list")}),Tn=ce.extend({tasks:l(ue)}),In=L.extend({method:m("tasks/cancel"),params:V.extend({taskId:i()})}),Iu=q.merge(ue),Cn=p({uri:i(),mimeType:C(i()),_meta:T(i(),x()).optional()}),Pn=Cn.extend({text:i()}),lt=i().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),En=Cn.extend({blob:lt}),le=F(["user","assistant"]),X=p({audience:l(le).optional(),priority:w().min(0).max(1).optional(),lastModified:tn({offset:!0}).optional()}),Un=p({...K.shape,...ae.shape,uri:i(),description:C(i()),mimeType:C(i()),annotations:X.optional(),_meta:C(O({}))}),_s=p({...K.shape,...ae.shape,uriTemplate:i(),description:C(i()),mimeType:C(i()),annotations:X.optional(),_meta:C(O({}))}),fs=se.extend({method:m("resources/list")}),gs=ce.extend({resources:l(Un)}),vs=se.extend({method:m("resources/templates/list")}),ws=ce.extend({resourceTemplates:l(_s)}),pt=V.extend({uri:i()}),ks=pt,bs=L.extend({method:m("resources/read"),params:ks}),Ss=q.extend({contents:l($([Pn,En]))}),zs=B.extend({method:m("notifications/resources/list_changed"),params:W.optional()}),Rs=pt,$s=L.extend({method:m("resources/subscribe"),params:Rs}),ys=pt,Zs=L.extend({method:m("resources/unsubscribe"),params:ys}),xs=W.extend({uri:i()}),Ts=B.extend({method:m("notifications/resources/updated"),params:xs}),Is=p({name:i(),description:C(i()),required:C(z())}),Cs=p({...K.shape,...ae.shape,description:C(i()),arguments:C(l(Is)),_meta:C(O({}))}),Ps=se.extend({method:m("prompts/list")}),Es=ce.extend({prompts:l(Cs)}),Us=V.extend({name:i(),arguments:T(i(),i()).optional()}),As=L.extend({method:m("prompts/get"),params:Us}),dt=p({type:m("text"),text:i(),annotations:X.optional(),_meta:T(i(),x()).optional()}),ht=p({type:m("image"),data:lt,mimeType:i(),annotations:X.optional(),_meta:T(i(),x()).optional()}),mt=p({type:m("audio"),data:lt,mimeType:i(),annotations:X.optional(),_meta:T(i(),x()).optional()}),Os=p({type:m("tool_use"),name:i(),id:i(),input:T(i(),x()),_meta:T(i(),x()).optional()}),Ns=p({type:m("resource"),resource:$([Pn,En]),annotations:X.optional(),_meta:T(i(),x()).optional()}),Ls=Un.extend({type:m("resource_link")}),_t=$([dt,ht,mt,Ls,Ns]),qs=p({role:le,content:_t}),js=q.extend({description:i().optional(),messages:l(qs)}),Ms=B.extend({method:m("notifications/prompts/list_changed"),params:W.optional()}),Ds=p({title:i().optional(),readOnlyHint:z().optional(),destructiveHint:z().optional(),idempotentHint:z().optional(),openWorldHint:z().optional()}),Fs=p({taskSupport:F(["required","optional","forbidden"]).optional()}),An=p({...K.shape,...ae.shape,description:i().optional(),inputSchema:p({type:m("object"),properties:T(i(),N).optional(),required:l(i()).optional()}).catchall(x()),outputSchema:p({type:m("object"),properties:T(i(),N).optional(),required:l(i()).optional()}).catchall(x()).optional(),annotations:Ds.optional(),execution:Fs.optional(),_meta:T(i(),x()).optional()}),Vs=se.extend({method:m("tools/list")}),Ws=ce.extend({tools:l(An)}),On=q.extend({content:l(_t).default([]),structuredContent:T(i(),x()).optional(),isError:z().optional()});On.or(q.extend({toolResult:x()}));const Bs=ie.extend({name:i(),arguments:T(i(),x()).optional()}),Hs=L.extend({method:m("tools/call"),params:Bs}),Gs=B.extend({method:m("notifications/tools/list_changed"),params:W.optional()}),Cu=p({autoRefresh:z().default(!0),debounceMs:w().int().nonnegative().default(300)}),Nn=F(["debug","info","notice","warning","error","critical","alert","emergency"]),Js=V.extend({level:Nn}),Ks=L.extend({method:m("logging/setLevel"),params:Js}),Ys=W.extend({level:Nn,logger:i().optional(),data:x()}),Xs=B.extend({method:m("notifications/message"),params:Ys}),Qs=p({name:i().optional()}),ec=p({hints:l(Qs).optional(),costPriority:w().min(0).max(1).optional(),speedPriority:w().min(0).max(1).optional(),intelligencePriority:w().min(0).max(1).optional()}),tc=p({mode:F(["auto","required","none"]).optional()}),nc=p({type:m("tool_result"),toolUseId:i().describe("The unique identifier for the corresponding tool call."),content:l(_t).default([]),structuredContent:p({}).loose().optional(),isError:z().optional(),_meta:T(i(),x()).optional()}),oc=cn("type",[dt,ht,mt]),we=cn("type",[dt,ht,mt,Os,nc]),rc=p({role:le,content:$([we,l(we)]),_meta:T(i(),x()).optional()}),ic=ie.extend({messages:l(rc),modelPreferences:ec.optional(),systemPrompt:i().optional(),includeContext:F(["none","thisServer","allServers"]).optional(),temperature:w().optional(),maxTokens:w().int(),stopSequences:l(i()).optional(),metadata:N.optional(),tools:l(An).optional(),toolChoice:tc.optional()}),ac=L.extend({method:m("sampling/createMessage"),params:ic}),sc=q.extend({model:i(),stopReason:C(F(["endTurn","stopSequence","maxTokens"]).or(i())),role:le,content:oc}),cc=q.extend({model:i(),stopReason:C(F(["endTurn","stopSequence","maxTokens","toolUse"]).or(i())),role:le,content:$([we,l(we)])}),uc=p({type:m("boolean"),title:i().optional(),description:i().optional(),default:z().optional()}),lc=p({type:m("string"),title:i().optional(),description:i().optional(),minLength:w().optional(),maxLength:w().optional(),format:F(["email","uri","date","date-time"]).optional(),default:i().optional()}),pc=p({type:F(["number","integer"]),title:i().optional(),description:i().optional(),minimum:w().optional(),maximum:w().optional(),default:w().optional()}),dc=p({type:m("string"),title:i().optional(),description:i().optional(),enum:l(i()),default:i().optional()}),hc=p({type:m("string"),title:i().optional(),description:i().optional(),oneOf:l(p({const:i(),title:i()})),default:i().optional()}),mc=p({type:m("string"),title:i().optional(),description:i().optional(),enum:l(i()),enumNames:l(i()).optional(),default:i().optional()}),_c=$([dc,hc]),fc=p({type:m("array"),title:i().optional(),description:i().optional(),minItems:w().optional(),maxItems:w().optional(),items:p({type:m("string"),enum:l(i())}),default:l(i()).optional()}),gc=p({type:m("array"),title:i().optional(),description:i().optional(),minItems:w().optional(),maxItems:w().optional(),items:p({anyOf:l(p({const:i(),title:i()}))}),default:l(i()).optional()}),vc=$([fc,gc]),wc=$([mc,_c,vc]),kc=$([wc,uc,lc,pc]),bc=ie.extend({mode:m("form").optional(),message:i(),requestedSchema:p({type:m("object"),properties:T(i(),kc),required:l(i()).optional()})}),Sc=ie.extend({mode:m("url"),message:i(),elicitationId:i(),url:i().url()}),zc=$([bc,Sc]),Rc=L.extend({method:m("elicitation/create"),params:zc}),$c=W.extend({elicitationId:i()}),yc=B.extend({method:m("notifications/elicitation/complete"),params:$c}),Zc=q.extend({action:F(["accept","decline","cancel"]),content:dn(e=>e===null?void 0:e,T(i(),$([i(),w(),z(),l(i())])).optional())}),xc=p({type:m("ref/resource"),uri:i()}),Tc=p({type:m("ref/prompt"),name:i()}),Ic=V.extend({ref:$([Tc,xc]),argument:p({name:i(),value:i()}),context:p({arguments:T(i(),i()).optional()}).optional()}),Cc=L.extend({method:m("completion/complete"),params:Ic}),Pc=q.extend({completion:O({values:l(i()).max(100),total:C(w().int()),hasMore:C(z())})}),Ec=p({uri:i().startsWith("file://"),name:i().optional(),_meta:T(i(),x()).optional()}),Uc=L.extend({method:m("roots/list"),params:V.optional()}),Ac=q.extend({roots:l(Ec)}),Oc=B.extend({method:m("notifications/roots/list_changed"),params:W.optional()});$([bn,ss,Cc,Ks,As,Ps,fs,vs,bs,$s,Zs,Hs,Vs,$n,Zn,xn,In]);$([vn,Sn,kn,Oc,Rn]);$([gn,sc,cc,Zc,Ac,yn,Tn,zn]);$([bn,ac,Rc,Uc,$n,Zn,xn,In]);$([vn,Sn,Xs,Ts,zs,Gs,Ms,Rn,yc]);$([gn,us,Pc,js,Es,gs,ws,Ss,On,Ws,yn,Tn,zn]);class ft extends Error{constructor(t,n,o){super(`MCP error ${t}: ${n}`),this.code=t,this.data=o,this.name="McpError"}static fromError(t,n,o){if(t===ve.UrlElicitationRequired&&o){const r=o;if(r.elicitations)return new Nc(r.elicitations,n)}return new ft(t,n,o)}}class Nc extends ft{constructor(t,n=`URL elicitation${t.length>1?"s":""} required`){super(ve.UrlElicitationRequired,n,{elicitations:t})}get elicitations(){return this.data?.elicitations??[]}}let gt;gt=globalThis.crypto;async function Lc(e){return(await gt).getRandomValues(new Uint8Array(e))}async function qc(e){const t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~",n=Math.pow(2,8)-Math.pow(2,8)%t.length;let o="";for(;o.length<e;){const r=await Lc(e-o.length);for(const a of r)a<n&&(o+=t[a%t.length])}return o}async function jc(e){return await qc(e)}async function Mc(e){const t=await(await gt).subtle.digest("SHA-256",new TextEncoder().encode(e));return btoa(String.fromCharCode(...new Uint8Array(t))).replace(/\//g,"_").replace(/\+/g,"-").replace(/=/g,"")}async function Dc(e){if(e||(e=43),e<43||e>128)throw`Expected a length between 43 and 128. Received ${e}.`;const t=await jc(e),n=await Mc(t);return{code_verifier:t,code_challenge:n}}const A=oa().superRefine((e,t)=>{if(!URL.canParse(e))return t.addIssue({code:Ga.custom,message:"URL must be parseable",fatal:!0}),lo}).refine(e=>{const t=new URL(e);return t.protocol!=="javascript:"&&t.protocol!=="data:"&&t.protocol!=="vbscript:"},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),Fc=O({resource:i().url(),authorization_servers:l(A).optional(),jwks_uri:i().url().optional(),scopes_supported:l(i()).optional(),bearer_methods_supported:l(i()).optional(),resource_signing_alg_values_supported:l(i()).optional(),resource_name:i().optional(),resource_documentation:i().optional(),resource_policy_uri:i().url().optional(),resource_tos_uri:i().url().optional(),tls_client_certificate_bound_access_tokens:z().optional(),authorization_details_types_supported:l(i()).optional(),dpop_signing_alg_values_supported:l(i()).optional(),dpop_bound_access_tokens_required:z().optional()}),Ln=O({issuer:i(),authorization_endpoint:A,token_endpoint:A,registration_endpoint:A.optional(),scopes_supported:l(i()).optional(),response_types_supported:l(i()),response_modes_supported:l(i()).optional(),grant_types_supported:l(i()).optional(),token_endpoint_auth_methods_supported:l(i()).optional(),token_endpoint_auth_signing_alg_values_supported:l(i()).optional(),service_documentation:A.optional(),revocation_endpoint:A.optional(),revocation_endpoint_auth_methods_supported:l(i()).optional(),revocation_endpoint_auth_signing_alg_values_supported:l(i()).optional(),introspection_endpoint:i().optional(),introspection_endpoint_auth_methods_supported:l(i()).optional(),introspection_endpoint_auth_signing_alg_values_supported:l(i()).optional(),code_challenge_methods_supported:l(i()).optional(),client_id_metadata_document_supported:z().optional()}),Vc=O({issuer:i(),authorization_endpoint:A,token_endpoint:A,userinfo_endpoint:A.optional(),jwks_uri:A,registration_endpoint:A.optional(),scopes_supported:l(i()).optional(),response_types_supported:l(i()),response_modes_supported:l(i()).optional(),grant_types_supported:l(i()).optional(),acr_values_supported:l(i()).optional(),subject_types_supported:l(i()),id_token_signing_alg_values_supported:l(i()),id_token_encryption_alg_values_supported:l(i()).optional(),id_token_encryption_enc_values_supported:l(i()).optional(),userinfo_signing_alg_values_supported:l(i()).optional(),userinfo_encryption_alg_values_supported:l(i()).optional(),userinfo_encryption_enc_values_supported:l(i()).optional(),request_object_signing_alg_values_supported:l(i()).optional(),request_object_encryption_alg_values_supported:l(i()).optional(),request_object_encryption_enc_values_supported:l(i()).optional(),token_endpoint_auth_methods_supported:l(i()).optional(),token_endpoint_auth_signing_alg_values_supported:l(i()).optional(),display_values_supported:l(i()).optional(),claim_types_supported:l(i()).optional(),claims_supported:l(i()).optional(),service_documentation:i().optional(),claims_locales_supported:l(i()).optional(),ui_locales_supported:l(i()).optional(),claims_parameter_supported:z().optional(),request_parameter_supported:z().optional(),request_uri_parameter_supported:z().optional(),require_request_uri_registration:z().optional(),op_policy_uri:A.optional(),op_tos_uri:A.optional(),client_id_metadata_document_supported:z().optional()}),Wc=p({...Vc.shape,...Ln.pick({code_challenge_methods_supported:!0}).shape}),Bc=p({access_token:i(),id_token:i().optional(),token_type:i(),expires_in:Ja().optional(),scope:i().optional(),refresh_token:i().optional()}).strip(),Hc=p({error:i(),error_description:i().optional(),error_uri:i().optional()}),qt=A.optional().or(m("").transform(()=>{})),Gc=p({redirect_uris:l(A),token_endpoint_auth_method:i().optional(),grant_types:l(i()).optional(),response_types:l(i()).optional(),client_name:i().optional(),client_uri:A.optional(),logo_uri:qt,scope:i().optional(),contacts:l(i()).optional(),tos_uri:qt,policy_uri:i().optional(),jwks_uri:A.optional(),jwks:za().optional(),software_id:i().optional(),software_version:i().optional(),software_statement:i().optional()}).strip(),Jc=p({client_id:i(),client_secret:i().optional(),client_id_issued_at:w().optional(),client_secret_expires_at:w().optional()}).strip(),Kc=Gc.merge(Jc);p({error:i(),error_description:i().optional()}).strip();p({token:i(),token_type_hint:i().optional()}).strip();function Yc(e){const t=typeof e=="string"?new URL(e):new URL(e.href);return t.hash="",t}function Xc({requestedResource:e,configuredResource:t}){const n=typeof e=="string"?new URL(e):new URL(e.href),o=typeof t=="string"?new URL(t):new URL(t.href);if(n.origin!==o.origin||n.pathname.length<o.pathname.length)return!1;const r=n.pathname.endsWith("/")?n.pathname:n.pathname+"/",a=o.pathname.endsWith("/")?o.pathname:o.pathname+"/";return r.startsWith(a)}class U extends Error{constructor(t,n){super(t),this.errorUri=n,this.name=this.constructor.name}toResponseObject(){const t={error:this.errorCode,error_description:this.message};return this.errorUri&&(t.error_uri=this.errorUri),t}get errorCode(){return this.constructor.errorCode}}class qe extends U{}qe.errorCode="invalid_request";class ke extends U{}ke.errorCode="invalid_client";class be extends U{}be.errorCode="invalid_grant";class Se extends U{}Se.errorCode="unauthorized_client";class je extends U{}je.errorCode="unsupported_grant_type";class Me extends U{}Me.errorCode="invalid_scope";class De extends U{}De.errorCode="access_denied";class Y extends U{}Y.errorCode="server_error";class Fe extends U{}Fe.errorCode="temporarily_unavailable";class Ve extends U{}Ve.errorCode="unsupported_response_type";class We extends U{}We.errorCode="unsupported_token_type";class Be extends U{}Be.errorCode="invalid_token";class He extends U{}He.errorCode="method_not_allowed";class Ge extends U{}Ge.errorCode="too_many_requests";class ze extends U{}ze.errorCode="invalid_client_metadata";class Je extends U{}Je.errorCode="insufficient_scope";class Ke extends U{}Ke.errorCode="invalid_target";const Qc={[qe.errorCode]:qe,[ke.errorCode]:ke,[be.errorCode]:be,[Se.errorCode]:Se,[je.errorCode]:je,[Me.errorCode]:Me,[De.errorCode]:De,[Y.errorCode]:Y,[Fe.errorCode]:Fe,[Ve.errorCode]:Ve,[We.errorCode]:We,[Be.errorCode]:Be,[He.errorCode]:He,[Ge.errorCode]:Ge,[ze.errorCode]:ze,[Je.errorCode]:Je,[Ke.errorCode]:Ke};class Pu extends Error{constructor(t){super(t??"Unauthorized")}}function eu(e){return["client_secret_basic","client_secret_post","none"].includes(e)}const Ie="code",Ce="S256";function tu(e,t){const n=e.client_secret!==void 0;return t.length===0?n?"client_secret_post":"none":"token_endpoint_auth_method"in e&&e.token_endpoint_auth_method&&eu(e.token_endpoint_auth_method)&&t.includes(e.token_endpoint_auth_method)?e.token_endpoint_auth_method:n&&t.includes("client_secret_basic")?"client_secret_basic":n&&t.includes("client_secret_post")?"client_secret_post":t.includes("none")?"none":n?"client_secret_post":"none"}function nu(e,t,n,o){const{client_id:r,client_secret:a}=t;switch(e){case"client_secret_basic":ou(r,a,n);return;case"client_secret_post":ru(r,a,o);return;case"none":iu(r,o);return;default:throw new Error(`Unsupported client authentication method: ${e}`)}}function ou(e,t,n){if(!t)throw new Error("client_secret_basic authentication requires a client_secret");const o=btoa(`${e}:${t}`);n.set("Authorization",`Basic ${o}`)}function ru(e,t,n){n.set("client_id",e),t&&n.set("client_secret",t)}function iu(e,t){t.set("client_id",e)}async function qn(e){const t=e instanceof Response?e.status:void 0,n=e instanceof Response?await e.text():e;try{const o=Hc.parse(JSON.parse(n)),{error:r,error_description:a,error_uri:s}=o,u=Qc[r]||Y;return new u(a||"",s)}catch(o){const r=`${t?`HTTP ${t}: `:""}Invalid OAuth error response: ${o}. Raw body: ${n}`;return new Y(r)}}async function Eu(e,t){try{return await Pe(e,t)}catch(n){if(n instanceof ke||n instanceof Se)return await e.invalidateCredentials?.("all"),await Pe(e,t);if(n instanceof be)return await e.invalidateCredentials?.("tokens"),await Pe(e,t);throw n}}async function Pe(e,{serverUrl:t,authorizationCode:n,scope:o,resourceMetadataUrl:r,fetchFn:a}){let s,u;try{s=await cu(t,{resourceMetadataUrl:r},a),s.authorization_servers&&s.authorization_servers.length>0&&(u=s.authorization_servers[0])}catch{}u||(u=new URL("/",t));const h=await su(t,e,s),_=await hu(u,{fetchFn:a});let y=await Promise.resolve(e.clientInformation());if(!y){if(n!==void 0)throw new Error("Existing OAuth client information is required when exchanging an authorization code");const D=_?.client_id_metadata_document_supported===!0,G=e.clientMetadataUrl;if(G&&!au(G))throw new ze(`clientMetadataUrl must be a valid HTTPS URL with a non-root pathname, got: ${G}`);if(D&&G)y={client_id:G},await e.saveClientInformation?.(y);else{if(!e.saveClientInformation)throw new Error("OAuth client information must be saveable for dynamic registration");const b=await gu(u,{metadata:_,clientMetadata:e.clientMetadata,fetchFn:a});await e.saveClientInformation(b),y=b}}const f=!e.redirectUrl;if(n!==void 0||f){const D=await fu(e,u,{metadata:_,resource:h,authorizationCode:n,fetchFn:a});return await e.saveTokens(D),"AUTHORIZED"}const g=await e.tokens();if(g?.refresh_token)try{const D=await _u(u,{metadata:_,clientInformation:y,refreshToken:g.refresh_token,resource:h,addClientAuthentication:e.addClientAuthentication,fetchFn:a});return await e.saveTokens(D),"AUTHORIZED"}catch(D){if(!(!(D instanceof U)||D instanceof Y))throw D}const S=e.state?await e.state():void 0,{authorizationUrl:j,codeVerifier:H}=await mu(u,{metadata:_,clientInformation:y,state:S,redirectUrl:e.redirectUrl,scope:o||s?.scopes_supported?.join(" ")||e.clientMetadata.scope,resource:h});return await e.saveCodeVerifier(H),await e.redirectToAuthorization(j),"REDIRECT"}function au(e){if(!e)return!1;try{const t=new URL(e);return t.protocol==="https:"&&t.pathname!=="/"}catch{return!1}}async function su(e,t,n){const o=Yc(e);if(t.validateResourceURL)return await t.validateResourceURL(o,n?.resource);if(n){if(!Xc({requestedResource:o,configuredResource:n.resource}))throw new Error(`Protected resource ${n.resource} does not match expected ${o} (or origin)`);return new URL(n.resource)}}function Uu(e){const t=e.headers.get("WWW-Authenticate");if(!t)return{};const[n,o]=t.split(" ");if(n.toLowerCase()!=="bearer"||!o)return{};const r=Ee(e,"resource_metadata")||void 0;let a;if(r)try{a=new URL(r)}catch{}const s=Ee(e,"scope")||void 0,u=Ee(e,"error")||void 0;return{resourceMetadataUrl:a,scope:s,error:u}}function Ee(e,t){const n=e.headers.get("WWW-Authenticate");if(!n)return null;const o=new RegExp(`${t}=(?:"([^"]+)"|([^\\s,]+))`),r=n.match(o);return r?r[1]||r[2]:null}async function cu(e,t,n=fetch){const o=await pu(e,"oauth-protected-resource",n,{protocolVersion:t?.protocolVersion,metadataUrl:t?.resourceMetadataUrl});if(!o||o.status===404)throw await o?.body?.cancel(),new Error("Resource server does not implement OAuth 2.0 Protected Resource Metadata.");if(!o.ok)throw await o.body?.cancel(),new Error(`HTTP ${o.status} trying to load well-known OAuth protected resource metadata.`);return Fc.parse(await o.json())}async function vt(e,t,n=fetch){try{return await n(e,{headers:t})}catch(o){if(o instanceof TypeError)return t?vt(e,void 0,n):void 0;throw o}}function uu(e,t="",n={}){return t.endsWith("/")&&(t=t.slice(0,-1)),n.prependPathname?`${t}/.well-known/${e}`:`/.well-known/${e}${t}`}async function jt(e,t,n=fetch){return await vt(e,{"MCP-Protocol-Version":t},n)}function lu(e,t){return!e||e.status>=400&&e.status<500&&t!=="/"}async function pu(e,t,n,o){const r=new URL(e),a=o?.protocolVersion??at;let s;if(o?.metadataUrl)s=new URL(o.metadataUrl);else{const h=uu(t,r.pathname);s=new URL(h,o?.metadataServerUrl??r),s.search=r.search}let u=await jt(s,a,n);if(!o?.metadataUrl&&lu(u,r.pathname)){const h=new URL(`/.well-known/${t}`,r);u=await jt(h,a,n)}return u}function du(e){const t=typeof e=="string"?new URL(e):e,n=t.pathname!=="/",o=[];if(!n)return o.push({url:new URL("/.well-known/oauth-authorization-server",t.origin),type:"oauth"}),o.push({url:new URL("/.well-known/openid-configuration",t.origin),type:"oidc"}),o;let r=t.pathname;return r.endsWith("/")&&(r=r.slice(0,-1)),o.push({url:new URL(`/.well-known/oauth-authorization-server${r}`,t.origin),type:"oauth"}),o.push({url:new URL(`/.well-known/openid-configuration${r}`,t.origin),type:"oidc"}),o.push({url:new URL(`${r}/.well-known/openid-configuration`,t.origin),type:"oidc"}),o}async function hu(e,{fetchFn:t=fetch,protocolVersion:n=at}={}){const o={"MCP-Protocol-Version":n,Accept:"application/json"},r=du(e);for(const{url:a,type:s}of r){const u=await vt(a,o,t);if(u){if(!u.ok){if(await u.body?.cancel(),u.status>=400&&u.status<500)continue;throw new Error(`HTTP ${u.status} trying to load ${s==="oauth"?"OAuth":"OpenID provider"} metadata from ${a}`)}return s==="oauth"?Ln.parse(await u.json()):Wc.parse(await u.json())}}}async function mu(e,{metadata:t,clientInformation:n,redirectUrl:o,scope:r,state:a,resource:s}){let u;if(t){if(u=new URL(t.authorization_endpoint),!t.response_types_supported.includes(Ie))throw new Error(`Incompatible auth server: does not support response type ${Ie}`);if(t.code_challenge_methods_supported&&!t.code_challenge_methods_supported.includes(Ce))throw new Error(`Incompatible auth server: does not support code challenge method ${Ce}`)}else u=new URL("/authorize",e);const h=await Dc(),_=h.code_verifier,y=h.code_challenge;return u.searchParams.set("response_type",Ie),u.searchParams.set("client_id",n.client_id),u.searchParams.set("code_challenge",y),u.searchParams.set("code_challenge_method",Ce),u.searchParams.set("redirect_uri",String(o)),a&&u.searchParams.set("state",a),r&&u.searchParams.set("scope",r),r?.includes("offline_access")&&u.searchParams.append("prompt","consent"),s&&u.searchParams.set("resource",s.href),{authorizationUrl:u,codeVerifier:_}}function jn(e,t,n){return new URLSearchParams({grant_type:"authorization_code",code:e,code_verifier:t,redirect_uri:String(n)})}async function wt(e,{metadata:t,tokenRequestParams:n,clientInformation:o,addClientAuthentication:r,resource:a,fetchFn:s}){const u=t?.token_endpoint?new URL(t.token_endpoint):new URL("/token",e),h=new Headers({"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"});if(a&&n.set("resource",a.href),r)await r(h,n,u,t);else if(o){const y=t?.token_endpoint_auth_methods_supported??[],f=tu(o,y);nu(f,o,h,n)}const _=await(s??fetch)(u,{method:"POST",headers:h,body:n});if(!_.ok)throw await qn(_);return Bc.parse(await _.json())}async function Au(e,{metadata:t,clientInformation:n,authorizationCode:o,codeVerifier:r,redirectUri:a,resource:s,addClientAuthentication:u,fetchFn:h}){const _=jn(o,r,a);return wt(e,{metadata:t,tokenRequestParams:_,clientInformation:n,addClientAuthentication:u,resource:s,fetchFn:h})}async function _u(e,{metadata:t,clientInformation:n,refreshToken:o,resource:r,addClientAuthentication:a,fetchFn:s}){const u=new URLSearchParams({grant_type:"refresh_token",refresh_token:o}),h=await wt(e,{metadata:t,tokenRequestParams:u,clientInformation:n,addClientAuthentication:a,resource:r,fetchFn:s});return{refresh_token:o,...h}}async function fu(e,t,{metadata:n,resource:o,authorizationCode:r,fetchFn:a}={}){const s=e.clientMetadata.scope;let u;if(e.prepareTokenRequest&&(u=await e.prepareTokenRequest(s)),!u){if(!r)throw new Error("Either provider.prepareTokenRequest() or authorizationCode is required");if(!e.redirectUrl)throw new Error("redirectUrl is required for authorization_code flow");const _=await e.codeVerifier();u=jn(r,_,e.redirectUrl)}const h=await e.clientInformation();return wt(t,{metadata:n,tokenRequestParams:u,clientInformation:h??void 0,addClientAuthentication:e.addClientAuthentication,resource:o,fetchFn:a})}async function gu(e,{metadata:t,clientMetadata:n,fetchFn:o}){let r;if(t){if(!t.registration_endpoint)throw new Error("Incompatible auth server: does not support dynamic client registration");r=new URL(t.registration_endpoint)}else r=new URL("/register",e);const a=await(o??fetch)(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!a.ok)throw await qn(a);return Kc.parse(await a.json())}export{Jr as $,yn as A,Tn as B,vn as C,Iu as D,ve as E,On as F,$n as G,Gs as H,Ms as I,zs as J,at as K,xn as L,ft as M,us as N,gn as O,Sn as P,Pc as Q,Ka as R,Su as S,Rn as T,js as U,Es as V,gs as W,ws as X,Ss as Y,Ws as Z,bu as _,i as a,Cu as a0,Rc as a1,Zc as a2,ac as a3,sc as a4,Pu as a5,Eu as a6,Uu as a7,xu as a8,Tu as a9,cu as aa,hu as ab,Au as ac,m as b,Wa as c,z as d,x as e,cn as f,he as g,l as h,rn as i,wu as j,F as k,ku as l,bn as m,w as n,p as o,Zn as p,In as q,T as r,ea as s,yu as t,$ as u,Zu as v,Ru as w,$u as x,zu as y,zn as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as r,d as m,j as n,A as o}from"./index-
|
|
1
|
+
import{c as r,d as m,j as n,A as o}from"./index-Cvm_GyUI.js";function i(){const e=r.c(3);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={from:"/auth/$pathname"},e[0]=t):t=e[0];const{pathname:s}=m(t);let a;return e[1]!==s?(a=n.jsx("main",{className:"container mx-auto flex grow flex-col items-center justify-center gap-3 self-center p-4 md:p-6",children:n.jsx(o,{pathname:s})}),e[1]=s,e[2]=a):a=e[2],a}export{i as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as R,c as j,j as i,h as I,Z as U,_ as L,$ as M}from"./index-
|
|
1
|
+
import{r as R,c as j,j as i,h as I,Z as U,_ as L,$ as M}from"./index-Cvm_GyUI.js";import{c as f}from"./utils-CYeWJWkG.js";const V=({size:a=24,color:e="currentColor",...s})=>R.createElement("svg",{viewBox:"0 0 24 24",width:a,height:a,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},R.createElement("path",{d:"M20 21c0-1.396 0-2.093-.172-2.661a4 4 0 0 0-2.667-2.667c-.568-.172-1.265-.172-2.661-.172h-5c-1.396 0-2.093 0-2.661.172a4 4 0 0 0-2.667 2.667C4 18.907 4 19.604 4 21M16.5 7.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Z"}));V.displayName="User01";function O(a){const e=j.c(8);let s,t;e[0]!==a?({className:s,...t}=a,e[0]=a,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=f("relative flex size-8 shrink-0 overflow-hidden rounded-full",s),e[3]=s,e[4]=o):o=e[4];let r;return e[5]!==t||e[6]!==o?(r=i.jsx(M,{"data-slot":"avatar",className:o,...t}),e[5]=t,e[6]=o,e[7]=r):r=e[7],r}function _(a){const e=j.c(8);let s,t;e[0]!==a?({className:s,...t}=a,e[0]=a,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=f("aspect-square size-full",s),e[3]=s,e[4]=o):o=e[4];let r;return e[5]!==t||e[6]!==o?(r=i.jsx(U,{"data-slot":"avatar-image",className:o,...t}),e[5]=t,e[6]=o,e[7]=r):r=e[7],r}function T(a){const e=j.c(8);let s,t;e[0]!==a?({className:s,...t}=a,e[0]=a,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=f("bg-muted flex size-full items-center justify-center rounded-full",s),e[3]=s,e[4]=o):o=e[4];let r;return e[5]!==t||e[6]!==o?(r=i.jsx(L,{"data-slot":"avatar-fallback",className:o,...t}),e[5]=t,e[6]=o,e[7]=r):r=e[7],r}const S=["drop-shadow-lg bg-gradient-to-br from-red-100 to-red-300 text-red-800 shadow-lg shadow-red-300/40 ring-1 ring-red-300/30","drop-shadow-lg bg-gradient-to-br from-lime-100 to-lime-300 text-lime-800 shadow-lg shadow-lime-300/40 ring-1 ring-lime-300/30","drop-shadow-lg bg-gradient-to-br from-emerald-100 to-emerald-300 text-emerald-800 shadow-lg shadow-emerald-300/40 ring-1 ring-emerald-300/30","drop-shadow-lg bg-gradient-to-br from-orange-100 to-orange-300 text-orange-800 shadow-lg shadow-orange-300/40 ring-1 ring-orange-300/30","drop-shadow-lg bg-gradient-to-br from-amber-100 to-amber-300 text-amber-800 shadow-lg shadow-amber-300/40 ring-1 ring-amber-300/30","drop-shadow-lg bg-gradient-to-br from-yellow-100 to-yellow-300 text-yellow-800 shadow-lg shadow-yellow-300/40 ring-1 ring-yellow-300/30","drop-shadow-lg bg-gradient-to-br from-green-100 to-green-300 text-green-800 shadow-lg shadow-green-300/40 ring-1 ring-green-300/30","drop-shadow-lg bg-gradient-to-br from-teal-100 to-teal-300 text-teal-800 shadow-lg shadow-teal-300/40 ring-1 ring-teal-300/30","drop-shadow-lg bg-gradient-to-br from-cyan-100 to-cyan-300 text-cyan-800 shadow-lg shadow-cyan-300/40 ring-1 ring-cyan-300/30","drop-shadow-lg bg-gradient-to-br from-sky-100 to-sky-300 text-sky-800 shadow-lg shadow-sky-300/40 ring-1 ring-sky-300/30","drop-shadow-lg bg-gradient-to-br from-blue-100 to-blue-300 text-blue-800 shadow-lg shadow-blue-300/40 ring-1 ring-blue-300/30","drop-shadow-lg bg-gradient-to-br from-indigo-100 to-indigo-300 text-indigo-800 shadow-lg shadow-indigo-300/40 ring-1 ring-indigo-300/30","drop-shadow-lg bg-gradient-to-br from-violet-100 to-violet-300 text-violet-800 shadow-lg shadow-violet-300/40 ring-1 ring-violet-300/30","drop-shadow-lg bg-gradient-to-br from-purple-100 to-purple-300 text-purple-800 shadow-lg shadow-purple-300/40 ring-1 ring-purple-300/30","drop-shadow-lg bg-gradient-to-br from-fuchsia-100 to-fuchsia-300 text-fuchsia-800 shadow-lg shadow-fuchsia-300/40 ring-1 ring-fuchsia-300/30","drop-shadow-lg bg-gradient-to-br from-pink-100 to-pink-300 text-pink-800 shadow-lg shadow-pink-300/40 ring-1 ring-pink-300/30","drop-shadow-lg bg-gradient-to-br from-rose-100 to-rose-300 text-rose-800 shadow-lg shadow-rose-300/40 ring-1 ring-rose-300/30"],W="drop-shadow-lg text-muted-foreground bg-muted shadow-lg";function Z(a){let e=0;for(let t=0;t<a.length;t++)e=a.charCodeAt(t)+((e<<5)-e);const s=Math.abs(e)%S.length;return S[s]}const $=I("border border-border",{variants:{shape:{circle:"rounded-full",square:""},size:{"3xs":"w-3 h-3 text-xs font-semibold","2xs":"w-4 h-4 text-xs font-semibold",xs:"w-6 h-6 text-sm font-semibold",sm:"w-8 h-8 text-lg font-semibold",base:"w-10 h-10 text-2xl font-semibold",lg:"w-12 h-12 text-3xl font-semibold",xl:"w-16 h-16 text-4xl font-semibold","2xl":"w-20 h-20 text-5xl font-semibold","3xl":"w-32 h-32 text-7xl font-semibold"}},compoundVariants:[{shape:"square",size:"xs",class:"rounded-lg"},{shape:"square",size:"sm",class:"rounded-xl"},{shape:"square",size:"base",class:"rounded-xl"},{shape:"square",size:"lg",class:"rounded-xl"},{shape:"square",size:"xl",class:"rounded-2xl"},{shape:"square",size:"2xl",class:"rounded-3xl"},{shape:"square",size:"3xl",class:"rounded-[40px]"}],defaultVariants:{shape:"square",size:"base"}}),B=I("",{variants:{objectFit:{contain:"object-contain",cover:"object-cover"}},defaultVariants:{objectFit:"cover"}}),D=a=>{const e={"3xs":8,"2xs":8,xs:12,sm:16,base:24,lg:28,xl:36,"2xl":48,"3xl":80};return e[a]||e.base};function G(a){const e=j.c(35);let s,t,o,r,n,d,g,l;e[0]!==a?({url:l,fallback:t,shape:r,size:n,objectFit:d,className:s,muted:g,...o}=a,e[0]=a,e[1]=s,e[2]=t,e[3]=o,e[4]=r,e[5]=n,e[6]=d,e[7]=g,e[8]=l):(s=e[1],t=e[2],o=e[3],r=e[4],n=e[5],d=e[6],g=e[7],l=e[8]);const b=r===void 0?"square":r,h=n===void 0?"base":n,u=d===void 0?"cover":d,k=g===void 0?!1:g,[m,x]=R.useState(!1);let F;e:{if(typeof t=="string"){let c;e[9]!==t?(c=t.trim().slice(0,2).toUpperCase(),e[9]=t,e[10]=c):c=e[10],F=c;break e}F=t}const C=F;let z;e:{if(k){z=W;break e}if(typeof t=="string"){let c;e[11]!==t?(c=Z(t),e[11]=t,e[12]=c):c=e[12],z=c;break e}z=S[0]}const y=z;let N;e[13]!==l?(N=l?.startsWith("icon://"),e[13]=l,e[14]=N):N=e[14];const p=N;let q;e[15]!==p||e[16]!==l?(q=p?l?.replace("icon://",""):void 0,e[15]=p,e[16]=l,e[17]=q):q=e[17];const E=q;let w;e[18]!==s||e[19]!==b||e[20]!==h?(w=f($({shape:b,size:h}),s),e[18]=s,e[19]=b,e[20]=h,e[21]=w):w=e[21];let v;e[22]!==y||e[23]!==C||e[24]!==E||e[25]!==m||e[26]!==p||e[27]!==u||e[28]!==h||e[29]!==l?(v=p&&E?i.jsx("div",{className:f("flex items-center justify-center w-full h-full",y),children:i.jsx(V,{size:D(h)})}):i.jsxs(i.Fragment,{children:[l&&!m&&i.jsx(_,{src:l,loading:"lazy",alt:"Avatar",className:f(B({objectFit:u})),onError:()=>x(!0)}),(!l||m)&&i.jsx(T,{className:f(y,"rounded-none"),children:C})]}),e[22]=y,e[23]=C,e[24]=E,e[25]=m,e[26]=p,e[27]=u,e[28]=h,e[29]=l,e[30]=v):v=e[30];let A;return e[31]!==o||e[32]!==v||e[33]!==w?(A=i.jsx(O,{className:w,...o,children:v}),e[31]=o,e[32]=v,e[33]=w,e[34]=A):A=e[34],A}function H(a){const e=j.c(18);let s,t,o,r,n,d,g,l;e[0]!==a?({shape:r,size:n,url:l,fallback:t,objectFit:d,className:s,muted:g,...o}=a,e[0]=a,e[1]=s,e[2]=t,e[3]=o,e[4]=r,e[5]=n,e[6]=d,e[7]=g,e[8]=l):(s=e[1],t=e[2],o=e[3],r=e[4],n=e[5],d=e[6],g=e[7],l=e[8]);const b=r===void 0?"square":r,h=n===void 0?"base":n,u=d===void 0?"cover":d,k=g===void 0?!1:g,m=h??"base";let x;return e[9]!==s||e[10]!==t||e[11]!==k||e[12]!==u||e[13]!==o||e[14]!==b||e[15]!==m||e[16]!==l?(x=i.jsx(G,{shape:b,url:l,fallback:t,size:m,objectFit:u,className:s,muted:k,...o}),e[9]=s,e[10]=t,e[11]=k,e[12]=u,e[13]=o,e[14]=b,e[15]=m,e[16]=l,e[17]=x):x=e[17],x}H.Skeleton=function({shape:e="square",size:s="base",className:t}){return i.jsx("div",{className:f($({shape:e,size:s}),"bg-muted animate-pulse",t)})};export{H as A};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as d,h as u,j as l,i as v}from"./index-
|
|
1
|
+
import{c as d,h as u,j as l,i as v}from"./index-Cvm_GyUI.js";import{c as g}from"./utils-CYeWJWkG.js";const f=u("inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",success:"border-transparent bg-success text-success-foreground [a&]:hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function m(o){const e=d.c(12);let r,s,a,t;e[0]!==o?({className:r,variant:t,asChild:a,...s}=o,e[0]=o,e[1]=r,e[2]=s,e[3]=a,e[4]=t):(r=e[1],s=e[2],a=e[3],t=e[4]);const c=(a===void 0?!1:a)?v:"span";let i;e[5]!==r||e[6]!==t?(i=g(f({variant:t}),r),e[5]=r,e[6]=t,e[7]=i):i=e[7];let n;return e[8]!==c||e[9]!==s||e[10]!==i?(n=l.jsx(c,{"data-slot":"badge",className:i,...s}),e[8]=c,e[9]=s,e[10]=i,e[11]=n):n=e[11],n}export{m as B};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{bg as v,bi as p,by as l,bz as g,bh as b,Y as f,r as u,bp as m,bA as x,c as y,h as O,j as k,i as C}from"./index-Cvm_GyUI.js";import{c as E}from"./utils-CYeWJWkG.js";var M=class extends v{#e;#i=void 0;#t;#s;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#e.defaultMutationOptions(e),p(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#t,observer:this}),t?.mutationKey&&this.options.mutationKey&&l(t.mutationKey)!==l(this.options.mutationKey)?this.reset():this.#t?.state.status==="pending"&&this.#t.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#t?.removeObserver(this)}onMutationUpdate(e){this.#r(),this.#o(e)}getCurrentResult(){return this.#i}reset(){this.#t?.removeObserver(this),this.#t=void 0,this.#r(),this.#o()}mutate(e,t){return this.#s=t,this.#t?.removeObserver(this),this.#t=this.#e.getMutationCache().build(this.#e,this.options),this.#t.addObserver(this),this.#t.execute(e)}#r(){const e=this.#t?.state??g();this.#i={...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset}}#o(e){b.batch(()=>{if(this.#s&&this.hasListeners()){const t=this.#i.variables,r=this.#i.context,s={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#s.onSuccess?.(e.data,t,r,s)}catch(i){Promise.reject(i)}try{this.#s.onSettled?.(e.data,null,t,r,s)}catch(i){Promise.reject(i)}}else if(e?.type==="error"){try{this.#s.onError?.(e.error,t,r,s)}catch(i){Promise.reject(i)}try{this.#s.onSettled?.(void 0,e.error,t,r,s)}catch(i){Promise.reject(i)}}}this.listeners.forEach(t=>{t(this.#i)})})}};function w(e,t){const r=f(t),[s]=u.useState(()=>new M(r,e));u.useEffect(()=>{s.setOptions(e)},[s,e]);const i=u.useSyncExternalStore(u.useCallback(o=>s.subscribe(b.batchCalls(o)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),n=u.useCallback((o,d)=>{s.mutate(o,d).catch(m)},[s]);if(i.error&&x(s.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:n,mutateAsync:i.mutate}}const S=O("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive cursor-pointer",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border text-foreground bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-foreground/80 hover:text-foreground",brand:"bg-brand-green-light text-brand-green-dark hover:bg-brand-green-light/90"},size:{default:"h-10 px-4 py-2 has-[>svg]:px-3",sm:"h-8 gap-1.5 px-3 has-[>svg]:px-2.5",xs:"h-6 gap-1 px-2 text-xs has-[>svg]:px-1.5",lg:"h-10 px-6 has-[>svg]:px-4",icon:"size-10"}},defaultVariants:{variant:"default",size:"default"}});function z(e){const t=y.c(14);let r,s,i,n,o;t[0]!==e?({className:r,variant:o,size:i,asChild:n,...s}=e,t[0]=e,t[1]=r,t[2]=s,t[3]=i,t[4]=n,t[5]=o):(r=t[1],s=t[2],i=t[3],n=t[4],o=t[5]);const c=(n===void 0?!1:n)?C:"button";let a;t[6]!==r||t[7]!==i||t[8]!==o?(a=E(S({variant:o,size:i,className:r})),t[6]=r,t[7]=i,t[8]=o,t[9]=a):a=t[9];let h;return t[10]!==c||t[11]!==s||t[12]!==a?(h=k.jsx(c,{"data-slot":"button",className:a,...s}),t[10]=c,t[11]=s,t[12]=a,t[13]=h):h=t[13],h}export{z as B,S as b,w as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as l,j as c}from"./index-
|
|
1
|
+
import{c as l,j as c}from"./index-Cvm_GyUI.js";import{c as d}from"./utils-CYeWJWkG.js";function f(r){const e=l.c(8);let t,a;e[0]!==r?({className:t,...a}=r,e[0]=r,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=d("bg-card text-card-foreground hover:bg-accent/50 flex flex-col gap-6 rounded-xl border border-border/75",t),e[3]=t,e[4]=s):s=e[4];let o;return e[5]!==a||e[6]!==s?(o=c.jsx("div",{"data-slot":"card",className:s,...a}),e[5]=a,e[6]=s,e[7]=o):o=e[7],o}function p(r){const e=l.c(8);let t,a;e[0]!==r?({className:t,...a}=r,e[0]=r,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=d("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto]",t),e[3]=t,e[4]=s):s=e[4];let o;return e[5]!==a||e[6]!==s?(o=c.jsx("div",{"data-slot":"card-header",className:s,...a}),e[5]=a,e[6]=s,e[7]=o):o=e[7],o}function m(r){const e=l.c(8);let t,a;e[0]!==r?({className:t,...a}=r,e[0]=r,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=d("leading-none font-semibold",t),e[3]=t,e[4]=s):s=e[4];let o;return e[5]!==a||e[6]!==s?(o=c.jsx("div",{"data-slot":"card-title",className:s,...a}),e[5]=a,e[6]=s,e[7]=o):o=e[7],o}function u(r){const e=l.c(4);let t;e[0]!==r?({...t}=r,e[0]=r,e[1]=t):t=e[1];let a;return e[2]!==t?(a=c.jsx("div",{"data-slot":"card-content",...t}),e[2]=t,e[3]=a):a=e[3],a}export{f as C,p as a,m as b,u as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as
|
|
1
|
+
import{c as d,j as c,aM as n,aN as l}from"./index-Cvm_GyUI.js";import{i as m}from"./tooltip-CZ2WJBN2.js";import{c as b}from"./utils-CYeWJWkG.js";function f(o){const e=d.c(9);let r,a;e[0]!==o?({className:r,...a}=o,e[0]=o,e[1]=r,e[2]=a):(r=e[1],a=e[2]);let i;e[3]!==r?(i=b("peer border-foreground dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",r),e[3]=r,e[4]=i):i=e[4];let t;e[5]===Symbol.for("react.memo_cache_sentinel")?(t=c.jsx(l,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-primary-foreground transition-none",children:c.jsx(m,{className:"size-3.5"})}),e[5]=t):t=e[5];let s;return e[6]!==a||e[7]!==i?(s=c.jsx(n,{"data-slot":"checkbox",className:i,...a,children:t}),e[6]=a,e[7]=i,e[8]=s):s=e[8],s}export{f as C};
|