diff --git a/apps/desk/public/voice-demo.css b/apps/desk/public/voice-demo.css index 18eb30f..286495c 100644 --- a/apps/desk/public/voice-demo.css +++ b/apps/desk/public/voice-demo.css @@ -1 +1 @@ -:root{color-scheme:light;font-family:var(--font, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif);color:var(--ink, #121212);background:var(--canvas, #ffffff);font-synthesis:none;--card: #ffffff;--soft: color-mix(in srgb, var(--ink, #121212) 4%, #ffffff);--line: color-mix(in srgb, var(--ink, #121212) 12%, transparent);--line-strong: color-mix(in srgb, var(--ink, #121212) 22%, transparent);--muted: color-mix(in srgb, var(--ink, #121212) 62%, var(--canvas, #ffffff));--accent-soft: color-mix(in srgb, var(--accent, #c87942) 9%, #ffffff);--accent-line: color-mix(in srgb, var(--accent, #c87942) 34%, transparent);--focus-ring: var(--ink, #121212);--page: color-mix(in srgb, var(--canvas, #ffffff) 94%, var(--ink, #121212));--surface-width: 72rem;--answer-width: 52rem}*{box-sizing:border-box}html,body{min-height:100%}html.support-conversation,body.support-conversation{height:100%;overflow:hidden;overscroll-behavior:none}body{margin:0;min-width:320px;font-family:inherit;background:radial-gradient(circle at 12% 0%,var(--accent-soft),transparent 30rem),var(--page)}button,input,textarea{font:inherit}button{border:0;cursor:pointer;touch-action:manipulation}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,input:focus-visible,textarea:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.skip-link{position:fixed;z-index:20;top:8px;left:8px;transform:translateY(-150%);border-radius:8px;padding:10px 14px;color:var(--ink, #121212);background:#fff;box-shadow:0 2px 12px #0000001f;font-weight:700}.skip-link:focus{transform:translateY(0)}.app{min-height:100dvh;display:flex;flex-direction:column}.app[data-view=conversation]{position:fixed;z-index:1;top:var(--support-viewport-top, 0px);right:0;left:0;width:100%;min-height:0;height:var(--support-viewport-height, 100dvh);max-height:var(--support-viewport-height, 100dvh);overflow:hidden}.chat-header{position:relative;z-index:10;flex:none;padding-top:env(safe-area-inset-top);border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--card) 88%,transparent);backdrop-filter:blur(18px)}.chat-header-inner{width:min(var(--surface-width),100% - 40px);min-height:72px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:16px}.header-actions,.support-nav{display:flex;align-items:center;gap:8px}.support-nav a,.text-button{min-height:44px;display:inline-flex;align-items:center;border-radius:9px;padding:0 9px;color:var(--muted);background:transparent;font-size:13px;font-weight:650;text-decoration:none;white-space:nowrap}.support-nav a:hover,.text-button:not(:disabled):hover{color:var(--ink, #121212);background:var(--soft)}.help-centre-link:before{content:"?";width:20px;height:20px;display:grid;place-items:center;margin-right:7px;border:1px solid var(--line-strong);border-radius:50%;font-size:11px;font-weight:800}.account-menu{position:relative}.account-menu summary{min-height:44px;display:flex;align-items:center;gap:8px;border-radius:12px;padding:4px 8px 4px 5px;color:var(--ink, #121212);cursor:pointer;list-style:none}.account-menu summary::-webkit-details-marker{display:none}.account-menu summary:hover,.account-menu[open] summary{background:var(--soft)}.account-avatar{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;color:var(--accent-ink, #000);background:var(--accent, #c87942);font-size:11px;font-weight:800}.account-name{max-width:10rem;overflow:hidden;font-size:13px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.account-chevron{color:var(--muted);font-size:14px;transition:transform .15s ease}.account-menu[open] .account-chevron{transform:rotate(180deg)}.account-popover{position:absolute;z-index:20;top:calc(100% + 8px);right:0;width:220px;overflow:hidden;border:1px solid var(--line);border-radius:14px;padding:8px;background:var(--card);box-shadow:0 18px 50px #00000024}.account-popover p{margin:0;display:grid;gap:2px;padding:10px 10px 12px;border-bottom:1px solid var(--line)}.account-popover p strong{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.account-popover p span{color:var(--muted);font-size:11px}.account-popover a{width:100%;margin-top:6px;justify-content:flex-start}.brand{min-width:0;display:inline-flex;align-items:center;gap:10px;color:inherit;text-decoration:none}.brand-logo{display:block;height:32px;max-width:160px;object-fit:contain}.brand-mark,.avatar{flex:none;display:grid;place-items:center;color:var(--accent-ink, #000);background:var(--accent, #c87942);font-size:11px;font-weight:800}.brand-mark{width:36px;height:36px;border-radius:11px;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ink, #121212) 10%,transparent)}.avatar{width:28px;height:28px;border-radius:50%}.brand-text{min-width:0;display:grid;line-height:1.25}.brand-name{overflow:hidden;font-size:15px;font-weight:760;letter-spacing:-.015em;text-overflow:ellipsis;white-space:nowrap}.brand-sub{color:var(--muted);font-size:12px}.reconnect-banner{flex:none;padding:8px 16px;border-bottom:1px solid var(--accent-line);color:var(--ink, #121212);background:var(--accent-soft);text-align:center;font-size:13px;font-weight:650}.thread{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scroll-padding-block:24px;scrollbar-color:var(--line-strong) transparent}.thread-inner{width:min(var(--answer-width),100% - 40px);margin:0 auto;padding:24px 0 28px}.app[data-view=landing] .thread{flex:none;overflow:visible}.app[data-view=landing] .thread-inner{width:min(var(--surface-width),100% - 40px);padding:84px 0 80px}.landing-hero{max-width:54rem}.landing-hero h1{max-width:18ch;margin:0;font-size:clamp(2.75rem,5vw,4.5rem);font-weight:680;letter-spacing:-.045em;line-height:1}.landing-lede{max-width:46rem;margin:22px 0 0;color:var(--muted);font-size:16px;line-height:1.6}.ask-composer{width:100%;min-height:64px;margin-top:30px;display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:18px;padding:8px 8px 8px 14px;background:#fff;box-shadow:0 1px #0000000a,0 18px 50px #00000017}.ask-composer:focus-within{border-color:var(--line-strong);box-shadow:0 0 0 3px var(--focus-ring),0 8px 24px #00000014}.ask-icon{flex:none;display:grid;place-items:center}.ask-icon .avatar{width:24px;height:24px;font-size:9px}.ask-composer input{flex:1 1 auto;min-width:0;min-height:44px;border:0;padding:0 3px;color:var(--ink, #121212);background:transparent;font-size:16px;outline:0}.ask-composer input::placeholder,.composer input::placeholder{color:var(--muted)}.ask-composer input:focus-visible{outline:0}.ask-composer .mic-button,.ask-composer .ask-send-button{width:44px;height:44px;min-width:44px;min-height:44px;padding:0}.ask-composer .mic-button{border:0}.ask-send-button{border-radius:13px;display:grid;place-items:center}.landing-trust{margin:13px 0 0;color:var(--muted);font-size:12px;line-height:1.5}.landing-status{min-height:18px;margin:6px 0 0;display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px;font-weight:650;line-height:1.5}.connection-dot{width:7px;height:7px;flex:none;border-radius:50%;background:var(--accent, #c87942);box-shadow:0 0 0 4px var(--accent-soft);animation:connection-pulse 1.6s ease-in-out infinite}.app[data-connection=ready] .connection-dot{background:#27844c;box-shadow:0 0 0 4px color-mix(in srgb,#27844c 13%,transparent);animation:none}.app[data-connection=ready] .landing-status{color:var(--muted)}.app[data-connection=reconnecting] .connection-dot,.app[data-connection=error] .connection-dot{background:#b45c34;box-shadow:0 0 0 4px color-mix(in srgb,#b45c34 14%,transparent)}@keyframes connection-pulse{50%{opacity:.42;transform:scale(.82)}}.support-tasks{margin-top:48px}.support-tasks-heading .eyebrow{margin:0}.support-tasks-heading h2{margin:5px 0 0;font-size:21px;font-weight:670;letter-spacing:-.025em}.support-task-grid{margin-top:20px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.support-task{min-height:124px;display:flex;flex-direction:column;justify-content:space-between;gap:16px;border:1px solid var(--line);border-radius:16px;padding:18px;color:var(--ink, #121212);background:var(--card);text-align:left;text-decoration:none;box-shadow:0 1px #00000005;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}.support-task:not(:disabled):hover{border-color:var(--accent-line);box-shadow:0 12px 28px #00000014;transform:translateY(-2px)}.support-task--contact{border-color:var(--accent-line);background:var(--accent-soft)}.support-task--featured{color:var(--accent-ink, #000);background:var(--accent, #c87942)}.support-task--featured .support-task-copy{color:color-mix(in srgb,var(--accent-ink, #000) 72%,transparent)}.support-task-title{font-size:14px;font-weight:720;line-height:1.35}.support-task-copy{color:var(--muted);font-size:12px;line-height:1.45}.topics-heading{display:flex;align-items:baseline;justify-content:space-between;gap:20px}.topics-heading h2{margin:0;font-size:21px;font-weight:670;letter-spacing:-.025em}.topics-heading>a{color:var(--muted);font-size:13px;font-weight:650}.topic-grid{margin-top:27px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:56px;row-gap:42px}.topic-card h3{margin:0;font-size:14px;font-weight:720;line-height:1.35}.topic-card h3 a,.topic-card li a{color:var(--ink, #121212);text-decoration:none}.topic-card h3 a:hover,.topic-card li a:hover{text-decoration:underline;text-underline-offset:3px}.topic-card>p{margin:7px 0 0;color:var(--muted);font-size:12.5px;line-height:1.5}.topic-card ul{margin:12px 0 0;padding:0;list-style:none;display:grid;gap:8px}.topic-card li{font-size:13px;line-height:1.45}.topics-empty{grid-column:1 / -1;margin:0;color:var(--muted)}.conversation-toolbar{min-height:58px;margin-bottom:22px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);padding-bottom:16px}.app[data-view=landing] .conversation-toolbar{display:none}.conversation-agent{display:flex;align-items:center;gap:10px}.conversation-agent .avatar{width:34px;height:34px;box-shadow:0 0 0 4px var(--accent-soft)}.conversation-agent>span{display:grid;gap:1px}.conversation-agent strong{font-size:14px}.conversation-agent small{color:var(--muted);font-size:11.5px}.conversation-actions{display:flex;align-items:center;gap:7px}.conversation-help-button,.new-conversation-button{min-height:40px;display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:11px;padding:0 12px;color:var(--muted);background:var(--card);font-size:12px;font-weight:680}.conversation-help-button{border-color:transparent;color:var(--ink, #121212);background:var(--accent-soft)}.conversation-help-button:not(:disabled):hover,.new-conversation-button:not(:disabled):hover{border-color:var(--line-strong);color:var(--ink, #121212)}.new-conversation-button>span{font-size:18px;font-weight:400;line-height:1}.thread-list{margin:0;padding:0 0 36px;list-style:none;display:flex;flex-direction:column;gap:20px}.answer-turn{display:grid;gap:8px}.answer-turn--assistant{max-width:90%;border:1px solid var(--line);border-radius:18px 18px 18px 6px;padding:17px 19px 18px;background:var(--card);box-shadow:0 8px 26px #0000000e}.answer-turn--user{width:100%;justify-items:end}.turn-label{margin:0;color:var(--muted);font-size:11px;font-weight:760;letter-spacing:.02em}.answer-turn--assistant .turn-label{display:flex;align-items:center;gap:7px;color:var(--ink, #121212)}.answer-turn--assistant .turn-label:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--accent, #c87942);box-shadow:0 0 0 3px var(--accent-soft)}.turn-copy{color:var(--ink, #121212);font-size:15px;line-height:1.62}.turn-copy p{overflow-wrap:anywhere}.markdown-body{min-width:0}.markdown-body>:first-child{margin-top:0}.markdown-body>:last-child{margin-bottom:0}.markdown-body p{margin:0 0 .72em}.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4{margin:1.15em 0 .42em;font-weight:750;letter-spacing:-.018em;line-height:1.25}.markdown-body h1{font-size:1.3em}.markdown-body h2{font-size:1.18em}.markdown-body h3,.markdown-body h4{font-size:1em}.markdown-body ul,.markdown-body ol{margin:.55em 0 .8em;padding-left:1.35em}.markdown-body li{margin:.3em 0;padding-left:.15em}.markdown-body li::marker{color:var(--accent-text, var(--accent, #c87942));font-weight:750}.markdown-body strong{font-weight:760}.markdown-body a{color:var(--accent-text, #9b542c);font-weight:650;text-decoration-thickness:1px;text-underline-offset:3px}.markdown-body a:hover{text-decoration-thickness:2px}.markdown-body blockquote{margin:.7em 0;border-left:3px solid var(--accent, #c87942);padding:.1em 0 .1em 1em;color:var(--muted)}.markdown-body code{border-radius:5px;padding:.12em .35em;background:var(--soft);font:.88em/1.5 ui-monospace,SFMono-Regular,Consolas,monospace}.markdown-body pre{max-width:100%;overflow-x:auto;margin:.75em 0;border:1px solid var(--line);border-radius:10px;padding:12px 14px;background:var(--soft)}.markdown-body pre code{padding:0;background:transparent}.markdown-body table{display:block;max-width:100%;overflow-x:auto;margin:.8em 0;border-spacing:0;font-size:.9em}.markdown-body th,.markdown-body td{border-bottom:1px solid var(--line);padding:8px 12px;text-align:left;vertical-align:top}.markdown-body th{background:var(--soft);font-weight:720}.markdown-body hr{height:1px;margin:1em 0;border:0;background:var(--line)}.answer-turn--user .turn-label{padding-right:4px}.answer-turn--user .turn-copy{max-width:82%;border:1px solid var(--accent-line);border-radius:17px 17px 6px;padding:12px 15px;background:var(--accent-soft);font-size:15px;font-weight:580;letter-spacing:-.01em;line-height:1.45}.answer-turn--user .turn-copy h2{margin:0;overflow-wrap:anywhere;font:inherit}.answer-turn--pending{opacity:.65}.typing-bubble{min-height:25px}.typing-dots{display:inline-flex;gap:4px;align-items:center}.typing-dots span{width:6px;height:6px;border-radius:50%;background:var(--muted);animation:typing-blink 1.2s ease-in-out infinite}.typing-dots span:nth-child(2){animation-delay:.2s}.typing-dots span:nth-child(3){animation-delay:.4s}@keyframes typing-blink{0%,80%,to{opacity:.3}40%{opacity:1}}.typing-static{display:none;font-weight:700;letter-spacing:2px}.typing-copy{margin-left:9px;color:var(--muted);font-size:12.5px;font-weight:600}.system-note{padding:2px 8px;color:var(--muted);text-align:center;font-size:12.5px;line-height:1.45}.sources-row{margin-top:-8px}.sources-card{width:100%}.sources-card summary{width:max-content;min-height:44px;display:flex;align-items:center;border-radius:7px;padding:5px 7px;color:var(--muted);font-size:12px;font-weight:650;cursor:pointer}.sources-card[open] summary{margin-bottom:8px}.sources-list{display:flex;flex-wrap:wrap;gap:7px}.source-chip{min-height:44px;max-width:100%;display:inline-flex;flex-direction:column;justify-content:center;gap:1px;border-radius:8px;padding:7px 9px;color:inherit;background:var(--soft);text-decoration:none}.source-chip:hover{background:var(--accent-soft)}.source-chip span{color:var(--ink, #121212);font-size:12.5px;font-weight:650}.source-chip small{color:var(--muted);font-size:10.5px}.products-row{margin-top:-6px}.product-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}.product-result{min-width:0;overflow:hidden;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:14px;color:var(--ink, #121212);background:var(--card);text-decoration:none}.product-result:hover{border-color:var(--accent-line);box-shadow:0 8px 24px #00000012}.product-result>img{width:100%;aspect-ratio:4 / 3;object-fit:cover;background:var(--soft)}.product-result-copy{display:grid;gap:4px;padding:12px}.product-result-copy strong{overflow:hidden;font-size:13px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.product-result-copy>span{font-size:12.5px;font-weight:680}.product-result-copy small{color:var(--muted);font-size:10.5px}.follow-up-prompts{margin-top:9px}.follow-up-prompts>p{margin:0 0 7px;color:var(--muted);font-size:12px;font-weight:650}.follow-up-list{display:flex;flex-wrap:wrap;gap:7px}.follow-up-chip{min-height:36px;border-radius:8px;padding:7px 10px;color:var(--ink, #121212);background:var(--soft);font-size:12px;font-weight:600;text-align:left}.follow-up-chip:hover{background:var(--accent-soft)}.bubble-row{display:flex;align-items:flex-start;gap:10px}.bubble-stack{width:100%;max-width:31rem;display:grid;gap:10px}.chat-card{display:grid;gap:11px;border:1px solid var(--line);border-radius:12px;padding:16px;background:var(--card)}.chat-card-lead{margin:0;font-size:14px;font-weight:680}.chat-card-copy{margin:0;color:var(--muted);font-size:12.5px;line-height:1.5}.access-button{min-height:44px;border-radius:9px;color:var(--accent-ink, #000);background:var(--accent, #c87942);font-weight:700}.signin-card{display:grid;gap:10px}.signin-card .chat-card-lead{font-size:16px;font-weight:750}.signin-button{width:100%;border-radius:10px}.access-button:not(:disabled):hover{transform:translateY(-1px)}.access-feedback{color:var(--muted);font-size:11.5px;line-height:1.45}.session-turnstile{overflow:hidden}.session-turnstile{position:fixed;z-index:30;right:16px;bottom:max(16px,env(safe-area-inset-bottom));width:min(20rem,calc(100% - 32px));pointer-events:none}.session-turnstile:not(:empty){min-height:65px;pointer-events:auto}.session-turnstile:empty{display:none}.cf-turnstile{min-height:65px;overflow:hidden}.eyebrow{margin:0;color:var(--accent-text, var(--accent, #c87942));font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.ticket-card{gap:6px}.ticket-title{margin:0;font-size:15px;font-weight:700}.ticket-copy{margin:0;color:var(--muted);font-size:12.5px;line-height:1.5}.ticket-card dl{margin:4px 0 0;display:flex;gap:22px}.ticket-card dl div{display:grid;gap:3px}.ticket-card dt{color:var(--muted);font-size:10px;font-weight:750;letter-spacing:.1em;text-transform:uppercase}.ticket-card dd{margin:0;font-size:13px;font-weight:700}.composer-bar{flex:none;background:linear-gradient(to top,var(--page) 72%,transparent)}.composer-inner{width:min(var(--answer-width),100% - 40px);margin:0 auto;padding:10px 0 max(18px,env(safe-area-inset-bottom))}.composer{display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:18px;padding:7px;background:var(--card);box-shadow:0 16px 46px #0000001f}.composer:focus-within{border-color:var(--accent-line);box-shadow:0 0 0 3px var(--focus-ring),0 16px 46px #0000001f}.composer input{flex:1 1 auto;min-width:0;min-height:46px;border:0;border-radius:12px;padding:0 10px;color:var(--ink, #121212);background:transparent;font-size:16px;outline:0}.composer input:focus-visible{outline:0}.mic-button{width:44px;height:44px;flex:none;display:grid;place-items:center;border:0;border-radius:12px;color:var(--muted);background:transparent}.mic-button--active{border-color:transparent;color:var(--accent-ink, #000);background:var(--accent, #c87942);animation:mic-pulse 1.6s ease-in-out infinite}@keyframes mic-pulse{50%{box-shadow:0 0 0 8px color-mix(in srgb,var(--accent, #c87942) 18%,transparent)}}.mute-button{min-height:44px;flex:none;border:1px solid var(--line-strong);border-radius:10px;padding:0 13px;color:var(--ink, #121212);background:var(--card);font-size:12.5px;font-weight:650}.send-button{width:44px;min-width:44px;min-height:44px;flex:none;display:grid;place-items:center;border-radius:13px;padding:0;color:var(--accent-ink, #000);background:var(--accent, #c87942);font-weight:700}.send-button:not(:disabled):hover,.mic-button:not(:disabled):hover{transform:translateY(-1px)}@media(max-width:700px){.chat-header-inner{width:100%;min-height:58px;padding:0 14px}.brand-sub{display:none}.support-nav a,.text-button{min-height:44px;font-size:14px}.help-centre-link:before{display:none}.account-name,.account-chevron{display:none}.account-menu summary{padding-right:5px}.account-popover{position:fixed;top:calc(58px + env(safe-area-inset-top));right:12px}.app[data-view=landing] .thread-inner{width:100%;padding:44px 20px 80px}.thread-inner,.composer-inner{width:100%;padding-left:16px;padding-right:16px}.landing-hero h1{font-size:2.25rem;line-height:1.05}.landing-lede{margin-top:16px;font-size:14px}.ask-composer{position:static;width:100%;min-height:54px;margin-top:20px;border-radius:13px}.landing-trust{font-size:11.5px}.support-tasks{margin-top:38px}.support-task-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.support-task{min-height:132px;padding:14px}.topics-section{margin-top:52px}.topic-grid{grid-template-columns:1fr;gap:31px}.topics-heading>a,.topic-card h3 a,.topic-card li a{min-height:44px;display:flex;align-items:center}.topic-card ul{margin-top:4px;gap:0}.thread-inner{padding-top:16px}.conversation-toolbar{margin-bottom:16px}.conversation-agent small{display:none}.conversation-actions{gap:4px}.conversation-help-button{min-height:44px;padding-inline:10px}.new-conversation-button{min-height:44px;font-size:0;padding:0 11px}.new-conversation-button>span{font-size:22px}.thread-list{padding-bottom:28px}.answer-turn--assistant{max-width:96%;padding:15px 16px 16px}.answer-turn--user .turn-copy{max-width:90%}.bubble-stack{max-width:100%}.bubble-row>.avatar{display:none}.composer-inner{padding-top:8px;padding-bottom:max(16px,env(safe-area-inset-bottom))}.composer input{font-size:16px}.composer .mic-button:not(.mic-button--active){display:none}.send-button{min-width:44px;padding:0}.follow-up-chip{min-height:44px;font-size:16px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.typing-dots{display:none}.typing-static{display:inline}}.lucide{width:1.15em;height:1.15em;display:block;stroke-width:2}body{background:radial-gradient(circle at 5% 0%,color-mix(in srgb,var(--accent, #c87942) 7%,transparent),transparent 26rem),var(--page)}.chat-header{background:color-mix(in srgb,var(--card) 94%,transparent)}.chat-header-inner{min-height:68px}.brand{max-width:min(20rem,46vw);gap:11px}.brand-name{font-size:16px}.brand-sub{font-size:11px}.brand-logo{max-width:132px}.support-nav a{gap:8px}.help-centre-link:before{display:none}.help-centre-link .lucide{width:17px;height:17px}.account-signin{min-height:44px;display:inline-flex;align-items:center;gap:8px;border-radius:12px;padding:4px 10px 4px 5px!important;color:var(--ink, #121212)!important;text-decoration:none}.account-signin:hover{background:var(--soft)!important}.account-avatar{width:34px;height:34px;border-radius:10px;font-size:12px}.account-avatar--anonymous{color:var(--ink, #121212);background:var(--soft);box-shadow:inset 0 0 0 1px var(--line)}.account-avatar--anonymous .lucide{width:17px;height:17px}.account-signin-label{font-size:13px;font-weight:700}.account-chevron .lucide{width:14px;height:14px}.avatar--ava{color:var(--accent-ink, #000);background:var(--accent, #c87942);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ink, #121212) 10%,transparent)}.avatar--ava .lucide{width:13px;height:13px}.app[data-view=landing] .thread-inner{padding:58px 0 88px}.landing-hero-layout{display:grid;grid-template-columns:minmax(0,1.06fr) minmax(22rem,.94fr);align-items:center;gap:clamp(42px,6vw,76px)}.landing-hero{max-width:none}.welcome-kicker{margin:0 0 18px;display:flex;align-items:center;gap:10px;color:var(--muted);font-size:13px;font-weight:700}.welcome-kicker .lucide{width:16px;height:16px;color:var(--accent-text, var(--accent, #c87942))}.landing-hero h1{max-width:12ch;font-size:clamp(3.25rem,6vw,5.2rem);font-weight:690;line-height:.96}.landing-lede{max-width:39rem;margin-top:22px;font-size:16px;line-height:1.55}.ask-composer{min-height:64px;margin-top:28px;border-radius:20px;padding-left:12px}.ask-icon{width:30px;height:30px;border-radius:10px;color:var(--accent-text, var(--accent, #c87942));background:var(--accent-soft)}.ask-icon .lucide{width:16px;height:16px}.ask-composer textarea,.composer textarea{flex:1 1 auto;min-width:0;max-height:112px;overflow-y:auto;resize:none;border:0;color:var(--ink, #121212);background:transparent;outline:0;font-size:16px;line-height:1.45}.ask-composer textarea{min-height:44px;padding:10px 3px}.ask-composer textarea::placeholder,.composer textarea::placeholder{color:var(--muted)}.ask-composer textarea:focus-visible,.composer textarea:focus-visible{outline:0}.landing-trust{margin-top:14px}.welcome-visual{position:relative;min-height:392px;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;border:1px solid color-mix(in srgb,var(--accent, #c87942) 24%,var(--line));border-radius:30px;padding:30px;color:var(--ink, #121212);background:radial-gradient(circle at 70% 15%,color-mix(in srgb,var(--accent, #c87942) 48%,#fff),transparent 34%),radial-gradient(circle at 15% 40%,color-mix(in srgb,var(--ink, #121212) 9%,transparent),transparent 38%),linear-gradient(145deg,color-mix(in srgb,var(--accent, #c87942) 8%,#fff),color-mix(in srgb,var(--accent, #c87942) 20%,#f3eee9));box-shadow:0 24px 70px #0000001a}.welcome-visual:after{content:"";position:absolute;top:-18%;right:-24%;width:68%;aspect-ratio:1;border-radius:50%;border:1px solid color-mix(in srgb,var(--accent, #c87942) 25%,transparent);box-shadow:0 0 0 26px color-mix(in srgb,#fff 18%,transparent),0 0 0 54px color-mix(in srgb,#fff 12%,transparent)}.welcome-orb{position:absolute;top:42px;right:50%;width:130px;height:130px;transform:translate(50%)}.welcome-orb-ring{position:absolute;inset:0;border:1px solid color-mix(in srgb,var(--accent, #c87942) 30%,transparent);border-radius:50%}.welcome-orb-ring--one{transform:scale(1.35);opacity:.62}.welcome-orb-ring--two{transform:scale(1.75);opacity:.3}.welcome-avatar{position:absolute;inset:0;display:grid;place-items:center}.welcome-avatar .avatar{width:82px;height:82px;font-size:0;box-shadow:0 18px 34px color-mix(in srgb,var(--accent, #c87942) 34%,transparent)}.welcome-avatar .lucide{width:32px;height:32px}.welcome-copy,.welcome-capabilities{position:relative;z-index:1}.welcome-eyebrow{margin:0 0 8px;display:flex;align-items:center;gap:8px;font-size:12px;font-weight:780}.welcome-brand{min-width:30px;min-height:30px;display:grid;place-items:center;overflow:hidden;border-radius:9px;background:color-mix(in srgb,#fff 84%,transparent)}.welcome-brand .brand-logo{width:54px;height:24px;object-fit:contain}.welcome-brand .brand-mark{width:30px;height:30px;border-radius:9px}.welcome-copy h2{max-width:18ch;margin:0;font-size:clamp(1.55rem,2.5vw,2.15rem);letter-spacing:-.035em;line-height:1.05}.welcome-capabilities{margin-top:24px;display:flex;flex-wrap:wrap;gap:8px}.welcome-capabilities>span{min-height:35px;display:inline-flex;align-items:center;gap:7px;border:1px solid color-mix(in srgb,var(--ink, #121212) 9%,transparent);border-radius:999px;padding:7px 10px;background:color-mix(in srgb,#fff 80%,transparent);backdrop-filter:blur(12px);font-size:11px;font-weight:700}.support-tasks{margin-top:64px}.support-tasks-heading h2,.topics-heading h2{font-size:24px}.support-task-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.support-task{min-height:124px;flex-direction:row;justify-content:flex-start;align-items:flex-start;gap:12px;border-radius:18px;padding:17px}.support-task>span:last-child{min-width:0;display:grid;gap:7px}.support-task-icon{width:36px;height:36px;flex:none;display:grid;place-items:center;border-radius:11px;color:var(--accent-text, var(--accent, #c87942));background:var(--accent-soft)}.support-task-icon .lucide{width:18px;height:18px}.support-task--featured{color:var(--ink, #121212);border-color:var(--accent-line);background:var(--accent-soft)}.support-task--featured .support-task-copy{color:var(--muted)}.support-task--featured .support-task-icon{color:var(--accent-ink, #000);background:var(--accent, #c87942)}.support-task-title,.support-task-copy{display:block}.support-task-title{font-size:14px}.support-task-copy{font-size:12px}.support-secondary-actions{margin-top:12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.support-secondary-actions>button,.support-secondary-actions>a{min-height:72px;display:grid;grid-template-columns:34px minmax(0,1fr) 20px;align-items:center;gap:11px;border:1px solid var(--line);border-radius:16px;padding:12px 14px;color:var(--ink, #121212);background:transparent;text-align:left;text-decoration:none}.support-secondary-actions>:is(button,a):hover{border-color:var(--accent-line);background:var(--card)}.support-secondary-actions>:is(button,a)>.lucide:first-child{width:19px;height:19px;margin-inline:auto;color:var(--muted)}.support-secondary-actions>:is(button,a)>.lucide:last-child{width:16px;height:16px;color:var(--muted)}.support-secondary-actions span{min-width:0;display:grid;gap:3px}.support-secondary-actions strong{font-size:13px}.support-secondary-actions small{overflow:hidden;color:var(--muted);font-size:11.5px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.topics-section{margin-top:72px}.conversation-toolbar{position:sticky;z-index:8;top:0;min-height:68px;margin:0 0 28px;border-bottom:1px solid var(--line);padding:10px 0;background:color-mix(in srgb,var(--page) 92%,transparent);backdrop-filter:blur(16px)}.conversation-agent .avatar{width:36px;height:36px}.conversation-agent .avatar .lucide{width:16px;height:16px}.conversation-help-button,.new-conversation-button{min-height:44px;border-radius:13px;font-size:13px}.conversation-account{display:none}.new-conversation-button .lucide{width:17px;height:17px}.thread-list{gap:24px}.answer-turn--assistant{max-width:100%;border:0;border-radius:0;padding:0;background:transparent;box-shadow:none}.answer-turn--assistant .turn-label:before{width:18px;height:18px;display:grid;place-items:center;background:var(--accent, #c87942);box-shadow:none}.answer-turn--assistant .turn-copy{max-width:46rem}.turn-copy{font-size:16px;line-height:1.62}.answer-turn--user .turn-copy{max-width:78%}.answer-turn--user .turn-copy p{margin:0;overflow-wrap:anywhere}.message-actions{min-height:44px;margin-top:10px;display:flex;align-items:center;gap:3px}.message-action{width:44px;height:44px;display:grid;place-items:center;border-radius:12px;color:var(--muted);background:transparent}.message-action:not(:disabled):hover{color:var(--ink, #121212);background:var(--soft)}.message-action[aria-pressed=true]{color:var(--accent-text, var(--accent, #c87942));background:var(--accent-soft)}.message-action .lucide{width:17px;height:17px}.sources-row{margin-top:-12px}.sources-card summary{border-radius:10px;font-size:13px}.follow-up-list{flex-wrap:nowrap;overflow-x:auto;padding-bottom:3px;scrollbar-width:none}.follow-up-list::-webkit-scrollbar{display:none}.follow-up-chip{flex:0 0 auto;min-height:40px;border-radius:999px;padding-inline:13px}.products-row{min-width:0;margin-top:-8px}.product-results{margin:0;padding:0;list-style:none;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.product-result-item{min-width:0}.product-result{height:100%;border-radius:18px;box-shadow:0 1px #00000006}.product-result-media{width:100%;aspect-ratio:4 / 3;overflow:hidden;display:block;background:var(--soft)}.product-result-media>img{width:100%;height:100%;display:block;object-fit:cover}.product-result-copy{gap:7px;padding:14px}.product-result-copy strong{display:-webkit-box;min-height:2.7em;overflow:hidden;font-size:14px;line-height:1.35;text-overflow:clip;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2}.product-result-copy>span{font-size:14px}.product-availability{width:max-content;border-radius:999px;padding:4px 7px;color:var(--muted);background:var(--soft);font-size:11px!important}.product-availability--available{color:#176438;background:color-mix(in srgb,#27844c 12%,#fff)}.product-action{margin-top:4px;color:var(--accent-text, var(--accent, #c87942));font-size:12px!important;font-weight:750}.product-follow-ups{margin-top:10px;display:flex;gap:7px;overflow-x:auto;padding:0 2px 3px;scrollbar-width:none}.product-follow-ups::-webkit-scrollbar{display:none}.product-follow-ups .follow-up-chip{flex:0 0 auto}.composer-bar{background:linear-gradient(to top,var(--page) 78%,color-mix(in srgb,var(--page) 72%,transparent),transparent)}.composer-inner{display:grid;gap:8px}.voice-state{width:max-content;min-height:30px;display:flex;align-items:center;gap:8px;border:1px solid var(--accent-line);border-radius:999px;padding:5px 10px;color:var(--ink, #121212);background:var(--accent-soft);font-size:12px;font-weight:700}.voice-state-dot{width:7px;height:7px;border-radius:50%;background:var(--accent, #c87942);box-shadow:0 0 0 4px color-mix(in srgb,var(--accent, #c87942) 13%,transparent)}.app[data-voice-state=speaking] .voice-state-dot{background:#27844c;box-shadow:0 0 0 4px color-mix(in srgb,#27844c 13%,transparent)}.composer{min-height:62px;border-radius:20px;padding:8px}.composer-sparkle{width:30px;height:30px;flex:none;display:grid;place-items:center;color:var(--accent-text, var(--accent, #c87942))}.composer-sparkle .lucide{width:17px;height:17px}.composer textarea{min-height:44px;padding:10px 4px}.send-button .lucide,.mic-button .lucide{width:19px;height:19px}@media(max-width:900px){.landing-hero-layout{grid-template-columns:minmax(0,1fr) minmax(18rem,.82fr);gap:34px}.welcome-visual{min-height:350px}.support-task-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.app[data-view=conversation] .chat-header{display:none}.chat-header-inner{min-height:62px;padding-inline:14px}.brand{max-width:calc(100% - 104px);gap:8px}.brand-logo{height:28px;max-width:82px}.brand-mark{width:34px;height:34px}.brand-name{max-width:112px;font-size:15px}.brand-sub{display:none}.support-nav{gap:4px}.support-nav a{min-width:44px;min-height:44px;justify-content:center;padding:0}.support-nav .nav-label,.account-signin-label{display:none}.account-signin{width:44px;padding:5px!important}.account-avatar{width:34px;height:34px}.app[data-view=landing] .thread-inner{padding:32px 20px 84px}.landing-hero-layout{display:flex;flex-direction:column;align-items:stretch;gap:30px}.welcome-kicker{margin-bottom:14px;font-size:12px}.landing-hero h1{max-width:11ch;font-size:clamp(2.65rem,13vw,3.5rem);line-height:.98}.landing-lede{margin-top:16px;font-size:16px;line-height:1.5}.ask-composer{min-height:62px;margin-top:22px;border-radius:18px}.landing-trust{font-size:12px}.welcome-visual{min-height:248px;border-radius:24px;padding:22px}.welcome-orb{top:26px;width:92px;height:92px}.welcome-avatar .avatar{width:64px;height:64px}.welcome-avatar .lucide{width:25px;height:25px}.welcome-copy h2{max-width:17ch;font-size:1.55rem}.welcome-capabilities{margin-top:17px;gap:6px}.welcome-capabilities>span{min-height:32px;padding:6px 8px;font-size:10px}.support-tasks{margin-top:48px}.support-task-grid{grid-template-columns:1fr;gap:9px}.support-task{min-height:88px;align-items:center;border-radius:16px;padding:14px}.support-task-title{font-size:16px}.support-task-copy{font-size:14px;line-height:1.4}.support-secondary-actions{grid-template-columns:1fr;gap:8px}.support-secondary-actions>button,.support-secondary-actions>a{min-height:76px}.support-secondary-actions strong{font-size:16px}.support-secondary-actions small{font-size:14px}.topics-section{margin-top:56px}.thread-inner{padding-top:0}.conversation-toolbar{width:calc(100% + 32px);min-height:64px;margin:0 -16px 24px;padding:max(10px,env(safe-area-inset-top)) 16px 10px;background:color-mix(in srgb,var(--card) 96%,transparent)}.conversation-agent small{display:none}.conversation-actions{gap:5px}.conversation-account{display:block}.conversation-account .account-signin{width:44px;padding:5px!important}.conversation-account .account-menu summary{width:44px;padding:5px}.conversation-account :is(.account-signin-label,.account-name,.account-chevron){display:none}.conversation-help-button{width:44px;padding:0;justify-content:center}.conversation-help-button>span{display:none}.conversation-help-button .lucide{width:17px;height:17px}.new-conversation-button{width:44px;padding:0;justify-content:center}.new-conversation-button>span{display:none}.answer-turn--assistant{max-width:100%;padding:0}.turn-copy{font-size:16px}.answer-turn--user .turn-copy{max-width:90%}.product-results{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(260px,80vw);grid-template-columns:none;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:inline mandatory;padding:2px 2px 10px;scrollbar-width:none}.product-results::-webkit-scrollbar{display:none}.product-result-item{scroll-snap-align:start}.product-result-copy strong{font-size:16px}.product-result-copy>span{font-size:16px}.product-availability{font-size:12px!important}.product-action{min-height:44px;display:flex;align-items:center;font-size:14px!important}.follow-up-chip{min-height:44px;font-size:14px}.composer-inner{padding-inline:12px}.composer{min-height:60px}.composer input{display:none}.composer .mic-button:not(.mic-button--active){display:grid}.composer-sparkle{display:none}}@media(max-width:340px){.chat-header-inner{padding-inline:10px}.brand{max-width:calc(100% - 100px)}.brand-name{max-width:86px}.conversation-agent{gap:7px}.conversation-help-button{font-size:12px;padding-inline:8px}} +:root{color-scheme:light;font-family:var(--font, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif);color:var(--ink, #121212);background:var(--canvas, #ffffff);font-synthesis:none;--card: #ffffff;--soft: color-mix(in srgb, var(--ink, #121212) 4%, #ffffff);--line: color-mix(in srgb, var(--ink, #121212) 12%, transparent);--line-strong: color-mix(in srgb, var(--ink, #121212) 22%, transparent);--muted: color-mix(in srgb, var(--ink, #121212) 62%, var(--canvas, #ffffff));--accent-soft: color-mix(in srgb, var(--accent, #c87942) 9%, #ffffff);--accent-line: color-mix(in srgb, var(--accent, #c87942) 34%, transparent);--focus-ring: var(--ink, #121212);--customer-message: #eaf4ff;--customer-message-ink: #0060bf;--customer-message-line: #bddcff;--page: color-mix(in srgb, var(--canvas, #ffffff) 94%, var(--ink, #121212));--surface-width: 72rem;--answer-width: 52rem}*{box-sizing:border-box}html,body{min-height:100%}html.support-conversation,body.support-conversation{height:100%;overflow:hidden;overscroll-behavior:none}body{margin:0;min-width:320px;font-family:inherit;background:radial-gradient(circle at 12% 0%,var(--accent-soft),transparent 30rem),var(--page)}button,input,textarea{font:inherit}button{border:0;cursor:pointer;touch-action:manipulation}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,input:focus-visible,textarea:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.skip-link{position:fixed;z-index:20;top:8px;left:8px;transform:translateY(-150%);border-radius:8px;padding:10px 14px;color:var(--ink, #121212);background:#fff;box-shadow:0 2px 12px #0000001f;font-weight:700}.skip-link:focus{transform:translateY(0)}.app{min-height:100dvh;display:flex;flex-direction:column}.app[data-view=conversation]{position:fixed;z-index:1;top:var(--support-viewport-top, 0px);right:0;left:0;width:100%;min-height:0;height:var(--support-viewport-height, 100dvh);max-height:var(--support-viewport-height, 100dvh);overflow:hidden}.chat-header{position:relative;z-index:10;flex:none;padding-top:env(safe-area-inset-top);border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--card) 88%,transparent);backdrop-filter:blur(18px)}.chat-header-inner{width:min(var(--surface-width),100% - 40px);min-height:72px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:16px}.header-actions,.support-nav{display:flex;align-items:center;gap:8px}.support-nav a,.text-button{min-height:44px;display:inline-flex;align-items:center;border-radius:9px;padding:0 9px;color:var(--muted);background:transparent;font-size:13px;font-weight:650;text-decoration:none;white-space:nowrap}.support-nav a:hover,.text-button:not(:disabled):hover{color:var(--ink, #121212);background:var(--soft)}.help-centre-link:before{content:"?";width:20px;height:20px;display:grid;place-items:center;margin-right:7px;border:1px solid var(--line-strong);border-radius:50%;font-size:11px;font-weight:800}.account-menu{position:relative}.account-menu summary{min-height:44px;display:flex;align-items:center;gap:8px;border-radius:12px;padding:4px 8px 4px 5px;color:var(--ink, #121212);cursor:pointer;list-style:none}.account-menu summary::-webkit-details-marker{display:none}.account-menu summary:hover,.account-menu[open] summary{background:var(--soft)}.account-avatar{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;color:var(--accent-ink, #000);background:var(--accent, #c87942);font-size:11px;font-weight:800}.account-name{max-width:10rem;overflow:hidden;font-size:13px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.account-chevron{color:var(--muted);font-size:14px;transition:transform .15s ease}.account-menu[open] .account-chevron{transform:rotate(180deg)}.account-popover{position:absolute;z-index:20;top:calc(100% + 8px);right:0;width:220px;overflow:hidden;border:1px solid var(--line);border-radius:14px;padding:8px;background:var(--card);box-shadow:0 18px 50px #00000024}.account-popover p{margin:0;display:grid;gap:2px;padding:10px 10px 12px;border-bottom:1px solid var(--line)}.account-popover p strong{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.account-popover p span{color:var(--muted);font-size:11px}.account-popover a{width:100%;margin-top:6px;justify-content:flex-start}.brand{min-width:0;display:inline-flex;align-items:center;gap:10px;color:inherit;text-decoration:none}.brand-logo{display:block;height:32px;max-width:160px;object-fit:contain}.brand-mark,.avatar{flex:none;display:grid;place-items:center;color:var(--accent-ink, #000);background:var(--accent, #c87942);font-size:11px;font-weight:800}.brand-mark{width:36px;height:36px;border-radius:11px;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ink, #121212) 10%,transparent)}.avatar{width:28px;height:28px;border-radius:50%}.brand-text{min-width:0;display:grid;line-height:1.25}.brand-name{overflow:hidden;font-size:15px;font-weight:760;letter-spacing:-.015em;text-overflow:ellipsis;white-space:nowrap}.brand-sub{color:var(--muted);font-size:12px}.reconnect-banner{flex:none;padding:8px 16px;border-bottom:1px solid var(--accent-line);color:var(--ink, #121212);background:var(--accent-soft);text-align:center;font-size:13px;font-weight:650}.thread{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scroll-padding-block:24px;scrollbar-color:var(--line-strong) transparent}.thread-inner{width:min(var(--answer-width),100% - 40px);margin:0 auto;padding:24px 0 28px}.app[data-view=landing] .thread{flex:none;overflow:visible}.app[data-view=landing] .thread-inner{width:min(var(--surface-width),100% - 40px);padding:84px 0 80px}.landing-hero{max-width:54rem}.landing-hero h1{max-width:18ch;margin:0;font-size:clamp(2.75rem,5vw,4.5rem);font-weight:680;letter-spacing:-.045em;line-height:1}.landing-lede{max-width:46rem;margin:22px 0 0;color:var(--muted);font-size:16px;line-height:1.6}.ask-composer{width:100%;min-height:64px;margin-top:30px;display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:18px;padding:8px 8px 8px 14px;background:#fff;box-shadow:0 1px #0000000a,0 18px 50px #00000017}.ask-composer:focus-within{border-color:var(--line-strong);box-shadow:0 0 0 3px var(--focus-ring),0 8px 24px #00000014}.ask-icon{flex:none;display:grid;place-items:center}.ask-icon .avatar{width:24px;height:24px;font-size:9px}.ask-composer input{flex:1 1 auto;min-width:0;min-height:44px;border:0;padding:0 3px;color:var(--ink, #121212);background:transparent;font-size:16px;outline:0}.ask-composer input::placeholder,.composer input::placeholder{color:var(--muted)}.ask-composer input:focus-visible{outline:0}.ask-composer .mic-button,.ask-composer .ask-send-button{width:44px;height:44px;min-width:44px;min-height:44px;padding:0}.ask-composer .mic-button{border:0}.ask-send-button{border-radius:13px;display:grid;place-items:center}.landing-trust{margin:13px 0 0;color:var(--muted);font-size:12px;line-height:1.5}.landing-status{min-height:18px;margin:6px 0 0;display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px;font-weight:650;line-height:1.5}.connection-dot{width:7px;height:7px;flex:none;border-radius:50%;background:var(--accent, #c87942);box-shadow:0 0 0 4px var(--accent-soft);animation:connection-pulse 1.6s ease-in-out infinite}.app[data-connection=ready] .connection-dot{background:#27844c;box-shadow:0 0 0 4px color-mix(in srgb,#27844c 13%,transparent);animation:none}.app[data-connection=ready] .landing-status{color:var(--muted)}.app[data-connection=reconnecting] .connection-dot,.app[data-connection=error] .connection-dot{background:#b45c34;box-shadow:0 0 0 4px color-mix(in srgb,#b45c34 14%,transparent)}@keyframes connection-pulse{50%{opacity:.42;transform:scale(.82)}}.support-tasks{margin-top:48px}.support-tasks-heading .eyebrow{margin:0}.support-tasks-heading h2{margin:5px 0 0;font-size:21px;font-weight:670;letter-spacing:-.025em}.support-task-grid{margin-top:20px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.support-task{min-height:124px;display:flex;flex-direction:column;justify-content:space-between;gap:16px;border:1px solid var(--line);border-radius:16px;padding:18px;color:var(--ink, #121212);background:var(--card);text-align:left;text-decoration:none;box-shadow:0 1px #00000005;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}.support-task:not(:disabled):hover{border-color:var(--accent-line);box-shadow:0 12px 28px #00000014;transform:translateY(-2px)}.support-task--contact{border-color:var(--accent-line);background:var(--accent-soft)}.support-task--featured{color:var(--accent-ink, #000);background:var(--accent, #c87942)}.support-task--featured .support-task-copy{color:color-mix(in srgb,var(--accent-ink, #000) 72%,transparent)}.support-task-title{font-size:14px;font-weight:720;line-height:1.35}.support-task-copy{color:var(--muted);font-size:12px;line-height:1.45}.topics-heading{display:flex;align-items:baseline;justify-content:space-between;gap:20px}.topics-heading h2{margin:0;font-size:21px;font-weight:670;letter-spacing:-.025em}.topics-heading>a{color:var(--muted);font-size:13px;font-weight:650}.topic-grid{margin-top:27px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:56px;row-gap:42px}.topic-card h3{margin:0;font-size:14px;font-weight:720;line-height:1.35}.topic-card h3 a,.topic-card li a{color:var(--ink, #121212);text-decoration:none}.topic-card h3 a:hover,.topic-card li a:hover{text-decoration:underline;text-underline-offset:3px}.topic-card>p{margin:7px 0 0;color:var(--muted);font-size:12.5px;line-height:1.5}.topic-card ul{margin:12px 0 0;padding:0;list-style:none;display:grid;gap:8px}.topic-card li{font-size:13px;line-height:1.45}.topics-empty{grid-column:1 / -1;margin:0;color:var(--muted)}.conversation-toolbar{min-height:58px;margin-bottom:22px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);padding-bottom:16px}.app[data-view=landing] .conversation-toolbar{display:none}.conversation-agent{display:flex;align-items:center;gap:10px}.conversation-agent .avatar{width:34px;height:34px;box-shadow:0 0 0 4px var(--accent-soft)}.conversation-agent>span{display:grid;gap:1px}.conversation-agent strong{font-size:14px}.conversation-agent small{color:var(--muted);font-size:11.5px}.conversation-actions{display:flex;align-items:center;gap:7px}.conversation-help-button,.new-conversation-button{min-height:40px;display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:11px;padding:0 12px;color:var(--muted);background:var(--card);font-size:12px;font-weight:680}.conversation-help-button{border-color:transparent;color:var(--ink, #121212);background:var(--accent-soft)}.conversation-help-button:not(:disabled):hover,.new-conversation-button:not(:disabled):hover{border-color:var(--line-strong);color:var(--ink, #121212)}.new-conversation-button>span{font-size:18px;font-weight:400;line-height:1}.thread-list{margin:0;padding:0 0 36px;list-style:none;display:flex;flex-direction:column;gap:20px}.answer-turn{display:grid;gap:8px}.answer-turn--assistant{max-width:90%;border:1px solid var(--line);border-radius:18px 18px 18px 6px;padding:17px 19px 18px;background:var(--card);box-shadow:0 8px 26px #0000000e}.answer-turn--user{width:100%;justify-items:end}.turn-label{margin:0;color:var(--muted);font-size:11px;font-weight:760;letter-spacing:.02em}.answer-turn--assistant .turn-label{display:flex;align-items:center;gap:7px;color:var(--ink, #121212)}.answer-turn--assistant .turn-label:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--accent, #c87942);box-shadow:0 0 0 3px var(--accent-soft)}.turn-copy{color:var(--ink, #121212);font-size:15px;line-height:1.62}.turn-copy p{overflow-wrap:anywhere}.markdown-body{min-width:0}.markdown-body>:first-child{margin-top:0}.markdown-body>:last-child{margin-bottom:0}.markdown-body p{margin:0 0 .72em}.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4{margin:1.15em 0 .42em;font-weight:750;letter-spacing:-.018em;line-height:1.25}.markdown-body h1{font-size:1.3em}.markdown-body h2{font-size:1.18em}.markdown-body h3,.markdown-body h4{font-size:1em}.markdown-body ul,.markdown-body ol{margin:.55em 0 .8em;padding-left:1.35em}.markdown-body li{margin:.3em 0;padding-left:.15em}.markdown-body li::marker{color:var(--accent-text, var(--accent, #c87942));font-weight:750}.markdown-body strong{font-weight:760}.markdown-body a{color:var(--accent-text, #9b542c);font-weight:650;text-decoration-thickness:1px;text-underline-offset:3px}.markdown-body a:hover{text-decoration-thickness:2px}.markdown-body blockquote{margin:.7em 0;border-left:3px solid var(--accent, #c87942);padding:.1em 0 .1em 1em;color:var(--muted)}.markdown-body code{border-radius:5px;padding:.12em .35em;background:var(--soft);font:.88em/1.5 ui-monospace,SFMono-Regular,Consolas,monospace}.markdown-body pre{max-width:100%;overflow-x:auto;margin:.75em 0;border:1px solid var(--line);border-radius:10px;padding:12px 14px;background:var(--soft)}.markdown-body pre code{padding:0;background:transparent}.markdown-body table{display:block;max-width:100%;overflow-x:auto;margin:.8em 0;border-spacing:0;font-size:.9em}.markdown-body th,.markdown-body td{border-bottom:1px solid var(--line);padding:8px 12px;text-align:left;vertical-align:top}.markdown-body th{background:var(--soft);font-weight:720}.markdown-body hr{height:1px;margin:1em 0;border:0;background:var(--line)}.answer-turn--user .turn-label{padding-right:4px;color:var(--customer-message-ink)}.answer-turn--user .turn-copy{max-width:82%;border:1px solid var(--customer-message-line);border-radius:17px 17px 6px;padding:12px 15px;color:var(--customer-message-ink);background:var(--customer-message);font-size:15px;font-weight:580;letter-spacing:-.01em;line-height:1.45}.answer-turn--user .turn-copy h2{margin:0;overflow-wrap:anywhere;font:inherit}.answer-turn--pending .turn-copy{border-style:dashed}.typing-bubble{min-height:25px}.typing-dots{display:inline-flex;gap:4px;align-items:center}.typing-dots span{width:6px;height:6px;border-radius:50%;background:var(--muted);animation:typing-blink 1.2s ease-in-out infinite}.typing-dots span:nth-child(2){animation-delay:.2s}.typing-dots span:nth-child(3){animation-delay:.4s}@keyframes typing-blink{0%,80%,to{opacity:.3}40%{opacity:1}}.typing-static{display:none;font-weight:700;letter-spacing:2px}.typing-copy{margin-left:9px;color:var(--muted);font-size:12.5px;font-weight:600}.system-note{padding:2px 8px;color:var(--muted);text-align:center;font-size:12.5px;line-height:1.45}.sources-row{margin-top:-8px}.sources-card{width:100%}.sources-card summary{width:max-content;min-height:44px;display:flex;align-items:center;border-radius:7px;padding:5px 7px;color:var(--muted);font-size:12px;font-weight:650;cursor:pointer}.sources-card[open] summary{margin-bottom:8px}.sources-list{display:flex;flex-wrap:wrap;gap:7px}.source-chip{min-height:44px;max-width:100%;display:inline-flex;flex-direction:column;justify-content:center;gap:1px;border-radius:8px;padding:7px 9px;color:inherit;background:var(--soft);text-decoration:none}.source-chip:hover{background:var(--accent-soft)}.source-chip span{color:var(--ink, #121212);font-size:12.5px;font-weight:650}.source-chip small{color:var(--muted);font-size:10.5px}.products-row{margin-top:-6px}.product-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}.product-result{min-width:0;overflow:hidden;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:14px;color:var(--ink, #121212);background:var(--card);text-decoration:none}.product-result:hover{border-color:var(--accent-line);box-shadow:0 8px 24px #00000012}.product-result>img{width:100%;aspect-ratio:4 / 3;object-fit:cover;background:var(--soft)}.product-result-copy{display:grid;gap:4px;padding:12px}.product-result-copy strong{overflow:hidden;font-size:13px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.product-result-copy>span{font-size:12.5px;font-weight:680}.product-result-copy small{color:var(--muted);font-size:10.5px}.follow-up-prompts{margin-top:9px}.follow-up-prompts>p{margin:0 0 7px;color:var(--muted);font-size:12px;font-weight:650}.follow-up-list{display:flex;flex-wrap:wrap;gap:7px}.follow-up-chip{min-height:36px;border-radius:8px;padding:7px 10px;color:var(--ink, #121212);background:var(--soft);font-size:12px;font-weight:600;text-align:left}.follow-up-chip:hover{background:var(--accent-soft)}.bubble-row{display:flex;align-items:flex-start;gap:10px}.bubble-stack{width:100%;max-width:31rem;display:grid;gap:10px}.chat-card{display:grid;gap:11px;border:1px solid var(--line);border-radius:12px;padding:16px;background:var(--card)}.chat-card-lead{margin:0;font-size:14px;font-weight:680}.chat-card-copy{margin:0;color:var(--muted);font-size:12.5px;line-height:1.5}.access-button{min-height:44px;border-radius:9px;color:var(--accent-ink, #000);background:var(--accent, #c87942);font-weight:700}.signin-card{display:grid;gap:10px}.signin-card .chat-card-lead{font-size:16px;font-weight:750}.signin-button{width:100%;border-radius:10px}.access-button:not(:disabled):hover{transform:translateY(-1px)}.access-feedback{color:var(--muted);font-size:11.5px;line-height:1.45}.session-turnstile{overflow:hidden}.session-turnstile{position:fixed;z-index:30;right:16px;bottom:max(16px,env(safe-area-inset-bottom));width:min(20rem,calc(100% - 32px));pointer-events:none}.session-turnstile:not(:empty){min-height:65px;pointer-events:auto}.session-turnstile:empty{display:none}.cf-turnstile{min-height:65px;overflow:hidden}.eyebrow{margin:0;color:var(--accent-text, var(--accent, #c87942));font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.ticket-card{gap:6px}.ticket-title{margin:0;font-size:15px;font-weight:700}.ticket-copy{margin:0;color:var(--muted);font-size:12.5px;line-height:1.5}.ticket-card dl{margin:4px 0 0;display:flex;gap:22px}.ticket-card dl div{display:grid;gap:3px}.ticket-card dt{color:var(--muted);font-size:10px;font-weight:750;letter-spacing:.1em;text-transform:uppercase}.ticket-card dd{margin:0;font-size:13px;font-weight:700}.composer-bar{flex:none;background:linear-gradient(to top,var(--page) 72%,transparent)}.composer-inner{width:min(var(--answer-width),100% - 40px);margin:0 auto;padding:10px 0 max(18px,env(safe-area-inset-bottom))}.composer{display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:18px;padding:7px;background:var(--card);box-shadow:0 16px 46px #0000001f}.composer:focus-within{border-color:var(--accent-line);box-shadow:0 0 0 3px var(--focus-ring),0 16px 46px #0000001f}.composer input{flex:1 1 auto;min-width:0;min-height:46px;border:0;border-radius:12px;padding:0 10px;color:var(--ink, #121212);background:transparent;font-size:16px;outline:0}.composer input:focus-visible{outline:0}.mic-button{width:44px;height:44px;flex:none;display:grid;place-items:center;border:0;border-radius:12px;color:var(--muted);background:transparent}.mic-button--active{border-color:transparent;color:var(--accent-ink, #000);background:var(--accent, #c87942);animation:mic-pulse 1.6s ease-in-out infinite}@keyframes mic-pulse{50%{box-shadow:0 0 0 8px color-mix(in srgb,var(--accent, #c87942) 18%,transparent)}}.mute-button{min-height:44px;flex:none;border:1px solid var(--line-strong);border-radius:10px;padding:0 13px;color:var(--ink, #121212);background:var(--card);font-size:12.5px;font-weight:650}.send-button{width:44px;min-width:44px;min-height:44px;flex:none;display:grid;place-items:center;border-radius:13px;padding:0;color:var(--accent-ink, #000);background:var(--accent, #c87942);font-weight:700}.send-button:not(:disabled):hover,.mic-button:not(:disabled):hover{transform:translateY(-1px)}@media(max-width:700px){.chat-header-inner{width:100%;min-height:58px;padding:0 14px}.brand-sub{display:none}.support-nav a,.text-button{min-height:44px;font-size:14px}.help-centre-link:before{display:none}.account-name,.account-chevron{display:none}.account-menu summary{padding-right:5px}.account-popover{position:fixed;top:calc(58px + env(safe-area-inset-top));right:12px}.app[data-view=landing] .thread-inner{width:100%;padding:44px 20px 80px}.thread-inner,.composer-inner{width:100%;padding-left:16px;padding-right:16px}.landing-hero h1{font-size:2.25rem;line-height:1.05}.landing-lede{margin-top:16px;font-size:14px}.ask-composer{position:static;width:100%;min-height:54px;margin-top:20px;border-radius:13px}.landing-trust{font-size:11.5px}.support-tasks{margin-top:38px}.support-task-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.support-task{min-height:132px;padding:14px}.topics-section{margin-top:52px}.topic-grid{grid-template-columns:1fr;gap:31px}.topics-heading>a,.topic-card h3 a,.topic-card li a{min-height:44px;display:flex;align-items:center}.topic-card ul{margin-top:4px;gap:0}.thread-inner{padding-top:16px}.conversation-toolbar{margin-bottom:16px}.conversation-agent small{display:none}.conversation-actions{gap:4px}.conversation-help-button{min-height:44px;padding-inline:10px}.new-conversation-button{min-height:44px;font-size:0;padding:0 11px}.new-conversation-button>span{font-size:22px}.thread-list{padding-bottom:28px}.answer-turn--assistant{max-width:96%;padding:15px 16px 16px}.answer-turn--user .turn-copy{max-width:90%}.bubble-stack{max-width:100%}.bubble-row>.avatar{display:none}.composer-inner{padding-top:8px;padding-bottom:max(16px,env(safe-area-inset-bottom))}.composer input{font-size:16px}.composer .mic-button:not(.mic-button--active){display:none}.send-button{min-width:44px;padding:0}.follow-up-chip{min-height:44px;font-size:16px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.typing-dots{display:none}.typing-static{display:inline}}.lucide{width:1.15em;height:1.15em;display:block;stroke-width:2}body{background:radial-gradient(circle at 5% 0%,color-mix(in srgb,var(--accent, #c87942) 7%,transparent),transparent 26rem),var(--page)}.chat-header{background:color-mix(in srgb,var(--card) 94%,transparent)}.chat-header-inner{min-height:68px}.brand{max-width:min(20rem,46vw);gap:11px}.brand-name{font-size:16px}.brand-sub{font-size:11px}.brand-logo{max-width:132px}.support-nav a{gap:8px}.help-centre-link:before{display:none}.help-centre-link .lucide{width:17px;height:17px}.account-signin{min-height:44px;display:inline-flex;align-items:center;gap:8px;border-radius:12px;padding:4px 10px 4px 5px!important;color:var(--ink, #121212)!important;text-decoration:none}.account-signin:hover{background:var(--soft)!important}.account-avatar{width:34px;height:34px;border-radius:10px;font-size:12px}.account-avatar--anonymous{color:var(--ink, #121212);background:var(--soft);box-shadow:inset 0 0 0 1px var(--line)}.account-avatar--anonymous .lucide{width:17px;height:17px}.account-signin-label{font-size:13px;font-weight:700}.account-chevron .lucide{width:14px;height:14px}.avatar--ava{color:var(--accent-ink, #000);background:var(--accent, #c87942);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ink, #121212) 10%,transparent)}.avatar--ava .lucide{width:13px;height:13px}.app[data-view=landing] .thread-inner{padding:58px 0 88px}.landing-hero-layout{display:grid;grid-template-columns:minmax(0,1.06fr) minmax(22rem,.94fr);align-items:center;gap:clamp(42px,6vw,76px)}.landing-hero{max-width:none}.welcome-kicker{margin:0 0 18px;display:flex;align-items:center;gap:10px;color:var(--muted);font-size:13px;font-weight:700}.welcome-kicker .lucide{width:16px;height:16px;color:var(--accent-text, var(--accent, #c87942))}.landing-hero h1{max-width:12ch;font-size:clamp(3.25rem,6vw,5.2rem);font-weight:690;line-height:.96}.landing-lede{max-width:39rem;margin-top:22px;font-size:16px;line-height:1.55}.ask-composer{min-height:64px;margin-top:28px;border-radius:20px;padding-left:12px}.ask-icon{width:30px;height:30px;border-radius:10px;color:var(--accent-text, var(--accent, #c87942));background:var(--accent-soft)}.ask-icon .lucide{width:16px;height:16px}.ask-composer textarea,.composer textarea{flex:1 1 auto;min-width:0;max-height:112px;overflow-y:auto;resize:none;border:0;color:var(--ink, #121212);background:transparent;outline:0;font-size:16px;line-height:1.45}.ask-composer textarea{min-height:44px;padding:10px 3px}.ask-composer textarea::placeholder,.composer textarea::placeholder{color:var(--muted)}.ask-composer textarea:focus-visible,.composer textarea:focus-visible{outline:0}.landing-trust{margin-top:14px}.welcome-visual{position:relative;min-height:392px;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;border:1px solid color-mix(in srgb,var(--accent, #c87942) 24%,var(--line));border-radius:30px;padding:30px;color:var(--ink, #121212);background:radial-gradient(circle at 70% 15%,color-mix(in srgb,var(--accent, #c87942) 48%,#fff),transparent 34%),radial-gradient(circle at 15% 40%,color-mix(in srgb,var(--ink, #121212) 9%,transparent),transparent 38%),linear-gradient(145deg,color-mix(in srgb,var(--accent, #c87942) 8%,#fff),color-mix(in srgb,var(--accent, #c87942) 20%,#f3eee9));box-shadow:0 24px 70px #0000001a}.welcome-visual:after{content:"";position:absolute;top:-18%;right:-24%;width:68%;aspect-ratio:1;border-radius:50%;border:1px solid color-mix(in srgb,var(--accent, #c87942) 25%,transparent);box-shadow:0 0 0 26px color-mix(in srgb,#fff 18%,transparent),0 0 0 54px color-mix(in srgb,#fff 12%,transparent)}.welcome-orb{position:absolute;top:42px;right:50%;width:130px;height:130px;transform:translate(50%)}.welcome-orb-ring{position:absolute;inset:0;border:1px solid color-mix(in srgb,var(--accent, #c87942) 30%,transparent);border-radius:50%}.welcome-orb-ring--one{transform:scale(1.35);opacity:.62}.welcome-orb-ring--two{transform:scale(1.75);opacity:.3}.welcome-avatar{position:absolute;inset:0;display:grid;place-items:center}.welcome-avatar .avatar{width:82px;height:82px;font-size:0;box-shadow:0 18px 34px color-mix(in srgb,var(--accent, #c87942) 34%,transparent)}.welcome-avatar .lucide{width:32px;height:32px}.welcome-copy,.welcome-capabilities{position:relative;z-index:1}.welcome-eyebrow{margin:0 0 8px;display:flex;align-items:center;gap:8px;font-size:12px;font-weight:780}.welcome-brand{min-width:30px;min-height:30px;display:grid;place-items:center;overflow:hidden;border-radius:9px;background:color-mix(in srgb,#fff 84%,transparent)}.welcome-brand .brand-logo{width:54px;height:24px;object-fit:contain}.welcome-brand .brand-mark{width:30px;height:30px;border-radius:9px}.welcome-copy h2{max-width:18ch;margin:0;font-size:clamp(1.55rem,2.5vw,2.15rem);letter-spacing:-.035em;line-height:1.05}.welcome-capabilities{margin-top:24px;display:flex;flex-wrap:wrap;gap:8px}.welcome-capabilities>span{min-height:35px;display:inline-flex;align-items:center;gap:7px;border:1px solid color-mix(in srgb,var(--ink, #121212) 9%,transparent);border-radius:999px;padding:7px 10px;background:color-mix(in srgb,#fff 80%,transparent);backdrop-filter:blur(12px);font-size:11px;font-weight:700}.support-tasks{margin-top:64px}.support-tasks-heading h2,.topics-heading h2{font-size:24px}.support-task-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.support-task{min-height:124px;flex-direction:row;justify-content:flex-start;align-items:flex-start;gap:12px;border-radius:18px;padding:17px}.support-task>span:last-child{min-width:0;display:grid;gap:7px}.support-task-icon{width:36px;height:36px;flex:none;display:grid;place-items:center;border-radius:11px;color:var(--accent-text, var(--accent, #c87942));background:var(--accent-soft)}.support-task-icon .lucide{width:18px;height:18px}.support-task--featured{color:var(--ink, #121212);border-color:var(--accent-line);background:var(--accent-soft)}.support-task--featured .support-task-copy{color:var(--muted)}.support-task--featured .support-task-icon{color:var(--accent-ink, #000);background:var(--accent, #c87942)}.support-task-title,.support-task-copy{display:block}.support-task-title{font-size:14px}.support-task-copy{font-size:12px}.support-secondary-actions{margin-top:12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.support-secondary-actions>button,.support-secondary-actions>a{min-height:72px;display:grid;grid-template-columns:34px minmax(0,1fr) 20px;align-items:center;gap:11px;border:1px solid var(--line);border-radius:16px;padding:12px 14px;color:var(--ink, #121212);background:transparent;text-align:left;text-decoration:none}.support-secondary-actions>:is(button,a):hover{border-color:var(--accent-line);background:var(--card)}.support-secondary-actions>:is(button,a)>.lucide:first-child{width:19px;height:19px;margin-inline:auto;color:var(--muted)}.support-secondary-actions>:is(button,a)>.lucide:last-child{width:16px;height:16px;color:var(--muted)}.support-secondary-actions span{min-width:0;display:grid;gap:3px}.support-secondary-actions strong{font-size:13px}.support-secondary-actions small{overflow:hidden;color:var(--muted);font-size:11.5px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.topics-section{margin-top:72px}.conversation-toolbar{position:sticky;z-index:8;top:0;min-height:68px;margin:0 0 28px;border-bottom:1px solid var(--line);padding:10px 0;background:color-mix(in srgb,var(--page) 92%,transparent);backdrop-filter:blur(16px)}.conversation-agent .avatar{width:36px;height:36px}.conversation-agent .avatar .lucide{width:16px;height:16px}.conversation-help-button,.new-conversation-button{min-height:44px;border-radius:13px;font-size:13px}.conversation-account{display:none}.new-conversation-button .lucide{width:17px;height:17px}.thread-list{gap:24px}.answer-turn--assistant{max-width:100%;border:0;border-radius:0;padding:0;background:transparent;box-shadow:none}.answer-turn--assistant .turn-label:before{width:18px;height:18px;display:grid;place-items:center;background:var(--accent, #c87942);box-shadow:none}.answer-turn--assistant .turn-copy{max-width:46rem}.turn-copy{font-size:16px;line-height:1.62}.answer-turn--user .turn-copy{max-width:78%}.answer-turn--user .turn-copy p{margin:0;overflow-wrap:anywhere}.message-actions{min-height:44px;margin-top:10px;display:flex;align-items:center;gap:3px}.message-action{width:44px;height:44px;display:grid;place-items:center;border-radius:12px;color:var(--muted);background:transparent}.message-action:not(:disabled):hover{color:var(--ink, #121212);background:var(--soft)}.message-action[aria-pressed=true]{color:var(--accent-text, var(--accent, #c87942));background:var(--accent-soft)}.message-action .lucide{width:17px;height:17px}.sources-row{margin-top:-12px}.sources-card summary{border-radius:10px;font-size:13px}.follow-up-list{flex-wrap:nowrap;overflow-x:auto;padding-bottom:3px;scrollbar-width:none}.follow-up-list::-webkit-scrollbar{display:none}.follow-up-chip{flex:0 0 auto;min-height:40px;border-radius:999px;padding-inline:13px}.products-row{min-width:0;margin-top:-8px}.product-results{margin:0;padding:0;list-style:none;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.product-result-item{min-width:0}.product-result{height:100%;border-radius:18px;box-shadow:0 1px #00000006}.product-result-media{width:100%;aspect-ratio:4 / 3;overflow:hidden;display:block;background:var(--soft)}.product-result-media>img{width:100%;height:100%;display:block;object-fit:cover}.product-result-copy{gap:7px;padding:14px}.product-result-copy strong{display:-webkit-box;min-height:2.7em;overflow:hidden;font-size:14px;line-height:1.35;text-overflow:clip;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2}.product-result-copy>span{font-size:14px}.product-availability{width:max-content;border-radius:999px;padding:4px 7px;color:var(--muted);background:var(--soft);font-size:11px!important}.product-availability--available{color:#176438;background:color-mix(in srgb,#27844c 12%,#fff)}.product-action{margin-top:4px;color:var(--accent-text, var(--accent, #c87942));font-size:12px!important;font-weight:750}.product-follow-ups{margin-top:10px;display:flex;gap:7px;overflow-x:auto;padding:0 2px 3px;scrollbar-width:none}.product-follow-ups::-webkit-scrollbar{display:none}.product-follow-ups .follow-up-chip{flex:0 0 auto}.composer-bar{background:linear-gradient(to top,var(--page) 78%,color-mix(in srgb,var(--page) 72%,transparent),transparent)}.composer-inner{display:grid;gap:8px}.voice-state{width:max-content;min-height:30px;display:flex;align-items:center;gap:8px;border:1px solid var(--accent-line);border-radius:999px;padding:5px 10px;color:var(--ink, #121212);background:var(--accent-soft);font-size:12px;font-weight:700}.voice-state-dot{width:7px;height:7px;border-radius:50%;background:var(--accent, #c87942);box-shadow:0 0 0 4px color-mix(in srgb,var(--accent, #c87942) 13%,transparent)}.app[data-voice-state=speaking] .voice-state-dot{background:#27844c;box-shadow:0 0 0 4px color-mix(in srgb,#27844c 13%,transparent)}.composer{min-height:62px;border-radius:20px;padding:8px}.composer-sparkle{width:30px;height:30px;flex:none;display:grid;place-items:center;color:var(--accent-text, var(--accent, #c87942))}.composer-sparkle .lucide{width:17px;height:17px}.composer textarea{min-height:44px;padding:10px 4px}.send-button .lucide,.mic-button .lucide{width:19px;height:19px}@media(max-width:900px){.landing-hero-layout{grid-template-columns:minmax(0,1fr) minmax(18rem,.82fr);gap:34px}.welcome-visual{min-height:350px}.support-task-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.app[data-view=conversation] .chat-header{display:none}.chat-header-inner{min-height:62px;padding-inline:14px}.brand{max-width:calc(100% - 104px);gap:8px}.brand-logo{height:28px;max-width:82px}.brand-mark{width:34px;height:34px}.brand-name{max-width:112px;font-size:15px}.brand-sub{display:none}.support-nav{gap:4px}.support-nav a{min-width:44px;min-height:44px;justify-content:center;padding:0}.support-nav .nav-label,.account-signin-label{display:none}.account-signin{width:44px;padding:5px!important}.account-avatar{width:34px;height:34px}.app[data-view=landing] .thread-inner{padding:32px 20px 84px}.landing-hero-layout{display:flex;flex-direction:column;align-items:stretch;gap:30px}.welcome-kicker{margin-bottom:14px;font-size:12px}.landing-hero h1{max-width:11ch;font-size:clamp(2.65rem,13vw,3.5rem);line-height:.98}.landing-lede{margin-top:16px;font-size:16px;line-height:1.5}.ask-composer{min-height:62px;margin-top:22px;border-radius:18px}.landing-trust{font-size:12px}.welcome-visual{min-height:248px;border-radius:24px;padding:22px}.welcome-orb{top:26px;width:92px;height:92px}.welcome-avatar .avatar{width:64px;height:64px}.welcome-avatar .lucide{width:25px;height:25px}.welcome-copy h2{max-width:17ch;font-size:1.55rem}.welcome-capabilities{margin-top:17px;gap:6px}.welcome-capabilities>span{min-height:32px;padding:6px 8px;font-size:10px}.support-tasks{margin-top:48px}.support-task-grid{grid-template-columns:1fr;gap:9px}.support-task{min-height:88px;align-items:center;border-radius:16px;padding:14px}.support-task-title{font-size:16px}.support-task-copy{font-size:14px;line-height:1.4}.support-secondary-actions{grid-template-columns:1fr;gap:8px}.support-secondary-actions>button,.support-secondary-actions>a{min-height:76px}.support-secondary-actions strong{font-size:16px}.support-secondary-actions small{font-size:14px}.topics-section{margin-top:56px}.thread-inner{padding-top:0}.conversation-toolbar{width:calc(100% + 32px);min-height:64px;margin:0 -16px 24px;padding:max(10px,env(safe-area-inset-top)) 16px 10px;background:color-mix(in srgb,var(--card) 96%,transparent)}.conversation-agent small{display:none}.conversation-actions{gap:5px}.conversation-account{display:block}.conversation-account .account-signin{width:44px;padding:5px!important}.conversation-account .account-menu summary{width:44px;padding:5px}.conversation-account :is(.account-signin-label,.account-name,.account-chevron){display:none}.conversation-help-button{width:44px;padding:0;justify-content:center}.conversation-help-button>span{display:none}.conversation-help-button .lucide{width:17px;height:17px}.new-conversation-button{width:44px;padding:0;justify-content:center}.new-conversation-button>span{display:none}.answer-turn--assistant{max-width:100%;padding:0}.turn-copy{font-size:16px}.answer-turn--user .turn-copy{max-width:90%}.product-results{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(260px,80vw);grid-template-columns:none;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:inline mandatory;padding:2px 2px 10px;scrollbar-width:none}.product-results::-webkit-scrollbar{display:none}.product-result-item{scroll-snap-align:start}.product-result-copy strong{font-size:16px}.product-result-copy>span{font-size:16px}.product-availability{font-size:12px!important}.product-action{min-height:44px;display:flex;align-items:center;font-size:14px!important}.follow-up-chip{min-height:44px;font-size:14px}.composer-inner{padding-inline:12px}.composer{min-height:60px}.composer input{display:none}.composer .mic-button:not(.mic-button--active){display:grid}.composer-sparkle{display:none}}@media(max-width:340px){.chat-header-inner{padding-inline:10px}.brand{max-width:calc(100% - 100px)}.brand-name{max-width:86px}.conversation-agent{gap:7px}.conversation-help-button{font-size:12px;padding-inline:8px}} diff --git a/apps/desk/public/voice-demo.js b/apps/desk/public/voice-demo.js index 1afce2e..99dc0d9 100644 --- a/apps/desk/public/voice-demo.js +++ b/apps/desk/public/voice-demo.js @@ -1,5 +1,5 @@ -"use strict";(()=>{var th=Object.create;var pa=Object.defineProperty;var rh=Object.getOwnPropertyDescriptor;var oh=Object.getOwnPropertyNames;var nh=Object.getPrototypeOf,ah=Object.prototype.hasOwnProperty;var me=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(o){throw r=0,o}},ke=(e,r)=>{for(var o in r)pa(e,o,{get:r[o],enumerable:!0})},ih=(e,r,o,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of oh(r))!ah.call(e,t)&&t!==o&&pa(e,t,{get:()=>r[t],enumerable:!(n=rh(r,t))||n.enumerable});return e};var sh=(e,r,o)=>(o=e!=null?th(nh(e)):{},ih(r||!e||!e.__esModule?pa(o,"default",{value:e,enumerable:!0}):o,e));var Fa=me(ft=>{function sf(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function kv(e,r,o){}function $v(e,r,o){}var _v=/javascript\s*\:/img;function wv(e,r){return _v.test(r)?"":r}ft.whiteList=sf();ft.getDefaultWhiteList=sf;ft.onAttr=kv;ft.onIgnoreAttr=$v;ft.safeAttrValue=wv});var Ba=me((W_,lf)=>{lf.exports={indexOf:function(e,r){var o,n;if(Array.prototype.indexOf)return e.indexOf(r);for(o=0,n=e.length;o{var tr=Ba();function Sv(e,r){e=tr.trimRight(e),e[e.length-1]!==";"&&(e+=";");var o=e.length,n=!1,t=0,a=0,i="";function s(){if(!n){var c=tr.trim(e.slice(t,a)),d=c.indexOf(":");if(d!==-1){var p=tr.trim(c.slice(0,d)),g=tr.trim(c.slice(d+1));if(p){var h=r(t,i.length,p,g,c);h&&(i+=h+"; ")}}}t=a+1}for(;a{var io=Fa(),zv=cf(),G_=Ba();function df(e){return e==null}function Iv(e){var r={};for(var o in e)r[o]=e[o];return r}function ff(e){e=Iv(e||{}),e.whiteList=e.whiteList||io.whiteList,e.onAttr=e.onAttr||io.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||io.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||io.safeAttrValue,this.options=e}ff.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var r=this,o=r.options,n=o.whiteList,t=o.onAttr,a=o.onIgnoreAttr,i=o.safeAttrValue,s=zv(e,function(l,u,c,d,p){var g=n[c],h=!1;if(g===!0?h=g:typeof g=="function"?h=g(d):g instanceof RegExp&&(h=g.test(d)),h!==!0&&(h=!1),d=i(c,d),!!d){var I={position:u,sourcePosition:l,source:p,isWhite:h};if(h){var w=t(c,d,I);return df(w)?c+":"+d:w}else{var w=a(c,d,I);if(!df(w))return w}}});return s};pf.exports=ff});var lo=me((so,Va)=>{var gf=Fa(),hf=mf();function Pv(e,r){var o=new hf(r);return o.process(e)}so=Va.exports=Pv;so.FilterCSS=hf;for(qa in gf)so[qa]=gf[qa];var qa;typeof window<"u"&&(window.filterCSS=Va.exports)});var uo=me((K_,xf)=>{xf.exports={indexOf:function(e,r){var o,n;if(Array.prototype.indexOf)return e.indexOf(r);for(o=0,n=e.length;o{var Tv=lo().FilterCSS,Cv=lo().getDefaultWhiteList,fo=uo();function yf(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height","loading"],ins:["datetime"],kbd:[],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var kf=new Tv;function Dv(e,r,o){}function Ev(e,r,o){}function Ov(e,r,o){}function Av(e,r,o){}function $f(e){return e.replace(jv,"<").replace(Lv,">")}function Uv(e,r,o,n){if(o=Pf(o),r==="href"||r==="src"){if(o=fo.trim(o),o==="#")return"#";if(!(o.substr(0,7)==="http://"||o.substr(0,8)==="https://"||o.substr(0,7)==="mailto:"||o.substr(0,4)==="tel:"||o.substr(0,11)==="data:image/"||o.substr(0,6)==="ftp://"||o.substr(0,2)==="./"||o.substr(0,3)==="../"||o[0]==="#"||o[0]==="/"))return""}else if(r==="background"){if(co.lastIndex=0,co.test(o))return""}else if(r==="style"){if(vf.lastIndex=0,vf.test(o)||(bf.lastIndex=0,bf.test(o)&&(co.lastIndex=0,co.test(o))))return"";n!==!1&&(n=n||kf,o=n.process(o))}return o=Tf(o),o}var jv=//g,Nv=/"/g,Rv=/"/g,Zv=/&#([a-zA-Z0-9]*);?/gim,Mv=/:?/gim,Fv=/&newline;?/gim,co=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,vf=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,bf=/u\s*r\s*l\s*\(.*/gi;function _f(e){return e.replace(Nv,""")}function wf(e){return e.replace(Rv,'"')}function Sf(e){return e.replace(Zv,function(o,n){return n[0]==="x"||n[0]==="X"?String.fromCharCode(parseInt(n.substr(1),16)):String.fromCharCode(parseInt(n,10))})}function zf(e){return e.replace(Mv,":").replace(Fv," ")}function If(e){for(var r="",o=0,n=e.length;o",n);if(t===-1)break;o=t+3}return r}function Wv(e){var r=e.split("");return r=r.filter(function(o){var n=o.charCodeAt(0);return n===127?!1:n<=31?n===10||n===13:!0}),r.join("")}N.whiteList=yf();N.getDefaultWhiteList=yf;N.onTag=Dv;N.onIgnoreTag=Ev;N.onTagAttr=Ov;N.onIgnoreTagAttr=Av;N.safeAttrValue=Uv;N.escapeHtml=$f;N.escapeQuote=_f;N.unescapeQuote=wf;N.escapeHtmlEntities=Sf;N.escapeDangerHtml5Entities=zf;N.clearNonPrintableCharacter=If;N.friendlyAttrValue=Pf;N.escapeAttrValue=Tf;N.onIgnoreTagStripAll=Bv;N.StripTagBody=qv;N.stripCommentTag=Vv;N.stripBlankChar=Wv;N.attributeWrapSign='"';N.cssFilter=kf;N.getDefaultCSSWhiteList=Cv});var Ga=me(Ha=>{var Ae=uo();function Hv(e){var r=Ae.spaceIndex(e),o;return r===-1?o=e.slice(1,-1):o=e.slice(1,r+1),o=Ae.trim(o).toLowerCase(),o.slice(0,1)==="/"&&(o=o.slice(1)),o.slice(-1)==="/"&&(o=o.slice(0,-1)),o}function Gv(e){return e.slice(0,2)===""||s===l-1){n+=o(e.slice(t,a)),c=e.slice(a,s+1),u=Hv(c),n+=r(a,n.length,u,c,Gv(c)),t=s+1,a=!1;continue}if(d==='"'||d==="'")for(var p=1,g=e.charAt(s-p);g.trim()===""||g==="=";){if(g==="="){i=d;continue e}g=e.charAt(s-++p)}}else if(d===i){i=!1;continue}}return t0;r--){var o=e[r];if(o!==" ")return o==="="?r:-1}}function tb(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function Cf(e){return tb(e)?e.substr(1,e.length-2):e}Ha.parseTag=Jv;Ha.parseAttr=Xv});var Af=me((Y_,Of)=>{var rb=lo().FilterCSS,ie=Wa(),Df=Ga(),ob=Df.parseTag,nb=Df.parseAttr,mo=uo();function po(e){return e==null}function ab(e){var r=mo.spaceIndex(e);if(r===-1)return{html:"",closing:e[e.length-2]==="/"};e=mo.trim(e.slice(r+1,-1));var o=e[e.length-1]==="/";return o&&(e=mo.trim(e.slice(0,-1))),{html:e,closing:o}}function ib(e){var r={};for(var o in e)r[o]=e[o];return r}function sb(e){var r={};for(var o in e)Array.isArray(e[o])?r[o.toLowerCase()]=e[o].map(function(n){return n.toLowerCase()}):r[o.toLowerCase()]=e[o];return r}function Ef(e){e=ib(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=ie.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=sb(e.whiteList||e.allowList):e.whiteList=ie.whiteList,this.attributeWrapSign=e.singleQuotedAttributeValue===!0?"'":ie.attributeWrapSign,e.onTag=e.onTag||ie.onTag,e.onTagAttr=e.onTagAttr||ie.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||ie.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||ie.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||ie.safeAttrValue,e.escapeHtml=e.escapeHtml||ie.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new rb(e.css))}Ef.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var r=this,o=r.options,n=o.whiteList,t=o.onTag,a=o.onIgnoreTag,i=o.onTagAttr,s=o.onIgnoreTagAttr,l=o.safeAttrValue,u=o.escapeHtml,c=r.attributeWrapSign,d=r.cssFilter;o.stripBlankChar&&(e=ie.stripBlankChar(e)),o.allowCommentTag||(e=ie.stripCommentTag(e));var p=!1;o.stripIgnoreTagBody&&(p=ie.StripTagBody(o.stripIgnoreTagBody,a),a=p.onIgnoreTag);var g=ob(e,function(h,I,w,M,Pe){var B={sourcePosition:h,position:I,isClosing:Pe,isWhite:Object.prototype.hasOwnProperty.call(n,w)},D=t(w,M,B);if(!po(D))return D;if(B.isWhite){if(B.isClosing)return"";var L=ab(M),pe=n[w],Kt=nb(L.html,function(Te,ut){var fa=mo.indexOf(pe,Te)!==-1,Xt=i(w,Te,ut,fa);return po(Xt)?fa?(ut=l(w,Te,ut,d),ut?Te+"="+c+ut+c:Te):(Xt=s(w,Te,ut,fa),po(Xt)?void 0:Xt):Xt});return M="<"+w,Kt&&(M+=" "+Kt),L.closing&&(M+=" /"),M+=">",M}else return D=a(w,M,B),po(D)?u(M):D},u);return p&&(g=p.remove(g)),g};Of.exports=Ef});var Rf=me((pt,go)=>{var Uf=Wa(),jf=Ga(),Lf=Af();function Nf(e,r){var o=new Lf(r);return o.process(e)}pt=go.exports=Nf;pt.filterXSS=Nf;pt.FilterXSS=Lf;(function(){for(var e in Uf)pt[e]=Uf[e];for(var r in jf)pt[r]=jf[r]})();typeof window<"u"&&(window.filterXSS=go.exports);function lb(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}lb()&&(self.filterXSS=go.exports)});(!globalThis.EventTarget||!globalThis.Event)&&console.error(` +"use strict";(()=>{var ch=Object.create;var ya=Object.defineProperty;var dh=Object.getOwnPropertyDescriptor;var fh=Object.getOwnPropertyNames;var ph=Object.getPrototypeOf,mh=Object.prototype.hasOwnProperty;var me=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(o){throw r=0,o}},$e=(e,r)=>{for(var o in r)ya(e,o,{get:r[o],enumerable:!0})},gh=(e,r,o,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of fh(r))!mh.call(e,t)&&t!==o&&ya(e,t,{get:()=>r[t],enumerable:!(n=dh(r,t))||n.enumerable});return e};var hh=(e,r,o)=>(o=e!=null?ch(ph(e)):{},gh(r||!e||!e.__esModule?ya(o,"default",{value:e,enumerable:!0}):o,e));var Ka=me(ft=>{function hf(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function Pv(e,r,o){}function Cv(e,r,o){}var Dv=/javascript\s*\:/img;function Av(e,r){return Dv.test(r)?"":r}ft.whiteList=hf();ft.getDefaultWhiteList=hf;ft.onAttr=Pv;ft.onIgnoreAttr=Cv;ft.safeAttrValue=Av});var Xa=me((nw,xf)=>{xf.exports={indexOf:function(e,r){var o,n;if(Array.prototype.indexOf)return e.indexOf(r);for(o=0,n=e.length;o{var rr=Xa();function Ev(e,r){e=rr.trimRight(e),e[e.length-1]!==";"&&(e+=";");var o=e.length,n=!1,t=0,a=0,i="";function s(){if(!n){var c=rr.trim(e.slice(t,a)),d=c.indexOf(":");if(d!==-1){var p=rr.trim(c.slice(0,d)),g=rr.trim(c.slice(d+1));if(p){var h=r(t,i.length,p,g,c);h&&(i+=h+"; ")}}}t=a+1}for(;a{var so=Ka(),Ov=bf(),iw=Xa();function yf(e){return e==null}function Uv(e){var r={};for(var o in e)r[o]=e[o];return r}function kf(e){e=Uv(e||{}),e.whiteList=e.whiteList||so.whiteList,e.onAttr=e.onAttr||so.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||so.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||so.safeAttrValue,this.options=e}kf.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var r=this,o=r.options,n=o.whiteList,t=o.onAttr,a=o.onIgnoreAttr,i=o.safeAttrValue,s=Ov(e,function(l,u,c,d,p){var g=n[c],h=!1;if(g===!0?h=g:typeof g=="function"?h=g(d):g instanceof RegExp&&(h=g.test(d)),h!==!0&&(h=!1),d=i(c,d),!!d){var T={position:u,sourcePosition:l,source:p,isWhite:h};if(h){var w=t(c,d,T);return yf(w)?c+":"+d:w}else{var w=a(c,d,T);if(!yf(w))return w}}});return s};$f.exports=kf});var uo=me((lo,Qa)=>{var wf=Ka(),Sf=_f();function jv(e,r){var o=new Sf(r);return o.process(e)}lo=Qa.exports=jv;lo.FilterCSS=Sf;for(Ya in wf)lo[Ya]=wf[Ya];var Ya;typeof window<"u"&&(window.filterCSS=Qa.exports)});var co=me((lw,zf)=>{zf.exports={indexOf:function(e,r){var o,n;if(Array.prototype.indexOf)return e.indexOf(r);for(o=0,n=e.length;o{var Nv=uo().FilterCSS,Lv=uo().getDefaultWhiteList,po=co();function Pf(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height","loading"],ins:["datetime"],kbd:[],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var Cf=new Nv;function Rv(e,r,o){}function Zv(e,r,o){}function Mv(e,r,o){}function Fv(e,r,o){}function Df(e){return e.replace(Vv,"<").replace(qv,">")}function Bv(e,r,o,n){if(o=Nf(o),r==="href"||r==="src"){if(o=po.trim(o),o==="#")return"#";if(!(o.substr(0,7)==="http://"||o.substr(0,8)==="https://"||o.substr(0,7)==="mailto:"||o.substr(0,4)==="tel:"||o.substr(0,11)==="data:image/"||o.substr(0,6)==="ftp://"||o.substr(0,2)==="./"||o.substr(0,3)==="../"||o[0]==="#"||o[0]==="/"))return""}else if(r==="background"){if(fo.lastIndex=0,fo.test(o))return""}else if(r==="style"){if(If.lastIndex=0,If.test(o)||(Tf.lastIndex=0,Tf.test(o)&&(fo.lastIndex=0,fo.test(o))))return"";n!==!1&&(n=n||Cf,o=n.process(o))}return o=Lf(o),o}var Vv=//g,Wv=/"/g,Hv=/"/g,Gv=/&#([a-zA-Z0-9]*);?/gim,Jv=/:?/gim,Kv=/&newline;?/gim,fo=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,If=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,Tf=/u\s*r\s*l\s*\(.*/gi;function Af(e){return e.replace(Wv,""")}function Ef(e){return e.replace(Hv,'"')}function Of(e){return e.replace(Gv,function(o,n){return n[0]==="x"||n[0]==="X"?String.fromCharCode(parseInt(n.substr(1),16)):String.fromCharCode(parseInt(n,10))})}function Uf(e){return e.replace(Jv,":").replace(Kv," ")}function jf(e){for(var r="",o=0,n=e.length;o",n);if(t===-1)break;o=t+3}return r}function eb(e){var r=e.split("");return r=r.filter(function(o){var n=o.charCodeAt(0);return n===127?!1:n<=31?n===10||n===13:!0}),r.join("")}R.whiteList=Pf();R.getDefaultWhiteList=Pf;R.onTag=Rv;R.onIgnoreTag=Zv;R.onTagAttr=Mv;R.onIgnoreTagAttr=Fv;R.safeAttrValue=Bv;R.escapeHtml=Df;R.escapeQuote=Af;R.unescapeQuote=Ef;R.escapeHtmlEntities=Of;R.escapeDangerHtml5Entities=Uf;R.clearNonPrintableCharacter=jf;R.friendlyAttrValue=Nf;R.escapeAttrValue=Lf;R.onIgnoreTagStripAll=Xv;R.StripTagBody=Yv;R.stripCommentTag=Qv;R.stripBlankChar=eb;R.attributeWrapSign='"';R.cssFilter=Cf;R.getDefaultCSSWhiteList=Lv});var ri=me(ti=>{var Oe=co();function tb(e){var r=Oe.spaceIndex(e),o;return r===-1?o=e.slice(1,-1):o=e.slice(1,r+1),o=Oe.trim(o).toLowerCase(),o.slice(0,1)==="/"&&(o=o.slice(1)),o.slice(-1)==="/"&&(o=o.slice(0,-1)),o}function rb(e){return e.slice(0,2)===""||s===l-1){n+=o(e.slice(t,a)),c=e.slice(a,s+1),u=tb(c),n+=r(a,n.length,u,c,rb(c)),t=s+1,a=!1;continue}if(d==='"'||d==="'")for(var p=1,g=e.charAt(s-p);g.trim()===""||g==="=";){if(g==="="){i=d;continue e}g=e.charAt(s-++p)}}else if(d===i){i=!1;continue}}return t0;r--){var o=e[r];if(o!==" ")return o==="="?r:-1}}function ub(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function Rf(e){return ub(e)?e.substr(1,e.length-2):e}ti.parseTag=ob;ti.parseAttr=ab});var Bf=me((dw,Ff)=>{var cb=uo().FilterCSS,se=ei(),Zf=ri(),db=Zf.parseTag,fb=Zf.parseAttr,go=co();function mo(e){return e==null}function pb(e){var r=go.spaceIndex(e);if(r===-1)return{html:"",closing:e[e.length-2]==="/"};e=go.trim(e.slice(r+1,-1));var o=e[e.length-1]==="/";return o&&(e=go.trim(e.slice(0,-1))),{html:e,closing:o}}function mb(e){var r={};for(var o in e)r[o]=e[o];return r}function gb(e){var r={};for(var o in e)Array.isArray(e[o])?r[o.toLowerCase()]=e[o].map(function(n){return n.toLowerCase()}):r[o.toLowerCase()]=e[o];return r}function Mf(e){e=mb(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=se.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=gb(e.whiteList||e.allowList):e.whiteList=se.whiteList,this.attributeWrapSign=e.singleQuotedAttributeValue===!0?"'":se.attributeWrapSign,e.onTag=e.onTag||se.onTag,e.onTagAttr=e.onTagAttr||se.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||se.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||se.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||se.safeAttrValue,e.escapeHtml=e.escapeHtml||se.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new cb(e.css))}Mf.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var r=this,o=r.options,n=o.whiteList,t=o.onTag,a=o.onIgnoreTag,i=o.onTagAttr,s=o.onIgnoreTagAttr,l=o.safeAttrValue,u=o.escapeHtml,c=r.attributeWrapSign,d=r.cssFilter;o.stripBlankChar&&(e=se.stripBlankChar(e)),o.allowCommentTag||(e=se.stripCommentTag(e));var p=!1;o.stripIgnoreTagBody&&(p=se.StripTagBody(o.stripIgnoreTagBody,a),a=p.onIgnoreTag);var g=db(e,function(h,T,w,M,Te){var V={sourcePosition:h,position:T,isClosing:Te,isWhite:Object.prototype.hasOwnProperty.call(n,w)},D=t(w,M,V);if(!mo(D))return D;if(V.isWhite){if(V.isClosing)return"";var N=pb(M),pe=n[w],Xt=fb(N.html,function(Pe,ut){var ba=go.indexOf(pe,Pe)!==-1,Yt=i(w,Pe,ut,ba);return mo(Yt)?ba?(ut=l(w,Pe,ut,d),ut?Pe+"="+c+ut+c:Pe):(Yt=s(w,Pe,ut,ba),mo(Yt)?void 0:Yt):Yt});return M="<"+w,Xt&&(M+=" "+Xt),N.closing&&(M+=" /"),M+=">",M}else return D=a(w,M,V),mo(D)?u(M):D},u);return p&&(g=p.remove(g)),g};Ff.exports=Mf});var Gf=me((pt,ho)=>{var Vf=ei(),qf=ri(),Wf=Bf();function Hf(e,r){var o=new Wf(r);return o.process(e)}pt=ho.exports=Hf;pt.filterXSS=Hf;pt.FilterXSS=Wf;(function(){for(var e in Vf)pt[e]=Vf[e];for(var r in qf)pt[r]=qf[r]})();typeof window<"u"&&(window.filterXSS=ho.exports);function hb(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}hb()&&(self.filterXSS=ho.exports)});(!globalThis.EventTarget||!globalThis.Event)&&console.error(` PartySocket requires a global 'EventTarget' class to be available! You can polyfill this global by adding this to your code before any partysocket imports: @@ -7,7 +7,7 @@ import 'partysocket/event-target-polyfill'; \`\`\` Please file an issue at https://github.com/partykit/partykit if you're still having trouble. -`);var fd=class extends Event{message;error;constructor(e,r){super("error",r),this.message=e.message,this.error=e}},pd=class extends Event{code;reason;wasClean=!0;constructor(e=1e3,r="",o){super("close",o),this.code=e,this.reason=r}},ma={Event,ErrorEvent:fd,CloseEvent:pd};function lh(e,r){if(!e)throw new Error(r)}function uh(e){return new e.constructor(e.type,e)}function ch(e){return"data"in e?new MessageEvent(e.type,e):"code"in e||"reason"in e?new pd(e.code||1999,e.reason||"unknown reason",e):"error"in e?new fd(e.error,e):new Event(e.type,e)}var dh=typeof process<"u"&&typeof process.versions?.node<"u",fh=typeof navigator<"u"&&navigator.product==="ReactNative",Vr=dh||fh?ch:uh,Ve={maxReconnectionDelay:1e4,minReconnectionDelay:3e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:Number.POSITIVE_INFINITY,maxEnqueuedMessages:Number.POSITIVE_INFINITY,startClosed:!1,debug:!1},dd=!1;function ph(){}var md=class Ce extends EventTarget{_ws;_retryCount=-1;_uptimeTimeout;_connectTimeout;_shouldReconnect=!0;_connectLock=!1;_binaryType="blob";_closeCalled=!1;_didWarnAboutClosedSend=!1;_messageQueue=[];_debugLogger=console.log.bind(console);_url;_protocols;_options;constructor(r,o,n={}){super(),this._url=r,this._protocols=o,this._options=n,this._options.startClosed&&(this._shouldReconnect=!1),this._options.debugLogger&&(this._debugLogger=this._options.debugLogger),this._connect()}static get CONNECTING(){return 0}static get OPEN(){return 1}static get CLOSING(){return 2}static get CLOSED(){return 3}get CONNECTING(){return Ce.CONNECTING}get OPEN(){return Ce.OPEN}get CLOSING(){return Ce.CLOSING}get CLOSED(){return Ce.CLOSED}get binaryType(){return this._ws?this._ws.binaryType:this._binaryType}set binaryType(r){this._binaryType=r,this._ws&&(this._ws.binaryType=r)}get retryCount(){return Math.max(this._retryCount,0)}get bufferedAmount(){return this._messageQueue.reduce((r,o)=>(typeof o=="string"?r+=o.length:o instanceof Blob?r+=o.size:r+=o.byteLength,r),0)+(this._ws?this._ws.bufferedAmount:0)}get extensions(){return this._ws?this._ws.extensions:""}get protocol(){return this._ws?this._ws.protocol:""}get readyState(){return this._closeCalled?Ce.CLOSED:this._ws?this._ws.readyState:this._options.startClosed?Ce.CLOSED:Ce.CONNECTING}get url(){return this._ws?this._ws.url:""}get shouldReconnect(){return this._shouldReconnect}onclose=null;onerror=null;onmessage=null;onopen=null;close(r=1e3,o){if(this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED||this._ws.readyState===this.CLOSING){this._debug("close: already closing or closed");return}this._disconnect(r,o)}reconnect(r,o){this._shouldReconnect=!0,this._closeCalled=!1,this._didWarnAboutClosedSend=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED||this._ws.readyState===this.CLOSING?this._connect():(this._disconnect(r,o),this._connect())}send(r){if(this._ws&&this._ws.readyState===this.OPEN)return this._debug("send",r),this._ws.send(r),!0;this._closeCalled&&!this._didWarnAboutClosedSend&&(this._didWarnAboutClosedSend=!0,console.warn("ReconnectingWebSocket: send() was called after close(). The message has been buffered, but it will only be delivered if reconnect() is called on this socket. If this socket has been discarded, the message is lost \u2014 this usually means a stale socket reference is being used."));let{maxEnqueuedMessages:o=Ve.maxEnqueuedMessages}=this._options;return this._messageQueue.length",...r)}_getNextDelay(){let{reconnectionDelayGrowFactor:r=Ve.reconnectionDelayGrowFactor,minReconnectionDelay:o=Ve.minReconnectionDelay,maxReconnectionDelay:n=Ve.maxReconnectionDelay}=this._options,t=0;return this._retryCount>0&&(t=o*r**(this._retryCount-1),t>n&&(t=n)),this._debug("next delay",t),t}_wait(){return new Promise(r=>{setTimeout(r,this._getNextDelay())})}_getNextProtocols(r){if(!r)return Promise.resolve(null);if(typeof r=="string"||Array.isArray(r))return Promise.resolve(r);if(typeof r=="function"){let o=r();if(!o)return Promise.resolve(null);if(typeof o=="string"||Array.isArray(o))return Promise.resolve(o);if(o.then)return o}throw Error("Invalid protocols")}_getNextUrl(r){if(typeof r=="string")return Promise.resolve(r);if(typeof r=="function"){let o=r();if(typeof o=="string")return Promise.resolve(o);if(o.then)return o}throw Error("Invalid URL")}_connect(){if(this._connectLock||!this._shouldReconnect)return;this._connectLock=!0;let{maxRetries:r=Ve.maxRetries,connectionTimeout:o=Ve.connectionTimeout}=this._options;if(this._retryCount>=r){this._debug("max retries reached",this._retryCount,">=",r),this._connectLock=!1;return}this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),this._wait().then(()=>Promise.all([this._getNextUrl(this._url),this._getNextProtocols(this._protocols||null)])).then(([n,t])=>{if(this._closeCalled){this._connectLock=!1;return}!this._options.WebSocket&&typeof WebSocket>"u"&&!dd&&(console.error(`\u203C\uFE0F No WebSocket implementation available. You should define options.WebSocket. +`);var kd=class extends Event{message;error;constructor(e,r){super("error",r),this.message=e.message,this.error=e}},$d=class extends Event{code;reason;wasClean=!0;constructor(e=1e3,r="",o){super("close",o),this.code=e,this.reason=r}},ka={Event,ErrorEvent:kd,CloseEvent:$d};function xh(e,r){if(!e)throw new Error(r)}function vh(e){return new e.constructor(e.type,e)}function bh(e){return"data"in e?new MessageEvent(e.type,e):"code"in e||"reason"in e?new $d(e.code||1999,e.reason||"unknown reason",e):"error"in e?new kd(e.error,e):new Event(e.type,e)}var yh=typeof process<"u"&&typeof process.versions?.node<"u",kh=typeof navigator<"u"&&navigator.product==="ReactNative",Wr=yh||kh?bh:vh,qe={maxReconnectionDelay:1e4,minReconnectionDelay:3e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:Number.POSITIVE_INFINITY,maxEnqueuedMessages:Number.POSITIVE_INFINITY,startClosed:!1,debug:!1},yd=!1;function $h(){}var _d=class Ce extends EventTarget{_ws;_retryCount=-1;_uptimeTimeout;_connectTimeout;_shouldReconnect=!0;_connectLock=!1;_binaryType="blob";_closeCalled=!1;_didWarnAboutClosedSend=!1;_messageQueue=[];_debugLogger=console.log.bind(console);_url;_protocols;_options;constructor(r,o,n={}){super(),this._url=r,this._protocols=o,this._options=n,this._options.startClosed&&(this._shouldReconnect=!1),this._options.debugLogger&&(this._debugLogger=this._options.debugLogger),this._connect()}static get CONNECTING(){return 0}static get OPEN(){return 1}static get CLOSING(){return 2}static get CLOSED(){return 3}get CONNECTING(){return Ce.CONNECTING}get OPEN(){return Ce.OPEN}get CLOSING(){return Ce.CLOSING}get CLOSED(){return Ce.CLOSED}get binaryType(){return this._ws?this._ws.binaryType:this._binaryType}set binaryType(r){this._binaryType=r,this._ws&&(this._ws.binaryType=r)}get retryCount(){return Math.max(this._retryCount,0)}get bufferedAmount(){return this._messageQueue.reduce((r,o)=>(typeof o=="string"?r+=o.length:o instanceof Blob?r+=o.size:r+=o.byteLength,r),0)+(this._ws?this._ws.bufferedAmount:0)}get extensions(){return this._ws?this._ws.extensions:""}get protocol(){return this._ws?this._ws.protocol:""}get readyState(){return this._closeCalled?Ce.CLOSED:this._ws?this._ws.readyState:this._options.startClosed?Ce.CLOSED:Ce.CONNECTING}get url(){return this._ws?this._ws.url:""}get shouldReconnect(){return this._shouldReconnect}onclose=null;onerror=null;onmessage=null;onopen=null;close(r=1e3,o){if(this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED||this._ws.readyState===this.CLOSING){this._debug("close: already closing or closed");return}this._disconnect(r,o)}reconnect(r,o){this._shouldReconnect=!0,this._closeCalled=!1,this._didWarnAboutClosedSend=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED||this._ws.readyState===this.CLOSING?this._connect():(this._disconnect(r,o),this._connect())}send(r){if(this._ws&&this._ws.readyState===this.OPEN)return this._debug("send",r),this._ws.send(r),!0;this._closeCalled&&!this._didWarnAboutClosedSend&&(this._didWarnAboutClosedSend=!0,console.warn("ReconnectingWebSocket: send() was called after close(). The message has been buffered, but it will only be delivered if reconnect() is called on this socket. If this socket has been discarded, the message is lost \u2014 this usually means a stale socket reference is being used."));let{maxEnqueuedMessages:o=qe.maxEnqueuedMessages}=this._options;return this._messageQueue.length",...r)}_getNextDelay(){let{reconnectionDelayGrowFactor:r=qe.reconnectionDelayGrowFactor,minReconnectionDelay:o=qe.minReconnectionDelay,maxReconnectionDelay:n=qe.maxReconnectionDelay}=this._options,t=0;return this._retryCount>0&&(t=o*r**(this._retryCount-1),t>n&&(t=n)),this._debug("next delay",t),t}_wait(){return new Promise(r=>{setTimeout(r,this._getNextDelay())})}_getNextProtocols(r){if(!r)return Promise.resolve(null);if(typeof r=="string"||Array.isArray(r))return Promise.resolve(r);if(typeof r=="function"){let o=r();if(!o)return Promise.resolve(null);if(typeof o=="string"||Array.isArray(o))return Promise.resolve(o);if(o.then)return o}throw Error("Invalid protocols")}_getNextUrl(r){if(typeof r=="string")return Promise.resolve(r);if(typeof r=="function"){let o=r();if(typeof o=="string")return Promise.resolve(o);if(o.then)return o}throw Error("Invalid URL")}_connect(){if(this._connectLock||!this._shouldReconnect)return;this._connectLock=!0;let{maxRetries:r=qe.maxRetries,connectionTimeout:o=qe.connectionTimeout}=this._options;if(this._retryCount>=r){this._debug("max retries reached",this._retryCount,">=",r),this._connectLock=!1;return}this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),this._wait().then(()=>Promise.all([this._getNextUrl(this._url),this._getNextProtocols(this._protocols||null)])).then(([n,t])=>{if(this._closeCalled){this._connectLock=!1;return}!this._options.WebSocket&&typeof WebSocket>"u"&&!yd&&(console.error(`\u203C\uFE0F No WebSocket implementation available. You should define options.WebSocket. For example, if you're using node.js, run \`npm install ws\`, and then in your code: @@ -20,7 +20,7 @@ const partysocket = new PartySocket({ WebSocket: WS }); -`),dd=!0);let a=this._options.WebSocket||WebSocket;this._debug("connect",{url:n,protocols:t}),this._ws=t?new a(n,t):new a(n),this._ws.binaryType=this._binaryType,this._connectLock=!1,this._addListeners(),this._connectTimeout=setTimeout(()=>this._handleTimeout(),o)}).catch(n=>{this._connectLock=!1,this._handleError(new ma.ErrorEvent(Error(n.message),this))})}_handleTimeout(){this._debug("timeout event"),this._handleError(new ma.ErrorEvent(Error("TIMEOUT"),this))}_disconnect(r=1e3,o){if(this._clearTimeouts(),!!this._ws){this._removeListeners();try{(this._ws.readyState===this.OPEN||this._ws.readyState===this.CONNECTING)&&this._ws.close(r,o),this._handleClose(new ma.CloseEvent(r,o,this))}catch{}}}_acceptOpen(){this._debug("accept open"),this._retryCount=0}_handleOpen=r=>{this._debug("open event");let{minUptime:o=Ve.minUptime}=this._options;clearTimeout(this._connectTimeout),this._uptimeTimeout=setTimeout(()=>this._acceptOpen(),o),lh(this._ws,"WebSocket is not defined"),this._ws.binaryType=this._binaryType,this._messageQueue.forEach(n=>{this._ws?.send(n)}),this._messageQueue=[],this.onopen&&this.onopen(r),this.dispatchEvent(Vr(r))};_handleMessage=r=>{this._debug("message event"),this.onmessage&&this.onmessage(r),this.dispatchEvent(Vr(r))};_handleError=r=>{this._debug("error event",r.message),this._disconnect(void 0,r.message==="TIMEOUT"?"timeout":void 0),this.onerror&&this.onerror(r),this._debug("exec error listeners"),this.dispatchEvent(Vr(r)),this._connect()};_handleClose=r=>{this._debug("close event"),this._clearTimeouts(),this._options.shouldReconnectOnClose&&!this._options.shouldReconnectOnClose(r)&&(this._shouldReconnect=!1),this._shouldReconnect&&this._connect(),this.onclose&&this.onclose(r),this.dispatchEvent(Vr(r))};_removeListeners(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError),this._ws.addEventListener("error",ph))}_addListeners(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))}_clearTimeouts(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)}};var mh=e=>e[1]!==null&&e[1]!==void 0;function gh(){if(crypto?.randomUUID)return crypto.randomUUID();let e=Date.now(),r=performance?.now&&performance.now()*1e3||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(o){let n=Math.random()*16;return e>0?(n=(e+n)%16|0,e=Math.floor(e/16)):(n=(r+n)%16|0,r=Math.floor(r/16)),(o==="x"?n:n&3|8).toString(16)})}function hd(e,r,o={}){let{host:n,path:t,protocol:a,room:i,party:s,basePath:l,prefix:u,query:c}=e,d=n.replace(/^(http|https|ws|wss):\/\//,"");if(d.endsWith("/")&&(d=d.slice(0,-1)),t?.startsWith("/"))throw new Error("path must not start with a slash");let p=s??"main",g=t?`/${t}`:"",h=a||(d.startsWith("localhost:")||d.startsWith("127.0.0.1:")||d.startsWith("192.168.")||d.startsWith("10.")||d.startsWith("172.")&&d.split(".")[1]>="16"&&d.split(".")[1]<="31"||d.startsWith("[::ffff:7f00:1]:")?r:`${r}s`),I=`${h}://${d}/${l||`${u||"parties"}/${p}/${i}`}${g}`,w=(Pe={})=>`${I}?${new URLSearchParams([...Object.entries(o),...Object.entries(Pe).filter(mh)])}`,M=typeof c=="function"?async()=>w(await c()):w(c);return{host:d,path:g,room:i,name:p,protocol:h,partyUrl:I,urlProvider:M}}var xd=class extends md{_pk;_pkurl;name;room;host;path;basePath;constructor(e){let r=gd(e);if(super(r.urlProvider,r.protocols,r.socketOptions),this.partySocketOptions=e,this.setWSProperties(r),!e.startClosed&&!this.room&&!this.basePath)throw this.close(),new Error("Either room or basePath must be provided to connect. Use startClosed: true to create a socket and set them via updateProperties before calling reconnect().");e.disableNameValidation||(e.party?.includes("/")&&console.warn(`PartySocket: party name "${e.party}" contains forward slash which may cause routing issues. Consider using a name without forward slashes or set disableNameValidation: true to bypass this warning.`),e.room?.includes("/")&&console.warn(`PartySocket: room name "${e.room}" contains forward slash which may cause routing issues. Consider using a name without forward slashes or set disableNameValidation: true to bypass this warning.`))}updateProperties(e){let r=gd({...this.partySocketOptions,...e,host:e.host??this.host,room:e.room??this.room,path:e.path??this.path,basePath:e.basePath??this.basePath});this._url=r.urlProvider,this._protocols=r.protocols,this._options=r.socketOptions,this.setWSProperties(r)}setWSProperties(e){let{_pk:r,_pkurl:o,name:n,room:t,host:a,path:i,basePath:s}=e;this._pk=r,this._pkurl=o,this.name=n,this.room=t,this.host=a,this.path=i,this.basePath=s}reconnect(e,r){if(!this.host)throw new Error("The host must be set before connecting, use `updateProperties` method to set it or pass it to the constructor.");if(!this.room&&!this.basePath)throw new Error("The room (or basePath) must be set before connecting, use `updateProperties` method to set it or pass it to the constructor.");super.reconnect(e,r)}get id(){return this._pk}get roomUrl(){return this._pkurl}static async fetch(e,r){let o=hd(e,"http"),n=typeof o.urlProvider=="string"?o.urlProvider:await o.urlProvider();return(e.fetch??fetch)(n,r)}};function gd(e){let{id:r,host:o,path:n,party:t,room:a,protocol:i,query:s,protocols:l,...u}=e,c=r||gh(),d=hd(e,"ws",{_pk:c});return{_pk:c,_pkurl:d.partyUrl,name:d.name,room:d.room,host:d.host,path:d.path,basePath:e.basePath,protocols:l,socketOptions:u,urlProvider:d.urlProvider}}function hh(e){if(e===e.toUpperCase()&&e!==e.toLowerCase())return e.toLowerCase().replace(/_/g,"-");let r=e.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`);return r=r.startsWith("-")?r.slice(1):r,r.replace(/_/g,"-").replace(/-$/,"")}var vd="Audio output device selection is not supported in this browser.",bd="Could not switch audio output device.",xh=` +`),yd=!0);let a=this._options.WebSocket||WebSocket;this._debug("connect",{url:n,protocols:t}),this._ws=t?new a(n,t):new a(n),this._ws.binaryType=this._binaryType,this._connectLock=!1,this._addListeners(),this._connectTimeout=setTimeout(()=>this._handleTimeout(),o)}).catch(n=>{this._connectLock=!1,this._handleError(new ka.ErrorEvent(Error(n.message),this))})}_handleTimeout(){this._debug("timeout event"),this._handleError(new ka.ErrorEvent(Error("TIMEOUT"),this))}_disconnect(r=1e3,o){if(this._clearTimeouts(),!!this._ws){this._removeListeners();try{(this._ws.readyState===this.OPEN||this._ws.readyState===this.CONNECTING)&&this._ws.close(r,o),this._handleClose(new ka.CloseEvent(r,o,this))}catch{}}}_acceptOpen(){this._debug("accept open"),this._retryCount=0}_handleOpen=r=>{this._debug("open event");let{minUptime:o=qe.minUptime}=this._options;clearTimeout(this._connectTimeout),this._uptimeTimeout=setTimeout(()=>this._acceptOpen(),o),xh(this._ws,"WebSocket is not defined"),this._ws.binaryType=this._binaryType,this._messageQueue.forEach(n=>{this._ws?.send(n)}),this._messageQueue=[],this.onopen&&this.onopen(r),this.dispatchEvent(Wr(r))};_handleMessage=r=>{this._debug("message event"),this.onmessage&&this.onmessage(r),this.dispatchEvent(Wr(r))};_handleError=r=>{this._debug("error event",r.message),this._disconnect(void 0,r.message==="TIMEOUT"?"timeout":void 0),this.onerror&&this.onerror(r),this._debug("exec error listeners"),this.dispatchEvent(Wr(r)),this._connect()};_handleClose=r=>{this._debug("close event"),this._clearTimeouts(),this._options.shouldReconnectOnClose&&!this._options.shouldReconnectOnClose(r)&&(this._shouldReconnect=!1),this._shouldReconnect&&this._connect(),this.onclose&&this.onclose(r),this.dispatchEvent(Wr(r))};_removeListeners(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError),this._ws.addEventListener("error",$h))}_addListeners(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))}_clearTimeouts(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)}};var _h=e=>e[1]!==null&&e[1]!==void 0;function wh(){if(crypto?.randomUUID)return crypto.randomUUID();let e=Date.now(),r=performance?.now&&performance.now()*1e3||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(o){let n=Math.random()*16;return e>0?(n=(e+n)%16|0,e=Math.floor(e/16)):(n=(r+n)%16|0,r=Math.floor(r/16)),(o==="x"?n:n&3|8).toString(16)})}function Sd(e,r,o={}){let{host:n,path:t,protocol:a,room:i,party:s,basePath:l,prefix:u,query:c}=e,d=n.replace(/^(http|https|ws|wss):\/\//,"");if(d.endsWith("/")&&(d=d.slice(0,-1)),t?.startsWith("/"))throw new Error("path must not start with a slash");let p=s??"main",g=t?`/${t}`:"",h=a||(d.startsWith("localhost:")||d.startsWith("127.0.0.1:")||d.startsWith("192.168.")||d.startsWith("10.")||d.startsWith("172.")&&d.split(".")[1]>="16"&&d.split(".")[1]<="31"||d.startsWith("[::ffff:7f00:1]:")?r:`${r}s`),T=`${h}://${d}/${l||`${u||"parties"}/${p}/${i}`}${g}`,w=(Te={})=>`${T}?${new URLSearchParams([...Object.entries(o),...Object.entries(Te).filter(_h)])}`,M=typeof c=="function"?async()=>w(await c()):w(c);return{host:d,path:g,room:i,name:p,protocol:h,partyUrl:T,urlProvider:M}}var zd=class extends _d{_pk;_pkurl;name;room;host;path;basePath;constructor(e){let r=wd(e);if(super(r.urlProvider,r.protocols,r.socketOptions),this.partySocketOptions=e,this.setWSProperties(r),!e.startClosed&&!this.room&&!this.basePath)throw this.close(),new Error("Either room or basePath must be provided to connect. Use startClosed: true to create a socket and set them via updateProperties before calling reconnect().");e.disableNameValidation||(e.party?.includes("/")&&console.warn(`PartySocket: party name "${e.party}" contains forward slash which may cause routing issues. Consider using a name without forward slashes or set disableNameValidation: true to bypass this warning.`),e.room?.includes("/")&&console.warn(`PartySocket: room name "${e.room}" contains forward slash which may cause routing issues. Consider using a name without forward slashes or set disableNameValidation: true to bypass this warning.`))}updateProperties(e){let r=wd({...this.partySocketOptions,...e,host:e.host??this.host,room:e.room??this.room,path:e.path??this.path,basePath:e.basePath??this.basePath});this._url=r.urlProvider,this._protocols=r.protocols,this._options=r.socketOptions,this.setWSProperties(r)}setWSProperties(e){let{_pk:r,_pkurl:o,name:n,room:t,host:a,path:i,basePath:s}=e;this._pk=r,this._pkurl=o,this.name=n,this.room=t,this.host=a,this.path=i,this.basePath=s}reconnect(e,r){if(!this.host)throw new Error("The host must be set before connecting, use `updateProperties` method to set it or pass it to the constructor.");if(!this.room&&!this.basePath)throw new Error("The room (or basePath) must be set before connecting, use `updateProperties` method to set it or pass it to the constructor.");super.reconnect(e,r)}get id(){return this._pk}get roomUrl(){return this._pkurl}static async fetch(e,r){let o=Sd(e,"http"),n=typeof o.urlProvider=="string"?o.urlProvider:await o.urlProvider();return(e.fetch??fetch)(n,r)}};function wd(e){let{id:r,host:o,path:n,party:t,room:a,protocol:i,query:s,protocols:l,...u}=e,c=r||wh(),d=Sd(e,"ws",{_pk:c});return{_pk:c,_pkurl:d.partyUrl,name:d.name,room:d.room,host:d.host,path:d.path,basePath:e.basePath,protocols:l,socketOptions:u,urlProvider:d.urlProvider}}function Sh(e){if(e===e.toUpperCase()&&e!==e.toLowerCase())return e.toLowerCase().replace(/_/g,"-");let r=e.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`);return r=r.startsWith("-")?r.slice(1):r,r.replace(/_/g,"-").replace(/-$/,"")}var Id="Audio output device selection is not supported in this browser.",Td="Could not switch audio output device.",zh=` class AudioCaptureProcessor extends AudioWorkletProcessor { constructor() { super(); @@ -61,15 +61,15 @@ class AudioCaptureProcessor extends AudioWorkletProcessor { } registerProcessor('audio-capture-processor', AudioCaptureProcessor); -`;function vh(e){let r=new ArrayBuffer(e.length*2),o=new DataView(r);for(let n=0;nthis.onopen?.(),e.onclose=()=>this.onclose?.(),e.onerror=()=>this.onerror?.(),e.onmessage=r=>{this.onmessage?.(r.data)},this.#o=e}disconnect(){this.#o?.close(),this.#o=null}},yd=class{#o="idle";#t=[];#_=null;#w=0;#u=!1;#S=!1;#a=null;#b=null;#G=null;#U=null;#j=16e3;#z=null;#J=null;#c=!1;#I=0;#d=!1;#K;#X;#Q;#Y;#L;#r=null;#n;#s=null;#N=!1;#R=null;#Z=null;#i=null;#f=!1;#p=[];#h=!1;#y=!1;#m=new Set;#P=0;#T=null;#l=null;#C=null;#x=null;#M=!1;#k;#v=0;#F=0;#g=0;#$=0;#D=new Map;constructor(e){this.#n=e,this.#K=e.silenceThreshold??.04,this.#X=e.silenceDurationMs??500,this.#Q=e.interruptThreshold??.05,this.#Y=e.interruptChunks??2,this.#L=e.maxTranscriptMessages??200,this.#k=e.outputDeviceId??"default"}get status(){return this.#o}get transcript(){return this.#t}get metrics(){return this.#_}get audioLevel(){return this.#w}get isMuted(){return this.#u}get connected(){return this.#S}get error(){return this.#a}get outputDeviceError(){return this.#b}get interimTranscript(){return this.#z}get serverProtocolVersion(){return this.#J}addEventListener(e,r){let o=this.#D.get(e);o||(o=new Set,this.#D.set(e,o)),o.add(r)}removeEventListener(e,r){this.#D.get(e)?.delete(r)}#e(e,r){let o=this.#D.get(e);if(o)for(let n of o)n(r)}#ee(){this.#t.length>this.#L&&(this.#t=this.#t.slice(-this.#L))}#E(e){this.#b!==e&&(this.#b=e,this.#e("outputdeviceerror",e))}connect(){if(this.#r)return;let e=this.#n.transport??new yh({agent:this.#n.agent,name:this.#n.name,host:this.#n.host,query:this.#n.query});e.onopen=()=>{this.#S=!0,this.#a=null,e.sendJSON({type:"hello",protocol_version:1}),this.#e("connectionchange",!0),this.#e("error",null),this.#c&&(this.#d=!1,e.sendJSON({type:"start_call"}))},e.onclose=()=>{this.#S=!1,this.#e("connectionchange",!1)},e.onerror=()=>{this.#a="Connection lost. Reconnecting...",this.#e("error",this.#a)},e.onmessage=r=>{typeof r=="string"?this.#se(r):r instanceof Blob?r.arrayBuffer().then(o=>{this.#p.push(o),this.#oe()}):r instanceof ArrayBuffer&&(this.#p.push(r),this.#oe())},this.#r=e,e.connect()}disconnect(){this.endCall(),this.#r?.disconnect(),this.#r=null,this.#S=!1,this.#e("connectionchange",!1)}async startCall(){if(!this.#r?.connected){this.#a="Cannot start call: not connected. Call connect() first.",this.#e("error",this.#a);return}if(this.#c)return;let e=++this.#I;this.#c=!0,this.#d=!1,this.#a=null,this.#_=null,this.#e("error",null),this.#e("metricschange",null);let r={type:"start_call"};this.#n.preferredFormat&&(r.preferred_format=this.#n.preferredFormat),this.#r.sendJSON(r);let o=await this.#V();this.#B(e)||(await this.#te(o),!this.#B(e)&&(this.#n.audioInput?(this.#n.audioInput.onAudioLevel=n=>this.#ne(n),this.#n.audioInput.onAudioData=n=>{this.#r?.connected&&!this.#u&&this.#r.sendBinary(n)},await this.#n.audioInput.start()):await this.#de(),this.#B(e)))}endCall(){this.#I++,this.#c=!1,this.#d=!1,this.#r?.connected&&this.#r.sendJSON({type:"end_call"}),this.#q(),this.#o="idle",this.#e("statuschange","idle")}#ie(e){return this.#c&&this.#I===e}#B(e){return this.#ie(e)?!1:(this.#c||this.#q(),!0)}#q(){this.#n.audioInput?(this.#n.audioInput.stop(),this.#n.audioInput.onAudioLevel=null,this.#n.audioInput.onAudioData=null):this.#fe(),this.#A(),this.#le(),this.#ae()}toggleMute(){this.#u=!this.#u,this.#u&&(this.#w=0,this.#e("audiolevelchange",0)),this.#u&&this.#f&&(this.#f=!1,this.#i&&(clearTimeout(this.#i),this.#i=null),this.#r?.connected&&this.#r.sendJSON({type:"end_of_speech"})),this.#e("mutechange",this.#u)}sendText(e){this.#r?.connected&&this.#r.sendJSON({type:"text_message",text:e})}sendJSON(e){this.#r?.connected&&this.#r.sendJSON(e)}async setOutputDevice(e){this.#k=e??"default";let r=++this.#v;this.#l&&await this.#O(this.#l,r)}get lastCustomMessage(){return this.#G}get audioFormat(){return this.#U}get sampleRate(){return this.#j}#se(e){let r;try{r=JSON.parse(e)}catch{return}switch(r.type){case"welcome":this.#J=r.protocol_version,r.protocol_version!==1&&console.warn(`[VoiceClient] Protocol version mismatch: client=1, server=${r.protocol_version}`);break;case"audio_config":this.#d=!0,this.#U=r.format,this.#j=typeof r.sampleRate=="number"&&r.sampleRate>0?r.sampleRate:16e3;break;case"status":if(this.#o=r.status,r.status==="idle"&&this.#c){if(!(this.#d||this.#a!==null)){this.#e("statuschange",this.#o);break}this.#I++,this.#c=!1,this.#d=!1,this.#q()}r.status==="listening"?(this.#d=!0,this.#a=null,this.#e("error",null)):(r.status==="thinking"||r.status==="speaking")&&(this.#d=!0),this.#e("statuschange",this.#o);break;case"transcript_interim":this.#z=r.text,this.#e("interimtranscript",this.#z);break;case"playback_interrupt":this.#A();break;case"transcript":this.#z=null,this.#e("interimtranscript",null),r.role==="user"&&this.#h&&this.#A(),this.#t=[...this.#t,{role:r.role,text:r.text,timestamp:Date.now()}],this.#ee(),this.#e("transcriptchange",this.#t);break;case"transcript_start":this.#t=[...this.#t,{role:"assistant",text:"",timestamp:Date.now()}],this.#ee(),this.#e("transcriptchange",this.#t);break;case"transcript_delta":{if(this.#t.length===0)break;let o=[...this.#t],n=o[o.length-1];n.role==="assistant"&&(o[o.length-1]={...n,text:n.text+r.text},this.#t=o,this.#e("transcriptchange",this.#t));break}case"transcript_end":{if(this.#t.length===0)break;let o=[...this.#t],n=o[o.length-1];n.role==="assistant"&&(o[o.length-1]={...n,text:r.text},this.#t=o,this.#e("transcriptchange",this.#t));break}case"metrics":this.#_={llm_ms:r.llm_ms,tts_ms:r.tts_ms,first_audio_ms:r.first_audio_ms,total_ms:r.total_ms},this.#e("metricschange",this.#_);break;case"error":this.#a=r.message,this.#e("error",this.#a);break;default:this.#G=r,this.#e("custommessage",r);break}}async#V(){return this.#s||(this.#s=new AudioContext({sampleRate:48e3})),this.#s.state==="suspended"&&await this.#s.resume(),this.#s}#le(){this.#s&&(this.#W(),this.#s.close().catch(()=>{}),this.#s=null,this.#N=!1)}async#te(e){if(this.#x)return this.#x;if(this.#C)return this.#C;if(this.#M)return e.destination;let r=this.#F,o=this.#ue(e,r);this.#x=o;try{return await o}finally{this.#x===o&&(this.#x=null)}}async#ue(e,r){try{let o=e.createMediaStreamDestination(),n=new Audio;return n.autoplay=!0,n.srcObject=o.stream,this.#l=n,this.#C=o,await this.#O(n,this.#v),this.#re(n,r)?(await n.play(),this.#re(n,r)?o:(this.#H(n),e.destination)):(this.#H(n),e.destination)}catch(o){return console.warn("[VoiceClient] HTMLAudioElement playback output unavailable; using default AudioContext destination.",o),this.#W(),this.#M=!0,e.destination}}#re(e,r){return this.#l===e&&this.#F===r}async#O(e,r){let o=this.#k,n=e.setSinkId;if(!n){if(o==="default"){this.#E(null);return}this.#E(vd);return}try{if(await n.call(e,o),r!==this.#v||o!==this.#k){this.#l===e&&await this.#O(e,this.#v);return}(this.#b===vd||this.#b===bd)&&this.#E(null)}catch{if(r!==this.#v||o!==this.#k){this.#l===e&&await this.#O(e,this.#v);return}this.#E(bd)}}#W(){this.#F++,this.#l&&(this.#H(this.#l),this.#l=null),this.#C=null,this.#x=null,this.#M=!1}#H(e){e.pause(),e.srcObject=null}async#ce(e,r){try{let o=await this.#V(),n;if(this.#U==="pcm16"){let s=new Int16Array(e);n=o.createBuffer(1,s.length,this.#j);let l=n.getChannelData(0);for(let u=0;u.3&&this.#W();let t=await this.#te(o);if(r!==this.#g)return;let a=o.createBufferSource();a.buffer=n,a.connect(t),this.#m.add(a),a.onended=()=>{this.#m.delete(a),r===this.#g&&!this.#y&&this.#m.size===0&&this.#p.length===0&&(this.#h=!1)};let i=Math.max(o.currentTime,this.#P);this.#P=i+n.duration,this.#T=this.#P,a.start(i)}catch(o){console.error("[VoiceClient] Audio playback error:",o)}}async#oe(){if(this.#y||this.#p.length===0)return;this.#y=!0,this.#h=!0;let e=this.#g;for(;e===this.#g&&this.#p.length>0;){let r=this.#p.shift();await this.#ce(r,e)}e===this.#g&&(this.#y=!1,this.#m.size===0&&(this.#h=!1))}#A(){this.#g++;let e=[...this.#m];this.#m.clear();for(let r of e)try{r.stop()}catch{}this.#p=[],this.#h=!1,this.#y=!1,this.#P=0,this.#T=this.#s?this.#s.currentTime:null}async#de(){try{let e=await navigator.mediaDevices.getUserMedia({audio:{sampleRate:{ideal:48e3},channelCount:1,echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0}});this.#Z=e;let r=await this.#V();if(!this.#N){let t=new Blob([xh],{type:"application/javascript"}),a=URL.createObjectURL(t);await r.audioWorklet.addModule(a),URL.revokeObjectURL(a),this.#N=!0}let o=r.createMediaStreamSource(e),n=new AudioWorkletNode(r,"audio-capture-processor");this.#R=n,n.port.onmessage=t=>{if(t.data.type==="audio"&&!this.#u){let a=t.data.samples,i=bh(a),s=vh(a);this.#r?.connected&&this.#r.sendBinary(s),this.#ne(i)}},o.connect(n),n.connect(r.destination)}catch(e){console.error("[VoiceClient] Mic error:",e),this.#a="Microphone access denied. Please allow microphone access and try again.",this.#e("error",this.#a)}}#fe(){this.#R?.disconnect(),this.#R=null,this.#Z?.getTracks().forEach(e=>e.stop()),this.#Z=null,this.#ae()}#ne(e){this.#u||(this.#w=e,this.#e("audiolevelchange",e),this.#h&&e>this.#Q?(this.#$++,this.#$>=this.#Y&&(this.#A(),this.#$=0,this.#r?.connected&&this.#r.sendJSON({type:"interrupt"}))):this.#$=0,e>this.#K?(this.#f||(this.#f=!0,this.#r?.connected&&this.#r.sendJSON({type:"start_of_speech"})),this.#i&&(clearTimeout(this.#i),this.#i=null)):this.#f&&(this.#i||(this.#i=setTimeout(()=>{this.#f=!1,this.#i=null,this.#r?.connected&&this.#r.sendJSON({type:"end_of_speech"})},this.#X))))}#ae(){this.#i&&(clearTimeout(this.#i),this.#i=null),this.#f=!1,this.#$=0,this.#w=0,this.#e("audiolevelchange",0)}};var Wr={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};var kd=([e,r,o])=>{let n=document.createElementNS("http://www.w3.org/2000/svg",e);return Object.keys(r).forEach(t=>{n.setAttribute(t,String(r[t]))}),o?.length&&o.forEach(t=>{let a=kd(t);n.appendChild(a)}),n},$d=(e,r={})=>{let n={...Wr,...r};return kd(["svg",n,e])};var _d=e=>{for(let r in e)if(r.startsWith("aria-")||r==="role"||r==="title")return!0;return!1};var wd=(...e)=>e.filter((r,o,n)=>!!r&&r.trim()!==""&&n.indexOf(r)===o).join(" ").trim();var Sd=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,n)=>n?n.toUpperCase():o.toLowerCase());var zd=e=>{let r=Sd(e);return r.charAt(0).toUpperCase()+r.slice(1)};var kh=e=>Array.from(e.attributes).reduce((r,o)=>(r[o.name]=o.value,r),{}),Id=e=>typeof e=="string"?e:!e||!e.class?"":e.class&&typeof e.class=="string"?e.class.split(" "):e.class&&Array.isArray(e.class)?e.class:"",ga=(e,{nameAttr:r,icons:o,attrs:n})=>{let t=e.getAttribute(r);if(t==null)return;let a=zd(t),i=o[a];if(!i)return console.warn(`${e.outerHTML} icon name was not found in the provided icons object.`);let s=kh(e),l=_d(s)?{}:{"aria-hidden":"true"},u={...Wr,"data-lucide":t,...l,...n,...s},c=Id(s),d=Id(n),p=wd("lucide",`lucide-${t}`,...c,...d);p&&Object.assign(u,{class:p});let g=$d(i,u);return e.parentNode?.replaceChild(g,e)};var ha=[["path",{d:"m5 12 7-7 7 7"}],["path",{d:"M12 19V5"}]];var xa=[["path",{d:"M12 5v16"}],["path",{d:"M16 13h2"}],["path",{d:"M16 9h2"}],["path",{d:"M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z"}],["path",{d:"M6 13h2"}],["path",{d:"M6 9h2"}]];var va=[["path",{d:"m6 9 6 6 6-6"}]];var ba=[["path",{d:"m9 18 6-6-6-6"}]];var Hr=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"}]];var ya=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}],["circle",{cx:"11.5",cy:"14.5",r:"2.5"}],["path",{d:"M13.3 16.3 15 18"}]];var ka=[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3"}]];var $a=[["path",{d:"M12 19v3"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3"}]];var _a=[["path",{d:"M12 22V12"}],["path",{d:"M20.27 18.27 22 20"}],["path",{d:"M21 10.498V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.729l7 4a2 2 0 0 0 2 .001l.98-.559"}],["path",{d:"M3.29 7 12 12l8.71-5"}],["path",{d:"m7.5 4.27 8.997 5.148"}],["circle",{cx:"18.5",cy:"16.5",r:"2.5"}]];var wa=[["path",{d:"M5 12h14"}],["path",{d:"M12 5v14"}]];var Gr=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z"}],["path",{d:"M20 2v4"}],["path",{d:"M22 4h-4"}],["circle",{cx:"4",cy:"20",r:"2"}]];var Jr=[["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z"}],["path",{d:"M17 14V2"}]];var Kr=[["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z"}],["path",{d:"M7 10v12"}]];var Sa=[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2"}],["path",{d:"M15 18H9"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14"}],["circle",{cx:"17",cy:"18",r:"2"}],["circle",{cx:"7",cy:"18",r:"2"}]];var Xr=[["circle",{cx:"12",cy:"8",r:"5"}],["path",{d:"M20 21a8 8 0 0 0-16 0"}]];var za=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z"}]];var Qr=({icons:e={},nameAttr:r="data-lucide",attrs:o={},root:n=document,inTemplates:t}={})=>{if(!Object.values(e).length)throw new Error(`Please provide an icons object. +`;function Ih(e){let r=new ArrayBuffer(e.length*2),o=new DataView(r);for(let n=0;nthis.onopen?.(),e.onclose=()=>this.onclose?.(),e.onerror=()=>this.onerror?.(),e.onmessage=r=>{this.onmessage?.(r.data)},this.#t=e}disconnect(){this.#t?.close(),this.#t=null}},Pd=class{#t="idle";#e=[];#l=null;#p=0;#i=!1;#u=!1;#n=null;#h=null;#P=null;#S=null;#x=16e3;#c=null;#J=null;#m=!1;#C=0;#g=!1;#K;#X;#Y;#Q;#L;#o=null;#a;#d=null;#R=!1;#Z=null;#M=null;#s=null;#v=!1;#b=[];#$=!1;#z=!1;#y=new Set;#D=0;#A=null;#f=null;#E=null;#_=null;#F=!1;#I;#w=0;#B=0;#k=0;#T=0;#O=new Map;constructor(e){this.#a=e,this.#K=e.silenceThreshold??.04,this.#X=e.silenceDurationMs??500,this.#Y=e.interruptThreshold??.05,this.#Q=e.interruptChunks??2,this.#L=e.maxTranscriptMessages??200,this.#I=e.outputDeviceId??"default"}get status(){return this.#t}get transcript(){return this.#e}get metrics(){return this.#l}get audioLevel(){return this.#p}get isMuted(){return this.#i}get connected(){return this.#u}get error(){return this.#n}get outputDeviceError(){return this.#h}get interimTranscript(){return this.#c}get serverProtocolVersion(){return this.#J}addEventListener(e,r){let o=this.#O.get(e);o||(o=new Set,this.#O.set(e,o)),o.add(r)}removeEventListener(e,r){this.#O.get(e)?.delete(r)}#r(e,r){let o=this.#O.get(e);if(o)for(let n of o)n(r)}#ee(){this.#e.length>this.#L&&(this.#e=this.#e.slice(-this.#L))}#U(e){this.#h!==e&&(this.#h=e,this.#r("outputdeviceerror",e))}connect(){if(this.#o)return;let e=this.#a.transport??new $a({agent:this.#a.agent,name:this.#a.name,host:this.#a.host,query:this.#a.query});e.onopen=()=>{this.#u=!0,this.#n=null,e.sendJSON({type:"hello",protocol_version:1}),this.#r("connectionchange",!0),this.#r("error",null),this.#m&&(this.#g=!1,e.sendJSON({type:"start_call"}))},e.onclose=()=>{this.#u=!1,this.#r("connectionchange",!1)},e.onerror=()=>{this.#n="Connection lost. Reconnecting...",this.#r("error",this.#n)},e.onmessage=r=>{typeof r=="string"?this.#se(r):r instanceof Blob?r.arrayBuffer().then(o=>{this.#b.push(o),this.#oe()}):r instanceof ArrayBuffer&&(this.#b.push(r),this.#oe())},this.#o=e,e.connect()}disconnect(){this.endCall(),this.#o?.disconnect(),this.#o=null,this.#u=!1,this.#r("connectionchange",!1)}async startCall(){if(!this.#o?.connected){this.#n="Cannot start call: not connected. Call connect() first.",this.#r("error",this.#n);return}if(this.#m)return;let e=++this.#C;this.#m=!0,this.#g=!1,this.#n=null,this.#l=null,this.#r("error",null),this.#r("metricschange",null);let r={type:"start_call"};this.#a.preferredFormat&&(r.preferred_format=this.#a.preferredFormat),this.#o.sendJSON(r);let o=await this.#W();this.#V(e)||(await this.#te(o),!this.#V(e)&&(this.#a.audioInput?(this.#a.audioInput.onAudioLevel=n=>this.#ne(n),this.#a.audioInput.onAudioData=n=>{this.#o?.connected&&!this.#i&&this.#o.sendBinary(n)},await this.#a.audioInput.start()):await this.#de(),this.#V(e)))}endCall(){this.#C++,this.#m=!1,this.#g=!1,this.#o?.connected&&this.#o.sendJSON({type:"end_call"}),this.#q(),this.#t="idle",this.#r("statuschange","idle")}#ie(e){return this.#m&&this.#C===e}#V(e){return this.#ie(e)?!1:(this.#m||this.#q(),!0)}#q(){this.#a.audioInput?(this.#a.audioInput.stop(),this.#a.audioInput.onAudioLevel=null,this.#a.audioInput.onAudioData=null):this.#fe(),this.#N(),this.#le(),this.#ae()}toggleMute(){this.#i=!this.#i,this.#i&&(this.#p=0,this.#r("audiolevelchange",0)),this.#i&&this.#v&&(this.#v=!1,this.#s&&(clearTimeout(this.#s),this.#s=null),this.#o?.connected&&this.#o.sendJSON({type:"end_of_speech"})),this.#r("mutechange",this.#i)}sendText(e){this.#o?.connected&&this.#o.sendJSON({type:"text_message",text:e})}sendJSON(e){this.#o?.connected&&this.#o.sendJSON(e)}async setOutputDevice(e){this.#I=e??"default";let r=++this.#w;this.#f&&await this.#j(this.#f,r)}get lastCustomMessage(){return this.#P}get audioFormat(){return this.#S}get sampleRate(){return this.#x}#se(e){let r;try{r=JSON.parse(e)}catch{return}switch(r.type){case"welcome":this.#J=r.protocol_version,r.protocol_version!==1&&console.warn(`[VoiceClient] Protocol version mismatch: client=1, server=${r.protocol_version}`);break;case"audio_config":this.#g=!0,this.#S=r.format,this.#x=typeof r.sampleRate=="number"&&r.sampleRate>0?r.sampleRate:16e3;break;case"status":if(this.#t=r.status,r.status==="idle"&&this.#m){if(!(this.#g||this.#n!==null)){this.#r("statuschange",this.#t);break}this.#C++,this.#m=!1,this.#g=!1,this.#q()}r.status==="listening"?(this.#g=!0,this.#n=null,this.#r("error",null)):(r.status==="thinking"||r.status==="speaking")&&(this.#g=!0),this.#r("statuschange",this.#t);break;case"transcript_interim":this.#c=r.text,this.#r("interimtranscript",this.#c);break;case"playback_interrupt":this.#N();break;case"transcript":this.#c=null,this.#r("interimtranscript",null),r.role==="user"&&this.#$&&this.#N(),this.#e=[...this.#e,{role:r.role,text:r.text,timestamp:Date.now()}],this.#ee(),this.#r("transcriptchange",this.#e);break;case"transcript_start":this.#e=[...this.#e,{role:"assistant",text:"",timestamp:Date.now()}],this.#ee(),this.#r("transcriptchange",this.#e);break;case"transcript_delta":{if(this.#e.length===0)break;let o=[...this.#e],n=o[o.length-1];n.role==="assistant"&&(o[o.length-1]={...n,text:n.text+r.text},this.#e=o,this.#r("transcriptchange",this.#e));break}case"transcript_end":{if(this.#e.length===0)break;let o=[...this.#e],n=o[o.length-1];n.role==="assistant"&&(o[o.length-1]={...n,text:r.text},this.#e=o,this.#r("transcriptchange",this.#e));break}case"metrics":this.#l={llm_ms:r.llm_ms,tts_ms:r.tts_ms,first_audio_ms:r.first_audio_ms,total_ms:r.total_ms},this.#r("metricschange",this.#l);break;case"error":this.#n=r.message,this.#r("error",this.#n);break;default:this.#P=r,this.#r("custommessage",r);break}}async#W(){return this.#d||(this.#d=new AudioContext({sampleRate:48e3})),this.#d.state==="suspended"&&await this.#d.resume(),this.#d}#le(){this.#d&&(this.#H(),this.#d.close().catch(()=>{}),this.#d=null,this.#R=!1)}async#te(e){if(this.#_)return this.#_;if(this.#E)return this.#E;if(this.#F)return e.destination;let r=this.#B,o=this.#ue(e,r);this.#_=o;try{return await o}finally{this.#_===o&&(this.#_=null)}}async#ue(e,r){try{let o=e.createMediaStreamDestination(),n=new Audio;return n.autoplay=!0,n.srcObject=o.stream,this.#f=n,this.#E=o,await this.#j(n,this.#w),this.#re(n,r)?(await n.play(),this.#re(n,r)?o:(this.#G(n),e.destination)):(this.#G(n),e.destination)}catch(o){return console.warn("[VoiceClient] HTMLAudioElement playback output unavailable; using default AudioContext destination.",o),this.#H(),this.#F=!0,e.destination}}#re(e,r){return this.#f===e&&this.#B===r}async#j(e,r){let o=this.#I,n=e.setSinkId;if(!n){if(o==="default"){this.#U(null);return}this.#U(Id);return}try{if(await n.call(e,o),r!==this.#w||o!==this.#I){this.#f===e&&await this.#j(e,this.#w);return}(this.#h===Id||this.#h===Td)&&this.#U(null)}catch{if(r!==this.#w||o!==this.#I){this.#f===e&&await this.#j(e,this.#w);return}this.#U(Td)}}#H(){this.#B++,this.#f&&(this.#G(this.#f),this.#f=null),this.#E=null,this.#_=null,this.#F=!1}#G(e){e.pause(),e.srcObject=null}async#ce(e,r){try{let o=await this.#W(),n;if(this.#S==="pcm16"){let s=new Int16Array(e);n=o.createBuffer(1,s.length,this.#x);let l=n.getChannelData(0);for(let u=0;u.3&&this.#H();let t=await this.#te(o);if(r!==this.#k)return;let a=o.createBufferSource();a.buffer=n,a.connect(t),this.#y.add(a),a.onended=()=>{this.#y.delete(a),r===this.#k&&!this.#z&&this.#y.size===0&&this.#b.length===0&&(this.#$=!1)};let i=Math.max(o.currentTime,this.#D);this.#D=i+n.duration,this.#A=this.#D,a.start(i)}catch(o){console.error("[VoiceClient] Audio playback error:",o)}}async#oe(){if(this.#z||this.#b.length===0)return;this.#z=!0,this.#$=!0;let e=this.#k;for(;e===this.#k&&this.#b.length>0;){let r=this.#b.shift();await this.#ce(r,e)}e===this.#k&&(this.#z=!1,this.#y.size===0&&(this.#$=!1))}#N(){this.#k++;let e=[...this.#y];this.#y.clear();for(let r of e)try{r.stop()}catch{}this.#b=[],this.#$=!1,this.#z=!1,this.#D=0,this.#A=this.#d?this.#d.currentTime:null}async#de(){try{let e=await navigator.mediaDevices.getUserMedia({audio:{sampleRate:{ideal:48e3},channelCount:1,echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0}});this.#M=e;let r=await this.#W();if(!this.#R){let t=new Blob([zh],{type:"application/javascript"}),a=URL.createObjectURL(t);await r.audioWorklet.addModule(a),URL.revokeObjectURL(a),this.#R=!0}let o=r.createMediaStreamSource(e),n=new AudioWorkletNode(r,"audio-capture-processor");this.#Z=n,n.port.onmessage=t=>{if(t.data.type==="audio"&&!this.#i){let a=t.data.samples,i=Th(a),s=Ih(a);this.#o?.connected&&this.#o.sendBinary(s),this.#ne(i)}},o.connect(n),n.connect(r.destination)}catch(e){console.error("[VoiceClient] Mic error:",e),this.#n="Microphone access denied. Please allow microphone access and try again.",this.#r("error",this.#n)}}#fe(){this.#Z?.disconnect(),this.#Z=null,this.#M?.getTracks().forEach(e=>e.stop()),this.#M=null,this.#ae()}#ne(e){this.#i||(this.#p=e,this.#r("audiolevelchange",e),this.#$&&e>this.#Y?(this.#T++,this.#T>=this.#Q&&(this.#N(),this.#T=0,this.#o?.connected&&this.#o.sendJSON({type:"interrupt"}))):this.#T=0,e>this.#K?(this.#v||(this.#v=!0,this.#o?.connected&&this.#o.sendJSON({type:"start_of_speech"})),this.#s&&(clearTimeout(this.#s),this.#s=null)):this.#v&&(this.#s||(this.#s=setTimeout(()=>{this.#v=!1,this.#s=null,this.#o?.connected&&this.#o.sendJSON({type:"end_of_speech"})},this.#X))))}#ae(){this.#s&&(clearTimeout(this.#s),this.#s=null),this.#v=!1,this.#T=0,this.#p=0,this.#r("audiolevelchange",0)}};var Hr={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};var Cd=([e,r,o])=>{let n=document.createElementNS("http://www.w3.org/2000/svg",e);return Object.keys(r).forEach(t=>{n.setAttribute(t,String(r[t]))}),o?.length&&o.forEach(t=>{let a=Cd(t);n.appendChild(a)}),n},Dd=(e,r={})=>{let n={...Hr,...r};return Cd(["svg",n,e])};var Ad=e=>{for(let r in e)if(r.startsWith("aria-")||r==="role"||r==="title")return!0;return!1};var Ed=(...e)=>e.filter((r,o,n)=>!!r&&r.trim()!==""&&n.indexOf(r)===o).join(" ").trim();var Od=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,n)=>n?n.toUpperCase():o.toLowerCase());var Ud=e=>{let r=Od(e);return r.charAt(0).toUpperCase()+r.slice(1)};var Ph=e=>Array.from(e.attributes).reduce((r,o)=>(r[o.name]=o.value,r),{}),jd=e=>typeof e=="string"?e:!e||!e.class?"":e.class&&typeof e.class=="string"?e.class.split(" "):e.class&&Array.isArray(e.class)?e.class:"",_a=(e,{nameAttr:r,icons:o,attrs:n})=>{let t=e.getAttribute(r);if(t==null)return;let a=Ud(t),i=o[a];if(!i)return console.warn(`${e.outerHTML} icon name was not found in the provided icons object.`);let s=Ph(e),l=Ad(s)?{}:{"aria-hidden":"true"},u={...Hr,"data-lucide":t,...l,...n,...s},c=jd(s),d=jd(n),p=Ed("lucide",`lucide-${t}`,...c,...d);p&&Object.assign(u,{class:p});let g=Dd(i,u);return e.parentNode?.replaceChild(g,e)};var wa=[["path",{d:"m5 12 7-7 7 7"}],["path",{d:"M12 19V5"}]];var Sa=[["path",{d:"M12 5v16"}],["path",{d:"M16 13h2"}],["path",{d:"M16 9h2"}],["path",{d:"M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z"}],["path",{d:"M6 13h2"}],["path",{d:"M6 9h2"}]];var za=[["path",{d:"m6 9 6 6 6-6"}]];var Ia=[["path",{d:"m9 18 6-6-6-6"}]];var Gr=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"}]];var Ta=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}],["circle",{cx:"11.5",cy:"14.5",r:"2.5"}],["path",{d:"M13.3 16.3 15 18"}]];var Pa=[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3"}]];var Ca=[["path",{d:"M12 19v3"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3"}]];var Da=[["path",{d:"M12 22V12"}],["path",{d:"M20.27 18.27 22 20"}],["path",{d:"M21 10.498V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.729l7 4a2 2 0 0 0 2 .001l.98-.559"}],["path",{d:"M3.29 7 12 12l8.71-5"}],["path",{d:"m7.5 4.27 8.997 5.148"}],["circle",{cx:"18.5",cy:"16.5",r:"2.5"}]];var Aa=[["path",{d:"M5 12h14"}],["path",{d:"M12 5v14"}]];var Jr=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z"}],["path",{d:"M20 2v4"}],["path",{d:"M22 4h-4"}],["circle",{cx:"4",cy:"20",r:"2"}]];var Kr=[["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z"}],["path",{d:"M17 14V2"}]];var Xr=[["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z"}],["path",{d:"M7 10v12"}]];var Ea=[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2"}],["path",{d:"M15 18H9"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14"}],["circle",{cx:"17",cy:"18",r:"2"}],["circle",{cx:"7",cy:"18",r:"2"}]];var Yr=[["circle",{cx:"12",cy:"8",r:"5"}],["path",{d:"M20 21a8 8 0 0 0-16 0"}]];var Oa=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z"}]];var Qr=({icons:e={},nameAttr:r="data-lucide",attrs:o={},root:n=document,inTemplates:t}={})=>{if(!Object.values(e).length)throw new Error(`Please provide an icons object. If you want to use all the icons you can import it like: \`import { createIcons, icons } from 'lucide'; -lucide.createIcons({icons});\``);if(typeof n>"u")throw new Error("`createIcons()` only works in a browser environment.");if(Array.from(n.querySelectorAll(`[${r}]`)).forEach(i=>ga(i,{nameAttr:r,icons:e,attrs:o})),t&&Array.from(n.querySelectorAll("template")).forEach(s=>Qr({icons:e,nameAttr:r,attrs:o,root:s.content,inTemplates:t})),r==="data-lucide"){let i=n.querySelectorAll("[icon-name]");i.length>0&&(console.warn("[Lucide] Some icons were found with the now deprecated icon-name attribute. These will still be replaced for backwards compatibility, but will no longer be supported in v1.0 and you should switch to data-lucide"),Array.from(i).forEach(s=>ga(s,{nameAttr:"icon-name",icons:e,attrs:o})))}};function Ca(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ge=Ca();function Ud(e){Ge=e}var We={exec:()=>null};function ct(e){let r=[];return o=>{let n=Math.max(0,Math.min(3,o-1)),t=r[n];return t||(t=e(n),r[n]=t),t}}function P(e,r=""){let o=typeof e=="string"?e:e.source,n={replace:(t,a)=>{let i=typeof a=="string"?a:a.source;return i=i.replace(W.caret,"$1"),o=o.replace(t,i),n},getRegex:()=>new RegExp(o,r)};return n}var $h=((e="")=>{try{return!!new RegExp("(?<=1)(?/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:ct(e=>new RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:ct(e=>new RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:ct(e=>new RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:ct(e=>new RegExp(`^ {0,${e}}#`)),htmlBeginRegex:ct(e=>new RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:ct(e=>new RegExp(`^ {0,${e}}>`))},_h=/^(?:[ \t]*(?:\n|$))+/,wh=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Sh=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,er=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,zh=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Da=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,jd=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ld=P(jd).replace(/bull/g,Da).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Ih=P(jd).replace(/bull/g,Da).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Ea=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,Ph=/^[^\n]+/,Oa=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Th=P(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Oa).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ch=P(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Da).getRegex(),oo="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Aa=/|$))/,Dh=P("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|[^\\n]*\\n*|$)|[^\\n]*\\n*|$)|)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Aa).replace("tag",oo).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Nd=e=>P(Ea).replace("hr",er).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list",e).replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",oo).getRegex(),Eh=Nd(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),Oh=Nd(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),Ah=P(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Oh).getRegex(),Ua={blockquote:Ah,code:wh,def:Th,fences:Sh,heading:zh,hr:er,html:Dh,lheading:Ld,list:Ch,newline:_h,paragraph:Eh,table:We,text:Ph},Pd=P("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",er).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",oo).getRegex(),Uh={...Ua,lheading:Ih,table:Pd,paragraph:P(Ea).replace("hr",er).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Pd).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",oo).getRegex()},jh={...Ua,html:P(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Aa).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:We,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:P(Ea).replace("hr",er).replace("heading",` *#{1,6} *[^ -]`).replace("lheading",Ld).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Lh=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Nh=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Rd=/^( {2,}|\\)\n(?!\s*$)/,Rh=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`+)[^`]+\k(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",$h?"(?`+)[^`]+\k(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Md=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,qh=P(Md,"u").replace(/punct/g,dt).getRegex(),Vh=P(Md,"u").replace(/punct/g,Zd).getRegex(),Fd="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Wh=P(Fd,"gu").replace(/notPunctSpace/g,ja).replace(/punctSpace/g,no).replace(/punct/g,dt).getRegex(),Hh=P(Fd,"gu").replace(/notPunctSpace/g,Fh).replace(/punctSpace/g,Mh).replace(/punct/g,Zd).getRegex(),Gh=P("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,ja).replace(/punctSpace/g,no).replace(/punct/g,dt).getRegex(),Jh=P(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,dt).getRegex(),Kh="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Xh=P(Kh,"gu").replace(/notPunctSpace/g,ja).replace(/punctSpace/g,no).replace(/punct/g,dt).getRegex(),Qh=P(/\\(punct)/,"gu").replace(/punct/g,dt).getRegex(),Yh=P(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),ex=P(Aa).replace("(?:-->|$)","-->").getRegex(),tx=P("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",ex).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),eo=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,rx=P(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",eo).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Bd=P(/^!?\[(label)\]\[(ref)\]/).replace("label",eo).replace("ref",Oa).getRegex(),qd=P(/^!?\[(ref)\](?:\[\])?/).replace("ref",Oa).getRegex(),ox=P("reflink|nolink(?!\\()","g").replace("reflink",Bd).replace("nolink",qd).getRegex(),Td=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,La={_backpedal:We,anyPunctuation:Qh,autolink:Yh,blockSkip:Bh,br:Rd,code:Nh,del:We,delLDelim:We,delRDelim:We,emStrongLDelim:qh,emStrongRDelimAst:Wh,emStrongRDelimUnd:Gh,escape:Lh,link:rx,nolink:qd,punctuation:Zh,reflink:Bd,reflinkSearch:ox,tag:tx,text:Rh,url:We},nx={...La,link:P(/^!?\[(label)\]\((.*?)\)/).replace("label",eo).getRegex(),reflink:P(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",eo).getRegex()},Ia={...La,emStrongRDelimAst:Hh,emStrongLDelim:Vh,delLDelim:Jh,delRDelim:Xh,url:P(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Td).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:P(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\":">",'"':""","'":"'"},Cd=e=>ix[e];function ge(e,r){if(r){if(W.escapeTest.test(e))return e.replace(W.escapeReplace,Cd)}else if(W.escapeTestNoEncode.test(e))return e.replace(W.escapeReplaceNoEncode,Cd);return e}function Dd(e){try{e=encodeURI(e).replace(W.percentDecode,"%")}catch{return null}return e}function Ed(e,r){let o=e.replace(W.findPipe,(a,i,s)=>{let l=!1,u=i;for(;--u>=0&&s[u]==="\\";)l=!l;return l?"|":" |"}),n=o.split(W.splitPipe),t=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),r)if(n.length>r)n.splice(r);else for(;n.length"u")throw new Error("`createIcons()` only works in a browser environment.");if(Array.from(n.querySelectorAll(`[${r}]`)).forEach(i=>_a(i,{nameAttr:r,icons:e,attrs:o})),t&&Array.from(n.querySelectorAll("template")).forEach(s=>Qr({icons:e,nameAttr:r,attrs:o,root:s.content,inTemplates:t})),r==="data-lucide"){let i=n.querySelectorAll("[icon-name]");i.length>0&&(console.warn("[Lucide] Some icons were found with the now deprecated icon-name attribute. These will still be replaced for backwards compatibility, but will no longer be supported in v1.0 and you should switch to data-lucide"),Array.from(i).forEach(s=>_a(s,{nameAttr:"icon-name",icons:e,attrs:o})))}};function La(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ge=La();function Vd(e){Ge=e}var We={exec:()=>null};function ct(e){let r=[];return o=>{let n=Math.max(0,Math.min(3,o-1)),t=r[n];return t||(t=e(n),r[n]=t),t}}function P(e,r=""){let o=typeof e=="string"?e:e.source,n={replace:(t,a)=>{let i=typeof a=="string"?a:a.source;return i=i.replace(W.caret,"$1"),o=o.replace(t,i),n},getRegex:()=>new RegExp(o,r)};return n}var Ch=((e="")=>{try{return!!new RegExp("(?<=1)(?/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:ct(e=>new RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:ct(e=>new RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:ct(e=>new RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:ct(e=>new RegExp(`^ {0,${e}}#`)),htmlBeginRegex:ct(e=>new RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:ct(e=>new RegExp(`^ {0,${e}}>`))},Dh=/^(?:[ \t]*(?:\n|$))+/,Ah=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Eh=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,tr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Oh=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ra=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,qd=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Wd=P(qd).replace(/bull/g,Ra).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Uh=P(qd).replace(/bull/g,Ra).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Za=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,jh=/^[^\n]+/,Ma=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Nh=P(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Ma).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Lh=P(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Ra).getRegex(),no="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Fa=/|$))/,Rh=P("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|[^\\n]*\\n*|$)|[^\\n]*\\n*|$)|)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Fa).replace("tag",no).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Hd=e=>P(Za).replace("hr",tr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list",e).replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",no).getRegex(),Zh=Hd(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),Mh=Hd(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),Fh=P(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Mh).getRegex(),Ba={blockquote:Fh,code:Ah,def:Nh,fences:Eh,heading:Oh,hr:tr,html:Rh,lheading:Wd,list:Lh,newline:Dh,paragraph:Zh,table:We,text:jh},Nd=P("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",tr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",no).getRegex(),Bh={...Ba,lheading:Uh,table:Nd,paragraph:P(Za).replace("hr",tr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Nd).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",no).getRegex()},Vh={...Ba,html:P(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Fa).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:We,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:P(Za).replace("hr",tr).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",Wd).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},qh=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Wh=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Gd=/^( {2,}|\\)\n(?!\s*$)/,Hh=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`+)[^`]+\k(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Ch?"(?`+)[^`]+\k(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Kd=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Yh=P(Kd,"u").replace(/punct/g,dt).getRegex(),Qh=P(Kd,"u").replace(/punct/g,Jd).getRegex(),Xd="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",ex=P(Xd,"gu").replace(/notPunctSpace/g,Va).replace(/punctSpace/g,ao).replace(/punct/g,dt).getRegex(),tx=P(Xd,"gu").replace(/notPunctSpace/g,Kh).replace(/punctSpace/g,Jh).replace(/punct/g,Jd).getRegex(),rx=P("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Va).replace(/punctSpace/g,ao).replace(/punct/g,dt).getRegex(),ox=P(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,dt).getRegex(),nx="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",ax=P(nx,"gu").replace(/notPunctSpace/g,Va).replace(/punctSpace/g,ao).replace(/punct/g,dt).getRegex(),ix=P(/\\(punct)/,"gu").replace(/punct/g,dt).getRegex(),sx=P(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),lx=P(Fa).replace("(?:-->|$)","-->").getRegex(),ux=P("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",lx).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),to=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,cx=P(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",to).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Yd=P(/^!?\[(label)\]\[(ref)\]/).replace("label",to).replace("ref",Ma).getRegex(),Qd=P(/^!?\[(ref)\](?:\[\])?/).replace("ref",Ma).getRegex(),dx=P("reflink|nolink(?!\\()","g").replace("reflink",Yd).replace("nolink",Qd).getRegex(),Ld=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,qa={_backpedal:We,anyPunctuation:ix,autolink:sx,blockSkip:Xh,br:Gd,code:Wh,del:We,delLDelim:We,delRDelim:We,emStrongLDelim:Yh,emStrongRDelimAst:ex,emStrongRDelimUnd:rx,escape:qh,link:cx,nolink:Qd,punctuation:Gh,reflink:Yd,reflinkSearch:dx,tag:ux,text:Hh,url:We},fx={...qa,link:P(/^!?\[(label)\]\((.*?)\)/).replace("label",to).getRegex(),reflink:P(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",to).getRegex()},Ua={...qa,emStrongRDelimAst:tx,emStrongLDelim:Qh,delLDelim:ox,delRDelim:ax,url:P(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Ld).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:P(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\":">",'"':""","'":"'"},Rd=e=>mx[e];function ge(e,r){if(r){if(W.escapeTest.test(e))return e.replace(W.escapeReplace,Rd)}else if(W.escapeTestNoEncode.test(e))return e.replace(W.escapeReplaceNoEncode,Rd);return e}function Zd(e){try{e=encodeURI(e).replace(W.percentDecode,"%")}catch{return null}return e}function Md(e,r){let o=e.replace(W.findPipe,(a,i,s)=>{let l=!1,u=i;for(;--u>=0&&s[u]==="\\";)l=!l;return l?"|":" |"}),n=o.split(W.splitPipe),t=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),r)if(n.length>r)n.splice(r);else for(;n.length=0&&W.blankLine.test(r[o]);)o--;return r.length-o<=2?e:r.slice(0,o+1).join(` -`)}function sx(e,r){if(e.indexOf(r[1])===-1)return-1;let o=0;for(let n=0;n0?-2:-1}function lx(e,r=0){let o=r,n="";for(let t of e)if(t===" "){let a=4-o%4;n+=" ".repeat(a),o+=a}else n+=t,o++;return n}function Ad(e,r,o,n,t){let a=r.href,i=r.title||null,s=e[1].replace(t.other.outputLinkReplace,"$1");n.state.inLink=!0;let l={type:e[0].charAt(0)==="!"?"image":"link",raw:o,href:a,title:i,text:s,tokens:n.inlineTokens(s)};return n.state.inLink=!1,l}function ux(e,r,o){let n=e.match(o.other.indentCodeCompensation);if(n===null)return r;let t=n[1];return r.split(` +`)}function gx(e,r){if(e.indexOf(r[1])===-1)return-1;let o=0;for(let n=0;n0?-2:-1}function hx(e,r=0){let o=r,n="";for(let t of e)if(t===" "){let a=4-o%4;n+=" ".repeat(a),o+=a}else n+=t,o++;return n}function Bd(e,r,o,n,t){let a=r.href,i=r.title||null,s=e[1].replace(t.other.outputLinkReplace,"$1");n.state.inLink=!0;let l={type:e[0].charAt(0)==="!"?"image":"link",raw:o,href:a,title:i,text:s,tokens:n.inlineTokens(s)};return n.state.inLink=!1,l}function xx(e,r,o){let n=e.match(o.other.indentCodeCompensation);if(n===null)return r;let t=n[1];return r.split(` `).map(a=>{let i=a.match(o.other.beginningSpace);if(i===null)return a;let[s]=i;return s.length>=t.length?a.slice(t.length):a}).join(` -`)}var to=class{options;rules;lexer;constructor(e){this.options=e||Ge}space(e){let r=this.rules.block.newline.exec(e);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(e){let r=this.rules.block.code.exec(e);if(r){let o=this.options.pedantic?r[0]:Od(r[0]),n=o.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:o,codeBlockStyle:"indented",text:n}}}fences(e){let r=this.rules.block.fences.exec(e);if(r){let o=r[0],n=ux(o,r[3]||"",this.rules);return{type:"code",raw:o,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:n}}}heading(e){let r=this.rules.block.heading.exec(e);if(r){let o=r[2].trim();if(this.rules.other.endingHash.test(o)){let n=De(o,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(o=n.trim())}return{type:"heading",raw:De(r[0],` +`)}var ro=class{options;rules;lexer;constructor(e){this.options=e||Ge}space(e){let r=this.rules.block.newline.exec(e);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(e){let r=this.rules.block.code.exec(e);if(r){let o=this.options.pedantic?r[0]:Fd(r[0]),n=o.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:o,codeBlockStyle:"indented",text:n}}}fences(e){let r=this.rules.block.fences.exec(e);if(r){let o=r[0],n=xx(o,r[3]||"",this.rules);return{type:"code",raw:o,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:n}}}heading(e){let r=this.rules.block.heading.exec(e);if(r){let o=r[2].trim();if(this.rules.other.endingHash.test(o)){let n=De(o,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(o=n.trim())}return{type:"heading",raw:De(r[0],` `),depth:r[1].length,text:o,tokens:this.lexer.inline(o)}}}hr(e){let r=this.rules.block.hr.exec(e);if(r)return{type:"hr",raw:De(r[0],` `)}}blockquote(e){let r=this.rules.block.blockquote.exec(e);if(r){let o=De(r[0],` `).split(` @@ -79,22 +79,22 @@ lucide.createIcons({icons});\``);if(typeof n>"u")throw new Error("`createIcons() ${u}`:u,t=t?`${t} ${c}`:c;let d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,a,!0),this.lexer.state.top=d,o.length===0)break;let p=a.at(-1);if(p?.type==="code")break;if(p?.type==="blockquote"){let g=p,h=g.raw+` `+o.join(` -`),I=this.blockquote(h);a[a.length-1]=I,n=n.substring(0,n.length-g.raw.length)+I.raw,t=t.substring(0,t.length-g.text.length)+I.text;break}else if(p?.type==="list"){let g=p,h=g.raw+` +`),T=this.blockquote(h);a[a.length-1]=T,n=n.substring(0,n.length-g.raw.length)+T.raw,t=t.substring(0,t.length-g.text.length)+T.text;break}else if(p?.type==="list"){let g=p,h=g.raw+` `+o.join(` -`),I=this.list(h);a[a.length-1]=I,n=n.substring(0,n.length-p.raw.length)+I.raw,t=t.substring(0,t.length-g.raw.length)+I.raw,o=h.substring(a.at(-1).raw.length).split(` -`);continue}}return{type:"blockquote",raw:n,tokens:a,text:t}}}list(e){let r=this.rules.block.list.exec(e);if(r){let o=r[1].trim(),n=o.length>1,t={type:"list",raw:"",ordered:n,start:n?+o.slice(0,-1):"",loose:!1,items:[]};o=n?`\\d{1,9}\\${o.slice(-1)}`:`\\${o}`,this.options.pedantic&&(o=n?o:"[*+-]");let a=this.rules.other.listItemRegex(o),i=!1;for(;e;){let l=!1,u="",c="";if(!(r=a.exec(e))||this.rules.block.hr.test(e))break;u=r[0],e=e.substring(u.length);let d=lx(r[2].split(` +`),T=this.list(h);a[a.length-1]=T,n=n.substring(0,n.length-p.raw.length)+T.raw,t=t.substring(0,t.length-g.raw.length)+T.raw,o=h.substring(a.at(-1).raw.length).split(` +`);continue}}return{type:"blockquote",raw:n,tokens:a,text:t}}}list(e){let r=this.rules.block.list.exec(e);if(r){let o=r[1].trim(),n=o.length>1,t={type:"list",raw:"",ordered:n,start:n?+o.slice(0,-1):"",loose:!1,items:[]};o=n?`\\d{1,9}\\${o.slice(-1)}`:`\\${o}`,this.options.pedantic&&(o=n?o:"[*+-]");let a=this.rules.other.listItemRegex(o),i=!1;for(;e;){let l=!1,u="",c="";if(!(r=a.exec(e))||this.rules.block.hr.test(e))break;u=r[0],e=e.substring(u.length);let d=hx(r[2].split(` `,1)[0],r[1].length),p=e.split(` `,1)[0],g=!d.trim(),h=0;if(this.options.pedantic?(h=2,c=d.trimStart()):g?h=r[1].length+1:(h=d.search(this.rules.other.nonSpaceChar),h=h>4?1:h,c=d.slice(h),h+=r[1].length),g&&this.rules.other.blankLine.test(p)&&(u+=p+` -`,e=e.substring(p.length+1),l=!0),!l){let I=this.rules.other.nextBulletRegex(h),w=this.rules.other.hrRegex(h),M=this.rules.other.fencesBeginRegex(h),Pe=this.rules.other.headingBeginRegex(h),B=this.rules.other.htmlBeginRegex(h),D=this.rules.other.blockquoteBeginRegex(h);for(;e;){let L=e.split(` -`,1)[0],pe;if(p=L,this.options.pedantic?(p=p.replace(this.rules.other.listReplaceNesting," "),pe=p):pe=p.replace(this.rules.other.tabCharGlobal," "),M.test(p)||Pe.test(p)||B.test(p)||D.test(p)||I.test(p)||w.test(p))break;if(pe.search(this.rules.other.nonSpaceChar)>=h||!p.trim())c+=` -`+pe.slice(h);else{if(g||d.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||M.test(d)||Pe.test(d)||w.test(d))break;c+=` -`+p}g=!p.trim(),u+=L+` -`,e=e.substring(L.length+1),d=pe.slice(h)}}t.loose||(i?t.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(i=!0)),t.items.push({type:"list_item",raw:u,task:!!this.options.gfm&&this.rules.other.listIsTask.test(c),loose:!1,text:c,tokens:[]}),t.raw+=u}let s=t.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;t.raw=t.raw.trimEnd();for(let l of t.items){this.lexer.state.top=!1,l.tokens=this.lexer.blockTokens(l.text,[]);let u=l.tokens[0];if(l.task&&(u?.type==="text"||u?.type==="paragraph")){l.text=l.text.replace(this.rules.other.listReplaceTask,""),u.raw=u.raw.replace(this.rules.other.listReplaceTask,""),u.text=u.text.replace(this.rules.other.listReplaceTask,"");for(let d=this.lexer.inlineQueue.length-1;d>=0;d--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[d].src)){this.lexer.inlineQueue[d].src=this.lexer.inlineQueue[d].src.replace(this.rules.other.listReplaceTask,"");break}let c=this.rules.other.listTaskCheckbox.exec(l.raw);if(c){let d={type:"checkbox",raw:c[0]+" ",checked:c[0]!=="[ ]"};l.checked=d.checked,t.loose?l.tokens[0]&&["paragraph","text"].includes(l.tokens[0].type)&&"tokens"in l.tokens[0]&&l.tokens[0].tokens?(l.tokens[0].raw=d.raw+l.tokens[0].raw,l.tokens[0].text=d.raw+l.tokens[0].text,l.tokens[0].tokens.unshift(d)):l.tokens.unshift({type:"paragraph",raw:d.raw,text:d.raw,tokens:[d]}):l.tokens.unshift(d)}}else l.task&&(l.task=!1);if(!t.loose){let c=l.tokens.filter(p=>p.type==="space"),d=c.length>0&&c.some(p=>this.rules.other.anyLine.test(p.raw));t.loose=d}}if(t.loose)for(let l of t.items){l.loose=!0;for(let u of l.tokens)u.type==="text"&&(u.type="paragraph")}return t}}html(e){let r=this.rules.block.html.exec(e);if(r){let o=Od(r[0]);return{type:"html",block:!0,raw:o,pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:o}}}def(e){let r=this.rules.block.def.exec(e);if(r){let o=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",t=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:o,raw:De(r[0],` -`),href:n,title:t}}}table(e){let r=this.rules.block.table.exec(e);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let o=Ed(r[1]),n=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),t=r[3]?.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(` +`,e=e.substring(p.length+1),l=!0),!l){let T=this.rules.other.nextBulletRegex(h),w=this.rules.other.hrRegex(h),M=this.rules.other.fencesBeginRegex(h),Te=this.rules.other.headingBeginRegex(h),V=this.rules.other.htmlBeginRegex(h),D=this.rules.other.blockquoteBeginRegex(h);for(;e;){let N=e.split(` +`,1)[0],pe;if(p=N,this.options.pedantic?(p=p.replace(this.rules.other.listReplaceNesting," "),pe=p):pe=p.replace(this.rules.other.tabCharGlobal," "),M.test(p)||Te.test(p)||V.test(p)||D.test(p)||T.test(p)||w.test(p))break;if(pe.search(this.rules.other.nonSpaceChar)>=h||!p.trim())c+=` +`+pe.slice(h);else{if(g||d.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||M.test(d)||Te.test(d)||w.test(d))break;c+=` +`+p}g=!p.trim(),u+=N+` +`,e=e.substring(N.length+1),d=pe.slice(h)}}t.loose||(i?t.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(i=!0)),t.items.push({type:"list_item",raw:u,task:!!this.options.gfm&&this.rules.other.listIsTask.test(c),loose:!1,text:c,tokens:[]}),t.raw+=u}let s=t.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;t.raw=t.raw.trimEnd();for(let l of t.items){this.lexer.state.top=!1,l.tokens=this.lexer.blockTokens(l.text,[]);let u=l.tokens[0];if(l.task&&(u?.type==="text"||u?.type==="paragraph")){l.text=l.text.replace(this.rules.other.listReplaceTask,""),u.raw=u.raw.replace(this.rules.other.listReplaceTask,""),u.text=u.text.replace(this.rules.other.listReplaceTask,"");for(let d=this.lexer.inlineQueue.length-1;d>=0;d--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[d].src)){this.lexer.inlineQueue[d].src=this.lexer.inlineQueue[d].src.replace(this.rules.other.listReplaceTask,"");break}let c=this.rules.other.listTaskCheckbox.exec(l.raw);if(c){let d={type:"checkbox",raw:c[0]+" ",checked:c[0]!=="[ ]"};l.checked=d.checked,t.loose?l.tokens[0]&&["paragraph","text"].includes(l.tokens[0].type)&&"tokens"in l.tokens[0]&&l.tokens[0].tokens?(l.tokens[0].raw=d.raw+l.tokens[0].raw,l.tokens[0].text=d.raw+l.tokens[0].text,l.tokens[0].tokens.unshift(d)):l.tokens.unshift({type:"paragraph",raw:d.raw,text:d.raw,tokens:[d]}):l.tokens.unshift(d)}}else l.task&&(l.task=!1);if(!t.loose){let c=l.tokens.filter(p=>p.type==="space"),d=c.length>0&&c.some(p=>this.rules.other.anyLine.test(p.raw));t.loose=d}}if(t.loose)for(let l of t.items){l.loose=!0;for(let u of l.tokens)u.type==="text"&&(u.type="paragraph")}return t}}html(e){let r=this.rules.block.html.exec(e);if(r){let o=Fd(r[0]);return{type:"html",block:!0,raw:o,pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:o}}}def(e){let r=this.rules.block.def.exec(e);if(r){let o=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",t=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:o,raw:De(r[0],` +`),href:n,title:t}}}table(e){let r=this.rules.block.table.exec(e);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let o=Md(r[1]),n=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),t=r[3]?.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(` `):[],a={type:"table",raw:De(r[0],` -`),header:[],align:[],rows:[]};if(o.length===n.length){for(let i of n)this.rules.other.tableAlignRight.test(i)?a.align.push("right"):this.rules.other.tableAlignCenter.test(i)?a.align.push("center"):this.rules.other.tableAlignLeft.test(i)?a.align.push("left"):a.align.push(null);for(let i=0;i({text:s,tokens:this.lexer.inline(s),header:!1,align:a.align[l]})));return a}}lheading(e){let r=this.rules.block.lheading.exec(e);if(r){let o=r[1].trim();return{type:"heading",raw:De(r[0],` +`),header:[],align:[],rows:[]};if(o.length===n.length){for(let i of n)this.rules.other.tableAlignRight.test(i)?a.align.push("right"):this.rules.other.tableAlignCenter.test(i)?a.align.push("center"):this.rules.other.tableAlignLeft.test(i)?a.align.push("left"):a.align.push(null);for(let i=0;i({text:s,tokens:this.lexer.inline(s),header:!1,align:a.align[l]})));return a}}lheading(e){let r=this.rules.block.lheading.exec(e);if(r){let o=r[1].trim();return{type:"heading",raw:De(r[0],` `),depth:r[2].charAt(0)==="="?1:2,text:o,tokens:this.lexer.inline(o)}}}paragraph(e){let r=this.rules.block.paragraph.exec(e);if(r){let o=r[1].charAt(r[1].length-1)===` -`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:o,tokens:this.lexer.inline(o)}}}text(e){let r=this.rules.block.text.exec(e);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(e){let r=this.rules.inline.escape.exec(e);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(e){let r=this.rules.inline.tag.exec(e);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(e){let r=this.rules.inline.link.exec(e);if(r){let o=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(o)){if(!this.rules.other.endAngleBracket.test(o))return;let a=De(o.slice(0,-1),"\\");if((o.length-a.length)%2===0)return}else{let a=sx(r[2],"()");if(a===-2)return;if(a>-1){let i=(r[0].indexOf("!")===0?5:4)+r[1].length+a;r[2]=r[2].substring(0,a),r[0]=r[0].substring(0,i).trim(),r[3]=""}}let n=r[2],t="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(n);a&&(n=a[1],t=a[3])}else t=r[3]?r[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(o)?n=n.slice(1):n=n.slice(1,-1)),Ad(r,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:t&&t.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(e,r){let o;if((o=this.rules.inline.reflink.exec(e))||(o=this.rules.inline.nolink.exec(e))){let n=(o[2]||o[1]).replace(this.rules.other.multipleSpaceGlobal," "),t=r[n.toLowerCase()];if(!t){let a=o[0].charAt(0);return{type:"text",raw:a,text:a}}return Ad(o,t,o[0],this.lexer,this.rules)}}emStrong(e,r,o=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(!(!n||!n[1]&&!n[2]&&!n[3]&&!n[4]||n[4]&&o.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[3])||!o||this.rules.inline.punctuation.exec(o))){let t=[...n[0]].length-1,a,i,s=t,l=0,u=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,r=r.slice(-1*e.length+t);(n=u.exec(r))!==null;){if(a=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!a)continue;if(i=[...a].length,n[3]||n[4]){s+=i;continue}else if((n[5]||n[6])&&t%3&&!((t+i)%3)){l+=i;continue}if(s-=i,s>0)continue;i=Math.min(i,i+s+l);let c=[...n[0]][0].length,d=e.slice(0,t+n.index+c+i);if(Math.min(t,i)%2){let g=d.slice(1,-1);return{type:"em",raw:d,text:g,tokens:this.lexer.inlineTokens(g)}}let p=d.slice(2,-2);return{type:"strong",raw:d,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(e){let r=this.rules.inline.code.exec(e);if(r){let o=r[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(o),t=this.rules.other.startingSpaceChar.test(o)&&this.rules.other.endingSpaceChar.test(o);return n&&t&&(o=o.substring(1,o.length-1)),{type:"codespan",raw:r[0],text:o}}}br(e){let r=this.rules.inline.br.exec(e);if(r)return{type:"br",raw:r[0]}}del(e,r,o=""){let n=this.rules.inline.delLDelim.exec(e);if(n&&(!n[1]||!o||this.rules.inline.punctuation.exec(o))){let t=[...n[0]].length-1,a,i,s=t,l=this.rules.inline.delRDelim;for(l.lastIndex=0,r=r.slice(-1*e.length+t);(n=l.exec(r))!==null;){if(a=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!a||(i=[...a].length,i!==t))continue;if(n[3]||n[4]){s+=i;continue}if(s-=i,s>0)continue;i=Math.min(i,i+s);let u=[...n[0]][0].length,c=e.slice(0,t+n.index+u+i),d=c.slice(t,-t);return{type:"del",raw:c,text:d,tokens:this.lexer.inlineTokens(d)}}}}autolink(e){let r=this.rules.inline.autolink.exec(e);if(r){let o,n;return r[2]==="@"?(o=r[1],n="mailto:"+o):(o=r[1],n=o),{type:"link",raw:r[0],text:o,href:n,tokens:[{type:"text",raw:o,text:o}]}}}url(e){let r;if(r=this.rules.inline.url.exec(e)){let o,n;if(r[2]==="@")o=r[0],n="mailto:"+o;else{let t;do t=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])?.[0]??"";while(t!==r[0]);o=r[0],r[1]==="www."?n="http://"+r[0]:n=r[0]}return{type:"link",raw:r[0],text:o,href:n,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(e){let r=this.rules.inline.text.exec(e);if(r){let o=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:o}}}},ue=class Pa{tokens;options;state;inlineQueue;tokenizer;constructor(r){this.tokens=[],this.tokens.links=Object.create(null),this.options=r||Ge,this.options.tokenizer=this.options.tokenizer||new to,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let o={other:W,block:Yr.normal,inline:Qt.normal};this.options.pedantic?(o.block=Yr.pedantic,o.inline=Qt.pedantic):this.options.gfm&&(o.block=Yr.gfm,this.options.breaks?o.inline=Qt.breaks:o.inline=Qt.gfm),this.tokenizer.rules=o}static get rules(){return{block:Yr,inline:Qt}}static lex(r,o){return new Pa(o).lex(r)}static lexInline(r,o){return new Pa(o).inlineTokens(r)}lex(r){r=r.replace(W.carriageReturn,` +`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:o,tokens:this.lexer.inline(o)}}}text(e){let r=this.rules.block.text.exec(e);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(e){let r=this.rules.inline.escape.exec(e);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(e){let r=this.rules.inline.tag.exec(e);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(e){let r=this.rules.inline.link.exec(e);if(r){let o=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(o)){if(!this.rules.other.endAngleBracket.test(o))return;let a=De(o.slice(0,-1),"\\");if((o.length-a.length)%2===0)return}else{let a=gx(r[2],"()");if(a===-2)return;if(a>-1){let i=(r[0].indexOf("!")===0?5:4)+r[1].length+a;r[2]=r[2].substring(0,a),r[0]=r[0].substring(0,i).trim(),r[3]=""}}let n=r[2],t="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(n);a&&(n=a[1],t=a[3])}else t=r[3]?r[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(o)?n=n.slice(1):n=n.slice(1,-1)),Bd(r,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:t&&t.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(e,r){let o;if((o=this.rules.inline.reflink.exec(e))||(o=this.rules.inline.nolink.exec(e))){let n=(o[2]||o[1]).replace(this.rules.other.multipleSpaceGlobal," "),t=r[n.toLowerCase()];if(!t){let a=o[0].charAt(0);return{type:"text",raw:a,text:a}}return Bd(o,t,o[0],this.lexer,this.rules)}}emStrong(e,r,o=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(!(!n||!n[1]&&!n[2]&&!n[3]&&!n[4]||n[4]&&o.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[3])||!o||this.rules.inline.punctuation.exec(o))){let t=[...n[0]].length-1,a,i,s=t,l=0,u=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,r=r.slice(-1*e.length+t);(n=u.exec(r))!==null;){if(a=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!a)continue;if(i=[...a].length,n[3]||n[4]){s+=i;continue}else if((n[5]||n[6])&&t%3&&!((t+i)%3)){l+=i;continue}if(s-=i,s>0)continue;i=Math.min(i,i+s+l);let c=[...n[0]][0].length,d=e.slice(0,t+n.index+c+i);if(Math.min(t,i)%2){let g=d.slice(1,-1);return{type:"em",raw:d,text:g,tokens:this.lexer.inlineTokens(g)}}let p=d.slice(2,-2);return{type:"strong",raw:d,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(e){let r=this.rules.inline.code.exec(e);if(r){let o=r[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(o),t=this.rules.other.startingSpaceChar.test(o)&&this.rules.other.endingSpaceChar.test(o);return n&&t&&(o=o.substring(1,o.length-1)),{type:"codespan",raw:r[0],text:o}}}br(e){let r=this.rules.inline.br.exec(e);if(r)return{type:"br",raw:r[0]}}del(e,r,o=""){let n=this.rules.inline.delLDelim.exec(e);if(n&&(!n[1]||!o||this.rules.inline.punctuation.exec(o))){let t=[...n[0]].length-1,a,i,s=t,l=this.rules.inline.delRDelim;for(l.lastIndex=0,r=r.slice(-1*e.length+t);(n=l.exec(r))!==null;){if(a=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!a||(i=[...a].length,i!==t))continue;if(n[3]||n[4]){s+=i;continue}if(s-=i,s>0)continue;i=Math.min(i,i+s);let u=[...n[0]][0].length,c=e.slice(0,t+n.index+u+i),d=c.slice(t,-t);return{type:"del",raw:c,text:d,tokens:this.lexer.inlineTokens(d)}}}}autolink(e){let r=this.rules.inline.autolink.exec(e);if(r){let o,n;return r[2]==="@"?(o=r[1],n="mailto:"+o):(o=r[1],n=o),{type:"link",raw:r[0],text:o,href:n,tokens:[{type:"text",raw:o,text:o}]}}}url(e){let r;if(r=this.rules.inline.url.exec(e)){let o,n;if(r[2]==="@")o=r[0],n="mailto:"+o;else{let t;do t=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])?.[0]??"";while(t!==r[0]);o=r[0],r[1]==="www."?n="http://"+r[0]:n=r[0]}return{type:"link",raw:r[0],text:o,href:n,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(e){let r=this.rules.inline.text.exec(e);if(r){let o=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:o}}}},ue=class ja{tokens;options;state;inlineQueue;tokenizer;constructor(r){this.tokens=[],this.tokens.links=Object.create(null),this.options=r||Ge,this.options.tokenizer=this.options.tokenizer||new ro,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let o={other:W,block:eo.normal,inline:Qt.normal};this.options.pedantic?(o.block=eo.pedantic,o.inline=Qt.pedantic):this.options.gfm&&(o.block=eo.gfm,this.options.breaks?o.inline=Qt.breaks:o.inline=Qt.gfm),this.tokenizer.rules=o}static get rules(){return{block:eo,inline:Qt}}static lex(r,o){return new ja(o).lex(r)}static lexInline(r,o){return new ja(o).inlineTokens(r)}lex(r){r=r.replace(W.carriageReturn,` `),this.blockTokens(r,this.tokens);for(let o=0;o(a=s.call({lexer:this},r,o))?(r=r.substring(a.raw.length),o.push(a),!0):!1))continue;if(a=this.tokenizer.space(r)){r=r.substring(a.raw.length);let s=o.at(-1);a.raw.length===1&&s!==void 0?s.raw+=` `:o.push(a);continue}if(a=this.tokenizer.code(r)){r=r.substring(a.raw.length);let s=o.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(` `)?"":` @@ -108,7 +108,7 @@ ${c}`:c;let d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo `+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):o.push(a),n=i.length!==r.length,r=r.substring(a.raw.length);continue}if(a=this.tokenizer.text(r)){r=r.substring(a.raw.length);let s=o.at(-1);s?.type==="text"?(s.raw+=(s.raw.endsWith(` `)?"":` `)+a.raw,s.text+=` -`+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):o.push(a);continue}if(r){this.infiniteLoopError(r.charCodeAt(0));break}}return this.state.top=!0,o}inline(r,o=[]){return this.inlineQueue.push({src:r,tokens:o}),o}inlineTokens(r,o=[]){this.tokenizer.lexer=this;let n=r;if(this.tokens.links){let s=Object.keys(this.tokens.links);s.length>0&&(n=n.replace(this.tokenizer.rules.inline.reflinkSearch,l=>s.includes(l.slice(l.lastIndexOf("[")+1,-1))?"["+"a".repeat(l.length-2)+"]":l))}n=n.replace(this.tokenizer.rules.inline.anyPunctuation,"++"),n=n.replace(this.tokenizer.rules.inline.blockSkip,(s,l,u)=>{let c=u?u.length:0;return s.slice(0,c)+"["+"a".repeat(s.length-c-2)+"]"}),n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let t=!1,a="",i=1/0;for(;r;){if(r.length(s=u.call({lexer:this},r,o))?(r=r.substring(s.raw.length),o.push(s),!0):!1))continue;if(s=this.tokenizer.escape(r)){r=r.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.tag(r)){r=r.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.link(r)){r=r.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.reflink(r,this.tokens.links)){r=r.substring(s.raw.length);let u=o.at(-1);s.type==="text"&&u?.type==="text"?(u.raw+=s.raw,u.text+=s.text):o.push(s);continue}if(s=this.tokenizer.emStrong(r,n,a)){r=r.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.codespan(r)){r=r.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.br(r)){r=r.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.del(r,n,a)){r=r.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.autolink(r)){r=r.substring(s.raw.length),o.push(s);continue}if(!this.state.inLink&&(s=this.tokenizer.url(r))){r=r.substring(s.raw.length),o.push(s);continue}let l=r;if(this.options.extensions?.startInline){let u=1/0,c=r.slice(1),d;this.options.extensions.startInline.forEach(p=>{d=p.call({lexer:this},c),typeof d=="number"&&d>=0&&(u=Math.min(u,d))}),u<1/0&&u>=0&&(l=r.substring(0,u+1))}if(s=this.tokenizer.inlineText(l)){r=r.substring(s.raw.length),s.raw.slice(-1)!=="_"&&(a=s.raw.slice(-1)),t=!0;let u=o.at(-1);u?.type==="text"?(u.raw+=s.raw,u.text+=s.text):o.push(s);continue}if(r){this.infiniteLoopError(r.charCodeAt(0));break}}return o}infiniteLoopError(r){let o="Infinite loop on byte: "+r;if(this.options.silent)console.error(o);else throw new Error(o)}},ro=class{options;parser;constructor(e){this.options=e||Ge}space(e){return""}code({text:e,lang:r,escaped:o}){let n=(r||"").match(W.notSpaceStart)?.[0],t=e.replace(W.endingNewline,"")+` +`+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):o.push(a);continue}if(r){this.infiniteLoopError(r.charCodeAt(0));break}}return this.state.top=!0,o}inline(r,o=[]){return this.inlineQueue.push({src:r,tokens:o}),o}inlineTokens(r,o=[]){this.tokenizer.lexer=this;let n=r;if(this.tokens.links){let s=Object.keys(this.tokens.links);s.length>0&&(n=n.replace(this.tokenizer.rules.inline.reflinkSearch,l=>s.includes(l.slice(l.lastIndexOf("[")+1,-1))?"["+"a".repeat(l.length-2)+"]":l))}n=n.replace(this.tokenizer.rules.inline.anyPunctuation,"++"),n=n.replace(this.tokenizer.rules.inline.blockSkip,(s,l,u)=>{let c=u?u.length:0;return s.slice(0,c)+"["+"a".repeat(s.length-c-2)+"]"}),n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let t=!1,a="",i=1/0;for(;r;){if(r.length(s=u.call({lexer:this},r,o))?(r=r.substring(s.raw.length),o.push(s),!0):!1))continue;if(s=this.tokenizer.escape(r)){r=r.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.tag(r)){r=r.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.link(r)){r=r.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.reflink(r,this.tokens.links)){r=r.substring(s.raw.length);let u=o.at(-1);s.type==="text"&&u?.type==="text"?(u.raw+=s.raw,u.text+=s.text):o.push(s);continue}if(s=this.tokenizer.emStrong(r,n,a)){r=r.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.codespan(r)){r=r.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.br(r)){r=r.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.del(r,n,a)){r=r.substring(s.raw.length),o.push(s);continue}if(s=this.tokenizer.autolink(r)){r=r.substring(s.raw.length),o.push(s);continue}if(!this.state.inLink&&(s=this.tokenizer.url(r))){r=r.substring(s.raw.length),o.push(s);continue}let l=r;if(this.options.extensions?.startInline){let u=1/0,c=r.slice(1),d;this.options.extensions.startInline.forEach(p=>{d=p.call({lexer:this},c),typeof d=="number"&&d>=0&&(u=Math.min(u,d))}),u<1/0&&u>=0&&(l=r.substring(0,u+1))}if(s=this.tokenizer.inlineText(l)){r=r.substring(s.raw.length),s.raw.slice(-1)!=="_"&&(a=s.raw.slice(-1)),t=!0;let u=o.at(-1);u?.type==="text"?(u.raw+=s.raw,u.text+=s.text):o.push(s);continue}if(r){this.infiniteLoopError(r.charCodeAt(0));break}}return o}infiniteLoopError(r){let o="Infinite loop on byte: "+r;if(this.options.silent)console.error(o);else throw new Error(o)}},oo=class{options;parser;constructor(e){this.options=e||Ge}space(e){return""}code({text:e,lang:r,escaped:o}){let n=(r||"").match(W.notSpaceStart)?.[0],t=e.replace(W.endingNewline,"")+` `;return n?'
'+(o?t:ge(t,!0))+`
`:"
"+(o?t:ge(t,!0))+`
`}blockquote({tokens:e}){return`
@@ -126,71 +126,71 @@ ${this.parser.parse(e)}
`}tablerow({text:e}){return` ${e} `}tablecell(e){let r=this.parser.parseInline(e.tokens),o=e.header?"th":"td";return(e.align?`<${o} align="${e.align}">`:`<${o}>`)+r+` -`}strong({tokens:e}){return`${this.parser.parseInline(e)}`}em({tokens:e}){return`${this.parser.parseInline(e)}`}codespan({text:e}){return`${ge(e,!0)}`}br(e){return"
"}del({tokens:e}){return`${this.parser.parseInline(e)}`}link({href:e,title:r,tokens:o}){let n=this.parser.parseInline(o),t=Dd(e);if(t===null)return n;e=t;let a='
",a}image({href:e,title:r,text:o,tokens:n}){n&&(o=this.parser.parseInline(n,this.parser.textRenderer));let t=Dd(e);if(t===null)return ge(o);e=t;let a=`${ge(o)}{let i=t[a].flat(1/0);o=o.concat(this.walkTokens(i,r))}):t.tokens&&(o=o.concat(this.walkTokens(t.tokens,r)))}}return o}use(...e){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(o=>{let n={...o};if(n.async=this.defaults.async||n.async||!1,o.extensions&&(o.extensions.forEach(t=>{if(!t.name)throw new Error("extension name required");if("renderer"in t){let a=r.renderers[t.name];a?r.renderers[t.name]=function(...i){let s=t.renderer.apply(this,i);return s===!1&&(s=a.apply(this,i)),s}:r.renderers[t.name]=t.renderer}if("tokenizer"in t){if(!t.level||t.level!=="block"&&t.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=r[t.level];a?a.unshift(t.tokenizer):r[t.level]=[t.tokenizer],t.start&&(t.level==="block"?r.startBlock?r.startBlock.push(t.start):r.startBlock=[t.start]:t.level==="inline"&&(r.startInline?r.startInline.push(t.start):r.startInline=[t.start]))}"childTokens"in t&&t.childTokens&&(r.childTokens[t.name]=t.childTokens)}),n.extensions=r),o.renderer){let t=this.defaults.renderer||new ro(this.defaults);for(let a in o.renderer){if(!(a in t))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let i=a,s=o.renderer[i],l=t[i];t[i]=(...u)=>{let c=s.apply(t,u);return c===!1&&(c=l.apply(t,u)),c||""}}n.renderer=t}if(o.tokenizer){let t=this.defaults.tokenizer||new to(this.defaults);for(let a in o.tokenizer){if(!(a in t))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let i=a,s=o.tokenizer[i],l=t[i];t[i]=(...u)=>{let c=s.apply(t,u);return c===!1&&(c=l.apply(t,u)),c}}n.tokenizer=t}if(o.hooks){let t=this.defaults.hooks||new Yt;for(let a in o.hooks){if(!(a in t))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let i=a,s=o.hooks[i],l=t[i];Yt.passThroughHooks.has(a)?t[i]=u=>{if(this.defaults.async&&Yt.passThroughHooksRespectAsync.has(a))return(async()=>{let d=await s.call(t,u);return l.call(t,d)})();let c=s.call(t,u);return l.call(t,c)}:t[i]=(...u)=>{if(this.defaults.async)return(async()=>{let d=await s.apply(t,u);return d===!1&&(d=await l.apply(t,u)),d})();let c=s.apply(t,u);return c===!1&&(c=l.apply(t,u)),c}}n.hooks=t}if(o.walkTokens){let t=this.defaults.walkTokens,a=o.walkTokens;n.walkTokens=function(i){let s=[];return s.push(a.call(this,i)),t&&(s=s.concat(t.call(this,i))),s}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,r){return ue.lex(e,r??this.defaults)}parser(e,r){return ce.parse(e,r??this.defaults)}parseMarkdown(e){return(r,o)=>{let n={...o},t={...this.defaults,...n},a=this.onError(!!t.silent,!!t.async);if(this.defaults.async===!0&&n.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(t.hooks&&(t.hooks.options=t,t.hooks.block=e),t.async)return(async()=>{let i=t.hooks?await t.hooks.preprocess(r):r,s=await(t.hooks?await t.hooks.provideLexer(e):e?ue.lex:ue.lexInline)(i,t),l=t.hooks?await t.hooks.processAllTokens(s):s;t.walkTokens&&await Promise.all(this.walkTokens(l,t.walkTokens));let u=await(t.hooks?await t.hooks.provideParser(e):e?ce.parse:ce.parseInline)(l,t);return t.hooks?await t.hooks.postprocess(u):u})().catch(a);try{t.hooks&&(r=t.hooks.preprocess(r));let i=(t.hooks?t.hooks.provideLexer(e):e?ue.lex:ue.lexInline)(r,t);t.hooks&&(i=t.hooks.processAllTokens(i)),t.walkTokens&&this.walkTokens(i,t.walkTokens);let s=(t.hooks?t.hooks.provideParser(e):e?ce.parse:ce.parseInline)(i,t);return t.hooks&&(s=t.hooks.postprocess(s)),s}catch(i){return a(i)}}}onError(e,r){return o=>{if(o.message+=` -Please report this to https://github.com/markedjs/marked.`,e){let n="

An error occurred:

"+ge(o.message+"",!0)+"
";return r?Promise.resolve(n):n}if(r)return Promise.reject(o);throw o}}},He=new cx;function E(e,r){return He.parse(e,r)}E.options=E.setOptions=function(e){return He.setOptions(e),E.defaults=He.defaults,Ud(E.defaults),E};E.getDefaults=Ca;E.defaults=Ge;E.use=function(...e){return He.use(...e),E.defaults=He.defaults,Ud(E.defaults),E};E.walkTokens=function(e,r){return He.walkTokens(e,r)};E.parseInline=He.parseInline;E.Parser=ce;E.parser=ce.parse;E.Renderer=ro;E.TextRenderer=Na;E.Lexer=ue;E.lexer=ue.lex;E.Tokenizer=to;E.Hooks=Yt;E.parse=E;var D_=E.options,E_=E.setOptions,O_=E.use,A_=E.walkTokens,U_=E.parseInline;var j_=ce.parse,L_=ue.lex;var dx=Object.defineProperty,fx=Object.defineProperties,px=Object.getOwnPropertyDescriptors,Vd=Object.getOwnPropertySymbols,mx=Object.prototype.hasOwnProperty,gx=Object.prototype.propertyIsEnumerable,Wd=(e,r,o)=>r in e?dx(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o,Kd=(e,r)=>{for(var o in r||(r={}))mx.call(r,o)&&Wd(e,o,r[o]);if(Vd)for(var o of Vd(r))gx.call(r,o)&&Wd(e,o,r[o]);return e},Xd=(e,r)=>fx(e,px(r)),J=(e,r)=>{let o=!1,n=!1;for(let t=0;t{let o=e.substring(r,r+3)==="```",n=r>0&&e.substring(r-1,r+2)==="```",t=r>1&&e.substring(r-2,r+1)==="```";return o||n||t},xx=e=>{let r=0;for(let o=0;o{let o=!1,n=!1,t=-1;for(let a=0;a(=?\s*[$]?\d)/gm,bx=e=>!e||typeof e!="string"||!e.includes(">")?e:e.replace(vx,(r,o,n,t)=>J(e,t)?r:`${o}\\>${n}`),yx=/(\*\*)([^*]*\*?)$/,kx=/(__)([^_]*?)$/,$x=/(\*\*\*)([^*]*?)$/,_x=/(\*)([^*]*?)$/,wx=/(_)([^_]*?)$/,Sx=/(`)([^`]*?)$/,zx=/(~~)([^~]*?)$/,Je=/^[\s_~*`]*$/,Qd=/^[\s]*[-*+][\s]+$/,Ix=/[\p{L}\p{N}_]/u,Px=/^```[^`\n]*```?$/,Tx=/^\*{4,}$/,Cx=/(__)([^_]+)_$/,Dx=/(~~)([^~]+)~$/,Hd=/~~/g,Oe=e=>{if(!e)return!1;let r=e.charCodeAt(0);return r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122||r===95?!0:Ix.test(e)};var Ex=(e,r)=>{let o=1;for(let n=r-1;n>=0;n-=1)if(e[n]==="]")o+=1;else if(e[n]==="["&&(o-=1,o===0))return n;return-1},Yd=(e,r)=>{let o=1;for(let n=r+1;n{let o=!1,n=!1;for(let t=0;t{for(let o=r;o{for(let o=r-1;o>=0;o-=1){if(e[o]===")")return!1;if(e[o]==="(")return o>0&&e[o-1]==="]"?Ox(e,r):!1;if(e[o]===` -`)return!1}return!1},Ax=(e,r)=>{for(let o=r-1;o>=0;o-=1){if(e[o]===">")return!1;if(e[o]==="<"){let n=o+1="a"&&n<="z"||n>="A"&&n<="Z"||n==="/"}if(e[o]===` -`)return!1}return!1},Za=(e,r,o)=>{let n=0;for(let l=r-1;l>=0;l-=1)if(e[l]===` +`}strong({tokens:e}){return`${this.parser.parseInline(e)}`}em({tokens:e}){return`${this.parser.parseInline(e)}`}codespan({text:e}){return`${ge(e,!0)}`}br(e){return"
"}del({tokens:e}){return`${this.parser.parseInline(e)}`}link({href:e,title:r,tokens:o}){let n=this.parser.parseInline(o),t=Zd(e);if(t===null)return n;e=t;let a='
",a}image({href:e,title:r,text:o,tokens:n}){n&&(o=this.parser.parseInline(n,this.parser.textRenderer));let t=Zd(e);if(t===null)return ge(o);e=t;let a=`${ge(o)}{let i=t[a].flat(1/0);o=o.concat(this.walkTokens(i,r))}):t.tokens&&(o=o.concat(this.walkTokens(t.tokens,r)))}}return o}use(...e){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(o=>{let n={...o};if(n.async=this.defaults.async||n.async||!1,o.extensions&&(o.extensions.forEach(t=>{if(!t.name)throw new Error("extension name required");if("renderer"in t){let a=r.renderers[t.name];a?r.renderers[t.name]=function(...i){let s=t.renderer.apply(this,i);return s===!1&&(s=a.apply(this,i)),s}:r.renderers[t.name]=t.renderer}if("tokenizer"in t){if(!t.level||t.level!=="block"&&t.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=r[t.level];a?a.unshift(t.tokenizer):r[t.level]=[t.tokenizer],t.start&&(t.level==="block"?r.startBlock?r.startBlock.push(t.start):r.startBlock=[t.start]:t.level==="inline"&&(r.startInline?r.startInline.push(t.start):r.startInline=[t.start]))}"childTokens"in t&&t.childTokens&&(r.childTokens[t.name]=t.childTokens)}),n.extensions=r),o.renderer){let t=this.defaults.renderer||new oo(this.defaults);for(let a in o.renderer){if(!(a in t))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let i=a,s=o.renderer[i],l=t[i];t[i]=(...u)=>{let c=s.apply(t,u);return c===!1&&(c=l.apply(t,u)),c||""}}n.renderer=t}if(o.tokenizer){let t=this.defaults.tokenizer||new ro(this.defaults);for(let a in o.tokenizer){if(!(a in t))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let i=a,s=o.tokenizer[i],l=t[i];t[i]=(...u)=>{let c=s.apply(t,u);return c===!1&&(c=l.apply(t,u)),c}}n.tokenizer=t}if(o.hooks){let t=this.defaults.hooks||new er;for(let a in o.hooks){if(!(a in t))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let i=a,s=o.hooks[i],l=t[i];er.passThroughHooks.has(a)?t[i]=u=>{if(this.defaults.async&&er.passThroughHooksRespectAsync.has(a))return(async()=>{let d=await s.call(t,u);return l.call(t,d)})();let c=s.call(t,u);return l.call(t,c)}:t[i]=(...u)=>{if(this.defaults.async)return(async()=>{let d=await s.apply(t,u);return d===!1&&(d=await l.apply(t,u)),d})();let c=s.apply(t,u);return c===!1&&(c=l.apply(t,u)),c}}n.hooks=t}if(o.walkTokens){let t=this.defaults.walkTokens,a=o.walkTokens;n.walkTokens=function(i){let s=[];return s.push(a.call(this,i)),t&&(s=s.concat(t.call(this,i))),s}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,r){return ue.lex(e,r??this.defaults)}parser(e,r){return ce.parse(e,r??this.defaults)}parseMarkdown(e){return(r,o)=>{let n={...o},t={...this.defaults,...n},a=this.onError(!!t.silent,!!t.async);if(this.defaults.async===!0&&n.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(t.hooks&&(t.hooks.options=t,t.hooks.block=e),t.async)return(async()=>{let i=t.hooks?await t.hooks.preprocess(r):r,s=await(t.hooks?await t.hooks.provideLexer(e):e?ue.lex:ue.lexInline)(i,t),l=t.hooks?await t.hooks.processAllTokens(s):s;t.walkTokens&&await Promise.all(this.walkTokens(l,t.walkTokens));let u=await(t.hooks?await t.hooks.provideParser(e):e?ce.parse:ce.parseInline)(l,t);return t.hooks?await t.hooks.postprocess(u):u})().catch(a);try{t.hooks&&(r=t.hooks.preprocess(r));let i=(t.hooks?t.hooks.provideLexer(e):e?ue.lex:ue.lexInline)(r,t);t.hooks&&(i=t.hooks.processAllTokens(i)),t.walkTokens&&this.walkTokens(i,t.walkTokens);let s=(t.hooks?t.hooks.provideParser(e):e?ce.parse:ce.parseInline)(i,t);return t.hooks&&(s=t.hooks.postprocess(s)),s}catch(i){return a(i)}}}onError(e,r){return o=>{if(o.message+=` +Please report this to https://github.com/markedjs/marked.`,e){let n="

An error occurred:

"+ge(o.message+"",!0)+"
";return r?Promise.resolve(n):n}if(r)return Promise.reject(o);throw o}}},He=new vx;function A(e,r){return He.parse(e,r)}A.options=A.setOptions=function(e){return He.setOptions(e),A.defaults=He.defaults,Vd(A.defaults),A};A.getDefaults=La;A.defaults=Ge;A.use=function(...e){return He.use(...e),A.defaults=He.defaults,Vd(A.defaults),A};A.walkTokens=function(e,r){return He.walkTokens(e,r)};A.parseInline=He.parseInline;A.Parser=ce;A.parser=ce.parse;A.Renderer=oo;A.TextRenderer=Wa;A.Lexer=ue;A.lexer=ue.lex;A.Tokenizer=ro;A.Hooks=er;A.parse=A;var B_=A.options,V_=A.setOptions,q_=A.use,W_=A.walkTokens,H_=A.parseInline;var G_=ce.parse,J_=ue.lex;var bx=Object.defineProperty,yx=Object.defineProperties,kx=Object.getOwnPropertyDescriptors,ef=Object.getOwnPropertySymbols,$x=Object.prototype.hasOwnProperty,_x=Object.prototype.propertyIsEnumerable,tf=(e,r,o)=>r in e?bx(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o,af=(e,r)=>{for(var o in r||(r={}))$x.call(r,o)&&tf(e,o,r[o]);if(ef)for(var o of ef(r))_x.call(r,o)&&tf(e,o,r[o]);return e},sf=(e,r)=>yx(e,kx(r)),J=(e,r)=>{let o=!1,n=!1;for(let t=0;t{let o=e.substring(r,r+3)==="```",n=r>0&&e.substring(r-1,r+2)==="```",t=r>1&&e.substring(r-2,r+1)==="```";return o||n||t},Sx=e=>{let r=0;for(let o=0;o{let o=!1,n=!1,t=-1;for(let a=0;a(=?\s*[$]?\d)/gm,Ix=e=>!e||typeof e!="string"||!e.includes(">")?e:e.replace(zx,(r,o,n,t)=>J(e,t)?r:`${o}\\>${n}`),Tx=/(\*\*)([^*]*\*?)$/,Px=/(__)([^_]*?)$/,Cx=/(\*\*\*)([^*]*?)$/,Dx=/(\*)([^*]*?)$/,Ax=/(_)([^_]*?)$/,Ex=/(`)([^`]*?)$/,Ox=/(~~)([^~]*?)$/,Je=/^[\s_~*`]*$/,lf=/^[\s]*[-*+][\s]+$/,Ux=/[\p{L}\p{N}_]/u,jx=/^```[^`\n]*```?$/,Nx=/^\*{4,}$/,Lx=/(__)([^_]+)_$/,Rx=/(~~)([^~]+)~$/,rf=/~~/g,Ee=e=>{if(!e)return!1;let r=e.charCodeAt(0);return r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122||r===95?!0:Ux.test(e)};var Zx=(e,r)=>{let o=1;for(let n=r-1;n>=0;n-=1)if(e[n]==="]")o+=1;else if(e[n]==="["&&(o-=1,o===0))return n;return-1},uf=(e,r)=>{let o=1;for(let n=r+1;n{let o=!1,n=!1;for(let t=0;t{for(let o=r;o{for(let o=r-1;o>=0;o-=1){if(e[o]===")")return!1;if(e[o]==="(")return o>0&&e[o-1]==="]"?Mx(e,r):!1;if(e[o]===` +`)return!1}return!1},Fx=(e,r)=>{for(let o=r-1;o>=0;o-=1){if(e[o]===">")return!1;if(e[o]==="<"){let n=o+1="a"&&n<="z"||n>="A"&&n<="Z"||n==="/"}if(e[o]===` +`)return!1}return!1},Ga=(e,r,o)=>{let n=0;for(let l=r-1;l>=0;l-=1)if(e[l]===` `){n=l+1;break}let t=e.length;for(let l=r;l=3&&!s},Ux=(e,r,o,n)=>o==="\\"||e.includes("$")&&ao(e,r)?!0:o!=="*"&&n==="*"?(r=3&&!s},Bx=(e,r,o,n)=>o==="\\"||e.includes("$")&&io(e,r)?!0:o!=="*"&&n==="*"?(r{let r=0,o=!1,n=e.length;for(let t=0;t0?e[t-1]:"",i=t!!(o==="\\"||e.includes("$")&&ao(e,r)||ef(e,r)||Ax(e,r)||o==="_"||n==="_"||o&&n&&Oe(o)&&Oe(n)),Lx=e=>{let r=0,o=!1,n=e.length;for(let t=0;t0?e[t-1]:"",i=t{let r=0,o=0,n=!1;for(let t=0;t=3&&(r+=Math.floor(o/3)),o=0,n=!n,t+=2;continue}n||(e[t]==="*"?o+=1:(o>=3&&(r+=Math.floor(o/3)),o=0))}return o>=3&&(r+=Math.floor(o/3)),r},Ma=e=>{let r=0,o=!1;for(let n=0;n{let r=0,o=!1;for(let n=0;n{if(!r||Je.test(r))return!0;let n=e.substring(0,o).lastIndexOf(` -`),t=n===-1?0:n+1,a=e.substring(t,o);return Qd.test(a)&&r.includes(` -`)?!0:Za(e,o,"*")},Zx=e=>{let r=e.match(yx);if(!r)return e;let o=r[2],n=e.lastIndexOf(r[1]);return J(e,n)||Ee(e,n)||Rx(e,o,n)?e:Ma(e)%2===1?o.endsWith("*")?`${e}*`:`${e}**`:e},Mx=(e,r,o)=>{if(!r||Je.test(r))return!0;let n=e.substring(0,o).lastIndexOf(` -`),t=n===-1?0:n+1,a=e.substring(t,o);return Qd.test(a)&&r.includes(` -`)?!0:Za(e,o,"_")},Fx=e=>{let r=e.match(kx);if(!r){let t=e.match(Cx);if(t){let a=e.lastIndexOf(t[1]);if(!(J(e,a)||Ee(e,a))&&Gd(e)%2===1)return`${e}_`}return e}let o=r[2],n=e.lastIndexOf(r[1]);return J(e,n)||Ee(e,n)||Mx(e,o,n)?e:Gd(e)%2===1?`${e}__`:e},Bx=e=>{let r=!1;for(let o=0;o0?e[o-1]:"",t=o{let r=0,o=!1,n=e.length;for(let t=0;t0?e[t-1]:"",i=t!!(o==="\\"||e.includes("$")&&io(e,r)||cf(e,r)||Fx(e,r)||o==="_"||n==="_"||o&&n&&Ee(o)&&Ee(n)),qx=e=>{let r=0,o=!1,n=e.length;for(let t=0;t0?e[t-1]:"",i=t{let r=0,o=0,n=!1;for(let t=0;t=3&&(r+=Math.floor(o/3)),o=0,n=!n,t+=2;continue}n||(e[t]==="*"?o+=1:(o>=3&&(r+=Math.floor(o/3)),o=0))}return o>=3&&(r+=Math.floor(o/3)),r},Ja=e=>{let r=0,o=!1;for(let n=0;n{let r=0,o=!1;for(let n=0;n{if(!r||Je.test(r))return!0;let n=e.substring(0,o).lastIndexOf(` +`),t=n===-1?0:n+1,a=e.substring(t,o);return lf.test(a)&&r.includes(` +`)?!0:Ga(e,o,"*")},Gx=e=>{let r=e.match(Tx);if(!r)return e;let o=r[2],n=e.lastIndexOf(r[1]);return J(e,n)||Ae(e,n)||Hx(e,o,n)?e:Ja(e)%2===1?o.endsWith("*")?`${e}*`:`${e}**`:e},Jx=(e,r,o)=>{if(!r||Je.test(r))return!0;let n=e.substring(0,o).lastIndexOf(` +`),t=n===-1?0:n+1,a=e.substring(t,o);return lf.test(a)&&r.includes(` +`)?!0:Ga(e,o,"_")},Kx=e=>{let r=e.match(Px);if(!r){let t=e.match(Lx);if(t){let a=e.lastIndexOf(t[1]);if(!(J(e,a)||Ae(e,a))&&of(e)%2===1)return`${e}_`}return e}let o=r[2],n=e.lastIndexOf(r[1]);return J(e,n)||Ae(e,n)||Jx(e,o,n)?e:of(e)%2===1?`${e}__`:e},Xx=e=>{let r=!1;for(let o=0;o0?e[o-1]:"",t=o{if(!e.match(_x))return e;let r=Bx(e);if(r===-1||J(e,r)||Ee(e,r))return e;let o=e.substring(r+1);return!o||Je.test(o)?e:tf(e)%2===1?`${e}*`:e},rf=e=>{let r=!1;for(let o=0;o0?e[o-1]:"",t=o{let r=e.length;for(;r>0&&e[r-1]===` -`;)r-=1;if(r{if(!e.endsWith("**"))return null;let r=e.slice(0,-2);if(Ma(r)%2!==1)return null;let o=r.indexOf("**"),n=rf(r);return o!==-1&&n!==-1&&o{if(!e.match(wx))return e;let r=rf(e);if(r===-1)return e;let o=e.substring(r+1);if(!o||Je.test(o)||J(e,r)||Ee(e,r))return e;if(Lx(e)%2===1){let n=Wx(e);return n!==null?n:Vx(e)}return e},Gx=e=>{let r=Ma(e),o=tf(e);return r%2===0&&o%2===0},Jx=(e,r,o)=>!r||Je.test(r)||J(e,o)||Ee(e,o)?!0:Za(e,o,"*"),Kx=e=>{if(Tx.test(e))return e;let r=e.match($x);if(!r)return e;let o=r[2],n=e.lastIndexOf(r[1]);return Jx(e,o,n)?e:Nx(e)%2===1?Gx(e)?e:`${e}***`:e},Xx=/<[a-zA-Z/][^>]*$/,Qx=e=>{let r=e.match(Xx);return!r||r.index===void 0||J(e,r.index)?e:e.substring(0,r.index).trimEnd()},Yx=e=>!e.match(Px)||e.includes(` -`)?null:e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e,ev=e=>(e.match(/```/g)||[]).length%2===1,tv=e=>{let r=Yx(e);if(r!==null)return r;let o=e.match(Sx);if(o&&!ev(e)){let n=o[2];if(!n||Je.test(n))return e;if(xx(e)%2===1)return`${e}\``}return e},of=(e,r)=>r>=2&&e.substring(r-2,r+1)==="```"||r>=1&&e.substring(r-1,r+2)==="```"||r<=e.length-3&&e.substring(r,r+3)==="```",rv=e=>{let r=0,o=!1;for(let n=0;n{let r=0,o=!1;for(let n=0;n{if(e.endsWith("$")&&!e.endsWith("$$"))return`${e}$`;let r=e.indexOf("$$");return r!==-1&&e.indexOf(` +`)||n&&t&&Ee(n)&&Ee(t))continue;return o}}return-1},Yx=e=>{if(!e.match(Dx))return e;let r=Xx(e);if(r===-1||J(e,r)||Ae(e,r))return e;let o=e.substring(r+1);return!o||Je.test(o)?e:df(e)%2===1?`${e}*`:e},ff=e=>{let r=!1;for(let o=0;o0?e[o-1]:"",t=o{let r=e.length;for(;r>0&&e[r-1]===` +`;)r-=1;if(r{if(!e.endsWith("**"))return null;let r=e.slice(0,-2);if(Ja(r)%2!==1)return null;let o=r.indexOf("**"),n=ff(r);return o!==-1&&n!==-1&&o{if(!e.match(Ax))return e;let r=ff(e);if(r===-1)return e;let o=e.substring(r+1);if(!o||Je.test(o)||J(e,r)||Ae(e,r))return e;if(qx(e)%2===1){let n=ev(e);return n!==null?n:Qx(e)}return e},rv=e=>{let r=Ja(e),o=df(e);return r%2===0&&o%2===0},ov=(e,r,o)=>!r||Je.test(r)||J(e,o)||Ae(e,o)?!0:Ga(e,o,"*"),nv=e=>{if(Nx.test(e))return e;let r=e.match(Cx);if(!r)return e;let o=r[2],n=e.lastIndexOf(r[1]);return ov(e,o,n)?e:Wx(e)%2===1?rv(e)?e:`${e}***`:e},av=/<[a-zA-Z/][^>]*$/,iv=e=>{let r=e.match(av);return!r||r.index===void 0||J(e,r.index)?e:e.substring(0,r.index).trimEnd()},sv=e=>!e.match(jx)||e.includes(` +`)?null:e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e,lv=e=>(e.match(/```/g)||[]).length%2===1,uv=e=>{let r=sv(e);if(r!==null)return r;let o=e.match(Ex);if(o&&!lv(e)){let n=o[2];if(!n||Je.test(n))return e;if(Sx(e)%2===1)return`${e}\``}return e},pf=(e,r)=>r>=2&&e.substring(r-2,r+1)==="```"||r>=1&&e.substring(r-1,r+2)==="```"||r<=e.length-3&&e.substring(r,r+3)==="```",cv=e=>{let r=0,o=!1;for(let n=0;n{let r=0,o=!1;for(let n=0;n{if(e.endsWith("$")&&!e.endsWith("$$"))return`${e}$`;let r=e.indexOf("$$");return r!==-1&&e.indexOf(` `,r)!==-1&&!e.endsWith(` `)?`${e} -$$`:`${e}$$`},av=e=>rv(e)%2===0?e:nv(e),iv=e=>ov(e)%2===1?`${e}$`:e,sv=(e,r,o)=>{if(e.substring(r+2).includes(")"))return null;let n=Ex(e,r);if(n===-1||J(e,n))return null;let t=n>0&&e[n-1]==="!",a=t?n-1:n,i=e.substring(0,a);if(t)return i;let s=e.substring(n+1,r);return o==="text-only"?`${i}${s}`:`${i}[${s}](streamdown:incomplete-link)`},Jd=(e,r)=>{for(let o=0;o0&&e[o-1]==="!")continue;let n=Yd(e,o);if(n===-1)return o;if(n+1{let n=r>0&&e[r-1]==="!",t=n?r-1:r;if(!e.substring(r+1).includes("]")){let a=e.substring(0,t);if(n)return a;if(o==="text-only"){let i=Jd(e,r);return e.substring(0,i)+e.substring(i+1)}return`${e}](streamdown:incomplete-link)`}if(Yd(e,r)===-1){let a=e.substring(0,t);if(n)return a;if(o==="text-only"){let i=Jd(e,r);return e.substring(0,i)+e.substring(i+1)}return`${e}](streamdown:incomplete-link)`}return null},nf=(e,r="protocol")=>{let o=e.lastIndexOf("](");if(o!==-1&&!J(e,o)){let n=sv(e,o,r);if(n!==null)return n}for(let n=e.length-1;n>=0;n-=1)if(e[n]==="["&&!J(e,n)){let t=lv(e,n,r);if(t!==null)return t}return e},uv=/^-{1,2}$/,cv=/^[\s]*-{1,2}[\s]+$/,dv=/^={1,2}$/,fv=/^[\s]*={1,2}[\s]+$/,pv=e=>{if(!e||typeof e!="string")return e;let r=e.lastIndexOf(` -`);if(r===-1)return e;let o=e.substring(r+1),n=e.substring(0,r),t=o.trim();if(uv.test(t)&&!o.match(cv)){let a=n.split(` -`).at(-1);if(a&&a.trim().length>0)return`${e}\u200B`}if(dv.test(t)&&!o.match(fv)){let a=n.split(` -`).at(-1);if(a&&a.trim().length>0)return`${e}\u200B`}return e},mv=new RegExp("(?<=[\\p{L}\\p{N}_])~(?!~)(?=[\\p{L}\\p{N}_])","gu"),gv=e=>!e||typeof e!="string"||!e.includes("~")?e:e.replace(mv,(r,o)=>J(e,o)?r:"\\~"),hv=e=>{var r,o;let n=e.match(zx);if(n){let t=n[2];if(!t||Je.test(t))return e;let a=e.lastIndexOf(n[1]);if(J(e,a)||Ee(e,a))return e;if(((r=e.match(Hd))==null?void 0:r.length)%2===1)return`${e}~~`}else{let t=e.match(Dx);if(t){let a=e.lastIndexOf(t[0].slice(0,2));if(J(e,a)||Ee(e,a))return e;if(((o=e.match(Hd))==null?void 0:o.length)%2===1)return`${e}~`}}return e},Ra=e=>e!==!1,xv=e=>e===!0,G={SINGLE_TILDE:0,COMPARISON_OPERATORS:5,HTML_TAGS:10,SETEXT_HEADINGS:15,LINKS:20,BOLD_ITALIC:30,BOLD:35,ITALIC_DOUBLE_UNDERSCORE:40,ITALIC_SINGLE_ASTERISK:41,ITALIC_SINGLE_UNDERSCORE:42,INLINE_CODE:50,STRIKETHROUGH:60,KATEX:70,INLINE_KATEX:75,DEFAULT:100},vv=[{handler:{name:"singleTilde",handle:gv,priority:G.SINGLE_TILDE},optionKey:"singleTilde"},{handler:{name:"comparisonOperators",handle:bx,priority:G.COMPARISON_OPERATORS},optionKey:"comparisonOperators"},{handler:{name:"htmlTags",handle:Qx,priority:G.HTML_TAGS},optionKey:"htmlTags"},{handler:{name:"setextHeadings",handle:pv,priority:G.SETEXT_HEADINGS},optionKey:"setextHeadings"},{handler:{name:"links",handle:nf,priority:G.LINKS},optionKey:"links",earlyReturn:e=>e.endsWith("](streamdown:incomplete-link)")},{handler:{name:"boldItalic",handle:Kx,priority:G.BOLD_ITALIC},optionKey:"boldItalic"},{handler:{name:"bold",handle:Zx,priority:G.BOLD},optionKey:"bold"},{handler:{name:"italicDoubleUnderscore",handle:Fx,priority:G.ITALIC_DOUBLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"italicSingleAsterisk",handle:qx,priority:G.ITALIC_SINGLE_ASTERISK},optionKey:"italic"},{handler:{name:"italicSingleUnderscore",handle:Hx,priority:G.ITALIC_SINGLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"inlineCode",handle:tv,priority:G.INLINE_CODE},optionKey:"inlineCode"},{handler:{name:"strikethrough",handle:hv,priority:G.STRIKETHROUGH},optionKey:"strikethrough"},{handler:{name:"katex",handle:av,priority:G.KATEX},optionKey:"katex"},{handler:{name:"inlineKatex",handle:iv,priority:G.INLINE_KATEX},optionKey:"inlineKatex"}],bv=e=>{var r;let o=(r=e?.linkMode)!=null?r:"protocol";return vv.filter(({handler:n,optionKey:t})=>n.name==="links"?Ra(e?.links)||Ra(e?.images):n.name==="inlineKatex"?xv(e?.inlineKatex):Ra(e?.[t])).map(({handler:n,earlyReturn:t})=>n.name==="links"?{handler:Xd(Kd({},n),{handle:a=>nf(a,o)}),earlyReturn:o==="protocol"?t:void 0}:{handler:n,earlyReturn:t})},yv=(e,r)=>{var o;if(!e||typeof e!="string")return e;let n=e.endsWith(" ")&&!e.endsWith(" ")?e.slice(0,-1):e,t=bv(r),a=((o=r?.handlers)!=null?o:[]).map(s=>{var l;return{handler:Xd(Kd({},s),{priority:(l=s.priority)!=null?l:G.DEFAULT}),earlyReturn:void 0}}),i=[...t,...a].sort((s,l)=>{var u,c;return((u=s.handler.priority)!=null?u:0)-((c=l.handler.priority)!=null?c:0)});for(let{handler:s,earlyReturn:l}of i)if(n=s.handle(n),l!=null&&l(n))return n;return n},af=yv;var Zf=sh(Rf(),1),ub=new Zf.FilterXSS({whiteList:{a:["href","title"],p:[],br:[],hr:[],blockquote:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],ul:[],ol:["start"],li:[],strong:[],em:[],b:[],i:[],del:[],s:[],code:["class"],pre:[],table:[],thead:[],tbody:[],tr:[],th:["align"],td:["align"]},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style","iframe","object"],onTagAttr(e,r,o){if(e==="a"&&r==="href"){let n=o.trim().toLowerCase();if(!n.startsWith("/")&&!n.startsWith("#")&&!n.startsWith("https://")&&!n.startsWith("mailto:"))return""}}});function cb(e){let r=E.parse(e,{async:!1});return ub.process(r)}function Mf(e){return cb(af(e,{inlineKatex:!1,linkMode:"text-only"}))}function Ff(e,r){e.classList.add("markdown-body"),e.innerHTML=Mf(r);for(let o of e.querySelectorAll("a[href]"))o.origin!==window.location.origin&&(o.target="_blank",o.rel="noopener noreferrer")}var Vt={};ke(Vt,{$brand:()=>Ka,$input:()=>xl,$output:()=>hl,NEVER:()=>Ja,TimePrecision:()=>kl,ZodAny:()=>cc,ZodArray:()=>mc,ZodBase64:()=>Bn,ZodBase64URL:()=>qn,ZodBigInt:()=>qt,ZodBigIntFormat:()=>Hn,ZodBoolean:()=>Bt,ZodCIDRv4:()=>Mn,ZodCIDRv6:()=>Fn,ZodCUID:()=>An,ZodCUID2:()=>Un,ZodCatch:()=>jc,ZodCodec:()=>Or,ZodCustom:()=>Ar,ZodCustomStringFormat:()=>Mt,ZodDate:()=>Pr,ZodDefault:()=>Cc,ZodDiscriminatedUnion:()=>hc,ZodE164:()=>Vn,ZodEmail:()=>Dn,ZodEmoji:()=>En,ZodEnum:()=>Rt,ZodError:()=>Mk,ZodExactOptional:()=>Ic,ZodFile:()=>Sc,ZodFirstPartyTypeKind:()=>Jc,ZodFunction:()=>Wc,ZodGUID:()=>_r,ZodIPv4:()=>Rn,ZodIPv6:()=>Zn,ZodISODate:()=>Sn,ZodISODateTime:()=>wn,ZodISODuration:()=>In,ZodISOTime:()=>zn,ZodIntersection:()=>xc,ZodIssueCode:()=>Bk,ZodJWT:()=>Wn,ZodKSUID:()=>Nn,ZodLazy:()=>Bc,ZodLiteral:()=>wc,ZodMAC:()=>oc,ZodMap:()=>$c,ZodNaN:()=>Nc,ZodNanoID:()=>On,ZodNever:()=>fc,ZodNonOptional:()=>Yn,ZodNull:()=>lc,ZodNullable:()=>Tc,ZodNumber:()=>Ft,ZodNumberFormat:()=>nt,ZodObject:()=>Cr,ZodOptional:()=>Qn,ZodPipe:()=>Er,ZodPrefault:()=>Ec,ZodPreprocess:()=>Rc,ZodPromise:()=>Vc,ZodReadonly:()=>Zc,ZodRealError:()=>oe,ZodRecord:()=>Nt,ZodSet:()=>_c,ZodString:()=>Zt,ZodStringFormat:()=>U,ZodSuccess:()=>Uc,ZodSymbol:()=>ic,ZodTemplateLiteral:()=>Fc,ZodTransform:()=>zc,ZodTuple:()=>bc,ZodType:()=>S,ZodULID:()=>jn,ZodURL:()=>Ir,ZodUUID:()=>be,ZodUndefined:()=>sc,ZodUnion:()=>Dr,ZodUnknown:()=>dc,ZodVoid:()=>pc,ZodXID:()=>Ln,ZodXor:()=>gc,_ZodString:()=>Cn,_default:()=>Dc,_function:()=>Cg,any:()=>sg,array:()=>Tr,base64:()=>qm,base64url:()=>Vm,bigint:()=>rg,boolean:()=>ac,catch:()=>Lc,check:()=>Dg,cidrv4:()=>Fm,cidrv6:()=>Bm,clone:()=>K,codec:()=>zg,coerce:()=>Kc,config:()=>R,core:()=>we,cuid:()=>Am,cuid2:()=>Um,custom:()=>Eg,date:()=>ug,decode:()=>Ku,decodeAsync:()=>Qu,describe:()=>Og,discriminatedUnion:()=>gg,e164:()=>Wm,email:()=>wm,emoji:()=>Em,encode:()=>Ju,encodeAsync:()=>Xu,endsWith:()=>Pt,enum:()=>Kn,exactOptional:()=>Pc,file:()=>$g,flattenError:()=>ur,float32:()=>Qm,float64:()=>Ym,formatError:()=>cr,fromJSONSchema:()=>Zg,function:()=>Cg,getErrorMap:()=>Vk,globalRegistry:()=>q,gt:()=>xe,gte:()=>Q,guid:()=>Sm,hash:()=>Xm,hex:()=>Km,hostname:()=>Jm,httpUrl:()=>Dm,includes:()=>zt,instanceof:()=>Ug,int:()=>Pn,int32:()=>eg,int64:()=>og,intersection:()=>vc,invertCodec:()=>Ig,ipv4:()=>Rm,ipv6:()=>Mm,iso:()=>Lt,json:()=>Lg,jwt:()=>Hm,keyof:()=>cg,ksuid:()=>Nm,lazy:()=>qc,length:()=>rt,literal:()=>kg,locales:()=>vr,looseObject:()=>pg,looseRecord:()=>xg,lowercase:()=>wt,lt:()=>he,lte:()=>ae,mac:()=>Zm,map:()=>vg,maxLength:()=>tt,maxSize:()=>Me,meta:()=>Ag,mime:()=>Tt,minLength:()=>_e,minSize:()=>ve,multipleOf:()=>Ze,nan:()=>Sg,nanoid:()=>Om,nativeEnum:()=>yg,negative:()=>mn,never:()=>Gn,nonnegative:()=>hn,nonoptional:()=>Ac,nonpositive:()=>gn,normalize:()=>Ct,null:()=>uc,nullable:()=>Sr,nullish:()=>_g,number:()=>nc,object:()=>dg,optional:()=>wr,overwrite:()=>fe,parse:()=>Vu,parseAsync:()=>Wu,partialRecord:()=>hg,pipe:()=>Tn,positive:()=>pn,prefault:()=>Oc,preprocess:()=>Ng,prettifyError:()=>ui,promise:()=>Tg,property:()=>xn,readonly:()=>Mc,record:()=>kc,refine:()=>Hc,regex:()=>_t,regexes:()=>ne,registry:()=>Vo,safeDecode:()=>ec,safeDecodeAsync:()=>rc,safeEncode:()=>Yu,safeEncodeAsync:()=>tc,safeParse:()=>Hu,safeParseAsync:()=>Gu,set:()=>bg,setErrorMap:()=>qk,size:()=>et,slugify:()=>At,startsWith:()=>It,strictObject:()=>fg,string:()=>$r,stringFormat:()=>Gm,stringbool:()=>jg,success:()=>wg,superRefine:()=>Gc,symbol:()=>ag,templateLiteral:()=>Pg,toJSONSchema:()=>kn,toLowerCase:()=>Et,toUpperCase:()=>Ot,transform:()=>Xn,treeifyError:()=>li,trim:()=>Dt,tuple:()=>yc,uint32:()=>tg,uint64:()=>ng,ulid:()=>jm,undefined:()=>ig,union:()=>Jn,unknown:()=>ot,uppercase:()=>St,url:()=>Cm,util:()=>b,uuid:()=>zm,uuidv4:()=>Im,uuidv6:()=>Pm,uuidv7:()=>Tm,void:()=>lg,xid:()=>Lm,xor:()=>mg});var we={};ke(we,{$ZodAny:()=>Ns,$ZodArray:()=>Bs,$ZodAsyncError:()=>de,$ZodBase64:()=>Ps,$ZodBase64URL:()=>Ts,$ZodBigInt:()=>Lo,$ZodBigIntFormat:()=>As,$ZodBoolean:()=>mr,$ZodCIDRv4:()=>Ss,$ZodCIDRv6:()=>zs,$ZodCUID:()=>ps,$ZodCUID2:()=>ms,$ZodCatch:()=>sl,$ZodCheck:()=>j,$ZodCheckBigIntFormat:()=>Bi,$ZodCheckEndsWith:()=>ts,$ZodCheckGreaterThan:()=>Do,$ZodCheckIncludes:()=>Yi,$ZodCheckLengthEquals:()=>Ji,$ZodCheckLessThan:()=>Co,$ZodCheckLowerCase:()=>Xi,$ZodCheckMaxLength:()=>Hi,$ZodCheckMaxSize:()=>qi,$ZodCheckMimeType:()=>os,$ZodCheckMinLength:()=>Gi,$ZodCheckMinSize:()=>Vi,$ZodCheckMultipleOf:()=>Mi,$ZodCheckNumberFormat:()=>Fi,$ZodCheckOverwrite:()=>ns,$ZodCheckProperty:()=>rs,$ZodCheckRegex:()=>Ki,$ZodCheckSizeEquals:()=>Wi,$ZodCheckStartsWith:()=>es,$ZodCheckStringFormat:()=>kt,$ZodCheckUpperCase:()=>Qi,$ZodCodec:()=>hr,$ZodCustom:()=>gl,$ZodCustomStringFormat:()=>Es,$ZodDate:()=>Fs,$ZodDefault:()=>ol,$ZodDiscriminatedUnion:()=>Ws,$ZodE164:()=>Cs,$ZodEmail:()=>us,$ZodEmoji:()=>ds,$ZodEncodeError:()=>Ue,$ZodEnum:()=>Xs,$ZodError:()=>lr,$ZodExactOptional:()=>tl,$ZodFile:()=>Ys,$ZodFunction:()=>fl,$ZodGUID:()=>ss,$ZodIPv4:()=>$s,$ZodIPv6:()=>_s,$ZodISODate:()=>bs,$ZodISODateTime:()=>vs,$ZodISODuration:()=>ks,$ZodISOTime:()=>ys,$ZodIntersection:()=>Hs,$ZodJWT:()=>Ds,$ZodKSUID:()=>xs,$ZodLazy:()=>ml,$ZodLiteral:()=>Qs,$ZodMAC:()=>ws,$ZodMap:()=>Js,$ZodNaN:()=>ll,$ZodNanoID:()=>fs,$ZodNever:()=>Zs,$ZodNonOptional:()=>al,$ZodNull:()=>Ls,$ZodNullable:()=>rl,$ZodNumber:()=>jo,$ZodNumberFormat:()=>Os,$ZodObject:()=>bp,$ZodObjectJIT:()=>qs,$ZodOptional:()=>Ro,$ZodPipe:()=>Zo,$ZodPrefault:()=>nl,$ZodPreprocess:()=>ul,$ZodPromise:()=>pl,$ZodReadonly:()=>cl,$ZodRealError:()=>re,$ZodRecord:()=>Gs,$ZodRegistry:()=>qo,$ZodSet:()=>Ks,$ZodString:()=>Ye,$ZodStringFormat:()=>A,$ZodSuccess:()=>il,$ZodSymbol:()=>Us,$ZodTemplateLiteral:()=>dl,$ZodTransform:()=>el,$ZodTuple:()=>No,$ZodType:()=>_,$ZodULID:()=>gs,$ZodURL:()=>cs,$ZodUUID:()=>ls,$ZodUndefined:()=>js,$ZodUnion:()=>gr,$ZodUnknown:()=>Rs,$ZodVoid:()=>Ms,$ZodXID:()=>hs,$ZodXor:()=>Vs,$brand:()=>Ka,$constructor:()=>f,$input:()=>xl,$output:()=>hl,Doc:()=>pr,JSONSchema:()=>km,JSONSchemaGenerator:()=>$n,NEVER:()=>Ja,TimePrecision:()=>kl,_any:()=>Fl,_array:()=>Jl,_base64:()=>un,_base64url:()=>cn,_bigint:()=>Ul,_boolean:()=>Ol,_catch:()=>Ok,_check:()=>ym,_cidrv4:()=>sn,_cidrv6:()=>ln,_coercedBigint:()=>jl,_coercedBoolean:()=>Al,_coercedDate:()=>Hl,_coercedNumber:()=>Il,_coercedString:()=>bl,_cuid:()=>Yo,_cuid2:()=>en,_custom:()=>Xl,_date:()=>Wl,_decode:()=>ko,_decodeAsync:()=>_o,_default:()=>Ck,_discriminatedUnion:()=>vk,_e164:()=>dn,_email:()=>Wo,_emoji:()=>Xo,_encode:()=>yo,_encodeAsync:()=>$o,_endsWith:()=>Pt,_enum:()=>wk,_file:()=>Kl,_float32:()=>Tl,_float64:()=>Cl,_gt:()=>xe,_gte:()=>Q,_guid:()=>br,_includes:()=>zt,_int:()=>Pl,_int32:()=>Dl,_int64:()=>Ll,_intersection:()=>bk,_ipv4:()=>nn,_ipv6:()=>an,_isoDate:()=>_l,_isoDateTime:()=>$l,_isoDuration:()=>Sl,_isoTime:()=>wl,_jwt:()=>fn,_ksuid:()=>on,_lazy:()=>Lk,_length:()=>rt,_literal:()=>zk,_lowercase:()=>wt,_lt:()=>he,_lte:()=>ae,_mac:()=>yl,_map:()=>$k,_max:()=>ae,_maxLength:()=>tt,_maxSize:()=>Me,_mime:()=>Tt,_min:()=>Q,_minLength:()=>_e,_minSize:()=>ve,_multipleOf:()=>Ze,_nan:()=>Gl,_nanoid:()=>Qo,_nativeEnum:()=>Sk,_negative:()=>mn,_never:()=>ql,_nonnegative:()=>hn,_nonoptional:()=>Dk,_nonpositive:()=>gn,_normalize:()=>Ct,_null:()=>Ml,_nullable:()=>Tk,_number:()=>zl,_optional:()=>Pk,_overwrite:()=>fe,_parse:()=>xt,_parseAsync:()=>vt,_pipe:()=>Ak,_positive:()=>pn,_promise:()=>Nk,_property:()=>xn,_readonly:()=>Uk,_record:()=>kk,_refine:()=>Ql,_regex:()=>_t,_safeDecode:()=>So,_safeDecodeAsync:()=>Io,_safeEncode:()=>wo,_safeEncodeAsync:()=>zo,_safeParse:()=>bt,_safeParseAsync:()=>yt,_set:()=>_k,_size:()=>et,_slugify:()=>At,_startsWith:()=>It,_string:()=>vl,_stringFormat:()=>Ut,_stringbool:()=>ru,_success:()=>Ek,_superRefine:()=>Yl,_symbol:()=>Rl,_templateLiteral:()=>jk,_toLowerCase:()=>Et,_toUpperCase:()=>Ot,_transform:()=>Ik,_trim:()=>Dt,_tuple:()=>yk,_uint32:()=>El,_uint64:()=>Nl,_ulid:()=>tn,_undefined:()=>Zl,_union:()=>hk,_unknown:()=>Bl,_uppercase:()=>St,_url:()=>yr,_uuid:()=>Ho,_uuidv4:()=>Go,_uuidv6:()=>Jo,_uuidv7:()=>Ko,_void:()=>Vl,_xid:()=>rn,_xor:()=>xk,clone:()=>K,config:()=>R,createStandardJSONSchemaMethod:()=>jt,createToJSONSchemaMethod:()=>ou,decode:()=>Nb,decodeAsync:()=>Zb,describe:()=>eu,encode:()=>Lb,encodeAsync:()=>Rb,extractDefs:()=>Be,finalize:()=>qe,flattenError:()=>ur,formatError:()=>cr,globalConfig:()=>Ke,globalRegistry:()=>q,initializeContext:()=>Fe,isValidBase64:()=>Is,isValidBase64URL:()=>gp,isValidJWT:()=>hp,locales:()=>vr,meta:()=>tu,parse:()=>vo,parseAsync:()=>bo,prettifyError:()=>ui,process:()=>O,regexes:()=>ne,registry:()=>Vo,safeDecode:()=>Fb,safeDecodeAsync:()=>qb,safeEncode:()=>Mb,safeEncodeAsync:()=>Bb,safeParse:()=>ci,safeParseAsync:()=>di,toDotPath:()=>Gf,toJSONSchema:()=>kn,treeifyError:()=>li,util:()=>b,version:()=>as});var Bf,Ja=Object.freeze({status:"aborted"});function f(e,r,o){function n(s,l){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:l,constr:i,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),r(s,l);let u=i.prototype,c=Object.keys(u);for(let d=0;do?.Parent&&s instanceof o.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(i,"name",{value:e}),i}var Ka=Symbol("zod_brand"),de=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Ue=class extends Error{constructor(r){super(`Encountered unidirectional transform during encode: ${r}`),this.name="ZodEncodeError"}};(Bf=globalThis).__zod_globalConfig??(Bf.__zod_globalConfig={});var Ke=globalThis.__zod_globalConfig;function R(e){return e&&Object.assign(Ke,e),Ke}var b={};ke(b,{BIGINT_FORMAT_RANGES:()=>ii,Class:()=>Qa,NUMBER_FORMAT_RANGES:()=>ai,aborted:()=>Re,allowsEval:()=>ti,assert:()=>gb,assertEqual:()=>db,assertIs:()=>pb,assertNever:()=>mb,assertNotEqual:()=>fb,assignProp:()=>Le,base64ToUint8Array:()=>Vf,base64urlToUint8Array:()=>Eb,cached:()=>gt,captureStackTrace:()=>xo,cleanEnum:()=>Db,cleanRegex:()=>nr,clone:()=>K,cloneDef:()=>xb,createTransparentProxy:()=>_b,defineLazy:()=>z,esc:()=>ho,escapeRegex:()=>se,explicitlyAborted:()=>si,extend:()=>zb,finalizeIssue:()=>X,floatSafeRemainder:()=>Ya,getElementAtPath:()=>vb,getEnumValues:()=>or,getLengthableOrigin:()=>sr,getParsedType:()=>$b,getSizableOrigin:()=>ir,hexToUint8Array:()=>Ab,isObject:()=>Xe,isPlainObject:()=>Ne,issue:()=>ht,joinValues:()=>m,jsonStringifyReplacer:()=>mt,merge:()=>Pb,mergeDefs:()=>$e,normalizeParams:()=>k,nullish:()=>je,numKeys:()=>kb,objectClone:()=>hb,omit:()=>Sb,optionalKeys:()=>ni,parsedType:()=>v,partial:()=>Tb,pick:()=>wb,prefixIssues:()=>te,primitiveTypes:()=>oi,promiseAllObject:()=>bb,propertyKeyTypes:()=>ar,randomString:()=>yb,required:()=>Cb,safeExtend:()=>Ib,shallowClone:()=>ri,slugify:()=>ei,stringifyPrimitive:()=>x,uint8ArrayToBase64:()=>Wf,uint8ArrayToBase64url:()=>Ob,uint8ArrayToHex:()=>Ub,unwrapMessage:()=>rr});function db(e){return e}function fb(e){return e}function pb(e){}function mb(e){throw new Error("Unexpected value in exhaustive check")}function gb(e){}function or(e){let r=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,t])=>r.indexOf(+n)===-1).map(([n,t])=>t)}function m(e,r="|"){return e.map(o=>x(o)).join(r)}function mt(e,r){return typeof r=="bigint"?r.toString():r}function gt(e){return{get value(){{let o=e();return Object.defineProperty(this,"value",{value:o}),o}throw new Error("cached value already set")}}}function je(e){return e==null}function nr(e){let r=e.startsWith("^")?1:0,o=e.endsWith("$")?e.length-1:e.length;return e.slice(r,o)}function Ya(e,r){let o=e/r,n=Math.round(o),t=Number.EPSILON*Math.max(Math.abs(o),1);return Math.abs(o-n)o?.[n],e):e}function bb(e){let r=Object.keys(e),o=r.map(n=>e[n]);return Promise.all(o).then(n=>{let t={};for(let a=0;a{};function Xe(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var ti=gt(()=>{if(Ke.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Ne(e){if(Xe(e)===!1)return!1;let r=e.constructor;if(r===void 0||typeof r!="function")return!0;let o=r.prototype;return!(Xe(o)===!1||Object.prototype.hasOwnProperty.call(o,"isPrototypeOf")===!1)}function ri(e){return Ne(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function kb(e){let r=0;for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&r++;return r}var $b=e=>{let r=typeof e;switch(r){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${r}`)}},ar=new Set(["string","number","symbol"]),oi=new Set(["string","number","bigint","boolean","symbol","undefined"]);function se(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function K(e,r,o){let n=new e._zod.constr(r??e._zod.def);return(!r||o?.parent)&&(n._zod.parent=e),n}function k(e){let r=e;if(!r)return{};if(typeof r=="string")return{error:()=>r};if(r?.message!==void 0){if(r?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");r.error=r.message}return delete r.message,typeof r.error=="string"?{...r,error:()=>r.error}:r}function _b(e){let r;return new Proxy({},{get(o,n,t){return r??(r=e()),Reflect.get(r,n,t)},set(o,n,t,a){return r??(r=e()),Reflect.set(r,n,t,a)},has(o,n){return r??(r=e()),Reflect.has(r,n)},deleteProperty(o,n){return r??(r=e()),Reflect.deleteProperty(r,n)},ownKeys(o){return r??(r=e()),Reflect.ownKeys(r)},getOwnPropertyDescriptor(o,n){return r??(r=e()),Reflect.getOwnPropertyDescriptor(r,n)},defineProperty(o,n,t){return r??(r=e()),Reflect.defineProperty(r,n,t)}})}function x(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function ni(e){return Object.keys(e).filter(r=>e[r]._zod.optin==="optional"&&e[r]._zod.optout==="optional")}var ai={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},ii={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function wb(e,r){let o=e._zod.def,n=o.checks;if(n&&n.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let a=$e(e._zod.def,{get shape(){let i={};for(let s in r){if(!(s in o.shape))throw new Error(`Unrecognized key: "${s}"`);r[s]&&(i[s]=o.shape[s])}return Le(this,"shape",i),i},checks:[]});return K(e,a)}function Sb(e,r){let o=e._zod.def,n=o.checks;if(n&&n.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let a=$e(e._zod.def,{get shape(){let i={...e._zod.def.shape};for(let s in r){if(!(s in o.shape))throw new Error(`Unrecognized key: "${s}"`);r[s]&&delete i[s]}return Le(this,"shape",i),i},checks:[]});return K(e,a)}function zb(e,r){if(!Ne(r))throw new Error("Invalid input to extend: expected a plain object");let o=e._zod.def.checks;if(o&&o.length>0){let a=e._zod.def.shape;for(let i in r)if(Object.getOwnPropertyDescriptor(a,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let t=$e(e._zod.def,{get shape(){let a={...e._zod.def.shape,...r};return Le(this,"shape",a),a}});return K(e,t)}function Ib(e,r){if(!Ne(r))throw new Error("Invalid input to safeExtend: expected a plain object");let o=$e(e._zod.def,{get shape(){let n={...e._zod.def.shape,...r};return Le(this,"shape",n),n}});return K(e,o)}function Pb(e,r){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let o=$e(e._zod.def,{get shape(){let n={...e._zod.def.shape,...r._zod.def.shape};return Le(this,"shape",n),n},get catchall(){return r._zod.def.catchall},checks:r._zod.def.checks??[]});return K(e,o)}function Tb(e,r,o){let t=r._zod.def.checks;if(t&&t.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let i=$e(r._zod.def,{get shape(){let s=r._zod.def.shape,l={...s};if(o)for(let u in o){if(!(u in s))throw new Error(`Unrecognized key: "${u}"`);o[u]&&(l[u]=e?new e({type:"optional",innerType:s[u]}):s[u])}else for(let u in s)l[u]=e?new e({type:"optional",innerType:s[u]}):s[u];return Le(this,"shape",l),l},checks:[]});return K(r,i)}function Cb(e,r,o){let n=$e(r._zod.def,{get shape(){let t=r._zod.def.shape,a={...t};if(o)for(let i in o){if(!(i in a))throw new Error(`Unrecognized key: "${i}"`);o[i]&&(a[i]=new e({type:"nonoptional",innerType:t[i]}))}else for(let i in t)a[i]=new e({type:"nonoptional",innerType:t[i]});return Le(this,"shape",a),a}});return K(r,n)}function Re(e,r=0){if(e.aborted===!0)return!0;for(let o=r;o{var n;return(n=o).path??(n.path=[]),o.path.unshift(e),o})}function rr(e){return typeof e=="string"?e:e?.message}function X(e,r,o){let n=e.message?e.message:rr(e.inst?._zod.def?.error?.(e))??rr(r?.error?.(e))??rr(o.customError?.(e))??rr(o.localeError?.(e))??"Invalid input",{inst:t,continue:a,input:i,...s}=e;return s.path??(s.path=[]),s.message=n,r?.reportInput&&(s.input=i),s}function ir(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function sr(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function v(e){let r=typeof e;switch(r){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let o=e;if(o&&Object.getPrototypeOf(o)!==Object.prototype&&"constructor"in o&&o.constructor)return o.constructor.name}}return r}function ht(...e){let[r,o,n]=e;return typeof r=="string"?{message:r,code:"custom",input:o,inst:n}:{...r}}function Db(e){return Object.entries(e).filter(([r,o])=>Number.isNaN(Number.parseInt(r,10))).map(r=>r[1])}function Vf(e){let r=atob(e),o=new Uint8Array(r.length);for(let n=0;nr.toString(16).padStart(2,"0")).join("")}var Qa=class{constructor(...r){}};var Hf=(e,r)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:r,enumerable:!1}),e.message=JSON.stringify(r,mt,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},lr=f("$ZodError",Hf),re=f("$ZodError",Hf,{Parent:Error});function ur(e,r=o=>o.message){let o={},n=[];for(let t of e.issues)t.path.length>0?(o[t.path[0]]=o[t.path[0]]||[],o[t.path[0]].push(r(t))):n.push(r(t));return{formErrors:n,fieldErrors:o}}function cr(e,r=o=>o.message){let o={_errors:[]},n=(t,a=[])=>{for(let i of t.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(s=>n({issues:s},[...a,...i.path]));else if(i.code==="invalid_key")n({issues:i.issues},[...a,...i.path]);else if(i.code==="invalid_element")n({issues:i.issues},[...a,...i.path]);else{let s=[...a,...i.path];if(s.length===0)o._errors.push(r(i));else{let l=o,u=0;for(;uo.message){let o={errors:[]},n=(t,a=[])=>{var i,s;for(let l of t.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(u=>n({issues:u},[...a,...l.path]));else if(l.code==="invalid_key")n({issues:l.issues},[...a,...l.path]);else if(l.code==="invalid_element")n({issues:l.issues},[...a,...l.path]);else{let u=[...a,...l.path];if(u.length===0){o.errors.push(r(l));continue}let c=o,d=0;for(;dtypeof n=="object"?n.key:n);for(let n of o)typeof n=="number"?r.push(`[${n}]`):typeof n=="symbol"?r.push(`[${JSON.stringify(String(n))}]`):/[^\w$]/.test(n)?r.push(`[${JSON.stringify(n)}]`):(r.length&&r.push("."),r.push(n));return r.join("")}function ui(e){let r=[],o=[...e.issues].sort((n,t)=>(n.path??[]).length-(t.path??[]).length);for(let n of o)r.push(`\u2716 ${n.message}`),n.path?.length&&r.push(` \u2192 at ${Gf(n.path)}`);return r.join(` -`)}var xt=e=>(r,o,n,t)=>{let a=n?{...n,async:!1}:{async:!1},i=r._zod.run({value:o,issues:[]},a);if(i instanceof Promise)throw new de;if(i.issues.length){let s=new(t?.Err??e)(i.issues.map(l=>X(l,a,R())));throw xo(s,t?.callee),s}return i.value},vo=xt(re),vt=e=>async(r,o,n,t)=>{let a=n?{...n,async:!0}:{async:!0},i=r._zod.run({value:o,issues:[]},a);if(i instanceof Promise&&(i=await i),i.issues.length){let s=new(t?.Err??e)(i.issues.map(l=>X(l,a,R())));throw xo(s,t?.callee),s}return i.value},bo=vt(re),bt=e=>(r,o,n)=>{let t=n?{...n,async:!1}:{async:!1},a=r._zod.run({value:o,issues:[]},t);if(a instanceof Promise)throw new de;return a.issues.length?{success:!1,error:new(e??lr)(a.issues.map(i=>X(i,t,R())))}:{success:!0,data:a.value}},ci=bt(re),yt=e=>async(r,o,n)=>{let t=n?{...n,async:!0}:{async:!0},a=r._zod.run({value:o,issues:[]},t);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(i=>X(i,t,R())))}:{success:!0,data:a.value}},di=yt(re),yo=e=>(r,o,n)=>{let t=n?{...n,direction:"backward"}:{direction:"backward"};return xt(e)(r,o,t)},Lb=yo(re),ko=e=>(r,o,n)=>xt(e)(r,o,n),Nb=ko(re),$o=e=>async(r,o,n)=>{let t=n?{...n,direction:"backward"}:{direction:"backward"};return vt(e)(r,o,t)},Rb=$o(re),_o=e=>async(r,o,n)=>vt(e)(r,o,n),Zb=_o(re),wo=e=>(r,o,n)=>{let t=n?{...n,direction:"backward"}:{direction:"backward"};return bt(e)(r,o,t)},Mb=wo(re),So=e=>(r,o,n)=>bt(e)(r,o,n),Fb=So(re),zo=e=>async(r,o,n)=>{let t=n?{...n,direction:"backward"}:{direction:"backward"};return yt(e)(r,o,t)},Bb=zo(re),Io=e=>async(r,o,n)=>yt(e)(r,o,n),qb=Io(re);var ne={};ke(ne,{base64:()=>Ii,base64url:()=>Po,bigint:()=>Ai,boolean:()=>ji,browserEmail:()=>Qb,cidrv4:()=>Si,cidrv6:()=>zi,cuid:()=>fi,cuid2:()=>pi,date:()=>Ci,datetime:()=>Ei,domain:()=>ty,duration:()=>vi,e164:()=>Ti,email:()=>yi,emoji:()=>ki,extendedDuration:()=>Vb,guid:()=>bi,hex:()=>ry,hostname:()=>ey,html5Email:()=>Jb,httpProtocol:()=>Pi,idnEmail:()=>Xb,integer:()=>Ui,ipv4:()=>$i,ipv6:()=>_i,ksuid:()=>hi,lowercase:()=>Ri,mac:()=>wi,md5_base64:()=>ny,md5_base64url:()=>ay,md5_hex:()=>oy,nanoid:()=>xi,null:()=>Li,number:()=>To,rfc5322Email:()=>Kb,sha1_base64:()=>sy,sha1_base64url:()=>ly,sha1_hex:()=>iy,sha256_base64:()=>cy,sha256_base64url:()=>dy,sha256_hex:()=>uy,sha384_base64:()=>py,sha384_base64url:()=>my,sha384_hex:()=>fy,sha512_base64:()=>hy,sha512_base64url:()=>xy,sha512_hex:()=>gy,string:()=>Oi,time:()=>Di,ulid:()=>mi,undefined:()=>Ni,unicodeEmail:()=>Jf,uppercase:()=>Zi,uuid:()=>Qe,uuid4:()=>Wb,uuid6:()=>Hb,uuid7:()=>Gb,xid:()=>gi});var fi=/^[cC][0-9a-z]{6,}$/,pi=/^[0-9a-z]+$/,mi=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,gi=/^[0-9a-vA-V]{20}$/,hi=/^[A-Za-z0-9]{27}$/,xi=/^[a-zA-Z0-9_-]{21}$/,vi=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Vb=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,bi=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Qe=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Wb=Qe(4),Hb=Qe(6),Gb=Qe(7),yi=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Jb=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Kb=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Jf=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Xb=Jf,Qb=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Yb="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function ki(){return new RegExp(Yb,"u")}var $i=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,_i=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,wi=e=>{let r=se(e??":");return new RegExp(`^(?:[0-9A-F]{2}${r}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${r}){5}[0-9a-f]{2}$`)},Si=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,zi=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Ii=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Po=/^[A-Za-z0-9_-]*$/,ey=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,ty=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Pi=/^https?$/,Ti=/^\+[1-9]\d{6,14}$/,Kf="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Ci=new RegExp(`^${Kf}$`);function Xf(e){let r="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${r}`:e.precision===0?`${r}:[0-5]\\d`:`${r}:[0-5]\\d\\.\\d{${e.precision}}`:`${r}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Di(e){return new RegExp(`^${Xf(e)}$`)}function Ei(e){let r=Xf({precision:e.precision}),o=["Z"];e.local&&o.push(""),e.offset&&o.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${r}(?:${o.join("|")})`;return new RegExp(`^${Kf}T(?:${n})$`)}var Oi=e=>{let r=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)},Ai=/^-?\d+n?$/,Ui=/^-?\d+$/,To=/^-?\d+(?:\.\d+)?$/,ji=/^(?:true|false)$/i,Li=/^null$/i;var Ni=/^undefined$/i;var Ri=/^[^A-Z]*$/,Zi=/^[^a-z]*$/,ry=/^[0-9a-fA-F]*$/;function dr(e,r){return new RegExp(`^[A-Za-z0-9+/]{${e}}${r}$`)}function fr(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var oy=/^[0-9a-fA-F]{32}$/,ny=dr(22,"=="),ay=fr(22),iy=/^[0-9a-fA-F]{40}$/,sy=dr(27,"="),ly=fr(27),uy=/^[0-9a-fA-F]{64}$/,cy=dr(43,"="),dy=fr(43),fy=/^[0-9a-fA-F]{96}$/,py=dr(64,""),my=fr(64),gy=/^[0-9a-fA-F]{128}$/,hy=dr(86,"=="),xy=fr(86);var j=f("$ZodCheck",(e,r)=>{var o;e._zod??(e._zod={}),e._zod.def=r,(o=e._zod).onattach??(o.onattach=[])}),Yf={number:"number",bigint:"bigint",object:"date"},Co=f("$ZodCheckLessThan",(e,r)=>{j.init(e,r);let o=Yf[typeof r.value];e._zod.onattach.push(n=>{let t=n._zod.bag,a=(r.inclusive?t.maximum:t.exclusiveMaximum)??Number.POSITIVE_INFINITY;r.value{(r.inclusive?n.value<=r.value:n.value{j.init(e,r);let o=Yf[typeof r.value];e._zod.onattach.push(n=>{let t=n._zod.bag,a=(r.inclusive?t.minimum:t.exclusiveMinimum)??Number.NEGATIVE_INFINITY;r.value>a&&(r.inclusive?t.minimum=r.value:t.exclusiveMinimum=r.value)}),e._zod.check=n=>{(r.inclusive?n.value>=r.value:n.value>r.value)||n.issues.push({origin:o,code:"too_small",minimum:typeof r.value=="object"?r.value.getTime():r.value,input:n.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),Mi=f("$ZodCheckMultipleOf",(e,r)=>{j.init(e,r),e._zod.onattach.push(o=>{var n;(n=o._zod.bag).multipleOf??(n.multipleOf=r.value)}),e._zod.check=o=>{if(typeof o.value!=typeof r.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof o.value=="bigint"?o.value%r.value===BigInt(0):Ya(o.value,r.value)===0)||o.issues.push({origin:typeof o.value,code:"not_multiple_of",divisor:r.value,input:o.value,inst:e,continue:!r.abort})}}),Fi=f("$ZodCheckNumberFormat",(e,r)=>{j.init(e,r),r.format=r.format||"float64";let o=r.format?.includes("int"),n=o?"int":"number",[t,a]=ai[r.format];e._zod.onattach.push(i=>{let s=i._zod.bag;s.format=r.format,s.minimum=t,s.maximum=a,o&&(s.pattern=Ui)}),e._zod.check=i=>{let s=i.value;if(o){if(!Number.isInteger(s)){i.issues.push({expected:n,format:r.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?i.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!r.abort}):i.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!r.abort});return}}sa&&i.issues.push({origin:"number",input:s,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!r.abort})}}),Bi=f("$ZodCheckBigIntFormat",(e,r)=>{j.init(e,r);let[o,n]=ii[r.format];e._zod.onattach.push(t=>{let a=t._zod.bag;a.format=r.format,a.minimum=o,a.maximum=n}),e._zod.check=t=>{let a=t.value;an&&t.issues.push({origin:"bigint",input:a,code:"too_big",maximum:n,inclusive:!0,inst:e,continue:!r.abort})}}),qi=f("$ZodCheckMaxSize",(e,r)=>{var o;j.init(e,r),(o=e._zod.def).when??(o.when=n=>{let t=n.value;return!je(t)&&t.size!==void 0}),e._zod.onattach.push(n=>{let t=n._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum{let t=n.value;t.size<=r.maximum||n.issues.push({origin:ir(t),code:"too_big",maximum:r.maximum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),Vi=f("$ZodCheckMinSize",(e,r)=>{var o;j.init(e,r),(o=e._zod.def).when??(o.when=n=>{let t=n.value;return!je(t)&&t.size!==void 0}),e._zod.onattach.push(n=>{let t=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>t&&(n._zod.bag.minimum=r.minimum)}),e._zod.check=n=>{let t=n.value;t.size>=r.minimum||n.issues.push({origin:ir(t),code:"too_small",minimum:r.minimum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),Wi=f("$ZodCheckSizeEquals",(e,r)=>{var o;j.init(e,r),(o=e._zod.def).when??(o.when=n=>{let t=n.value;return!je(t)&&t.size!==void 0}),e._zod.onattach.push(n=>{let t=n._zod.bag;t.minimum=r.size,t.maximum=r.size,t.size=r.size}),e._zod.check=n=>{let t=n.value,a=t.size;if(a===r.size)return;let i=a>r.size;n.issues.push({origin:ir(t),...i?{code:"too_big",maximum:r.size}:{code:"too_small",minimum:r.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!r.abort})}}),Hi=f("$ZodCheckMaxLength",(e,r)=>{var o;j.init(e,r),(o=e._zod.def).when??(o.when=n=>{let t=n.value;return!je(t)&&t.length!==void 0}),e._zod.onattach.push(n=>{let t=n._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum{let t=n.value;if(t.length<=r.maximum)return;let i=sr(t);n.issues.push({origin:i,code:"too_big",maximum:r.maximum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),Gi=f("$ZodCheckMinLength",(e,r)=>{var o;j.init(e,r),(o=e._zod.def).when??(o.when=n=>{let t=n.value;return!je(t)&&t.length!==void 0}),e._zod.onattach.push(n=>{let t=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>t&&(n._zod.bag.minimum=r.minimum)}),e._zod.check=n=>{let t=n.value;if(t.length>=r.minimum)return;let i=sr(t);n.issues.push({origin:i,code:"too_small",minimum:r.minimum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),Ji=f("$ZodCheckLengthEquals",(e,r)=>{var o;j.init(e,r),(o=e._zod.def).when??(o.when=n=>{let t=n.value;return!je(t)&&t.length!==void 0}),e._zod.onattach.push(n=>{let t=n._zod.bag;t.minimum=r.length,t.maximum=r.length,t.length=r.length}),e._zod.check=n=>{let t=n.value,a=t.length;if(a===r.length)return;let i=sr(t),s=a>r.length;n.issues.push({origin:i,...s?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!r.abort})}}),kt=f("$ZodCheckStringFormat",(e,r)=>{var o,n;j.init(e,r),e._zod.onattach.push(t=>{let a=t._zod.bag;a.format=r.format,r.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(r.pattern))}),r.pattern?(o=e._zod).check??(o.check=t=>{r.pattern.lastIndex=0,!r.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:r.format,input:t.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:e,continue:!r.abort})}):(n=e._zod).check??(n.check=()=>{})}),Ki=f("$ZodCheckRegex",(e,r)=>{kt.init(e,r),e._zod.check=o=>{r.pattern.lastIndex=0,!r.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:"regex",input:o.value,pattern:r.pattern.toString(),inst:e,continue:!r.abort})}}),Xi=f("$ZodCheckLowerCase",(e,r)=>{r.pattern??(r.pattern=Ri),kt.init(e,r)}),Qi=f("$ZodCheckUpperCase",(e,r)=>{r.pattern??(r.pattern=Zi),kt.init(e,r)}),Yi=f("$ZodCheckIncludes",(e,r)=>{j.init(e,r);let o=se(r.includes),n=new RegExp(typeof r.position=="number"?`^.{${r.position}}${o}`:o);r.pattern=n,e._zod.onattach.push(t=>{let a=t._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),e._zod.check=t=>{t.value.includes(r.includes,r.position)||t.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:t.value,inst:e,continue:!r.abort})}}),es=f("$ZodCheckStartsWith",(e,r)=>{j.init(e,r);let o=new RegExp(`^${se(r.prefix)}.*`);r.pattern??(r.pattern=o),e._zod.onattach.push(n=>{let t=n._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(o)}),e._zod.check=n=>{n.value.startsWith(r.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:n.value,inst:e,continue:!r.abort})}}),ts=f("$ZodCheckEndsWith",(e,r)=>{j.init(e,r);let o=new RegExp(`.*${se(r.suffix)}$`);r.pattern??(r.pattern=o),e._zod.onattach.push(n=>{let t=n._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(o)}),e._zod.check=n=>{n.value.endsWith(r.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:n.value,inst:e,continue:!r.abort})}});function Qf(e,r,o){e.issues.length&&r.issues.push(...te(o,e.issues))}var rs=f("$ZodCheckProperty",(e,r)=>{j.init(e,r),e._zod.check=o=>{let n=r.schema._zod.run({value:o.value[r.property],issues:[]},{});if(n instanceof Promise)return n.then(t=>Qf(t,o,r.property));Qf(n,o,r.property)}}),os=f("$ZodCheckMimeType",(e,r)=>{j.init(e,r);let o=new Set(r.mime);e._zod.onattach.push(n=>{n._zod.bag.mime=r.mime}),e._zod.check=n=>{o.has(n.value.type)||n.issues.push({code:"invalid_value",values:r.mime,input:n.value.type,inst:e,continue:!r.abort})}}),ns=f("$ZodCheckOverwrite",(e,r)=>{j.init(e,r),e._zod.check=o=>{o.value=r.tx(o.value)}});var pr=class{constructor(r=[]){this.content=[],this.indent=0,this&&(this.args=r)}indented(r){this.indent+=1,r(this),this.indent-=1}write(r){if(typeof r=="function"){r(this,{execution:"sync"}),r(this,{execution:"async"});return}let n=r.split(` +$$`:`${e}$$`},pv=e=>cv(e)%2===0?e:fv(e),mv=e=>dv(e)%2===1?`${e}$`:e,gv=(e,r,o)=>{if(e.substring(r+2).includes(")"))return null;let n=Zx(e,r);if(n===-1||J(e,n))return null;let t=n>0&&e[n-1]==="!",a=t?n-1:n,i=e.substring(0,a);if(t)return i;let s=e.substring(n+1,r);return o==="text-only"?`${i}${s}`:`${i}[${s}](streamdown:incomplete-link)`},nf=(e,r)=>{for(let o=0;o0&&e[o-1]==="!")continue;let n=uf(e,o);if(n===-1)return o;if(n+1{let n=r>0&&e[r-1]==="!",t=n?r-1:r;if(!e.substring(r+1).includes("]")){let a=e.substring(0,t);if(n)return a;if(o==="text-only"){let i=nf(e,r);return e.substring(0,i)+e.substring(i+1)}return`${e}](streamdown:incomplete-link)`}if(uf(e,r)===-1){let a=e.substring(0,t);if(n)return a;if(o==="text-only"){let i=nf(e,r);return e.substring(0,i)+e.substring(i+1)}return`${e}](streamdown:incomplete-link)`}return null},mf=(e,r="protocol")=>{let o=e.lastIndexOf("](");if(o!==-1&&!J(e,o)){let n=gv(e,o,r);if(n!==null)return n}for(let n=e.length-1;n>=0;n-=1)if(e[n]==="["&&!J(e,n)){let t=hv(e,n,r);if(t!==null)return t}return e},xv=/^-{1,2}$/,vv=/^[\s]*-{1,2}[\s]+$/,bv=/^={1,2}$/,yv=/^[\s]*={1,2}[\s]+$/,kv=e=>{if(!e||typeof e!="string")return e;let r=e.lastIndexOf(` +`);if(r===-1)return e;let o=e.substring(r+1),n=e.substring(0,r),t=o.trim();if(xv.test(t)&&!o.match(vv)){let a=n.split(` +`).at(-1);if(a&&a.trim().length>0)return`${e}\u200B`}if(bv.test(t)&&!o.match(yv)){let a=n.split(` +`).at(-1);if(a&&a.trim().length>0)return`${e}\u200B`}return e},$v=new RegExp("(?<=[\\p{L}\\p{N}_])~(?!~)(?=[\\p{L}\\p{N}_])","gu"),_v=e=>!e||typeof e!="string"||!e.includes("~")?e:e.replace($v,(r,o)=>J(e,o)?r:"\\~"),wv=e=>{var r,o;let n=e.match(Ox);if(n){let t=n[2];if(!t||Je.test(t))return e;let a=e.lastIndexOf(n[1]);if(J(e,a)||Ae(e,a))return e;if(((r=e.match(rf))==null?void 0:r.length)%2===1)return`${e}~~`}else{let t=e.match(Rx);if(t){let a=e.lastIndexOf(t[0].slice(0,2));if(J(e,a)||Ae(e,a))return e;if(((o=e.match(rf))==null?void 0:o.length)%2===1)return`${e}~`}}return e},Ha=e=>e!==!1,Sv=e=>e===!0,G={SINGLE_TILDE:0,COMPARISON_OPERATORS:5,HTML_TAGS:10,SETEXT_HEADINGS:15,LINKS:20,BOLD_ITALIC:30,BOLD:35,ITALIC_DOUBLE_UNDERSCORE:40,ITALIC_SINGLE_ASTERISK:41,ITALIC_SINGLE_UNDERSCORE:42,INLINE_CODE:50,STRIKETHROUGH:60,KATEX:70,INLINE_KATEX:75,DEFAULT:100},zv=[{handler:{name:"singleTilde",handle:_v,priority:G.SINGLE_TILDE},optionKey:"singleTilde"},{handler:{name:"comparisonOperators",handle:Ix,priority:G.COMPARISON_OPERATORS},optionKey:"comparisonOperators"},{handler:{name:"htmlTags",handle:iv,priority:G.HTML_TAGS},optionKey:"htmlTags"},{handler:{name:"setextHeadings",handle:kv,priority:G.SETEXT_HEADINGS},optionKey:"setextHeadings"},{handler:{name:"links",handle:mf,priority:G.LINKS},optionKey:"links",earlyReturn:e=>e.endsWith("](streamdown:incomplete-link)")},{handler:{name:"boldItalic",handle:nv,priority:G.BOLD_ITALIC},optionKey:"boldItalic"},{handler:{name:"bold",handle:Gx,priority:G.BOLD},optionKey:"bold"},{handler:{name:"italicDoubleUnderscore",handle:Kx,priority:G.ITALIC_DOUBLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"italicSingleAsterisk",handle:Yx,priority:G.ITALIC_SINGLE_ASTERISK},optionKey:"italic"},{handler:{name:"italicSingleUnderscore",handle:tv,priority:G.ITALIC_SINGLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"inlineCode",handle:uv,priority:G.INLINE_CODE},optionKey:"inlineCode"},{handler:{name:"strikethrough",handle:wv,priority:G.STRIKETHROUGH},optionKey:"strikethrough"},{handler:{name:"katex",handle:pv,priority:G.KATEX},optionKey:"katex"},{handler:{name:"inlineKatex",handle:mv,priority:G.INLINE_KATEX},optionKey:"inlineKatex"}],Iv=e=>{var r;let o=(r=e?.linkMode)!=null?r:"protocol";return zv.filter(({handler:n,optionKey:t})=>n.name==="links"?Ha(e?.links)||Ha(e?.images):n.name==="inlineKatex"?Sv(e?.inlineKatex):Ha(e?.[t])).map(({handler:n,earlyReturn:t})=>n.name==="links"?{handler:sf(af({},n),{handle:a=>mf(a,o)}),earlyReturn:o==="protocol"?t:void 0}:{handler:n,earlyReturn:t})},Tv=(e,r)=>{var o;if(!e||typeof e!="string")return e;let n=e.endsWith(" ")&&!e.endsWith(" ")?e.slice(0,-1):e,t=Iv(r),a=((o=r?.handlers)!=null?o:[]).map(s=>{var l;return{handler:sf(af({},s),{priority:(l=s.priority)!=null?l:G.DEFAULT}),earlyReturn:void 0}}),i=[...t,...a].sort((s,l)=>{var u,c;return((u=s.handler.priority)!=null?u:0)-((c=l.handler.priority)!=null?c:0)});for(let{handler:s,earlyReturn:l}of i)if(n=s.handle(n),l!=null&&l(n))return n;return n},gf=Tv;var Jf=hh(Gf(),1),xb=new Jf.FilterXSS({whiteList:{a:["href","title"],p:[],br:[],hr:[],blockquote:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],ul:[],ol:["start"],li:[],strong:[],em:[],b:[],i:[],del:[],s:[],code:["class"],pre:[],table:[],thead:[],tbody:[],tr:[],th:["align"],td:["align"]},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style","iframe","object"],onTagAttr(e,r,o){if(e==="a"&&r==="href"){let n=o.trim().toLowerCase();if(!n.startsWith("/")&&!n.startsWith("#")&&!n.startsWith("https://")&&!n.startsWith("mailto:"))return""}}});function vb(e){let r=A.parse(e,{async:!1});return xb.process(r)}function Kf(e){return vb(gf(e,{inlineKatex:!1,linkMode:"text-only"}))}function Xf(e,r){e.classList.add("markdown-body"),e.innerHTML=Kf(r);for(let o of e.querySelectorAll("a[href]"))o.origin!==window.location.origin&&(o.target="_blank",o.rel="noopener noreferrer")}var qt={};$e(qt,{$brand:()=>ni,$input:()=>Sl,$output:()=>wl,NEVER:()=>oi,TimePrecision:()=>Pl,ZodAny:()=>vc,ZodArray:()=>$c,ZodBase64:()=>Vn,ZodBase64URL:()=>qn,ZodBigInt:()=>Vt,ZodBigIntFormat:()=>Gn,ZodBoolean:()=>Bt,ZodCIDRv4:()=>Fn,ZodCIDRv6:()=>Bn,ZodCUID:()=>Un,ZodCUID2:()=>jn,ZodCatch:()=>Vc,ZodCodec:()=>Or,ZodCustom:()=>Ur,ZodCustomStringFormat:()=>Mt,ZodDate:()=>Pr,ZodDefault:()=>Lc,ZodDiscriminatedUnion:()=>wc,ZodE164:()=>Wn,ZodEmail:()=>An,ZodEmoji:()=>En,ZodEnum:()=>Rt,ZodError:()=>Jk,ZodExactOptional:()=>Uc,ZodFile:()=>Ec,ZodFirstPartyTypeKind:()=>od,ZodFunction:()=>ed,ZodGUID:()=>wr,ZodIPv4:()=>Zn,ZodIPv6:()=>Mn,ZodISODate:()=>zn,ZodISODateTime:()=>Sn,ZodISODuration:()=>Tn,ZodISOTime:()=>In,ZodIntersection:()=>Sc,ZodIssueCode:()=>Xk,ZodJWT:()=>Hn,ZodKSUID:()=>Rn,ZodLazy:()=>Xc,ZodLiteral:()=>Ac,ZodMAC:()=>dc,ZodMap:()=>Cc,ZodNaN:()=>Wc,ZodNanoID:()=>On,ZodNever:()=>yc,ZodNonOptional:()=>ea,ZodNull:()=>hc,ZodNullable:()=>Nc,ZodNumber:()=>Ft,ZodNumberFormat:()=>nt,ZodObject:()=>Dr,ZodOptional:()=>Qn,ZodPipe:()=>Er,ZodPrefault:()=>Zc,ZodPreprocess:()=>Hc,ZodPromise:()=>Qc,ZodReadonly:()=>Gc,ZodRealError:()=>oe,ZodRecord:()=>Lt,ZodSet:()=>Dc,ZodString:()=>Zt,ZodStringFormat:()=>U,ZodSuccess:()=>Bc,ZodSymbol:()=>mc,ZodTemplateLiteral:()=>Kc,ZodTransform:()=>Oc,ZodTuple:()=>Ic,ZodType:()=>z,ZodULID:()=>Nn,ZodURL:()=>Tr,ZodUUID:()=>be,ZodUndefined:()=>gc,ZodUnion:()=>Ar,ZodUnknown:()=>bc,ZodVoid:()=>kc,ZodXID:()=>Ln,ZodXor:()=>_c,_ZodString:()=>Dn,_default:()=>Rc,_function:()=>Rg,any:()=>hg,array:()=>Cr,base64:()=>Qm,base64url:()=>eg,bigint:()=>dg,boolean:()=>pc,catch:()=>qc,check:()=>Zg,cidrv4:()=>Xm,cidrv6:()=>Ym,clone:()=>K,codec:()=>Ug,coerce:()=>nd,config:()=>Z,core:()=>Se,cuid:()=>Bm,cuid2:()=>Vm,custom:()=>Mg,date:()=>vg,decode:()=>nc,decodeAsync:()=>ic,describe:()=>Fg,discriminatedUnion:()=>wg,e164:()=>tg,email:()=>Em,emoji:()=>Mm,encode:()=>oc,encodeAsync:()=>ac,endsWith:()=>Tt,enum:()=>Xn,exactOptional:()=>jc,file:()=>Dg,flattenError:()=>cr,float32:()=>sg,float64:()=>lg,formatError:()=>dr,fromJSONSchema:()=>Jg,function:()=>Rg,getErrorMap:()=>Qk,globalRegistry:()=>q,gt:()=>xe,gte:()=>Y,guid:()=>Om,hash:()=>ig,hex:()=>ag,hostname:()=>ng,httpUrl:()=>Zm,includes:()=>zt,instanceof:()=>Vg,int:()=>Pn,int32:()=>ug,int64:()=>fg,intersection:()=>zc,invertCodec:()=>jg,ipv4:()=>Gm,ipv6:()=>Km,iso:()=>Nt,json:()=>Wg,jwt:()=>rg,keyof:()=>bg,ksuid:()=>Hm,lazy:()=>Yc,length:()=>rt,literal:()=>Cg,locales:()=>br,looseObject:()=>$g,looseRecord:()=>zg,lowercase:()=>wt,lt:()=>he,lte:()=>ae,mac:()=>Jm,map:()=>Ig,maxLength:()=>tt,maxSize:()=>Me,meta:()=>Bg,mime:()=>Pt,minLength:()=>we,minSize:()=>ve,multipleOf:()=>Ze,nan:()=>Og,nanoid:()=>Fm,nativeEnum:()=>Pg,negative:()=>gn,never:()=>Jn,nonnegative:()=>xn,nonoptional:()=>Fc,nonpositive:()=>hn,normalize:()=>Ct,null:()=>xc,nullable:()=>zr,nullish:()=>Ag,number:()=>fc,object:()=>yg,optional:()=>Sr,overwrite:()=>fe,parse:()=>Qu,parseAsync:()=>ec,partialRecord:()=>Sg,pipe:()=>Cn,positive:()=>mn,prefault:()=>Mc,preprocess:()=>Hg,prettifyError:()=>xi,promise:()=>Lg,property:()=>vn,readonly:()=>Jc,record:()=>Pc,refine:()=>td,regex:()=>_t,regexes:()=>ne,registry:()=>Wo,safeDecode:()=>lc,safeDecodeAsync:()=>cc,safeEncode:()=>sc,safeEncodeAsync:()=>uc,safeParse:()=>tc,safeParseAsync:()=>rc,set:()=>Tg,setErrorMap:()=>Yk,size:()=>et,slugify:()=>Ot,startsWith:()=>It,strictObject:()=>kg,string:()=>_r,stringFormat:()=>og,stringbool:()=>qg,success:()=>Eg,superRefine:()=>rd,symbol:()=>mg,templateLiteral:()=>Ng,toJSONSchema:()=>$n,toLowerCase:()=>At,toUpperCase:()=>Et,transform:()=>Yn,treeifyError:()=>hi,trim:()=>Dt,tuple:()=>Tc,uint32:()=>cg,uint64:()=>pg,ulid:()=>qm,undefined:()=>gg,union:()=>Kn,unknown:()=>ot,uppercase:()=>St,url:()=>Rm,util:()=>b,uuid:()=>Um,uuidv4:()=>jm,uuidv6:()=>Nm,uuidv7:()=>Lm,void:()=>xg,xid:()=>Wm,xor:()=>_g});var Se={};$e(Se,{$ZodAny:()=>Ws,$ZodArray:()=>Xs,$ZodAsyncError:()=>de,$ZodBase64:()=>js,$ZodBase64URL:()=>Ns,$ZodBigInt:()=>Lo,$ZodBigIntFormat:()=>Fs,$ZodBoolean:()=>gr,$ZodCIDRv4:()=>Es,$ZodCIDRv6:()=>Os,$ZodCUID:()=>ks,$ZodCUID2:()=>$s,$ZodCatch:()=>gl,$ZodCheck:()=>j,$ZodCheckBigIntFormat:()=>Xi,$ZodCheckEndsWith:()=>us,$ZodCheckGreaterThan:()=>Ao,$ZodCheckIncludes:()=>ss,$ZodCheckLengthEquals:()=>os,$ZodCheckLessThan:()=>Do,$ZodCheckLowerCase:()=>as,$ZodCheckMaxLength:()=>ts,$ZodCheckMaxSize:()=>Yi,$ZodCheckMimeType:()=>ds,$ZodCheckMinLength:()=>rs,$ZodCheckMinSize:()=>Qi,$ZodCheckMultipleOf:()=>Ji,$ZodCheckNumberFormat:()=>Ki,$ZodCheckOverwrite:()=>fs,$ZodCheckProperty:()=>cs,$ZodCheckRegex:()=>ns,$ZodCheckSizeEquals:()=>es,$ZodCheckStartsWith:()=>ls,$ZodCheckStringFormat:()=>kt,$ZodCheckUpperCase:()=>is,$ZodCodec:()=>xr,$ZodCustom:()=>_l,$ZodCustomStringFormat:()=>Zs,$ZodDate:()=>Ks,$ZodDefault:()=>dl,$ZodDiscriminatedUnion:()=>el,$ZodE164:()=>Ls,$ZodEmail:()=>xs,$ZodEmoji:()=>bs,$ZodEncodeError:()=>Ue,$ZodEnum:()=>al,$ZodError:()=>ur,$ZodExactOptional:()=>ul,$ZodFile:()=>sl,$ZodFunction:()=>yl,$ZodGUID:()=>gs,$ZodIPv4:()=>Cs,$ZodIPv6:()=>Ds,$ZodISODate:()=>Is,$ZodISODateTime:()=>zs,$ZodISODuration:()=>Ps,$ZodISOTime:()=>Ts,$ZodIntersection:()=>tl,$ZodJWT:()=>Rs,$ZodKSUID:()=>Ss,$ZodLazy:()=>$l,$ZodLiteral:()=>il,$ZodMAC:()=>As,$ZodMap:()=>ol,$ZodNaN:()=>hl,$ZodNanoID:()=>ys,$ZodNever:()=>Gs,$ZodNonOptional:()=>pl,$ZodNull:()=>qs,$ZodNullable:()=>cl,$ZodNumber:()=>No,$ZodNumberFormat:()=>Ms,$ZodObject:()=>Tp,$ZodObjectJIT:()=>Ys,$ZodOptional:()=>Zo,$ZodPipe:()=>Mo,$ZodPrefault:()=>fl,$ZodPreprocess:()=>xl,$ZodPromise:()=>kl,$ZodReadonly:()=>vl,$ZodRealError:()=>re,$ZodRecord:()=>rl,$ZodRegistry:()=>qo,$ZodSet:()=>nl,$ZodString:()=>Qe,$ZodStringFormat:()=>O,$ZodSuccess:()=>ml,$ZodSymbol:()=>Bs,$ZodTemplateLiteral:()=>bl,$ZodTransform:()=>ll,$ZodTuple:()=>Ro,$ZodType:()=>_,$ZodULID:()=>_s,$ZodURL:()=>vs,$ZodUUID:()=>hs,$ZodUndefined:()=>Vs,$ZodUnion:()=>hr,$ZodUnknown:()=>Hs,$ZodVoid:()=>Js,$ZodXID:()=>ws,$ZodXor:()=>Qs,$brand:()=>ni,$constructor:()=>f,$input:()=>Sl,$output:()=>wl,Doc:()=>mr,JSONSchema:()=>Cm,JSONSchemaGenerator:()=>_n,NEVER:()=>oi,TimePrecision:()=>Pl,_any:()=>Kl,_array:()=>ou,_base64:()=>cn,_base64url:()=>dn,_bigint:()=>Bl,_boolean:()=>Ml,_catch:()=>Mk,_check:()=>Pm,_cidrv4:()=>ln,_cidrv6:()=>un,_coercedBigint:()=>Vl,_coercedBoolean:()=>Fl,_coercedDate:()=>tu,_coercedNumber:()=>Ul,_coercedString:()=>Il,_cuid:()=>en,_cuid2:()=>tn,_custom:()=>au,_date:()=>eu,_decode:()=>$o,_decodeAsync:()=>wo,_default:()=>Lk,_discriminatedUnion:()=>zk,_e164:()=>fn,_email:()=>Ho,_emoji:()=>Yo,_encode:()=>ko,_encodeAsync:()=>_o,_endsWith:()=>Tt,_enum:()=>Ak,_file:()=>nu,_float32:()=>Nl,_float64:()=>Ll,_gt:()=>xe,_gte:()=>Y,_guid:()=>yr,_includes:()=>zt,_int:()=>jl,_int32:()=>Rl,_int64:()=>ql,_intersection:()=>Ik,_ipv4:()=>an,_ipv6:()=>sn,_isoDate:()=>Dl,_isoDateTime:()=>Cl,_isoDuration:()=>El,_isoTime:()=>Al,_jwt:()=>pn,_ksuid:()=>nn,_lazy:()=>qk,_length:()=>rt,_literal:()=>Ok,_lowercase:()=>wt,_lt:()=>he,_lte:()=>ae,_mac:()=>Tl,_map:()=>Ck,_max:()=>ae,_maxLength:()=>tt,_maxSize:()=>Me,_mime:()=>Pt,_min:()=>Y,_minLength:()=>we,_minSize:()=>ve,_multipleOf:()=>Ze,_nan:()=>ru,_nanoid:()=>Qo,_nativeEnum:()=>Ek,_negative:()=>gn,_never:()=>Yl,_nonnegative:()=>xn,_nonoptional:()=>Rk,_nonpositive:()=>hn,_normalize:()=>Ct,_null:()=>Jl,_nullable:()=>Nk,_number:()=>Ol,_optional:()=>jk,_overwrite:()=>fe,_parse:()=>xt,_parseAsync:()=>vt,_pipe:()=>Fk,_positive:()=>mn,_promise:()=>Wk,_property:()=>vn,_readonly:()=>Bk,_record:()=>Pk,_refine:()=>iu,_regex:()=>_t,_safeDecode:()=>zo,_safeDecodeAsync:()=>To,_safeEncode:()=>So,_safeEncodeAsync:()=>Io,_safeParse:()=>bt,_safeParseAsync:()=>yt,_set:()=>Dk,_size:()=>et,_slugify:()=>Ot,_startsWith:()=>It,_string:()=>zl,_stringFormat:()=>Ut,_stringbool:()=>cu,_success:()=>Zk,_superRefine:()=>su,_symbol:()=>Hl,_templateLiteral:()=>Vk,_toLowerCase:()=>At,_toUpperCase:()=>Et,_transform:()=>Uk,_trim:()=>Dt,_tuple:()=>Tk,_uint32:()=>Zl,_uint64:()=>Wl,_ulid:()=>rn,_undefined:()=>Gl,_union:()=>wk,_unknown:()=>Xl,_uppercase:()=>St,_url:()=>kr,_uuid:()=>Go,_uuidv4:()=>Jo,_uuidv6:()=>Ko,_uuidv7:()=>Xo,_void:()=>Ql,_xid:()=>on,_xor:()=>Sk,clone:()=>K,config:()=>Z,createStandardJSONSchemaMethod:()=>jt,createToJSONSchemaMethod:()=>du,decode:()=>Wb,decodeAsync:()=>Gb,describe:()=>lu,encode:()=>qb,encodeAsync:()=>Hb,extractDefs:()=>Be,finalize:()=>Ve,flattenError:()=>cr,formatError:()=>dr,globalConfig:()=>Ke,globalRegistry:()=>q,initializeContext:()=>Fe,isValidBase64:()=>Us,isValidBase64URL:()=>wp,isValidJWT:()=>Sp,locales:()=>br,meta:()=>uu,parse:()=>bo,parseAsync:()=>yo,prettifyError:()=>xi,process:()=>E,regexes:()=>ne,registry:()=>Wo,safeDecode:()=>Kb,safeDecodeAsync:()=>Yb,safeEncode:()=>Jb,safeEncodeAsync:()=>Xb,safeParse:()=>vi,safeParseAsync:()=>bi,toDotPath:()=>op,toJSONSchema:()=>$n,treeifyError:()=>hi,util:()=>b,version:()=>ps});var Yf,oi=Object.freeze({status:"aborted"});function f(e,r,o){function n(s,l){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:l,constr:i,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),r(s,l);let u=i.prototype,c=Object.keys(u);for(let d=0;do?.Parent&&s instanceof o.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(i,"name",{value:e}),i}var ni=Symbol("zod_brand"),de=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Ue=class extends Error{constructor(r){super(`Encountered unidirectional transform during encode: ${r}`),this.name="ZodEncodeError"}};(Yf=globalThis).__zod_globalConfig??(Yf.__zod_globalConfig={});var Ke=globalThis.__zod_globalConfig;function Z(e){return e&&Object.assign(Ke,e),Ke}var b={};$e(b,{BIGINT_FORMAT_RANGES:()=>mi,Class:()=>ii,NUMBER_FORMAT_RANGES:()=>pi,aborted:()=>Re,allowsEval:()=>ui,assert:()=>_b,assertEqual:()=>bb,assertIs:()=>kb,assertNever:()=>$b,assertNotEqual:()=>yb,assignProp:()=>Ne,base64ToUint8Array:()=>ep,base64urlToUint8Array:()=>Zb,cached:()=>gt,captureStackTrace:()=>vo,cleanEnum:()=>Rb,cleanRegex:()=>ar,clone:()=>K,cloneDef:()=>Sb,createTransparentProxy:()=>Db,defineLazy:()=>I,esc:()=>xo,escapeRegex:()=>le,explicitlyAborted:()=>gi,extend:()=>Ob,finalizeIssue:()=>X,floatSafeRemainder:()=>si,getElementAtPath:()=>zb,getEnumValues:()=>nr,getLengthableOrigin:()=>lr,getParsedType:()=>Cb,getSizableOrigin:()=>sr,hexToUint8Array:()=>Fb,isObject:()=>Xe,isPlainObject:()=>Le,issue:()=>ht,joinValues:()=>m,jsonStringifyReplacer:()=>mt,merge:()=>jb,mergeDefs:()=>_e,normalizeParams:()=>k,nullish:()=>je,numKeys:()=>Pb,objectClone:()=>wb,omit:()=>Eb,optionalKeys:()=>fi,parsedType:()=>v,partial:()=>Nb,pick:()=>Ab,prefixIssues:()=>te,primitiveTypes:()=>di,promiseAllObject:()=>Ib,propertyKeyTypes:()=>ir,randomString:()=>Tb,required:()=>Lb,safeExtend:()=>Ub,shallowClone:()=>ci,slugify:()=>li,stringifyPrimitive:()=>x,uint8ArrayToBase64:()=>tp,uint8ArrayToBase64url:()=>Mb,uint8ArrayToHex:()=>Bb,unwrapMessage:()=>or});function bb(e){return e}function yb(e){return e}function kb(e){}function $b(e){throw new Error("Unexpected value in exhaustive check")}function _b(e){}function nr(e){let r=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,t])=>r.indexOf(+n)===-1).map(([n,t])=>t)}function m(e,r="|"){return e.map(o=>x(o)).join(r)}function mt(e,r){return typeof r=="bigint"?r.toString():r}function gt(e){return{get value(){{let o=e();return Object.defineProperty(this,"value",{value:o}),o}throw new Error("cached value already set")}}}function je(e){return e==null}function ar(e){let r=e.startsWith("^")?1:0,o=e.endsWith("$")?e.length-1:e.length;return e.slice(r,o)}function si(e,r){let o=e/r,n=Math.round(o),t=Number.EPSILON*Math.max(Math.abs(o),1);return Math.abs(o-n)o?.[n],e):e}function Ib(e){let r=Object.keys(e),o=r.map(n=>e[n]);return Promise.all(o).then(n=>{let t={};for(let a=0;a{};function Xe(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var ui=gt(()=>{if(Ke.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Le(e){if(Xe(e)===!1)return!1;let r=e.constructor;if(r===void 0||typeof r!="function")return!0;let o=r.prototype;return!(Xe(o)===!1||Object.prototype.hasOwnProperty.call(o,"isPrototypeOf")===!1)}function ci(e){return Le(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function Pb(e){let r=0;for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&r++;return r}var Cb=e=>{let r=typeof e;switch(r){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${r}`)}},ir=new Set(["string","number","symbol"]),di=new Set(["string","number","bigint","boolean","symbol","undefined"]);function le(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function K(e,r,o){let n=new e._zod.constr(r??e._zod.def);return(!r||o?.parent)&&(n._zod.parent=e),n}function k(e){let r=e;if(!r)return{};if(typeof r=="string")return{error:()=>r};if(r?.message!==void 0){if(r?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");r.error=r.message}return delete r.message,typeof r.error=="string"?{...r,error:()=>r.error}:r}function Db(e){let r;return new Proxy({},{get(o,n,t){return r??(r=e()),Reflect.get(r,n,t)},set(o,n,t,a){return r??(r=e()),Reflect.set(r,n,t,a)},has(o,n){return r??(r=e()),Reflect.has(r,n)},deleteProperty(o,n){return r??(r=e()),Reflect.deleteProperty(r,n)},ownKeys(o){return r??(r=e()),Reflect.ownKeys(r)},getOwnPropertyDescriptor(o,n){return r??(r=e()),Reflect.getOwnPropertyDescriptor(r,n)},defineProperty(o,n,t){return r??(r=e()),Reflect.defineProperty(r,n,t)}})}function x(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function fi(e){return Object.keys(e).filter(r=>e[r]._zod.optin==="optional"&&e[r]._zod.optout==="optional")}var pi={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},mi={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Ab(e,r){let o=e._zod.def,n=o.checks;if(n&&n.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let a=_e(e._zod.def,{get shape(){let i={};for(let s in r){if(!(s in o.shape))throw new Error(`Unrecognized key: "${s}"`);r[s]&&(i[s]=o.shape[s])}return Ne(this,"shape",i),i},checks:[]});return K(e,a)}function Eb(e,r){let o=e._zod.def,n=o.checks;if(n&&n.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let a=_e(e._zod.def,{get shape(){let i={...e._zod.def.shape};for(let s in r){if(!(s in o.shape))throw new Error(`Unrecognized key: "${s}"`);r[s]&&delete i[s]}return Ne(this,"shape",i),i},checks:[]});return K(e,a)}function Ob(e,r){if(!Le(r))throw new Error("Invalid input to extend: expected a plain object");let o=e._zod.def.checks;if(o&&o.length>0){let a=e._zod.def.shape;for(let i in r)if(Object.getOwnPropertyDescriptor(a,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let t=_e(e._zod.def,{get shape(){let a={...e._zod.def.shape,...r};return Ne(this,"shape",a),a}});return K(e,t)}function Ub(e,r){if(!Le(r))throw new Error("Invalid input to safeExtend: expected a plain object");let o=_e(e._zod.def,{get shape(){let n={...e._zod.def.shape,...r};return Ne(this,"shape",n),n}});return K(e,o)}function jb(e,r){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let o=_e(e._zod.def,{get shape(){let n={...e._zod.def.shape,...r._zod.def.shape};return Ne(this,"shape",n),n},get catchall(){return r._zod.def.catchall},checks:r._zod.def.checks??[]});return K(e,o)}function Nb(e,r,o){let t=r._zod.def.checks;if(t&&t.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let i=_e(r._zod.def,{get shape(){let s=r._zod.def.shape,l={...s};if(o)for(let u in o){if(!(u in s))throw new Error(`Unrecognized key: "${u}"`);o[u]&&(l[u]=e?new e({type:"optional",innerType:s[u]}):s[u])}else for(let u in s)l[u]=e?new e({type:"optional",innerType:s[u]}):s[u];return Ne(this,"shape",l),l},checks:[]});return K(r,i)}function Lb(e,r,o){let n=_e(r._zod.def,{get shape(){let t=r._zod.def.shape,a={...t};if(o)for(let i in o){if(!(i in a))throw new Error(`Unrecognized key: "${i}"`);o[i]&&(a[i]=new e({type:"nonoptional",innerType:t[i]}))}else for(let i in t)a[i]=new e({type:"nonoptional",innerType:t[i]});return Ne(this,"shape",a),a}});return K(r,n)}function Re(e,r=0){if(e.aborted===!0)return!0;for(let o=r;o{var n;return(n=o).path??(n.path=[]),o.path.unshift(e),o})}function or(e){return typeof e=="string"?e:e?.message}function X(e,r,o){let n=e.message?e.message:or(e.inst?._zod.def?.error?.(e))??or(r?.error?.(e))??or(o.customError?.(e))??or(o.localeError?.(e))??"Invalid input",{inst:t,continue:a,input:i,...s}=e;return s.path??(s.path=[]),s.message=n,r?.reportInput&&(s.input=i),s}function sr(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function lr(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function v(e){let r=typeof e;switch(r){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let o=e;if(o&&Object.getPrototypeOf(o)!==Object.prototype&&"constructor"in o&&o.constructor)return o.constructor.name}}return r}function ht(...e){let[r,o,n]=e;return typeof r=="string"?{message:r,code:"custom",input:o,inst:n}:{...r}}function Rb(e){return Object.entries(e).filter(([r,o])=>Number.isNaN(Number.parseInt(r,10))).map(r=>r[1])}function ep(e){let r=atob(e),o=new Uint8Array(r.length);for(let n=0;nr.toString(16).padStart(2,"0")).join("")}var ii=class{constructor(...r){}};var rp=(e,r)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:r,enumerable:!1}),e.message=JSON.stringify(r,mt,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},ur=f("$ZodError",rp),re=f("$ZodError",rp,{Parent:Error});function cr(e,r=o=>o.message){let o={},n=[];for(let t of e.issues)t.path.length>0?(o[t.path[0]]=o[t.path[0]]||[],o[t.path[0]].push(r(t))):n.push(r(t));return{formErrors:n,fieldErrors:o}}function dr(e,r=o=>o.message){let o={_errors:[]},n=(t,a=[])=>{for(let i of t.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(s=>n({issues:s},[...a,...i.path]));else if(i.code==="invalid_key")n({issues:i.issues},[...a,...i.path]);else if(i.code==="invalid_element")n({issues:i.issues},[...a,...i.path]);else{let s=[...a,...i.path];if(s.length===0)o._errors.push(r(i));else{let l=o,u=0;for(;uo.message){let o={errors:[]},n=(t,a=[])=>{var i,s;for(let l of t.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(u=>n({issues:u},[...a,...l.path]));else if(l.code==="invalid_key")n({issues:l.issues},[...a,...l.path]);else if(l.code==="invalid_element")n({issues:l.issues},[...a,...l.path]);else{let u=[...a,...l.path];if(u.length===0){o.errors.push(r(l));continue}let c=o,d=0;for(;dtypeof n=="object"?n.key:n);for(let n of o)typeof n=="number"?r.push(`[${n}]`):typeof n=="symbol"?r.push(`[${JSON.stringify(String(n))}]`):/[^\w$]/.test(n)?r.push(`[${JSON.stringify(n)}]`):(r.length&&r.push("."),r.push(n));return r.join("")}function xi(e){let r=[],o=[...e.issues].sort((n,t)=>(n.path??[]).length-(t.path??[]).length);for(let n of o)r.push(`\u2716 ${n.message}`),n.path?.length&&r.push(` \u2192 at ${op(n.path)}`);return r.join(` +`)}var xt=e=>(r,o,n,t)=>{let a=n?{...n,async:!1}:{async:!1},i=r._zod.run({value:o,issues:[]},a);if(i instanceof Promise)throw new de;if(i.issues.length){let s=new(t?.Err??e)(i.issues.map(l=>X(l,a,Z())));throw vo(s,t?.callee),s}return i.value},bo=xt(re),vt=e=>async(r,o,n,t)=>{let a=n?{...n,async:!0}:{async:!0},i=r._zod.run({value:o,issues:[]},a);if(i instanceof Promise&&(i=await i),i.issues.length){let s=new(t?.Err??e)(i.issues.map(l=>X(l,a,Z())));throw vo(s,t?.callee),s}return i.value},yo=vt(re),bt=e=>(r,o,n)=>{let t=n?{...n,async:!1}:{async:!1},a=r._zod.run({value:o,issues:[]},t);if(a instanceof Promise)throw new de;return a.issues.length?{success:!1,error:new(e??ur)(a.issues.map(i=>X(i,t,Z())))}:{success:!0,data:a.value}},vi=bt(re),yt=e=>async(r,o,n)=>{let t=n?{...n,async:!0}:{async:!0},a=r._zod.run({value:o,issues:[]},t);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(i=>X(i,t,Z())))}:{success:!0,data:a.value}},bi=yt(re),ko=e=>(r,o,n)=>{let t=n?{...n,direction:"backward"}:{direction:"backward"};return xt(e)(r,o,t)},qb=ko(re),$o=e=>(r,o,n)=>xt(e)(r,o,n),Wb=$o(re),_o=e=>async(r,o,n)=>{let t=n?{...n,direction:"backward"}:{direction:"backward"};return vt(e)(r,o,t)},Hb=_o(re),wo=e=>async(r,o,n)=>vt(e)(r,o,n),Gb=wo(re),So=e=>(r,o,n)=>{let t=n?{...n,direction:"backward"}:{direction:"backward"};return bt(e)(r,o,t)},Jb=So(re),zo=e=>(r,o,n)=>bt(e)(r,o,n),Kb=zo(re),Io=e=>async(r,o,n)=>{let t=n?{...n,direction:"backward"}:{direction:"backward"};return yt(e)(r,o,t)},Xb=Io(re),To=e=>async(r,o,n)=>yt(e)(r,o,n),Yb=To(re);var ne={};$e(ne,{base64:()=>Ui,base64url:()=>Po,bigint:()=>Fi,boolean:()=>Vi,browserEmail:()=>iy,cidrv4:()=>Ei,cidrv6:()=>Oi,cuid:()=>yi,cuid2:()=>ki,date:()=>Li,datetime:()=>Zi,domain:()=>uy,duration:()=>zi,e164:()=>Ni,email:()=>Ti,emoji:()=>Pi,extendedDuration:()=>Qb,guid:()=>Ii,hex:()=>cy,hostname:()=>ly,html5Email:()=>oy,httpProtocol:()=>ji,idnEmail:()=>ay,integer:()=>Bi,ipv4:()=>Ci,ipv6:()=>Di,ksuid:()=>wi,lowercase:()=>Hi,mac:()=>Ai,md5_base64:()=>fy,md5_base64url:()=>py,md5_hex:()=>dy,nanoid:()=>Si,null:()=>qi,number:()=>Co,rfc5322Email:()=>ny,sha1_base64:()=>gy,sha1_base64url:()=>hy,sha1_hex:()=>my,sha256_base64:()=>vy,sha256_base64url:()=>by,sha256_hex:()=>xy,sha384_base64:()=>ky,sha384_base64url:()=>$y,sha384_hex:()=>yy,sha512_base64:()=>wy,sha512_base64url:()=>Sy,sha512_hex:()=>_y,string:()=>Mi,time:()=>Ri,ulid:()=>$i,undefined:()=>Wi,unicodeEmail:()=>np,uppercase:()=>Gi,uuid:()=>Ye,uuid4:()=>ey,uuid6:()=>ty,uuid7:()=>ry,xid:()=>_i});var yi=/^[cC][0-9a-z]{6,}$/,ki=/^[0-9a-z]+$/,$i=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,_i=/^[0-9a-vA-V]{20}$/,wi=/^[A-Za-z0-9]{27}$/,Si=/^[a-zA-Z0-9_-]{21}$/,zi=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Qb=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Ii=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Ye=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,ey=Ye(4),ty=Ye(6),ry=Ye(7),Ti=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,oy=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,ny=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,np=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,ay=np,iy=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,sy="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Pi(){return new RegExp(sy,"u")}var Ci=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Di=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Ai=e=>{let r=le(e??":");return new RegExp(`^(?:[0-9A-F]{2}${r}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${r}){5}[0-9a-f]{2}$`)},Ei=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Oi=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Ui=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Po=/^[A-Za-z0-9_-]*$/,ly=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,uy=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,ji=/^https?$/,Ni=/^\+[1-9]\d{6,14}$/,ap="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Li=new RegExp(`^${ap}$`);function ip(e){let r="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${r}`:e.precision===0?`${r}:[0-5]\\d`:`${r}:[0-5]\\d\\.\\d{${e.precision}}`:`${r}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Ri(e){return new RegExp(`^${ip(e)}$`)}function Zi(e){let r=ip({precision:e.precision}),o=["Z"];e.local&&o.push(""),e.offset&&o.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${r}(?:${o.join("|")})`;return new RegExp(`^${ap}T(?:${n})$`)}var Mi=e=>{let r=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)},Fi=/^-?\d+n?$/,Bi=/^-?\d+$/,Co=/^-?\d+(?:\.\d+)?$/,Vi=/^(?:true|false)$/i,qi=/^null$/i;var Wi=/^undefined$/i;var Hi=/^[^A-Z]*$/,Gi=/^[^a-z]*$/,cy=/^[0-9a-fA-F]*$/;function fr(e,r){return new RegExp(`^[A-Za-z0-9+/]{${e}}${r}$`)}function pr(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var dy=/^[0-9a-fA-F]{32}$/,fy=fr(22,"=="),py=pr(22),my=/^[0-9a-fA-F]{40}$/,gy=fr(27,"="),hy=pr(27),xy=/^[0-9a-fA-F]{64}$/,vy=fr(43,"="),by=pr(43),yy=/^[0-9a-fA-F]{96}$/,ky=fr(64,""),$y=pr(64),_y=/^[0-9a-fA-F]{128}$/,wy=fr(86,"=="),Sy=pr(86);var j=f("$ZodCheck",(e,r)=>{var o;e._zod??(e._zod={}),e._zod.def=r,(o=e._zod).onattach??(o.onattach=[])}),lp={number:"number",bigint:"bigint",object:"date"},Do=f("$ZodCheckLessThan",(e,r)=>{j.init(e,r);let o=lp[typeof r.value];e._zod.onattach.push(n=>{let t=n._zod.bag,a=(r.inclusive?t.maximum:t.exclusiveMaximum)??Number.POSITIVE_INFINITY;r.value{(r.inclusive?n.value<=r.value:n.value{j.init(e,r);let o=lp[typeof r.value];e._zod.onattach.push(n=>{let t=n._zod.bag,a=(r.inclusive?t.minimum:t.exclusiveMinimum)??Number.NEGATIVE_INFINITY;r.value>a&&(r.inclusive?t.minimum=r.value:t.exclusiveMinimum=r.value)}),e._zod.check=n=>{(r.inclusive?n.value>=r.value:n.value>r.value)||n.issues.push({origin:o,code:"too_small",minimum:typeof r.value=="object"?r.value.getTime():r.value,input:n.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),Ji=f("$ZodCheckMultipleOf",(e,r)=>{j.init(e,r),e._zod.onattach.push(o=>{var n;(n=o._zod.bag).multipleOf??(n.multipleOf=r.value)}),e._zod.check=o=>{if(typeof o.value!=typeof r.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof o.value=="bigint"?o.value%r.value===BigInt(0):si(o.value,r.value)===0)||o.issues.push({origin:typeof o.value,code:"not_multiple_of",divisor:r.value,input:o.value,inst:e,continue:!r.abort})}}),Ki=f("$ZodCheckNumberFormat",(e,r)=>{j.init(e,r),r.format=r.format||"float64";let o=r.format?.includes("int"),n=o?"int":"number",[t,a]=pi[r.format];e._zod.onattach.push(i=>{let s=i._zod.bag;s.format=r.format,s.minimum=t,s.maximum=a,o&&(s.pattern=Bi)}),e._zod.check=i=>{let s=i.value;if(o){if(!Number.isInteger(s)){i.issues.push({expected:n,format:r.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?i.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!r.abort}):i.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!r.abort});return}}sa&&i.issues.push({origin:"number",input:s,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!r.abort})}}),Xi=f("$ZodCheckBigIntFormat",(e,r)=>{j.init(e,r);let[o,n]=mi[r.format];e._zod.onattach.push(t=>{let a=t._zod.bag;a.format=r.format,a.minimum=o,a.maximum=n}),e._zod.check=t=>{let a=t.value;an&&t.issues.push({origin:"bigint",input:a,code:"too_big",maximum:n,inclusive:!0,inst:e,continue:!r.abort})}}),Yi=f("$ZodCheckMaxSize",(e,r)=>{var o;j.init(e,r),(o=e._zod.def).when??(o.when=n=>{let t=n.value;return!je(t)&&t.size!==void 0}),e._zod.onattach.push(n=>{let t=n._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum{let t=n.value;t.size<=r.maximum||n.issues.push({origin:sr(t),code:"too_big",maximum:r.maximum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),Qi=f("$ZodCheckMinSize",(e,r)=>{var o;j.init(e,r),(o=e._zod.def).when??(o.when=n=>{let t=n.value;return!je(t)&&t.size!==void 0}),e._zod.onattach.push(n=>{let t=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>t&&(n._zod.bag.minimum=r.minimum)}),e._zod.check=n=>{let t=n.value;t.size>=r.minimum||n.issues.push({origin:sr(t),code:"too_small",minimum:r.minimum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),es=f("$ZodCheckSizeEquals",(e,r)=>{var o;j.init(e,r),(o=e._zod.def).when??(o.when=n=>{let t=n.value;return!je(t)&&t.size!==void 0}),e._zod.onattach.push(n=>{let t=n._zod.bag;t.minimum=r.size,t.maximum=r.size,t.size=r.size}),e._zod.check=n=>{let t=n.value,a=t.size;if(a===r.size)return;let i=a>r.size;n.issues.push({origin:sr(t),...i?{code:"too_big",maximum:r.size}:{code:"too_small",minimum:r.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!r.abort})}}),ts=f("$ZodCheckMaxLength",(e,r)=>{var o;j.init(e,r),(o=e._zod.def).when??(o.when=n=>{let t=n.value;return!je(t)&&t.length!==void 0}),e._zod.onattach.push(n=>{let t=n._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum{let t=n.value;if(t.length<=r.maximum)return;let i=lr(t);n.issues.push({origin:i,code:"too_big",maximum:r.maximum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),rs=f("$ZodCheckMinLength",(e,r)=>{var o;j.init(e,r),(o=e._zod.def).when??(o.when=n=>{let t=n.value;return!je(t)&&t.length!==void 0}),e._zod.onattach.push(n=>{let t=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>t&&(n._zod.bag.minimum=r.minimum)}),e._zod.check=n=>{let t=n.value;if(t.length>=r.minimum)return;let i=lr(t);n.issues.push({origin:i,code:"too_small",minimum:r.minimum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),os=f("$ZodCheckLengthEquals",(e,r)=>{var o;j.init(e,r),(o=e._zod.def).when??(o.when=n=>{let t=n.value;return!je(t)&&t.length!==void 0}),e._zod.onattach.push(n=>{let t=n._zod.bag;t.minimum=r.length,t.maximum=r.length,t.length=r.length}),e._zod.check=n=>{let t=n.value,a=t.length;if(a===r.length)return;let i=lr(t),s=a>r.length;n.issues.push({origin:i,...s?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!r.abort})}}),kt=f("$ZodCheckStringFormat",(e,r)=>{var o,n;j.init(e,r),e._zod.onattach.push(t=>{let a=t._zod.bag;a.format=r.format,r.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(r.pattern))}),r.pattern?(o=e._zod).check??(o.check=t=>{r.pattern.lastIndex=0,!r.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:r.format,input:t.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:e,continue:!r.abort})}):(n=e._zod).check??(n.check=()=>{})}),ns=f("$ZodCheckRegex",(e,r)=>{kt.init(e,r),e._zod.check=o=>{r.pattern.lastIndex=0,!r.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:"regex",input:o.value,pattern:r.pattern.toString(),inst:e,continue:!r.abort})}}),as=f("$ZodCheckLowerCase",(e,r)=>{r.pattern??(r.pattern=Hi),kt.init(e,r)}),is=f("$ZodCheckUpperCase",(e,r)=>{r.pattern??(r.pattern=Gi),kt.init(e,r)}),ss=f("$ZodCheckIncludes",(e,r)=>{j.init(e,r);let o=le(r.includes),n=new RegExp(typeof r.position=="number"?`^.{${r.position}}${o}`:o);r.pattern=n,e._zod.onattach.push(t=>{let a=t._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),e._zod.check=t=>{t.value.includes(r.includes,r.position)||t.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:t.value,inst:e,continue:!r.abort})}}),ls=f("$ZodCheckStartsWith",(e,r)=>{j.init(e,r);let o=new RegExp(`^${le(r.prefix)}.*`);r.pattern??(r.pattern=o),e._zod.onattach.push(n=>{let t=n._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(o)}),e._zod.check=n=>{n.value.startsWith(r.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:n.value,inst:e,continue:!r.abort})}}),us=f("$ZodCheckEndsWith",(e,r)=>{j.init(e,r);let o=new RegExp(`.*${le(r.suffix)}$`);r.pattern??(r.pattern=o),e._zod.onattach.push(n=>{let t=n._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(o)}),e._zod.check=n=>{n.value.endsWith(r.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:n.value,inst:e,continue:!r.abort})}});function sp(e,r,o){e.issues.length&&r.issues.push(...te(o,e.issues))}var cs=f("$ZodCheckProperty",(e,r)=>{j.init(e,r),e._zod.check=o=>{let n=r.schema._zod.run({value:o.value[r.property],issues:[]},{});if(n instanceof Promise)return n.then(t=>sp(t,o,r.property));sp(n,o,r.property)}}),ds=f("$ZodCheckMimeType",(e,r)=>{j.init(e,r);let o=new Set(r.mime);e._zod.onattach.push(n=>{n._zod.bag.mime=r.mime}),e._zod.check=n=>{o.has(n.value.type)||n.issues.push({code:"invalid_value",values:r.mime,input:n.value.type,inst:e,continue:!r.abort})}}),fs=f("$ZodCheckOverwrite",(e,r)=>{j.init(e,r),e._zod.check=o=>{o.value=r.tx(o.value)}});var mr=class{constructor(r=[]){this.content=[],this.indent=0,this&&(this.args=r)}indented(r){this.indent+=1,r(this),this.indent-=1}write(r){if(typeof r=="function"){r(this,{execution:"sync"}),r(this,{execution:"async"});return}let n=r.split(` `).filter(i=>i),t=Math.min(...n.map(i=>i.length-i.trimStart().length)),a=n.map(i=>i.slice(t)).map(i=>" ".repeat(this.indent*2)+i);for(let i of a)this.content.push(i)}compile(){let r=Function,o=this?.args,t=[...(this?.content??[""]).map(a=>` ${a}`)];return new r(...o,t.join(` -`))}};var as={major:4,minor:4,patch:3};var _=f("$ZodType",(e,r)=>{var o;e??(e={}),e._zod.def=r,e._zod.bag=e._zod.bag||{},e._zod.version=as;let n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(let t of n)for(let a of t._zod.onattach)a(e);if(n.length===0)(o=e._zod).deferred??(o.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(i,s,l)=>{let u=Re(i),c;for(let d of s){if(d._zod.def.when){if(si(i)||!d._zod.def.when(i))continue}else if(u)continue;let p=i.issues.length,g=d._zod.check(i);if(g instanceof Promise&&l?.async===!1)throw new de;if(c||g instanceof Promise)c=(c??Promise.resolve()).then(async()=>{await g,i.issues.length!==p&&(u||(u=Re(i,p)))});else{if(i.issues.length===p)continue;u||(u=Re(i,p))}}return c?c.then(()=>i):i},a=(i,s,l)=>{if(Re(i))return i.aborted=!0,i;let u=t(s,n,l);if(u instanceof Promise){if(l.async===!1)throw new de;return u.then(c=>e._zod.parse(c,l))}return e._zod.parse(u,l)};e._zod.run=(i,s)=>{if(s.skipChecks)return e._zod.parse(i,s);if(s.direction==="backward"){let u=e._zod.parse({value:i.value,issues:[]},{...s,skipChecks:!0});return u instanceof Promise?u.then(c=>a(c,i,s)):a(u,i,s)}let l=e._zod.parse(i,s);if(l instanceof Promise){if(s.async===!1)throw new de;return l.then(u=>t(u,n,s))}return t(l,n,s)}}z(e,"~standard",()=>({validate:t=>{try{let a=ci(e,t);return a.success?{value:a.data}:{issues:a.error?.issues}}catch{return di(e,t).then(i=>i.success?{value:i.data}:{issues:i.error?.issues})}},vendor:"zod",version:1}))}),Ye=f("$ZodString",(e,r)=>{_.init(e,r),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Oi(e._zod.bag),e._zod.parse=(o,n)=>{if(r.coerce)try{o.value=String(o.value)}catch{}return typeof o.value=="string"||o.issues.push({expected:"string",code:"invalid_type",input:o.value,inst:e}),o}}),A=f("$ZodStringFormat",(e,r)=>{kt.init(e,r),Ye.init(e,r)}),ss=f("$ZodGUID",(e,r)=>{r.pattern??(r.pattern=bi),A.init(e,r)}),ls=f("$ZodUUID",(e,r)=>{if(r.version){let n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(n===void 0)throw new Error(`Invalid UUID version: "${r.version}"`);r.pattern??(r.pattern=Qe(n))}else r.pattern??(r.pattern=Qe());A.init(e,r)}),us=f("$ZodEmail",(e,r)=>{r.pattern??(r.pattern=yi),A.init(e,r)}),cs=f("$ZodURL",(e,r)=>{A.init(e,r),e._zod.check=o=>{try{let n=o.value.trim();if(!r.normalize&&r.protocol?.source===Pi.source&&!/^https?:\/\//i.test(n)){o.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:o.value,inst:e,continue:!r.abort});return}let t=new URL(n);r.hostname&&(r.hostname.lastIndex=0,r.hostname.test(t.hostname)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:r.hostname.source,input:o.value,inst:e,continue:!r.abort})),r.protocol&&(r.protocol.lastIndex=0,r.protocol.test(t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:o.value,inst:e,continue:!r.abort})),r.normalize?o.value=t.href:o.value=n;return}catch{o.issues.push({code:"invalid_format",format:"url",input:o.value,inst:e,continue:!r.abort})}}}),ds=f("$ZodEmoji",(e,r)=>{r.pattern??(r.pattern=ki()),A.init(e,r)}),fs=f("$ZodNanoID",(e,r)=>{r.pattern??(r.pattern=xi),A.init(e,r)}),ps=f("$ZodCUID",(e,r)=>{r.pattern??(r.pattern=fi),A.init(e,r)}),ms=f("$ZodCUID2",(e,r)=>{r.pattern??(r.pattern=pi),A.init(e,r)}),gs=f("$ZodULID",(e,r)=>{r.pattern??(r.pattern=mi),A.init(e,r)}),hs=f("$ZodXID",(e,r)=>{r.pattern??(r.pattern=gi),A.init(e,r)}),xs=f("$ZodKSUID",(e,r)=>{r.pattern??(r.pattern=hi),A.init(e,r)}),vs=f("$ZodISODateTime",(e,r)=>{r.pattern??(r.pattern=Ei(r)),A.init(e,r)}),bs=f("$ZodISODate",(e,r)=>{r.pattern??(r.pattern=Ci),A.init(e,r)}),ys=f("$ZodISOTime",(e,r)=>{r.pattern??(r.pattern=Di(r)),A.init(e,r)}),ks=f("$ZodISODuration",(e,r)=>{r.pattern??(r.pattern=vi),A.init(e,r)}),$s=f("$ZodIPv4",(e,r)=>{r.pattern??(r.pattern=$i),A.init(e,r),e._zod.bag.format="ipv4"}),_s=f("$ZodIPv6",(e,r)=>{r.pattern??(r.pattern=_i),A.init(e,r),e._zod.bag.format="ipv6",e._zod.check=o=>{try{new URL(`http://[${o.value}]`)}catch{o.issues.push({code:"invalid_format",format:"ipv6",input:o.value,inst:e,continue:!r.abort})}}}),ws=f("$ZodMAC",(e,r)=>{r.pattern??(r.pattern=wi(r.delimiter)),A.init(e,r),e._zod.bag.format="mac"}),Ss=f("$ZodCIDRv4",(e,r)=>{r.pattern??(r.pattern=Si),A.init(e,r)}),zs=f("$ZodCIDRv6",(e,r)=>{r.pattern??(r.pattern=zi),A.init(e,r),e._zod.check=o=>{let n=o.value.split("/");try{if(n.length!==2)throw new Error;let[t,a]=n;if(!a)throw new Error;let i=Number(a);if(`${i}`!==a)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${t}]`)}catch{o.issues.push({code:"invalid_format",format:"cidrv6",input:o.value,inst:e,continue:!r.abort})}}});function Is(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Ps=f("$ZodBase64",(e,r)=>{r.pattern??(r.pattern=Ii),A.init(e,r),e._zod.bag.contentEncoding="base64",e._zod.check=o=>{Is(o.value)||o.issues.push({code:"invalid_format",format:"base64",input:o.value,inst:e,continue:!r.abort})}});function gp(e){if(!Po.test(e))return!1;let r=e.replace(/[-_]/g,n=>n==="-"?"+":"/"),o=r.padEnd(Math.ceil(r.length/4)*4,"=");return Is(o)}var Ts=f("$ZodBase64URL",(e,r)=>{r.pattern??(r.pattern=Po),A.init(e,r),e._zod.bag.contentEncoding="base64url",e._zod.check=o=>{gp(o.value)||o.issues.push({code:"invalid_format",format:"base64url",input:o.value,inst:e,continue:!r.abort})}}),Cs=f("$ZodE164",(e,r)=>{r.pattern??(r.pattern=Ti),A.init(e,r)});function hp(e,r=null){try{let o=e.split(".");if(o.length!==3)return!1;let[n]=o;if(!n)return!1;let t=JSON.parse(atob(n));return!("typ"in t&&t?.typ!=="JWT"||!t.alg||r&&(!("alg"in t)||t.alg!==r))}catch{return!1}}var Ds=f("$ZodJWT",(e,r)=>{A.init(e,r),e._zod.check=o=>{hp(o.value,r.alg)||o.issues.push({code:"invalid_format",format:"jwt",input:o.value,inst:e,continue:!r.abort})}}),Es=f("$ZodCustomStringFormat",(e,r)=>{A.init(e,r),e._zod.check=o=>{r.fn(o.value)||o.issues.push({code:"invalid_format",format:r.format,input:o.value,inst:e,continue:!r.abort})}}),jo=f("$ZodNumber",(e,r)=>{_.init(e,r),e._zod.pattern=e._zod.bag.pattern??To,e._zod.parse=(o,n)=>{if(r.coerce)try{o.value=Number(o.value)}catch{}let t=o.value;if(typeof t=="number"&&!Number.isNaN(t)&&Number.isFinite(t))return o;let a=typeof t=="number"?Number.isNaN(t)?"NaN":Number.isFinite(t)?void 0:"Infinity":void 0;return o.issues.push({expected:"number",code:"invalid_type",input:t,inst:e,...a?{received:a}:{}}),o}}),Os=f("$ZodNumberFormat",(e,r)=>{Fi.init(e,r),jo.init(e,r)}),mr=f("$ZodBoolean",(e,r)=>{_.init(e,r),e._zod.pattern=ji,e._zod.parse=(o,n)=>{if(r.coerce)try{o.value=!!o.value}catch{}let t=o.value;return typeof t=="boolean"||o.issues.push({expected:"boolean",code:"invalid_type",input:t,inst:e}),o}}),Lo=f("$ZodBigInt",(e,r)=>{_.init(e,r),e._zod.pattern=Ai,e._zod.parse=(o,n)=>{if(r.coerce)try{o.value=BigInt(o.value)}catch{}return typeof o.value=="bigint"||o.issues.push({expected:"bigint",code:"invalid_type",input:o.value,inst:e}),o}}),As=f("$ZodBigIntFormat",(e,r)=>{Bi.init(e,r),Lo.init(e,r)}),Us=f("$ZodSymbol",(e,r)=>{_.init(e,r),e._zod.parse=(o,n)=>{let t=o.value;return typeof t=="symbol"||o.issues.push({expected:"symbol",code:"invalid_type",input:t,inst:e}),o}}),js=f("$ZodUndefined",(e,r)=>{_.init(e,r),e._zod.pattern=Ni,e._zod.values=new Set([void 0]),e._zod.parse=(o,n)=>{let t=o.value;return typeof t>"u"||o.issues.push({expected:"undefined",code:"invalid_type",input:t,inst:e}),o}}),Ls=f("$ZodNull",(e,r)=>{_.init(e,r),e._zod.pattern=Li,e._zod.values=new Set([null]),e._zod.parse=(o,n)=>{let t=o.value;return t===null||o.issues.push({expected:"null",code:"invalid_type",input:t,inst:e}),o}}),Ns=f("$ZodAny",(e,r)=>{_.init(e,r),e._zod.parse=o=>o}),Rs=f("$ZodUnknown",(e,r)=>{_.init(e,r),e._zod.parse=o=>o}),Zs=f("$ZodNever",(e,r)=>{_.init(e,r),e._zod.parse=(o,n)=>(o.issues.push({expected:"never",code:"invalid_type",input:o.value,inst:e}),o)}),Ms=f("$ZodVoid",(e,r)=>{_.init(e,r),e._zod.parse=(o,n)=>{let t=o.value;return typeof t>"u"||o.issues.push({expected:"void",code:"invalid_type",input:t,inst:e}),o}}),Fs=f("$ZodDate",(e,r)=>{_.init(e,r),e._zod.parse=(o,n)=>{if(r.coerce)try{o.value=new Date(o.value)}catch{}let t=o.value,a=t instanceof Date;return a&&!Number.isNaN(t.getTime())||o.issues.push({expected:"date",code:"invalid_type",input:t,...a?{received:"Invalid Date"}:{},inst:e}),o}});function tp(e,r,o){e.issues.length&&r.issues.push(...te(o,e.issues)),r.value[o]=e.value}var Bs=f("$ZodArray",(e,r)=>{_.init(e,r),e._zod.parse=(o,n)=>{let t=o.value;if(!Array.isArray(t))return o.issues.push({expected:"array",code:"invalid_type",input:t,inst:e}),o;o.value=Array(t.length);let a=[];for(let i=0;itp(u,o,i))):tp(l,o,i)}return a.length?Promise.all(a).then(()=>o):o}});function Uo(e,r,o,n,t,a){let i=o in n;if(e.issues.length){if(t&&a&&!i)return;r.issues.push(...te(o,e.issues))}if(!i&&!t){e.issues.length||r.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[o]});return}e.value===void 0?i&&(r.value[o]=void 0):r.value[o]=e.value}function xp(e){let r=Object.keys(e.shape);for(let n of r)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);let o=ni(e.shape);return{...e,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(o)}}function vp(e,r,o,n,t,a){let i=[],s=t.keySet,l=t.catchall._zod,u=l.def.type,c=l.optin==="optional",d=l.optout==="optional";for(let p in r){if(p==="__proto__"||s.has(p))continue;if(u==="never"){i.push(p);continue}let g=l.run({value:r[p],issues:[]},n);g instanceof Promise?e.push(g.then(h=>Uo(h,o,p,r,c,d))):Uo(g,o,p,r,c,d)}return i.length&&o.issues.push({code:"unrecognized_keys",keys:i,input:r,inst:a}),e.length?Promise.all(e).then(()=>o):o}var bp=f("$ZodObject",(e,r)=>{if(_.init(e,r),!Object.getOwnPropertyDescriptor(r,"shape")?.get){let s=r.shape;Object.defineProperty(r,"shape",{get:()=>{let l={...s};return Object.defineProperty(r,"shape",{value:l}),l}})}let n=gt(()=>xp(r));z(e._zod,"propValues",()=>{let s=r.shape,l={};for(let u in s){let c=s[u]._zod;if(c.values){l[u]??(l[u]=new Set);for(let d of c.values)l[u].add(d)}}return l});let t=Xe,a=r.catchall,i;e._zod.parse=(s,l)=>{i??(i=n.value);let u=s.value;if(!t(u))return s.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),s;s.value={};let c=[],d=i.shape;for(let p of i.keys){let g=d[p],h=g._zod.optin==="optional",I=g._zod.optout==="optional",w=g._zod.run({value:u[p],issues:[]},l);w instanceof Promise?c.push(w.then(M=>Uo(M,s,p,u,h,I))):Uo(w,s,p,u,h,I)}return a?vp(c,u,s,l,n.value,e):c.length?Promise.all(c).then(()=>s):s}}),qs=f("$ZodObjectJIT",(e,r)=>{bp.init(e,r);let o=e._zod.parse,n=gt(()=>xp(r)),t=p=>{let g=new pr(["shape","payload","ctx"]),h=n.value,I=B=>{let D=ho(B);return`shape[${D}]._zod.run({ value: input[${D}], issues: [] }, ctx)`};g.write("const input = payload.value;");let w=Object.create(null),M=0;for(let B of h.keys)w[B]=`key_${M++}`;g.write("const newResult = {};");for(let B of h.keys){let D=w[B],L=ho(B),pe=p[B],Kt=pe?._zod?.optin==="optional",Te=pe?._zod?.optout==="optional";g.write(`const ${D} = ${I(B)};`),Kt&&Te?g.write(` +`))}};var ps={major:4,minor:4,patch:3};var _=f("$ZodType",(e,r)=>{var o;e??(e={}),e._zod.def=r,e._zod.bag=e._zod.bag||{},e._zod.version=ps;let n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(let t of n)for(let a of t._zod.onattach)a(e);if(n.length===0)(o=e._zod).deferred??(o.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(i,s,l)=>{let u=Re(i),c;for(let d of s){if(d._zod.def.when){if(gi(i)||!d._zod.def.when(i))continue}else if(u)continue;let p=i.issues.length,g=d._zod.check(i);if(g instanceof Promise&&l?.async===!1)throw new de;if(c||g instanceof Promise)c=(c??Promise.resolve()).then(async()=>{await g,i.issues.length!==p&&(u||(u=Re(i,p)))});else{if(i.issues.length===p)continue;u||(u=Re(i,p))}}return c?c.then(()=>i):i},a=(i,s,l)=>{if(Re(i))return i.aborted=!0,i;let u=t(s,n,l);if(u instanceof Promise){if(l.async===!1)throw new de;return u.then(c=>e._zod.parse(c,l))}return e._zod.parse(u,l)};e._zod.run=(i,s)=>{if(s.skipChecks)return e._zod.parse(i,s);if(s.direction==="backward"){let u=e._zod.parse({value:i.value,issues:[]},{...s,skipChecks:!0});return u instanceof Promise?u.then(c=>a(c,i,s)):a(u,i,s)}let l=e._zod.parse(i,s);if(l instanceof Promise){if(s.async===!1)throw new de;return l.then(u=>t(u,n,s))}return t(l,n,s)}}I(e,"~standard",()=>({validate:t=>{try{let a=vi(e,t);return a.success?{value:a.data}:{issues:a.error?.issues}}catch{return bi(e,t).then(i=>i.success?{value:i.data}:{issues:i.error?.issues})}},vendor:"zod",version:1}))}),Qe=f("$ZodString",(e,r)=>{_.init(e,r),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Mi(e._zod.bag),e._zod.parse=(o,n)=>{if(r.coerce)try{o.value=String(o.value)}catch{}return typeof o.value=="string"||o.issues.push({expected:"string",code:"invalid_type",input:o.value,inst:e}),o}}),O=f("$ZodStringFormat",(e,r)=>{kt.init(e,r),Qe.init(e,r)}),gs=f("$ZodGUID",(e,r)=>{r.pattern??(r.pattern=Ii),O.init(e,r)}),hs=f("$ZodUUID",(e,r)=>{if(r.version){let n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(n===void 0)throw new Error(`Invalid UUID version: "${r.version}"`);r.pattern??(r.pattern=Ye(n))}else r.pattern??(r.pattern=Ye());O.init(e,r)}),xs=f("$ZodEmail",(e,r)=>{r.pattern??(r.pattern=Ti),O.init(e,r)}),vs=f("$ZodURL",(e,r)=>{O.init(e,r),e._zod.check=o=>{try{let n=o.value.trim();if(!r.normalize&&r.protocol?.source===ji.source&&!/^https?:\/\//i.test(n)){o.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:o.value,inst:e,continue:!r.abort});return}let t=new URL(n);r.hostname&&(r.hostname.lastIndex=0,r.hostname.test(t.hostname)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:r.hostname.source,input:o.value,inst:e,continue:!r.abort})),r.protocol&&(r.protocol.lastIndex=0,r.protocol.test(t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:o.value,inst:e,continue:!r.abort})),r.normalize?o.value=t.href:o.value=n;return}catch{o.issues.push({code:"invalid_format",format:"url",input:o.value,inst:e,continue:!r.abort})}}}),bs=f("$ZodEmoji",(e,r)=>{r.pattern??(r.pattern=Pi()),O.init(e,r)}),ys=f("$ZodNanoID",(e,r)=>{r.pattern??(r.pattern=Si),O.init(e,r)}),ks=f("$ZodCUID",(e,r)=>{r.pattern??(r.pattern=yi),O.init(e,r)}),$s=f("$ZodCUID2",(e,r)=>{r.pattern??(r.pattern=ki),O.init(e,r)}),_s=f("$ZodULID",(e,r)=>{r.pattern??(r.pattern=$i),O.init(e,r)}),ws=f("$ZodXID",(e,r)=>{r.pattern??(r.pattern=_i),O.init(e,r)}),Ss=f("$ZodKSUID",(e,r)=>{r.pattern??(r.pattern=wi),O.init(e,r)}),zs=f("$ZodISODateTime",(e,r)=>{r.pattern??(r.pattern=Zi(r)),O.init(e,r)}),Is=f("$ZodISODate",(e,r)=>{r.pattern??(r.pattern=Li),O.init(e,r)}),Ts=f("$ZodISOTime",(e,r)=>{r.pattern??(r.pattern=Ri(r)),O.init(e,r)}),Ps=f("$ZodISODuration",(e,r)=>{r.pattern??(r.pattern=zi),O.init(e,r)}),Cs=f("$ZodIPv4",(e,r)=>{r.pattern??(r.pattern=Ci),O.init(e,r),e._zod.bag.format="ipv4"}),Ds=f("$ZodIPv6",(e,r)=>{r.pattern??(r.pattern=Di),O.init(e,r),e._zod.bag.format="ipv6",e._zod.check=o=>{try{new URL(`http://[${o.value}]`)}catch{o.issues.push({code:"invalid_format",format:"ipv6",input:o.value,inst:e,continue:!r.abort})}}}),As=f("$ZodMAC",(e,r)=>{r.pattern??(r.pattern=Ai(r.delimiter)),O.init(e,r),e._zod.bag.format="mac"}),Es=f("$ZodCIDRv4",(e,r)=>{r.pattern??(r.pattern=Ei),O.init(e,r)}),Os=f("$ZodCIDRv6",(e,r)=>{r.pattern??(r.pattern=Oi),O.init(e,r),e._zod.check=o=>{let n=o.value.split("/");try{if(n.length!==2)throw new Error;let[t,a]=n;if(!a)throw new Error;let i=Number(a);if(`${i}`!==a)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${t}]`)}catch{o.issues.push({code:"invalid_format",format:"cidrv6",input:o.value,inst:e,continue:!r.abort})}}});function Us(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var js=f("$ZodBase64",(e,r)=>{r.pattern??(r.pattern=Ui),O.init(e,r),e._zod.bag.contentEncoding="base64",e._zod.check=o=>{Us(o.value)||o.issues.push({code:"invalid_format",format:"base64",input:o.value,inst:e,continue:!r.abort})}});function wp(e){if(!Po.test(e))return!1;let r=e.replace(/[-_]/g,n=>n==="-"?"+":"/"),o=r.padEnd(Math.ceil(r.length/4)*4,"=");return Us(o)}var Ns=f("$ZodBase64URL",(e,r)=>{r.pattern??(r.pattern=Po),O.init(e,r),e._zod.bag.contentEncoding="base64url",e._zod.check=o=>{wp(o.value)||o.issues.push({code:"invalid_format",format:"base64url",input:o.value,inst:e,continue:!r.abort})}}),Ls=f("$ZodE164",(e,r)=>{r.pattern??(r.pattern=Ni),O.init(e,r)});function Sp(e,r=null){try{let o=e.split(".");if(o.length!==3)return!1;let[n]=o;if(!n)return!1;let t=JSON.parse(atob(n));return!("typ"in t&&t?.typ!=="JWT"||!t.alg||r&&(!("alg"in t)||t.alg!==r))}catch{return!1}}var Rs=f("$ZodJWT",(e,r)=>{O.init(e,r),e._zod.check=o=>{Sp(o.value,r.alg)||o.issues.push({code:"invalid_format",format:"jwt",input:o.value,inst:e,continue:!r.abort})}}),Zs=f("$ZodCustomStringFormat",(e,r)=>{O.init(e,r),e._zod.check=o=>{r.fn(o.value)||o.issues.push({code:"invalid_format",format:r.format,input:o.value,inst:e,continue:!r.abort})}}),No=f("$ZodNumber",(e,r)=>{_.init(e,r),e._zod.pattern=e._zod.bag.pattern??Co,e._zod.parse=(o,n)=>{if(r.coerce)try{o.value=Number(o.value)}catch{}let t=o.value;if(typeof t=="number"&&!Number.isNaN(t)&&Number.isFinite(t))return o;let a=typeof t=="number"?Number.isNaN(t)?"NaN":Number.isFinite(t)?void 0:"Infinity":void 0;return o.issues.push({expected:"number",code:"invalid_type",input:t,inst:e,...a?{received:a}:{}}),o}}),Ms=f("$ZodNumberFormat",(e,r)=>{Ki.init(e,r),No.init(e,r)}),gr=f("$ZodBoolean",(e,r)=>{_.init(e,r),e._zod.pattern=Vi,e._zod.parse=(o,n)=>{if(r.coerce)try{o.value=!!o.value}catch{}let t=o.value;return typeof t=="boolean"||o.issues.push({expected:"boolean",code:"invalid_type",input:t,inst:e}),o}}),Lo=f("$ZodBigInt",(e,r)=>{_.init(e,r),e._zod.pattern=Fi,e._zod.parse=(o,n)=>{if(r.coerce)try{o.value=BigInt(o.value)}catch{}return typeof o.value=="bigint"||o.issues.push({expected:"bigint",code:"invalid_type",input:o.value,inst:e}),o}}),Fs=f("$ZodBigIntFormat",(e,r)=>{Xi.init(e,r),Lo.init(e,r)}),Bs=f("$ZodSymbol",(e,r)=>{_.init(e,r),e._zod.parse=(o,n)=>{let t=o.value;return typeof t=="symbol"||o.issues.push({expected:"symbol",code:"invalid_type",input:t,inst:e}),o}}),Vs=f("$ZodUndefined",(e,r)=>{_.init(e,r),e._zod.pattern=Wi,e._zod.values=new Set([void 0]),e._zod.parse=(o,n)=>{let t=o.value;return typeof t>"u"||o.issues.push({expected:"undefined",code:"invalid_type",input:t,inst:e}),o}}),qs=f("$ZodNull",(e,r)=>{_.init(e,r),e._zod.pattern=qi,e._zod.values=new Set([null]),e._zod.parse=(o,n)=>{let t=o.value;return t===null||o.issues.push({expected:"null",code:"invalid_type",input:t,inst:e}),o}}),Ws=f("$ZodAny",(e,r)=>{_.init(e,r),e._zod.parse=o=>o}),Hs=f("$ZodUnknown",(e,r)=>{_.init(e,r),e._zod.parse=o=>o}),Gs=f("$ZodNever",(e,r)=>{_.init(e,r),e._zod.parse=(o,n)=>(o.issues.push({expected:"never",code:"invalid_type",input:o.value,inst:e}),o)}),Js=f("$ZodVoid",(e,r)=>{_.init(e,r),e._zod.parse=(o,n)=>{let t=o.value;return typeof t>"u"||o.issues.push({expected:"void",code:"invalid_type",input:t,inst:e}),o}}),Ks=f("$ZodDate",(e,r)=>{_.init(e,r),e._zod.parse=(o,n)=>{if(r.coerce)try{o.value=new Date(o.value)}catch{}let t=o.value,a=t instanceof Date;return a&&!Number.isNaN(t.getTime())||o.issues.push({expected:"date",code:"invalid_type",input:t,...a?{received:"Invalid Date"}:{},inst:e}),o}});function cp(e,r,o){e.issues.length&&r.issues.push(...te(o,e.issues)),r.value[o]=e.value}var Xs=f("$ZodArray",(e,r)=>{_.init(e,r),e._zod.parse=(o,n)=>{let t=o.value;if(!Array.isArray(t))return o.issues.push({expected:"array",code:"invalid_type",input:t,inst:e}),o;o.value=Array(t.length);let a=[];for(let i=0;icp(u,o,i))):cp(l,o,i)}return a.length?Promise.all(a).then(()=>o):o}});function jo(e,r,o,n,t,a){let i=o in n;if(e.issues.length){if(t&&a&&!i)return;r.issues.push(...te(o,e.issues))}if(!i&&!t){e.issues.length||r.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[o]});return}e.value===void 0?i&&(r.value[o]=void 0):r.value[o]=e.value}function zp(e){let r=Object.keys(e.shape);for(let n of r)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);let o=fi(e.shape);return{...e,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(o)}}function Ip(e,r,o,n,t,a){let i=[],s=t.keySet,l=t.catchall._zod,u=l.def.type,c=l.optin==="optional",d=l.optout==="optional";for(let p in r){if(p==="__proto__"||s.has(p))continue;if(u==="never"){i.push(p);continue}let g=l.run({value:r[p],issues:[]},n);g instanceof Promise?e.push(g.then(h=>jo(h,o,p,r,c,d))):jo(g,o,p,r,c,d)}return i.length&&o.issues.push({code:"unrecognized_keys",keys:i,input:r,inst:a}),e.length?Promise.all(e).then(()=>o):o}var Tp=f("$ZodObject",(e,r)=>{if(_.init(e,r),!Object.getOwnPropertyDescriptor(r,"shape")?.get){let s=r.shape;Object.defineProperty(r,"shape",{get:()=>{let l={...s};return Object.defineProperty(r,"shape",{value:l}),l}})}let n=gt(()=>zp(r));I(e._zod,"propValues",()=>{let s=r.shape,l={};for(let u in s){let c=s[u]._zod;if(c.values){l[u]??(l[u]=new Set);for(let d of c.values)l[u].add(d)}}return l});let t=Xe,a=r.catchall,i;e._zod.parse=(s,l)=>{i??(i=n.value);let u=s.value;if(!t(u))return s.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),s;s.value={};let c=[],d=i.shape;for(let p of i.keys){let g=d[p],h=g._zod.optin==="optional",T=g._zod.optout==="optional",w=g._zod.run({value:u[p],issues:[]},l);w instanceof Promise?c.push(w.then(M=>jo(M,s,p,u,h,T))):jo(w,s,p,u,h,T)}return a?Ip(c,u,s,l,n.value,e):c.length?Promise.all(c).then(()=>s):s}}),Ys=f("$ZodObjectJIT",(e,r)=>{Tp.init(e,r);let o=e._zod.parse,n=gt(()=>zp(r)),t=p=>{let g=new mr(["shape","payload","ctx"]),h=n.value,T=V=>{let D=xo(V);return`shape[${D}]._zod.run({ value: input[${D}], issues: [] }, ctx)`};g.write("const input = payload.value;");let w=Object.create(null),M=0;for(let V of h.keys)w[V]=`key_${M++}`;g.write("const newResult = {};");for(let V of h.keys){let D=w[V],N=xo(V),pe=p[V],Xt=pe?._zod?.optin==="optional",Pe=pe?._zod?.optout==="optional";g.write(`const ${D} = ${T(V)};`),Xt&&Pe?g.write(` if (${D}.issues.length) { - if (${L} in input) { + if (${N} in input) { payload.issues = payload.issues.concat(${D}.issues.map(iss => ({ ...iss, - path: iss.path ? [${L}, ...iss.path] : [${L}] + path: iss.path ? [${N}, ...iss.path] : [${N}] }))); } } if (${D}.value === undefined) { - if (${L} in input) { - newResult[${L}] = undefined; + if (${N} in input) { + newResult[${N}] = undefined; } } else { - newResult[${L}] = ${D}.value; + newResult[${N}] = ${D}.value; } - `):Kt?g.write(` + `):Xt?g.write(` if (${D}.issues.length) { payload.issues = payload.issues.concat(${D}.issues.map(iss => ({ ...iss, - path: iss.path ? [${L}, ...iss.path] : [${L}] + path: iss.path ? [${N}, ...iss.path] : [${N}] }))); } if (${D}.value === undefined) { - if (${L} in input) { - newResult[${L}] = undefined; + if (${N} in input) { + newResult[${N}] = undefined; } } else { - newResult[${L}] = ${D}.value; + newResult[${N}] = ${D}.value; } `):g.write(` - const ${D}_present = ${L} in input; + const ${D}_present = ${N} in input; if (${D}.issues.length) { payload.issues = payload.issues.concat(${D}.issues.map(iss => ({ ...iss, - path: iss.path ? [${L}, ...iss.path] : [${L}] + path: iss.path ? [${N}, ...iss.path] : [${N}] }))); } if (!${D}_present && !${D}.issues.length) { @@ -198,18 +198,18 @@ $$`:`${e}$$`},av=e=>rv(e)%2===0?e:nv(e),iv=e=>ov(e)%2===1?`${e}$`:e,sv=(e,r,o)=> code: "invalid_type", expected: "nonoptional", input: undefined, - path: [${L}] + path: [${N}] }); } if (${D}_present) { if (${D}.value === undefined) { - newResult[${L}] = undefined; + newResult[${N}] = undefined; } else { - newResult[${L}] = ${D}.value; + newResult[${N}] = ${D}.value; } } - `)}g.write("payload.value = newResult;"),g.write("return payload;");let Pe=g.compile();return(B,D)=>Pe(p,B,D)},a,i=Xe,s=!Ke.jitless,u=s&&ti.value,c=r.catchall,d;e._zod.parse=(p,g)=>{d??(d=n.value);let h=p.value;return i(h)?s&&u&&g?.async===!1&&g.jitless!==!0?(a||(a=t(r.shape)),p=a(p,g),c?vp([],h,p,g,d,e):p):o(p,g):(p.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),p)}});function rp(e,r,o,n){for(let a of e)if(a.issues.length===0)return r.value=a.value,r;let t=e.filter(a=>!Re(a));return t.length===1?(r.value=t[0].value,t[0]):(r.issues.push({code:"invalid_union",input:r.value,inst:o,errors:e.map(a=>a.issues.map(i=>X(i,n,R())))}),r)}var gr=f("$ZodUnion",(e,r)=>{_.init(e,r),z(e._zod,"optin",()=>r.options.some(n=>n._zod.optin==="optional")?"optional":void 0),z(e._zod,"optout",()=>r.options.some(n=>n._zod.optout==="optional")?"optional":void 0),z(e._zod,"values",()=>{if(r.options.every(n=>n._zod.values))return new Set(r.options.flatMap(n=>Array.from(n._zod.values)))}),z(e._zod,"pattern",()=>{if(r.options.every(n=>n._zod.pattern)){let n=r.options.map(t=>t._zod.pattern);return new RegExp(`^(${n.map(t=>nr(t.source)).join("|")})$`)}});let o=r.options.length===1?r.options[0]._zod.run:null;e._zod.parse=(n,t)=>{if(o)return o(n,t);let a=!1,i=[];for(let s of r.options){let l=s._zod.run({value:n.value,issues:[]},t);if(l instanceof Promise)i.push(l),a=!0;else{if(l.issues.length===0)return l;i.push(l)}}return a?Promise.all(i).then(s=>rp(s,n,e,t)):rp(i,n,e,t)}});function op(e,r,o,n){let t=e.filter(a=>a.issues.length===0);return t.length===1?(r.value=t[0].value,r):(t.length===0?r.issues.push({code:"invalid_union",input:r.value,inst:o,errors:e.map(a=>a.issues.map(i=>X(i,n,R())))}):r.issues.push({code:"invalid_union",input:r.value,inst:o,errors:[],inclusive:!1}),r)}var Vs=f("$ZodXor",(e,r)=>{gr.init(e,r),r.inclusive=!1;let o=r.options.length===1?r.options[0]._zod.run:null;e._zod.parse=(n,t)=>{if(o)return o(n,t);let a=!1,i=[];for(let s of r.options){let l=s._zod.run({value:n.value,issues:[]},t);l instanceof Promise?(i.push(l),a=!0):i.push(l)}return a?Promise.all(i).then(s=>op(s,n,e,t)):op(i,n,e,t)}}),Ws=f("$ZodDiscriminatedUnion",(e,r)=>{r.inclusive=!1,gr.init(e,r);let o=e._zod.parse;z(e._zod,"propValues",()=>{let t={};for(let a of r.options){let i=a._zod.propValues;if(!i||Object.keys(i).length===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(a)}"`);for(let[s,l]of Object.entries(i)){t[s]||(t[s]=new Set);for(let u of l)t[s].add(u)}}return t});let n=gt(()=>{let t=r.options,a=new Map;for(let i of t){let s=i._zod.propValues?.[r.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(i)}"`);for(let l of s){if(a.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);a.set(l,i)}}return a});e._zod.parse=(t,a)=>{let i=t.value;if(!Xe(i))return t.issues.push({code:"invalid_type",expected:"object",input:i,inst:e}),t;let s=n.value.get(i?.[r.discriminator]);return s?s._zod.run(t,a):r.unionFallback||a.direction==="backward"?o(t,a):(t.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:r.discriminator,options:Array.from(n.value.keys()),input:i,path:[r.discriminator],inst:e}),t)}}),Hs=f("$ZodIntersection",(e,r)=>{_.init(e,r),e._zod.parse=(o,n)=>{let t=o.value,a=r.left._zod.run({value:t,issues:[]},n),i=r.right._zod.run({value:t,issues:[]},n);return a instanceof Promise||i instanceof Promise?Promise.all([a,i]).then(([l,u])=>np(o,l,u)):np(o,a,i)}});function is(e,r){if(e===r)return{valid:!0,data:e};if(e instanceof Date&&r instanceof Date&&+e==+r)return{valid:!0,data:e};if(Ne(e)&&Ne(r)){let o=Object.keys(r),n=Object.keys(e).filter(a=>o.indexOf(a)!==-1),t={...e,...r};for(let a of n){let i=is(e[a],r[a]);if(!i.valid)return{valid:!1,mergeErrorPath:[a,...i.mergeErrorPath]};t[a]=i.data}return{valid:!0,data:t}}if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return{valid:!1,mergeErrorPath:[]};let o=[];for(let n=0;ns.l&&s.r).map(([s])=>s);if(a.length&&t&&e.issues.push({...t,keys:a}),Re(e))return e;let i=is(r.value,o.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}var No=f("$ZodTuple",(e,r)=>{_.init(e,r);let o=r.items;e._zod.parse=(n,t)=>{let a=n.value;if(!Array.isArray(a))return n.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),n;n.value=[];let i=[],s=ap(o,"optin"),l=ap(o,"optout");if(!r.rest){if(a.lengtho.length&&n.issues.push({code:"too_big",maximum:o.length,inclusive:!0,input:a,inst:e,origin:"array"})}let u=new Array(o.length);for(let c=0;c{u[c]=p})):u[c]=d}if(r.rest){let c=o.length-1,d=a.slice(o.length);for(let p of d){c++;let g=r.rest._zod.run({value:p,issues:[]},t);g instanceof Promise?i.push(g.then(h=>ip(h,n,c))):ip(g,n,c)}}return i.length?Promise.all(i).then(()=>sp(u,n,o,a,l)):sp(u,n,o,a,l)}});function ap(e,r){for(let o=e.length-1;o>=0;o--)if(e[o]._zod[r]!=="optional")return o+1;return 0}function ip(e,r,o){e.issues.length&&r.issues.push(...te(o,e.issues)),r.value[o]=e.value}function sp(e,r,o,n,t){for(let a=0;a=t){r.value.length=a;break}r.issues.push(...te(a,i.issues))}r.value[a]=i.value}for(let a=r.value.length-1;a>=n.length&&(o[a]._zod.optout==="optional"&&r.value[a]===void 0);a--)r.value.length=a;return r}var Gs=f("$ZodRecord",(e,r)=>{_.init(e,r),e._zod.parse=(o,n)=>{let t=o.value;if(!Ne(t))return o.issues.push({expected:"record",code:"invalid_type",input:t,inst:e}),o;let a=[],i=r.keyType._zod.values;if(i){o.value={};let s=new Set;for(let u of i)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){s.add(typeof u=="number"?u.toString():u);let c=r.keyType._zod.run({value:u,issues:[]},n);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(c.issues.length){o.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(g=>X(g,n,R())),input:u,path:[u],inst:e});continue}let d=c.value,p=r.valueType._zod.run({value:t[u],issues:[]},n);p instanceof Promise?a.push(p.then(g=>{g.issues.length&&o.issues.push(...te(u,g.issues)),o.value[d]=g.value})):(p.issues.length&&o.issues.push(...te(u,p.issues)),o.value[d]=p.value)}let l;for(let u in t)s.has(u)||(l=l??[],l.push(u));l&&l.length>0&&o.issues.push({code:"unrecognized_keys",input:t,inst:e,keys:l})}else{o.value={};for(let s of Reflect.ownKeys(t)){if(s==="__proto__"||!Object.prototype.propertyIsEnumerable.call(t,s))continue;let l=r.keyType._zod.run({value:s,issues:[]},n);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&To.test(s)&&l.issues.length){let d=r.keyType._zod.run({value:Number(s),issues:[]},n);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");d.issues.length===0&&(l=d)}if(l.issues.length){r.mode==="loose"?o.value[s]=t[s]:o.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(d=>X(d,n,R())),input:s,path:[s],inst:e});continue}let c=r.valueType._zod.run({value:t[s],issues:[]},n);c instanceof Promise?a.push(c.then(d=>{d.issues.length&&o.issues.push(...te(s,d.issues)),o.value[l.value]=d.value})):(c.issues.length&&o.issues.push(...te(s,c.issues)),o.value[l.value]=c.value)}}return a.length?Promise.all(a).then(()=>o):o}}),Js=f("$ZodMap",(e,r)=>{_.init(e,r),e._zod.parse=(o,n)=>{let t=o.value;if(!(t instanceof Map))return o.issues.push({expected:"map",code:"invalid_type",input:t,inst:e}),o;let a=[];o.value=new Map;for(let[i,s]of t){let l=r.keyType._zod.run({value:i,issues:[]},n),u=r.valueType._zod.run({value:s,issues:[]},n);l instanceof Promise||u instanceof Promise?a.push(Promise.all([l,u]).then(([c,d])=>{lp(c,d,o,i,t,e,n)})):lp(l,u,o,i,t,e,n)}return a.length?Promise.all(a).then(()=>o):o}});function lp(e,r,o,n,t,a,i){e.issues.length&&(ar.has(typeof n)?o.issues.push(...te(n,e.issues)):o.issues.push({code:"invalid_key",origin:"map",input:t,inst:a,issues:e.issues.map(s=>X(s,i,R()))})),r.issues.length&&(ar.has(typeof n)?o.issues.push(...te(n,r.issues)):o.issues.push({origin:"map",code:"invalid_element",input:t,inst:a,key:n,issues:r.issues.map(s=>X(s,i,R()))})),o.value.set(e.value,r.value)}var Ks=f("$ZodSet",(e,r)=>{_.init(e,r),e._zod.parse=(o,n)=>{let t=o.value;if(!(t instanceof Set))return o.issues.push({input:t,inst:e,expected:"set",code:"invalid_type"}),o;let a=[];o.value=new Set;for(let i of t){let s=r.valueType._zod.run({value:i,issues:[]},n);s instanceof Promise?a.push(s.then(l=>up(l,o))):up(s,o)}return a.length?Promise.all(a).then(()=>o):o}});function up(e,r){e.issues.length&&r.issues.push(...e.issues),r.value.add(e.value)}var Xs=f("$ZodEnum",(e,r)=>{_.init(e,r);let o=or(r.entries),n=new Set(o);e._zod.values=n,e._zod.pattern=new RegExp(`^(${o.filter(t=>ar.has(typeof t)).map(t=>typeof t=="string"?se(t):t.toString()).join("|")})$`),e._zod.parse=(t,a)=>{let i=t.value;return n.has(i)||t.issues.push({code:"invalid_value",values:o,input:i,inst:e}),t}}),Qs=f("$ZodLiteral",(e,r)=>{if(_.init(e,r),r.values.length===0)throw new Error("Cannot create literal schema with no valid values");let o=new Set(r.values);e._zod.values=o,e._zod.pattern=new RegExp(`^(${r.values.map(n=>typeof n=="string"?se(n):n?se(n.toString()):String(n)).join("|")})$`),e._zod.parse=(n,t)=>{let a=n.value;return o.has(a)||n.issues.push({code:"invalid_value",values:r.values,input:a,inst:e}),n}}),Ys=f("$ZodFile",(e,r)=>{_.init(e,r),e._zod.parse=(o,n)=>{let t=o.value;return t instanceof File||o.issues.push({expected:"file",code:"invalid_type",input:t,inst:e}),o}}),el=f("$ZodTransform",(e,r)=>{_.init(e,r),e._zod.optin="optional",e._zod.parse=(o,n)=>{if(n.direction==="backward")throw new Ue(e.constructor.name);let t=r.transform(o.value,o);if(n.async)return(t instanceof Promise?t:Promise.resolve(t)).then(i=>(o.value=i,o.fallback=!0,o));if(t instanceof Promise)throw new de;return o.value=t,o.fallback=!0,o}});function cp(e,r){return r===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var Ro=f("$ZodOptional",(e,r)=>{_.init(e,r),e._zod.optin="optional",e._zod.optout="optional",z(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),z(e._zod,"pattern",()=>{let o=r.innerType._zod.pattern;return o?new RegExp(`^(${nr(o.source)})?$`):void 0}),e._zod.parse=(o,n)=>{if(r.innerType._zod.optin==="optional"){let t=o.value,a=r.innerType._zod.run(o,n);return a instanceof Promise?a.then(i=>cp(i,t)):cp(a,t)}return o.value===void 0?o:r.innerType._zod.run(o,n)}}),tl=f("$ZodExactOptional",(e,r)=>{Ro.init(e,r),z(e._zod,"values",()=>r.innerType._zod.values),z(e._zod,"pattern",()=>r.innerType._zod.pattern),e._zod.parse=(o,n)=>r.innerType._zod.run(o,n)}),rl=f("$ZodNullable",(e,r)=>{_.init(e,r),z(e._zod,"optin",()=>r.innerType._zod.optin),z(e._zod,"optout",()=>r.innerType._zod.optout),z(e._zod,"pattern",()=>{let o=r.innerType._zod.pattern;return o?new RegExp(`^(${nr(o.source)}|null)$`):void 0}),z(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),e._zod.parse=(o,n)=>o.value===null?o:r.innerType._zod.run(o,n)}),ol=f("$ZodDefault",(e,r)=>{_.init(e,r),e._zod.optin="optional",z(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(o,n)=>{if(n.direction==="backward")return r.innerType._zod.run(o,n);if(o.value===void 0)return o.value=r.defaultValue,o;let t=r.innerType._zod.run(o,n);return t instanceof Promise?t.then(a=>dp(a,r)):dp(t,r)}});function dp(e,r){return e.value===void 0&&(e.value=r.defaultValue),e}var nl=f("$ZodPrefault",(e,r)=>{_.init(e,r),e._zod.optin="optional",z(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(o,n)=>(n.direction==="backward"||o.value===void 0&&(o.value=r.defaultValue),r.innerType._zod.run(o,n))}),al=f("$ZodNonOptional",(e,r)=>{_.init(e,r),z(e._zod,"values",()=>{let o=r.innerType._zod.values;return o?new Set([...o].filter(n=>n!==void 0)):void 0}),e._zod.parse=(o,n)=>{let t=r.innerType._zod.run(o,n);return t instanceof Promise?t.then(a=>fp(a,e)):fp(t,e)}});function fp(e,r){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:r}),e}var il=f("$ZodSuccess",(e,r)=>{_.init(e,r),e._zod.parse=(o,n)=>{if(n.direction==="backward")throw new Ue("ZodSuccess");let t=r.innerType._zod.run(o,n);return t instanceof Promise?t.then(a=>(o.value=a.issues.length===0,o)):(o.value=t.issues.length===0,o)}}),sl=f("$ZodCatch",(e,r)=>{_.init(e,r),e._zod.optin="optional",z(e._zod,"optout",()=>r.innerType._zod.optout),z(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(o,n)=>{if(n.direction==="backward")return r.innerType._zod.run(o,n);let t=r.innerType._zod.run(o,n);return t instanceof Promise?t.then(a=>(o.value=a.value,a.issues.length&&(o.value=r.catchValue({...o,error:{issues:a.issues.map(i=>X(i,n,R()))},input:o.value}),o.issues=[],o.fallback=!0),o)):(o.value=t.value,t.issues.length&&(o.value=r.catchValue({...o,error:{issues:t.issues.map(a=>X(a,n,R()))},input:o.value}),o.issues=[],o.fallback=!0),o)}}),ll=f("$ZodNaN",(e,r)=>{_.init(e,r),e._zod.parse=(o,n)=>((typeof o.value!="number"||!Number.isNaN(o.value))&&o.issues.push({input:o.value,inst:e,expected:"nan",code:"invalid_type"}),o)}),Zo=f("$ZodPipe",(e,r)=>{_.init(e,r),z(e._zod,"values",()=>r.in._zod.values),z(e._zod,"optin",()=>r.in._zod.optin),z(e._zod,"optout",()=>r.out._zod.optout),z(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(o,n)=>{if(n.direction==="backward"){let a=r.out._zod.run(o,n);return a instanceof Promise?a.then(i=>Eo(i,r.in,n)):Eo(a,r.in,n)}let t=r.in._zod.run(o,n);return t instanceof Promise?t.then(a=>Eo(a,r.out,n)):Eo(t,r.out,n)}});function Eo(e,r,o){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},o)}var hr=f("$ZodCodec",(e,r)=>{_.init(e,r),z(e._zod,"values",()=>r.in._zod.values),z(e._zod,"optin",()=>r.in._zod.optin),z(e._zod,"optout",()=>r.out._zod.optout),z(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(o,n)=>{if((n.direction||"forward")==="forward"){let a=r.in._zod.run(o,n);return a instanceof Promise?a.then(i=>Oo(i,r,n)):Oo(a,r,n)}else{let a=r.out._zod.run(o,n);return a instanceof Promise?a.then(i=>Oo(i,r,n)):Oo(a,r,n)}}});function Oo(e,r,o){if(e.issues.length)return e.aborted=!0,e;if((o.direction||"forward")==="forward"){let t=r.transform(e.value,e);return t instanceof Promise?t.then(a=>Ao(e,a,r.out,o)):Ao(e,t,r.out,o)}else{let t=r.reverseTransform(e.value,e);return t instanceof Promise?t.then(a=>Ao(e,a,r.in,o)):Ao(e,t,r.in,o)}}function Ao(e,r,o,n){return e.issues.length?(e.aborted=!0,e):o._zod.run({value:r,issues:e.issues},n)}var ul=f("$ZodPreprocess",(e,r)=>{Zo.init(e,r)}),cl=f("$ZodReadonly",(e,r)=>{_.init(e,r),z(e._zod,"propValues",()=>r.innerType._zod.propValues),z(e._zod,"values",()=>r.innerType._zod.values),z(e._zod,"optin",()=>r.innerType?._zod?.optin),z(e._zod,"optout",()=>r.innerType?._zod?.optout),e._zod.parse=(o,n)=>{if(n.direction==="backward")return r.innerType._zod.run(o,n);let t=r.innerType._zod.run(o,n);return t instanceof Promise?t.then(pp):pp(t)}});function pp(e){return e.value=Object.freeze(e.value),e}var dl=f("$ZodTemplateLiteral",(e,r)=>{_.init(e,r);let o=[];for(let n of r.parts)if(typeof n=="object"&&n!==null){if(!n._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...n._zod.traits].shift()}`);let t=n._zod.pattern instanceof RegExp?n._zod.pattern.source:n._zod.pattern;if(!t)throw new Error(`Invalid template literal part: ${n._zod.traits}`);let a=t.startsWith("^")?1:0,i=t.endsWith("$")?t.length-1:t.length;o.push(t.slice(a,i))}else if(n===null||oi.has(typeof n))o.push(se(`${n}`));else throw new Error(`Invalid template literal part: ${n}`);e._zod.pattern=new RegExp(`^${o.join("")}$`),e._zod.parse=(n,t)=>typeof n.value!="string"?(n.issues.push({input:n.value,inst:e,expected:"string",code:"invalid_type"}),n):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:"invalid_format",format:r.format??"template_literal",pattern:e._zod.pattern.source}),n)}),fl=f("$ZodFunction",(e,r)=>(_.init(e,r),e._def=r,e._zod.def=r,e.implement=o=>{if(typeof o!="function")throw new Error("implement() must be called with a function");return function(...n){let t=e._def.input?vo(e._def.input,n):n,a=Reflect.apply(o,this,t);return e._def.output?vo(e._def.output,a):a}},e.implementAsync=o=>{if(typeof o!="function")throw new Error("implementAsync() must be called with a function");return async function(...n){let t=e._def.input?await bo(e._def.input,n):n,a=await Reflect.apply(o,this,t);return e._def.output?await bo(e._def.output,a):a}},e._zod.parse=(o,n)=>typeof o.value!="function"?(o.issues.push({code:"invalid_type",expected:"function",input:o.value,inst:e}),o):(e._def.output&&e._def.output._zod.def.type==="promise"?o.value=e.implementAsync(o.value):o.value=e.implement(o.value),o),e.input=(...o)=>{let n=e.constructor;return Array.isArray(o[0])?new n({type:"function",input:new No({type:"tuple",items:o[0],rest:o[1]}),output:e._def.output}):new n({type:"function",input:o[0],output:e._def.output})},e.output=o=>{let n=e.constructor;return new n({type:"function",input:e._def.input,output:o})},e)),pl=f("$ZodPromise",(e,r)=>{_.init(e,r),e._zod.parse=(o,n)=>Promise.resolve(o.value).then(t=>r.innerType._zod.run({value:t,issues:[]},n))}),ml=f("$ZodLazy",(e,r)=>{_.init(e,r),z(e._zod,"innerType",()=>{let o=r;return o._cachedInner||(o._cachedInner=r.getter()),o._cachedInner}),z(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),z(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),z(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),z(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(o,n)=>e._zod.innerType._zod.run(o,n)}),gl=f("$ZodCustom",(e,r)=>{j.init(e,r),_.init(e,r),e._zod.parse=(o,n)=>o,e._zod.check=o=>{let n=o.value,t=r.fn(n);if(t instanceof Promise)return t.then(a=>mp(a,o,n,e));mp(t,o,n,e)}});function mp(e,r,o,n){if(!e){let t={code:"custom",input:o,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(t.params=n._zod.def.params),r.issues.push(ht(t))}}var vr={};ke(vr,{ar:()=>yp,az:()=>kp,be:()=>_p,bg:()=>wp,ca:()=>Sp,cs:()=>zp,da:()=>Ip,de:()=>Pp,el:()=>Tp,en:()=>Mo,eo:()=>Cp,es:()=>Dp,fa:()=>Ep,fi:()=>Op,fr:()=>Ap,frCA:()=>Up,he:()=>jp,hr:()=>Lp,hu:()=>Np,hy:()=>Zp,id:()=>Mp,is:()=>Fp,it:()=>Bp,ja:()=>qp,ka:()=>Vp,kh:()=>Wp,km:()=>Fo,ko:()=>Hp,lt:()=>Jp,mk:()=>Kp,ms:()=>Xp,nl:()=>Qp,no:()=>Yp,ota:()=>em,pl:()=>rm,ps:()=>tm,pt:()=>om,ro:()=>nm,ru:()=>im,sl:()=>sm,sv:()=>lm,ta:()=>um,th:()=>cm,tr:()=>dm,ua:()=>fm,uk:()=>Bo,ur:()=>pm,uz:()=>mm,vi:()=>gm,yo:()=>vm,zhCN:()=>hm,zhTW:()=>xm});var by=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function r(t){return e[t]??null}let o={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},n={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${t.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${a}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`}case"invalid_value":return t.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${x(t.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${t.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${a} ${t.maximum.toString()} ${i.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${t.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${a} ${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${t.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${a} ${t.minimum.toString()} ${i.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${t.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${a} ${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${t.prefix}"`:a.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${a.suffix}"`:a.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${a.includes}"`:a.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${a.pattern}`:`${o[a.format]??t.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${t.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${t.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${t.keys.length>1?"\u0629":""}: ${m(t.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${t.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${t.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function yp(){return{localeError:by()}}var yy=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function r(t){return e[t]??null}let o={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},n={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${t.expected}, daxil olan ${s}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${a}, daxil olan ${s}`}case"invalid_value":return t.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${x(t.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${t.origin??"d\u0259y\u0259r"} ${a}${t.maximum.toString()} ${i.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${t.origin??"d\u0259y\u0259r"} ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${t.origin} ${a}${t.minimum.toString()} ${i.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${t.origin} ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${a.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:a.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${a.suffix}" il\u0259 bitm\u0259lidir`:a.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${a.includes}" daxil olmal\u0131d\u0131r`:a.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${a.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${o[a.format]??t.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${t.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${t.keys.length>1?"lar":""}: ${m(t.keys,", ")}`;case"invalid_key":return`${t.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${t.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function kp(){return{localeError:yy()}}function $p(e,r,o,n){let t=Math.abs(e),a=t%10,i=t%100;return i>=11&&i<=19?n:a===1?r:a>=2&&a<=4?o:n}var ky=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function r(t){return e[t]??null}let o={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},n={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${t.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${a}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`}case"invalid_value":return t.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${x(t.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);if(i){let s=Number(t.maximum),l=$p(s,i.unit.one,i.unit.few,i.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${i.verb} ${a}${t.maximum.toString()} ${l}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);if(i){let s=Number(t.minimum),l=$p(s,i.unit.one,i.unit.few,i.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${i.verb} ${a}${t.minimum.toString()} ${l}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${a.prefix}"`:a.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${a.suffix}"`:a.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${a.includes}"`:a.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${a.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${o[a.format]??t.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${t.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${m(t.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${t.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${t.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function _p(){return{localeError:ky()}}var $y=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function r(t){return e[t]??null}let o={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},n={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${t.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${a}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`}case"invalid_value":return t.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${x(t.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${a}${t.maximum.toString()} ${i.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${a}${t.minimum.toString()} ${i.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;if(a.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${a.prefix}"`;if(a.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${a.suffix}"`;if(a.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${a.includes}"`;if(a.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${a.pattern}`;let i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return a.format==="emoji"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),a.format==="datetime"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),a.format==="date"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),a.format==="time"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),a.format==="duration"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${i} ${o[a.format]??t.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${t.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${t.keys.length>1?"\u043E\u0432\u0435":""}: ${m(t.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${t.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${t.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function wp(){return{localeError:$y()}}var _y=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function r(t){return e[t]??null}let o={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},n={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${t.expected}, s'ha rebut ${s}`:`Tipus inv\xE0lid: s'esperava ${a}, s'ha rebut ${s}`}case"invalid_value":return t.values.length===1?`Valor inv\xE0lid: s'esperava ${x(t.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${m(t.values," o ")}`;case"too_big":{let a=t.inclusive?"com a m\xE0xim":"menys de",i=r(t.origin);return i?`Massa gran: s'esperava que ${t.origin??"el valor"} contingu\xE9s ${a} ${t.maximum.toString()} ${i.unit??"elements"}`:`Massa gran: s'esperava que ${t.origin??"el valor"} fos ${a} ${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?"com a m\xEDnim":"m\xE9s de",i=r(t.origin);return i?`Massa petit: s'esperava que ${t.origin} contingu\xE9s ${a} ${t.minimum.toString()} ${i.unit}`:`Massa petit: s'esperava que ${t.origin} fos ${a} ${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${a.prefix}"`:a.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${a.suffix}"`:a.format==="includes"?`Format inv\xE0lid: ha d'incloure "${a.includes}"`:a.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${a.pattern}`:`Format inv\xE0lid per a ${o[a.format]??t.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${t.divisor}`;case"unrecognized_keys":return`Clau${t.keys.length>1?"s":""} no reconeguda${t.keys.length>1?"s":""}: ${m(t.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${t.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${t.origin}`;default:return"Entrada inv\xE0lida"}}};function Sp(){return{localeError:_y()}}var wy=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function r(t){return e[t]??null}let o={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},n={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${t.expected}, obdr\u017Eeno ${s}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${a}, obdr\u017Eeno ${s}`}case"invalid_value":return t.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${x(t.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${t.origin??"hodnota"} mus\xED m\xEDt ${a}${t.maximum.toString()} ${i.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${t.origin??"hodnota"} mus\xED b\xFDt ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${t.origin??"hodnota"} mus\xED m\xEDt ${a}${t.minimum.toString()} ${i.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${t.origin??"hodnota"} mus\xED b\xFDt ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${a.prefix}"`:a.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${a.suffix}"`:a.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${a.includes}"`:a.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${a.pattern}`:`Neplatn\xFD form\xE1t ${o[a.format]??t.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${t.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${m(t.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${t.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${t.origin}`;default:return"Neplatn\xFD vstup"}}};function zp(){return{localeError:wy()}}var Sy=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function r(t){return e[t]??null}let o={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},n={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Ugyldigt input: forventede instanceof ${t.expected}, fik ${s}`:`Ugyldigt input: forventede ${a}, fik ${s}`}case"invalid_value":return t.values.length===1?`Ugyldig v\xE6rdi: forventede ${x(t.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin),s=n[t.origin]??t.origin;return i?`For stor: forventede ${s??"value"} ${i.verb} ${a} ${t.maximum.toString()} ${i.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${a} ${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin),s=n[t.origin]??t.origin;return i?`For lille: forventede ${s} ${i.verb} ${a} ${t.minimum.toString()} ${i.unit}`:`For lille: forventede ${s} havde ${a} ${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Ugyldig streng: skal starte med "${a.prefix}"`:a.format==="ends_with"?`Ugyldig streng: skal ende med "${a.suffix}"`:a.format==="includes"?`Ugyldig streng: skal indeholde "${a.includes}"`:a.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${a.pattern}`:`Ugyldig ${o[a.format]??t.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${m(t.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${t.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${t.origin}`;default:return"Ugyldigt input"}}};function Ip(){return{localeError:Sy()}}var zy=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function r(t){return e[t]??null}let o={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},n={nan:"NaN",number:"Zahl",array:"Array"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${t.expected}, erhalten ${s}`:`Ung\xFCltige Eingabe: erwartet ${a}, erhalten ${s}`}case"invalid_value":return t.values.length===1?`Ung\xFCltige Eingabe: erwartet ${x(t.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`Zu gro\xDF: erwartet, dass ${t.origin??"Wert"} ${a}${t.maximum.toString()} ${i.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${t.origin??"Wert"} ${a}${t.maximum.toString()} ist`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`Zu klein: erwartet, dass ${t.origin} ${a}${t.minimum.toString()} ${i.unit} hat`:`Zu klein: erwartet, dass ${t.origin} ${a}${t.minimum.toString()} ist`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Ung\xFCltiger String: muss mit "${a.prefix}" beginnen`:a.format==="ends_with"?`Ung\xFCltiger String: muss mit "${a.suffix}" enden`:a.format==="includes"?`Ung\xFCltiger String: muss "${a.includes}" enthalten`:a.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${a.pattern} entsprechen`:`Ung\xFCltig: ${o[a.format]??t.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${t.divisor} sein`;case"unrecognized_keys":return`${t.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${m(t.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${t.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${t.origin}`;default:return"Ung\xFCltige Eingabe"}}};function Pp(){return{localeError:zy()}}var Iy=()=>{let e={string:{unit:"\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},file:{unit:"bytes",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},array:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},set:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},map:{unit:"\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"}};function r(t){return e[t]??null}let o={regex:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",email:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",date:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",time:"ISO \u03CE\u03C1\u03B1",duration:"ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",ipv4:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",ipv6:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",mac:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",cidrv4:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",cidrv6:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",base64:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",base64url:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",json_string:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",e164:"\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",jwt:"JWT",template_literal:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"},n={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return typeof t.expected=="string"&&/^[A-Z]/.test(t.expected)?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${t.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${s}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${a}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${s}`}case"invalid_value":return t.values.length===1?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${x(t.values[0])}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${t.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${a}${t.maximum.toString()} ${i.unit??"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${t.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${t.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${a}${t.minimum.toString()} ${i.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${t.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${a.prefix}"`:a.format==="ends_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${a.suffix}"`:a.format==="includes"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${a.includes}"`:a.format==="regex"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${a.pattern}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${o[a.format]??t.format}`}case"not_multiple_of":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${t.divisor}`;case"unrecognized_keys":return`\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${t.keys.length>1?"\u03B1":"\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${t.keys.length>1?"\u03B9\u03AC":"\u03AF"}: ${m(t.keys,", ")}`;case"invalid_key":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${t.origin}`;case"invalid_union":return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";case"invalid_element":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${t.origin}`;default:return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"}}};function Tp(){return{localeError:Iy()}}var Py=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function r(t){return e[t]??null}let o={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},n={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return`Invalid input: expected ${a}, received ${s}`}case"invalid_value":return t.values.length===1?`Invalid input: expected ${x(t.values[0])}`:`Invalid option: expected one of ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`Too big: expected ${t.origin??"value"} to have ${a}${t.maximum.toString()} ${i.unit??"elements"}`:`Too big: expected ${t.origin??"value"} to be ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`Too small: expected ${t.origin} to have ${a}${t.minimum.toString()} ${i.unit}`:`Too small: expected ${t.origin} to be ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Invalid string: must start with "${a.prefix}"`:a.format==="ends_with"?`Invalid string: must end with "${a.suffix}"`:a.format==="includes"?`Invalid string: must include "${a.includes}"`:a.format==="regex"?`Invalid string: must match pattern ${a.pattern}`:`Invalid ${o[a.format]??t.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${t.divisor}`;case"unrecognized_keys":return`Unrecognized key${t.keys.length>1?"s":""}: ${m(t.keys,", ")}`;case"invalid_key":return`Invalid key in ${t.origin}`;case"invalid_union":return t.options&&Array.isArray(t.options)&&t.options.length>0?`Invalid discriminator value. Expected ${t.options.map(i=>`'${i}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${t.origin}`;default:return"Invalid input"}}};function Mo(){return{localeError:Py()}}var Ty=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function r(t){return e[t]??null}let o={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},n={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${t.expected}, ricevi\u011Dis ${s}`:`Nevalida enigo: atendi\u011Dis ${a}, ricevi\u011Dis ${s}`}case"invalid_value":return t.values.length===1?`Nevalida enigo: atendi\u011Dis ${x(t.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`Tro granda: atendi\u011Dis ke ${t.origin??"valoro"} havu ${a}${t.maximum.toString()} ${i.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${t.origin??"valoro"} havu ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`Tro malgranda: atendi\u011Dis ke ${t.origin} havu ${a}${t.minimum.toString()} ${i.unit}`:`Tro malgranda: atendi\u011Dis ke ${t.origin} estu ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${a.prefix}"`:a.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${a.suffix}"`:a.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${a.includes}"`:a.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${a.pattern}`:`Nevalida ${o[a.format]??t.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${t.divisor}`;case"unrecognized_keys":return`Nekonata${t.keys.length>1?"j":""} \u015Dlosilo${t.keys.length>1?"j":""}: ${m(t.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${t.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${t.origin}`;default:return"Nevalida enigo"}}};function Cp(){return{localeError:Ty()}}var Cy=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function r(t){return e[t]??null}let o={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},n={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${t.expected}, recibido ${s}`:`Entrada inv\xE1lida: se esperaba ${a}, recibido ${s}`}case"invalid_value":return t.values.length===1?`Entrada inv\xE1lida: se esperaba ${x(t.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin),s=n[t.origin]??t.origin;return i?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${a}${t.maximum.toString()} ${i.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin),s=n[t.origin]??t.origin;return i?`Demasiado peque\xF1o: se esperaba que ${s} tuviera ${a}${t.minimum.toString()} ${i.unit}`:`Demasiado peque\xF1o: se esperaba que ${s} fuera ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${a.prefix}"`:a.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${a.suffix}"`:a.format==="includes"?`Cadena inv\xE1lida: debe incluir "${a.includes}"`:a.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${a.pattern}`:`Inv\xE1lido ${o[a.format]??t.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${t.divisor}`;case"unrecognized_keys":return`Llave${t.keys.length>1?"s":""} desconocida${t.keys.length>1?"s":""}: ${m(t.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${n[t.origin]??t.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${n[t.origin]??t.origin}`;default:return"Entrada inv\xE1lida"}}};function Dp(){return{localeError:Cy()}}var Dy=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function r(t){return e[t]??null}let o={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},n={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${t.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${a} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return t.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${x(t.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${m(t.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${t.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${a}${t.maximum.toString()} ${i.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${t.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${a}${t.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${t.origin} \u0628\u0627\u06CC\u062F ${a}${t.minimum.toString()} ${i.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${t.origin} \u0628\u0627\u06CC\u062F ${a}${t.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${a.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:a.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${a.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:a.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${a.includes}" \u0628\u0627\u0634\u062F`:a.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${a.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${o[a.format]??t.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${t.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${t.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${m(t.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${t.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${t.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function Ep(){return{localeError:Dy()}}var Ey=()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function r(t){return e[t]??null}let o={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},n={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Virheellinen tyyppi: odotettiin instanceof ${t.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${a}, oli ${s}`}case"invalid_value":return t.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${x(t.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`Liian suuri: ${i.subject} t\xE4ytyy olla ${a}${t.maximum.toString()} ${i.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`Liian pieni: ${i.subject} t\xE4ytyy olla ${a}${t.minimum.toString()} ${i.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${a.prefix}"`:a.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${a.suffix}"`:a.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${a.includes}"`:a.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${a.pattern}`:`Virheellinen ${o[a.format]??t.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${t.divisor} monikerta`;case"unrecognized_keys":return`${t.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${m(t.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function Op(){return{localeError:Ey()}}var Oy=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function r(t){return e[t]??null}let o={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},n={string:"cha\xEEne",number:"nombre",int:"entier",boolean:"bool\xE9en",bigint:"grand entier",symbol:"symbole",undefined:"ind\xE9fini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Entr\xE9e invalide : instanceof ${t.expected} attendu, ${s} re\xE7u`:`Entr\xE9e invalide : ${a} attendu, ${s} re\xE7u`}case"invalid_value":return t.values.length===1?`Entr\xE9e invalide : ${x(t.values[0])} attendu`:`Option invalide : une valeur parmi ${m(t.values,"|")} attendue`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`Trop grand : ${n[t.origin]??"valeur"} doit ${i.verb} ${a}${t.maximum.toString()} ${i.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${n[t.origin]??"valeur"} doit \xEAtre ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`Trop petit : ${n[t.origin]??"valeur"} doit ${i.verb} ${a}${t.minimum.toString()} ${i.unit}`:`Trop petit : ${n[t.origin]??"valeur"} doit \xEAtre ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${a.prefix}"`:a.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${a.suffix}"`:a.format==="includes"?`Cha\xEEne invalide : doit inclure "${a.includes}"`:a.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${a.pattern}`:`${o[a.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${t.divisor}`;case"unrecognized_keys":return`Cl\xE9${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${m(t.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${t.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entr\xE9e invalide"}}};function Ap(){return{localeError:Oy()}}var Ay=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function r(t){return e[t]??null}let o={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},n={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Entr\xE9e invalide : attendu instanceof ${t.expected}, re\xE7u ${s}`:`Entr\xE9e invalide : attendu ${a}, re\xE7u ${s}`}case"invalid_value":return t.values.length===1?`Entr\xE9e invalide : attendu ${x(t.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"\u2264":"<",i=r(t.origin);return i?`Trop grand : attendu que ${t.origin??"la valeur"} ait ${a}${t.maximum.toString()} ${i.unit}`:`Trop grand : attendu que ${t.origin??"la valeur"} soit ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?"\u2265":">",i=r(t.origin);return i?`Trop petit : attendu que ${t.origin} ait ${a}${t.minimum.toString()} ${i.unit}`:`Trop petit : attendu que ${t.origin} soit ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${a.prefix}"`:a.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${a.suffix}"`:a.format==="includes"?`Cha\xEEne invalide : doit inclure "${a.includes}"`:a.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${a.pattern}`:`${o[a.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${t.divisor}`;case"unrecognized_keys":return`Cl\xE9${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${m(t.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${t.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entr\xE9e invalide"}}};function Up(){return{localeError:Ay()}}var Uy=()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},r={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},o=u=>u?e[u]:void 0,n=u=>{let c=o(u);return c?c.label:u??e.unknown.label},t=u=>`\u05D4${n(u)}`,a=u=>(o(u)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",i=u=>u?r[u]??null:null,s={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},l={nan:"NaN"};return u=>{switch(u.code){case"invalid_type":{let c=u.expected,d=l[c??""]??n(c),p=v(u.input),g=l[p]??e[p]?.label??p;return/^[A-Z]/.test(u.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${u.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${g}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${d}, \u05D4\u05EA\u05E7\u05D1\u05DC ${g}`}case"invalid_value":{if(u.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${x(u.values[0])}`;let c=u.values.map(g=>x(g));if(u.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${c[0]} \u05D0\u05D5 ${c[1]}`;let d=c[c.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${c.slice(0,-1).join(", ")} \u05D0\u05D5 ${d}`}case"too_big":{let c=i(u.origin),d=t(u.origin??"value");if(u.origin==="string")return`${c?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.maximum.toString()} ${c?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(u.origin==="number"){let h=u.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${u.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${h}`}if(u.origin==="array"||u.origin==="set"){let h=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",I=u.inclusive?`${u.maximum} ${c?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${u.maximum} ${c?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} ${h} \u05DC\u05D4\u05DB\u05D9\u05DC ${I}`.trim()}let p=u.inclusive?"<=":"<",g=a(u.origin??"value");return c?.unit?`${c.longLabel} \u05DE\u05D3\u05D9: ${d} ${g} ${p}${u.maximum.toString()} ${c.unit}`:`${c?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${d} ${g} ${p}${u.maximum.toString()}`}case"too_small":{let c=i(u.origin),d=t(u.origin??"value");if(u.origin==="string")return`${c?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.minimum.toString()} ${c?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(u.origin==="number"){let h=u.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${u.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${h}`}if(u.origin==="array"||u.origin==="set"){let h=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(u.minimum===1&&u.inclusive){let w=(u.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${h} \u05DC\u05D4\u05DB\u05D9\u05DC ${w}`}let I=u.inclusive?`${u.minimum} ${c?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${u.minimum} ${c?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${h} \u05DC\u05D4\u05DB\u05D9\u05DC ${I}`.trim()}let p=u.inclusive?">=":">",g=a(u.origin??"value");return c?.unit?`${c.shortLabel} \u05DE\u05D3\u05D9: ${d} ${g} ${p}${u.minimum.toString()} ${c.unit}`:`${c?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${d} ${g} ${p}${u.minimum.toString()}`}case"invalid_format":{let c=u;if(c.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${c.prefix}"`;if(c.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${c.suffix}"`;if(c.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${c.includes}"`;if(c.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 ${c.pattern}`;let d=s[c.format],p=d?.label??c.format,h=(d?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${p} \u05DC\u05D0 ${h}`}case"not_multiple_of":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 ${u.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${u.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${u.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${m(u.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${t(u.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function jp(){return{localeError:Uy()}}var jy=()=>{let e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function r(t){return e[t]??null}let o={regex:"unos",email:"email adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},n={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${t.expected}, a primljeno je ${s}`:`Neispravan unos: o\u010Dekuje se ${a}, a primljeno je ${s}`}case"invalid_value":return t.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${x(t.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin),s=n[t.origin]??t.origin;return i?`Preveliko: o\u010Dekivano da ${s??"vrijednost"} ima ${a}${t.maximum.toString()} ${i.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${s??"vrijednost"} bude ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin),s=n[t.origin]??t.origin;return i?`Premalo: o\u010Dekivano da ${s} ima ${a}${t.minimum.toString()} ${i.unit}`:`Premalo: o\u010Dekivano da ${s} bude ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Neispravan tekst: mora zapo\u010Dinjati s "${a.prefix}"`:a.format==="ends_with"?`Neispravan tekst: mora zavr\u0161avati s "${a.suffix}"`:a.format==="includes"?`Neispravan tekst: mora sadr\u017Eavati "${a.includes}"`:a.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${a.pattern}`:`Neispravna ${o[a.format]??t.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\u0161ekratnik od ${t.divisor}`;case"unrecognized_keys":return`Neprepoznat${t.keys.length>1?"i klju\u010Devi":" klju\u010D"}: ${m(t.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${n[t.origin]??t.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${n[t.origin]??t.origin}`;default:return"Neispravan unos"}}};function Lp(){return{localeError:jy()}}var Ly=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function r(t){return e[t]??null}let o={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},n={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${t.expected}, a kapott \xE9rt\xE9k ${s}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${a}, a kapott \xE9rt\xE9k ${s}`}case"invalid_value":return t.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${x(t.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`T\xFAl nagy: ${t.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${a}${t.maximum.toString()} ${i.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${t.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${t.origin} m\xE9rete t\xFAl kicsi ${a}${t.minimum.toString()} ${i.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${t.origin} t\xFAl kicsi ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\xC9rv\xE9nytelen string: "${a.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:a.format==="ends_with"?`\xC9rv\xE9nytelen string: "${a.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:a.format==="includes"?`\xC9rv\xE9nytelen string: "${a.includes}" \xE9rt\xE9ket kell tartalmaznia`:a.format==="regex"?`\xC9rv\xE9nytelen string: ${a.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${o[a.format]??t.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${t.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${t.keys.length>1?"s":""}: ${m(t.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${t.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${t.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function Np(){return{localeError:Ly()}}function Rp(e,r,o){return Math.abs(e)===1?r:o}function $t(e){if(!e)return"";let r=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],o=e[e.length-1];return e+(r.includes(o)?"\u0576":"\u0568")}var Ny=()=>{let e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function r(t){return e[t]??null}let o={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},n={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${t.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${a}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`}case"invalid_value":return t.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${x(t.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);if(i){let s=Number(t.maximum),l=Rp(s,i.unit.one,i.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${$t(t.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${a}${t.maximum.toString()} ${l}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${$t(t.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);if(i){let s=Number(t.minimum),l=Rp(s,i.unit.one,i.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${$t(t.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${a}${t.minimum.toString()} ${l}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${$t(t.origin)} \u056C\u056B\u0576\u056B ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${a.prefix}"-\u0578\u057E`:a.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${a.suffix}"-\u0578\u057E`:a.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${a.includes}"`:a.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${a.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${o[a.format]??t.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${t.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${t.keys.length>1?"\u0576\u0565\u0580":""}. ${m(t.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${$t(t.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${$t(t.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function Zp(){return{localeError:Ny()}}var Ry=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function r(t){return e[t]??null}let o={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},n={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Input tidak valid: diharapkan instanceof ${t.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${a}, diterima ${s}`}case"invalid_value":return t.values.length===1?`Input tidak valid: diharapkan ${x(t.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`Terlalu besar: diharapkan ${t.origin??"value"} memiliki ${a}${t.maximum.toString()} ${i.unit??"elemen"}`:`Terlalu besar: diharapkan ${t.origin??"value"} menjadi ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`Terlalu kecil: diharapkan ${t.origin} memiliki ${a}${t.minimum.toString()} ${i.unit}`:`Terlalu kecil: diharapkan ${t.origin} menjadi ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`String tidak valid: harus dimulai dengan "${a.prefix}"`:a.format==="ends_with"?`String tidak valid: harus berakhir dengan "${a.suffix}"`:a.format==="includes"?`String tidak valid: harus menyertakan "${a.includes}"`:a.format==="regex"?`String tidak valid: harus sesuai pola ${a.pattern}`:`${o[a.format]??t.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${t.keys.length>1?"s":""}: ${m(t.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${t.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${t.origin}`;default:return"Input tidak valid"}}};function Mp(){return{localeError:Ry()}}var Zy=()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function r(t){return e[t]??null}let o={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"},n={nan:"NaN",number:"n\xFAmer",array:"fylki"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera instanceof ${t.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera ${a}`}case"invalid_value":return t.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${x(t.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin??"gildi"} hafi ${a}${t.maximum.toString()} ${i.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin??"gildi"} s\xE9 ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin} hafi ${a}${t.minimum.toString()} ${i.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin} s\xE9 ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${a.prefix}"`:a.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${a.suffix}"`:a.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${a.includes}"`:a.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${a.pattern}`:`Rangt ${o[a.format]??t.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${t.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${t.keys.length>1?"ir lyklar":"ur lykill"}: ${m(t.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${t.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${t.origin}`;default:return"Rangt gildi"}}};function Fp(){return{localeError:Zy()}}var My=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function r(t){return e[t]??null}let o={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},n={nan:"NaN",number:"numero",array:"vettore"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Input non valido: atteso instanceof ${t.expected}, ricevuto ${s}`:`Input non valido: atteso ${a}, ricevuto ${s}`}case"invalid_value":return t.values.length===1?`Input non valido: atteso ${x(t.values[0])}`:`Opzione non valida: atteso uno tra ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`Troppo grande: ${t.origin??"valore"} deve avere ${a}${t.maximum.toString()} ${i.unit??"elementi"}`:`Troppo grande: ${t.origin??"valore"} deve essere ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`Troppo piccolo: ${t.origin} deve avere ${a}${t.minimum.toString()} ${i.unit}`:`Troppo piccolo: ${t.origin} deve essere ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Stringa non valida: deve iniziare con "${a.prefix}"`:a.format==="ends_with"?`Stringa non valida: deve terminare con "${a.suffix}"`:a.format==="includes"?`Stringa non valida: deve includere "${a.includes}"`:a.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${a.pattern}`:`Input non valido: ${o[a.format]??t.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${t.divisor}`;case"unrecognized_keys":return`Chiav${t.keys.length>1?"i":"e"} non riconosciut${t.keys.length>1?"e":"a"}: ${m(t.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${t.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${t.origin}`;default:return"Input non valido"}}};function Bp(){return{localeError:My()}}var Fy=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function r(t){return e[t]??null}let o={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},n={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${t.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${a}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return t.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${x(t.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${m(t.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let a=t.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",i=r(t.origin);return i?`\u5927\u304D\u3059\u304E\u308B\u5024: ${t.origin??"\u5024"}\u306F${t.maximum.toString()}${i.unit??"\u8981\u7D20"}${a}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${t.origin??"\u5024"}\u306F${t.maximum.toString()}${a}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let a=t.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",i=r(t.origin);return i?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${t.origin}\u306F${t.minimum.toString()}${i.unit}${a}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${t.origin}\u306F${t.minimum.toString()}${a}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${a.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:a.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${a.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:a.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${a.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:a.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${a.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${o[a.format]??t.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${t.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${t.keys.length>1?"\u7FA4":""}: ${m(t.keys,"\u3001")}`;case"invalid_key":return`${t.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${t.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function qp(){return{localeError:Fy()}}var By=()=>{let e={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function r(t){return e[t]??null}let o={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",json_string:"JSON \u10D5\u10D4\u10DA\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},n={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10D5\u10D4\u10DA\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${t.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${a}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`}case"invalid_value":return t.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${x(t.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${m(t.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${i.verb} ${a}${t.maximum.toString()} ${i.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin} ${i.verb} ${a}${t.minimum.toString()} ${i.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin} \u10D8\u10E7\u10DD\u10E1 ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${a.prefix}"-\u10D8\u10D7`:a.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${a.suffix}"-\u10D8\u10D7`:a.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${a.includes}"-\u10E1`:a.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${a.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${o[a.format]??t.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${t.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${t.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${m(t.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${t.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${t.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function Vp(){return{localeError:By()}}var qy=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function r(t){return e[t]??null}let o={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},n={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${t.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${a} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`}case"invalid_value":return t.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${x(t.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${a} ${t.maximum.toString()} ${i.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${a} ${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin} ${a} ${t.minimum.toString()} ${i.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin} ${a} ${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${a.prefix}"`:a.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${a.suffix}"`:a.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${a.includes}"`:a.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${a.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${o[a.format]??t.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${t.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${m(t.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${t.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${t.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function Fo(){return{localeError:qy()}}function Wp(){return Fo()}var Vy=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function r(t){return e[t]??null}let o={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},n={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${t.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${a}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`}case"invalid_value":return t.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${x(t.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${m(t.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let a=t.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",i=a==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=r(t.origin),l=s?.unit??"\uC694\uC18C";return s?`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${t.maximum.toString()}${l} ${a}${i}`:`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${t.maximum.toString()} ${a}${i}`}case"too_small":{let a=t.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",i=a==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=r(t.origin),l=s?.unit??"\uC694\uC18C";return s?`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${t.minimum.toString()}${l} ${a}${i}`:`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${t.minimum.toString()} ${a}${i}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${a.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:a.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${a.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:a.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${a.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:a.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${a.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${o[a.format]??t.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${t.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${m(t.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${t.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${t.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function Hp(){return{localeError:Vy()}}var xr=e=>e.charAt(0).toUpperCase()+e.slice(1);function Gp(e){let r=Math.abs(e),o=r%10,n=r%100;return n>=11&&n<=19||o===0?"many":o===1?"one":"few"}var Wy=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function r(t,a,i,s){let l=e[t]??null;return l===null?l:{unit:l.unit[a],verb:l.verb[s][i?"inclusive":"notInclusive"]}}let o={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},n={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Gautas tipas ${s}, o tik\u0117tasi - instanceof ${t.expected}`:`Gautas tipas ${s}, o tik\u0117tasi - ${a}`}case"invalid_value":return t.values.length===1?`Privalo b\u016Bti ${x(t.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${m(t.values,"|")} pasirinkim\u0173`;case"too_big":{let a=n[t.origin]??t.origin,i=r(t.origin,Gp(Number(t.maximum)),t.inclusive??!1,"smaller");if(i?.verb)return`${xr(a??t.origin??"reik\u0161m\u0117")} ${i.verb} ${t.maximum.toString()} ${i.unit??"element\u0173"}`;let s=t.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${xr(a??t.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${t.maximum.toString()} ${i?.unit}`}case"too_small":{let a=n[t.origin]??t.origin,i=r(t.origin,Gp(Number(t.minimum)),t.inclusive??!1,"bigger");if(i?.verb)return`${xr(a??t.origin??"reik\u0161m\u0117")} ${i.verb} ${t.minimum.toString()} ${i.unit??"element\u0173"}`;let s=t.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${xr(a??t.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${t.minimum.toString()} ${i?.unit}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${a.prefix}"`:a.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${a.suffix}"`:a.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${a.includes}"`:a.format==="regex"?`Eilut\u0117 privalo atitikti ${a.pattern}`:`Neteisingas ${o[a.format]??t.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${t.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${t.keys.length>1?"i":"as"} rakt${t.keys.length>1?"ai":"as"}: ${m(t.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let a=n[t.origin]??t.origin;return`${xr(a??t.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function Jp(){return{localeError:Wy()}}var Hy=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function r(t){return e[t]??null}let o={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},n={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${t.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${a}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`}case"invalid_value":return t.values.length===1?`Invalid input: expected ${x(t.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${a}${t.maximum.toString()} ${i.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin} \u0434\u0430 \u0438\u043C\u0430 ${a}${t.minimum.toString()} ${i.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${a.prefix}"`:a.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${a.suffix}"`:a.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${a.includes}"`:a.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${a.pattern}`:`Invalid ${o[a.format]??t.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${m(t.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${t.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${t.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function Kp(){return{localeError:Hy()}}var Gy=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function r(t){return e[t]??null}let o={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},n={nan:"NaN",number:"nombor"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Input tidak sah: dijangka instanceof ${t.expected}, diterima ${s}`:`Input tidak sah: dijangka ${a}, diterima ${s}`}case"invalid_value":return t.values.length===1?`Input tidak sah: dijangka ${x(t.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`Terlalu besar: dijangka ${t.origin??"nilai"} ${i.verb} ${a}${t.maximum.toString()} ${i.unit??"elemen"}`:`Terlalu besar: dijangka ${t.origin??"nilai"} adalah ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`Terlalu kecil: dijangka ${t.origin} ${i.verb} ${a}${t.minimum.toString()} ${i.unit}`:`Terlalu kecil: dijangka ${t.origin} adalah ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`String tidak sah: mesti bermula dengan "${a.prefix}"`:a.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${a.suffix}"`:a.format==="includes"?`String tidak sah: mesti mengandungi "${a.includes}"`:a.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${a.pattern}`:`${o[a.format]??t.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${m(t.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${t.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${t.origin}`;default:return"Input tidak sah"}}};function Xp(){return{localeError:Gy()}}var Jy=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function r(t){return e[t]??null}let o={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},n={nan:"NaN",number:"getal"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Ongeldige invoer: verwacht instanceof ${t.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${a}, ontving ${s}`}case"invalid_value":return t.values.length===1?`Ongeldige invoer: verwacht ${x(t.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin),s=t.origin==="date"?"laat":t.origin==="string"?"lang":"groot";return i?`Te ${s}: verwacht dat ${t.origin??"waarde"} ${a}${t.maximum.toString()} ${i.unit??"elementen"} ${i.verb}`:`Te ${s}: verwacht dat ${t.origin??"waarde"} ${a}${t.maximum.toString()} is`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin),s=t.origin==="date"?"vroeg":t.origin==="string"?"kort":"klein";return i?`Te ${s}: verwacht dat ${t.origin} ${a}${t.minimum.toString()} ${i.unit} ${i.verb}`:`Te ${s}: verwacht dat ${t.origin} ${a}${t.minimum.toString()} is`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Ongeldige tekst: moet met "${a.prefix}" beginnen`:a.format==="ends_with"?`Ongeldige tekst: moet op "${a.suffix}" eindigen`:a.format==="includes"?`Ongeldige tekst: moet "${a.includes}" bevatten`:a.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${a.pattern}`:`Ongeldig: ${o[a.format]??t.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${t.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${t.keys.length>1?"s":""}: ${m(t.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${t.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${t.origin}`;default:return"Ongeldige invoer"}}};function Qp(){return{localeError:Jy()}}var Ky=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function r(t){return e[t]??null}let o={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},n={nan:"NaN",number:"tall",array:"liste"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Ugyldig input: forventet instanceof ${t.expected}, fikk ${s}`:`Ugyldig input: forventet ${a}, fikk ${s}`}case"invalid_value":return t.values.length===1?`Ugyldig verdi: forventet ${x(t.values[0])}`:`Ugyldig valg: forventet en av ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`For stor(t): forventet ${t.origin??"value"} til \xE5 ha ${a}${t.maximum.toString()} ${i.unit??"elementer"}`:`For stor(t): forventet ${t.origin??"value"} til \xE5 ha ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`For lite(n): forventet ${t.origin} til \xE5 ha ${a}${t.minimum.toString()} ${i.unit}`:`For lite(n): forventet ${t.origin} til \xE5 ha ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${a.prefix}"`:a.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${a.suffix}"`:a.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${a.includes}"`:a.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${a.pattern}`:`Ugyldig ${o[a.format]??t.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${m(t.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${t.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${t.origin}`;default:return"Ugyldig input"}}};function Yp(){return{localeError:Ky()}}var Xy=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function r(t){return e[t]??null}let o={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},n={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`F\xE2sit giren: umulan instanceof ${t.expected}, al\u0131nan ${s}`:`F\xE2sit giren: umulan ${a}, al\u0131nan ${s}`}case"invalid_value":return t.values.length===1?`F\xE2sit giren: umulan ${x(t.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`Fazla b\xFCy\xFCk: ${t.origin??"value"}, ${a}${t.maximum.toString()} ${i.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${t.origin??"value"}, ${a}${t.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`Fazla k\xFC\xE7\xFCk: ${t.origin}, ${a}${t.minimum.toString()} ${i.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${t.origin}, ${a}${t.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let a=t;return a.format==="starts_with"?`F\xE2sit metin: "${a.prefix}" ile ba\u015Flamal\u0131.`:a.format==="ends_with"?`F\xE2sit metin: "${a.suffix}" ile bitmeli.`:a.format==="includes"?`F\xE2sit metin: "${a.includes}" ihtiv\xE2 etmeli.`:a.format==="regex"?`F\xE2sit metin: ${a.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${o[a.format]??t.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${t.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${t.keys.length>1?"s":""}: ${m(t.keys,", ")}`;case"invalid_key":return`${t.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${t.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function em(){return{localeError:Xy()}}var Qy=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function r(t){return e[t]??null}let o={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},n={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${t.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${a} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return t.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${x(t.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${m(t.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${t.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${a}${t.maximum.toString()} ${i.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${t.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${a}${t.maximum.toString()} \u0648\u064A`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${t.origin} \u0628\u0627\u06CC\u062F ${a}${t.minimum.toString()} ${i.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${t.origin} \u0628\u0627\u06CC\u062F ${a}${t.minimum.toString()} \u0648\u064A`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${a.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:a.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${a.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:a.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${a.includes}" \u0648\u0644\u0631\u064A`:a.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${a.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${o[a.format]??t.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${t.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${t.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${m(t.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${t.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${t.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function tm(){return{localeError:Qy()}}var Yy=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function r(t){return e[t]??null}let o={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},n={nan:"NaN",number:"liczba",array:"tablica"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${t.expected}, otrzymano ${s}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${a}, otrzymano ${s}`}case"invalid_value":return t.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${x(t.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${a}${t.maximum.toString()} ${i.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${a}${t.minimum.toString()} ${i.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${a.prefix}"`:a.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${a.suffix}"`:a.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${a.includes}"`:a.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${a.pattern}`:`Nieprawid\u0142ow(y/a/e) ${o[a.format]??t.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${t.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${t.keys.length>1?"s":""}: ${m(t.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${t.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${t.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function rm(){return{localeError:Yy()}}var ek=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function r(t){return e[t]??null}let o={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},n={nan:"NaN",number:"n\xFAmero",null:"nulo"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Tipo inv\xE1lido: esperado instanceof ${t.expected}, recebido ${s}`:`Tipo inv\xE1lido: esperado ${a}, recebido ${s}`}case"invalid_value":return t.values.length===1?`Entrada inv\xE1lida: esperado ${x(t.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`Muito grande: esperado que ${t.origin??"valor"} tivesse ${a}${t.maximum.toString()} ${i.unit??"elementos"}`:`Muito grande: esperado que ${t.origin??"valor"} fosse ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`Muito pequeno: esperado que ${t.origin} tivesse ${a}${t.minimum.toString()} ${i.unit}`:`Muito pequeno: esperado que ${t.origin} fosse ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${a.prefix}"`:a.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${a.suffix}"`:a.format==="includes"?`Texto inv\xE1lido: deve incluir "${a.includes}"`:a.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${a.pattern}`:`${o[a.format]??t.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${t.divisor}`;case"unrecognized_keys":return`Chave${t.keys.length>1?"s":""} desconhecida${t.keys.length>1?"s":""}: ${m(t.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${t.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${t.origin}`;default:return"Campo inv\xE1lido"}}};function om(){return{localeError:ek()}}var tk=()=>{let e={string:{unit:"caractere",verb:"s\u0103 aib\u0103"},file:{unit:"octe\u021Bi",verb:"s\u0103 aib\u0103"},array:{unit:"elemente",verb:"s\u0103 aib\u0103"},set:{unit:"elemente",verb:"s\u0103 aib\u0103"},map:{unit:"intr\u0103ri",verb:"s\u0103 aib\u0103"}};function r(t){return e[t]??null}let o={regex:"intrare",email:"adres\u0103 de email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dat\u0103 \u0219i or\u0103 ISO",date:"dat\u0103 ISO",time:"or\u0103 ISO",duration:"durat\u0103 ISO",ipv4:"adres\u0103 IPv4",ipv6:"adres\u0103 IPv6",mac:"adres\u0103 MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"\u0219ir codat base64",base64url:"\u0219ir codat base64url",json_string:"\u0219ir JSON",e164:"num\u0103r E.164",jwt:"JWT",template_literal:"intrare"},n={nan:"NaN",string:"\u0219ir",number:"num\u0103r",boolean:"boolean",function:"func\u021Bie",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"num\u0103r mare",void:"void",never:"never",map:"hart\u0103",set:"set"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return`Intrare invalid\u0103: a\u0219teptat ${a}, primit ${s}`}case"invalid_value":return t.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${x(t.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`Prea mare: a\u0219teptat ca ${t.origin??"valoarea"} ${i.verb} ${a}${t.maximum.toString()} ${i.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${t.origin??"valoarea"} s\u0103 fie ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`Prea mic: a\u0219teptat ca ${t.origin} ${i.verb} ${a}${t.minimum.toString()} ${i.unit}`:`Prea mic: a\u0219teptat ca ${t.origin} s\u0103 fie ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${a.prefix}"`:a.format==="ends_with"?`\u0218ir invalid: trebuie s\u0103 se termine cu "${a.suffix}"`:a.format==="includes"?`\u0218ir invalid: trebuie s\u0103 includ\u0103 "${a.includes}"`:a.format==="regex"?`\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${a.pattern}`:`Format invalid: ${o[a.format]??t.format}`}case"not_multiple_of":return`Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${t.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${m(t.keys,", ")}`;case"invalid_key":return`Cheie invalid\u0103 \xEEn ${t.origin}`;case"invalid_union":return"Intrare invalid\u0103";case"invalid_element":return`Valoare invalid\u0103 \xEEn ${t.origin}`;default:return"Intrare invalid\u0103"}}};function nm(){return{localeError:tk()}}function am(e,r,o,n){let t=Math.abs(e),a=t%10,i=t%100;return i>=11&&i<=19?n:a===1?r:a>=2&&a<=4?o:n}var rk=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function r(t){return e[t]??null}let o={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},n={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${t.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${a}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`}case"invalid_value":return t.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${x(t.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);if(i){let s=Number(t.maximum),l=am(s,i.unit.one,i.unit.few,i.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${a}${t.maximum.toString()} ${l}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);if(i){let s=Number(t.minimum),l=am(s,i.unit.one,i.unit.few,i.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${a}${t.minimum.toString()} ${l}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin} \u0431\u0443\u0434\u0435\u0442 ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${a.prefix}"`:a.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${a.suffix}"`:a.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${a.includes}"`:a.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${a.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${o[a.format]??t.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${t.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${t.keys.length>1?"\u0438":""}: ${m(t.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${t.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${t.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function im(){return{localeError:rk()}}var ok=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function r(t){return e[t]??null}let o={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},n={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${t.expected}, prejeto ${s}`:`Neveljaven vnos: pri\u010Dakovano ${a}, prejeto ${s}`}case"invalid_value":return t.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${x(t.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`Preveliko: pri\u010Dakovano, da bo ${t.origin??"vrednost"} imelo ${a}${t.maximum.toString()} ${i.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${t.origin??"vrednost"} ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`Premajhno: pri\u010Dakovano, da bo ${t.origin} imelo ${a}${t.minimum.toString()} ${i.unit}`:`Premajhno: pri\u010Dakovano, da bo ${t.origin} ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${a.prefix}"`:a.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${a.suffix}"`:a.format==="includes"?`Neveljaven niz: mora vsebovati "${a.includes}"`:a.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${a.pattern}`:`Neveljaven ${o[a.format]??t.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${t.divisor}`;case"unrecognized_keys":return`Neprepoznan${t.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${m(t.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${t.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${t.origin}`;default:return"Neveljaven vnos"}}};function sm(){return{localeError:ok()}}var nk=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function r(t){return e[t]??null}let o={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},n={nan:"NaN",number:"antal",array:"lista"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${t.expected}, fick ${s}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${a}, fick ${s}`}case"invalid_value":return t.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${x(t.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`F\xF6r stor(t): f\xF6rv\xE4ntade ${t.origin??"v\xE4rdet"} att ha ${a}${t.maximum.toString()} ${i.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${t.origin??"v\xE4rdet"} att ha ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`F\xF6r lite(t): f\xF6rv\xE4ntade ${t.origin??"v\xE4rdet"} att ha ${a}${t.minimum.toString()} ${i.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${t.origin??"v\xE4rdet"} att ha ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${a.prefix}"`:a.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${a.suffix}"`:a.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${a.includes}"`:a.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${a.pattern}"`:`Ogiltig(t) ${o[a.format]??t.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${m(t.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${t.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${t.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function lm(){return{localeError:nk()}}var ak=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function r(t){return e[t]??null}let o={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},n={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${t.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`}case"invalid_value":return t.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${x(t.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${m(t.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${a}${t.maximum.toString()} ${i.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${a}${t.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin} ${a}${t.minimum.toString()} ${i.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin} ${a}${t.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${a.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:a.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${a.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:a.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${a.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:a.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${a.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${o[a.format]??t.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${t.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${t.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${m(t.keys,", ")}`;case"invalid_key":return`${t.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${t.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function um(){return{localeError:ak()}}var ik=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function r(t){return e[t]??null}let o={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},n={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${t.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${a} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`}case"invalid_value":return t.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${x(t.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",i=r(t.origin);return i?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${a} ${t.maximum.toString()} ${i.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${a} ${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",i=r(t.origin);return i?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${a} ${t.minimum.toString()} ${i.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${a} ${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${a.prefix}"`:a.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${a.suffix}"`:a.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${a.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:a.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${a.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${o[a.format]??t.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${t.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${m(t.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${t.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${t.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function cm(){return{localeError:ik()}}var sk=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function r(t){return e[t]??null}let o={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},n={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${t.expected}, al\u0131nan ${s}`:`Ge\xE7ersiz de\u011Fer: beklenen ${a}, al\u0131nan ${s}`}case"invalid_value":return t.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${x(t.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`\xC7ok b\xFCy\xFCk: beklenen ${t.origin??"de\u011Fer"} ${a}${t.maximum.toString()} ${i.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${t.origin??"de\u011Fer"} ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`\xC7ok k\xFC\xE7\xFCk: beklenen ${t.origin} ${a}${t.minimum.toString()} ${i.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${t.origin} ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Ge\xE7ersiz metin: "${a.prefix}" ile ba\u015Flamal\u0131`:a.format==="ends_with"?`Ge\xE7ersiz metin: "${a.suffix}" ile bitmeli`:a.format==="includes"?`Ge\xE7ersiz metin: "${a.includes}" i\xE7ermeli`:a.format==="regex"?`Ge\xE7ersiz metin: ${a.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${o[a.format]??t.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${t.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${t.keys.length>1?"lar":""}: ${m(t.keys,", ")}`;case"invalid_key":return`${t.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${t.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function dm(){return{localeError:sk()}}var lk=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function r(t){return e[t]??null}let o={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},n={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${t.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${a}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`}case"invalid_value":return t.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${x(t.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${i.verb} ${a}${t.maximum.toString()} ${i.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin} ${i.verb} ${a}${t.minimum.toString()} ${i.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin} \u0431\u0443\u0434\u0435 ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${a.prefix}"`:a.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${a.suffix}"`:a.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${a.includes}"`:a.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${a.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${o[a.format]??t.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${t.keys.length>1?"\u0456":""}: ${m(t.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${t.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${t.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function Bo(){return{localeError:lk()}}function fm(){return Bo()}var uk=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function r(t){return e[t]??null}let o={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},n={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${t.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${a} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return t.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${x(t.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${m(t.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${t.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${a}${t.maximum.toString()} ${i.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${t.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${a}${t.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${t.origin} \u06A9\u06D2 ${a}${t.minimum.toString()} ${i.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${t.origin} \u06A9\u0627 ${a}${t.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${a.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:a.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${a.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:a.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${a.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:a.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${a.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${o[a.format]??t.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${t.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${t.keys.length>1?"\u0632":""}: ${m(t.keys,"\u060C ")}`;case"invalid_key":return`${t.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${t.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function pm(){return{localeError:uk()}}var ck=()=>{let e={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"},map:{unit:"yozuv",verb:"bo\u2018lishi kerak"}};function r(t){return e[t]??null}let o={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},n={nan:"NaN",number:"raqam",array:"massiv"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${t.expected}, qabul qilingan ${s}`:`Noto\u2018g\u2018ri kirish: kutilgan ${a}, qabul qilingan ${s}`}case"invalid_value":return t.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${x(t.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`Juda katta: kutilgan ${t.origin??"qiymat"} ${a}${t.maximum.toString()} ${i.unit} ${i.verb}`:`Juda katta: kutilgan ${t.origin??"qiymat"} ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`Juda kichik: kutilgan ${t.origin} ${a}${t.minimum.toString()} ${i.unit} ${i.verb}`:`Juda kichik: kutilgan ${t.origin} ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${a.prefix}" bilan boshlanishi kerak`:a.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${a.suffix}" bilan tugashi kerak`:a.format==="includes"?`Noto\u2018g\u2018ri satr: "${a.includes}" ni o\u2018z ichiga olishi kerak`:a.format==="regex"?`Noto\u2018g\u2018ri satr: ${a.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${o[a.format]??t.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${t.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${t.keys.length>1?"lar":""}: ${m(t.keys,", ")}`;case"invalid_key":return`${t.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${t.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function mm(){return{localeError:ck()}}var dk=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function r(t){return e[t]??null}let o={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},n={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${t.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${a}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`}case"invalid_value":return t.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${x(t.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${t.origin??"gi\xE1 tr\u1ECB"} ${i.verb} ${a}${t.maximum.toString()} ${i.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${t.origin??"gi\xE1 tr\u1ECB"} ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${t.origin} ${i.verb} ${a}${t.minimum.toString()} ${i.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${t.origin} ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${a.prefix}"`:a.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${a.suffix}"`:a.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${a.includes}"`:a.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${a.pattern}`:`${o[a.format]??t.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${t.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${m(t.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${t.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${t.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function gm(){return{localeError:dk()}}var fk=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function r(t){return e[t]??null}let o={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},n={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${t.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${a}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`}case"invalid_value":return t.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${x(t.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${t.origin??"\u503C"} ${a}${t.maximum.toString()} ${i.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${t.origin??"\u503C"} ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${t.origin} ${a}${t.minimum.toString()} ${i.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${t.origin} ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${a.prefix}" \u5F00\u5934`:a.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${a.suffix}" \u7ED3\u5C3E`:a.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${a.includes}"`:a.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${a.pattern}`:`\u65E0\u6548${o[a.format]??t.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${t.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${m(t.keys,", ")}`;case"invalid_key":return`${t.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${t.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function hm(){return{localeError:fk()}}var pk=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function r(t){return e[t]??null}let o={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},n={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${t.expected}\uFF0C\u4F46\u6536\u5230 ${s}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${a}\uFF0C\u4F46\u6536\u5230 ${s}`}case"invalid_value":return t.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${x(t.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${t.origin??"\u503C"} \u61C9\u70BA ${a}${t.maximum.toString()} ${i.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${t.origin??"\u503C"} \u61C9\u70BA ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${t.origin} \u61C9\u70BA ${a}${t.minimum.toString()} ${i.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${t.origin} \u61C9\u70BA ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${a.prefix}" \u958B\u982D`:a.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${a.suffix}" \u7D50\u5C3E`:a.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${a.includes}"`:a.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${a.pattern}`:`\u7121\u6548\u7684 ${o[a.format]??t.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${t.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${t.keys.length>1?"\u5011":""}\uFF1A${m(t.keys,"\u3001")}`;case"invalid_key":return`${t.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${t.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function xm(){return{localeError:pk()}}var mk=()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function r(t){return e[t]??null}let o={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},n={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${t.expected}, \xE0m\u1ECD\u0300 a r\xED ${s}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${a}, \xE0m\u1ECD\u0300 a r\xED ${s}`}case"invalid_value":return t.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${x(t.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${t.origin??"iye"} ${i.verb} ${a}${t.maximum} ${i.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${a}${t.maximum}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${t.origin} ${i.verb} ${a}${t.minimum} ${i.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${a}${t.minimum}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${a.prefix}"`:a.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${a.suffix}"`:a.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${a.includes}"`:a.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${a.pattern}`:`A\u1E63\xEC\u1E63e: ${o[a.format]??t.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${t.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${m(t.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${t.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${t.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function vm(){return{localeError:mk()}}var bm,hl=Symbol("ZodOutput"),xl=Symbol("ZodInput"),qo=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(r,...o){let n=o[0];return this._map.set(r,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,r),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(r){let o=this._map.get(r);return o&&typeof o=="object"&&"id"in o&&this._idmap.delete(o.id),this._map.delete(r),this}get(r){let o=r._zod.parent;if(o){let n={...this.get(o)??{}};delete n.id;let t={...n,...this._map.get(r)};return Object.keys(t).length?t:void 0}return this._map.get(r)}has(r){return this._map.has(r)}};function Vo(){return new qo}(bm=globalThis).__zod_globalRegistry??(bm.__zod_globalRegistry=Vo());var q=globalThis.__zod_globalRegistry;function vl(e,r){return new e({type:"string",...k(r)})}function bl(e,r){return new e({type:"string",coerce:!0,...k(r)})}function Wo(e,r){return new e({type:"string",format:"email",check:"string_format",abort:!1,...k(r)})}function br(e,r){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...k(r)})}function Ho(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...k(r)})}function Go(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...k(r)})}function Jo(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...k(r)})}function Ko(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...k(r)})}function yr(e,r){return new e({type:"string",format:"url",check:"string_format",abort:!1,...k(r)})}function Xo(e,r){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...k(r)})}function Qo(e,r){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...k(r)})}function Yo(e,r){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...k(r)})}function en(e,r){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...k(r)})}function tn(e,r){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...k(r)})}function rn(e,r){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...k(r)})}function on(e,r){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...k(r)})}function nn(e,r){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...k(r)})}function an(e,r){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...k(r)})}function yl(e,r){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...k(r)})}function sn(e,r){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...k(r)})}function ln(e,r){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...k(r)})}function un(e,r){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...k(r)})}function cn(e,r){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...k(r)})}function dn(e,r){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...k(r)})}function fn(e,r){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...k(r)})}var kl={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function $l(e,r){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...k(r)})}function _l(e,r){return new e({type:"string",format:"date",check:"string_format",...k(r)})}function wl(e,r){return new e({type:"string",format:"time",check:"string_format",precision:null,...k(r)})}function Sl(e,r){return new e({type:"string",format:"duration",check:"string_format",...k(r)})}function zl(e,r){return new e({type:"number",checks:[],...k(r)})}function Il(e,r){return new e({type:"number",coerce:!0,checks:[],...k(r)})}function Pl(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...k(r)})}function Tl(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...k(r)})}function Cl(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...k(r)})}function Dl(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...k(r)})}function El(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...k(r)})}function Ol(e,r){return new e({type:"boolean",...k(r)})}function Al(e,r){return new e({type:"boolean",coerce:!0,...k(r)})}function Ul(e,r){return new e({type:"bigint",...k(r)})}function jl(e,r){return new e({type:"bigint",coerce:!0,...k(r)})}function Ll(e,r){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...k(r)})}function Nl(e,r){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...k(r)})}function Rl(e,r){return new e({type:"symbol",...k(r)})}function Zl(e,r){return new e({type:"undefined",...k(r)})}function Ml(e,r){return new e({type:"null",...k(r)})}function Fl(e){return new e({type:"any"})}function Bl(e){return new e({type:"unknown"})}function ql(e,r){return new e({type:"never",...k(r)})}function Vl(e,r){return new e({type:"void",...k(r)})}function Wl(e,r){return new e({type:"date",...k(r)})}function Hl(e,r){return new e({type:"date",coerce:!0,...k(r)})}function Gl(e,r){return new e({type:"nan",...k(r)})}function he(e,r){return new Co({check:"less_than",...k(r),value:e,inclusive:!1})}function ae(e,r){return new Co({check:"less_than",...k(r),value:e,inclusive:!0})}function xe(e,r){return new Do({check:"greater_than",...k(r),value:e,inclusive:!1})}function Q(e,r){return new Do({check:"greater_than",...k(r),value:e,inclusive:!0})}function pn(e){return xe(0,e)}function mn(e){return he(0,e)}function gn(e){return ae(0,e)}function hn(e){return Q(0,e)}function Ze(e,r){return new Mi({check:"multiple_of",...k(r),value:e})}function Me(e,r){return new qi({check:"max_size",...k(r),maximum:e})}function ve(e,r){return new Vi({check:"min_size",...k(r),minimum:e})}function et(e,r){return new Wi({check:"size_equals",...k(r),size:e})}function tt(e,r){return new Hi({check:"max_length",...k(r),maximum:e})}function _e(e,r){return new Gi({check:"min_length",...k(r),minimum:e})}function rt(e,r){return new Ji({check:"length_equals",...k(r),length:e})}function _t(e,r){return new Ki({check:"string_format",format:"regex",...k(r),pattern:e})}function wt(e){return new Xi({check:"string_format",format:"lowercase",...k(e)})}function St(e){return new Qi({check:"string_format",format:"uppercase",...k(e)})}function zt(e,r){return new Yi({check:"string_format",format:"includes",...k(r),includes:e})}function It(e,r){return new es({check:"string_format",format:"starts_with",...k(r),prefix:e})}function Pt(e,r){return new ts({check:"string_format",format:"ends_with",...k(r),suffix:e})}function xn(e,r,o){return new rs({check:"property",property:e,schema:r,...k(o)})}function Tt(e,r){return new os({check:"mime_type",mime:e,...k(r)})}function fe(e){return new ns({check:"overwrite",tx:e})}function Ct(e){return fe(r=>r.normalize(e))}function Dt(){return fe(e=>e.trim())}function Et(){return fe(e=>e.toLowerCase())}function Ot(){return fe(e=>e.toUpperCase())}function At(){return fe(e=>ei(e))}function Jl(e,r,o){return new e({type:"array",element:r,...k(o)})}function hk(e,r,o){return new e({type:"union",options:r,...k(o)})}function xk(e,r,o){return new e({type:"union",options:r,inclusive:!1,...k(o)})}function vk(e,r,o,n){return new e({type:"union",options:o,discriminator:r,...k(n)})}function bk(e,r,o){return new e({type:"intersection",left:r,right:o})}function yk(e,r,o,n){let t=o instanceof _,a=t?n:o,i=t?o:null;return new e({type:"tuple",items:r,rest:i,...k(a)})}function kk(e,r,o,n){return new e({type:"record",keyType:r,valueType:o,...k(n)})}function $k(e,r,o,n){return new e({type:"map",keyType:r,valueType:o,...k(n)})}function _k(e,r,o){return new e({type:"set",valueType:r,...k(o)})}function wk(e,r,o){let n=Array.isArray(r)?Object.fromEntries(r.map(t=>[t,t])):r;return new e({type:"enum",entries:n,...k(o)})}function Sk(e,r,o){return new e({type:"enum",entries:r,...k(o)})}function zk(e,r,o){return new e({type:"literal",values:Array.isArray(r)?r:[r],...k(o)})}function Kl(e,r){return new e({type:"file",...k(r)})}function Ik(e,r){return new e({type:"transform",transform:r})}function Pk(e,r){return new e({type:"optional",innerType:r})}function Tk(e,r){return new e({type:"nullable",innerType:r})}function Ck(e,r,o){return new e({type:"default",innerType:r,get defaultValue(){return typeof o=="function"?o():ri(o)}})}function Dk(e,r,o){return new e({type:"nonoptional",innerType:r,...k(o)})}function Ek(e,r){return new e({type:"success",innerType:r})}function Ok(e,r,o){return new e({type:"catch",innerType:r,catchValue:typeof o=="function"?o:()=>o})}function Ak(e,r,o){return new e({type:"pipe",in:r,out:o})}function Uk(e,r){return new e({type:"readonly",innerType:r})}function jk(e,r,o){return new e({type:"template_literal",parts:r,...k(o)})}function Lk(e,r){return new e({type:"lazy",getter:r})}function Nk(e,r){return new e({type:"promise",innerType:r})}function Xl(e,r,o){let n=k(o);return n.abort??(n.abort=!0),new e({type:"custom",check:"custom",fn:r,...n})}function Ql(e,r,o){return new e({type:"custom",check:"custom",fn:r,...k(o)})}function Yl(e,r){let o=ym(n=>(n.addIssue=t=>{if(typeof t=="string")n.issues.push(ht(t,n.value,o._zod.def));else{let a=t;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=o),a.continue??(a.continue=!o._zod.def.abort),n.issues.push(ht(a))}},e(n.value,n)),r);return o}function ym(e,r){let o=new j({check:"custom",...k(r)});return o._zod.check=e,o}function eu(e){let r=new j({check:"describe"});return r._zod.onattach=[o=>{let n=q.get(o)??{};q.add(o,{...n,description:e})}],r._zod.check=()=>{},r}function tu(e){let r=new j({check:"meta"});return r._zod.onattach=[o=>{let n=q.get(o)??{};q.add(o,{...n,...e})}],r._zod.check=()=>{},r}function ru(e,r){let o=k(r),n=o.truthy??["true","1","yes","on","y","enabled"],t=o.falsy??["false","0","no","off","n","disabled"];o.case!=="sensitive"&&(n=n.map(g=>typeof g=="string"?g.toLowerCase():g),t=t.map(g=>typeof g=="string"?g.toLowerCase():g));let a=new Set(n),i=new Set(t),s=e.Codec??hr,l=e.Boolean??mr,u=e.String??Ye,c=new u({type:"string",error:o.error}),d=new l({type:"boolean",error:o.error}),p=new s({type:"pipe",in:c,out:d,transform:((g,h)=>{let I=g;return o.case!=="sensitive"&&(I=I.toLowerCase()),a.has(I)?!0:i.has(I)?!1:(h.issues.push({code:"invalid_value",expected:"stringbool",values:[...a,...i],input:h.value,inst:p,continue:!1}),{})}),reverseTransform:((g,h)=>g===!0?n[0]||"true":t[0]||"false"),error:o.error});return p}function Ut(e,r,o,n={}){let t=k(n),a={...k(n),check:"string_format",type:"string",format:r,fn:typeof o=="function"?o:s=>o.test(s),...t};return o instanceof RegExp&&(a.pattern=o),new e(a)}function Fe(e){let r=e?.target??"draft-2020-12";return r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??q,target:r,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function O(e,r,o={path:[],schemaPath:[]}){var n;let t=e._zod.def,a=r.seen.get(e);if(a)return a.count++,o.schemaPath.includes(e)&&(a.cycle=o.path),a.schema;let i={schema:{},count:1,cycle:void 0,path:o.path};r.seen.set(e,i);let s=e._zod.toJSONSchema?.();if(s)i.schema=s;else{let c={...o,schemaPath:[...o.schemaPath,e],path:o.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(r,i.schema,c);else{let p=i.schema,g=r.processors[t.type];if(!g)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${t.type}`);g(e,r,p,c)}let d=e._zod.parent;d&&(i.ref||(i.ref=d),O(d,r,c),r.seen.get(d).isParent=!0)}let l=r.metadataRegistry.get(e);return l&&Object.assign(i.schema,l),r.io==="input"&&Y(e)&&(delete i.schema.examples,delete i.schema.default),r.io==="input"&&"_prefault"in i.schema&&((n=i.schema).default??(n.default=i.schema._prefault)),delete i.schema._prefault,r.seen.get(e).schema}function Be(e,r){let o=e.seen.get(r);if(!o)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=new Map;for(let i of e.seen.entries()){let s=e.metadataRegistry.get(i[0])?.id;if(s){let l=n.get(s);if(l&&l!==i[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(s,i[0])}}let t=i=>{let s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let d=e.external.registry.get(i[0])?.id,p=e.external.uri??(h=>h);if(d)return{ref:p(d)};let g=i[1].defId??i[1].schema.id??`schema${e.counter++}`;return i[1].defId=g,{defId:g,ref:`${p("__shared")}#/${s}/${g}`}}if(i[1]===o)return{ref:"#"};let u=`#/${s}/`,c=i[1].schema.id??`__schema${e.counter++}`;return{defId:c,ref:u+c}},a=i=>{if(i[1].schema.$ref)return;let s=i[1],{ref:l,defId:u}=t(i);s.def={...s.schema},u&&(s.defId=u);let c=s.schema;for(let d in c)delete c[d];c.$ref=l};if(e.cycles==="throw")for(let i of e.seen.entries()){let s=i[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/ + `)}g.write("payload.value = newResult;"),g.write("return payload;");let Te=g.compile();return(V,D)=>Te(p,V,D)},a,i=Xe,s=!Ke.jitless,u=s&&ui.value,c=r.catchall,d;e._zod.parse=(p,g)=>{d??(d=n.value);let h=p.value;return i(h)?s&&u&&g?.async===!1&&g.jitless!==!0?(a||(a=t(r.shape)),p=a(p,g),c?Ip([],h,p,g,d,e):p):o(p,g):(p.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),p)}});function dp(e,r,o,n){for(let a of e)if(a.issues.length===0)return r.value=a.value,r;let t=e.filter(a=>!Re(a));return t.length===1?(r.value=t[0].value,t[0]):(r.issues.push({code:"invalid_union",input:r.value,inst:o,errors:e.map(a=>a.issues.map(i=>X(i,n,Z())))}),r)}var hr=f("$ZodUnion",(e,r)=>{_.init(e,r),I(e._zod,"optin",()=>r.options.some(n=>n._zod.optin==="optional")?"optional":void 0),I(e._zod,"optout",()=>r.options.some(n=>n._zod.optout==="optional")?"optional":void 0),I(e._zod,"values",()=>{if(r.options.every(n=>n._zod.values))return new Set(r.options.flatMap(n=>Array.from(n._zod.values)))}),I(e._zod,"pattern",()=>{if(r.options.every(n=>n._zod.pattern)){let n=r.options.map(t=>t._zod.pattern);return new RegExp(`^(${n.map(t=>ar(t.source)).join("|")})$`)}});let o=r.options.length===1?r.options[0]._zod.run:null;e._zod.parse=(n,t)=>{if(o)return o(n,t);let a=!1,i=[];for(let s of r.options){let l=s._zod.run({value:n.value,issues:[]},t);if(l instanceof Promise)i.push(l),a=!0;else{if(l.issues.length===0)return l;i.push(l)}}return a?Promise.all(i).then(s=>dp(s,n,e,t)):dp(i,n,e,t)}});function fp(e,r,o,n){let t=e.filter(a=>a.issues.length===0);return t.length===1?(r.value=t[0].value,r):(t.length===0?r.issues.push({code:"invalid_union",input:r.value,inst:o,errors:e.map(a=>a.issues.map(i=>X(i,n,Z())))}):r.issues.push({code:"invalid_union",input:r.value,inst:o,errors:[],inclusive:!1}),r)}var Qs=f("$ZodXor",(e,r)=>{hr.init(e,r),r.inclusive=!1;let o=r.options.length===1?r.options[0]._zod.run:null;e._zod.parse=(n,t)=>{if(o)return o(n,t);let a=!1,i=[];for(let s of r.options){let l=s._zod.run({value:n.value,issues:[]},t);l instanceof Promise?(i.push(l),a=!0):i.push(l)}return a?Promise.all(i).then(s=>fp(s,n,e,t)):fp(i,n,e,t)}}),el=f("$ZodDiscriminatedUnion",(e,r)=>{r.inclusive=!1,hr.init(e,r);let o=e._zod.parse;I(e._zod,"propValues",()=>{let t={};for(let a of r.options){let i=a._zod.propValues;if(!i||Object.keys(i).length===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(a)}"`);for(let[s,l]of Object.entries(i)){t[s]||(t[s]=new Set);for(let u of l)t[s].add(u)}}return t});let n=gt(()=>{let t=r.options,a=new Map;for(let i of t){let s=i._zod.propValues?.[r.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(i)}"`);for(let l of s){if(a.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);a.set(l,i)}}return a});e._zod.parse=(t,a)=>{let i=t.value;if(!Xe(i))return t.issues.push({code:"invalid_type",expected:"object",input:i,inst:e}),t;let s=n.value.get(i?.[r.discriminator]);return s?s._zod.run(t,a):r.unionFallback||a.direction==="backward"?o(t,a):(t.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:r.discriminator,options:Array.from(n.value.keys()),input:i,path:[r.discriminator],inst:e}),t)}}),tl=f("$ZodIntersection",(e,r)=>{_.init(e,r),e._zod.parse=(o,n)=>{let t=o.value,a=r.left._zod.run({value:t,issues:[]},n),i=r.right._zod.run({value:t,issues:[]},n);return a instanceof Promise||i instanceof Promise?Promise.all([a,i]).then(([l,u])=>pp(o,l,u)):pp(o,a,i)}});function ms(e,r){if(e===r)return{valid:!0,data:e};if(e instanceof Date&&r instanceof Date&&+e==+r)return{valid:!0,data:e};if(Le(e)&&Le(r)){let o=Object.keys(r),n=Object.keys(e).filter(a=>o.indexOf(a)!==-1),t={...e,...r};for(let a of n){let i=ms(e[a],r[a]);if(!i.valid)return{valid:!1,mergeErrorPath:[a,...i.mergeErrorPath]};t[a]=i.data}return{valid:!0,data:t}}if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return{valid:!1,mergeErrorPath:[]};let o=[];for(let n=0;ns.l&&s.r).map(([s])=>s);if(a.length&&t&&e.issues.push({...t,keys:a}),Re(e))return e;let i=ms(r.value,o.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}var Ro=f("$ZodTuple",(e,r)=>{_.init(e,r);let o=r.items;e._zod.parse=(n,t)=>{let a=n.value;if(!Array.isArray(a))return n.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),n;n.value=[];let i=[],s=mp(o,"optin"),l=mp(o,"optout");if(!r.rest){if(a.lengtho.length&&n.issues.push({code:"too_big",maximum:o.length,inclusive:!0,input:a,inst:e,origin:"array"})}let u=new Array(o.length);for(let c=0;c{u[c]=p})):u[c]=d}if(r.rest){let c=o.length-1,d=a.slice(o.length);for(let p of d){c++;let g=r.rest._zod.run({value:p,issues:[]},t);g instanceof Promise?i.push(g.then(h=>gp(h,n,c))):gp(g,n,c)}}return i.length?Promise.all(i).then(()=>hp(u,n,o,a,l)):hp(u,n,o,a,l)}});function mp(e,r){for(let o=e.length-1;o>=0;o--)if(e[o]._zod[r]!=="optional")return o+1;return 0}function gp(e,r,o){e.issues.length&&r.issues.push(...te(o,e.issues)),r.value[o]=e.value}function hp(e,r,o,n,t){for(let a=0;a=t){r.value.length=a;break}r.issues.push(...te(a,i.issues))}r.value[a]=i.value}for(let a=r.value.length-1;a>=n.length&&(o[a]._zod.optout==="optional"&&r.value[a]===void 0);a--)r.value.length=a;return r}var rl=f("$ZodRecord",(e,r)=>{_.init(e,r),e._zod.parse=(o,n)=>{let t=o.value;if(!Le(t))return o.issues.push({expected:"record",code:"invalid_type",input:t,inst:e}),o;let a=[],i=r.keyType._zod.values;if(i){o.value={};let s=new Set;for(let u of i)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){s.add(typeof u=="number"?u.toString():u);let c=r.keyType._zod.run({value:u,issues:[]},n);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(c.issues.length){o.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(g=>X(g,n,Z())),input:u,path:[u],inst:e});continue}let d=c.value,p=r.valueType._zod.run({value:t[u],issues:[]},n);p instanceof Promise?a.push(p.then(g=>{g.issues.length&&o.issues.push(...te(u,g.issues)),o.value[d]=g.value})):(p.issues.length&&o.issues.push(...te(u,p.issues)),o.value[d]=p.value)}let l;for(let u in t)s.has(u)||(l=l??[],l.push(u));l&&l.length>0&&o.issues.push({code:"unrecognized_keys",input:t,inst:e,keys:l})}else{o.value={};for(let s of Reflect.ownKeys(t)){if(s==="__proto__"||!Object.prototype.propertyIsEnumerable.call(t,s))continue;let l=r.keyType._zod.run({value:s,issues:[]},n);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&Co.test(s)&&l.issues.length){let d=r.keyType._zod.run({value:Number(s),issues:[]},n);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");d.issues.length===0&&(l=d)}if(l.issues.length){r.mode==="loose"?o.value[s]=t[s]:o.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(d=>X(d,n,Z())),input:s,path:[s],inst:e});continue}let c=r.valueType._zod.run({value:t[s],issues:[]},n);c instanceof Promise?a.push(c.then(d=>{d.issues.length&&o.issues.push(...te(s,d.issues)),o.value[l.value]=d.value})):(c.issues.length&&o.issues.push(...te(s,c.issues)),o.value[l.value]=c.value)}}return a.length?Promise.all(a).then(()=>o):o}}),ol=f("$ZodMap",(e,r)=>{_.init(e,r),e._zod.parse=(o,n)=>{let t=o.value;if(!(t instanceof Map))return o.issues.push({expected:"map",code:"invalid_type",input:t,inst:e}),o;let a=[];o.value=new Map;for(let[i,s]of t){let l=r.keyType._zod.run({value:i,issues:[]},n),u=r.valueType._zod.run({value:s,issues:[]},n);l instanceof Promise||u instanceof Promise?a.push(Promise.all([l,u]).then(([c,d])=>{xp(c,d,o,i,t,e,n)})):xp(l,u,o,i,t,e,n)}return a.length?Promise.all(a).then(()=>o):o}});function xp(e,r,o,n,t,a,i){e.issues.length&&(ir.has(typeof n)?o.issues.push(...te(n,e.issues)):o.issues.push({code:"invalid_key",origin:"map",input:t,inst:a,issues:e.issues.map(s=>X(s,i,Z()))})),r.issues.length&&(ir.has(typeof n)?o.issues.push(...te(n,r.issues)):o.issues.push({origin:"map",code:"invalid_element",input:t,inst:a,key:n,issues:r.issues.map(s=>X(s,i,Z()))})),o.value.set(e.value,r.value)}var nl=f("$ZodSet",(e,r)=>{_.init(e,r),e._zod.parse=(o,n)=>{let t=o.value;if(!(t instanceof Set))return o.issues.push({input:t,inst:e,expected:"set",code:"invalid_type"}),o;let a=[];o.value=new Set;for(let i of t){let s=r.valueType._zod.run({value:i,issues:[]},n);s instanceof Promise?a.push(s.then(l=>vp(l,o))):vp(s,o)}return a.length?Promise.all(a).then(()=>o):o}});function vp(e,r){e.issues.length&&r.issues.push(...e.issues),r.value.add(e.value)}var al=f("$ZodEnum",(e,r)=>{_.init(e,r);let o=nr(r.entries),n=new Set(o);e._zod.values=n,e._zod.pattern=new RegExp(`^(${o.filter(t=>ir.has(typeof t)).map(t=>typeof t=="string"?le(t):t.toString()).join("|")})$`),e._zod.parse=(t,a)=>{let i=t.value;return n.has(i)||t.issues.push({code:"invalid_value",values:o,input:i,inst:e}),t}}),il=f("$ZodLiteral",(e,r)=>{if(_.init(e,r),r.values.length===0)throw new Error("Cannot create literal schema with no valid values");let o=new Set(r.values);e._zod.values=o,e._zod.pattern=new RegExp(`^(${r.values.map(n=>typeof n=="string"?le(n):n?le(n.toString()):String(n)).join("|")})$`),e._zod.parse=(n,t)=>{let a=n.value;return o.has(a)||n.issues.push({code:"invalid_value",values:r.values,input:a,inst:e}),n}}),sl=f("$ZodFile",(e,r)=>{_.init(e,r),e._zod.parse=(o,n)=>{let t=o.value;return t instanceof File||o.issues.push({expected:"file",code:"invalid_type",input:t,inst:e}),o}}),ll=f("$ZodTransform",(e,r)=>{_.init(e,r),e._zod.optin="optional",e._zod.parse=(o,n)=>{if(n.direction==="backward")throw new Ue(e.constructor.name);let t=r.transform(o.value,o);if(n.async)return(t instanceof Promise?t:Promise.resolve(t)).then(i=>(o.value=i,o.fallback=!0,o));if(t instanceof Promise)throw new de;return o.value=t,o.fallback=!0,o}});function bp(e,r){return r===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var Zo=f("$ZodOptional",(e,r)=>{_.init(e,r),e._zod.optin="optional",e._zod.optout="optional",I(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),I(e._zod,"pattern",()=>{let o=r.innerType._zod.pattern;return o?new RegExp(`^(${ar(o.source)})?$`):void 0}),e._zod.parse=(o,n)=>{if(r.innerType._zod.optin==="optional"){let t=o.value,a=r.innerType._zod.run(o,n);return a instanceof Promise?a.then(i=>bp(i,t)):bp(a,t)}return o.value===void 0?o:r.innerType._zod.run(o,n)}}),ul=f("$ZodExactOptional",(e,r)=>{Zo.init(e,r),I(e._zod,"values",()=>r.innerType._zod.values),I(e._zod,"pattern",()=>r.innerType._zod.pattern),e._zod.parse=(o,n)=>r.innerType._zod.run(o,n)}),cl=f("$ZodNullable",(e,r)=>{_.init(e,r),I(e._zod,"optin",()=>r.innerType._zod.optin),I(e._zod,"optout",()=>r.innerType._zod.optout),I(e._zod,"pattern",()=>{let o=r.innerType._zod.pattern;return o?new RegExp(`^(${ar(o.source)}|null)$`):void 0}),I(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),e._zod.parse=(o,n)=>o.value===null?o:r.innerType._zod.run(o,n)}),dl=f("$ZodDefault",(e,r)=>{_.init(e,r),e._zod.optin="optional",I(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(o,n)=>{if(n.direction==="backward")return r.innerType._zod.run(o,n);if(o.value===void 0)return o.value=r.defaultValue,o;let t=r.innerType._zod.run(o,n);return t instanceof Promise?t.then(a=>yp(a,r)):yp(t,r)}});function yp(e,r){return e.value===void 0&&(e.value=r.defaultValue),e}var fl=f("$ZodPrefault",(e,r)=>{_.init(e,r),e._zod.optin="optional",I(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(o,n)=>(n.direction==="backward"||o.value===void 0&&(o.value=r.defaultValue),r.innerType._zod.run(o,n))}),pl=f("$ZodNonOptional",(e,r)=>{_.init(e,r),I(e._zod,"values",()=>{let o=r.innerType._zod.values;return o?new Set([...o].filter(n=>n!==void 0)):void 0}),e._zod.parse=(o,n)=>{let t=r.innerType._zod.run(o,n);return t instanceof Promise?t.then(a=>kp(a,e)):kp(t,e)}});function kp(e,r){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:r}),e}var ml=f("$ZodSuccess",(e,r)=>{_.init(e,r),e._zod.parse=(o,n)=>{if(n.direction==="backward")throw new Ue("ZodSuccess");let t=r.innerType._zod.run(o,n);return t instanceof Promise?t.then(a=>(o.value=a.issues.length===0,o)):(o.value=t.issues.length===0,o)}}),gl=f("$ZodCatch",(e,r)=>{_.init(e,r),e._zod.optin="optional",I(e._zod,"optout",()=>r.innerType._zod.optout),I(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(o,n)=>{if(n.direction==="backward")return r.innerType._zod.run(o,n);let t=r.innerType._zod.run(o,n);return t instanceof Promise?t.then(a=>(o.value=a.value,a.issues.length&&(o.value=r.catchValue({...o,error:{issues:a.issues.map(i=>X(i,n,Z()))},input:o.value}),o.issues=[],o.fallback=!0),o)):(o.value=t.value,t.issues.length&&(o.value=r.catchValue({...o,error:{issues:t.issues.map(a=>X(a,n,Z()))},input:o.value}),o.issues=[],o.fallback=!0),o)}}),hl=f("$ZodNaN",(e,r)=>{_.init(e,r),e._zod.parse=(o,n)=>((typeof o.value!="number"||!Number.isNaN(o.value))&&o.issues.push({input:o.value,inst:e,expected:"nan",code:"invalid_type"}),o)}),Mo=f("$ZodPipe",(e,r)=>{_.init(e,r),I(e._zod,"values",()=>r.in._zod.values),I(e._zod,"optin",()=>r.in._zod.optin),I(e._zod,"optout",()=>r.out._zod.optout),I(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(o,n)=>{if(n.direction==="backward"){let a=r.out._zod.run(o,n);return a instanceof Promise?a.then(i=>Eo(i,r.in,n)):Eo(a,r.in,n)}let t=r.in._zod.run(o,n);return t instanceof Promise?t.then(a=>Eo(a,r.out,n)):Eo(t,r.out,n)}});function Eo(e,r,o){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},o)}var xr=f("$ZodCodec",(e,r)=>{_.init(e,r),I(e._zod,"values",()=>r.in._zod.values),I(e._zod,"optin",()=>r.in._zod.optin),I(e._zod,"optout",()=>r.out._zod.optout),I(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(o,n)=>{if((n.direction||"forward")==="forward"){let a=r.in._zod.run(o,n);return a instanceof Promise?a.then(i=>Oo(i,r,n)):Oo(a,r,n)}else{let a=r.out._zod.run(o,n);return a instanceof Promise?a.then(i=>Oo(i,r,n)):Oo(a,r,n)}}});function Oo(e,r,o){if(e.issues.length)return e.aborted=!0,e;if((o.direction||"forward")==="forward"){let t=r.transform(e.value,e);return t instanceof Promise?t.then(a=>Uo(e,a,r.out,o)):Uo(e,t,r.out,o)}else{let t=r.reverseTransform(e.value,e);return t instanceof Promise?t.then(a=>Uo(e,a,r.in,o)):Uo(e,t,r.in,o)}}function Uo(e,r,o,n){return e.issues.length?(e.aborted=!0,e):o._zod.run({value:r,issues:e.issues},n)}var xl=f("$ZodPreprocess",(e,r)=>{Mo.init(e,r)}),vl=f("$ZodReadonly",(e,r)=>{_.init(e,r),I(e._zod,"propValues",()=>r.innerType._zod.propValues),I(e._zod,"values",()=>r.innerType._zod.values),I(e._zod,"optin",()=>r.innerType?._zod?.optin),I(e._zod,"optout",()=>r.innerType?._zod?.optout),e._zod.parse=(o,n)=>{if(n.direction==="backward")return r.innerType._zod.run(o,n);let t=r.innerType._zod.run(o,n);return t instanceof Promise?t.then($p):$p(t)}});function $p(e){return e.value=Object.freeze(e.value),e}var bl=f("$ZodTemplateLiteral",(e,r)=>{_.init(e,r);let o=[];for(let n of r.parts)if(typeof n=="object"&&n!==null){if(!n._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...n._zod.traits].shift()}`);let t=n._zod.pattern instanceof RegExp?n._zod.pattern.source:n._zod.pattern;if(!t)throw new Error(`Invalid template literal part: ${n._zod.traits}`);let a=t.startsWith("^")?1:0,i=t.endsWith("$")?t.length-1:t.length;o.push(t.slice(a,i))}else if(n===null||di.has(typeof n))o.push(le(`${n}`));else throw new Error(`Invalid template literal part: ${n}`);e._zod.pattern=new RegExp(`^${o.join("")}$`),e._zod.parse=(n,t)=>typeof n.value!="string"?(n.issues.push({input:n.value,inst:e,expected:"string",code:"invalid_type"}),n):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:"invalid_format",format:r.format??"template_literal",pattern:e._zod.pattern.source}),n)}),yl=f("$ZodFunction",(e,r)=>(_.init(e,r),e._def=r,e._zod.def=r,e.implement=o=>{if(typeof o!="function")throw new Error("implement() must be called with a function");return function(...n){let t=e._def.input?bo(e._def.input,n):n,a=Reflect.apply(o,this,t);return e._def.output?bo(e._def.output,a):a}},e.implementAsync=o=>{if(typeof o!="function")throw new Error("implementAsync() must be called with a function");return async function(...n){let t=e._def.input?await yo(e._def.input,n):n,a=await Reflect.apply(o,this,t);return e._def.output?await yo(e._def.output,a):a}},e._zod.parse=(o,n)=>typeof o.value!="function"?(o.issues.push({code:"invalid_type",expected:"function",input:o.value,inst:e}),o):(e._def.output&&e._def.output._zod.def.type==="promise"?o.value=e.implementAsync(o.value):o.value=e.implement(o.value),o),e.input=(...o)=>{let n=e.constructor;return Array.isArray(o[0])?new n({type:"function",input:new Ro({type:"tuple",items:o[0],rest:o[1]}),output:e._def.output}):new n({type:"function",input:o[0],output:e._def.output})},e.output=o=>{let n=e.constructor;return new n({type:"function",input:e._def.input,output:o})},e)),kl=f("$ZodPromise",(e,r)=>{_.init(e,r),e._zod.parse=(o,n)=>Promise.resolve(o.value).then(t=>r.innerType._zod.run({value:t,issues:[]},n))}),$l=f("$ZodLazy",(e,r)=>{_.init(e,r),I(e._zod,"innerType",()=>{let o=r;return o._cachedInner||(o._cachedInner=r.getter()),o._cachedInner}),I(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),I(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),I(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),I(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(o,n)=>e._zod.innerType._zod.run(o,n)}),_l=f("$ZodCustom",(e,r)=>{j.init(e,r),_.init(e,r),e._zod.parse=(o,n)=>o,e._zod.check=o=>{let n=o.value,t=r.fn(n);if(t instanceof Promise)return t.then(a=>_p(a,o,n,e));_p(t,o,n,e)}});function _p(e,r,o,n){if(!e){let t={code:"custom",input:o,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(t.params=n._zod.def.params),r.issues.push(ht(t))}}var br={};$e(br,{ar:()=>Pp,az:()=>Cp,be:()=>Ap,bg:()=>Ep,ca:()=>Op,cs:()=>Up,da:()=>jp,de:()=>Np,el:()=>Lp,en:()=>Fo,eo:()=>Rp,es:()=>Zp,fa:()=>Mp,fi:()=>Fp,fr:()=>Bp,frCA:()=>Vp,he:()=>qp,hr:()=>Wp,hu:()=>Hp,hy:()=>Jp,id:()=>Kp,is:()=>Xp,it:()=>Yp,ja:()=>Qp,ka:()=>em,kh:()=>tm,km:()=>Bo,ko:()=>rm,lt:()=>nm,mk:()=>am,ms:()=>im,nl:()=>sm,no:()=>lm,ota:()=>um,pl:()=>dm,ps:()=>cm,pt:()=>fm,ro:()=>pm,ru:()=>gm,sl:()=>hm,sv:()=>xm,ta:()=>vm,th:()=>bm,tr:()=>ym,ua:()=>km,uk:()=>Vo,ur:()=>$m,uz:()=>_m,vi:()=>wm,yo:()=>Im,zhCN:()=>Sm,zhTW:()=>zm});var Iy=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function r(t){return e[t]??null}let o={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},n={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${t.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${a}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`}case"invalid_value":return t.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${x(t.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${t.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${a} ${t.maximum.toString()} ${i.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${t.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${a} ${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${t.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${a} ${t.minimum.toString()} ${i.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${t.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${a} ${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${t.prefix}"`:a.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${a.suffix}"`:a.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${a.includes}"`:a.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${a.pattern}`:`${o[a.format]??t.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${t.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${t.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${t.keys.length>1?"\u0629":""}: ${m(t.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${t.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${t.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function Pp(){return{localeError:Iy()}}var Ty=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function r(t){return e[t]??null}let o={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},n={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${t.expected}, daxil olan ${s}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${a}, daxil olan ${s}`}case"invalid_value":return t.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${x(t.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${t.origin??"d\u0259y\u0259r"} ${a}${t.maximum.toString()} ${i.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${t.origin??"d\u0259y\u0259r"} ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${t.origin} ${a}${t.minimum.toString()} ${i.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${t.origin} ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${a.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:a.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${a.suffix}" il\u0259 bitm\u0259lidir`:a.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${a.includes}" daxil olmal\u0131d\u0131r`:a.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${a.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${o[a.format]??t.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${t.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${t.keys.length>1?"lar":""}: ${m(t.keys,", ")}`;case"invalid_key":return`${t.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${t.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function Cp(){return{localeError:Ty()}}function Dp(e,r,o,n){let t=Math.abs(e),a=t%10,i=t%100;return i>=11&&i<=19?n:a===1?r:a>=2&&a<=4?o:n}var Py=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function r(t){return e[t]??null}let o={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},n={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${t.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${a}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`}case"invalid_value":return t.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${x(t.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);if(i){let s=Number(t.maximum),l=Dp(s,i.unit.one,i.unit.few,i.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${i.verb} ${a}${t.maximum.toString()} ${l}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);if(i){let s=Number(t.minimum),l=Dp(s,i.unit.one,i.unit.few,i.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${i.verb} ${a}${t.minimum.toString()} ${l}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${a.prefix}"`:a.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${a.suffix}"`:a.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${a.includes}"`:a.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${a.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${o[a.format]??t.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${t.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${m(t.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${t.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${t.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function Ap(){return{localeError:Py()}}var Cy=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function r(t){return e[t]??null}let o={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},n={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${t.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${a}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`}case"invalid_value":return t.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${x(t.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${a}${t.maximum.toString()} ${i.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${a}${t.minimum.toString()} ${i.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;if(a.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${a.prefix}"`;if(a.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${a.suffix}"`;if(a.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${a.includes}"`;if(a.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${a.pattern}`;let i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return a.format==="emoji"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),a.format==="datetime"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),a.format==="date"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),a.format==="time"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),a.format==="duration"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${i} ${o[a.format]??t.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${t.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${t.keys.length>1?"\u043E\u0432\u0435":""}: ${m(t.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${t.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${t.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function Ep(){return{localeError:Cy()}}var Dy=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function r(t){return e[t]??null}let o={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},n={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${t.expected}, s'ha rebut ${s}`:`Tipus inv\xE0lid: s'esperava ${a}, s'ha rebut ${s}`}case"invalid_value":return t.values.length===1?`Valor inv\xE0lid: s'esperava ${x(t.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${m(t.values," o ")}`;case"too_big":{let a=t.inclusive?"com a m\xE0xim":"menys de",i=r(t.origin);return i?`Massa gran: s'esperava que ${t.origin??"el valor"} contingu\xE9s ${a} ${t.maximum.toString()} ${i.unit??"elements"}`:`Massa gran: s'esperava que ${t.origin??"el valor"} fos ${a} ${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?"com a m\xEDnim":"m\xE9s de",i=r(t.origin);return i?`Massa petit: s'esperava que ${t.origin} contingu\xE9s ${a} ${t.minimum.toString()} ${i.unit}`:`Massa petit: s'esperava que ${t.origin} fos ${a} ${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${a.prefix}"`:a.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${a.suffix}"`:a.format==="includes"?`Format inv\xE0lid: ha d'incloure "${a.includes}"`:a.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${a.pattern}`:`Format inv\xE0lid per a ${o[a.format]??t.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${t.divisor}`;case"unrecognized_keys":return`Clau${t.keys.length>1?"s":""} no reconeguda${t.keys.length>1?"s":""}: ${m(t.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${t.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${t.origin}`;default:return"Entrada inv\xE0lida"}}};function Op(){return{localeError:Dy()}}var Ay=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function r(t){return e[t]??null}let o={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},n={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${t.expected}, obdr\u017Eeno ${s}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${a}, obdr\u017Eeno ${s}`}case"invalid_value":return t.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${x(t.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${t.origin??"hodnota"} mus\xED m\xEDt ${a}${t.maximum.toString()} ${i.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${t.origin??"hodnota"} mus\xED b\xFDt ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${t.origin??"hodnota"} mus\xED m\xEDt ${a}${t.minimum.toString()} ${i.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${t.origin??"hodnota"} mus\xED b\xFDt ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${a.prefix}"`:a.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${a.suffix}"`:a.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${a.includes}"`:a.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${a.pattern}`:`Neplatn\xFD form\xE1t ${o[a.format]??t.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${t.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${m(t.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${t.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${t.origin}`;default:return"Neplatn\xFD vstup"}}};function Up(){return{localeError:Ay()}}var Ey=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function r(t){return e[t]??null}let o={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},n={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Ugyldigt input: forventede instanceof ${t.expected}, fik ${s}`:`Ugyldigt input: forventede ${a}, fik ${s}`}case"invalid_value":return t.values.length===1?`Ugyldig v\xE6rdi: forventede ${x(t.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin),s=n[t.origin]??t.origin;return i?`For stor: forventede ${s??"value"} ${i.verb} ${a} ${t.maximum.toString()} ${i.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${a} ${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin),s=n[t.origin]??t.origin;return i?`For lille: forventede ${s} ${i.verb} ${a} ${t.minimum.toString()} ${i.unit}`:`For lille: forventede ${s} havde ${a} ${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Ugyldig streng: skal starte med "${a.prefix}"`:a.format==="ends_with"?`Ugyldig streng: skal ende med "${a.suffix}"`:a.format==="includes"?`Ugyldig streng: skal indeholde "${a.includes}"`:a.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${a.pattern}`:`Ugyldig ${o[a.format]??t.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${m(t.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${t.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${t.origin}`;default:return"Ugyldigt input"}}};function jp(){return{localeError:Ey()}}var Oy=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function r(t){return e[t]??null}let o={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},n={nan:"NaN",number:"Zahl",array:"Array"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${t.expected}, erhalten ${s}`:`Ung\xFCltige Eingabe: erwartet ${a}, erhalten ${s}`}case"invalid_value":return t.values.length===1?`Ung\xFCltige Eingabe: erwartet ${x(t.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`Zu gro\xDF: erwartet, dass ${t.origin??"Wert"} ${a}${t.maximum.toString()} ${i.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${t.origin??"Wert"} ${a}${t.maximum.toString()} ist`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`Zu klein: erwartet, dass ${t.origin} ${a}${t.minimum.toString()} ${i.unit} hat`:`Zu klein: erwartet, dass ${t.origin} ${a}${t.minimum.toString()} ist`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Ung\xFCltiger String: muss mit "${a.prefix}" beginnen`:a.format==="ends_with"?`Ung\xFCltiger String: muss mit "${a.suffix}" enden`:a.format==="includes"?`Ung\xFCltiger String: muss "${a.includes}" enthalten`:a.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${a.pattern} entsprechen`:`Ung\xFCltig: ${o[a.format]??t.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${t.divisor} sein`;case"unrecognized_keys":return`${t.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${m(t.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${t.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${t.origin}`;default:return"Ung\xFCltige Eingabe"}}};function Np(){return{localeError:Oy()}}var Uy=()=>{let e={string:{unit:"\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},file:{unit:"bytes",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},array:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},set:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},map:{unit:"\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"}};function r(t){return e[t]??null}let o={regex:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",email:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",date:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",time:"ISO \u03CE\u03C1\u03B1",duration:"ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",ipv4:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",ipv6:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",mac:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",cidrv4:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",cidrv6:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",base64:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",base64url:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",json_string:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",e164:"\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",jwt:"JWT",template_literal:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"},n={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return typeof t.expected=="string"&&/^[A-Z]/.test(t.expected)?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${t.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${s}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${a}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${s}`}case"invalid_value":return t.values.length===1?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${x(t.values[0])}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${t.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${a}${t.maximum.toString()} ${i.unit??"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${t.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${t.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${a}${t.minimum.toString()} ${i.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${t.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${a.prefix}"`:a.format==="ends_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${a.suffix}"`:a.format==="includes"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${a.includes}"`:a.format==="regex"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${a.pattern}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${o[a.format]??t.format}`}case"not_multiple_of":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${t.divisor}`;case"unrecognized_keys":return`\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${t.keys.length>1?"\u03B1":"\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${t.keys.length>1?"\u03B9\u03AC":"\u03AF"}: ${m(t.keys,", ")}`;case"invalid_key":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${t.origin}`;case"invalid_union":return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";case"invalid_element":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${t.origin}`;default:return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"}}};function Lp(){return{localeError:Uy()}}var jy=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function r(t){return e[t]??null}let o={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},n={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return`Invalid input: expected ${a}, received ${s}`}case"invalid_value":return t.values.length===1?`Invalid input: expected ${x(t.values[0])}`:`Invalid option: expected one of ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`Too big: expected ${t.origin??"value"} to have ${a}${t.maximum.toString()} ${i.unit??"elements"}`:`Too big: expected ${t.origin??"value"} to be ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`Too small: expected ${t.origin} to have ${a}${t.minimum.toString()} ${i.unit}`:`Too small: expected ${t.origin} to be ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Invalid string: must start with "${a.prefix}"`:a.format==="ends_with"?`Invalid string: must end with "${a.suffix}"`:a.format==="includes"?`Invalid string: must include "${a.includes}"`:a.format==="regex"?`Invalid string: must match pattern ${a.pattern}`:`Invalid ${o[a.format]??t.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${t.divisor}`;case"unrecognized_keys":return`Unrecognized key${t.keys.length>1?"s":""}: ${m(t.keys,", ")}`;case"invalid_key":return`Invalid key in ${t.origin}`;case"invalid_union":return t.options&&Array.isArray(t.options)&&t.options.length>0?`Invalid discriminator value. Expected ${t.options.map(i=>`'${i}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${t.origin}`;default:return"Invalid input"}}};function Fo(){return{localeError:jy()}}var Ny=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function r(t){return e[t]??null}let o={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},n={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${t.expected}, ricevi\u011Dis ${s}`:`Nevalida enigo: atendi\u011Dis ${a}, ricevi\u011Dis ${s}`}case"invalid_value":return t.values.length===1?`Nevalida enigo: atendi\u011Dis ${x(t.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`Tro granda: atendi\u011Dis ke ${t.origin??"valoro"} havu ${a}${t.maximum.toString()} ${i.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${t.origin??"valoro"} havu ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`Tro malgranda: atendi\u011Dis ke ${t.origin} havu ${a}${t.minimum.toString()} ${i.unit}`:`Tro malgranda: atendi\u011Dis ke ${t.origin} estu ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${a.prefix}"`:a.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${a.suffix}"`:a.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${a.includes}"`:a.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${a.pattern}`:`Nevalida ${o[a.format]??t.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${t.divisor}`;case"unrecognized_keys":return`Nekonata${t.keys.length>1?"j":""} \u015Dlosilo${t.keys.length>1?"j":""}: ${m(t.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${t.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${t.origin}`;default:return"Nevalida enigo"}}};function Rp(){return{localeError:Ny()}}var Ly=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function r(t){return e[t]??null}let o={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},n={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${t.expected}, recibido ${s}`:`Entrada inv\xE1lida: se esperaba ${a}, recibido ${s}`}case"invalid_value":return t.values.length===1?`Entrada inv\xE1lida: se esperaba ${x(t.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin),s=n[t.origin]??t.origin;return i?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${a}${t.maximum.toString()} ${i.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin),s=n[t.origin]??t.origin;return i?`Demasiado peque\xF1o: se esperaba que ${s} tuviera ${a}${t.minimum.toString()} ${i.unit}`:`Demasiado peque\xF1o: se esperaba que ${s} fuera ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${a.prefix}"`:a.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${a.suffix}"`:a.format==="includes"?`Cadena inv\xE1lida: debe incluir "${a.includes}"`:a.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${a.pattern}`:`Inv\xE1lido ${o[a.format]??t.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${t.divisor}`;case"unrecognized_keys":return`Llave${t.keys.length>1?"s":""} desconocida${t.keys.length>1?"s":""}: ${m(t.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${n[t.origin]??t.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${n[t.origin]??t.origin}`;default:return"Entrada inv\xE1lida"}}};function Zp(){return{localeError:Ly()}}var Ry=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function r(t){return e[t]??null}let o={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},n={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${t.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${a} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return t.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${x(t.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${m(t.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${t.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${a}${t.maximum.toString()} ${i.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${t.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${a}${t.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${t.origin} \u0628\u0627\u06CC\u062F ${a}${t.minimum.toString()} ${i.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${t.origin} \u0628\u0627\u06CC\u062F ${a}${t.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${a.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:a.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${a.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:a.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${a.includes}" \u0628\u0627\u0634\u062F`:a.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${a.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${o[a.format]??t.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${t.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${t.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${m(t.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${t.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${t.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function Mp(){return{localeError:Ry()}}var Zy=()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function r(t){return e[t]??null}let o={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},n={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Virheellinen tyyppi: odotettiin instanceof ${t.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${a}, oli ${s}`}case"invalid_value":return t.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${x(t.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`Liian suuri: ${i.subject} t\xE4ytyy olla ${a}${t.maximum.toString()} ${i.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`Liian pieni: ${i.subject} t\xE4ytyy olla ${a}${t.minimum.toString()} ${i.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${a.prefix}"`:a.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${a.suffix}"`:a.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${a.includes}"`:a.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${a.pattern}`:`Virheellinen ${o[a.format]??t.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${t.divisor} monikerta`;case"unrecognized_keys":return`${t.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${m(t.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function Fp(){return{localeError:Zy()}}var My=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function r(t){return e[t]??null}let o={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},n={string:"cha\xEEne",number:"nombre",int:"entier",boolean:"bool\xE9en",bigint:"grand entier",symbol:"symbole",undefined:"ind\xE9fini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Entr\xE9e invalide : instanceof ${t.expected} attendu, ${s} re\xE7u`:`Entr\xE9e invalide : ${a} attendu, ${s} re\xE7u`}case"invalid_value":return t.values.length===1?`Entr\xE9e invalide : ${x(t.values[0])} attendu`:`Option invalide : une valeur parmi ${m(t.values,"|")} attendue`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`Trop grand : ${n[t.origin]??"valeur"} doit ${i.verb} ${a}${t.maximum.toString()} ${i.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${n[t.origin]??"valeur"} doit \xEAtre ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`Trop petit : ${n[t.origin]??"valeur"} doit ${i.verb} ${a}${t.minimum.toString()} ${i.unit}`:`Trop petit : ${n[t.origin]??"valeur"} doit \xEAtre ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${a.prefix}"`:a.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${a.suffix}"`:a.format==="includes"?`Cha\xEEne invalide : doit inclure "${a.includes}"`:a.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${a.pattern}`:`${o[a.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${t.divisor}`;case"unrecognized_keys":return`Cl\xE9${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${m(t.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${t.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entr\xE9e invalide"}}};function Bp(){return{localeError:My()}}var Fy=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function r(t){return e[t]??null}let o={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},n={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Entr\xE9e invalide : attendu instanceof ${t.expected}, re\xE7u ${s}`:`Entr\xE9e invalide : attendu ${a}, re\xE7u ${s}`}case"invalid_value":return t.values.length===1?`Entr\xE9e invalide : attendu ${x(t.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"\u2264":"<",i=r(t.origin);return i?`Trop grand : attendu que ${t.origin??"la valeur"} ait ${a}${t.maximum.toString()} ${i.unit}`:`Trop grand : attendu que ${t.origin??"la valeur"} soit ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?"\u2265":">",i=r(t.origin);return i?`Trop petit : attendu que ${t.origin} ait ${a}${t.minimum.toString()} ${i.unit}`:`Trop petit : attendu que ${t.origin} soit ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${a.prefix}"`:a.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${a.suffix}"`:a.format==="includes"?`Cha\xEEne invalide : doit inclure "${a.includes}"`:a.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${a.pattern}`:`${o[a.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${t.divisor}`;case"unrecognized_keys":return`Cl\xE9${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${m(t.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${t.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entr\xE9e invalide"}}};function Vp(){return{localeError:Fy()}}var By=()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},r={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},o=u=>u?e[u]:void 0,n=u=>{let c=o(u);return c?c.label:u??e.unknown.label},t=u=>`\u05D4${n(u)}`,a=u=>(o(u)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",i=u=>u?r[u]??null:null,s={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},l={nan:"NaN"};return u=>{switch(u.code){case"invalid_type":{let c=u.expected,d=l[c??""]??n(c),p=v(u.input),g=l[p]??e[p]?.label??p;return/^[A-Z]/.test(u.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${u.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${g}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${d}, \u05D4\u05EA\u05E7\u05D1\u05DC ${g}`}case"invalid_value":{if(u.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${x(u.values[0])}`;let c=u.values.map(g=>x(g));if(u.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${c[0]} \u05D0\u05D5 ${c[1]}`;let d=c[c.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${c.slice(0,-1).join(", ")} \u05D0\u05D5 ${d}`}case"too_big":{let c=i(u.origin),d=t(u.origin??"value");if(u.origin==="string")return`${c?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.maximum.toString()} ${c?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(u.origin==="number"){let h=u.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${u.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${h}`}if(u.origin==="array"||u.origin==="set"){let h=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",T=u.inclusive?`${u.maximum} ${c?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${u.maximum} ${c?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} ${h} \u05DC\u05D4\u05DB\u05D9\u05DC ${T}`.trim()}let p=u.inclusive?"<=":"<",g=a(u.origin??"value");return c?.unit?`${c.longLabel} \u05DE\u05D3\u05D9: ${d} ${g} ${p}${u.maximum.toString()} ${c.unit}`:`${c?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${d} ${g} ${p}${u.maximum.toString()}`}case"too_small":{let c=i(u.origin),d=t(u.origin??"value");if(u.origin==="string")return`${c?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.minimum.toString()} ${c?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(u.origin==="number"){let h=u.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${u.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${h}`}if(u.origin==="array"||u.origin==="set"){let h=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(u.minimum===1&&u.inclusive){let w=(u.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${h} \u05DC\u05D4\u05DB\u05D9\u05DC ${w}`}let T=u.inclusive?`${u.minimum} ${c?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${u.minimum} ${c?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${h} \u05DC\u05D4\u05DB\u05D9\u05DC ${T}`.trim()}let p=u.inclusive?">=":">",g=a(u.origin??"value");return c?.unit?`${c.shortLabel} \u05DE\u05D3\u05D9: ${d} ${g} ${p}${u.minimum.toString()} ${c.unit}`:`${c?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${d} ${g} ${p}${u.minimum.toString()}`}case"invalid_format":{let c=u;if(c.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${c.prefix}"`;if(c.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${c.suffix}"`;if(c.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${c.includes}"`;if(c.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 ${c.pattern}`;let d=s[c.format],p=d?.label??c.format,h=(d?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${p} \u05DC\u05D0 ${h}`}case"not_multiple_of":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 ${u.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${u.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${u.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${m(u.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${t(u.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function qp(){return{localeError:By()}}var Vy=()=>{let e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function r(t){return e[t]??null}let o={regex:"unos",email:"email adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},n={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${t.expected}, a primljeno je ${s}`:`Neispravan unos: o\u010Dekuje se ${a}, a primljeno je ${s}`}case"invalid_value":return t.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${x(t.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin),s=n[t.origin]??t.origin;return i?`Preveliko: o\u010Dekivano da ${s??"vrijednost"} ima ${a}${t.maximum.toString()} ${i.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${s??"vrijednost"} bude ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin),s=n[t.origin]??t.origin;return i?`Premalo: o\u010Dekivano da ${s} ima ${a}${t.minimum.toString()} ${i.unit}`:`Premalo: o\u010Dekivano da ${s} bude ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Neispravan tekst: mora zapo\u010Dinjati s "${a.prefix}"`:a.format==="ends_with"?`Neispravan tekst: mora zavr\u0161avati s "${a.suffix}"`:a.format==="includes"?`Neispravan tekst: mora sadr\u017Eavati "${a.includes}"`:a.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${a.pattern}`:`Neispravna ${o[a.format]??t.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\u0161ekratnik od ${t.divisor}`;case"unrecognized_keys":return`Neprepoznat${t.keys.length>1?"i klju\u010Devi":" klju\u010D"}: ${m(t.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${n[t.origin]??t.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${n[t.origin]??t.origin}`;default:return"Neispravan unos"}}};function Wp(){return{localeError:Vy()}}var qy=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function r(t){return e[t]??null}let o={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},n={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${t.expected}, a kapott \xE9rt\xE9k ${s}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${a}, a kapott \xE9rt\xE9k ${s}`}case"invalid_value":return t.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${x(t.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`T\xFAl nagy: ${t.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${a}${t.maximum.toString()} ${i.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${t.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${t.origin} m\xE9rete t\xFAl kicsi ${a}${t.minimum.toString()} ${i.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${t.origin} t\xFAl kicsi ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\xC9rv\xE9nytelen string: "${a.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:a.format==="ends_with"?`\xC9rv\xE9nytelen string: "${a.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:a.format==="includes"?`\xC9rv\xE9nytelen string: "${a.includes}" \xE9rt\xE9ket kell tartalmaznia`:a.format==="regex"?`\xC9rv\xE9nytelen string: ${a.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${o[a.format]??t.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${t.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${t.keys.length>1?"s":""}: ${m(t.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${t.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${t.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function Hp(){return{localeError:qy()}}function Gp(e,r,o){return Math.abs(e)===1?r:o}function $t(e){if(!e)return"";let r=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],o=e[e.length-1];return e+(r.includes(o)?"\u0576":"\u0568")}var Wy=()=>{let e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function r(t){return e[t]??null}let o={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},n={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${t.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${a}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`}case"invalid_value":return t.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${x(t.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);if(i){let s=Number(t.maximum),l=Gp(s,i.unit.one,i.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${$t(t.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${a}${t.maximum.toString()} ${l}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${$t(t.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);if(i){let s=Number(t.minimum),l=Gp(s,i.unit.one,i.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${$t(t.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${a}${t.minimum.toString()} ${l}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${$t(t.origin)} \u056C\u056B\u0576\u056B ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${a.prefix}"-\u0578\u057E`:a.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${a.suffix}"-\u0578\u057E`:a.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${a.includes}"`:a.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${a.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${o[a.format]??t.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${t.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${t.keys.length>1?"\u0576\u0565\u0580":""}. ${m(t.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${$t(t.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${$t(t.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function Jp(){return{localeError:Wy()}}var Hy=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function r(t){return e[t]??null}let o={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},n={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Input tidak valid: diharapkan instanceof ${t.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${a}, diterima ${s}`}case"invalid_value":return t.values.length===1?`Input tidak valid: diharapkan ${x(t.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`Terlalu besar: diharapkan ${t.origin??"value"} memiliki ${a}${t.maximum.toString()} ${i.unit??"elemen"}`:`Terlalu besar: diharapkan ${t.origin??"value"} menjadi ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`Terlalu kecil: diharapkan ${t.origin} memiliki ${a}${t.minimum.toString()} ${i.unit}`:`Terlalu kecil: diharapkan ${t.origin} menjadi ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`String tidak valid: harus dimulai dengan "${a.prefix}"`:a.format==="ends_with"?`String tidak valid: harus berakhir dengan "${a.suffix}"`:a.format==="includes"?`String tidak valid: harus menyertakan "${a.includes}"`:a.format==="regex"?`String tidak valid: harus sesuai pola ${a.pattern}`:`${o[a.format]??t.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${t.keys.length>1?"s":""}: ${m(t.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${t.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${t.origin}`;default:return"Input tidak valid"}}};function Kp(){return{localeError:Hy()}}var Gy=()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function r(t){return e[t]??null}let o={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"},n={nan:"NaN",number:"n\xFAmer",array:"fylki"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera instanceof ${t.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera ${a}`}case"invalid_value":return t.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${x(t.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin??"gildi"} hafi ${a}${t.maximum.toString()} ${i.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin??"gildi"} s\xE9 ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin} hafi ${a}${t.minimum.toString()} ${i.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin} s\xE9 ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${a.prefix}"`:a.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${a.suffix}"`:a.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${a.includes}"`:a.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${a.pattern}`:`Rangt ${o[a.format]??t.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${t.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${t.keys.length>1?"ir lyklar":"ur lykill"}: ${m(t.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${t.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${t.origin}`;default:return"Rangt gildi"}}};function Xp(){return{localeError:Gy()}}var Jy=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function r(t){return e[t]??null}let o={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},n={nan:"NaN",number:"numero",array:"vettore"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Input non valido: atteso instanceof ${t.expected}, ricevuto ${s}`:`Input non valido: atteso ${a}, ricevuto ${s}`}case"invalid_value":return t.values.length===1?`Input non valido: atteso ${x(t.values[0])}`:`Opzione non valida: atteso uno tra ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`Troppo grande: ${t.origin??"valore"} deve avere ${a}${t.maximum.toString()} ${i.unit??"elementi"}`:`Troppo grande: ${t.origin??"valore"} deve essere ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`Troppo piccolo: ${t.origin} deve avere ${a}${t.minimum.toString()} ${i.unit}`:`Troppo piccolo: ${t.origin} deve essere ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Stringa non valida: deve iniziare con "${a.prefix}"`:a.format==="ends_with"?`Stringa non valida: deve terminare con "${a.suffix}"`:a.format==="includes"?`Stringa non valida: deve includere "${a.includes}"`:a.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${a.pattern}`:`Input non valido: ${o[a.format]??t.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${t.divisor}`;case"unrecognized_keys":return`Chiav${t.keys.length>1?"i":"e"} non riconosciut${t.keys.length>1?"e":"a"}: ${m(t.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${t.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${t.origin}`;default:return"Input non valido"}}};function Yp(){return{localeError:Jy()}}var Ky=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function r(t){return e[t]??null}let o={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},n={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${t.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${a}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return t.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${x(t.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${m(t.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let a=t.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",i=r(t.origin);return i?`\u5927\u304D\u3059\u304E\u308B\u5024: ${t.origin??"\u5024"}\u306F${t.maximum.toString()}${i.unit??"\u8981\u7D20"}${a}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${t.origin??"\u5024"}\u306F${t.maximum.toString()}${a}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let a=t.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",i=r(t.origin);return i?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${t.origin}\u306F${t.minimum.toString()}${i.unit}${a}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${t.origin}\u306F${t.minimum.toString()}${a}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${a.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:a.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${a.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:a.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${a.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:a.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${a.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${o[a.format]??t.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${t.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${t.keys.length>1?"\u7FA4":""}: ${m(t.keys,"\u3001")}`;case"invalid_key":return`${t.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${t.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function Qp(){return{localeError:Ky()}}var Xy=()=>{let e={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function r(t){return e[t]??null}let o={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",json_string:"JSON \u10D5\u10D4\u10DA\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},n={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10D5\u10D4\u10DA\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${t.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${a}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`}case"invalid_value":return t.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${x(t.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${m(t.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${i.verb} ${a}${t.maximum.toString()} ${i.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin} ${i.verb} ${a}${t.minimum.toString()} ${i.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin} \u10D8\u10E7\u10DD\u10E1 ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${a.prefix}"-\u10D8\u10D7`:a.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${a.suffix}"-\u10D8\u10D7`:a.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${a.includes}"-\u10E1`:a.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${a.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${o[a.format]??t.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${t.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${t.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${m(t.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${t.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${t.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function em(){return{localeError:Xy()}}var Yy=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function r(t){return e[t]??null}let o={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},n={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${t.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${a} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`}case"invalid_value":return t.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${x(t.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${a} ${t.maximum.toString()} ${i.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${a} ${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin} ${a} ${t.minimum.toString()} ${i.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin} ${a} ${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${a.prefix}"`:a.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${a.suffix}"`:a.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${a.includes}"`:a.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${a.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${o[a.format]??t.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${t.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${m(t.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${t.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${t.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function Bo(){return{localeError:Yy()}}function tm(){return Bo()}var Qy=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function r(t){return e[t]??null}let o={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},n={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${t.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${a}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`}case"invalid_value":return t.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${x(t.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${m(t.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let a=t.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",i=a==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=r(t.origin),l=s?.unit??"\uC694\uC18C";return s?`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${t.maximum.toString()}${l} ${a}${i}`:`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${t.maximum.toString()} ${a}${i}`}case"too_small":{let a=t.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",i=a==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=r(t.origin),l=s?.unit??"\uC694\uC18C";return s?`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${t.minimum.toString()}${l} ${a}${i}`:`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${t.minimum.toString()} ${a}${i}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${a.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:a.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${a.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:a.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${a.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:a.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${a.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${o[a.format]??t.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${t.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${m(t.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${t.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${t.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function rm(){return{localeError:Qy()}}var vr=e=>e.charAt(0).toUpperCase()+e.slice(1);function om(e){let r=Math.abs(e),o=r%10,n=r%100;return n>=11&&n<=19||o===0?"many":o===1?"one":"few"}var ek=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function r(t,a,i,s){let l=e[t]??null;return l===null?l:{unit:l.unit[a],verb:l.verb[s][i?"inclusive":"notInclusive"]}}let o={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},n={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Gautas tipas ${s}, o tik\u0117tasi - instanceof ${t.expected}`:`Gautas tipas ${s}, o tik\u0117tasi - ${a}`}case"invalid_value":return t.values.length===1?`Privalo b\u016Bti ${x(t.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${m(t.values,"|")} pasirinkim\u0173`;case"too_big":{let a=n[t.origin]??t.origin,i=r(t.origin,om(Number(t.maximum)),t.inclusive??!1,"smaller");if(i?.verb)return`${vr(a??t.origin??"reik\u0161m\u0117")} ${i.verb} ${t.maximum.toString()} ${i.unit??"element\u0173"}`;let s=t.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${vr(a??t.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${t.maximum.toString()} ${i?.unit}`}case"too_small":{let a=n[t.origin]??t.origin,i=r(t.origin,om(Number(t.minimum)),t.inclusive??!1,"bigger");if(i?.verb)return`${vr(a??t.origin??"reik\u0161m\u0117")} ${i.verb} ${t.minimum.toString()} ${i.unit??"element\u0173"}`;let s=t.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${vr(a??t.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${t.minimum.toString()} ${i?.unit}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${a.prefix}"`:a.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${a.suffix}"`:a.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${a.includes}"`:a.format==="regex"?`Eilut\u0117 privalo atitikti ${a.pattern}`:`Neteisingas ${o[a.format]??t.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${t.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${t.keys.length>1?"i":"as"} rakt${t.keys.length>1?"ai":"as"}: ${m(t.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let a=n[t.origin]??t.origin;return`${vr(a??t.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function nm(){return{localeError:ek()}}var tk=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function r(t){return e[t]??null}let o={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},n={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${t.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${a}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`}case"invalid_value":return t.values.length===1?`Invalid input: expected ${x(t.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${a}${t.maximum.toString()} ${i.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin} \u0434\u0430 \u0438\u043C\u0430 ${a}${t.minimum.toString()} ${i.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${a.prefix}"`:a.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${a.suffix}"`:a.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${a.includes}"`:a.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${a.pattern}`:`Invalid ${o[a.format]??t.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${m(t.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${t.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${t.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function am(){return{localeError:tk()}}var rk=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function r(t){return e[t]??null}let o={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},n={nan:"NaN",number:"nombor"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Input tidak sah: dijangka instanceof ${t.expected}, diterima ${s}`:`Input tidak sah: dijangka ${a}, diterima ${s}`}case"invalid_value":return t.values.length===1?`Input tidak sah: dijangka ${x(t.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`Terlalu besar: dijangka ${t.origin??"nilai"} ${i.verb} ${a}${t.maximum.toString()} ${i.unit??"elemen"}`:`Terlalu besar: dijangka ${t.origin??"nilai"} adalah ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`Terlalu kecil: dijangka ${t.origin} ${i.verb} ${a}${t.minimum.toString()} ${i.unit}`:`Terlalu kecil: dijangka ${t.origin} adalah ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`String tidak sah: mesti bermula dengan "${a.prefix}"`:a.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${a.suffix}"`:a.format==="includes"?`String tidak sah: mesti mengandungi "${a.includes}"`:a.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${a.pattern}`:`${o[a.format]??t.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${m(t.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${t.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${t.origin}`;default:return"Input tidak sah"}}};function im(){return{localeError:rk()}}var ok=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function r(t){return e[t]??null}let o={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},n={nan:"NaN",number:"getal"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Ongeldige invoer: verwacht instanceof ${t.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${a}, ontving ${s}`}case"invalid_value":return t.values.length===1?`Ongeldige invoer: verwacht ${x(t.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin),s=t.origin==="date"?"laat":t.origin==="string"?"lang":"groot";return i?`Te ${s}: verwacht dat ${t.origin??"waarde"} ${a}${t.maximum.toString()} ${i.unit??"elementen"} ${i.verb}`:`Te ${s}: verwacht dat ${t.origin??"waarde"} ${a}${t.maximum.toString()} is`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin),s=t.origin==="date"?"vroeg":t.origin==="string"?"kort":"klein";return i?`Te ${s}: verwacht dat ${t.origin} ${a}${t.minimum.toString()} ${i.unit} ${i.verb}`:`Te ${s}: verwacht dat ${t.origin} ${a}${t.minimum.toString()} is`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Ongeldige tekst: moet met "${a.prefix}" beginnen`:a.format==="ends_with"?`Ongeldige tekst: moet op "${a.suffix}" eindigen`:a.format==="includes"?`Ongeldige tekst: moet "${a.includes}" bevatten`:a.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${a.pattern}`:`Ongeldig: ${o[a.format]??t.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${t.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${t.keys.length>1?"s":""}: ${m(t.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${t.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${t.origin}`;default:return"Ongeldige invoer"}}};function sm(){return{localeError:ok()}}var nk=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function r(t){return e[t]??null}let o={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},n={nan:"NaN",number:"tall",array:"liste"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Ugyldig input: forventet instanceof ${t.expected}, fikk ${s}`:`Ugyldig input: forventet ${a}, fikk ${s}`}case"invalid_value":return t.values.length===1?`Ugyldig verdi: forventet ${x(t.values[0])}`:`Ugyldig valg: forventet en av ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`For stor(t): forventet ${t.origin??"value"} til \xE5 ha ${a}${t.maximum.toString()} ${i.unit??"elementer"}`:`For stor(t): forventet ${t.origin??"value"} til \xE5 ha ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`For lite(n): forventet ${t.origin} til \xE5 ha ${a}${t.minimum.toString()} ${i.unit}`:`For lite(n): forventet ${t.origin} til \xE5 ha ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${a.prefix}"`:a.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${a.suffix}"`:a.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${a.includes}"`:a.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${a.pattern}`:`Ugyldig ${o[a.format]??t.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${m(t.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${t.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${t.origin}`;default:return"Ugyldig input"}}};function lm(){return{localeError:nk()}}var ak=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function r(t){return e[t]??null}let o={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},n={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`F\xE2sit giren: umulan instanceof ${t.expected}, al\u0131nan ${s}`:`F\xE2sit giren: umulan ${a}, al\u0131nan ${s}`}case"invalid_value":return t.values.length===1?`F\xE2sit giren: umulan ${x(t.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`Fazla b\xFCy\xFCk: ${t.origin??"value"}, ${a}${t.maximum.toString()} ${i.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${t.origin??"value"}, ${a}${t.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`Fazla k\xFC\xE7\xFCk: ${t.origin}, ${a}${t.minimum.toString()} ${i.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${t.origin}, ${a}${t.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let a=t;return a.format==="starts_with"?`F\xE2sit metin: "${a.prefix}" ile ba\u015Flamal\u0131.`:a.format==="ends_with"?`F\xE2sit metin: "${a.suffix}" ile bitmeli.`:a.format==="includes"?`F\xE2sit metin: "${a.includes}" ihtiv\xE2 etmeli.`:a.format==="regex"?`F\xE2sit metin: ${a.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${o[a.format]??t.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${t.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${t.keys.length>1?"s":""}: ${m(t.keys,", ")}`;case"invalid_key":return`${t.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${t.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function um(){return{localeError:ak()}}var ik=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function r(t){return e[t]??null}let o={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},n={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${t.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${a} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return t.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${x(t.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${m(t.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${t.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${a}${t.maximum.toString()} ${i.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${t.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${a}${t.maximum.toString()} \u0648\u064A`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${t.origin} \u0628\u0627\u06CC\u062F ${a}${t.minimum.toString()} ${i.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${t.origin} \u0628\u0627\u06CC\u062F ${a}${t.minimum.toString()} \u0648\u064A`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${a.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:a.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${a.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:a.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${a.includes}" \u0648\u0644\u0631\u064A`:a.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${a.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${o[a.format]??t.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${t.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${t.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${m(t.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${t.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${t.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function cm(){return{localeError:ik()}}var sk=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function r(t){return e[t]??null}let o={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},n={nan:"NaN",number:"liczba",array:"tablica"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${t.expected}, otrzymano ${s}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${a}, otrzymano ${s}`}case"invalid_value":return t.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${x(t.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${a}${t.maximum.toString()} ${i.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${a}${t.minimum.toString()} ${i.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${a.prefix}"`:a.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${a.suffix}"`:a.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${a.includes}"`:a.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${a.pattern}`:`Nieprawid\u0142ow(y/a/e) ${o[a.format]??t.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${t.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${t.keys.length>1?"s":""}: ${m(t.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${t.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${t.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function dm(){return{localeError:sk()}}var lk=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function r(t){return e[t]??null}let o={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},n={nan:"NaN",number:"n\xFAmero",null:"nulo"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Tipo inv\xE1lido: esperado instanceof ${t.expected}, recebido ${s}`:`Tipo inv\xE1lido: esperado ${a}, recebido ${s}`}case"invalid_value":return t.values.length===1?`Entrada inv\xE1lida: esperado ${x(t.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`Muito grande: esperado que ${t.origin??"valor"} tivesse ${a}${t.maximum.toString()} ${i.unit??"elementos"}`:`Muito grande: esperado que ${t.origin??"valor"} fosse ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`Muito pequeno: esperado que ${t.origin} tivesse ${a}${t.minimum.toString()} ${i.unit}`:`Muito pequeno: esperado que ${t.origin} fosse ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${a.prefix}"`:a.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${a.suffix}"`:a.format==="includes"?`Texto inv\xE1lido: deve incluir "${a.includes}"`:a.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${a.pattern}`:`${o[a.format]??t.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${t.divisor}`;case"unrecognized_keys":return`Chave${t.keys.length>1?"s":""} desconhecida${t.keys.length>1?"s":""}: ${m(t.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${t.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${t.origin}`;default:return"Campo inv\xE1lido"}}};function fm(){return{localeError:lk()}}var uk=()=>{let e={string:{unit:"caractere",verb:"s\u0103 aib\u0103"},file:{unit:"octe\u021Bi",verb:"s\u0103 aib\u0103"},array:{unit:"elemente",verb:"s\u0103 aib\u0103"},set:{unit:"elemente",verb:"s\u0103 aib\u0103"},map:{unit:"intr\u0103ri",verb:"s\u0103 aib\u0103"}};function r(t){return e[t]??null}let o={regex:"intrare",email:"adres\u0103 de email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dat\u0103 \u0219i or\u0103 ISO",date:"dat\u0103 ISO",time:"or\u0103 ISO",duration:"durat\u0103 ISO",ipv4:"adres\u0103 IPv4",ipv6:"adres\u0103 IPv6",mac:"adres\u0103 MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"\u0219ir codat base64",base64url:"\u0219ir codat base64url",json_string:"\u0219ir JSON",e164:"num\u0103r E.164",jwt:"JWT",template_literal:"intrare"},n={nan:"NaN",string:"\u0219ir",number:"num\u0103r",boolean:"boolean",function:"func\u021Bie",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"num\u0103r mare",void:"void",never:"never",map:"hart\u0103",set:"set"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return`Intrare invalid\u0103: a\u0219teptat ${a}, primit ${s}`}case"invalid_value":return t.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${x(t.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`Prea mare: a\u0219teptat ca ${t.origin??"valoarea"} ${i.verb} ${a}${t.maximum.toString()} ${i.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${t.origin??"valoarea"} s\u0103 fie ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`Prea mic: a\u0219teptat ca ${t.origin} ${i.verb} ${a}${t.minimum.toString()} ${i.unit}`:`Prea mic: a\u0219teptat ca ${t.origin} s\u0103 fie ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${a.prefix}"`:a.format==="ends_with"?`\u0218ir invalid: trebuie s\u0103 se termine cu "${a.suffix}"`:a.format==="includes"?`\u0218ir invalid: trebuie s\u0103 includ\u0103 "${a.includes}"`:a.format==="regex"?`\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${a.pattern}`:`Format invalid: ${o[a.format]??t.format}`}case"not_multiple_of":return`Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${t.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${m(t.keys,", ")}`;case"invalid_key":return`Cheie invalid\u0103 \xEEn ${t.origin}`;case"invalid_union":return"Intrare invalid\u0103";case"invalid_element":return`Valoare invalid\u0103 \xEEn ${t.origin}`;default:return"Intrare invalid\u0103"}}};function pm(){return{localeError:uk()}}function mm(e,r,o,n){let t=Math.abs(e),a=t%10,i=t%100;return i>=11&&i<=19?n:a===1?r:a>=2&&a<=4?o:n}var ck=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function r(t){return e[t]??null}let o={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},n={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${t.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${a}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`}case"invalid_value":return t.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${x(t.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);if(i){let s=Number(t.maximum),l=mm(s,i.unit.one,i.unit.few,i.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${a}${t.maximum.toString()} ${l}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);if(i){let s=Number(t.minimum),l=mm(s,i.unit.one,i.unit.few,i.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${a}${t.minimum.toString()} ${l}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin} \u0431\u0443\u0434\u0435\u0442 ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${a.prefix}"`:a.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${a.suffix}"`:a.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${a.includes}"`:a.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${a.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${o[a.format]??t.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${t.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${t.keys.length>1?"\u0438":""}: ${m(t.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${t.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${t.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function gm(){return{localeError:ck()}}var dk=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function r(t){return e[t]??null}let o={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},n={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${t.expected}, prejeto ${s}`:`Neveljaven vnos: pri\u010Dakovano ${a}, prejeto ${s}`}case"invalid_value":return t.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${x(t.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`Preveliko: pri\u010Dakovano, da bo ${t.origin??"vrednost"} imelo ${a}${t.maximum.toString()} ${i.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${t.origin??"vrednost"} ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`Premajhno: pri\u010Dakovano, da bo ${t.origin} imelo ${a}${t.minimum.toString()} ${i.unit}`:`Premajhno: pri\u010Dakovano, da bo ${t.origin} ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${a.prefix}"`:a.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${a.suffix}"`:a.format==="includes"?`Neveljaven niz: mora vsebovati "${a.includes}"`:a.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${a.pattern}`:`Neveljaven ${o[a.format]??t.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${t.divisor}`;case"unrecognized_keys":return`Neprepoznan${t.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${m(t.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${t.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${t.origin}`;default:return"Neveljaven vnos"}}};function hm(){return{localeError:dk()}}var fk=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function r(t){return e[t]??null}let o={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},n={nan:"NaN",number:"antal",array:"lista"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${t.expected}, fick ${s}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${a}, fick ${s}`}case"invalid_value":return t.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${x(t.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`F\xF6r stor(t): f\xF6rv\xE4ntade ${t.origin??"v\xE4rdet"} att ha ${a}${t.maximum.toString()} ${i.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${t.origin??"v\xE4rdet"} att ha ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`F\xF6r lite(t): f\xF6rv\xE4ntade ${t.origin??"v\xE4rdet"} att ha ${a}${t.minimum.toString()} ${i.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${t.origin??"v\xE4rdet"} att ha ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${a.prefix}"`:a.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${a.suffix}"`:a.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${a.includes}"`:a.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${a.pattern}"`:`Ogiltig(t) ${o[a.format]??t.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${m(t.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${t.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${t.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function xm(){return{localeError:fk()}}var pk=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function r(t){return e[t]??null}let o={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},n={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${t.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`}case"invalid_value":return t.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${x(t.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${m(t.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${a}${t.maximum.toString()} ${i.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${a}${t.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin} ${a}${t.minimum.toString()} ${i.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin} ${a}${t.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${a.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:a.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${a.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:a.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${a.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:a.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${a.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${o[a.format]??t.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${t.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${t.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${m(t.keys,", ")}`;case"invalid_key":return`${t.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${t.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function vm(){return{localeError:pk()}}var mk=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function r(t){return e[t]??null}let o={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},n={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${t.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${a} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`}case"invalid_value":return t.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${x(t.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",i=r(t.origin);return i?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${a} ${t.maximum.toString()} ${i.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${a} ${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",i=r(t.origin);return i?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${a} ${t.minimum.toString()} ${i.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${a} ${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${a.prefix}"`:a.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${a.suffix}"`:a.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${a.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:a.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${a.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${o[a.format]??t.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${t.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${m(t.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${t.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${t.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function bm(){return{localeError:mk()}}var gk=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function r(t){return e[t]??null}let o={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},n={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${t.expected}, al\u0131nan ${s}`:`Ge\xE7ersiz de\u011Fer: beklenen ${a}, al\u0131nan ${s}`}case"invalid_value":return t.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${x(t.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`\xC7ok b\xFCy\xFCk: beklenen ${t.origin??"de\u011Fer"} ${a}${t.maximum.toString()} ${i.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${t.origin??"de\u011Fer"} ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`\xC7ok k\xFC\xE7\xFCk: beklenen ${t.origin} ${a}${t.minimum.toString()} ${i.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${t.origin} ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Ge\xE7ersiz metin: "${a.prefix}" ile ba\u015Flamal\u0131`:a.format==="ends_with"?`Ge\xE7ersiz metin: "${a.suffix}" ile bitmeli`:a.format==="includes"?`Ge\xE7ersiz metin: "${a.includes}" i\xE7ermeli`:a.format==="regex"?`Ge\xE7ersiz metin: ${a.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${o[a.format]??t.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${t.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${t.keys.length>1?"lar":""}: ${m(t.keys,", ")}`;case"invalid_key":return`${t.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${t.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function ym(){return{localeError:gk()}}var hk=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function r(t){return e[t]??null}let o={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},n={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${t.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${a}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`}case"invalid_value":return t.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${x(t.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${i.verb} ${a}${t.maximum.toString()} ${i.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin} ${i.verb} ${a}${t.minimum.toString()} ${i.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin} \u0431\u0443\u0434\u0435 ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${a.prefix}"`:a.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${a.suffix}"`:a.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${a.includes}"`:a.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${a.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${o[a.format]??t.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${t.keys.length>1?"\u0456":""}: ${m(t.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${t.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${t.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function Vo(){return{localeError:hk()}}function km(){return Vo()}var xk=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function r(t){return e[t]??null}let o={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},n={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${t.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${a} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return t.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${x(t.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${m(t.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${t.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${a}${t.maximum.toString()} ${i.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${t.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${a}${t.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${t.origin} \u06A9\u06D2 ${a}${t.minimum.toString()} ${i.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${t.origin} \u06A9\u0627 ${a}${t.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${a.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:a.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${a.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:a.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${a.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:a.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${a.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${o[a.format]??t.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${t.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${t.keys.length>1?"\u0632":""}: ${m(t.keys,"\u060C ")}`;case"invalid_key":return`${t.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${t.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function $m(){return{localeError:xk()}}var vk=()=>{let e={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"},map:{unit:"yozuv",verb:"bo\u2018lishi kerak"}};function r(t){return e[t]??null}let o={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},n={nan:"NaN",number:"raqam",array:"massiv"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${t.expected}, qabul qilingan ${s}`:`Noto\u2018g\u2018ri kirish: kutilgan ${a}, qabul qilingan ${s}`}case"invalid_value":return t.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${x(t.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`Juda katta: kutilgan ${t.origin??"qiymat"} ${a}${t.maximum.toString()} ${i.unit} ${i.verb}`:`Juda katta: kutilgan ${t.origin??"qiymat"} ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`Juda kichik: kutilgan ${t.origin} ${a}${t.minimum.toString()} ${i.unit} ${i.verb}`:`Juda kichik: kutilgan ${t.origin} ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${a.prefix}" bilan boshlanishi kerak`:a.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${a.suffix}" bilan tugashi kerak`:a.format==="includes"?`Noto\u2018g\u2018ri satr: "${a.includes}" ni o\u2018z ichiga olishi kerak`:a.format==="regex"?`Noto\u2018g\u2018ri satr: ${a.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${o[a.format]??t.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${t.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${t.keys.length>1?"lar":""}: ${m(t.keys,", ")}`;case"invalid_key":return`${t.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${t.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function _m(){return{localeError:vk()}}var bk=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function r(t){return e[t]??null}let o={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},n={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${t.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${a}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`}case"invalid_value":return t.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${x(t.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${t.origin??"gi\xE1 tr\u1ECB"} ${i.verb} ${a}${t.maximum.toString()} ${i.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${t.origin??"gi\xE1 tr\u1ECB"} ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${t.origin} ${i.verb} ${a}${t.minimum.toString()} ${i.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${t.origin} ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${a.prefix}"`:a.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${a.suffix}"`:a.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${a.includes}"`:a.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${a.pattern}`:`${o[a.format]??t.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${t.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${m(t.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${t.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${t.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function wm(){return{localeError:bk()}}var yk=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function r(t){return e[t]??null}let o={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},n={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${t.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${a}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`}case"invalid_value":return t.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${x(t.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${t.origin??"\u503C"} ${a}${t.maximum.toString()} ${i.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${t.origin??"\u503C"} ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${t.origin} ${a}${t.minimum.toString()} ${i.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${t.origin} ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${a.prefix}" \u5F00\u5934`:a.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${a.suffix}" \u7ED3\u5C3E`:a.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${a.includes}"`:a.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${a.pattern}`:`\u65E0\u6548${o[a.format]??t.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${t.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${m(t.keys,", ")}`;case"invalid_key":return`${t.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${t.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function Sm(){return{localeError:yk()}}var kk=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function r(t){return e[t]??null}let o={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},n={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${t.expected}\uFF0C\u4F46\u6536\u5230 ${s}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${a}\uFF0C\u4F46\u6536\u5230 ${s}`}case"invalid_value":return t.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${x(t.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${t.origin??"\u503C"} \u61C9\u70BA ${a}${t.maximum.toString()} ${i.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${t.origin??"\u503C"} \u61C9\u70BA ${a}${t.maximum.toString()}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${t.origin} \u61C9\u70BA ${a}${t.minimum.toString()} ${i.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${t.origin} \u61C9\u70BA ${a}${t.minimum.toString()}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${a.prefix}" \u958B\u982D`:a.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${a.suffix}" \u7D50\u5C3E`:a.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${a.includes}"`:a.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${a.pattern}`:`\u7121\u6548\u7684 ${o[a.format]??t.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${t.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${t.keys.length>1?"\u5011":""}\uFF1A${m(t.keys,"\u3001")}`;case"invalid_key":return`${t.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${t.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function zm(){return{localeError:kk()}}var $k=()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function r(t){return e[t]??null}let o={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},n={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return t=>{switch(t.code){case"invalid_type":{let a=n[t.expected]??t.expected,i=v(t.input),s=n[i]??i;return/^[A-Z]/.test(t.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${t.expected}, \xE0m\u1ECD\u0300 a r\xED ${s}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${a}, \xE0m\u1ECD\u0300 a r\xED ${s}`}case"invalid_value":return t.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${x(t.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${m(t.values,"|")}`;case"too_big":{let a=t.inclusive?"<=":"<",i=r(t.origin);return i?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${t.origin??"iye"} ${i.verb} ${a}${t.maximum} ${i.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${a}${t.maximum}`}case"too_small":{let a=t.inclusive?">=":">",i=r(t.origin);return i?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${t.origin} ${i.verb} ${a}${t.minimum} ${i.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${a}${t.minimum}`}case"invalid_format":{let a=t;return a.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${a.prefix}"`:a.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${a.suffix}"`:a.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${a.includes}"`:a.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${a.pattern}`:`A\u1E63\xEC\u1E63e: ${o[a.format]??t.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${t.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${m(t.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${t.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${t.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function Im(){return{localeError:$k()}}var Tm,wl=Symbol("ZodOutput"),Sl=Symbol("ZodInput"),qo=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(r,...o){let n=o[0];return this._map.set(r,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,r),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(r){let o=this._map.get(r);return o&&typeof o=="object"&&"id"in o&&this._idmap.delete(o.id),this._map.delete(r),this}get(r){let o=r._zod.parent;if(o){let n={...this.get(o)??{}};delete n.id;let t={...n,...this._map.get(r)};return Object.keys(t).length?t:void 0}return this._map.get(r)}has(r){return this._map.has(r)}};function Wo(){return new qo}(Tm=globalThis).__zod_globalRegistry??(Tm.__zod_globalRegistry=Wo());var q=globalThis.__zod_globalRegistry;function zl(e,r){return new e({type:"string",...k(r)})}function Il(e,r){return new e({type:"string",coerce:!0,...k(r)})}function Ho(e,r){return new e({type:"string",format:"email",check:"string_format",abort:!1,...k(r)})}function yr(e,r){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...k(r)})}function Go(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...k(r)})}function Jo(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...k(r)})}function Ko(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...k(r)})}function Xo(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...k(r)})}function kr(e,r){return new e({type:"string",format:"url",check:"string_format",abort:!1,...k(r)})}function Yo(e,r){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...k(r)})}function Qo(e,r){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...k(r)})}function en(e,r){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...k(r)})}function tn(e,r){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...k(r)})}function rn(e,r){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...k(r)})}function on(e,r){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...k(r)})}function nn(e,r){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...k(r)})}function an(e,r){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...k(r)})}function sn(e,r){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...k(r)})}function Tl(e,r){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...k(r)})}function ln(e,r){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...k(r)})}function un(e,r){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...k(r)})}function cn(e,r){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...k(r)})}function dn(e,r){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...k(r)})}function fn(e,r){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...k(r)})}function pn(e,r){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...k(r)})}var Pl={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Cl(e,r){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...k(r)})}function Dl(e,r){return new e({type:"string",format:"date",check:"string_format",...k(r)})}function Al(e,r){return new e({type:"string",format:"time",check:"string_format",precision:null,...k(r)})}function El(e,r){return new e({type:"string",format:"duration",check:"string_format",...k(r)})}function Ol(e,r){return new e({type:"number",checks:[],...k(r)})}function Ul(e,r){return new e({type:"number",coerce:!0,checks:[],...k(r)})}function jl(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...k(r)})}function Nl(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...k(r)})}function Ll(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...k(r)})}function Rl(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...k(r)})}function Zl(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...k(r)})}function Ml(e,r){return new e({type:"boolean",...k(r)})}function Fl(e,r){return new e({type:"boolean",coerce:!0,...k(r)})}function Bl(e,r){return new e({type:"bigint",...k(r)})}function Vl(e,r){return new e({type:"bigint",coerce:!0,...k(r)})}function ql(e,r){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...k(r)})}function Wl(e,r){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...k(r)})}function Hl(e,r){return new e({type:"symbol",...k(r)})}function Gl(e,r){return new e({type:"undefined",...k(r)})}function Jl(e,r){return new e({type:"null",...k(r)})}function Kl(e){return new e({type:"any"})}function Xl(e){return new e({type:"unknown"})}function Yl(e,r){return new e({type:"never",...k(r)})}function Ql(e,r){return new e({type:"void",...k(r)})}function eu(e,r){return new e({type:"date",...k(r)})}function tu(e,r){return new e({type:"date",coerce:!0,...k(r)})}function ru(e,r){return new e({type:"nan",...k(r)})}function he(e,r){return new Do({check:"less_than",...k(r),value:e,inclusive:!1})}function ae(e,r){return new Do({check:"less_than",...k(r),value:e,inclusive:!0})}function xe(e,r){return new Ao({check:"greater_than",...k(r),value:e,inclusive:!1})}function Y(e,r){return new Ao({check:"greater_than",...k(r),value:e,inclusive:!0})}function mn(e){return xe(0,e)}function gn(e){return he(0,e)}function hn(e){return ae(0,e)}function xn(e){return Y(0,e)}function Ze(e,r){return new Ji({check:"multiple_of",...k(r),value:e})}function Me(e,r){return new Yi({check:"max_size",...k(r),maximum:e})}function ve(e,r){return new Qi({check:"min_size",...k(r),minimum:e})}function et(e,r){return new es({check:"size_equals",...k(r),size:e})}function tt(e,r){return new ts({check:"max_length",...k(r),maximum:e})}function we(e,r){return new rs({check:"min_length",...k(r),minimum:e})}function rt(e,r){return new os({check:"length_equals",...k(r),length:e})}function _t(e,r){return new ns({check:"string_format",format:"regex",...k(r),pattern:e})}function wt(e){return new as({check:"string_format",format:"lowercase",...k(e)})}function St(e){return new is({check:"string_format",format:"uppercase",...k(e)})}function zt(e,r){return new ss({check:"string_format",format:"includes",...k(r),includes:e})}function It(e,r){return new ls({check:"string_format",format:"starts_with",...k(r),prefix:e})}function Tt(e,r){return new us({check:"string_format",format:"ends_with",...k(r),suffix:e})}function vn(e,r,o){return new cs({check:"property",property:e,schema:r,...k(o)})}function Pt(e,r){return new ds({check:"mime_type",mime:e,...k(r)})}function fe(e){return new fs({check:"overwrite",tx:e})}function Ct(e){return fe(r=>r.normalize(e))}function Dt(){return fe(e=>e.trim())}function At(){return fe(e=>e.toLowerCase())}function Et(){return fe(e=>e.toUpperCase())}function Ot(){return fe(e=>li(e))}function ou(e,r,o){return new e({type:"array",element:r,...k(o)})}function wk(e,r,o){return new e({type:"union",options:r,...k(o)})}function Sk(e,r,o){return new e({type:"union",options:r,inclusive:!1,...k(o)})}function zk(e,r,o,n){return new e({type:"union",options:o,discriminator:r,...k(n)})}function Ik(e,r,o){return new e({type:"intersection",left:r,right:o})}function Tk(e,r,o,n){let t=o instanceof _,a=t?n:o,i=t?o:null;return new e({type:"tuple",items:r,rest:i,...k(a)})}function Pk(e,r,o,n){return new e({type:"record",keyType:r,valueType:o,...k(n)})}function Ck(e,r,o,n){return new e({type:"map",keyType:r,valueType:o,...k(n)})}function Dk(e,r,o){return new e({type:"set",valueType:r,...k(o)})}function Ak(e,r,o){let n=Array.isArray(r)?Object.fromEntries(r.map(t=>[t,t])):r;return new e({type:"enum",entries:n,...k(o)})}function Ek(e,r,o){return new e({type:"enum",entries:r,...k(o)})}function Ok(e,r,o){return new e({type:"literal",values:Array.isArray(r)?r:[r],...k(o)})}function nu(e,r){return new e({type:"file",...k(r)})}function Uk(e,r){return new e({type:"transform",transform:r})}function jk(e,r){return new e({type:"optional",innerType:r})}function Nk(e,r){return new e({type:"nullable",innerType:r})}function Lk(e,r,o){return new e({type:"default",innerType:r,get defaultValue(){return typeof o=="function"?o():ci(o)}})}function Rk(e,r,o){return new e({type:"nonoptional",innerType:r,...k(o)})}function Zk(e,r){return new e({type:"success",innerType:r})}function Mk(e,r,o){return new e({type:"catch",innerType:r,catchValue:typeof o=="function"?o:()=>o})}function Fk(e,r,o){return new e({type:"pipe",in:r,out:o})}function Bk(e,r){return new e({type:"readonly",innerType:r})}function Vk(e,r,o){return new e({type:"template_literal",parts:r,...k(o)})}function qk(e,r){return new e({type:"lazy",getter:r})}function Wk(e,r){return new e({type:"promise",innerType:r})}function au(e,r,o){let n=k(o);return n.abort??(n.abort=!0),new e({type:"custom",check:"custom",fn:r,...n})}function iu(e,r,o){return new e({type:"custom",check:"custom",fn:r,...k(o)})}function su(e,r){let o=Pm(n=>(n.addIssue=t=>{if(typeof t=="string")n.issues.push(ht(t,n.value,o._zod.def));else{let a=t;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=o),a.continue??(a.continue=!o._zod.def.abort),n.issues.push(ht(a))}},e(n.value,n)),r);return o}function Pm(e,r){let o=new j({check:"custom",...k(r)});return o._zod.check=e,o}function lu(e){let r=new j({check:"describe"});return r._zod.onattach=[o=>{let n=q.get(o)??{};q.add(o,{...n,description:e})}],r._zod.check=()=>{},r}function uu(e){let r=new j({check:"meta"});return r._zod.onattach=[o=>{let n=q.get(o)??{};q.add(o,{...n,...e})}],r._zod.check=()=>{},r}function cu(e,r){let o=k(r),n=o.truthy??["true","1","yes","on","y","enabled"],t=o.falsy??["false","0","no","off","n","disabled"];o.case!=="sensitive"&&(n=n.map(g=>typeof g=="string"?g.toLowerCase():g),t=t.map(g=>typeof g=="string"?g.toLowerCase():g));let a=new Set(n),i=new Set(t),s=e.Codec??xr,l=e.Boolean??gr,u=e.String??Qe,c=new u({type:"string",error:o.error}),d=new l({type:"boolean",error:o.error}),p=new s({type:"pipe",in:c,out:d,transform:((g,h)=>{let T=g;return o.case!=="sensitive"&&(T=T.toLowerCase()),a.has(T)?!0:i.has(T)?!1:(h.issues.push({code:"invalid_value",expected:"stringbool",values:[...a,...i],input:h.value,inst:p,continue:!1}),{})}),reverseTransform:((g,h)=>g===!0?n[0]||"true":t[0]||"false"),error:o.error});return p}function Ut(e,r,o,n={}){let t=k(n),a={...k(n),check:"string_format",type:"string",format:r,fn:typeof o=="function"?o:s=>o.test(s),...t};return o instanceof RegExp&&(a.pattern=o),new e(a)}function Fe(e){let r=e?.target??"draft-2020-12";return r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??q,target:r,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function E(e,r,o={path:[],schemaPath:[]}){var n;let t=e._zod.def,a=r.seen.get(e);if(a)return a.count++,o.schemaPath.includes(e)&&(a.cycle=o.path),a.schema;let i={schema:{},count:1,cycle:void 0,path:o.path};r.seen.set(e,i);let s=e._zod.toJSONSchema?.();if(s)i.schema=s;else{let c={...o,schemaPath:[...o.schemaPath,e],path:o.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(r,i.schema,c);else{let p=i.schema,g=r.processors[t.type];if(!g)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${t.type}`);g(e,r,p,c)}let d=e._zod.parent;d&&(i.ref||(i.ref=d),E(d,r,c),r.seen.get(d).isParent=!0)}let l=r.metadataRegistry.get(e);return l&&Object.assign(i.schema,l),r.io==="input"&&Q(e)&&(delete i.schema.examples,delete i.schema.default),r.io==="input"&&"_prefault"in i.schema&&((n=i.schema).default??(n.default=i.schema._prefault)),delete i.schema._prefault,r.seen.get(e).schema}function Be(e,r){let o=e.seen.get(r);if(!o)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=new Map;for(let i of e.seen.entries()){let s=e.metadataRegistry.get(i[0])?.id;if(s){let l=n.get(s);if(l&&l!==i[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(s,i[0])}}let t=i=>{let s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let d=e.external.registry.get(i[0])?.id,p=e.external.uri??(h=>h);if(d)return{ref:p(d)};let g=i[1].defId??i[1].schema.id??`schema${e.counter++}`;return i[1].defId=g,{defId:g,ref:`${p("__shared")}#/${s}/${g}`}}if(i[1]===o)return{ref:"#"};let u=`#/${s}/`,c=i[1].schema.id??`__schema${e.counter++}`;return{defId:c,ref:u+c}},a=i=>{if(i[1].schema.$ref)return;let s=i[1],{ref:l,defId:u}=t(i);s.def={...s.schema},u&&(s.defId=u);let c=s.schema;for(let d in c)delete c[d];c.$ref=l};if(e.cycles==="throw")for(let i of e.seen.entries()){let s=i[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/ -Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let i of e.seen.entries()){let s=i[1];if(r===i[0]){a(i);continue}if(e.external){let u=e.external.registry.get(i[0])?.id;if(r!==i[0]&&u){a(i);continue}}if(e.metadataRegistry.get(i[0])?.id){a(i);continue}if(s.cycle){a(i);continue}if(s.count>1&&e.reused==="ref"){a(i);continue}}}function qe(e,r){let o=e.seen.get(r);if(!o)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=s=>{let l=e.seen.get(s);if(l.ref===null)return;let u=l.def??l.schema,c={...u},d=l.ref;if(l.ref=null,d){n(d);let g=e.seen.get(d),h=g.schema;if(h.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(h)):Object.assign(u,h),Object.assign(u,c),s._zod.parent===d)for(let w in u)w==="$ref"||w==="allOf"||w in c||delete u[w];if(h.$ref&&g.def)for(let w in u)w==="$ref"||w==="allOf"||w in g.def&&JSON.stringify(u[w])===JSON.stringify(g.def[w])&&delete u[w]}let p=s._zod.parent;if(p&&p!==d){n(p);let g=e.seen.get(p);if(g?.schema.$ref&&(u.$ref=g.schema.$ref,g.def))for(let h in u)h==="$ref"||h==="allOf"||h in g.def&&JSON.stringify(u[h])===JSON.stringify(g.def[h])&&delete u[h]}e.override({zodSchema:s,jsonSchema:u,path:l.path??[]})};for(let s of[...e.seen.entries()].reverse())n(s[0]);let t={};if(e.target==="draft-2020-12"?t.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?t.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?t.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let s=e.external.registry.get(r)?.id;if(!s)throw new Error("Schema is missing an `id` property");t.$id=e.external.uri(s)}Object.assign(t,o.def??o.schema);let a=e.metadataRegistry.get(r)?.id;a!==void 0&&t.id===a&&delete t.id;let i=e.external?.defs??{};for(let s of e.seen.entries()){let l=s[1];l.def&&l.defId&&(l.def.id===l.defId&&delete l.def.id,i[l.defId]=l.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?t.$defs=i:t.definitions=i);try{let s=JSON.parse(JSON.stringify(t));return Object.defineProperty(s,"~standard",{value:{...r["~standard"],jsonSchema:{input:jt(r,"input",e.processors),output:jt(r,"output",e.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function Y(e,r){let o=r??{seen:new Set};if(o.seen.has(e))return!1;o.seen.add(e);let n=e._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return Y(n.element,o);if(n.type==="set")return Y(n.valueType,o);if(n.type==="lazy")return Y(n.getter(),o);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return Y(n.innerType,o);if(n.type==="intersection")return Y(n.left,o)||Y(n.right,o);if(n.type==="record"||n.type==="map")return Y(n.keyType,o)||Y(n.valueType,o);if(n.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Y(n.in,o)||Y(n.out,o);if(n.type==="object"){for(let t in n.shape)if(Y(n.shape[t],o))return!0;return!1}if(n.type==="union"){for(let t of n.options)if(Y(t,o))return!0;return!1}if(n.type==="tuple"){for(let t of n.items)if(Y(t,o))return!0;return!!(n.rest&&Y(n.rest,o))}return!1}var ou=(e,r={})=>o=>{let n=Fe({...o,processors:r});return O(e,n),Be(n,e),qe(n,e)},jt=(e,r,o={})=>n=>{let{libraryOptions:t,target:a}=n??{},i=Fe({...t??{},target:a,io:r,processors:o});return O(e,i),Be(i,e),qe(i,e)};var Rk={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},nu=(e,r,o,n)=>{let t=o;t.type="string";let{minimum:a,maximum:i,format:s,patterns:l,contentEncoding:u}=e._zod.bag;if(typeof a=="number"&&(t.minLength=a),typeof i=="number"&&(t.maxLength=i),s&&(t.format=Rk[s]??s,t.format===""&&delete t.format,s==="time"&&delete t.format),u&&(t.contentEncoding=u),l&&l.size>0){let c=[...l];c.length===1?t.pattern=c[0].source:c.length>1&&(t.allOf=[...c.map(d=>({...r.target==="draft-07"||r.target==="draft-04"||r.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},au=(e,r,o,n)=>{let t=o,{minimum:a,maximum:i,format:s,multipleOf:l,exclusiveMaximum:u,exclusiveMinimum:c}=e._zod.bag;typeof s=="string"&&s.includes("int")?t.type="integer":t.type="number";let d=typeof c=="number"&&c>=(a??Number.NEGATIVE_INFINITY),p=typeof u=="number"&&u<=(i??Number.POSITIVE_INFINITY),g=r.target==="draft-04"||r.target==="openapi-3.0";d?g?(t.minimum=c,t.exclusiveMinimum=!0):t.exclusiveMinimum=c:typeof a=="number"&&(t.minimum=a),p?g?(t.maximum=u,t.exclusiveMaximum=!0):t.exclusiveMaximum=u:typeof i=="number"&&(t.maximum=i),typeof l=="number"&&(t.multipleOf=l)},iu=(e,r,o,n)=>{o.type="boolean"},su=(e,r,o,n)=>{if(r.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},lu=(e,r,o,n)=>{if(r.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},uu=(e,r,o,n)=>{r.target==="openapi-3.0"?(o.type="string",o.nullable=!0,o.enum=[null]):o.type="null"},cu=(e,r,o,n)=>{if(r.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},du=(e,r,o,n)=>{if(r.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},fu=(e,r,o,n)=>{o.not={}},pu=(e,r,o,n)=>{},mu=(e,r,o,n)=>{},gu=(e,r,o,n)=>{if(r.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},hu=(e,r,o,n)=>{let t=e._zod.def,a=or(t.entries);a.every(i=>typeof i=="number")&&(o.type="number"),a.every(i=>typeof i=="string")&&(o.type="string"),o.enum=a},xu=(e,r,o,n)=>{let t=e._zod.def,a=[];for(let i of t.values)if(i===void 0){if(r.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof i=="bigint"){if(r.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");a.push(Number(i))}else a.push(i);if(a.length!==0)if(a.length===1){let i=a[0];o.type=i===null?"null":typeof i,r.target==="draft-04"||r.target==="openapi-3.0"?o.enum=[i]:o.const=i}else a.every(i=>typeof i=="number")&&(o.type="number"),a.every(i=>typeof i=="string")&&(o.type="string"),a.every(i=>typeof i=="boolean")&&(o.type="boolean"),a.every(i=>i===null)&&(o.type="null"),o.enum=a},vu=(e,r,o,n)=>{if(r.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},bu=(e,r,o,n)=>{let t=o,a=e._zod.pattern;if(!a)throw new Error("Pattern not found in template literal");t.type="string",t.pattern=a.source},yu=(e,r,o,n)=>{let t=o,a={type:"string",format:"binary",contentEncoding:"binary"},{minimum:i,maximum:s,mime:l}=e._zod.bag;i!==void 0&&(a.minLength=i),s!==void 0&&(a.maxLength=s),l?l.length===1?(a.contentMediaType=l[0],Object.assign(t,a)):(Object.assign(t,a),t.anyOf=l.map(u=>({contentMediaType:u}))):Object.assign(t,a)},ku=(e,r,o,n)=>{o.type="boolean"},$u=(e,r,o,n)=>{if(r.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},_u=(e,r,o,n)=>{if(r.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},wu=(e,r,o,n)=>{if(r.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Su=(e,r,o,n)=>{if(r.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},zu=(e,r,o,n)=>{if(r.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Iu=(e,r,o,n)=>{let t=o,a=e._zod.def,{minimum:i,maximum:s}=e._zod.bag;typeof i=="number"&&(t.minItems=i),typeof s=="number"&&(t.maxItems=s),t.type="array",t.items=O(a.element,r,{...n,path:[...n.path,"items"]})},Pu=(e,r,o,n)=>{let t=o,a=e._zod.def;t.type="object",t.properties={};let i=a.shape;for(let u in i)t.properties[u]=O(i[u],r,{...n,path:[...n.path,"properties",u]});let s=new Set(Object.keys(i)),l=new Set([...s].filter(u=>{let c=a.shape[u]._zod;return r.io==="input"?c.optin===void 0:c.optout===void 0}));l.size>0&&(t.required=Array.from(l)),a.catchall?._zod.def.type==="never"?t.additionalProperties=!1:a.catchall?a.catchall&&(t.additionalProperties=O(a.catchall,r,{...n,path:[...n.path,"additionalProperties"]})):r.io==="output"&&(t.additionalProperties=!1)},bn=(e,r,o,n)=>{let t=e._zod.def,a=t.inclusive===!1,i=t.options.map((s,l)=>O(s,r,{...n,path:[...n.path,a?"oneOf":"anyOf",l]}));a?o.oneOf=i:o.anyOf=i},Tu=(e,r,o,n)=>{let t=e._zod.def,a=O(t.left,r,{...n,path:[...n.path,"allOf",0]}),i=O(t.right,r,{...n,path:[...n.path,"allOf",1]}),s=u=>"allOf"in u&&Object.keys(u).length===1,l=[...s(a)?a.allOf:[a],...s(i)?i.allOf:[i]];o.allOf=l},Cu=(e,r,o,n)=>{let t=o,a=e._zod.def;t.type="array";let i=r.target==="draft-2020-12"?"prefixItems":"items",s=r.target==="draft-2020-12"||r.target==="openapi-3.0"?"items":"additionalItems",l=a.items.map((p,g)=>O(p,r,{...n,path:[...n.path,i,g]})),u=a.rest?O(a.rest,r,{...n,path:[...n.path,s,...r.target==="openapi-3.0"?[a.items.length]:[]]}):null;r.target==="draft-2020-12"?(t.prefixItems=l,u&&(t.items=u)):r.target==="openapi-3.0"?(t.items={anyOf:l},u&&t.items.anyOf.push(u),t.minItems=l.length,u||(t.maxItems=l.length)):(t.items=l,u&&(t.additionalItems=u));let{minimum:c,maximum:d}=e._zod.bag;typeof c=="number"&&(t.minItems=c),typeof d=="number"&&(t.maxItems=d)},Du=(e,r,o,n)=>{let t=o,a=e._zod.def;t.type="object";let i=a.keyType,l=i._zod.bag?.patterns;if(a.mode==="loose"&&l&&l.size>0){let c=O(a.valueType,r,{...n,path:[...n.path,"patternProperties","*"]});t.patternProperties={};for(let d of l)t.patternProperties[d.source]=c}else(r.target==="draft-07"||r.target==="draft-2020-12")&&(t.propertyNames=O(a.keyType,r,{...n,path:[...n.path,"propertyNames"]})),t.additionalProperties=O(a.valueType,r,{...n,path:[...n.path,"additionalProperties"]});let u=i._zod.values;if(u){let c=[...u].filter(d=>typeof d=="string"||typeof d=="number");c.length>0&&(t.required=c)}},Eu=(e,r,o,n)=>{let t=e._zod.def,a=O(t.innerType,r,n),i=r.seen.get(e);r.target==="openapi-3.0"?(i.ref=t.innerType,o.nullable=!0):o.anyOf=[a,{type:"null"}]},Ou=(e,r,o,n)=>{let t=e._zod.def;O(t.innerType,r,n);let a=r.seen.get(e);a.ref=t.innerType},Au=(e,r,o,n)=>{let t=e._zod.def;O(t.innerType,r,n);let a=r.seen.get(e);a.ref=t.innerType,o.default=JSON.parse(JSON.stringify(t.defaultValue))},Uu=(e,r,o,n)=>{let t=e._zod.def;O(t.innerType,r,n);let a=r.seen.get(e);a.ref=t.innerType,r.io==="input"&&(o._prefault=JSON.parse(JSON.stringify(t.defaultValue)))},ju=(e,r,o,n)=>{let t=e._zod.def;O(t.innerType,r,n);let a=r.seen.get(e);a.ref=t.innerType;let i;try{i=t.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}o.default=i},Lu=(e,r,o,n)=>{let t=e._zod.def,a=t.in._zod.traits.has("$ZodTransform"),i=r.io==="input"?a?t.out:t.in:t.out;O(i,r,n);let s=r.seen.get(e);s.ref=i},Nu=(e,r,o,n)=>{let t=e._zod.def;O(t.innerType,r,n);let a=r.seen.get(e);a.ref=t.innerType,o.readOnly=!0},Ru=(e,r,o,n)=>{let t=e._zod.def;O(t.innerType,r,n);let a=r.seen.get(e);a.ref=t.innerType},yn=(e,r,o,n)=>{let t=e._zod.def;O(t.innerType,r,n);let a=r.seen.get(e);a.ref=t.innerType},Zu=(e,r,o,n)=>{let t=e._zod.innerType;O(t,r,n);let a=r.seen.get(e);a.ref=t},vn={string:nu,number:au,boolean:iu,bigint:su,symbol:lu,null:uu,undefined:cu,void:du,never:fu,any:pu,unknown:mu,date:gu,enum:hu,literal:xu,nan:vu,template_literal:bu,file:yu,success:ku,custom:$u,function:_u,transform:wu,map:Su,set:zu,array:Iu,object:Pu,union:bn,intersection:Tu,tuple:Cu,record:Du,nullable:Eu,nonoptional:Ou,default:Au,prefault:Uu,catch:ju,pipe:Lu,readonly:Nu,promise:Ru,optional:yn,lazy:Zu};function kn(e,r){if("_idmap"in e){let n=e,t=Fe({...r,processors:vn}),a={};for(let l of n._idmap.entries()){let[u,c]=l;O(c,t)}let i={},s={registry:n,uri:r?.uri,defs:a};t.external=s;for(let l of n._idmap.entries()){let[u,c]=l;Be(t,c),i[u]=qe(t,c)}if(Object.keys(a).length>0){let l=t.target==="draft-2020-12"?"$defs":"definitions";i.__shared={[l]:a}}return{schemas:i}}let o=Fe({...r,processors:vn});return O(e,o),Be(o,e),qe(o,e)}var $n=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(r){this.ctx.counter=r}get seen(){return this.ctx.seen}constructor(r){let o=r?.target??"draft-2020-12";o==="draft-4"&&(o="draft-04"),o==="draft-7"&&(o="draft-07"),this.ctx=Fe({processors:vn,target:o,...r?.metadata&&{metadata:r.metadata},...r?.unrepresentable&&{unrepresentable:r.unrepresentable},...r?.override&&{override:r.override},...r?.io&&{io:r.io}})}process(r,o={path:[],schemaPath:[]}){return O(r,this.ctx,o)}emit(r,o){o&&(o.cycles&&(this.ctx.cycles=o.cycles),o.reused&&(this.ctx.reused=o.reused),o.external&&(this.ctx.external=o.external)),Be(this.ctx,r);let n=qe(this.ctx,r),{"~standard":t,...a}=n;return a}};var km={};var kr={};ke(kr,{ZodAny:()=>cc,ZodArray:()=>mc,ZodBase64:()=>Bn,ZodBase64URL:()=>qn,ZodBigInt:()=>qt,ZodBigIntFormat:()=>Hn,ZodBoolean:()=>Bt,ZodCIDRv4:()=>Mn,ZodCIDRv6:()=>Fn,ZodCUID:()=>An,ZodCUID2:()=>Un,ZodCatch:()=>jc,ZodCodec:()=>Or,ZodCustom:()=>Ar,ZodCustomStringFormat:()=>Mt,ZodDate:()=>Pr,ZodDefault:()=>Cc,ZodDiscriminatedUnion:()=>hc,ZodE164:()=>Vn,ZodEmail:()=>Dn,ZodEmoji:()=>En,ZodEnum:()=>Rt,ZodExactOptional:()=>Ic,ZodFile:()=>Sc,ZodFunction:()=>Wc,ZodGUID:()=>_r,ZodIPv4:()=>Rn,ZodIPv6:()=>Zn,ZodIntersection:()=>xc,ZodJWT:()=>Wn,ZodKSUID:()=>Nn,ZodLazy:()=>Bc,ZodLiteral:()=>wc,ZodMAC:()=>oc,ZodMap:()=>$c,ZodNaN:()=>Nc,ZodNanoID:()=>On,ZodNever:()=>fc,ZodNonOptional:()=>Yn,ZodNull:()=>lc,ZodNullable:()=>Tc,ZodNumber:()=>Ft,ZodNumberFormat:()=>nt,ZodObject:()=>Cr,ZodOptional:()=>Qn,ZodPipe:()=>Er,ZodPrefault:()=>Ec,ZodPreprocess:()=>Rc,ZodPromise:()=>Vc,ZodReadonly:()=>Zc,ZodRecord:()=>Nt,ZodSet:()=>_c,ZodString:()=>Zt,ZodStringFormat:()=>U,ZodSuccess:()=>Uc,ZodSymbol:()=>ic,ZodTemplateLiteral:()=>Fc,ZodTransform:()=>zc,ZodTuple:()=>bc,ZodType:()=>S,ZodULID:()=>jn,ZodURL:()=>Ir,ZodUUID:()=>be,ZodUndefined:()=>sc,ZodUnion:()=>Dr,ZodUnknown:()=>dc,ZodVoid:()=>pc,ZodXID:()=>Ln,ZodXor:()=>gc,_ZodString:()=>Cn,_default:()=>Dc,_function:()=>Cg,any:()=>sg,array:()=>Tr,base64:()=>qm,base64url:()=>Vm,bigint:()=>rg,boolean:()=>ac,catch:()=>Lc,check:()=>Dg,cidrv4:()=>Fm,cidrv6:()=>Bm,codec:()=>zg,cuid:()=>Am,cuid2:()=>Um,custom:()=>Eg,date:()=>ug,describe:()=>Og,discriminatedUnion:()=>gg,e164:()=>Wm,email:()=>wm,emoji:()=>Em,enum:()=>Kn,exactOptional:()=>Pc,file:()=>$g,float32:()=>Qm,float64:()=>Ym,function:()=>Cg,guid:()=>Sm,hash:()=>Xm,hex:()=>Km,hostname:()=>Jm,httpUrl:()=>Dm,instanceof:()=>Ug,int:()=>Pn,int32:()=>eg,int64:()=>og,intersection:()=>vc,invertCodec:()=>Ig,ipv4:()=>Rm,ipv6:()=>Mm,json:()=>Lg,jwt:()=>Hm,keyof:()=>cg,ksuid:()=>Nm,lazy:()=>qc,literal:()=>kg,looseObject:()=>pg,looseRecord:()=>xg,mac:()=>Zm,map:()=>vg,meta:()=>Ag,nan:()=>Sg,nanoid:()=>Om,nativeEnum:()=>yg,never:()=>Gn,nonoptional:()=>Ac,null:()=>uc,nullable:()=>Sr,nullish:()=>_g,number:()=>nc,object:()=>dg,optional:()=>wr,partialRecord:()=>hg,pipe:()=>Tn,prefault:()=>Oc,preprocess:()=>Ng,promise:()=>Tg,readonly:()=>Mc,record:()=>kc,refine:()=>Hc,set:()=>bg,strictObject:()=>fg,string:()=>$r,stringFormat:()=>Gm,stringbool:()=>jg,success:()=>wg,superRefine:()=>Gc,symbol:()=>ag,templateLiteral:()=>Pg,transform:()=>Xn,tuple:()=>yc,uint32:()=>tg,uint64:()=>ng,ulid:()=>jm,undefined:()=>ig,union:()=>Jn,unknown:()=>ot,url:()=>Cm,uuid:()=>zm,uuidv4:()=>Im,uuidv6:()=>Pm,uuidv7:()=>Tm,void:()=>lg,xid:()=>Lm,xor:()=>mg});var _n={};ke(_n,{endsWith:()=>Pt,gt:()=>xe,gte:()=>Q,includes:()=>zt,length:()=>rt,lowercase:()=>wt,lt:()=>he,lte:()=>ae,maxLength:()=>tt,maxSize:()=>Me,mime:()=>Tt,minLength:()=>_e,minSize:()=>ve,multipleOf:()=>Ze,negative:()=>mn,nonnegative:()=>hn,nonpositive:()=>gn,normalize:()=>Ct,overwrite:()=>fe,positive:()=>pn,property:()=>xn,regex:()=>_t,size:()=>et,slugify:()=>At,startsWith:()=>It,toLowerCase:()=>Et,toUpperCase:()=>Ot,trim:()=>Dt,uppercase:()=>St});var Lt={};ke(Lt,{ZodISODate:()=>Sn,ZodISODateTime:()=>wn,ZodISODuration:()=>In,ZodISOTime:()=>zn,date:()=>Fu,datetime:()=>Mu,duration:()=>qu,time:()=>Bu});var wn=f("ZodISODateTime",(e,r)=>{vs.init(e,r),U.init(e,r)});function Mu(e){return $l(wn,e)}var Sn=f("ZodISODate",(e,r)=>{bs.init(e,r),U.init(e,r)});function Fu(e){return _l(Sn,e)}var zn=f("ZodISOTime",(e,r)=>{ys.init(e,r),U.init(e,r)});function Bu(e){return wl(zn,e)}var In=f("ZodISODuration",(e,r)=>{ks.init(e,r),U.init(e,r)});function qu(e){return Sl(In,e)}var $m=(e,r)=>{lr.init(e,r),e.name="ZodError",Object.defineProperties(e,{format:{value:o=>cr(e,o)},flatten:{value:o=>ur(e,o)},addIssue:{value:o=>{e.issues.push(o),e.message=JSON.stringify(e.issues,mt,2)}},addIssues:{value:o=>{e.issues.push(...o),e.message=JSON.stringify(e.issues,mt,2)}},isEmpty:{get(){return e.issues.length===0}}})},Mk=f("ZodError",$m),oe=f("ZodError",$m,{Parent:Error});var Vu=xt(oe),Wu=vt(oe),Hu=bt(oe),Gu=yt(oe),Ju=yo(oe),Ku=ko(oe),Xu=$o(oe),Qu=_o(oe),Yu=wo(oe),ec=So(oe),tc=zo(oe),rc=Io(oe);var _m=new WeakMap;function zr(e,r,o){let n=Object.getPrototypeOf(e),t=_m.get(n);if(t||(t=new Set,_m.set(n,t)),!t.has(r)){t.add(r);for(let a in o){let i=o[a];Object.defineProperty(n,a,{configurable:!0,enumerable:!1,get(){let s=i.bind(this);return Object.defineProperty(this,a,{configurable:!0,writable:!0,enumerable:!0,value:s}),s},set(s){Object.defineProperty(this,a,{configurable:!0,writable:!0,enumerable:!0,value:s})}})}}}var S=f("ZodType",(e,r)=>(_.init(e,r),Object.assign(e["~standard"],{jsonSchema:{input:jt(e,"input"),output:jt(e,"output")}}),e.toJSONSchema=ou(e,{}),e.def=r,e.type=r.type,Object.defineProperty(e,"_def",{value:r}),e.parse=(o,n)=>Vu(e,o,n,{callee:e.parse}),e.safeParse=(o,n)=>Hu(e,o,n),e.parseAsync=async(o,n)=>Wu(e,o,n,{callee:e.parseAsync}),e.safeParseAsync=async(o,n)=>Gu(e,o,n),e.spa=e.safeParseAsync,e.encode=(o,n)=>Ju(e,o,n),e.decode=(o,n)=>Ku(e,o,n),e.encodeAsync=async(o,n)=>Xu(e,o,n),e.decodeAsync=async(o,n)=>Qu(e,o,n),e.safeEncode=(o,n)=>Yu(e,o,n),e.safeDecode=(o,n)=>ec(e,o,n),e.safeEncodeAsync=async(o,n)=>tc(e,o,n),e.safeDecodeAsync=async(o,n)=>rc(e,o,n),zr(e,"ZodType",{check(...o){let n=this.def;return this.clone(b.mergeDefs(n,{checks:[...n.checks??[],...o.map(t=>typeof t=="function"?{_zod:{check:t,def:{check:"custom"},onattach:[]}}:t)]}),{parent:!0})},with(...o){return this.check(...o)},clone(o,n){return K(this,o,n)},brand(){return this},register(o,n){return o.add(this,n),this},refine(o,n){return this.check(Hc(o,n))},superRefine(o,n){return this.check(Gc(o,n))},overwrite(o){return this.check(fe(o))},optional(){return wr(this)},exactOptional(){return Pc(this)},nullable(){return Sr(this)},nullish(){return wr(Sr(this))},nonoptional(o){return Ac(this,o)},array(){return Tr(this)},or(o){return Jn([this,o])},and(o){return vc(this,o)},transform(o){return Tn(this,Xn(o))},default(o){return Dc(this,o)},prefault(o){return Oc(this,o)},catch(o){return Lc(this,o)},pipe(o){return Tn(this,o)},readonly(){return Mc(this)},describe(o){let n=this.clone();return q.add(n,{description:o}),n},meta(...o){if(o.length===0)return q.get(this);let n=this.clone();return q.add(n,o[0]),n},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(o){return o(this)}}),Object.defineProperty(e,"description",{get(){return q.get(e)?.description},configurable:!0}),e)),Cn=f("_ZodString",(e,r)=>{Ye.init(e,r),S.init(e,r),e._zod.processJSONSchema=(n,t,a)=>nu(e,n,t,a);let o=e._zod.bag;e.format=o.format??null,e.minLength=o.minimum??null,e.maxLength=o.maximum??null,zr(e,"_ZodString",{regex(...n){return this.check(_t(...n))},includes(...n){return this.check(zt(...n))},startsWith(...n){return this.check(It(...n))},endsWith(...n){return this.check(Pt(...n))},min(...n){return this.check(_e(...n))},max(...n){return this.check(tt(...n))},length(...n){return this.check(rt(...n))},nonempty(...n){return this.check(_e(1,...n))},lowercase(n){return this.check(wt(n))},uppercase(n){return this.check(St(n))},trim(){return this.check(Dt())},normalize(...n){return this.check(Ct(...n))},toLowerCase(){return this.check(Et())},toUpperCase(){return this.check(Ot())},slugify(){return this.check(At())}})}),Zt=f("ZodString",(e,r)=>{Ye.init(e,r),Cn.init(e,r),e.email=o=>e.check(Wo(Dn,o)),e.url=o=>e.check(yr(Ir,o)),e.jwt=o=>e.check(fn(Wn,o)),e.emoji=o=>e.check(Xo(En,o)),e.guid=o=>e.check(br(_r,o)),e.uuid=o=>e.check(Ho(be,o)),e.uuidv4=o=>e.check(Go(be,o)),e.uuidv6=o=>e.check(Jo(be,o)),e.uuidv7=o=>e.check(Ko(be,o)),e.nanoid=o=>e.check(Qo(On,o)),e.guid=o=>e.check(br(_r,o)),e.cuid=o=>e.check(Yo(An,o)),e.cuid2=o=>e.check(en(Un,o)),e.ulid=o=>e.check(tn(jn,o)),e.base64=o=>e.check(un(Bn,o)),e.base64url=o=>e.check(cn(qn,o)),e.xid=o=>e.check(rn(Ln,o)),e.ksuid=o=>e.check(on(Nn,o)),e.ipv4=o=>e.check(nn(Rn,o)),e.ipv6=o=>e.check(an(Zn,o)),e.cidrv4=o=>e.check(sn(Mn,o)),e.cidrv6=o=>e.check(ln(Fn,o)),e.e164=o=>e.check(dn(Vn,o)),e.datetime=o=>e.check(Mu(o)),e.date=o=>e.check(Fu(o)),e.time=o=>e.check(Bu(o)),e.duration=o=>e.check(qu(o))});function $r(e){return vl(Zt,e)}var U=f("ZodStringFormat",(e,r)=>{A.init(e,r),Cn.init(e,r)}),Dn=f("ZodEmail",(e,r)=>{us.init(e,r),U.init(e,r)});function wm(e){return Wo(Dn,e)}var _r=f("ZodGUID",(e,r)=>{ss.init(e,r),U.init(e,r)});function Sm(e){return br(_r,e)}var be=f("ZodUUID",(e,r)=>{ls.init(e,r),U.init(e,r)});function zm(e){return Ho(be,e)}function Im(e){return Go(be,e)}function Pm(e){return Jo(be,e)}function Tm(e){return Ko(be,e)}var Ir=f("ZodURL",(e,r)=>{cs.init(e,r),U.init(e,r)});function Cm(e){return yr(Ir,e)}function Dm(e){return yr(Ir,{protocol:ne.httpProtocol,hostname:ne.domain,...b.normalizeParams(e)})}var En=f("ZodEmoji",(e,r)=>{ds.init(e,r),U.init(e,r)});function Em(e){return Xo(En,e)}var On=f("ZodNanoID",(e,r)=>{fs.init(e,r),U.init(e,r)});function Om(e){return Qo(On,e)}var An=f("ZodCUID",(e,r)=>{ps.init(e,r),U.init(e,r)});function Am(e){return Yo(An,e)}var Un=f("ZodCUID2",(e,r)=>{ms.init(e,r),U.init(e,r)});function Um(e){return en(Un,e)}var jn=f("ZodULID",(e,r)=>{gs.init(e,r),U.init(e,r)});function jm(e){return tn(jn,e)}var Ln=f("ZodXID",(e,r)=>{hs.init(e,r),U.init(e,r)});function Lm(e){return rn(Ln,e)}var Nn=f("ZodKSUID",(e,r)=>{xs.init(e,r),U.init(e,r)});function Nm(e){return on(Nn,e)}var Rn=f("ZodIPv4",(e,r)=>{$s.init(e,r),U.init(e,r)});function Rm(e){return nn(Rn,e)}var oc=f("ZodMAC",(e,r)=>{ws.init(e,r),U.init(e,r)});function Zm(e){return yl(oc,e)}var Zn=f("ZodIPv6",(e,r)=>{_s.init(e,r),U.init(e,r)});function Mm(e){return an(Zn,e)}var Mn=f("ZodCIDRv4",(e,r)=>{Ss.init(e,r),U.init(e,r)});function Fm(e){return sn(Mn,e)}var Fn=f("ZodCIDRv6",(e,r)=>{zs.init(e,r),U.init(e,r)});function Bm(e){return ln(Fn,e)}var Bn=f("ZodBase64",(e,r)=>{Ps.init(e,r),U.init(e,r)});function qm(e){return un(Bn,e)}var qn=f("ZodBase64URL",(e,r)=>{Ts.init(e,r),U.init(e,r)});function Vm(e){return cn(qn,e)}var Vn=f("ZodE164",(e,r)=>{Cs.init(e,r),U.init(e,r)});function Wm(e){return dn(Vn,e)}var Wn=f("ZodJWT",(e,r)=>{Ds.init(e,r),U.init(e,r)});function Hm(e){return fn(Wn,e)}var Mt=f("ZodCustomStringFormat",(e,r)=>{Es.init(e,r),U.init(e,r)});function Gm(e,r,o={}){return Ut(Mt,e,r,o)}function Jm(e){return Ut(Mt,"hostname",ne.hostname,e)}function Km(e){return Ut(Mt,"hex",ne.hex,e)}function Xm(e,r){let o=r?.enc??"hex",n=`${e}_${o}`,t=ne[n];if(!t)throw new Error(`Unrecognized hash format: ${n}`);return Ut(Mt,n,t,r)}var Ft=f("ZodNumber",(e,r)=>{jo.init(e,r),S.init(e,r),e._zod.processJSONSchema=(n,t,a)=>au(e,n,t,a),zr(e,"ZodNumber",{gt(n,t){return this.check(xe(n,t))},gte(n,t){return this.check(Q(n,t))},min(n,t){return this.check(Q(n,t))},lt(n,t){return this.check(he(n,t))},lte(n,t){return this.check(ae(n,t))},max(n,t){return this.check(ae(n,t))},int(n){return this.check(Pn(n))},safe(n){return this.check(Pn(n))},positive(n){return this.check(xe(0,n))},nonnegative(n){return this.check(Q(0,n))},negative(n){return this.check(he(0,n))},nonpositive(n){return this.check(ae(0,n))},multipleOf(n,t){return this.check(Ze(n,t))},step(n,t){return this.check(Ze(n,t))},finite(){return this}});let o=e._zod.bag;e.minValue=Math.max(o.minimum??Number.NEGATIVE_INFINITY,o.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(o.maximum??Number.POSITIVE_INFINITY,o.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(o.format??"").includes("int")||Number.isSafeInteger(o.multipleOf??.5),e.isFinite=!0,e.format=o.format??null});function nc(e){return zl(Ft,e)}var nt=f("ZodNumberFormat",(e,r)=>{Os.init(e,r),Ft.init(e,r)});function Pn(e){return Pl(nt,e)}function Qm(e){return Tl(nt,e)}function Ym(e){return Cl(nt,e)}function eg(e){return Dl(nt,e)}function tg(e){return El(nt,e)}var Bt=f("ZodBoolean",(e,r)=>{mr.init(e,r),S.init(e,r),e._zod.processJSONSchema=(o,n,t)=>iu(e,o,n,t)});function ac(e){return Ol(Bt,e)}var qt=f("ZodBigInt",(e,r)=>{Lo.init(e,r),S.init(e,r),e._zod.processJSONSchema=(n,t,a)=>su(e,n,t,a),e.gte=(n,t)=>e.check(Q(n,t)),e.min=(n,t)=>e.check(Q(n,t)),e.gt=(n,t)=>e.check(xe(n,t)),e.gte=(n,t)=>e.check(Q(n,t)),e.min=(n,t)=>e.check(Q(n,t)),e.lt=(n,t)=>e.check(he(n,t)),e.lte=(n,t)=>e.check(ae(n,t)),e.max=(n,t)=>e.check(ae(n,t)),e.positive=n=>e.check(xe(BigInt(0),n)),e.negative=n=>e.check(he(BigInt(0),n)),e.nonpositive=n=>e.check(ae(BigInt(0),n)),e.nonnegative=n=>e.check(Q(BigInt(0),n)),e.multipleOf=(n,t)=>e.check(Ze(n,t));let o=e._zod.bag;e.minValue=o.minimum??null,e.maxValue=o.maximum??null,e.format=o.format??null});function rg(e){return Ul(qt,e)}var Hn=f("ZodBigIntFormat",(e,r)=>{As.init(e,r),qt.init(e,r)});function og(e){return Ll(Hn,e)}function ng(e){return Nl(Hn,e)}var ic=f("ZodSymbol",(e,r)=>{Us.init(e,r),S.init(e,r),e._zod.processJSONSchema=(o,n,t)=>lu(e,o,n,t)});function ag(e){return Rl(ic,e)}var sc=f("ZodUndefined",(e,r)=>{js.init(e,r),S.init(e,r),e._zod.processJSONSchema=(o,n,t)=>cu(e,o,n,t)});function ig(e){return Zl(sc,e)}var lc=f("ZodNull",(e,r)=>{Ls.init(e,r),S.init(e,r),e._zod.processJSONSchema=(o,n,t)=>uu(e,o,n,t)});function uc(e){return Ml(lc,e)}var cc=f("ZodAny",(e,r)=>{Ns.init(e,r),S.init(e,r),e._zod.processJSONSchema=(o,n,t)=>pu(e,o,n,t)});function sg(){return Fl(cc)}var dc=f("ZodUnknown",(e,r)=>{Rs.init(e,r),S.init(e,r),e._zod.processJSONSchema=(o,n,t)=>mu(e,o,n,t)});function ot(){return Bl(dc)}var fc=f("ZodNever",(e,r)=>{Zs.init(e,r),S.init(e,r),e._zod.processJSONSchema=(o,n,t)=>fu(e,o,n,t)});function Gn(e){return ql(fc,e)}var pc=f("ZodVoid",(e,r)=>{Ms.init(e,r),S.init(e,r),e._zod.processJSONSchema=(o,n,t)=>du(e,o,n,t)});function lg(e){return Vl(pc,e)}var Pr=f("ZodDate",(e,r)=>{Fs.init(e,r),S.init(e,r),e._zod.processJSONSchema=(n,t,a)=>gu(e,n,t,a),e.min=(n,t)=>e.check(Q(n,t)),e.max=(n,t)=>e.check(ae(n,t));let o=e._zod.bag;e.minDate=o.minimum?new Date(o.minimum):null,e.maxDate=o.maximum?new Date(o.maximum):null});function ug(e){return Wl(Pr,e)}var mc=f("ZodArray",(e,r)=>{Bs.init(e,r),S.init(e,r),e._zod.processJSONSchema=(o,n,t)=>Iu(e,o,n,t),e.element=r.element,zr(e,"ZodArray",{min(o,n){return this.check(_e(o,n))},nonempty(o){return this.check(_e(1,o))},max(o,n){return this.check(tt(o,n))},length(o,n){return this.check(rt(o,n))},unwrap(){return this.element}})});function Tr(e,r){return Jl(mc,e,r)}function cg(e){let r=e._zod.def.shape;return Kn(Object.keys(r))}var Cr=f("ZodObject",(e,r)=>{qs.init(e,r),S.init(e,r),e._zod.processJSONSchema=(o,n,t)=>Pu(e,o,n,t),b.defineLazy(e,"shape",()=>r.shape),zr(e,"ZodObject",{keyof(){return Kn(Object.keys(this._zod.def.shape))},catchall(o){return this.clone({...this._zod.def,catchall:o})},passthrough(){return this.clone({...this._zod.def,catchall:ot()})},loose(){return this.clone({...this._zod.def,catchall:ot()})},strict(){return this.clone({...this._zod.def,catchall:Gn()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(o){return b.extend(this,o)},safeExtend(o){return b.safeExtend(this,o)},merge(o){return b.merge(this,o)},pick(o){return b.pick(this,o)},omit(o){return b.omit(this,o)},partial(...o){return b.partial(Qn,this,o[0])},required(...o){return b.required(Yn,this,o[0])}})});function dg(e,r){let o={type:"object",shape:e??{},...b.normalizeParams(r)};return new Cr(o)}function fg(e,r){return new Cr({type:"object",shape:e,catchall:Gn(),...b.normalizeParams(r)})}function pg(e,r){return new Cr({type:"object",shape:e,catchall:ot(),...b.normalizeParams(r)})}var Dr=f("ZodUnion",(e,r)=>{gr.init(e,r),S.init(e,r),e._zod.processJSONSchema=(o,n,t)=>bn(e,o,n,t),e.options=r.options});function Jn(e,r){return new Dr({type:"union",options:e,...b.normalizeParams(r)})}var gc=f("ZodXor",(e,r)=>{Dr.init(e,r),Vs.init(e,r),e._zod.processJSONSchema=(o,n,t)=>bn(e,o,n,t),e.options=r.options});function mg(e,r){return new gc({type:"union",options:e,inclusive:!1,...b.normalizeParams(r)})}var hc=f("ZodDiscriminatedUnion",(e,r)=>{Dr.init(e,r),Ws.init(e,r)});function gg(e,r,o){return new hc({type:"union",options:r,discriminator:e,...b.normalizeParams(o)})}var xc=f("ZodIntersection",(e,r)=>{Hs.init(e,r),S.init(e,r),e._zod.processJSONSchema=(o,n,t)=>Tu(e,o,n,t)});function vc(e,r){return new xc({type:"intersection",left:e,right:r})}var bc=f("ZodTuple",(e,r)=>{No.init(e,r),S.init(e,r),e._zod.processJSONSchema=(o,n,t)=>Cu(e,o,n,t),e.rest=o=>e.clone({...e._zod.def,rest:o})});function yc(e,r,o){let n=r instanceof _,t=n?o:r,a=n?r:null;return new bc({type:"tuple",items:e,rest:a,...b.normalizeParams(t)})}var Nt=f("ZodRecord",(e,r)=>{Gs.init(e,r),S.init(e,r),e._zod.processJSONSchema=(o,n,t)=>Du(e,o,n,t),e.keyType=r.keyType,e.valueType=r.valueType});function kc(e,r,o){return!r||!r._zod?new Nt({type:"record",keyType:$r(),valueType:e,...b.normalizeParams(r)}):new Nt({type:"record",keyType:e,valueType:r,...b.normalizeParams(o)})}function hg(e,r,o){let n=K(e);return n._zod.values=void 0,new Nt({type:"record",keyType:n,valueType:r,...b.normalizeParams(o)})}function xg(e,r,o){return new Nt({type:"record",keyType:e,valueType:r,mode:"loose",...b.normalizeParams(o)})}var $c=f("ZodMap",(e,r)=>{Js.init(e,r),S.init(e,r),e._zod.processJSONSchema=(o,n,t)=>Su(e,o,n,t),e.keyType=r.keyType,e.valueType=r.valueType,e.min=(...o)=>e.check(ve(...o)),e.nonempty=o=>e.check(ve(1,o)),e.max=(...o)=>e.check(Me(...o)),e.size=(...o)=>e.check(et(...o))});function vg(e,r,o){return new $c({type:"map",keyType:e,valueType:r,...b.normalizeParams(o)})}var _c=f("ZodSet",(e,r)=>{Ks.init(e,r),S.init(e,r),e._zod.processJSONSchema=(o,n,t)=>zu(e,o,n,t),e.min=(...o)=>e.check(ve(...o)),e.nonempty=o=>e.check(ve(1,o)),e.max=(...o)=>e.check(Me(...o)),e.size=(...o)=>e.check(et(...o))});function bg(e,r){return new _c({type:"set",valueType:e,...b.normalizeParams(r)})}var Rt=f("ZodEnum",(e,r)=>{Xs.init(e,r),S.init(e,r),e._zod.processJSONSchema=(n,t,a)=>hu(e,n,t,a),e.enum=r.entries,e.options=Object.values(r.entries);let o=new Set(Object.keys(r.entries));e.extract=(n,t)=>{let a={};for(let i of n)if(o.has(i))a[i]=r.entries[i];else throw new Error(`Key ${i} not found in enum`);return new Rt({...r,checks:[],...b.normalizeParams(t),entries:a})},e.exclude=(n,t)=>{let a={...r.entries};for(let i of n)if(o.has(i))delete a[i];else throw new Error(`Key ${i} not found in enum`);return new Rt({...r,checks:[],...b.normalizeParams(t),entries:a})}});function Kn(e,r){let o=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new Rt({type:"enum",entries:o,...b.normalizeParams(r)})}function yg(e,r){return new Rt({type:"enum",entries:e,...b.normalizeParams(r)})}var wc=f("ZodLiteral",(e,r)=>{Qs.init(e,r),S.init(e,r),e._zod.processJSONSchema=(o,n,t)=>xu(e,o,n,t),e.values=new Set(r.values),Object.defineProperty(e,"value",{get(){if(r.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return r.values[0]}})});function kg(e,r){return new wc({type:"literal",values:Array.isArray(e)?e:[e],...b.normalizeParams(r)})}var Sc=f("ZodFile",(e,r)=>{Ys.init(e,r),S.init(e,r),e._zod.processJSONSchema=(o,n,t)=>yu(e,o,n,t),e.min=(o,n)=>e.check(ve(o,n)),e.max=(o,n)=>e.check(Me(o,n)),e.mime=(o,n)=>e.check(Tt(Array.isArray(o)?o:[o],n))});function $g(e){return Kl(Sc,e)}var zc=f("ZodTransform",(e,r)=>{el.init(e,r),S.init(e,r),e._zod.processJSONSchema=(o,n,t)=>wu(e,o,n,t),e._zod.parse=(o,n)=>{if(n.direction==="backward")throw new Ue(e.constructor.name);o.addIssue=a=>{if(typeof a=="string")o.issues.push(b.issue(a,o.value,r));else{let i=a;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=o.value),i.inst??(i.inst=e),o.issues.push(b.issue(i))}};let t=r.transform(o.value,o);return t instanceof Promise?t.then(a=>(o.value=a,o.fallback=!0,o)):(o.value=t,o.fallback=!0,o)}});function Xn(e){return new zc({type:"transform",transform:e})}var Qn=f("ZodOptional",(e,r)=>{Ro.init(e,r),S.init(e,r),e._zod.processJSONSchema=(o,n,t)=>yn(e,o,n,t),e.unwrap=()=>e._zod.def.innerType});function wr(e){return new Qn({type:"optional",innerType:e})}var Ic=f("ZodExactOptional",(e,r)=>{tl.init(e,r),S.init(e,r),e._zod.processJSONSchema=(o,n,t)=>yn(e,o,n,t),e.unwrap=()=>e._zod.def.innerType});function Pc(e){return new Ic({type:"optional",innerType:e})}var Tc=f("ZodNullable",(e,r)=>{rl.init(e,r),S.init(e,r),e._zod.processJSONSchema=(o,n,t)=>Eu(e,o,n,t),e.unwrap=()=>e._zod.def.innerType});function Sr(e){return new Tc({type:"nullable",innerType:e})}function _g(e){return wr(Sr(e))}var Cc=f("ZodDefault",(e,r)=>{ol.init(e,r),S.init(e,r),e._zod.processJSONSchema=(o,n,t)=>Au(e,o,n,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Dc(e,r){return new Cc({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():b.shallowClone(r)}})}var Ec=f("ZodPrefault",(e,r)=>{nl.init(e,r),S.init(e,r),e._zod.processJSONSchema=(o,n,t)=>Uu(e,o,n,t),e.unwrap=()=>e._zod.def.innerType});function Oc(e,r){return new Ec({type:"prefault",innerType:e,get defaultValue(){return typeof r=="function"?r():b.shallowClone(r)}})}var Yn=f("ZodNonOptional",(e,r)=>{al.init(e,r),S.init(e,r),e._zod.processJSONSchema=(o,n,t)=>Ou(e,o,n,t),e.unwrap=()=>e._zod.def.innerType});function Ac(e,r){return new Yn({type:"nonoptional",innerType:e,...b.normalizeParams(r)})}var Uc=f("ZodSuccess",(e,r)=>{il.init(e,r),S.init(e,r),e._zod.processJSONSchema=(o,n,t)=>ku(e,o,n,t),e.unwrap=()=>e._zod.def.innerType});function wg(e){return new Uc({type:"success",innerType:e})}var jc=f("ZodCatch",(e,r)=>{sl.init(e,r),S.init(e,r),e._zod.processJSONSchema=(o,n,t)=>ju(e,o,n,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Lc(e,r){return new jc({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}var Nc=f("ZodNaN",(e,r)=>{ll.init(e,r),S.init(e,r),e._zod.processJSONSchema=(o,n,t)=>vu(e,o,n,t)});function Sg(e){return Gl(Nc,e)}var Er=f("ZodPipe",(e,r)=>{Zo.init(e,r),S.init(e,r),e._zod.processJSONSchema=(o,n,t)=>Lu(e,o,n,t),e.in=r.in,e.out=r.out});function Tn(e,r){return new Er({type:"pipe",in:e,out:r})}var Or=f("ZodCodec",(e,r)=>{Er.init(e,r),hr.init(e,r)});function zg(e,r,o){return new Or({type:"pipe",in:e,out:r,transform:o.decode,reverseTransform:o.encode})}function Ig(e){let r=e._zod.def;return new Or({type:"pipe",in:r.out,out:r.in,transform:r.reverseTransform,reverseTransform:r.transform})}var Rc=f("ZodPreprocess",(e,r)=>{Er.init(e,r),ul.init(e,r)}),Zc=f("ZodReadonly",(e,r)=>{cl.init(e,r),S.init(e,r),e._zod.processJSONSchema=(o,n,t)=>Nu(e,o,n,t),e.unwrap=()=>e._zod.def.innerType});function Mc(e){return new Zc({type:"readonly",innerType:e})}var Fc=f("ZodTemplateLiteral",(e,r)=>{dl.init(e,r),S.init(e,r),e._zod.processJSONSchema=(o,n,t)=>bu(e,o,n,t)});function Pg(e,r){return new Fc({type:"template_literal",parts:e,...b.normalizeParams(r)})}var Bc=f("ZodLazy",(e,r)=>{ml.init(e,r),S.init(e,r),e._zod.processJSONSchema=(o,n,t)=>Zu(e,o,n,t),e.unwrap=()=>e._zod.def.getter()});function qc(e){return new Bc({type:"lazy",getter:e})}var Vc=f("ZodPromise",(e,r)=>{pl.init(e,r),S.init(e,r),e._zod.processJSONSchema=(o,n,t)=>Ru(e,o,n,t),e.unwrap=()=>e._zod.def.innerType});function Tg(e){return new Vc({type:"promise",innerType:e})}var Wc=f("ZodFunction",(e,r)=>{fl.init(e,r),S.init(e,r),e._zod.processJSONSchema=(o,n,t)=>_u(e,o,n,t)});function Cg(e){return new Wc({type:"function",input:Array.isArray(e?.input)?yc(e?.input):e?.input??Tr(ot()),output:e?.output??ot()})}var Ar=f("ZodCustom",(e,r)=>{gl.init(e,r),S.init(e,r),e._zod.processJSONSchema=(o,n,t)=>$u(e,o,n,t)});function Dg(e){let r=new j({check:"custom"});return r._zod.check=e,r}function Eg(e,r){return Xl(Ar,e??(()=>!0),r)}function Hc(e,r={}){return Ql(Ar,e,r)}function Gc(e,r){return Yl(e,r)}var Og=eu,Ag=tu;function Ug(e,r={}){let o=new Ar({type:"custom",check:"custom",fn:n=>n instanceof e,abort:!0,...b.normalizeParams(r)});return o._zod.bag.Class=e,o._zod.check=n=>{n.value instanceof e||n.issues.push({code:"invalid_type",expected:e.name,input:n.value,inst:o,path:[...o._zod.def.path??[]]})},o}var jg=(...e)=>ru({Codec:Or,Boolean:Bt,String:Zt},...e);function Lg(e){let r=qc(()=>Jn([$r(e),nc(),ac(),uc(),Tr(r),kc($r(),r)]));return r}function Ng(e,r){return new Rc({type:"pipe",in:Xn(e),out:r})}var Bk={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function qk(e){R({customError:e})}function Vk(){return R().customError}var Jc;Jc||(Jc={});var $={...kr,..._n,iso:Lt},Wk=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"]);function Hk(e,r){let o=e.$schema;return o==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":o==="http://json-schema.org/draft-07/schema#"?"draft-7":o==="http://json-schema.org/draft-04/schema#"?"draft-4":r??"draft-2020-12"}function Gk(e,r){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let o=e.slice(1).split("/").filter(Boolean);if(o.length===0)return r.rootSchema;let n=r.version==="draft-2020-12"?"$defs":"definitions";if(o[0]===n){let t=o[1];if(!t||!r.defs[t])throw new Error(`Reference not found: ${e}`);return r.defs[t]}throw new Error(`Reference not found: ${e}`)}function Rg(e,r){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return $.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let t=e.$ref;if(r.refs.has(t))return r.refs.get(t);if(r.processing.has(t))return $.lazy(()=>{if(!r.refs.has(t))throw new Error(`Circular reference not resolved: ${t}`);return r.refs.get(t)});r.processing.add(t);let a=Gk(t,r),i=H(a,r);return r.refs.set(t,i),r.processing.delete(t),i}if(e.enum!==void 0){let t=e.enum;if(r.version==="openapi-3.0"&&e.nullable===!0&&t.length===1&&t[0]===null)return $.null();if(t.length===0)return $.never();if(t.length===1)return $.literal(t[0]);if(t.every(i=>typeof i=="string"))return $.enum(t);let a=t.map(i=>$.literal(i));return a.length<2?a[0]:$.union([a[0],a[1],...a.slice(2)])}if(e.const!==void 0)return $.literal(e.const);let o=e.type;if(Array.isArray(o)){let t=o.map(a=>{let i={...e,type:a};return Rg(i,r)});return t.length===0?$.never():t.length===1?t[0]:$.union(t)}if(!o)return $.any();let n;switch(o){case"string":{let t=$.string();if(e.format){let a=e.format;a==="email"?t=t.check($.email()):a==="uri"||a==="uri-reference"?t=t.check($.url()):a==="uuid"||a==="guid"?t=t.check($.uuid()):a==="date-time"?t=t.check($.iso.datetime()):a==="date"?t=t.check($.iso.date()):a==="time"?t=t.check($.iso.time()):a==="duration"?t=t.check($.iso.duration()):a==="ipv4"?t=t.check($.ipv4()):a==="ipv6"?t=t.check($.ipv6()):a==="mac"?t=t.check($.mac()):a==="cidr"?t=t.check($.cidrv4()):a==="cidr-v6"?t=t.check($.cidrv6()):a==="base64"?t=t.check($.base64()):a==="base64url"?t=t.check($.base64url()):a==="e164"?t=t.check($.e164()):a==="jwt"?t=t.check($.jwt()):a==="emoji"?t=t.check($.emoji()):a==="nanoid"?t=t.check($.nanoid()):a==="cuid"?t=t.check($.cuid()):a==="cuid2"?t=t.check($.cuid2()):a==="ulid"?t=t.check($.ulid()):a==="xid"?t=t.check($.xid()):a==="ksuid"&&(t=t.check($.ksuid()))}typeof e.minLength=="number"&&(t=t.min(e.minLength)),typeof e.maxLength=="number"&&(t=t.max(e.maxLength)),e.pattern&&(t=t.regex(new RegExp(e.pattern))),n=t;break}case"number":case"integer":{let t=o==="integer"?$.number().int():$.number();typeof e.minimum=="number"&&(t=t.min(e.minimum)),typeof e.maximum=="number"&&(t=t.max(e.maximum)),typeof e.exclusiveMinimum=="number"?t=t.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(t=t.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?t=t.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(t=t.lt(e.maximum)),typeof e.multipleOf=="number"&&(t=t.multipleOf(e.multipleOf)),n=t;break}case"boolean":{n=$.boolean();break}case"null":{n=$.null();break}case"object":{let t={},a=e.properties||{},i=new Set(e.required||[]);for(let[l,u]of Object.entries(a)){let c=H(u,r);t[l]=i.has(l)?c:c.optional()}if(e.propertyNames){let l=H(e.propertyNames,r),u=e.additionalProperties&&typeof e.additionalProperties=="object"?H(e.additionalProperties,r):$.any();if(Object.keys(t).length===0){n=$.record(l,u);break}let c=$.object(t).passthrough(),d=$.looseRecord(l,u);n=$.intersection(c,d);break}if(e.patternProperties){let l=e.patternProperties,u=Object.keys(l),c=[];for(let p of u){let g=H(l[p],r),h=$.string().regex(new RegExp(p));c.push($.looseRecord(h,g))}let d=[];if(Object.keys(t).length>0&&d.push($.object(t).passthrough()),d.push(...c),d.length===0)n=$.object({}).passthrough();else if(d.length===1)n=d[0];else{let p=$.intersection(d[0],d[1]);for(let g=2;gH(l,r)),s=a&&typeof a=="object"&&!Array.isArray(a)?H(a,r):void 0;s?n=$.tuple(i).rest(s):n=$.tuple(i),typeof e.minItems=="number"&&(n=n.check($.minLength(e.minItems))),typeof e.maxItems=="number"&&(n=n.check($.maxLength(e.maxItems)))}else if(Array.isArray(a)){let i=a.map(l=>H(l,r)),s=e.additionalItems&&typeof e.additionalItems=="object"?H(e.additionalItems,r):void 0;s?n=$.tuple(i).rest(s):n=$.tuple(i),typeof e.minItems=="number"&&(n=n.check($.minLength(e.minItems))),typeof e.maxItems=="number"&&(n=n.check($.maxLength(e.maxItems)))}else if(a!==void 0){let i=H(a,r),s=$.array(i);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),n=s}else n=$.array($.any());break}default:throw new Error(`Unsupported type: ${o}`)}return n}function H(e,r){if(typeof e=="boolean")return e?$.any():$.never();let o=Rg(e,r),n=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let s=e.anyOf.map(u=>H(u,r)),l=$.union(s);o=n?$.intersection(o,l):l}if(e.oneOf&&Array.isArray(e.oneOf)){let s=e.oneOf.map(u=>H(u,r)),l=$.xor(s);o=n?$.intersection(o,l):l}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)o=n?o:$.any();else{let s=n?o:H(e.allOf[0],r),l=n?0:1;for(let u=l;u0&&r.registry.add(o,t),e.description&&(o=o.describe(e.description)),o}function Zg(e,r){if(typeof e=="boolean")return e?$.any():$.never();let o;try{o=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let n=Hk(o,r?.defaultTarget),t=o.$defs||o.definitions||{},a={version:n,defs:t,refs:new Map,processing:new Set,rootSchema:o,registry:r?.registry??q};return H(o,a)}var Kc={};ke(Kc,{bigint:()=>Qk,boolean:()=>Xk,date:()=>Yk,number:()=>Kk,string:()=>Jk});function Jk(e){return bl(Zt,e)}function Kk(e){return Il(Ft,e)}function Xk(e){return Al(Bt,e)}function Qk(e){return jl(qt,e)}function Yk(e){return Hl(Pr,e)}R(Mo());var t0=Vt.object({name:Vt.string().trim().min(1).max(120),email:Vt.string().trim().max(254).email().transform(e=>e.toLowerCase())});var Xc="I have signed in with my store account. Continue what I asked for before signing in.";var Mg="I want to open a support request for email follow-up.";function C(e){let r=document.querySelector(e);if(!r)throw new Error(`Voice support element missing: ${e}`);return r}var y={app:C("#support-app"),thread:C("#thread"),transcript:C("#transcript"),landingPanel:C("#landing-panel"),landingForm:C("#landing-form"),landingInput:C("#landing-input"),landingSubmit:C("#landing-submit"),landingMicButton:C("#landing-mic-button"),humanHelpButton:C("#human-help-button"),conversationHumanButton:C("#conversation-human-button"),landingStatusCopy:C("#landing-status-copy"),composerBar:C("#composer-bar"),signinFlow:C("#signin-flow"),signinLead:C("#signin-card-lead"),signinCopy:C("#signin-card-copy"),signinButton:C("#signin-button"),sessionTurnstile:C("#session-turnstile"),reconnectBanner:C("#reconnect-banner"),clearButton:C("#clear-button"),micButton:C("#mic-button"),muteButton:C("#mute-button"),textForm:C("#text-form"),textInput:C("#text-input"),textSubmit:C('#text-form button[type="submit"]'),handoffCard:C("#handoff-card"),handoffCategory:C("#handoff-category"),handoffDescription:C("#handoff-description"),handoffReference:C("#handoff-reference"),handoffStatus:C("#handoff-status"),voiceState:C("#voice-state"),voiceStateCopy:C("#voice-state-copy"),conversationStatus:C("#conversation-status")};Qr({icons:{ArrowUp:ha,BookOpenText:xa,ChevronDown:va,ChevronRight:ba,Copy:Hr,FileSearch:ya,Headphones:ka,Mic:$a,PackageSearch:_a,Plus:wa,Sparkles:Gr,ThumbsDown:Jr,ThumbsUp:Kr,Truck:Sa,UserRound:Xr,Wrench:za},attrs:{"aria-hidden":"true","stroke-width":2}});var Hg=[...document.querySelectorAll("[data-support-message]")],ea=y.app.dataset.voiceInput!=="unavailable",ed="able-voice-support-reset-focus",td="able-signin-resume-session",sd=new URLSearchParams(window.location.search).has("signed_in");function e$(){if(sd)try{let e=sessionStorage.getItem(td);if(sessionStorage.removeItem(td),e&&/^voice-[a-z0-9]{20}$/.test(e))return e}catch{}return`voice-${crypto.randomUUID().replaceAll("-","").slice(0,20)}`}var Gg=e$();sd&&history.replaceState(null,"",window.location.pathname);var T=new yd({agent:"AbleDeskAgent",name:Gg,preferredFormat:"mp3"}),Br=!1,na=!1,F=!1,Gt=!1,Fg=sd,ld=null,Z=[],Jg=new Set,Ur=[],Wt=[],Ht=[],at=null,ye=null,jr="",Fr=!1,ee=null,ze=!1,it=!1,sa=!1,ra=null,Lr=null,Nr=null,Rr=null,Bg="",qg=T.status,Zr=null,ud=new Map,aa=new Set,Mr=null,t$=window.matchMedia("(prefers-reduced-motion: reduce)"),la=new AbortController;function qr(){let e=y.app.dataset.view==="conversation"&&Qg(),r=window.visualViewport,o=Math.max(1,Math.round(r?.height??window.innerHeight)),n=Math.max(0,Math.round(r?.offsetTop??0));document.documentElement.style.setProperty("--support-viewport-height",`${o}px`),document.documentElement.style.setProperty("--support-viewport-top",`${n}px`),e&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{y.thread.scrollTop=y.thread.scrollHeight})})}window.addEventListener("resize",qr,{signal:la.signal});window.visualViewport?.addEventListener("resize",qr,{signal:la.signal});window.visualViewport?.addEventListener("scroll",qr,{signal:la.signal});qr();function ua(){return Br&&Gt}function Se(e,r){y.app.dataset.connection=e,y.landingStatusCopy.textContent=r}function rd(){Lr!==null&&(clearTimeout(Lr),Lr=null)}function od(){rd(),Lr=setTimeout(()=>{Lr=null,!ua()&&Se(na?"verifying":"connecting","Still connecting \u2014 you can ask now. Your question will send automatically.")},1200)}function ca(){it=!1,Nr!==null&&clearTimeout(Nr),Rr!==null&&clearTimeout(Rr),Nr=null,Rr=null}function Kg(){ca(),sa=!1,it=!0,Nr=setTimeout(()=>{Nr=null,it&&st("Ava is checking this now \u2014 some answers take a little longer.")},6e3),Rr=setTimeout(()=>{Rr=null,it&&st("This is taking longer than usual. You can try again or contact support.")},18e3)}function Xg(){try{sessionStorage.setItem(ed,"1")}catch{}window.location.reload()}function r$(){try{return sessionStorage.getItem(ed)!=="1"?!1:(sessionStorage.removeItem(ed),!0)}catch{return!1}}function Qg(){let e=y.thread;return e.scrollHeight-e.scrollTop-e.clientHeight<120}function cd(){y.thread.scrollTo({top:y.thread.scrollHeight,behavior:t$.matches?"auto":"smooth"})}function da(e){let r=document.createElement("span");return r.className="sr-only",r.textContent=e,r}function lt(e){!e||e===Bg||(Bg=e,y.conversationStatus.textContent=e)}function nd(e){e.style.height="auto",e.style.height=`${Math.min(e.scrollHeight,112)}px`}function ia(e){e.value="",nd(e)}function o$(e,r){let o=document.createElement("div");o.className="message-actions",o.setAttribute("aria-label","Answer actions");for(let[a,i,s]of[["helpful","Helpful answer","thumbs-up"],["not_helpful","Not helpful","thumbs-down"]]){let l=document.createElement("button");l.type="button",l.className="message-action",l.dataset.assistantTurn=String(r),l.dataset.rating=a,l.setAttribute("aria-label",i),l.setAttribute("aria-pressed",String(ud.get(r)===a)),l.disabled=aa.has(r);let u=document.createElement("i");u.setAttribute("data-lucide",s),u.setAttribute("aria-hidden","true"),l.append(u),l.addEventListener("click",()=>{aa.add(r),Mr={assistantTurn:r,rating:a},T.sendJSON({type:"voice_feedback",assistantTurn:r,rating:a}),V()}),o.append(l)}let n=document.createElement("button");n.type="button",n.className="message-action",n.setAttribute("aria-label","Copy answer");let t=document.createElement("i");return t.setAttribute("data-lucide","copy"),t.setAttribute("aria-hidden","true"),n.append(t),n.addEventListener("click",async()=>{try{await navigator.clipboard.writeText(e.text),lt("Answer copied.")}catch{lt("The answer could not be copied. Select the text and copy it manually.")}}),o.append(n),o}function n$(e,r){let o=e.role==="assistant",n=document.createElement("li");n.className=`answer-turn answer-turn--${o?"assistant":"user"}`;let t=document.createElement("p");t.className="turn-label",t.textContent=o?"Ava":"You";let a=document.createElement("div");a.className="turn-copy";let i=document.createElement(o?"div":"p");return o?Ff(i,e.text):i.textContent=e.text,a.append(da(o?"Ava: ":"You: "),i),o&&(rJt(`Tell me more about "${d.title}".`)),c.append(p)}return l.append(u,c),t.append(a),n&&t.append(l),t}function u$(e,r){let o=document.createElement("li");o.className="products-row",o.dataset.anchor=String(e);let n=document.createElement("ul");n.className="product-results",n.setAttribute("aria-label","Products from the storefront");for(let i of r){let s=document.createElement("li");s.className="product-result-item";let l=document.createElement(i.url?"a":"article");if(l.className="product-result",l instanceof HTMLAnchorElement&&i.url&&(l.href=i.url,l.target="_blank",l.rel="noopener"),i.image){let g=document.createElement("span");g.className="product-result-media";let h=document.createElement("img");h.src=i.image.url,h.alt=i.image.altText,h.width=480,h.height=360,h.loading="lazy",h.decoding="async",g.append(h),l.append(g)}let u=document.createElement("span");u.className="product-result-copy";let c=document.createElement("strong");c.textContent=i.title;let d=document.createElement("span");d.textContent=i.price;let p=document.createElement("small");if(p.className=`product-availability ${i.availableForSale?"product-availability--available":""}`,p.textContent=i.availableForSale?"Available now":"Currently unavailable",u.append(c,d,p),i.url){let g=document.createElement("span");g.className="product-action",g.textContent="View product \u2197",u.append(g)}l.append(u),s.append(l),n.append(s)}let t=document.createElement("div");t.className="product-follow-ups",t.setAttribute("aria-label","Continue exploring products");let a=[["Compare these products","Compare these products for me."],["Best for a beginner?","Which of these is easiest for a beginner?"],r.some(i=>i.price.includes("\u20B9"))?["Options under \u20B930,000","Show me suitable options under \u20B930,000."]:["Best-value option","Which of these is the best value?"]];for(let[i,s]of a){let l=document.createElement("button");l.type="button",l.className="follow-up-chip",l.textContent=i,l.addEventListener("click",()=>Jt(s)),t.append(l)}return o.append(n,t),o}function Ie(e,r=!1){qr(),y.app.dataset.view=e?"conversation":"landing",document.documentElement.classList.toggle("support-conversation",e),document.body.classList.toggle("support-conversation",e),y.landingPanel.hidden=e,y.transcript.hidden=!e,y.composerBar.hidden=!e,y.clearButton.hidden=!e,r&&(e?y.textInput:y.landingInput).focus()}function ad(){return Z.at(-1)?.role==="assistant"?Z.length:Z.length+1}function Qc(e){if(typeof e!="string")return null;if(e.startsWith("/")&&!e.startsWith("//"))return e;try{let r=new URL(e);return r.protocol==="https:"||r.origin===window.location.origin?r.toString():null}catch{return null}}function V(){(Z.length>0||jr||Fr||ye!==null||at!==null)&&Ie(!0);let e=Qg(),r=Z.length,o=new Map([...y.transcript.querySelectorAll(".sources-card")].map(a=>[Number(a.dataset.anchor),a.open]).filter(([a])=>Number.isFinite(a))),n=[],t=a=>{for(let i of Ur)i.anchor<=r&&i.anchor===a&&n.push(s$(i.text));for(let i of Ht)i.anchor<=r&&i.anchor===a&&n.push(u$(i.anchor,i.items));for(let i of Wt)if(i.anchor<=r&&i.anchor===a){let s=Ht.some(l=>l.anchor===i.anchor);n.push(l$(i.anchor,i.articles,o.get(i.anchor)??!1,i.anchor===r&&!s))}ye!==null&&ye<=r&&ye===a&&(y.signinFlow.hidden=!1,n.push(y.signinFlow)),at!==null&&at<=r&&at===a&&(y.handoffCard.hidden=!1,n.push(y.handoffCard))};for(let a=0;aa.role==="user"&&a.text===ee)&&n.push(i$(ee)),ee!==null&&!ze?n.push(Vg("Connecting securely\u2026")):Fr&&n.push(Vg()),y.transcript.replaceChildren(...n),Qr({icons:{Copy:Hr,ThumbsDown:Jr,ThumbsUp:Kr},attrs:{"aria-hidden":"true","stroke-width":2}}),Mr!==null){let{assistantTurn:a,rating:i}=Mr,s=`.message-action[data-assistant-turn="${a}"][data-rating="${i}"]`,l=y.transcript.querySelector(s);l&&!l.disabled&&(Mr=null,l.focus({preventScroll:!0}))}if(Zr!==null){let a=y.transcript.querySelector(`.products-row[data-anchor="${Zr}"]`);if(a){Zr=null,requestAnimationFrame(()=>{let i=y.thread.getBoundingClientRect(),s=a.getBoundingClientRect().top-i.top+y.thread.scrollTop;y.thread.scrollTo({top:Math.max(0,s-250),behavior:"auto"})});return}}e&&cd()}function st(e){let r=Ur[Ur.length-1];r&&r.text===e&&r.anchor===Z.length||(Ur.push({anchor:Z.length,text:e}),V())}function le(e){let r=!1;if(e==="idle"){for(let i of Wt)i.anchor>Z.length&&(i.anchor=Z.length,r=!0);ye!==null&&ye>Z.length&&(ye=Z.length,r=!0)}let o=!F&&e!=="idle",n=ua(),t=ee===null;y.micButton.disabled=!ea||!n||o,y.landingMicButton.disabled=!ea||!n||o;for(let i of[y.micButton,y.landingMicButton])i.classList.toggle("mic-button--active",F),i.setAttribute("aria-label",F?"Stop voice":ea?"Use voice":"Voice requires a deployed preview"),i.setAttribute("aria-pressed",String(F)),i.title=F?"Stop the voice call":ea?"Talk instead of typing":"Streaming voice is available on deployed Workers";y.muteButton.hidden=!F,y.muteButton.disabled=!n||!F,y.clearButton.disabled=!1,y.transcript.setAttribute("aria-busy",String(it||e==="thinking")),y.landingInput.disabled=!1,y.landingSubmit.disabled=!t||y.landingInput.value.trim()==="";for(let i of Hg)i.disabled=!t;if(y.humanHelpButton.disabled=!1,y.textInput.disabled=!1,y.textSubmit.disabled=!t||y.textInput.value.trim()==="",y.conversationHumanButton.disabled=!t,y.app.dataset.voiceState=F?e:"off",y.voiceState.hidden=!F,F){let i=e==="thinking"?"Ava is thinking":e==="speaking"?"Ava is speaking":e==="listening"?"Listening\u2026":"Voice is on";y.voiceStateCopy.textContent=i,lt(i)}if(e==="idle"&&qg!=="idle"){let i=[...Z].reverse().find(s=>s.role==="assistant")?.text.trim();i&<(`Ava: ${i}`)}qg=e;let a=!sa&&(e==="thinking"||it);a!==Fr?(Fr=a,V()):r&&V()}function c$(){let e=ld==="order_lookup"?{lead:"Sign in to check your order",copy:"Use your store account \u2014 a quick code by email, no password. I\u2019ll pull your orders up right after."}:{lead:"Sign in to continue",copy:"Use your store account \u2014 a quick code by email, no password. You\u2019ll come right back to this conversation."};y.signinLead.textContent=e.lead,y.signinCopy.textContent=e.copy}function d$(e){return e==="order_lookup"||e==="open_ticket"?e:null}function f$(e){Ie(!0),ye===null&&(ye=e==="after_reply"?ad():Z.length),c$(),y.signinButton.disabled=!1,V(),cd()}function id(){ye=null,y.signinFlow.hidden=!0,V()}function p$(){try{sessionStorage.setItem(td,Gg)}catch{}y.signinButton.disabled=!0,window.location.assign("/auth/shopify/start")}function m$(){return window.turnstile}var ta=null,oa=null,Wg=y.sessionTurnstile.dataset.sitekey??"";function Yc(e){if(!Br){oa=e;return}T.sendJSON({type:"start_voice_session",turnstileToken:e})}function Yg(){if(Gt||!Br)return;if(oa!==null){let r=oa;oa=null,Yc(r);return}if(!Wg){Yc("");return}let e=m$();if(!e){window.setTimeout(Yg,200);return}if(ta===null)try{ta=e.render(y.sessionTurnstile,{sitekey:Wg,action:"voice_session",size:"flexible",appearance:"interaction-only",callback:r=>Yc(r)})}catch{ta=null}else e.reset(ta)}var g$={rate_limited:"Too many chat sessions from this connection. Wait a minute, then reload the page.",turnstile_not_configured:"This chat is not fully set up yet. Please try again later."};function h$(){!ua()||ee===null||ze||(ze=!0,Kg(),T.sendText(ee),V(),le(T.status))}function x$(e){if(!e||typeof e!="object")return;let r=e;y.handoffCategory.textContent=typeof r.label=="string"?r.label:"Support ticket opened",y.handoffDescription.textContent="A support ticket was opened under your store account. The team will follow up by email.",y.handoffReference.textContent=typeof r.reference=="string"?r.reference:"\u2014",y.handoffStatus.textContent=typeof r.status=="string"?r.status:"open",at=Z.length,Ie(!0),V(),cd()}function v$(e){if(!e||typeof e!="object")return;let r=e;if(r.type==="voice_session_ready"){Gt=!0,rd(),Se("ready",ee===null?"Ava is ready.":"Ava is ready \u2014 sending your question\u2026"),y.sessionTurnstile.hidden=!0,le(T.status),h$(),Fg&&(Fg=!1,id(),Jg.add(Xc),Ie(!0),T.sendText(Xc)),r$()&&y.landingInput.focus();return}if(r.type==="voice_session_error"||r.type==="voice_session_required"){Gt=!1,rd();let o=typeof r.reason=="string"?r.reason:"",n=g$[o]??"The anti-spam check could not be completed. Reload the page to try again.";Se("error",n),y.app.dataset.view==="conversation"&&st(n),le(T.status);return}if(r.type==="voice_signin_required"){ld=d$(r.reason),f$(r.anchor==="after_reply"?"after_reply":"now");return}if(r.type==="voice_sources"){let o=(Array.isArray(r.articles)?r.articles:[]).flatMap(n=>{if(!n||typeof n!="object")return[];let t=n,a=Qc(t.url);return a&&typeof t.title=="string"&&typeof t.section=="string"?[{title:t.title,section:t.section,url:a}]:[]}).slice(0,3);if(o.length>0){let n=ad(),t=Wt.find(a=>a.anchor===n);t?t.articles=[...t.articles,...o].filter((a,i,s)=>s.findIndex(l=>l.url===a.url)===i).slice(0,3):Wt.push({anchor:n,articles:o}),V()}return}if(r.type==="voice_products"){let o=(Array.isArray(r.products)?r.products:[]).flatMap(n=>{if(!n||typeof n!="object")return[];let t=n,a=t.priceRange&&typeof t.priceRange=="object"?t.priceRange:null,i=a?.min&&typeof a.min=="object"?a.min:null,s=a?.max&&typeof a.max=="object"?a.max:null;if(typeof t.handle!="string"||typeof t.title!="string"||typeof t.availableForSale!="boolean"||typeof i?.amount!="string"||typeof i.currencyCode!="string"||typeof s?.amount!="string")return[];let l=Qc(t.url),u=t.image&&typeof t.image=="object"?t.image:null,c=Qc(u?.url),d=Number(i.amount),p=Number(s.amount),g=i.currencyCode,h=w=>new Intl.NumberFormat("en-IN",{style:"currency",currency:g,minimumFractionDigits:Number.isInteger(w)?0:2,maximumFractionDigits:2}).format(w),I=Number.isFinite(d)&&Number.isFinite(p)?d===p?h(d):`${h(d)}\u2013${h(p)}`:`${g} ${i.amount}`;return[{handle:t.handle,title:t.title,availableForSale:t.availableForSale,price:I,url:l,image:c?{url:c,altText:typeof u?.altText=="string"?u.altText:""}:null}]}).slice(0,5);if(o.length>0){let n=ad();Zr=n;let t=Ht.find(a=>a.anchor===n);t?t.items=o:Ht.push({anchor:n,items:o}),V()}return}if(r.type==="voice_feedback_received"){let o=Number(r.assistantTurn),n=r.rating;Number.isInteger(o)&&(n==="helpful"||n==="not_helpful")&&(aa.delete(o),ud.set(o,n),lt(n==="helpful"?"Marked as helpful. Thank you.":"Marked as not helpful. Thank you."),V());return}if(r.type==="demo_session_cleared"){at=null,Wt=[],Ht=[],y.handoffCard.hidden=!0,id(),V(),ra!==null&&(clearTimeout(ra),ra=null,Xg());return}r.type==="voice_ticket_created"&&x$(r.ticket)}T.addEventListener("connectionchange",e=>{Br=e,e?(na=!0,y.reconnectBanner.hidden=!0,Gt=!1,y.sessionTurnstile.hidden=!1,Se("verifying","Secure connection found \u2014 finishing setup\u2026"),od(),Yg()):(F=!1,Gt=!1,na?(y.reconnectBanner.hidden=!1,Se("reconnecting","Connection interrupted. Your question will send when Ava is back.")):Se("connecting","Ava is getting ready \u2014 you can ask now."),od()),le(T.status)});T.addEventListener("statuschange",le);T.addEventListener("transcriptchange",e=>{let r=e.some((n,t)=>n.role==="assistant"&&Z[t]?.text!==n.text),o=e.some((n,t)=>n.role==="user"&&Z[t]?.text!==n.text);if(Z=e,o&&(sa=!1),ze&&ee!==null&&e.some(n=>n.role==="user"&&n.text===ee)&&(ee=null,ze=!1),r&&ca(),e.length>0&&Ie(!0),le(T.status),V(),r&&T.status==="idle"){let n=[...e].reverse().find(t=>t.role==="assistant")?.text.trim();n&<(`Ava: ${n}`)}});T.addEventListener("interimtranscript",e=>{jr=e??"",V()});T.addEventListener("mutechange",e=>{y.muteButton.textContent=e?"Unmute":"Mute"});T.addEventListener("custommessage",v$);T.addEventListener("error",e=>{if(!e)return;ca(),sa=!0,ze&&(ee=null,ze=!1);let r="Ava couldn\u2019t finish that answer. Please try again, or contact support if it keeps happening.";y.app.dataset.view==="landing"?Se("error",r):st(r),le(T.status),V()});async function eh(){if(F)T.endCall(),F=!1,st("Voice off");else{Ie(!0);try{await T.startCall(),F=!0,st("Voice on \u2014 speak naturally")}catch{F=!1,st("Microphone access did not start. Check your browser permission, then tap the microphone to try again."),lt("Microphone access did not start. Check your browser permission and try again.")}}le(T.status)}y.micButton.addEventListener("click",eh);y.landingMicButton.addEventListener("click",eh);y.muteButton.addEventListener("click",()=>T.toggleMute());y.signinButton.addEventListener("click",p$);y.clearButton.addEventListener("click",()=>{F&&T.endCall(),F=!1,ca(),ee=null,ze=!1,y.clearButton.disabled=!0,T.sendJSON({type:"clear_demo_session"}),ra=setTimeout(Xg,2e3),Z=[],Ur=[],Wt=[],Ht=[],ud.clear(),aa.clear(),Zr=null,Mr=null,at=null,y.handoffCard.hidden=!0,id(),jr="",Fr=!1,ia(y.landingInput),ia(y.textInput),ld=null,Ie(!1,!0),V(),le(T.status)});function Jt(e){return!e||ee!==null?!1:(Ie(!0),ua()?(Kg(),T.sendText(e)):(ee=e,ze=!1,Se(Br?"verifying":na?"reconnecting":"connecting","Your question is saved and will send as soon as Ava is ready.")),le(T.status),V(),!0)}function b$(){y.landingInput.placeholder="Briefly describe what you need help with",y.landingStatusCopy.textContent="Describe the issue first. Ava will ask you to sign in only if a private request is needed.",y.landingInput.focus()}function y$(){let e=[...Z].reverse().find(r=>r.role==="user")?.text.trim();if(!e){y.textInput.placeholder="Briefly describe what you need help with",y.textInput.focus();return}Jt(`${Mg} My issue is: ${e}`)}y.landingForm.addEventListener("submit",e=>{e.preventDefault();let r=y.landingInput.value.trim();r&&(y.landingInput.blur(),Jt(r)&&ia(y.landingInput))});y.humanHelpButton.addEventListener("click",()=>{b$()});for(let e of Hg)e.addEventListener("click",()=>{let r=e.dataset.supportMessage;r&&Jt(r)});y.conversationHumanButton.addEventListener("click",()=>{y$()});y.textForm.addEventListener("submit",e=>{e.preventDefault();let r=y.textInput.value.trim();r&&Jt(r)&&ia(y.textInput)});for(let e of[y.landingInput,y.textInput])e.addEventListener("input",()=>{nd(e),le(T.status)}),e.addEventListener("keydown",r=>{r.key!=="Enter"||r.shiftKey||r.isComposing||(r.preventDefault(),e.form?.requestSubmit())}),nd(e);window.addEventListener("beforeunload",()=>{la.abort(),F&&T.endCall(),T.disconnect()});le(T.status);Ie(!1);Se("connecting","Ava is getting ready \u2014 you can ask now.");od();T.connect();})(); +Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let i of e.seen.entries()){let s=i[1];if(r===i[0]){a(i);continue}if(e.external){let u=e.external.registry.get(i[0])?.id;if(r!==i[0]&&u){a(i);continue}}if(e.metadataRegistry.get(i[0])?.id){a(i);continue}if(s.cycle){a(i);continue}if(s.count>1&&e.reused==="ref"){a(i);continue}}}function Ve(e,r){let o=e.seen.get(r);if(!o)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=s=>{let l=e.seen.get(s);if(l.ref===null)return;let u=l.def??l.schema,c={...u},d=l.ref;if(l.ref=null,d){n(d);let g=e.seen.get(d),h=g.schema;if(h.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(h)):Object.assign(u,h),Object.assign(u,c),s._zod.parent===d)for(let w in u)w==="$ref"||w==="allOf"||w in c||delete u[w];if(h.$ref&&g.def)for(let w in u)w==="$ref"||w==="allOf"||w in g.def&&JSON.stringify(u[w])===JSON.stringify(g.def[w])&&delete u[w]}let p=s._zod.parent;if(p&&p!==d){n(p);let g=e.seen.get(p);if(g?.schema.$ref&&(u.$ref=g.schema.$ref,g.def))for(let h in u)h==="$ref"||h==="allOf"||h in g.def&&JSON.stringify(u[h])===JSON.stringify(g.def[h])&&delete u[h]}e.override({zodSchema:s,jsonSchema:u,path:l.path??[]})};for(let s of[...e.seen.entries()].reverse())n(s[0]);let t={};if(e.target==="draft-2020-12"?t.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?t.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?t.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let s=e.external.registry.get(r)?.id;if(!s)throw new Error("Schema is missing an `id` property");t.$id=e.external.uri(s)}Object.assign(t,o.def??o.schema);let a=e.metadataRegistry.get(r)?.id;a!==void 0&&t.id===a&&delete t.id;let i=e.external?.defs??{};for(let s of e.seen.entries()){let l=s[1];l.def&&l.defId&&(l.def.id===l.defId&&delete l.def.id,i[l.defId]=l.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?t.$defs=i:t.definitions=i);try{let s=JSON.parse(JSON.stringify(t));return Object.defineProperty(s,"~standard",{value:{...r["~standard"],jsonSchema:{input:jt(r,"input",e.processors),output:jt(r,"output",e.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function Q(e,r){let o=r??{seen:new Set};if(o.seen.has(e))return!1;o.seen.add(e);let n=e._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return Q(n.element,o);if(n.type==="set")return Q(n.valueType,o);if(n.type==="lazy")return Q(n.getter(),o);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return Q(n.innerType,o);if(n.type==="intersection")return Q(n.left,o)||Q(n.right,o);if(n.type==="record"||n.type==="map")return Q(n.keyType,o)||Q(n.valueType,o);if(n.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Q(n.in,o)||Q(n.out,o);if(n.type==="object"){for(let t in n.shape)if(Q(n.shape[t],o))return!0;return!1}if(n.type==="union"){for(let t of n.options)if(Q(t,o))return!0;return!1}if(n.type==="tuple"){for(let t of n.items)if(Q(t,o))return!0;return!!(n.rest&&Q(n.rest,o))}return!1}var du=(e,r={})=>o=>{let n=Fe({...o,processors:r});return E(e,n),Be(n,e),Ve(n,e)},jt=(e,r,o={})=>n=>{let{libraryOptions:t,target:a}=n??{},i=Fe({...t??{},target:a,io:r,processors:o});return E(e,i),Be(i,e),Ve(i,e)};var Hk={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},fu=(e,r,o,n)=>{let t=o;t.type="string";let{minimum:a,maximum:i,format:s,patterns:l,contentEncoding:u}=e._zod.bag;if(typeof a=="number"&&(t.minLength=a),typeof i=="number"&&(t.maxLength=i),s&&(t.format=Hk[s]??s,t.format===""&&delete t.format,s==="time"&&delete t.format),u&&(t.contentEncoding=u),l&&l.size>0){let c=[...l];c.length===1?t.pattern=c[0].source:c.length>1&&(t.allOf=[...c.map(d=>({...r.target==="draft-07"||r.target==="draft-04"||r.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},pu=(e,r,o,n)=>{let t=o,{minimum:a,maximum:i,format:s,multipleOf:l,exclusiveMaximum:u,exclusiveMinimum:c}=e._zod.bag;typeof s=="string"&&s.includes("int")?t.type="integer":t.type="number";let d=typeof c=="number"&&c>=(a??Number.NEGATIVE_INFINITY),p=typeof u=="number"&&u<=(i??Number.POSITIVE_INFINITY),g=r.target==="draft-04"||r.target==="openapi-3.0";d?g?(t.minimum=c,t.exclusiveMinimum=!0):t.exclusiveMinimum=c:typeof a=="number"&&(t.minimum=a),p?g?(t.maximum=u,t.exclusiveMaximum=!0):t.exclusiveMaximum=u:typeof i=="number"&&(t.maximum=i),typeof l=="number"&&(t.multipleOf=l)},mu=(e,r,o,n)=>{o.type="boolean"},gu=(e,r,o,n)=>{if(r.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},hu=(e,r,o,n)=>{if(r.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},xu=(e,r,o,n)=>{r.target==="openapi-3.0"?(o.type="string",o.nullable=!0,o.enum=[null]):o.type="null"},vu=(e,r,o,n)=>{if(r.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},bu=(e,r,o,n)=>{if(r.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},yu=(e,r,o,n)=>{o.not={}},ku=(e,r,o,n)=>{},$u=(e,r,o,n)=>{},_u=(e,r,o,n)=>{if(r.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},wu=(e,r,o,n)=>{let t=e._zod.def,a=nr(t.entries);a.every(i=>typeof i=="number")&&(o.type="number"),a.every(i=>typeof i=="string")&&(o.type="string"),o.enum=a},Su=(e,r,o,n)=>{let t=e._zod.def,a=[];for(let i of t.values)if(i===void 0){if(r.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof i=="bigint"){if(r.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");a.push(Number(i))}else a.push(i);if(a.length!==0)if(a.length===1){let i=a[0];o.type=i===null?"null":typeof i,r.target==="draft-04"||r.target==="openapi-3.0"?o.enum=[i]:o.const=i}else a.every(i=>typeof i=="number")&&(o.type="number"),a.every(i=>typeof i=="string")&&(o.type="string"),a.every(i=>typeof i=="boolean")&&(o.type="boolean"),a.every(i=>i===null)&&(o.type="null"),o.enum=a},zu=(e,r,o,n)=>{if(r.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},Iu=(e,r,o,n)=>{let t=o,a=e._zod.pattern;if(!a)throw new Error("Pattern not found in template literal");t.type="string",t.pattern=a.source},Tu=(e,r,o,n)=>{let t=o,a={type:"string",format:"binary",contentEncoding:"binary"},{minimum:i,maximum:s,mime:l}=e._zod.bag;i!==void 0&&(a.minLength=i),s!==void 0&&(a.maxLength=s),l?l.length===1?(a.contentMediaType=l[0],Object.assign(t,a)):(Object.assign(t,a),t.anyOf=l.map(u=>({contentMediaType:u}))):Object.assign(t,a)},Pu=(e,r,o,n)=>{o.type="boolean"},Cu=(e,r,o,n)=>{if(r.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Du=(e,r,o,n)=>{if(r.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Au=(e,r,o,n)=>{if(r.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Eu=(e,r,o,n)=>{if(r.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},Ou=(e,r,o,n)=>{if(r.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Uu=(e,r,o,n)=>{let t=o,a=e._zod.def,{minimum:i,maximum:s}=e._zod.bag;typeof i=="number"&&(t.minItems=i),typeof s=="number"&&(t.maxItems=s),t.type="array",t.items=E(a.element,r,{...n,path:[...n.path,"items"]})},ju=(e,r,o,n)=>{let t=o,a=e._zod.def;t.type="object",t.properties={};let i=a.shape;for(let u in i)t.properties[u]=E(i[u],r,{...n,path:[...n.path,"properties",u]});let s=new Set(Object.keys(i)),l=new Set([...s].filter(u=>{let c=a.shape[u]._zod;return r.io==="input"?c.optin===void 0:c.optout===void 0}));l.size>0&&(t.required=Array.from(l)),a.catchall?._zod.def.type==="never"?t.additionalProperties=!1:a.catchall?a.catchall&&(t.additionalProperties=E(a.catchall,r,{...n,path:[...n.path,"additionalProperties"]})):r.io==="output"&&(t.additionalProperties=!1)},yn=(e,r,o,n)=>{let t=e._zod.def,a=t.inclusive===!1,i=t.options.map((s,l)=>E(s,r,{...n,path:[...n.path,a?"oneOf":"anyOf",l]}));a?o.oneOf=i:o.anyOf=i},Nu=(e,r,o,n)=>{let t=e._zod.def,a=E(t.left,r,{...n,path:[...n.path,"allOf",0]}),i=E(t.right,r,{...n,path:[...n.path,"allOf",1]}),s=u=>"allOf"in u&&Object.keys(u).length===1,l=[...s(a)?a.allOf:[a],...s(i)?i.allOf:[i]];o.allOf=l},Lu=(e,r,o,n)=>{let t=o,a=e._zod.def;t.type="array";let i=r.target==="draft-2020-12"?"prefixItems":"items",s=r.target==="draft-2020-12"||r.target==="openapi-3.0"?"items":"additionalItems",l=a.items.map((p,g)=>E(p,r,{...n,path:[...n.path,i,g]})),u=a.rest?E(a.rest,r,{...n,path:[...n.path,s,...r.target==="openapi-3.0"?[a.items.length]:[]]}):null;r.target==="draft-2020-12"?(t.prefixItems=l,u&&(t.items=u)):r.target==="openapi-3.0"?(t.items={anyOf:l},u&&t.items.anyOf.push(u),t.minItems=l.length,u||(t.maxItems=l.length)):(t.items=l,u&&(t.additionalItems=u));let{minimum:c,maximum:d}=e._zod.bag;typeof c=="number"&&(t.minItems=c),typeof d=="number"&&(t.maxItems=d)},Ru=(e,r,o,n)=>{let t=o,a=e._zod.def;t.type="object";let i=a.keyType,l=i._zod.bag?.patterns;if(a.mode==="loose"&&l&&l.size>0){let c=E(a.valueType,r,{...n,path:[...n.path,"patternProperties","*"]});t.patternProperties={};for(let d of l)t.patternProperties[d.source]=c}else(r.target==="draft-07"||r.target==="draft-2020-12")&&(t.propertyNames=E(a.keyType,r,{...n,path:[...n.path,"propertyNames"]})),t.additionalProperties=E(a.valueType,r,{...n,path:[...n.path,"additionalProperties"]});let u=i._zod.values;if(u){let c=[...u].filter(d=>typeof d=="string"||typeof d=="number");c.length>0&&(t.required=c)}},Zu=(e,r,o,n)=>{let t=e._zod.def,a=E(t.innerType,r,n),i=r.seen.get(e);r.target==="openapi-3.0"?(i.ref=t.innerType,o.nullable=!0):o.anyOf=[a,{type:"null"}]},Mu=(e,r,o,n)=>{let t=e._zod.def;E(t.innerType,r,n);let a=r.seen.get(e);a.ref=t.innerType},Fu=(e,r,o,n)=>{let t=e._zod.def;E(t.innerType,r,n);let a=r.seen.get(e);a.ref=t.innerType,o.default=JSON.parse(JSON.stringify(t.defaultValue))},Bu=(e,r,o,n)=>{let t=e._zod.def;E(t.innerType,r,n);let a=r.seen.get(e);a.ref=t.innerType,r.io==="input"&&(o._prefault=JSON.parse(JSON.stringify(t.defaultValue)))},Vu=(e,r,o,n)=>{let t=e._zod.def;E(t.innerType,r,n);let a=r.seen.get(e);a.ref=t.innerType;let i;try{i=t.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}o.default=i},qu=(e,r,o,n)=>{let t=e._zod.def,a=t.in._zod.traits.has("$ZodTransform"),i=r.io==="input"?a?t.out:t.in:t.out;E(i,r,n);let s=r.seen.get(e);s.ref=i},Wu=(e,r,o,n)=>{let t=e._zod.def;E(t.innerType,r,n);let a=r.seen.get(e);a.ref=t.innerType,o.readOnly=!0},Hu=(e,r,o,n)=>{let t=e._zod.def;E(t.innerType,r,n);let a=r.seen.get(e);a.ref=t.innerType},kn=(e,r,o,n)=>{let t=e._zod.def;E(t.innerType,r,n);let a=r.seen.get(e);a.ref=t.innerType},Gu=(e,r,o,n)=>{let t=e._zod.innerType;E(t,r,n);let a=r.seen.get(e);a.ref=t},bn={string:fu,number:pu,boolean:mu,bigint:gu,symbol:hu,null:xu,undefined:vu,void:bu,never:yu,any:ku,unknown:$u,date:_u,enum:wu,literal:Su,nan:zu,template_literal:Iu,file:Tu,success:Pu,custom:Cu,function:Du,transform:Au,map:Eu,set:Ou,array:Uu,object:ju,union:yn,intersection:Nu,tuple:Lu,record:Ru,nullable:Zu,nonoptional:Mu,default:Fu,prefault:Bu,catch:Vu,pipe:qu,readonly:Wu,promise:Hu,optional:kn,lazy:Gu};function $n(e,r){if("_idmap"in e){let n=e,t=Fe({...r,processors:bn}),a={};for(let l of n._idmap.entries()){let[u,c]=l;E(c,t)}let i={},s={registry:n,uri:r?.uri,defs:a};t.external=s;for(let l of n._idmap.entries()){let[u,c]=l;Be(t,c),i[u]=Ve(t,c)}if(Object.keys(a).length>0){let l=t.target==="draft-2020-12"?"$defs":"definitions";i.__shared={[l]:a}}return{schemas:i}}let o=Fe({...r,processors:bn});return E(e,o),Be(o,e),Ve(o,e)}var _n=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(r){this.ctx.counter=r}get seen(){return this.ctx.seen}constructor(r){let o=r?.target??"draft-2020-12";o==="draft-4"&&(o="draft-04"),o==="draft-7"&&(o="draft-07"),this.ctx=Fe({processors:bn,target:o,...r?.metadata&&{metadata:r.metadata},...r?.unrepresentable&&{unrepresentable:r.unrepresentable},...r?.override&&{override:r.override},...r?.io&&{io:r.io}})}process(r,o={path:[],schemaPath:[]}){return E(r,this.ctx,o)}emit(r,o){o&&(o.cycles&&(this.ctx.cycles=o.cycles),o.reused&&(this.ctx.reused=o.reused),o.external&&(this.ctx.external=o.external)),Be(this.ctx,r);let n=Ve(this.ctx,r),{"~standard":t,...a}=n;return a}};var Cm={};var $r={};$e($r,{ZodAny:()=>vc,ZodArray:()=>$c,ZodBase64:()=>Vn,ZodBase64URL:()=>qn,ZodBigInt:()=>Vt,ZodBigIntFormat:()=>Gn,ZodBoolean:()=>Bt,ZodCIDRv4:()=>Fn,ZodCIDRv6:()=>Bn,ZodCUID:()=>Un,ZodCUID2:()=>jn,ZodCatch:()=>Vc,ZodCodec:()=>Or,ZodCustom:()=>Ur,ZodCustomStringFormat:()=>Mt,ZodDate:()=>Pr,ZodDefault:()=>Lc,ZodDiscriminatedUnion:()=>wc,ZodE164:()=>Wn,ZodEmail:()=>An,ZodEmoji:()=>En,ZodEnum:()=>Rt,ZodExactOptional:()=>Uc,ZodFile:()=>Ec,ZodFunction:()=>ed,ZodGUID:()=>wr,ZodIPv4:()=>Zn,ZodIPv6:()=>Mn,ZodIntersection:()=>Sc,ZodJWT:()=>Hn,ZodKSUID:()=>Rn,ZodLazy:()=>Xc,ZodLiteral:()=>Ac,ZodMAC:()=>dc,ZodMap:()=>Cc,ZodNaN:()=>Wc,ZodNanoID:()=>On,ZodNever:()=>yc,ZodNonOptional:()=>ea,ZodNull:()=>hc,ZodNullable:()=>Nc,ZodNumber:()=>Ft,ZodNumberFormat:()=>nt,ZodObject:()=>Dr,ZodOptional:()=>Qn,ZodPipe:()=>Er,ZodPrefault:()=>Zc,ZodPreprocess:()=>Hc,ZodPromise:()=>Qc,ZodReadonly:()=>Gc,ZodRecord:()=>Lt,ZodSet:()=>Dc,ZodString:()=>Zt,ZodStringFormat:()=>U,ZodSuccess:()=>Bc,ZodSymbol:()=>mc,ZodTemplateLiteral:()=>Kc,ZodTransform:()=>Oc,ZodTuple:()=>Ic,ZodType:()=>z,ZodULID:()=>Nn,ZodURL:()=>Tr,ZodUUID:()=>be,ZodUndefined:()=>gc,ZodUnion:()=>Ar,ZodUnknown:()=>bc,ZodVoid:()=>kc,ZodXID:()=>Ln,ZodXor:()=>_c,_ZodString:()=>Dn,_default:()=>Rc,_function:()=>Rg,any:()=>hg,array:()=>Cr,base64:()=>Qm,base64url:()=>eg,bigint:()=>dg,boolean:()=>pc,catch:()=>qc,check:()=>Zg,cidrv4:()=>Xm,cidrv6:()=>Ym,codec:()=>Ug,cuid:()=>Bm,cuid2:()=>Vm,custom:()=>Mg,date:()=>vg,describe:()=>Fg,discriminatedUnion:()=>wg,e164:()=>tg,email:()=>Em,emoji:()=>Mm,enum:()=>Xn,exactOptional:()=>jc,file:()=>Dg,float32:()=>sg,float64:()=>lg,function:()=>Rg,guid:()=>Om,hash:()=>ig,hex:()=>ag,hostname:()=>ng,httpUrl:()=>Zm,instanceof:()=>Vg,int:()=>Pn,int32:()=>ug,int64:()=>fg,intersection:()=>zc,invertCodec:()=>jg,ipv4:()=>Gm,ipv6:()=>Km,json:()=>Wg,jwt:()=>rg,keyof:()=>bg,ksuid:()=>Hm,lazy:()=>Yc,literal:()=>Cg,looseObject:()=>$g,looseRecord:()=>zg,mac:()=>Jm,map:()=>Ig,meta:()=>Bg,nan:()=>Og,nanoid:()=>Fm,nativeEnum:()=>Pg,never:()=>Jn,nonoptional:()=>Fc,null:()=>xc,nullable:()=>zr,nullish:()=>Ag,number:()=>fc,object:()=>yg,optional:()=>Sr,partialRecord:()=>Sg,pipe:()=>Cn,prefault:()=>Mc,preprocess:()=>Hg,promise:()=>Lg,readonly:()=>Jc,record:()=>Pc,refine:()=>td,set:()=>Tg,strictObject:()=>kg,string:()=>_r,stringFormat:()=>og,stringbool:()=>qg,success:()=>Eg,superRefine:()=>rd,symbol:()=>mg,templateLiteral:()=>Ng,transform:()=>Yn,tuple:()=>Tc,uint32:()=>cg,uint64:()=>pg,ulid:()=>qm,undefined:()=>gg,union:()=>Kn,unknown:()=>ot,url:()=>Rm,uuid:()=>Um,uuidv4:()=>jm,uuidv6:()=>Nm,uuidv7:()=>Lm,void:()=>xg,xid:()=>Wm,xor:()=>_g});var wn={};$e(wn,{endsWith:()=>Tt,gt:()=>xe,gte:()=>Y,includes:()=>zt,length:()=>rt,lowercase:()=>wt,lt:()=>he,lte:()=>ae,maxLength:()=>tt,maxSize:()=>Me,mime:()=>Pt,minLength:()=>we,minSize:()=>ve,multipleOf:()=>Ze,negative:()=>gn,nonnegative:()=>xn,nonpositive:()=>hn,normalize:()=>Ct,overwrite:()=>fe,positive:()=>mn,property:()=>vn,regex:()=>_t,size:()=>et,slugify:()=>Ot,startsWith:()=>It,toLowerCase:()=>At,toUpperCase:()=>Et,trim:()=>Dt,uppercase:()=>St});var Nt={};$e(Nt,{ZodISODate:()=>zn,ZodISODateTime:()=>Sn,ZodISODuration:()=>Tn,ZodISOTime:()=>In,date:()=>Ku,datetime:()=>Ju,duration:()=>Yu,time:()=>Xu});var Sn=f("ZodISODateTime",(e,r)=>{zs.init(e,r),U.init(e,r)});function Ju(e){return Cl(Sn,e)}var zn=f("ZodISODate",(e,r)=>{Is.init(e,r),U.init(e,r)});function Ku(e){return Dl(zn,e)}var In=f("ZodISOTime",(e,r)=>{Ts.init(e,r),U.init(e,r)});function Xu(e){return Al(In,e)}var Tn=f("ZodISODuration",(e,r)=>{Ps.init(e,r),U.init(e,r)});function Yu(e){return El(Tn,e)}var Dm=(e,r)=>{ur.init(e,r),e.name="ZodError",Object.defineProperties(e,{format:{value:o=>dr(e,o)},flatten:{value:o=>cr(e,o)},addIssue:{value:o=>{e.issues.push(o),e.message=JSON.stringify(e.issues,mt,2)}},addIssues:{value:o=>{e.issues.push(...o),e.message=JSON.stringify(e.issues,mt,2)}},isEmpty:{get(){return e.issues.length===0}}})},Jk=f("ZodError",Dm),oe=f("ZodError",Dm,{Parent:Error});var Qu=xt(oe),ec=vt(oe),tc=bt(oe),rc=yt(oe),oc=ko(oe),nc=$o(oe),ac=_o(oe),ic=wo(oe),sc=So(oe),lc=zo(oe),uc=Io(oe),cc=To(oe);var Am=new WeakMap;function Ir(e,r,o){let n=Object.getPrototypeOf(e),t=Am.get(n);if(t||(t=new Set,Am.set(n,t)),!t.has(r)){t.add(r);for(let a in o){let i=o[a];Object.defineProperty(n,a,{configurable:!0,enumerable:!1,get(){let s=i.bind(this);return Object.defineProperty(this,a,{configurable:!0,writable:!0,enumerable:!0,value:s}),s},set(s){Object.defineProperty(this,a,{configurable:!0,writable:!0,enumerable:!0,value:s})}})}}}var z=f("ZodType",(e,r)=>(_.init(e,r),Object.assign(e["~standard"],{jsonSchema:{input:jt(e,"input"),output:jt(e,"output")}}),e.toJSONSchema=du(e,{}),e.def=r,e.type=r.type,Object.defineProperty(e,"_def",{value:r}),e.parse=(o,n)=>Qu(e,o,n,{callee:e.parse}),e.safeParse=(o,n)=>tc(e,o,n),e.parseAsync=async(o,n)=>ec(e,o,n,{callee:e.parseAsync}),e.safeParseAsync=async(o,n)=>rc(e,o,n),e.spa=e.safeParseAsync,e.encode=(o,n)=>oc(e,o,n),e.decode=(o,n)=>nc(e,o,n),e.encodeAsync=async(o,n)=>ac(e,o,n),e.decodeAsync=async(o,n)=>ic(e,o,n),e.safeEncode=(o,n)=>sc(e,o,n),e.safeDecode=(o,n)=>lc(e,o,n),e.safeEncodeAsync=async(o,n)=>uc(e,o,n),e.safeDecodeAsync=async(o,n)=>cc(e,o,n),Ir(e,"ZodType",{check(...o){let n=this.def;return this.clone(b.mergeDefs(n,{checks:[...n.checks??[],...o.map(t=>typeof t=="function"?{_zod:{check:t,def:{check:"custom"},onattach:[]}}:t)]}),{parent:!0})},with(...o){return this.check(...o)},clone(o,n){return K(this,o,n)},brand(){return this},register(o,n){return o.add(this,n),this},refine(o,n){return this.check(td(o,n))},superRefine(o,n){return this.check(rd(o,n))},overwrite(o){return this.check(fe(o))},optional(){return Sr(this)},exactOptional(){return jc(this)},nullable(){return zr(this)},nullish(){return Sr(zr(this))},nonoptional(o){return Fc(this,o)},array(){return Cr(this)},or(o){return Kn([this,o])},and(o){return zc(this,o)},transform(o){return Cn(this,Yn(o))},default(o){return Rc(this,o)},prefault(o){return Mc(this,o)},catch(o){return qc(this,o)},pipe(o){return Cn(this,o)},readonly(){return Jc(this)},describe(o){let n=this.clone();return q.add(n,{description:o}),n},meta(...o){if(o.length===0)return q.get(this);let n=this.clone();return q.add(n,o[0]),n},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(o){return o(this)}}),Object.defineProperty(e,"description",{get(){return q.get(e)?.description},configurable:!0}),e)),Dn=f("_ZodString",(e,r)=>{Qe.init(e,r),z.init(e,r),e._zod.processJSONSchema=(n,t,a)=>fu(e,n,t,a);let o=e._zod.bag;e.format=o.format??null,e.minLength=o.minimum??null,e.maxLength=o.maximum??null,Ir(e,"_ZodString",{regex(...n){return this.check(_t(...n))},includes(...n){return this.check(zt(...n))},startsWith(...n){return this.check(It(...n))},endsWith(...n){return this.check(Tt(...n))},min(...n){return this.check(we(...n))},max(...n){return this.check(tt(...n))},length(...n){return this.check(rt(...n))},nonempty(...n){return this.check(we(1,...n))},lowercase(n){return this.check(wt(n))},uppercase(n){return this.check(St(n))},trim(){return this.check(Dt())},normalize(...n){return this.check(Ct(...n))},toLowerCase(){return this.check(At())},toUpperCase(){return this.check(Et())},slugify(){return this.check(Ot())}})}),Zt=f("ZodString",(e,r)=>{Qe.init(e,r),Dn.init(e,r),e.email=o=>e.check(Ho(An,o)),e.url=o=>e.check(kr(Tr,o)),e.jwt=o=>e.check(pn(Hn,o)),e.emoji=o=>e.check(Yo(En,o)),e.guid=o=>e.check(yr(wr,o)),e.uuid=o=>e.check(Go(be,o)),e.uuidv4=o=>e.check(Jo(be,o)),e.uuidv6=o=>e.check(Ko(be,o)),e.uuidv7=o=>e.check(Xo(be,o)),e.nanoid=o=>e.check(Qo(On,o)),e.guid=o=>e.check(yr(wr,o)),e.cuid=o=>e.check(en(Un,o)),e.cuid2=o=>e.check(tn(jn,o)),e.ulid=o=>e.check(rn(Nn,o)),e.base64=o=>e.check(cn(Vn,o)),e.base64url=o=>e.check(dn(qn,o)),e.xid=o=>e.check(on(Ln,o)),e.ksuid=o=>e.check(nn(Rn,o)),e.ipv4=o=>e.check(an(Zn,o)),e.ipv6=o=>e.check(sn(Mn,o)),e.cidrv4=o=>e.check(ln(Fn,o)),e.cidrv6=o=>e.check(un(Bn,o)),e.e164=o=>e.check(fn(Wn,o)),e.datetime=o=>e.check(Ju(o)),e.date=o=>e.check(Ku(o)),e.time=o=>e.check(Xu(o)),e.duration=o=>e.check(Yu(o))});function _r(e){return zl(Zt,e)}var U=f("ZodStringFormat",(e,r)=>{O.init(e,r),Dn.init(e,r)}),An=f("ZodEmail",(e,r)=>{xs.init(e,r),U.init(e,r)});function Em(e){return Ho(An,e)}var wr=f("ZodGUID",(e,r)=>{gs.init(e,r),U.init(e,r)});function Om(e){return yr(wr,e)}var be=f("ZodUUID",(e,r)=>{hs.init(e,r),U.init(e,r)});function Um(e){return Go(be,e)}function jm(e){return Jo(be,e)}function Nm(e){return Ko(be,e)}function Lm(e){return Xo(be,e)}var Tr=f("ZodURL",(e,r)=>{vs.init(e,r),U.init(e,r)});function Rm(e){return kr(Tr,e)}function Zm(e){return kr(Tr,{protocol:ne.httpProtocol,hostname:ne.domain,...b.normalizeParams(e)})}var En=f("ZodEmoji",(e,r)=>{bs.init(e,r),U.init(e,r)});function Mm(e){return Yo(En,e)}var On=f("ZodNanoID",(e,r)=>{ys.init(e,r),U.init(e,r)});function Fm(e){return Qo(On,e)}var Un=f("ZodCUID",(e,r)=>{ks.init(e,r),U.init(e,r)});function Bm(e){return en(Un,e)}var jn=f("ZodCUID2",(e,r)=>{$s.init(e,r),U.init(e,r)});function Vm(e){return tn(jn,e)}var Nn=f("ZodULID",(e,r)=>{_s.init(e,r),U.init(e,r)});function qm(e){return rn(Nn,e)}var Ln=f("ZodXID",(e,r)=>{ws.init(e,r),U.init(e,r)});function Wm(e){return on(Ln,e)}var Rn=f("ZodKSUID",(e,r)=>{Ss.init(e,r),U.init(e,r)});function Hm(e){return nn(Rn,e)}var Zn=f("ZodIPv4",(e,r)=>{Cs.init(e,r),U.init(e,r)});function Gm(e){return an(Zn,e)}var dc=f("ZodMAC",(e,r)=>{As.init(e,r),U.init(e,r)});function Jm(e){return Tl(dc,e)}var Mn=f("ZodIPv6",(e,r)=>{Ds.init(e,r),U.init(e,r)});function Km(e){return sn(Mn,e)}var Fn=f("ZodCIDRv4",(e,r)=>{Es.init(e,r),U.init(e,r)});function Xm(e){return ln(Fn,e)}var Bn=f("ZodCIDRv6",(e,r)=>{Os.init(e,r),U.init(e,r)});function Ym(e){return un(Bn,e)}var Vn=f("ZodBase64",(e,r)=>{js.init(e,r),U.init(e,r)});function Qm(e){return cn(Vn,e)}var qn=f("ZodBase64URL",(e,r)=>{Ns.init(e,r),U.init(e,r)});function eg(e){return dn(qn,e)}var Wn=f("ZodE164",(e,r)=>{Ls.init(e,r),U.init(e,r)});function tg(e){return fn(Wn,e)}var Hn=f("ZodJWT",(e,r)=>{Rs.init(e,r),U.init(e,r)});function rg(e){return pn(Hn,e)}var Mt=f("ZodCustomStringFormat",(e,r)=>{Zs.init(e,r),U.init(e,r)});function og(e,r,o={}){return Ut(Mt,e,r,o)}function ng(e){return Ut(Mt,"hostname",ne.hostname,e)}function ag(e){return Ut(Mt,"hex",ne.hex,e)}function ig(e,r){let o=r?.enc??"hex",n=`${e}_${o}`,t=ne[n];if(!t)throw new Error(`Unrecognized hash format: ${n}`);return Ut(Mt,n,t,r)}var Ft=f("ZodNumber",(e,r)=>{No.init(e,r),z.init(e,r),e._zod.processJSONSchema=(n,t,a)=>pu(e,n,t,a),Ir(e,"ZodNumber",{gt(n,t){return this.check(xe(n,t))},gte(n,t){return this.check(Y(n,t))},min(n,t){return this.check(Y(n,t))},lt(n,t){return this.check(he(n,t))},lte(n,t){return this.check(ae(n,t))},max(n,t){return this.check(ae(n,t))},int(n){return this.check(Pn(n))},safe(n){return this.check(Pn(n))},positive(n){return this.check(xe(0,n))},nonnegative(n){return this.check(Y(0,n))},negative(n){return this.check(he(0,n))},nonpositive(n){return this.check(ae(0,n))},multipleOf(n,t){return this.check(Ze(n,t))},step(n,t){return this.check(Ze(n,t))},finite(){return this}});let o=e._zod.bag;e.minValue=Math.max(o.minimum??Number.NEGATIVE_INFINITY,o.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(o.maximum??Number.POSITIVE_INFINITY,o.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(o.format??"").includes("int")||Number.isSafeInteger(o.multipleOf??.5),e.isFinite=!0,e.format=o.format??null});function fc(e){return Ol(Ft,e)}var nt=f("ZodNumberFormat",(e,r)=>{Ms.init(e,r),Ft.init(e,r)});function Pn(e){return jl(nt,e)}function sg(e){return Nl(nt,e)}function lg(e){return Ll(nt,e)}function ug(e){return Rl(nt,e)}function cg(e){return Zl(nt,e)}var Bt=f("ZodBoolean",(e,r)=>{gr.init(e,r),z.init(e,r),e._zod.processJSONSchema=(o,n,t)=>mu(e,o,n,t)});function pc(e){return Ml(Bt,e)}var Vt=f("ZodBigInt",(e,r)=>{Lo.init(e,r),z.init(e,r),e._zod.processJSONSchema=(n,t,a)=>gu(e,n,t,a),e.gte=(n,t)=>e.check(Y(n,t)),e.min=(n,t)=>e.check(Y(n,t)),e.gt=(n,t)=>e.check(xe(n,t)),e.gte=(n,t)=>e.check(Y(n,t)),e.min=(n,t)=>e.check(Y(n,t)),e.lt=(n,t)=>e.check(he(n,t)),e.lte=(n,t)=>e.check(ae(n,t)),e.max=(n,t)=>e.check(ae(n,t)),e.positive=n=>e.check(xe(BigInt(0),n)),e.negative=n=>e.check(he(BigInt(0),n)),e.nonpositive=n=>e.check(ae(BigInt(0),n)),e.nonnegative=n=>e.check(Y(BigInt(0),n)),e.multipleOf=(n,t)=>e.check(Ze(n,t));let o=e._zod.bag;e.minValue=o.minimum??null,e.maxValue=o.maximum??null,e.format=o.format??null});function dg(e){return Bl(Vt,e)}var Gn=f("ZodBigIntFormat",(e,r)=>{Fs.init(e,r),Vt.init(e,r)});function fg(e){return ql(Gn,e)}function pg(e){return Wl(Gn,e)}var mc=f("ZodSymbol",(e,r)=>{Bs.init(e,r),z.init(e,r),e._zod.processJSONSchema=(o,n,t)=>hu(e,o,n,t)});function mg(e){return Hl(mc,e)}var gc=f("ZodUndefined",(e,r)=>{Vs.init(e,r),z.init(e,r),e._zod.processJSONSchema=(o,n,t)=>vu(e,o,n,t)});function gg(e){return Gl(gc,e)}var hc=f("ZodNull",(e,r)=>{qs.init(e,r),z.init(e,r),e._zod.processJSONSchema=(o,n,t)=>xu(e,o,n,t)});function xc(e){return Jl(hc,e)}var vc=f("ZodAny",(e,r)=>{Ws.init(e,r),z.init(e,r),e._zod.processJSONSchema=(o,n,t)=>ku(e,o,n,t)});function hg(){return Kl(vc)}var bc=f("ZodUnknown",(e,r)=>{Hs.init(e,r),z.init(e,r),e._zod.processJSONSchema=(o,n,t)=>$u(e,o,n,t)});function ot(){return Xl(bc)}var yc=f("ZodNever",(e,r)=>{Gs.init(e,r),z.init(e,r),e._zod.processJSONSchema=(o,n,t)=>yu(e,o,n,t)});function Jn(e){return Yl(yc,e)}var kc=f("ZodVoid",(e,r)=>{Js.init(e,r),z.init(e,r),e._zod.processJSONSchema=(o,n,t)=>bu(e,o,n,t)});function xg(e){return Ql(kc,e)}var Pr=f("ZodDate",(e,r)=>{Ks.init(e,r),z.init(e,r),e._zod.processJSONSchema=(n,t,a)=>_u(e,n,t,a),e.min=(n,t)=>e.check(Y(n,t)),e.max=(n,t)=>e.check(ae(n,t));let o=e._zod.bag;e.minDate=o.minimum?new Date(o.minimum):null,e.maxDate=o.maximum?new Date(o.maximum):null});function vg(e){return eu(Pr,e)}var $c=f("ZodArray",(e,r)=>{Xs.init(e,r),z.init(e,r),e._zod.processJSONSchema=(o,n,t)=>Uu(e,o,n,t),e.element=r.element,Ir(e,"ZodArray",{min(o,n){return this.check(we(o,n))},nonempty(o){return this.check(we(1,o))},max(o,n){return this.check(tt(o,n))},length(o,n){return this.check(rt(o,n))},unwrap(){return this.element}})});function Cr(e,r){return ou($c,e,r)}function bg(e){let r=e._zod.def.shape;return Xn(Object.keys(r))}var Dr=f("ZodObject",(e,r)=>{Ys.init(e,r),z.init(e,r),e._zod.processJSONSchema=(o,n,t)=>ju(e,o,n,t),b.defineLazy(e,"shape",()=>r.shape),Ir(e,"ZodObject",{keyof(){return Xn(Object.keys(this._zod.def.shape))},catchall(o){return this.clone({...this._zod.def,catchall:o})},passthrough(){return this.clone({...this._zod.def,catchall:ot()})},loose(){return this.clone({...this._zod.def,catchall:ot()})},strict(){return this.clone({...this._zod.def,catchall:Jn()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(o){return b.extend(this,o)},safeExtend(o){return b.safeExtend(this,o)},merge(o){return b.merge(this,o)},pick(o){return b.pick(this,o)},omit(o){return b.omit(this,o)},partial(...o){return b.partial(Qn,this,o[0])},required(...o){return b.required(ea,this,o[0])}})});function yg(e,r){let o={type:"object",shape:e??{},...b.normalizeParams(r)};return new Dr(o)}function kg(e,r){return new Dr({type:"object",shape:e,catchall:Jn(),...b.normalizeParams(r)})}function $g(e,r){return new Dr({type:"object",shape:e,catchall:ot(),...b.normalizeParams(r)})}var Ar=f("ZodUnion",(e,r)=>{hr.init(e,r),z.init(e,r),e._zod.processJSONSchema=(o,n,t)=>yn(e,o,n,t),e.options=r.options});function Kn(e,r){return new Ar({type:"union",options:e,...b.normalizeParams(r)})}var _c=f("ZodXor",(e,r)=>{Ar.init(e,r),Qs.init(e,r),e._zod.processJSONSchema=(o,n,t)=>yn(e,o,n,t),e.options=r.options});function _g(e,r){return new _c({type:"union",options:e,inclusive:!1,...b.normalizeParams(r)})}var wc=f("ZodDiscriminatedUnion",(e,r)=>{Ar.init(e,r),el.init(e,r)});function wg(e,r,o){return new wc({type:"union",options:r,discriminator:e,...b.normalizeParams(o)})}var Sc=f("ZodIntersection",(e,r)=>{tl.init(e,r),z.init(e,r),e._zod.processJSONSchema=(o,n,t)=>Nu(e,o,n,t)});function zc(e,r){return new Sc({type:"intersection",left:e,right:r})}var Ic=f("ZodTuple",(e,r)=>{Ro.init(e,r),z.init(e,r),e._zod.processJSONSchema=(o,n,t)=>Lu(e,o,n,t),e.rest=o=>e.clone({...e._zod.def,rest:o})});function Tc(e,r,o){let n=r instanceof _,t=n?o:r,a=n?r:null;return new Ic({type:"tuple",items:e,rest:a,...b.normalizeParams(t)})}var Lt=f("ZodRecord",(e,r)=>{rl.init(e,r),z.init(e,r),e._zod.processJSONSchema=(o,n,t)=>Ru(e,o,n,t),e.keyType=r.keyType,e.valueType=r.valueType});function Pc(e,r,o){return!r||!r._zod?new Lt({type:"record",keyType:_r(),valueType:e,...b.normalizeParams(r)}):new Lt({type:"record",keyType:e,valueType:r,...b.normalizeParams(o)})}function Sg(e,r,o){let n=K(e);return n._zod.values=void 0,new Lt({type:"record",keyType:n,valueType:r,...b.normalizeParams(o)})}function zg(e,r,o){return new Lt({type:"record",keyType:e,valueType:r,mode:"loose",...b.normalizeParams(o)})}var Cc=f("ZodMap",(e,r)=>{ol.init(e,r),z.init(e,r),e._zod.processJSONSchema=(o,n,t)=>Eu(e,o,n,t),e.keyType=r.keyType,e.valueType=r.valueType,e.min=(...o)=>e.check(ve(...o)),e.nonempty=o=>e.check(ve(1,o)),e.max=(...o)=>e.check(Me(...o)),e.size=(...o)=>e.check(et(...o))});function Ig(e,r,o){return new Cc({type:"map",keyType:e,valueType:r,...b.normalizeParams(o)})}var Dc=f("ZodSet",(e,r)=>{nl.init(e,r),z.init(e,r),e._zod.processJSONSchema=(o,n,t)=>Ou(e,o,n,t),e.min=(...o)=>e.check(ve(...o)),e.nonempty=o=>e.check(ve(1,o)),e.max=(...o)=>e.check(Me(...o)),e.size=(...o)=>e.check(et(...o))});function Tg(e,r){return new Dc({type:"set",valueType:e,...b.normalizeParams(r)})}var Rt=f("ZodEnum",(e,r)=>{al.init(e,r),z.init(e,r),e._zod.processJSONSchema=(n,t,a)=>wu(e,n,t,a),e.enum=r.entries,e.options=Object.values(r.entries);let o=new Set(Object.keys(r.entries));e.extract=(n,t)=>{let a={};for(let i of n)if(o.has(i))a[i]=r.entries[i];else throw new Error(`Key ${i} not found in enum`);return new Rt({...r,checks:[],...b.normalizeParams(t),entries:a})},e.exclude=(n,t)=>{let a={...r.entries};for(let i of n)if(o.has(i))delete a[i];else throw new Error(`Key ${i} not found in enum`);return new Rt({...r,checks:[],...b.normalizeParams(t),entries:a})}});function Xn(e,r){let o=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new Rt({type:"enum",entries:o,...b.normalizeParams(r)})}function Pg(e,r){return new Rt({type:"enum",entries:e,...b.normalizeParams(r)})}var Ac=f("ZodLiteral",(e,r)=>{il.init(e,r),z.init(e,r),e._zod.processJSONSchema=(o,n,t)=>Su(e,o,n,t),e.values=new Set(r.values),Object.defineProperty(e,"value",{get(){if(r.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return r.values[0]}})});function Cg(e,r){return new Ac({type:"literal",values:Array.isArray(e)?e:[e],...b.normalizeParams(r)})}var Ec=f("ZodFile",(e,r)=>{sl.init(e,r),z.init(e,r),e._zod.processJSONSchema=(o,n,t)=>Tu(e,o,n,t),e.min=(o,n)=>e.check(ve(o,n)),e.max=(o,n)=>e.check(Me(o,n)),e.mime=(o,n)=>e.check(Pt(Array.isArray(o)?o:[o],n))});function Dg(e){return nu(Ec,e)}var Oc=f("ZodTransform",(e,r)=>{ll.init(e,r),z.init(e,r),e._zod.processJSONSchema=(o,n,t)=>Au(e,o,n,t),e._zod.parse=(o,n)=>{if(n.direction==="backward")throw new Ue(e.constructor.name);o.addIssue=a=>{if(typeof a=="string")o.issues.push(b.issue(a,o.value,r));else{let i=a;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=o.value),i.inst??(i.inst=e),o.issues.push(b.issue(i))}};let t=r.transform(o.value,o);return t instanceof Promise?t.then(a=>(o.value=a,o.fallback=!0,o)):(o.value=t,o.fallback=!0,o)}});function Yn(e){return new Oc({type:"transform",transform:e})}var Qn=f("ZodOptional",(e,r)=>{Zo.init(e,r),z.init(e,r),e._zod.processJSONSchema=(o,n,t)=>kn(e,o,n,t),e.unwrap=()=>e._zod.def.innerType});function Sr(e){return new Qn({type:"optional",innerType:e})}var Uc=f("ZodExactOptional",(e,r)=>{ul.init(e,r),z.init(e,r),e._zod.processJSONSchema=(o,n,t)=>kn(e,o,n,t),e.unwrap=()=>e._zod.def.innerType});function jc(e){return new Uc({type:"optional",innerType:e})}var Nc=f("ZodNullable",(e,r)=>{cl.init(e,r),z.init(e,r),e._zod.processJSONSchema=(o,n,t)=>Zu(e,o,n,t),e.unwrap=()=>e._zod.def.innerType});function zr(e){return new Nc({type:"nullable",innerType:e})}function Ag(e){return Sr(zr(e))}var Lc=f("ZodDefault",(e,r)=>{dl.init(e,r),z.init(e,r),e._zod.processJSONSchema=(o,n,t)=>Fu(e,o,n,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Rc(e,r){return new Lc({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():b.shallowClone(r)}})}var Zc=f("ZodPrefault",(e,r)=>{fl.init(e,r),z.init(e,r),e._zod.processJSONSchema=(o,n,t)=>Bu(e,o,n,t),e.unwrap=()=>e._zod.def.innerType});function Mc(e,r){return new Zc({type:"prefault",innerType:e,get defaultValue(){return typeof r=="function"?r():b.shallowClone(r)}})}var ea=f("ZodNonOptional",(e,r)=>{pl.init(e,r),z.init(e,r),e._zod.processJSONSchema=(o,n,t)=>Mu(e,o,n,t),e.unwrap=()=>e._zod.def.innerType});function Fc(e,r){return new ea({type:"nonoptional",innerType:e,...b.normalizeParams(r)})}var Bc=f("ZodSuccess",(e,r)=>{ml.init(e,r),z.init(e,r),e._zod.processJSONSchema=(o,n,t)=>Pu(e,o,n,t),e.unwrap=()=>e._zod.def.innerType});function Eg(e){return new Bc({type:"success",innerType:e})}var Vc=f("ZodCatch",(e,r)=>{gl.init(e,r),z.init(e,r),e._zod.processJSONSchema=(o,n,t)=>Vu(e,o,n,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function qc(e,r){return new Vc({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}var Wc=f("ZodNaN",(e,r)=>{hl.init(e,r),z.init(e,r),e._zod.processJSONSchema=(o,n,t)=>zu(e,o,n,t)});function Og(e){return ru(Wc,e)}var Er=f("ZodPipe",(e,r)=>{Mo.init(e,r),z.init(e,r),e._zod.processJSONSchema=(o,n,t)=>qu(e,o,n,t),e.in=r.in,e.out=r.out});function Cn(e,r){return new Er({type:"pipe",in:e,out:r})}var Or=f("ZodCodec",(e,r)=>{Er.init(e,r),xr.init(e,r)});function Ug(e,r,o){return new Or({type:"pipe",in:e,out:r,transform:o.decode,reverseTransform:o.encode})}function jg(e){let r=e._zod.def;return new Or({type:"pipe",in:r.out,out:r.in,transform:r.reverseTransform,reverseTransform:r.transform})}var Hc=f("ZodPreprocess",(e,r)=>{Er.init(e,r),xl.init(e,r)}),Gc=f("ZodReadonly",(e,r)=>{vl.init(e,r),z.init(e,r),e._zod.processJSONSchema=(o,n,t)=>Wu(e,o,n,t),e.unwrap=()=>e._zod.def.innerType});function Jc(e){return new Gc({type:"readonly",innerType:e})}var Kc=f("ZodTemplateLiteral",(e,r)=>{bl.init(e,r),z.init(e,r),e._zod.processJSONSchema=(o,n,t)=>Iu(e,o,n,t)});function Ng(e,r){return new Kc({type:"template_literal",parts:e,...b.normalizeParams(r)})}var Xc=f("ZodLazy",(e,r)=>{$l.init(e,r),z.init(e,r),e._zod.processJSONSchema=(o,n,t)=>Gu(e,o,n,t),e.unwrap=()=>e._zod.def.getter()});function Yc(e){return new Xc({type:"lazy",getter:e})}var Qc=f("ZodPromise",(e,r)=>{kl.init(e,r),z.init(e,r),e._zod.processJSONSchema=(o,n,t)=>Hu(e,o,n,t),e.unwrap=()=>e._zod.def.innerType});function Lg(e){return new Qc({type:"promise",innerType:e})}var ed=f("ZodFunction",(e,r)=>{yl.init(e,r),z.init(e,r),e._zod.processJSONSchema=(o,n,t)=>Du(e,o,n,t)});function Rg(e){return new ed({type:"function",input:Array.isArray(e?.input)?Tc(e?.input):e?.input??Cr(ot()),output:e?.output??ot()})}var Ur=f("ZodCustom",(e,r)=>{_l.init(e,r),z.init(e,r),e._zod.processJSONSchema=(o,n,t)=>Cu(e,o,n,t)});function Zg(e){let r=new j({check:"custom"});return r._zod.check=e,r}function Mg(e,r){return au(Ur,e??(()=>!0),r)}function td(e,r={}){return iu(Ur,e,r)}function rd(e,r){return su(e,r)}var Fg=lu,Bg=uu;function Vg(e,r={}){let o=new Ur({type:"custom",check:"custom",fn:n=>n instanceof e,abort:!0,...b.normalizeParams(r)});return o._zod.bag.Class=e,o._zod.check=n=>{n.value instanceof e||n.issues.push({code:"invalid_type",expected:e.name,input:n.value,inst:o,path:[...o._zod.def.path??[]]})},o}var qg=(...e)=>cu({Codec:Or,Boolean:Bt,String:Zt},...e);function Wg(e){let r=Yc(()=>Kn([_r(e),fc(),pc(),xc(),Cr(r),Pc(_r(),r)]));return r}function Hg(e,r){return new Hc({type:"pipe",in:Yn(e),out:r})}var Xk={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function Yk(e){Z({customError:e})}function Qk(){return Z().customError}var od;od||(od={});var $={...$r,...wn,iso:Nt},e$=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"]);function t$(e,r){let o=e.$schema;return o==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":o==="http://json-schema.org/draft-07/schema#"?"draft-7":o==="http://json-schema.org/draft-04/schema#"?"draft-4":r??"draft-2020-12"}function r$(e,r){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let o=e.slice(1).split("/").filter(Boolean);if(o.length===0)return r.rootSchema;let n=r.version==="draft-2020-12"?"$defs":"definitions";if(o[0]===n){let t=o[1];if(!t||!r.defs[t])throw new Error(`Reference not found: ${e}`);return r.defs[t]}throw new Error(`Reference not found: ${e}`)}function Gg(e,r){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return $.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let t=e.$ref;if(r.refs.has(t))return r.refs.get(t);if(r.processing.has(t))return $.lazy(()=>{if(!r.refs.has(t))throw new Error(`Circular reference not resolved: ${t}`);return r.refs.get(t)});r.processing.add(t);let a=r$(t,r),i=H(a,r);return r.refs.set(t,i),r.processing.delete(t),i}if(e.enum!==void 0){let t=e.enum;if(r.version==="openapi-3.0"&&e.nullable===!0&&t.length===1&&t[0]===null)return $.null();if(t.length===0)return $.never();if(t.length===1)return $.literal(t[0]);if(t.every(i=>typeof i=="string"))return $.enum(t);let a=t.map(i=>$.literal(i));return a.length<2?a[0]:$.union([a[0],a[1],...a.slice(2)])}if(e.const!==void 0)return $.literal(e.const);let o=e.type;if(Array.isArray(o)){let t=o.map(a=>{let i={...e,type:a};return Gg(i,r)});return t.length===0?$.never():t.length===1?t[0]:$.union(t)}if(!o)return $.any();let n;switch(o){case"string":{let t=$.string();if(e.format){let a=e.format;a==="email"?t=t.check($.email()):a==="uri"||a==="uri-reference"?t=t.check($.url()):a==="uuid"||a==="guid"?t=t.check($.uuid()):a==="date-time"?t=t.check($.iso.datetime()):a==="date"?t=t.check($.iso.date()):a==="time"?t=t.check($.iso.time()):a==="duration"?t=t.check($.iso.duration()):a==="ipv4"?t=t.check($.ipv4()):a==="ipv6"?t=t.check($.ipv6()):a==="mac"?t=t.check($.mac()):a==="cidr"?t=t.check($.cidrv4()):a==="cidr-v6"?t=t.check($.cidrv6()):a==="base64"?t=t.check($.base64()):a==="base64url"?t=t.check($.base64url()):a==="e164"?t=t.check($.e164()):a==="jwt"?t=t.check($.jwt()):a==="emoji"?t=t.check($.emoji()):a==="nanoid"?t=t.check($.nanoid()):a==="cuid"?t=t.check($.cuid()):a==="cuid2"?t=t.check($.cuid2()):a==="ulid"?t=t.check($.ulid()):a==="xid"?t=t.check($.xid()):a==="ksuid"&&(t=t.check($.ksuid()))}typeof e.minLength=="number"&&(t=t.min(e.minLength)),typeof e.maxLength=="number"&&(t=t.max(e.maxLength)),e.pattern&&(t=t.regex(new RegExp(e.pattern))),n=t;break}case"number":case"integer":{let t=o==="integer"?$.number().int():$.number();typeof e.minimum=="number"&&(t=t.min(e.minimum)),typeof e.maximum=="number"&&(t=t.max(e.maximum)),typeof e.exclusiveMinimum=="number"?t=t.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(t=t.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?t=t.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(t=t.lt(e.maximum)),typeof e.multipleOf=="number"&&(t=t.multipleOf(e.multipleOf)),n=t;break}case"boolean":{n=$.boolean();break}case"null":{n=$.null();break}case"object":{let t={},a=e.properties||{},i=new Set(e.required||[]);for(let[l,u]of Object.entries(a)){let c=H(u,r);t[l]=i.has(l)?c:c.optional()}if(e.propertyNames){let l=H(e.propertyNames,r),u=e.additionalProperties&&typeof e.additionalProperties=="object"?H(e.additionalProperties,r):$.any();if(Object.keys(t).length===0){n=$.record(l,u);break}let c=$.object(t).passthrough(),d=$.looseRecord(l,u);n=$.intersection(c,d);break}if(e.patternProperties){let l=e.patternProperties,u=Object.keys(l),c=[];for(let p of u){let g=H(l[p],r),h=$.string().regex(new RegExp(p));c.push($.looseRecord(h,g))}let d=[];if(Object.keys(t).length>0&&d.push($.object(t).passthrough()),d.push(...c),d.length===0)n=$.object({}).passthrough();else if(d.length===1)n=d[0];else{let p=$.intersection(d[0],d[1]);for(let g=2;gH(l,r)),s=a&&typeof a=="object"&&!Array.isArray(a)?H(a,r):void 0;s?n=$.tuple(i).rest(s):n=$.tuple(i),typeof e.minItems=="number"&&(n=n.check($.minLength(e.minItems))),typeof e.maxItems=="number"&&(n=n.check($.maxLength(e.maxItems)))}else if(Array.isArray(a)){let i=a.map(l=>H(l,r)),s=e.additionalItems&&typeof e.additionalItems=="object"?H(e.additionalItems,r):void 0;s?n=$.tuple(i).rest(s):n=$.tuple(i),typeof e.minItems=="number"&&(n=n.check($.minLength(e.minItems))),typeof e.maxItems=="number"&&(n=n.check($.maxLength(e.maxItems)))}else if(a!==void 0){let i=H(a,r),s=$.array(i);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),n=s}else n=$.array($.any());break}default:throw new Error(`Unsupported type: ${o}`)}return n}function H(e,r){if(typeof e=="boolean")return e?$.any():$.never();let o=Gg(e,r),n=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let s=e.anyOf.map(u=>H(u,r)),l=$.union(s);o=n?$.intersection(o,l):l}if(e.oneOf&&Array.isArray(e.oneOf)){let s=e.oneOf.map(u=>H(u,r)),l=$.xor(s);o=n?$.intersection(o,l):l}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)o=n?o:$.any();else{let s=n?o:H(e.allOf[0],r),l=n?0:1;for(let u=l;u0&&r.registry.add(o,t),e.description&&(o=o.describe(e.description)),o}function Jg(e,r){if(typeof e=="boolean")return e?$.any():$.never();let o;try{o=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let n=t$(o,r?.defaultTarget),t=o.$defs||o.definitions||{},a={version:n,defs:t,refs:new Map,processing:new Set,rootSchema:o,registry:r?.registry??q};return H(o,a)}var nd={};$e(nd,{bigint:()=>i$,boolean:()=>a$,date:()=>s$,number:()=>n$,string:()=>o$});function o$(e){return Il(Zt,e)}function n$(e){return Ul(Ft,e)}function a$(e){return Fl(Bt,e)}function i$(e){return Vl(Vt,e)}function s$(e){return tu(Pr,e)}Z(Fo());var p0=qt.object({name:qt.string().trim().min(1).max(120),email:qt.string().trim().max(254).email().transform(e=>e.toLowerCase())});var ta="I have signed in with my store account. Continue what I asked for before signing in.";var Kg="I want to open a support request for email follow-up.";var l$=2,Xg=350;function u$(e){try{let r=JSON.parse(e);return!r||typeof r!="object"||!("type"in r)||typeof r.type!="string"?null:r}catch{return null}}var ra=class{constructor(r){this.onSuppressionChange=r}onSuppressionChange;#t=null;#e=16e3;#l=!1;#p=!1;#i=0;#u=null;#n=!1;get captureSuppressed(){return this.#n}observe(r){if(typeof r!="string"){this.#P(r instanceof Blob?r.size:r.byteLength);return}let o=u$(r);if(!o)return;if(o.type==="audio_config"){let t=o;(t.format==="mp3"||t.format==="pcm16"||t.format==="wav"||t.format==="opus")&&(this.#t=t.format),typeof t.sampleRate=="number"&&Number.isFinite(t.sampleRate)&&t.sampleRate>0&&(this.#e=t.sampleRate);return}if(o.type==="playback_interrupt"){this.reset();return}if(o.type!=="status")return;let n=o.status;n==="speaking"?this.#h():n==="listening"?this.#S():n==="idle"&&this.reset()}reset(){this.#x(),this.#l=!1,this.#p=!1,this.#i=0,this.#c(!1)}#h(){this.#x(),this.#l||(this.#p=!1,this.#i=Date.now()),this.#l=!0,this.#c(!0)}#P(r){if(!this.#l||r<=0||(this.#p=!0,this.#c(!0),this.#t!=="pcm16"))return;let o=r/(this.#e*l$)*1e3;this.#i=Math.max(Date.now(),this.#i)+o}#S(){if(this.#l=!1,!this.#p){this.#c(!1);return}this.#x();let r=this.#t==="pcm16"?this.#i+Xg:Date.now()+Xg,o=Math.max(0,Math.ceil(r-Date.now()));this.#u=setTimeout(()=>{this.#u=null,this.#l||this.#c(!1)},o)}#x(){this.#u!==null&&(clearTimeout(this.#u),this.#u=null)}#c(r){this.#n!==r&&(this.#n=r,this.onSuppressionChange(r))}},oa=class{#t;#e;onopen=null;onclose=null;onerror=null;onmessage=null;constructor(r,o,n=new $a(r)){this.#t=n,this.#e=o}get connected(){return this.#t.connected}connect(){this.#t.onopen=()=>this.onopen?.(),this.#t.onclose=()=>{this.#e.reset(),this.onclose?.()},this.#t.onerror=r=>this.onerror?.(r),this.#t.onmessage=r=>{this.#e.observe(r),this.onmessage?.(r)},this.#t.connect()}disconnect(){this.#e.reset(),this.#t.disconnect()}sendJSON(r){this.#t.sendJSON(r)}sendBinary(r){this.#t.sendBinary(r)}};function c$(e,r){return e.role===r.role&&e.text===r.text}function ad(e,r){let o=Math.min(e.length,r.length);for(let n=o;n>0;n--){let t=e.length-n,a=!0;for(let i=0;i{Wt=e,e?(aa=!S.isMuted,aa&&S.toggleMute()):(aa&&S.isMuted&&S.toggleMute(),aa=!1),ie(S.status)}),f$=new oa({agent:"AbleDeskAgent",name:ua},hd);S=new Pd({agent:"AbleDeskAgent",name:ua,transport:f$,preferredFormat:"pcm16",interruptThreshold:Number.POSITIVE_INFINITY});var Vr=!1,ca=!1,F=!1,Jt=!1,Yg=gd,xd=null,L=[],da=[],nh=new Set,jr=[],Ht=[],Gt=[],at=null,ye=null,Nr="",Br=!1,ee=null,Ie=!1,it=!1,ma=!1,sa=null,Lr=null,Rr=null,Zr=null,Qg="",eh=S.status,Mr=null,vd=new Map,fa=new Set,Fr=null,p$=window.matchMedia("(prefers-reduced-motion: reduce)"),ga=new AbortController;function qr(){let e=y.app.dataset.view==="conversation"&&sh(),r=window.visualViewport,o=Math.max(1,Math.round(r?.height??window.innerHeight)),n=Math.max(0,Math.round(r?.offsetTop??0));document.documentElement.style.setProperty("--support-viewport-height",`${o}px`),document.documentElement.style.setProperty("--support-viewport-top",`${n}px`),e&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{y.thread.scrollTop=y.thread.scrollHeight})})}window.addEventListener("resize",qr,{signal:ga.signal});window.visualViewport?.addEventListener("resize",qr,{signal:ga.signal});window.visualViewport?.addEventListener("scroll",qr,{signal:ga.signal});qr();function ha(){return Vr&&Jt}function ze(e,r){y.app.dataset.connection=e,y.landingStatusCopy.textContent=r}function ud(){Lr!==null&&(clearTimeout(Lr),Lr=null)}function cd(){ud(),Lr=setTimeout(()=>{Lr=null,!ha()&&ze(ca?"verifying":"connecting","Still connecting \u2014 you can ask now. Your question will send automatically.")},1200)}function xa(){it=!1,Rr!==null&&clearTimeout(Rr),Zr!==null&&clearTimeout(Zr),Rr=null,Zr=null}function ah(){xa(),ma=!1,it=!0,Rr=setTimeout(()=>{Rr=null,it&&st("Ava is checking this now \u2014 some answers take a little longer.")},6e3),Zr=setTimeout(()=>{Zr=null,it&&st("This is taking longer than usual. You can try again or contact support.")},18e3)}function ih(){try{sessionStorage.setItem(ld,"1")}catch{}window.location.reload()}function m$(){try{return sessionStorage.getItem(ld)!=="1"?!1:(sessionStorage.removeItem(ld),!0)}catch{return!1}}function sh(){let e=y.thread;return e.scrollHeight-e.scrollTop-e.clientHeight<120}function bd(){y.thread.scrollTo({top:y.thread.scrollHeight,behavior:p$.matches?"auto":"smooth"})}function va(e){let r=document.createElement("span");return r.className="sr-only",r.textContent=e,r}function lt(e){!e||e===Qg||(Qg=e,y.conversationStatus.textContent=e)}function dd(e){e.style.height="auto",e.style.height=`${Math.min(e.scrollHeight,112)}px`}function pa(e){e.value="",dd(e)}function g$(e,r){let o=document.createElement("div");o.className="message-actions",o.setAttribute("aria-label","Answer actions");for(let[a,i,s]of[["helpful","Helpful answer","thumbs-up"],["not_helpful","Not helpful","thumbs-down"]]){let l=document.createElement("button");l.type="button",l.className="message-action",l.dataset.assistantTurn=String(r),l.dataset.rating=a,l.setAttribute("aria-label",i),l.setAttribute("aria-pressed",String(vd.get(r)===a)),l.disabled=fa.has(r);let u=document.createElement("i");u.setAttribute("data-lucide",s),u.setAttribute("aria-hidden","true"),l.append(u),l.addEventListener("click",()=>{fa.add(r),Fr={assistantTurn:r,rating:a},S.sendJSON({type:"voice_feedback",assistantTurn:r,rating:a}),B()}),o.append(l)}let n=document.createElement("button");n.type="button",n.className="message-action",n.setAttribute("aria-label","Copy answer");let t=document.createElement("i");return t.setAttribute("data-lucide","copy"),t.setAttribute("aria-hidden","true"),n.append(t),n.addEventListener("click",async()=>{try{await navigator.clipboard.writeText(e.text),lt("Answer copied.")}catch{lt("The answer could not be copied. Select the text and copy it manually.")}}),o.append(n),o}function h$(e,r){let o=e.role==="assistant",n=document.createElement("li");n.className=`answer-turn answer-turn--${o?"assistant":"user"}`;let t=document.createElement("p");t.className="turn-label",t.textContent=o?"Ava":"You";let a=document.createElement("div");a.className="turn-copy";let i=document.createElement(o?"div":"p");return o?Xf(i,e.text):i.textContent=e.text,a.append(va(o?"Ava: ":"You: "),i),o&&(rKt(`Tell me more about "${d.title}".`)),c.append(p)}return l.append(u,c),t.append(a),n&&t.append(l),t}function k$(e,r){let o=document.createElement("li");o.className="products-row",o.dataset.anchor=String(e);let n=document.createElement("ul");n.className="product-results",n.setAttribute("aria-label","Products from the storefront");for(let i of r){let s=document.createElement("li");s.className="product-result-item";let l=document.createElement(i.url?"a":"article");if(l.className="product-result",l instanceof HTMLAnchorElement&&i.url&&(l.href=i.url,l.target="_blank",l.rel="noopener"),i.image){let g=document.createElement("span");g.className="product-result-media";let h=document.createElement("img");h.src=i.image.url,h.alt=i.image.altText,h.width=480,h.height=360,h.loading="lazy",h.decoding="async",g.append(h),l.append(g)}let u=document.createElement("span");u.className="product-result-copy";let c=document.createElement("strong");c.textContent=i.title;let d=document.createElement("span");d.textContent=i.price;let p=document.createElement("small");if(p.className=`product-availability ${i.availableForSale?"product-availability--available":""}`,p.textContent=i.availableForSale?"Available now":"Currently unavailable",u.append(c,d,p),i.url){let g=document.createElement("span");g.className="product-action",g.textContent="View product \u2197",u.append(g)}l.append(u),s.append(l),n.append(s)}let t=document.createElement("div");t.className="product-follow-ups",t.setAttribute("aria-label","Continue exploring products");let a=[["Compare these products","Compare these products for me."],["Best for a beginner?","Which of these is easiest for a beginner?"],r.some(i=>i.price.includes("\u20B9"))?["Options under \u20B930,000","Show me suitable options under \u20B930,000."]:["Best-value option","Which of these is the best value?"]];for(let[i,s]of a){let l=document.createElement("button");l.type="button",l.className="follow-up-chip",l.textContent=i,l.addEventListener("click",()=>Kt(s)),t.append(l)}return o.append(n,t),o}function ke(e,r=!1){qr(),y.app.dataset.view=e?"conversation":"landing",document.documentElement.classList.toggle("support-conversation",e),document.body.classList.toggle("support-conversation",e),y.landingPanel.hidden=e,y.transcript.hidden=!e,y.composerBar.hidden=!e,y.clearButton.hidden=!e,r&&(e?y.textInput:y.landingInput).focus()}function fd(){return L.at(-1)?.role==="assistant"?L.length:L.length+1}function id(e){if(typeof e!="string")return null;if(e.startsWith("/")&&!e.startsWith("//"))return e;try{let r=new URL(e);return r.protocol==="https:"||r.origin===window.location.origin?r.toString():null}catch{return null}}function B(){(L.length>0||Nr||Br||ye!==null||at!==null)&&ke(!0);let e=sh(),r=L.length,o=new Map([...y.transcript.querySelectorAll(".sources-card")].map(a=>[Number(a.dataset.anchor),a.open]).filter(([a])=>Number.isFinite(a))),n=[],t=a=>{for(let i of jr)i.anchor<=r&&i.anchor===a&&n.push(b$(i.text));for(let i of Gt)i.anchor<=r&&i.anchor===a&&n.push(k$(i.anchor,i.items));for(let i of Ht)if(i.anchor<=r&&i.anchor===a){let s=Gt.some(l=>l.anchor===i.anchor);n.push(y$(i.anchor,i.articles,o.get(i.anchor)??!1,i.anchor===r&&!s))}ye!==null&&ye<=r&&ye===a&&(y.signinFlow.hidden=!1,n.push(y.signinFlow)),at!==null&&at<=r&&at===a&&(y.handoffCard.hidden=!1,n.push(y.handoffCard))};for(let a=0;aa.role==="user"&&a.text===ee)&&n.push(v$(ee)),ee!==null&&!Ie?n.push(th("Connecting securely\u2026")):Br&&n.push(th()),y.transcript.replaceChildren(...n),Qr({icons:{Copy:Gr,ThumbsDown:Kr,ThumbsUp:Xr},attrs:{"aria-hidden":"true","stroke-width":2}}),Fr!==null){let{assistantTurn:a,rating:i}=Fr,s=`.message-action[data-assistant-turn="${a}"][data-rating="${i}"]`,l=y.transcript.querySelector(s);l&&!l.disabled&&(Fr=null,l.focus({preventScroll:!0}))}if(Mr!==null){let a=y.transcript.querySelector(`.products-row[data-anchor="${Mr}"]`);if(a){Mr=null,requestAnimationFrame(()=>{let i=y.thread.getBoundingClientRect(),s=a.getBoundingClientRect().top-i.top+y.thread.scrollTop;y.thread.scrollTo({top:Math.max(0,s-250),behavior:"auto"})});return}}e&&bd()}function st(e){let r=jr[jr.length-1];r&&r.text===e&&r.anchor===L.length||(jr.push({anchor:L.length,text:e}),B())}function ie(e){let r=!1;if(e==="idle"){for(let i of Ht)i.anchor>L.length&&(i.anchor=L.length,r=!0);ye!==null&&ye>L.length&&(ye=L.length,r=!0)}let o=!F&&e!=="idle",n=ha(),t=ee===null;y.micButton.disabled=!na||!n||o,y.landingMicButton.disabled=!na||!n||o;for(let i of[y.micButton,y.landingMicButton])i.classList.toggle("mic-button--active",F),i.setAttribute("aria-label",F?"Stop voice":na?"Use voice":"Voice requires a deployed preview"),i.setAttribute("aria-pressed",String(F)),i.title=F?"Stop the voice call":na?"Talk instead of typing":"Streaming voice is available on deployed Workers";y.muteButton.hidden=!F,y.muteButton.disabled=!n||!F||Wt,y.muteButton.textContent=Wt?"Mic paused":S.isMuted?"Unmute":"Mute",y.clearButton.disabled=!1,y.transcript.setAttribute("aria-busy",String(it||e==="thinking")),y.landingInput.disabled=!1,y.landingSubmit.disabled=!t||y.landingInput.value.trim()==="";for(let i of oh)i.disabled=!t;if(y.humanHelpButton.disabled=!1,y.textInput.disabled=!1,y.textSubmit.disabled=!t||y.textInput.value.trim()==="",y.conversationHumanButton.disabled=!t,y.app.dataset.voiceState=F?Wt?"speaking":e:"off",y.voiceState.hidden=!F,F){let i=Wt?"Ava is speaking \xB7 mic paused":e==="thinking"?"Ava is thinking":e==="speaking"?"Ava is speaking":e==="listening"?"Listening\u2026":"Voice is on";y.voiceStateCopy.textContent=i,lt(i)}if(e==="idle"&&eh!=="idle"){let i=[...L].reverse().find(s=>s.role==="assistant")?.text.trim();i&<(`Ava: ${i}`)}eh=e;let a=!ma&&(e==="thinking"||it);a!==Br?(Br=a,B()):r&&B()}function $$(){let e=xd==="order_lookup"?{lead:"Sign in to check your order",copy:"Use your store account \u2014 a quick code by email, no password. I\u2019ll pull your orders up right after."}:{lead:"Sign in to continue",copy:"Use your store account \u2014 a quick code by email, no password. You\u2019ll come right back to this conversation."};y.signinLead.textContent=e.lead,y.signinCopy.textContent=e.copy}function _$(e){return e==="order_lookup"||e==="open_ticket"?e:null}function w$(e){ke(!0),ye===null&&(ye=e==="after_reply"?fd():L.length),$$(),y.signinButton.disabled=!1,B(),bd()}function pd(){ye=null,y.signinFlow.hidden=!0,B()}function S$(){try{sessionStorage.setItem(md,ua)}catch{}y.signinButton.disabled=!0,window.location.assign(`/auth/shopify/start?support_session=${encodeURIComponent(ua)}`)}function z$(){return window.turnstile}var ia=null,la=null,rh=y.sessionTurnstile.dataset.sitekey??"";function sd(e){if(!Vr){la=e;return}S.sendJSON({type:"start_voice_session",turnstileToken:e})}function lh(){if(Jt||!Vr)return;if(la!==null){let r=la;la=null,sd(r);return}if(!rh){sd("");return}let e=z$();if(!e){window.setTimeout(lh,200);return}if(ia===null)try{ia=e.render(y.sessionTurnstile,{sitekey:rh,action:"voice_session",size:"flexible",appearance:"interaction-only",callback:r=>sd(r)})}catch{ia=null}else e.reset(ia)}var I$={rate_limited:"Too many chat sessions from this connection. Wait a minute, then reload the page.",turnstile_not_configured:"This chat is not fully set up yet. Please try again later."};function T$(){!ha()||ee===null||Ie||(Ie=!0,ah(),S.sendText(ee),B(),ie(S.status))}function P$(e){if(!e||typeof e!="object")return;let r=e;y.handoffCategory.textContent=typeof r.label=="string"?r.label:"Support ticket opened",y.handoffDescription.textContent="A support ticket was opened under your store account. The team will follow up by email.",y.handoffReference.textContent=typeof r.reference=="string"?r.reference:"\u2014",y.handoffStatus.textContent=typeof r.status=="string"?r.status:"open",at=L.length,ke(!0),B(),bd()}function C$(e){if(!e||typeof e!="object")return;let r=e;if(r.type==="voice_session_ready"){if(Jt=!0,ud(),ze("ready",ee===null?"Ava is ready.":"Ava is ready \u2014 sending your question\u2026"),y.sessionTurnstile.hidden=!0,ie(S.status),T$(),Yg){Yg=!1;try{sessionStorage.removeItem(md)}catch{}delete y.app.dataset.resumeSession,pd(),nh.add(ta),ke(!0),S.sendText(ta)}m$()&&y.landingInput.focus();return}if(r.type==="voice_session_error"||r.type==="voice_session_required"){Jt=!1,ud();let o=typeof r.reason=="string"?r.reason:"",n=I$[o]??"The anti-spam check could not be completed. Reload the page to try again.";ze("error",n),y.app.dataset.view==="conversation"&&st(n),ie(S.status);return}if(r.type==="voice_history"){let o=Date.now();da=(Array.isArray(r.messages)?r.messages:[]).flatMap((n,t)=>{if(!n||typeof n!="object")return[];let a=n;if(a.role!=="user"&&a.role!=="assistant"||typeof a.text!="string")return[];let i=a.text.trim();return!i||i===ta?[]:[{role:a.role,text:i,timestamp:o-80+t}]}).slice(-80),L=ad(da,S.transcript),L.length>0&&ke(!0),B();return}if(r.type==="voice_signin_required"){xd=_$(r.reason),w$(r.anchor==="after_reply"?"after_reply":"now");return}if(r.type==="voice_sources"){let o=(Array.isArray(r.articles)?r.articles:[]).flatMap(n=>{if(!n||typeof n!="object")return[];let t=n,a=id(t.url);return a&&typeof t.title=="string"&&typeof t.section=="string"?[{title:t.title,section:t.section,url:a}]:[]}).slice(0,3);if(o.length>0){let n=fd(),t=Ht.find(a=>a.anchor===n);t?t.articles=[...t.articles,...o].filter((a,i,s)=>s.findIndex(l=>l.url===a.url)===i).slice(0,3):Ht.push({anchor:n,articles:o}),B()}return}if(r.type==="voice_products"){let o=(Array.isArray(r.products)?r.products:[]).flatMap(n=>{if(!n||typeof n!="object")return[];let t=n,a=t.priceRange&&typeof t.priceRange=="object"?t.priceRange:null,i=a?.min&&typeof a.min=="object"?a.min:null,s=a?.max&&typeof a.max=="object"?a.max:null;if(typeof t.handle!="string"||typeof t.title!="string"||typeof t.availableForSale!="boolean"||typeof i?.amount!="string"||typeof i.currencyCode!="string"||typeof s?.amount!="string")return[];let l=id(t.url),u=t.image&&typeof t.image=="object"?t.image:null,c=id(u?.url),d=Number(i.amount),p=Number(s.amount),g=i.currencyCode,h=w=>new Intl.NumberFormat("en-IN",{style:"currency",currency:g,minimumFractionDigits:Number.isInteger(w)?0:2,maximumFractionDigits:2}).format(w),T=Number.isFinite(d)&&Number.isFinite(p)?d===p?h(d):`${h(d)}\u2013${h(p)}`:`${g} ${i.amount}`;return[{handle:t.handle,title:t.title,availableForSale:t.availableForSale,price:T,url:l,image:c?{url:c,altText:typeof u?.altText=="string"?u.altText:""}:null}]}).slice(0,5);if(o.length>0){let n=fd();Mr=n;let t=Gt.find(a=>a.anchor===n);t?t.items=o:Gt.push({anchor:n,items:o}),B()}return}if(r.type==="voice_feedback_received"){let o=Number(r.assistantTurn),n=r.rating;Number.isInteger(o)&&(n==="helpful"||n==="not_helpful")&&(fa.delete(o),vd.set(o,n),lt(n==="helpful"?"Marked as helpful. Thank you.":"Marked as not helpful. Thank you."),B());return}if(r.type==="demo_session_cleared"){at=null,Ht=[],Gt=[],y.handoffCard.hidden=!0,pd(),B(),sa!==null&&(clearTimeout(sa),sa=null,ih());return}r.type==="voice_ticket_created"&&P$(r.ticket)}S.addEventListener("connectionchange",e=>{Vr=e,e?(ca=!0,y.reconnectBanner.hidden=!0,Jt=!1,y.sessionTurnstile.hidden=!1,ze("verifying","Secure connection found \u2014 finishing setup\u2026"),cd(),lh()):(F=!1,Jt=!1,ca?(y.reconnectBanner.hidden=!1,ze("reconnecting","Connection interrupted. Your question will send when Ava is back.")):ze("connecting","Ava is getting ready \u2014 you can ask now."),cd()),ie(S.status)});S.addEventListener("statuschange",ie);S.addEventListener("metricschange",e=>{e&&S.sendJSON({type:"voice_pipeline_metrics",llmMs:e.llm_ms,ttsMs:e.tts_ms,firstAudioMs:e.first_audio_ms,totalMs:e.total_ms})});S.addEventListener("transcriptchange",e=>{let r=ad(da,e),o=r.some((t,a)=>t.role==="assistant"&&L[a]?.text!==t.text),n=r.some((t,a)=>t.role==="user"&&L[a]?.text!==t.text);if(L=r,n&&(ma=!1),Ie&&ee!==null&&r.some(t=>t.role==="user"&&t.text===ee)&&(ee=null,Ie=!1),o&&xa(),r.length>0&&ke(!0),ie(S.status),B(),o&&S.status==="idle"){let t=[...r].reverse().find(a=>a.role==="assistant")?.text.trim();t&<(`Ava: ${t}`)}});S.addEventListener("interimtranscript",e=>{Nr=e??"",B()});S.addEventListener("mutechange",e=>{y.muteButton.textContent=Wt?"Mic paused":e?"Unmute":"Mute"});S.addEventListener("custommessage",C$);S.addEventListener("error",e=>{if(!e)return;xa(),ma=!0,Ie&&(ee=null,Ie=!1);let r="Ava couldn\u2019t finish that answer. Please try again, or contact support if it keeps happening.";y.app.dataset.view==="landing"?ze("error",r):st(r),ie(S.status),B()});async function uh(){if(F)hd.reset(),S.endCall(),F=!1,st("Voice off");else{ke(!0);try{await S.startCall(),F=!0,st("Voice on \u2014 Ava pauses the mic while speaking")}catch{F=!1,st("Microphone access did not start. Check your browser permission, then tap the microphone to try again."),lt("Microphone access did not start. Check your browser permission and try again.")}}ie(S.status)}y.micButton.addEventListener("click",uh);y.landingMicButton.addEventListener("click",uh);y.muteButton.addEventListener("click",()=>S.toggleMute());y.signinButton.addEventListener("click",S$);y.clearButton.addEventListener("click",()=>{F&&(hd.reset(),S.endCall()),F=!1,xa(),ee=null,Ie=!1,y.clearButton.disabled=!0,S.sendJSON({type:"clear_demo_session"}),sa=setTimeout(ih,2e3),L=[],da=[],jr=[],Ht=[],Gt=[],vd.clear(),fa.clear(),Mr=null,Fr=null,at=null,y.handoffCard.hidden=!0,pd(),Nr="",Br=!1,pa(y.landingInput),pa(y.textInput),xd=null,ke(!1,!0),B(),ie(S.status)});function Kt(e){return!e||ee!==null?!1:(ke(!0),ha()?(ah(),S.sendText(e)):(ee=e,Ie=!1,ze(Vr?"verifying":ca?"reconnecting":"connecting","Your question is saved and will send as soon as Ava is ready.")),ie(S.status),B(),!0)}function D$(){y.landingInput.placeholder="Briefly describe what you need help with",y.landingStatusCopy.textContent="Describe the issue first. Ava will ask you to sign in only if a private request is needed.",y.landingInput.focus()}function A$(){let e=[...L].reverse().find(r=>r.role==="user")?.text.trim();if(!e){y.textInput.placeholder="Briefly describe what you need help with",y.textInput.focus();return}Kt(`${Kg} My issue is: ${e}`)}y.landingForm.addEventListener("submit",e=>{e.preventDefault();let r=y.landingInput.value.trim();r&&(y.landingInput.blur(),Kt(r)&&pa(y.landingInput))});y.humanHelpButton.addEventListener("click",()=>{D$()});for(let e of oh)e.addEventListener("click",()=>{let r=e.dataset.supportMessage;r&&Kt(r)});y.conversationHumanButton.addEventListener("click",()=>{A$()});y.textForm.addEventListener("submit",e=>{e.preventDefault();let r=y.textInput.value.trim();r&&Kt(r)&&pa(y.textInput)});for(let e of[y.landingInput,y.textInput])e.addEventListener("input",()=>{dd(e),ie(S.status)}),e.addEventListener("keydown",r=>{r.key!=="Enter"||r.shiftKey||r.isComposing||(r.preventDefault(),e.form?.requestSubmit())}),dd(e);window.addEventListener("beforeunload",()=>{ga.abort(),F&&S.endCall(),S.disconnect()});ie(S.status);ke(!1);ze("connecting","Ava is getting ready \u2014 you can ask now.");cd();S.connect();})(); diff --git a/apps/desk/scripts/run-voice-evals.mjs b/apps/desk/scripts/run-voice-evals.mjs index c0e44a9..4ce4844 100644 --- a/apps/desk/scripts/run-voice-evals.mjs +++ b/apps/desk/scripts/run-voice-evals.mjs @@ -6,6 +6,8 @@ const port = Number(process.env.VOICE_EVAL_PORT ?? 8794) if (!Number.isInteger(port) || port < 1024 || port > 65_535) throw new Error('VOICE_EVAL_PORT must be an unprivileged TCP port') const baseUrl = `http://127.0.0.1:${port}` const workerOutput = [] +const SIGN_IN_CONTINUATION = + 'I have signed in with my store account. Continue what I asked for before signing in.' function wait(milliseconds) { return new Promise((resolve) => setTimeout(resolve, milliseconds)) @@ -363,6 +365,42 @@ try { assertNoRepeatedSentence(signedInReply, 'signed-in order reply') console.log(`PASS signed_in_order_list: ${signedInReply}`) + const placement = await turn( + [{ role: 'user', content: 'Please place an order for the H10 for me.' }], + { fixtures: [orderFixture] }, + { signedIn: true, stream: true }, + ) + const placementReply = String(placement.text ?? '') + const placementTools = Array.isArray(placement.toolCalls) ? placement.toolCalls : [] + assert(placementTools.length === 0, `order placement must not call a read or write tool: ${JSON.stringify(placement)}`) + assert( + /can(?:not|['’]t).{0,80}(?:place|order)|can(?:not|['’]t).{0,80}(?:cart|payment|checkout)/i.test(placementReply) + && /nothing has been ordered or charged/i.test(placementReply), + `order placement refusal must state the capability boundary and outcome truth: ${placementReply}`, + ) + console.log(`PASS order_placement_unavailable: ${placementReply}`) + + const placementAfterLogin = await turn( + [ + { role: 'user', content: 'Please order this machine for me.' }, + { role: 'assistant', content: 'Sign in below and I will take care of that.' }, + { role: 'user', content: SIGN_IN_CONTINUATION }, + ], + { fixtures: [orderFixture] }, + { signedIn: true, stream: true }, + ) + const placementAfterLoginReply = String(placementAfterLogin.text ?? '') + const placementAfterLoginTools = Array.isArray(placementAfterLogin.toolCalls) ? placementAfterLogin.toolCalls : [] + assert( + placementAfterLoginTools.length === 0, + `post-login placement continuation must not call an order tool: ${JSON.stringify(placementAfterLogin)}`, + ) + assert( + /nothing has been ordered or charged/i.test(placementAfterLoginReply), + `post-login placement continuation must not imply success: ${placementAfterLoginReply}`, + ) + console.log(`PASS order_placement_after_login_unavailable: ${placementAfterLoginReply}`) + // Knowledge-grounded answering: the assistant must consult the help centre // and answer strictly from article content. const kbArticle = { diff --git a/apps/desk/scripts/voice-eval-worker.ts b/apps/desk/scripts/voice-eval-worker.ts index 7648d0c..f345f05 100644 --- a/apps/desk/scripts/voice-eval-worker.ts +++ b/apps/desk/scripts/voice-eval-worker.ts @@ -4,6 +4,8 @@ import { z } from 'zod' import { directVoiceResponse, isHelpCenterSupportRequest, + isOrderPlacementRequest, + ORDER_PLACEMENT_UNAVAILABLE_REPLY, prepareVoiceModelMessages, UNDOCUMENTED_PRODUCT_SIGNIN_ORDER_REPLY, UNDOCUMENTED_PRODUCT_SIGNIN_TICKET_REPLY, @@ -73,6 +75,19 @@ export default { : null if (directResponse) return Response.json({ text: directResponse, toolCalls: [], direct: true }) + if (latest?.role === 'user' && typeof latest.content === 'string' && isOrderPlacementRequest(latest.content)) { + return Response.json({ text: ORDER_PLACEMENT_UNAVAILABLE_REPLY, toolCalls: [], direct: true }) + } + + const originalRequest = latest?.role === 'user' && latest.content === SIGN_IN_CONTINUATION + ? [...messages] + .reverse() + .find((message) => message.role === 'user' && message.content !== SIGN_IN_CONTINUATION) + : null + if (originalRequest && isOrderPlacementRequest(String(originalRequest.content))) { + return Response.json({ text: ORDER_PLACEMENT_UNAVAILABLE_REPLY, toolCalls: [], direct: true }) + } + // Production persists an ordinary ticket request as a pending escalation // before navigating to Shopify sign-in, then opens it deterministically on // return. Mirror that state transition here instead of asking the model to diff --git a/apps/desk/src/identity/shopify-customer.ts b/apps/desk/src/identity/shopify-customer.ts index bd136ed..dcbe19f 100644 --- a/apps/desk/src/identity/shopify-customer.ts +++ b/apps/desk/src/identity/shopify-customer.ts @@ -26,8 +26,11 @@ const TRACKING_LIMIT = 5 export const SHOPIFY_CUSTOMER_SESSION_COOKIE = 'able_shopify_customer' export const SHOPIFY_CUSTOMER_LOGIN_COOKIE = 'able_shopify_login' +export const SHOPIFY_CUSTOMER_RESUME_COOKIE = 'able_shopify_resume' /** Login transactions are short-lived: the redirect round-trip only. */ export const SHOPIFY_LOGIN_TRANSACTION_TTL_SECONDS = 10 * 60 +/** One navigation only: enough for the callback to render the resumed chat. */ +export const SHOPIFY_SUPPORT_RESUME_TTL_SECONDS = 2 * 60 export const SHOPIFY_CUSTOMER_SESSION_MAX_SECONDS = 60 * 60 type ShopifyCustomerEnv = { @@ -56,11 +59,17 @@ export type ShopifyCustomerContextResult = | { status: 'ok'; customer: { name: string; email: string | null; orders: ShopifyCustomerOrder[] } } | { status: 'unavailable' } -type LoginTransaction = { state: string; verifier: string; expiresAt: number } +type LoginTransaction = { state: string; verifier: string; expiresAt: number; supportSession?: string } +type SupportResume = { supportSession: string; expiresAt: number } type Discovery = { authorizationEndpoint: string; tokenEndpoint: string; graphqlEndpoint: string } const encoder = new TextEncoder() +const SUPPORT_SESSION_PATTERN = /^voice-[a-z0-9]{20}$/ + +function supportSessionName(value: string | null | undefined): string | null { + return value && SUPPORT_SESSION_PATTERN.test(value) ? value : null +} function shopHostname(domain: string | undefined): string | null { const trimmed = (domain ?? '').trim().replace(/^https?:\/\//i, '').replace(/\/.*$/, '') @@ -181,7 +190,7 @@ export type ShopifyLoginStart = { url: string; transactionToken: string } */ export async function beginShopifyCustomerLogin( env: ShopifyCustomerEnv, - input: { redirectUri: string; secret: string }, + input: { redirectUri: string; secret: string; supportSession?: string | null }, options: { fetcher?: typeof fetch; now?: () => number; timeoutMs?: number } = {}, ): Promise { const hostname = shopHostname(env.SHOPIFY_SHOP_DOMAIN) @@ -204,7 +213,13 @@ export async function beginShopifyCustomerLogin( url.searchParams.set('code_challenge', challenge) url.searchParams.set('code_challenge_method', 'S256') - const transaction: LoginTransaction = { state, verifier, expiresAt: now + SHOPIFY_LOGIN_TRANSACTION_TTL_SECONDS * 1000 } + const supportSession = supportSessionName(input.supportSession) + const transaction: LoginTransaction = { + state, + verifier, + expiresAt: now + SHOPIFY_LOGIN_TRANSACTION_TTL_SECONDS * 1000, + ...(supportSession ? { supportSession } : {}), + } return { url: url.toString(), transactionToken: await signToken(input.secret, transaction) } } @@ -218,7 +233,7 @@ export async function completeShopifyCustomerLogin( env: ShopifyCustomerEnv, input: { code: string; state: string; transactionToken: string; redirectUri: string; secret: string }, options: { fetcher?: typeof fetch; now?: () => number; timeoutMs?: number } = {}, -): Promise<{ session: ShopifyCustomerSession; sessionToken: string } | null> { +): Promise<{ session: ShopifyCustomerSession; sessionToken: string; supportResumeToken: string | null } | null> { const hostname = shopHostname(env.SHOPIFY_SHOP_DOMAIN) const clientId = env.SHOPIFY_CUSTOMER_CLIENT_ID?.trim() if (!hostname || !clientId || !input.secret || !input.code || !input.state) return null @@ -273,7 +288,26 @@ export async function completeShopifyCustomerLogin( logOutcome('missing_email') return null } - return { session, sessionToken: await signToken(input.secret, session) } + const supportSession = supportSessionName(transaction.supportSession) + const supportResumeToken = supportSession + ? await signToken(input.secret, { + supportSession, + expiresAt: now + SHOPIFY_SUPPORT_RESUME_TTL_SECONDS * 1_000, + } satisfies SupportResume) + : null + return { session, sessionToken: await signToken(input.secret, session), supportResumeToken } +} + +/** Resolve the one-use, OAuth-bound support session after the callback. */ +export async function verifyShopifySupportResume( + secret: string, + token: string | null | undefined, + now: number = Date.now(), +): Promise { + if (!secret || !token) return null + const parsed = await verifyToken(secret, token) as SupportResume | null + if (!parsed || typeof parsed.expiresAt !== 'number' || parsed.expiresAt < now) return null + return supportSessionName(parsed.supportSession) } /** Sign a customer session into the transportable cookie token form. */ diff --git a/apps/desk/src/voice/conversation-history.ts b/apps/desk/src/voice/conversation-history.ts new file mode 100644 index 0000000..382a852 --- /dev/null +++ b/apps/desk/src/voice/conversation-history.ts @@ -0,0 +1,32 @@ +export type RestoredTranscriptMessage = { + role: 'user' | 'assistant' + text: string + timestamp: number +} + +function sameMessage(left: RestoredTranscriptMessage, right: RestoredTranscriptMessage): boolean { + return left.role === right.role && left.text === right.text +} + +/** + * Join persisted server history to the current VoiceClient transcript without + * duplicating the overlap retained across an automatic WebSocket reconnect. + */ +export function mergeConversationHistory( + persisted: RestoredTranscriptMessage[], + current: RestoredTranscriptMessage[], +): RestoredTranscriptMessage[] { + const maximumOverlap = Math.min(persisted.length, current.length) + for (let overlap = maximumOverlap; overlap > 0; overlap--) { + const persistedStart = persisted.length - overlap + let matches = true + for (let index = 0; index < overlap; index++) { + if (!sameMessage(persisted[persistedStart + index]!, current[index]!)) { + matches = false + break + } + } + if (matches) return [...persisted, ...current.slice(overlap)] + } + return [...persisted, ...current] +} diff --git a/apps/desk/src/voice/conversation.ts b/apps/desk/src/voice/conversation.ts index a38e2e0..0a74905 100644 --- a/apps/desk/src/voice/conversation.ts +++ b/apps/desk/src/voice/conversation.ts @@ -6,6 +6,8 @@ export const UNDOCUMENTED_PRODUCT_SIGNIN_TICKET_REPLY = "I don't have a documented guide for that. Sign in with your store account below and I can open a ticket for the team." export const UNDOCUMENTED_PRODUCT_FORM_REPLY = "I don't have a documented guide for that. Open a support request through the form and the team will take it from there." +export const ORDER_PLACEMENT_UNAVAILABLE_REPLY = + "I can help you choose a product, but I can’t add items to your cart, take payment, or place an order. Nothing has been ordered or charged. Please use the product card or the store checkout to complete the purchase." export type VoiceModelMessage = { role: 'user' | 'assistant'; content: string } @@ -35,6 +37,15 @@ export function isStorefrontShoppingRequest(transcript: string): boolean { return STOREFRONT_SHOPPING_INTENT.test(transcript.replace(/\s+/g, ' ').trim()) } +const ORDER_PLACEMENT_ACTION = /\b(?:place|create|make|submit)\b.{0,36}\b(?:an?\s+)?orders?\b|\b(?:can|could|would|will)\s+you\s+order\b|\b(?:please\s+)?order\s+(?:this|that|it|one)(?:\s+for me)?\b|\b(?:buy|purchase)\b.{0,24}\b(?:for me|on my behalf)\b|\b(?:add|put)\b.{0,24}\b(?:to|in)\s+(?:my|the)\s+cart\b|\b(?:check\s*out|checkout)\b.{0,24}\b(?:for me|on my behalf|this|that|it|now)\b/i + +/** Side-effecting commerce is not connected; never let the model imply it is. */ +export function isOrderPlacementRequest(transcript: string): boolean { + const normalized = transcript.replace(/\s+/g, ' ').trim() + return ORDER_PLACEMENT_ACTION.test(normalized) + || /\b(?:i\s+)?(?:want|would like|need|am ready|i'm ready)\s+to\s+(?:order|buy|purchase)\b/i.test(normalized) +} + /** * Identify turns that must be grounded in published support content. This is * an orchestration guard, not merely a prompt hint: hosted models can @@ -289,6 +300,7 @@ When a tool is needed, call it before writing any reply. Never narrate that you ${productCapability} For policy or warranty questions, call search_help_center first. For every how-to, product care, shipping, repair, or troubleshooting question, always call search_help_center first with a short topic query of two to six words. Do not ask the caller to identify or correct the product before that search. ${productSourceRouting} Even when you do not recognize the product or the question sounds unusual, search the appropriate source before deciding: never call a product or device question unsupported or out of scope without a search result for it, and never say you lack information unless the appropriate search already returned no_match in this turn. When search_help_center returns status ok with one or more articles, that is a documented answer: answer from the closest returned article and never say that no guide, no direct guide, or no information was found. If the closest guide is general rather than model-specific, say that precisely while still giving its sourced next step. Answer only from the returned article or storefront content. The matching help articles are shown to the caller as links automatically, so give a complete useful answer in natural prose and point them to the linked guide when it contains additional steps. After a successful help result, end the reply after the documented answer. Do not mention or offer a ticket in that reply, even conditionally; wait for the customer to say whether the step worked. If help-centre search returns no_match, say you do not have a documented support answer for that and offer to open a ticket — do not answer such questions from memory. If it returns unavailable, say you cannot check the help articles right now and offer a ticket. Never include a help-centre URL in your reply — the matching articles are already linked for the caller. ${actionCapability} +You cannot add products to a cart, start or complete checkout, take payment, or place, create, submit, confirm, or cancel an order. Those write capabilities are not connected. Never claim an order was placed, confirmed, submitted, purchased, paid for, or charged. If the caller asks you to buy or order something for them, clearly say that nothing has been ordered or charged and direct them to the product card or store checkout. You cannot look up or report ticket status in this channel. If the caller asks about an existing ticket's status, say that updates arrive by email through their private case link and that you cannot check status here. Never invent or guess a status. Offer to open a new ticket only if they describe a new problem. CONVERSATION diff --git a/apps/desk/src/voice/deepgram-flux-tts.ts b/apps/desk/src/voice/deepgram-flux-tts.ts index 7a01cb0..72dd5eb 100644 --- a/apps/desk/src/voice/deepgram-flux-tts.ts +++ b/apps/desk/src/voice/deepgram-flux-tts.ts @@ -6,6 +6,10 @@ const CONNECT_TIMEOUT_MS = 4_000 const GENERATION_TIMEOUT_MS = 15_000 const MAX_TEXT_LENGTH = 2_000 const OUTPUT_SAMPLE_RATE = 24_000 +// 100 ms of mono 16-bit audio. Workers AI streams arbitrary byte boundaries, +// including odd-length chunks; the browser client constructs Int16Array views +// per WebSocket frame, so coalesce and align them before forwarding. +const PCM_STREAM_FRAME_BYTES = OUTPUT_SAMPLE_RATE * 2 / 10 const MODEL_PATTERN = /^flux-[a-z0-9-]+-en$/ type DeepgramUpgradeResponse = { @@ -77,13 +81,13 @@ type WorkersAIBinding = { } /** Cloudflare-hosted Aura fallback that matches Flux's raw PCM wire format. */ -export class WorkersAIPcmTTS implements TTSProvider { +export class WorkersAIPcmTTS implements TTSProvider, StreamingTTSProvider { constructor( readonly ai: WorkersAIBinding, readonly speaker = 'harmonia', ) {} - async synthesize(text: string, signal?: AbortSignal): Promise { + async #response(text: string, signal?: AbortSignal): Promise { const speech = normalizeSpeech(text) if (!speech) return null if (speech.length > MAX_TEXT_LENGTH) { @@ -107,8 +111,7 @@ export class WorkersAIPcmTTS implements TTSProvider { logTTSFailure('workers_ai_aura_2', { status: response.status }) return null } - const audio = await response.arrayBuffer() - return audio.byteLength > 0 ? audio : null + return response } catch (error) { if (signal?.aborted) return null logTTSFailure('workers_ai_aura_2', { @@ -117,6 +120,75 @@ export class WorkersAIPcmTTS implements TTSProvider { return null } } + + async synthesize(text: string, signal?: AbortSignal): Promise { + const frames: ArrayBuffer[] = [] + let byteLength = 0 + for await (const frame of this.synthesizeStream(text, signal)) { + frames.push(frame) + byteLength += frame.byteLength + } + if (byteLength === 0) return null + + const joined = new Uint8Array(byteLength) + let offset = 0 + for (const frame of frames) { + joined.set(new Uint8Array(frame), offset) + offset += frame.byteLength + } + return joined.buffer + } + + async *synthesizeStream(text: string, signal?: AbortSignal): AsyncGenerator { + const response = await this.#response(text, signal) + if (!response || signal?.aborted) return + if (!response.body) { + const audio = await response.arrayBuffer() + if (audio.byteLength > 0) yield audio + return + } + + const reader = response.body.getReader() + let frame = new Uint8Array(PCM_STREAM_FRAME_BYTES) + let frameLength = 0 + try { + for (;;) { + if (signal?.aborted) { + await reader.cancel('interrupted') + return + } + const { done, value } = await reader.read() + if (done) break + let offset = 0 + while (offset < value.byteLength) { + const copied = Math.min(frame.byteLength - frameLength, value.byteLength - offset) + frame.set(value.subarray(offset, offset + copied), frameLength) + frameLength += copied + offset += copied + if (frameLength === frame.byteLength) { + yield frame.buffer + frame = new Uint8Array(PCM_STREAM_FRAME_BYTES) + frameLength = 0 + } + } + } + + // linear16 must end on a complete two-byte sample. A malformed trailing + // byte is discarded rather than sending a frame the VoiceClient cannot + // construct an Int16Array over. + const alignedLength = frameLength - (frameLength % 2) + if (alignedLength > 0) yield frame.slice(0, alignedLength).buffer + if (alignedLength !== frameLength) logTTSFailure('workers_ai_aura_2', { reason: 'unaligned_audio' }) + } catch (error) { + if (!signal?.aborted) { + logTTSFailure('workers_ai_aura_2', { + reason: error instanceof Error && error.name === 'AbortError' ? 'timeout' : 'provider', + }) + } + } finally { + reader.releaseLock() + } + } } class AudioFrameQueue { diff --git a/apps/desk/src/voice/demo-agent.ts b/apps/desk/src/voice/demo-agent.ts index 1387748..f2a49fe 100644 --- a/apps/desk/src/voice/demo-agent.ts +++ b/apps/desk/src/voice/demo-agent.ts @@ -32,7 +32,9 @@ import { directVoiceResponse, inrBudgetFromTranscript, isHelpCenterSupportRequest, + isOrderPlacementRequest, isStorefrontShoppingRequest, + ORDER_PLACEMENT_UNAVAILABLE_REPLY, productDiscoveryReply, productComparisonReply, productComparisonTerms, @@ -133,6 +135,26 @@ const SESSION_STATE_KEY = 'voice_session_state' * that an abandoned visit does not retain contact details. */ const ABANDONED_SESSION_GRACE_SECONDS = 10 * 60 +const MAX_VOICE_METRIC_MS = 5 * 60 * 1_000 + +export type VoicePipelineMetricLog = { + llmMs: number + ttsMs: number + firstAudioMs: number + totalMs: number +} + +export function readVoicePipelineMetrics(input: Record): VoicePipelineMetricLog | null { + const values = [input.llmMs, input.ttsMs, input.firstAudioMs, input.totalMs] + if (!values.every((value) => typeof value === 'number' + && Number.isInteger(value) && value >= 0 && value <= MAX_VOICE_METRIC_MS)) return null + return { + llmMs: input.llmMs as number, + ttsMs: input.ttsMs as number, + firstAudioMs: input.firstAudioMs as number, + totalMs: input.totalMs as number, + } +} function connectionState(connection: Connection): VoiceConnectionState { return connection.state && typeof connection.state === 'object' @@ -261,6 +283,12 @@ export class AbleDeskAgent extends VoiceAgent { connection.send(JSON.stringify({ type: 'voice_feedback_received', assistantTurn, rating })) return } + if (parsed.type === 'voice_pipeline_metrics') { + if (connectionState(connection).sessionProofPassed !== true) return + const metrics = readVoicePipelineMetrics(parsed) + if (metrics) console.log(JSON.stringify({ event: 'voice_pipeline_metrics', ...metrics })) + return + } if (parsed.type !== 'clear_demo_session') return await this.#patchSession({ pendingEscalation: null, @@ -333,6 +361,8 @@ export class AbleDeskAgent extends VoiceAgent { if (continuationReply !== null) return continuationReply } + if (isOrderPlacementRequest(transcript)) return ORDER_PLACEMENT_UNAVAILABLE_REPLY + const classifiedCategory = classifyEscalation(transcript) const deterministicCategory = isTicketStatusRequest(transcript) && classifiedCategory === 'payment_or_refund' ? null @@ -692,6 +722,7 @@ export class AbleDeskAgent extends VoiceAgent { async #startSession(connection: Connection, input: Record): Promise { const state = connectionState(connection) if (state.sessionProofPassed === true) { + this.#sendHistory(connection) connection.send(JSON.stringify({ type: 'voice_session_ready' })) return } @@ -715,9 +746,17 @@ export class AbleDeskAgent extends VoiceAgent { ...connectionState(connection), sessionProofPassed: true, } satisfies VoiceConnectionState) + this.#sendHistory(connection) connection.send(JSON.stringify({ type: 'voice_session_ready' })) } + #sendHistory(connection: Connection): void { + const messages = this.getConversationHistory(80) + .filter((message) => message.content.trim() !== SIGN_IN_CONTINUATION) + .map((message) => ({ role: message.role, text: message.content })) + connection.send(JSON.stringify({ type: 'voice_history', messages })) + } + #requestSignIn(connection: Connection, reason?: VoiceSignInReason): void { connection.send(JSON.stringify({ type: 'voice_signin_required', anchor: 'after_reply', ...(reason ? { reason } : {}) })) } @@ -737,8 +776,16 @@ export class AbleDeskAgent extends VoiceAgent { const session = await this.#session() const pendingEscalation = session.pendingEscalation ?? null const pendingSignInReason = session.pendingSignInReason ?? null + const history = (await this.getConversationHistory(40)).map((message) => ({ role: message.role, content: message.content })) await this.#patchSession({ pendingEscalation: null, pendingSignInReason: null }) + const originalCustomerRequest = [...history] + .reverse() + .find((message) => message.role === 'user' && message.content.trim() !== SIGN_IN_CONTINUATION) + if (originalCustomerRequest && isOrderPlacementRequest(originalCustomerRequest.content)) { + return ORDER_PLACEMENT_UNAVAILABLE_REPLY + } + if (pendingEscalation) { try { const ticket = await this.#openEscalationTicket(connection, contact, pendingEscalation, pendingEscalation.requestId) @@ -750,7 +797,6 @@ export class AbleDeskAgent extends VoiceAgent { } if (pendingSignInReason === 'order_lookup') { - const history = (await this.getConversationHistory(40)).map((message) => ({ role: message.role, content: message.content })) const orderNumber = findOrderNumber(history.filter((message) => message.content.trim() !== SIGN_IN_CONTINUATION)) if (orderNumber) { const result = await orderStatusForSession(this.env, { email: contact.email }, orderNumber) diff --git a/apps/desk/src/voice/demo-client.ts b/apps/desk/src/voice/demo-client.ts index 3d4f16f..769cae9 100644 --- a/apps/desk/src/voice/demo-client.ts +++ b/apps/desk/src/voice/demo-client.ts @@ -22,6 +22,8 @@ import './demo.css' import { renderStreamingMarkdown } from '../ui/markdown-client' import { SIGN_IN_CONTINUATION } from './contact' import { HUMAN_HELP_MESSAGE } from './escalation' +import { AssistantPlaybackGuard, PlaybackAwareVoiceTransport } from './playback-guard' +import { mergeConversationHistory } from './conversation-history' function required(selector: string): T { const element = document.querySelector(selector) @@ -100,9 +102,10 @@ function sessionName(): string { // exception: returning from the hosted store sign-in resumes the exact // conversation that requested it. if (returnedFromSignIn) { + const serverResume = elements.app.dataset.resumeSession + if (serverResume && /^voice-[a-z0-9]{20}$/.test(serverResume)) return serverResume try { const stored = sessionStorage.getItem(SIGNIN_RESUME_KEY) - sessionStorage.removeItem(SIGNIN_RESUME_KEY) if (stored && /^voice-[a-z0-9]{20}$/.test(stored)) return stored } catch { // Fall through to a fresh session. @@ -114,10 +117,33 @@ function sessionName(): string { const activeSessionName = sessionName() if (returnedFromSignIn) history.replaceState(null, '', window.location.pathname) -const client = new VoiceClient({ +let assistantMicPaused = false +let guardAppliedMute = false +let client: VoiceClient +const playbackGuard = new AssistantPlaybackGuard((suppressed) => { + assistantMicPaused = suppressed + if (suppressed) { + guardAppliedMute = !client.isMuted + if (guardAppliedMute) client.toggleMute() + } else { + if (guardAppliedMute && client.isMuted) client.toggleMute() + guardAppliedMute = false + } + updateControls(client.status) +}) +const voiceTransport = new PlaybackAwareVoiceTransport({ + agent: 'AbleDeskAgent', + name: activeSessionName, +}, playbackGuard) + +client = new VoiceClient({ agent: 'AbleDeskAgent', name: activeSessionName, - preferredFormat: 'mp3', + transport: voiceTransport, + preferredFormat: 'pcm16', + // Customer audio is intentionally half-duplex. The playback guard owns + // turn-taking, so speaker echo must never trigger the client's barge-in. + interruptThreshold: Number.POSITIVE_INFINITY, }) let connected = false @@ -140,6 +166,7 @@ type ProductCard = { } let latestMessages: TranscriptMessage[] = [] +let restoredMessages: TranscriptMessage[] = [] const hiddenTranscriptMessages = new Set() let notes: { anchor: number; text: string }[] = [] let sources: { anchor: number; articles: SourceArticle[] }[] = [] @@ -684,7 +711,8 @@ function updateControls(status: VoiceStatus): void { mic.title = callActive ? 'Stop the voice call' : voiceInputAvailable ? 'Talk instead of typing' : 'Streaming voice is available on deployed Workers' } elements.muteButton.hidden = !callActive - elements.muteButton.disabled = !ready || !callActive + elements.muteButton.disabled = !ready || !callActive || assistantMicPaused + elements.muteButton.textContent = assistantMicPaused ? 'Mic paused' : client.isMuted ? 'Unmute' : 'Mute' elements.clearButton.disabled = false elements.transcript.setAttribute('aria-busy', String(awaitingReply || status === 'thinking')) elements.landingInput.disabled = false @@ -694,10 +722,12 @@ function updateControls(status: VoiceStatus): void { elements.textInput.disabled = false elements.textSubmit.disabled = !canAcceptMessage || elements.textInput.value.trim() === '' elements.conversationHumanButton.disabled = !canAcceptMessage - elements.app.dataset.voiceState = callActive ? status : 'off' + elements.app.dataset.voiceState = callActive ? assistantMicPaused ? 'speaking' : status : 'off' elements.voiceState.hidden = !callActive if (callActive) { - const stateCopy = status === 'thinking' + const stateCopy = assistantMicPaused + ? 'Ava is speaking · mic paused' + : status === 'thinking' ? 'Ava is thinking' : status === 'speaking' ? 'Ava is speaking' @@ -764,7 +794,7 @@ function beginStoreSignIn(): void { // itself still works from a fresh session. } elements.signinButton.disabled = true - window.location.assign('/auth/shopify/start') + window.location.assign(`/auth/shopify/start?support_session=${encodeURIComponent(activeSessionName)}`) } type TurnstileApi = { @@ -874,6 +904,12 @@ function renderCustomMessage(value: unknown): void { // Back from the hosted store login: resume the interrupted flow. This is // a machine-readable continuation, not customer copy. signInContinuationPending = false + try { + sessionStorage.removeItem(SIGNIN_RESUME_KEY) + } catch { + // The server-issued one-use resume still completed the hand-off. + } + delete elements.app.dataset.resumeSession hideSignInCard() hiddenTranscriptMessages.add(SIGN_IN_CONTINUATION) setConversationMode(true) @@ -892,6 +928,23 @@ function renderCustomMessage(value: unknown): void { updateControls(client.status) return } + if (message.type === 'voice_history') { + const now = Date.now() + restoredMessages = (Array.isArray(message.messages) ? message.messages : []) + .flatMap((entry, index): TranscriptMessage[] => { + if (!entry || typeof entry !== 'object') return [] + const value = entry as Record + if ((value.role !== 'user' && value.role !== 'assistant') || typeof value.text !== 'string') return [] + const text = value.text.trim() + if (!text || text === SIGN_IN_CONTINUATION) return [] + return [{ role: value.role, text, timestamp: now - 80 + index }] + }) + .slice(-80) + latestMessages = mergeConversationHistory(restoredMessages, client.transcript) + if (latestMessages.length > 0) setConversationMode(true) + renderThread() + return + } if (message.type === 'voice_signin_required') { signinReason = readSignInReason(message.reason) showSignInCard(message.anchor === 'after_reply' ? 'after_reply' : 'now') @@ -1029,29 +1082,40 @@ client.addEventListener('connectionchange', (isConnected) => { updateControls(client.status) }) client.addEventListener('statuschange', updateControls) +client.addEventListener('metricschange', (metrics) => { + if (!metrics) return + client.sendJSON({ + type: 'voice_pipeline_metrics', + llmMs: metrics.llm_ms, + ttsMs: metrics.tts_ms, + firstAudioMs: metrics.first_audio_ms, + totalMs: metrics.total_ms, + }) +}) client.addEventListener('transcriptchange', (messages) => { - const receivedReply = messages.some((message, index) => ( + const mergedMessages = mergeConversationHistory(restoredMessages, messages) + const receivedReply = mergedMessages.some((message, index) => ( message.role === 'assistant' && latestMessages[index]?.text !== message.text )) - const receivedCustomerTurn = messages.some((message, index) => ( + const receivedCustomerTurn = mergedMessages.some((message, index) => ( message.role === 'user' && latestMessages[index]?.text !== message.text )) - latestMessages = messages + latestMessages = mergedMessages if (receivedCustomerTurn) replyFailed = false - if (queuedMessageSent && queuedMessage !== null && messages.some((message) => ( + if (queuedMessageSent && queuedMessage !== null && mergedMessages.some((message) => ( message.role === 'user' && message.text === queuedMessage ))) { queuedMessage = null queuedMessageSent = false } if (receivedReply) clearReplyWait() - if (messages.length > 0) setConversationMode(true) + if (mergedMessages.length > 0) setConversationMode(true) updateControls(client.status) renderThread() if (receivedReply && client.status === 'idle') { - const latestReply = [...messages].reverse().find((message) => message.role === 'assistant')?.text.trim() + const latestReply = [...mergedMessages].reverse().find((message) => message.role === 'assistant')?.text.trim() if (latestReply) announceStatus(`Ava: ${latestReply}`) } }) @@ -1060,7 +1124,7 @@ client.addEventListener('interimtranscript', (text) => { renderThread() }) client.addEventListener('mutechange', (muted) => { - elements.muteButton.textContent = muted ? 'Unmute' : 'Mute' + elements.muteButton.textContent = assistantMicPaused ? 'Mic paused' : muted ? 'Unmute' : 'Mute' }) client.addEventListener('custommessage', renderCustomMessage) client.addEventListener('error', (error) => { @@ -1084,13 +1148,14 @@ async function toggleVoice(): Promise { try { await client.startCall() callActive = true - pushNote('Voice on — speak naturally') + pushNote('Voice on — Ava pauses the mic while speaking') } catch { callActive = false pushNote('Microphone access did not start. Check your browser permission, then tap the microphone to try again.') announceStatus('Microphone access did not start. Check your browser permission and try again.') } } else { + playbackGuard.reset() client.endCall() callActive = false pushNote('Voice off') @@ -1106,7 +1171,10 @@ elements.muteButton.addEventListener('click', () => client.toggleMute()) elements.signinButton.addEventListener('click', beginStoreSignIn) elements.clearButton.addEventListener('click', () => { - if (callActive) client.endCall() + if (callActive) { + playbackGuard.reset() + client.endCall() + } callActive = false clearReplyWait() queuedMessage = null @@ -1115,6 +1183,7 @@ elements.clearButton.addEventListener('click', () => { client.sendJSON({ type: 'clear_demo_session' }) resetReload = setTimeout(reloadFreshSession, 2_000) latestMessages = [] + restoredMessages = [] notes = [] sources = [] products = [] diff --git a/apps/desk/src/voice/demo-page.ts b/apps/desk/src/voice/demo-page.ts index ee4958e..ca69436 100644 --- a/apps/desk/src/voice/demo-page.ts +++ b/apps/desk/src/voice/demo-page.ts @@ -72,6 +72,8 @@ export type VoiceIdentityView = { configured: boolean /** The signed-in customer's display name, or null when anonymous. */ customerName: string | null + /** OAuth-bound conversation to hydrate exactly once after hosted login. */ + resumeSessionName?: string | null } export function voiceDemoPageResponse( @@ -157,7 +159,7 @@ export function voiceDemoPageResponse(
-
+
diff --git a/apps/desk/src/voice/demo.css b/apps/desk/src/voice/demo.css index 5efd7c6..67b4104 100644 --- a/apps/desk/src/voice/demo.css +++ b/apps/desk/src/voice/demo.css @@ -12,6 +12,9 @@ --accent-soft: color-mix(in srgb, var(--accent, #c87942) 9%, #ffffff); --accent-line: color-mix(in srgb, var(--accent, #c87942) 34%, transparent); --focus-ring: var(--ink, #121212); + --customer-message: #eaf4ff; + --customer-message-ink: #0060bf; + --customer-message-line: #bddcff; --page: color-mix(in srgb, var(--canvas, #ffffff) 94%, var(--ink, #121212)); --surface-width: 72rem; --answer-width: 52rem; @@ -346,10 +349,10 @@ button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visib .markdown-body td { border-bottom: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; } .markdown-body th { background: var(--soft); font-weight: 720; } .markdown-body hr { height: 1px; margin: 1em 0; border: 0; background: var(--line); } -.answer-turn--user .turn-label { padding-right: 4px; } -.answer-turn--user .turn-copy { max-width: 82%; border: 1px solid var(--accent-line); border-radius: 17px 17px 6px 17px; padding: 12px 15px; background: var(--accent-soft); font-size: 15px; font-weight: 580; letter-spacing: -.01em; line-height: 1.45; } +.answer-turn--user .turn-label { padding-right: 4px; color: var(--customer-message-ink); } +.answer-turn--user .turn-copy { max-width: 82%; border: 1px solid var(--customer-message-line); border-radius: 17px 17px 6px 17px; padding: 12px 15px; color: var(--customer-message-ink); background: var(--customer-message); font-size: 15px; font-weight: 580; letter-spacing: -.01em; line-height: 1.45; } .answer-turn--user .turn-copy h2 { margin: 0; overflow-wrap: anywhere; font: inherit; } -.answer-turn--pending { opacity: .65; } +.answer-turn--pending .turn-copy { border-style: dashed; } .typing-bubble { min-height: 25px; } .typing-dots { display: inline-flex; gap: 4px; align-items: center; } diff --git a/apps/desk/src/voice/playback-guard.ts b/apps/desk/src/voice/playback-guard.ts new file mode 100644 index 0000000..5e78829 --- /dev/null +++ b/apps/desk/src/voice/playback-guard.ts @@ -0,0 +1,199 @@ +import { + WebSocketVoiceTransport, + type VoiceAudioFormat, + type VoiceTransport, +} from '@cloudflare/voice/client' + +const PCM16_BYTES_PER_SAMPLE = 2 + +/** + * Browser echo cancellation is useful but not reliable enough to decide + * whether speaker output is a new customer turn. Keep capture suppressed + * briefly after the final queued sample so room echo cannot reopen the mic. + */ +export const ASSISTANT_PLAYBACK_TAIL_MS = 350 + +type VoiceWireData = string | ArrayBuffer | Blob + +type AudioConfigMessage = { + type: 'audio_config' + format?: unknown + sampleRate?: unknown +} + +type StatusMessage = { + type: 'status' + status?: unknown +} + +function readServerMessage(data: string): AudioConfigMessage | StatusMessage | { type: string } | null { + try { + const value: unknown = JSON.parse(data) + if (!value || typeof value !== 'object' || !('type' in value) || typeof value.type !== 'string') return null + return value as AudioConfigMessage | StatusMessage | { type: string } + } catch { + return null + } +} + +/** + * Tracks the assistant's real PCM playback window rather than relying only on + * the server's `speaking` status. The server can finish generating audio while + * the browser still has several seconds queued for playback. + */ +export class AssistantPlaybackGuard { + #audioFormat: VoiceAudioFormat | null = null + #sampleRate = 16_000 + #serverSpeaking = false + #receivedAudio = false + #playbackEndsAt = 0 + #releaseTimer: ReturnType | null = null + #captureSuppressed = false + + constructor(readonly onSuppressionChange: (suppressed: boolean) => void) {} + + get captureSuppressed(): boolean { + return this.#captureSuppressed + } + + observe(data: VoiceWireData): void { + if (typeof data !== 'string') { + this.#observeAudio(data instanceof Blob ? data.size : data.byteLength) + return + } + + const message = readServerMessage(data) + if (!message) return + if (message.type === 'audio_config') { + const config = message as AudioConfigMessage + if (config.format === 'mp3' || config.format === 'pcm16' || config.format === 'wav' || config.format === 'opus') { + this.#audioFormat = config.format + } + if (typeof config.sampleRate === 'number' && Number.isFinite(config.sampleRate) && config.sampleRate > 0) { + this.#sampleRate = config.sampleRate + } + return + } + if (message.type === 'playback_interrupt') { + this.reset() + return + } + if (message.type !== 'status') return + + const status = (message as StatusMessage).status + if (status === 'speaking') this.#startAssistantTurn() + else if (status === 'listening') this.#finishAssistantTurn() + else if (status === 'idle') this.reset() + } + + reset(): void { + this.#clearReleaseTimer() + this.#serverSpeaking = false + this.#receivedAudio = false + this.#playbackEndsAt = 0 + this.#setSuppressed(false) + } + + #startAssistantTurn(): void { + this.#clearReleaseTimer() + if (!this.#serverSpeaking) { + this.#receivedAudio = false + this.#playbackEndsAt = Date.now() + } + this.#serverSpeaking = true + this.#setSuppressed(true) + } + + #observeAudio(byteLength: number): void { + if (!this.#serverSpeaking || byteLength <= 0) return + this.#receivedAudio = true + this.#setSuppressed(true) + if (this.#audioFormat !== 'pcm16') return + + const durationMs = byteLength / (this.#sampleRate * PCM16_BYTES_PER_SAMPLE) * 1_000 + this.#playbackEndsAt = Math.max(Date.now(), this.#playbackEndsAt) + durationMs + } + + #finishAssistantTurn(): void { + this.#serverSpeaking = false + if (!this.#receivedAudio) { + this.#setSuppressed(false) + return + } + + this.#clearReleaseTimer() + const releaseAt = this.#audioFormat === 'pcm16' + ? this.#playbackEndsAt + ASSISTANT_PLAYBACK_TAIL_MS + : Date.now() + ASSISTANT_PLAYBACK_TAIL_MS + const delay = Math.max(0, Math.ceil(releaseAt - Date.now())) + this.#releaseTimer = setTimeout(() => { + this.#releaseTimer = null + if (!this.#serverSpeaking) this.#setSuppressed(false) + }, delay) + } + + #clearReleaseTimer(): void { + if (this.#releaseTimer === null) return + clearTimeout(this.#releaseTimer) + this.#releaseTimer = null + } + + #setSuppressed(suppressed: boolean): void { + if (this.#captureSuppressed === suppressed) return + this.#captureSuppressed = suppressed + this.onSuppressionChange(suppressed) + } +} + +type WebSocketTransportOptions = ConstructorParameters[0] + +/** Observe server playback without forking Cloudflare's voice client. */ +export class PlaybackAwareVoiceTransport implements VoiceTransport { + readonly #transport: VoiceTransport + readonly #guard: AssistantPlaybackGuard + + onopen: (() => void) | null = null + onclose: (() => void) | null = null + onerror: ((error?: unknown) => void) | null = null + onmessage: ((data: VoiceWireData) => void) | null = null + + constructor( + options: WebSocketTransportOptions, + guard: AssistantPlaybackGuard, + transport: VoiceTransport = new WebSocketVoiceTransport(options), + ) { + this.#transport = transport + this.#guard = guard + } + + get connected(): boolean { + return this.#transport.connected + } + + connect(): void { + this.#transport.onopen = () => this.onopen?.() + this.#transport.onclose = () => { + this.#guard.reset() + this.onclose?.() + } + this.#transport.onerror = (error) => this.onerror?.(error) + this.#transport.onmessage = (data) => { + this.#guard.observe(data) + this.onmessage?.(data) + } + this.#transport.connect() + } + + disconnect(): void { + this.#guard.reset() + this.#transport.disconnect() + } + + sendJSON(data: Record): void { + this.#transport.sendJSON(data) + } + + sendBinary(data: ArrayBuffer): void { + this.#transport.sendBinary(data) + } +} diff --git a/apps/desk/src/worker.tsx b/apps/desk/src/worker.tsx index 762e75c..4c6b3f1 100644 --- a/apps/desk/src/worker.tsx +++ b/apps/desk/src/worker.tsx @@ -38,10 +38,13 @@ import { beginShopifyCustomerLogin, completeShopifyCustomerLogin, SHOPIFY_CUSTOMER_LOGIN_COOKIE, + SHOPIFY_CUSTOMER_RESUME_COOKIE, SHOPIFY_CUSTOMER_SESSION_COOKIE, SHOPIFY_LOGIN_TRANSACTION_TTL_SECONDS, + SHOPIFY_SUPPORT_RESUME_TTL_SECONDS, shopifyCustomerConfigured, verifyShopifyCustomerSession, + verifyShopifySupportResume, } from './identity/shopify-customer' import { acceptWhatsAppWebhook, verifyWhatsAppWebhook } from './whatsapp/webhook' import { createCustomerWorkspace } from './suite/customer-workspace' @@ -179,6 +182,7 @@ async function shopifyAuthResponse(request: Request, env: Env): Promise { const cookies = setCookies(response) expect(cookies.some((cookie) => cookie.startsWith(`${SHOPIFY_CUSTOMER_SESSION_COOKIE}=;`) && cookie.includes('Max-Age=0'))).toBe(true) expect(cookies.some((cookie) => cookie.startsWith(`${SHOPIFY_CUSTOMER_LOGIN_COOKIE}=;`) && cookie.includes('Max-Age=0'))).toBe(true) + expect(cookies.some((cookie) => cookie.startsWith(`${SHOPIFY_CUSTOMER_RESUME_COOKIE}=;`) && cookie.includes('Max-Age=0'))).toBe(true) }) it('lands a callback without a login transaction back on the portal as anonymous', async () => { diff --git a/apps/desk/test/shopify-customer.test.ts b/apps/desk/test/shopify-customer.test.ts index d2357a0..82a9d67 100644 --- a/apps/desk/test/shopify-customer.test.ts +++ b/apps/desk/test/shopify-customer.test.ts @@ -8,6 +8,7 @@ import { shopifyCustomerContext, signShopifyCustomerSession, verifyShopifyCustomerSession, + verifyShopifySupportResume, } from '../src/identity/shopify-customer' const ENV = { SHOPIFY_SHOP_DOMAIN: 'shop.example.test', SHOPIFY_CUSTOMER_CLIENT_ID: 'client-123' } @@ -94,6 +95,47 @@ describe('login begin and completion', () => { expect(verified).toMatchObject({ email: 'rhea@example.test' }) }) + it('binds a support conversation to the signed OAuth round trip', async () => { + const fetcher = discoveryFetcher() + const supportSession = `voice-${'a'.repeat(20)}` + const started = await beginShopifyCustomerLogin( + ENV, + { redirectUri: REDIRECT, secret: SECRET, supportSession }, + { fetcher, now: () => 1_000 }, + ) + const state = new URL(started!.url).searchParams.get('state')! + const completed = await completeShopifyCustomerLogin(ENV, { + code: 'auth-code', + state, + transactionToken: started!.transactionToken, + redirectUri: REDIRECT, + secret: SECRET, + }, { fetcher, now: () => 1_000 }) + + expect(completed?.supportResumeToken).toBeTruthy() + expect(await verifyShopifySupportResume(SECRET, completed?.supportResumeToken, 1_001)).toBe(supportSession) + expect(await verifyShopifySupportResume(SECRET, completed?.supportResumeToken, 1_000 + 121_000)).toBeNull() + expect(await verifyShopifySupportResume('wrong-secret', completed?.supportResumeToken, 1_001)).toBeNull() + }) + + it('does not bind malformed support session names into OAuth state', async () => { + const fetcher = discoveryFetcher() + const started = await beginShopifyCustomerLogin( + ENV, + { redirectUri: REDIRECT, secret: SECRET, supportSession: '../../another-agent' }, + { fetcher }, + ) + const state = new URL(started!.url).searchParams.get('state')! + const completed = await completeShopifyCustomerLogin(ENV, { + code: 'auth-code', + state, + transactionToken: started!.transactionToken, + redirectUri: REDIRECT, + secret: SECRET, + }, { fetcher }) + expect(completed?.supportResumeToken).toBeNull() + }) + it('rejects a state that does not match the signed transaction', async () => { const fetcher = discoveryFetcher() const started = await beginShopifyCustomerLogin(ENV, { redirectUri: REDIRECT, secret: SECRET }, { fetcher }) diff --git a/apps/desk/test/visual/portal.visual.spec.ts b/apps/desk/test/visual/portal.visual.spec.ts index a268d69..4792efa 100644 --- a/apps/desk/test/visual/portal.visual.spec.ts +++ b/apps/desk/test/visual/portal.visual.spec.ts @@ -149,6 +149,7 @@ async function installVoiceSocketFixture( signinReason?: 'order_lookup' | 'open_ticket' errorOnReply?: boolean productResults?: boolean + restoredHistory?: Array<{ role: 'user' | 'assistant'; text: string }> } = {}, ): Promise { let socket: WebSocketRoute | null = null @@ -184,7 +185,10 @@ async function installVoiceSocketFixture( } if (parsed.type === 'start_voice_session') { - if (readyReleased) sendReady() + if (readyReleased) { + if (options.restoredHistory) send({ type: 'voice_history', messages: options.restoredHistory }) + sendReady() + } else readyPending = true return } @@ -255,6 +259,7 @@ async function installVoiceSocketFixture( readyReleased = true if (!readyPending) return readyPending = false + if (options.restoredHistory) send({ type: 'voice_history', messages: options.restoredHistory }) sendReady() }, } @@ -382,7 +387,12 @@ test('the sign-in hand-off renders one card and no typed identity', async ({ pag test('returning from sign-in resumes the conversation without leaking the continuation', async ({ page }, testInfo) => { test.skip(testInfo.project.name !== 'mobile-390', 'The sign-in return leg is covered once.') - await installVoiceSocketFixture(page) + await installVoiceSocketFixture(page, { + restoredHistory: [ + { role: 'user', text: 'Please help me with my delayed order.' }, + { role: 'assistant', text: 'Sign in below and I will continue with this order.' }, + ], + }) // The client stashes its session name before redirecting; simulate the // return leg of the hosted-login round trip. await page.addInitScript(() => { @@ -391,6 +401,8 @@ test('returning from sign-in resumes the conversation without leaking the contin await page.goto('/?signed_in=1', { waitUntil: 'networkidle' }) // The continuation turn resumes the flow but stays out of the transcript. + await expect(page.getByText('Please help me with my delayed order.', { exact: true })).toBeVisible() + await expect(page.getByText('Sign in below and I will continue with this order.', { exact: true })).toBeVisible() await expect(page.getByLabel('Conversation with Ava').getByText('Deterministic support answer 1.', { exact: false })).toBeVisible() await expect(page.getByText('I have signed in with my store account', { exact: false })).toHaveCount(0) await expect(page).toHaveURL(/\/$/) @@ -675,6 +687,27 @@ test('first question transitions into the focused answer experience', async ({ p await expect(page.getByLabel('Ask a follow-up')).toBeVisible() await expect(page.getByRole('button', { name: 'New conversation' })).toBeVisible() + const outgoingColors = await page.locator('.answer-turn--user .turn-copy').first().evaluate((element) => { + const style = getComputedStyle(element) + const channel = (value: string) => value.match(/[\d.]+/g)?.slice(0, 3).map(Number) ?? [] + const luminance = (value: string) => { + const [red = 0, green = 0, blue = 0] = channel(value).map((item) => { + const normalized = item / 255 + return normalized <= .04045 ? normalized / 12.92 : ((normalized + .055) / 1.055) ** 2.4 + }) + return .2126 * red + .7152 * green + .0722 * blue + } + const foreground = luminance(style.color) + const background = luminance(style.backgroundColor) + return { + color: style.color, + background: style.backgroundColor, + contrast: (Math.max(foreground, background) + .05) / (Math.min(foreground, background) + .05), + } + }) + expect(outgoingColors).toMatchObject({ color: 'rgb(0, 96, 191)', background: 'rgb(234, 244, 255)' }) + expect(outgoingColors.contrast).toBeGreaterThanOrEqual(4.5) + await page.getByRole('button', { name: 'New conversation' }).click() await expect(page.locator('#support-app')).toHaveAttribute('data-view', 'landing') await expect(page.getByRole('heading', { level: 1, name: 'How can we help?' })).toBeVisible() diff --git a/apps/desk/test/voice-agent.test.ts b/apps/desk/test/voice-agent.test.ts index 26db0c6..89068c9 100644 --- a/apps/desk/test/voice-agent.test.ts +++ b/apps/desk/test/voice-agent.test.ts @@ -191,6 +191,24 @@ describe('voice agent WebSocket boundary', () => { } }) + it('never claims it can place an order or sends the caller through sign-in', async () => { + const socket = await connectAgent(`order-placement-${crypto.randomUUID()}`) + try { + await proveSession(socket) + let signinShown = false + socket.addEventListener('message', (event) => { + if (typeof event.data === 'string' && JSON.parse(event.data).type === 'voice_signin_required') signinShown = true + }) + const reply = nextMessage(socket, (message) => message.type === 'transcript_end') + socket.send(JSON.stringify({ type: 'text_message', text: 'Please place an order for the H10 for me.' })) + + expect(String((await reply).text)).toContain('Nothing has been ordered or charged') + expect(signinShown).toBe(false) + } finally { + socket.close() + } + }) + it('resumes the order flow after the sign-in round trip', async () => { // The sign-in hand-off itself navigates away; the pending flow must // survive and complete deterministically when the caller returns. @@ -199,15 +217,25 @@ describe('voice agent WebSocket boundary', () => { try { await proveSession(first) const signinRequested = nextMessage(first, (message) => message.type === 'voice_signin_required') + const initialReply = nextMessage(first, (message) => message.type === 'transcript_end') first.send(JSON.stringify({ type: 'text_message', text: 'My delivery is delayed.' })) await expect(signinRequested).resolves.toMatchObject({ anchor: 'after_reply', reason: 'order_lookup' }) + await expect(initialReply).resolves.toMatchObject({ type: 'transcript_end' }) } finally { first.close() } const second = await connectAgent(name, 'http://localhost', await customerCookie('Radha Tester', 'radha@example.test')) try { + const restored = nextMessage(second, (message) => message.type === 'voice_history') await proveSession(second) + await expect(restored).resolves.toMatchObject({ + type: 'voice_history', + messages: expect.arrayContaining([ + expect.objectContaining({ role: 'user', text: 'My delivery is delayed.' }), + expect.objectContaining({ role: 'assistant' }), + ]), + }) const reply = nextMessage(second, (message) => message.type === 'transcript_end') second.send(JSON.stringify({ type: 'text_message', text: SIGN_IN_CONTINUATION })) const message = await reply @@ -220,6 +248,35 @@ describe('voice agent WebSocket boundary', () => { } }) + it('does not turn a pre-login purchase request into an order after sign-in', async () => { + const name = `order-placement-resume-${crypto.randomUUID()}` + const first = await connectAgent(name) + try { + await proveSession(first) + const signinRequested = nextMessage(first, (message) => message.type === 'voice_signin_required') + const lookupReply = nextMessage(first, (message) => message.type === 'transcript_end') + first.send(JSON.stringify({ type: 'text_message', text: 'Where is my order?' })) + await expect(signinRequested).resolves.toMatchObject({ reason: 'order_lookup' }) + await expect(lookupReply).resolves.toMatchObject({ type: 'transcript_end' }) + + const placementReply = nextMessage(first, (message) => message.type === 'transcript_end') + first.send(JSON.stringify({ type: 'text_message', text: 'Actually, please order this machine for me.' })) + expect(String((await placementReply).text)).toContain('Nothing has been ordered or charged') + } finally { + first.close() + } + + const second = await connectAgent(name, 'http://localhost', await customerCookie('Radha Tester', 'radha@example.test')) + try { + await proveSession(second) + const reply = nextMessage(second, (message) => message.type === 'transcript_end') + second.send(JSON.stringify({ type: 'text_message', text: SIGN_IN_CONTINUATION })) + expect(String((await reply).text)).toContain('Nothing has been ordered or charged') + } finally { + second.close() + } + }) + it('treats a store-account session as verified identity for direct lookups', async () => { const socket = await connectAgent( `shopify-session-${crypto.randomUUID()}`, diff --git a/apps/desk/test/voice-conversation-history.node.test.ts b/apps/desk/test/voice-conversation-history.node.test.ts new file mode 100644 index 0000000..3dd1ddb --- /dev/null +++ b/apps/desk/test/voice-conversation-history.node.test.ts @@ -0,0 +1,34 @@ +import { describe, expect, it } from 'vitest' + +import { mergeConversationHistory, type RestoredTranscriptMessage } from '../src/voice/conversation-history' + +const message = (role: 'user' | 'assistant', text: string, timestamp: number): RestoredTranscriptMessage => ({ role, text, timestamp }) + +describe('mergeConversationHistory', () => { + it('appends the fresh post-login transcript to persisted history', () => { + const persisted = [message('user', 'Help me choose a grinder', 1), message('assistant', 'What is your budget?', 2)] + const current = [message('user', 'I have signed in', 3), message('assistant', 'You are signed in.', 4)] + expect(mergeConversationHistory(persisted, current).map(({ text }) => text)).toEqual([ + 'Help me choose a grinder', + 'What is your budget?', + 'I have signed in', + 'You are signed in.', + ]) + }) + + it('does not duplicate messages retained by VoiceClient on reconnect', () => { + const persisted = [message('user', 'Track my order', 1), message('assistant', 'Sign in below.', 2)] + const current = [message('user', 'Track my order', 10), message('assistant', 'Sign in below.', 11)] + expect(mergeConversationHistory(persisted, current)).toEqual(persisted) + }) + + it('preserves only the non-overlapping continuation', () => { + const persisted = [message('user', 'Track my order', 1), message('assistant', 'Sign in below.', 2)] + const current = [message('assistant', 'Sign in below.', 11), message('assistant', 'Here are your orders.', 12)] + expect(mergeConversationHistory(persisted, current).map(({ text }) => text)).toEqual([ + 'Track my order', + 'Sign in below.', + 'Here are your orders.', + ]) + }) +}) diff --git a/apps/desk/test/voice-conversation.test.ts b/apps/desk/test/voice-conversation.test.ts index 9759827..8ef525d 100644 --- a/apps/desk/test/voice-conversation.test.ts +++ b/apps/desk/test/voice-conversation.test.ts @@ -4,7 +4,9 @@ import { directVoiceResponse, inrBudgetFromTranscript, isHelpCenterSupportRequest, + isOrderPlacementRequest, isStorefrontShoppingRequest, + ORDER_PLACEMENT_UNAVAILABLE_REPLY, prepareVoiceModelMessages, speechText, productComparisonReply, @@ -23,6 +25,17 @@ describe('voice conversation policy', () => { expect(isStorefrontShoppingRequest('What does the warranty cover?')).toBe(false) }) + it('blocks commerce writes without confusing ordinary product questions', () => { + expect(isOrderPlacementRequest('Please place an order for the H10 for me')).toBe(true) + expect(isOrderPlacementRequest('Order this one for me')).toBe(true) + expect(isOrderPlacementRequest('Add it to my cart')).toBe(true) + expect(isOrderPlacementRequest('I want to buy the H10')).toBe(true) + expect(isOrderPlacementRequest('Can I buy the H10 in India?')).toBe(false) + expect(isOrderPlacementRequest('Where is my order?')).toBe(false) + expect(isOrderPlacementRequest('Can you confirm my order status?')).toBe(false) + expect(ORDER_PLACEMENT_UNAVAILABLE_REPLY).toContain('Nothing has been ordered or charged') + }) + it('deterministically recognizes support questions that require grounding', () => { expect(isHelpCenterSupportRequest('How do I adjust the print alignment on my router?')).toBe(true) expect(isHelpCenterSupportRequest("My grinder doesn't work after cleaning")).toBe(true) @@ -113,6 +126,13 @@ describe('voice conversation policy', () => { expect(configured).not.toContain('Order lookup is not available in this workspace.') }) + it('states that order placement and payment are not connected', () => { + const prompt = voiceAgentSystemPrompt('Example Company', { orders: true, products: true, signedIn: true }) + expect(prompt).toContain('cannot add products to a cart') + expect(prompt).toContain('Never claim an order was placed') + expect(prompt).toContain('nothing has been ordered or charged') + }) + it('routes anonymous identity actions through store sign-in, never typed contact details', () => { const anonymous = voiceAgentSystemPrompt('Example Company', { orders: true, signedIn: false }) expect(anonymous).toContain('call request_sign_in') diff --git a/apps/desk/test/voice-deepgram-flux-tts.test.ts b/apps/desk/test/voice-deepgram-flux-tts.test.ts index d89c7c3..b4bf293 100644 --- a/apps/desk/test/voice-deepgram-flux-tts.test.ts +++ b/apps/desk/test/voice-deepgram-flux-tts.test.ts @@ -168,4 +168,50 @@ describe('WorkersAIPcmTTS', () => { { returnRawResponse: true }, ) }) + + it('forwards aligned audio frames before the full Aura response completes', async () => { + let finish!: () => void + const waiting = new Promise((resolve) => { finish = resolve }) + const first = new Uint8Array(4_800).fill(1) + const second = new Uint8Array(2).fill(2) + const body = new ReadableStream({ + async start(controller) { + controller.enqueue(first) + await waiting + controller.enqueue(second) + controller.close() + }, + }) + const run = vi.fn(async () => new Response(body)) + const tts = new WorkersAIPcmTTS({ run }) + const stream = tts.synthesizeStream('Hello')[Symbol.asyncIterator]() + + await expect(stream.next()).resolves.toMatchObject({ done: false, value: first.buffer }) + finish() + await expect(stream.next()).resolves.toMatchObject({ done: false, value: second.buffer }) + await expect(stream.next()).resolves.toEqual({ done: true, value: undefined }) + }) + + it('coalesces arbitrary Workers AI chunks onto complete PCM samples', async () => { + const expected = new Uint8Array(4_802).map((_, index) => index % 251) + const body = new ReadableStream({ + start(controller) { + controller.enqueue(expected.slice(0, 3_001)) + controller.enqueue(expected.slice(3_001)) + controller.close() + }, + }) + const tts = new WorkersAIPcmTTS({ run: vi.fn(async () => new Response(body)) }) + const frames: ArrayBuffer[] = [] + for await (const frame of tts.synthesizeStream('Hello')) frames.push(frame) + + expect(frames.map((frame) => frame.byteLength)).toEqual([4_800, 2]) + const actual = new Uint8Array(frames.reduce((total, frame) => total + frame.byteLength, 0)) + let offset = 0 + for (const frame of frames) { + actual.set(new Uint8Array(frame), offset) + offset += frame.byteLength + } + expect(actual).toEqual(expected) + }) }) diff --git a/apps/desk/test/voice-demo.test.ts b/apps/desk/test/voice-demo.test.ts index 38d7163..0307a46 100644 --- a/apps/desk/test/voice-demo.test.ts +++ b/apps/desk/test/voice-demo.test.ts @@ -82,6 +82,27 @@ describe('voice demo boundary', () => { expect(signedIn).not.toContain('href="/auth/shopify/start"') }) + it('renders only a server-verified post-login support session', async () => { + const session = `voice-${'a'.repeat(20)}` + const resumed = await voiceDemoPageResponse( + BRANDING, + 'turnstile-site-key', + true, + [], + { configured: true, customerName: 'Rhea Kapoor', resumeSessionName: session }, + ).text() + expect(resumed).toContain(`data-resume-session="${session}"`) + + const ordinary = await voiceDemoPageResponse( + BRANDING, + 'turnstile-site-key', + true, + [], + { configured: true, customerName: 'Rhea Kapoor' }, + ).text() + expect(ordinary).not.toContain('data-resume-session=') + }) + it('marks microphone input unavailable for local parity without disabling text chat', async () => { const html = await voiceDemoPageResponse( BRANDING, diff --git a/apps/desk/test/voice-metrics.test.ts b/apps/desk/test/voice-metrics.test.ts new file mode 100644 index 0000000..72b91c6 --- /dev/null +++ b/apps/desk/test/voice-metrics.test.ts @@ -0,0 +1,20 @@ +import { describe, expect, it } from 'vitest' + +import { readVoicePipelineMetrics } from '../src/voice/demo-agent' + +describe('voice pipeline metrics', () => { + it('accepts bounded timing-only telemetry', () => { + expect(readVoicePipelineMetrics({ + llmMs: 450, + ttsMs: 1_100, + firstAudioMs: 1_550, + totalMs: 2_700, + })).toEqual({ llmMs: 450, ttsMs: 1_100, firstAudioMs: 1_550, totalMs: 2_700 }) + }) + + it('rejects malformed or unbounded values', () => { + expect(readVoicePipelineMetrics({ llmMs: -1, ttsMs: 1, firstAudioMs: 1, totalMs: 1 })).toBeNull() + expect(readVoicePipelineMetrics({ llmMs: 1, ttsMs: '1', firstAudioMs: 1, totalMs: 1 })).toBeNull() + expect(readVoicePipelineMetrics({ llmMs: 1, ttsMs: 1, firstAudioMs: 1, totalMs: 300_001 })).toBeNull() + }) +}) diff --git a/apps/desk/test/voice-playback-guard.node.test.ts b/apps/desk/test/voice-playback-guard.node.test.ts new file mode 100644 index 0000000..0749b73 --- /dev/null +++ b/apps/desk/test/voice-playback-guard.node.test.ts @@ -0,0 +1,93 @@ +import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' + +import { + ASSISTANT_PLAYBACK_TAIL_MS, + AssistantPlaybackGuard, + PlaybackAwareVoiceTransport, +} from '../src/voice/playback-guard' +import type { VoiceTransport } from '@cloudflare/voice/client' + +function message(value: Record): string { + return JSON.stringify(value) +} + +function fakeTransport(): VoiceTransport { + return { + connected: false, + onopen: null, + onclose: null, + onerror: null, + onmessage: null, + connect: vi.fn(), + disconnect: vi.fn(), + sendJSON: vi.fn(), + sendBinary: vi.fn(), + } +} + +describe('AssistantPlaybackGuard', () => { + beforeEach(() => { + vi.useFakeTimers() + vi.setSystemTime(1_000) + }) + + afterEach(() => vi.useRealTimers()) + + it('keeps the mic suppressed through queued PCM playback and the echo tail', () => { + const changes: boolean[] = [] + const guard = new AssistantPlaybackGuard((suppressed) => changes.push(suppressed)) + guard.observe(message({ type: 'audio_config', format: 'pcm16', sampleRate: 24_000 })) + guard.observe(message({ type: 'status', status: 'speaking' })) + guard.observe(new ArrayBuffer(4_800)) // 100 ms + guard.observe(new ArrayBuffer(4_800)) // another 100 ms queued + guard.observe(message({ type: 'status', status: 'listening' })) + + expect(guard.captureSuppressed).toBe(true) + vi.advanceTimersByTime(200 + ASSISTANT_PLAYBACK_TAIL_MS - 1) + expect(guard.captureSuppressed).toBe(true) + vi.advanceTimersByTime(1) + expect(guard.captureSuppressed).toBe(false) + expect(changes).toEqual([true, false]) + }) + + it('accounts for slower-than-realtime frame delivery', () => { + const guard = new AssistantPlaybackGuard(() => {}) + guard.observe(message({ type: 'audio_config', format: 'pcm16', sampleRate: 24_000 })) + guard.observe(message({ type: 'status', status: 'speaking' })) + guard.observe(new ArrayBuffer(4_800)) + vi.advanceTimersByTime(150) + guard.observe(new ArrayBuffer(4_800)) + guard.observe(message({ type: 'status', status: 'listening' })) + + vi.advanceTimersByTime(100 + ASSISTANT_PLAYBACK_TAIL_MS - 1) + expect(guard.captureSuppressed).toBe(true) + vi.advanceTimersByTime(1) + expect(guard.captureSuppressed).toBe(false) + }) + + it('releases immediately when playback is interrupted', () => { + const guard = new AssistantPlaybackGuard(() => {}) + guard.observe(message({ type: 'status', status: 'speaking' })) + guard.observe(new ArrayBuffer(4_800)) + guard.observe(message({ type: 'playback_interrupt' })) + expect(guard.captureSuppressed).toBe(false) + }) + + it('observes playback before forwarding messages to VoiceClient', () => { + const inner = fakeTransport() + const guard = new AssistantPlaybackGuard(() => {}) + const transport = new PlaybackAwareVoiceTransport( + { agent: 'AbleDeskAgent', name: 'test' }, + guard, + inner, + ) + let suppressedWhenForwarded = false + transport.onmessage = () => { suppressedWhenForwarded = guard.captureSuppressed } + transport.connect() + + inner.onmessage?.(message({ type: 'status', status: 'speaking' })) + + expect(suppressedWhenForwarded).toBe(true) + expect(inner.connect).toHaveBeenCalledOnce() + }) +})