@openephemeris/mcp-server 4.18.0 → 4.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui/bazi.html CHANGED
@@ -1,7 +1,7 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="en">
3
3
  <head>
4
- <meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'unsafe-inline'; style-src 'unsafe-inline'; img-src data:; font-src data:; connect-src 'none'" />
4
+ <meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'unsafe-inline'; style-src 'unsafe-inline'; img-src data:; font-src data: https:; connect-src 'none'" />
5
5
  <meta charset="UTF-8" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <meta name="color-scheme" content="dark light" />
@@ -10,7 +10,7 @@
10
10
  <title>BaZi Four Pillars Explorer</title>
11
11
 
12
12
 
13
- <style>:root{--bg:#010102;--surface:#030408;--surface-2:#080b11;--border:#13161d;--border-strong:#242933;--text:#e2e4e9;--text-secondary:#a1a5ab;--muted:#84868b;--gold:#cc9c42;--gold-dim:#7b6540;--gold-glow:rgba(204,156,66,.2);--gold-subtle:rgba(204,156,66,.1);--success:#1da871;--error:#c53443;--radius:10px;--radius-sm:6px;--radius-pill:99px;--shadow-md:0 8px 40px rgba(0,0,0,.65), 0 0 0 1px var(--border-strong);--shadow-gold:0 0 28px rgba(204,156,66,.15), 0 0 0 1px rgba(204,156,66,.2)}@supports (color:color(display-p3 0 0 0)){:root{--bg:color(display-p3 .00306656 .00431968 .00888397);--surface:color(display-p3 .013072 .016989 .0298495);--surface-2:color(display-p3 .0345774 .0431759 .0653236);--border:color(display-p3 .0763929 .0859556 .109705);--border-strong:color(display-p3 .144788 .159634 .196542);--text:color(display-p3 .889546 .895785 .910689);--text-secondary:color(display-p3 .635245 .644982 .668335);--muted:color(display-p3 .518127 .525635 .543633);--gold:color(display-p3 .76996 .617341 .321369);--gold-dim:color(display-p3 .469305 .400291 .270966);--gold-glow:color(display-p3 .76996 .617341 .321369/.2);--gold-subtle:color(display-p3 .76996 .617341 .321369/.1);--success:color(display-p3 .313719 .651039 .459895);--error:color(display-p3 .710345 .252818 .279408);--shadow-md:0 8px 40px color(display-p3 0 0 0/.65), 0 0 0 1px var(--border-strong);--shadow-gold:0 0 28px color(display-p3 .76996 .617341 .321369/.15), 0 0 0 1px color(display-p3 .76996 .617341 .321369/.2)}}@supports (color:lab(0% 0 0)){:root{--bg:lab(.302122% .0219196 -.522962);--surface:lab(1.18159% .0276566 -1.4848);--surface-2:lab(3.00584% .0228807 -3.15676);--border:lab(7.15581% -.0557452 -5.11242);--border-strong:lab(16.3712% -.0768155 -7.37782);--text:lab(90.6942% -.142366 -2.26941);--text-secondary:lab(67.4758% -.215352 -3.76978);--muted:lab(55.8848% -.174642 -3.01716);--gold:lab(67.5798% 11.9379 52.333);--gold-dim:lab(44.394% 5.21132 24.4453);--gold-glow:lab(67.5798% 11.9379 52.333/.2);--gold-subtle:lab(67.5798% 11.9379 52.333/.1);--success:lab(61.2436% -46.7762 18.3644);--error:lab(45.8893% 57.7361 27.393);--shadow-md:0 8px 40px lab(0% 0 0/.65), 0 0 0 1px var(--border-strong);--shadow-gold:0 0 28px lab(67.5798% 11.9379 52.333/.15), 0 0 0 1px lab(67.5798% 11.9379 52.333/.2)}}*,:before,:after{box-sizing:border-box;margin:0;padding:0}[hidden]{display:none!important}html,body{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;background:var(--bg);height:100%;color:var(--text);font-family:Geist,Space Grotesk,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.5;overflow-x:hidden}#app{flex-direction:column;gap:8px;min-height:0;padding:8px 12px;display:flex}#loading-state{min-height:300px;color:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:14px;display:flex}#loading-state p{letter-spacing:.06em;text-transform:uppercase;font-size:11px}.oe-loader{width:64px;height:64px;stroke:var(--gold);stroke-width:2px;fill:none;stroke-dasharray:200;stroke-dashoffset:200px;filter:drop-shadow(0 0 4px var(--gold-glow));animation:2.5s cubic-bezier(.16,1,.3,1) infinite oe-draw}@keyframes oe-draw{0%{stroke-dashoffset:200px;stroke-opacity:.1}50%{stroke-dashoffset:0;stroke-opacity:1;filter:drop-shadow(0 0 8px var(--gold))}to{stroke-dashoffset:-200px;stroke-opacity:.1}}#bazi-container{border-radius:var(--radius);border:1px solid var(--border-strong);width:100%;max-width:720px;box-shadow:var(--shadow-gold);background:#010102;background:color(display-p3 .00306656 .00431968 .00888397);background:lab(.302122% .0219196 -.522962);margin:0 auto;transition:box-shadow .3s;position:relative;overflow:visible}#bazi-container:hover{box-shadow:0 0 40px rgba(204,156,66,.22),0 0 0 1px rgba(204,156,66,.3);box-shadow:0 0 40px color(display-p3 .76996 .617341 .321369/.22),0 0 0 1px color(display-p3 .76996 .617341 .321369/.3);box-shadow:0 0 40px lab(67.5798% 11.9379 52.333/.22),0 0 0 1px lab(67.5798% 11.9379 52.333/.3)}#bazi-container svg{width:100%;height:auto;max-height:min(62vh,560px);display:block}.pillar-hit{cursor:pointer;transition:opacity .16s}.pillar-hit:hover{outline:2px solid var(--gold);outline-offset:-2px;fill:rgba(204,156,66,.08)!important;fill:color(display-p3 .76996 .617341 .321369/.08)!important;fill:lab(67.5798% 11.9379 52.333/.08)!important}.pillar-hit:focus-visible{outline:2px solid var(--gold);outline-offset:-2px;fill:rgba(204,156,66,.08)!important;fill:color(display-p3 .76996 .617341 .321369/.08)!important;fill:lab(67.5798% 11.9379 52.333/.08)!important}#info-panel{background:var(--surface);border:1px solid var(--border-strong);border-radius:var(--radius);flex-direction:column;gap:4px;width:100%;max-width:720px;margin:0 auto;padding:10px 14px;display:flex}.info-row{align-items:baseline;gap:8px;display:flex}.info-label{letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-size:9px;font-weight:700}.info-value{color:var(--gold);font-size:13px;font-weight:600}.info-hint{color:var(--text-secondary);font-size:10px}.error-state{min-height:200px;color:var(--text-secondary);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:24px;display:flex}.error-icon{opacity:.7;font-size:24px}.error-retry-btn{border:1px solid var(--border-strong);color:var(--text);font:inherit;letter-spacing:.02em;cursor:pointer;background:0 0;border-radius:999px;margin-top:4px;padding:7px 20px;font-size:11px;font-weight:600;transition:background .18s,border-color .18s}.error-retry-btn:hover{background:rgba(204,156,66,.1);background:color(display-p3 .76996 .617341 .321369/.1);background:lab(67.5798% 11.9379 52.333/.1)}.chart-status{-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-radius:var(--radius-pill);color:var(--gold);letter-spacing:.04em;z-index:900;opacity:0;pointer-events:none;background:rgba(5,7,13,.92);background:color(display-p3 .0216592 .0280553 .0483601/.92);background:lab(1.95095% .0425801 -2.41514/.92);border:1px solid rgba(204,156,66,.35);border:1px solid color(display-p3 .76996 .617341 .321369/.35);border:1px solid lab(67.5798% 11.9379 52.333/.35);max-height:0;padding:5px 18px;font-size:11px;font-weight:600;transition:max-height .24s cubic-bezier(.16,1,.3,1),opacity .24s,transform .24s cubic-bezier(.16,1,.3,1);position:fixed;top:10px;left:50%;overflow:hidden;transform:translate(-50%)translateY(-10px);box-shadow:0 4px 20px rgba(0,0,0,.5),0 0 0 1px rgba(204,156,66,.08);box-shadow:0 4px 20px color(display-p3 0 0 0/.5),0 0 0 1px color(display-p3 .76996 .617341 .321369/.08);box-shadow:0 4px 20px lab(0% 0 0/.5),0 0 0 1px lab(67.5798% 11.9379 52.333/.08)}.chart-status.visible{opacity:1;max-height:44px;transform:translate(-50%)translateY(0)}.bazi-action-bar{flex-wrap:wrap;gap:8px;width:100%;max-width:720px;margin:0 auto;padding:10px 0 0;display:flex}.action-btn{color:var(--gold);letter-spacing:.02em;cursor:pointer;white-space:nowrap;background:rgba(212,175,55,.08);border:1px solid rgba(212,175,55,.3);border-radius:8px;align-items:center;gap:6px;padding:7px 16px;font-size:12px;font-weight:600;transition:background .2s,border-color .2s,transform .1s;display:inline-flex}.action-btn:hover{background:rgba(212,175,55,.15);border-color:rgba(212,175,55,.5);transform:translateY(-1px)}.action-btn--primary{background:linear-gradient(135deg,rgba(212,175,55,.2),rgba(180,140,30,.25));border-color:rgba(212,175,55,.5)}.pan-zoom-controls{z-index:800;flex-direction:column;gap:6px;display:flex;position:absolute;bottom:12px;right:12px}.pan-zoom-controls[hidden]{display:none!important}.pan-btn{background:var(--surface-2);border:1px solid var(--border-strong);color:var(--text);border-radius:var(--radius-sm);cursor:pointer;width:36px;height:36px;box-shadow:var(--shadow-md);justify-content:center;align-items:center;font-family:inherit;font-size:18px;transition:all .15s;display:flex}.pan-btn.reset{width:auto;padding:0 10px;font-size:11px;font-weight:500}.pan-btn:hover{background:var(--surface);border-color:var(--gold-dim);color:var(--gold)}.pan-btn:active{transform:scale(.95)}.pan-btn--fullscreen{width:36px;height:36px}@media (max-width:480px){.pan-zoom-controls{gap:5px}.pan-btn,.pan-btn--fullscreen{background:color-mix(in oklab, var(--surface-2) 72%, transparent);-webkit-backdrop-filter:blur(6px);width:32px;height:32px;font-size:15px}.pan-btn.reset{width:32px;padding:0;font-size:0}.pan-btn.reset:before{content:"⟲";font-size:15px}}body.is-fullscreen{height:100vh;overflow:hidden}body.is-fullscreen #app{flex-direction:column;gap:0;width:100vw;max-width:100%;height:100vh;padding:0;display:flex;overflow:hidden}body.is-fullscreen #bazi-container{min-height:0;max-width:unset;width:100%;height:auto;box-shadow:none;background:0 0;border:none;flex:1;justify-content:center;align-items:center;margin:0;padding:16px 24px 0;display:flex}body.is-fullscreen #loading-state{flex:1;height:auto;min-height:0}body.is-fullscreen #bazi-container svg{width:auto;max-width:100%;height:100%;max-height:100%}body.is-fullscreen .pan-zoom-controls{top:16px;right:16px}#fs-bottom-bar{border-top:1px solid var(--border);background:#020306;background:color(display-p3 .0100648 .0127997 .0215356);background:lab(.889429% .0122339 -1.01076);flex-shrink:0;grid-template-rows:1fr;grid-template-columns:220px 1fr 220px;height:240px;min-height:180px;max-height:280px;display:grid}#fs-bottom-bar [data-column=left],#fs-bottom-bar [data-column=right]{scrollbar-width:thin;scrollbar-color:var(--border-strong) transparent;flex-direction:column;gap:4px;padding:10px 14px 12px;display:flex;overflow-x:hidden;overflow-y:auto}#fs-bottom-bar [data-column=left]{border-right:1px solid var(--border)}#fs-bottom-bar [data-column=center]{pointer-events:none}#fs-bottom-bar [data-column=right]{border-left:1px solid var(--border);overflow-y:auto}#fs-bottom-bar [data-column]>*+*{border-top:1px solid var(--border);margin-top:4px;padding-top:8px}#fs-bottom-bar .bazi-action-bar{flex-direction:column;padding:8px 0 0}#fs-bottom-bar .action-btn{justify-content:center;width:100%}.cancel-toast{background:var(--surface-2,#1e1e2e);border:1px solid var(--border-strong,#444);color:var(--text-secondary,#aaa);border-radius:var(--radius-sm,6px);opacity:0;z-index:9999;pointer-events:none;box-shadow:var(--shadow-md,0 4px 12px rgba(0,0,0,.3));padding:8px 16px;font-family:inherit;font-size:12px;transition:opacity .3s,transform .3s;position:fixed;bottom:20px;left:50%;transform:translate(-50%)translateY(20px)}.cancel-toast.visible{opacity:1;transform:translate(-50%)translateY(0)}@media (max-width:420px){#app{gap:8px;padding:8px}}:root[data-theme=light]{--bg:#f4f5f8;--surface:#fbfcfe;--surface-2:#eceef3;--border:#d5d7dd;--border-strong:#babec6;--text:#181b1f;--text-secondary:#4a4d54;--muted:#606369;--gold:#8a6000;--gold-dim:#967c4f;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@supports (color:color(display-p3 0 0 0)){:root[data-theme=light]{--bg:color(display-p3 .956515 .960735 .970805);--surface:color(display-p3 .98376 .986943 .994535);--surface-2:color(display-p3 .928401 .934691 .949715);--border:color(display-p3 .836244 .844458 .864107);--border-strong:color(display-p3 .731542 .743532 .772301);--text:color(display-p3 .096883 .103987 .12134);--text-secondary:color(display-p3 .291758 .301882 .326359);--muted:color(display-p3 .379924 .388781 .410092);--gold:color(display-p3 .524671 .380491 .0387678);--gold-dim:color(display-p3 .572756 .489268 .332751)}}@supports (color:lab(0% 0 0)){:root[data-theme=light]{--bg:lab(96.503% -.0977516 -1.51461);--surface:lab(98.8273% -.0742674 -1.13657);--surface-2:lab(94.1743% -.142753 -2.26963);--border:lab(86.0453% -.183702 -3.02233);--border-strong:lab(76.7468% -.254452 -4.52154);--text:lab(9.4703% -.119448 -3.722);--text-secondary:lab(32.6639% -.205323 -4.4957);--muted:lab(41.9548% -.197023 -3.7598);--gold:lab(44.2758% 13.6718 62.9124);--gold-dim:lab(53.685% 6.10271 28.558)}}:root[data-theme=light] body{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;background-image:none}:root[data-theme=light] #bazi-container{border-color:var(--border-strong);background:#fff;background:color(display-p3 1 1 1);background:lab(100% 0 0)}:root[data-theme=light] .chart-status{background:rgba(247,245,241,.92);background:color(display-p3 .967616 .959866 .945308/.92);background:lab(96.5376% .34079 2.2589/.92);border-color:rgba(141,95,0,.35);border-color:color(display-p3 .542549 .371783 -.107551/.35);border-color:lab(44.1995% 17.0662 84.3373/.35)}:root[data-theme=light] #info-panel{background:var(--surface);border-color:var(--border)}:root[data-theme=light] #fs-bottom-bar{background:#f7f5f1;background:color(display-p3 .967616 .959866 .945308);background:lab(96.5376% .34079 2.2589);border-top-color:#caced4;border-top-color:color(display-p3 .796183 .806346 .830691);border-top-color:lab(82.5562% -.22167 -3.77336)}:root[data-theme=light] #fs-bottom-bar [data-column=left],:root[data-theme=light] #fs-bottom-bar [data-column=right]{background:#f1eeea;background:color(display-p3 .941472 .933762 .919279);background:lab(94.2176% .341028 2.25905)}
13
+ <style>:root{--bg:#010102;--surface:#030408;--surface-2:#080b11;--border:#13161d;--border-strong:#242933;--text:#e2e4e9;--text-secondary:#a1a5ab;--muted:#84868b;--gold:#cc9c42;--gold-dim:#7b6540;--gold-glow:rgba(204,156,66,.2);--gold-subtle:rgba(204,156,66,.1);--success:#1da871;--error:#c53443;--radius:10px;--radius-sm:6px;--radius-pill:99px;--oe-shadow-md:0 8px 40px rgba(0,0,0,.65), 0 0 0 1px var(--border-strong);--shadow-gold:0 0 28px rgba(204,156,66,.15), 0 0 0 1px rgba(204,156,66,.2);--font-ui:var(--font-sans,system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif);--font-code:var(--font-mono,ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace);--oe-page-bg:var(--color-background-primary,var(--bg));--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}@supports (color:color(display-p3 0 0 0)){:root{--bg:color(display-p3 .00306656 .00431968 .00888397);--surface:color(display-p3 .013072 .016989 .0298495);--surface-2:color(display-p3 .0345774 .0431759 .0653236);--border:color(display-p3 .0763929 .0859556 .109705);--border-strong:color(display-p3 .144788 .159634 .196542);--text:color(display-p3 .889546 .895785 .910689);--text-secondary:color(display-p3 .635245 .644982 .668335);--muted:color(display-p3 .518127 .525635 .543633);--gold:color(display-p3 .76996 .617341 .321369);--gold-dim:color(display-p3 .469305 .400291 .270966);--gold-glow:color(display-p3 .76996 .617341 .321369/.2);--gold-subtle:color(display-p3 .76996 .617341 .321369/.1);--success:color(display-p3 .313719 .651039 .459895);--error:color(display-p3 .710345 .252818 .279408);--oe-shadow-md:0 8px 40px color(display-p3 0 0 0/.65), 0 0 0 1px var(--border-strong);--shadow-gold:0 0 28px color(display-p3 .76996 .617341 .321369/.15), 0 0 0 1px color(display-p3 .76996 .617341 .321369/.2)}}@supports (color:lab(0% 0 0)){:root{--bg:lab(.302122% .0219196 -.522962);--surface:lab(1.18159% .0276566 -1.4848);--surface-2:lab(3.00584% .0228807 -3.15676);--border:lab(7.15581% -.0557452 -5.11242);--border-strong:lab(16.3712% -.0768155 -7.37782);--text:lab(90.6942% -.142366 -2.26941);--text-secondary:lab(67.4758% -.215352 -3.76978);--muted:lab(55.8848% -.174642 -3.01716);--gold:lab(67.5798% 11.9379 52.333);--gold-dim:lab(44.394% 5.21132 24.4453);--gold-glow:lab(67.5798% 11.9379 52.333/.2);--gold-subtle:lab(67.5798% 11.9379 52.333/.1);--success:lab(61.2436% -46.7762 18.3644);--error:lab(45.8893% 57.7361 27.393);--oe-shadow-md:0 8px 40px lab(0% 0 0/.65), 0 0 0 1px var(--border-strong);--shadow-gold:0 0 28px lab(67.5798% 11.9379 52.333/.15), 0 0 0 1px lab(67.5798% 11.9379 52.333/.2)}}:root[data-theme=light]{--bg:#f4f5f8;--surface:#fbfcfe;--surface-2:#eceef3;--border:#d5d7dd;--border-strong:#babec6;--text:#181b1f;--text-secondary:#4a4d54;--muted:#606369;--gold:#8a6000;--gold-dim:#967c4f;--gold-glow:rgba(141,95,0,.25);--gold-subtle:rgba(141,95,0,.07);--success:#007145;--error:#b1002b;--oe-shadow-md:0 4px 24px rgba(0,0,0,.12), 0 0 0 1px var(--border-strong);--shadow-gold:0 0 16px rgba(141,95,0,.18), 0 0 0 1px rgba(141,95,0,.22);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@supports (color:color(display-p3 0 0 0)){:root[data-theme=light]{--bg:color(display-p3 .956515 .960735 .970805);--surface:color(display-p3 .98376 .986943 .994535);--surface-2:color(display-p3 .928401 .934691 .949715);--border:color(display-p3 .836244 .844458 .864107);--border-strong:color(display-p3 .731542 .743532 .772301);--text:color(display-p3 .096883 .103987 .12134);--text-secondary:color(display-p3 .291758 .301882 .326359);--muted:color(display-p3 .379924 .388781 .410092);--gold:color(display-p3 .524671 .380491 .0387678);--gold-dim:color(display-p3 .572756 .489268 .332751);--gold-glow:color(display-p3 .542549 .371783 -.107551/.25);--gold-subtle:color(display-p3 .542549 .371783 -.107551/.07);--success:color(display-p3 -.0793084 .456092 .255685);--error:color(display-p3 .642198 .101724 .18242);--oe-shadow-md:0 4px 24px color(display-p3 0 0 0/.12), 0 0 0 1px var(--border-strong);--shadow-gold:0 0 16px color(display-p3 .542549 .371783 -.107551/.18), 0 0 0 1px color(display-p3 .542549 .371783 -.107551/.22)}}@supports (color:lab(0% 0 0)){:root[data-theme=light]{--bg:lab(96.503% -.0977516 -1.51461);--surface:lab(98.8273% -.0742674 -1.13657);--surface-2:lab(94.1743% -.142753 -2.26963);--border:lab(86.0453% -.183702 -3.02233);--border-strong:lab(76.7468% -.254452 -4.52154);--text:lab(9.4703% -.119448 -3.722);--text-secondary:lab(32.6639% -.205323 -4.4957);--muted:lab(41.9548% -.197023 -3.7598);--gold:lab(44.2758% 13.6718 62.9124);--gold-dim:lab(53.685% 6.10271 28.558);--gold-glow:lab(44.1995% 17.0662 84.3373/.25);--gold-subtle:lab(44.1995% 17.0662 84.3373/.07);--success:lab(41.7514% -55.3249 21.5039);--error:lab(37.5238% 64.2774 32.6097);--oe-shadow-md:0 4px 24px lab(0% 0 0/.12), 0 0 0 1px var(--border-strong);--shadow-gold:0 0 16px lab(44.1995% 17.0662 84.3373/.18), 0 0 0 1px lab(44.1995% 17.0662 84.3373/.22)}}:root{--safe-top:0px;--safe-right:0px;--safe-bottom:0px;--safe-left:0px;--oe-host-h:var(--host-height,var(--host-max-height,640px));--oe-chart-max:clamp(260px, calc(var(--oe-host-h) * .72), 560px);--oe-chart-max-lg:clamp(280px, calc(var(--oe-host-h) * .8), 720px);--oe-drawer-max:clamp(160px, calc(var(--oe-host-h) * .4), 360px);--oe-scroll-max:clamp(240px, calc(var(--oe-host-h) * .7), 560px)}html,body{font-family:var(--font-ui)}body{background-color:var(--oe-page-bg)}.oe-pannable{touch-action:pan-y}body.is-fullscreen .oe-pannable{touch-action:none}.pan-zoom-controls [hidden],.pan-btn[hidden]{display:none!important}.fs-hint-banner{top:calc(12px + var(--safe-top));z-index:9999;border-radius:var(--radius-pill);border:1px solid color-mix(in oklab, var(--gold) 35%, transparent);background:color-mix(in oklab, var(--surface-2) 92%, transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);max-width:calc(100% - 32px);color:var(--text);font:600 11px/1.4 var(--font-ui);letter-spacing:.04em;white-space:nowrap;text-overflow:ellipsis;pointer-events:none;opacity:0;padding:6px 16px;transition:opacity .3s;position:fixed;left:50%;overflow:hidden;transform:translate(-50%)}.fs-hint-banner.visible{opacity:1}@media (prefers-reduced-motion:reduce){.fs-hint-banner{transition:none}}body.is-fullscreen{height:100vh;height:100dvh;overflow:hidden}body.is-fullscreen #app{width:100%;max-width:none;height:100%;min-height:0;padding:var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);flex-direction:column;gap:0;margin:0;display:flex;overflow:hidden}body.is-fullscreen #app:has(>#fs-bottom-bar){padding-bottom:0}body.is-fullscreen #app .oe-stage{aspect-ratio:auto;width:100%;max-width:none;height:auto;min-height:0;max-height:none;box-shadow:none;background:0 0;border:0;border-radius:0;flex:auto;justify-content:center;align-items:center;margin:0;padding:16px 24px 8px;display:flex;overflow:hidden}body.is-fullscreen #app .oe-stage>svg{width:auto;max-width:100%;height:100%;max-height:100%}body.is-fullscreen #app .oe-stage--doc{width:100%;max-width:880px;padding:20px 24px calc(16px + var(--safe-bottom));flex-direction:column;justify-content:flex-start;align-items:stretch;margin:0 auto;display:flex;overflow-y:auto}body.is-fullscreen #app #loading-state{flex:1;height:auto;min-height:0}body.is-fullscreen #app .pan-zoom-controls{top:calc(54px + var(--safe-top));right:calc(12px + var(--safe-right));bottom:auto}body .oe-info-button{top:calc(12px + var(--safe-top));right:calc(12px + var(--safe-right))}#app #fs-bottom-bar{height:clamp(170px, calc(var(--oe-host-h) * .3), 280px);padding-bottom:var(--safe-bottom);border-top:1px solid var(--border);background:var(--surface);flex-shrink:0;grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(200px,260px) minmax(0,1fr) minmax(200px,260px);display:grid}:root[data-safe-bottom] #app #fs-bottom-bar{height:calc(clamp(170px, calc(var(--oe-host-h) * .3), 280px) + var(--safe-bottom));grid-template-columns:minmax(0,1fr) minmax(0,1fr)}:root[data-safe-bottom] #fs-bottom-bar [data-column=center]{display:none}#fs-bottom-bar [data-column=left],#fs-bottom-bar [data-column=right]{scrollbar-width:thin;scrollbar-color:var(--border-strong) transparent;flex-direction:column;gap:4px;min-height:0;padding:10px 14px 12px;display:flex;overflow-x:hidden;overflow-y:auto}#fs-bottom-bar [data-column=left]{border-right:1px solid var(--border)}#fs-bottom-bar [data-column=right]{border-left:1px solid var(--border)}#fs-bottom-bar [data-column=center]{pointer-events:none}#fs-bottom-bar [data-column]>*+*{border-top:1px solid var(--border);margin-top:4px;padding-top:8px}#fs-bottom-bar [class$=-action-bar],#fs-bottom-bar [class*=-action-bar\ ]{flex-direction:column;padding:8px 0 0}#fs-bottom-bar .action-btn{justify-content:center;width:100%}@media (max-width:640px){#app #fs-bottom-bar,:root[data-safe-bottom] #app #fs-bottom-bar{height:auto;max-height:42%;display:block;overflow-y:auto}#fs-bottom-bar [data-column=center]{display:none}#fs-bottom-bar [data-column=left],#fs-bottom-bar [data-column=right]{border:0;min-height:auto;overflow:visible}#fs-bottom-bar [data-column=right]{border-top:1px solid var(--border)}body.is-fullscreen #app .oe-stage{padding:8px}}body.is-pip{overflow:hidden}body.is-pip #app{gap:6px;padding:6px 8px}body.is-pip .oe-pip-hide,body.is-pip #param-controls-container,body.is-pip #chart-status,body.is-pip .oe-info-button{display:none!important}body.is-pip #app .pan-zoom-controls{top:6px;right:6px}*,:before,:after{box-sizing:border-box;margin:0;padding:0}[hidden]{display:none!important}html,body{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;background:var(--oe-page-bg);height:100%;color:var(--text);font-family:var(--font-ui);font-size:13px;line-height:1.5;overflow-x:hidden}#app{flex-direction:column;gap:8px;min-height:0;padding:8px 12px;display:flex}#loading-state{min-height:300px;color:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:14px;display:flex}#loading-state p{letter-spacing:.06em;text-transform:uppercase;font-size:11px}.oe-loader{width:64px;height:64px;stroke:var(--gold);stroke-width:2px;fill:none;stroke-dasharray:200;stroke-dashoffset:200px;filter:drop-shadow(0 0 4px var(--gold-glow));animation:2.5s cubic-bezier(.16,1,.3,1) infinite oe-draw}@keyframes oe-draw{0%{stroke-dashoffset:200px;stroke-opacity:.1}50%{stroke-dashoffset:0;stroke-opacity:1;filter:drop-shadow(0 0 8px var(--gold))}to{stroke-dashoffset:-200px;stroke-opacity:.1}}#bazi-container{border-radius:var(--radius);width:100%;max-width:720px;margin:0 auto;position:relative;overflow:visible}#bazi-container svg{width:100%;height:auto;max-height:var(--oe-chart-max);display:block}.pillar-hit{cursor:pointer;transition:opacity .16s}.pillar-hit:hover{outline:2px solid var(--gold);outline-offset:-2px;fill:rgba(204,156,66,.08)!important;fill:color(display-p3 .76996 .617341 .321369/.08)!important;fill:lab(67.5798% 11.9379 52.333/.08)!important}.pillar-hit:focus-visible{outline:2px solid var(--gold);outline-offset:-2px;fill:rgba(204,156,66,.08)!important;fill:color(display-p3 .76996 .617341 .321369/.08)!important;fill:lab(67.5798% 11.9379 52.333/.08)!important}#info-panel{background:var(--surface);border:1px solid var(--border-strong);border-radius:var(--radius);flex-direction:column;gap:4px;width:100%;max-width:720px;margin:0 auto;padding:10px 14px;display:flex}.info-row{align-items:baseline;gap:8px;display:flex}.info-label{letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-size:9px;font-weight:700}.info-value{color:var(--gold);font-size:13px;font-weight:600}.info-hint{color:var(--text-secondary);font-size:10px}.error-state{min-height:200px;color:var(--text-secondary);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:24px;display:flex}.error-icon{opacity:.7;font-size:24px}.error-retry-btn{border:1px solid var(--border-strong);color:var(--text);font:inherit;letter-spacing:.02em;cursor:pointer;background:0 0;border-radius:999px;margin-top:4px;padding:7px 20px;font-size:11px;font-weight:600;transition:background .18s,border-color .18s}.error-retry-btn:hover{background:rgba(204,156,66,.1);background:color(display-p3 .76996 .617341 .321369/.1);background:lab(67.5798% 11.9379 52.333/.1)}.chart-status{-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-radius:var(--radius-pill);color:var(--gold);letter-spacing:.04em;z-index:900;opacity:0;pointer-events:none;background:rgba(5,7,13,.92);background:color(display-p3 .0216592 .0280553 .0483601/.92);background:lab(1.95095% .0425801 -2.41514/.92);border:1px solid rgba(204,156,66,.35);border:1px solid color(display-p3 .76996 .617341 .321369/.35);border:1px solid lab(67.5798% 11.9379 52.333/.35);max-height:0;padding:5px 18px;font-size:11px;font-weight:600;transition:max-height .24s cubic-bezier(.16,1,.3,1),opacity .24s,transform .24s cubic-bezier(.16,1,.3,1);position:fixed;top:10px;left:50%;overflow:hidden;transform:translate(-50%)translateY(-10px);box-shadow:0 4px 20px rgba(0,0,0,.5),0 0 0 1px rgba(204,156,66,.08);box-shadow:0 4px 20px color(display-p3 0 0 0/.5),0 0 0 1px color(display-p3 .76996 .617341 .321369/.08);box-shadow:0 4px 20px lab(0% 0 0/.5),0 0 0 1px lab(67.5798% 11.9379 52.333/.08)}.chart-status.visible{opacity:1;max-height:44px;transform:translate(-50%)translateY(0)}.bazi-action-bar{flex-wrap:wrap;gap:8px;width:100%;max-width:720px;margin:0 auto;padding:10px 0 0;display:flex}.action-btn{color:var(--gold);letter-spacing:.02em;cursor:pointer;white-space:nowrap;background:rgba(212,175,55,.08);border:1px solid rgba(212,175,55,.3);border-radius:8px;align-items:center;gap:6px;padding:7px 16px;font-size:12px;font-weight:600;transition:background .2s,border-color .2s,transform .1s;display:inline-flex}.action-btn:hover{background:rgba(212,175,55,.15);border-color:rgba(212,175,55,.5);transform:translateY(-1px)}.action-btn--primary{background:linear-gradient(135deg,rgba(212,175,55,.2),rgba(180,140,30,.25));border-color:rgba(212,175,55,.5)}.pan-zoom-controls{z-index:800;flex-direction:column;gap:6px;display:flex;position:absolute;bottom:12px;right:12px}.pan-zoom-controls[hidden]{display:none!important}.pan-btn{background:var(--surface-2);border:1px solid var(--border-strong);color:var(--text);border-radius:var(--radius-sm);cursor:pointer;width:36px;height:36px;box-shadow:var(--oe-shadow-md);justify-content:center;align-items:center;font-family:inherit;font-size:18px;transition:all .15s;display:flex}.pan-btn.reset{width:auto;padding:0 10px;font-size:11px;font-weight:500}.pan-btn:hover{background:var(--surface);border-color:var(--gold-dim);color:var(--gold)}.pan-btn:active{transform:scale(.95)}.pan-btn--fullscreen{width:36px;height:36px}@media (max-width:480px){.pan-zoom-controls{gap:5px}.pan-btn,.pan-btn--fullscreen{background:color-mix(in oklab, var(--surface-2) 72%, transparent);-webkit-backdrop-filter:blur(6px);width:32px;height:32px;font-size:15px}.pan-btn.reset{width:32px;padding:0;font-size:0}.pan-btn.reset:before{content:"⟲";font-size:15px}}.cancel-toast{background:var(--surface-2,#1e1e2e);border:1px solid var(--border-strong,#444);color:var(--text-secondary,#aaa);border-radius:var(--radius-sm,6px);opacity:0;z-index:9999;pointer-events:none;box-shadow:var(--oe-shadow-md,0 4px 12px rgba(0,0,0,.3));padding:8px 16px;font-family:inherit;font-size:12px;transition:opacity .3s,transform .3s;position:fixed;bottom:20px;left:50%;transform:translate(-50%)translateY(20px)}.cancel-toast.visible{opacity:1;transform:translate(-50%)translateY(0)}@media (max-width:420px){#app{gap:8px;padding:8px}}:root[data-theme=light] body{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;background-image:none}:root[data-theme=light] .chart-status{background:rgba(247,245,241,.92);background:color(display-p3 .967616 .959866 .945308/.92);background:lab(96.5376% .34079 2.2589/.92);border-color:rgba(141,95,0,.35);border-color:color(display-p3 .542549 .371783 -.107551/.35);border-color:lab(44.1995% 17.0662 84.3373/.35)}:root[data-theme=light] #info-panel{background:var(--surface);border-color:var(--border)}
14
14
  /*$vite$:1*/</style>
15
15
  </head>
16
16
  <body>
@@ -20,7 +20,7 @@
20
20
  <p>Casting your Four Pillars…</p>
21
21
  </div>
22
22
  <div id="chart-status" class="chart-status" aria-live="polite"></div>
23
- <div id="bazi-container" hidden>
23
+ <div id="bazi-container" class="oe-stage" hidden>
24
24
  <div id="pan-zoom-controls" class="pan-zoom-controls" hidden>
25
25
  <button id="btn-zoom-in" class="pan-btn" aria-label="Zoom in">+</button>
26
26
  <button id="btn-zoom-out" class="pan-btn" aria-label="Zoom out">-</button>
@@ -121,7 +121,7 @@ var l = /* @__PURE__ */ Symbol("zod_brand"), u = class extends Error {
121
121
  function p(e4) {
122
122
  return e4 && Object.assign(f, e4), f;
123
123
  }
124
- var ee = t({ BIGINT_FORMAT_RANGES: () => je, Class: () => $e, NUMBER_FORMAT_RANGES: () => Ae, aborted: () => ze, allowsEval: () => ye, assert: () => re, assertEqual: () => te, assertIs: () => h, assertNever: () => ne, assertNotEqual: () => m, assignProp: () => le, base64ToUint8Array: () => qe, base64urlToUint8Array: () => Ye, cached: () => ie, captureStackTrace: () => _e, cleanEnum: () => Ke, cleanRegex: () => oe, clone: () => De, cloneDef: () => de, createTransparentProxy: () => Oe, defineLazy: () => b, esc: () => he, escapeRegex: () => Ee, extend: () => Pe, finalizeIssue: () => He, floatSafeRemainder: () => y, getElementAtPath: () => fe, getEnumValues: () => g, getLengthableOrigin: () => We, getParsedType: () => Ce, getSizableOrigin: () => Ue, hexToUint8Array: () => Ze, isObject: () => ve, isPlainObject: () => be, issue: () => Ge, joinValues: () => _, jsonStringifyReplacer: () => v, merge: () => Ie, mergeDefs: () => ue, normalizeParams: () => x, nullish: () => ae, numKeys: () => Se, objectClone: () => ce, omit: () => Ne, optionalKeys: () => ke, parsedType: () => C, partial: () => Le, pick: () => Me, prefixIssues: () => Be, primitiveTypes: () => Te, promiseAllObject: () => pe, propertyKeyTypes: () => we, randomString: () => me, required: () => Re, safeExtend: () => Fe, shallowClone: () => xe, slugify: () => ge, stringifyPrimitive: () => S, uint8ArrayToBase64: () => Je, uint8ArrayToBase64url: () => Xe, uint8ArrayToHex: () => Qe, unwrapMessage: () => Ve });
124
+ var ee = t({ BIGINT_FORMAT_RANGES: () => je, Class: () => $e, NUMBER_FORMAT_RANGES: () => Ae, aborted: () => ze, allowsEval: () => ye, assert: () => re, assertEqual: () => te, assertIs: () => h, assertNever: () => ne, assertNotEqual: () => m, assignProp: () => le, base64ToUint8Array: () => qe, base64urlToUint8Array: () => Ye, cached: () => ie, captureStackTrace: () => _e, cleanEnum: () => Ke, cleanRegex: () => oe, clone: () => De, cloneDef: () => de, createTransparentProxy: () => Oe, defineLazy: () => b, esc: () => he, escapeRegex: () => Ee, extend: () => Pe, finalizeIssue: () => He, floatSafeRemainder: () => se, getElementAtPath: () => fe, getEnumValues: () => g, getLengthableOrigin: () => We, getParsedType: () => Ce, getSizableOrigin: () => Ue, hexToUint8Array: () => Ze, isObject: () => ve, isPlainObject: () => be, issue: () => Ge, joinValues: () => _, jsonStringifyReplacer: () => v, merge: () => Ie, mergeDefs: () => ue, normalizeParams: () => x, nullish: () => ae, numKeys: () => Se, objectClone: () => ce, omit: () => Ne, optionalKeys: () => ke, parsedType: () => C, partial: () => Le, pick: () => Me, prefixIssues: () => Be, primitiveTypes: () => Te, promiseAllObject: () => pe, propertyKeyTypes: () => we, randomString: () => me, required: () => Re, safeExtend: () => Fe, shallowClone: () => xe, slugify: () => ge, stringifyPrimitive: () => S, uint8ArrayToBase64: () => Je, uint8ArrayToBase64url: () => Xe, uint8ArrayToHex: () => Qe, unwrapMessage: () => Ve });
125
125
  function te(e4) {
126
126
  return e4;
127
127
  }
@@ -161,7 +161,7 @@ function oe(e4) {
161
161
  let t2 = +!!e4.startsWith("^"), n2 = e4.endsWith("$") ? e4.length - 1 : e4.length;
162
162
  return e4.slice(t2, n2);
163
163
  }
164
- function y(e4, t2) {
164
+ function se(e4, t2) {
165
165
  let n2 = (e4.toString().split(".")[1] || "").length, r2 = t2.toString(), i2 = (r2.split(".")[1] || "").length;
166
166
  if (i2 === 0 && /\d?e-\d?/.test(r2)) {
167
167
  let e5 = r2.match(/\d?e-(\d?)/);
@@ -170,11 +170,11 @@ function y(e4, t2) {
170
170
  let a2 = n2 > i2 ? n2 : i2;
171
171
  return Number.parseInt(e4.toFixed(a2).replace(".", "")) % Number.parseInt(t2.toFixed(a2).replace(".", "")) / 10 ** a2;
172
172
  }
173
- var se = /* @__PURE__ */ Symbol("evaluating");
173
+ var y = /* @__PURE__ */ Symbol("evaluating");
174
174
  function b(e4, t2, n2) {
175
175
  let r2;
176
176
  Object.defineProperty(e4, t2, { get() {
177
- if (r2 !== se) return r2 === void 0 && (r2 = se, r2 = n2()), r2;
177
+ if (r2 !== y) return r2 === void 0 && (r2 = y, r2 = n2()), r2;
178
178
  }, set(n3) {
179
179
  Object.defineProperty(e4, t2, { value: n3 });
180
180
  }, configurable: true });
@@ -625,7 +625,7 @@ var On = /^[0-9a-fA-F]{32}$/, kn = En(22, "=="), An = Dn(22), jn = /^[0-9a-fA-F]
625
625
  (n2 = e5._zod.bag).multipleOf != null || (n2.multipleOf = t2.value);
626
626
  }), e4._zod.check = (n2) => {
627
627
  if (typeof n2.value != typeof t2.value) throw Error("Cannot mix number and bigint in multiple_of check.");
628
- (typeof n2.value == "bigint" ? n2.value % t2.value === BigInt(0) : y(n2.value, t2.value) === 0) || n2.issues.push({ origin: typeof n2.value, code: "not_multiple_of", divisor: t2.value, input: n2.value, inst: e4, continue: !t2.abort });
628
+ (typeof n2.value == "bigint" ? n2.value % t2.value === BigInt(0) : se(n2.value, t2.value) === 0) || n2.issues.push({ origin: typeof n2.value, code: "not_multiple_of", divisor: t2.value, input: n2.value, inst: e4, continue: !t2.abort });
629
629
  };
630
630
  }), qn = c("$ZodCheckNumberFormat", (e4, t2) => {
631
631
  var n2;
@@ -2442,22 +2442,22 @@ var Aa = () => {
2442
2442
  }
2443
2443
  if (t3.origin === "number") return "\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ".concat(n4, " \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ").concat(t3.inclusive ? "\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-".concat(t3.minimum) : "\u05D2\u05D3\u05D5\u05DC \u05DE-".concat(t3.minimum));
2444
2444
  if (t3.origin === "array" || t3.origin === "set") {
2445
- var oe2, y2;
2445
+ var oe2, se2;
2446
2446
  let r4 = t3.origin === "set" ? "\u05E6\u05E8\u05D9\u05DB\u05D4" : "\u05E6\u05E8\u05D9\u05DA";
2447
- return t3.minimum === 1 && t3.inclusive ? "\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ".concat(n4, " ").concat(r4, " \u05DC\u05D4\u05DB\u05D9\u05DC ").concat((t3.origin, "\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3")) : "\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ".concat(n4, " ").concat(r4, " \u05DC\u05D4\u05DB\u05D9\u05DC ").concat(t3.inclusive ? "".concat(t3.minimum, " ").concat((oe2 = e5 == null ? void 0 : e5.unit) == null ? "" : oe2, " \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8") : "\u05D9\u05D5\u05EA\u05E8 \u05DE-".concat(t3.minimum, " ").concat((y2 = e5 == null ? void 0 : e5.unit) == null ? "" : y2)).trim();
2447
+ return t3.minimum === 1 && t3.inclusive ? "\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ".concat(n4, " ").concat(r4, " \u05DC\u05D4\u05DB\u05D9\u05DC ").concat((t3.origin, "\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3")) : "\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ".concat(n4, " ").concat(r4, " \u05DC\u05D4\u05DB\u05D9\u05DC ").concat(t3.inclusive ? "".concat(t3.minimum, " ").concat((oe2 = e5 == null ? void 0 : e5.unit) == null ? "" : oe2, " \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8") : "\u05D9\u05D5\u05EA\u05E8 \u05DE-".concat(t3.minimum, " ").concat((se2 = e5 == null ? void 0 : e5.unit) == null ? "" : se2)).trim();
2448
2448
  }
2449
2449
  let r3 = t3.inclusive ? ">=" : ">", s3 = a2((g2 = t3.origin) == null ? "value" : g2);
2450
2450
  return e5 != null && e5.unit ? "".concat(e5.shortLabel, " \u05DE\u05D3\u05D9: ").concat(n4, " ").concat(s3, " ").concat(r3).concat(t3.minimum.toString(), " ").concat(e5.unit) : "".concat((v2 = e5 == null ? void 0 : e5.shortLabel) == null ? "\u05E7\u05D8\u05DF" : v2, " \u05DE\u05D3\u05D9: ").concat(n4, " ").concat(s3, " ").concat(r3).concat(t3.minimum.toString());
2451
2451
  }
2452
2452
  case "invalid_format": {
2453
- var se2, b2;
2453
+ var y2, b2;
2454
2454
  let e5 = t3;
2455
2455
  if (e5.format === "starts_with") return '\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "'.concat(e5.prefix, '"');
2456
2456
  if (e5.format === "ends_with") return '\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "'.concat(e5.suffix, '"');
2457
2457
  if (e5.format === "includes") return '\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "'.concat(e5.includes, '"');
2458
2458
  if (e5.format === "regex") return "\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ".concat(e5.pattern);
2459
2459
  let n4 = s2[e5.format];
2460
- return "".concat((se2 = n4 == null ? void 0 : n4.label) == null ? e5.format : se2, " \u05DC\u05D0 ").concat(((b2 = n4 == null ? void 0 : n4.gender) == null ? "m" : b2) === "f" ? "\u05EA\u05E7\u05D9\u05E0\u05D4" : "\u05EA\u05E7\u05D9\u05DF");
2460
+ return "".concat((y2 = n4 == null ? void 0 : n4.label) == null ? e5.format : y2, " \u05DC\u05D0 ").concat(((b2 = n4 == null ? void 0 : n4.gender) == null ? "m" : b2) === "f" ? "\u05EA\u05E7\u05D9\u05E0\u05D4" : "\u05EA\u05E7\u05D9\u05DF");
2461
2461
  }
2462
2462
  case "not_multiple_of":
2463
2463
  return "\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ".concat(t3.divisor);
@@ -4083,338 +4083,338 @@ function $o() {
4083
4083
  return new Qo();
4084
4084
  }
4085
4085
  (Yo = globalThis).__zod_globalRegistry != null || (Yo.__zod_globalRegistry = $o());
4086
- var es = globalThis.__zod_globalRegistry;
4087
- function ts(e4, t2) {
4086
+ var D = globalThis.__zod_globalRegistry;
4087
+ function es(e4, t2) {
4088
4088
  return new e4({ type: "string", ...x(t2) });
4089
4089
  }
4090
- function ns(e4, t2) {
4090
+ function ts(e4, t2) {
4091
4091
  return new e4({ type: "string", coerce: true, ...x(t2) });
4092
4092
  }
4093
- function rs(e4, t2) {
4093
+ function ns(e4, t2) {
4094
4094
  return new e4({ type: "string", format: "email", check: "string_format", abort: false, ...x(t2) });
4095
4095
  }
4096
- function is(e4, t2) {
4096
+ function rs(e4, t2) {
4097
4097
  return new e4({ type: "string", format: "guid", check: "string_format", abort: false, ...x(t2) });
4098
4098
  }
4099
- function as(e4, t2) {
4099
+ function is(e4, t2) {
4100
4100
  return new e4({ type: "string", format: "uuid", check: "string_format", abort: false, ...x(t2) });
4101
4101
  }
4102
- function os(e4, t2) {
4102
+ function as(e4, t2) {
4103
4103
  return new e4({ type: "string", format: "uuid", check: "string_format", abort: false, version: "v4", ...x(t2) });
4104
4104
  }
4105
- function ss(e4, t2) {
4105
+ function os(e4, t2) {
4106
4106
  return new e4({ type: "string", format: "uuid", check: "string_format", abort: false, version: "v6", ...x(t2) });
4107
4107
  }
4108
- function cs(e4, t2) {
4108
+ function ss(e4, t2) {
4109
4109
  return new e4({ type: "string", format: "uuid", check: "string_format", abort: false, version: "v7", ...x(t2) });
4110
4110
  }
4111
- function ls(e4, t2) {
4111
+ function cs(e4, t2) {
4112
4112
  return new e4({ type: "string", format: "url", check: "string_format", abort: false, ...x(t2) });
4113
4113
  }
4114
- function us(e4, t2) {
4114
+ function ls(e4, t2) {
4115
4115
  return new e4({ type: "string", format: "emoji", check: "string_format", abort: false, ...x(t2) });
4116
4116
  }
4117
- function ds(e4, t2) {
4117
+ function us(e4, t2) {
4118
4118
  return new e4({ type: "string", format: "nanoid", check: "string_format", abort: false, ...x(t2) });
4119
4119
  }
4120
- function fs(e4, t2) {
4120
+ function ds(e4, t2) {
4121
4121
  return new e4({ type: "string", format: "cuid", check: "string_format", abort: false, ...x(t2) });
4122
4122
  }
4123
- function ps(e4, t2) {
4123
+ function fs(e4, t2) {
4124
4124
  return new e4({ type: "string", format: "cuid2", check: "string_format", abort: false, ...x(t2) });
4125
4125
  }
4126
- function ms(e4, t2) {
4126
+ function ps(e4, t2) {
4127
4127
  return new e4({ type: "string", format: "ulid", check: "string_format", abort: false, ...x(t2) });
4128
4128
  }
4129
- function hs(e4, t2) {
4129
+ function ms(e4, t2) {
4130
4130
  return new e4({ type: "string", format: "xid", check: "string_format", abort: false, ...x(t2) });
4131
4131
  }
4132
- function gs(e4, t2) {
4132
+ function hs(e4, t2) {
4133
4133
  return new e4({ type: "string", format: "ksuid", check: "string_format", abort: false, ...x(t2) });
4134
4134
  }
4135
- function _s(e4, t2) {
4135
+ function gs(e4, t2) {
4136
4136
  return new e4({ type: "string", format: "ipv4", check: "string_format", abort: false, ...x(t2) });
4137
4137
  }
4138
- function vs(e4, t2) {
4138
+ function _s(e4, t2) {
4139
4139
  return new e4({ type: "string", format: "ipv6", check: "string_format", abort: false, ...x(t2) });
4140
4140
  }
4141
- function ys(e4, t2) {
4141
+ function vs(e4, t2) {
4142
4142
  return new e4({ type: "string", format: "mac", check: "string_format", abort: false, ...x(t2) });
4143
4143
  }
4144
- function bs(e4, t2) {
4144
+ function ys(e4, t2) {
4145
4145
  return new e4({ type: "string", format: "cidrv4", check: "string_format", abort: false, ...x(t2) });
4146
4146
  }
4147
- function xs(e4, t2) {
4147
+ function bs(e4, t2) {
4148
4148
  return new e4({ type: "string", format: "cidrv6", check: "string_format", abort: false, ...x(t2) });
4149
4149
  }
4150
- function Ss(e4, t2) {
4150
+ function xs(e4, t2) {
4151
4151
  return new e4({ type: "string", format: "base64", check: "string_format", abort: false, ...x(t2) });
4152
4152
  }
4153
- function Cs(e4, t2) {
4153
+ function Ss(e4, t2) {
4154
4154
  return new e4({ type: "string", format: "base64url", check: "string_format", abort: false, ...x(t2) });
4155
4155
  }
4156
- function ws(e4, t2) {
4156
+ function Cs(e4, t2) {
4157
4157
  return new e4({ type: "string", format: "e164", check: "string_format", abort: false, ...x(t2) });
4158
4158
  }
4159
- function Ts(e4, t2) {
4159
+ function ws(e4, t2) {
4160
4160
  return new e4({ type: "string", format: "jwt", check: "string_format", abort: false, ...x(t2) });
4161
4161
  }
4162
- var Es = { Any: null, Minute: -1, Second: 0, Millisecond: 3, Microsecond: 6 };
4163
- function Ds(e4, t2) {
4162
+ var Ts = { Any: null, Minute: -1, Second: 0, Millisecond: 3, Microsecond: 6 };
4163
+ function Es(e4, t2) {
4164
4164
  return new e4({ type: "string", format: "datetime", check: "string_format", offset: false, local: false, precision: null, ...x(t2) });
4165
4165
  }
4166
- function Os(e4, t2) {
4166
+ function Ds(e4, t2) {
4167
4167
  return new e4({ type: "string", format: "date", check: "string_format", ...x(t2) });
4168
4168
  }
4169
- function ks(e4, t2) {
4169
+ function Os(e4, t2) {
4170
4170
  return new e4({ type: "string", format: "time", check: "string_format", precision: null, ...x(t2) });
4171
4171
  }
4172
- function As(e4, t2) {
4172
+ function ks(e4, t2) {
4173
4173
  return new e4({ type: "string", format: "duration", check: "string_format", ...x(t2) });
4174
4174
  }
4175
- function js(e4, t2) {
4175
+ function As(e4, t2) {
4176
4176
  return new e4({ type: "number", checks: [], ...x(t2) });
4177
4177
  }
4178
- function Ms(e4, t2) {
4178
+ function js(e4, t2) {
4179
4179
  return new e4({ type: "number", coerce: true, checks: [], ...x(t2) });
4180
4180
  }
4181
- function Ns(e4, t2) {
4181
+ function Ms(e4, t2) {
4182
4182
  return new e4({ type: "number", check: "number_format", abort: false, format: "safeint", ...x(t2) });
4183
4183
  }
4184
- function Ps(e4, t2) {
4184
+ function Ns(e4, t2) {
4185
4185
  return new e4({ type: "number", check: "number_format", abort: false, format: "float32", ...x(t2) });
4186
4186
  }
4187
- function Fs(e4, t2) {
4187
+ function Ps(e4, t2) {
4188
4188
  return new e4({ type: "number", check: "number_format", abort: false, format: "float64", ...x(t2) });
4189
4189
  }
4190
- function Is(e4, t2) {
4190
+ function Fs(e4, t2) {
4191
4191
  return new e4({ type: "number", check: "number_format", abort: false, format: "int32", ...x(t2) });
4192
4192
  }
4193
- function Ls(e4, t2) {
4193
+ function Is(e4, t2) {
4194
4194
  return new e4({ type: "number", check: "number_format", abort: false, format: "uint32", ...x(t2) });
4195
4195
  }
4196
- function Rs(e4, t2) {
4196
+ function Ls(e4, t2) {
4197
4197
  return new e4({ type: "boolean", ...x(t2) });
4198
4198
  }
4199
- function zs(e4, t2) {
4199
+ function Rs(e4, t2) {
4200
4200
  return new e4({ type: "boolean", coerce: true, ...x(t2) });
4201
4201
  }
4202
- function Bs(e4, t2) {
4202
+ function zs(e4, t2) {
4203
4203
  return new e4({ type: "bigint", ...x(t2) });
4204
4204
  }
4205
- function Vs(e4, t2) {
4205
+ function Bs(e4, t2) {
4206
4206
  return new e4({ type: "bigint", coerce: true, ...x(t2) });
4207
4207
  }
4208
- function Hs(e4, t2) {
4208
+ function Vs(e4, t2) {
4209
4209
  return new e4({ type: "bigint", check: "bigint_format", abort: false, format: "int64", ...x(t2) });
4210
4210
  }
4211
- function Us(e4, t2) {
4211
+ function Hs(e4, t2) {
4212
4212
  return new e4({ type: "bigint", check: "bigint_format", abort: false, format: "uint64", ...x(t2) });
4213
4213
  }
4214
- function Ws(e4, t2) {
4214
+ function Us(e4, t2) {
4215
4215
  return new e4({ type: "symbol", ...x(t2) });
4216
4216
  }
4217
- function Gs(e4, t2) {
4217
+ function Ws(e4, t2) {
4218
4218
  return new e4({ type: "undefined", ...x(t2) });
4219
4219
  }
4220
- function Ks(e4, t2) {
4220
+ function Gs(e4, t2) {
4221
4221
  return new e4({ type: "null", ...x(t2) });
4222
4222
  }
4223
- function qs(e4) {
4223
+ function Ks(e4) {
4224
4224
  return new e4({ type: "any" });
4225
4225
  }
4226
- function Js(e4) {
4226
+ function qs(e4) {
4227
4227
  return new e4({ type: "unknown" });
4228
4228
  }
4229
- function Ys(e4, t2) {
4229
+ function Js(e4, t2) {
4230
4230
  return new e4({ type: "never", ...x(t2) });
4231
4231
  }
4232
- function Xs(e4, t2) {
4232
+ function Ys(e4, t2) {
4233
4233
  return new e4({ type: "void", ...x(t2) });
4234
4234
  }
4235
- function Zs(e4, t2) {
4235
+ function Xs(e4, t2) {
4236
4236
  return new e4({ type: "date", ...x(t2) });
4237
4237
  }
4238
- function Qs(e4, t2) {
4238
+ function Zs(e4, t2) {
4239
4239
  return new e4({ type: "date", coerce: true, ...x(t2) });
4240
4240
  }
4241
- function $s(e4, t2) {
4241
+ function Qs(e4, t2) {
4242
4242
  return new e4({ type: "nan", ...x(t2) });
4243
4243
  }
4244
- function ec(e4, t2) {
4244
+ function $s(e4, t2) {
4245
4245
  return new Wn({ check: "less_than", ...x(t2), value: e4, inclusive: false });
4246
4246
  }
4247
- function tc(e4, t2) {
4247
+ function ec(e4, t2) {
4248
4248
  return new Wn({ check: "less_than", ...x(t2), value: e4, inclusive: true });
4249
4249
  }
4250
- function nc(e4, t2) {
4250
+ function tc(e4, t2) {
4251
4251
  return new Gn({ check: "greater_than", ...x(t2), value: e4, inclusive: false });
4252
4252
  }
4253
- function D(e4, t2) {
4253
+ function O(e4, t2) {
4254
4254
  return new Gn({ check: "greater_than", ...x(t2), value: e4, inclusive: true });
4255
4255
  }
4256
+ function nc(e4) {
4257
+ return tc(0, e4);
4258
+ }
4256
4259
  function rc(e4) {
4257
- return nc(0, e4);
4260
+ return $s(0, e4);
4258
4261
  }
4259
4262
  function ic(e4) {
4260
4263
  return ec(0, e4);
4261
4264
  }
4262
4265
  function ac(e4) {
4263
- return tc(0, e4);
4264
- }
4265
- function oc(e4) {
4266
- return D(0, e4);
4266
+ return O(0, e4);
4267
4267
  }
4268
- function sc(e4, t2) {
4268
+ function oc(e4, t2) {
4269
4269
  return new Kn({ check: "multiple_of", ...x(t2), value: e4 });
4270
4270
  }
4271
- function cc(e4, t2) {
4271
+ function sc(e4, t2) {
4272
4272
  return new Yn({ check: "max_size", ...x(t2), maximum: e4 });
4273
4273
  }
4274
- function lc(e4, t2) {
4274
+ function cc(e4, t2) {
4275
4275
  return new Xn({ check: "min_size", ...x(t2), minimum: e4 });
4276
4276
  }
4277
- function uc(e4, t2) {
4277
+ function lc(e4, t2) {
4278
4278
  return new Zn({ check: "size_equals", ...x(t2), size: e4 });
4279
4279
  }
4280
- function dc(e4, t2) {
4280
+ function uc(e4, t2) {
4281
4281
  return new Qn({ check: "max_length", ...x(t2), maximum: e4 });
4282
4282
  }
4283
- function fc(e4, t2) {
4283
+ function dc(e4, t2) {
4284
4284
  return new $n({ check: "min_length", ...x(t2), minimum: e4 });
4285
4285
  }
4286
- function pc(e4, t2) {
4286
+ function fc(e4, t2) {
4287
4287
  return new er({ check: "length_equals", ...x(t2), length: e4 });
4288
4288
  }
4289
- function mc(e4, t2) {
4289
+ function pc(e4, t2) {
4290
4290
  return new nr({ check: "string_format", format: "regex", ...x(t2), pattern: e4 });
4291
4291
  }
4292
- function hc(e4) {
4292
+ function mc(e4) {
4293
4293
  return new rr({ check: "string_format", format: "lowercase", ...x(e4) });
4294
4294
  }
4295
- function gc(e4) {
4295
+ function hc(e4) {
4296
4296
  return new ir({ check: "string_format", format: "uppercase", ...x(e4) });
4297
4297
  }
4298
- function _c(e4, t2) {
4298
+ function gc(e4, t2) {
4299
4299
  return new ar({ check: "string_format", format: "includes", ...x(t2), includes: e4 });
4300
4300
  }
4301
- function vc(e4, t2) {
4301
+ function _c(e4, t2) {
4302
4302
  return new or({ check: "string_format", format: "starts_with", ...x(t2), prefix: e4 });
4303
4303
  }
4304
- function yc(e4, t2) {
4304
+ function vc(e4, t2) {
4305
4305
  return new sr({ check: "string_format", format: "ends_with", ...x(t2), suffix: e4 });
4306
4306
  }
4307
- function bc(e4, t2, n2) {
4307
+ function yc(e4, t2, n2) {
4308
4308
  return new lr({ check: "property", property: e4, schema: t2, ...x(n2) });
4309
4309
  }
4310
- function xc(e4, t2) {
4310
+ function bc(e4, t2) {
4311
4311
  return new ur({ check: "mime_type", mime: e4, ...x(t2) });
4312
4312
  }
4313
- function Sc(e4) {
4313
+ function xc(e4) {
4314
4314
  return new dr({ check: "overwrite", tx: e4 });
4315
4315
  }
4316
- function Cc(e4) {
4317
- return Sc((t2) => t2.normalize(e4));
4316
+ function Sc(e4) {
4317
+ return xc((t2) => t2.normalize(e4));
4318
+ }
4319
+ function Cc() {
4320
+ return xc((e4) => e4.trim());
4318
4321
  }
4319
4322
  function wc() {
4320
- return Sc((e4) => e4.trim());
4323
+ return xc((e4) => e4.toLowerCase());
4321
4324
  }
4322
4325
  function Tc() {
4323
- return Sc((e4) => e4.toLowerCase());
4326
+ return xc((e4) => e4.toUpperCase());
4324
4327
  }
4325
4328
  function Ec() {
4326
- return Sc((e4) => e4.toUpperCase());
4329
+ return xc((e4) => ge(e4));
4327
4330
  }
4328
- function Dc() {
4329
- return Sc((e4) => ge(e4));
4330
- }
4331
- function Oc(e4, t2, n2) {
4331
+ function Dc(e4, t2, n2) {
4332
4332
  return new e4({ type: "array", element: t2, ...x(n2) });
4333
4333
  }
4334
- function kc(e4, t2, n2) {
4334
+ function Oc(e4, t2, n2) {
4335
4335
  return new e4({ type: "union", options: t2, ...x(n2) });
4336
4336
  }
4337
- function Ac(e4, t2, n2) {
4337
+ function kc(e4, t2, n2) {
4338
4338
  return new e4({ type: "union", options: t2, inclusive: false, ...x(n2) });
4339
4339
  }
4340
- function jc(e4, t2, n2, r2) {
4340
+ function Ac(e4, t2, n2, r2) {
4341
4341
  return new e4({ type: "union", options: n2, discriminator: t2, ...x(r2) });
4342
4342
  }
4343
- function Mc(e4, t2, n2) {
4343
+ function jc(e4, t2, n2) {
4344
4344
  return new e4({ type: "intersection", left: t2, right: n2 });
4345
4345
  }
4346
- function Nc(e4, t2, n2, r2) {
4346
+ function Mc(e4, t2, n2, r2) {
4347
4347
  let i2 = n2 instanceof T;
4348
4348
  return new e4({ type: "tuple", items: t2, rest: i2 ? n2 : null, ...x(i2 ? r2 : n2) });
4349
4349
  }
4350
- function Pc(e4, t2, n2, r2) {
4350
+ function Nc(e4, t2, n2, r2) {
4351
4351
  return new e4({ type: "record", keyType: t2, valueType: n2, ...x(r2) });
4352
4352
  }
4353
- function Fc(e4, t2, n2, r2) {
4353
+ function Pc(e4, t2, n2, r2) {
4354
4354
  return new e4({ type: "map", keyType: t2, valueType: n2, ...x(r2) });
4355
4355
  }
4356
- function Ic(e4, t2, n2) {
4356
+ function Fc(e4, t2, n2) {
4357
4357
  return new e4({ type: "set", valueType: t2, ...x(n2) });
4358
4358
  }
4359
- function Lc(e4, t2, n2) {
4359
+ function Ic(e4, t2, n2) {
4360
4360
  return new e4({ type: "enum", entries: Array.isArray(t2) ? Object.fromEntries(t2.map((e5) => [e5, e5])) : t2, ...x(n2) });
4361
4361
  }
4362
- function Rc(e4, t2, n2) {
4362
+ function Lc(e4, t2, n2) {
4363
4363
  return new e4({ type: "enum", entries: t2, ...x(n2) });
4364
4364
  }
4365
- function zc(e4, t2, n2) {
4365
+ function Rc(e4, t2, n2) {
4366
4366
  return new e4({ type: "literal", values: Array.isArray(t2) ? t2 : [t2], ...x(n2) });
4367
4367
  }
4368
- function Bc(e4, t2) {
4368
+ function zc(e4, t2) {
4369
4369
  return new e4({ type: "file", ...x(t2) });
4370
4370
  }
4371
- function Vc(e4, t2) {
4371
+ function Bc(e4, t2) {
4372
4372
  return new e4({ type: "transform", transform: t2 });
4373
4373
  }
4374
- function Hc(e4, t2) {
4374
+ function Vc(e4, t2) {
4375
4375
  return new e4({ type: "optional", innerType: t2 });
4376
4376
  }
4377
- function Uc(e4, t2) {
4377
+ function Hc(e4, t2) {
4378
4378
  return new e4({ type: "nullable", innerType: t2 });
4379
4379
  }
4380
- function Wc(e4, t2, n2) {
4380
+ function Uc(e4, t2, n2) {
4381
4381
  return new e4({ type: "default", innerType: t2, get defaultValue() {
4382
4382
  return typeof n2 == "function" ? n2() : xe(n2);
4383
4383
  } });
4384
4384
  }
4385
- function Gc(e4, t2, n2) {
4385
+ function Wc(e4, t2, n2) {
4386
4386
  return new e4({ type: "nonoptional", innerType: t2, ...x(n2) });
4387
4387
  }
4388
- function Kc(e4, t2) {
4388
+ function Gc(e4, t2) {
4389
4389
  return new e4({ type: "success", innerType: t2 });
4390
4390
  }
4391
- function qc(e4, t2, n2) {
4391
+ function Kc(e4, t2, n2) {
4392
4392
  return new e4({ type: "catch", innerType: t2, catchValue: typeof n2 == "function" ? n2 : () => n2 });
4393
4393
  }
4394
- function Jc(e4, t2, n2) {
4394
+ function qc(e4, t2, n2) {
4395
4395
  return new e4({ type: "pipe", in: t2, out: n2 });
4396
4396
  }
4397
- function Yc(e4, t2) {
4397
+ function Jc(e4, t2) {
4398
4398
  return new e4({ type: "readonly", innerType: t2 });
4399
4399
  }
4400
- function Xc(e4, t2, n2) {
4400
+ function Yc(e4, t2, n2) {
4401
4401
  return new e4({ type: "template_literal", parts: t2, ...x(n2) });
4402
4402
  }
4403
- function Zc(e4, t2) {
4403
+ function Xc(e4, t2) {
4404
4404
  return new e4({ type: "lazy", getter: t2 });
4405
4405
  }
4406
- function Qc(e4, t2) {
4406
+ function Zc(e4, t2) {
4407
4407
  return new e4({ type: "promise", innerType: t2 });
4408
4408
  }
4409
- function $c(e4, t2, n2) {
4409
+ function Qc(e4, t2, n2) {
4410
4410
  let r2 = x(n2);
4411
4411
  return r2.abort != null || (r2.abort = true), new e4({ type: "custom", check: "custom", fn: t2, ...r2 });
4412
4412
  }
4413
- function el(e4, t2, n2) {
4413
+ function $c(e4, t2, n2) {
4414
4414
  return new e4({ type: "custom", check: "custom", fn: t2, ...x(n2) });
4415
4415
  }
4416
- function tl(e4) {
4417
- let t2 = nl((n2) => (n2.addIssue = (e5) => {
4416
+ function el(e4) {
4417
+ let t2 = tl((n2) => (n2.addIssue = (e5) => {
4418
4418
  if (typeof e5 == "string") n2.issues.push(Ge(e5, n2.value, t2._zod.def));
4419
4419
  else {
4420
4420
  let r2 = e5;
@@ -4423,29 +4423,29 @@ function tl(e4) {
4423
4423
  }, e4(n2.value, n2)));
4424
4424
  return t2;
4425
4425
  }
4426
- function nl(e4, t2) {
4426
+ function tl(e4, t2) {
4427
4427
  let n2 = new w({ check: "custom", ...x(t2) });
4428
4428
  return n2._zod.check = e4, n2;
4429
4429
  }
4430
- function rl(e4) {
4430
+ function nl(e4) {
4431
4431
  let t2 = new w({ check: "describe" });
4432
4432
  return t2._zod.onattach = [(t3) => {
4433
4433
  var n2;
4434
- let r2 = (n2 = es.get(t3)) == null ? {} : n2;
4435
- es.add(t3, { ...r2, description: e4 });
4434
+ let r2 = (n2 = D.get(t3)) == null ? {} : n2;
4435
+ D.add(t3, { ...r2, description: e4 });
4436
4436
  }], t2._zod.check = () => {
4437
4437
  }, t2;
4438
4438
  }
4439
- function il(e4) {
4439
+ function rl(e4) {
4440
4440
  let t2 = new w({ check: "meta" });
4441
4441
  return t2._zod.onattach = [(t3) => {
4442
4442
  var n2;
4443
- let r2 = (n2 = es.get(t3)) == null ? {} : n2;
4444
- es.add(t3, { ...r2, ...e4 });
4443
+ let r2 = (n2 = D.get(t3)) == null ? {} : n2;
4444
+ D.add(t3, { ...r2, ...e4 });
4445
4445
  }], t2._zod.check = () => {
4446
4446
  }, t2;
4447
4447
  }
4448
- function al(e4, t2) {
4448
+ function il(e4, t2) {
4449
4449
  var n2, r2, i2, a2, o2;
4450
4450
  let s2 = x(t2), c2 = (n2 = s2.truthy) == null ? ["true", "1", "yes", "on", "y", "enabled"] : n2, l2 = (r2 = s2.falsy) == null ? ["false", "0", "no", "off", "n", "disabled"] : r2;
4451
4451
  s2.case !== "sensitive" && (c2 = c2.map((e5) => typeof e5 == "string" ? e5.toLowerCase() : e5), l2 = l2.map((e5) => typeof e5 == "string" ? e5.toLowerCase() : e5));
@@ -4455,17 +4455,17 @@ function al(e4, t2) {
4455
4455
  }), reverseTransform: ((e5, t3) => e5 === true ? c2[0] || "true" : l2[0] || "false"), error: s2.error });
4456
4456
  return ee2;
4457
4457
  }
4458
- function ol(e4, t2, n2, r2 = {}) {
4458
+ function al(e4, t2, n2, r2 = {}) {
4459
4459
  let i2 = x(r2), a2 = { ...x(r2), check: "string_format", type: "string", format: t2, fn: typeof n2 == "function" ? n2 : (e5) => n2.test(e5), ...i2 };
4460
4460
  return n2 instanceof RegExp && (a2.pattern = n2), new e4(a2);
4461
4461
  }
4462
- function sl(e4) {
4462
+ function ol(e4) {
4463
4463
  var t2, n2, r2, i2, a2, o2, s2, c2, l2;
4464
4464
  let u2 = (t2 = e4 == null ? void 0 : e4.target) == null ? "draft-2020-12" : t2;
4465
- return u2 === "draft-4" && (u2 = "draft-04"), u2 === "draft-7" && (u2 = "draft-07"), { processors: (n2 = e4.processors) == null ? {} : n2, metadataRegistry: (r2 = e4 == null ? void 0 : e4.metadata) == null ? es : r2, target: u2, unrepresentable: (i2 = e4 == null ? void 0 : e4.unrepresentable) == null ? "throw" : i2, override: (a2 = e4 == null ? void 0 : e4.override) == null ? (() => {
4465
+ return u2 === "draft-4" && (u2 = "draft-04"), u2 === "draft-7" && (u2 = "draft-07"), { processors: (n2 = e4.processors) == null ? {} : n2, metadataRegistry: (r2 = e4 == null ? void 0 : e4.metadata) == null ? D : r2, target: u2, unrepresentable: (i2 = e4 == null ? void 0 : e4.unrepresentable) == null ? "throw" : i2, override: (a2 = e4 == null ? void 0 : e4.override) == null ? (() => {
4466
4466
  }) : a2, io: (o2 = e4 == null ? void 0 : e4.io) == null ? "output" : o2, counter: 0, seen: /* @__PURE__ */ new Map(), cycles: (s2 = e4 == null ? void 0 : e4.cycles) == null ? "ref" : s2, reused: (c2 = e4 == null ? void 0 : e4.reused) == null ? "inline" : c2, external: (l2 = e4 == null ? void 0 : e4.external) == null ? void 0 : l2 };
4467
4467
  }
4468
- function O(e4, t2, n2 = { path: [], schemaPath: [] }) {
4468
+ function k(e4, t2, n2 = { path: [], schemaPath: [] }) {
4469
4469
  var r2, i2, a2;
4470
4470
  let o2 = e4._zod.def, s2 = t2.seen.get(e4);
4471
4471
  if (s2) return s2.count++, n2.schemaPath.includes(e4) && (s2.cycle = n2.path), s2.schema;
@@ -4482,12 +4482,12 @@ function O(e4, t2, n2 = { path: [], schemaPath: [] }) {
4482
4482
  i4(e4, t2, n3, r3);
4483
4483
  }
4484
4484
  let i3 = e4._zod.parent;
4485
- i3 && (c2.ref || (c2.ref = i3), O(i3, t2, r3), t2.seen.get(i3).isParent = true);
4485
+ i3 && (c2.ref || (c2.ref = i3), k(i3, t2, r3), t2.seen.get(i3).isParent = true);
4486
4486
  }
4487
4487
  let u2 = t2.metadataRegistry.get(e4);
4488
- return u2 && Object.assign(c2.schema, u2), t2.io === "input" && k(e4) && (delete c2.schema.examples, delete c2.schema.default), t2.io === "input" && c2.schema._prefault && ((a2 = c2.schema).default != null || (a2.default = c2.schema._prefault)), delete c2.schema._prefault, t2.seen.get(e4).schema;
4488
+ return u2 && Object.assign(c2.schema, u2), t2.io === "input" && A(e4) && (delete c2.schema.examples, delete c2.schema.default), t2.io === "input" && c2.schema._prefault && ((a2 = c2.schema).default != null || (a2.default = c2.schema._prefault)), delete c2.schema._prefault, t2.seen.get(e4).schema;
4489
4489
  }
4490
- function cl(e4, t2) {
4490
+ function sl(e4, t2) {
4491
4491
  let n2 = e4.seen.get(t2);
4492
4492
  if (!n2) throw Error("Unprocessed schema. This is a bug in Zod.");
4493
4493
  let r2 = /* @__PURE__ */ new Map();
@@ -4557,7 +4557,7 @@ function cl(e4, t2) {
4557
4557
  }
4558
4558
  }
4559
4559
  }
4560
- function ll(e4, t2) {
4560
+ function cl(e4, t2) {
4561
4561
  var n2, r2, i2, a2;
4562
4562
  let o2 = e4.seen.get(t2);
4563
4563
  if (!o2) throw Error("Unprocessed schema. This is a bug in Zod.");
@@ -4601,81 +4601,81 @@ function ll(e4, t2) {
4601
4601
  e4.external || Object.keys(u2).length > 0 && (e4.target === "draft-2020-12" ? c2.$defs = u2 : c2.definitions = u2);
4602
4602
  try {
4603
4603
  let n3 = JSON.parse(JSON.stringify(c2));
4604
- return Object.defineProperty(n3, "~standard", { value: { ...t2["~standard"], jsonSchema: { input: dl(t2, "input", e4.processors), output: dl(t2, "output", e4.processors) } }, enumerable: false, writable: false }), n3;
4604
+ return Object.defineProperty(n3, "~standard", { value: { ...t2["~standard"], jsonSchema: { input: ul(t2, "input", e4.processors), output: ul(t2, "output", e4.processors) } }, enumerable: false, writable: false }), n3;
4605
4605
  } catch (e5) {
4606
4606
  throw Error("Error converting schema to JSON.");
4607
4607
  }
4608
4608
  }
4609
- function k(e4, t2) {
4609
+ function A(e4, t2) {
4610
4610
  let n2 = t2 == null ? { seen: /* @__PURE__ */ new Set() } : t2;
4611
4611
  if (n2.seen.has(e4)) return false;
4612
4612
  n2.seen.add(e4);
4613
4613
  let r2 = e4._zod.def;
4614
4614
  if (r2.type === "transform") return true;
4615
- if (r2.type === "array") return k(r2.element, n2);
4616
- if (r2.type === "set") return k(r2.valueType, n2);
4617
- if (r2.type === "lazy") return k(r2.getter(), n2);
4618
- if (r2.type === "promise" || r2.type === "optional" || r2.type === "nonoptional" || r2.type === "nullable" || r2.type === "readonly" || r2.type === "default" || r2.type === "prefault") return k(r2.innerType, n2);
4619
- if (r2.type === "intersection") return k(r2.left, n2) || k(r2.right, n2);
4620
- if (r2.type === "record" || r2.type === "map") return k(r2.keyType, n2) || k(r2.valueType, n2);
4621
- if (r2.type === "pipe") return k(r2.in, n2) || k(r2.out, n2);
4615
+ if (r2.type === "array") return A(r2.element, n2);
4616
+ if (r2.type === "set") return A(r2.valueType, n2);
4617
+ if (r2.type === "lazy") return A(r2.getter(), n2);
4618
+ if (r2.type === "promise" || r2.type === "optional" || r2.type === "nonoptional" || r2.type === "nullable" || r2.type === "readonly" || r2.type === "default" || r2.type === "prefault") return A(r2.innerType, n2);
4619
+ if (r2.type === "intersection") return A(r2.left, n2) || A(r2.right, n2);
4620
+ if (r2.type === "record" || r2.type === "map") return A(r2.keyType, n2) || A(r2.valueType, n2);
4621
+ if (r2.type === "pipe") return A(r2.in, n2) || A(r2.out, n2);
4622
4622
  if (r2.type === "object") {
4623
- for (let e5 in r2.shape) if (k(r2.shape[e5], n2)) return true;
4623
+ for (let e5 in r2.shape) if (A(r2.shape[e5], n2)) return true;
4624
4624
  return false;
4625
4625
  }
4626
4626
  if (r2.type === "union") {
4627
- for (let e5 of r2.options) if (k(e5, n2)) return true;
4627
+ for (let e5 of r2.options) if (A(e5, n2)) return true;
4628
4628
  return false;
4629
4629
  }
4630
4630
  if (r2.type === "tuple") {
4631
- for (let e5 of r2.items) if (k(e5, n2)) return true;
4632
- return !!(r2.rest && k(r2.rest, n2));
4631
+ for (let e5 of r2.items) if (A(e5, n2)) return true;
4632
+ return !!(r2.rest && A(r2.rest, n2));
4633
4633
  }
4634
4634
  return false;
4635
4635
  }
4636
- var ul = (e4, t2 = {}) => (n2) => {
4637
- let r2 = sl({ ...n2, processors: t2 });
4638
- return O(e4, r2), cl(r2, e4), ll(r2, e4);
4639
- }, dl = (e4, t2, n2 = {}) => (r2) => {
4640
- let { libraryOptions: i2, target: a2 } = r2 == null ? {} : r2, o2 = sl({ ...i2 == null ? {} : i2, target: a2, io: t2, processors: n2 });
4641
- return O(e4, o2), cl(o2, e4), ll(o2, e4);
4642
- }, fl = { guid: "uuid", url: "uri", datetime: "date-time", json_string: "json-string", regex: "" }, pl = (e4, t2, n2, r2) => {
4636
+ var ll = (e4, t2 = {}) => (n2) => {
4637
+ let r2 = ol({ ...n2, processors: t2 });
4638
+ return k(e4, r2), sl(r2, e4), cl(r2, e4);
4639
+ }, ul = (e4, t2, n2 = {}) => (r2) => {
4640
+ let { libraryOptions: i2, target: a2 } = r2 == null ? {} : r2, o2 = ol({ ...i2 == null ? {} : i2, target: a2, io: t2, processors: n2 });
4641
+ return k(e4, o2), sl(o2, e4), cl(o2, e4);
4642
+ }, dl = { guid: "uuid", url: "uri", datetime: "date-time", json_string: "json-string", regex: "" }, fl = (e4, t2, n2, r2) => {
4643
4643
  let i2 = n2;
4644
4644
  i2.type = "string";
4645
4645
  let { minimum: a2, maximum: o2, format: s2, patterns: c2, contentEncoding: l2 } = e4._zod.bag;
4646
4646
  if (typeof a2 == "number" && (i2.minLength = a2), typeof o2 == "number" && (i2.maxLength = o2), s2) {
4647
4647
  var u2;
4648
- i2.format = (u2 = fl[s2]) == null ? s2 : u2, i2.format === "" && delete i2.format, s2 === "time" && delete i2.format;
4648
+ i2.format = (u2 = dl[s2]) == null ? s2 : u2, i2.format === "" && delete i2.format, s2 === "time" && delete i2.format;
4649
4649
  }
4650
4650
  if (l2 && (i2.contentEncoding = l2), c2 && c2.size > 0) {
4651
4651
  let e5 = [...c2];
4652
4652
  e5.length === 1 ? i2.pattern = e5[0].source : e5.length > 1 && (i2.allOf = [...e5.map((e6) => ({ ...t2.target === "draft-07" || t2.target === "draft-04" || t2.target === "openapi-3.0" ? { type: "string" } : {}, pattern: e6.source }))]);
4653
4653
  }
4654
- }, ml = (e4, t2, n2, r2) => {
4654
+ }, pl = (e4, t2, n2, r2) => {
4655
4655
  let i2 = n2, { minimum: a2, maximum: o2, format: s2, multipleOf: c2, exclusiveMaximum: l2, exclusiveMinimum: u2 } = e4._zod.bag;
4656
4656
  typeof s2 == "string" && s2.includes("int") ? i2.type = "integer" : i2.type = "number", typeof u2 == "number" && (t2.target === "draft-04" || t2.target === "openapi-3.0" ? (i2.minimum = u2, i2.exclusiveMinimum = true) : i2.exclusiveMinimum = u2), typeof a2 == "number" && (i2.minimum = a2, typeof u2 == "number" && t2.target !== "draft-04" && (u2 >= a2 ? delete i2.minimum : delete i2.exclusiveMinimum)), typeof l2 == "number" && (t2.target === "draft-04" || t2.target === "openapi-3.0" ? (i2.maximum = l2, i2.exclusiveMaximum = true) : i2.exclusiveMaximum = l2), typeof o2 == "number" && (i2.maximum = o2, typeof l2 == "number" && t2.target !== "draft-04" && (l2 <= o2 ? delete i2.maximum : delete i2.exclusiveMaximum)), typeof c2 == "number" && (i2.multipleOf = c2);
4657
- }, hl = (e4, t2, n2, r2) => {
4657
+ }, ml = (e4, t2, n2, r2) => {
4658
4658
  n2.type = "boolean";
4659
- }, gl = (e4, t2, n2, r2) => {
4659
+ }, hl = (e4, t2, n2, r2) => {
4660
4660
  if (t2.unrepresentable === "throw") throw Error("BigInt cannot be represented in JSON Schema");
4661
- }, _l = (e4, t2, n2, r2) => {
4661
+ }, gl = (e4, t2, n2, r2) => {
4662
4662
  if (t2.unrepresentable === "throw") throw Error("Symbols cannot be represented in JSON Schema");
4663
- }, vl = (e4, t2, n2, r2) => {
4663
+ }, _l = (e4, t2, n2, r2) => {
4664
4664
  t2.target === "openapi-3.0" ? (n2.type = "string", n2.nullable = true, n2.enum = [null]) : n2.type = "null";
4665
- }, yl = (e4, t2, n2, r2) => {
4665
+ }, vl = (e4, t2, n2, r2) => {
4666
4666
  if (t2.unrepresentable === "throw") throw Error("Undefined cannot be represented in JSON Schema");
4667
- }, bl = (e4, t2, n2, r2) => {
4667
+ }, yl = (e4, t2, n2, r2) => {
4668
4668
  if (t2.unrepresentable === "throw") throw Error("Void cannot be represented in JSON Schema");
4669
- }, xl = (e4, t2, n2, r2) => {
4669
+ }, bl = (e4, t2, n2, r2) => {
4670
4670
  n2.not = {};
4671
+ }, xl = (e4, t2, n2, r2) => {
4671
4672
  }, Sl = (e4, t2, n2, r2) => {
4672
4673
  }, Cl = (e4, t2, n2, r2) => {
4673
- }, wl = (e4, t2, n2, r2) => {
4674
4674
  if (t2.unrepresentable === "throw") throw Error("Date cannot be represented in JSON Schema");
4675
- }, Tl = (e4, t2, n2, r2) => {
4675
+ }, wl = (e4, t2, n2, r2) => {
4676
4676
  let i2 = e4._zod.def, a2 = g(i2.entries);
4677
4677
  a2.every((e5) => typeof e5 == "number") && (n2.type = "number"), a2.every((e5) => typeof e5 == "string") && (n2.type = "string"), n2.enum = a2;
4678
- }, El = (e4, t2, n2, r2) => {
4678
+ }, Tl = (e4, t2, n2, r2) => {
4679
4679
  let i2 = e4._zod.def, a2 = [];
4680
4680
  for (let e5 of i2.values) if (e5 === void 0) {
4681
4681
  if (t2.unrepresentable === "throw") throw Error("Literal `undefined` cannot be represented in JSON Schema");
@@ -4687,89 +4687,89 @@ var ul = (e4, t2 = {}) => (n2) => {
4687
4687
  let e5 = a2[0];
4688
4688
  n2.type = e5 === null ? "null" : typeof e5, t2.target === "draft-04" || t2.target === "openapi-3.0" ? n2.enum = [e5] : n2.const = e5;
4689
4689
  } else a2.every((e5) => typeof e5 == "number") && (n2.type = "number"), a2.every((e5) => typeof e5 == "string") && (n2.type = "string"), a2.every((e5) => typeof e5 == "boolean") && (n2.type = "boolean"), a2.every((e5) => e5 === null) && (n2.type = "null"), n2.enum = a2;
4690
- }, Dl = (e4, t2, n2, r2) => {
4690
+ }, El = (e4, t2, n2, r2) => {
4691
4691
  if (t2.unrepresentable === "throw") throw Error("NaN cannot be represented in JSON Schema");
4692
- }, Ol = (e4, t2, n2, r2) => {
4692
+ }, Dl = (e4, t2, n2, r2) => {
4693
4693
  let i2 = n2, a2 = e4._zod.pattern;
4694
4694
  if (!a2) throw Error("Pattern not found in template literal");
4695
4695
  i2.type = "string", i2.pattern = a2.source;
4696
- }, kl = (e4, t2, n2, r2) => {
4696
+ }, Ol = (e4, t2, n2, r2) => {
4697
4697
  let i2 = n2, a2 = { type: "string", format: "binary", contentEncoding: "binary" }, { minimum: o2, maximum: s2, mime: c2 } = e4._zod.bag;
4698
4698
  o2 !== void 0 && (a2.minLength = o2), s2 !== void 0 && (a2.maxLength = s2), c2 ? c2.length === 1 ? (a2.contentMediaType = c2[0], Object.assign(i2, a2)) : (Object.assign(i2, a2), i2.anyOf = c2.map((e5) => ({ contentMediaType: e5 }))) : Object.assign(i2, a2);
4699
- }, Al = (e4, t2, n2, r2) => {
4699
+ }, kl = (e4, t2, n2, r2) => {
4700
4700
  n2.type = "boolean";
4701
- }, jl = (e4, t2, n2, r2) => {
4701
+ }, Al = (e4, t2, n2, r2) => {
4702
4702
  if (t2.unrepresentable === "throw") throw Error("Custom types cannot be represented in JSON Schema");
4703
- }, Ml = (e4, t2, n2, r2) => {
4703
+ }, jl = (e4, t2, n2, r2) => {
4704
4704
  if (t2.unrepresentable === "throw") throw Error("Function types cannot be represented in JSON Schema");
4705
- }, Nl = (e4, t2, n2, r2) => {
4705
+ }, Ml = (e4, t2, n2, r2) => {
4706
4706
  if (t2.unrepresentable === "throw") throw Error("Transforms cannot be represented in JSON Schema");
4707
- }, Pl = (e4, t2, n2, r2) => {
4707
+ }, Nl = (e4, t2, n2, r2) => {
4708
4708
  if (t2.unrepresentable === "throw") throw Error("Map cannot be represented in JSON Schema");
4709
- }, Fl = (e4, t2, n2, r2) => {
4709
+ }, Pl = (e4, t2, n2, r2) => {
4710
4710
  if (t2.unrepresentable === "throw") throw Error("Set cannot be represented in JSON Schema");
4711
- }, Il = (e4, t2, n2, r2) => {
4711
+ }, Fl = (e4, t2, n2, r2) => {
4712
4712
  let i2 = n2, a2 = e4._zod.def, { minimum: o2, maximum: s2 } = e4._zod.bag;
4713
- typeof o2 == "number" && (i2.minItems = o2), typeof s2 == "number" && (i2.maxItems = s2), i2.type = "array", i2.items = O(a2.element, t2, { ...r2, path: [...r2.path, "items"] });
4714
- }, Ll = (e4, t2, n2, r2) => {
4713
+ typeof o2 == "number" && (i2.minItems = o2), typeof s2 == "number" && (i2.maxItems = s2), i2.type = "array", i2.items = k(a2.element, t2, { ...r2, path: [...r2.path, "items"] });
4714
+ }, Il = (e4, t2, n2, r2) => {
4715
4715
  var i2;
4716
4716
  let a2 = n2, o2 = e4._zod.def;
4717
4717
  a2.type = "object", a2.properties = {};
4718
4718
  let s2 = o2.shape;
4719
- for (let e5 in s2) a2.properties[e5] = O(s2[e5], t2, { ...r2, path: [...r2.path, "properties", e5] });
4719
+ for (let e5 in s2) a2.properties[e5] = k(s2[e5], t2, { ...r2, path: [...r2.path, "properties", e5] });
4720
4720
  let c2 = new Set(Object.keys(s2)), l2 = new Set([...c2].filter((e5) => {
4721
4721
  let n3 = o2.shape[e5]._zod;
4722
4722
  return t2.io === "input" ? n3.optin === void 0 : n3.optout === void 0;
4723
4723
  }));
4724
- l2.size > 0 && (a2.required = Array.from(l2)), ((i2 = o2.catchall) == null ? void 0 : i2._zod.def.type) === "never" ? a2.additionalProperties = false : o2.catchall ? o2.catchall && (a2.additionalProperties = O(o2.catchall, t2, { ...r2, path: [...r2.path, "additionalProperties"] })) : t2.io === "output" && (a2.additionalProperties = false);
4725
- }, Rl = (e4, t2, n2, r2) => {
4726
- let i2 = e4._zod.def, a2 = i2.inclusive === false, o2 = i2.options.map((e5, n3) => O(e5, t2, { ...r2, path: [...r2.path, a2 ? "oneOf" : "anyOf", n3] }));
4724
+ l2.size > 0 && (a2.required = Array.from(l2)), ((i2 = o2.catchall) == null ? void 0 : i2._zod.def.type) === "never" ? a2.additionalProperties = false : o2.catchall ? o2.catchall && (a2.additionalProperties = k(o2.catchall, t2, { ...r2, path: [...r2.path, "additionalProperties"] })) : t2.io === "output" && (a2.additionalProperties = false);
4725
+ }, Ll = (e4, t2, n2, r2) => {
4726
+ let i2 = e4._zod.def, a2 = i2.inclusive === false, o2 = i2.options.map((e5, n3) => k(e5, t2, { ...r2, path: [...r2.path, a2 ? "oneOf" : "anyOf", n3] }));
4727
4727
  a2 ? n2.oneOf = o2 : n2.anyOf = o2;
4728
- }, zl = (e4, t2, n2, r2) => {
4729
- let i2 = e4._zod.def, a2 = O(i2.left, t2, { ...r2, path: [...r2.path, "allOf", 0] }), o2 = O(i2.right, t2, { ...r2, path: [...r2.path, "allOf", 1] }), s2 = (e5) => "allOf" in e5 && Object.keys(e5).length === 1;
4728
+ }, Rl = (e4, t2, n2, r2) => {
4729
+ let i2 = e4._zod.def, a2 = k(i2.left, t2, { ...r2, path: [...r2.path, "allOf", 0] }), o2 = k(i2.right, t2, { ...r2, path: [...r2.path, "allOf", 1] }), s2 = (e5) => "allOf" in e5 && Object.keys(e5).length === 1;
4730
4730
  n2.allOf = [...s2(a2) ? a2.allOf : [a2], ...s2(o2) ? o2.allOf : [o2]];
4731
- }, Bl = (e4, t2, n2, r2) => {
4731
+ }, zl = (e4, t2, n2, r2) => {
4732
4732
  let i2 = n2, a2 = e4._zod.def;
4733
4733
  i2.type = "array";
4734
- let o2 = t2.target === "draft-2020-12" ? "prefixItems" : "items", s2 = t2.target === "draft-2020-12" || t2.target === "openapi-3.0" ? "items" : "additionalItems", c2 = a2.items.map((e5, n3) => O(e5, t2, { ...r2, path: [...r2.path, o2, n3] })), l2 = a2.rest ? O(a2.rest, t2, { ...r2, path: [...r2.path, s2, ...t2.target === "openapi-3.0" ? [a2.items.length] : []] }) : null;
4734
+ let o2 = t2.target === "draft-2020-12" ? "prefixItems" : "items", s2 = t2.target === "draft-2020-12" || t2.target === "openapi-3.0" ? "items" : "additionalItems", c2 = a2.items.map((e5, n3) => k(e5, t2, { ...r2, path: [...r2.path, o2, n3] })), l2 = a2.rest ? k(a2.rest, t2, { ...r2, path: [...r2.path, s2, ...t2.target === "openapi-3.0" ? [a2.items.length] : []] }) : null;
4735
4735
  t2.target === "draft-2020-12" ? (i2.prefixItems = c2, l2 && (i2.items = l2)) : t2.target === "openapi-3.0" ? (i2.items = { anyOf: c2 }, l2 && i2.items.anyOf.push(l2), i2.minItems = c2.length, l2 || (i2.maxItems = c2.length)) : (i2.items = c2, l2 && (i2.additionalItems = l2));
4736
4736
  let { minimum: u2, maximum: d2 } = e4._zod.bag;
4737
4737
  typeof u2 == "number" && (i2.minItems = u2), typeof d2 == "number" && (i2.maxItems = d2);
4738
- }, Vl = (e4, t2, n2, r2) => {
4738
+ }, Bl = (e4, t2, n2, r2) => {
4739
4739
  let i2 = n2, a2 = e4._zod.def;
4740
4740
  i2.type = "object";
4741
4741
  let o2 = a2.keyType, s2 = o2._zod.bag, c2 = s2 == null ? void 0 : s2.patterns;
4742
4742
  if (a2.mode === "loose" && c2 && c2.size > 0) {
4743
- let e5 = O(a2.valueType, t2, { ...r2, path: [...r2.path, "patternProperties", "*"] });
4743
+ let e5 = k(a2.valueType, t2, { ...r2, path: [...r2.path, "patternProperties", "*"] });
4744
4744
  i2.patternProperties = {};
4745
4745
  for (let t3 of c2) i2.patternProperties[t3.source] = e5;
4746
- } else (t2.target === "draft-07" || t2.target === "draft-2020-12") && (i2.propertyNames = O(a2.keyType, t2, { ...r2, path: [...r2.path, "propertyNames"] })), i2.additionalProperties = O(a2.valueType, t2, { ...r2, path: [...r2.path, "additionalProperties"] });
4746
+ } else (t2.target === "draft-07" || t2.target === "draft-2020-12") && (i2.propertyNames = k(a2.keyType, t2, { ...r2, path: [...r2.path, "propertyNames"] })), i2.additionalProperties = k(a2.valueType, t2, { ...r2, path: [...r2.path, "additionalProperties"] });
4747
4747
  let l2 = o2._zod.values;
4748
4748
  if (l2) {
4749
4749
  let e5 = [...l2].filter((e6) => typeof e6 == "string" || typeof e6 == "number");
4750
4750
  e5.length > 0 && (i2.required = e5);
4751
4751
  }
4752
- }, Hl = (e4, t2, n2, r2) => {
4753
- let i2 = e4._zod.def, a2 = O(i2.innerType, t2, r2), o2 = t2.seen.get(e4);
4752
+ }, Vl = (e4, t2, n2, r2) => {
4753
+ let i2 = e4._zod.def, a2 = k(i2.innerType, t2, r2), o2 = t2.seen.get(e4);
4754
4754
  t2.target === "openapi-3.0" ? (o2.ref = i2.innerType, n2.nullable = true) : n2.anyOf = [a2, { type: "null" }];
4755
- }, Ul = (e4, t2, n2, r2) => {
4755
+ }, Hl = (e4, t2, n2, r2) => {
4756
4756
  let i2 = e4._zod.def;
4757
- O(i2.innerType, t2, r2);
4757
+ k(i2.innerType, t2, r2);
4758
4758
  let a2 = t2.seen.get(e4);
4759
4759
  a2.ref = i2.innerType;
4760
- }, Wl = (e4, t2, n2, r2) => {
4760
+ }, Ul = (e4, t2, n2, r2) => {
4761
4761
  let i2 = e4._zod.def;
4762
- O(i2.innerType, t2, r2);
4762
+ k(i2.innerType, t2, r2);
4763
4763
  let a2 = t2.seen.get(e4);
4764
4764
  a2.ref = i2.innerType, n2.default = JSON.parse(JSON.stringify(i2.defaultValue));
4765
- }, Gl = (e4, t2, n2, r2) => {
4765
+ }, Wl = (e4, t2, n2, r2) => {
4766
4766
  let i2 = e4._zod.def;
4767
- O(i2.innerType, t2, r2);
4767
+ k(i2.innerType, t2, r2);
4768
4768
  let a2 = t2.seen.get(e4);
4769
4769
  a2.ref = i2.innerType, t2.io === "input" && (n2._prefault = JSON.parse(JSON.stringify(i2.defaultValue)));
4770
- }, Kl = (e4, t2, n2, r2) => {
4770
+ }, Gl = (e4, t2, n2, r2) => {
4771
4771
  let i2 = e4._zod.def;
4772
- O(i2.innerType, t2, r2);
4772
+ k(i2.innerType, t2, r2);
4773
4773
  let a2 = t2.seen.get(e4);
4774
4774
  a2.ref = i2.innerType;
4775
4775
  let o2;
@@ -4779,51 +4779,51 @@ var ul = (e4, t2 = {}) => (n2) => {
4779
4779
  throw Error("Dynamic catch values are not supported in JSON Schema");
4780
4780
  }
4781
4781
  n2.default = o2;
4782
- }, ql = (e4, t2, n2, r2) => {
4782
+ }, Kl = (e4, t2, n2, r2) => {
4783
4783
  let i2 = e4._zod.def, a2 = t2.io === "input" ? i2.in._zod.def.type === "transform" ? i2.out : i2.in : i2.out;
4784
- O(a2, t2, r2);
4784
+ k(a2, t2, r2);
4785
4785
  let o2 = t2.seen.get(e4);
4786
4786
  o2.ref = a2;
4787
- }, Jl = (e4, t2, n2, r2) => {
4787
+ }, ql = (e4, t2, n2, r2) => {
4788
4788
  let i2 = e4._zod.def;
4789
- O(i2.innerType, t2, r2);
4789
+ k(i2.innerType, t2, r2);
4790
4790
  let a2 = t2.seen.get(e4);
4791
4791
  a2.ref = i2.innerType, n2.readOnly = true;
4792
- }, Yl = (e4, t2, n2, r2) => {
4792
+ }, Jl = (e4, t2, n2, r2) => {
4793
4793
  let i2 = e4._zod.def;
4794
- O(i2.innerType, t2, r2);
4794
+ k(i2.innerType, t2, r2);
4795
4795
  let a2 = t2.seen.get(e4);
4796
4796
  a2.ref = i2.innerType;
4797
- }, Xl = (e4, t2, n2, r2) => {
4797
+ }, Yl = (e4, t2, n2, r2) => {
4798
4798
  let i2 = e4._zod.def;
4799
- O(i2.innerType, t2, r2);
4799
+ k(i2.innerType, t2, r2);
4800
4800
  let a2 = t2.seen.get(e4);
4801
4801
  a2.ref = i2.innerType;
4802
- }, Zl = (e4, t2, n2, r2) => {
4802
+ }, Xl = (e4, t2, n2, r2) => {
4803
4803
  let i2 = e4._zod.innerType;
4804
- O(i2, t2, r2);
4804
+ k(i2, t2, r2);
4805
4805
  let a2 = t2.seen.get(e4);
4806
4806
  a2.ref = i2;
4807
- }, Ql = { string: pl, number: ml, boolean: hl, bigint: gl, symbol: _l, null: vl, undefined: yl, void: bl, never: xl, any: Sl, unknown: Cl, date: wl, enum: Tl, literal: El, nan: Dl, template_literal: Ol, file: kl, success: Al, custom: jl, function: Ml, transform: Nl, map: Pl, set: Fl, array: Il, object: Ll, union: Rl, intersection: zl, tuple: Bl, record: Vl, nullable: Hl, nonoptional: Ul, default: Wl, prefault: Gl, catch: Kl, pipe: ql, readonly: Jl, promise: Yl, optional: Xl, lazy: Zl };
4808
- function $l(e4, t2) {
4807
+ }, Zl = { string: fl, number: pl, boolean: ml, bigint: hl, symbol: gl, null: _l, undefined: vl, void: yl, never: bl, any: xl, unknown: Sl, date: Cl, enum: wl, literal: Tl, nan: El, template_literal: Dl, file: Ol, success: kl, custom: Al, function: jl, transform: Ml, map: Nl, set: Pl, array: Fl, object: Il, union: Ll, intersection: Rl, tuple: zl, record: Bl, nullable: Vl, nonoptional: Hl, default: Ul, prefault: Wl, catch: Gl, pipe: Kl, readonly: ql, promise: Jl, optional: Yl, lazy: Xl };
4808
+ function Ql(e4, t2) {
4809
4809
  if ("_idmap" in e4) {
4810
- let n3 = e4, r2 = sl({ ...t2, processors: Ql }), i2 = {};
4810
+ let n3 = e4, r2 = ol({ ...t2, processors: Zl }), i2 = {};
4811
4811
  for (let e5 of n3._idmap.entries()) {
4812
4812
  let [t3, n4] = e5;
4813
- O(n4, r2);
4813
+ k(n4, r2);
4814
4814
  }
4815
4815
  let a2 = {};
4816
4816
  r2.external = { registry: n3, uri: t2 == null ? void 0 : t2.uri, defs: i2 };
4817
4817
  for (let e5 of n3._idmap.entries()) {
4818
4818
  let [t3, n4] = e5;
4819
- cl(r2, n4), a2[t3] = ll(r2, n4);
4819
+ sl(r2, n4), a2[t3] = cl(r2, n4);
4820
4820
  }
4821
4821
  return Object.keys(i2).length > 0 && (a2.__shared = { [r2.target === "draft-2020-12" ? "$defs" : "definitions"]: i2 }), { schemas: a2 };
4822
4822
  }
4823
- let n2 = sl({ ...t2, processors: Ql });
4824
- return O(e4, n2), cl(n2, e4), ll(n2, e4);
4823
+ let n2 = ol({ ...t2, processors: Zl });
4824
+ return k(e4, n2), sl(n2, e4), cl(n2, e4);
4825
4825
  }
4826
- var eu = class {
4826
+ var $l = class {
4827
4827
  get metadataRegistry() {
4828
4828
  return this.ctx.metadataRegistry;
4829
4829
  }
@@ -4851,27 +4851,27 @@ var eu = class {
4851
4851
  constructor(e4) {
4852
4852
  var t2;
4853
4853
  let n2 = (t2 = e4 == null ? void 0 : e4.target) == null ? "draft-2020-12" : t2;
4854
- n2 === "draft-4" && (n2 = "draft-04"), n2 === "draft-7" && (n2 = "draft-07"), this.ctx = sl({ processors: Ql, target: n2, ...(e4 == null ? void 0 : e4.metadata) && { metadata: e4.metadata }, ...(e4 == null ? void 0 : e4.unrepresentable) && { unrepresentable: e4.unrepresentable }, ...(e4 == null ? void 0 : e4.override) && { override: e4.override }, ...(e4 == null ? void 0 : e4.io) && { io: e4.io } });
4854
+ n2 === "draft-4" && (n2 = "draft-04"), n2 === "draft-7" && (n2 = "draft-07"), this.ctx = ol({ processors: Zl, target: n2, ...(e4 == null ? void 0 : e4.metadata) && { metadata: e4.metadata }, ...(e4 == null ? void 0 : e4.unrepresentable) && { unrepresentable: e4.unrepresentable }, ...(e4 == null ? void 0 : e4.override) && { override: e4.override }, ...(e4 == null ? void 0 : e4.io) && { io: e4.io } });
4855
4855
  }
4856
4856
  process(e4, t2 = { path: [], schemaPath: [] }) {
4857
- return O(e4, this.ctx, t2);
4857
+ return k(e4, this.ctx, t2);
4858
4858
  }
4859
4859
  emit(e4, t2) {
4860
- t2 && (t2.cycles && (this.ctx.cycles = t2.cycles), t2.reused && (this.ctx.reused = t2.reused), t2.external && (this.ctx.external = t2.external)), cl(this.ctx, e4);
4861
- let { "~standard": n2, ...r2 } = ll(this.ctx, e4);
4860
+ t2 && (t2.cycles && (this.ctx.cycles = t2.cycles), t2.reused && (this.ctx.reused = t2.reused), t2.external && (this.ctx.external = t2.external)), sl(this.ctx, e4);
4861
+ let { "~standard": n2, ...r2 } = cl(this.ctx, e4);
4862
4862
  return r2;
4863
4863
  }
4864
- }, tu = t({}), nu = t({ $ZodAny: () => Zr, $ZodArray: () => ri, $ZodAsyncError: () => u, $ZodBase64: () => Ir, $ZodBase64URL: () => Rr, $ZodBigInt: () => Kr, $ZodBigIntFormat: () => qr, $ZodBoolean: () => Gr, $ZodCIDRv4: () => Nr, $ZodCIDRv6: () => Pr, $ZodCUID: () => xr, $ZodCUID2: () => Sr, $ZodCatch: () => Ri, $ZodCheck: () => w, $ZodCheckBigIntFormat: () => Jn, $ZodCheckEndsWith: () => sr, $ZodCheckGreaterThan: () => Gn, $ZodCheckIncludes: () => ar, $ZodCheckLengthEquals: () => er, $ZodCheckLessThan: () => Wn, $ZodCheckLowerCase: () => rr, $ZodCheckMaxLength: () => Qn, $ZodCheckMaxSize: () => Yn, $ZodCheckMimeType: () => ur, $ZodCheckMinLength: () => $n, $ZodCheckMinSize: () => Xn, $ZodCheckMultipleOf: () => Kn, $ZodCheckNumberFormat: () => qn, $ZodCheckOverwrite: () => dr, $ZodCheckProperty: () => lr, $ZodCheckRegex: () => nr, $ZodCheckSizeEquals: () => Zn, $ZodCheckStartsWith: () => or, $ZodCheckStringFormat: () => tr, $ZodCheckUpperCase: () => ir, $ZodCodec: () => Hi, $ZodCustom: () => Zi, $ZodCustomStringFormat: () => Hr, $ZodDate: () => ti, $ZodDefault: () => Mi, $ZodDiscriminatedUnion: () => pi, $ZodE164: () => zr, $ZodEmail: () => _r, $ZodEmoji: () => yr, $ZodEncodeError: () => d, $ZodEnum: () => wi, $ZodError: () => tt, $ZodExactOptional: () => Ai, $ZodFile: () => Ei, $ZodFunction: () => Ji, $ZodGUID: () => hr, $ZodIPv4: () => Ar, $ZodIPv6: () => jr, $ZodISODate: () => Dr, $ZodISODateTime: () => Er, $ZodISODuration: () => kr, $ZodISOTime: () => Or, $ZodIntersection: () => mi, $ZodJWT: () => Vr, $ZodKSUID: () => Tr, $ZodLazy: () => Xi, $ZodLiteral: () => Ti, $ZodMAC: () => Mr, $ZodMap: () => bi, $ZodNaN: () => zi, $ZodNanoID: () => br, $ZodNever: () => $r, $ZodNonOptional: () => Fi, $ZodNull: () => Xr, $ZodNullable: () => ji, $ZodNumber: () => Ur, $ZodNumberFormat: () => Wr, $ZodObject: () => si, $ZodObjectJIT: () => ci, $ZodOptional: () => ki, $ZodPipe: () => Bi, $ZodPrefault: () => Pi, $ZodPromise: () => Yi, $ZodReadonly: () => Gi, $ZodRealError: () => nt, $ZodRecord: () => yi, $ZodRegistry: () => Qo, $ZodSet: () => Si, $ZodString: () => mr, $ZodStringFormat: () => E, $ZodSuccess: () => Li, $ZodSymbol: () => Jr, $ZodTemplateLiteral: () => qi, $ZodTransform: () => Di, $ZodTuple: () => _i, $ZodType: () => T, $ZodULID: () => Cr, $ZodURL: () => vr, $ZodUUID: () => gr, $ZodUndefined: () => Yr, $ZodUnion: () => ui, $ZodUnknown: () => Qr, $ZodVoid: () => ei, $ZodXID: () => wr, $ZodXor: () => fi, $brand: () => l, $constructor: () => c, $input: () => Zo, $output: () => Xo, Doc: () => fr, JSONSchema: () => tu, JSONSchemaGenerator: () => eu, NEVER: () => s, TimePrecision: () => Es, _any: () => qs, _array: () => Oc, _base64: () => Ss, _base64url: () => Cs, _bigint: () => Bs, _boolean: () => Rs, _catch: () => qc, _check: () => nl, _cidrv4: () => bs, _cidrv6: () => xs, _coercedBigint: () => Vs, _coercedBoolean: () => zs, _coercedDate: () => Qs, _coercedNumber: () => Ms, _coercedString: () => ns, _cuid: () => fs, _cuid2: () => ps, _custom: () => $c, _date: () => Zs, _decode: () => vt, _decodeAsync: () => St, _default: () => Wc, _discriminatedUnion: () => jc, _e164: () => ws, _email: () => rs, _emoji: () => us, _encode: () => gt, _encodeAsync: () => bt, _endsWith: () => yc, _enum: () => Lc, _file: () => Bc, _float32: () => Ps, _float64: () => Fs, _gt: () => nc, _gte: () => D, _guid: () => is, _includes: () => _c, _int: () => Ns, _int32: () => Is, _int64: () => Hs, _intersection: () => Mc, _ipv4: () => _s, _ipv6: () => vs, _isoDate: () => Os, _isoDateTime: () => Ds, _isoDuration: () => As, _isoTime: () => ks, _jwt: () => Ts, _ksuid: () => gs, _lazy: () => Zc, _length: () => pc, _literal: () => zc, _lowercase: () => hc, _lt: () => ec, _lte: () => tc, _mac: () => ys, _map: () => Fc, _max: () => tc, _maxLength: () => dc, _maxSize: () => cc, _mime: () => xc, _min: () => D, _minLength: () => fc, _minSize: () => lc, _multipleOf: () => sc, _nan: () => $s, _nanoid: () => ds, _nativeEnum: () => Rc, _negative: () => ic, _never: () => Ys, _nonnegative: () => oc, _nonoptional: () => Gc, _nonpositive: () => ac, _normalize: () => Cc, _null: () => Ks, _nullable: () => Uc, _number: () => js, _optional: () => Hc, _overwrite: () => Sc, _parse: () => ct, _parseAsync: () => ut, _pipe: () => Jc, _positive: () => rc, _promise: () => Qc, _property: () => bc, _readonly: () => Yc, _record: () => Pc, _refine: () => el, _regex: () => mc, _safeDecode: () => Et, _safeDecodeAsync: () => At, _safeEncode: () => wt, _safeEncodeAsync: () => Ot, _safeParse: () => ft, _safeParseAsync: () => mt, _set: () => Ic, _size: () => uc, _slugify: () => Dc, _startsWith: () => vc, _string: () => ts, _stringFormat: () => ol, _stringbool: () => al, _success: () => Kc, _superRefine: () => tl, _symbol: () => Ws, _templateLiteral: () => Xc, _toLowerCase: () => Tc, _toUpperCase: () => Ec, _transform: () => Vc, _trim: () => wc, _tuple: () => Nc, _uint32: () => Ls, _uint64: () => Us, _ulid: () => ms, _undefined: () => Gs, _union: () => kc, _unknown: () => Js, _uppercase: () => gc, _url: () => ls, _uuid: () => as, _uuidv4: () => os, _uuidv6: () => ss, _uuidv7: () => cs, _void: () => Xs, _xid: () => hs, _xor: () => Ac, clone: () => De, config: () => p, createStandardJSONSchemaMethod: () => dl, createToJSONSchemaMethod: () => ul, decode: () => yt, decodeAsync: () => Ct, describe: () => rl, encode: () => _t, encodeAsync: () => xt, extractDefs: () => cl, finalize: () => ll, flattenError: () => rt, formatError: () => it, globalConfig: () => f, globalRegistry: () => es, initializeContext: () => sl, isValidBase64: () => Fr, isValidBase64URL: () => Lr, isValidJWT: () => Br, locales: () => Jo, meta: () => il, parse: () => lt, parseAsync: () => dt, prettifyError: () => st, process: () => O, regexes: () => Mt, registry: () => $o, safeDecode: () => Dt, safeDecodeAsync: () => jt, safeEncode: () => Tt, safeEncodeAsync: () => kt, safeParse: () => pt, safeParseAsync: () => ht, toDotPath: () => ot, toJSONSchema: () => $l, treeifyError: () => at, util: () => ee, version: () => pr });
4865
- function ru(e4) {
4864
+ }, eu = t({}), tu = t({ $ZodAny: () => Zr, $ZodArray: () => ri, $ZodAsyncError: () => u, $ZodBase64: () => Ir, $ZodBase64URL: () => Rr, $ZodBigInt: () => Kr, $ZodBigIntFormat: () => qr, $ZodBoolean: () => Gr, $ZodCIDRv4: () => Nr, $ZodCIDRv6: () => Pr, $ZodCUID: () => xr, $ZodCUID2: () => Sr, $ZodCatch: () => Ri, $ZodCheck: () => w, $ZodCheckBigIntFormat: () => Jn, $ZodCheckEndsWith: () => sr, $ZodCheckGreaterThan: () => Gn, $ZodCheckIncludes: () => ar, $ZodCheckLengthEquals: () => er, $ZodCheckLessThan: () => Wn, $ZodCheckLowerCase: () => rr, $ZodCheckMaxLength: () => Qn, $ZodCheckMaxSize: () => Yn, $ZodCheckMimeType: () => ur, $ZodCheckMinLength: () => $n, $ZodCheckMinSize: () => Xn, $ZodCheckMultipleOf: () => Kn, $ZodCheckNumberFormat: () => qn, $ZodCheckOverwrite: () => dr, $ZodCheckProperty: () => lr, $ZodCheckRegex: () => nr, $ZodCheckSizeEquals: () => Zn, $ZodCheckStartsWith: () => or, $ZodCheckStringFormat: () => tr, $ZodCheckUpperCase: () => ir, $ZodCodec: () => Hi, $ZodCustom: () => Zi, $ZodCustomStringFormat: () => Hr, $ZodDate: () => ti, $ZodDefault: () => Mi, $ZodDiscriminatedUnion: () => pi, $ZodE164: () => zr, $ZodEmail: () => _r, $ZodEmoji: () => yr, $ZodEncodeError: () => d, $ZodEnum: () => wi, $ZodError: () => tt, $ZodExactOptional: () => Ai, $ZodFile: () => Ei, $ZodFunction: () => Ji, $ZodGUID: () => hr, $ZodIPv4: () => Ar, $ZodIPv6: () => jr, $ZodISODate: () => Dr, $ZodISODateTime: () => Er, $ZodISODuration: () => kr, $ZodISOTime: () => Or, $ZodIntersection: () => mi, $ZodJWT: () => Vr, $ZodKSUID: () => Tr, $ZodLazy: () => Xi, $ZodLiteral: () => Ti, $ZodMAC: () => Mr, $ZodMap: () => bi, $ZodNaN: () => zi, $ZodNanoID: () => br, $ZodNever: () => $r, $ZodNonOptional: () => Fi, $ZodNull: () => Xr, $ZodNullable: () => ji, $ZodNumber: () => Ur, $ZodNumberFormat: () => Wr, $ZodObject: () => si, $ZodObjectJIT: () => ci, $ZodOptional: () => ki, $ZodPipe: () => Bi, $ZodPrefault: () => Pi, $ZodPromise: () => Yi, $ZodReadonly: () => Gi, $ZodRealError: () => nt, $ZodRecord: () => yi, $ZodRegistry: () => Qo, $ZodSet: () => Si, $ZodString: () => mr, $ZodStringFormat: () => E, $ZodSuccess: () => Li, $ZodSymbol: () => Jr, $ZodTemplateLiteral: () => qi, $ZodTransform: () => Di, $ZodTuple: () => _i, $ZodType: () => T, $ZodULID: () => Cr, $ZodURL: () => vr, $ZodUUID: () => gr, $ZodUndefined: () => Yr, $ZodUnion: () => ui, $ZodUnknown: () => Qr, $ZodVoid: () => ei, $ZodXID: () => wr, $ZodXor: () => fi, $brand: () => l, $constructor: () => c, $input: () => Zo, $output: () => Xo, Doc: () => fr, JSONSchema: () => eu, JSONSchemaGenerator: () => $l, NEVER: () => s, TimePrecision: () => Ts, _any: () => Ks, _array: () => Dc, _base64: () => xs, _base64url: () => Ss, _bigint: () => zs, _boolean: () => Ls, _catch: () => Kc, _check: () => tl, _cidrv4: () => ys, _cidrv6: () => bs, _coercedBigint: () => Bs, _coercedBoolean: () => Rs, _coercedDate: () => Zs, _coercedNumber: () => js, _coercedString: () => ts, _cuid: () => ds, _cuid2: () => fs, _custom: () => Qc, _date: () => Xs, _decode: () => vt, _decodeAsync: () => St, _default: () => Uc, _discriminatedUnion: () => Ac, _e164: () => Cs, _email: () => ns, _emoji: () => ls, _encode: () => gt, _encodeAsync: () => bt, _endsWith: () => vc, _enum: () => Ic, _file: () => zc, _float32: () => Ns, _float64: () => Ps, _gt: () => tc, _gte: () => O, _guid: () => rs, _includes: () => gc, _int: () => Ms, _int32: () => Fs, _int64: () => Vs, _intersection: () => jc, _ipv4: () => gs, _ipv6: () => _s, _isoDate: () => Ds, _isoDateTime: () => Es, _isoDuration: () => ks, _isoTime: () => Os, _jwt: () => ws, _ksuid: () => hs, _lazy: () => Xc, _length: () => fc, _literal: () => Rc, _lowercase: () => mc, _lt: () => $s, _lte: () => ec, _mac: () => vs, _map: () => Pc, _max: () => ec, _maxLength: () => uc, _maxSize: () => sc, _mime: () => bc, _min: () => O, _minLength: () => dc, _minSize: () => cc, _multipleOf: () => oc, _nan: () => Qs, _nanoid: () => us, _nativeEnum: () => Lc, _negative: () => rc, _never: () => Js, _nonnegative: () => ac, _nonoptional: () => Wc, _nonpositive: () => ic, _normalize: () => Sc, _null: () => Gs, _nullable: () => Hc, _number: () => As, _optional: () => Vc, _overwrite: () => xc, _parse: () => ct, _parseAsync: () => ut, _pipe: () => qc, _positive: () => nc, _promise: () => Zc, _property: () => yc, _readonly: () => Jc, _record: () => Nc, _refine: () => $c, _regex: () => pc, _safeDecode: () => Et, _safeDecodeAsync: () => At, _safeEncode: () => wt, _safeEncodeAsync: () => Ot, _safeParse: () => ft, _safeParseAsync: () => mt, _set: () => Fc, _size: () => lc, _slugify: () => Ec, _startsWith: () => _c, _string: () => es, _stringFormat: () => al, _stringbool: () => il, _success: () => Gc, _superRefine: () => el, _symbol: () => Us, _templateLiteral: () => Yc, _toLowerCase: () => wc, _toUpperCase: () => Tc, _transform: () => Bc, _trim: () => Cc, _tuple: () => Mc, _uint32: () => Is, _uint64: () => Hs, _ulid: () => ps, _undefined: () => Ws, _union: () => Oc, _unknown: () => qs, _uppercase: () => hc, _url: () => cs, _uuid: () => is, _uuidv4: () => as, _uuidv6: () => os, _uuidv7: () => ss, _void: () => Ys, _xid: () => ms, _xor: () => kc, clone: () => De, config: () => p, createStandardJSONSchemaMethod: () => ul, createToJSONSchemaMethod: () => ll, decode: () => yt, decodeAsync: () => Ct, describe: () => nl, encode: () => _t, encodeAsync: () => xt, extractDefs: () => sl, finalize: () => cl, flattenError: () => rt, formatError: () => it, globalConfig: () => f, globalRegistry: () => D, initializeContext: () => ol, isValidBase64: () => Fr, isValidBase64URL: () => Lr, isValidJWT: () => Br, locales: () => Jo, meta: () => rl, parse: () => lt, parseAsync: () => dt, prettifyError: () => st, process: () => k, regexes: () => Mt, registry: () => $o, safeDecode: () => Dt, safeDecodeAsync: () => jt, safeEncode: () => Tt, safeEncodeAsync: () => kt, safeParse: () => pt, safeParseAsync: () => ht, toDotPath: () => ot, toJSONSchema: () => Ql, treeifyError: () => at, util: () => ee, version: () => pr });
4865
+ function nu(e4) {
4866
4866
  return !!e4._zod;
4867
4867
  }
4868
- function iu(e4, t2) {
4869
- return ru(e4) ? pt(e4, t2) : e4.safeParse(t2);
4868
+ function ru(e4, t2) {
4869
+ return nu(e4) ? pt(e4, t2) : e4.safeParse(t2);
4870
4870
  }
4871
- function au(e4) {
4871
+ function iu(e4) {
4872
4872
  if (!e4) return;
4873
4873
  let t2;
4874
- if (ru(e4)) {
4874
+ if (nu(e4)) {
4875
4875
  var n2;
4876
4876
  t2 = (n2 = e4._zod) == null || (n2 = n2.def) == null ? void 0 : n2.shape;
4877
4877
  } else t2 = e4.shape;
@@ -4884,8 +4884,8 @@ function au(e4) {
4884
4884
  return t2;
4885
4885
  }
4886
4886
  }
4887
- function ou(e4) {
4888
- if (ru(e4)) {
4887
+ function au(e4) {
4888
+ if (nu(e4)) {
4889
4889
  var t2;
4890
4890
  let n3 = (t2 = e4._zod) == null ? void 0 : t2.def;
4891
4891
  if (n3) {
@@ -4901,31 +4901,31 @@ function ou(e4) {
4901
4901
  let r2 = e4.value;
4902
4902
  if (r2 !== void 0) return r2;
4903
4903
  }
4904
- var su = t({ endsWith: () => yc, gt: () => nc, gte: () => D, includes: () => _c, length: () => pc, lowercase: () => hc, lt: () => ec, lte: () => tc, maxLength: () => dc, maxSize: () => cc, mime: () => xc, minLength: () => fc, minSize: () => lc, multipleOf: () => sc, negative: () => ic, nonnegative: () => oc, nonpositive: () => ac, normalize: () => Cc, overwrite: () => Sc, positive: () => rc, property: () => bc, regex: () => mc, size: () => uc, slugify: () => Dc, startsWith: () => vc, toLowerCase: () => Tc, toUpperCase: () => Ec, trim: () => wc, uppercase: () => gc }), cu = t({ ZodISODate: () => du, ZodISODateTime: () => lu, ZodISODuration: () => hu, ZodISOTime: () => pu, date: () => fu, datetime: () => uu, duration: () => gu, time: () => mu }), lu = c("ZodISODateTime", (e4, t2) => {
4905
- Er.init(e4, t2), N.init(e4, t2);
4904
+ var ou = t({ endsWith: () => vc, gt: () => tc, gte: () => O, includes: () => gc, length: () => fc, lowercase: () => mc, lt: () => $s, lte: () => ec, maxLength: () => uc, maxSize: () => sc, mime: () => bc, minLength: () => dc, minSize: () => cc, multipleOf: () => oc, negative: () => rc, nonnegative: () => ac, nonpositive: () => ic, normalize: () => Sc, overwrite: () => xc, positive: () => nc, property: () => yc, regex: () => pc, size: () => lc, slugify: () => Ec, startsWith: () => _c, toLowerCase: () => wc, toUpperCase: () => Tc, trim: () => Cc, uppercase: () => hc }), su = t({ ZodISODate: () => uu, ZodISODateTime: () => cu, ZodISODuration: () => mu, ZodISOTime: () => fu, date: () => du, datetime: () => lu, duration: () => hu, time: () => pu }), cu = c("ZodISODateTime", (e4, t2) => {
4905
+ Er.init(e4, t2), P.init(e4, t2);
4906
4906
  });
4907
- function uu(e4) {
4908
- return Ds(lu, e4);
4907
+ function lu(e4) {
4908
+ return Es(cu, e4);
4909
4909
  }
4910
- var du = c("ZodISODate", (e4, t2) => {
4911
- Dr.init(e4, t2), N.init(e4, t2);
4910
+ var uu = c("ZodISODate", (e4, t2) => {
4911
+ Dr.init(e4, t2), P.init(e4, t2);
4912
4912
  });
4913
- function fu(e4) {
4914
- return Os(du, e4);
4913
+ function du(e4) {
4914
+ return Ds(uu, e4);
4915
4915
  }
4916
- var pu = c("ZodISOTime", (e4, t2) => {
4917
- Or.init(e4, t2), N.init(e4, t2);
4916
+ var fu = c("ZodISOTime", (e4, t2) => {
4917
+ Or.init(e4, t2), P.init(e4, t2);
4918
4918
  });
4919
- function mu(e4) {
4920
- return ks(pu, e4);
4919
+ function pu(e4) {
4920
+ return Os(fu, e4);
4921
4921
  }
4922
- var hu = c("ZodISODuration", (e4, t2) => {
4923
- kr.init(e4, t2), N.init(e4, t2);
4922
+ var mu = c("ZodISODuration", (e4, t2) => {
4923
+ kr.init(e4, t2), P.init(e4, t2);
4924
4924
  });
4925
- function gu(e4) {
4926
- return As(hu, e4);
4925
+ function hu(e4) {
4926
+ return ks(mu, e4);
4927
4927
  }
4928
- var _u = (e4, t2) => {
4928
+ var gu = (e4, t2) => {
4929
4929
  tt.init(e4, t2), e4.name = "ZodError", Object.defineProperties(e4, { format: { value: (t3) => it(e4, t3) }, flatten: { value: (t3) => rt(e4, t3) }, addIssue: { value: (t3) => {
4930
4930
  e4.issues.push(t3), e4.message = JSON.stringify(e4.issues, v, 2);
4931
4931
  } }, addIssues: { value: (t3) => {
@@ -4933,399 +4933,399 @@ var _u = (e4, t2) => {
4933
4933
  } }, isEmpty: { get() {
4934
4934
  return e4.issues.length === 0;
4935
4935
  } } });
4936
- }, vu = c("ZodError", _u), A = c("ZodError", _u, { Parent: Error }), yu = ct(A), bu = ut(A), xu = ft(A), Su = mt(A), Cu = gt(A), wu = vt(A), Tu = bt(A), Eu = St(A), Du = wt(A), Ou = Et(A), ku = Ot(A), Au = At(A), ju = t({ ZodAny: () => Jd, ZodArray: () => rf, ZodBase64: () => gd, ZodBase64URL: () => vd, ZodBigInt: () => Ld, ZodBigIntFormat: () => zd, ZodBoolean: () => Id, ZodCIDRv4: () => fd, ZodCIDRv6: () => md, ZodCUID: () => Xu, ZodCUID2: () => Qu, ZodCatch: () => Gf, ZodCodec: () => Zf, ZodCustom: () => lp, ZodCustomStringFormat: () => wd, ZodDate: () => tf, ZodDefault: () => Lf, ZodDiscriminatedUnion: () => df, ZodE164: () => bd, ZodEmail: () => Pu, ZodEmoji: () => Ku, ZodEnum: () => wf, ZodExactOptional: () => Mf, ZodFile: () => Df, ZodFunction: () => sp, ZodGUID: () => Iu, ZodIPv4: () => od, ZodIPv6: () => ud, ZodIntersection: () => pf, ZodJWT: () => Sd, ZodKSUID: () => id, ZodLazy: () => rp, ZodLiteral: () => Ef, ZodMAC: () => cd, ZodMap: () => bf, ZodNaN: () => qf, ZodNanoID: () => Ju, ZodNever: () => Zd, ZodNonOptional: () => Vf, ZodNull: () => Kd, ZodNullable: () => Pf, ZodNumber: () => kd, ZodNumberFormat: () => Ad, ZodObject: () => of, ZodOptional: () => jf, ZodPipe: () => Yf, ZodPrefault: () => zf, ZodPromise: () => ap, ZodReadonly: () => $f, ZodRecord: () => _f, ZodSet: () => Sf, ZodString: () => Nu, ZodStringFormat: () => N, ZodSuccess: () => Uf, ZodSymbol: () => Hd, ZodTemplateLiteral: () => tp, ZodTransform: () => kf, ZodTuple: () => hf, ZodType: () => j, ZodULID: () => ed, ZodURL: () => Uu, ZodUUID: () => Ru, ZodUndefined: () => Wd, ZodUnion: () => cf, ZodUnknown: () => Xd, ZodVoid: () => $d, ZodXID: () => nd, ZodXor: () => lf, _ZodString: () => Mu, _default: () => Rf, _function: () => cp, any: () => Yd, array: () => L, base64: () => _d, base64url: () => yd, bigint: () => Rd, boolean: () => F, catch: () => Kf, check: () => up, cidrv4: () => pd, cidrv6: () => hd, codec: () => Qf, cuid: () => Zu, cuid2: () => $u, custom: () => dp, date: () => nf, describe: () => mp, discriminatedUnion: () => ff, e164: () => xd, email: () => Fu, emoji: () => qu, enum: () => H, exactOptional: () => Nf, file: () => Of, float32: () => Md, float64: () => Nd, function: () => cp, guid: () => Lu, hash: () => Od, hex: () => Dd, hostname: () => Ed, httpUrl: () => Gu, instanceof: () => gp, int: () => jd, int32: () => Pd, int64: () => Bd, intersection: () => mf, ipv4: () => sd, ipv6: () => dd, json: () => vp, jwt: () => Cd, keyof: () => af, ksuid: () => ad, lazy: () => ip, literal: () => U, looseObject: () => z, looseRecord: () => yf, mac: () => ld, map: () => xf, meta: () => hp, nan: () => Jf, nanoid: () => Yu, nativeEnum: () => Tf, never: () => Qd, nonoptional: () => Hf, null: () => qd, nullable: () => Ff, nullish: () => If, number: () => P, object: () => R, optional: () => W, partialRecord: () => vf, pipe: () => Xf, prefault: () => Bf, preprocess: () => yp, promise: () => op, readonly: () => ep, record: () => V, refine: () => fp, set: () => Cf, strictObject: () => sf, string: () => M, stringFormat: () => Td, stringbool: () => _p, success: () => Wf, superRefine: () => pp, symbol: () => Ud, templateLiteral: () => np, transform: () => Af, tuple: () => gf, uint32: () => Fd, uint64: () => Vd, ulid: () => td, undefined: () => Gd, union: () => B, unknown: () => I, url: () => Wu, uuid: () => zu, uuidv4: () => Bu, uuidv6: () => Vu, uuidv7: () => Hu, void: () => ef, xid: () => rd, xor: () => uf }), j = c("ZodType", (e4, t2) => (T.init(e4, t2), Object.assign(e4["~standard"], { jsonSchema: { input: dl(e4, "input"), output: dl(e4, "output") } }), e4.toJSONSchema = ul(e4, {}), e4.def = t2, e4.type = t2.type, Object.defineProperty(e4, "_def", { value: t2 }), e4.check = (...n2) => {
4936
+ }, _u = c("ZodError", gu), j = c("ZodError", gu, { Parent: Error }), vu = ct(j), yu = ut(j), bu = ft(j), xu = mt(j), Su = gt(j), Cu = vt(j), wu = bt(j), Tu = St(j), Eu = wt(j), Du = Et(j), Ou = Ot(j), ku = At(j), Au = t({ ZodAny: () => qd, ZodArray: () => nf, ZodBase64: () => hd, ZodBase64URL: () => _d, ZodBigInt: () => Id, ZodBigIntFormat: () => Rd, ZodBoolean: () => Fd, ZodCIDRv4: () => dd, ZodCIDRv6: () => pd, ZodCUID: () => Yu, ZodCUID2: () => Zu, ZodCatch: () => Wf, ZodCodec: () => Xf, ZodCustom: () => cp, ZodCustomStringFormat: () => Cd, ZodDate: () => ef, ZodDefault: () => If, ZodDiscriminatedUnion: () => uf, ZodE164: () => yd, ZodEmail: () => Nu, ZodEmoji: () => Gu, ZodEnum: () => Cf, ZodExactOptional: () => jf, ZodFile: () => Ef, ZodFunction: () => op, ZodGUID: () => Fu, ZodIPv4: () => ad, ZodIPv6: () => ld, ZodIntersection: () => ff, ZodJWT: () => xd, ZodKSUID: () => rd, ZodLazy: () => np, ZodLiteral: () => Tf, ZodMAC: () => sd, ZodMap: () => yf, ZodNaN: () => Kf, ZodNanoID: () => qu, ZodNever: () => Xd, ZodNonOptional: () => Bf, ZodNull: () => Gd, ZodNullable: () => Nf, ZodNumber: () => Od, ZodNumberFormat: () => kd, ZodObject: () => af, ZodOptional: () => Af, ZodPipe: () => Jf, ZodPrefault: () => Rf, ZodPromise: () => ip, ZodReadonly: () => Qf, ZodRecord: () => gf, ZodSet: () => xf, ZodString: () => Mu, ZodStringFormat: () => P, ZodSuccess: () => Hf, ZodSymbol: () => Vd, ZodTemplateLiteral: () => ep, ZodTransform: () => Of, ZodTuple: () => mf, ZodType: () => M, ZodULID: () => $u, ZodURL: () => Hu, ZodUUID: () => Lu, ZodUndefined: () => Ud, ZodUnion: () => sf, ZodUnknown: () => Yd, ZodVoid: () => Qd, ZodXID: () => td, ZodXor: () => cf, _ZodString: () => ju, _default: () => Lf, _function: () => sp, any: () => Jd, array: () => R, base64: () => gd, base64url: () => vd, bigint: () => Ld, boolean: () => I, catch: () => Gf, check: () => lp, cidrv4: () => fd, cidrv6: () => md, codec: () => Zf, cuid: () => Xu, cuid2: () => Qu, custom: () => up, date: () => tf, describe: () => pp, discriminatedUnion: () => df, e164: () => bd, email: () => Pu, emoji: () => Ku, enum: () => U, exactOptional: () => Mf, file: () => Df, float32: () => jd, float64: () => Md, function: () => sp, guid: () => Iu, hash: () => Dd, hex: () => Ed, hostname: () => Td, httpUrl: () => Wu, instanceof: () => hp, int: () => Ad, int32: () => Nd, int64: () => zd, intersection: () => pf, ipv4: () => od, ipv6: () => ud, json: () => _p, jwt: () => Sd, keyof: () => rf, ksuid: () => id, lazy: () => rp, literal: () => W, looseObject: () => B, looseRecord: () => vf, mac: () => cd, map: () => bf, meta: () => mp, nan: () => qf, nanoid: () => Ju, nativeEnum: () => wf, never: () => Zd, nonoptional: () => Vf, null: () => Kd, nullable: () => Pf, nullish: () => Ff, number: () => F, object: () => z, optional: () => G, partialRecord: () => _f, pipe: () => Yf, prefault: () => zf, preprocess: () => vp, promise: () => ap, readonly: () => $f, record: () => H, refine: () => dp, set: () => Sf, strictObject: () => of, string: () => N, stringFormat: () => wd, stringbool: () => gp, success: () => Uf, superRefine: () => fp, symbol: () => Hd, templateLiteral: () => tp, transform: () => kf, tuple: () => hf, uint32: () => Pd, uint64: () => Bd, ulid: () => ed, undefined: () => Wd, union: () => V, unknown: () => L, url: () => Uu, uuid: () => Ru, uuidv4: () => zu, uuidv6: () => Bu, uuidv7: () => Vu, void: () => $d, xid: () => nd, xor: () => lf }), M = c("ZodType", (e4, t2) => (T.init(e4, t2), Object.assign(e4["~standard"], { jsonSchema: { input: ul(e4, "input"), output: ul(e4, "output") } }), e4.toJSONSchema = ll(e4, {}), e4.def = t2, e4.type = t2.type, Object.defineProperty(e4, "_def", { value: t2 }), e4.check = (...n2) => {
4937
4937
  var r2;
4938
4938
  return e4.clone(ue(t2, { checks: [...(r2 = t2.checks) == null ? [] : r2, ...n2.map((e5) => typeof e5 == "function" ? { _zod: { check: e5, def: { check: "custom" }, onattach: [] } } : e5)] }), { parent: true });
4939
- }, e4.with = e4.check, e4.clone = (t3, n2) => De(e4, t3, n2), e4.brand = () => e4, e4.register = ((t3, n2) => (t3.add(e4, n2), e4)), e4.parse = (t3, n2) => yu(e4, t3, n2, { callee: e4.parse }), e4.safeParse = (t3, n2) => xu(e4, t3, n2), e4.parseAsync = async (t3, n2) => bu(e4, t3, n2, { callee: e4.parseAsync }), e4.safeParseAsync = async (t3, n2) => Su(e4, t3, n2), e4.spa = e4.safeParseAsync, e4.encode = (t3, n2) => Cu(e4, t3, n2), e4.decode = (t3, n2) => wu(e4, t3, n2), e4.encodeAsync = async (t3, n2) => Tu(e4, t3, n2), e4.decodeAsync = async (t3, n2) => Eu(e4, t3, n2), e4.safeEncode = (t3, n2) => Du(e4, t3, n2), e4.safeDecode = (t3, n2) => Ou(e4, t3, n2), e4.safeEncodeAsync = async (t3, n2) => ku(e4, t3, n2), e4.safeDecodeAsync = async (t3, n2) => Au(e4, t3, n2), e4.refine = (t3, n2) => e4.check(fp(t3, n2)), e4.superRefine = (t3) => e4.check(pp(t3)), e4.overwrite = (t3) => e4.check(Sc(t3)), e4.optional = () => W(e4), e4.exactOptional = () => Nf(e4), e4.nullable = () => Ff(e4), e4.nullish = () => W(Ff(e4)), e4.nonoptional = (t3) => Hf(e4, t3), e4.array = () => L(e4), e4.or = (t3) => B([e4, t3]), e4.and = (t3) => mf(e4, t3), e4.transform = (t3) => Xf(e4, Af(t3)), e4.default = (t3) => Rf(e4, t3), e4.prefault = (t3) => Bf(e4, t3), e4.catch = (t3) => Kf(e4, t3), e4.pipe = (t3) => Xf(e4, t3), e4.readonly = () => ep(e4), e4.describe = (t3) => {
4939
+ }, e4.with = e4.check, e4.clone = (t3, n2) => De(e4, t3, n2), e4.brand = () => e4, e4.register = ((t3, n2) => (t3.add(e4, n2), e4)), e4.parse = (t3, n2) => vu(e4, t3, n2, { callee: e4.parse }), e4.safeParse = (t3, n2) => bu(e4, t3, n2), e4.parseAsync = async (t3, n2) => yu(e4, t3, n2, { callee: e4.parseAsync }), e4.safeParseAsync = async (t3, n2) => xu(e4, t3, n2), e4.spa = e4.safeParseAsync, e4.encode = (t3, n2) => Su(e4, t3, n2), e4.decode = (t3, n2) => Cu(e4, t3, n2), e4.encodeAsync = async (t3, n2) => wu(e4, t3, n2), e4.decodeAsync = async (t3, n2) => Tu(e4, t3, n2), e4.safeEncode = (t3, n2) => Eu(e4, t3, n2), e4.safeDecode = (t3, n2) => Du(e4, t3, n2), e4.safeEncodeAsync = async (t3, n2) => Ou(e4, t3, n2), e4.safeDecodeAsync = async (t3, n2) => ku(e4, t3, n2), e4.refine = (t3, n2) => e4.check(dp(t3, n2)), e4.superRefine = (t3) => e4.check(fp(t3)), e4.overwrite = (t3) => e4.check(xc(t3)), e4.optional = () => G(e4), e4.exactOptional = () => Mf(e4), e4.nullable = () => Pf(e4), e4.nullish = () => G(Pf(e4)), e4.nonoptional = (t3) => Vf(e4, t3), e4.array = () => R(e4), e4.or = (t3) => V([e4, t3]), e4.and = (t3) => pf(e4, t3), e4.transform = (t3) => Yf(e4, kf(t3)), e4.default = (t3) => Lf(e4, t3), e4.prefault = (t3) => zf(e4, t3), e4.catch = (t3) => Gf(e4, t3), e4.pipe = (t3) => Yf(e4, t3), e4.readonly = () => $f(e4), e4.describe = (t3) => {
4940
4940
  let n2 = e4.clone();
4941
- return es.add(n2, { description: t3 }), n2;
4941
+ return D.add(n2, { description: t3 }), n2;
4942
4942
  }, Object.defineProperty(e4, "description", { get() {
4943
4943
  var t3;
4944
- return (t3 = es.get(e4)) == null ? void 0 : t3.description;
4944
+ return (t3 = D.get(e4)) == null ? void 0 : t3.description;
4945
4945
  }, configurable: true }), e4.meta = (...t3) => {
4946
- if (t3.length === 0) return es.get(e4);
4946
+ if (t3.length === 0) return D.get(e4);
4947
4947
  let n2 = e4.clone();
4948
- return es.add(n2, t3[0]), n2;
4949
- }, e4.isOptional = () => e4.safeParse(void 0).success, e4.isNullable = () => e4.safeParse(null).success, e4.apply = (t3) => t3(e4), e4)), Mu = c("_ZodString", (e4, t2) => {
4948
+ return D.add(n2, t3[0]), n2;
4949
+ }, e4.isOptional = () => e4.safeParse(void 0).success, e4.isNullable = () => e4.safeParse(null).success, e4.apply = (t3) => t3(e4), e4)), ju = c("_ZodString", (e4, t2) => {
4950
4950
  var n2, r2, i2;
4951
- mr.init(e4, t2), j.init(e4, t2), e4._zod.processJSONSchema = (t3, n3, r3) => pl(e4, t3, n3, r3);
4951
+ mr.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n3, r3) => fl(e4, t3, n3, r3);
4952
4952
  let a2 = e4._zod.bag;
4953
- e4.format = (n2 = a2.format) == null ? null : n2, e4.minLength = (r2 = a2.minimum) == null ? null : r2, e4.maxLength = (i2 = a2.maximum) == null ? null : i2, e4.regex = (...t3) => e4.check(mc(...t3)), e4.includes = (...t3) => e4.check(_c(...t3)), e4.startsWith = (...t3) => e4.check(vc(...t3)), e4.endsWith = (...t3) => e4.check(yc(...t3)), e4.min = (...t3) => e4.check(fc(...t3)), e4.max = (...t3) => e4.check(dc(...t3)), e4.length = (...t3) => e4.check(pc(...t3)), e4.nonempty = (...t3) => e4.check(fc(1, ...t3)), e4.lowercase = (t3) => e4.check(hc(t3)), e4.uppercase = (t3) => e4.check(gc(t3)), e4.trim = () => e4.check(wc()), e4.normalize = (...t3) => e4.check(Cc(...t3)), e4.toLowerCase = () => e4.check(Tc()), e4.toUpperCase = () => e4.check(Ec()), e4.slugify = () => e4.check(Dc());
4954
- }), Nu = c("ZodString", (e4, t2) => {
4955
- mr.init(e4, t2), Mu.init(e4, t2), e4.email = (t3) => e4.check(rs(Pu, t3)), e4.url = (t3) => e4.check(ls(Uu, t3)), e4.jwt = (t3) => e4.check(Ts(Sd, t3)), e4.emoji = (t3) => e4.check(us(Ku, t3)), e4.guid = (t3) => e4.check(is(Iu, t3)), e4.uuid = (t3) => e4.check(as(Ru, t3)), e4.uuidv4 = (t3) => e4.check(os(Ru, t3)), e4.uuidv6 = (t3) => e4.check(ss(Ru, t3)), e4.uuidv7 = (t3) => e4.check(cs(Ru, t3)), e4.nanoid = (t3) => e4.check(ds(Ju, t3)), e4.guid = (t3) => e4.check(is(Iu, t3)), e4.cuid = (t3) => e4.check(fs(Xu, t3)), e4.cuid2 = (t3) => e4.check(ps(Qu, t3)), e4.ulid = (t3) => e4.check(ms(ed, t3)), e4.base64 = (t3) => e4.check(Ss(gd, t3)), e4.base64url = (t3) => e4.check(Cs(vd, t3)), e4.xid = (t3) => e4.check(hs(nd, t3)), e4.ksuid = (t3) => e4.check(gs(id, t3)), e4.ipv4 = (t3) => e4.check(_s(od, t3)), e4.ipv6 = (t3) => e4.check(vs(ud, t3)), e4.cidrv4 = (t3) => e4.check(bs(fd, t3)), e4.cidrv6 = (t3) => e4.check(xs(md, t3)), e4.e164 = (t3) => e4.check(ws(bd, t3)), e4.datetime = (t3) => e4.check(uu(t3)), e4.date = (t3) => e4.check(fu(t3)), e4.time = (t3) => e4.check(mu(t3)), e4.duration = (t3) => e4.check(gu(t3));
4953
+ e4.format = (n2 = a2.format) == null ? null : n2, e4.minLength = (r2 = a2.minimum) == null ? null : r2, e4.maxLength = (i2 = a2.maximum) == null ? null : i2, e4.regex = (...t3) => e4.check(pc(...t3)), e4.includes = (...t3) => e4.check(gc(...t3)), e4.startsWith = (...t3) => e4.check(_c(...t3)), e4.endsWith = (...t3) => e4.check(vc(...t3)), e4.min = (...t3) => e4.check(dc(...t3)), e4.max = (...t3) => e4.check(uc(...t3)), e4.length = (...t3) => e4.check(fc(...t3)), e4.nonempty = (...t3) => e4.check(dc(1, ...t3)), e4.lowercase = (t3) => e4.check(mc(t3)), e4.uppercase = (t3) => e4.check(hc(t3)), e4.trim = () => e4.check(Cc()), e4.normalize = (...t3) => e4.check(Sc(...t3)), e4.toLowerCase = () => e4.check(wc()), e4.toUpperCase = () => e4.check(Tc()), e4.slugify = () => e4.check(Ec());
4954
+ }), Mu = c("ZodString", (e4, t2) => {
4955
+ mr.init(e4, t2), ju.init(e4, t2), e4.email = (t3) => e4.check(ns(Nu, t3)), e4.url = (t3) => e4.check(cs(Hu, t3)), e4.jwt = (t3) => e4.check(ws(xd, t3)), e4.emoji = (t3) => e4.check(ls(Gu, t3)), e4.guid = (t3) => e4.check(rs(Fu, t3)), e4.uuid = (t3) => e4.check(is(Lu, t3)), e4.uuidv4 = (t3) => e4.check(as(Lu, t3)), e4.uuidv6 = (t3) => e4.check(os(Lu, t3)), e4.uuidv7 = (t3) => e4.check(ss(Lu, t3)), e4.nanoid = (t3) => e4.check(us(qu, t3)), e4.guid = (t3) => e4.check(rs(Fu, t3)), e4.cuid = (t3) => e4.check(ds(Yu, t3)), e4.cuid2 = (t3) => e4.check(fs(Zu, t3)), e4.ulid = (t3) => e4.check(ps($u, t3)), e4.base64 = (t3) => e4.check(xs(hd, t3)), e4.base64url = (t3) => e4.check(Ss(_d, t3)), e4.xid = (t3) => e4.check(ms(td, t3)), e4.ksuid = (t3) => e4.check(hs(rd, t3)), e4.ipv4 = (t3) => e4.check(gs(ad, t3)), e4.ipv6 = (t3) => e4.check(_s(ld, t3)), e4.cidrv4 = (t3) => e4.check(ys(dd, t3)), e4.cidrv6 = (t3) => e4.check(bs(pd, t3)), e4.e164 = (t3) => e4.check(Cs(yd, t3)), e4.datetime = (t3) => e4.check(lu(t3)), e4.date = (t3) => e4.check(du(t3)), e4.time = (t3) => e4.check(pu(t3)), e4.duration = (t3) => e4.check(hu(t3));
4956
4956
  });
4957
- function M(e4) {
4958
- return ts(Nu, e4);
4957
+ function N(e4) {
4958
+ return es(Mu, e4);
4959
4959
  }
4960
- var N = c("ZodStringFormat", (e4, t2) => {
4961
- E.init(e4, t2), Mu.init(e4, t2);
4962
- }), Pu = c("ZodEmail", (e4, t2) => {
4963
- _r.init(e4, t2), N.init(e4, t2);
4960
+ var P = c("ZodStringFormat", (e4, t2) => {
4961
+ E.init(e4, t2), ju.init(e4, t2);
4962
+ }), Nu = c("ZodEmail", (e4, t2) => {
4963
+ _r.init(e4, t2), P.init(e4, t2);
4964
4964
  });
4965
- function Fu(e4) {
4966
- return rs(Pu, e4);
4965
+ function Pu(e4) {
4966
+ return ns(Nu, e4);
4967
4967
  }
4968
- var Iu = c("ZodGUID", (e4, t2) => {
4969
- hr.init(e4, t2), N.init(e4, t2);
4968
+ var Fu = c("ZodGUID", (e4, t2) => {
4969
+ hr.init(e4, t2), P.init(e4, t2);
4970
4970
  });
4971
- function Lu(e4) {
4972
- return is(Iu, e4);
4971
+ function Iu(e4) {
4972
+ return rs(Fu, e4);
4973
4973
  }
4974
- var Ru = c("ZodUUID", (e4, t2) => {
4975
- gr.init(e4, t2), N.init(e4, t2);
4974
+ var Lu = c("ZodUUID", (e4, t2) => {
4975
+ gr.init(e4, t2), P.init(e4, t2);
4976
4976
  });
4977
+ function Ru(e4) {
4978
+ return is(Lu, e4);
4979
+ }
4977
4980
  function zu(e4) {
4978
- return as(Ru, e4);
4981
+ return as(Lu, e4);
4979
4982
  }
4980
4983
  function Bu(e4) {
4981
- return os(Ru, e4);
4984
+ return os(Lu, e4);
4982
4985
  }
4983
4986
  function Vu(e4) {
4984
- return ss(Ru, e4);
4985
- }
4986
- function Hu(e4) {
4987
- return cs(Ru, e4);
4987
+ return ss(Lu, e4);
4988
4988
  }
4989
- var Uu = c("ZodURL", (e4, t2) => {
4990
- vr.init(e4, t2), N.init(e4, t2);
4989
+ var Hu = c("ZodURL", (e4, t2) => {
4990
+ vr.init(e4, t2), P.init(e4, t2);
4991
4991
  });
4992
- function Wu(e4) {
4993
- return ls(Uu, e4);
4992
+ function Uu(e4) {
4993
+ return cs(Hu, e4);
4994
4994
  }
4995
- function Gu(e4) {
4996
- return ls(Uu, { protocol: /^https?$/, hostname: ln, ...x(e4) });
4995
+ function Wu(e4) {
4996
+ return cs(Hu, { protocol: /^https?$/, hostname: ln, ...x(e4) });
4997
4997
  }
4998
- var Ku = c("ZodEmoji", (e4, t2) => {
4999
- yr.init(e4, t2), N.init(e4, t2);
4998
+ var Gu = c("ZodEmoji", (e4, t2) => {
4999
+ yr.init(e4, t2), P.init(e4, t2);
5000
5000
  });
5001
- function qu(e4) {
5002
- return us(Ku, e4);
5001
+ function Ku(e4) {
5002
+ return ls(Gu, e4);
5003
5003
  }
5004
- var Ju = c("ZodNanoID", (e4, t2) => {
5005
- br.init(e4, t2), N.init(e4, t2);
5004
+ var qu = c("ZodNanoID", (e4, t2) => {
5005
+ br.init(e4, t2), P.init(e4, t2);
5006
5006
  });
5007
- function Yu(e4) {
5008
- return ds(Ju, e4);
5007
+ function Ju(e4) {
5008
+ return us(qu, e4);
5009
5009
  }
5010
- var Xu = c("ZodCUID", (e4, t2) => {
5011
- xr.init(e4, t2), N.init(e4, t2);
5010
+ var Yu = c("ZodCUID", (e4, t2) => {
5011
+ xr.init(e4, t2), P.init(e4, t2);
5012
5012
  });
5013
- function Zu(e4) {
5014
- return fs(Xu, e4);
5013
+ function Xu(e4) {
5014
+ return ds(Yu, e4);
5015
5015
  }
5016
- var Qu = c("ZodCUID2", (e4, t2) => {
5017
- Sr.init(e4, t2), N.init(e4, t2);
5016
+ var Zu = c("ZodCUID2", (e4, t2) => {
5017
+ Sr.init(e4, t2), P.init(e4, t2);
5018
5018
  });
5019
- function $u(e4) {
5020
- return ps(Qu, e4);
5019
+ function Qu(e4) {
5020
+ return fs(Zu, e4);
5021
5021
  }
5022
- var ed = c("ZodULID", (e4, t2) => {
5023
- Cr.init(e4, t2), N.init(e4, t2);
5022
+ var $u = c("ZodULID", (e4, t2) => {
5023
+ Cr.init(e4, t2), P.init(e4, t2);
5024
5024
  });
5025
- function td(e4) {
5026
- return ms(ed, e4);
5025
+ function ed(e4) {
5026
+ return ps($u, e4);
5027
5027
  }
5028
- var nd = c("ZodXID", (e4, t2) => {
5029
- wr.init(e4, t2), N.init(e4, t2);
5028
+ var td = c("ZodXID", (e4, t2) => {
5029
+ wr.init(e4, t2), P.init(e4, t2);
5030
5030
  });
5031
- function rd(e4) {
5032
- return hs(nd, e4);
5031
+ function nd(e4) {
5032
+ return ms(td, e4);
5033
5033
  }
5034
- var id = c("ZodKSUID", (e4, t2) => {
5035
- Tr.init(e4, t2), N.init(e4, t2);
5034
+ var rd = c("ZodKSUID", (e4, t2) => {
5035
+ Tr.init(e4, t2), P.init(e4, t2);
5036
5036
  });
5037
- function ad(e4) {
5038
- return gs(id, e4);
5037
+ function id(e4) {
5038
+ return hs(rd, e4);
5039
5039
  }
5040
- var od = c("ZodIPv4", (e4, t2) => {
5041
- Ar.init(e4, t2), N.init(e4, t2);
5040
+ var ad = c("ZodIPv4", (e4, t2) => {
5041
+ Ar.init(e4, t2), P.init(e4, t2);
5042
5042
  });
5043
- function sd(e4) {
5044
- return _s(od, e4);
5043
+ function od(e4) {
5044
+ return gs(ad, e4);
5045
5045
  }
5046
- var cd = c("ZodMAC", (e4, t2) => {
5047
- Mr.init(e4, t2), N.init(e4, t2);
5046
+ var sd = c("ZodMAC", (e4, t2) => {
5047
+ Mr.init(e4, t2), P.init(e4, t2);
5048
5048
  });
5049
- function ld(e4) {
5050
- return ys(cd, e4);
5049
+ function cd(e4) {
5050
+ return vs(sd, e4);
5051
5051
  }
5052
- var ud = c("ZodIPv6", (e4, t2) => {
5053
- jr.init(e4, t2), N.init(e4, t2);
5052
+ var ld = c("ZodIPv6", (e4, t2) => {
5053
+ jr.init(e4, t2), P.init(e4, t2);
5054
5054
  });
5055
- function dd(e4) {
5056
- return vs(ud, e4);
5055
+ function ud(e4) {
5056
+ return _s(ld, e4);
5057
5057
  }
5058
- var fd = c("ZodCIDRv4", (e4, t2) => {
5059
- Nr.init(e4, t2), N.init(e4, t2);
5058
+ var dd = c("ZodCIDRv4", (e4, t2) => {
5059
+ Nr.init(e4, t2), P.init(e4, t2);
5060
5060
  });
5061
- function pd(e4) {
5062
- return bs(fd, e4);
5061
+ function fd(e4) {
5062
+ return ys(dd, e4);
5063
5063
  }
5064
- var md = c("ZodCIDRv6", (e4, t2) => {
5065
- Pr.init(e4, t2), N.init(e4, t2);
5064
+ var pd = c("ZodCIDRv6", (e4, t2) => {
5065
+ Pr.init(e4, t2), P.init(e4, t2);
5066
5066
  });
5067
- function hd(e4) {
5068
- return xs(md, e4);
5067
+ function md(e4) {
5068
+ return bs(pd, e4);
5069
5069
  }
5070
- var gd = c("ZodBase64", (e4, t2) => {
5071
- Ir.init(e4, t2), N.init(e4, t2);
5070
+ var hd = c("ZodBase64", (e4, t2) => {
5071
+ Ir.init(e4, t2), P.init(e4, t2);
5072
5072
  });
5073
- function _d(e4) {
5074
- return Ss(gd, e4);
5073
+ function gd(e4) {
5074
+ return xs(hd, e4);
5075
5075
  }
5076
- var vd = c("ZodBase64URL", (e4, t2) => {
5077
- Rr.init(e4, t2), N.init(e4, t2);
5076
+ var _d = c("ZodBase64URL", (e4, t2) => {
5077
+ Rr.init(e4, t2), P.init(e4, t2);
5078
5078
  });
5079
- function yd(e4) {
5080
- return Cs(vd, e4);
5079
+ function vd(e4) {
5080
+ return Ss(_d, e4);
5081
5081
  }
5082
- var bd = c("ZodE164", (e4, t2) => {
5083
- zr.init(e4, t2), N.init(e4, t2);
5082
+ var yd = c("ZodE164", (e4, t2) => {
5083
+ zr.init(e4, t2), P.init(e4, t2);
5084
5084
  });
5085
- function xd(e4) {
5086
- return ws(bd, e4);
5085
+ function bd(e4) {
5086
+ return Cs(yd, e4);
5087
5087
  }
5088
- var Sd = c("ZodJWT", (e4, t2) => {
5089
- Vr.init(e4, t2), N.init(e4, t2);
5088
+ var xd = c("ZodJWT", (e4, t2) => {
5089
+ Vr.init(e4, t2), P.init(e4, t2);
5090
5090
  });
5091
- function Cd(e4) {
5092
- return Ts(Sd, e4);
5091
+ function Sd(e4) {
5092
+ return ws(xd, e4);
5093
5093
  }
5094
- var wd = c("ZodCustomStringFormat", (e4, t2) => {
5095
- Hr.init(e4, t2), N.init(e4, t2);
5094
+ var Cd = c("ZodCustomStringFormat", (e4, t2) => {
5095
+ Hr.init(e4, t2), P.init(e4, t2);
5096
5096
  });
5097
- function Td(e4, t2, n2 = {}) {
5098
- return ol(wd, e4, t2, n2);
5097
+ function wd(e4, t2, n2 = {}) {
5098
+ return al(Cd, e4, t2, n2);
5099
5099
  }
5100
- function Ed(e4) {
5101
- return ol(wd, "hostname", cn, e4);
5100
+ function Td(e4) {
5101
+ return al(Cd, "hostname", cn, e4);
5102
5102
  }
5103
- function Dd(e4) {
5104
- return ol(wd, "hex", Tn, e4);
5103
+ function Ed(e4) {
5104
+ return al(Cd, "hex", Tn, e4);
5105
5105
  }
5106
- function Od(e4, t2) {
5106
+ function Dd(e4, t2) {
5107
5107
  var n2;
5108
5108
  let r2 = "".concat(e4, "_").concat((n2 = t2 == null ? void 0 : t2.enc) == null ? "hex" : n2), i2 = Mt[r2];
5109
5109
  if (!i2) throw Error("Unrecognized hash format: ".concat(r2));
5110
- return ol(wd, r2, i2, t2);
5110
+ return al(Cd, r2, i2, t2);
5111
5111
  }
5112
- var kd = c("ZodNumber", (e4, t2) => {
5112
+ var Od = c("ZodNumber", (e4, t2) => {
5113
5113
  var n2, r2, i2, a2, o2, s2, c2, l2, u2;
5114
- Ur.init(e4, t2), j.init(e4, t2), e4._zod.processJSONSchema = (t3, n3, r3) => ml(e4, t3, n3, r3), e4.gt = (t3, n3) => e4.check(nc(t3, n3)), e4.gte = (t3, n3) => e4.check(D(t3, n3)), e4.min = (t3, n3) => e4.check(D(t3, n3)), e4.lt = (t3, n3) => e4.check(ec(t3, n3)), e4.lte = (t3, n3) => e4.check(tc(t3, n3)), e4.max = (t3, n3) => e4.check(tc(t3, n3)), e4.int = (t3) => e4.check(jd(t3)), e4.safe = (t3) => e4.check(jd(t3)), e4.positive = (t3) => e4.check(nc(0, t3)), e4.nonnegative = (t3) => e4.check(D(0, t3)), e4.negative = (t3) => e4.check(ec(0, t3)), e4.nonpositive = (t3) => e4.check(tc(0, t3)), e4.multipleOf = (t3, n3) => e4.check(sc(t3, n3)), e4.step = (t3, n3) => e4.check(sc(t3, n3)), e4.finite = () => e4;
5114
+ Ur.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n3, r3) => pl(e4, t3, n3, r3), e4.gt = (t3, n3) => e4.check(tc(t3, n3)), e4.gte = (t3, n3) => e4.check(O(t3, n3)), e4.min = (t3, n3) => e4.check(O(t3, n3)), e4.lt = (t3, n3) => e4.check($s(t3, n3)), e4.lte = (t3, n3) => e4.check(ec(t3, n3)), e4.max = (t3, n3) => e4.check(ec(t3, n3)), e4.int = (t3) => e4.check(Ad(t3)), e4.safe = (t3) => e4.check(Ad(t3)), e4.positive = (t3) => e4.check(tc(0, t3)), e4.nonnegative = (t3) => e4.check(O(0, t3)), e4.negative = (t3) => e4.check($s(0, t3)), e4.nonpositive = (t3) => e4.check(ec(0, t3)), e4.multipleOf = (t3, n3) => e4.check(oc(t3, n3)), e4.step = (t3, n3) => e4.check(oc(t3, n3)), e4.finite = () => e4;
5115
5115
  let d2 = e4._zod.bag;
5116
5116
  e4.minValue = (n2 = Math.max((r2 = d2.minimum) == null ? -1 / 0 : r2, (i2 = d2.exclusiveMinimum) == null ? -1 / 0 : i2)) == null ? null : n2, e4.maxValue = (a2 = Math.min((o2 = d2.maximum) == null ? 1 / 0 : o2, (s2 = d2.exclusiveMaximum) == null ? 1 / 0 : s2)) == null ? null : a2, e4.isInt = ((c2 = d2.format) == null ? "" : c2).includes("int") || Number.isSafeInteger((l2 = d2.multipleOf) == null ? 0.5 : l2), e4.isFinite = true, e4.format = (u2 = d2.format) == null ? null : u2;
5117
5117
  });
5118
- function P(e4) {
5119
- return js(kd, e4);
5118
+ function F(e4) {
5119
+ return As(Od, e4);
5120
5120
  }
5121
- var Ad = c("ZodNumberFormat", (e4, t2) => {
5122
- Wr.init(e4, t2), kd.init(e4, t2);
5121
+ var kd = c("ZodNumberFormat", (e4, t2) => {
5122
+ Wr.init(e4, t2), Od.init(e4, t2);
5123
5123
  });
5124
+ function Ad(e4) {
5125
+ return Ms(kd, e4);
5126
+ }
5124
5127
  function jd(e4) {
5125
- return Ns(Ad, e4);
5128
+ return Ns(kd, e4);
5126
5129
  }
5127
5130
  function Md(e4) {
5128
- return Ps(Ad, e4);
5131
+ return Ps(kd, e4);
5129
5132
  }
5130
5133
  function Nd(e4) {
5131
- return Fs(Ad, e4);
5134
+ return Fs(kd, e4);
5132
5135
  }
5133
5136
  function Pd(e4) {
5134
- return Is(Ad, e4);
5135
- }
5136
- function Fd(e4) {
5137
- return Ls(Ad, e4);
5137
+ return Is(kd, e4);
5138
5138
  }
5139
- var Id = c("ZodBoolean", (e4, t2) => {
5140
- Gr.init(e4, t2), j.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => hl(e4, t3, n2, r2);
5139
+ var Fd = c("ZodBoolean", (e4, t2) => {
5140
+ Gr.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => ml(e4, t3, n2, r2);
5141
5141
  });
5142
- function F(e4) {
5143
- return Rs(Id, e4);
5142
+ function I(e4) {
5143
+ return Ls(Fd, e4);
5144
5144
  }
5145
- var Ld = c("ZodBigInt", (e4, t2) => {
5145
+ var Id = c("ZodBigInt", (e4, t2) => {
5146
5146
  var n2, r2, i2;
5147
- Kr.init(e4, t2), j.init(e4, t2), e4._zod.processJSONSchema = (t3, n3, r3) => gl(e4, t3, n3, r3), e4.gte = (t3, n3) => e4.check(D(t3, n3)), e4.min = (t3, n3) => e4.check(D(t3, n3)), e4.gt = (t3, n3) => e4.check(nc(t3, n3)), e4.gte = (t3, n3) => e4.check(D(t3, n3)), e4.min = (t3, n3) => e4.check(D(t3, n3)), e4.lt = (t3, n3) => e4.check(ec(t3, n3)), e4.lte = (t3, n3) => e4.check(tc(t3, n3)), e4.max = (t3, n3) => e4.check(tc(t3, n3)), e4.positive = (t3) => e4.check(nc(BigInt(0), t3)), e4.negative = (t3) => e4.check(ec(BigInt(0), t3)), e4.nonpositive = (t3) => e4.check(tc(BigInt(0), t3)), e4.nonnegative = (t3) => e4.check(D(BigInt(0), t3)), e4.multipleOf = (t3, n3) => e4.check(sc(t3, n3));
5147
+ Kr.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n3, r3) => hl(e4, t3, n3, r3), e4.gte = (t3, n3) => e4.check(O(t3, n3)), e4.min = (t3, n3) => e4.check(O(t3, n3)), e4.gt = (t3, n3) => e4.check(tc(t3, n3)), e4.gte = (t3, n3) => e4.check(O(t3, n3)), e4.min = (t3, n3) => e4.check(O(t3, n3)), e4.lt = (t3, n3) => e4.check($s(t3, n3)), e4.lte = (t3, n3) => e4.check(ec(t3, n3)), e4.max = (t3, n3) => e4.check(ec(t3, n3)), e4.positive = (t3) => e4.check(tc(BigInt(0), t3)), e4.negative = (t3) => e4.check($s(BigInt(0), t3)), e4.nonpositive = (t3) => e4.check(ec(BigInt(0), t3)), e4.nonnegative = (t3) => e4.check(O(BigInt(0), t3)), e4.multipleOf = (t3, n3) => e4.check(oc(t3, n3));
5148
5148
  let a2 = e4._zod.bag;
5149
5149
  e4.minValue = (n2 = a2.minimum) == null ? null : n2, e4.maxValue = (r2 = a2.maximum) == null ? null : r2, e4.format = (i2 = a2.format) == null ? null : i2;
5150
5150
  });
5151
- function Rd(e4) {
5152
- return Bs(Ld, e4);
5151
+ function Ld(e4) {
5152
+ return zs(Id, e4);
5153
5153
  }
5154
- var zd = c("ZodBigIntFormat", (e4, t2) => {
5155
- qr.init(e4, t2), Ld.init(e4, t2);
5154
+ var Rd = c("ZodBigIntFormat", (e4, t2) => {
5155
+ qr.init(e4, t2), Id.init(e4, t2);
5156
5156
  });
5157
- function Bd(e4) {
5158
- return Hs(zd, e4);
5157
+ function zd(e4) {
5158
+ return Vs(Rd, e4);
5159
5159
  }
5160
- function Vd(e4) {
5161
- return Us(zd, e4);
5160
+ function Bd(e4) {
5161
+ return Hs(Rd, e4);
5162
5162
  }
5163
- var Hd = c("ZodSymbol", (e4, t2) => {
5164
- Jr.init(e4, t2), j.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => _l(e4, t3, n2, r2);
5163
+ var Vd = c("ZodSymbol", (e4, t2) => {
5164
+ Jr.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => gl(e4, t3, n2, r2);
5165
5165
  });
5166
- function Ud(e4) {
5167
- return Ws(Hd, e4);
5166
+ function Hd(e4) {
5167
+ return Us(Vd, e4);
5168
5168
  }
5169
- var Wd = c("ZodUndefined", (e4, t2) => {
5170
- Yr.init(e4, t2), j.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => yl(e4, t3, n2, r2);
5169
+ var Ud = c("ZodUndefined", (e4, t2) => {
5170
+ Yr.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => vl(e4, t3, n2, r2);
5171
5171
  });
5172
- function Gd(e4) {
5173
- return Gs(Wd, e4);
5172
+ function Wd(e4) {
5173
+ return Ws(Ud, e4);
5174
5174
  }
5175
- var Kd = c("ZodNull", (e4, t2) => {
5176
- Xr.init(e4, t2), j.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => vl(e4, t3, n2, r2);
5175
+ var Gd = c("ZodNull", (e4, t2) => {
5176
+ Xr.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => _l(e4, t3, n2, r2);
5177
5177
  });
5178
- function qd(e4) {
5179
- return Ks(Kd, e4);
5178
+ function Kd(e4) {
5179
+ return Gs(Gd, e4);
5180
5180
  }
5181
- var Jd = c("ZodAny", (e4, t2) => {
5182
- Zr.init(e4, t2), j.init(e4, t2), e4._zod.processJSONSchema = (e5, t3, n2) => void 0;
5181
+ var qd = c("ZodAny", (e4, t2) => {
5182
+ Zr.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (e5, t3, n2) => void 0;
5183
5183
  });
5184
- function Yd() {
5185
- return qs(Jd);
5184
+ function Jd() {
5185
+ return Ks(qd);
5186
5186
  }
5187
- var Xd = c("ZodUnknown", (e4, t2) => {
5188
- Qr.init(e4, t2), j.init(e4, t2), e4._zod.processJSONSchema = (e5, t3, n2) => void 0;
5187
+ var Yd = c("ZodUnknown", (e4, t2) => {
5188
+ Qr.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (e5, t3, n2) => void 0;
5189
5189
  });
5190
- function I() {
5191
- return Js(Xd);
5190
+ function L() {
5191
+ return qs(Yd);
5192
5192
  }
5193
- var Zd = c("ZodNever", (e4, t2) => {
5194
- $r.init(e4, t2), j.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => xl(e4, t3, n2, r2);
5193
+ var Xd = c("ZodNever", (e4, t2) => {
5194
+ $r.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => bl(e4, t3, n2, r2);
5195
5195
  });
5196
- function Qd(e4) {
5197
- return Ys(Zd, e4);
5196
+ function Zd(e4) {
5197
+ return Js(Xd, e4);
5198
5198
  }
5199
- var $d = c("ZodVoid", (e4, t2) => {
5200
- ei.init(e4, t2), j.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => bl(e4, t3, n2, r2);
5199
+ var Qd = c("ZodVoid", (e4, t2) => {
5200
+ ei.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => yl(e4, t3, n2, r2);
5201
5201
  });
5202
- function ef(e4) {
5203
- return Xs($d, e4);
5202
+ function $d(e4) {
5203
+ return Ys(Qd, e4);
5204
5204
  }
5205
- var tf = c("ZodDate", (e4, t2) => {
5206
- ti.init(e4, t2), j.init(e4, t2), e4._zod.processJSONSchema = (t3, n3, r2) => wl(e4, t3, n3, r2), e4.min = (t3, n3) => e4.check(D(t3, n3)), e4.max = (t3, n3) => e4.check(tc(t3, n3));
5205
+ var ef = c("ZodDate", (e4, t2) => {
5206
+ ti.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n3, r2) => Cl(e4, t3, n3, r2), e4.min = (t3, n3) => e4.check(O(t3, n3)), e4.max = (t3, n3) => e4.check(ec(t3, n3));
5207
5207
  let n2 = e4._zod.bag;
5208
5208
  e4.minDate = n2.minimum ? new Date(n2.minimum) : null, e4.maxDate = n2.maximum ? new Date(n2.maximum) : null;
5209
5209
  });
5210
- function nf(e4) {
5211
- return Zs(tf, e4);
5210
+ function tf(e4) {
5211
+ return Xs(ef, e4);
5212
5212
  }
5213
- var rf = c("ZodArray", (e4, t2) => {
5214
- ri.init(e4, t2), j.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Il(e4, t3, n2, r2), e4.element = t2.element, e4.min = (t3, n2) => e4.check(fc(t3, n2)), e4.nonempty = (t3) => e4.check(fc(1, t3)), e4.max = (t3, n2) => e4.check(dc(t3, n2)), e4.length = (t3, n2) => e4.check(pc(t3, n2)), e4.unwrap = () => e4.element;
5213
+ var nf = c("ZodArray", (e4, t2) => {
5214
+ ri.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Fl(e4, t3, n2, r2), e4.element = t2.element, e4.min = (t3, n2) => e4.check(dc(t3, n2)), e4.nonempty = (t3) => e4.check(dc(1, t3)), e4.max = (t3, n2) => e4.check(uc(t3, n2)), e4.length = (t3, n2) => e4.check(fc(t3, n2)), e4.unwrap = () => e4.element;
5215
5215
  });
5216
- function L(e4, t2) {
5217
- return Oc(rf, e4, t2);
5216
+ function R(e4, t2) {
5217
+ return Dc(nf, e4, t2);
5218
5218
  }
5219
- function af(e4) {
5219
+ function rf(e4) {
5220
5220
  let t2 = e4._zod.def.shape;
5221
- return H(Object.keys(t2));
5221
+ return U(Object.keys(t2));
5222
5222
  }
5223
- var of = c("ZodObject", (e4, t2) => {
5224
- ci.init(e4, t2), j.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Ll(e4, t3, n2, r2), b(e4, "shape", () => t2.shape), e4.keyof = () => H(Object.keys(e4._zod.def.shape)), e4.catchall = (t3) => e4.clone({ ...e4._zod.def, catchall: t3 }), e4.passthrough = () => e4.clone({ ...e4._zod.def, catchall: I() }), e4.loose = () => e4.clone({ ...e4._zod.def, catchall: I() }), e4.strict = () => e4.clone({ ...e4._zod.def, catchall: Qd() }), e4.strip = () => e4.clone({ ...e4._zod.def, catchall: void 0 }), e4.extend = (t3) => Pe(e4, t3), e4.safeExtend = (t3) => Fe(e4, t3), e4.merge = (t3) => Ie(e4, t3), e4.pick = (t3) => Me(e4, t3), e4.omit = (t3) => Ne(e4, t3), e4.partial = (...t3) => Le(jf, e4, t3[0]), e4.required = (...t3) => Re(Vf, e4, t3[0]);
5223
+ var af = c("ZodObject", (e4, t2) => {
5224
+ ci.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Il(e4, t3, n2, r2), b(e4, "shape", () => t2.shape), e4.keyof = () => U(Object.keys(e4._zod.def.shape)), e4.catchall = (t3) => e4.clone({ ...e4._zod.def, catchall: t3 }), e4.passthrough = () => e4.clone({ ...e4._zod.def, catchall: L() }), e4.loose = () => e4.clone({ ...e4._zod.def, catchall: L() }), e4.strict = () => e4.clone({ ...e4._zod.def, catchall: Zd() }), e4.strip = () => e4.clone({ ...e4._zod.def, catchall: void 0 }), e4.extend = (t3) => Pe(e4, t3), e4.safeExtend = (t3) => Fe(e4, t3), e4.merge = (t3) => Ie(e4, t3), e4.pick = (t3) => Me(e4, t3), e4.omit = (t3) => Ne(e4, t3), e4.partial = (...t3) => Le(Af, e4, t3[0]), e4.required = (...t3) => Re(Bf, e4, t3[0]);
5225
5225
  });
5226
- function R(e4, t2) {
5227
- return new of({ type: "object", shape: e4 == null ? {} : e4, ...x(t2) });
5226
+ function z(e4, t2) {
5227
+ return new af({ type: "object", shape: e4 == null ? {} : e4, ...x(t2) });
5228
5228
  }
5229
- function sf(e4, t2) {
5230
- return new of({ type: "object", shape: e4, catchall: Qd(), ...x(t2) });
5229
+ function of(e4, t2) {
5230
+ return new af({ type: "object", shape: e4, catchall: Zd(), ...x(t2) });
5231
5231
  }
5232
- function z(e4, t2) {
5233
- return new of({ type: "object", shape: e4, catchall: I(), ...x(t2) });
5232
+ function B(e4, t2) {
5233
+ return new af({ type: "object", shape: e4, catchall: L(), ...x(t2) });
5234
5234
  }
5235
- var cf = c("ZodUnion", (e4, t2) => {
5236
- ui.init(e4, t2), j.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Rl(e4, t3, n2, r2), e4.options = t2.options;
5235
+ var sf = c("ZodUnion", (e4, t2) => {
5236
+ ui.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Ll(e4, t3, n2, r2), e4.options = t2.options;
5237
5237
  });
5238
- function B(e4, t2) {
5239
- return new cf({ type: "union", options: e4, ...x(t2) });
5238
+ function V(e4, t2) {
5239
+ return new sf({ type: "union", options: e4, ...x(t2) });
5240
5240
  }
5241
- var lf = c("ZodXor", (e4, t2) => {
5242
- cf.init(e4, t2), fi.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Rl(e4, t3, n2, r2), e4.options = t2.options;
5241
+ var cf = c("ZodXor", (e4, t2) => {
5242
+ sf.init(e4, t2), fi.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Ll(e4, t3, n2, r2), e4.options = t2.options;
5243
5243
  });
5244
- function uf(e4, t2) {
5245
- return new lf({ type: "union", options: e4, inclusive: false, ...x(t2) });
5244
+ function lf(e4, t2) {
5245
+ return new cf({ type: "union", options: e4, inclusive: false, ...x(t2) });
5246
5246
  }
5247
- var df = c("ZodDiscriminatedUnion", (e4, t2) => {
5248
- cf.init(e4, t2), pi.init(e4, t2);
5247
+ var uf = c("ZodDiscriminatedUnion", (e4, t2) => {
5248
+ sf.init(e4, t2), pi.init(e4, t2);
5249
5249
  });
5250
- function ff(e4, t2, n2) {
5251
- return new df({ type: "union", options: t2, discriminator: e4, ...x(n2) });
5250
+ function df(e4, t2, n2) {
5251
+ return new uf({ type: "union", options: t2, discriminator: e4, ...x(n2) });
5252
5252
  }
5253
- var pf = c("ZodIntersection", (e4, t2) => {
5254
- mi.init(e4, t2), j.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => zl(e4, t3, n2, r2);
5253
+ var ff = c("ZodIntersection", (e4, t2) => {
5254
+ mi.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Rl(e4, t3, n2, r2);
5255
5255
  });
5256
- function mf(e4, t2) {
5257
- return new pf({ type: "intersection", left: e4, right: t2 });
5256
+ function pf(e4, t2) {
5257
+ return new ff({ type: "intersection", left: e4, right: t2 });
5258
5258
  }
5259
- var hf = c("ZodTuple", (e4, t2) => {
5260
- _i.init(e4, t2), j.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Bl(e4, t3, n2, r2), e4.rest = (t3) => e4.clone({ ...e4._zod.def, rest: t3 });
5259
+ var mf = c("ZodTuple", (e4, t2) => {
5260
+ _i.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => zl(e4, t3, n2, r2), e4.rest = (t3) => e4.clone({ ...e4._zod.def, rest: t3 });
5261
5261
  });
5262
- function gf(e4, t2, n2) {
5262
+ function hf(e4, t2, n2) {
5263
5263
  let r2 = t2 instanceof T;
5264
- return new hf({ type: "tuple", items: e4, rest: r2 ? t2 : null, ...x(r2 ? n2 : t2) });
5264
+ return new mf({ type: "tuple", items: e4, rest: r2 ? t2 : null, ...x(r2 ? n2 : t2) });
5265
5265
  }
5266
- var _f = c("ZodRecord", (e4, t2) => {
5267
- yi.init(e4, t2), j.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Vl(e4, t3, n2, r2), e4.keyType = t2.keyType, e4.valueType = t2.valueType;
5266
+ var gf = c("ZodRecord", (e4, t2) => {
5267
+ yi.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Bl(e4, t3, n2, r2), e4.keyType = t2.keyType, e4.valueType = t2.valueType;
5268
5268
  });
5269
- function V(e4, t2, n2) {
5270
- return new _f({ type: "record", keyType: e4, valueType: t2, ...x(n2) });
5269
+ function H(e4, t2, n2) {
5270
+ return new gf({ type: "record", keyType: e4, valueType: t2, ...x(n2) });
5271
5271
  }
5272
- function vf(e4, t2, n2) {
5272
+ function _f(e4, t2, n2) {
5273
5273
  let r2 = De(e4);
5274
- return r2._zod.values = void 0, new _f({ type: "record", keyType: r2, valueType: t2, ...x(n2) });
5274
+ return r2._zod.values = void 0, new gf({ type: "record", keyType: r2, valueType: t2, ...x(n2) });
5275
5275
  }
5276
- function yf(e4, t2, n2) {
5277
- return new _f({ type: "record", keyType: e4, valueType: t2, mode: "loose", ...x(n2) });
5276
+ function vf(e4, t2, n2) {
5277
+ return new gf({ type: "record", keyType: e4, valueType: t2, mode: "loose", ...x(n2) });
5278
5278
  }
5279
- var bf = c("ZodMap", (e4, t2) => {
5280
- bi.init(e4, t2), j.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Pl(e4, t3, n2, r2), e4.keyType = t2.keyType, e4.valueType = t2.valueType, e4.min = (...t3) => e4.check(lc(...t3)), e4.nonempty = (t3) => e4.check(lc(1, t3)), e4.max = (...t3) => e4.check(cc(...t3)), e4.size = (...t3) => e4.check(uc(...t3));
5279
+ var yf = c("ZodMap", (e4, t2) => {
5280
+ bi.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Nl(e4, t3, n2, r2), e4.keyType = t2.keyType, e4.valueType = t2.valueType, e4.min = (...t3) => e4.check(cc(...t3)), e4.nonempty = (t3) => e4.check(cc(1, t3)), e4.max = (...t3) => e4.check(sc(...t3)), e4.size = (...t3) => e4.check(lc(...t3));
5281
5281
  });
5282
- function xf(e4, t2, n2) {
5283
- return new bf({ type: "map", keyType: e4, valueType: t2, ...x(n2) });
5282
+ function bf(e4, t2, n2) {
5283
+ return new yf({ type: "map", keyType: e4, valueType: t2, ...x(n2) });
5284
5284
  }
5285
- var Sf = c("ZodSet", (e4, t2) => {
5286
- Si.init(e4, t2), j.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Fl(e4, t3, n2, r2), e4.min = (...t3) => e4.check(lc(...t3)), e4.nonempty = (t3) => e4.check(lc(1, t3)), e4.max = (...t3) => e4.check(cc(...t3)), e4.size = (...t3) => e4.check(uc(...t3));
5285
+ var xf = c("ZodSet", (e4, t2) => {
5286
+ Si.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Pl(e4, t3, n2, r2), e4.min = (...t3) => e4.check(cc(...t3)), e4.nonempty = (t3) => e4.check(cc(1, t3)), e4.max = (...t3) => e4.check(sc(...t3)), e4.size = (...t3) => e4.check(lc(...t3));
5287
5287
  });
5288
- function Cf(e4, t2) {
5289
- return new Sf({ type: "set", valueType: e4, ...x(t2) });
5288
+ function Sf(e4, t2) {
5289
+ return new xf({ type: "set", valueType: e4, ...x(t2) });
5290
5290
  }
5291
- var wf = c("ZodEnum", (e4, t2) => {
5292
- wi.init(e4, t2), j.init(e4, t2), e4._zod.processJSONSchema = (t3, n3, r2) => Tl(e4, t3, n3, r2), e4.enum = t2.entries, e4.options = Object.values(t2.entries);
5291
+ var Cf = c("ZodEnum", (e4, t2) => {
5292
+ wi.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n3, r2) => wl(e4, t3, n3, r2), e4.enum = t2.entries, e4.options = Object.values(t2.entries);
5293
5293
  let n2 = new Set(Object.keys(t2.entries));
5294
5294
  e4.extract = (e5, r2) => {
5295
5295
  let i2 = {};
5296
5296
  for (let r3 of e5) if (n2.has(r3)) i2[r3] = t2.entries[r3];
5297
5297
  else throw Error("Key ".concat(r3, " not found in enum"));
5298
- return new wf({ ...t2, checks: [], ...x(r2), entries: i2 });
5298
+ return new Cf({ ...t2, checks: [], ...x(r2), entries: i2 });
5299
5299
  }, e4.exclude = (e5, r2) => {
5300
5300
  let i2 = { ...t2.entries };
5301
5301
  for (let t3 of e5) if (n2.has(t3)) delete i2[t3];
5302
5302
  else throw Error("Key ".concat(t3, " not found in enum"));
5303
- return new wf({ ...t2, checks: [], ...x(r2), entries: i2 });
5303
+ return new Cf({ ...t2, checks: [], ...x(r2), entries: i2 });
5304
5304
  };
5305
5305
  });
5306
- function H(e4, t2) {
5307
- return new wf({ type: "enum", entries: Array.isArray(e4) ? Object.fromEntries(e4.map((e5) => [e5, e5])) : e4, ...x(t2) });
5306
+ function U(e4, t2) {
5307
+ return new Cf({ type: "enum", entries: Array.isArray(e4) ? Object.fromEntries(e4.map((e5) => [e5, e5])) : e4, ...x(t2) });
5308
5308
  }
5309
- function Tf(e4, t2) {
5310
- return new wf({ type: "enum", entries: e4, ...x(t2) });
5309
+ function wf(e4, t2) {
5310
+ return new Cf({ type: "enum", entries: e4, ...x(t2) });
5311
5311
  }
5312
- var Ef = c("ZodLiteral", (e4, t2) => {
5313
- Ti.init(e4, t2), j.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => El(e4, t3, n2, r2), e4.values = new Set(t2.values), Object.defineProperty(e4, "value", { get() {
5312
+ var Tf = c("ZodLiteral", (e4, t2) => {
5313
+ Ti.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Tl(e4, t3, n2, r2), e4.values = new Set(t2.values), Object.defineProperty(e4, "value", { get() {
5314
5314
  if (t2.values.length > 1) throw Error("This schema contains multiple valid literal values. Use `.values` instead.");
5315
5315
  return t2.values[0];
5316
5316
  } });
5317
5317
  });
5318
- function U(e4, t2) {
5319
- return new Ef({ type: "literal", values: Array.isArray(e4) ? e4 : [e4], ...x(t2) });
5318
+ function W(e4, t2) {
5319
+ return new Tf({ type: "literal", values: Array.isArray(e4) ? e4 : [e4], ...x(t2) });
5320
5320
  }
5321
- var Df = c("ZodFile", (e4, t2) => {
5322
- Ei.init(e4, t2), j.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => kl(e4, t3, n2, r2), e4.min = (t3, n2) => e4.check(lc(t3, n2)), e4.max = (t3, n2) => e4.check(cc(t3, n2)), e4.mime = (t3, n2) => e4.check(xc(Array.isArray(t3) ? t3 : [t3], n2));
5321
+ var Ef = c("ZodFile", (e4, t2) => {
5322
+ Ei.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Ol(e4, t3, n2, r2), e4.min = (t3, n2) => e4.check(cc(t3, n2)), e4.max = (t3, n2) => e4.check(sc(t3, n2)), e4.mime = (t3, n2) => e4.check(bc(Array.isArray(t3) ? t3 : [t3], n2));
5323
5323
  });
5324
- function Of(e4) {
5325
- return Bc(Df, e4);
5324
+ function Df(e4) {
5325
+ return zc(Ef, e4);
5326
5326
  }
5327
- var kf = c("ZodTransform", (e4, t2) => {
5328
- Di.init(e4, t2), j.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Nl(e4, t3, n2, r2), e4._zod.parse = (n2, r2) => {
5327
+ var Of = c("ZodTransform", (e4, t2) => {
5328
+ Di.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Ml(e4, t3, n2, r2), e4._zod.parse = (n2, r2) => {
5329
5329
  if (r2.direction === "backward") throw new d(e4.constructor.name);
5330
5330
  n2.addIssue = (r3) => {
5331
5331
  if (typeof r3 == "string") n2.issues.push(Ge(r3, n2.value, t2));
@@ -5338,132 +5338,132 @@ var kf = c("ZodTransform", (e4, t2) => {
5338
5338
  return i2 instanceof Promise ? i2.then((e5) => (n2.value = e5, n2)) : (n2.value = i2, n2);
5339
5339
  };
5340
5340
  });
5341
- function Af(e4) {
5342
- return new kf({ type: "transform", transform: e4 });
5341
+ function kf(e4) {
5342
+ return new Of({ type: "transform", transform: e4 });
5343
5343
  }
5344
- var jf = c("ZodOptional", (e4, t2) => {
5345
- ki.init(e4, t2), j.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Xl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType;
5344
+ var Af = c("ZodOptional", (e4, t2) => {
5345
+ ki.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Yl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType;
5346
5346
  });
5347
- function W(e4) {
5348
- return new jf({ type: "optional", innerType: e4 });
5347
+ function G(e4) {
5348
+ return new Af({ type: "optional", innerType: e4 });
5349
5349
  }
5350
- var Mf = c("ZodExactOptional", (e4, t2) => {
5351
- Ai.init(e4, t2), j.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Xl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType;
5350
+ var jf = c("ZodExactOptional", (e4, t2) => {
5351
+ Ai.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Yl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType;
5352
5352
  });
5353
- function Nf(e4) {
5354
- return new Mf({ type: "optional", innerType: e4 });
5353
+ function Mf(e4) {
5354
+ return new jf({ type: "optional", innerType: e4 });
5355
5355
  }
5356
- var Pf = c("ZodNullable", (e4, t2) => {
5357
- ji.init(e4, t2), j.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Hl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType;
5356
+ var Nf = c("ZodNullable", (e4, t2) => {
5357
+ ji.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Vl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType;
5358
5358
  });
5359
- function Ff(e4) {
5360
- return new Pf({ type: "nullable", innerType: e4 });
5359
+ function Pf(e4) {
5360
+ return new Nf({ type: "nullable", innerType: e4 });
5361
5361
  }
5362
- function If(e4) {
5363
- return W(Ff(e4));
5362
+ function Ff(e4) {
5363
+ return G(Pf(e4));
5364
5364
  }
5365
- var Lf = c("ZodDefault", (e4, t2) => {
5366
- Mi.init(e4, t2), j.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Wl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType, e4.removeDefault = e4.unwrap;
5365
+ var If = c("ZodDefault", (e4, t2) => {
5366
+ Mi.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Ul(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType, e4.removeDefault = e4.unwrap;
5367
5367
  });
5368
- function Rf(e4, t2) {
5369
- return new Lf({ type: "default", innerType: e4, get defaultValue() {
5368
+ function Lf(e4, t2) {
5369
+ return new If({ type: "default", innerType: e4, get defaultValue() {
5370
5370
  return typeof t2 == "function" ? t2() : xe(t2);
5371
5371
  } });
5372
5372
  }
5373
- var zf = c("ZodPrefault", (e4, t2) => {
5374
- Pi.init(e4, t2), j.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Gl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType;
5373
+ var Rf = c("ZodPrefault", (e4, t2) => {
5374
+ Pi.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Wl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType;
5375
5375
  });
5376
- function Bf(e4, t2) {
5377
- return new zf({ type: "prefault", innerType: e4, get defaultValue() {
5376
+ function zf(e4, t2) {
5377
+ return new Rf({ type: "prefault", innerType: e4, get defaultValue() {
5378
5378
  return typeof t2 == "function" ? t2() : xe(t2);
5379
5379
  } });
5380
5380
  }
5381
- var Vf = c("ZodNonOptional", (e4, t2) => {
5382
- Fi.init(e4, t2), j.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Ul(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType;
5381
+ var Bf = c("ZodNonOptional", (e4, t2) => {
5382
+ Fi.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Hl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType;
5383
5383
  });
5384
- function Hf(e4, t2) {
5385
- return new Vf({ type: "nonoptional", innerType: e4, ...x(t2) });
5384
+ function Vf(e4, t2) {
5385
+ return new Bf({ type: "nonoptional", innerType: e4, ...x(t2) });
5386
5386
  }
5387
- var Uf = c("ZodSuccess", (e4, t2) => {
5388
- Li.init(e4, t2), j.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Al(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType;
5387
+ var Hf = c("ZodSuccess", (e4, t2) => {
5388
+ Li.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => kl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType;
5389
5389
  });
5390
- function Wf(e4) {
5391
- return new Uf({ type: "success", innerType: e4 });
5390
+ function Uf(e4) {
5391
+ return new Hf({ type: "success", innerType: e4 });
5392
5392
  }
5393
- var Gf = c("ZodCatch", (e4, t2) => {
5394
- Ri.init(e4, t2), j.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Kl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType, e4.removeCatch = e4.unwrap;
5393
+ var Wf = c("ZodCatch", (e4, t2) => {
5394
+ Ri.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Gl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType, e4.removeCatch = e4.unwrap;
5395
5395
  });
5396
- function Kf(e4, t2) {
5397
- return new Gf({ type: "catch", innerType: e4, catchValue: typeof t2 == "function" ? t2 : () => t2 });
5396
+ function Gf(e4, t2) {
5397
+ return new Wf({ type: "catch", innerType: e4, catchValue: typeof t2 == "function" ? t2 : () => t2 });
5398
5398
  }
5399
- var qf = c("ZodNaN", (e4, t2) => {
5400
- zi.init(e4, t2), j.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Dl(e4, t3, n2, r2);
5399
+ var Kf = c("ZodNaN", (e4, t2) => {
5400
+ zi.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => El(e4, t3, n2, r2);
5401
5401
  });
5402
- function Jf(e4) {
5403
- return $s(qf, e4);
5402
+ function qf(e4) {
5403
+ return Qs(Kf, e4);
5404
5404
  }
5405
- var Yf = c("ZodPipe", (e4, t2) => {
5406
- Bi.init(e4, t2), j.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => ql(e4, t3, n2, r2), e4.in = t2.in, e4.out = t2.out;
5405
+ var Jf = c("ZodPipe", (e4, t2) => {
5406
+ Bi.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Kl(e4, t3, n2, r2), e4.in = t2.in, e4.out = t2.out;
5407
5407
  });
5408
- function Xf(e4, t2) {
5409
- return new Yf({ type: "pipe", in: e4, out: t2 });
5408
+ function Yf(e4, t2) {
5409
+ return new Jf({ type: "pipe", in: e4, out: t2 });
5410
5410
  }
5411
- var Zf = c("ZodCodec", (e4, t2) => {
5412
- Yf.init(e4, t2), Hi.init(e4, t2);
5411
+ var Xf = c("ZodCodec", (e4, t2) => {
5412
+ Jf.init(e4, t2), Hi.init(e4, t2);
5413
5413
  });
5414
- function Qf(e4, t2, n2) {
5415
- return new Zf({ type: "pipe", in: e4, out: t2, transform: n2.decode, reverseTransform: n2.encode });
5414
+ function Zf(e4, t2, n2) {
5415
+ return new Xf({ type: "pipe", in: e4, out: t2, transform: n2.decode, reverseTransform: n2.encode });
5416
5416
  }
5417
- var $f = c("ZodReadonly", (e4, t2) => {
5418
- Gi.init(e4, t2), j.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Jl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType;
5417
+ var Qf = c("ZodReadonly", (e4, t2) => {
5418
+ Gi.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => ql(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType;
5419
5419
  });
5420
- function ep(e4) {
5421
- return new $f({ type: "readonly", innerType: e4 });
5420
+ function $f(e4) {
5421
+ return new Qf({ type: "readonly", innerType: e4 });
5422
5422
  }
5423
- var tp = c("ZodTemplateLiteral", (e4, t2) => {
5424
- qi.init(e4, t2), j.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Ol(e4, t3, n2, r2);
5423
+ var ep = c("ZodTemplateLiteral", (e4, t2) => {
5424
+ qi.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Dl(e4, t3, n2, r2);
5425
5425
  });
5426
- function np(e4, t2) {
5427
- return new tp({ type: "template_literal", parts: e4, ...x(t2) });
5426
+ function tp(e4, t2) {
5427
+ return new ep({ type: "template_literal", parts: e4, ...x(t2) });
5428
5428
  }
5429
- var rp = c("ZodLazy", (e4, t2) => {
5430
- Xi.init(e4, t2), j.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Zl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.getter();
5429
+ var np = c("ZodLazy", (e4, t2) => {
5430
+ Xi.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Xl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.getter();
5431
5431
  });
5432
- function ip(e4) {
5433
- return new rp({ type: "lazy", getter: e4 });
5432
+ function rp(e4) {
5433
+ return new np({ type: "lazy", getter: e4 });
5434
5434
  }
5435
- var ap = c("ZodPromise", (e4, t2) => {
5436
- Yi.init(e4, t2), j.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Yl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType;
5435
+ var ip = c("ZodPromise", (e4, t2) => {
5436
+ Yi.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Jl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType;
5437
5437
  });
5438
- function op(e4) {
5439
- return new ap({ type: "promise", innerType: e4 });
5438
+ function ap(e4) {
5439
+ return new ip({ type: "promise", innerType: e4 });
5440
5440
  }
5441
- var sp = c("ZodFunction", (e4, t2) => {
5442
- Ji.init(e4, t2), j.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Ml(e4, t3, n2, r2);
5441
+ var op = c("ZodFunction", (e4, t2) => {
5442
+ Ji.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => jl(e4, t3, n2, r2);
5443
5443
  });
5444
- function cp(e4) {
5444
+ function sp(e4) {
5445
5445
  var t2, n2;
5446
- return new sp({ type: "function", input: Array.isArray(e4 == null ? void 0 : e4.input) ? gf(e4 == null ? void 0 : e4.input) : (t2 = e4 == null ? void 0 : e4.input) == null ? L(I()) : t2, output: (n2 = e4 == null ? void 0 : e4.output) == null ? I() : n2 });
5446
+ return new op({ type: "function", input: Array.isArray(e4 == null ? void 0 : e4.input) ? hf(e4 == null ? void 0 : e4.input) : (t2 = e4 == null ? void 0 : e4.input) == null ? R(L()) : t2, output: (n2 = e4 == null ? void 0 : e4.output) == null ? L() : n2 });
5447
5447
  }
5448
- var lp = c("ZodCustom", (e4, t2) => {
5449
- Zi.init(e4, t2), j.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => jl(e4, t3, n2, r2);
5448
+ var cp = c("ZodCustom", (e4, t2) => {
5449
+ Zi.init(e4, t2), M.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Al(e4, t3, n2, r2);
5450
5450
  });
5451
- function up(e4) {
5451
+ function lp(e4) {
5452
5452
  let t2 = new w({ check: "custom" });
5453
5453
  return t2._zod.check = e4, t2;
5454
5454
  }
5455
- function dp(e4, t2) {
5456
- return $c(lp, e4 == null ? (() => true) : e4, t2);
5455
+ function up(e4, t2) {
5456
+ return Qc(cp, e4 == null ? (() => true) : e4, t2);
5457
5457
  }
5458
- function fp(e4, t2 = {}) {
5459
- return el(lp, e4, t2);
5458
+ function dp(e4, t2 = {}) {
5459
+ return $c(cp, e4, t2);
5460
5460
  }
5461
- function pp(e4) {
5462
- return tl(e4);
5461
+ function fp(e4) {
5462
+ return el(e4);
5463
5463
  }
5464
- var mp = rl, hp = il;
5465
- function gp(e4, t2 = {}) {
5466
- let n2 = new lp({ type: "custom", check: "custom", fn: (t3) => t3 instanceof e4, abort: true, ...x(t2) });
5464
+ var pp = nl, mp = rl;
5465
+ function hp(e4, t2 = {}) {
5466
+ let n2 = new cp({ type: "custom", check: "custom", fn: (t3) => t3 instanceof e4, abort: true, ...x(t2) });
5467
5467
  return n2._zod.bag.Class = e4, n2._zod.check = (t3) => {
5468
5468
  if (!(t3.value instanceof e4)) {
5469
5469
  var r2;
@@ -5471,30 +5471,30 @@ function gp(e4, t2 = {}) {
5471
5471
  }
5472
5472
  }, n2;
5473
5473
  }
5474
- var _p = (...e4) => al({ Codec: Zf, Boolean: Id, String: Nu }, ...e4);
5475
- function vp(e4) {
5476
- let t2 = ip(() => B([M(e4), P(), F(), qd(), L(t2), V(M(), t2)]));
5474
+ var gp = (...e4) => il({ Codec: Xf, Boolean: Fd, String: Mu }, ...e4);
5475
+ function _p(e4) {
5476
+ let t2 = rp(() => V([N(e4), F(), I(), Kd(), R(t2), H(N(), t2)]));
5477
5477
  return t2;
5478
5478
  }
5479
- function yp(e4, t2) {
5480
- return Xf(Af(e4), t2);
5479
+ function vp(e4, t2) {
5480
+ return Yf(kf(e4), t2);
5481
5481
  }
5482
- var bp = { invalid_type: "invalid_type", too_big: "too_big", too_small: "too_small", invalid_format: "invalid_format", not_multiple_of: "not_multiple_of", unrecognized_keys: "unrecognized_keys", invalid_union: "invalid_union", invalid_key: "invalid_key", invalid_element: "invalid_element", invalid_value: "invalid_value", custom: "custom" };
5483
- function xp(e4) {
5482
+ var yp = { invalid_type: "invalid_type", too_big: "too_big", too_small: "too_small", invalid_format: "invalid_format", not_multiple_of: "not_multiple_of", unrecognized_keys: "unrecognized_keys", invalid_union: "invalid_union", invalid_key: "invalid_key", invalid_element: "invalid_element", invalid_value: "invalid_value", custom: "custom" };
5483
+ function bp(e4) {
5484
5484
  p({ customError: e4 });
5485
5485
  }
5486
- function Sp() {
5486
+ function xp() {
5487
5487
  return p().customError;
5488
5488
  }
5489
- var Cp;
5489
+ var Sp;
5490
5490
  /* @__PURE__ */ (function(e4) {
5491
- })(Cp || (Cp = {}));
5492
- var G = { ...ju, ...su, iso: cu }, wp = new Set("$schema.$ref.$defs.definitions.$id.id.$comment.$anchor.$vocabulary.$dynamicRef.$dynamicAnchor.type.enum.const.anyOf.oneOf.allOf.not.properties.required.additionalProperties.patternProperties.propertyNames.minProperties.maxProperties.items.prefixItems.additionalItems.minItems.maxItems.uniqueItems.contains.minContains.maxContains.minLength.maxLength.pattern.format.minimum.maximum.exclusiveMinimum.exclusiveMaximum.multipleOf.description.default.contentEncoding.contentMediaType.contentSchema.unevaluatedItems.unevaluatedProperties.if.then.else.dependentSchemas.dependentRequired.nullable.readOnly".split("."));
5493
- function Tp(e4, t2) {
5491
+ })(Sp || (Sp = {}));
5492
+ var K = { ...Au, ...ou, iso: su }, Cp = new Set("$schema.$ref.$defs.definitions.$id.id.$comment.$anchor.$vocabulary.$dynamicRef.$dynamicAnchor.type.enum.const.anyOf.oneOf.allOf.not.properties.required.additionalProperties.patternProperties.propertyNames.minProperties.maxProperties.items.prefixItems.additionalItems.minItems.maxItems.uniqueItems.contains.minContains.maxContains.minLength.maxLength.pattern.format.minimum.maximum.exclusiveMinimum.exclusiveMaximum.multipleOf.description.default.contentEncoding.contentMediaType.contentSchema.unevaluatedItems.unevaluatedProperties.if.then.else.dependentSchemas.dependentRequired.nullable.readOnly".split("."));
5493
+ function wp(e4, t2) {
5494
5494
  let n2 = e4.$schema;
5495
5495
  return n2 === "https://json-schema.org/draft/2020-12/schema" ? "draft-2020-12" : n2 === "http://json-schema.org/draft-07/schema#" ? "draft-7" : n2 === "http://json-schema.org/draft-04/schema#" ? "draft-4" : t2 == null ? "draft-2020-12" : t2;
5496
5496
  }
5497
- function Ep(e4, t2) {
5497
+ function Tp(e4, t2) {
5498
5498
  if (!e4.startsWith("#")) throw Error("External $ref is not supported, only local refs (#/...) are allowed");
5499
5499
  let n2 = e4.slice(1).split("/").filter(Boolean);
5500
5500
  if (n2.length === 0) return t2.rootSchema;
@@ -5506,9 +5506,9 @@ function Ep(e4, t2) {
5506
5506
  }
5507
5507
  throw Error("Reference not found: ".concat(e4));
5508
5508
  }
5509
- function Dp(e4, t2) {
5509
+ function Ep(e4, t2) {
5510
5510
  if (e4.not !== void 0) {
5511
- if (typeof e4.not == "object" && Object.keys(e4.not).length === 0) return G.never();
5511
+ if (typeof e4.not == "object" && Object.keys(e4.not).length === 0) return K.never();
5512
5512
  throw Error("not is not supported in Zod (except { not: {} } for never)");
5513
5513
  }
5514
5514
  if (e4.unevaluatedItems !== void 0) throw Error("unevaluatedItems is not supported");
@@ -5518,101 +5518,101 @@ function Dp(e4, t2) {
5518
5518
  if (e4.$ref) {
5519
5519
  let n3 = e4.$ref;
5520
5520
  if (t2.refs.has(n3)) return t2.refs.get(n3);
5521
- if (t2.processing.has(n3)) return G.lazy(() => {
5521
+ if (t2.processing.has(n3)) return K.lazy(() => {
5522
5522
  if (!t2.refs.has(n3)) throw Error("Circular reference not resolved: ".concat(n3));
5523
5523
  return t2.refs.get(n3);
5524
5524
  });
5525
5525
  t2.processing.add(n3);
5526
- let r3 = K(Ep(n3, t2), t2);
5526
+ let r3 = q(Tp(n3, t2), t2);
5527
5527
  return t2.refs.set(n3, r3), t2.processing.delete(n3), r3;
5528
5528
  }
5529
5529
  if (e4.enum !== void 0) {
5530
5530
  let n3 = e4.enum;
5531
- if (t2.version === "openapi-3.0" && e4.nullable === true && n3.length === 1 && n3[0] === null) return G.null();
5532
- if (n3.length === 0) return G.never();
5533
- if (n3.length === 1) return G.literal(n3[0]);
5534
- if (n3.every((e5) => typeof e5 == "string")) return G.enum(n3);
5535
- let r3 = n3.map((e5) => G.literal(e5));
5536
- return r3.length < 2 ? r3[0] : G.union([r3[0], r3[1], ...r3.slice(2)]);
5537
- }
5538
- if (e4.const !== void 0) return G.literal(e4.const);
5531
+ if (t2.version === "openapi-3.0" && e4.nullable === true && n3.length === 1 && n3[0] === null) return K.null();
5532
+ if (n3.length === 0) return K.never();
5533
+ if (n3.length === 1) return K.literal(n3[0]);
5534
+ if (n3.every((e5) => typeof e5 == "string")) return K.enum(n3);
5535
+ let r3 = n3.map((e5) => K.literal(e5));
5536
+ return r3.length < 2 ? r3[0] : K.union([r3[0], r3[1], ...r3.slice(2)]);
5537
+ }
5538
+ if (e4.const !== void 0) return K.literal(e4.const);
5539
5539
  let n2 = e4.type;
5540
5540
  if (Array.isArray(n2)) {
5541
- let r3 = n2.map((n3) => Dp({ ...e4, type: n3 }, t2));
5542
- return r3.length === 0 ? G.never() : r3.length === 1 ? r3[0] : G.union(r3);
5541
+ let r3 = n2.map((n3) => Ep({ ...e4, type: n3 }, t2));
5542
+ return r3.length === 0 ? K.never() : r3.length === 1 ? r3[0] : K.union(r3);
5543
5543
  }
5544
- if (!n2) return G.any();
5544
+ if (!n2) return K.any();
5545
5545
  let r2;
5546
5546
  switch (n2) {
5547
5547
  case "string": {
5548
- let t3 = G.string();
5548
+ let t3 = K.string();
5549
5549
  if (e4.format) {
5550
5550
  let n3 = e4.format;
5551
- n3 === "email" ? t3 = t3.check(G.email()) : n3 === "uri" || n3 === "uri-reference" ? t3 = t3.check(G.url()) : n3 === "uuid" || n3 === "guid" ? t3 = t3.check(G.uuid()) : n3 === "date-time" ? t3 = t3.check(G.iso.datetime()) : n3 === "date" ? t3 = t3.check(G.iso.date()) : n3 === "time" ? t3 = t3.check(G.iso.time()) : n3 === "duration" ? t3 = t3.check(G.iso.duration()) : n3 === "ipv4" ? t3 = t3.check(G.ipv4()) : n3 === "ipv6" ? t3 = t3.check(G.ipv6()) : n3 === "mac" ? t3 = t3.check(G.mac()) : n3 === "cidr" ? t3 = t3.check(G.cidrv4()) : n3 === "cidr-v6" ? t3 = t3.check(G.cidrv6()) : n3 === "base64" ? t3 = t3.check(G.base64()) : n3 === "base64url" ? t3 = t3.check(G.base64url()) : n3 === "e164" ? t3 = t3.check(G.e164()) : n3 === "jwt" ? t3 = t3.check(G.jwt()) : n3 === "emoji" ? t3 = t3.check(G.emoji()) : n3 === "nanoid" ? t3 = t3.check(G.nanoid()) : n3 === "cuid" ? t3 = t3.check(G.cuid()) : n3 === "cuid2" ? t3 = t3.check(G.cuid2()) : n3 === "ulid" ? t3 = t3.check(G.ulid()) : n3 === "xid" ? t3 = t3.check(G.xid()) : n3 === "ksuid" && (t3 = t3.check(G.ksuid()));
5551
+ n3 === "email" ? t3 = t3.check(K.email()) : n3 === "uri" || n3 === "uri-reference" ? t3 = t3.check(K.url()) : n3 === "uuid" || n3 === "guid" ? t3 = t3.check(K.uuid()) : n3 === "date-time" ? t3 = t3.check(K.iso.datetime()) : n3 === "date" ? t3 = t3.check(K.iso.date()) : n3 === "time" ? t3 = t3.check(K.iso.time()) : n3 === "duration" ? t3 = t3.check(K.iso.duration()) : n3 === "ipv4" ? t3 = t3.check(K.ipv4()) : n3 === "ipv6" ? t3 = t3.check(K.ipv6()) : n3 === "mac" ? t3 = t3.check(K.mac()) : n3 === "cidr" ? t3 = t3.check(K.cidrv4()) : n3 === "cidr-v6" ? t3 = t3.check(K.cidrv6()) : n3 === "base64" ? t3 = t3.check(K.base64()) : n3 === "base64url" ? t3 = t3.check(K.base64url()) : n3 === "e164" ? t3 = t3.check(K.e164()) : n3 === "jwt" ? t3 = t3.check(K.jwt()) : n3 === "emoji" ? t3 = t3.check(K.emoji()) : n3 === "nanoid" ? t3 = t3.check(K.nanoid()) : n3 === "cuid" ? t3 = t3.check(K.cuid()) : n3 === "cuid2" ? t3 = t3.check(K.cuid2()) : n3 === "ulid" ? t3 = t3.check(K.ulid()) : n3 === "xid" ? t3 = t3.check(K.xid()) : n3 === "ksuid" && (t3 = t3.check(K.ksuid()));
5552
5552
  }
5553
5553
  typeof e4.minLength == "number" && (t3 = t3.min(e4.minLength)), typeof e4.maxLength == "number" && (t3 = t3.max(e4.maxLength)), e4.pattern && (t3 = t3.regex(new RegExp(e4.pattern))), r2 = t3;
5554
5554
  break;
5555
5555
  }
5556
5556
  case "number":
5557
5557
  case "integer": {
5558
- let t3 = n2 === "integer" ? G.number().int() : G.number();
5558
+ let t3 = n2 === "integer" ? K.number().int() : K.number();
5559
5559
  typeof e4.minimum == "number" && (t3 = t3.min(e4.minimum)), typeof e4.maximum == "number" && (t3 = t3.max(e4.maximum)), typeof e4.exclusiveMinimum == "number" ? t3 = t3.gt(e4.exclusiveMinimum) : e4.exclusiveMinimum === true && typeof e4.minimum == "number" && (t3 = t3.gt(e4.minimum)), typeof e4.exclusiveMaximum == "number" ? t3 = t3.lt(e4.exclusiveMaximum) : e4.exclusiveMaximum === true && typeof e4.maximum == "number" && (t3 = t3.lt(e4.maximum)), typeof e4.multipleOf == "number" && (t3 = t3.multipleOf(e4.multipleOf)), r2 = t3;
5560
5560
  break;
5561
5561
  }
5562
5562
  case "boolean":
5563
- r2 = G.boolean();
5563
+ r2 = K.boolean();
5564
5564
  break;
5565
5565
  case "null":
5566
- r2 = G.null();
5566
+ r2 = K.null();
5567
5567
  break;
5568
5568
  case "object": {
5569
5569
  let n3 = {}, i2 = e4.properties || {}, a2 = new Set(e4.required || []);
5570
5570
  for (let [e5, r3] of Object.entries(i2)) {
5571
- let i3 = K(r3, t2);
5571
+ let i3 = q(r3, t2);
5572
5572
  n3[e5] = a2.has(e5) ? i3 : i3.optional();
5573
5573
  }
5574
5574
  if (e4.propertyNames) {
5575
- let i3 = K(e4.propertyNames, t2), a3 = e4.additionalProperties && typeof e4.additionalProperties == "object" ? K(e4.additionalProperties, t2) : G.any();
5575
+ let i3 = q(e4.propertyNames, t2), a3 = e4.additionalProperties && typeof e4.additionalProperties == "object" ? q(e4.additionalProperties, t2) : K.any();
5576
5576
  if (Object.keys(n3).length === 0) {
5577
- r2 = G.record(i3, a3);
5577
+ r2 = K.record(i3, a3);
5578
5578
  break;
5579
5579
  }
5580
- let o3 = G.object(n3).passthrough(), s2 = G.looseRecord(i3, a3);
5581
- r2 = G.intersection(o3, s2);
5580
+ let o3 = K.object(n3).passthrough(), s2 = K.looseRecord(i3, a3);
5581
+ r2 = K.intersection(o3, s2);
5582
5582
  break;
5583
5583
  }
5584
5584
  if (e4.patternProperties) {
5585
5585
  let i3 = e4.patternProperties, a3 = Object.keys(i3), o3 = [];
5586
5586
  for (let e5 of a3) {
5587
- let n4 = K(i3[e5], t2), r3 = G.string().regex(new RegExp(e5));
5588
- o3.push(G.looseRecord(r3, n4));
5587
+ let n4 = q(i3[e5], t2), r3 = K.string().regex(new RegExp(e5));
5588
+ o3.push(K.looseRecord(r3, n4));
5589
5589
  }
5590
5590
  let s2 = [];
5591
- if (Object.keys(n3).length > 0 && s2.push(G.object(n3).passthrough()), s2.push(...o3), s2.length === 0) r2 = G.object({}).passthrough();
5591
+ if (Object.keys(n3).length > 0 && s2.push(K.object(n3).passthrough()), s2.push(...o3), s2.length === 0) r2 = K.object({}).passthrough();
5592
5592
  else if (s2.length === 1) r2 = s2[0];
5593
5593
  else {
5594
- let e5 = G.intersection(s2[0], s2[1]);
5595
- for (let t3 = 2; t3 < s2.length; t3++) e5 = G.intersection(e5, s2[t3]);
5594
+ let e5 = K.intersection(s2[0], s2[1]);
5595
+ for (let t3 = 2; t3 < s2.length; t3++) e5 = K.intersection(e5, s2[t3]);
5596
5596
  r2 = e5;
5597
5597
  }
5598
5598
  break;
5599
5599
  }
5600
- let o2 = G.object(n3);
5601
- r2 = e4.additionalProperties === false ? o2.strict() : typeof e4.additionalProperties == "object" ? o2.catchall(K(e4.additionalProperties, t2)) : o2.passthrough();
5600
+ let o2 = K.object(n3);
5601
+ r2 = e4.additionalProperties === false ? o2.strict() : typeof e4.additionalProperties == "object" ? o2.catchall(q(e4.additionalProperties, t2)) : o2.passthrough();
5602
5602
  break;
5603
5603
  }
5604
5604
  case "array": {
5605
5605
  let n3 = e4.prefixItems, i2 = e4.items;
5606
5606
  if (n3 && Array.isArray(n3)) {
5607
- let a2 = n3.map((e5) => K(e5, t2)), o2 = i2 && typeof i2 == "object" && !Array.isArray(i2) ? K(i2, t2) : void 0;
5608
- r2 = o2 ? G.tuple(a2).rest(o2) : G.tuple(a2), typeof e4.minItems == "number" && (r2 = r2.check(G.minLength(e4.minItems))), typeof e4.maxItems == "number" && (r2 = r2.check(G.maxLength(e4.maxItems)));
5607
+ let a2 = n3.map((e5) => q(e5, t2)), o2 = i2 && typeof i2 == "object" && !Array.isArray(i2) ? q(i2, t2) : void 0;
5608
+ r2 = o2 ? K.tuple(a2).rest(o2) : K.tuple(a2), typeof e4.minItems == "number" && (r2 = r2.check(K.minLength(e4.minItems))), typeof e4.maxItems == "number" && (r2 = r2.check(K.maxLength(e4.maxItems)));
5609
5609
  } else if (Array.isArray(i2)) {
5610
- let n4 = i2.map((e5) => K(e5, t2)), a2 = e4.additionalItems && typeof e4.additionalItems == "object" ? K(e4.additionalItems, t2) : void 0;
5611
- r2 = a2 ? G.tuple(n4).rest(a2) : G.tuple(n4), typeof e4.minItems == "number" && (r2 = r2.check(G.minLength(e4.minItems))), typeof e4.maxItems == "number" && (r2 = r2.check(G.maxLength(e4.maxItems)));
5610
+ let n4 = i2.map((e5) => q(e5, t2)), a2 = e4.additionalItems && typeof e4.additionalItems == "object" ? q(e4.additionalItems, t2) : void 0;
5611
+ r2 = a2 ? K.tuple(n4).rest(a2) : K.tuple(n4), typeof e4.minItems == "number" && (r2 = r2.check(K.minLength(e4.minItems))), typeof e4.maxItems == "number" && (r2 = r2.check(K.maxLength(e4.maxItems)));
5612
5612
  } else if (i2 !== void 0) {
5613
- let n4 = K(i2, t2), a2 = G.array(n4);
5613
+ let n4 = q(i2, t2), a2 = K.array(n4);
5614
5614
  typeof e4.minItems == "number" && (a2 = a2.min(e4.minItems)), typeof e4.maxItems == "number" && (a2 = a2.max(e4.maxItems)), r2 = a2;
5615
- } else r2 = G.array(G.any());
5615
+ } else r2 = K.array(K.any());
5616
5616
  break;
5617
5617
  }
5618
5618
  default:
@@ -5620,74 +5620,74 @@ function Dp(e4, t2) {
5620
5620
  }
5621
5621
  return e4.description && (r2 = r2.describe(e4.description)), e4.default !== void 0 && (r2 = r2.default(e4.default)), r2;
5622
5622
  }
5623
- function K(e4, t2) {
5624
- if (typeof e4 == "boolean") return e4 ? G.any() : G.never();
5625
- let n2 = Dp(e4, t2), r2 = e4.type || e4.enum !== void 0 || e4.const !== void 0;
5623
+ function q(e4, t2) {
5624
+ if (typeof e4 == "boolean") return e4 ? K.any() : K.never();
5625
+ let n2 = Ep(e4, t2), r2 = e4.type || e4.enum !== void 0 || e4.const !== void 0;
5626
5626
  if (e4.anyOf && Array.isArray(e4.anyOf)) {
5627
- let i3 = e4.anyOf.map((e5) => K(e5, t2)), a2 = G.union(i3);
5628
- n2 = r2 ? G.intersection(n2, a2) : a2;
5627
+ let i3 = e4.anyOf.map((e5) => q(e5, t2)), a2 = K.union(i3);
5628
+ n2 = r2 ? K.intersection(n2, a2) : a2;
5629
5629
  }
5630
5630
  if (e4.oneOf && Array.isArray(e4.oneOf)) {
5631
- let i3 = e4.oneOf.map((e5) => K(e5, t2)), a2 = G.xor(i3);
5632
- n2 = r2 ? G.intersection(n2, a2) : a2;
5631
+ let i3 = e4.oneOf.map((e5) => q(e5, t2)), a2 = K.xor(i3);
5632
+ n2 = r2 ? K.intersection(n2, a2) : a2;
5633
5633
  }
5634
- if (e4.allOf && Array.isArray(e4.allOf)) if (e4.allOf.length === 0) n2 = r2 ? n2 : G.any();
5634
+ if (e4.allOf && Array.isArray(e4.allOf)) if (e4.allOf.length === 0) n2 = r2 ? n2 : K.any();
5635
5635
  else {
5636
- let i3 = r2 ? n2 : K(e4.allOf[0], t2), a2 = +!r2;
5637
- for (let n3 = a2; n3 < e4.allOf.length; n3++) i3 = G.intersection(i3, K(e4.allOf[n3], t2));
5636
+ let i3 = r2 ? n2 : q(e4.allOf[0], t2), a2 = +!r2;
5637
+ for (let n3 = a2; n3 < e4.allOf.length; n3++) i3 = K.intersection(i3, q(e4.allOf[n3], t2));
5638
5638
  n2 = i3;
5639
5639
  }
5640
- e4.nullable === true && t2.version === "openapi-3.0" && (n2 = G.nullable(n2)), e4.readOnly === true && (n2 = G.readonly(n2));
5640
+ e4.nullable === true && t2.version === "openapi-3.0" && (n2 = K.nullable(n2)), e4.readOnly === true && (n2 = K.readonly(n2));
5641
5641
  let i2 = {};
5642
5642
  for (let t3 of ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"]) t3 in e4 && (i2[t3] = e4[t3]);
5643
5643
  for (let t3 of ["contentEncoding", "contentMediaType", "contentSchema"]) t3 in e4 && (i2[t3] = e4[t3]);
5644
- for (let t3 of Object.keys(e4)) wp.has(t3) || (i2[t3] = e4[t3]);
5644
+ for (let t3 of Object.keys(e4)) Cp.has(t3) || (i2[t3] = e4[t3]);
5645
5645
  return Object.keys(i2).length > 0 && t2.registry.add(n2, i2), n2;
5646
5646
  }
5647
- function Op(e4, t2) {
5647
+ function Dp(e4, t2) {
5648
5648
  var n2;
5649
- return typeof e4 == "boolean" ? e4 ? G.any() : G.never() : K(e4, { version: Tp(e4, t2 == null ? void 0 : t2.defaultTarget), defs: e4.$defs || e4.definitions || {}, refs: /* @__PURE__ */ new Map(), processing: /* @__PURE__ */ new Set(), rootSchema: e4, registry: (n2 = t2 == null ? void 0 : t2.registry) == null ? es : n2 });
5649
+ return typeof e4 == "boolean" ? e4 ? K.any() : K.never() : q(e4, { version: wp(e4, t2 == null ? void 0 : t2.defaultTarget), defs: e4.$defs || e4.definitions || {}, refs: /* @__PURE__ */ new Map(), processing: /* @__PURE__ */ new Set(), rootSchema: e4, registry: (n2 = t2 == null ? void 0 : t2.registry) == null ? D : n2 });
5650
+ }
5651
+ var Op = t({ bigint: () => Mp, boolean: () => jp, date: () => Np, number: () => Ap, string: () => kp });
5652
+ function kp(e4) {
5653
+ return ts(Mu, e4);
5650
5654
  }
5651
- var kp = t({ bigint: () => Np, boolean: () => Mp, date: () => Pp, number: () => jp, string: () => Ap });
5652
5655
  function Ap(e4) {
5653
- return ns(Nu, e4);
5656
+ return js(Od, e4);
5654
5657
  }
5655
5658
  function jp(e4) {
5656
- return Ms(kd, e4);
5659
+ return Rs(Fd, e4);
5657
5660
  }
5658
5661
  function Mp(e4) {
5659
- return zs(Id, e4);
5662
+ return Bs(Id, e4);
5660
5663
  }
5661
5664
  function Np(e4) {
5662
- return Vs(Ld, e4);
5663
- }
5664
- function Pp(e4) {
5665
- return Qs(tf, e4);
5665
+ return Zs(ef, e4);
5666
5666
  }
5667
- var Fp = t({ $brand: () => l, $input: () => Zo, $output: () => Xo, NEVER: () => s, TimePrecision: () => Es, ZodAny: () => Jd, ZodArray: () => rf, ZodBase64: () => gd, ZodBase64URL: () => vd, ZodBigInt: () => Ld, ZodBigIntFormat: () => zd, ZodBoolean: () => Id, ZodCIDRv4: () => fd, ZodCIDRv6: () => md, ZodCUID: () => Xu, ZodCUID2: () => Qu, ZodCatch: () => Gf, ZodCodec: () => Zf, ZodCustom: () => lp, ZodCustomStringFormat: () => wd, ZodDate: () => tf, ZodDefault: () => Lf, ZodDiscriminatedUnion: () => df, ZodE164: () => bd, ZodEmail: () => Pu, ZodEmoji: () => Ku, ZodEnum: () => wf, ZodError: () => vu, ZodExactOptional: () => Mf, ZodFile: () => Df, ZodFirstPartyTypeKind: () => Cp, ZodFunction: () => sp, ZodGUID: () => Iu, ZodIPv4: () => od, ZodIPv6: () => ud, ZodISODate: () => du, ZodISODateTime: () => lu, ZodISODuration: () => hu, ZodISOTime: () => pu, ZodIntersection: () => pf, ZodIssueCode: () => bp, ZodJWT: () => Sd, ZodKSUID: () => id, ZodLazy: () => rp, ZodLiteral: () => Ef, ZodMAC: () => cd, ZodMap: () => bf, ZodNaN: () => qf, ZodNanoID: () => Ju, ZodNever: () => Zd, ZodNonOptional: () => Vf, ZodNull: () => Kd, ZodNullable: () => Pf, ZodNumber: () => kd, ZodNumberFormat: () => Ad, ZodObject: () => of, ZodOptional: () => jf, ZodPipe: () => Yf, ZodPrefault: () => zf, ZodPromise: () => ap, ZodReadonly: () => $f, ZodRealError: () => A, ZodRecord: () => _f, ZodSet: () => Sf, ZodString: () => Nu, ZodStringFormat: () => N, ZodSuccess: () => Uf, ZodSymbol: () => Hd, ZodTemplateLiteral: () => tp, ZodTransform: () => kf, ZodTuple: () => hf, ZodType: () => j, ZodULID: () => ed, ZodURL: () => Uu, ZodUUID: () => Ru, ZodUndefined: () => Wd, ZodUnion: () => cf, ZodUnknown: () => Xd, ZodVoid: () => $d, ZodXID: () => nd, ZodXor: () => lf, _ZodString: () => Mu, _default: () => Rf, _function: () => cp, any: () => Yd, array: () => L, base64: () => _d, base64url: () => yd, bigint: () => Rd, boolean: () => F, catch: () => Kf, check: () => up, cidrv4: () => pd, cidrv6: () => hd, clone: () => De, codec: () => Qf, coerce: () => kp, config: () => p, core: () => nu, cuid: () => Zu, cuid2: () => $u, custom: () => dp, date: () => nf, decode: () => wu, decodeAsync: () => Eu, describe: () => mp, discriminatedUnion: () => ff, e164: () => xd, email: () => Fu, emoji: () => qu, encode: () => Cu, encodeAsync: () => Tu, endsWith: () => yc, enum: () => H, exactOptional: () => Nf, file: () => Of, flattenError: () => rt, float32: () => Md, float64: () => Nd, formatError: () => it, fromJSONSchema: () => Op, function: () => cp, getErrorMap: () => Sp, globalRegistry: () => es, gt: () => nc, gte: () => D, guid: () => Lu, hash: () => Od, hex: () => Dd, hostname: () => Ed, httpUrl: () => Gu, includes: () => _c, instanceof: () => gp, int: () => jd, int32: () => Pd, int64: () => Bd, intersection: () => mf, ipv4: () => sd, ipv6: () => dd, iso: () => cu, json: () => vp, jwt: () => Cd, keyof: () => af, ksuid: () => ad, lazy: () => ip, length: () => pc, literal: () => U, locales: () => Jo, looseObject: () => z, looseRecord: () => yf, lowercase: () => hc, lt: () => ec, lte: () => tc, mac: () => ld, map: () => xf, maxLength: () => dc, maxSize: () => cc, meta: () => hp, mime: () => xc, minLength: () => fc, minSize: () => lc, multipleOf: () => sc, nan: () => Jf, nanoid: () => Yu, nativeEnum: () => Tf, negative: () => ic, never: () => Qd, nonnegative: () => oc, nonoptional: () => Hf, nonpositive: () => ac, normalize: () => Cc, null: () => qd, nullable: () => Ff, nullish: () => If, number: () => P, object: () => R, optional: () => W, overwrite: () => Sc, parse: () => yu, parseAsync: () => bu, partialRecord: () => vf, pipe: () => Xf, positive: () => rc, prefault: () => Bf, preprocess: () => yp, prettifyError: () => st, promise: () => op, property: () => bc, readonly: () => ep, record: () => V, refine: () => fp, regex: () => mc, regexes: () => Mt, registry: () => $o, safeDecode: () => Ou, safeDecodeAsync: () => Au, safeEncode: () => Du, safeEncodeAsync: () => ku, safeParse: () => xu, safeParseAsync: () => Su, set: () => Cf, setErrorMap: () => xp, size: () => uc, slugify: () => Dc, startsWith: () => vc, strictObject: () => sf, string: () => M, stringFormat: () => Td, stringbool: () => _p, success: () => Wf, superRefine: () => pp, symbol: () => Ud, templateLiteral: () => np, toJSONSchema: () => $l, toLowerCase: () => Tc, toUpperCase: () => Ec, transform: () => Af, treeifyError: () => at, trim: () => wc, tuple: () => gf, uint32: () => Fd, uint64: () => Vd, ulid: () => td, undefined: () => Gd, union: () => B, unknown: () => I, uppercase: () => gc, url: () => Wu, util: () => ee, uuid: () => zu, uuidv4: () => Bu, uuidv6: () => Vu, uuidv7: () => Hu, void: () => ef, xid: () => rd, xor: () => uf });
5667
+ var Pp = t({ $brand: () => l, $input: () => Zo, $output: () => Xo, NEVER: () => s, TimePrecision: () => Ts, ZodAny: () => qd, ZodArray: () => nf, ZodBase64: () => hd, ZodBase64URL: () => _d, ZodBigInt: () => Id, ZodBigIntFormat: () => Rd, ZodBoolean: () => Fd, ZodCIDRv4: () => dd, ZodCIDRv6: () => pd, ZodCUID: () => Yu, ZodCUID2: () => Zu, ZodCatch: () => Wf, ZodCodec: () => Xf, ZodCustom: () => cp, ZodCustomStringFormat: () => Cd, ZodDate: () => ef, ZodDefault: () => If, ZodDiscriminatedUnion: () => uf, ZodE164: () => yd, ZodEmail: () => Nu, ZodEmoji: () => Gu, ZodEnum: () => Cf, ZodError: () => _u, ZodExactOptional: () => jf, ZodFile: () => Ef, ZodFirstPartyTypeKind: () => Sp, ZodFunction: () => op, ZodGUID: () => Fu, ZodIPv4: () => ad, ZodIPv6: () => ld, ZodISODate: () => uu, ZodISODateTime: () => cu, ZodISODuration: () => mu, ZodISOTime: () => fu, ZodIntersection: () => ff, ZodIssueCode: () => yp, ZodJWT: () => xd, ZodKSUID: () => rd, ZodLazy: () => np, ZodLiteral: () => Tf, ZodMAC: () => sd, ZodMap: () => yf, ZodNaN: () => Kf, ZodNanoID: () => qu, ZodNever: () => Xd, ZodNonOptional: () => Bf, ZodNull: () => Gd, ZodNullable: () => Nf, ZodNumber: () => Od, ZodNumberFormat: () => kd, ZodObject: () => af, ZodOptional: () => Af, ZodPipe: () => Jf, ZodPrefault: () => Rf, ZodPromise: () => ip, ZodReadonly: () => Qf, ZodRealError: () => j, ZodRecord: () => gf, ZodSet: () => xf, ZodString: () => Mu, ZodStringFormat: () => P, ZodSuccess: () => Hf, ZodSymbol: () => Vd, ZodTemplateLiteral: () => ep, ZodTransform: () => Of, ZodTuple: () => mf, ZodType: () => M, ZodULID: () => $u, ZodURL: () => Hu, ZodUUID: () => Lu, ZodUndefined: () => Ud, ZodUnion: () => sf, ZodUnknown: () => Yd, ZodVoid: () => Qd, ZodXID: () => td, ZodXor: () => cf, _ZodString: () => ju, _default: () => Lf, _function: () => sp, any: () => Jd, array: () => R, base64: () => gd, base64url: () => vd, bigint: () => Ld, boolean: () => I, catch: () => Gf, check: () => lp, cidrv4: () => fd, cidrv6: () => md, clone: () => De, codec: () => Zf, coerce: () => Op, config: () => p, core: () => tu, cuid: () => Xu, cuid2: () => Qu, custom: () => up, date: () => tf, decode: () => Cu, decodeAsync: () => Tu, describe: () => pp, discriminatedUnion: () => df, e164: () => bd, email: () => Pu, emoji: () => Ku, encode: () => Su, encodeAsync: () => wu, endsWith: () => vc, enum: () => U, exactOptional: () => Mf, file: () => Df, flattenError: () => rt, float32: () => jd, float64: () => Md, formatError: () => it, fromJSONSchema: () => Dp, function: () => sp, getErrorMap: () => xp, globalRegistry: () => D, gt: () => tc, gte: () => O, guid: () => Iu, hash: () => Dd, hex: () => Ed, hostname: () => Td, httpUrl: () => Wu, includes: () => gc, instanceof: () => hp, int: () => Ad, int32: () => Nd, int64: () => zd, intersection: () => pf, ipv4: () => od, ipv6: () => ud, iso: () => su, json: () => _p, jwt: () => Sd, keyof: () => rf, ksuid: () => id, lazy: () => rp, length: () => fc, literal: () => W, locales: () => Jo, looseObject: () => B, looseRecord: () => vf, lowercase: () => mc, lt: () => $s, lte: () => ec, mac: () => cd, map: () => bf, maxLength: () => uc, maxSize: () => sc, meta: () => mp, mime: () => bc, minLength: () => dc, minSize: () => cc, multipleOf: () => oc, nan: () => qf, nanoid: () => Ju, nativeEnum: () => wf, negative: () => rc, never: () => Zd, nonnegative: () => ac, nonoptional: () => Vf, nonpositive: () => ic, normalize: () => Sc, null: () => Kd, nullable: () => Pf, nullish: () => Ff, number: () => F, object: () => z, optional: () => G, overwrite: () => xc, parse: () => vu, parseAsync: () => yu, partialRecord: () => _f, pipe: () => Yf, positive: () => nc, prefault: () => zf, preprocess: () => vp, prettifyError: () => st, promise: () => ap, property: () => yc, readonly: () => $f, record: () => H, refine: () => dp, regex: () => pc, regexes: () => Mt, registry: () => $o, safeDecode: () => Du, safeDecodeAsync: () => ku, safeEncode: () => Eu, safeEncodeAsync: () => Ou, safeParse: () => bu, safeParseAsync: () => xu, set: () => Sf, setErrorMap: () => bp, size: () => lc, slugify: () => Ec, startsWith: () => _c, strictObject: () => of, string: () => N, stringFormat: () => wd, stringbool: () => gp, success: () => Uf, superRefine: () => fp, symbol: () => Hd, templateLiteral: () => tp, toJSONSchema: () => Ql, toLowerCase: () => wc, toUpperCase: () => Tc, transform: () => kf, treeifyError: () => at, trim: () => Cc, tuple: () => hf, uint32: () => Pd, uint64: () => Bd, ulid: () => ed, undefined: () => Wd, union: () => V, unknown: () => L, uppercase: () => hc, url: () => Uu, util: () => ee, uuid: () => Ru, uuidv4: () => zu, uuidv6: () => Bu, uuidv7: () => Vu, void: () => $d, xid: () => nd, xor: () => lf });
5668
5668
  p(_a());
5669
- var Ip = t({ $brand: () => l, $input: () => Zo, $output: () => Xo, NEVER: () => s, TimePrecision: () => Es, ZodAny: () => Jd, ZodArray: () => rf, ZodBase64: () => gd, ZodBase64URL: () => vd, ZodBigInt: () => Ld, ZodBigIntFormat: () => zd, ZodBoolean: () => Id, ZodCIDRv4: () => fd, ZodCIDRv6: () => md, ZodCUID: () => Xu, ZodCUID2: () => Qu, ZodCatch: () => Gf, ZodCodec: () => Zf, ZodCustom: () => lp, ZodCustomStringFormat: () => wd, ZodDate: () => tf, ZodDefault: () => Lf, ZodDiscriminatedUnion: () => df, ZodE164: () => bd, ZodEmail: () => Pu, ZodEmoji: () => Ku, ZodEnum: () => wf, ZodError: () => vu, ZodExactOptional: () => Mf, ZodFile: () => Df, ZodFirstPartyTypeKind: () => Cp, ZodFunction: () => sp, ZodGUID: () => Iu, ZodIPv4: () => od, ZodIPv6: () => ud, ZodISODate: () => du, ZodISODateTime: () => lu, ZodISODuration: () => hu, ZodISOTime: () => pu, ZodIntersection: () => pf, ZodIssueCode: () => bp, ZodJWT: () => Sd, ZodKSUID: () => id, ZodLazy: () => rp, ZodLiteral: () => Ef, ZodMAC: () => cd, ZodMap: () => bf, ZodNaN: () => qf, ZodNanoID: () => Ju, ZodNever: () => Zd, ZodNonOptional: () => Vf, ZodNull: () => Kd, ZodNullable: () => Pf, ZodNumber: () => kd, ZodNumberFormat: () => Ad, ZodObject: () => of, ZodOptional: () => jf, ZodPipe: () => Yf, ZodPrefault: () => zf, ZodPromise: () => ap, ZodReadonly: () => $f, ZodRealError: () => A, ZodRecord: () => _f, ZodSet: () => Sf, ZodString: () => Nu, ZodStringFormat: () => N, ZodSuccess: () => Uf, ZodSymbol: () => Hd, ZodTemplateLiteral: () => tp, ZodTransform: () => kf, ZodTuple: () => hf, ZodType: () => j, ZodULID: () => ed, ZodURL: () => Uu, ZodUUID: () => Ru, ZodUndefined: () => Wd, ZodUnion: () => cf, ZodUnknown: () => Xd, ZodVoid: () => $d, ZodXID: () => nd, ZodXor: () => lf, _ZodString: () => Mu, _default: () => Rf, _function: () => cp, any: () => Yd, array: () => L, base64: () => _d, base64url: () => yd, bigint: () => Rd, boolean: () => F, catch: () => Kf, check: () => up, cidrv4: () => pd, cidrv6: () => hd, clone: () => De, codec: () => Qf, coerce: () => kp, config: () => p, core: () => nu, cuid: () => Zu, cuid2: () => $u, custom: () => dp, date: () => nf, decode: () => wu, decodeAsync: () => Eu, describe: () => mp, discriminatedUnion: () => ff, e164: () => xd, email: () => Fu, emoji: () => qu, encode: () => Cu, encodeAsync: () => Tu, endsWith: () => yc, enum: () => H, exactOptional: () => Nf, file: () => Of, flattenError: () => rt, float32: () => Md, float64: () => Nd, formatError: () => it, fromJSONSchema: () => Op, function: () => cp, getErrorMap: () => Sp, globalRegistry: () => es, gt: () => nc, gte: () => D, guid: () => Lu, hash: () => Od, hex: () => Dd, hostname: () => Ed, httpUrl: () => Gu, includes: () => _c, instanceof: () => gp, int: () => jd, int32: () => Pd, int64: () => Bd, intersection: () => mf, ipv4: () => sd, ipv6: () => dd, iso: () => cu, json: () => vp, jwt: () => Cd, keyof: () => af, ksuid: () => ad, lazy: () => ip, length: () => pc, literal: () => U, locales: () => Jo, looseObject: () => z, looseRecord: () => yf, lowercase: () => hc, lt: () => ec, lte: () => tc, mac: () => ld, map: () => xf, maxLength: () => dc, maxSize: () => cc, meta: () => hp, mime: () => xc, minLength: () => fc, minSize: () => lc, multipleOf: () => sc, nan: () => Jf, nanoid: () => Yu, nativeEnum: () => Tf, negative: () => ic, never: () => Qd, nonnegative: () => oc, nonoptional: () => Hf, nonpositive: () => ac, normalize: () => Cc, null: () => qd, nullable: () => Ff, nullish: () => If, number: () => P, object: () => R, optional: () => W, overwrite: () => Sc, parse: () => yu, parseAsync: () => bu, partialRecord: () => vf, pipe: () => Xf, positive: () => rc, prefault: () => Bf, preprocess: () => yp, prettifyError: () => st, promise: () => op, property: () => bc, readonly: () => ep, record: () => V, refine: () => fp, regex: () => mc, regexes: () => Mt, registry: () => $o, safeDecode: () => Ou, safeDecodeAsync: () => Au, safeEncode: () => Du, safeEncodeAsync: () => ku, safeParse: () => xu, safeParseAsync: () => Su, set: () => Cf, setErrorMap: () => xp, size: () => uc, slugify: () => Dc, startsWith: () => vc, strictObject: () => sf, string: () => M, stringFormat: () => Td, stringbool: () => _p, success: () => Wf, superRefine: () => pp, symbol: () => Ud, templateLiteral: () => np, toJSONSchema: () => $l, toLowerCase: () => Tc, toUpperCase: () => Ec, transform: () => Af, treeifyError: () => at, trim: () => wc, tuple: () => gf, uint32: () => Fd, uint64: () => Vd, ulid: () => td, undefined: () => Gd, union: () => B, unknown: () => I, uppercase: () => gc, url: () => Wu, util: () => ee, uuid: () => zu, uuidv4: () => Bu, uuidv6: () => Vu, uuidv7: () => Hu, void: () => ef, xid: () => rd, xor: () => uf, z: () => Fp }), Lp = "io.modelcontextprotocol/related-task", q = dp((e4) => e4 !== null && (typeof e4 == "object" || typeof e4 == "function")), Rp = B([M(), P().int()]), zp = M();
5670
- z({ ttl: P().optional(), pollInterval: P().optional() });
5671
- var Bp = R({ ttl: P().optional() }), Vp = R({ taskId: M() }), Hp = z({ progressToken: Rp.optional(), [Lp]: Vp.optional() }), J = R({ _meta: Hp.optional() }), Up = J.extend({ task: Bp.optional() }), Wp = (e4) => Up.safeParse(e4).success, Y = R({ method: M(), params: J.loose().optional() }), Gp = R({ _meta: Hp.optional() }), Kp = R({ method: M(), params: Gp.loose().optional() }), X = z({ _meta: Hp.optional() }), qp = B([M(), P().int()]), Jp = R({ jsonrpc: U("2.0"), id: qp, ...Y.shape }).strict(), Yp = (e4) => Jp.safeParse(e4).success, Xp = R({ jsonrpc: U("2.0"), ...Kp.shape }).strict(), Zp = (e4) => Xp.safeParse(e4).success, Qp = R({ jsonrpc: U("2.0"), id: qp, result: X }).strict(), $p = (e4) => Qp.safeParse(e4).success, Z;
5669
+ var Fp = t({ $brand: () => l, $input: () => Zo, $output: () => Xo, NEVER: () => s, TimePrecision: () => Ts, ZodAny: () => qd, ZodArray: () => nf, ZodBase64: () => hd, ZodBase64URL: () => _d, ZodBigInt: () => Id, ZodBigIntFormat: () => Rd, ZodBoolean: () => Fd, ZodCIDRv4: () => dd, ZodCIDRv6: () => pd, ZodCUID: () => Yu, ZodCUID2: () => Zu, ZodCatch: () => Wf, ZodCodec: () => Xf, ZodCustom: () => cp, ZodCustomStringFormat: () => Cd, ZodDate: () => ef, ZodDefault: () => If, ZodDiscriminatedUnion: () => uf, ZodE164: () => yd, ZodEmail: () => Nu, ZodEmoji: () => Gu, ZodEnum: () => Cf, ZodError: () => _u, ZodExactOptional: () => jf, ZodFile: () => Ef, ZodFirstPartyTypeKind: () => Sp, ZodFunction: () => op, ZodGUID: () => Fu, ZodIPv4: () => ad, ZodIPv6: () => ld, ZodISODate: () => uu, ZodISODateTime: () => cu, ZodISODuration: () => mu, ZodISOTime: () => fu, ZodIntersection: () => ff, ZodIssueCode: () => yp, ZodJWT: () => xd, ZodKSUID: () => rd, ZodLazy: () => np, ZodLiteral: () => Tf, ZodMAC: () => sd, ZodMap: () => yf, ZodNaN: () => Kf, ZodNanoID: () => qu, ZodNever: () => Xd, ZodNonOptional: () => Bf, ZodNull: () => Gd, ZodNullable: () => Nf, ZodNumber: () => Od, ZodNumberFormat: () => kd, ZodObject: () => af, ZodOptional: () => Af, ZodPipe: () => Jf, ZodPrefault: () => Rf, ZodPromise: () => ip, ZodReadonly: () => Qf, ZodRealError: () => j, ZodRecord: () => gf, ZodSet: () => xf, ZodString: () => Mu, ZodStringFormat: () => P, ZodSuccess: () => Hf, ZodSymbol: () => Vd, ZodTemplateLiteral: () => ep, ZodTransform: () => Of, ZodTuple: () => mf, ZodType: () => M, ZodULID: () => $u, ZodURL: () => Hu, ZodUUID: () => Lu, ZodUndefined: () => Ud, ZodUnion: () => sf, ZodUnknown: () => Yd, ZodVoid: () => Qd, ZodXID: () => td, ZodXor: () => cf, _ZodString: () => ju, _default: () => Lf, _function: () => sp, any: () => Jd, array: () => R, base64: () => gd, base64url: () => vd, bigint: () => Ld, boolean: () => I, catch: () => Gf, check: () => lp, cidrv4: () => fd, cidrv6: () => md, clone: () => De, codec: () => Zf, coerce: () => Op, config: () => p, core: () => tu, cuid: () => Xu, cuid2: () => Qu, custom: () => up, date: () => tf, decode: () => Cu, decodeAsync: () => Tu, describe: () => pp, discriminatedUnion: () => df, e164: () => bd, email: () => Pu, emoji: () => Ku, encode: () => Su, encodeAsync: () => wu, endsWith: () => vc, enum: () => U, exactOptional: () => Mf, file: () => Df, flattenError: () => rt, float32: () => jd, float64: () => Md, formatError: () => it, fromJSONSchema: () => Dp, function: () => sp, getErrorMap: () => xp, globalRegistry: () => D, gt: () => tc, gte: () => O, guid: () => Iu, hash: () => Dd, hex: () => Ed, hostname: () => Td, httpUrl: () => Wu, includes: () => gc, instanceof: () => hp, int: () => Ad, int32: () => Nd, int64: () => zd, intersection: () => pf, ipv4: () => od, ipv6: () => ud, iso: () => su, json: () => _p, jwt: () => Sd, keyof: () => rf, ksuid: () => id, lazy: () => rp, length: () => fc, literal: () => W, locales: () => Jo, looseObject: () => B, looseRecord: () => vf, lowercase: () => mc, lt: () => $s, lte: () => ec, mac: () => cd, map: () => bf, maxLength: () => uc, maxSize: () => sc, meta: () => mp, mime: () => bc, minLength: () => dc, minSize: () => cc, multipleOf: () => oc, nan: () => qf, nanoid: () => Ju, nativeEnum: () => wf, negative: () => rc, never: () => Zd, nonnegative: () => ac, nonoptional: () => Vf, nonpositive: () => ic, normalize: () => Sc, null: () => Kd, nullable: () => Pf, nullish: () => Ff, number: () => F, object: () => z, optional: () => G, overwrite: () => xc, parse: () => vu, parseAsync: () => yu, partialRecord: () => _f, pipe: () => Yf, positive: () => nc, prefault: () => zf, preprocess: () => vp, prettifyError: () => st, promise: () => ap, property: () => yc, readonly: () => $f, record: () => H, refine: () => dp, regex: () => pc, regexes: () => Mt, registry: () => $o, safeDecode: () => Du, safeDecodeAsync: () => ku, safeEncode: () => Eu, safeEncodeAsync: () => Ou, safeParse: () => bu, safeParseAsync: () => xu, set: () => Sf, setErrorMap: () => bp, size: () => lc, slugify: () => Ec, startsWith: () => _c, strictObject: () => of, string: () => N, stringFormat: () => wd, stringbool: () => gp, success: () => Uf, superRefine: () => fp, symbol: () => Hd, templateLiteral: () => tp, toJSONSchema: () => Ql, toLowerCase: () => wc, toUpperCase: () => Tc, transform: () => kf, treeifyError: () => at, trim: () => Cc, tuple: () => hf, uint32: () => Pd, uint64: () => Bd, ulid: () => ed, undefined: () => Wd, union: () => V, unknown: () => L, uppercase: () => hc, url: () => Uu, util: () => ee, uuid: () => Ru, uuidv4: () => zu, uuidv6: () => Bu, uuidv7: () => Vu, void: () => $d, xid: () => nd, xor: () => lf, z: () => Pp }), Ip = "io.modelcontextprotocol/related-task", J = up((e4) => e4 !== null && (typeof e4 == "object" || typeof e4 == "function")), Lp = V([N(), F().int()]), Rp = N();
5670
+ B({ ttl: F().optional(), pollInterval: F().optional() });
5671
+ var zp = z({ ttl: F().optional() }), Bp = z({ taskId: N() }), Vp = B({ progressToken: Lp.optional(), [Ip]: Bp.optional() }), Hp = z({ _meta: Vp.optional() }), Up = Hp.extend({ task: zp.optional() }), Wp = (e4) => Up.safeParse(e4).success, Y = z({ method: N(), params: Hp.loose().optional() }), Gp = z({ _meta: Vp.optional() }), Kp = z({ method: N(), params: Gp.loose().optional() }), X = B({ _meta: Vp.optional() }), qp = V([N(), F().int()]), Jp = z({ jsonrpc: W("2.0"), id: qp, ...Y.shape }).strict(), Yp = (e4) => Jp.safeParse(e4).success, Xp = z({ jsonrpc: W("2.0"), ...Kp.shape }).strict(), Zp = (e4) => Xp.safeParse(e4).success, Qp = z({ jsonrpc: W("2.0"), id: qp, result: X }).strict(), $p = (e4) => Qp.safeParse(e4).success, Z;
5672
5672
  (function(e4) {
5673
5673
  e4[e4.ConnectionClosed = -32e3] = "ConnectionClosed", e4[e4.RequestTimeout = -32001] = "RequestTimeout", e4[e4.ParseError = -32700] = "ParseError", e4[e4.InvalidRequest = -32600] = "InvalidRequest", e4[e4.MethodNotFound = -32601] = "MethodNotFound", e4[e4.InvalidParams = -32602] = "InvalidParams", e4[e4.InternalError = -32603] = "InternalError", e4[e4.UrlElicitationRequired = -32042] = "UrlElicitationRequired";
5674
5674
  })(Z || (Z = {}));
5675
- var em = R({ jsonrpc: U("2.0"), id: qp.optional(), error: R({ code: P().int(), message: M(), data: I().optional() }) }).strict(), tm = (e4) => em.safeParse(e4).success, nm = B([Jp, Xp, Qp, em]);
5676
- B([Qp, em]);
5677
- var rm = X.strict(), im = Gp.extend({ requestId: qp.optional(), reason: M().optional() }), am = Kp.extend({ method: U("notifications/cancelled"), params: im }), om = R({ icons: L(R({ src: M(), mimeType: M().optional(), sizes: L(M()).optional(), theme: H(["light", "dark"]).optional() })).optional() }), sm = R({ name: M(), title: M().optional() }), cm = sm.extend({ ...sm.shape, ...om.shape, version: M(), websiteUrl: M().optional(), description: M().optional() }), lm = yp((e4) => e4 && typeof e4 == "object" && !Array.isArray(e4) && Object.keys(e4).length === 0 ? { form: {} } : e4, mf(R({ form: mf(R({ applyDefaults: F().optional() }), V(M(), I())).optional(), url: q.optional() }), V(M(), I()).optional())), um = z({ list: q.optional(), cancel: q.optional(), requests: z({ sampling: z({ createMessage: q.optional() }).optional(), elicitation: z({ create: q.optional() }).optional() }).optional() }), dm = z({ list: q.optional(), cancel: q.optional(), requests: z({ tools: z({ call: q.optional() }).optional() }).optional() }), fm = R({ experimental: V(M(), q).optional(), sampling: R({ context: q.optional(), tools: q.optional() }).optional(), elicitation: lm.optional(), roots: R({ listChanged: F().optional() }).optional(), tasks: um.optional(), extensions: V(M(), q).optional() }), pm = J.extend({ protocolVersion: M(), capabilities: fm, clientInfo: cm }), mm = Y.extend({ method: U("initialize"), params: pm }), hm = R({ experimental: V(M(), q).optional(), logging: q.optional(), completions: q.optional(), prompts: R({ listChanged: F().optional() }).optional(), resources: R({ subscribe: F().optional(), listChanged: F().optional() }).optional(), tools: R({ listChanged: F().optional() }).optional(), tasks: dm.optional(), extensions: V(M(), q).optional() }), gm = X.extend({ protocolVersion: M(), capabilities: hm, serverInfo: cm, instructions: M().optional() }), _m = Kp.extend({ method: U("notifications/initialized"), params: Gp.optional() }), vm = Y.extend({ method: U("ping"), params: J.optional() }), ym = R({ progress: P(), total: W(P()), message: W(M()) }), bm = R({ ...Gp.shape, ...ym.shape, progressToken: Rp }), xm = Kp.extend({ method: U("notifications/progress"), params: bm }), Sm = J.extend({ cursor: zp.optional() }), Cm = Y.extend({ params: Sm.optional() }), wm = X.extend({ nextCursor: zp.optional() }), Tm = H(["working", "input_required", "completed", "failed", "cancelled"]), Em = R({ taskId: M(), status: Tm, ttl: B([P(), qd()]), createdAt: M(), lastUpdatedAt: M(), pollInterval: W(P()), statusMessage: W(M()) }), Dm = X.extend({ task: Em }), Om = Gp.merge(Em), km = Kp.extend({ method: U("notifications/tasks/status"), params: Om }), Am = Y.extend({ method: U("tasks/get"), params: J.extend({ taskId: M() }) }), jm = X.merge(Em), Mm = Y.extend({ method: U("tasks/result"), params: J.extend({ taskId: M() }) });
5675
+ var em = z({ jsonrpc: W("2.0"), id: qp.optional(), error: z({ code: F().int(), message: N(), data: L().optional() }) }).strict(), tm = (e4) => em.safeParse(e4).success, nm = V([Jp, Xp, Qp, em]);
5676
+ V([Qp, em]);
5677
+ var rm = X.strict(), im = Gp.extend({ requestId: qp.optional(), reason: N().optional() }), am = Kp.extend({ method: W("notifications/cancelled"), params: im }), om = z({ icons: R(z({ src: N(), mimeType: N().optional(), sizes: R(N()).optional(), theme: U(["light", "dark"]).optional() })).optional() }), sm = z({ name: N(), title: N().optional() }), cm = sm.extend({ ...sm.shape, ...om.shape, version: N(), websiteUrl: N().optional(), description: N().optional() }), lm = vp((e4) => e4 && typeof e4 == "object" && !Array.isArray(e4) && Object.keys(e4).length === 0 ? { form: {} } : e4, pf(z({ form: pf(z({ applyDefaults: I().optional() }), H(N(), L())).optional(), url: J.optional() }), H(N(), L()).optional())), um = B({ list: J.optional(), cancel: J.optional(), requests: B({ sampling: B({ createMessage: J.optional() }).optional(), elicitation: B({ create: J.optional() }).optional() }).optional() }), dm = B({ list: J.optional(), cancel: J.optional(), requests: B({ tools: B({ call: J.optional() }).optional() }).optional() }), fm = z({ experimental: H(N(), J).optional(), sampling: z({ context: J.optional(), tools: J.optional() }).optional(), elicitation: lm.optional(), roots: z({ listChanged: I().optional() }).optional(), tasks: um.optional(), extensions: H(N(), J).optional() }), pm = Hp.extend({ protocolVersion: N(), capabilities: fm, clientInfo: cm }), mm = Y.extend({ method: W("initialize"), params: pm }), hm = z({ experimental: H(N(), J).optional(), logging: J.optional(), completions: J.optional(), prompts: z({ listChanged: I().optional() }).optional(), resources: z({ subscribe: I().optional(), listChanged: I().optional() }).optional(), tools: z({ listChanged: I().optional() }).optional(), tasks: dm.optional(), extensions: H(N(), J).optional() }), gm = X.extend({ protocolVersion: N(), capabilities: hm, serverInfo: cm, instructions: N().optional() }), _m = Kp.extend({ method: W("notifications/initialized"), params: Gp.optional() }), vm = Y.extend({ method: W("ping"), params: Hp.optional() }), ym = z({ progress: F(), total: G(F()), message: G(N()) }), bm = z({ ...Gp.shape, ...ym.shape, progressToken: Lp }), xm = Kp.extend({ method: W("notifications/progress"), params: bm }), Sm = Hp.extend({ cursor: Rp.optional() }), Cm = Y.extend({ params: Sm.optional() }), wm = X.extend({ nextCursor: Rp.optional() }), Tm = U(["working", "input_required", "completed", "failed", "cancelled"]), Em = z({ taskId: N(), status: Tm, ttl: V([F(), Kd()]), createdAt: N(), lastUpdatedAt: N(), pollInterval: G(F()), statusMessage: G(N()) }), Dm = X.extend({ task: Em }), Om = Gp.merge(Em), km = Kp.extend({ method: W("notifications/tasks/status"), params: Om }), Am = Y.extend({ method: W("tasks/get"), params: Hp.extend({ taskId: N() }) }), jm = X.merge(Em), Mm = Y.extend({ method: W("tasks/result"), params: Hp.extend({ taskId: N() }) });
5678
5678
  X.loose();
5679
- var Nm = Cm.extend({ method: U("tasks/list") }), Pm = wm.extend({ tasks: L(Em) }), Fm = Y.extend({ method: U("tasks/cancel"), params: J.extend({ taskId: M() }) }), Im = X.merge(Em), Lm = R({ uri: M(), mimeType: W(M()), _meta: V(M(), I()).optional() }), Rm = Lm.extend({ text: M() }), zm = M().refine((e4) => {
5679
+ var Nm = Cm.extend({ method: W("tasks/list") }), Pm = wm.extend({ tasks: R(Em) }), Fm = Y.extend({ method: W("tasks/cancel"), params: Hp.extend({ taskId: N() }) }), Im = X.merge(Em), Lm = z({ uri: N(), mimeType: G(N()), _meta: H(N(), L()).optional() }), Rm = Lm.extend({ text: N() }), zm = N().refine((e4) => {
5680
5680
  try {
5681
5681
  return atob(e4), true;
5682
5682
  } catch (e5) {
5683
5683
  return false;
5684
5684
  }
5685
- }, { message: "Invalid Base64 string" }), Bm = Lm.extend({ blob: zm }), Vm = H(["user", "assistant"]), Hm = R({ audience: L(Vm).optional(), priority: P().min(0).max(1).optional(), lastModified: uu({ offset: true }).optional() }), Um = R({ ...sm.shape, ...om.shape, uri: M(), description: W(M()), mimeType: W(M()), size: W(P()), annotations: Hm.optional(), _meta: W(z({})) }), Wm = R({ ...sm.shape, ...om.shape, uriTemplate: M(), description: W(M()), mimeType: W(M()), annotations: Hm.optional(), _meta: W(z({})) }), Gm = Cm.extend({ method: U("resources/list") }), Km = wm.extend({ resources: L(Um) }), qm = Cm.extend({ method: U("resources/templates/list") }), Jm = wm.extend({ resourceTemplates: L(Wm) }), Ym = J.extend({ uri: M() }), Xm = Ym, Zm = Y.extend({ method: U("resources/read"), params: Xm }), Qm = X.extend({ contents: L(B([Rm, Bm])) }), $m = Kp.extend({ method: U("notifications/resources/list_changed"), params: Gp.optional() }), eh = Ym, th = Y.extend({ method: U("resources/subscribe"), params: eh }), nh = Ym, rh = Y.extend({ method: U("resources/unsubscribe"), params: nh }), ih = Gp.extend({ uri: M() }), ah = Kp.extend({ method: U("notifications/resources/updated"), params: ih }), oh = R({ name: M(), description: W(M()), required: W(F()) }), sh = R({ ...sm.shape, ...om.shape, description: W(M()), arguments: W(L(oh)), _meta: W(z({})) }), ch = Cm.extend({ method: U("prompts/list") }), lh = wm.extend({ prompts: L(sh) }), uh = J.extend({ name: M(), arguments: V(M(), M()).optional() }), dh = Y.extend({ method: U("prompts/get"), params: uh }), fh = R({ type: U("text"), text: M(), annotations: Hm.optional(), _meta: V(M(), I()).optional() }), ph = R({ type: U("image"), data: zm, mimeType: M(), annotations: Hm.optional(), _meta: V(M(), I()).optional() }), mh = R({ type: U("audio"), data: zm, mimeType: M(), annotations: Hm.optional(), _meta: V(M(), I()).optional() }), hh = R({ type: U("tool_use"), name: M(), id: M(), input: V(M(), I()), _meta: V(M(), I()).optional() }), gh = R({ type: U("resource"), resource: B([Rm, Bm]), annotations: Hm.optional(), _meta: V(M(), I()).optional() }), _h = Um.extend({ type: U("resource_link") }), vh = B([fh, ph, mh, _h, gh]), yh = R({ role: Vm, content: vh }), bh = X.extend({ description: M().optional(), messages: L(yh) }), xh = Kp.extend({ method: U("notifications/prompts/list_changed"), params: Gp.optional() }), Sh = R({ title: M().optional(), readOnlyHint: F().optional(), destructiveHint: F().optional(), idempotentHint: F().optional(), openWorldHint: F().optional() }), Ch = R({ taskSupport: H(["required", "optional", "forbidden"]).optional() }), wh = R({ ...sm.shape, ...om.shape, description: M().optional(), inputSchema: R({ type: U("object"), properties: V(M(), q).optional(), required: L(M()).optional() }).catchall(I()), outputSchema: R({ type: U("object"), properties: V(M(), q).optional(), required: L(M()).optional() }).catchall(I()).optional(), annotations: Sh.optional(), execution: Ch.optional(), _meta: V(M(), I()).optional() }), Th = Cm.extend({ method: U("tools/list") }), Eh = wm.extend({ tools: L(wh) }), Dh = X.extend({ content: L(vh).default([]), structuredContent: V(M(), I()).optional(), isError: F().optional() });
5686
- Dh.or(X.extend({ toolResult: I() }));
5687
- var Oh = Up.extend({ name: M(), arguments: V(M(), I()).optional() }), kh = Y.extend({ method: U("tools/call"), params: Oh }), Ah = Kp.extend({ method: U("notifications/tools/list_changed"), params: Gp.optional() });
5688
- R({ autoRefresh: F().default(true), debounceMs: P().int().nonnegative().default(300) });
5689
- var jh = H(["debug", "info", "notice", "warning", "error", "critical", "alert", "emergency"]), Mh = J.extend({ level: jh }), Nh = Y.extend({ method: U("logging/setLevel"), params: Mh }), Ph = Gp.extend({ level: jh, logger: M().optional(), data: I() }), Fh = Kp.extend({ method: U("notifications/message"), params: Ph }), Ih = R({ hints: L(R({ name: M().optional() })).optional(), costPriority: P().min(0).max(1).optional(), speedPriority: P().min(0).max(1).optional(), intelligencePriority: P().min(0).max(1).optional() }), Lh = R({ mode: H(["auto", "required", "none"]).optional() }), Rh = R({ type: U("tool_result"), toolUseId: M().describe("The unique identifier for the corresponding tool call."), content: L(vh).default([]), structuredContent: R({}).loose().optional(), isError: F().optional(), _meta: V(M(), I()).optional() }), zh = ff("type", [fh, ph, mh]), Bh = ff("type", [fh, ph, mh, hh, Rh]), Vh = R({ role: Vm, content: B([Bh, L(Bh)]), _meta: V(M(), I()).optional() }), Hh = Up.extend({ messages: L(Vh), modelPreferences: Ih.optional(), systemPrompt: M().optional(), includeContext: H(["none", "thisServer", "allServers"]).optional(), temperature: P().optional(), maxTokens: P().int(), stopSequences: L(M()).optional(), metadata: q.optional(), tools: L(wh).optional(), toolChoice: Lh.optional() }), Uh = Y.extend({ method: U("sampling/createMessage"), params: Hh }), Wh = X.extend({ model: M(), stopReason: W(H(["endTurn", "stopSequence", "maxTokens"]).or(M())), role: Vm, content: zh }), Gh = X.extend({ model: M(), stopReason: W(H(["endTurn", "stopSequence", "maxTokens", "toolUse"]).or(M())), role: Vm, content: B([Bh, L(Bh)]) }), Kh = R({ type: U("boolean"), title: M().optional(), description: M().optional(), default: F().optional() }), qh = R({ type: U("string"), title: M().optional(), description: M().optional(), minLength: P().optional(), maxLength: P().optional(), format: H(["email", "uri", "date", "date-time"]).optional(), default: M().optional() }), Jh = R({ type: H(["number", "integer"]), title: M().optional(), description: M().optional(), minimum: P().optional(), maximum: P().optional(), default: P().optional() }), Yh = R({ type: U("string"), title: M().optional(), description: M().optional(), enum: L(M()), default: M().optional() }), Xh = R({ type: U("string"), title: M().optional(), description: M().optional(), oneOf: L(R({ const: M(), title: M() })), default: M().optional() }), Zh = B([B([R({ type: U("string"), title: M().optional(), description: M().optional(), enum: L(M()), enumNames: L(M()).optional(), default: M().optional() }), B([Yh, Xh]), B([R({ type: U("array"), title: M().optional(), description: M().optional(), minItems: P().optional(), maxItems: P().optional(), items: R({ type: U("string"), enum: L(M()) }), default: L(M()).optional() }), R({ type: U("array"), title: M().optional(), description: M().optional(), minItems: P().optional(), maxItems: P().optional(), items: R({ anyOf: L(R({ const: M(), title: M() })) }), default: L(M()).optional() })])]), Kh, qh, Jh]), Qh = B([Up.extend({ mode: U("form").optional(), message: M(), requestedSchema: R({ type: U("object"), properties: V(M(), Zh), required: L(M()).optional() }) }), Up.extend({ mode: U("url"), message: M(), elicitationId: M(), url: M().url() })]), $h = Y.extend({ method: U("elicitation/create"), params: Qh }), eg = Gp.extend({ elicitationId: M() }), tg = Kp.extend({ method: U("notifications/elicitation/complete"), params: eg }), ng = X.extend({ action: H(["accept", "decline", "cancel"]), content: yp((e4) => e4 === null ? void 0 : e4, V(M(), B([M(), P(), F(), L(M())])).optional()) }), rg = R({ type: U("ref/resource"), uri: M() }), ig = R({ type: U("ref/prompt"), name: M() }), ag = J.extend({ ref: B([ig, rg]), argument: R({ name: M(), value: M() }), context: R({ arguments: V(M(), M()).optional() }).optional() }), og = Y.extend({ method: U("completion/complete"), params: ag }), sg = X.extend({ completion: z({ values: L(M()).max(100), total: W(P().int()), hasMore: W(F()) }) }), cg = R({ uri: M().startsWith("file://"), name: M().optional(), _meta: V(M(), I()).optional() }), lg = Y.extend({ method: U("roots/list"), params: J.optional() }), ug = X.extend({ roots: L(cg) }), dg = Kp.extend({ method: U("notifications/roots/list_changed"), params: Gp.optional() });
5690
- B([vm, mm, og, Nh, dh, ch, Gm, qm, Zm, th, rh, kh, Th, Am, Mm, Nm, Fm]), B([am, xm, _m, dg, km]), B([rm, Wh, Gh, ng, ug, jm, Pm, Dm]), B([vm, Uh, $h, lg, Am, Mm, Nm, Fm]), B([am, xm, Fh, ah, $m, Ah, xh, km, tg]), B([rm, gm, sg, bh, lh, Km, Jm, Qm, Dh, Eh, jm, Pm, Dm]);
5685
+ }, { message: "Invalid Base64 string" }), Bm = Lm.extend({ blob: zm }), Vm = U(["user", "assistant"]), Hm = z({ audience: R(Vm).optional(), priority: F().min(0).max(1).optional(), lastModified: lu({ offset: true }).optional() }), Um = z({ ...sm.shape, ...om.shape, uri: N(), description: G(N()), mimeType: G(N()), size: G(F()), annotations: Hm.optional(), _meta: G(B({})) }), Wm = z({ ...sm.shape, ...om.shape, uriTemplate: N(), description: G(N()), mimeType: G(N()), annotations: Hm.optional(), _meta: G(B({})) }), Gm = Cm.extend({ method: W("resources/list") }), Km = wm.extend({ resources: R(Um) }), qm = Cm.extend({ method: W("resources/templates/list") }), Jm = wm.extend({ resourceTemplates: R(Wm) }), Ym = Hp.extend({ uri: N() }), Xm = Ym, Zm = Y.extend({ method: W("resources/read"), params: Xm }), Qm = X.extend({ contents: R(V([Rm, Bm])) }), $m = Kp.extend({ method: W("notifications/resources/list_changed"), params: Gp.optional() }), eh = Ym, th = Y.extend({ method: W("resources/subscribe"), params: eh }), nh = Ym, rh = Y.extend({ method: W("resources/unsubscribe"), params: nh }), ih = Gp.extend({ uri: N() }), ah = Kp.extend({ method: W("notifications/resources/updated"), params: ih }), oh = z({ name: N(), description: G(N()), required: G(I()) }), sh = z({ ...sm.shape, ...om.shape, description: G(N()), arguments: G(R(oh)), _meta: G(B({})) }), ch = Cm.extend({ method: W("prompts/list") }), lh = wm.extend({ prompts: R(sh) }), uh = Hp.extend({ name: N(), arguments: H(N(), N()).optional() }), dh = Y.extend({ method: W("prompts/get"), params: uh }), fh = z({ type: W("text"), text: N(), annotations: Hm.optional(), _meta: H(N(), L()).optional() }), ph = z({ type: W("image"), data: zm, mimeType: N(), annotations: Hm.optional(), _meta: H(N(), L()).optional() }), mh = z({ type: W("audio"), data: zm, mimeType: N(), annotations: Hm.optional(), _meta: H(N(), L()).optional() }), hh = z({ type: W("tool_use"), name: N(), id: N(), input: H(N(), L()), _meta: H(N(), L()).optional() }), gh = z({ type: W("resource"), resource: V([Rm, Bm]), annotations: Hm.optional(), _meta: H(N(), L()).optional() }), _h = Um.extend({ type: W("resource_link") }), vh = V([fh, ph, mh, _h, gh]), yh = z({ role: Vm, content: vh }), bh = X.extend({ description: N().optional(), messages: R(yh) }), xh = Kp.extend({ method: W("notifications/prompts/list_changed"), params: Gp.optional() }), Sh = z({ title: N().optional(), readOnlyHint: I().optional(), destructiveHint: I().optional(), idempotentHint: I().optional(), openWorldHint: I().optional() }), Ch = z({ taskSupport: U(["required", "optional", "forbidden"]).optional() }), wh = z({ ...sm.shape, ...om.shape, description: N().optional(), inputSchema: z({ type: W("object"), properties: H(N(), J).optional(), required: R(N()).optional() }).catchall(L()), outputSchema: z({ type: W("object"), properties: H(N(), J).optional(), required: R(N()).optional() }).catchall(L()).optional(), annotations: Sh.optional(), execution: Ch.optional(), _meta: H(N(), L()).optional() }), Th = Cm.extend({ method: W("tools/list") }), Eh = wm.extend({ tools: R(wh) }), Dh = X.extend({ content: R(vh).default([]), structuredContent: H(N(), L()).optional(), isError: I().optional() });
5686
+ Dh.or(X.extend({ toolResult: L() }));
5687
+ var Oh = Up.extend({ name: N(), arguments: H(N(), L()).optional() }), kh = Y.extend({ method: W("tools/call"), params: Oh }), Ah = Kp.extend({ method: W("notifications/tools/list_changed"), params: Gp.optional() });
5688
+ z({ autoRefresh: I().default(true), debounceMs: F().int().nonnegative().default(300) });
5689
+ var jh = U(["debug", "info", "notice", "warning", "error", "critical", "alert", "emergency"]), Mh = Hp.extend({ level: jh }), Nh = Y.extend({ method: W("logging/setLevel"), params: Mh }), Ph = Gp.extend({ level: jh, logger: N().optional(), data: L() }), Fh = Kp.extend({ method: W("notifications/message"), params: Ph }), Ih = z({ hints: R(z({ name: N().optional() })).optional(), costPriority: F().min(0).max(1).optional(), speedPriority: F().min(0).max(1).optional(), intelligencePriority: F().min(0).max(1).optional() }), Lh = z({ mode: U(["auto", "required", "none"]).optional() }), Rh = z({ type: W("tool_result"), toolUseId: N().describe("The unique identifier for the corresponding tool call."), content: R(vh).default([]), structuredContent: z({}).loose().optional(), isError: I().optional(), _meta: H(N(), L()).optional() }), zh = df("type", [fh, ph, mh]), Bh = df("type", [fh, ph, mh, hh, Rh]), Vh = z({ role: Vm, content: V([Bh, R(Bh)]), _meta: H(N(), L()).optional() }), Hh = Up.extend({ messages: R(Vh), modelPreferences: Ih.optional(), systemPrompt: N().optional(), includeContext: U(["none", "thisServer", "allServers"]).optional(), temperature: F().optional(), maxTokens: F().int(), stopSequences: R(N()).optional(), metadata: J.optional(), tools: R(wh).optional(), toolChoice: Lh.optional() }), Uh = Y.extend({ method: W("sampling/createMessage"), params: Hh }), Wh = X.extend({ model: N(), stopReason: G(U(["endTurn", "stopSequence", "maxTokens"]).or(N())), role: Vm, content: zh }), Gh = X.extend({ model: N(), stopReason: G(U(["endTurn", "stopSequence", "maxTokens", "toolUse"]).or(N())), role: Vm, content: V([Bh, R(Bh)]) }), Kh = z({ type: W("boolean"), title: N().optional(), description: N().optional(), default: I().optional() }), qh = z({ type: W("string"), title: N().optional(), description: N().optional(), minLength: F().optional(), maxLength: F().optional(), format: U(["email", "uri", "date", "date-time"]).optional(), default: N().optional() }), Jh = z({ type: U(["number", "integer"]), title: N().optional(), description: N().optional(), minimum: F().optional(), maximum: F().optional(), default: F().optional() }), Yh = z({ type: W("string"), title: N().optional(), description: N().optional(), enum: R(N()), default: N().optional() }), Xh = z({ type: W("string"), title: N().optional(), description: N().optional(), oneOf: R(z({ const: N(), title: N() })), default: N().optional() }), Zh = V([V([z({ type: W("string"), title: N().optional(), description: N().optional(), enum: R(N()), enumNames: R(N()).optional(), default: N().optional() }), V([Yh, Xh]), V([z({ type: W("array"), title: N().optional(), description: N().optional(), minItems: F().optional(), maxItems: F().optional(), items: z({ type: W("string"), enum: R(N()) }), default: R(N()).optional() }), z({ type: W("array"), title: N().optional(), description: N().optional(), minItems: F().optional(), maxItems: F().optional(), items: z({ anyOf: R(z({ const: N(), title: N() })) }), default: R(N()).optional() })])]), Kh, qh, Jh]), Qh = V([Up.extend({ mode: W("form").optional(), message: N(), requestedSchema: z({ type: W("object"), properties: H(N(), Zh), required: R(N()).optional() }) }), Up.extend({ mode: W("url"), message: N(), elicitationId: N(), url: N().url() })]), $h = Y.extend({ method: W("elicitation/create"), params: Qh }), eg = Gp.extend({ elicitationId: N() }), tg = Kp.extend({ method: W("notifications/elicitation/complete"), params: eg }), ng = X.extend({ action: U(["accept", "decline", "cancel"]), content: vp((e4) => e4 === null ? void 0 : e4, H(N(), V([N(), F(), I(), R(N())])).optional()) }), rg = z({ type: W("ref/resource"), uri: N() }), ig = z({ type: W("ref/prompt"), name: N() }), ag = Hp.extend({ ref: V([ig, rg]), argument: z({ name: N(), value: N() }), context: z({ arguments: H(N(), N()).optional() }).optional() }), og = Y.extend({ method: W("completion/complete"), params: ag }), sg = X.extend({ completion: B({ values: R(N()).max(100), total: G(F().int()), hasMore: G(I()) }) }), cg = z({ uri: N().startsWith("file://"), name: N().optional(), _meta: H(N(), L()).optional() }), lg = Y.extend({ method: W("roots/list"), params: Hp.optional() }), ug = X.extend({ roots: R(cg) }), dg = Kp.extend({ method: W("notifications/roots/list_changed"), params: Gp.optional() });
5690
+ V([vm, mm, og, Nh, dh, ch, Gm, qm, Zm, th, rh, kh, Th, Am, Mm, Nm, Fm]), V([am, xm, _m, dg, km]), V([rm, Wh, Gh, ng, ug, jm, Pm, Dm]), V([vm, Uh, $h, lg, Am, Mm, Nm, Fm]), V([am, xm, Fh, ah, $m, Ah, xh, km, tg]), V([rm, gm, sg, bh, lh, Km, Jm, Qm, Dh, Eh, jm, Pm, Dm]);
5691
5691
  var Q = class e2 extends Error {
5692
5692
  constructor(e4, t2, n2) {
5693
5693
  super("MCP error ".concat(e4, ": ").concat(t2)), this.code = e4, this.data = n2, this.name = "McpError";
@@ -5712,14 +5712,14 @@ function pg(e4) {
5712
5712
  return e4 === "completed" || e4 === "failed" || e4 === "cancelled";
5713
5713
  }
5714
5714
  function mg(e4) {
5715
- let t2 = au(e4), n2 = t2 == null ? void 0 : t2.method;
5715
+ let t2 = iu(e4), n2 = t2 == null ? void 0 : t2.method;
5716
5716
  if (!n2) throw Error("Schema is missing a method literal");
5717
- let r2 = ou(n2);
5717
+ let r2 = au(n2);
5718
5718
  if (typeof r2 != "string") throw Error("Schema method literal must be a string");
5719
5719
  return r2;
5720
5720
  }
5721
5721
  function hg(e4, t2) {
5722
- let n2 = iu(e4, t2);
5722
+ let n2 = ru(e4, t2);
5723
5723
  if (!n2.success) throw n2.error;
5724
5724
  return n2.data;
5725
5725
  }
@@ -5761,7 +5761,7 @@ var gg = 6e4, _g = class {
5761
5761
  if (!pg(a2.status)) return await this._waitForTaskUpdate(r2, t2.signal), await n2();
5762
5762
  if (pg(a2.status)) {
5763
5763
  let e6 = await this._taskStore.getTaskResult(r2, t2.sessionId);
5764
- return this._clearTaskQueue(r2), { ...e6, _meta: { ...e6._meta, [Lp]: { taskId: r2 } } };
5764
+ return this._clearTaskQueue(r2), { ...e6, _meta: { ...e6._meta, [Ip]: { taskId: r2 } } };
5765
5765
  }
5766
5766
  return await n2();
5767
5767
  };
@@ -5984,7 +5984,7 @@ var gg = 6e4, _g = class {
5984
5984
  }
5985
5985
  if (o2 && (h2.params = { ...h2.params, task: o2 }), s2) {
5986
5986
  var re2;
5987
- h2.params = { ...h2.params, _meta: { ...((re2 = h2.params) == null ? void 0 : re2._meta) || {}, [Lp]: s2 } };
5987
+ h2.params = { ...h2.params, _meta: { ...((re2 = h2.params) == null ? void 0 : re2._meta) || {}, [Ip]: s2 } };
5988
5988
  }
5989
5989
  let g2 = (e5) => {
5990
5990
  var t3;
@@ -5995,7 +5995,7 @@ var gg = 6e4, _g = class {
5995
5995
  if (!(!(n2 == null || (r3 = n2.signal) == null) && r3.aborted)) {
5996
5996
  if (e5 instanceof Error) return l2(e5);
5997
5997
  try {
5998
- let n3 = iu(t2, e5.result);
5998
+ let n3 = ru(t2, e5.result);
5999
5999
  n3.success ? c2(n3.data) : l2(n3.error);
6000
6000
  } catch (e6) {
6001
6001
  l2(e6);
@@ -6037,7 +6037,7 @@ var gg = 6e4, _g = class {
6037
6037
  let a2 = t2 == null || (n2 = t2.relatedTask) == null ? void 0 : n2.taskId;
6038
6038
  if (a2) {
6039
6039
  var o2;
6040
- let n3 = { ...e4, jsonrpc: "2.0", params: { ...e4.params, _meta: { ...((o2 = e4.params) == null ? void 0 : o2._meta) || {}, [Lp]: t2.relatedTask } } };
6040
+ let n3 = { ...e4, jsonrpc: "2.0", params: { ...e4.params, _meta: { ...((o2 = e4.params) == null ? void 0 : o2._meta) || {}, [Ip]: t2.relatedTask } } };
6041
6041
  await this._enqueueTaskMessage(a2, { type: "notification", message: n3, timestamp: Date.now() });
6042
6042
  return;
6043
6043
  }
@@ -6049,7 +6049,7 @@ var gg = 6e4, _g = class {
6049
6049
  let r3 = { ...e4, jsonrpc: "2.0" };
6050
6050
  if (t2 != null && t2.relatedTask) {
6051
6051
  var i3;
6052
- r3 = { ...r3, params: { ...r3.params, _meta: { ...((i3 = r3.params) == null ? void 0 : i3._meta) || {}, [Lp]: t2.relatedTask } } };
6052
+ r3 = { ...r3, params: { ...r3.params, _meta: { ...((i3 = r3.params) == null ? void 0 : i3._meta) || {}, [Ip]: t2.relatedTask } } };
6053
6053
  }
6054
6054
  (n3 = this._transport) == null || n3.send(r3, t2).catch((e5) => this._onerror(e5));
6055
6055
  });
@@ -6058,7 +6058,7 @@ var gg = 6e4, _g = class {
6058
6058
  let s2 = { ...e4, jsonrpc: "2.0" };
6059
6059
  if (t2 != null && t2.relatedTask) {
6060
6060
  var c2;
6061
- s2 = { ...s2, params: { ...s2.params, _meta: { ...((c2 = s2.params) == null ? void 0 : c2._meta) || {}, [Lp]: t2.relatedTask } } };
6061
+ s2 = { ...s2, params: { ...s2.params, _meta: { ...((c2 = s2.params) == null ? void 0 : c2._meta) || {}, [Ip]: t2.relatedTask } } };
6062
6062
  }
6063
6063
  await this._transport.send(s2, t2);
6064
6064
  }
@@ -6283,29 +6283,29 @@ var wg = class extends _g {
6283
6283
  var e4;
6284
6284
  window.removeEventListener("message", this.messageListener), (e4 = this.onclose) == null || e4.call(this);
6285
6285
  }
6286
- }, Dg = B([U("light"), U("dark")]).describe("Color theme preference for the host environment."), Og = B([U("inline"), U("fullscreen"), U("pip")]).describe("Display mode for UI presentation."), kg = V(B([U("--color-background-primary"), U("--color-background-secondary"), U("--color-background-tertiary"), U("--color-background-inverse"), U("--color-background-ghost"), U("--color-background-info"), U("--color-background-danger"), U("--color-background-success"), U("--color-background-warning"), U("--color-background-disabled"), U("--color-text-primary"), U("--color-text-secondary"), U("--color-text-tertiary"), U("--color-text-inverse"), U("--color-text-ghost"), U("--color-text-info"), U("--color-text-danger"), U("--color-text-success"), U("--color-text-warning"), U("--color-text-disabled"), U("--color-border-primary"), U("--color-border-secondary"), U("--color-border-tertiary"), U("--color-border-inverse"), U("--color-border-ghost"), U("--color-border-info"), U("--color-border-danger"), U("--color-border-success"), U("--color-border-warning"), U("--color-border-disabled"), U("--color-ring-primary"), U("--color-ring-secondary"), U("--color-ring-inverse"), U("--color-ring-info"), U("--color-ring-danger"), U("--color-ring-success"), U("--color-ring-warning"), U("--font-sans"), U("--font-mono"), U("--font-weight-normal"), U("--font-weight-medium"), U("--font-weight-semibold"), U("--font-weight-bold"), U("--font-text-xs-size"), U("--font-text-sm-size"), U("--font-text-md-size"), U("--font-text-lg-size"), U("--font-heading-xs-size"), U("--font-heading-sm-size"), U("--font-heading-md-size"), U("--font-heading-lg-size"), U("--font-heading-xl-size"), U("--font-heading-2xl-size"), U("--font-heading-3xl-size"), U("--font-text-xs-line-height"), U("--font-text-sm-line-height"), U("--font-text-md-line-height"), U("--font-text-lg-line-height"), U("--font-heading-xs-line-height"), U("--font-heading-sm-line-height"), U("--font-heading-md-line-height"), U("--font-heading-lg-line-height"), U("--font-heading-xl-line-height"), U("--font-heading-2xl-line-height"), U("--font-heading-3xl-line-height"), U("--border-radius-xs"), U("--border-radius-sm"), U("--border-radius-md"), U("--border-radius-lg"), U("--border-radius-xl"), U("--border-radius-full"), U("--border-width-regular"), U("--shadow-hairline"), U("--shadow-sm"), U("--shadow-md"), U("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming.").describe("Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses `Record<K, string | undefined>` rather than `Partial<Record<K, string>>`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation."), B([M(), Gd()]).describe("Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses `Record<K, string | undefined>` rather than `Partial<Record<K, string>>`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation.")).describe("Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses `Record<K, string | undefined>` rather than `Partial<Record<K, string>>`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation.");
6287
- R({ method: U("ui/open-link"), params: R({ url: M().describe("URL to open in the host's browser") }) });
6288
- var Ag = R({ isError: F().optional().describe("True if the host failed to open the URL (e.g., due to security policy).") }).passthrough(), jg = R({ isError: F().optional().describe("True if the download failed (e.g., user cancelled or host denied).") }).passthrough(), Mg = R({ isError: F().optional().describe("True if the host rejected or failed to deliver the message.") }).passthrough();
6289
- R({ method: U("ui/notifications/sandbox-proxy-ready"), params: R({}) });
6290
- var Ng = R({ connectDomains: L(M()).optional().describe("Origins for network requests (fetch/XHR/WebSocket).\n\n- Maps to CSP `connect-src` directive\n- Empty or omitted \u2192 no network connections (secure default)"), resourceDomains: L(M()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted \u2192 no network resources (secure default)"), frameDomains: L(M()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted \u2192 no nested iframes allowed (`frame-src 'none'`)"), baseUriDomains: L(M()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted \u2192 only same origin allowed (`base-uri 'self'`)") }), Pg = R({ camera: R({}).optional().describe("Request camera access.\n\nMaps to Permission Policy `camera` feature."), microphone: R({}).optional().describe("Request microphone access.\n\nMaps to Permission Policy `microphone` feature."), geolocation: R({}).optional().describe("Request geolocation access.\n\nMaps to Permission Policy `geolocation` feature."), clipboardWrite: R({}).optional().describe("Request clipboard write access.\n\nMaps to Permission Policy `clipboard-write` feature.") });
6291
- R({ method: U("ui/notifications/size-changed"), params: R({ width: P().optional().describe("New width in pixels."), height: P().optional().describe("New height in pixels.") }) });
6292
- var Fg = R({ method: U("ui/notifications/tool-input"), params: R({ arguments: V(M(), I().describe("Complete tool call arguments as key-value pairs.")).optional().describe("Complete tool call arguments as key-value pairs.") }) }), Ig = R({ method: U("ui/notifications/tool-input-partial"), params: R({ arguments: V(M(), I().describe("Partial tool call arguments (incomplete, may change).")).optional().describe("Partial tool call arguments (incomplete, may change).") }) }), Lg = R({ method: U("ui/notifications/tool-cancelled"), params: R({ reason: M().optional().describe('Optional reason for the cancellation (e.g., "user action", "timeout").') }) }), Rg = R({ fonts: M().optional() }), zg = R({ variables: kg.optional().describe("CSS variables for theming the app."), css: Rg.optional().describe("CSS blocks that apps can inject.") }), Bg = R({ method: U("ui/resource-teardown"), params: R({}) });
6293
- V(M(), I());
6294
- var Vg = R({ text: R({}).optional().describe("Host supports text content blocks."), image: R({}).optional().describe("Host supports image content blocks."), audio: R({}).optional().describe("Host supports audio content blocks."), resource: R({}).optional().describe("Host supports resource content blocks."), resourceLink: R({}).optional().describe("Host supports resource link content blocks."), structuredContent: R({}).optional().describe("Host supports structured content.") });
6295
- R({ method: U("ui/notifications/request-teardown"), params: R({}).optional() });
6296
- var Hg = R({ experimental: R({}).optional().describe("Experimental features (structure TBD)."), openLinks: R({}).optional().describe("Host supports opening external URLs."), downloadFile: R({}).optional().describe("Host supports file downloads via ui/download-file."), serverTools: R({ listChanged: F().optional().describe("Host supports tools/list_changed notifications.") }).optional().describe("Host can proxy tool calls to the MCP server."), serverResources: R({ listChanged: F().optional().describe("Host supports resources/list_changed notifications.") }).optional().describe("Host can proxy resource reads to the MCP server."), logging: R({}).optional().describe("Host accepts log messages."), sandbox: R({ permissions: Pg.optional().describe("Permissions granted by the host (camera, microphone, geolocation)."), csp: Ng.optional().describe("CSP domains approved by the host.") }).optional().describe("Sandbox configuration applied by the host."), updateModelContext: Vg.optional().describe("Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns."), message: Vg.optional().describe("Host supports receiving content messages (ui/message) from the view."), sampling: R({ tools: R({}).optional().describe("Host supports tool use via `tools` and `toolChoice` parameters.") }).optional().describe("Host supports LLM sampling (sampling/createMessage) from the view.\nMirrors the MCP `ClientCapabilities.sampling` shape so hosts can pass it through.") }), Ug = R({ experimental: R({}).optional().describe("Experimental features (structure TBD)."), tools: R({ listChanged: F().optional().describe("App supports tools/list_changed notifications.") }).optional().describe("App exposes MCP-style tools that the host can call."), availableDisplayModes: L(Og).optional().describe("Display modes the app supports.") });
6297
- R({ method: U("ui/notifications/initialized"), params: R({}).optional() }), R({ csp: Ng.optional().describe("Content Security Policy configuration for UI resources."), permissions: Pg.optional().describe("Sandbox permissions requested by the UI resource."), domain: M().optional().describe("Dedicated origin for view sandbox.\n\nUseful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists.\n\n**Host-dependent:** The format and validation rules for this field are determined by each host. Servers MUST consult host-specific documentation for the expected domain format. Common patterns include:\n- Hash-based subdomains (e.g., `{hash}.claudemcpcontent.com`)\n- URL-derived subdomains (e.g., `www-example-com.oaiusercontent.com`)\n\nIf omitted, host uses default sandbox origin (typically per-conversation)."), prefersBorder: F().optional().describe("Visual boundary preference - true if view prefers a visible border.\n\nBoolean requesting whether a visible border and background is provided by the host. Specifying an explicit value for this is recommended because hosts' defaults may vary.\n\n- `true`: request visible border + background\n- `false`: request no visible border + background\n- omitted: host decides border") }), R({ method: U("ui/request-display-mode"), params: R({ mode: Og.describe("The display mode being requested.") }) });
6298
- var Wg = R({ mode: Og.describe("The display mode that was actually set. May differ from requested if not supported.") }).passthrough(), Gg = B([U("model"), U("app")]).describe("Tool visibility scope - who can access the tool.");
6299
- R({ resourceUri: M().optional(), visibility: L(Gg).optional().describe('Who can access this tool. Default: ["model", "app"]\n- "model": Tool visible to and callable by the agent\n- "app": Tool callable by the app from this server only'), csp: Qd().optional(), permissions: Qd().optional() }), R({ mimeTypes: L(M()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.') }), R({ method: U("ui/download-file"), params: R({ contents: L(B([gh, _h])).describe("Resource contents to download \u2014 embedded (inline data) or linked (host fetches). Uses standard MCP resource types.") }) }), R({ method: U("ui/message"), params: R({ role: U("user").describe('Message role, currently only "user" is supported.'), content: L(vh).describe("Message content blocks (text, image, etc.).") }) }), R({ method: U("ui/notifications/sandbox-resource-ready"), params: R({ html: M().describe("HTML content to load into the inner iframe."), sandbox: M().optional().describe("Optional override for the inner iframe's sandbox attribute."), csp: Ng.optional().describe("CSP configuration from resource metadata."), permissions: Pg.optional().describe("Sandbox permissions from resource metadata.") }) });
6300
- var Kg = R({ method: U("ui/notifications/tool-result"), params: Dh.describe("Standard MCP tool execution result.") }), qg = R({ toolInfo: R({ id: qp.optional().describe("JSON-RPC id of the tools/call request."), tool: wh.describe("Tool definition including name, inputSchema, etc.") }).optional().describe("Metadata of the tool call that instantiated this App."), theme: Dg.optional().describe("Current color theme preference."), styles: zg.optional().describe("Style configuration for theming the app."), displayMode: Og.optional().describe("How the UI is currently displayed."), availableDisplayModes: L(Og).optional().describe("Display modes the host supports."), containerDimensions: B([R({ height: P().describe("Fixed container height in pixels.") }), R({ maxHeight: B([P(), Gd()]).optional().describe("Maximum container height in pixels.") })]).and(B([R({ width: P().describe("Fixed container width in pixels.") }), R({ maxWidth: B([P(), Gd()]).optional().describe("Maximum container width in pixels.") })])).optional().describe("Container dimensions. Represents the dimensions of the iframe or other\ncontainer holding the app. Specify either width or maxWidth, and either height or maxHeight."), locale: M().optional().describe("User's language and region preference in BCP 47 format."), timeZone: M().optional().describe("User's timezone in IANA format."), userAgent: M().optional().describe("Host application identifier."), platform: B([U("web"), U("desktop"), U("mobile")]).optional().describe("Platform type for responsive design decisions."), deviceCapabilities: R({ touch: F().optional().describe("Whether the device supports touch input."), hover: F().optional().describe("Whether the device supports hover interactions.") }).optional().describe("Device input capabilities."), safeAreaInsets: R({ top: P().describe("Top safe area inset in pixels."), right: P().describe("Right safe area inset in pixels."), bottom: P().describe("Bottom safe area inset in pixels."), left: P().describe("Left safe area inset in pixels.") }).optional().describe("Mobile safe area boundaries in pixels.") }).passthrough(), Jg = R({ method: U("ui/notifications/host-context-changed"), params: qg.describe("Partial context update containing only changed fields.") });
6301
- R({ method: U("ui/update-model-context"), params: R({ content: L(vh).optional().describe("Context content blocks (text, image, etc.)."), structuredContent: V(M(), I().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.") }) }), R({ method: U("ui/initialize"), params: R({ appInfo: cm.describe("App identification (name and version)."), appCapabilities: Ug.describe("Features and capabilities this app provides."), protocolVersion: M().describe("Protocol version this app supports.") }) });
6302
- var Yg = R({ protocolVersion: M().describe('Negotiated protocol version string (e.g., "2025-11-21").'), hostInfo: cm.describe("Host application identification and version."), hostCapabilities: Hg.describe("Features and capabilities provided by the host."), hostContext: qg.describe("Rich context about the host environment.") }).passthrough(), Xg = { target: "draft-2020-12" };
6286
+ }, Dg = V([W("light"), W("dark")]).describe("Color theme preference for the host environment."), Og = V([W("inline"), W("fullscreen"), W("pip")]).describe("Display mode for UI presentation."), kg = H(V([W("--color-background-primary"), W("--color-background-secondary"), W("--color-background-tertiary"), W("--color-background-inverse"), W("--color-background-ghost"), W("--color-background-info"), W("--color-background-danger"), W("--color-background-success"), W("--color-background-warning"), W("--color-background-disabled"), W("--color-text-primary"), W("--color-text-secondary"), W("--color-text-tertiary"), W("--color-text-inverse"), W("--color-text-ghost"), W("--color-text-info"), W("--color-text-danger"), W("--color-text-success"), W("--color-text-warning"), W("--color-text-disabled"), W("--color-border-primary"), W("--color-border-secondary"), W("--color-border-tertiary"), W("--color-border-inverse"), W("--color-border-ghost"), W("--color-border-info"), W("--color-border-danger"), W("--color-border-success"), W("--color-border-warning"), W("--color-border-disabled"), W("--color-ring-primary"), W("--color-ring-secondary"), W("--color-ring-inverse"), W("--color-ring-info"), W("--color-ring-danger"), W("--color-ring-success"), W("--color-ring-warning"), W("--font-sans"), W("--font-mono"), W("--font-weight-normal"), W("--font-weight-medium"), W("--font-weight-semibold"), W("--font-weight-bold"), W("--font-text-xs-size"), W("--font-text-sm-size"), W("--font-text-md-size"), W("--font-text-lg-size"), W("--font-heading-xs-size"), W("--font-heading-sm-size"), W("--font-heading-md-size"), W("--font-heading-lg-size"), W("--font-heading-xl-size"), W("--font-heading-2xl-size"), W("--font-heading-3xl-size"), W("--font-text-xs-line-height"), W("--font-text-sm-line-height"), W("--font-text-md-line-height"), W("--font-text-lg-line-height"), W("--font-heading-xs-line-height"), W("--font-heading-sm-line-height"), W("--font-heading-md-line-height"), W("--font-heading-lg-line-height"), W("--font-heading-xl-line-height"), W("--font-heading-2xl-line-height"), W("--font-heading-3xl-line-height"), W("--border-radius-xs"), W("--border-radius-sm"), W("--border-radius-md"), W("--border-radius-lg"), W("--border-radius-xl"), W("--border-radius-full"), W("--border-width-regular"), W("--shadow-hairline"), W("--shadow-sm"), W("--shadow-md"), W("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming.").describe("Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses `Record<K, string | undefined>` rather than `Partial<Record<K, string>>`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation."), V([N(), Wd()]).describe("Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses `Record<K, string | undefined>` rather than `Partial<Record<K, string>>`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation.")).describe("Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses `Record<K, string | undefined>` rather than `Partial<Record<K, string>>`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation.");
6287
+ z({ method: W("ui/open-link"), params: z({ url: N().describe("URL to open in the host's browser") }) });
6288
+ var Ag = z({ isError: I().optional().describe("True if the host failed to open the URL (e.g., due to security policy).") }).passthrough(), jg = z({ isError: I().optional().describe("True if the download failed (e.g., user cancelled or host denied).") }).passthrough(), Mg = z({ isError: I().optional().describe("True if the host rejected or failed to deliver the message.") }).passthrough();
6289
+ z({ method: W("ui/notifications/sandbox-proxy-ready"), params: z({}) });
6290
+ var Ng = z({ connectDomains: R(N()).optional().describe("Origins for network requests (fetch/XHR/WebSocket).\n\n- Maps to CSP `connect-src` directive\n- Empty or omitted \u2192 no network connections (secure default)"), resourceDomains: R(N()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted \u2192 no network resources (secure default)"), frameDomains: R(N()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted \u2192 no nested iframes allowed (`frame-src 'none'`)"), baseUriDomains: R(N()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted \u2192 only same origin allowed (`base-uri 'self'`)") }), Pg = z({ camera: z({}).optional().describe("Request camera access.\n\nMaps to Permission Policy `camera` feature."), microphone: z({}).optional().describe("Request microphone access.\n\nMaps to Permission Policy `microphone` feature."), geolocation: z({}).optional().describe("Request geolocation access.\n\nMaps to Permission Policy `geolocation` feature."), clipboardWrite: z({}).optional().describe("Request clipboard write access.\n\nMaps to Permission Policy `clipboard-write` feature.") });
6291
+ z({ method: W("ui/notifications/size-changed"), params: z({ width: F().optional().describe("New width in pixels."), height: F().optional().describe("New height in pixels.") }) });
6292
+ var Fg = z({ method: W("ui/notifications/tool-input"), params: z({ arguments: H(N(), L().describe("Complete tool call arguments as key-value pairs.")).optional().describe("Complete tool call arguments as key-value pairs.") }) }), Ig = z({ method: W("ui/notifications/tool-input-partial"), params: z({ arguments: H(N(), L().describe("Partial tool call arguments (incomplete, may change).")).optional().describe("Partial tool call arguments (incomplete, may change).") }) }), Lg = z({ method: W("ui/notifications/tool-cancelled"), params: z({ reason: N().optional().describe('Optional reason for the cancellation (e.g., "user action", "timeout").') }) }), Rg = z({ fonts: N().optional() }), zg = z({ variables: kg.optional().describe("CSS variables for theming the app."), css: Rg.optional().describe("CSS blocks that apps can inject.") }), Bg = z({ method: W("ui/resource-teardown"), params: z({}) });
6293
+ H(N(), L());
6294
+ var Vg = z({ text: z({}).optional().describe("Host supports text content blocks."), image: z({}).optional().describe("Host supports image content blocks."), audio: z({}).optional().describe("Host supports audio content blocks."), resource: z({}).optional().describe("Host supports resource content blocks."), resourceLink: z({}).optional().describe("Host supports resource link content blocks."), structuredContent: z({}).optional().describe("Host supports structured content.") });
6295
+ z({ method: W("ui/notifications/request-teardown"), params: z({}).optional() });
6296
+ var Hg = z({ experimental: z({}).optional().describe("Experimental features (structure TBD)."), openLinks: z({}).optional().describe("Host supports opening external URLs."), downloadFile: z({}).optional().describe("Host supports file downloads via ui/download-file."), serverTools: z({ listChanged: I().optional().describe("Host supports tools/list_changed notifications.") }).optional().describe("Host can proxy tool calls to the MCP server."), serverResources: z({ listChanged: I().optional().describe("Host supports resources/list_changed notifications.") }).optional().describe("Host can proxy resource reads to the MCP server."), logging: z({}).optional().describe("Host accepts log messages."), sandbox: z({ permissions: Pg.optional().describe("Permissions granted by the host (camera, microphone, geolocation)."), csp: Ng.optional().describe("CSP domains approved by the host.") }).optional().describe("Sandbox configuration applied by the host."), updateModelContext: Vg.optional().describe("Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns."), message: Vg.optional().describe("Host supports receiving content messages (ui/message) from the view."), sampling: z({ tools: z({}).optional().describe("Host supports tool use via `tools` and `toolChoice` parameters.") }).optional().describe("Host supports LLM sampling (sampling/createMessage) from the view.\nMirrors the MCP `ClientCapabilities.sampling` shape so hosts can pass it through.") }), Ug = z({ experimental: z({}).optional().describe("Experimental features (structure TBD)."), tools: z({ listChanged: I().optional().describe("App supports tools/list_changed notifications.") }).optional().describe("App exposes MCP-style tools that the host can call."), availableDisplayModes: R(Og).optional().describe("Display modes the app supports.") });
6297
+ z({ method: W("ui/notifications/initialized"), params: z({}).optional() }), z({ csp: Ng.optional().describe("Content Security Policy configuration for UI resources."), permissions: Pg.optional().describe("Sandbox permissions requested by the UI resource."), domain: N().optional().describe("Dedicated origin for view sandbox.\n\nUseful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists.\n\n**Host-dependent:** The format and validation rules for this field are determined by each host. Servers MUST consult host-specific documentation for the expected domain format. Common patterns include:\n- Hash-based subdomains (e.g., `{hash}.claudemcpcontent.com`)\n- URL-derived subdomains (e.g., `www-example-com.oaiusercontent.com`)\n\nIf omitted, host uses default sandbox origin (typically per-conversation)."), prefersBorder: I().optional().describe("Visual boundary preference - true if view prefers a visible border.\n\nBoolean requesting whether a visible border and background is provided by the host. Specifying an explicit value for this is recommended because hosts' defaults may vary.\n\n- `true`: request visible border + background\n- `false`: request no visible border + background\n- omitted: host decides border") }), z({ method: W("ui/request-display-mode"), params: z({ mode: Og.describe("The display mode being requested.") }) });
6298
+ var Wg = z({ mode: Og.describe("The display mode that was actually set. May differ from requested if not supported.") }).passthrough(), Gg = V([W("model"), W("app")]).describe("Tool visibility scope - who can access the tool.");
6299
+ z({ resourceUri: N().optional(), visibility: R(Gg).optional().describe('Who can access this tool. Default: ["model", "app"]\n- "model": Tool visible to and callable by the agent\n- "app": Tool callable by the app from this server only'), csp: Zd().optional(), permissions: Zd().optional() }), z({ mimeTypes: R(N()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.') }), z({ method: W("ui/download-file"), params: z({ contents: R(V([gh, _h])).describe("Resource contents to download \u2014 embedded (inline data) or linked (host fetches). Uses standard MCP resource types.") }) }), z({ method: W("ui/message"), params: z({ role: W("user").describe('Message role, currently only "user" is supported.'), content: R(vh).describe("Message content blocks (text, image, etc.).") }) }), z({ method: W("ui/notifications/sandbox-resource-ready"), params: z({ html: N().describe("HTML content to load into the inner iframe."), sandbox: N().optional().describe("Optional override for the inner iframe's sandbox attribute."), csp: Ng.optional().describe("CSP configuration from resource metadata."), permissions: Pg.optional().describe("Sandbox permissions from resource metadata.") }) });
6300
+ var Kg = z({ method: W("ui/notifications/tool-result"), params: Dh.describe("Standard MCP tool execution result.") }), qg = z({ toolInfo: z({ id: qp.optional().describe("JSON-RPC id of the tools/call request."), tool: wh.describe("Tool definition including name, inputSchema, etc.") }).optional().describe("Metadata of the tool call that instantiated this App."), theme: Dg.optional().describe("Current color theme preference."), styles: zg.optional().describe("Style configuration for theming the app."), displayMode: Og.optional().describe("How the UI is currently displayed."), availableDisplayModes: R(Og).optional().describe("Display modes the host supports."), containerDimensions: V([z({ height: F().describe("Fixed container height in pixels.") }), z({ maxHeight: V([F(), Wd()]).optional().describe("Maximum container height in pixels.") })]).and(V([z({ width: F().describe("Fixed container width in pixels.") }), z({ maxWidth: V([F(), Wd()]).optional().describe("Maximum container width in pixels.") })])).optional().describe("Container dimensions. Represents the dimensions of the iframe or other\ncontainer holding the app. Specify either width or maxWidth, and either height or maxHeight."), locale: N().optional().describe("User's language and region preference in BCP 47 format."), timeZone: N().optional().describe("User's timezone in IANA format."), userAgent: N().optional().describe("Host application identifier."), platform: V([W("web"), W("desktop"), W("mobile")]).optional().describe("Platform type for responsive design decisions."), deviceCapabilities: z({ touch: I().optional().describe("Whether the device supports touch input."), hover: I().optional().describe("Whether the device supports hover interactions.") }).optional().describe("Device input capabilities."), safeAreaInsets: z({ top: F().describe("Top safe area inset in pixels."), right: F().describe("Right safe area inset in pixels."), bottom: F().describe("Bottom safe area inset in pixels."), left: F().describe("Left safe area inset in pixels.") }).optional().describe("Mobile safe area boundaries in pixels.") }).passthrough(), Jg = z({ method: W("ui/notifications/host-context-changed"), params: qg.describe("Partial context update containing only changed fields.") });
6301
+ z({ method: W("ui/update-model-context"), params: z({ content: R(vh).optional().describe("Context content blocks (text, image, etc.)."), structuredContent: H(N(), L().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.") }) }), z({ method: W("ui/initialize"), params: z({ appInfo: cm.describe("App identification (name and version)."), appCapabilities: Ug.describe("Features and capabilities this app provides."), protocolVersion: N().describe("Protocol version this app supports.") }) });
6302
+ var Yg = z({ protocolVersion: N().describe('Negotiated protocol version string (e.g., "2025-11-21").'), hostInfo: cm.describe("Host application identification and version."), hostCapabilities: Hg.describe("Features and capabilities provided by the host."), hostContext: qg.describe("Rich context about the host environment.") }).passthrough(), Xg = { target: "draft-2020-12" };
6303
6303
  async function Zg(e4, t2) {
6304
6304
  let n2 = e4["~standard"];
6305
6305
  if (n2.jsonSchema) return n2.jsonSchema[t2](Xg);
6306
6306
  if (n2.vendor === "zod") {
6307
6307
  let { z: n3 } = await Cg(async () => {
6308
- let { z: e5 } = await Promise.resolve().then(() => Ip);
6308
+ let { z: e5 } = await Promise.resolve().then(() => Fp);
6309
6309
  return { z: e5 };
6310
6310
  }, __VITE_PRELOAD__);
6311
6311
  return n3.toJSONSchema(e4, { io: t2 });
@@ -6324,7 +6324,15 @@ async function Qg(e4, t2, n2 = "") {
6324
6324
  }
6325
6325
  return r2.value;
6326
6326
  }
6327
- var $g = class e3 extends wg {
6327
+ function $g(e4, t2 = document.documentElement) {
6328
+ for (let [n2, r2] of Object.entries(e4)) r2 !== void 0 && t2.style.setProperty(n2, r2);
6329
+ }
6330
+ function e_(e4) {
6331
+ if (document.getElementById("__mcp-host-fonts")) return;
6332
+ let t2 = document.createElement("style");
6333
+ t2.id = "__mcp-host-fonts", t2.textContent = e4, document.head.appendChild(t2);
6334
+ }
6335
+ var t_ = class e3 extends wg {
6328
6336
  _assertInitialized(e4) {
6329
6337
  var t2;
6330
6338
  if (this._initializedSent) return;
@@ -6556,58 +6564,60 @@ var $g = class e3 extends wg {
6556
6564
  }
6557
6565
  }
6558
6566
  };
6559
- o($g, "ONE_SHOT_EVENTS", /* @__PURE__ */ new Set(["toolinput", "toolinputpartial", "toolresult", "toolcancelled"]));
6560
- function e_(e4, t2) {
6567
+ o(t_, "ONE_SHOT_EVENTS", /* @__PURE__ */ new Set(["toolinput", "toolinputpartial", "toolresult", "toolcancelled"]));
6568
+ function n_(e4, t2) {
6561
6569
  var n2, r2, i2, a2, o2, s2;
6562
6570
  let c2 = document.getElementById(t2), l2 = c2 == null ? void 0 : c2.querySelector("#btn-zoom-in"), u2 = c2 == null ? void 0 : c2.querySelector("#btn-zoom-out"), d2 = c2 == null ? void 0 : c2.querySelector("#btn-reset-view");
6563
6571
  c2 && (c2.hidden = false);
6564
6572
  let f2 = (n2 = (r2 = e4.getAttribute("viewBox")) == null ? void 0 : r2.split(/[\s,]+/).map(Number)) == null ? [0, 0, 500, 500] : n2, p2 = (i2 = f2[0]) == null ? 0 : i2, ee2 = (a2 = f2[1]) == null ? 0 : a2, te2 = (o2 = f2[2]) == null ? 500 : o2, m2 = (s2 = f2[3]) == null ? 500 : s2, h2 = te2 / 5, ne2 = te2 * 2, re2 = p2, g2 = ee2, _2 = te2, v2 = m2;
6565
- e4.style.touchAction = "none";
6566
- let ie2 = () => e4.setAttribute("viewBox", "".concat(re2, " ").concat(g2, " ").concat(_2, " ").concat(v2)), ae2 = (e5, t3, n3) => {
6573
+ e4.classList.add("oe-pannable");
6574
+ let ie2 = () => document.body.classList.contains("is-fullscreen"), ae2 = () => e4.setAttribute("viewBox", "".concat(re2, " ").concat(g2, " ").concat(_2, " ").concat(v2)), oe2 = (e5, t3, n3) => {
6567
6575
  t3 === void 0 && (t3 = re2 + _2 / 2), n3 === void 0 && (n3 = g2 + v2 / 2);
6568
6576
  let r3 = _2 * e5;
6569
- r3 < h2 && (r3 = h2), r3 > ne2 && (r3 = ne2), r3 !== _2 && (e5 = r3 / _2, re2 = t3 - (t3 - re2) * e5, g2 = n3 - (n3 - g2) * e5, _2 = r3, v2 *= e5, ie2());
6577
+ r3 < h2 && (r3 = h2), r3 > ne2 && (r3 = ne2), r3 !== _2 && (e5 = r3 / _2, re2 = t3 - (t3 - re2) * e5, g2 = n3 - (n3 - g2) * e5, _2 = r3, v2 *= e5, ae2());
6570
6578
  };
6571
- l2 == null || l2.addEventListener("click", () => ae2(0.8)), u2 == null || u2.addEventListener("click", () => ae2(1.25)), d2 == null || d2.addEventListener("click", () => {
6572
- re2 = p2, g2 = ee2, _2 = te2, v2 = m2, ie2();
6579
+ l2 == null || l2.addEventListener("click", () => oe2(0.8)), u2 == null || u2.addEventListener("click", () => oe2(1.25)), d2 == null || d2.addEventListener("click", () => {
6580
+ re2 = p2, g2 = ee2, _2 = te2, v2 = m2, ae2();
6573
6581
  });
6574
- let oe2 = (t3, n3) => {
6582
+ let se2 = (t3, n3) => {
6575
6583
  let r3 = e4.getBoundingClientRect();
6576
6584
  return { x: re2 + (t3 - r3.left) / r3.width * _2, y: g2 + (n3 - r3.top) / r3.height * v2 };
6577
6585
  };
6578
6586
  e4.addEventListener("wheel", (e5) => {
6587
+ if (!ie2() && !e5.ctrlKey && !e5.metaKey) return;
6579
6588
  e5.preventDefault();
6580
- let t3 = Math.exp((e5.deltaY < 0 ? -1 : 1) * 0.1), n3 = oe2(e5.clientX, e5.clientY);
6581
- ae2(t3, n3.x, n3.y);
6589
+ let t3 = Math.exp((e5.deltaY < 0 ? -1 : 1) * 0.1), n3 = se2(e5.clientX, e5.clientY);
6590
+ oe2(t3, n3.x, n3.y);
6582
6591
  }, { passive: false });
6583
- let y2 = /* @__PURE__ */ new Map(), se2 = null, b2 = () => {
6592
+ let y2 = /* @__PURE__ */ new Map(), b2 = null, ce2 = () => {
6584
6593
  let [e5, t3] = [...y2.values()];
6585
6594
  return { dist: Math.hypot(e5.x - t3.x, e5.y - t3.y), midX: (e5.x + t3.x) / 2, midY: (e5.y + t3.y) / 2 };
6586
- }, ce2 = (t3, n3) => {
6595
+ }, le2 = (t3, n3) => {
6587
6596
  let r3 = e4.getBoundingClientRect();
6588
- re2 -= t3 / r3.width * _2, g2 -= n3 / r3.height * v2, ie2();
6597
+ re2 -= t3 / r3.width * _2, g2 -= n3 / r3.height * v2, ae2();
6589
6598
  };
6590
6599
  e4.addEventListener("pointerdown", (t3) => {
6600
+ if (t3.pointerType === "touch" && !ie2()) return;
6591
6601
  let n3 = t3.target, r3 = !!(n3.closest && (n3.closest('[class*="-hit"]') || n3.closest('[class*="-activation"]') || n3.closest(".variable-arrow") || n3.closest("button")));
6592
- y2.set(t3.pointerId, { x: t3.clientX, y: t3.clientY, interactive: r3 }), r3 || (e4.setPointerCapture(t3.pointerId), e4.style.cursor = "grabbing"), y2.size === 2 && (se2 = b2());
6602
+ y2.set(t3.pointerId, { x: t3.clientX, y: t3.clientY, interactive: r3 }), r3 || (e4.setPointerCapture(t3.pointerId), e4.style.cursor = "grabbing"), y2.size === 2 && (b2 = ce2());
6593
6603
  }), e4.addEventListener("pointermove", (e5) => {
6594
6604
  let t3 = y2.get(e5.pointerId);
6595
- if (t3) if (y2.set(e5.pointerId, { x: e5.clientX, y: e5.clientY, interactive: t3.interactive }), y2.size >= 2 && se2) {
6596
- let e6 = b2();
6597
- if (se2.dist > 0 && e6.dist > 0) {
6598
- let t4 = oe2(e6.midX, e6.midY);
6599
- ae2(se2.dist / e6.dist, t4.x, t4.y);
6600
- }
6601
- ce2(e6.midX - se2.midX, e6.midY - se2.midY), se2 = e6;
6602
- } else y2.size === 1 && !t3.interactive && ce2(e5.clientX - t3.x, e5.clientY - t3.y);
6605
+ if (t3) if (y2.set(e5.pointerId, { x: e5.clientX, y: e5.clientY, interactive: t3.interactive }), y2.size >= 2 && b2) {
6606
+ let e6 = ce2();
6607
+ if (b2.dist > 0 && e6.dist > 0) {
6608
+ let t4 = se2(e6.midX, e6.midY);
6609
+ oe2(b2.dist / e6.dist, t4.x, t4.y);
6610
+ }
6611
+ le2(e6.midX - b2.midX, e6.midY - b2.midY), b2 = e6;
6612
+ } else y2.size === 1 && !t3.interactive && le2(e5.clientX - t3.x, e5.clientY - t3.y);
6603
6613
  });
6604
- let le2 = (t3) => {
6605
- y2.delete(t3.pointerId) && (e4.hasPointerCapture(t3.pointerId) && e4.releasePointerCapture(t3.pointerId), se2 = y2.size >= 2 ? b2() : null, y2.size === 0 && (e4.style.cursor = "default"));
6614
+ let ue2 = (t3) => {
6615
+ y2.delete(t3.pointerId) && (e4.hasPointerCapture(t3.pointerId) && e4.releasePointerCapture(t3.pointerId), b2 = y2.size >= 2 ? ce2() : null, y2.size === 0 && (e4.style.cursor = "default"));
6606
6616
  };
6607
- e4.addEventListener("pointerup", le2), e4.addEventListener("pointercancel", le2);
6617
+ e4.addEventListener("pointerup", ue2), e4.addEventListener("pointercancel", ue2);
6608
6618
  }
6609
- var t_ = 60, n_ = 740, r_ = 80, i_ = 420, a_ = (n_ - t_) / 3, o_ = a_ * 0.72, s_ = ["year", "month", "day", "hour"], c_ = { year: "Year", month: "Month", day: "Day", hour: "Hour" }, l_ = "http://www.w3.org/2000/svg";
6610
- function u_(e4, t2, n2) {
6619
+ var r_ = 60, i_ = 740, a_ = 80, o_ = 420, s_ = (i_ - r_) / 3, c_ = s_ * 0.72, l_ = ["year", "month", "day", "hour"], u_ = { year: "Year", month: "Month", day: "Day", hour: "Hour" }, d_ = "http://www.w3.org/2000/svg";
6620
+ function f_(e4, t2, n2) {
6611
6621
  let r2 = e4.querySelector("#pan-zoom-controls");
6612
6622
  e4.innerHTML = "", r2 && e4.appendChild(r2);
6613
6623
  let i2 = document.createElement("div");
@@ -6615,13 +6625,13 @@ function u_(e4, t2, n2) {
6615
6625
  let a2 = i2.querySelector("svg");
6616
6626
  if (!a2) return console.error("[wire-bazi-svg] No <svg> element found in payload"), null;
6617
6627
  a2.setAttribute("width", "100%"), a2.setAttribute("height", "100%"), a2.setAttribute("role", "group"), a2.setAttribute("aria-label", "BaZi Four Pillars Chart"), a2.addEventListener("click", (e5) => e5.stopPropagation());
6618
- let o2 = document.createElementNS(l_, "g");
6619
- o2.setAttribute("id", "pillar-hit-overlay"), s_.forEach((e5, t3) => {
6620
- let n3 = t_ + t3 * a_, r3 = document.createElementNS(l_, "rect");
6621
- r3.setAttribute("x", String(n3 - o_ / 2)), r3.setAttribute("y", String(r_)), r3.setAttribute("width", String(o_)), r3.setAttribute("height", String(i_)), r3.setAttribute("fill", "transparent"), r3.setAttribute("class", "pillar-hit"), r3.setAttribute("data-pillar", e5), r3.setAttribute("tabindex", "0"), r3.setAttribute("role", "button"), r3.setAttribute("aria-label", "".concat(c_[e5], " pillar \u2014 click to interpret")), o2.appendChild(r3);
6622
- }), a2.appendChild(o2), e4.appendChild(a2), e_(a2, "pan-zoom-controls");
6628
+ let o2 = document.createElementNS(d_, "g");
6629
+ o2.setAttribute("id", "pillar-hit-overlay"), l_.forEach((e5, t3) => {
6630
+ let n3 = r_ + t3 * s_, r3 = document.createElementNS(d_, "rect");
6631
+ r3.setAttribute("x", String(n3 - c_ / 2)), r3.setAttribute("y", String(a_)), r3.setAttribute("width", String(c_)), r3.setAttribute("height", String(o_)), r3.setAttribute("fill", "transparent"), r3.setAttribute("class", "pillar-hit"), r3.setAttribute("data-pillar", e5), r3.setAttribute("tabindex", "0"), r3.setAttribute("role", "button"), r3.setAttribute("aria-label", "".concat(u_[e5], " pillar \u2014 click to interpret")), o2.appendChild(r3);
6632
+ }), a2.appendChild(o2), e4.appendChild(a2), n_(a2, "pan-zoom-controls");
6623
6633
  function s2(e5) {
6624
- n2.onPillarClick(e5, s_.indexOf(e5));
6634
+ n2.onPillarClick(e5, l_.indexOf(e5));
6625
6635
  }
6626
6636
  return o2.addEventListener("click", (e5) => {
6627
6637
  var t3, n3;
@@ -6634,13 +6644,13 @@ function u_(e4, t2, n2) {
6634
6644
  });
6635
6645
  }), a2;
6636
6646
  }
6637
- var d_ = { "chart-wheel": { stripIcon: "\u2726", stripTitle: "About the Natal Chart", stripHints: ["Click any <strong>planet</strong> for a deep placement reading", "Click any <strong>aspect line</strong> for its dynamic interpretation", "Click any <strong>house cusp</strong> for house themes", "Use the <strong>date controls</strong> to move through time"], modalText: "This wheel is an exact celestial snapshot of the sky at a given moment and place \u2014 every planet, house, and aspect line is clickable." }, "bi-wheel": { stripIcon: "\u2295", stripTitle: "About the Bi-Wheel", stripHints: ["Click any <strong>inner planet</strong> for natal placement depth", "Click any <strong>outer planet</strong> for transit or synastry meaning", "Click a <strong>cross-aspect line</strong> for inter-chart dynamics", "Use the <strong>date controls</strong> to advance transits"], modalText: "Two charts are layered here \u2014 the inner wheel is the natal chart; the outer ring shows the second chart (transits or another person's planets)." }, bodygraph: { stripIcon: "\u25C8", stripTitle: "About the Bodygraph", stripHints: ["Click any <strong>center</strong> (defined or undefined) for its meaning", "Click any <strong>channel</strong> to explore its life theme", "Click any <strong>gate number</strong> for its I Ching hexagram reading", "Click a <strong>planet row</strong> in the sidebar for its HD role"], modalText: "The bodygraph is a living map of the energy centres, channels, and gates that define a Human Design chart." }, "vedic-chart": { stripIcon: "\u{1F549}", stripTitle: "About the Jyotish Chart", stripHints: ["Click any <strong>rashi cell</strong> for its themes and any planets placed there", "The <strong>diagonal mark</strong> shows the Lagna (Ascendant) rashi", "Use the <strong>action bar</strong> for a full chart interpretation", "Click <strong>Moon &amp; Nakshatra</strong> for lunar mansion detail"], modalText: "This is a Vedic birth chart rendered as a South Indian Rashi grid \u2014 sidereal planetary placements by fixed sign." }, "transit-timeline": { stripIcon: "\u2604", stripTitle: "About the Transit Timeline", stripHints: ["Each entry is an <strong>exact transit hit</strong> \u2014 a transiting planet contacting a natal point", "Events are <strong>grouped by month</strong> in chronological order", "The <strong>\u211E marker</strong> flags a retrograde crossing", "Click any transit for a focused <strong>interpretation</strong>"], modalText: "This timeline lists upcoming transits to the natal chart \u2014 the exact dates outer-planet energies activate each placement." }, "moon-phase": { stripIcon: "\u263E", stripTitle: "About the Moon Phase Dial", stripHints: ["Click the <strong>Moon</strong> for its phase interpretation", "Click the <strong>Void-of-Course</strong> card when the Moon is VOC", "Use the <strong>date control</strong> to move the sky to any moment"], modalText: "The dial shows the Moon's live illumination, phase, sign, and void-of-course status for the selected moment." }, bazi: { stripIcon: "\u56DB", stripTitle: "About the BaZi Chart", stripHints: ["Click any <strong>pillar</strong> (Year, Month, Day, Hour) for its interpretation", "The <strong>Day Master</strong> is the core identity element", "The <strong>Wu Xing bar</strong> shows the Five Element balance"], modalText: "This BaZi (Four Pillars of Destiny) chart maps the Heavenly Stems and Earthly Branches present at a given moment of birth." } }, f_ = '\n .oe-welcome-backdrop {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: oklch(0% 0 0 / 0.55);\n backdrop-filter: blur(8px);\n -webkit-backdrop-filter: blur(8px);\n z-index: 9999;\n display: flex;\n align-items: center;\n justify-content: center;\n animation: oe-fade-in 0.4s ease both;\n font-family: system-ui, sans-serif;\n }\n\n .oe-welcome-modal {\n /* Themed, not hardcoded: the title/text/hints below all resolve through\n var(--text\u2026), so a fixed dark surface here meant that once the light\n palette became reachable the modal rendered near-black text on a\n near-black card \u2014 1.09:1, effectively invisible. The fallback is the\n previous literal, and every app\'s dark --surface is oklch(11-12%), so\n dark rendering is unchanged. */\n background: var(--surface, oklch(11% 0.010 265));\n border: 1px solid var(--gold-glow, oklch(72% 0.12 80 / 0.20));\n border-radius: 16px;\n padding: 32px;\n width: 90%;\n max-width: 440px;\n box-shadow: 0 20px 40px oklch(0% 0 0 / 0.55), inset 0 1px 0 oklch(100% 0 0 / 0.06);\n animation: oe-modal-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;\n display: flex;\n flex-direction: column;\n gap: 20px;\n }\n\n @keyframes oe-fade-in {\n from { opacity: 0; }\n to { opacity: 1; }\n }\n\n @keyframes oe-modal-in {\n from { opacity: 0; transform: scale(0.95) translateY(10px); }\n to { opacity: 1; transform: scale(1) translateY(0); }\n }\n\n .oe-welcome-header {\n display: flex;\n align-items: center;\n gap: 12px;\n margin-bottom: 4px;\n }\n\n .oe-welcome-icon {\n font-size: 28px;\n color: var(--gold, oklch(72% 0.12 80));\n line-height: 1;\n text-shadow: 0 0 10px var(--gold-glow, oklch(72% 0.12 80 / 0.30));\n }\n\n .oe-welcome-title {\n font-size: 20px;\n font-weight: 600;\n color: var(--text, oklch(92% 0.006 265));\n margin: 0;\n letter-spacing: 0.02em;\n }\n\n .oe-welcome-text {\n font-size: 14.5px;\n line-height: 1.5;\n color: var(--text-secondary, oklch(68% 0.008 265));\n margin: 0;\n }\n\n .oe-welcome-hints {\n display: flex;\n flex-direction: column;\n gap: 12px;\n margin: 8px 0 12px 0;\n padding: 0;\n list-style: none;\n }\n\n .oe-welcome-hints li {\n font-size: 13.5px;\n line-height: 1.4;\n color: var(--text-secondary, oklch(68% 0.008 265));\n display: flex;\n align-items: flex-start;\n gap: 10px;\n opacity: 0;\n animation: oe-fade-in 0.4s ease forwards;\n }\n\n /* Stagger the hints */\n .oe-welcome-hints li:nth-child(1) { animation-delay: 0.15s; }\n .oe-welcome-hints li:nth-child(2) { animation-delay: 0.25s; }\n .oe-welcome-hints li:nth-child(3) { animation-delay: 0.35s; }\n .oe-welcome-hints li:nth-child(4) { animation-delay: 0.45s; }\n\n .oe-welcome-hints li::before {\n content: "\u2726";\n color: var(--gold-dim, oklch(52% 0.06 80));\n font-size: 12px;\n padding-top: 2px;\n }\n\n .oe-welcome-hints strong {\n color: var(--text, oklch(92% 0.006 265));\n font-weight: 600;\n }\n\n .oe-welcome-button {\n align-self: flex-end;\n background: var(--gold-subtle, oklch(72% 0.12 80 / 0.10));\n color: var(--gold, oklch(72% 0.12 80));\n border: 1px solid var(--gold-glow, oklch(72% 0.12 80 / 0.20));\n padding: 10px 24px;\n border-radius: 8px;\n font-size: 14px;\n font-weight: 600;\n cursor: pointer;\n transition: background 0.2s ease, border-color 0.2s ease;\n margin-top: 4px;\n }\n\n .oe-welcome-button:hover {\n background: oklch(72% 0.12 80 / 0.18);\n border-color: oklch(72% 0.12 80 / 0.40);\n }\n\n .oe-welcome-button:focus-visible {\n outline: 2px solid var(--gold, oklch(72% 0.12 80));\n outline-offset: 2px;\n }\n\n .oe-welcome-backdrop.is-dismissing {\n animation: oe-fade-out 0.3s ease forwards;\n }\n\n .oe-welcome-backdrop.is-dismissing .oe-welcome-modal {\n animation: oe-modal-out 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;\n }\n\n @keyframes oe-fade-out {\n to { opacity: 0; }\n }\n\n @keyframes oe-modal-out {\n to { opacity: 0; transform: scale(0.95) translateY(10px); }\n }\n';
6638
- function p_() {
6647
+ var p_ = { "chart-wheel": { stripIcon: "\u2726", stripTitle: "About the Natal Chart", stripHints: ["Click any <strong>planet</strong> for a deep placement reading", "Click any <strong>aspect line</strong> for its dynamic interpretation", "Click any <strong>house cusp</strong> for house themes", "Use the <strong>date controls</strong> to move through time"], modalText: "This wheel is an exact celestial snapshot of the sky at a given moment and place \u2014 every planet, house, and aspect line is clickable." }, "bi-wheel": { stripIcon: "\u2295", stripTitle: "About the Bi-Wheel", stripHints: ["Click any <strong>inner planet</strong> for natal placement depth", "Click any <strong>outer planet</strong> for transit or synastry meaning", "Click a <strong>cross-aspect line</strong> for inter-chart dynamics", "Use the <strong>date controls</strong> to advance transits"], modalText: "Two charts are layered here \u2014 the inner wheel is the natal chart; the outer ring shows the second chart (transits or another person's planets)." }, bodygraph: { stripIcon: "\u25C8", stripTitle: "About the Bodygraph", stripHints: ["Click any <strong>center</strong> (defined or undefined) for its meaning", "Click any <strong>channel</strong> to explore its life theme", "Click any <strong>gate number</strong> for its I Ching hexagram reading", "Click a <strong>planet row</strong> in the sidebar for its HD role"], modalText: "The bodygraph is a living map of the energy centres, channels, and gates that define a Human Design chart." }, "vedic-chart": { stripIcon: "\u{1F549}", stripTitle: "About the Jyotish Chart", stripHints: ["Click any <strong>rashi cell</strong> for its themes and any planets placed there", "The <strong>diagonal mark</strong> shows the Lagna (Ascendant) rashi", "Use the <strong>action bar</strong> for a full chart interpretation", "Click <strong>Moon &amp; Nakshatra</strong> for lunar mansion detail"], modalText: "This is a Vedic birth chart rendered as a South Indian Rashi grid \u2014 sidereal planetary placements by fixed sign." }, "transit-timeline": { stripIcon: "\u2604", stripTitle: "About the Transit Timeline", stripHints: ["Each entry is an <strong>exact transit hit</strong> \u2014 a transiting planet contacting a natal point", "Events are <strong>grouped by month</strong> in chronological order", "The <strong>\u211E marker</strong> flags a retrograde crossing", "Click any transit for a focused <strong>interpretation</strong>"], modalText: "This timeline lists upcoming transits to the natal chart \u2014 the exact dates outer-planet energies activate each placement." }, "moon-phase": { stripIcon: "\u263E", stripTitle: "About the Moon Phase Dial", stripHints: ["Click the <strong>Moon</strong> for its phase interpretation", "Click the <strong>Void-of-Course</strong> card when the Moon is VOC", "Use the <strong>date control</strong> to move the sky to any moment"], modalText: "The dial shows the Moon's live illumination, phase, sign, and void-of-course status for the selected moment." }, bazi: { stripIcon: "\u56DB", stripTitle: "About the BaZi Chart", stripHints: ["Click any <strong>pillar</strong> (Year, Month, Day, Hour) for its interpretation", "The <strong>Day Master</strong> is the core identity element", "The <strong>Wu Xing bar</strong> shows the Five Element balance"], modalText: "This BaZi (Four Pillars of Destiny) chart maps the Heavenly Stems and Earthly Branches present at a given moment of birth." } }, m_ = '\n .oe-welcome-backdrop {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: oklch(0% 0 0 / 0.55);\n backdrop-filter: blur(8px);\n -webkit-backdrop-filter: blur(8px);\n z-index: 9999;\n display: flex;\n align-items: center;\n justify-content: center;\n animation: oe-fade-in 0.4s ease both;\n font-family: system-ui, sans-serif;\n }\n\n .oe-welcome-modal {\n /* Themed, not hardcoded: the title/text/hints below all resolve through\n var(--text\u2026), so a fixed dark surface here meant that once the light\n palette became reachable the modal rendered near-black text on a\n near-black card \u2014 1.09:1, effectively invisible. The fallback is the\n previous literal, and every app\'s dark --surface is oklch(11-12%), so\n dark rendering is unchanged. */\n background: var(--surface, oklch(11% 0.010 265));\n border: 1px solid var(--gold-glow, oklch(72% 0.12 80 / 0.20));\n border-radius: 16px;\n padding: 32px;\n width: 90%;\n max-width: 440px;\n box-shadow: 0 20px 40px oklch(0% 0 0 / 0.55), inset 0 1px 0 oklch(100% 0 0 / 0.06);\n animation: oe-modal-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;\n display: flex;\n flex-direction: column;\n gap: 20px;\n }\n\n @keyframes oe-fade-in {\n from { opacity: 0; }\n to { opacity: 1; }\n }\n\n @keyframes oe-modal-in {\n from { opacity: 0; transform: scale(0.95) translateY(10px); }\n to { opacity: 1; transform: scale(1) translateY(0); }\n }\n\n .oe-welcome-header {\n display: flex;\n align-items: center;\n gap: 12px;\n margin-bottom: 4px;\n }\n\n .oe-welcome-icon {\n font-size: 28px;\n color: var(--gold, oklch(72% 0.12 80));\n line-height: 1;\n text-shadow: 0 0 10px var(--gold-glow, oklch(72% 0.12 80 / 0.30));\n }\n\n .oe-welcome-title {\n font-size: 20px;\n font-weight: 600;\n color: var(--text, oklch(92% 0.006 265));\n margin: 0;\n letter-spacing: 0.02em;\n }\n\n .oe-welcome-text {\n font-size: 14.5px;\n line-height: 1.5;\n color: var(--text-secondary, oklch(68% 0.008 265));\n margin: 0;\n }\n\n .oe-welcome-hints {\n display: flex;\n flex-direction: column;\n gap: 12px;\n margin: 8px 0 12px 0;\n padding: 0;\n list-style: none;\n }\n\n .oe-welcome-hints li {\n font-size: 13.5px;\n line-height: 1.4;\n color: var(--text-secondary, oklch(68% 0.008 265));\n display: flex;\n align-items: flex-start;\n gap: 10px;\n opacity: 0;\n animation: oe-fade-in 0.4s ease forwards;\n }\n\n /* Stagger the hints */\n .oe-welcome-hints li:nth-child(1) { animation-delay: 0.15s; }\n .oe-welcome-hints li:nth-child(2) { animation-delay: 0.25s; }\n .oe-welcome-hints li:nth-child(3) { animation-delay: 0.35s; }\n .oe-welcome-hints li:nth-child(4) { animation-delay: 0.45s; }\n\n .oe-welcome-hints li::before {\n content: "\u2726";\n color: var(--gold-dim, oklch(52% 0.06 80));\n font-size: 12px;\n padding-top: 2px;\n }\n\n .oe-welcome-hints strong {\n color: var(--text, oklch(92% 0.006 265));\n font-weight: 600;\n }\n\n .oe-welcome-button {\n align-self: flex-end;\n background: var(--gold-subtle, oklch(72% 0.12 80 / 0.10));\n color: var(--gold, oklch(72% 0.12 80));\n border: 1px solid var(--gold-glow, oklch(72% 0.12 80 / 0.20));\n padding: 10px 24px;\n border-radius: 8px;\n font-size: 14px;\n font-weight: 600;\n cursor: pointer;\n transition: background 0.2s ease, border-color 0.2s ease;\n margin-top: 4px;\n }\n\n .oe-welcome-button:hover {\n background: oklch(72% 0.12 80 / 0.18);\n border-color: oklch(72% 0.12 80 / 0.40);\n }\n\n .oe-welcome-button:focus-visible {\n outline: 2px solid var(--gold, oklch(72% 0.12 80));\n outline-offset: 2px;\n }\n\n .oe-welcome-backdrop.is-dismissing {\n animation: oe-fade-out 0.3s ease forwards;\n }\n\n .oe-welcome-backdrop.is-dismissing .oe-welcome-modal {\n animation: oe-modal-out 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;\n }\n\n @keyframes oe-fade-out {\n to { opacity: 0; }\n }\n\n @keyframes oe-modal-out {\n to { opacity: 0; transform: scale(0.95) translateY(10px); }\n }\n';
6648
+ function h_() {
6639
6649
  if (document.getElementById("oe-first-run-styles")) return;
6640
6650
  let e4 = document.createElement("style");
6641
- e4.id = "oe-first-run-styles", e4.textContent = f_, document.head.appendChild(e4);
6651
+ e4.id = "oe-first-run-styles", e4.textContent = m_, document.head.appendChild(e4);
6642
6652
  }
6643
- function m_(e4) {
6653
+ function g_(e4) {
6644
6654
  let t2 = document.activeElement, n2 = document.createElement("div");
6645
6655
  n2.className = "oe-welcome-backdrop";
6646
6656
  let r2 = document.createElement("div");
@@ -6658,24 +6668,24 @@ function m_(e4) {
6658
6668
  e5.key === "Escape" && (e5.preventDefault(), o2()), e5.key === "Tab" && (e5.preventDefault(), a2.focus());
6659
6669
  }), requestAnimationFrame(() => a2.focus()), n2;
6660
6670
  }
6661
- function h_(e4) {
6662
- p_();
6663
- let t2 = m_(d_[e4]);
6671
+ function __(e4) {
6672
+ h_();
6673
+ let t2 = g_(p_[e4]);
6664
6674
  document.body.appendChild(t2);
6665
6675
  }
6666
- var g_ = "\n .oe-info-button {\n position: fixed;\n top: 12px;\n right: 12px;\n width: 30px;\n height: 30px;\n border-radius: 50%;\n background: var(--surface-2, oklch(16% 0.010 265));\n border: 1px solid var(--border-strong, oklch(30% 0.010 265));\n color: var(--text-secondary, oklch(68% 0.008 265));\n font: 600 14px/1 Georgia, serif;\n font-style: italic;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n z-index: 9998;\n transition: all 150ms ease;\n }\n\n .oe-info-button:hover {\n background: var(--surface, oklch(11% 0.010 265));\n border-color: var(--gold-dim, oklch(52% 0.06 80));\n color: var(--gold, oklch(72% 0.12 80));\n }\n\n .oe-info-button:focus-visible {\n outline: 2px solid var(--gold, oklch(72% 0.12 80));\n outline-offset: 2px;\n }\n";
6667
- function __() {
6676
+ var v_ = "\n .oe-info-button {\n position: fixed;\n top: 12px;\n right: 12px;\n width: 30px;\n height: 30px;\n border-radius: 50%;\n background: var(--surface-2, oklch(16% 0.010 265));\n border: 1px solid var(--border-strong, oklch(30% 0.010 265));\n color: var(--text-secondary, oklch(68% 0.008 265));\n font: 600 14px/1 Georgia, serif;\n font-style: italic;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n z-index: 9998;\n transition: all 150ms ease;\n }\n\n .oe-info-button:hover {\n background: var(--surface, oklch(11% 0.010 265));\n border-color: var(--gold-dim, oklch(52% 0.06 80));\n color: var(--gold, oklch(72% 0.12 80));\n }\n\n .oe-info-button:focus-visible {\n outline: 2px solid var(--gold, oklch(72% 0.12 80));\n outline-offset: 2px;\n }\n";
6677
+ function y_() {
6668
6678
  if (document.getElementById("oe-info-button-styles")) return;
6669
6679
  let e4 = document.createElement("style");
6670
- e4.id = "oe-info-button-styles", e4.textContent = g_, document.head.appendChild(e4);
6680
+ e4.id = "oe-info-button-styles", e4.textContent = v_, document.head.appendChild(e4);
6671
6681
  }
6672
- function v_(e4) {
6682
+ function b_(e4) {
6673
6683
  if (document.getElementById("oe-info-button")) return;
6674
- __();
6684
+ y_();
6675
6685
  let t2 = document.createElement("button");
6676
- t2.id = "oe-info-button", t2.className = "oe-info-button", t2.setAttribute("aria-label", "About this chart"), t2.title = "About this chart", t2.textContent = "i", t2.addEventListener("click", () => h_(e4)), document.body.appendChild(t2);
6686
+ t2.id = "oe-info-button", t2.className = "oe-info-button", t2.setAttribute("aria-label", "About this chart"), t2.title = "About this chart", t2.textContent = "i", t2.addEventListener("click", () => __(e4)), document.body.appendChild(t2);
6677
6687
  }
6678
- function y_(e4) {
6688
+ function x_(e4) {
6679
6689
  var t2;
6680
6690
  if (!e4) return null;
6681
6691
  if (e4.structuredContent != null && typeof e4.structuredContent == "object") return e4.structuredContent;
@@ -6688,50 +6698,63 @@ function y_(e4) {
6688
6698
  }
6689
6699
  return null;
6690
6700
  }
6691
- function b_(e4) {
6701
+ function S_(e4) {
6692
6702
  return e4.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
6693
6703
  }
6694
- function x_(e4) {
6695
- let { container: t2, message: n2, onRetry: r2, retryLabel: i2 = "\u21BA Try again" } = e4, a2 = r2 ? '<button class="error-retry-btn" type="button">'.concat(b_(i2), "</button>") : "";
6696
- if (t2.innerHTML = '<div class="error-state" role="alert"><div class="error-icon" aria-hidden="true">\u26A0\uFE0F</div><p class="error-msg">'.concat(b_(n2), "</p>") + a2 + "</div>", t2.removeAttribute("hidden"), r2) {
6704
+ function C_(e4) {
6705
+ let { container: t2, message: n2, onRetry: r2, retryLabel: i2 = "\u21BA Try again" } = e4, a2 = r2 ? '<button class="error-retry-btn" type="button">'.concat(S_(i2), "</button>") : "";
6706
+ if (t2.innerHTML = '<div class="error-state" role="alert"><div class="error-icon" aria-hidden="true">\u26A0\uFE0F</div><p class="error-msg">'.concat(S_(n2), "</p>") + a2 + "</div>", t2.removeAttribute("hidden"), r2) {
6697
6707
  var o2;
6698
6708
  (o2 = t2.querySelector(".error-retry-btn")) == null || o2.addEventListener("click", r2);
6699
6709
  }
6700
6710
  }
6701
- var S_;
6702
- function C_() {
6703
- return S_ ? S_ === "dark" : window.matchMedia("(prefers-color-scheme: dark)").matches;
6711
+ var w_;
6712
+ function T_() {
6713
+ return w_ ? w_ === "dark" : window.matchMedia("(prefers-color-scheme: dark)").matches;
6704
6714
  }
6705
- function w_(e4 = C_()) {
6715
+ function E_(e4 = T_()) {
6706
6716
  let t2 = e4 ? "dark" : "light";
6707
6717
  return document.documentElement.setAttribute("data-theme", t2), t2;
6708
6718
  }
6709
- function T_(e4) {
6710
- w_();
6719
+ function D_(e4) {
6720
+ E_();
6711
6721
  try {
6712
6722
  window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", (t2) => {
6713
- S_ || e4 == null || e4(w_(t2.matches));
6723
+ w_ || e4 == null || e4(E_(t2.matches));
6714
6724
  });
6715
6725
  } catch (e5) {
6716
6726
  }
6717
6727
  }
6718
- function E_(e4, t2) {
6728
+ function O_(e4, t2) {
6719
6729
  var n2, r2;
6720
6730
  let i2 = (e5) => {
6721
6731
  let n3 = e5 == null ? void 0 : e5.theme;
6722
6732
  if (n3 !== "light" && n3 !== "dark") return;
6723
- S_ = n3;
6724
- let r3 = document.documentElement.getAttribute("data-theme"), i3 = w_(n3 === "dark");
6733
+ w_ = n3;
6734
+ let r3 = document.documentElement.getAttribute("data-theme"), i3 = E_(n3 === "dark");
6725
6735
  i3 !== r3 && (t2 == null || t2(i3));
6726
6736
  };
6727
6737
  (n2 = e4.addEventListener) == null || n2.call(e4, "hostcontextchanged", i2), i2((r2 = e4.getHostContext) == null ? void 0 : r2.call(e4));
6728
6738
  }
6729
- function D_(e4, t2, n2 = []) {
6730
- var r2, i2;
6739
+ var k_ = ["inline", "fullscreen"];
6740
+ function A_(e4) {
6741
+ var t2;
6742
+ return (t2 = e4.getHostContext) == null ? void 0 : t2.call(e4);
6743
+ }
6744
+ function j_(e4) {
6745
+ var t2;
6746
+ let n2 = (t2 = A_(e4)) == null ? void 0 : t2.availableDisplayModes;
6747
+ return Array.isArray(n2) ? n2 : [];
6748
+ }
6749
+ var M_ = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">\n <polyline points="5,1 1,1 1,5"/>\n <polyline points="11,1 15,1 15,5"/>\n <polyline points="5,15 1,15 1,11"/>\n <polyline points="11,15 15,15 15,11"/>\n </svg>', N_ = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">\n <polyline points="1,5 5,5 5,1"/>\n <polyline points="15,5 11,5 11,1"/>\n <polyline points="1,11 5,11 5,15"/>\n <polyline points="15,11 11,11 11,15"/>\n </svg>', P_ = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" aria-hidden="true">\n <rect x="1" y="2.5" width="14" height="11" rx="1.5"/>\n <rect x="8" y="8" width="5.5" height="4" rx="0.8" fill="currentColor" stroke="none"/>\n </svg>', F_ = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">\n <rect x="1" y="2.5" width="14" height="11" rx="1.5"/>\n <polyline points="6,6 10,10"/>\n <polyline points="6,9.5 6,6 9.5,6"/>\n </svg>';
6750
+ function I_(e4, t2, n2 = [], r2 = {}) {
6751
+ var i2;
6731
6752
  if (!t2 || t2.querySelector("#btn-fullscreen")) return;
6732
6753
  let a2 = document.createElement("button");
6733
- a2.id = "btn-fullscreen", a2.className = "pan-btn pan-btn--fullscreen", a2.setAttribute("aria-label", "Toggle fullscreen"), a2.innerHTML = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">\n <polyline points="5,1 1,1 1,5"/>\n <polyline points="11,1 15,1 15,5"/>\n <polyline points="5,15 1,15 1,11"/>\n <polyline points="11,15 15,15 15,11"/>\n </svg>';
6734
- let o2 = a2.innerHTML, s2 = ["param-controls", "aspect-filter", "controls-panel", "mode-badge"];
6754
+ a2.id = "btn-fullscreen", a2.type = "button", a2.className = "pan-btn pan-btn--fullscreen", a2.innerHTML = M_, a2.hidden = true;
6755
+ let o2 = null;
6756
+ r2.pip && (o2 = document.createElement("button"), o2.id = "btn-pip", o2.type = "button", o2.className = "pan-btn pan-btn--pip", o2.innerHTML = P_, o2.hidden = true);
6757
+ let s2 = ["param-controls", "aspect-filter", "controls-panel", "mode-badge"];
6735
6758
  function c2() {
6736
6759
  if (document.getElementById("fs-bottom-bar") || !n2.length) return;
6737
6760
  let e5 = document.getElementById("app");
@@ -6764,59 +6787,59 @@ function D_(e4, t2, n2 = []) {
6764
6787
  }
6765
6788
  e5.remove();
6766
6789
  }
6767
- function u2(e5) {
6768
- let t3 = e5 === "fullscreen", n3 = document.body.classList.contains("is-fullscreen");
6769
- document.body.classList.toggle("is-fullscreen", t3), a2.innerHTML = t3 ? '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">\n <polyline points="1,5 5,5 5,1"/>\n <polyline points="15,5 11,5 11,1"/>\n <polyline points="1,11 5,11 5,15"/>\n <polyline points="15,11 11,11 11,15"/>\n </svg>' : o2, a2.setAttribute("aria-label", t3 ? "Exit fullscreen (Esc)" : "Toggle fullscreen"), a2.title = t3 ? "Press Esc or click to exit fullscreen" : "Enter fullscreen", t3 && !n3 && (c2(), f2()), !t3 && n3 && l2();
6790
+ let u2 = "inline";
6791
+ function d2(t3) {
6792
+ let n3 = u2 === "fullscreen", r3 = t3 === "fullscreen";
6793
+ u2 = t3, document.body.classList.toggle("is-fullscreen", r3), document.body.classList.toggle("is-pip", t3 === "pip"), document.documentElement.setAttribute("data-display-mode", t3), a2.innerHTML = r3 ? N_ : M_;
6794
+ let i3 = r3 ? "Exit fullscreen" : "Enter fullscreen";
6795
+ if (a2.setAttribute("aria-label", i3), a2.title = r3 ? "Exit fullscreen (Esc)" : i3, o2) {
6796
+ let e5 = t3 === "pip";
6797
+ o2.innerHTML = e5 ? F_ : P_;
6798
+ let n4 = e5 ? "Return to the conversation" : "Pop out (picture-in-picture)";
6799
+ o2.setAttribute("aria-label", n4), o2.title = n4;
6800
+ }
6801
+ r3 && !n3 && (c2(), L_(e4)), !r3 && n3 && l2();
6770
6802
  }
6771
- a2.addEventListener("click", async () => {
6772
- try {
6773
- var t3, n3, r3, i3;
6774
- let a3 = (t3 = e4.getHostContext) == null ? void 0 : t3.call(e4), o3 = (n3 = a3 == null ? void 0 : a3.displayMode) == null ? "inline" : n3, s3 = (r3 = a3 == null ? void 0 : a3.availableDisplayModes) == null ? [] : r3, c3 = o3 === "inline" ? "fullscreen" : "inline";
6775
- if (s3.length > 0 && !s3.includes(c3)) {
6776
- console.warn('[AppChrome] Display mode "'.concat(c3, '" not available. Available: ').concat(s3.join(", ")));
6777
- return;
6778
- }
6779
- let l3 = await e4.requestDisplayMode({ mode: c3 });
6780
- u2((i3 = l3 == null ? void 0 : l3.mode) == null ? "inline" : i3);
6803
+ function f2() {
6804
+ var n3, r3;
6805
+ let i3 = j_(e4);
6806
+ a2.hidden = !i3.includes("fullscreen"), o2 && (o2.hidden = !i3.includes("pip")), (!a2.hidden || o2 && !o2.hidden) && (t2.hidden = false);
6807
+ let s3 = (n3 = (r3 = A_(e4)) == null ? void 0 : r3.displayMode) == null ? "inline" : n3;
6808
+ s3 !== u2 && d2(s3);
6809
+ }
6810
+ async function p2(t3) {
6811
+ if (!(t3 !== "inline" && !j_(e4).includes(t3))) try {
6812
+ var n3;
6813
+ let r3 = await e4.requestDisplayMode({ mode: t3 });
6814
+ d2((n3 = r3 == null ? void 0 : r3.mode) == null ? u2 : n3);
6781
6815
  } catch (e5) {
6782
6816
  console.warn("[AppChrome] requestDisplayMode failed:", e5);
6783
6817
  }
6784
- }), document.addEventListener("keydown", async (t3) => {
6785
- if (t3.key === "Escape" && document.body.classList.contains("is-fullscreen")) {
6786
- t3.preventDefault();
6787
- try {
6788
- var n3;
6789
- let t4 = await e4.requestDisplayMode({ mode: "inline" });
6790
- u2((n3 = t4 == null ? void 0 : t4.mode) == null ? "inline" : n3);
6791
- } catch (e5) {
6792
- console.warn("[AppChrome] Escape fullscreen failed:", e5);
6793
- }
6794
- }
6795
- }), (r2 = e4.addEventListener) == null || r2.call(e4, "hostcontextchanged", (e5) => {
6796
- var t3;
6797
- u2((t3 = e5 == null ? void 0 : e5.displayMode) == null ? "inline" : t3);
6798
- });
6799
- let d2 = (i2 = e4.getHostContext) == null ? void 0 : i2.call(e4);
6800
- d2 != null && d2.displayMode && u2(d2.displayMode), t2.insertBefore(a2, t2.firstChild), t2.removeAttribute("hidden");
6801
- function f2() {
6802
- let e5 = document.getElementById("fs-hint-banner");
6803
- e5 && e5.remove();
6804
- let t3 = document.createElement("div");
6805
- t3.id = "fs-hint-banner", Object.assign(t3.style, { position: "fixed", top: "12px", left: "50%", transform: "translateX(-50%)", background: "oklch(14% 0.012 265 / 0.90)", backdropFilter: "blur(12px)", WebkitBackdropFilter: "blur(12px)", border: "1px solid oklch(72% 0.12 80 / 0.3)", borderRadius: "20px", padding: "6px 16px", fontSize: "11px", fontWeight: "600", color: "oklch(80% 0.08 80)", letterSpacing: "0.04em", zIndex: "9999", pointerEvents: "none", opacity: "0", transition: "opacity 300ms ease", whiteSpace: "nowrap" }), t3.textContent = "Esc \u2014 exit fullscreen & return to chat", document.body.appendChild(t3), requestAnimationFrame(() => {
6806
- t3.style.opacity = "1";
6807
- }), setTimeout(() => {
6808
- t3.style.opacity = "0", setTimeout(() => t3.remove(), 350);
6809
- }, 4e3);
6810
6818
  }
6819
+ a2.addEventListener("click", () => {
6820
+ p2(u2 === "fullscreen" ? "inline" : "fullscreen");
6821
+ }), o2 == null || o2.addEventListener("click", () => {
6822
+ p2(u2 === "pip" ? "inline" : "pip");
6823
+ }), document.addEventListener("keydown", (e5) => {
6824
+ e5.key !== "Escape" || u2 !== "fullscreen" || (e5.preventDefault(), p2("inline"));
6825
+ }), (i2 = e4.addEventListener) == null || i2.call(e4, "hostcontextchanged", f2), o2 && t2.insertBefore(o2, t2.firstChild), t2.insertBefore(a2, t2.firstChild), d2("inline"), f2();
6811
6826
  }
6812
- function O_(e4, t2) {
6827
+ function L_(e4) {
6828
+ var t2, n2;
6829
+ (t2 = document.getElementById("fs-hint-banner")) == null || t2.remove();
6830
+ let r2 = (n2 = A_(e4)) == null ? void 0 : n2.deviceCapabilities, i2 = !!(r2 != null && r2.touch) && (r2 == null ? void 0 : r2.hover) === false, a2 = document.createElement("div");
6831
+ a2.id = "fs-hint-banner", a2.className = "fs-hint-banner", a2.setAttribute("role", "status"), a2.textContent = i2 ? "Tap the collapse button to return to the chat" : "Esc \u2014 exit fullscreen & return to chat", document.body.appendChild(a2), requestAnimationFrame(() => a2.classList.add("visible")), setTimeout(() => {
6832
+ a2.classList.remove("visible"), setTimeout(() => a2.remove(), 350);
6833
+ }, 4e3);
6834
+ }
6835
+ function R_(e4, t2) {
6813
6836
  e4.ontoolcancelled = (e5) => {
6814
6837
  var n2, r2, i2;
6815
6838
  let a2 = (n2 = e5.reason) == null ? "Tool call was cancelled" : n2;
6816
- console.warn("[AppChrome] Tool cancelled:", a2), (r2 = t2.statusFn) == null || r2.call(t2, null), !t2.loadingEl.hidden && t2.loadingEl.getAttribute("hidden") === null && (t2.loadingEl.setAttribute("hidden", ""), t2.contentEl.removeAttribute("hidden")), (i2 = t2.paramControls) == null || (i2 = i2.call(t2)) == null || i2.setBusy(false), k_(a2);
6839
+ console.warn("[AppChrome] Tool cancelled:", a2), (r2 = t2.statusFn) == null || r2.call(t2, null), !t2.loadingEl.hidden && t2.loadingEl.getAttribute("hidden") === null && (t2.loadingEl.setAttribute("hidden", ""), t2.contentEl.removeAttribute("hidden")), (i2 = t2.paramControls) == null || (i2 = i2.call(t2)) == null || i2.setBusy(false), z_(a2);
6817
6840
  };
6818
6841
  }
6819
- function k_(e4) {
6842
+ function z_(e4) {
6820
6843
  var t2;
6821
6844
  (t2 = document.getElementById("cancel-toast")) == null || t2.remove();
6822
6845
  let n2 = document.createElement("div");
@@ -6824,124 +6847,138 @@ function k_(e4) {
6824
6847
  n2.classList.remove("visible"), setTimeout(() => n2.remove(), 300);
6825
6848
  }, 3e3);
6826
6849
  }
6827
- function A_(e4) {
6850
+ function B_(e4) {
6828
6851
  var t2;
6829
- function n2(e5) {
6830
- if (!e5) return;
6831
- let t3 = e5.containerDimensions;
6832
- if (!t3) return;
6833
- let n3 = document.documentElement;
6834
- t3.width && n3.style.setProperty("--host-width", "".concat(t3.width, "px")), t3.maxWidth && n3.style.setProperty("--host-max-width", "".concat(t3.maxWidth, "px")), t3.height && n3.style.setProperty("--host-height", "".concat(t3.height, "px")), t3.maxHeight && n3.style.setProperty("--host-max-height", "".concat(t3.maxHeight, "px"));
6835
- }
6836
- n2((t2 = e4.getHostContext) == null ? void 0 : t2.call(e4)), e4.addEventListener("hostcontextchanged", (e5) => {
6837
- n2(e5);
6838
- });
6839
- }
6840
- var j_ = document.getElementById("loading-state"), M_ = document.getElementById("bazi-container"), N_ = document.getElementById("info-panel"), P_ = document.getElementById("chart-status"), F_ = new $g({ name: "BaZi Four Pillars Explorer", version: "1.0.0" }), $ = null, I_ = "dark", L_ = false, R_ = { year: "Year", month: "Month", day: "Day", hour: "Hour" }, z_ = { year: "ancestry and early life (0\u201315)", month: "parents, siblings, and career", day: "the self and one's spouse", hour: "children and later life" };
6841
- function B_() {
6842
- return w_();
6852
+ let n2 = document.documentElement, r2 = (e5, t3) => {
6853
+ typeof t3 == "number" && Number.isFinite(t3) && t3 > 0 ? n2.style.setProperty(e5, "".concat(t3, "px")) : n2.style.removeProperty(e5);
6854
+ }, i2 = (e5, t3) => {
6855
+ t3 === void 0 ? n2.removeAttribute(e5) : n2.setAttribute(e5, t3 ? "true" : "false");
6856
+ };
6857
+ function a2() {
6858
+ var t3, a3, o2;
6859
+ let s2 = A_(e4);
6860
+ if (!s2) return;
6861
+ let c2 = (t3 = s2.containerDimensions) == null ? {} : t3;
6862
+ r2("--host-width", c2.width), r2("--host-max-width", c2.maxWidth), r2("--host-height", c2.height), r2("--host-max-height", c2.maxHeight);
6863
+ let l2 = (a3 = s2.safeAreaInsets) == null ? {} : a3;
6864
+ for (let e5 of ["top", "right", "bottom", "left"]) {
6865
+ let t4 = l2[e5];
6866
+ n2.style.setProperty("--safe-".concat(e5), typeof t4 == "number" && t4 > 0 ? "".concat(t4, "px") : "0px");
6867
+ }
6868
+ let u2 = l2.bottom;
6869
+ n2.toggleAttribute("data-safe-bottom", typeof u2 == "number" && u2 > 0), typeof s2.platform == "string" && n2.setAttribute("data-platform", s2.platform);
6870
+ let d2 = s2.deviceCapabilities;
6871
+ i2("data-touch", d2 == null ? void 0 : d2.touch), i2("data-hover", d2 == null ? void 0 : d2.hover);
6872
+ let f2 = s2.styles;
6873
+ f2 != null && f2.variables && $g(f2.variables, n2), !(f2 == null || (o2 = f2.css) == null) && o2.fonts && e_(f2.css.fonts);
6874
+ }
6875
+ a2(), (t2 = e4.addEventListener) == null || t2.call(e4, "hostcontextchanged", a2);
6876
+ }
6877
+ var V_ = document.getElementById("loading-state"), H_ = document.getElementById("bazi-container"), U_ = document.getElementById("info-panel"), W_ = document.getElementById("chart-status"), G_ = new t_({ name: "BaZi Four Pillars Explorer", version: "1.0.0" }, { availableDisplayModes: k_ }), $ = null, K_ = "dark", q_ = false, J_ = { year: "Year", month: "Month", day: "Day", hour: "Hour" }, Y_ = { year: "ancestry and early life (0\u201315)", month: "parents, siblings, and career", day: "the self and one's spouse", hour: "children and later life" };
6878
+ function X_() {
6879
+ return E_();
6843
6880
  }
6844
- T_((e4) => void V_(e4));
6845
- async function V_(e4) {
6846
- if (!(e4 === I_ || L_ || !($ != null && $._birth_params))) {
6847
- L_ = true, I_ = e4;
6881
+ D_((e4) => void Z_(e4));
6882
+ async function Z_(e4) {
6883
+ if (!(e4 === K_ || q_ || !($ != null && $._birth_params))) {
6884
+ q_ = true, K_ = e4;
6848
6885
  try {
6849
6886
  var t2;
6850
- let n2 = $._birth_params, r2 = y_(await F_.callServerTool({ name: "bazi_recalculate", arguments: { ...n2, ...(t2 = $._convention_args) == null ? {} : t2, theme: e4, ...$._render_token ? { render_token: $._render_token } : {} } }));
6851
- r2 != null && r2._svg && J_(r2);
6887
+ let n2 = $._birth_params, r2 = x_(await G_.callServerTool({ name: "bazi_recalculate", arguments: { ...n2, ...(t2 = $._convention_args) == null ? {} : t2, theme: e4, ...$._render_token ? { render_token: $._render_token } : {} } }));
6888
+ r2 != null && r2._svg && iv(r2);
6852
6889
  } catch (e5) {
6853
6890
  console.error("[BaZi] Theme re-fetch failed:", e5);
6854
6891
  } finally {
6855
- L_ = false;
6892
+ q_ = false;
6856
6893
  }
6857
6894
  }
6858
6895
  }
6859
- async function H_(e4) {
6896
+ async function Q_(e4) {
6860
6897
  let t2 = $ == null ? void 0 : $._birth_params;
6861
6898
  if (t2) {
6862
6899
  let n2 = String(t2.hour).padStart(2, "0");
6863
6900
  e4 = "BaZi chart: ".concat(t2.year, "-").concat(String(t2.month).padStart(2, "0"), "-").concat(String(t2.day).padStart(2, "0"), " ").concat(n2, ":00\n\n").concat(e4);
6864
6901
  }
6865
6902
  try {
6866
- (await F_.sendMessage({ role: "user", content: [{ type: "text", text: e4 }] })).isError && console.error("[BaZi] Host rejected sendMessage");
6903
+ (await G_.sendMessage({ role: "user", content: [{ type: "text", text: e4 }] })).isError && console.error("[BaZi] Host rejected sendMessage");
6867
6904
  } catch (e5) {
6868
6905
  console.error("[BaZi] sendMessage failed:", e5);
6869
6906
  }
6870
6907
  }
6871
- function U_(e4) {
6872
- if (P_) {
6908
+ function $_(e4) {
6909
+ if (W_) {
6873
6910
  if (!e4) {
6874
- P_.classList.remove("visible");
6911
+ W_.classList.remove("visible");
6875
6912
  return;
6876
6913
  }
6877
- P_.textContent = "\xB7 ".concat(e4), P_.classList.add("visible");
6914
+ W_.textContent = "\xB7 ".concat(e4), W_.classList.add("visible");
6878
6915
  }
6879
6916
  }
6880
- function W_(e4) {
6917
+ function ev(e4) {
6881
6918
  return e4.day_master ? "Day Master: ".concat(e4.day_master.stem, " ").concat(e4.day_master.element) : "";
6882
6919
  }
6883
- async function G_(e4) {
6920
+ async function tv(e4) {
6884
6921
  if (!$) return;
6885
6922
  let t2 = $[e4];
6886
- t2 && (U_("".concat(R_[e4], " Pillar \xB7 ").concat(t2.stem.name, " ").concat(t2.branch.name)), await H_("Interpret the ".concat(R_[e4], " Pillar of this BaZi (Four Pillars of Destiny) chart: the ").concat(t2.stem.name, " (").concat(t2.stem.element, ") Heavenly Stem over the ").concat(t2.branch.name, " (").concat(t2.branch.animal, ") Earthly Branch.\n\n").concat(W_($), "\n\nThis pillar governs ").concat(z_[e4], ". Explain how the ").concat(t2.stem.element, " stem and the ").concat(t2.branch.animal, " branch interact, and what this pillar reveals about the person's destiny in that domain.")));
6923
+ t2 && ($_("".concat(J_[e4], " Pillar \xB7 ").concat(t2.stem.name, " ").concat(t2.branch.name)), await Q_("Interpret the ".concat(J_[e4], " Pillar of this BaZi (Four Pillars of Destiny) chart: the ").concat(t2.stem.name, " (").concat(t2.stem.element, ") Heavenly Stem over the ").concat(t2.branch.name, " (").concat(t2.branch.animal, ") Earthly Branch.\n\n").concat(ev($), "\n\nThis pillar governs ").concat(Y_[e4], ". Explain how the ").concat(t2.stem.element, " stem and the ").concat(t2.branch.animal, " branch interact, and what this pillar reveals about the person's destiny in that domain.")));
6887
6924
  }
6888
- async function K_() {
6925
+ async function nv() {
6889
6926
  if (!$) return;
6890
6927
  let e4 = $, t2 = ["year", "month", "day", "hour"].map((t3) => {
6891
6928
  let n2 = e4[t3];
6892
- return n2 ? "".concat(R_[t3], ": ").concat(n2.stem.name, " ").concat(n2.stem.element, " / ").concat(n2.branch.name, " (").concat(n2.branch.animal, ")") : null;
6929
+ return n2 ? "".concat(J_[t3], ": ").concat(n2.stem.name, " ").concat(n2.stem.element, " / ").concat(n2.branch.name, " (").concat(n2.branch.animal, ")") : null;
6893
6930
  }).filter(Boolean).join("\n");
6894
- await H_("Please give me a complete BaZi (Four Pillars of Destiny) reading for this chart.\n\n".concat(W_(e4), "\n\n").concat(t2, "\n\nCover: (1) the Day Master's strength and what that means, (2) each pillar's life-domain significance (Year = ancestry/early life, Month = parents/career, Day = self/spouse, Hour = children/later life), (3) the Wu Xing (Five Element) balance shown in the chart and which element(s) it favors, (4) a practical summary of this person's core character and destiny themes."));
6931
+ await Q_("Please give me a complete BaZi (Four Pillars of Destiny) reading for this chart.\n\n".concat(ev(e4), "\n\n").concat(t2, "\n\nCover: (1) the Day Master's strength and what that means, (2) each pillar's life-domain significance (Year = ancestry/early life, Month = parents/career, Day = self/spouse, Hour = children/later life), (3) the Wu Xing (Five Element) balance shown in the chart and which element(s) it favors, (4) a practical summary of this person's core character and destiny themes."));
6895
6932
  }
6896
- function q_(e4) {
6933
+ function rv(e4) {
6897
6934
  return e4.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
6898
6935
  }
6899
- function J_(e4) {
6936
+ function iv(e4) {
6900
6937
  var t2;
6901
- $ = e4, j_.setAttribute("hidden", ""), M_.removeAttribute("hidden");
6938
+ $ = e4, V_.setAttribute("hidden", ""), H_.removeAttribute("hidden");
6902
6939
  let n2 = e4._svg;
6903
6940
  if (!n2) {
6904
- Z_("BaZi chart render unavailable \u2014 the server did not return an SVG.", Q_);
6941
+ sv("BaZi chart render unavailable \u2014 the server did not return an SVG.", cv);
6905
6942
  return;
6906
6943
  }
6907
- u_(M_, n2, { onPillarClick: (e5) => void G_(e5) });
6944
+ f_(H_, n2, { onPillarClick: (e5) => void tv(e5) });
6908
6945
  let r2 = document.getElementById("bazi-action-bar");
6909
6946
  if (!r2) {
6910
6947
  var i2;
6911
- r2 = document.createElement("div"), r2.id = "bazi-action-bar", r2.className = "bazi-action-bar", (i2 = M_.parentElement) == null || i2.insertBefore(r2, N_);
6948
+ r2 = document.createElement("div"), r2.id = "bazi-action-bar", r2.className = "bazi-action-bar", (i2 = H_.parentElement) == null || i2.insertBefore(r2, U_);
6912
6949
  }
6913
- r2.innerHTML = '<button class="action-btn action-btn--primary" id="bazi-interpret-btn">\u2728 Interpret this chart</button>', (t2 = r2.querySelector("#bazi-interpret-btn")) == null || t2.addEventListener("click", () => void K_()), e4.day_master && (N_.innerHTML = '<div class="info-row"><span class="info-label">Day Master</span><span class="info-value">'.concat(q_(e4.day_master.stem), " ").concat(q_(e4.day_master.element), '</span></div><div class="info-hint">Click any pillar for its interpretation.</div>'), N_.removeAttribute("hidden")), v_("bazi");
6950
+ r2.innerHTML = '<button class="action-btn action-btn--primary" id="bazi-interpret-btn">\u2728 Interpret this chart</button>', (t2 = r2.querySelector("#bazi-interpret-btn")) == null || t2.addEventListener("click", () => void nv()), e4.day_master && (U_.innerHTML = '<div class="info-row"><span class="info-label">Day Master</span><span class="info-value">'.concat(rv(e4.day_master.stem), " ").concat(rv(e4.day_master.element), '</span></div><div class="info-hint">Click any pillar for its interpretation.</div>'), U_.removeAttribute("hidden")), b_("bazi");
6914
6951
  }
6915
- var Y_;
6916
- function X_() {
6917
- Y_ && (clearTimeout(Y_), Y_ = void 0);
6952
+ var av;
6953
+ function ov() {
6954
+ av && (clearTimeout(av), av = void 0);
6918
6955
  }
6919
- function Z_(e4, t2) {
6920
- X_(), j_.setAttribute("hidden", ""), x_({ container: M_, message: e4, onRetry: t2 });
6956
+ function sv(e4, t2) {
6957
+ ov(), V_.setAttribute("hidden", ""), C_({ container: H_, message: e4, onRetry: t2 });
6921
6958
  }
6922
- function Q_() {
6923
- X_(), M_.setAttribute("hidden", ""), j_.removeAttribute("hidden"), Y_ = setTimeout(() => {
6924
- Z_("The BaZi chart didn't load. Tap to try again.", Q_);
6925
- }, 3e4), F_.sendMessage({ role: "user", content: [{ type: "text", text: "Please regenerate the BaZi Four Pillars chart." }] }).catch(() => {
6959
+ function cv() {
6960
+ ov(), H_.setAttribute("hidden", ""), V_.removeAttribute("hidden"), av = setTimeout(() => {
6961
+ sv("The BaZi chart didn't load. Tap to try again.", cv);
6962
+ }, 3e4), G_.sendMessage({ role: "user", content: [{ type: "text", text: "Please regenerate the BaZi Four Pillars chart." }] }).catch(() => {
6926
6963
  });
6927
6964
  }
6928
- F_.ontoolresult = (e4) => {
6929
- X_();
6965
+ G_.ontoolresult = (e4) => {
6966
+ ov();
6930
6967
  try {
6931
- let t2 = y_(e4), n2 = t2 == null ? void 0 : t2._theme;
6932
- if ((n2 === "light" || n2 === "dark") && (I_ = n2), !t2 || !t2.year && !t2._svg) {
6933
- Z_("BaZi chart data could not be parsed from the server response.", Q_);
6968
+ let t2 = x_(e4), n2 = t2 == null ? void 0 : t2._theme;
6969
+ if ((n2 === "light" || n2 === "dark") && (K_ = n2), !t2 || !t2.year && !t2._svg) {
6970
+ sv("BaZi chart data could not be parsed from the server response.", cv);
6934
6971
  return;
6935
6972
  }
6936
- J_(t2), V_(B_());
6973
+ iv(t2), Z_(X_());
6937
6974
  } catch (e5) {
6938
- Z_("An error occurred while rendering the BaZi chart.", Q_), console.error("[BaZi] Render error:", e5);
6975
+ sv("An error occurred while rendering the BaZi chart.", cv), console.error("[BaZi] Render error:", e5);
6939
6976
  }
6940
- }, O_(F_, { loadingEl: j_, contentEl: M_, statusFn: U_ }), Y_ = setTimeout(() => {
6941
- Z_("BaZi chart data is taking longer than expected.", Q_);
6977
+ }, R_(G_, { loadingEl: V_, contentEl: H_, statusFn: $_ }), av = setTimeout(() => {
6978
+ sv("BaZi chart data is taking longer than expected.", cv);
6942
6979
  }, 3e4), (async () => {
6943
6980
  try {
6944
- await F_.connect(), D_(F_, document.getElementById("pan-zoom-controls"), ["info-panel", "bazi-action-bar"]), A_(F_), E_(F_, (e4) => void V_(e4));
6981
+ await G_.connect(), I_(G_, document.getElementById("pan-zoom-controls"), ["info-panel", "bazi-action-bar"]), B_(G_), O_(G_, (e4) => void Z_(e4));
6945
6982
  } catch (e4) {
6946
6983
  console.error("[BaZi] connect() failed:", e4);
6947
6984
  }