@octavus/agent 1.0.11 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/dist/browser-extension-mcp.js +32 -32
- package/dist/code-mcp/index.js +89 -0
- package/dist/computer-mcp/dist/index.js +31 -31
- package/dist/filesystem-mcp.mjs +29 -29
- package/dist/index.js +120 -106
- package/package.json +1 -1
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{createRequire as sv}from"module";const QD=sv(import.meta.url);var cv=Object.create,oa=Object.defineProperty,lv=Object.getOwnPropertyDescriptor,B0=Object.getOwnPropertyNames,dv=Object.getPrototypeOf,fv=Object.prototype.hasOwnProperty,G=(e,t)=>function(){return t||(0,e[B0(e)[0]])((t={exports:{}}).exports,t),t.exports},qt=(e,t)=>{for(var n in t)oa(e,n,{get:t[n],enumerable:!0})},hv=(e,t,n,u)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of B0(t))!fv.call(e,r)&&r!==n&&oa(e,r,{get:()=>t[r],enumerable:!(u=lv(t,r))||u.enumerable});return e},I0=(e,t,n)=>(n=e!=null?cv(dv(e)):{},hv(t||!e||!e.__esModule?oa(n,"default",{value:e,enumerable:!0}):n,e)),Yn=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/code.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;var t=class{};e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var n=class extends t{constructor(f){if(super(),!e.IDENTIFIER.test(f))throw new Error("CodeGen: name must be a valid identifier");this.str=f}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};e.Name=n;var u=class extends t{constructor(f){super(),this._items=typeof f=="string"?[f]:f}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const f=this._items[0];return f===""||f==='""'}get str(){var f;return(f=this._str)!==null&&f!==void 0?f:this._str=this._items.reduce(($,v)=>`${$}${v}`,"")}get names(){var f;return(f=this._names)!==null&&f!==void 0?f:this._names=this._items.reduce(($,v)=>(v instanceof n&&($[v.str]=($[v.str]||0)+1),$),{})}};e._Code=u,e.nil=new u("");function r(f,...$){const v=[f[0]];let D=0;for(;D<$.length;)o(v,$[D]),v.push(f[++D]);return new u(v)}e._=r;var i=new u("+");function a(f,...$){const v=[p(f[0])];let D=0;for(;D<$.length;)v.push(i),o(v,$[D]),v.push(i,p(f[++D]));return s(v),new u(v)}e.str=a;function o(f,$){$ instanceof u?f.push(...$._items):$ instanceof n?f.push($):f.push(d($))}e.addCodeArg=o;function s(f){let $=1;for(;$<f.length-1;){if(f[$]===i){const v=c(f[$-1],f[$+1]);if(v!==void 0){f.splice($-1,3,v);continue}f[$++]="+"}$++}}function c(f,$){if($==='""')return f;if(f==='""')return $;if(typeof f=="string")return $ instanceof n||f[f.length-1]!=='"'?void 0:typeof $!="string"?`${f.slice(0,-1)}${$}"`:$[0]==='"'?f.slice(0,-1)+$.slice(1):void 0;if(typeof $=="string"&&$[0]==='"'&&!(f instanceof n))return`"${f}${$.slice(1)}`}function l(f,$){return $.emptyStr()?f:f.emptyStr()?$:a`${f}${$}`}e.strConcat=l;function d(f){return typeof f=="number"||typeof f=="boolean"||f===null?f:p(Array.isArray(f)?f.join(","):f)}function m(f){return new u(p(f))}e.stringify=m;function p(f){return JSON.stringify(f).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=p;function E(f){return typeof f=="string"&&e.IDENTIFIER.test(f)?new u(`.${f}`):r`[${f}]`}e.getProperty=E;function b(f){if(typeof f=="string"&&e.IDENTIFIER.test(f))return new u(`${f}`);throw new Error(`CodeGen: invalid export name: ${f}, use explicit $id name mapping`)}e.getEsmExportName=b;function g(f){return new u(f.toString())}e.regexpCode=g}}),F0=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/scope.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;var t=Yn(),n=class extends Error{constructor(s){super(`CodeGen: "code" for ${s} not defined`),this.value=s.value}},u;(function(s){s[s.Started=0]="Started",s[s.Completed=1]="Completed"})(u||(e.UsedValueState=u={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};var r=class{constructor({prefixes:s,parent:c}={}){this._names={},this._prefixes=s,this._parent=c}toName(s){return s instanceof t.Name?s:this.name(s)}name(s){return new t.Name(this._newName(s))}_newName(s){const c=this._names[s]||this._nameGroup(s);return`${s}${c.index++}`}_nameGroup(s){var c,l;if(!((l=(c=this._parent)===null||c===void 0?void 0:c._prefixes)===null||l===void 0)&&l.has(s)||this._prefixes&&!this._prefixes.has(s))throw new Error(`CodeGen: prefix "${s}" is not allowed in this scope`);return this._names[s]={prefix:s,index:0}}};e.Scope=r;var i=class extends t.Name{constructor(s,c){super(c),this.prefix=s}setValue(s,{property:c,itemIndex:l}){this.value=s,this.scopePath=(0,t._)`.${new t.Name(c)}[${l}]`}};e.ValueScopeName=i;var a=(0,t._)`\n`,o=class extends r{constructor(s){super(s),this._values={},this._scope=s.scope,this.opts={...s,_n:s.lines?a:t.nil}}get(){return this._scope}name(s){return new i(s,this._newName(s))}value(s,c){var l;if(c.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const d=this.toName(s),{prefix:m}=d,p=(l=c.key)!==null&&l!==void 0?l:c.ref;let E=this._values[m];if(E){const f=E.get(p);if(f)return f}else E=this._values[m]=new Map;E.set(p,d);const b=this._scope[m]||(this._scope[m]=[]),g=b.length;return b[g]=c.ref,d.setValue(c,{property:m,itemIndex:g}),d}getValue(s,c){const l=this._values[s];if(l)return l.get(c)}scopeRefs(s,c=this._values){return this._reduceValues(c,l=>{if(l.scopePath===void 0)throw new Error(`CodeGen: name "${l}" has no value`);return(0,t._)`${s}${l.scopePath}`})}scopeCode(s=this._values,c,l){return this._reduceValues(s,d=>{if(d.value===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return d.value.code},c,l)}_reduceValues(s,c,l={},d){let m=t.nil;for(const p in s){const E=s[p];if(!E)continue;const b=l[p]=l[p]||new Map;E.forEach(g=>{if(b.has(g))return;b.set(g,u.Started);let f=c(g);if(f){const $=this.opts.es5?e.varKinds.var:e.varKinds.const;m=(0,t._)`${m}${$} ${g} = ${f};${this.opts._n}`}else if(f=d?.(g))m=(0,t._)`${m}${f}${this.opts._n}`;else throw new n(g);b.set(g,u.Completed)})}return m}};e.ValueScope=o}}),pe=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/index.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;var t=Yn(),n=F0(),u=Yn();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return u.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return u.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return u.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return u.Name}});var r=F0();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return r.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return r.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return r.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return r.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};var i=class{optimizeNodes(){return this}optimizeNames(_,x){return this}},a=class extends i{constructor(_,x,P){super(),this.varKind=_,this.name=x,this.rhs=P}render({es5:_,_n:x}){const P=_?n.varKinds.var:this.varKind,H=this.rhs===void 0?"":` = ${this.rhs}`;return`${P} ${this.name}${H};`+x}optimizeNames(_,x){if(_[this.name.str])return this.rhs&&(this.rhs=N(this.rhs,_,x)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}},o=class extends i{constructor(_,x,P){super(),this.lhs=_,this.rhs=x,this.sideEffects=P}render({_n:_}){return`${this.lhs} = ${this.rhs};`+_}optimizeNames(_,x){if(!(this.lhs instanceof t.Name&&!_[this.lhs.str]&&!this.sideEffects))return this.rhs=N(this.rhs,_,x),this}get names(){const _=this.lhs instanceof t.Name?{}:{...this.lhs.names};return j(_,this.rhs)}},s=class extends o{constructor(_,x,P,H){super(_,P,H),this.op=x}render({_n:_}){return`${this.lhs} ${this.op}= ${this.rhs};`+_}},c=class extends i{constructor(_){super(),this.label=_,this.names={}}render({_n:_}){return`${this.label}:`+_}},l=class extends i{constructor(_){super(),this.label=_,this.names={}}render({_n:_}){return`break${this.label?` ${this.label}`:""};`+_}},d=class extends i{constructor(_){super(),this.error=_}render({_n:_}){return`throw ${this.error};`+_}get names(){return this.error.names}},m=class extends i{constructor(_){super(),this.code=_}render({_n:_}){return`${this.code};`+_}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(_,x){return this.code=N(this.code,_,x),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}},p=class extends i{constructor(_=[]){super(),this.nodes=_}render(_){return this.nodes.reduce((x,P)=>x+P.render(_),"")}optimizeNodes(){const{nodes:_}=this;let x=_.length;for(;x--;){const P=_[x].optimizeNodes();Array.isArray(P)?_.splice(x,1,...P):P?_[x]=P:_.splice(x,1)}return _.length>0?this:void 0}optimizeNames(_,x){const{nodes:P}=this;let H=P.length;for(;H--;){const se=P[H];se.optimizeNames(_,x)||(Q(_,se.names),P.splice(H,1))}return P.length>0?this:void 0}get names(){return this.nodes.reduce((_,x)=>T(_,x.names),{})}},E=class extends p{render(_){return"{"+_._n+super.render(_)+"}"+_._n}},b=class extends p{},g=class extends E{};g.kind="else";var f=class ra extends E{constructor(x,P){super(P),this.condition=x}render(x){let P=`if(${this.condition})`+super.render(x);return this.else&&(P+="else "+this.else.render(x)),P}optimizeNodes(){super.optimizeNodes();const x=this.condition;if(x===!0)return this.nodes;let P=this.else;if(P){const H=P.optimizeNodes();P=this.else=Array.isArray(H)?new g(H):H}if(P)return x===!1?P instanceof ra?P:P.nodes:this.nodes.length?this:new ra(de(x),P instanceof ra?[P]:P.nodes);if(!(x===!1||!this.nodes.length))return this}optimizeNames(x,P){var H;if(this.else=(H=this.else)===null||H===void 0?void 0:H.optimizeNames(x,P),!!(super.optimizeNames(x,P)||this.else))return this.condition=N(this.condition,x,P),this}get names(){const x=super.names;return j(x,this.condition),this.else&&T(x,this.else.names),x}};f.kind="if";var $=class extends E{};$.kind="for";var v=class extends ${constructor(_){super(),this.iteration=_}render(_){return`for(${this.iteration})`+super.render(_)}optimizeNames(_,x){if(super.optimizeNames(_,x))return this.iteration=N(this.iteration,_,x),this}get names(){return T(super.names,this.iteration.names)}},D=class extends ${constructor(_,x,P,H){super(),this.varKind=_,this.name=x,this.from=P,this.to=H}render(_){const x=_.es5?n.varKinds.var:this.varKind,{name:P,from:H,to:se}=this;return`for(${x} ${P}=${H}; ${P}<${se}; ${P}++)`+super.render(_)}get names(){const _=j(super.names,this.from);return j(_,this.to)}},C=class extends ${constructor(_,x,P,H){super(),this.loop=_,this.varKind=x,this.name=P,this.iterable=H}render(_){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(_)}optimizeNames(_,x){if(super.optimizeNames(_,x))return this.iterable=N(this.iterable,_,x),this}get names(){return T(super.names,this.iterable.names)}},w=class extends E{constructor(_,x,P){super(),this.name=_,this.args=x,this.async=P}render(_){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(_)}};w.kind="func";var h=class extends p{render(_){return"return "+super.render(_)}};h.kind="return";var y=class extends E{render(_){let x="try"+super.render(_);return this.catch&&(x+=this.catch.render(_)),this.finally&&(x+=this.finally.render(_)),x}optimizeNodes(){var _,x;return super.optimizeNodes(),(_=this.catch)===null||_===void 0||_.optimizeNodes(),(x=this.finally)===null||x===void 0||x.optimizeNodes(),this}optimizeNames(_,x){var P,H;return super.optimizeNames(_,x),(P=this.catch)===null||P===void 0||P.optimizeNames(_,x),(H=this.finally)===null||H===void 0||H.optimizeNames(_,x),this}get names(){const _=super.names;return this.catch&&T(_,this.catch.names),this.finally&&T(_,this.finally.names),_}},k=class extends E{constructor(_){super(),this.error=_}render(_){return`catch(${this.error})`+super.render(_)}};k.kind="catch";var S=class extends E{render(_){return"finally"+super.render(_)}};S.kind="finally";var I=class{constructor(_,x={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...x,_n:x.lines?`
|
|
3
|
+
`:""},this._extScope=_,this._scope=new n.Scope({parent:_}),this._nodes=[new b]}toString(){return this._root.render(this.opts)}name(_){return this._scope.name(_)}scopeName(_){return this._extScope.name(_)}scopeValue(_,x){const P=this._extScope.value(_,x);return(this._values[P.prefix]||(this._values[P.prefix]=new Set)).add(P),P}getScopeValue(_,x){return this._extScope.getValue(_,x)}scopeRefs(_){return this._extScope.scopeRefs(_,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(_,x,P,H){const se=this._scope.toName(x);return P!==void 0&&H&&(this._constants[se.str]=P),this._leafNode(new a(_,se,P)),se}const(_,x,P){return this._def(n.varKinds.const,_,x,P)}let(_,x,P){return this._def(n.varKinds.let,_,x,P)}var(_,x,P){return this._def(n.varKinds.var,_,x,P)}assign(_,x,P){return this._leafNode(new o(_,x,P))}add(_,x){return this._leafNode(new s(_,e.operators.ADD,x))}code(_){return typeof _=="function"?_():_!==t.nil&&this._leafNode(new m(_)),this}object(..._){const x=["{"];for(const[P,H]of _)x.length>1&&x.push(","),x.push(P),(P!==H||this.opts.es5)&&(x.push(":"),(0,t.addCodeArg)(x,H));return x.push("}"),new t._Code(x)}if(_,x,P){if(this._blockNode(new f(_)),x&&P)this.code(x).else().code(P).endIf();else if(x)this.code(x).endIf();else if(P)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(_){return this._elseNode(new f(_))}else(){return this._elseNode(new g)}endIf(){return this._endBlockNode(f,g)}_for(_,x){return this._blockNode(_),x&&this.code(x).endFor(),this}for(_,x){return this._for(new v(_),x)}forRange(_,x,P,H,se=this.opts.es5?n.varKinds.var:n.varKinds.let){const Ee=this._scope.toName(_);return this._for(new D(se,Ee,x,P),()=>H(Ee))}forOf(_,x,P,H=n.varKinds.const){const se=this._scope.toName(_);if(this.opts.es5){const Ee=x instanceof t.Name?x:this.var("_arr",x);return this.forRange("_i",0,(0,t._)`${Ee}.length`,ce=>{this.var(se,(0,t._)`${Ee}[${ce}]`),P(se)})}return this._for(new C("of",H,se,x),()=>P(se))}forIn(_,x,P,H=this.opts.es5?n.varKinds.var:n.varKinds.const){if(this.opts.ownProperties)return this.forOf(_,(0,t._)`Object.keys(${x})`,P);const se=this._scope.toName(_);return this._for(new C("in",H,se,x),()=>P(se))}endFor(){return this._endBlockNode($)}label(_){return this._leafNode(new c(_))}break(_){return this._leafNode(new l(_))}return(_){const x=new h;if(this._blockNode(x),this.code(_),x.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(h)}try(_,x,P){if(!x&&!P)throw new Error('CodeGen: "try" without "catch" and "finally"');const H=new y;if(this._blockNode(H),this.code(_),x){const se=this.name("e");this._currNode=H.catch=new k(se),x(se)}return P&&(this._currNode=H.finally=new S,this.code(P)),this._endBlockNode(k,S)}throw(_){return this._leafNode(new d(_))}block(_,x){return this._blockStarts.push(this._nodes.length),_&&this.code(_).endBlock(x),this}endBlock(_){const x=this._blockStarts.pop();if(x===void 0)throw new Error("CodeGen: not in self-balancing block");const P=this._nodes.length-x;if(P<0||_!==void 0&&P!==_)throw new Error(`CodeGen: wrong number of nodes: ${P} vs ${_} expected`);return this._nodes.length=x,this}func(_,x=t.nil,P,H){return this._blockNode(new w(_,x,P)),H&&this.code(H).endFunc(),this}endFunc(){return this._endBlockNode(w)}optimize(_=1){for(;_-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(_){return this._currNode.nodes.push(_),this}_blockNode(_){this._currNode.nodes.push(_),this._nodes.push(_)}_endBlockNode(_,x){const P=this._currNode;if(P instanceof _||x&&P instanceof x)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${x?`${_.kind}/${x.kind}`:_.kind}"`)}_elseNode(_){const x=this._currNode;if(!(x instanceof f))throw new Error('CodeGen: "else" without "if"');return this._currNode=x.else=_,this}get _root(){return this._nodes[0]}get _currNode(){const _=this._nodes;return _[_.length-1]}set _currNode(_){const x=this._nodes;x[x.length-1]=_}};e.CodeGen=I;function T(_,x){for(const P in x)_[P]=(_[P]||0)+(x[P]||0);return _}function j(_,x){return x instanceof t._CodeOrName?T(_,x.names):_}function N(_,x,P){if(_ instanceof t.Name)return H(_);if(!se(_))return _;return new t._Code(_._items.reduce((Ee,ce)=>(ce instanceof t.Name&&(ce=H(ce)),ce instanceof t._Code?Ee.push(...ce._items):Ee.push(ce),Ee),[]));function H(Ee){const ce=P[Ee.str];return ce===void 0||x[Ee.str]!==1?Ee:(delete x[Ee.str],ce)}function se(Ee){return Ee instanceof t._Code&&Ee._items.some(ce=>ce instanceof t.Name&&x[ce.str]===1&&P[ce.str]!==void 0)}}function Q(_,x){for(const P in x)_[P]=(_[P]||0)-(x[P]||0)}function de(_){return typeof _=="boolean"||typeof _=="number"||_===null?!_:(0,t._)`!${U(_)}`}e.not=de;var je=R(e.operators.AND);function Oe(..._){return _.reduce(je)}e.and=Oe;var be=R(e.operators.OR);function B(..._){return _.reduce(be)}e.or=B;function R(_){return(x,P)=>x===t.nil?P:P===t.nil?x:(0,t._)`${U(x)} ${_} ${U(P)}`}function U(_){return _ instanceof t.Name?_:(0,t._)`(${_})`}}}),De=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/util.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;var t=pe(),n=Yn();function u(w){const h={};for(const y of w)h[y]=!0;return h}e.toHash=u;function r(w,h){return typeof h=="boolean"?h:Object.keys(h).length===0?!0:(i(w,h),!a(h,w.self.RULES.all))}e.alwaysValidSchema=r;function i(w,h=w.schema){const{opts:y,self:k}=w;if(!y.strictSchema||typeof h=="boolean")return;const S=k.RULES.keywords;for(const I in h)S[I]||C(w,`unknown keyword: "${I}"`)}e.checkUnknownRules=i;function a(w,h){if(typeof w=="boolean")return!w;for(const y in w)if(h[y])return!0;return!1}e.schemaHasRules=a;function o(w,h){if(typeof w=="boolean")return!w;for(const y in w)if(y!=="$ref"&&h.all[y])return!0;return!1}e.schemaHasRulesButRef=o;function s({topSchemaRef:w,schemaPath:h},y,k,S){if(!S){if(typeof y=="number"||typeof y=="boolean")return y;if(typeof y=="string")return(0,t._)`${y}`}return(0,t._)`${w}${h}${(0,t.getProperty)(k)}`}e.schemaRefOrVal=s;function c(w){return m(decodeURIComponent(w))}e.unescapeFragment=c;function l(w){return encodeURIComponent(d(w))}e.escapeFragment=l;function d(w){return typeof w=="number"?`${w}`:w.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=d;function m(w){return w.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=m;function p(w,h){if(Array.isArray(w))for(const y of w)h(y);else h(w)}e.eachItem=p;function E({mergeNames:w,mergeToName:h,mergeValues:y,resultToName:k}){return(S,I,T,j)=>{const N=T===void 0?I:T instanceof t.Name?(I instanceof t.Name?w(S,I,T):h(S,I,T),T):I instanceof t.Name?(h(S,T,I),I):y(I,T);return j===t.Name&&!(N instanceof t.Name)?k(S,N):N}}e.mergeEvaluated={props:E({mergeNames:(w,h,y)=>w.if((0,t._)`${y} !== true && ${h} !== undefined`,()=>{w.if((0,t._)`${h} === true`,()=>w.assign(y,!0),()=>w.assign(y,(0,t._)`${y} || {}`).code((0,t._)`Object.assign(${y}, ${h})`))}),mergeToName:(w,h,y)=>w.if((0,t._)`${y} !== true`,()=>{h===!0?w.assign(y,!0):(w.assign(y,(0,t._)`${y} || {}`),g(w,y,h))}),mergeValues:(w,h)=>w===!0?!0:{...w,...h},resultToName:b}),items:E({mergeNames:(w,h,y)=>w.if((0,t._)`${y} !== true && ${h} !== undefined`,()=>w.assign(y,(0,t._)`${h} === true ? true : ${y} > ${h} ? ${y} : ${h}`)),mergeToName:(w,h,y)=>w.if((0,t._)`${y} !== true`,()=>w.assign(y,h===!0?!0:(0,t._)`${y} > ${h} ? ${y} : ${h}`)),mergeValues:(w,h)=>w===!0?!0:Math.max(w,h),resultToName:(w,h)=>w.var("items",h)})};function b(w,h){if(h===!0)return w.var("props",!0);const y=w.var("props",(0,t._)`{}`);return h!==void 0&&g(w,y,h),y}e.evaluatedPropsToName=b;function g(w,h,y){Object.keys(y).forEach(k=>w.assign((0,t._)`${h}${(0,t.getProperty)(k)}`,!0))}e.setEvaluated=g;var f={};function $(w,h){return w.scopeValue("func",{ref:h,code:f[h.code]||(f[h.code]=new n._Code(h.code))})}e.useFunc=$;var v;(function(w){w[w.Num=0]="Num",w[w.Str=1]="Str"})(v||(e.Type=v={}));function D(w,h,y){if(w instanceof t.Name){const k=h===v.Num;return y?k?(0,t._)`"[" + ${w} + "]"`:(0,t._)`"['" + ${w} + "']"`:k?(0,t._)`"/" + ${w}`:(0,t._)`"/" + ${w}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return y?(0,t.getProperty)(w).toString():"/"+d(w)}e.getErrorPath=D;function C(w,h,y=w.opts.strictSchema){if(y){if(h=`strict mode: ${h}`,y===!0)throw new Error(h);w.self.logger.warn(h)}}e.checkStrictMode=C}}),tr=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/names.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=pe(),n={data:new t.Name("data"),valCxt:new t.Name("valCxt"),instancePath:new t.Name("instancePath"),parentData:new t.Name("parentData"),parentDataProperty:new t.Name("parentDataProperty"),rootData:new t.Name("rootData"),dynamicAnchors:new t.Name("dynamicAnchors"),vErrors:new t.Name("vErrors"),errors:new t.Name("errors"),this:new t.Name("this"),self:new t.Name("self"),scope:new t.Name("scope"),json:new t.Name("json"),jsonPos:new t.Name("jsonPos"),jsonLen:new t.Name("jsonLen"),jsonPart:new t.Name("jsonPart")};e.default=n}}),Qn=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/errors.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;var t=pe(),n=De(),u=tr();e.keywordError={message:({keyword:g})=>(0,t.str)`must pass "${g}" keyword validation`},e.keyword$DataError={message:({keyword:g,schemaType:f})=>f?(0,t.str)`"${g}" keyword must be ${f} ($data)`:(0,t.str)`"${g}" keyword is invalid ($data)`};function r(g,f=e.keywordError,$,v){const{it:D}=g,{gen:C,compositeRule:w,allErrors:h}=D,y=d(g,f,$);v??(w||h)?s(C,y):c(D,(0,t._)`[${y}]`)}e.reportError=r;function i(g,f=e.keywordError,$){const{it:v}=g,{gen:D,compositeRule:C,allErrors:w}=v,h=d(g,f,$);s(D,h),C||w||c(v,u.default.vErrors)}e.reportExtraError=i;function a(g,f){g.assign(u.default.errors,f),g.if((0,t._)`${u.default.vErrors} !== null`,()=>g.if(f,()=>g.assign((0,t._)`${u.default.vErrors}.length`,f),()=>g.assign(u.default.vErrors,null)))}e.resetErrorsCount=a;function o({gen:g,keyword:f,schemaValue:$,data:v,errsCount:D,it:C}){if(D===void 0)throw new Error("ajv implementation error");const w=g.name("err");g.forRange("i",D,u.default.errors,h=>{g.const(w,(0,t._)`${u.default.vErrors}[${h}]`),g.if((0,t._)`${w}.instancePath === undefined`,()=>g.assign((0,t._)`${w}.instancePath`,(0,t.strConcat)(u.default.instancePath,C.errorPath))),g.assign((0,t._)`${w}.schemaPath`,(0,t.str)`${C.errSchemaPath}/${f}`),C.opts.verbose&&(g.assign((0,t._)`${w}.schema`,$),g.assign((0,t._)`${w}.data`,v))})}e.extendErrors=o;function s(g,f){const $=g.const("err",f);g.if((0,t._)`${u.default.vErrors} === null`,()=>g.assign(u.default.vErrors,(0,t._)`[${$}]`),(0,t._)`${u.default.vErrors}.push(${$})`),g.code((0,t._)`${u.default.errors}++`)}function c(g,f){const{gen:$,validateName:v,schemaEnv:D}=g;D.$async?$.throw((0,t._)`new ${g.ValidationError}(${f})`):($.assign((0,t._)`${v}.errors`,f),$.return(!1))}var l={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function d(g,f,$){const{createErrors:v}=g.it;return v===!1?(0,t._)`{}`:m(g,f,$)}function m(g,f,$={}){const{gen:v,it:D}=g,C=[p(D,$),E(g,$)];return b(g,f,C),v.object(...C)}function p({errorPath:g},{instancePath:f}){const $=f?(0,t.str)`${g}${(0,n.getErrorPath)(f,n.Type.Str)}`:g;return[u.default.instancePath,(0,t.strConcat)(u.default.instancePath,$)]}function E({keyword:g,it:{errSchemaPath:f}},{schemaPath:$,parentSchema:v}){let D=v?f:(0,t.str)`${f}/${g}`;return $&&(D=(0,t.str)`${D}${(0,n.getErrorPath)($,n.Type.Str)}`),[l.schemaPath,D]}function b(g,{params:f,message:$},v){const{keyword:D,data:C,schemaValue:w,it:h}=g,{opts:y,propertyName:k,topSchemaRef:S,schemaPath:I}=h;v.push([l.keyword,D],[l.params,typeof f=="function"?f(g):f||(0,t._)`{}`]),y.messages&&v.push([l.message,typeof $=="function"?$(g):$]),y.verbose&&v.push([l.schema,w],[l.parentSchema,(0,t._)`${S}${I}`],[u.default.data,C]),k&&v.push([l.propertyName,k])}}}),mv=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/boolSchema.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.boolOrEmptySchema=e.topBoolOrEmptySchema=void 0;var t=Qn(),n=pe(),u=tr(),r={message:"boolean schema is false"};function i(s){const{gen:c,schema:l,validateName:d}=s;l===!1?o(s,!1):typeof l=="object"&&l.$async===!0?c.return(u.default.data):(c.assign((0,n._)`${d}.errors`,null),c.return(!0))}e.topBoolOrEmptySchema=i;function a(s,c){const{gen:l,schema:d}=s;d===!1?(l.var(c,!1),o(s)):l.var(c,!0)}e.boolOrEmptySchema=a;function o(s,c){const{gen:l,data:d}=s,m={gen:l,keyword:"false schema",data:d,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:s};(0,t.reportError)(m,r,void 0,c)}}}),T0=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/rules.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getRules=e.isJSONType=void 0;var t=["string","number","integer","boolean","null","object","array"],n=new Set(t);function u(i){return typeof i=="string"&&n.has(i)}e.isJSONType=u;function r(){const i={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...i,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},i.number,i.string,i.array,i.object],post:{rules:[]},all:{},keywords:{}}}e.getRules=r}}),j0=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/applicability.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.shouldUseRule=e.shouldUseGroup=e.schemaHasRulesForType=void 0;function t({schema:r,self:i},a){const o=i.RULES.types[a];return o&&o!==!0&&n(r,o)}e.schemaHasRulesForType=t;function n(r,i){return i.rules.some(a=>u(r,a))}e.shouldUseGroup=n;function u(r,i){var a;return r[i.keyword]!==void 0||((a=i.definition.implements)===null||a===void 0?void 0:a.some(o=>r[o]!==void 0))}e.shouldUseRule=u}}),eu=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/dataType.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;var t=T0(),n=j0(),u=Qn(),r=pe(),i=De(),a;(function(v){v[v.Correct=0]="Correct",v[v.Wrong=1]="Wrong"})(a||(e.DataType=a={}));function o(v){const D=s(v.type);if(D.includes("null")){if(v.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!D.length&&v.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');v.nullable===!0&&D.push("null")}return D}e.getSchemaTypes=o;function s(v){const D=Array.isArray(v)?v:v?[v]:[];if(D.every(t.isJSONType))return D;throw new Error("type must be JSONType or JSONType[]: "+D.join(","))}e.getJSONTypes=s;function c(v,D){const{gen:C,data:w,opts:h}=v,y=d(D,h.coerceTypes),k=D.length>0&&!(y.length===0&&D.length===1&&(0,n.schemaHasRulesForType)(v,D[0]));if(k){const S=b(D,w,h.strictNumbers,a.Wrong);C.if(S,()=>{y.length?m(v,D,y):f(v)})}return k}e.coerceAndCheckDataType=c;var l=new Set(["string","number","integer","boolean","null"]);function d(v,D){return D?v.filter(C=>l.has(C)||D==="array"&&C==="array"):[]}function m(v,D,C){const{gen:w,data:h,opts:y}=v,k=w.let("dataType",(0,r._)`typeof ${h}`),S=w.let("coerced",(0,r._)`undefined`);y.coerceTypes==="array"&&w.if((0,r._)`${k} == 'object' && Array.isArray(${h}) && ${h}.length == 1`,()=>w.assign(h,(0,r._)`${h}[0]`).assign(k,(0,r._)`typeof ${h}`).if(b(D,h,y.strictNumbers),()=>w.assign(S,h))),w.if((0,r._)`${S} !== undefined`);for(const T of C)(l.has(T)||T==="array"&&y.coerceTypes==="array")&&I(T);w.else(),f(v),w.endIf(),w.if((0,r._)`${S} !== undefined`,()=>{w.assign(h,S),p(v,S)});function I(T){switch(T){case"string":w.elseIf((0,r._)`${k} == "number" || ${k} == "boolean"`).assign(S,(0,r._)`"" + ${h}`).elseIf((0,r._)`${h} === null`).assign(S,(0,r._)`""`);return;case"number":w.elseIf((0,r._)`${k} == "boolean" || ${h} === null
|
|
4
|
+
|| (${k} == "string" && ${h} && ${h} == +${h})`).assign(S,(0,r._)`+${h}`);return;case"integer":w.elseIf((0,r._)`${k} === "boolean" || ${h} === null
|
|
5
|
+
|| (${k} === "string" && ${h} && ${h} == +${h} && !(${h} % 1))`).assign(S,(0,r._)`+${h}`);return;case"boolean":w.elseIf((0,r._)`${h} === "false" || ${h} === 0 || ${h} === null`).assign(S,!1).elseIf((0,r._)`${h} === "true" || ${h} === 1`).assign(S,!0);return;case"null":w.elseIf((0,r._)`${h} === "" || ${h} === 0 || ${h} === false`),w.assign(S,null);return;case"array":w.elseIf((0,r._)`${k} === "string" || ${k} === "number"
|
|
6
|
+
|| ${k} === "boolean" || ${h} === null`).assign(S,(0,r._)`[${h}]`)}}}function p({gen:v,parentData:D,parentDataProperty:C},w){v.if((0,r._)`${D} !== undefined`,()=>v.assign((0,r._)`${D}[${C}]`,w))}function E(v,D,C,w=a.Correct){const h=w===a.Correct?r.operators.EQ:r.operators.NEQ;let y;switch(v){case"null":return(0,r._)`${D} ${h} null`;case"array":y=(0,r._)`Array.isArray(${D})`;break;case"object":y=(0,r._)`${D} && typeof ${D} == "object" && !Array.isArray(${D})`;break;case"integer":y=k((0,r._)`!(${D} % 1) && !isNaN(${D})`);break;case"number":y=k();break;default:return(0,r._)`typeof ${D} ${h} ${v}`}return w===a.Correct?y:(0,r.not)(y);function k(S=r.nil){return(0,r.and)((0,r._)`typeof ${D} == "number"`,S,C?(0,r._)`isFinite(${D})`:r.nil)}}e.checkDataType=E;function b(v,D,C,w){if(v.length===1)return E(v[0],D,C,w);let h;const y=(0,i.toHash)(v);if(y.array&&y.object){const k=(0,r._)`typeof ${D} != "object"`;h=y.null?k:(0,r._)`!${D} || ${k}`,delete y.null,delete y.array,delete y.object}else h=r.nil;y.number&&delete y.integer;for(const k in y)h=(0,r.and)(h,E(k,D,C,w));return h}e.checkDataTypes=b;var g={message:({schema:v})=>`must be ${v}`,params:({schema:v,schemaValue:D})=>typeof v=="string"?(0,r._)`{type: ${v}}`:(0,r._)`{type: ${D}}`};function f(v){const D=$(v);(0,u.reportError)(D,g)}e.reportTypeError=f;function $(v){const{gen:D,data:C,schema:w}=v,h=(0,i.schemaRefOrVal)(v,w,"type");return{gen:D,keyword:"type",data:C,schema:w.type,schemaCode:h,schemaValue:h,parentSchema:w,params:{},it:v}}}}),pv=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/defaults.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assignDefaults=void 0;var t=pe(),n=De();function u(i,a){const{properties:o,items:s}=i.schema;if(a==="object"&&o)for(const c in o)r(i,c,o[c].default);else a==="array"&&Array.isArray(s)&&s.forEach((c,l)=>r(i,l,c.default))}e.assignDefaults=u;function r(i,a,o){const{gen:s,compositeRule:c,data:l,opts:d}=i;if(o===void 0)return;const m=(0,t._)`${l}${(0,t.getProperty)(a)}`;if(c){(0,n.checkStrictMode)(i,`default is ignored for: ${m}`);return}let p=(0,t._)`${m} === undefined`;d.useDefaults==="empty"&&(p=(0,t._)`${p} || ${m} === null || ${m} === ""`),s.if(p,(0,t._)`${m} = ${(0,t.stringify)(o)}`)}}}),St=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/code.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateUnion=e.validateArray=e.usePattern=e.callValidateCode=e.schemaProperties=e.allSchemaProperties=e.noPropertyInData=e.propertyInData=e.isOwnProperty=e.hasPropFunc=e.reportMissingProp=e.checkMissingProp=e.checkReportMissingProp=void 0;var t=pe(),n=De(),u=tr(),r=De();function i(v,D){const{gen:C,data:w,it:h}=v;C.if(d(C,w,D,h.opts.ownProperties),()=>{v.setParams({missingProperty:(0,t._)`${D}`},!0),v.error()})}e.checkReportMissingProp=i;function a({gen:v,data:D,it:{opts:C}},w,h){return(0,t.or)(...w.map(y=>(0,t.and)(d(v,D,y,C.ownProperties),(0,t._)`${h} = ${y}`)))}e.checkMissingProp=a;function o(v,D){v.setParams({missingProperty:D},!0),v.error()}e.reportMissingProp=o;function s(v){return v.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,t._)`Object.prototype.hasOwnProperty`})}e.hasPropFunc=s;function c(v,D,C){return(0,t._)`${s(v)}.call(${D}, ${C})`}e.isOwnProperty=c;function l(v,D,C,w){const h=(0,t._)`${D}${(0,t.getProperty)(C)} !== undefined`;return w?(0,t._)`${h} && ${c(v,D,C)}`:h}e.propertyInData=l;function d(v,D,C,w){const h=(0,t._)`${D}${(0,t.getProperty)(C)} === undefined`;return w?(0,t.or)(h,(0,t.not)(c(v,D,C))):h}e.noPropertyInData=d;function m(v){return v?Object.keys(v).filter(D=>D!=="__proto__"):[]}e.allSchemaProperties=m;function p(v,D){return m(D).filter(C=>!(0,n.alwaysValidSchema)(v,D[C]))}e.schemaProperties=p;function E({schemaCode:v,data:D,it:{gen:C,topSchemaRef:w,schemaPath:h,errorPath:y},it:k},S,I,T){const j=T?(0,t._)`${v}, ${D}, ${w}${h}`:D,N=[[u.default.instancePath,(0,t.strConcat)(u.default.instancePath,y)],[u.default.parentData,k.parentData],[u.default.parentDataProperty,k.parentDataProperty],[u.default.rootData,u.default.rootData]];k.opts.dynamicRef&&N.push([u.default.dynamicAnchors,u.default.dynamicAnchors]);const Q=(0,t._)`${j}, ${C.object(...N)}`;return I!==t.nil?(0,t._)`${S}.call(${I}, ${Q})`:(0,t._)`${S}(${Q})`}e.callValidateCode=E;var b=(0,t._)`new RegExp`;function g({gen:v,it:{opts:D}},C){const w=D.unicodeRegExp?"u":"",{regExp:h}=D.code,y=h(C,w);return v.scopeValue("pattern",{key:y.toString(),ref:y,code:(0,t._)`${h.code==="new RegExp"?b:(0,r.useFunc)(v,h)}(${C}, ${w})`})}e.usePattern=g;function f(v){const{gen:D,data:C,keyword:w,it:h}=v,y=D.name("valid");if(h.allErrors){const S=D.let("valid",!0);return k(()=>D.assign(S,!1)),S}return D.var(y,!0),k(()=>D.break()),y;function k(S){const I=D.const("len",(0,t._)`${C}.length`);D.forRange("i",0,I,T=>{v.subschema({keyword:w,dataProp:T,dataPropType:n.Type.Num},y),D.if((0,t.not)(y),S)})}}e.validateArray=f;function $(v){const{gen:D,schema:C,keyword:w,it:h}=v;if(!Array.isArray(C))throw new Error("ajv implementation error");if(C.some(I=>(0,n.alwaysValidSchema)(h,I))&&!h.opts.unevaluated)return;const k=D.let("valid",!1),S=D.name("_valid");D.block(()=>C.forEach((I,T)=>{const j=v.subschema({keyword:w,schemaProp:T,compositeRule:!0},S);D.assign(k,(0,t._)`${k} || ${S}`),v.mergeValidEvaluated(j,S)||D.if((0,t.not)(k))})),v.result(k,()=>v.reset(),()=>v.error(!0))}e.validateUnion=$}}),vv=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/keyword.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateKeywordUsage=e.validSchemaType=e.funcKeywordCode=e.macroKeywordCode=void 0;var t=pe(),n=tr(),u=St(),r=Qn();function i(p,E){const{gen:b,keyword:g,schema:f,parentSchema:$,it:v}=p,D=E.macro.call(v.self,f,$,v),C=l(b,g,D);v.opts.validateSchema!==!1&&v.self.validateSchema(D,!0);const w=b.name("valid");p.subschema({schema:D,schemaPath:t.nil,errSchemaPath:`${v.errSchemaPath}/${g}`,topSchemaRef:C,compositeRule:!0},w),p.pass(w,()=>p.error(!0))}e.macroKeywordCode=i;function a(p,E){var b;const{gen:g,keyword:f,schema:$,parentSchema:v,$data:D,it:C}=p;c(C,E);const w=!D&&E.compile?E.compile.call(C.self,$,v,C):E.validate,h=l(g,f,w),y=g.let("valid");p.block$data(y,k),p.ok((b=E.valid)!==null&&b!==void 0?b:y);function k(){if(E.errors===!1)T(),E.modifying&&o(p),j(()=>p.error());else{const N=E.async?S():I();E.modifying&&o(p),j(()=>s(p,N))}}function S(){const N=g.let("ruleErrs",null);return g.try(()=>T((0,t._)`await `),Q=>g.assign(y,!1).if((0,t._)`${Q} instanceof ${C.ValidationError}`,()=>g.assign(N,(0,t._)`${Q}.errors`),()=>g.throw(Q))),N}function I(){const N=(0,t._)`${h}.errors`;return g.assign(N,null),T(t.nil),N}function T(N=E.async?(0,t._)`await `:t.nil){const Q=C.opts.passContext?n.default.this:n.default.self,de=!("compile"in E&&!D||E.schema===!1);g.assign(y,(0,t._)`${N}${(0,u.callValidateCode)(p,h,Q,de)}`,E.modifying)}function j(N){var Q;g.if((0,t.not)((Q=E.valid)!==null&&Q!==void 0?Q:y),N)}}e.funcKeywordCode=a;function o(p){const{gen:E,data:b,it:g}=p;E.if(g.parentData,()=>E.assign(b,(0,t._)`${g.parentData}[${g.parentDataProperty}]`))}function s(p,E){const{gen:b}=p;b.if((0,t._)`Array.isArray(${E})`,()=>{b.assign(n.default.vErrors,(0,t._)`${n.default.vErrors} === null ? ${E} : ${n.default.vErrors}.concat(${E})`).assign(n.default.errors,(0,t._)`${n.default.vErrors}.length`),(0,r.extendErrors)(p)},()=>p.error())}function c({schemaEnv:p},E){if(E.async&&!p.$async)throw new Error("async keyword in sync schema")}function l(p,E,b){if(b===void 0)throw new Error(`keyword "${E}" failed to compile`);return p.scopeValue("keyword",typeof b=="function"?{ref:b}:{ref:b,code:(0,t.stringify)(b)})}function d(p,E,b=!1){return!E.length||E.some(g=>g==="array"?Array.isArray(p):g==="object"?p&&typeof p=="object"&&!Array.isArray(p):typeof p==g||b&&typeof p>"u")}e.validSchemaType=d;function m({schema:p,opts:E,self:b,errSchemaPath:g},f,$){if(Array.isArray(f.keyword)?!f.keyword.includes($):f.keyword!==$)throw new Error("ajv implementation error");const v=f.dependencies;if(v?.some(D=>!Object.prototype.hasOwnProperty.call(p,D)))throw new Error(`parent schema must have dependencies of ${$}: ${v.join(",")}`);if(f.validateSchema&&!f.validateSchema(p[$])){const C=`keyword "${$}" value is invalid at path "${g}": `+b.errorsText(f.validateSchema.errors);if(E.validateSchema==="log")b.logger.error(C);else throw new Error(C)}}e.validateKeywordUsage=m}}),gv=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/subschema.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.extendSubschemaMode=e.extendSubschemaData=e.getSubschema=void 0;var t=pe(),n=De();function u(a,{keyword:o,schemaProp:s,schema:c,schemaPath:l,errSchemaPath:d,topSchemaRef:m}){if(o!==void 0&&c!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(o!==void 0){const p=a.schema[o];return s===void 0?{schema:p,schemaPath:(0,t._)`${a.schemaPath}${(0,t.getProperty)(o)}`,errSchemaPath:`${a.errSchemaPath}/${o}`}:{schema:p[s],schemaPath:(0,t._)`${a.schemaPath}${(0,t.getProperty)(o)}${(0,t.getProperty)(s)}`,errSchemaPath:`${a.errSchemaPath}/${o}/${(0,n.escapeFragment)(s)}`}}if(c!==void 0){if(l===void 0||d===void 0||m===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:c,schemaPath:l,topSchemaRef:m,errSchemaPath:d}}throw new Error('either "keyword" or "schema" must be passed')}e.getSubschema=u;function r(a,o,{dataProp:s,dataPropType:c,data:l,dataTypes:d,propertyName:m}){if(l!==void 0&&s!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:p}=o;if(s!==void 0){const{errorPath:b,dataPathArr:g,opts:f}=o,$=p.let("data",(0,t._)`${o.data}${(0,t.getProperty)(s)}`,!0);E($),a.errorPath=(0,t.str)`${b}${(0,n.getErrorPath)(s,c,f.jsPropertySyntax)}`,a.parentDataProperty=(0,t._)`${s}`,a.dataPathArr=[...g,a.parentDataProperty]}if(l!==void 0){const b=l instanceof t.Name?l:p.let("data",l,!0);E(b),m!==void 0&&(a.propertyName=m)}d&&(a.dataTypes=d);function E(b){a.data=b,a.dataLevel=o.dataLevel+1,a.dataTypes=[],o.definedProperties=new Set,a.parentData=o.data,a.dataNames=[...o.dataNames,b]}}e.extendSubschemaData=r;function i(a,{jtdDiscriminator:o,jtdMetadata:s,compositeRule:c,createErrors:l,allErrors:d}){c!==void 0&&(a.compositeRule=c),l!==void 0&&(a.createErrors=l),d!==void 0&&(a.allErrors=d),a.jtdDiscriminator=o,a.jtdMetadata=s}e.extendSubschemaMode=i}}),P0=G({"../../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js"(e,t){"use strict";t.exports=function n(u,r){if(u===r)return!0;if(u&&r&&typeof u=="object"&&typeof r=="object"){if(u.constructor!==r.constructor)return!1;var i,a,o;if(Array.isArray(u)){if(i=u.length,i!=r.length)return!1;for(a=i;a--!==0;)if(!n(u[a],r[a]))return!1;return!0}if(u.constructor===RegExp)return u.source===r.source&&u.flags===r.flags;if(u.valueOf!==Object.prototype.valueOf)return u.valueOf()===r.valueOf();if(u.toString!==Object.prototype.toString)return u.toString()===r.toString();if(o=Object.keys(u),i=o.length,i!==Object.keys(r).length)return!1;for(a=i;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[a]))return!1;for(a=i;a--!==0;){var s=o[a];if(!n(u[s],r[s]))return!1}return!0}return u!==u&&r!==r}}}),_v=G({"../../node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js"(e,t){"use strict";var n=t.exports=function(i,a,o){typeof a=="function"&&(o=a,a={}),o=a.cb||o;var s=typeof o=="function"?o:o.pre||function(){},c=o.post||function(){};u(a,s,c,i,"",i)};n.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},n.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},n.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},n.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function u(i,a,o,s,c,l,d,m,p,E){if(s&&typeof s=="object"&&!Array.isArray(s)){a(s,c,l,d,m,p,E);for(var b in s){var g=s[b];if(Array.isArray(g)){if(b in n.arrayKeywords)for(var f=0;f<g.length;f++)u(i,a,o,g[f],c+"/"+b+"/"+f,l,c,b,s,f)}else if(b in n.propsKeywords){if(g&&typeof g=="object")for(var $ in g)u(i,a,o,g[$],c+"/"+b+"/"+r($),l,c,b,s,$)}else(b in n.keywords||i.allKeys&&!(b in n.skipKeywords))&&u(i,a,o,g,c+"/"+b,l,c,b,s)}o(s,c,l,d,m,p,E)}}function r(i){return i.replace(/~/g,"~0").replace(/\//g,"~1")}}}),tu=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/resolve.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSchemaRefs=e.resolveUrl=e.normalizeId=e._getFullPath=e.getFullPath=e.inlineRef=void 0;var t=De(),n=P0(),u=_v(),r=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function i(g,f=!0){return typeof g=="boolean"?!0:f===!0?!o(g):f?s(g)<=f:!1}e.inlineRef=i;var a=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function o(g){for(const f in g){if(a.has(f))return!0;const $=g[f];if(Array.isArray($)&&$.some(o)||typeof $=="object"&&o($))return!0}return!1}function s(g){let f=0;for(const $ in g){if($==="$ref")return 1/0;if(f++,!r.has($)&&(typeof g[$]=="object"&&(0,t.eachItem)(g[$],v=>f+=s(v)),f===1/0))return 1/0}return f}function c(g,f="",$){$!==!1&&(f=m(f));const v=g.parse(f);return l(g,v)}e.getFullPath=c;function l(g,f){return g.serialize(f).split("#")[0]+"#"}e._getFullPath=l;var d=/#\/?$/;function m(g){return g?g.replace(d,""):""}e.normalizeId=m;function p(g,f,$){return $=m($),g.resolve(f,$)}e.resolveUrl=p;var E=/^[a-z_][-a-z0-9._]*$/i;function b(g,f){if(typeof g=="boolean")return{};const{schemaId:$,uriResolver:v}=this.opts,D=m(g[$]||f),C={"":D},w=c(v,D,!1),h={},y=new Set;return u(g,{allKeys:!0},(I,T,j,N)=>{if(N===void 0)return;const Q=w+T;let de=C[N];typeof I[$]=="string"&&(de=je.call(this,I[$])),Oe.call(this,I.$anchor),Oe.call(this,I.$dynamicAnchor),C[T]=de;function je(be){const B=this.opts.uriResolver.resolve;if(be=m(de?B(de,be):be),y.has(be))throw S(be);y.add(be);let R=this.refs[be];return typeof R=="string"&&(R=this.refs[R]),typeof R=="object"?k(I,R.schema,be):be!==m(Q)&&(be[0]==="#"?(k(I,h[be],be),h[be]=I):this.refs[be]=Q),be}function Oe(be){if(typeof be=="string"){if(!E.test(be))throw new Error(`invalid anchor "${be}"`);je.call(this,`#${be}`)}}}),h;function k(I,T,j){if(T!==void 0&&!n(I,T))throw S(j)}function S(I){return new Error(`reference "${I}" resolves to more than one schema`)}}e.getSchemaRefs=b}}),ru=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/index.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getData=e.KeywordCxt=e.validateFunctionCode=void 0;var t=mv(),n=eu(),u=j0(),r=eu(),i=pv(),a=vv(),o=gv(),s=pe(),c=tr(),l=tu(),d=De(),m=Qn();function p(A){if(w(A)&&(y(A),C(A))){f(A);return}E(A,()=>(0,t.topBoolOrEmptySchema)(A))}e.validateFunctionCode=p;function E({gen:A,validateName:O,schema:Z,schemaEnv:ne,opts:ie},ve){ie.code.es5?A.func(O,(0,s._)`${c.default.data}, ${c.default.valCxt}`,ne.$async,()=>{A.code((0,s._)`"use strict"; ${v(Z,ie)}`),g(A,ie),A.code(ve)}):A.func(O,(0,s._)`${c.default.data}, ${b(ie)}`,ne.$async,()=>A.code(v(Z,ie)).code(ve))}function b(A){return(0,s._)`{${c.default.instancePath}="", ${c.default.parentData}, ${c.default.parentDataProperty}, ${c.default.rootData}=${c.default.data}${A.dynamicRef?(0,s._)`, ${c.default.dynamicAnchors}={}`:s.nil}}={}`}function g(A,O){A.if(c.default.valCxt,()=>{A.var(c.default.instancePath,(0,s._)`${c.default.valCxt}.${c.default.instancePath}`),A.var(c.default.parentData,(0,s._)`${c.default.valCxt}.${c.default.parentData}`),A.var(c.default.parentDataProperty,(0,s._)`${c.default.valCxt}.${c.default.parentDataProperty}`),A.var(c.default.rootData,(0,s._)`${c.default.valCxt}.${c.default.rootData}`),O.dynamicRef&&A.var(c.default.dynamicAnchors,(0,s._)`${c.default.valCxt}.${c.default.dynamicAnchors}`)},()=>{A.var(c.default.instancePath,(0,s._)`""`),A.var(c.default.parentData,(0,s._)`undefined`),A.var(c.default.parentDataProperty,(0,s._)`undefined`),A.var(c.default.rootData,c.default.data),O.dynamicRef&&A.var(c.default.dynamicAnchors,(0,s._)`{}`)})}function f(A){const{schema:O,opts:Z,gen:ne}=A;E(A,()=>{Z.$comment&&O.$comment&&N(A),I(A),ne.let(c.default.vErrors,null),ne.let(c.default.errors,0),Z.unevaluated&&$(A),k(A),Q(A)})}function $(A){const{gen:O,validateName:Z}=A;A.evaluated=O.const("evaluated",(0,s._)`${Z}.evaluated`),O.if((0,s._)`${A.evaluated}.dynamicProps`,()=>O.assign((0,s._)`${A.evaluated}.props`,(0,s._)`undefined`)),O.if((0,s._)`${A.evaluated}.dynamicItems`,()=>O.assign((0,s._)`${A.evaluated}.items`,(0,s._)`undefined`))}function v(A,O){const Z=typeof A=="object"&&A[O.schemaId];return Z&&(O.code.source||O.code.process)?(0,s._)`/*# sourceURL=${Z} */`:s.nil}function D(A,O){if(w(A)&&(y(A),C(A))){h(A,O);return}(0,t.boolOrEmptySchema)(A,O)}function C({schema:A,self:O}){if(typeof A=="boolean")return!A;for(const Z in A)if(O.RULES.all[Z])return!0;return!1}function w(A){return typeof A.schema!="boolean"}function h(A,O){const{schema:Z,gen:ne,opts:ie}=A;ie.$comment&&Z.$comment&&N(A),T(A),j(A);const ve=ne.const("_errs",c.default.errors);k(A,ve),ne.var(O,(0,s._)`${ve} === ${c.default.errors}`)}function y(A){(0,d.checkUnknownRules)(A),S(A)}function k(A,O){if(A.opts.jtd)return je(A,[],!1,O);const Z=(0,n.getSchemaTypes)(A.schema),ne=(0,n.coerceAndCheckDataType)(A,Z);je(A,Z,!ne,O)}function S(A){const{schema:O,errSchemaPath:Z,opts:ne,self:ie}=A;O.$ref&&ne.ignoreKeywordsWithRef&&(0,d.schemaHasRulesButRef)(O,ie.RULES)&&ie.logger.warn(`$ref: keywords ignored in schema at path "${Z}"`)}function I(A){const{schema:O,opts:Z}=A;O.default!==void 0&&Z.useDefaults&&Z.strictSchema&&(0,d.checkStrictMode)(A,"default is ignored in the schema root")}function T(A){const O=A.schema[A.opts.schemaId];O&&(A.baseId=(0,l.resolveUrl)(A.opts.uriResolver,A.baseId,O))}function j(A){if(A.schema.$async&&!A.schemaEnv.$async)throw new Error("async schema in sync schema")}function N({gen:A,schemaEnv:O,schema:Z,errSchemaPath:ne,opts:ie}){const ve=Z.$comment;if(ie.$comment===!0)A.code((0,s._)`${c.default.self}.logger.log(${ve})`);else if(typeof ie.$comment=="function"){const et=(0,s.str)`${ne}/$comment`,dt=A.scopeValue("root",{ref:O.root});A.code((0,s._)`${c.default.self}.opts.$comment(${ve}, ${et}, ${dt}.schema)`)}}function Q(A){const{gen:O,schemaEnv:Z,validateName:ne,ValidationError:ie,opts:ve}=A;Z.$async?O.if((0,s._)`${c.default.errors} === 0`,()=>O.return(c.default.data),()=>O.throw((0,s._)`new ${ie}(${c.default.vErrors})`)):(O.assign((0,s._)`${ne}.errors`,c.default.vErrors),ve.unevaluated&&de(A),O.return((0,s._)`${c.default.errors} === 0`))}function de({gen:A,evaluated:O,props:Z,items:ne}){Z instanceof s.Name&&A.assign((0,s._)`${O}.props`,Z),ne instanceof s.Name&&A.assign((0,s._)`${O}.items`,ne)}function je(A,O,Z,ne){const{gen:ie,schema:ve,data:et,allErrors:dt,opts:Pt,self:it}=A,{RULES:Je}=it;if(ve.$ref&&(Pt.ignoreKeywordsWithRef||!(0,d.schemaHasRulesButRef)(ve,Je))){ie.block(()=>Ee(A,"$ref",Je.all.$ref.definition));return}Pt.jtd||be(A,O),ie.block(()=>{for(const _t of Je.rules)Ar(_t);Ar(Je.post)});function Ar(_t){(0,u.shouldUseGroup)(ve,_t)&&(_t.type?(ie.if((0,r.checkDataType)(_t.type,et,Pt.strictNumbers)),Oe(A,_t),O.length===1&&O[0]===_t.type&&Z&&(ie.else(),(0,r.reportTypeError)(A)),ie.endIf()):Oe(A,_t),dt||ie.if((0,s._)`${c.default.errors} === ${ne||0}`))}}function Oe(A,O){const{gen:Z,schema:ne,opts:{useDefaults:ie}}=A;ie&&(0,i.assignDefaults)(A,O.type),Z.block(()=>{for(const ve of O.rules)(0,u.shouldUseRule)(ne,ve)&&Ee(A,ve.keyword,ve.definition,O.type)})}function be(A,O){A.schemaEnv.meta||!A.opts.strictTypes||(B(A,O),A.opts.allowUnionTypes||R(A,O),U(A,A.dataTypes))}function B(A,O){if(O.length){if(!A.dataTypes.length){A.dataTypes=O;return}O.forEach(Z=>{x(A.dataTypes,Z)||H(A,`type "${Z}" not allowed by context "${A.dataTypes.join(",")}"`)}),P(A,O)}}function R(A,O){O.length>1&&!(O.length===2&&O.includes("null"))&&H(A,"use allowUnionTypes to allow union type keyword")}function U(A,O){const Z=A.self.RULES.all;for(const ne in Z){const ie=Z[ne];if(typeof ie=="object"&&(0,u.shouldUseRule)(A.schema,ie)){const{type:ve}=ie.definition;ve.length&&!ve.some(et=>_(O,et))&&H(A,`missing type "${ve.join(",")}" for keyword "${ne}"`)}}}function _(A,O){return A.includes(O)||O==="number"&&A.includes("integer")}function x(A,O){return A.includes(O)||O==="integer"&&A.includes("number")}function P(A,O){const Z=[];for(const ne of A.dataTypes)x(O,ne)?Z.push(ne):O.includes("integer")&&ne==="number"&&Z.push("integer");A.dataTypes=Z}function H(A,O){const Z=A.schemaEnv.baseId+A.errSchemaPath;O+=` at "${Z}" (strictTypes)`,(0,d.checkStrictMode)(A,O,A.opts.strictTypes)}var se=class{constructor(A,O,Z){if((0,a.validateKeywordUsage)(A,O,Z),this.gen=A.gen,this.allErrors=A.allErrors,this.keyword=Z,this.data=A.data,this.schema=A.schema[Z],this.$data=O.$data&&A.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,d.schemaRefOrVal)(A,this.schema,Z,this.$data),this.schemaType=O.schemaType,this.parentSchema=A.schema,this.params={},this.it=A,this.def=O,this.$data)this.schemaCode=A.gen.const("vSchema",Lt(this.$data,A));else if(this.schemaCode=this.schemaValue,!(0,a.validSchemaType)(this.schema,O.schemaType,O.allowUndefined))throw new Error(`${Z} value must be ${JSON.stringify(O.schemaType)}`);("code"in O?O.trackErrors:O.errors!==!1)&&(this.errsCount=A.gen.const("_errs",c.default.errors))}result(A,O,Z){this.failResult((0,s.not)(A),O,Z)}failResult(A,O,Z){this.gen.if(A),Z?Z():this.error(),O?(this.gen.else(),O(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(A,O){this.failResult((0,s.not)(A),void 0,O)}fail(A){if(A===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(A),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(A){if(!this.$data)return this.fail(A);const{schemaCode:O}=this;this.fail((0,s._)`${O} !== undefined && (${(0,s.or)(this.invalid$data(),A)})`)}error(A,O,Z){if(O){this.setParams(O),this._error(A,Z),this.setParams({});return}this._error(A,Z)}_error(A,O){(A?m.reportExtraError:m.reportError)(this,this.def.error,O)}$dataError(){(0,m.reportError)(this,this.def.$dataError||m.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,m.resetErrorsCount)(this.gen,this.errsCount)}ok(A){this.allErrors||this.gen.if(A)}setParams(A,O){O?Object.assign(this.params,A):this.params=A}block$data(A,O,Z=s.nil){this.gen.block(()=>{this.check$data(A,Z),O()})}check$data(A=s.nil,O=s.nil){if(!this.$data)return;const{gen:Z,schemaCode:ne,schemaType:ie,def:ve}=this;Z.if((0,s.or)((0,s._)`${ne} === undefined`,O)),A!==s.nil&&Z.assign(A,!0),(ie.length||ve.validateSchema)&&(Z.elseIf(this.invalid$data()),this.$dataError(),A!==s.nil&&Z.assign(A,!1)),Z.else()}invalid$data(){const{gen:A,schemaCode:O,schemaType:Z,def:ne,it:ie}=this;return(0,s.or)(ve(),et());function ve(){if(Z.length){if(!(O instanceof s.Name))throw new Error("ajv implementation error");const dt=Array.isArray(Z)?Z:[Z];return(0,s._)`${(0,r.checkDataTypes)(dt,O,ie.opts.strictNumbers,r.DataType.Wrong)}`}return s.nil}function et(){if(ne.validateSchema){const dt=A.scopeValue("validate$data",{ref:ne.validateSchema});return(0,s._)`!${dt}(${O})`}return s.nil}}subschema(A,O){const Z=(0,o.getSubschema)(this.it,A);(0,o.extendSubschemaData)(Z,this.it,A),(0,o.extendSubschemaMode)(Z,A);const ne={...this.it,...Z,items:void 0,props:void 0};return D(ne,O),ne}mergeEvaluated(A,O){const{it:Z,gen:ne}=this;Z.opts.unevaluated&&(Z.props!==!0&&A.props!==void 0&&(Z.props=d.mergeEvaluated.props(ne,A.props,Z.props,O)),Z.items!==!0&&A.items!==void 0&&(Z.items=d.mergeEvaluated.items(ne,A.items,Z.items,O)))}mergeValidEvaluated(A,O){const{it:Z,gen:ne}=this;if(Z.opts.unevaluated&&(Z.props!==!0||Z.items!==!0))return ne.if(O,()=>this.mergeEvaluated(A,s.Name)),!0}};e.KeywordCxt=se;function Ee(A,O,Z,ne){const ie=new se(A,Z,O);"code"in Z?Z.code(ie,ne):ie.$data&&Z.validate?(0,a.funcKeywordCode)(ie,Z):"macro"in Z?(0,a.macroKeywordCode)(ie,Z):(Z.compile||Z.validate)&&(0,a.funcKeywordCode)(ie,Z)}var ce=/^\/(?:[^~]|~0|~1)*$/,Re=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Lt(A,{dataLevel:O,dataNames:Z,dataPathArr:ne}){let ie,ve;if(A==="")return c.default.rootData;if(A[0]==="/"){if(!ce.test(A))throw new Error(`Invalid JSON-pointer: ${A}`);ie=A,ve=c.default.rootData}else{const it=Re.exec(A);if(!it)throw new Error(`Invalid JSON-pointer: ${A}`);const Je=+it[1];if(ie=it[2],ie==="#"){if(Je>=O)throw new Error(Pt("property/index",Je));return ne[O-Je]}if(Je>O)throw new Error(Pt("data",Je));if(ve=Z[O-Je],!ie)return ve}let et=ve;const dt=ie.split("/");for(const it of dt)it&&(ve=(0,s._)`${ve}${(0,s.getProperty)((0,d.unescapeJsonPointer)(it))}`,et=(0,s._)`${et} && ${ve}`);return et;function Pt(it,Je){return`Cannot access ${it} ${Je} levels up, current level is ${O}`}}e.getData=Lt}}),sa=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/validation_error.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=class extends Error{constructor(n){super("validation failed"),this.errors=n,this.ajv=this.validation=!0}};e.default=t}}),nu=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/ref_error.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=tu(),n=class extends Error{constructor(u,r,i,a){super(a||`can't resolve reference ${i} from id ${r}`),this.missingRef=(0,t.resolveUrl)(u,r,i),this.missingSchema=(0,t.normalizeId)((0,t.getFullPath)(u,this.missingRef))}};e.default=n}}),ca=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/index.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resolveSchema=e.getCompilingSchema=e.resolveRef=e.compileSchema=e.SchemaEnv=void 0;var t=pe(),n=sa(),u=tr(),r=tu(),i=De(),a=ru(),o=class{constructor(f){var $;this.refs={},this.dynamicAnchors={};let v;typeof f.schema=="object"&&(v=f.schema),this.schema=f.schema,this.schemaId=f.schemaId,this.root=f.root||this,this.baseId=($=f.baseId)!==null&&$!==void 0?$:(0,r.normalizeId)(v?.[f.schemaId||"$id"]),this.schemaPath=f.schemaPath,this.localRefs=f.localRefs,this.meta=f.meta,this.$async=v?.$async,this.refs={}}};e.SchemaEnv=o;function s(f){const $=d.call(this,f);if($)return $;const v=(0,r.getFullPath)(this.opts.uriResolver,f.root.baseId),{es5:D,lines:C}=this.opts.code,{ownProperties:w}=this.opts,h=new t.CodeGen(this.scope,{es5:D,lines:C,ownProperties:w});let y;f.$async&&(y=h.scopeValue("Error",{ref:n.default,code:(0,t._)`require("ajv/dist/runtime/validation_error").default`}));const k=h.scopeName("validate");f.validateName=k;const S={gen:h,allErrors:this.opts.allErrors,data:u.default.data,parentData:u.default.parentData,parentDataProperty:u.default.parentDataProperty,dataNames:[u.default.data],dataPathArr:[t.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:h.scopeValue("schema",this.opts.code.source===!0?{ref:f.schema,code:(0,t.stringify)(f.schema)}:{ref:f.schema}),validateName:k,ValidationError:y,schema:f.schema,schemaEnv:f,rootId:v,baseId:f.baseId||v,schemaPath:t.nil,errSchemaPath:f.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,t._)`""`,opts:this.opts,self:this};let I;try{this._compilations.add(f),(0,a.validateFunctionCode)(S),h.optimize(this.opts.code.optimize);const T=h.toString();I=`${h.scopeRefs(u.default.scope)}return ${T}`,this.opts.code.process&&(I=this.opts.code.process(I,f));const N=new Function(`${u.default.self}`,`${u.default.scope}`,I)(this,this.scope.get());if(this.scope.value(k,{ref:N}),N.errors=null,N.schema=f.schema,N.schemaEnv=f,f.$async&&(N.$async=!0),this.opts.code.source===!0&&(N.source={validateName:k,validateCode:T,scopeValues:h._values}),this.opts.unevaluated){const{props:Q,items:de}=S;N.evaluated={props:Q instanceof t.Name?void 0:Q,items:de instanceof t.Name?void 0:de,dynamicProps:Q instanceof t.Name,dynamicItems:de instanceof t.Name},N.source&&(N.source.evaluated=(0,t.stringify)(N.evaluated))}return f.validate=N,f}catch(T){throw delete f.validate,delete f.validateName,I&&this.logger.error("Error compiling schema, function code:",I),T}finally{this._compilations.delete(f)}}e.compileSchema=s;function c(f,$,v){var D;v=(0,r.resolveUrl)(this.opts.uriResolver,$,v);const C=f.refs[v];if(C)return C;let w=p.call(this,f,v);if(w===void 0){const h=(D=f.localRefs)===null||D===void 0?void 0:D[v],{schemaId:y}=this.opts;h&&(w=new o({schema:h,schemaId:y,root:f,baseId:$}))}if(w!==void 0)return f.refs[v]=l.call(this,w)}e.resolveRef=c;function l(f){return(0,r.inlineRef)(f.schema,this.opts.inlineRefs)?f.schema:f.validate?f:s.call(this,f)}function d(f){for(const $ of this._compilations)if(m($,f))return $}e.getCompilingSchema=d;function m(f,$){return f.schema===$.schema&&f.root===$.root&&f.baseId===$.baseId}function p(f,$){let v;for(;typeof(v=this.refs[$])=="string";)$=v;return v||this.schemas[$]||E.call(this,f,$)}function E(f,$){const v=this.opts.uriResolver.parse($),D=(0,r._getFullPath)(this.opts.uriResolver,v);let C=(0,r.getFullPath)(this.opts.uriResolver,f.baseId,void 0);if(Object.keys(f.schema).length>0&&D===C)return g.call(this,v,f);const w=(0,r.normalizeId)(D),h=this.refs[w]||this.schemas[w];if(typeof h=="string"){const y=E.call(this,f,h);return typeof y?.schema!="object"?void 0:g.call(this,v,y)}if(typeof h?.schema=="object"){if(h.validate||s.call(this,h),w===(0,r.normalizeId)($)){const{schema:y}=h,{schemaId:k}=this.opts,S=y[k];return S&&(C=(0,r.resolveUrl)(this.opts.uriResolver,C,S)),new o({schema:y,schemaId:k,root:f,baseId:C})}return g.call(this,v,h)}}e.resolveSchema=E;var b=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function g(f,{baseId:$,schema:v,root:D}){var C;if(((C=f.fragment)===null||C===void 0?void 0:C[0])!=="/")return;for(const y of f.fragment.slice(1).split("/")){if(typeof v=="boolean")return;const k=v[(0,i.unescapeFragment)(y)];if(k===void 0)return;v=k;const S=typeof v=="object"&&v[this.opts.schemaId];!b.has(y)&&S&&($=(0,r.resolveUrl)(this.opts.uriResolver,$,S))}let w;if(typeof v!="boolean"&&v.$ref&&!(0,i.schemaHasRulesButRef)(v,this.RULES)){const y=(0,r.resolveUrl)(this.opts.uriResolver,$,v.$ref);w=E.call(this,D,y)}const{schemaId:h}=this.opts;if(w=w||new o({schema:v,schemaId:h,root:D,baseId:$}),w.schema!==w.root.schema)return w}}}),yv=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/data.json"(e,t){t.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}}}),z0=G({"../../node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/utils.js"(e,t){"use strict";var n=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),u=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),r=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),i=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),a=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function o(h){let y="",k=0,S=0;for(S=0;S<h.length;S++)if(k=h[S].charCodeAt(0),k!==48){if(!(k>=48&&k<=57||k>=65&&k<=70||k>=97&&k<=102))return"";y+=h[S];break}for(S+=1;S<h.length;S++){if(k=h[S].charCodeAt(0),!(k>=48&&k<=57||k>=65&&k<=70||k>=97&&k<=102))return"";y+=h[S]}return y}var s=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function c(h){return h.length=0,!0}function l(h,y,k){if(h.length){const S=o(h);if(S!=="")y.push(S);else return k.error=!0,!1;h.length=0}return!0}function d(h){let y=0;const k={error:!1,address:"",zone:""},S=[],I=[];let T=!1,j=!1,N=l;for(let Q=0;Q<h.length;Q++){const de=h[Q];if(!(de==="["||de==="]"))if(de===":"){if(T===!0&&(j=!0),!N(I,S,k))break;if(++y>7){k.error=!0;break}Q>0&&h[Q-1]===":"&&(T=!0),S.push(":");continue}else if(de==="%"){if(!N(I,S,k))break;N=c}else{I.push(de);continue}}return I.length&&(N===c?k.zone=I.join(""):j?S.push(I.join("")):S.push(o(I))),k.address=S.join(""),k}function m(h){if(p(h,":")<2)return{host:h,isIPV6:!1};const y=d(h);if(y.error)return{host:h,isIPV6:!1};{let k=y.address,S=y.address;return y.zone&&(k+="%"+y.zone,S+="%25"+y.zone),{host:k,isIPV6:!0,escapedHost:S}}}function p(h,y){let k=0;for(let S=0;S<h.length;S++)h[S]===y&&k++;return k}function E(h){let y=h;const k=[];let S=-1,I=0;for(;I=y.length;){if(I===1){if(y===".")break;if(y==="/"){k.push("/");break}else{k.push(y);break}}else if(I===2){if(y[0]==="."){if(y[1]===".")break;if(y[1]==="/"){y=y.slice(2);continue}}else if(y[0]==="/"&&(y[1]==="."||y[1]==="/")){k.push("/");break}}else if(I===3&&y==="/.."){k.length!==0&&k.pop(),k.push("/");break}if(y[0]==="."){if(y[1]==="."){if(y[2]==="/"){y=y.slice(3);continue}}else if(y[1]==="/"){y=y.slice(2);continue}}else if(y[0]==="/"&&y[1]==="."){if(y[2]==="/"){y=y.slice(2);continue}else if(y[2]==="."&&y[3]==="/"){y=y.slice(3),k.length!==0&&k.pop();continue}}if((S=y.indexOf("/",1))===-1){k.push(y);break}else k.push(y.slice(0,S)),y=y.slice(S)}return k.join("")}var b={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},g=/[@/?#:]/g,f=/[@/?#]/g;function $(h,y){const k=y?f:g;return k.lastIndex=0,h.replace(k,S=>b[S])}function v(h,y=!1){if(h.indexOf("%")===-1)return h;let k="";for(let S=0;S<h.length;S++){if(h[S]==="%"&&S+2<h.length){const I=h.slice(S+1,S+3);if(r(I)){const T=I.toUpperCase(),j=String.fromCharCode(parseInt(T,16));y&&i(j)?k+=j:k+="%"+T,S+=2;continue}}k+=h[S]}return k}function D(h){let y="";for(let k=0;k<h.length;k++){if(h[k]==="%"&&k+2<h.length){const S=h.slice(k+1,k+3);if(r(S)){const I=S.toUpperCase(),T=String.fromCharCode(parseInt(I,16));T!=="."&&i(T)?y+=T:y+="%"+I,k+=2;continue}}a(h[k])?y+=h[k]:y+=escape(h[k])}return y}function C(h){let y="";for(let k=0;k<h.length;k++){if(h[k]==="%"&&k+2<h.length){const S=h.slice(k+1,k+3);if(r(S)){y+="%"+S.toUpperCase(),k+=2;continue}}y+=escape(h[k])}return y}function w(h){const y=[];if(h.userinfo!==void 0&&(y.push(h.userinfo),y.push("@")),h.host!==void 0){let k=unescape(h.host);if(!u(k)){const S=m(k);S.isIPV6===!0?k=`[${S.escapedHost}]`:k=$(k,!1)}y.push(k)}return(typeof h.port=="number"||typeof h.port=="string")&&(y.push(":"),y.push(String(h.port))),y.length?y.join(""):void 0}t.exports={nonSimpleDomain:s,recomposeAuthority:w,reescapeHostDelimiters:$,normalizePercentEncoding:v,normalizePathEncoding:D,escapePreservingEscapes:C,removeDotSegments:E,isIPv4:u,isUUID:n,normalizeIPv6:m,stringArrayToHexStripped:o}}}),Ev=G({"../../node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/schemes.js"(e,t){"use strict";var{isUUID:n}=z0(),u=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,r=["http","https","ws","wss","urn","urn:uuid"];function i(h){return r.indexOf(h)!==-1}function a(h){return h.secure===!0?!0:h.secure===!1?!1:h.scheme?h.scheme.length===3&&(h.scheme[0]==="w"||h.scheme[0]==="W")&&(h.scheme[1]==="s"||h.scheme[1]==="S")&&(h.scheme[2]==="s"||h.scheme[2]==="S"):!1}function o(h){return h.host||(h.error=h.error||"HTTP URIs must have a host."),h}function s(h){const y=String(h.scheme).toLowerCase()==="https";return(h.port===(y?443:80)||h.port==="")&&(h.port=void 0),h.path||(h.path="/"),h}function c(h){return h.secure=a(h),h.resourceName=(h.path||"/")+(h.query?"?"+h.query:""),h.path=void 0,h.query=void 0,h}function l(h){if((h.port===(a(h)?443:80)||h.port==="")&&(h.port=void 0),typeof h.secure=="boolean"&&(h.scheme=h.secure?"wss":"ws",h.secure=void 0),h.resourceName){const[y,k]=h.resourceName.split("?");h.path=y&&y!=="/"?y:void 0,h.query=k,h.resourceName=void 0}return h.fragment=void 0,h}function d(h,y){if(!h.path)return h.error="URN can not be parsed",h;const k=h.path.match(u);if(k){const S=y.scheme||h.scheme||"urn";h.nid=k[1].toLowerCase(),h.nss=k[2];const I=`${S}:${y.nid||h.nid}`,T=w(I);h.path=void 0,T&&(h=T.parse(h,y))}else h.error=h.error||"URN can not be parsed.";return h}function m(h,y){if(h.nid===void 0)throw new Error("URN without nid cannot be serialized");const k=y.scheme||h.scheme||"urn",S=h.nid.toLowerCase(),I=`${k}:${y.nid||S}`,T=w(I);T&&(h=T.serialize(h,y));const j=h,N=h.nss;return j.path=`${S||y.nid}:${N}`,y.skipEscape=!0,j}function p(h,y){const k=h;return k.uuid=k.nss,k.nss=void 0,!y.tolerant&&(!k.uuid||!n(k.uuid))&&(k.error=k.error||"UUID is not valid."),k}function E(h){const y=h;return y.nss=(h.uuid||"").toLowerCase(),y}var b={scheme:"http",domainHost:!0,parse:o,serialize:s},g={scheme:"https",domainHost:b.domainHost,parse:o,serialize:s},f={scheme:"ws",domainHost:!0,parse:c,serialize:l},$={scheme:"wss",domainHost:f.domainHost,parse:f.parse,serialize:f.serialize},v={scheme:"urn",parse:d,serialize:m,skipNormalize:!0},D={scheme:"urn:uuid",parse:p,serialize:E,skipNormalize:!0},C={http:b,https:g,ws:f,wss:$,urn:v,"urn:uuid":D};Object.setPrototypeOf(C,null);function w(h){return h&&(C[h]||C[h.toLowerCase()])||void 0}t.exports={wsIsSecure:a,SCHEMES:C,isValidSchemeName:i,getSchemeHandler:w}}}),bv=G({"../../node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/index.js"(e,t){"use strict";var{normalizeIPv6:n,removeDotSegments:u,recomposeAuthority:r,normalizePercentEncoding:i,normalizePathEncoding:a,escapePreservingEscapes:o,reescapeHostDelimiters:s,isIPv4:c,nonSimpleDomain:l}=z0(),{SCHEMES:d,getSchemeHandler:m}=Ev();function p(S,I){return typeof S=="string"?S=w(S,I):typeof S=="object"&&(S=C(f(S,I),I)),S}function E(S,I,T){const j=T?Object.assign({scheme:"null"},T):{scheme:"null"},N=b(C(S,j),C(I,j),j,!0);return j.skipEscape=!0,f(N,j)}function b(S,I,T,j){const N={};return j||(S=C(f(S,T),T),I=C(f(I,T),T)),T=T||{},!T.tolerant&&I.scheme?(N.scheme=I.scheme,N.userinfo=I.userinfo,N.host=I.host,N.port=I.port,N.path=u(I.path||""),N.query=I.query):(I.userinfo!==void 0||I.host!==void 0||I.port!==void 0?(N.userinfo=I.userinfo,N.host=I.host,N.port=I.port,N.path=u(I.path||""),N.query=I.query):(I.path?(I.path[0]==="/"?N.path=u(I.path):((S.userinfo!==void 0||S.host!==void 0||S.port!==void 0)&&!S.path?N.path="/"+I.path:S.path?N.path=S.path.slice(0,S.path.lastIndexOf("/")+1)+I.path:N.path=I.path,N.path=u(N.path)),N.query=I.query):(N.path=S.path,I.query!==void 0?N.query=I.query:N.query=S.query),N.userinfo=S.userinfo,N.host=S.host,N.port=S.port),N.scheme=S.scheme),N.fragment=I.fragment,N}function g(S,I,T){const j=y(S,T),N=y(I,T);return j!==void 0&&N!==void 0&&j.toLowerCase()===N.toLowerCase()}function f(S,I){const T={host:S.host,scheme:S.scheme,userinfo:S.userinfo,port:S.port,path:S.path,query:S.query,nid:S.nid,nss:S.nss,uuid:S.uuid,fragment:S.fragment,reference:S.reference,resourceName:S.resourceName,secure:S.secure,error:""},j=Object.assign({},I),N=[],Q=m(j.scheme||T.scheme);Q&&Q.serialize&&Q.serialize(T,j),T.path!==void 0&&(j.skipEscape?T.path=i(T.path):(T.path=o(T.path),T.scheme!==void 0&&(T.path=T.path.split("%3A").join(":")))),j.reference!=="suffix"&&T.scheme&&N.push(T.scheme,":");const de=r(T);if(de!==void 0&&(j.reference!=="suffix"&&N.push("//"),N.push(de),T.path&&T.path[0]!=="/"&&N.push("/")),T.path!==void 0){let je=T.path;!j.absolutePath&&(!Q||!Q.absolutePath)&&(je=u(je)),de===void 0&&je[0]==="/"&&je[1]==="/"&&(je="/%2F"+je.slice(2)),N.push(je)}return T.query!==void 0&&N.push("?",T.query),T.fragment!==void 0&&N.push("#",T.fragment),N.join("")}var $=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function v(S,I){if(I[2]!==void 0&&S.path&&S.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof S.port=="number"&&(S.port<0||S.port>65535))return"URI port is malformed."}function D(S,I){const T=Object.assign({},I),j={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let N=!1,Q=!1;T.reference==="suffix"&&(T.scheme?S=T.scheme+":"+S:S="//"+S);const de=S.match($);if(de){j.scheme=de[1],j.userinfo=de[3],j.host=de[4],j.port=parseInt(de[5],10),j.path=de[6]||"",j.query=de[7],j.fragment=de[8],isNaN(j.port)&&(j.port=de[5]);const je=v(j,de);if(je!==void 0&&(j.error=j.error||je,N=!0),j.host)if(c(j.host)===!1){const B=n(j.host);j.host=B.host.toLowerCase(),Q=B.isIPV6}else Q=!0;j.scheme===void 0&&j.userinfo===void 0&&j.host===void 0&&j.port===void 0&&j.query===void 0&&!j.path?j.reference="same-document":j.scheme===void 0?j.reference="relative":j.fragment===void 0?j.reference="absolute":j.reference="uri",T.reference&&T.reference!=="suffix"&&T.reference!==j.reference&&(j.error=j.error||"URI is not a "+T.reference+" reference.");const Oe=m(T.scheme||j.scheme);if(!T.unicodeSupport&&(!Oe||!Oe.unicodeSupport)&&j.host&&(T.domainHost||Oe&&Oe.domainHost)&&Q===!1&&l(j.host))try{j.host=URL.domainToASCII(j.host.toLowerCase())}catch(be){j.error=j.error||"Host's domain name can not be converted to ASCII: "+be}if((!Oe||Oe&&!Oe.skipNormalize)&&(S.indexOf("%")!==-1&&(j.scheme!==void 0&&(j.scheme=unescape(j.scheme)),j.host!==void 0&&(j.host=s(unescape(j.host),Q))),j.path&&(j.path=a(j.path)),j.fragment))try{j.fragment=encodeURI(decodeURIComponent(j.fragment))}catch{j.error=j.error||"URI malformed"}Oe&&Oe.parse&&Oe.parse(j,T)}else j.error=j.error||"URI can not be parsed.";return{parsed:j,malformedAuthorityOrPort:N}}function C(S,I){return D(S,I).parsed}function w(S,I){return h(S,I).normalized}function h(S,I){const{parsed:T,malformedAuthorityOrPort:j}=D(S,I);return{normalized:j?S:f(T,I),malformedAuthorityOrPort:j}}function y(S,I){if(typeof S=="string"){const{normalized:T,malformedAuthorityOrPort:j}=h(S,I);return j?void 0:T}if(typeof S=="object")return f(S,I)}var k={SCHEMES:d,normalize:p,resolve:E,resolveComponent:b,equal:g,serialize:f,parse:C};t.exports=k,t.exports.default=k,t.exports.fastUri=k}}),Dv=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/uri.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=bv();t.code='require("ajv/dist/runtime/uri").default',e.default=t}}),$v=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/core.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=ru();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var n=pe();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return n.CodeGen}});var u=sa(),r=nu(),i=T0(),a=ca(),o=pe(),s=tu(),c=eu(),l=De(),d=yv(),m=Dv(),p=(B,R)=>new RegExp(B,R);p.code="new RegExp";var E=["removeAdditional","useDefaults","coerceTypes"],b=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),g={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},f={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},$=200;function v(B){var R,U,_,x,P,H,se,Ee,ce,Re,Lt,A,O,Z,ne,ie,ve,et,dt,Pt,it,Je,Ar,_t,ia;const Gr=B.strict,aa=(R=B.code)===null||R===void 0?void 0:R.optimize,A0=aa===!0||aa===void 0?1:aa||0,x0=(_=(U=B.code)===null||U===void 0?void 0:U.regExp)!==null&&_!==void 0?_:p,ov=(x=B.uriResolver)!==null&&x!==void 0?x:m.default;return{strictSchema:(H=(P=B.strictSchema)!==null&&P!==void 0?P:Gr)!==null&&H!==void 0?H:!0,strictNumbers:(Ee=(se=B.strictNumbers)!==null&&se!==void 0?se:Gr)!==null&&Ee!==void 0?Ee:!0,strictTypes:(Re=(ce=B.strictTypes)!==null&&ce!==void 0?ce:Gr)!==null&&Re!==void 0?Re:"log",strictTuples:(A=(Lt=B.strictTuples)!==null&&Lt!==void 0?Lt:Gr)!==null&&A!==void 0?A:"log",strictRequired:(Z=(O=B.strictRequired)!==null&&O!==void 0?O:Gr)!==null&&Z!==void 0?Z:!1,code:B.code?{...B.code,optimize:A0,regExp:x0}:{optimize:A0,regExp:x0},loopRequired:(ne=B.loopRequired)!==null&&ne!==void 0?ne:$,loopEnum:(ie=B.loopEnum)!==null&&ie!==void 0?ie:$,meta:(ve=B.meta)!==null&&ve!==void 0?ve:!0,messages:(et=B.messages)!==null&&et!==void 0?et:!0,inlineRefs:(dt=B.inlineRefs)!==null&&dt!==void 0?dt:!0,schemaId:(Pt=B.schemaId)!==null&&Pt!==void 0?Pt:"$id",addUsedSchema:(it=B.addUsedSchema)!==null&&it!==void 0?it:!0,validateSchema:(Je=B.validateSchema)!==null&&Je!==void 0?Je:!0,validateFormats:(Ar=B.validateFormats)!==null&&Ar!==void 0?Ar:!0,unicodeRegExp:(_t=B.unicodeRegExp)!==null&&_t!==void 0?_t:!0,int32range:(ia=B.int32range)!==null&&ia!==void 0?ia:!0,uriResolver:ov}}var D=class{constructor(B={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,B=this.opts={...B,...v(B)};const{es5:R,lines:U}=this.opts.code;this.scope=new o.ValueScope({scope:{},prefixes:b,es5:R,lines:U}),this.logger=T(B.logger);const _=B.validateFormats;B.validateFormats=!1,this.RULES=(0,i.getRules)(),C.call(this,g,B,"NOT SUPPORTED"),C.call(this,f,B,"DEPRECATED","warn"),this._metaOpts=S.call(this),B.formats&&y.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),B.keywords&&k.call(this,B.keywords),typeof B.meta=="object"&&this.addMetaSchema(B.meta),h.call(this),B.validateFormats=_}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:B,meta:R,schemaId:U}=this.opts;let _=d;U==="id"&&(_={...d},_.id=_.$id,delete _.$id),R&&B&&this.addMetaSchema(_,_[U],!1)}defaultMeta(){const{meta:B,schemaId:R}=this.opts;return this.opts.defaultMeta=typeof B=="object"?B[R]||B:void 0}validate(B,R){let U;if(typeof B=="string"){if(U=this.getSchema(B),!U)throw new Error(`no schema with key or ref "${B}"`)}else U=this.compile(B);const _=U(R);return"$async"in U||(this.errors=U.errors),_}compile(B,R){const U=this._addSchema(B,R);return U.validate||this._compileSchemaEnv(U)}compileAsync(B,R){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:U}=this.opts;return _.call(this,B,R);async function _(ce,Re){await x.call(this,ce.$schema);const Lt=this._addSchema(ce,Re);return Lt.validate||P.call(this,Lt)}async function x(ce){ce&&!this.getSchema(ce)&&await _.call(this,{$ref:ce},!0)}async function P(ce){try{return this._compileSchemaEnv(ce)}catch(Re){if(!(Re instanceof r.default))throw Re;return H.call(this,Re),await se.call(this,Re.missingSchema),P.call(this,ce)}}function H({missingSchema:ce,missingRef:Re}){if(this.refs[ce])throw new Error(`AnySchema ${ce} is loaded but ${Re} cannot be resolved`)}async function se(ce){const Re=await Ee.call(this,ce);this.refs[ce]||await x.call(this,Re.$schema),this.refs[ce]||this.addSchema(Re,ce,R)}async function Ee(ce){const Re=this._loading[ce];if(Re)return Re;try{return await(this._loading[ce]=U(ce))}finally{delete this._loading[ce]}}}addSchema(B,R,U,_=this.opts.validateSchema){if(Array.isArray(B)){for(const P of B)this.addSchema(P,void 0,U,_);return this}let x;if(typeof B=="object"){const{schemaId:P}=this.opts;if(x=B[P],x!==void 0&&typeof x!="string")throw new Error(`schema ${P} must be string`)}return R=(0,s.normalizeId)(R||x),this._checkUnique(R),this.schemas[R]=this._addSchema(B,U,R,_,!0),this}addMetaSchema(B,R,U=this.opts.validateSchema){return this.addSchema(B,R,!0,U),this}validateSchema(B,R){if(typeof B=="boolean")return!0;let U;if(U=B.$schema,U!==void 0&&typeof U!="string")throw new Error("$schema must be a string");if(U=U||this.opts.defaultMeta||this.defaultMeta(),!U)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const _=this.validate(U,B);if(!_&&R){const x="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(x);else throw new Error(x)}return _}getSchema(B){let R;for(;typeof(R=w.call(this,B))=="string";)B=R;if(R===void 0){const{schemaId:U}=this.opts,_=new a.SchemaEnv({schema:{},schemaId:U});if(R=a.resolveSchema.call(this,_,B),!R)return;this.refs[B]=R}return R.validate||this._compileSchemaEnv(R)}removeSchema(B){if(B instanceof RegExp)return this._removeAllSchemas(this.schemas,B),this._removeAllSchemas(this.refs,B),this;switch(typeof B){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const R=w.call(this,B);return typeof R=="object"&&this._cache.delete(R.schema),delete this.schemas[B],delete this.refs[B],this}case"object":{const R=B;this._cache.delete(R);let U=B[this.opts.schemaId];return U&&(U=(0,s.normalizeId)(U),delete this.schemas[U],delete this.refs[U]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(B){for(const R of B)this.addKeyword(R);return this}addKeyword(B,R){let U;if(typeof B=="string")U=B,typeof R=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),R.keyword=U);else if(typeof B=="object"&&R===void 0){if(R=B,U=R.keyword,Array.isArray(U)&&!U.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(N.call(this,U,R),!R)return(0,l.eachItem)(U,x=>Q.call(this,x)),this;je.call(this,R);const _={...R,type:(0,c.getJSONTypes)(R.type),schemaType:(0,c.getJSONTypes)(R.schemaType)};return(0,l.eachItem)(U,_.type.length===0?x=>Q.call(this,x,_):x=>_.type.forEach(P=>Q.call(this,x,_,P))),this}getKeyword(B){const R=this.RULES.all[B];return typeof R=="object"?R.definition:!!R}removeKeyword(B){const{RULES:R}=this;delete R.keywords[B],delete R.all[B];for(const U of R.rules){const _=U.rules.findIndex(x=>x.keyword===B);_>=0&&U.rules.splice(_,1)}return this}addFormat(B,R){return typeof R=="string"&&(R=new RegExp(R)),this.formats[B]=R,this}errorsText(B=this.errors,{separator:R=", ",dataVar:U="data"}={}){return!B||B.length===0?"No errors":B.map(_=>`${U}${_.instancePath} ${_.message}`).reduce((_,x)=>_+R+x)}$dataMetaSchema(B,R){const U=this.RULES.all;B=JSON.parse(JSON.stringify(B));for(const _ of R){const x=_.split("/").slice(1);let P=B;for(const H of x)P=P[H];for(const H in U){const se=U[H];if(typeof se!="object")continue;const{$data:Ee}=se.definition,ce=P[H];Ee&&ce&&(P[H]=be(ce))}}return B}_removeAllSchemas(B,R){for(const U in B){const _=B[U];(!R||R.test(U))&&(typeof _=="string"?delete B[U]:_&&!_.meta&&(this._cache.delete(_.schema),delete B[U]))}}_addSchema(B,R,U,_=this.opts.validateSchema,x=this.opts.addUsedSchema){let P;const{schemaId:H}=this.opts;if(typeof B=="object")P=B[H];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof B!="boolean")throw new Error("schema must be object or boolean")}let se=this._cache.get(B);if(se!==void 0)return se;U=(0,s.normalizeId)(P||U);const Ee=s.getSchemaRefs.call(this,B,U);return se=new a.SchemaEnv({schema:B,schemaId:H,meta:R,baseId:U,localRefs:Ee}),this._cache.set(se.schema,se),x&&!U.startsWith("#")&&(U&&this._checkUnique(U),this.refs[U]=se),_&&this.validateSchema(B,!0),se}_checkUnique(B){if(this.schemas[B]||this.refs[B])throw new Error(`schema with key or id "${B}" already exists`)}_compileSchemaEnv(B){if(B.meta?this._compileMetaSchema(B):a.compileSchema.call(this,B),!B.validate)throw new Error("ajv implementation error");return B.validate}_compileMetaSchema(B){const R=this.opts;this.opts=this._metaOpts;try{a.compileSchema.call(this,B)}finally{this.opts=R}}};D.ValidationError=u.default,D.MissingRefError=r.default,e.default=D;function C(B,R,U,_="error"){for(const x in B){const P=x;P in R&&this.logger[_](`${U}: option ${x}. ${B[P]}`)}}function w(B){return B=(0,s.normalizeId)(B),this.schemas[B]||this.refs[B]}function h(){const B=this.opts.schemas;if(B)if(Array.isArray(B))this.addSchema(B);else for(const R in B)this.addSchema(B[R],R)}function y(){for(const B in this.opts.formats){const R=this.opts.formats[B];R&&this.addFormat(B,R)}}function k(B){if(Array.isArray(B)){this.addVocabulary(B);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const R in B){const U=B[R];U.keyword||(U.keyword=R),this.addKeyword(U)}}function S(){const B={...this.opts};for(const R of E)delete B[R];return B}var I={log(){},warn(){},error(){}};function T(B){if(B===!1)return I;if(B===void 0)return console;if(B.log&&B.warn&&B.error)return B;throw new Error("logger must implement log, warn and error methods")}var j=/^[a-z_$][a-z0-9_$:-]*$/i;function N(B,R){const{RULES:U}=this;if((0,l.eachItem)(B,_=>{if(U.keywords[_])throw new Error(`Keyword ${_} is already defined`);if(!j.test(_))throw new Error(`Keyword ${_} has invalid name`)}),!!R&&R.$data&&!("code"in R||"validate"in R))throw new Error('$data keyword must have "code" or "validate" function')}function Q(B,R,U){var _;const x=R?.post;if(U&&x)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:P}=this;let H=x?P.post:P.rules.find(({type:Ee})=>Ee===U);if(H||(H={type:U,rules:[]},P.rules.push(H)),P.keywords[B]=!0,!R)return;const se={keyword:B,definition:{...R,type:(0,c.getJSONTypes)(R.type),schemaType:(0,c.getJSONTypes)(R.schemaType)}};R.before?de.call(this,H,se,R.before):H.rules.push(se),P.all[B]=se,(_=R.implements)===null||_===void 0||_.forEach(Ee=>this.addKeyword(Ee))}function de(B,R,U){const _=B.rules.findIndex(x=>x.keyword===U);_>=0?B.rules.splice(_,0,R):(B.rules.push(R),this.logger.warn(`rule ${U} is not defined`))}function je(B){let{metaSchema:R}=B;R!==void 0&&(B.$data&&this.opts.$data&&(R=be(R)),B.validateSchema=this.compile(R,!0))}var Oe={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function be(B){return{anyOf:[B,Oe]}}}}),wv=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/id.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};e.default=t}}),Cv=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/ref.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.callRef=e.getValidate=void 0;var t=nu(),n=St(),u=pe(),r=tr(),i=ca(),a=De(),o={keyword:"$ref",schemaType:"string",code(l){const{gen:d,schema:m,it:p}=l,{baseId:E,schemaEnv:b,validateName:g,opts:f,self:$}=p,{root:v}=b;if((m==="#"||m==="#/")&&E===v.baseId)return C();const D=i.resolveRef.call($,v,E,m);if(D===void 0)throw new t.default(p.opts.uriResolver,E,m);if(D instanceof i.SchemaEnv)return w(D);return h(D);function C(){if(b===v)return c(l,g,b,b.$async);const y=d.scopeValue("root",{ref:v});return c(l,(0,u._)`${y}.validate`,v,v.$async)}function w(y){const k=s(l,y);c(l,k,y,y.$async)}function h(y){const k=d.scopeValue("schema",f.code.source===!0?{ref:y,code:(0,u.stringify)(y)}:{ref:y}),S=d.name("valid"),I=l.subschema({schema:y,dataTypes:[],schemaPath:u.nil,topSchemaRef:k,errSchemaPath:m},S);l.mergeEvaluated(I),l.ok(S)}}};function s(l,d){const{gen:m}=l;return d.validate?m.scopeValue("validate",{ref:d.validate}):(0,u._)`${m.scopeValue("wrapper",{ref:d})}.validate`}e.getValidate=s;function c(l,d,m,p){const{gen:E,it:b}=l,{allErrors:g,schemaEnv:f,opts:$}=b,v=$.passContext?r.default.this:u.nil;p?D():C();function D(){if(!f.$async)throw new Error("async schema referenced by sync schema");const y=E.let("valid");E.try(()=>{E.code((0,u._)`await ${(0,n.callValidateCode)(l,d,v)}`),h(d),g||E.assign(y,!0)},k=>{E.if((0,u._)`!(${k} instanceof ${b.ValidationError})`,()=>E.throw(k)),w(k),g||E.assign(y,!1)}),l.ok(y)}function C(){l.result((0,n.callValidateCode)(l,d,v),()=>h(d),()=>w(d))}function w(y){const k=(0,u._)`${y}.errors`;E.assign(r.default.vErrors,(0,u._)`${r.default.vErrors} === null ? ${k} : ${r.default.vErrors}.concat(${k})`),E.assign(r.default.errors,(0,u._)`${r.default.vErrors}.length`)}function h(y){var k;if(!b.opts.unevaluated)return;const S=(k=m?.validate)===null||k===void 0?void 0:k.evaluated;if(b.props!==!0)if(S&&!S.dynamicProps)S.props!==void 0&&(b.props=a.mergeEvaluated.props(E,S.props,b.props));else{const I=E.var("props",(0,u._)`${y}.evaluated.props`);b.props=a.mergeEvaluated.props(E,I,b.props,u.Name)}if(b.items!==!0)if(S&&!S.dynamicItems)S.items!==void 0&&(b.items=a.mergeEvaluated.items(E,S.items,b.items));else{const I=E.var("items",(0,u._)`${y}.evaluated.items`);b.items=a.mergeEvaluated.items(E,I,b.items,u.Name)}}}e.callRef=c,e.default=o}}),kv=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/index.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=wv(),n=Cv(),u=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",t.default,n.default];e.default=u}}),Sv=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=pe(),n=t.operators,u={maximum:{okStr:"<=",ok:n.LTE,fail:n.GT},minimum:{okStr:">=",ok:n.GTE,fail:n.LT},exclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},exclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},r={message:({keyword:a,schemaCode:o})=>(0,t.str)`must be ${u[a].okStr} ${o}`,params:({keyword:a,schemaCode:o})=>(0,t._)`{comparison: ${u[a].okStr}, limit: ${o}}`},i={keyword:Object.keys(u),type:"number",schemaType:"number",$data:!0,error:r,code(a){const{keyword:o,data:s,schemaCode:c}=a;a.fail$data((0,t._)`${s} ${u[o].fail} ${c} || isNaN(${s})`)}};e.default=i}}),Av=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=pe(),n={message:({schemaCode:r})=>(0,t.str)`must be multiple of ${r}`,params:({schemaCode:r})=>(0,t._)`{multipleOf: ${r}}`},u={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:n,code(r){const{gen:i,data:a,schemaCode:o,it:s}=r,c=s.opts.multipleOfPrecision,l=i.let("res"),d=c?(0,t._)`Math.abs(Math.round(${l}) - ${l}) > 1e-${c}`:(0,t._)`${l} !== parseInt(${l})`;r.fail$data((0,t._)`(${o} === 0 || (${l} = ${a}/${o}, ${d}))`)}};e.default=u}}),xv=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function t(n){const u=n.length;let r=0,i=0,a;for(;i<u;)r++,a=n.charCodeAt(i++),a>=55296&&a<=56319&&i<u&&(a=n.charCodeAt(i),(a&64512)===56320&&i++);return r}e.default=t,t.code='require("ajv/dist/runtime/ucs2length").default'}}),Bv=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=pe(),n=De(),u=xv(),r={message({keyword:a,schemaCode:o}){const s=a==="maxLength"?"more":"fewer";return(0,t.str)`must NOT have ${s} than ${o} characters`},params:({schemaCode:a})=>(0,t._)`{limit: ${a}}`},i={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:r,code(a){const{keyword:o,data:s,schemaCode:c,it:l}=a,d=o==="maxLength"?t.operators.GT:t.operators.LT,m=l.opts.unicode===!1?(0,t._)`${s}.length`:(0,t._)`${(0,n.useFunc)(a.gen,u.default)}(${s})`;a.fail$data((0,t._)`${m} ${d} ${c}`)}};e.default=i}}),Iv=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/pattern.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=St(),n=De(),u=pe(),r={message:({schemaCode:a})=>(0,u.str)`must match pattern "${a}"`,params:({schemaCode:a})=>(0,u._)`{pattern: ${a}}`},i={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:r,code(a){const{gen:o,data:s,$data:c,schema:l,schemaCode:d,it:m}=a,p=m.opts.unicodeRegExp?"u":"";if(c){const{regExp:E}=m.opts.code,b=E.code==="new RegExp"?(0,u._)`new RegExp`:(0,n.useFunc)(o,E),g=o.let("valid");o.try(()=>o.assign(g,(0,u._)`${b}(${d}, ${p}).test(${s})`),()=>o.assign(g,!1)),a.fail$data((0,u._)`!${g}`)}else{const E=(0,t.usePattern)(a,l);a.fail$data((0,u._)`!${E}.test(${s})`)}}};e.default=i}}),Fv=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=pe(),n={message({keyword:r,schemaCode:i}){const a=r==="maxProperties"?"more":"fewer";return(0,t.str)`must NOT have ${a} than ${i} properties`},params:({schemaCode:r})=>(0,t._)`{limit: ${r}}`},u={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:n,code(r){const{keyword:i,data:a,schemaCode:o}=r,s=i==="maxProperties"?t.operators.GT:t.operators.LT;r.fail$data((0,t._)`Object.keys(${a}).length ${s} ${o}`)}};e.default=u}}),Tv=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/required.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=St(),n=pe(),u=De(),r={message:({params:{missingProperty:a}})=>(0,n.str)`must have required property '${a}'`,params:({params:{missingProperty:a}})=>(0,n._)`{missingProperty: ${a}}`},i={keyword:"required",type:"object",schemaType:"array",$data:!0,error:r,code(a){const{gen:o,schema:s,schemaCode:c,data:l,$data:d,it:m}=a,{opts:p}=m;if(!d&&s.length===0)return;const E=s.length>=p.loopRequired;if(m.allErrors?b():g(),p.strictRequired){const v=a.parentSchema.properties,{definedProperties:D}=a.it;for(const C of s)if(v?.[C]===void 0&&!D.has(C)){const w=m.schemaEnv.baseId+m.errSchemaPath,h=`required property "${C}" is not defined at "${w}" (strictRequired)`;(0,u.checkStrictMode)(m,h,m.opts.strictRequired)}}function b(){if(E||d)a.block$data(n.nil,f);else for(const v of s)(0,t.checkReportMissingProp)(a,v)}function g(){const v=o.let("missing");if(E||d){const D=o.let("valid",!0);a.block$data(D,()=>$(v,D)),a.ok(D)}else o.if((0,t.checkMissingProp)(a,s,v)),(0,t.reportMissingProp)(a,v),o.else()}function f(){o.forOf("prop",c,v=>{a.setParams({missingProperty:v}),o.if((0,t.noPropertyInData)(o,l,v,p.ownProperties),()=>a.error())})}function $(v,D){a.setParams({missingProperty:v}),o.forOf(v,c,()=>{o.assign(D,(0,t.propertyInData)(o,l,v,p.ownProperties)),o.if((0,n.not)(D),()=>{a.error(),o.break()})},n.nil)}}};e.default=i}}),jv=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=pe(),n={message({keyword:r,schemaCode:i}){const a=r==="maxItems"?"more":"fewer";return(0,t.str)`must NOT have ${a} than ${i} items`},params:({schemaCode:r})=>(0,t._)`{limit: ${r}}`},u={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:n,code(r){const{keyword:i,data:a,schemaCode:o}=r,s=i==="maxItems"?t.operators.GT:t.operators.LT;r.fail$data((0,t._)`${a}.length ${s} ${o}`)}};e.default=u}}),la=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/equal.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=P0();t.code='require("ajv/dist/runtime/equal").default',e.default=t}}),Pv=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=eu(),n=pe(),u=De(),r=la(),i={message:({params:{i:o,j:s}})=>(0,n.str)`must NOT have duplicate items (items ## ${s} and ${o} are identical)`,params:({params:{i:o,j:s}})=>(0,n._)`{i: ${o}, j: ${s}}`},a={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:i,code(o){const{gen:s,data:c,$data:l,schema:d,parentSchema:m,schemaCode:p,it:E}=o;if(!l&&!d)return;const b=s.let("valid"),g=m.items?(0,t.getSchemaTypes)(m.items):[];o.block$data(b,f,(0,n._)`${p} === false`),o.ok(b);function f(){const C=s.let("i",(0,n._)`${c}.length`),w=s.let("j");o.setParams({i:C,j:w}),s.assign(b,!0),s.if((0,n._)`${C} > 1`,()=>($()?v:D)(C,w))}function $(){return g.length>0&&!g.some(C=>C==="object"||C==="array")}function v(C,w){const h=s.name("item"),y=(0,t.checkDataTypes)(g,h,E.opts.strictNumbers,t.DataType.Wrong),k=s.const("indices",(0,n._)`{}`);s.for((0,n._)`;${C}--;`,()=>{s.let(h,(0,n._)`${c}[${C}]`),s.if(y,(0,n._)`continue`),g.length>1&&s.if((0,n._)`typeof ${h} == "string"`,(0,n._)`${h} += "_"`),s.if((0,n._)`typeof ${k}[${h}] == "number"`,()=>{s.assign(w,(0,n._)`${k}[${h}]`),o.error(),s.assign(b,!1).break()}).code((0,n._)`${k}[${h}] = ${C}`)})}function D(C,w){const h=(0,u.useFunc)(s,r.default),y=s.name("outer");s.label(y).for((0,n._)`;${C}--;`,()=>s.for((0,n._)`${w} = ${C}; ${w}--;`,()=>s.if((0,n._)`${h}(${c}[${C}], ${c}[${w}])`,()=>{o.error(),s.assign(b,!1).break(y)})))}}};e.default=a}}),zv=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/const.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=pe(),n=De(),u=la(),r={message:"must be equal to constant",params:({schemaCode:a})=>(0,t._)`{allowedValue: ${a}}`},i={keyword:"const",$data:!0,error:r,code(a){const{gen:o,data:s,$data:c,schemaCode:l,schema:d}=a;c||d&&typeof d=="object"?a.fail$data((0,t._)`!${(0,n.useFunc)(o,u.default)}(${s}, ${l})`):a.fail((0,t._)`${d} !== ${s}`)}};e.default=i}}),Ov=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/enum.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=pe(),n=De(),u=la(),r={message:"must be equal to one of the allowed values",params:({schemaCode:a})=>(0,t._)`{allowedValues: ${a}}`},i={keyword:"enum",schemaType:"array",$data:!0,error:r,code(a){const{gen:o,data:s,$data:c,schema:l,schemaCode:d,it:m}=a;if(!c&&l.length===0)throw new Error("enum must have non-empty array");const p=l.length>=m.opts.loopEnum;let E;const b=()=>E??(E=(0,n.useFunc)(o,u.default));let g;if(p||c)g=o.let("valid"),a.block$data(g,f);else{if(!Array.isArray(l))throw new Error("ajv implementation error");const v=o.const("vSchema",d);g=(0,t.or)(...l.map((D,C)=>$(v,C)))}a.pass(g);function f(){o.assign(g,!1),o.forOf("v",d,v=>o.if((0,t._)`${b()}(${s}, ${v})`,()=>o.assign(g,!0).break()))}function $(v,D){const C=l[D];return typeof C=="object"&&C!==null?(0,t._)`${b()}(${s}, ${v}[${D}])`:(0,t._)`${s} === ${C}`}}};e.default=i}}),Nv=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/index.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Sv(),n=Av(),u=Bv(),r=Iv(),i=Fv(),a=Tv(),o=jv(),s=Pv(),c=zv(),l=Ov(),d=[t.default,n.default,u.default,r.default,i.default,a.default,o.default,s.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},c.default,l.default];e.default=d}}),O0=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateAdditionalItems=void 0;var t=pe(),n=De(),u={message:({params:{len:a}})=>(0,t.str)`must NOT have more than ${a} items`,params:({params:{len:a}})=>(0,t._)`{limit: ${a}}`},r={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:u,code(a){const{parentSchema:o,it:s}=a,{items:c}=o;if(!Array.isArray(c)){(0,n.checkStrictMode)(s,'"additionalItems" is ignored when "items" is not an array of schemas');return}i(a,c)}};function i(a,o){const{gen:s,schema:c,data:l,keyword:d,it:m}=a;m.items=!0;const p=s.const("len",(0,t._)`${l}.length`);if(c===!1)a.setParams({len:o.length}),a.pass((0,t._)`${p} <= ${o.length}`);else if(typeof c=="object"&&!(0,n.alwaysValidSchema)(m,c)){const b=s.var("valid",(0,t._)`${p} <= ${o.length}`);s.if((0,t.not)(b),()=>E(b)),a.ok(b)}function E(b){s.forRange("i",o.length,p,g=>{a.subschema({keyword:d,dataProp:g,dataPropType:n.Type.Num},b),m.allErrors||s.if((0,t.not)(b),()=>s.break())})}}e.validateAdditionalItems=i,e.default=r}}),N0=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateTuple=void 0;var t=pe(),n=De(),u=St(),r={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(a){const{schema:o,it:s}=a;if(Array.isArray(o))return i(a,"additionalItems",o);s.items=!0,!(0,n.alwaysValidSchema)(s,o)&&a.ok((0,u.validateArray)(a))}};function i(a,o,s=a.schema){const{gen:c,parentSchema:l,data:d,keyword:m,it:p}=a;g(l),p.opts.unevaluated&&s.length&&p.items!==!0&&(p.items=n.mergeEvaluated.items(c,s.length,p.items));const E=c.name("valid"),b=c.const("len",(0,t._)`${d}.length`);s.forEach((f,$)=>{(0,n.alwaysValidSchema)(p,f)||(c.if((0,t._)`${b} > ${$}`,()=>a.subschema({keyword:m,schemaProp:$,dataProp:$},E)),a.ok(E))});function g(f){const{opts:$,errSchemaPath:v}=p,D=s.length,C=D===f.minItems&&(D===f.maxItems||f[o]===!1);if($.strictTuples&&!C){const w=`"${m}" is ${D}-tuple, but minItems or maxItems/${o} are not specified or different at path "${v}"`;(0,n.checkStrictMode)(p,w,$.strictTuples)}}}e.validateTuple=i,e.default=r}}),Rv=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=N0(),n={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:u=>(0,t.validateTuple)(u,"items")};e.default=n}}),Zv=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=pe(),n=De(),u=St(),r=O0(),i={message:({params:{len:o}})=>(0,t.str)`must NOT have more than ${o} items`,params:({params:{len:o}})=>(0,t._)`{limit: ${o}}`},a={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:i,code(o){const{schema:s,parentSchema:c,it:l}=o,{prefixItems:d}=c;l.items=!0,!(0,n.alwaysValidSchema)(l,s)&&(d?(0,r.validateAdditionalItems)(o,d):o.ok((0,u.validateArray)(o)))}};e.default=a}}),Uv=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/contains.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=pe(),n=De(),u={message:({params:{min:i,max:a}})=>a===void 0?(0,t.str)`must contain at least ${i} valid item(s)`:(0,t.str)`must contain at least ${i} and no more than ${a} valid item(s)`,params:({params:{min:i,max:a}})=>a===void 0?(0,t._)`{minContains: ${i}}`:(0,t._)`{minContains: ${i}, maxContains: ${a}}`},r={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:u,code(i){const{gen:a,schema:o,parentSchema:s,data:c,it:l}=i;let d,m;const{minContains:p,maxContains:E}=s;l.opts.next?(d=p===void 0?1:p,m=E):d=1;const b=a.const("len",(0,t._)`${c}.length`);if(i.setParams({min:d,max:m}),m===void 0&&d===0){(0,n.checkStrictMode)(l,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(m!==void 0&&d>m){(0,n.checkStrictMode)(l,'"minContains" > "maxContains" is always invalid'),i.fail();return}if((0,n.alwaysValidSchema)(l,o)){let D=(0,t._)`${b} >= ${d}`;m!==void 0&&(D=(0,t._)`${D} && ${b} <= ${m}`),i.pass(D);return}l.items=!0;const g=a.name("valid");m===void 0&&d===1?$(g,()=>a.if(g,()=>a.break())):d===0?(a.let(g,!0),m!==void 0&&a.if((0,t._)`${c}.length > 0`,f)):(a.let(g,!1),f()),i.result(g,()=>i.reset());function f(){const D=a.name("_valid"),C=a.let("count",0);$(D,()=>a.if(D,()=>v(C)))}function $(D,C){a.forRange("i",0,b,w=>{i.subschema({keyword:"contains",dataProp:w,dataPropType:n.Type.Num,compositeRule:!0},D),C()})}function v(D){a.code((0,t._)`${D}++`),m===void 0?a.if((0,t._)`${D} >= ${d}`,()=>a.assign(g,!0).break()):(a.if((0,t._)`${D} > ${m}`,()=>a.assign(g,!1).break()),d===1?a.assign(g,!0):a.if((0,t._)`${D} >= ${d}`,()=>a.assign(g,!0)))}}};e.default=r}}),Mv=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;var t=pe(),n=De(),u=St();e.error={message:({params:{property:s,depsCount:c,deps:l}})=>{const d=c===1?"property":"properties";return(0,t.str)`must have ${d} ${l} when property ${s} is present`},params:({params:{property:s,depsCount:c,deps:l,missingProperty:d}})=>(0,t._)`{property: ${s},
|
|
7
|
+
missingProperty: ${d},
|
|
8
|
+
depsCount: ${c},
|
|
9
|
+
deps: ${l}}`};var r={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(s){const[c,l]=i(s);a(s,c),o(s,l)}};function i({schema:s}){const c={},l={};for(const d in s){if(d==="__proto__")continue;const m=Array.isArray(s[d])?c:l;m[d]=s[d]}return[c,l]}function a(s,c=s.schema){const{gen:l,data:d,it:m}=s;if(Object.keys(c).length===0)return;const p=l.let("missing");for(const E in c){const b=c[E];if(b.length===0)continue;const g=(0,u.propertyInData)(l,d,E,m.opts.ownProperties);s.setParams({property:E,depsCount:b.length,deps:b.join(", ")}),m.allErrors?l.if(g,()=>{for(const f of b)(0,u.checkReportMissingProp)(s,f)}):(l.if((0,t._)`${g} && (${(0,u.checkMissingProp)(s,b,p)})`),(0,u.reportMissingProp)(s,p),l.else())}}e.validatePropertyDeps=a;function o(s,c=s.schema){const{gen:l,data:d,keyword:m,it:p}=s,E=l.name("valid");for(const b in c)(0,n.alwaysValidSchema)(p,c[b])||(l.if((0,u.propertyInData)(l,d,b,p.opts.ownProperties),()=>{const g=s.subschema({keyword:m,schemaProp:b},E);s.mergeValidEvaluated(g,E)},()=>l.var(E,!0)),s.ok(E))}e.validateSchemaDeps=o,e.default=r}}),Lv=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=pe(),n=De(),u={message:"property name must be valid",params:({params:i})=>(0,t._)`{propertyName: ${i.propertyName}}`},r={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:u,code(i){const{gen:a,schema:o,data:s,it:c}=i;if((0,n.alwaysValidSchema)(c,o))return;const l=a.name("valid");a.forIn("key",s,d=>{i.setParams({propertyName:d}),i.subschema({keyword:"propertyNames",data:d,dataTypes:["string"],propertyName:d,compositeRule:!0},l),a.if((0,t.not)(l),()=>{i.error(!0),c.allErrors||a.break()})}),i.ok(l)}};e.default=r}}),R0=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=St(),n=pe(),u=tr(),r=De(),i={message:"must NOT have additional properties",params:({params:o})=>(0,n._)`{additionalProperty: ${o.additionalProperty}}`},a={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:i,code(o){const{gen:s,schema:c,parentSchema:l,data:d,errsCount:m,it:p}=o;if(!m)throw new Error("ajv implementation error");const{allErrors:E,opts:b}=p;if(p.props=!0,b.removeAdditional!=="all"&&(0,r.alwaysValidSchema)(p,c))return;const g=(0,t.allSchemaProperties)(l.properties),f=(0,t.allSchemaProperties)(l.patternProperties);$(),o.ok((0,n._)`${m} === ${u.default.errors}`);function $(){s.forIn("key",d,h=>{!g.length&&!f.length?C(h):s.if(v(h),()=>C(h))})}function v(h){let y;if(g.length>8){const k=(0,r.schemaRefOrVal)(p,l.properties,"properties");y=(0,t.isOwnProperty)(s,k,h)}else g.length?y=(0,n.or)(...g.map(k=>(0,n._)`${h} === ${k}`)):y=n.nil;return f.length&&(y=(0,n.or)(y,...f.map(k=>(0,n._)`${(0,t.usePattern)(o,k)}.test(${h})`))),(0,n.not)(y)}function D(h){s.code((0,n._)`delete ${d}[${h}]`)}function C(h){if(b.removeAdditional==="all"||b.removeAdditional&&c===!1){D(h);return}if(c===!1){o.setParams({additionalProperty:h}),o.error(),E||s.break();return}if(typeof c=="object"&&!(0,r.alwaysValidSchema)(p,c)){const y=s.name("valid");b.removeAdditional==="failing"?(w(h,y,!1),s.if((0,n.not)(y),()=>{o.reset(),D(h)})):(w(h,y),E||s.if((0,n.not)(y),()=>s.break()))}}function w(h,y,k){const S={keyword:"additionalProperties",dataProp:h,dataPropType:r.Type.Str};k===!1&&Object.assign(S,{compositeRule:!0,createErrors:!1,allErrors:!1}),o.subschema(S,y)}}};e.default=a}}),qv=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/properties.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=ru(),n=St(),u=De(),r=R0(),i={keyword:"properties",type:"object",schemaType:"object",code(a){const{gen:o,schema:s,parentSchema:c,data:l,it:d}=a;d.opts.removeAdditional==="all"&&c.additionalProperties===void 0&&r.default.code(new t.KeywordCxt(d,r.default,"additionalProperties"));const m=(0,n.allSchemaProperties)(s);for(const f of m)d.definedProperties.add(f);d.opts.unevaluated&&m.length&&d.props!==!0&&(d.props=u.mergeEvaluated.props(o,(0,u.toHash)(m),d.props));const p=m.filter(f=>!(0,u.alwaysValidSchema)(d,s[f]));if(p.length===0)return;const E=o.name("valid");for(const f of p)b(f)?g(f):(o.if((0,n.propertyInData)(o,l,f,d.opts.ownProperties)),g(f),d.allErrors||o.else().var(E,!0),o.endIf()),a.it.definedProperties.add(f),a.ok(E);function b(f){return d.opts.useDefaults&&!d.compositeRule&&s[f].default!==void 0}function g(f){a.subschema({keyword:"properties",schemaProp:f,dataProp:f},E)}}};e.default=i}}),Vv=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=St(),n=pe(),u=De(),r=De(),i={keyword:"patternProperties",type:"object",schemaType:"object",code(a){const{gen:o,schema:s,data:c,parentSchema:l,it:d}=a,{opts:m}=d,p=(0,t.allSchemaProperties)(s),E=p.filter(C=>(0,u.alwaysValidSchema)(d,s[C]));if(p.length===0||E.length===p.length&&(!d.opts.unevaluated||d.props===!0))return;const b=m.strictSchema&&!m.allowMatchingProperties&&l.properties,g=o.name("valid");d.props!==!0&&!(d.props instanceof n.Name)&&(d.props=(0,r.evaluatedPropsToName)(o,d.props));const{props:f}=d;$();function $(){for(const C of p)b&&v(C),d.allErrors?D(C):(o.var(g,!0),D(C),o.if(g))}function v(C){for(const w in b)new RegExp(C).test(w)&&(0,u.checkStrictMode)(d,`property ${w} matches pattern ${C} (use allowMatchingProperties)`)}function D(C){o.forIn("key",c,w=>{o.if((0,n._)`${(0,t.usePattern)(a,C)}.test(${w})`,()=>{const h=E.includes(C);h||a.subschema({keyword:"patternProperties",schemaProp:C,dataProp:w,dataPropType:r.Type.Str},g),d.opts.unevaluated&&f!==!0?o.assign((0,n._)`${f}[${w}]`,!0):!h&&!d.allErrors&&o.if((0,n.not)(g),()=>o.break())})})}}};e.default=i}}),Jv=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/not.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=De(),n={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(u){const{gen:r,schema:i,it:a}=u;if((0,t.alwaysValidSchema)(a,i)){u.fail();return}const o=r.name("valid");u.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),u.failResult(o,()=>u.reset(),()=>u.error())},error:{message:"must NOT be valid"}};e.default=n}}),Wv=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=St(),n={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:t.validateUnion,error:{message:"must match a schema in anyOf"}};e.default=n}}),Hv=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=pe(),n=De(),u={message:"must match exactly one schema in oneOf",params:({params:i})=>(0,t._)`{passingSchemas: ${i.passing}}`},r={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:u,code(i){const{gen:a,schema:o,parentSchema:s,it:c}=i;if(!Array.isArray(o))throw new Error("ajv implementation error");if(c.opts.discriminator&&s.discriminator)return;const l=o,d=a.let("valid",!1),m=a.let("passing",null),p=a.name("_valid");i.setParams({passing:m}),a.block(E),i.result(d,()=>i.reset(),()=>i.error(!0));function E(){l.forEach((b,g)=>{let f;(0,n.alwaysValidSchema)(c,b)?a.var(p,!0):f=i.subschema({keyword:"oneOf",schemaProp:g,compositeRule:!0},p),g>0&&a.if((0,t._)`${p} && ${d}`).assign(d,!1).assign(m,(0,t._)`[${m}, ${g}]`).else(),a.if(p,()=>{a.assign(d,!0),a.assign(m,g),f&&i.mergeEvaluated(f,t.Name)})})}}};e.default=r}}),Gv=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=De(),n={keyword:"allOf",schemaType:"array",code(u){const{gen:r,schema:i,it:a}=u;if(!Array.isArray(i))throw new Error("ajv implementation error");const o=r.name("valid");i.forEach((s,c)=>{if((0,t.alwaysValidSchema)(a,s))return;const l=u.subschema({keyword:"allOf",schemaProp:c},o);u.ok(o),u.mergeEvaluated(l)})}};e.default=n}}),Kv=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/if.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=pe(),n=De(),u={message:({params:a})=>(0,t.str)`must match "${a.ifClause}" schema`,params:({params:a})=>(0,t._)`{failingKeyword: ${a.ifClause}}`},r={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:u,code(a){const{gen:o,parentSchema:s,it:c}=a;s.then===void 0&&s.else===void 0&&(0,n.checkStrictMode)(c,'"if" without "then" and "else" is ignored');const l=i(c,"then"),d=i(c,"else");if(!l&&!d)return;const m=o.let("valid",!0),p=o.name("_valid");if(E(),a.reset(),l&&d){const g=o.let("ifClause");a.setParams({ifClause:g}),o.if(p,b("then",g),b("else",g))}else l?o.if(p,b("then")):o.if((0,t.not)(p),b("else"));a.pass(m,()=>a.error(!0));function E(){const g=a.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},p);a.mergeEvaluated(g)}function b(g,f){return()=>{const $=a.subschema({keyword:g},p);o.assign(m,p),a.mergeValidEvaluated($,m),f?o.assign(f,(0,t._)`${g}`):a.setParams({ifClause:g})}}}};function i(a,o){const s=a.schema[o];return s!==void 0&&!(0,n.alwaysValidSchema)(a,s)}e.default=r}}),Xv=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=De(),n={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:u,parentSchema:r,it:i}){r.if===void 0&&(0,t.checkStrictMode)(i,`"${u}" without "if" is ignored`)}};e.default=n}}),Yv=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/index.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=O0(),n=Rv(),u=N0(),r=Zv(),i=Uv(),a=Mv(),o=Lv(),s=R0(),c=qv(),l=Vv(),d=Jv(),m=Wv(),p=Hv(),E=Gv(),b=Kv(),g=Xv();function f($=!1){const v=[d.default,m.default,p.default,E.default,b.default,g.default,o.default,s.default,a.default,c.default,l.default];return $?v.push(n.default,r.default):v.push(t.default,u.default),v.push(i.default),v}e.default=f}}),Qv=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/format.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=pe(),n={message:({schemaCode:r})=>(0,t.str)`must match format "${r}"`,params:({schemaCode:r})=>(0,t._)`{format: ${r}}`},u={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:n,code(r,i){const{gen:a,data:o,$data:s,schema:c,schemaCode:l,it:d}=r,{opts:m,errSchemaPath:p,schemaEnv:E,self:b}=d;if(!m.validateFormats)return;s?g():f();function g(){const $=a.scopeValue("formats",{ref:b.formats,code:m.code.formats}),v=a.const("fDef",(0,t._)`${$}[${l}]`),D=a.let("fType"),C=a.let("format");a.if((0,t._)`typeof ${v} == "object" && !(${v} instanceof RegExp)`,()=>a.assign(D,(0,t._)`${v}.type || "string"`).assign(C,(0,t._)`${v}.validate`),()=>a.assign(D,(0,t._)`"string"`).assign(C,v)),r.fail$data((0,t.or)(w(),h()));function w(){return m.strictSchema===!1?t.nil:(0,t._)`${l} && !${C}`}function h(){const y=E.$async?(0,t._)`(${v}.async ? await ${C}(${o}) : ${C}(${o}))`:(0,t._)`${C}(${o})`,k=(0,t._)`(typeof ${C} == "function" ? ${y} : ${C}.test(${o}))`;return(0,t._)`${C} && ${C} !== true && ${D} === ${i} && !${k}`}}function f(){const $=b.formats[c];if(!$){w();return}if($===!0)return;const[v,D,C]=h($);v===i&&r.pass(y());function w(){if(m.strictSchema===!1){b.logger.warn(k());return}throw new Error(k());function k(){return`unknown format "${c}" ignored in schema at path "${p}"`}}function h(k){const S=k instanceof RegExp?(0,t.regexpCode)(k):m.code.formats?(0,t._)`${m.code.formats}${(0,t.getProperty)(c)}`:void 0,I=a.scopeValue("formats",{key:c,ref:k,code:S});return typeof k=="object"&&!(k instanceof RegExp)?[k.type||"string",k.validate,(0,t._)`${I}.validate`]:["string",k,I]}function y(){if(typeof $=="object"&&!($ instanceof RegExp)&&$.async){if(!E.$async)throw new Error("async format in sync schema");return(0,t._)`await ${C}(${o})`}return typeof D=="function"?(0,t._)`${C}(${o})`:(0,t._)`${C}.test(${o})`}}}};e.default=u}}),eg=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/index.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Qv(),n=[t.default];e.default=n}}),tg=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/metadata.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.contentVocabulary=e.metadataVocabulary=void 0,e.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],e.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]}}),rg=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/draft7.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=kv(),n=Nv(),u=Yv(),r=eg(),i=tg(),a=[t.default,n.default,(0,u.default)(),r.default,i.metadataVocabulary,i.contentVocabulary];e.default=a}}),ng=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/types.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0;var t;(function(n){n.Tag="tag",n.Mapping="mapping"})(t||(e.DiscrError=t={}))}}),ug=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/index.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=pe(),n=ng(),u=ca(),r=nu(),i=De(),a={message:({params:{discrError:s,tagName:c}})=>s===n.DiscrError.Tag?`tag "${c}" must be string`:`value of tag "${c}" must be in oneOf`,params:({params:{discrError:s,tag:c,tagName:l}})=>(0,t._)`{error: ${s}, tag: ${l}, tagValue: ${c}}`},o={keyword:"discriminator",type:"object",schemaType:"object",error:a,code(s){const{gen:c,data:l,schema:d,parentSchema:m,it:p}=s,{oneOf:E}=m;if(!p.opts.discriminator)throw new Error("discriminator: requires discriminator option");const b=d.propertyName;if(typeof b!="string")throw new Error("discriminator: requires propertyName");if(d.mapping)throw new Error("discriminator: mapping is not supported");if(!E)throw new Error("discriminator: requires oneOf keyword");const g=c.let("valid",!1),f=c.const("tag",(0,t._)`${l}${(0,t.getProperty)(b)}`);c.if((0,t._)`typeof ${f} == "string"`,()=>$(),()=>s.error(!1,{discrError:n.DiscrError.Tag,tag:f,tagName:b})),s.ok(g);function $(){const C=D();c.if(!1);for(const w in C)c.elseIf((0,t._)`${f} === ${w}`),c.assign(g,v(C[w]));c.else(),s.error(!1,{discrError:n.DiscrError.Mapping,tag:f,tagName:b}),c.endIf()}function v(C){const w=c.name("valid"),h=s.subschema({keyword:"oneOf",schemaProp:C},w);return s.mergeEvaluated(h,t.Name),w}function D(){var C;const w={},h=k(m);let y=!0;for(let T=0;T<E.length;T++){let j=E[T];if(j?.$ref&&!(0,i.schemaHasRulesButRef)(j,p.self.RULES)){const Q=j.$ref;if(j=u.resolveRef.call(p.self,p.schemaEnv.root,p.baseId,Q),j instanceof u.SchemaEnv&&(j=j.schema),j===void 0)throw new r.default(p.opts.uriResolver,p.baseId,Q)}const N=(C=j?.properties)===null||C===void 0?void 0:C[b];if(typeof N!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${b}"`);y=y&&(h||k(j)),S(N,T)}if(!y)throw new Error(`discriminator: "${b}" must be required`);return w;function k({required:T}){return Array.isArray(T)&&T.includes(b)}function S(T,j){if(T.const)I(T.const,j);else if(T.enum)for(const N of T.enum)I(N,j);else throw new Error(`discriminator: "properties/${b}" must have "const" or "enum"`)}function I(T,j){if(typeof T!="string"||T in w)throw new Error(`discriminator: "${b}" values must be unique strings`);w[T]=j}}}};e.default=o}}),ig=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-draft-07.json"(e,t){t.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}}}),Z0=G({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/ajv.js"(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv=void 0;var n=$v(),u=rg(),r=ug(),i=ig(),a=["/properties"],o="http://json-schema.org/draft-07/schema",s=class extends n.default{_addVocabularies(){super._addVocabularies(),u.default.forEach(p=>this.addVocabulary(p)),this.opts.discriminator&&this.addKeyword(r.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const p=this.opts.$data?this.$dataMetaSchema(i,a):i;this.addMetaSchema(p,o,!1),this.refs["http://json-schema.org/schema"]=o}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(o)?o:void 0)}};e.Ajv=s,t.exports=e=s,t.exports.Ajv=s,Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var c=ru();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var l=pe();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return l.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return l.CodeGen}});var d=sa();Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return d.default}});var m=nu();Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return m.default}})}}),ag=G({"../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/formats.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(I,T){return{validate:I,compare:T}}e.fullFormats={date:t(i,a),time:t(s(!0),c),"date-time":t(m(!0),p),"iso-time":t(s(),l),"iso-date-time":t(m(),E),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:f,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:S,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:v,int32:{type:"number",validate:w},int64:{type:"number",validate:h},float:{type:"number",validate:y},double:{type:"number",validate:y},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,a),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,c),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,p),"iso-time":t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,l),"iso-date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,E),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function n(I){return I%4===0&&(I%100!==0||I%400===0)}var u=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,r=[0,31,28,31,30,31,30,31,31,30,31,30,31];function i(I){const T=u.exec(I);if(!T)return!1;const j=+T[1],N=+T[2],Q=+T[3];return N>=1&&N<=12&&Q>=1&&Q<=(N===2&&n(j)?29:r[N])}function a(I,T){if(I&&T)return I>T?1:I<T?-1:0}var o=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function s(I){return function(j){const N=o.exec(j);if(!N)return!1;const Q=+N[1],de=+N[2],je=+N[3],Oe=N[4],be=N[5]==="-"?-1:1,B=+(N[6]||0),R=+(N[7]||0);if(B>23||R>59||I&&!Oe)return!1;if(Q<=23&&de<=59&&je<60)return!0;const U=de-R*be,_=Q-B*be-(U<0?1:0);return(_===23||_===-1)&&(U===59||U===-1)&&je<61}}function c(I,T){if(!(I&&T))return;const j=new Date("2020-01-01T"+I).valueOf(),N=new Date("2020-01-01T"+T).valueOf();if(j&&N)return j-N}function l(I,T){if(!(I&&T))return;const j=o.exec(I),N=o.exec(T);if(j&&N)return I=j[1]+j[2]+j[3],T=N[1]+N[2]+N[3],I>T?1:I<T?-1:0}var d=/t|\s/i;function m(I){const T=s(I);return function(N){const Q=N.split(d);return Q.length===2&&i(Q[0])&&T(Q[1])}}function p(I,T){if(!(I&&T))return;const j=new Date(I).valueOf(),N=new Date(T).valueOf();if(j&&N)return j-N}function E(I,T){if(!(I&&T))return;const[j,N]=I.split(d),[Q,de]=T.split(d),je=a(j,Q);if(je!==void 0)return je||c(N,de)}var b=/\/|:/,g=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function f(I){return b.test(I)&&g.test(I)}var $=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function v(I){return $.lastIndex=0,$.test(I)}var D=-(2**31),C=2**31-1;function w(I){return Number.isInteger(I)&&I<=C&&I>=D}function h(I){return Number.isInteger(I)}function y(){return!0}var k=/[^\\]\\Z/;function S(I){if(k.test(I))return!1;try{return new RegExp(I),!0}catch{return!1}}}}),og=G({"../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/limit.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;var t=Z0(),n=pe(),u=n.operators,r={formatMaximum:{okStr:"<=",ok:u.LTE,fail:u.GT},formatMinimum:{okStr:">=",ok:u.GTE,fail:u.LT},formatExclusiveMaximum:{okStr:"<",ok:u.LT,fail:u.GTE},formatExclusiveMinimum:{okStr:">",ok:u.GT,fail:u.LTE}},i={message:({keyword:o,schemaCode:s})=>(0,n.str)`should be ${r[o].okStr} ${s}`,params:({keyword:o,schemaCode:s})=>(0,n._)`{comparison: ${r[o].okStr}, limit: ${s}}`};e.formatLimitDefinition={keyword:Object.keys(r),type:"string",schemaType:"string",$data:!0,error:i,code(o){const{gen:s,data:c,schemaCode:l,keyword:d,it:m}=o,{opts:p,self:E}=m;if(!p.validateFormats)return;const b=new t.KeywordCxt(m,E.RULES.all.format.definition,"format");b.$data?g():f();function g(){const v=s.scopeValue("formats",{ref:E.formats,code:p.code.formats}),D=s.const("fmt",(0,n._)`${v}[${b.schemaCode}]`);o.fail$data((0,n.or)((0,n._)`typeof ${D} != "object"`,(0,n._)`${D} instanceof RegExp`,(0,n._)`typeof ${D}.compare != "function"`,$(D)))}function f(){const v=b.schema,D=E.formats[v];if(!D||D===!0)return;if(typeof D!="object"||D instanceof RegExp||typeof D.compare!="function")throw new Error(`"${d}": format "${v}" does not define "compare" function`);const C=s.scopeValue("formats",{key:v,ref:D,code:p.code.formats?(0,n._)`${p.code.formats}${(0,n.getProperty)(v)}`:void 0});o.fail$data($(C))}function $(v){return(0,n._)`${v}.compare(${c}, ${l}) ${r[d].fail} 0`}},dependencies:["format"]};var a=o=>(o.addKeyword(e.formatLimitDefinition),o);e.default=a}}),sg=G({"../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/index.js"(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=ag(),u=og(),r=pe(),i=new r.Name("fullFormats"),a=new r.Name("fastFormats"),o=(c,l={keywords:!0})=>{if(Array.isArray(l))return s(c,l,n.fullFormats,i),c;const[d,m]=l.mode==="fast"?[n.fastFormats,a]:[n.fullFormats,i],p=l.formats||n.formatNames;return s(c,p,d,m),l.keywords&&(0,u.default)(c),c};o.get=(c,l="full")=>{const m=(l==="fast"?n.fastFormats:n.fullFormats)[c];if(!m)throw new Error(`Unknown format "${c}"`);return m};function s(c,l,d,m){var p,E;(p=(E=c.opts.code).formats)!==null&&p!==void 0||(E.formats=(0,r._)`require("ajv-formats/dist/formats").${m}`);for(const b of l)c.addFormat(b,d[b])}t.exports=e=o,Object.defineProperty(e,"__esModule",{value:!0}),e.default=o}}),$e;(function(e){e.assertEqual=r=>{};function t(r){}e.assertIs=t;function n(r){throw new Error}e.assertNever=n,e.arrayToEnum=r=>{const i={};for(const a of r)i[a]=a;return i},e.getValidEnumValues=r=>{const i=e.objectKeys(r).filter(o=>typeof r[r[o]]!="number"),a={};for(const o of i)a[o]=r[o];return e.objectValues(a)},e.objectValues=r=>e.objectKeys(r).map(function(i){return r[i]}),e.objectKeys=typeof Object.keys=="function"?r=>Object.keys(r):r=>{const i=[];for(const a in r)Object.prototype.hasOwnProperty.call(r,a)&&i.push(a);return i},e.find=(r,i)=>{for(const a of r)if(i(a))return a},e.isInteger=typeof Number.isInteger=="function"?r=>Number.isInteger(r):r=>typeof r=="number"&&Number.isFinite(r)&&Math.floor(r)===r;function u(r,i=" | "){return r.map(a=>typeof a=="string"?`'${a}'`:a).join(i)}e.joinValues=u,e.jsonStringifyReplacer=(r,i)=>typeof i=="bigint"?i.toString():i})($e||($e={}));var U0;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(U0||(U0={}));var X=$e.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),rr=e=>{switch(typeof e){case"undefined":return X.undefined;case"string":return X.string;case"number":return Number.isNaN(e)?X.nan:X.number;case"boolean":return X.boolean;case"function":return X.function;case"bigint":return X.bigint;case"symbol":return X.symbol;case"object":return Array.isArray(e)?X.array:e===null?X.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?X.promise:typeof Map<"u"&&e instanceof Map?X.map:typeof Set<"u"&&e instanceof Set?X.set:typeof Date<"u"&&e instanceof Date?X.date:X.object;default:return X.unknown}},M=$e.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),zt=class H4 extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=u=>{this.issues=[...this.issues,u]},this.addIssues=(u=[])=>{this.issues=[...this.issues,...u]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(i){return i.message},u={_errors:[]},r=i=>{for(const a of i.issues)if(a.code==="invalid_union")a.unionErrors.map(r);else if(a.code==="invalid_return_type")r(a.returnTypeError);else if(a.code==="invalid_arguments")r(a.argumentsError);else if(a.path.length===0)u._errors.push(n(a));else{let o=u,s=0;for(;s<a.path.length;){const c=a.path[s];s===a.path.length-1?(o[c]=o[c]||{_errors:[]},o[c]._errors.push(n(a))):o[c]=o[c]||{_errors:[]},o=o[c],s++}}};return r(this),u}static assert(t){if(!(t instanceof H4))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,$e.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n=Object.create(null),u=[];for(const r of this.issues)if(r.path.length>0){const i=r.path[0];n[i]=n[i]||[],n[i].push(t(r))}else u.push(t(r));return{formErrors:u,fieldErrors:n}}get formErrors(){return this.flatten()}};zt.create=e=>new zt(e);var cg=(e,t)=>{let n;switch(e.code){case M.invalid_type:e.received===X.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case M.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,$e.jsonStringifyReplacer)}`;break;case M.unrecognized_keys:n=`Unrecognized key(s) in object: ${$e.joinValues(e.keys,", ")}`;break;case M.invalid_union:n="Invalid input";break;case M.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${$e.joinValues(e.options)}`;break;case M.invalid_enum_value:n=`Invalid enum value. Expected ${$e.joinValues(e.options)}, received '${e.received}'`;break;case M.invalid_arguments:n="Invalid function arguments";break;case M.invalid_return_type:n="Invalid function return type";break;case M.invalid_date:n="Invalid date";break;case M.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:$e.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case M.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case M.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case M.custom:n="Invalid input";break;case M.invalid_intersection_types:n="Intersection results could not be merged";break;case M.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case M.not_finite:n="Number must be finite";break;default:n=t.defaultError,$e.assertNever(e)}return{message:n}},Kr=cg,lg=Kr;function da(){return lg}var fa=e=>{const{data:t,path:n,errorMaps:u,issueData:r}=e,i=[...n,...r.path||[]],a={...r,path:i};if(r.message!==void 0)return{...r,path:i,message:r.message};let o="";const s=u.filter(c=>!!c).slice().reverse();for(const c of s)o=c(a,{data:t,defaultError:o}).message;return{...r,path:i,message:o}};function W(e,t){const n=da(),u=fa({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Kr?void 0:Kr].filter(r=>!!r)});e.common.issues.push(u)}var ft=class G4{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const u=[];for(const r of n){if(r.status==="aborted")return ae;r.status==="dirty"&&t.dirty(),u.push(r.value)}return{status:t.value,value:u}}static async mergeObjectAsync(t,n){const u=[];for(const r of n){const i=await r.key,a=await r.value;u.push({key:i,value:a})}return G4.mergeObjectSync(t,u)}static mergeObjectSync(t,n){const u={};for(const r of n){const{key:i,value:a}=r;if(i.status==="aborted"||a.status==="aborted")return ae;i.status==="dirty"&&t.dirty(),a.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof a.value<"u"||r.alwaysSet)&&(u[i.value]=a.value)}return{status:t.value,value:u}}},ae=Object.freeze({status:"aborted"}),Xr=e=>({status:"dirty",value:e}),at=e=>({status:"valid",value:e}),M0=e=>e.status==="aborted",L0=e=>e.status==="dirty",xr=e=>e.status==="valid",uu=e=>typeof Promise<"u"&&e instanceof Promise,Y;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(Y||(Y={}));var Ot=class{constructor(e,t,n,u){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=u}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},q0=(e,t)=>{if(xr(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new zt(e.common.issues);return this._error=n,this._error}}};function fe(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:u,description:r}=e;if(t&&(n||u))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:r}:{errorMap:(a,o)=>{const{message:s}=e;return a.code==="invalid_enum_value"?{message:s??o.defaultError}:typeof o.data>"u"?{message:s??u??o.defaultError}:a.code!=="invalid_type"?{message:o.defaultError}:{message:s??n??o.defaultError}},description:r}}var _e=class{get description(){return this._def.description}_getType(e){return rr(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:rr(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new ft,ctx:{common:e.parent.common,data:e.data,parsedType:rr(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(uu(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){const n={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:rr(e)},u=this._parseSync({data:e,path:n.path,parent:n});return q0(n,u)}"~validate"(e){const t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:rr(e)};if(!this["~standard"].async)try{const n=this._parseSync({data:e,path:[],parent:t});return xr(n)?{value:n.value}:{issues:t.common.issues}}catch(n){n?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(n=>xr(n)?{value:n.value}:{issues:t.common.issues})}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:rr(e)},u=this._parse({data:e,path:n.path,parent:n}),r=await(uu(u)?u:Promise.resolve(u));return q0(n,r)}refine(e,t){const n=u=>typeof t=="string"||typeof t>"u"?{message:t}:typeof t=="function"?t(u):t;return this._refinement((u,r)=>{const i=e(u),a=()=>r.addIssue({code:M.custom,...n(u)});return typeof Promise<"u"&&i instanceof Promise?i.then(o=>o?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(e,t){return this._refinement((n,u)=>e(n)?!0:(u.addIssue(typeof t=="function"?t(n,u):t),!1))}_refinement(e){return new Jt({schema:this,typeName:V.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:t=>this["~validate"](t)}}optional(){return Wt.create(this,this._def)}nullable(){return pr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ir.create(this)}promise(){return Yr.create(this,this._def)}or(e){return su.create([this,e],this._def)}and(e){return cu.create(this,e,this._def)}transform(e){return new Jt({...fe(this._def),schema:this,typeName:V.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t=typeof e=="function"?e:()=>e;return new mu({...fe(this._def),innerType:this,defaultValue:t,typeName:V.ZodDefault})}brand(){return new H0({typeName:V.ZodBranded,type:this,...fe(this._def)})}catch(e){const t=typeof e=="function"?e:()=>e;return new pu({...fe(this._def),innerType:this,catchValue:t,typeName:V.ZodCatch})}describe(e){const t=this.constructor;return new t({...this._def,description:e})}pipe(e){return G0.create(this,e)}readonly(){return vu.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},dg=/^c[^\s-]{8,}$/i,fg=/^[0-9a-z]+$/,hg=/^[0-9A-HJKMNP-TV-Z]{26}$/i,mg=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,pg=/^[a-z0-9_-]{21}$/i,vg=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,gg=/^[-+]?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)?)??$/,_g=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,yg="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",ha,Eg=/^(?:(?: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])$/,bg=/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,Dg=/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,$g=/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,wg=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Cg=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,V0="((\\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])))",kg=new RegExp(`^${V0}$`);function J0(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function Sg(e){return new RegExp(`^${J0(e)}$`)}function Ag(e){let t=`${V0}T${J0(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function xg(e,t){return!!((t==="v4"||!t)&&Eg.test(e)||(t==="v6"||!t)&&Dg.test(e))}function Bg(e,t){if(!vg.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const u=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),r=JSON.parse(atob(u));return!(typeof r!="object"||r===null||"typ"in r&&r?.typ!=="JWT"||!r.alg||t&&r.alg!==t)}catch{return!1}}function Ig(e,t){return!!((t==="v4"||!t)&&bg.test(e)||(t==="v6"||!t)&&$g.test(e))}var iu=class Kn extends _e{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==X.string){const i=this._getOrReturnCtx(t);return W(i,{code:M.invalid_type,expected:X.string,received:i.parsedType}),ae}const u=new ft;let r;for(const i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(r=this._getOrReturnCtx(t,r),W(r,{code:M.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),u.dirty());else if(i.kind==="max")t.data.length>i.value&&(r=this._getOrReturnCtx(t,r),W(r,{code:M.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),u.dirty());else if(i.kind==="length"){const a=t.data.length>i.value,o=t.data.length<i.value;(a||o)&&(r=this._getOrReturnCtx(t,r),a?W(r,{code:M.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):o&&W(r,{code:M.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),u.dirty())}else if(i.kind==="email")_g.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"email",code:M.invalid_string,message:i.message}),u.dirty());else if(i.kind==="emoji")ha||(ha=new RegExp(yg,"u")),ha.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"emoji",code:M.invalid_string,message:i.message}),u.dirty());else if(i.kind==="uuid")mg.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"uuid",code:M.invalid_string,message:i.message}),u.dirty());else if(i.kind==="nanoid")pg.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"nanoid",code:M.invalid_string,message:i.message}),u.dirty());else if(i.kind==="cuid")dg.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"cuid",code:M.invalid_string,message:i.message}),u.dirty());else if(i.kind==="cuid2")fg.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"cuid2",code:M.invalid_string,message:i.message}),u.dirty());else if(i.kind==="ulid")hg.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"ulid",code:M.invalid_string,message:i.message}),u.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{r=this._getOrReturnCtx(t,r),W(r,{validation:"url",code:M.invalid_string,message:i.message}),u.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"regex",code:M.invalid_string,message:i.message}),u.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(r=this._getOrReturnCtx(t,r),W(r,{code:M.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),u.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(r=this._getOrReturnCtx(t,r),W(r,{code:M.invalid_string,validation:{startsWith:i.value},message:i.message}),u.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(r=this._getOrReturnCtx(t,r),W(r,{code:M.invalid_string,validation:{endsWith:i.value},message:i.message}),u.dirty()):i.kind==="datetime"?Ag(i).test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{code:M.invalid_string,validation:"datetime",message:i.message}),u.dirty()):i.kind==="date"?kg.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{code:M.invalid_string,validation:"date",message:i.message}),u.dirty()):i.kind==="time"?Sg(i).test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{code:M.invalid_string,validation:"time",message:i.message}),u.dirty()):i.kind==="duration"?gg.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"duration",code:M.invalid_string,message:i.message}),u.dirty()):i.kind==="ip"?xg(t.data,i.version)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"ip",code:M.invalid_string,message:i.message}),u.dirty()):i.kind==="jwt"?Bg(t.data,i.alg)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"jwt",code:M.invalid_string,message:i.message}),u.dirty()):i.kind==="cidr"?Ig(t.data,i.version)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"cidr",code:M.invalid_string,message:i.message}),u.dirty()):i.kind==="base64"?wg.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"base64",code:M.invalid_string,message:i.message}),u.dirty()):i.kind==="base64url"?Cg.test(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{validation:"base64url",code:M.invalid_string,message:i.message}),u.dirty()):$e.assertNever(i);return{status:u.value,value:t.data}}_regex(t,n,u){return this.refinement(r=>t.test(r),{validation:n,code:M.invalid_string,...Y.errToObj(u)})}_addCheck(t){return new Kn({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Y.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Y.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Y.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Y.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Y.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Y.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Y.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Y.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Y.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Y.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Y.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Y.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Y.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...Y.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...Y.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...Y.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Y.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...Y.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Y.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Y.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Y.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Y.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Y.errToObj(n)})}nonempty(t){return this.min(1,Y.errToObj(t))}trim(){return new Kn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Kn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Kn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};iu.create=e=>new iu({checks:[],typeName:V.ZodString,coerce:e?.coerce??!1,...fe(e)});function Fg(e,t){const n=(e.toString().split(".")[1]||"").length,u=(t.toString().split(".")[1]||"").length,r=n>u?n:u,i=Number.parseInt(e.toFixed(r).replace(".","")),a=Number.parseInt(t.toFixed(r).replace(".",""));return i%a/10**r}var ma=class $0 extends _e{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==X.number){const i=this._getOrReturnCtx(t);return W(i,{code:M.invalid_type,expected:X.number,received:i.parsedType}),ae}let u;const r=new ft;for(const i of this._def.checks)i.kind==="int"?$e.isInteger(t.data)||(u=this._getOrReturnCtx(t,u),W(u,{code:M.invalid_type,expected:"integer",received:"float",message:i.message}),r.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(u=this._getOrReturnCtx(t,u),W(u,{code:M.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),r.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(u=this._getOrReturnCtx(t,u),W(u,{code:M.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),r.dirty()):i.kind==="multipleOf"?Fg(t.data,i.value)!==0&&(u=this._getOrReturnCtx(t,u),W(u,{code:M.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(u=this._getOrReturnCtx(t,u),W(u,{code:M.not_finite,message:i.message}),r.dirty()):$e.assertNever(i);return{status:r.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Y.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Y.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Y.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Y.toString(n))}setLimit(t,n,u,r){return new $0({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:u,message:Y.toString(r)}]})}_addCheck(t){return new $0({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Y.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Y.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Y.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Y.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Y.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Y.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Y.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Y.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Y.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&$e.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const u of this._def.checks){if(u.kind==="finite"||u.kind==="int"||u.kind==="multipleOf")return!0;u.kind==="min"?(n===null||u.value>n)&&(n=u.value):u.kind==="max"&&(t===null||u.value<t)&&(t=u.value)}return Number.isFinite(n)&&Number.isFinite(t)}};ma.create=e=>new ma({checks:[],typeName:V.ZodNumber,coerce:e?.coerce||!1,...fe(e)});var pa=class w0 extends _e{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==X.bigint)return this._getInvalidInput(t);let u;const r=new ft;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(u=this._getOrReturnCtx(t,u),W(u,{code:M.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(u=this._getOrReturnCtx(t,u),W(u,{code:M.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(u=this._getOrReturnCtx(t,u),W(u,{code:M.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):$e.assertNever(i);return{status:r.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return W(n,{code:M.invalid_type,expected:X.bigint,received:n.parsedType}),ae}gte(t,n){return this.setLimit("min",t,!0,Y.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Y.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Y.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Y.toString(n))}setLimit(t,n,u,r){return new w0({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:u,message:Y.toString(r)}]})}_addCheck(t){return new w0({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Y.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Y.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Y.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Y.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Y.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};pa.create=e=>new pa({checks:[],typeName:V.ZodBigInt,coerce:e?.coerce??!1,...fe(e)});var va=class extends _e{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==X.boolean){const n=this._getOrReturnCtx(e);return W(n,{code:M.invalid_type,expected:X.boolean,received:n.parsedType}),ae}return at(e.data)}};va.create=e=>new va({typeName:V.ZodBoolean,coerce:e?.coerce||!1,...fe(e)});var ga=class K4 extends _e{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==X.date){const i=this._getOrReturnCtx(t);return W(i,{code:M.invalid_type,expected:X.date,received:i.parsedType}),ae}if(Number.isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return W(i,{code:M.invalid_date}),ae}const u=new ft;let r;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(r=this._getOrReturnCtx(t,r),W(r,{code:M.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),u.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(r=this._getOrReturnCtx(t,r),W(r,{code:M.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),u.dirty()):$e.assertNever(i);return{status:u.value,value:new Date(t.data.getTime())}}_addCheck(t){return new K4({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Y.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Y.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}};ga.create=e=>new ga({checks:[],coerce:e?.coerce||!1,typeName:V.ZodDate,...fe(e)});var _a=class extends _e{_parse(e){if(this._getType(e)!==X.symbol){const n=this._getOrReturnCtx(e);return W(n,{code:M.invalid_type,expected:X.symbol,received:n.parsedType}),ae}return at(e.data)}};_a.create=e=>new _a({typeName:V.ZodSymbol,...fe(e)});var au=class extends _e{_parse(e){if(this._getType(e)!==X.undefined){const n=this._getOrReturnCtx(e);return W(n,{code:M.invalid_type,expected:X.undefined,received:n.parsedType}),ae}return at(e.data)}};au.create=e=>new au({typeName:V.ZodUndefined,...fe(e)});var ou=class extends _e{_parse(e){if(this._getType(e)!==X.null){const n=this._getOrReturnCtx(e);return W(n,{code:M.invalid_type,expected:X.null,received:n.parsedType}),ae}return at(e.data)}};ou.create=e=>new ou({typeName:V.ZodNull,...fe(e)});var ya=class extends _e{constructor(){super(...arguments),this._any=!0}_parse(e){return at(e.data)}};ya.create=e=>new ya({typeName:V.ZodAny,...fe(e)});var Br=class extends _e{constructor(){super(...arguments),this._unknown=!0}_parse(e){return at(e.data)}};Br.create=e=>new Br({typeName:V.ZodUnknown,...fe(e)});var nr=class extends _e{_parse(e){const t=this._getOrReturnCtx(e);return W(t,{code:M.invalid_type,expected:X.never,received:t.parsedType}),ae}};nr.create=e=>new nr({typeName:V.ZodNever,...fe(e)});var Ea=class extends _e{_parse(e){if(this._getType(e)!==X.undefined){const n=this._getOrReturnCtx(e);return W(n,{code:M.invalid_type,expected:X.void,received:n.parsedType}),ae}return at(e.data)}};Ea.create=e=>new Ea({typeName:V.ZodVoid,...fe(e)});var Ir=class na extends _e{_parse(t){const{ctx:n,status:u}=this._processInputParams(t),r=this._def;if(n.parsedType!==X.array)return W(n,{code:M.invalid_type,expected:X.array,received:n.parsedType}),ae;if(r.exactLength!==null){const a=n.data.length>r.exactLength.value,o=n.data.length<r.exactLength.value;(a||o)&&(W(n,{code:a?M.too_big:M.too_small,minimum:o?r.exactLength.value:void 0,maximum:a?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),u.dirty())}if(r.minLength!==null&&n.data.length<r.minLength.value&&(W(n,{code:M.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),u.dirty()),r.maxLength!==null&&n.data.length>r.maxLength.value&&(W(n,{code:M.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),u.dirty()),n.common.async)return Promise.all([...n.data].map((a,o)=>r.type._parseAsync(new Ot(n,a,n.path,o)))).then(a=>ft.mergeArray(u,a));const i=[...n.data].map((a,o)=>r.type._parseSync(new Ot(n,a,n.path,o)));return ft.mergeArray(u,i)}get element(){return this._def.type}min(t,n){return new na({...this._def,minLength:{value:t,message:Y.toString(n)}})}max(t,n){return new na({...this._def,maxLength:{value:t,message:Y.toString(n)}})}length(t,n){return new na({...this._def,exactLength:{value:t,message:Y.toString(n)}})}nonempty(t){return this.min(1,t)}};Ir.create=(e,t)=>new Ir({type:e,minLength:null,maxLength:null,exactLength:null,typeName:V.ZodArray,...fe(t)});function Fr(e){if(e instanceof At){const t={};for(const n in e.shape){const u=e.shape[n];t[n]=Wt.create(Fr(u))}return new At({...e._def,shape:()=>t})}else return e instanceof Ir?new Ir({...e._def,type:Fr(e.element)}):e instanceof Wt?Wt.create(Fr(e.unwrap())):e instanceof pr?pr.create(Fr(e.unwrap())):e instanceof mr?mr.create(e.items.map(t=>Fr(t))):e}var At=class jt extends _e{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=$e.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==X.object){const c=this._getOrReturnCtx(t);return W(c,{code:M.invalid_type,expected:X.object,received:c.parsedType}),ae}const{status:u,ctx:r}=this._processInputParams(t),{shape:i,keys:a}=this._getCached(),o=[];if(!(this._def.catchall instanceof nr&&this._def.unknownKeys==="strip"))for(const c in r.data)a.includes(c)||o.push(c);const s=[];for(const c of a){const l=i[c],d=r.data[c];s.push({key:{status:"valid",value:c},value:l._parse(new Ot(r,d,r.path,c)),alwaysSet:c in r.data})}if(this._def.catchall instanceof nr){const c=this._def.unknownKeys;if(c==="passthrough")for(const l of o)s.push({key:{status:"valid",value:l},value:{status:"valid",value:r.data[l]}});else if(c==="strict")o.length>0&&(W(r,{code:M.unrecognized_keys,keys:o}),u.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const l of o){const d=r.data[l];s.push({key:{status:"valid",value:l},value:c._parse(new Ot(r,d,r.path,l)),alwaysSet:l in r.data})}}return r.common.async?Promise.resolve().then(async()=>{const c=[];for(const l of s){const d=await l.key,m=await l.value;c.push({key:d,value:m,alwaysSet:l.alwaysSet})}return c}).then(c=>ft.mergeObjectSync(u,c)):ft.mergeObjectSync(u,s)}get shape(){return this._def.shape()}strict(t){return Y.errToObj,new jt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,u)=>{const r=this._def.errorMap?.(n,u).message??u.defaultError;return n.code==="unrecognized_keys"?{message:Y.errToObj(t).message??r}:{message:r}}}:{}})}strip(){return new jt({...this._def,unknownKeys:"strip"})}passthrough(){return new jt({...this._def,unknownKeys:"passthrough"})}extend(t){return new jt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new jt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:V.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new jt({...this._def,catchall:t})}pick(t){const n={};for(const u of $e.objectKeys(t))t[u]&&this.shape[u]&&(n[u]=this.shape[u]);return new jt({...this._def,shape:()=>n})}omit(t){const n={};for(const u of $e.objectKeys(this.shape))t[u]||(n[u]=this.shape[u]);return new jt({...this._def,shape:()=>n})}deepPartial(){return Fr(this)}partial(t){const n={};for(const u of $e.objectKeys(this.shape)){const r=this.shape[u];t&&!t[u]?n[u]=r:n[u]=r.optional()}return new jt({...this._def,shape:()=>n})}required(t){const n={};for(const u of $e.objectKeys(this.shape))if(t&&!t[u])n[u]=this.shape[u];else{let i=this.shape[u];for(;i instanceof Wt;)i=i._def.innerType;n[u]=i}return new jt({...this._def,shape:()=>n})}keyof(){return W0($e.objectKeys(this.shape))}};At.create=(e,t)=>new At({shape:()=>e,unknownKeys:"strip",catchall:nr.create(),typeName:V.ZodObject,...fe(t)}),At.strictCreate=(e,t)=>new At({shape:()=>e,unknownKeys:"strict",catchall:nr.create(),typeName:V.ZodObject,...fe(t)}),At.lazycreate=(e,t)=>new At({shape:e,unknownKeys:"strip",catchall:nr.create(),typeName:V.ZodObject,...fe(t)});var su=class extends _e{_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options;function u(r){for(const a of r)if(a.result.status==="valid")return a.result;for(const a of r)if(a.result.status==="dirty")return t.common.issues.push(...a.ctx.common.issues),a.result;const i=r.map(a=>new zt(a.ctx.common.issues));return W(t,{code:M.invalid_union,unionErrors:i}),ae}if(t.common.async)return Promise.all(n.map(async r=>{const i={...t,common:{...t.common,issues:[]},parent:null};return{result:await r._parseAsync({data:t.data,path:t.path,parent:i}),ctx:i}})).then(u);{let r;const i=[];for(const o of n){const s={...t,common:{...t.common,issues:[]},parent:null},c=o._parseSync({data:t.data,path:t.path,parent:s});if(c.status==="valid")return c;c.status==="dirty"&&!r&&(r={result:c,ctx:s}),s.common.issues.length&&i.push(s.common.issues)}if(r)return t.common.issues.push(...r.ctx.common.issues),r.result;const a=i.map(o=>new zt(o));return W(t,{code:M.invalid_union,unionErrors:a}),ae}}get options(){return this._def.options}};su.create=(e,t)=>new su({options:e,typeName:V.ZodUnion,...fe(t)});var Vt=e=>e instanceof lu?Vt(e.schema):e instanceof Jt?Vt(e.innerType()):e instanceof du?[e.value]:e instanceof fu?e.options:e instanceof hu?$e.objectValues(e.enum):e instanceof mu?Vt(e._def.innerType):e instanceof au?[void 0]:e instanceof ou?[null]:e instanceof Wt?[void 0,...Vt(e.unwrap())]:e instanceof pr?[null,...Vt(e.unwrap())]:e instanceof H0||e instanceof vu?Vt(e.unwrap()):e instanceof pu?Vt(e._def.innerType):[],Tg=class X4 extends _e{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==X.object)return W(n,{code:M.invalid_type,expected:X.object,received:n.parsedType}),ae;const u=this.discriminator,r=n.data[u],i=this.optionsMap.get(r);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(W(n,{code:M.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[u]}),ae)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,u){const r=new Map;for(const i of n){const a=Vt(i.shape[t]);if(!a.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const o of a){if(r.has(o))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(o)}`);r.set(o,i)}}return new X4({typeName:V.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:r,...fe(u)})}};function ba(e,t){const n=rr(e),u=rr(t);if(e===t)return{valid:!0,data:e};if(n===X.object&&u===X.object){const r=$e.objectKeys(t),i=$e.objectKeys(e).filter(o=>r.indexOf(o)!==-1),a={...e,...t};for(const o of i){const s=ba(e[o],t[o]);if(!s.valid)return{valid:!1};a[o]=s.data}return{valid:!0,data:a}}else if(n===X.array&&u===X.array){if(e.length!==t.length)return{valid:!1};const r=[];for(let i=0;i<e.length;i++){const a=e[i],o=t[i],s=ba(a,o);if(!s.valid)return{valid:!1};r.push(s.data)}return{valid:!0,data:r}}else return n===X.date&&u===X.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var cu=class extends _e{_parse(e){const{status:t,ctx:n}=this._processInputParams(e),u=(r,i)=>{if(M0(r)||M0(i))return ae;const a=ba(r.value,i.value);return a.valid?((L0(r)||L0(i))&&t.dirty(),{status:t.value,value:a.data}):(W(n,{code:M.invalid_intersection_types}),ae)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([r,i])=>u(r,i)):u(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};cu.create=(e,t,n)=>new cu({left:e,right:t,typeName:V.ZodIntersection,...fe(n)});var mr=class Y4 extends _e{_parse(t){const{status:n,ctx:u}=this._processInputParams(t);if(u.parsedType!==X.array)return W(u,{code:M.invalid_type,expected:X.array,received:u.parsedType}),ae;if(u.data.length<this._def.items.length)return W(u,{code:M.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ae;!this._def.rest&&u.data.length>this._def.items.length&&(W(u,{code:M.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...u.data].map((a,o)=>{const s=this._def.items[o]||this._def.rest;return s?s._parse(new Ot(u,a,u.path,o)):null}).filter(a=>!!a);return u.common.async?Promise.all(i).then(a=>ft.mergeArray(n,a)):ft.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new Y4({...this._def,rest:t})}};mr.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new mr({items:e,typeName:V.ZodTuple,rest:null,...fe(t)})};var jg=class C0 extends _e{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:u}=this._processInputParams(t);if(u.parsedType!==X.object)return W(u,{code:M.invalid_type,expected:X.object,received:u.parsedType}),ae;const r=[],i=this._def.keyType,a=this._def.valueType;for(const o in u.data)r.push({key:i._parse(new Ot(u,o,u.path,o)),value:a._parse(new Ot(u,u.data[o],u.path,o)),alwaysSet:o in u.data});return u.common.async?ft.mergeObjectAsync(n,r):ft.mergeObjectSync(n,r)}get element(){return this._def.valueType}static create(t,n,u){return n instanceof _e?new C0({keyType:t,valueType:n,typeName:V.ZodRecord,...fe(u)}):new C0({keyType:iu.create(),valueType:t,typeName:V.ZodRecord,...fe(n)})}},Da=class extends _e{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==X.map)return W(n,{code:M.invalid_type,expected:X.map,received:n.parsedType}),ae;const u=this._def.keyType,r=this._def.valueType,i=[...n.data.entries()].map(([a,o],s)=>({key:u._parse(new Ot(n,a,n.path,[s,"key"])),value:r._parse(new Ot(n,o,n.path,[s,"value"]))}));if(n.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const o of i){const s=await o.key,c=await o.value;if(s.status==="aborted"||c.status==="aborted")return ae;(s.status==="dirty"||c.status==="dirty")&&t.dirty(),a.set(s.value,c.value)}return{status:t.value,value:a}})}else{const a=new Map;for(const o of i){const s=o.key,c=o.value;if(s.status==="aborted"||c.status==="aborted")return ae;(s.status==="dirty"||c.status==="dirty")&&t.dirty(),a.set(s.value,c.value)}return{status:t.value,value:a}}}};Da.create=(e,t,n)=>new Da({valueType:t,keyType:e,typeName:V.ZodMap,...fe(n)});var $a=class k0 extends _e{_parse(t){const{status:n,ctx:u}=this._processInputParams(t);if(u.parsedType!==X.set)return W(u,{code:M.invalid_type,expected:X.set,received:u.parsedType}),ae;const r=this._def;r.minSize!==null&&u.data.size<r.minSize.value&&(W(u,{code:M.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),n.dirty()),r.maxSize!==null&&u.data.size>r.maxSize.value&&(W(u,{code:M.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),n.dirty());const i=this._def.valueType;function a(s){const c=new Set;for(const l of s){if(l.status==="aborted")return ae;l.status==="dirty"&&n.dirty(),c.add(l.value)}return{status:n.value,value:c}}const o=[...u.data.values()].map((s,c)=>i._parse(new Ot(u,s,u.path,c)));return u.common.async?Promise.all(o).then(s=>a(s)):a(o)}min(t,n){return new k0({...this._def,minSize:{value:t,message:Y.toString(n)}})}max(t,n){return new k0({...this._def,maxSize:{value:t,message:Y.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}};$a.create=(e,t)=>new $a({valueType:e,minSize:null,maxSize:null,typeName:V.ZodSet,...fe(t)});var Pg=class ua extends _e{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==X.function)return W(n,{code:M.invalid_type,expected:X.function,received:n.parsedType}),ae;function u(o,s){return fa({data:o,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,da(),Kr].filter(c=>!!c),issueData:{code:M.invalid_arguments,argumentsError:s}})}function r(o,s){return fa({data:o,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,da(),Kr].filter(c=>!!c),issueData:{code:M.invalid_return_type,returnTypeError:s}})}const i={errorMap:n.common.contextualErrorMap},a=n.data;if(this._def.returns instanceof Yr){const o=this;return at(async function(...s){const c=new zt([]),l=await o._def.args.parseAsync(s,i).catch(p=>{throw c.addIssue(u(s,p)),c}),d=await Reflect.apply(a,this,l);return await o._def.returns._def.type.parseAsync(d,i).catch(p=>{throw c.addIssue(r(d,p)),c})})}else{const o=this;return at(function(...s){const c=o._def.args.safeParse(s,i);if(!c.success)throw new zt([u(s,c.error)]);const l=Reflect.apply(a,this,c.data),d=o._def.returns.safeParse(l,i);if(!d.success)throw new zt([r(l,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new ua({...this._def,args:mr.create(t).rest(Br.create())})}returns(t){return new ua({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,u){return new ua({args:t||mr.create([]).rest(Br.create()),returns:n||Br.create(),typeName:V.ZodFunction,...fe(u)})}},lu=class extends _e{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}};lu.create=(e,t)=>new lu({getter:e,typeName:V.ZodLazy,...fe(t)});var du=class extends _e{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return W(t,{received:t.data,code:M.invalid_literal,expected:this._def.value}),ae}return{status:"valid",value:e.data}}get value(){return this._def.value}};du.create=(e,t)=>new du({value:e,typeName:V.ZodLiteral,...fe(t)});function W0(e,t){return new fu({values:e,typeName:V.ZodEnum,...fe(t)})}var fu=class S0 extends _e{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),u=this._def.values;return W(n,{expected:$e.joinValues(u),received:n.parsedType,code:M.invalid_type}),ae}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),u=this._def.values;return W(n,{received:n.data,code:M.invalid_enum_value,options:u}),ae}return at(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return S0.create(t,{...this._def,...n})}exclude(t,n=this._def){return S0.create(this.options.filter(u=>!t.includes(u)),{...this._def,...n})}};fu.create=W0;var hu=class extends _e{_parse(e){const t=$e.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==X.string&&n.parsedType!==X.number){const u=$e.objectValues(t);return W(n,{expected:$e.joinValues(u),received:n.parsedType,code:M.invalid_type}),ae}if(this._cache||(this._cache=new Set($e.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const u=$e.objectValues(t);return W(n,{received:n.data,code:M.invalid_enum_value,options:u}),ae}return at(e.data)}get enum(){return this._def.values}};hu.create=(e,t)=>new hu({values:e,typeName:V.ZodNativeEnum,...fe(t)});var Yr=class extends _e{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==X.promise&&t.common.async===!1)return W(t,{code:M.invalid_type,expected:X.promise,received:t.parsedType}),ae;const n=t.parsedType===X.promise?t.data:Promise.resolve(t.data);return at(n.then(u=>this._def.type.parseAsync(u,{path:t.path,errorMap:t.common.contextualErrorMap})))}};Yr.create=(e,t)=>new Yr({type:e,typeName:V.ZodPromise,...fe(t)});var Jt=class extends _e{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===V.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),u=this._def.effect||null,r={addIssue:i=>{W(n,i),i.fatal?t.abort():t.dirty()},get path(){return n.path}};if(r.addIssue=r.addIssue.bind(r),u.type==="preprocess"){const i=u.transform(n.data,r);if(n.common.async)return Promise.resolve(i).then(async a=>{if(t.value==="aborted")return ae;const o=await this._def.schema._parseAsync({data:a,path:n.path,parent:n});return o.status==="aborted"?ae:o.status==="dirty"||t.value==="dirty"?Xr(o.value):o});{if(t.value==="aborted")return ae;const a=this._def.schema._parseSync({data:i,path:n.path,parent:n});return a.status==="aborted"?ae:a.status==="dirty"||t.value==="dirty"?Xr(a.value):a}}if(u.type==="refinement"){const i=a=>{const o=u.refinement(a,r);if(n.common.async)return Promise.resolve(o);if(o instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(n.common.async===!1){const a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?ae:(a.status==="dirty"&&t.dirty(),i(a.value),{status:t.value,value:a.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>a.status==="aborted"?ae:(a.status==="dirty"&&t.dirty(),i(a.value).then(()=>({status:t.value,value:a.value}))))}if(u.type==="transform")if(n.common.async===!1){const i=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!xr(i))return ae;const a=u.transform(i.value,r);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(i=>xr(i)?Promise.resolve(u.transform(i.value,r)).then(a=>({status:t.value,value:a})):ae);$e.assertNever(u)}};Jt.create=(e,t,n)=>new Jt({schema:e,typeName:V.ZodEffects,effect:t,...fe(n)}),Jt.createWithPreprocess=(e,t,n)=>new Jt({schema:t,effect:{type:"preprocess",transform:e},typeName:V.ZodEffects,...fe(n)});var Wt=class extends _e{_parse(e){return this._getType(e)===X.undefined?at(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Wt.create=(e,t)=>new Wt({innerType:e,typeName:V.ZodOptional,...fe(t)});var pr=class extends _e{_parse(e){return this._getType(e)===X.null?at(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};pr.create=(e,t)=>new pr({innerType:e,typeName:V.ZodNullable,...fe(t)});var mu=class extends _e{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===X.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}};mu.create=(e,t)=>new mu({innerType:e,typeName:V.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...fe(t)});var pu=class extends _e{_parse(e){const{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},u=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return uu(u)?u.then(r=>({status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new zt(n.common.issues)},input:n.data})})):{status:"valid",value:u.status==="valid"?u.value:this._def.catchValue({get error(){return new zt(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};pu.create=(e,t)=>new pu({innerType:e,typeName:V.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...fe(t)});var wa=class extends _e{_parse(e){if(this._getType(e)!==X.nan){const n=this._getOrReturnCtx(e);return W(n,{code:M.invalid_type,expected:X.nan,received:n.parsedType}),ae}return{status:"valid",value:e.data}}};wa.create=e=>new wa({typeName:V.ZodNaN,...fe(e)});var H0=class extends _e{_parse(e){const{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}},G0=class Q4 extends _e{_parse(t){const{status:n,ctx:u}=this._processInputParams(t);if(u.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:u.data,path:u.path,parent:u});return i.status==="aborted"?ae:i.status==="dirty"?(n.dirty(),Xr(i.value)):this._def.out._parseAsync({data:i.value,path:u.path,parent:u})})();{const r=this._def.in._parseSync({data:u.data,path:u.path,parent:u});return r.status==="aborted"?ae:r.status==="dirty"?(n.dirty(),{status:"dirty",value:r.value}):this._def.out._parseSync({data:r.value,path:u.path,parent:u})}}static create(t,n){return new Q4({in:t,out:n,typeName:V.ZodPipeline})}},vu=class extends _e{_parse(e){const t=this._def.innerType._parse(e),n=u=>(xr(u)&&(u.value=Object.freeze(u.value)),u);return uu(t)?t.then(u=>n(u)):n(t)}unwrap(){return this._def.innerType}};vu.create=(e,t)=>new vu({innerType:e,typeName:V.ZodReadonly,...fe(t)});var e$={object:At.lazycreate},V;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(V||(V={}));var t$=iu.create,r$=ma.create,n$=wa.create,u$=pa.create,i$=va.create,a$=ga.create,o$=_a.create,s$=au.create,c$=ou.create,l$=ya.create,d$=Br.create,f$=nr.create,h$=Ea.create,m$=Ir.create,zg=At.create,p$=At.strictCreate,v$=su.create,g$=Tg.create,_$=cu.create,y$=mr.create,E$=jg.create,b$=Da.create,D$=$a.create,$$=Pg.create,w$=lu.create,C$=du.create,k$=fu.create,S$=hu.create,A$=Yr.create,x$=Jt.create,B$=Wt.create,I$=pr.create,F$=Jt.createWithPreprocess,T$=G0.create,K0={};qt(K0,{$ZodAny:()=>Vl,$ZodArray:()=>Xl,$ZodAsyncError:()=>vr,$ZodBase64:()=>Tl,$ZodBase64URL:()=>Pl,$ZodBigInt:()=>Ja,$ZodBigIntFormat:()=>Ul,$ZodBoolean:()=>Va,$ZodCIDRv4:()=>Il,$ZodCIDRv6:()=>Fl,$ZodCUID:()=>yl,$ZodCUID2:()=>El,$ZodCatch:()=>Cd,$ZodCheck:()=>ze,$ZodCheckBigIntFormat:()=>Hc,$ZodCheckEndsWith:()=>al,$ZodCheckGreaterThan:()=>Ma,$ZodCheckIncludes:()=>ul,$ZodCheckLengthEquals:()=>el,$ZodCheckLessThan:()=>Ua,$ZodCheckLowerCase:()=>rl,$ZodCheckMaxLength:()=>Yc,$ZodCheckMaxSize:()=>Gc,$ZodCheckMimeType:()=>cl,$ZodCheckMinLength:()=>Qc,$ZodCheckMinSize:()=>Kc,$ZodCheckMultipleOf:()=>Jc,$ZodCheckNumberFormat:()=>Wc,$ZodCheckOverwrite:()=>ll,$ZodCheckProperty:()=>sl,$ZodCheckRegex:()=>tl,$ZodCheckSizeEquals:()=>Xc,$ZodCheckStartsWith:()=>il,$ZodCheckStringFormat:()=>sn,$ZodCheckUpperCase:()=>nl,$ZodCodec:()=>Xa,$ZodCustom:()=>jd,$ZodCustomStringFormat:()=>Rl,$ZodDate:()=>Gl,$ZodDefault:()=>yd,$ZodDiscriminatedUnion:()=>ud,$ZodE164:()=>zl,$ZodEmail:()=>pl,$ZodEmoji:()=>gl,$ZodEncodeError:()=>gu,$ZodEnum:()=>fd,$ZodError:()=>Aa,$ZodExactOptional:()=>gd,$ZodFile:()=>md,$ZodFunction:()=>Id,$ZodGUID:()=>hl,$ZodIPv4:()=>Al,$ZodIPv6:()=>xl,$ZodISODate:()=>Cl,$ZodISODateTime:()=>wl,$ZodISODuration:()=>Sl,$ZodISOTime:()=>kl,$ZodIntersection:()=>id,$ZodJWT:()=>Nl,$ZodKSUID:()=>$l,$ZodLazy:()=>Td,$ZodLiteral:()=>hd,$ZodMAC:()=>Bl,$ZodMap:()=>sd,$ZodNaN:()=>kd,$ZodNanoID:()=>_l,$ZodNever:()=>Wl,$ZodNonOptional:()=>Dd,$ZodNull:()=>ql,$ZodNullable:()=>_d,$ZodNumber:()=>qa,$ZodNumberFormat:()=>Zl,$ZodObject:()=>Wa,$ZodObjectJIT:()=>ed,$ZodOptional:()=>Ka,$ZodPipe:()=>Sd,$ZodPrefault:()=>bd,$ZodPromise:()=>Fd,$ZodReadonly:()=>Ad,$ZodRealError:()=>mt,$ZodRecord:()=>od,$ZodRegistry:()=>Jd,$ZodSet:()=>ld,$ZodString:()=>cn,$ZodStringFormat:()=>Be,$ZodSuccess:()=>wd,$ZodSymbol:()=>Ml,$ZodTemplateLiteral:()=>Bd,$ZodTransform:()=>pd,$ZodTuple:()=>Ga,$ZodType:()=>le,$ZodULID:()=>bl,$ZodURL:()=>vl,$ZodUUID:()=>ml,$ZodUndefined:()=>Ll,$ZodUnion:()=>Bu,$ZodUnknown:()=>Jl,$ZodVoid:()=>Hl,$ZodXID:()=>Dl,$ZodXor:()=>nd,$brand:()=>Y0,$constructor:()=>F,$input:()=>Vd,$output:()=>qd,Doc:()=>dl,JSONSchema:()=>e6,JSONSchemaGenerator:()=>Q3,NEVER:()=>X0,TimePrecision:()=>Kd,_any:()=>_f,_array:()=>Cf,_base64:()=>go,_base64url:()=>_o,_bigint:()=>df,_boolean:()=>cf,_catch:()=>J3,_check:()=>Bf,_cidrv4:()=>po,_cidrv6:()=>vo,_coercedBigint:()=>ff,_coercedBoolean:()=>lf,_coercedDate:()=>$f,_coercedNumber:()=>rf,_coercedString:()=>Hd,_cuid:()=>oo,_cuid2:()=>so,_custom:()=>Sf,_date:()=>Df,_decode:()=>Fa,_decodeAsync:()=>ja,_default:()=>L3,_discriminatedUnion:()=>I3,_e164:()=>yo,_email:()=>eo,_emoji:()=>io,_encode:()=>Ia,_encodeAsync:()=>Ta,_endsWith:()=>Mu,_enum:()=>O3,_file:()=>kf,_float32:()=>uf,_float64:()=>af,_gt:()=>ar,_gte:()=>ot,_guid:()=>Pu,_includes:()=>Zu,_int:()=>nf,_int32:()=>of,_int64:()=>hf,_intersection:()=>F3,_ipv4:()=>ho,_ipv6:()=>mo,_isoDate:()=>Yd,_isoDateTime:()=>Xd,_isoDuration:()=>ef,_isoTime:()=>Qd,_jwt:()=>Eo,_ksuid:()=>fo,_lazy:()=>K3,_length:()=>hn,_literal:()=>R3,_lowercase:()=>Nu,_lt:()=>ir,_lte:()=>bt,_mac:()=>Gd,_map:()=>P3,_max:()=>bt,_maxLength:()=>fn,_maxSize:()=>Or,_mime:()=>Lu,_min:()=>ot,_minLength:()=>br,_minSize:()=>or,_multipleOf:()=>zr,_nan:()=>wf,_nanoid:()=>ao,_nativeEnum:()=>N3,_negative:()=>Do,_never:()=>Ef,_nonnegative:()=>wo,_nonoptional:()=>q3,_nonpositive:()=>$o,_normalize:()=>qu,_null:()=>gf,_nullable:()=>M3,_number:()=>tf,_optional:()=>U3,_overwrite:()=>Kt,_parse:()=>tn,_parseAsync:()=>rn,_pipe:()=>W3,_positive:()=>bo,_promise:()=>X3,_property:()=>Co,_readonly:()=>H3,_record:()=>j3,_refine:()=>Af,_regex:()=>Ou,_safeDecode:()=>za,_safeDecodeAsync:()=>Na,_safeEncode:()=>Pa,_safeEncodeAsync:()=>Oa,_safeParse:()=>nn,_safeParseAsync:()=>un,_set:()=>z3,_size:()=>dn,_slugify:()=>Hu,_startsWith:()=>Uu,_string:()=>Wd,_stringFormat:()=>mn,_stringbool:()=>Tf,_success:()=>V3,_superRefine:()=>xf,_symbol:()=>pf,_templateLiteral:()=>G3,_toLowerCase:()=>Ju,_toUpperCase:()=>Wu,_transform:()=>Z3,_trim:()=>Vu,_tuple:()=>T3,_uint32:()=>sf,_uint64:()=>mf,_ulid:()=>co,_undefined:()=>vf,_union:()=>x3,_unknown:()=>yf,_uppercase:()=>Ru,_url:()=>zu,_uuid:()=>to,_uuidv4:()=>ro,_uuidv6:()=>no,_uuidv7:()=>uo,_void:()=>bf,_xid:()=>lo,_xor:()=>B3,clone:()=>ht,config:()=>Ge,createStandardJSONSchemaMethod:()=>pn,createToJSONSchemaMethod:()=>jf,decode:()=>l1,decodeAsync:()=>f1,describe:()=>If,encode:()=>c1,encodeAsync:()=>d1,extractDefs:()=>Rr,finalize:()=>Zr,flattenError:()=>xa,formatError:()=>Ba,globalConfig:()=>_u,globalRegistry:()=>Et,initializeContext:()=>Nr,isValidBase64:()=>La,isValidBase64URL:()=>jl,isValidJWT:()=>Ol,locales:()=>Ya,meta:()=>Ff,parse:()=>Cu,parseAsync:()=>ku,prettifyError:()=>hc,process:()=>Ae,regexes:()=>Er,registry:()=>Qa,safeDecode:()=>m1,safeDecodeAsync:()=>v1,safeEncode:()=>h1,safeEncodeAsync:()=>p1,safeParse:()=>Su,safeParseAsync:()=>Au,toDotPath:()=>fc,toJSONSchema:()=>xo,treeifyError:()=>dc,util:()=>ye,version:()=>fl});var X0=Object.freeze({status:"aborted"});function F(e,t,n){function u(o,s){if(o._zod||Object.defineProperty(o,"_zod",{value:{def:s,constr:a,traits:new Set},enumerable:!1}),o._zod.traits.has(e))return;o._zod.traits.add(e),t(o,s);const c=a.prototype,l=Object.keys(c);for(let d=0;d<l.length;d++){const m=l[d];m in o||(o[m]=c[m].bind(o))}}const r=n?.Parent??Object;class i extends r{}Object.defineProperty(i,"name",{value:e});function a(o){var s;const c=n?.Parent?new i:this;u(c,o),(s=c._zod).deferred??(s.deferred=[]);for(const l of c._zod.deferred)l();return c}return Object.defineProperty(a,"init",{value:u}),Object.defineProperty(a,Symbol.hasInstance,{value:o=>n?.Parent&&o instanceof n.Parent?!0:o?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var Y0=Symbol("zod_brand"),vr=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},gu=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}},_u={};function Ge(e){return e&&Object.assign(_u,e),_u}var ye={};qt(ye,{BIGINT_FORMAT_RANGES:()=>oc,Class:()=>s1,NUMBER_FORMAT_RANGES:()=>ac,aborted:()=>yr,allowsEval:()=>rc,assert:()=>Ug,assertEqual:()=>Og,assertIs:()=>Rg,assertNever:()=>Zg,assertNotEqual:()=>Ng,assignProp:()=>ur,base64ToUint8Array:()=>sc,base64urlToUint8Array:()=>u1,cached:()=>Qr,captureStackTrace:()=>Sa,cleanEnum:()=>n1,cleanRegex:()=>Eu,clone:()=>ht,cloneDef:()=>Lg,createTransparentProxy:()=>Gg,defineLazy:()=>me,esc:()=>ka,escapeRegex:()=>Gt,extend:()=>Yg,finalizeIssue:()=>yt,floatSafeRemainder:()=>Q0,getElementAtPath:()=>qg,getEnumValues:()=>Ca,getLengthableOrigin:()=>$u,getParsedType:()=>Hg,getSizableOrigin:()=>Du,hexToUint8Array:()=>a1,isObject:()=>Tr,isPlainObject:()=>_r,issue:()=>wu,joinValues:()=>L,jsonStringifyReplacer:()=>yu,merge:()=>e1,mergeDefs:()=>Ht,normalizeParams:()=>q,nullish:()=>gr,numKeys:()=>Wg,objectClone:()=>Mg,omit:()=>Xg,optionalKeys:()=>ic,parsedType:()=>oe,partial:()=>t1,pick:()=>Kg,prefixIssues:()=>xt,primitiveTypes:()=>uc,promiseAllObject:()=>Vg,propertyKeyTypes:()=>bu,randomString:()=>Jg,required:()=>r1,safeExtend:()=>Qg,shallowClone:()=>nc,slugify:()=>tc,stringifyPrimitive:()=>ue,uint8ArrayToBase64:()=>cc,uint8ArrayToBase64url:()=>i1,uint8ArrayToHex:()=>o1,unwrapMessage:()=>en});function Og(e){return e}function Ng(e){return e}function Rg(e){}function Zg(e){throw new Error("Unexpected value in exhaustive check")}function Ug(e){}function Ca(e){const t=Object.values(e).filter(u=>typeof u=="number");return Object.entries(e).filter(([u,r])=>t.indexOf(+u)===-1).map(([u,r])=>r)}function L(e,t="|"){return e.map(n=>ue(n)).join(t)}function yu(e,t){return typeof t=="bigint"?t.toString():t}function Qr(e){return{get value(){{const n=e();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}function gr(e){return e==null}function Eu(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Q0(e,t){const n=(e.toString().split(".")[1]||"").length,u=t.toString();let r=(u.split(".")[1]||"").length;if(r===0&&/\d?e-\d?/.test(u)){const s=u.match(/\d?e-(\d?)/);s?.[1]&&(r=Number.parseInt(s[1]))}const i=n>r?n:r,a=Number.parseInt(e.toFixed(i).replace(".","")),o=Number.parseInt(t.toFixed(i).replace(".",""));return a%o/10**i}var ec=Symbol("evaluating");function me(e,t,n){let u;Object.defineProperty(e,t,{get(){if(u!==ec)return u===void 0&&(u=ec,u=n()),u},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function Mg(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function ur(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Ht(...e){const t={};for(const n of e){const u=Object.getOwnPropertyDescriptors(n);Object.assign(t,u)}return Object.defineProperties({},t)}function Lg(e){return Ht(e._zod.def)}function qg(e,t){return t?t.reduce((n,u)=>n?.[u],e):e}function Vg(e){const t=Object.keys(e),n=t.map(u=>e[u]);return Promise.all(n).then(u=>{const r={};for(let i=0;i<t.length;i++)r[t[i]]=u[i];return r})}function Jg(e=10){const t="abcdefghijklmnopqrstuvwxyz";let n="";for(let u=0;u<e;u++)n+=t[Math.floor(Math.random()*t.length)];return n}function ka(e){return JSON.stringify(e)}function tc(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Sa="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Tr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var rc=Qr(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function _r(e){if(Tr(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Tr(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function nc(e){return _r(e)?{...e}:Array.isArray(e)?[...e]:e}function Wg(e){let t=0;for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}var Hg=e=>{const t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},bu=new Set(["string","number","symbol"]),uc=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Gt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ht(e,t,n){const u=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(u._zod.parent=e),u}function q(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function Gg(e){let t;return new Proxy({},{get(n,u,r){return t??(t=e()),Reflect.get(t,u,r)},set(n,u,r,i){return t??(t=e()),Reflect.set(t,u,r,i)},has(n,u){return t??(t=e()),Reflect.has(t,u)},deleteProperty(n,u){return t??(t=e()),Reflect.deleteProperty(t,u)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,u){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,u)},defineProperty(n,u,r){return t??(t=e()),Reflect.defineProperty(t,u,r)}})}function ue(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function ic(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var ac={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]},oc={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Kg(e,t){const n=e._zod.def,u=n.checks;if(u&&u.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const i=Ht(e._zod.def,{get shape(){const a={};for(const o in t){if(!(o in n.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&(a[o]=n.shape[o])}return ur(this,"shape",a),a},checks:[]});return ht(e,i)}function Xg(e,t){const n=e._zod.def,u=n.checks;if(u&&u.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const i=Ht(e._zod.def,{get shape(){const a={...e._zod.def.shape};for(const o in t){if(!(o in n.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&delete a[o]}return ur(this,"shape",a),a},checks:[]});return ht(e,i)}function Yg(e,t){if(!_r(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const i=e._zod.def.shape;for(const a in t)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const r=Ht(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return ur(this,"shape",i),i}});return ht(e,r)}function Qg(e,t){if(!_r(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=Ht(e._zod.def,{get shape(){const u={...e._zod.def.shape,...t};return ur(this,"shape",u),u}});return ht(e,n)}function e1(e,t){const n=Ht(e._zod.def,{get shape(){const u={...e._zod.def.shape,...t._zod.def.shape};return ur(this,"shape",u),u},get catchall(){return t._zod.def.catchall},checks:[]});return ht(e,n)}function t1(e,t,n){const r=t._zod.def.checks;if(r&&r.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const a=Ht(t._zod.def,{get shape(){const o=t._zod.def.shape,s={...o};if(n)for(const c in n){if(!(c in o))throw new Error(`Unrecognized key: "${c}"`);n[c]&&(s[c]=e?new e({type:"optional",innerType:o[c]}):o[c])}else for(const c in o)s[c]=e?new e({type:"optional",innerType:o[c]}):o[c];return ur(this,"shape",s),s},checks:[]});return ht(t,a)}function r1(e,t,n){const u=Ht(t._zod.def,{get shape(){const r=t._zod.def.shape,i={...r};if(n)for(const a in n){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(i[a]=new e({type:"nonoptional",innerType:r[a]}))}else for(const a in r)i[a]=new e({type:"nonoptional",innerType:r[a]});return ur(this,"shape",i),i}});return ht(t,u)}function yr(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function xt(e,t){return t.map(n=>{var u;return(u=n).path??(u.path=[]),n.path.unshift(e),n})}function en(e){return typeof e=="string"?e:e?.message}function yt(e,t,n){const u={...e,path:e.path??[]};if(!e.message){const r=en(e.inst?._zod.def?.error?.(e))??en(t?.error?.(e))??en(n.customError?.(e))??en(n.localeError?.(e))??"Invalid input";u.message=r}return delete u.inst,delete u.continue,t?.reportInput||delete u.input,u}function Du(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function $u(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function oe(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";const n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}function wu(...e){const[t,n,u]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:u}:{...t}}function n1(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function sc(e){const t=atob(e),n=new Uint8Array(t.length);for(let u=0;u<t.length;u++)n[u]=t.charCodeAt(u);return n}function cc(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function u1(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return sc(t+n)}function i1(e){return cc(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function a1(e){const t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");const n=new Uint8Array(t.length/2);for(let u=0;u<t.length;u+=2)n[u/2]=Number.parseInt(t.slice(u,u+2),16);return n}function o1(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var s1=class{constructor(...e){}},lc=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,yu,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Aa=F("$ZodError",lc),mt=F("$ZodError",lc,{Parent:Error});function xa(e,t=n=>n.message){const n={},u=[];for(const r of e.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):u.push(t(r));return{formErrors:u,fieldErrors:n}}function Ba(e,t=n=>n.message){const n={_errors:[]},u=r=>{for(const i of r.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(a=>u({issues:a}));else if(i.code==="invalid_key")u({issues:i.issues});else if(i.code==="invalid_element")u({issues:i.issues});else if(i.path.length===0)n._errors.push(t(i));else{let a=n,o=0;for(;o<i.path.length;){const s=i.path[o];o===i.path.length-1?(a[s]=a[s]||{_errors:[]},a[s]._errors.push(t(i))):a[s]=a[s]||{_errors:[]},a=a[s],o++}}};return u(e),n}function dc(e,t=n=>n.message){const n={errors:[]},u=(r,i=[])=>{var a,o;for(const s of r.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(c=>u({issues:c},s.path));else if(s.code==="invalid_key")u({issues:s.issues},s.path);else if(s.code==="invalid_element")u({issues:s.issues},s.path);else{const c=[...i,...s.path];if(c.length===0){n.errors.push(t(s));continue}let l=n,d=0;for(;d<c.length;){const m=c[d],p=d===c.length-1;typeof m=="string"?(l.properties??(l.properties={}),(a=l.properties)[m]??(a[m]={errors:[]}),l=l.properties[m]):(l.items??(l.items=[]),(o=l.items)[m]??(o[m]={errors:[]}),l=l.items[m]),p&&l.errors.push(t(s)),d++}}};return u(e),n}function fc(e){const t=[],n=e.map(u=>typeof u=="object"?u.key:u);for(const u of n)typeof u=="number"?t.push(`[${u}]`):typeof u=="symbol"?t.push(`[${JSON.stringify(String(u))}]`):/[^\w$]/.test(u)?t.push(`[${JSON.stringify(u)}]`):(t.length&&t.push("."),t.push(u));return t.join("")}function hc(e){const t=[],n=[...e.issues].sort((u,r)=>(u.path??[]).length-(r.path??[]).length);for(const u of n)t.push(`\u2716 ${u.message}`),u.path?.length&&t.push(` \u2192 at ${fc(u.path)}`);return t.join(`
|
|
10
|
+
`)}var tn=e=>(t,n,u,r)=>{const i=u?Object.assign(u,{async:!1}):{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new vr;if(a.issues.length){const o=new(r?.Err??e)(a.issues.map(s=>yt(s,i,Ge())));throw Sa(o,r?.callee),o}return a.value},Cu=tn(mt),rn=e=>async(t,n,u,r)=>{const i=u?Object.assign(u,{async:!0}):{async:!0};let a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){const o=new(r?.Err??e)(a.issues.map(s=>yt(s,i,Ge())));throw Sa(o,r?.callee),o}return a.value},ku=rn(mt),nn=e=>(t,n,u)=>{const r=u?{...u,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},r);if(i instanceof Promise)throw new vr;return i.issues.length?{success:!1,error:new(e??Aa)(i.issues.map(a=>yt(a,r,Ge())))}:{success:!0,data:i.value}},Su=nn(mt),un=e=>async(t,n,u)=>{const r=u?Object.assign(u,{async:!0}):{async:!0};let i=t._zod.run({value:n,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>yt(a,r,Ge())))}:{success:!0,data:i.value}},Au=un(mt),Ia=e=>(t,n,u)=>{const r=u?Object.assign(u,{direction:"backward"}):{direction:"backward"};return tn(e)(t,n,r)},c1=Ia(mt),Fa=e=>(t,n,u)=>tn(e)(t,n,u),l1=Fa(mt),Ta=e=>async(t,n,u)=>{const r=u?Object.assign(u,{direction:"backward"}):{direction:"backward"};return rn(e)(t,n,r)},d1=Ta(mt),ja=e=>async(t,n,u)=>rn(e)(t,n,u),f1=ja(mt),Pa=e=>(t,n,u)=>{const r=u?Object.assign(u,{direction:"backward"}):{direction:"backward"};return nn(e)(t,n,r)},h1=Pa(mt),za=e=>(t,n,u)=>nn(e)(t,n,u),m1=za(mt),Oa=e=>async(t,n,u)=>{const r=u?Object.assign(u,{direction:"backward"}):{direction:"backward"};return un(e)(t,n,r)},p1=Oa(mt),Na=e=>async(t,n,u)=>un(e)(t,n,u),v1=Na(mt),Er={};qt(Er,{base64:()=>Bc,base64url:()=>Ra,bigint:()=>Nc,boolean:()=>Zc,browserEmail:()=>w1,cidrv4:()=>Ac,cidrv6:()=>xc,cuid:()=>mc,cuid2:()=>pc,date:()=>Tc,datetime:()=>zc,domain:()=>S1,duration:()=>Ec,e164:()=>Ic,email:()=>Dc,emoji:()=>wc,extendedDuration:()=>g1,guid:()=>bc,hex:()=>A1,hostname:()=>k1,html5Email:()=>b1,idnEmail:()=>$1,integer:()=>Rc,ipv4:()=>Cc,ipv6:()=>kc,ksuid:()=>_c,lowercase:()=>Lc,mac:()=>Sc,md5_base64:()=>B1,md5_base64url:()=>I1,md5_hex:()=>x1,nanoid:()=>yc,null:()=>Uc,number:()=>Za,rfc5322Email:()=>D1,sha1_base64:()=>T1,sha1_base64url:()=>j1,sha1_hex:()=>F1,sha256_base64:()=>z1,sha256_base64url:()=>O1,sha256_hex:()=>P1,sha384_base64:()=>R1,sha384_base64url:()=>Z1,sha384_hex:()=>N1,sha512_base64:()=>M1,sha512_base64url:()=>L1,sha512_hex:()=>U1,string:()=>Oc,time:()=>Pc,ulid:()=>vc,undefined:()=>Mc,unicodeEmail:()=>$c,uppercase:()=>qc,uuid:()=>jr,uuid4:()=>_1,uuid6:()=>y1,uuid7:()=>E1,xid:()=>gc});var mc=/^[cC][^\s-]{8,}$/,pc=/^[0-9a-z]+$/,vc=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,gc=/^[0-9a-vA-V]{20}$/,_c=/^[A-Za-z0-9]{27}$/,yc=/^[a-zA-Z0-9_-]{21}$/,Ec=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,g1=/^[-+]?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)?)??$/,bc=/^([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})$/,jr=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)$/,_1=jr(4),y1=jr(6),E1=jr(7),Dc=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,b1=/^[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])?)*$/,D1=/^(([^<>()\[\]\\.,;:\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,}))$/,$c=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,$1=$c,w1=/^[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])?)*$/,C1="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function wc(){return new RegExp(C1,"u")}var Cc=/^(?:(?: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])$/,kc=/^(([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}|:))$/,Sc=e=>{const t=Gt(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Ac=/^((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])$/,xc=/^(([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])$/,Bc=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Ra=/^[A-Za-z0-9_-]*$/,k1=/^(?=.{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])?)*\.?$/,S1=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Ic=/^\+[1-9]\d{6,14}$/,Fc="(?:(?:\\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])))",Tc=new RegExp(`^${Fc}$`);function jc(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Pc(e){return new RegExp(`^${jc(e)}$`)}function zc(e){const t=jc({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const u=`${t}(?:${n.join("|")})`;return new RegExp(`^${Fc}T(?:${u})$`)}var Oc=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Nc=/^-?\d+n?$/,Rc=/^-?\d+$/,Za=/^-?\d+(?:\.\d+)?$/,Zc=/^(?:true|false)$/i,Uc=/^null$/i,Mc=/^undefined$/i,Lc=/^[^A-Z]*$/,qc=/^[^a-z]*$/,A1=/^[0-9a-fA-F]*$/;function an(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function on(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var x1=/^[0-9a-fA-F]{32}$/,B1=an(22,"=="),I1=on(22),F1=/^[0-9a-fA-F]{40}$/,T1=an(27,"="),j1=on(27),P1=/^[0-9a-fA-F]{64}$/,z1=an(43,"="),O1=on(43),N1=/^[0-9a-fA-F]{96}$/,R1=an(64,""),Z1=on(64),U1=/^[0-9a-fA-F]{128}$/,M1=an(86,"=="),L1=on(86),ze=F("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Vc={number:"number",bigint:"bigint",object:"date"},Ua=F("$ZodCheckLessThan",(e,t)=>{ze.init(e,t);const n=Vc[typeof t.value];e._zod.onattach.push(u=>{const r=u._zod.bag,i=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=u=>{(t.inclusive?u.value<=t.value:u.value<t.value)||u.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:u.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Ma=F("$ZodCheckGreaterThan",(e,t)=>{ze.init(e,t);const n=Vc[typeof t.value];e._zod.onattach.push(u=>{const r=u._zod.bag,i=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=u=>{(t.inclusive?u.value>=t.value:u.value>t.value)||u.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:u.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Jc=F("$ZodCheckMultipleOf",(e,t)=>{ze.init(e,t),e._zod.onattach.push(n=>{var u;(u=n._zod.bag).multipleOf??(u.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):Q0(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Wc=F("$ZodCheckNumberFormat",(e,t)=>{ze.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),u=n?"int":"number",[r,i]=ac[t.format];e._zod.onattach.push(a=>{const o=a._zod.bag;o.format=t.format,o.minimum=r,o.maximum=i,n&&(o.pattern=Rc)}),e._zod.check=a=>{const o=a.value;if(n){if(!Number.isInteger(o)){a.issues.push({expected:u,format:t.format,code:"invalid_type",continue:!1,input:o,inst:e});return}if(!Number.isSafeInteger(o)){o>0?a.issues.push({input:o,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:u,inclusive:!0,continue:!t.abort}):a.issues.push({input:o,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:u,inclusive:!0,continue:!t.abort});return}}o<r&&a.issues.push({origin:"number",input:o,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),o>i&&a.issues.push({origin:"number",input:o,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),Hc=F("$ZodCheckBigIntFormat",(e,t)=>{ze.init(e,t);const[n,u]=oc[t.format];e._zod.onattach.push(r=>{const i=r._zod.bag;i.format=t.format,i.minimum=n,i.maximum=u}),e._zod.check=r=>{const i=r.value;i<n&&r.issues.push({origin:"bigint",input:i,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),i>u&&r.issues.push({origin:"bigint",input:i,code:"too_big",maximum:u,inclusive:!0,inst:e,continue:!t.abort})}}),Gc=F("$ZodCheckMaxSize",(e,t)=>{var n;ze.init(e,t),(n=e._zod.def).when??(n.when=u=>{const r=u.value;return!gr(r)&&r.size!==void 0}),e._zod.onattach.push(u=>{const r=u._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(u._zod.bag.maximum=t.maximum)}),e._zod.check=u=>{const r=u.value;r.size<=t.maximum||u.issues.push({origin:Du(r),code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Kc=F("$ZodCheckMinSize",(e,t)=>{var n;ze.init(e,t),(n=e._zod.def).when??(n.when=u=>{const r=u.value;return!gr(r)&&r.size!==void 0}),e._zod.onattach.push(u=>{const r=u._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(u._zod.bag.minimum=t.minimum)}),e._zod.check=u=>{const r=u.value;r.size>=t.minimum||u.issues.push({origin:Du(r),code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Xc=F("$ZodCheckSizeEquals",(e,t)=>{var n;ze.init(e,t),(n=e._zod.def).when??(n.when=u=>{const r=u.value;return!gr(r)&&r.size!==void 0}),e._zod.onattach.push(u=>{const r=u._zod.bag;r.minimum=t.size,r.maximum=t.size,r.size=t.size}),e._zod.check=u=>{const r=u.value,i=r.size;if(i===t.size)return;const a=i>t.size;u.issues.push({origin:Du(r),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:u.value,inst:e,continue:!t.abort})}}),Yc=F("$ZodCheckMaxLength",(e,t)=>{var n;ze.init(e,t),(n=e._zod.def).when??(n.when=u=>{const r=u.value;return!gr(r)&&r.length!==void 0}),e._zod.onattach.push(u=>{const r=u._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(u._zod.bag.maximum=t.maximum)}),e._zod.check=u=>{const r=u.value;if(r.length<=t.maximum)return;const a=$u(r);u.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Qc=F("$ZodCheckMinLength",(e,t)=>{var n;ze.init(e,t),(n=e._zod.def).when??(n.when=u=>{const r=u.value;return!gr(r)&&r.length!==void 0}),e._zod.onattach.push(u=>{const r=u._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(u._zod.bag.minimum=t.minimum)}),e._zod.check=u=>{const r=u.value;if(r.length>=t.minimum)return;const a=$u(r);u.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),el=F("$ZodCheckLengthEquals",(e,t)=>{var n;ze.init(e,t),(n=e._zod.def).when??(n.when=u=>{const r=u.value;return!gr(r)&&r.length!==void 0}),e._zod.onattach.push(u=>{const r=u._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=u=>{const r=u.value,i=r.length;if(i===t.length)return;const a=$u(r),o=i>t.length;u.issues.push({origin:a,...o?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:u.value,inst:e,continue:!t.abort})}}),sn=F("$ZodCheckStringFormat",(e,t)=>{var n,u;ze.init(e,t),e._zod.onattach.push(r=>{const i=r._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(u=e._zod).check??(u.check=()=>{})}),tl=F("$ZodCheckRegex",(e,t)=>{sn.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),rl=F("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Lc),sn.init(e,t)}),nl=F("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=qc),sn.init(e,t)}),ul=F("$ZodCheckIncludes",(e,t)=>{ze.init(e,t);const n=Gt(t.includes),u=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=u,e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(u)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),il=F("$ZodCheckStartsWith",(e,t)=>{ze.init(e,t);const n=new RegExp(`^${Gt(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(u=>{const r=u._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=u=>{u.value.startsWith(t.prefix)||u.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:u.value,inst:e,continue:!t.abort})}}),al=F("$ZodCheckEndsWith",(e,t)=>{ze.init(e,t);const n=new RegExp(`.*${Gt(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(u=>{const r=u._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=u=>{u.value.endsWith(t.suffix)||u.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:u.value,inst:e,continue:!t.abort})}});function ol(e,t,n){e.issues.length&&t.issues.push(...xt(n,e.issues))}var sl=F("$ZodCheckProperty",(e,t)=>{ze.init(e,t),e._zod.check=n=>{const u=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(u instanceof Promise)return u.then(r=>ol(r,n,t.property));ol(u,n,t.property)}}),cl=F("$ZodCheckMimeType",(e,t)=>{ze.init(e,t);const n=new Set(t.mime);e._zod.onattach.push(u=>{u._zod.bag.mime=t.mime}),e._zod.check=u=>{n.has(u.value.type)||u.issues.push({code:"invalid_value",values:t.mime,input:u.value.type,inst:e,continue:!t.abort})}}),ll=F("$ZodCheckOverwrite",(e,t)=>{ze.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}}),dl=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}const n=e.split(`
|
|
11
|
+
`).filter(i=>i),u=Math.min(...n.map(i=>i.length-i.trimStart().length)),r=n.map(i=>i.slice(u)).map(i=>" ".repeat(this.indent*2)+i);for(const i of r)this.content.push(i)}compile(){const e=Function,t=this?.args,u=[...(this?.content??[""]).map(r=>` ${r}`)];return new e(...t,u.join(`
|
|
12
|
+
`))}},fl={major:4,minor:3,patch:5},le=F("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=fl;const u=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&u.unshift(e);for(const r of u)for(const i of r._zod.onattach)i(e);if(u.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const r=(a,o,s)=>{let c=yr(a),l;for(const d of o){if(d._zod.def.when){if(!d._zod.def.when(a))continue}else if(c)continue;const m=a.issues.length,p=d._zod.check(a);if(p instanceof Promise&&s?.async===!1)throw new vr;if(l||p instanceof Promise)l=(l??Promise.resolve()).then(async()=>{await p,a.issues.length!==m&&(c||(c=yr(a,m)))});else{if(a.issues.length===m)continue;c||(c=yr(a,m))}}return l?l.then(()=>a):a},i=(a,o,s)=>{if(yr(a))return a.aborted=!0,a;const c=r(o,u,s);if(c instanceof Promise){if(s.async===!1)throw new vr;return c.then(l=>e._zod.parse(l,s))}return e._zod.parse(c,s)};e._zod.run=(a,o)=>{if(o.skipChecks)return e._zod.parse(a,o);if(o.direction==="backward"){const c=e._zod.parse({value:a.value,issues:[]},{...o,skipChecks:!0});return c instanceof Promise?c.then(l=>i(l,a,o)):i(c,a,o)}const s=e._zod.parse(a,o);if(s instanceof Promise){if(o.async===!1)throw new vr;return s.then(c=>r(c,u,o))}return r(s,u,o)}}me(e,"~standard",()=>({validate:r=>{try{const i=Su(e,r);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return Au(e,r).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),cn=F("$ZodString",(e,t)=>{le.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Oc(e._zod.bag),e._zod.parse=(n,u)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),Be=F("$ZodStringFormat",(e,t)=>{sn.init(e,t),cn.init(e,t)}),hl=F("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=bc),Be.init(e,t)}),ml=F("$ZodUUID",(e,t)=>{if(t.version){const u={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(u===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=jr(u))}else t.pattern??(t.pattern=jr());Be.init(e,t)}),pl=F("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Dc),Be.init(e,t)}),vl=F("$ZodURL",(e,t)=>{Be.init(e,t),e._zod.check=n=>{try{const u=n.value.trim(),r=new URL(u);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(r.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(r.protocol.endsWith(":")?r.protocol.slice(0,-1):r.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=r.href:n.value=u;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),gl=F("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=wc()),Be.init(e,t)}),_l=F("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=yc),Be.init(e,t)}),yl=F("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=mc),Be.init(e,t)}),El=F("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=pc),Be.init(e,t)}),bl=F("$ZodULID",(e,t)=>{t.pattern??(t.pattern=vc),Be.init(e,t)}),Dl=F("$ZodXID",(e,t)=>{t.pattern??(t.pattern=gc),Be.init(e,t)}),$l=F("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=_c),Be.init(e,t)}),wl=F("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=zc(t)),Be.init(e,t)}),Cl=F("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Tc),Be.init(e,t)}),kl=F("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Pc(t)),Be.init(e,t)}),Sl=F("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Ec),Be.init(e,t)}),Al=F("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Cc),Be.init(e,t),e._zod.bag.format="ipv4"}),xl=F("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=kc),Be.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),Bl=F("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Sc(t.delimiter)),Be.init(e,t),e._zod.bag.format="mac"}),Il=F("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Ac),Be.init(e,t)}),Fl=F("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=xc),Be.init(e,t),e._zod.check=n=>{const u=n.value.split("/");try{if(u.length!==2)throw new Error;const[r,i]=u;if(!i)throw new Error;const a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${r}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function La(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Tl=F("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Bc),Be.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{La(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function jl(e){if(!Ra.test(e))return!1;const t=e.replace(/[-_]/g,u=>u==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return La(n)}var Pl=F("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Ra),Be.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{jl(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),zl=F("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Ic),Be.init(e,t)});function Ol(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[u]=n;if(!u)return!1;const r=JSON.parse(atob(u));return!("typ"in r&&r?.typ!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))}catch{return!1}}var Nl=F("$ZodJWT",(e,t)=>{Be.init(e,t),e._zod.check=n=>{Ol(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Rl=F("$ZodCustomStringFormat",(e,t)=>{Be.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort})}}),qa=F("$ZodNumber",(e,t)=>{le.init(e,t),e._zod.pattern=e._zod.bag.pattern??Za,e._zod.parse=(n,u)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const r=n.value;if(typeof r=="number"&&!Number.isNaN(r)&&Number.isFinite(r))return n;const i=typeof r=="number"?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...i?{received:i}:{}}),n}}),Zl=F("$ZodNumberFormat",(e,t)=>{Wc.init(e,t),qa.init(e,t)}),Va=F("$ZodBoolean",(e,t)=>{le.init(e,t),e._zod.pattern=Zc,e._zod.parse=(n,u)=>{if(t.coerce)try{n.value=!!n.value}catch{}const r=n.value;return typeof r=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),n}}),Ja=F("$ZodBigInt",(e,t)=>{le.init(e,t),e._zod.pattern=Nc,e._zod.parse=(n,u)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),Ul=F("$ZodBigIntFormat",(e,t)=>{Hc.init(e,t),Ja.init(e,t)}),Ml=F("$ZodSymbol",(e,t)=>{le.init(e,t),e._zod.parse=(n,u)=>{const r=n.value;return typeof r=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:r,inst:e}),n}}),Ll=F("$ZodUndefined",(e,t)=>{le.init(e,t),e._zod.pattern=Mc,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(n,u)=>{const r=n.value;return typeof r>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:e}),n}}),ql=F("$ZodNull",(e,t)=>{le.init(e,t),e._zod.pattern=Uc,e._zod.values=new Set([null]),e._zod.parse=(n,u)=>{const r=n.value;return r===null||n.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),n}}),Vl=F("$ZodAny",(e,t)=>{le.init(e,t),e._zod.parse=n=>n}),Jl=F("$ZodUnknown",(e,t)=>{le.init(e,t),e._zod.parse=n=>n}),Wl=F("$ZodNever",(e,t)=>{le.init(e,t),e._zod.parse=(n,u)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),Hl=F("$ZodVoid",(e,t)=>{le.init(e,t),e._zod.parse=(n,u)=>{const r=n.value;return typeof r>"u"||n.issues.push({expected:"void",code:"invalid_type",input:r,inst:e}),n}}),Gl=F("$ZodDate",(e,t)=>{le.init(e,t),e._zod.parse=(n,u)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}const r=n.value,i=r instanceof Date;return i&&!Number.isNaN(r.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:r,...i?{received:"Invalid Date"}:{},inst:e}),n}});function Kl(e,t,n){e.issues.length&&t.issues.push(...xt(n,e.issues)),t.value[n]=e.value}var Xl=F("$ZodArray",(e,t)=>{le.init(e,t),e._zod.parse=(n,u)=>{const r=n.value;if(!Array.isArray(r))return n.issues.push({expected:"array",code:"invalid_type",input:r,inst:e}),n;n.value=Array(r.length);const i=[];for(let a=0;a<r.length;a++){const o=r[a],s=t.element._zod.run({value:o,issues:[]},u);s instanceof Promise?i.push(s.then(c=>Kl(c,n,a))):Kl(s,n,a)}return i.length?Promise.all(i).then(()=>n):n}});function xu(e,t,n,u,r){if(e.issues.length){if(r&&!(n in u))return;t.issues.push(...xt(n,e.issues))}e.value===void 0?n in u&&(t.value[n]=void 0):t.value[n]=e.value}function Yl(e){const t=Object.keys(e.shape);for(const u of t)if(!e.shape?.[u]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${u}": expected a Zod schema`);const n=ic(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Ql(e,t,n,u,r,i){const a=[],o=r.keySet,s=r.catchall._zod,c=s.def.type,l=s.optout==="optional";for(const d in t){if(o.has(d))continue;if(c==="never"){a.push(d);continue}const m=s.run({value:t[d],issues:[]},u);m instanceof Promise?e.push(m.then(p=>xu(p,n,d,t,l))):xu(m,n,d,t,l)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>n):n}var Wa=F("$ZodObject",(e,t)=>{if(le.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const o=t.shape;Object.defineProperty(t,"shape",{get:()=>{const s={...o};return Object.defineProperty(t,"shape",{value:s}),s}})}const u=Qr(()=>Yl(t));me(e._zod,"propValues",()=>{const o=t.shape,s={};for(const c in o){const l=o[c]._zod;if(l.values){s[c]??(s[c]=new Set);for(const d of l.values)s[c].add(d)}}return s});const r=Tr,i=t.catchall;let a;e._zod.parse=(o,s)=>{a??(a=u.value);const c=o.value;if(!r(c))return o.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),o;o.value={};const l=[],d=a.shape;for(const m of a.keys){const p=d[m],E=p._zod.optout==="optional",b=p._zod.run({value:c[m],issues:[]},s);b instanceof Promise?l.push(b.then(g=>xu(g,o,m,c,E))):xu(b,o,m,c,E)}return i?Ql(l,c,o,s,u.value,e):l.length?Promise.all(l).then(()=>o):o}}),ed=F("$ZodObjectJIT",(e,t)=>{Wa.init(e,t);const n=e._zod.parse,u=Qr(()=>Yl(t)),r=m=>{const p=new dl(["shape","payload","ctx"]),E=u.value,b=v=>{const D=ka(v);return`shape[${D}]._zod.run({ value: input[${D}], issues: [] }, ctx)`};p.write("const input = payload.value;");const g=Object.create(null);let f=0;for(const v of E.keys)g[v]=`key_${f++}`;p.write("const newResult = {};");for(const v of E.keys){const D=g[v],C=ka(v),h=m[v]?._zod?.optout==="optional";p.write(`const ${D} = ${b(v)};`),h?p.write(`
|
|
13
|
+
if (${D}.issues.length) {
|
|
14
|
+
if (${C} in input) {
|
|
15
|
+
payload.issues = payload.issues.concat(${D}.issues.map(iss => ({
|
|
16
|
+
...iss,
|
|
17
|
+
path: iss.path ? [${C}, ...iss.path] : [${C}]
|
|
18
|
+
})));
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
if (${D}.value === undefined) {
|
|
23
|
+
if (${C} in input) {
|
|
24
|
+
newResult[${C}] = undefined;
|
|
25
|
+
}
|
|
26
|
+
} else {
|
|
27
|
+
newResult[${C}] = ${D}.value;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
`):p.write(`
|
|
31
|
+
if (${D}.issues.length) {
|
|
32
|
+
payload.issues = payload.issues.concat(${D}.issues.map(iss => ({
|
|
33
|
+
...iss,
|
|
34
|
+
path: iss.path ? [${C}, ...iss.path] : [${C}]
|
|
35
|
+
})));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
if (${D}.value === undefined) {
|
|
39
|
+
if (${C} in input) {
|
|
40
|
+
newResult[${C}] = undefined;
|
|
41
|
+
}
|
|
42
|
+
} else {
|
|
43
|
+
newResult[${C}] = ${D}.value;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
`)}p.write("payload.value = newResult;"),p.write("return payload;");const $=p.compile();return(v,D)=>$(m,v,D)};let i;const a=Tr,o=!_u.jitless,c=o&&rc.value,l=t.catchall;let d;e._zod.parse=(m,p)=>{d??(d=u.value);const E=m.value;return a(E)?o&&c&&p?.async===!1&&p.jitless!==!0?(i||(i=r(t.shape)),m=i(m,p),l?Ql([],E,m,p,d,e):m):n(m,p):(m.issues.push({expected:"object",code:"invalid_type",input:E,inst:e}),m)}});function td(e,t,n,u){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const r=e.filter(i=>!yr(i));return r.length===1?(t.value=r[0].value,r[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(a=>yt(a,u,Ge())))}),t)}var Bu=F("$ZodUnion",(e,t)=>{le.init(e,t),me(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),me(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),me(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),me(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){const r=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${r.map(i=>Eu(i.source)).join("|")})$`)}});const n=t.options.length===1,u=t.options[0]._zod.run;e._zod.parse=(r,i)=>{if(n)return u(r,i);let a=!1;const o=[];for(const s of t.options){const c=s._zod.run({value:r.value,issues:[]},i);if(c instanceof Promise)o.push(c),a=!0;else{if(c.issues.length===0)return c;o.push(c)}}return a?Promise.all(o).then(s=>td(s,r,e,i)):td(o,r,e,i)}});function rd(e,t,n,u){const r=e.filter(i=>i.issues.length===0);return r.length===1?(t.value=r[0].value,t):(r.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(a=>yt(a,u,Ge())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1}),t)}var nd=F("$ZodXor",(e,t)=>{Bu.init(e,t),t.inclusive=!1;const n=t.options.length===1,u=t.options[0]._zod.run;e._zod.parse=(r,i)=>{if(n)return u(r,i);let a=!1;const o=[];for(const s of t.options){const c=s._zod.run({value:r.value,issues:[]},i);c instanceof Promise?(o.push(c),a=!0):o.push(c)}return a?Promise.all(o).then(s=>rd(s,r,e,i)):rd(o,r,e,i)}}),ud=F("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Bu.init(e,t);const n=e._zod.parse;me(e._zod,"propValues",()=>{const r={};for(const i of t.options){const a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(const[o,s]of Object.entries(a)){r[o]||(r[o]=new Set);for(const c of s)r[o].add(c)}}return r});const u=Qr(()=>{const r=t.options,i=new Map;for(const a of r){const o=a._zod.propValues?.[t.discriminator];if(!o||o.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(const s of o){if(i.has(s))throw new Error(`Duplicate discriminator value "${String(s)}"`);i.set(s,a)}}return i});e._zod.parse=(r,i)=>{const a=r.value;if(!Tr(a))return r.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),r;const o=u.value.get(a?.[t.discriminator]);return o?o._zod.run(r,i):t.unionFallback?n(r,i):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:a,path:[t.discriminator],inst:e}),r)}}),id=F("$ZodIntersection",(e,t)=>{le.init(e,t),e._zod.parse=(n,u)=>{const r=n.value,i=t.left._zod.run({value:r,issues:[]},u),a=t.right._zod.run({value:r,issues:[]},u);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([s,c])=>ad(n,s,c)):ad(n,i,a)}});function Ha(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(_r(e)&&_r(t)){const n=Object.keys(t),u=Object.keys(e).filter(i=>n.indexOf(i)!==-1),r={...e,...t};for(const i of u){const a=Ha(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};r[i]=a.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let u=0;u<e.length;u++){const r=e[u],i=t[u],a=Ha(r,i);if(!a.valid)return{valid:!1,mergeErrorPath:[u,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function ad(e,t,n){const u=new Map;let r;for(const o of t.issues)if(o.code==="unrecognized_keys"){r??(r=o);for(const s of o.keys)u.has(s)||u.set(s,{}),u.get(s).l=!0}else e.issues.push(o);for(const o of n.issues)if(o.code==="unrecognized_keys")for(const s of o.keys)u.has(s)||u.set(s,{}),u.get(s).r=!0;else e.issues.push(o);const i=[...u].filter(([,o])=>o.l&&o.r).map(([o])=>o);if(i.length&&r&&e.issues.push({...r,keys:i}),yr(e))return e;const a=Ha(t.value,n.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}var Ga=F("$ZodTuple",(e,t)=>{le.init(e,t);const n=t.items;e._zod.parse=(u,r)=>{const i=u.value;if(!Array.isArray(i))return u.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),u;u.value=[];const a=[],o=[...n].reverse().findIndex(l=>l._zod.optin!=="optional"),s=o===-1?0:n.length-o;if(!t.rest){const l=i.length>n.length,d=i.length<s-1;if(l||d)return u.issues.push({...l?{code:"too_big",maximum:n.length,inclusive:!0}:{code:"too_small",minimum:n.length},input:i,inst:e,origin:"array"}),u}let c=-1;for(const l of n){if(c++,c>=i.length&&c>=s)continue;const d=l._zod.run({value:i[c],issues:[]},r);d instanceof Promise?a.push(d.then(m=>Iu(m,u,c))):Iu(d,u,c)}if(t.rest){const l=i.slice(n.length);for(const d of l){c++;const m=t.rest._zod.run({value:d,issues:[]},r);m instanceof Promise?a.push(m.then(p=>Iu(p,u,c))):Iu(m,u,c)}}return a.length?Promise.all(a).then(()=>u):u}});function Iu(e,t,n){e.issues.length&&t.issues.push(...xt(n,e.issues)),t.value[n]=e.value}var od=F("$ZodRecord",(e,t)=>{le.init(e,t),e._zod.parse=(n,u)=>{const r=n.value;if(!_r(r))return n.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),n;const i=[],a=t.keyType._zod.values;if(a){n.value={};const o=new Set;for(const c of a)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){o.add(typeof c=="number"?c.toString():c);const l=t.valueType._zod.run({value:r[c],issues:[]},u);l instanceof Promise?i.push(l.then(d=>{d.issues.length&&n.issues.push(...xt(c,d.issues)),n.value[c]=d.value})):(l.issues.length&&n.issues.push(...xt(c,l.issues)),n.value[c]=l.value)}let s;for(const c in r)o.has(c)||(s=s??[],s.push(c));s&&s.length>0&&n.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:s})}else{n.value={};for(const o of Reflect.ownKeys(r)){if(o==="__proto__")continue;let s=t.keyType._zod.run({value:o,issues:[]},u);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof o=="string"&&Za.test(o)&&s.issues.length&&s.issues.some(d=>d.code==="invalid_type"&&d.expected==="number")){const d=t.keyType._zod.run({value:Number(o),issues:[]},u);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");d.issues.length===0&&(s=d)}if(s.issues.length){t.mode==="loose"?n.value[o]=r[o]:n.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(d=>yt(d,u,Ge())),input:o,path:[o],inst:e});continue}const l=t.valueType._zod.run({value:r[o],issues:[]},u);l instanceof Promise?i.push(l.then(d=>{d.issues.length&&n.issues.push(...xt(o,d.issues)),n.value[s.value]=d.value})):(l.issues.length&&n.issues.push(...xt(o,l.issues)),n.value[s.value]=l.value)}}return i.length?Promise.all(i).then(()=>n):n}}),sd=F("$ZodMap",(e,t)=>{le.init(e,t),e._zod.parse=(n,u)=>{const r=n.value;if(!(r instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:r,inst:e}),n;const i=[];n.value=new Map;for(const[a,o]of r){const s=t.keyType._zod.run({value:a,issues:[]},u),c=t.valueType._zod.run({value:o,issues:[]},u);s instanceof Promise||c instanceof Promise?i.push(Promise.all([s,c]).then(([l,d])=>{cd(l,d,n,a,r,e,u)})):cd(s,c,n,a,r,e,u)}return i.length?Promise.all(i).then(()=>n):n}});function cd(e,t,n,u,r,i,a){e.issues.length&&(bu.has(typeof u)?n.issues.push(...xt(u,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:r,inst:i,issues:e.issues.map(o=>yt(o,a,Ge()))})),t.issues.length&&(bu.has(typeof u)?n.issues.push(...xt(u,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:r,inst:i,key:u,issues:t.issues.map(o=>yt(o,a,Ge()))})),n.value.set(e.value,t.value)}var ld=F("$ZodSet",(e,t)=>{le.init(e,t),e._zod.parse=(n,u)=>{const r=n.value;if(!(r instanceof Set))return n.issues.push({input:r,inst:e,expected:"set",code:"invalid_type"}),n;const i=[];n.value=new Set;for(const a of r){const o=t.valueType._zod.run({value:a,issues:[]},u);o instanceof Promise?i.push(o.then(s=>dd(s,n))):dd(o,n)}return i.length?Promise.all(i).then(()=>n):n}});function dd(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var fd=F("$ZodEnum",(e,t)=>{le.init(e,t);const n=Ca(t.entries),u=new Set(n);e._zod.values=u,e._zod.pattern=new RegExp(`^(${n.filter(r=>bu.has(typeof r)).map(r=>typeof r=="string"?Gt(r):r.toString()).join("|")})$`),e._zod.parse=(r,i)=>{const a=r.value;return u.has(a)||r.issues.push({code:"invalid_value",values:n,input:a,inst:e}),r}}),hd=F("$ZodLiteral",(e,t)=>{if(le.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(u=>typeof u=="string"?Gt(u):u?Gt(u.toString()):String(u)).join("|")})$`),e._zod.parse=(u,r)=>{const i=u.value;return n.has(i)||u.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),u}}),md=F("$ZodFile",(e,t)=>{le.init(e,t),e._zod.parse=(n,u)=>{const r=n.value;return r instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:r,inst:e}),n}}),pd=F("$ZodTransform",(e,t)=>{le.init(e,t),e._zod.parse=(n,u)=>{if(u.direction==="backward")throw new gu(e.constructor.name);const r=t.transform(n.value,n);if(u.async)return(r instanceof Promise?r:Promise.resolve(r)).then(a=>(n.value=a,n));if(r instanceof Promise)throw new vr;return n.value=r,n}});function vd(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var Ka=F("$ZodOptional",(e,t)=>{le.init(e,t),e._zod.optin="optional",e._zod.optout="optional",me(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),me(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Eu(n.source)})?$`):void 0}),e._zod.parse=(n,u)=>{if(t.innerType._zod.optin==="optional"){const r=t.innerType._zod.run(n,u);return r instanceof Promise?r.then(i=>vd(i,n.value)):vd(r,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,u)}}),gd=F("$ZodExactOptional",(e,t)=>{Ka.init(e,t),me(e._zod,"values",()=>t.innerType._zod.values),me(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,u)=>t.innerType._zod.run(n,u)}),_d=F("$ZodNullable",(e,t)=>{le.init(e,t),me(e._zod,"optin",()=>t.innerType._zod.optin),me(e._zod,"optout",()=>t.innerType._zod.optout),me(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Eu(n.source)}|null)$`):void 0}),me(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,u)=>n.value===null?n:t.innerType._zod.run(n,u)}),yd=F("$ZodDefault",(e,t)=>{le.init(e,t),e._zod.optin="optional",me(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,u)=>{if(u.direction==="backward")return t.innerType._zod.run(n,u);if(n.value===void 0)return n.value=t.defaultValue,n;const r=t.innerType._zod.run(n,u);return r instanceof Promise?r.then(i=>Ed(i,t)):Ed(r,t)}});function Ed(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var bd=F("$ZodPrefault",(e,t)=>{le.init(e,t),e._zod.optin="optional",me(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,u)=>(u.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,u))}),Dd=F("$ZodNonOptional",(e,t)=>{le.init(e,t),me(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(u=>u!==void 0)):void 0}),e._zod.parse=(n,u)=>{const r=t.innerType._zod.run(n,u);return r instanceof Promise?r.then(i=>$d(i,e)):$d(r,e)}});function $d(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var wd=F("$ZodSuccess",(e,t)=>{le.init(e,t),e._zod.parse=(n,u)=>{if(u.direction==="backward")throw new gu("ZodSuccess");const r=t.innerType._zod.run(n,u);return r instanceof Promise?r.then(i=>(n.value=i.issues.length===0,n)):(n.value=r.issues.length===0,n)}}),Cd=F("$ZodCatch",(e,t)=>{le.init(e,t),me(e._zod,"optin",()=>t.innerType._zod.optin),me(e._zod,"optout",()=>t.innerType._zod.optout),me(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,u)=>{if(u.direction==="backward")return t.innerType._zod.run(n,u);const r=t.innerType._zod.run(n,u);return r instanceof Promise?r.then(i=>(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(a=>yt(a,u,Ge()))},input:n.value}),n.issues=[]),n)):(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(i=>yt(i,u,Ge()))},input:n.value}),n.issues=[]),n)}}),kd=F("$ZodNaN",(e,t)=>{le.init(e,t),e._zod.parse=(n,u)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),Sd=F("$ZodPipe",(e,t)=>{le.init(e,t),me(e._zod,"values",()=>t.in._zod.values),me(e._zod,"optin",()=>t.in._zod.optin),me(e._zod,"optout",()=>t.out._zod.optout),me(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,u)=>{if(u.direction==="backward"){const i=t.out._zod.run(n,u);return i instanceof Promise?i.then(a=>Fu(a,t.in,u)):Fu(i,t.in,u)}const r=t.in._zod.run(n,u);return r instanceof Promise?r.then(i=>Fu(i,t.out,u)):Fu(r,t.out,u)}});function Fu(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var Xa=F("$ZodCodec",(e,t)=>{le.init(e,t),me(e._zod,"values",()=>t.in._zod.values),me(e._zod,"optin",()=>t.in._zod.optin),me(e._zod,"optout",()=>t.out._zod.optout),me(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,u)=>{if((u.direction||"forward")==="forward"){const i=t.in._zod.run(n,u);return i instanceof Promise?i.then(a=>Tu(a,t,u)):Tu(i,t,u)}else{const i=t.out._zod.run(n,u);return i instanceof Promise?i.then(a=>Tu(a,t,u)):Tu(i,t,u)}}});function Tu(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||"forward")==="forward"){const r=t.transform(e.value,e);return r instanceof Promise?r.then(i=>ju(e,i,t.out,n)):ju(e,r,t.out,n)}else{const r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(i=>ju(e,i,t.in,n)):ju(e,r,t.in,n)}}function ju(e,t,n,u){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},u)}var Ad=F("$ZodReadonly",(e,t)=>{le.init(e,t),me(e._zod,"propValues",()=>t.innerType._zod.propValues),me(e._zod,"values",()=>t.innerType._zod.values),me(e._zod,"optin",()=>t.innerType?._zod?.optin),me(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,u)=>{if(u.direction==="backward")return t.innerType._zod.run(n,u);const r=t.innerType._zod.run(n,u);return r instanceof Promise?r.then(xd):xd(r)}});function xd(e){return e.value=Object.freeze(e.value),e}var Bd=F("$ZodTemplateLiteral",(e,t)=>{le.init(e,t);const n=[];for(const u of t.parts)if(typeof u=="object"&&u!==null){if(!u._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...u._zod.traits].shift()}`);const r=u._zod.pattern instanceof RegExp?u._zod.pattern.source:u._zod.pattern;if(!r)throw new Error(`Invalid template literal part: ${u._zod.traits}`);const i=r.startsWith("^")?1:0,a=r.endsWith("$")?r.length-1:r.length;n.push(r.slice(i,a))}else if(u===null||uc.has(typeof u))n.push(Gt(`${u}`));else throw new Error(`Invalid template literal part: ${u}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(u,r)=>typeof u.value!="string"?(u.issues.push({input:u.value,inst:e,expected:"string",code:"invalid_type"}),u):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(u.value)||u.issues.push({input:u.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),u)}),Id=F("$ZodFunction",(e,t)=>(le.init(e,t),e._def=t,e._zod.def=t,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return function(...u){const r=e._def.input?Cu(e._def.input,u):u,i=Reflect.apply(n,this,r);return e._def.output?Cu(e._def.output,i):i}},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return async function(...u){const r=e._def.input?await ku(e._def.input,u):u,i=await Reflect.apply(n,this,r);return e._def.output?await ku(e._def.output,i):i}},e._zod.parse=(n,u)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{const u=e.constructor;return Array.isArray(n[0])?new u({type:"function",input:new Ga({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new u({type:"function",input:n[0],output:e._def.output})},e.output=n=>{const u=e.constructor;return new u({type:"function",input:e._def.input,output:n})},e)),Fd=F("$ZodPromise",(e,t)=>{le.init(e,t),e._zod.parse=(n,u)=>Promise.resolve(n.value).then(r=>t.innerType._zod.run({value:r,issues:[]},u))}),Td=F("$ZodLazy",(e,t)=>{le.init(e,t),me(e._zod,"innerType",()=>t.getter()),me(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),me(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),me(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),me(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(n,u)=>e._zod.innerType._zod.run(n,u)}),jd=F("$ZodCustom",(e,t)=>{ze.init(e,t),le.init(e,t),e._zod.parse=(n,u)=>n,e._zod.check=n=>{const u=n.value,r=t.fn(u);if(r instanceof Promise)return r.then(i=>Pd(i,n,u,e));Pd(r,n,u,e)}});function Pd(e,t,n,u){if(!e){const r={code:"custom",input:n,inst:u,path:[...u._zod.def.path??[]],continue:!u._zod.def.abort};u._zod.def.params&&(r.params=u._zod.def.params),t.issues.push(wu(r))}}var Ya={};qt(Ya,{ar:()=>V1,az:()=>W1,be:()=>G1,bg:()=>X1,ca:()=>Q1,cs:()=>t_,da:()=>n_,de:()=>i_,en:()=>Od,eo:()=>s_,es:()=>l_,fa:()=>f_,fi:()=>m_,fr:()=>v_,frCA:()=>__,he:()=>E_,hu:()=>D_,hy:()=>w_,id:()=>k_,is:()=>A_,it:()=>B_,ja:()=>F_,ka:()=>j_,kh:()=>z_,km:()=>Rd,ko:()=>N_,lt:()=>Z_,mk:()=>M_,ms:()=>q_,nl:()=>J_,no:()=>H_,ota:()=>K_,pl:()=>e3,ps:()=>Y_,pt:()=>r3,ru:()=>u3,sl:()=>a3,sv:()=>s3,ta:()=>l3,th:()=>f3,tr:()=>m3,ua:()=>v3,uk:()=>Md,ur:()=>_3,uz:()=>E3,vi:()=>D3,yo:()=>A3,zhCN:()=>w3,zhTW:()=>k3});var q1=()=>{const 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 t(r){return e[r]??null}const n={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"},u={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.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 ${r.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${o}`:`\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 ${i}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${o}`}case"invalid_value":return r.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 ${ue(r.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: ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${r.maximum.toString()} ${a.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 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${r.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.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 "${r.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`${n[i.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${r.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${r.keys.length>1?"\u0629":""}: ${L(r.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${r.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 ${r.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function V1(){return{localeError:q1()}}var J1=()=>{const 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 t(r){return e[r]??null}const n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},u={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${r.expected}, daxil olan ${o}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${i}, daxil olan ${o}`}case"invalid_value":return r.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${ue(r.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${i}${r.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${i}${r.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${i.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:i.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${i.suffix}" il\u0259 bitm\u0259lidir`:i.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${i.includes}" daxil olmal\u0131d\u0131r`:i.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${i.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${n[i.format]??r.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${r.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${r.keys.length>1?"lar":""}: ${L(r.keys,", ")}`;case"invalid_key":return`${r.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${r.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function W1(){return{localeError:J1()}}function zd(e,t,n,u){const r=Math.abs(e),i=r%10,a=r%100;return a>=11&&a<=19?u:i===1?t:i>=2&&i<=4?n:u}var H1=()=>{const 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 t(r){return e[r]??null}const n={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"},u={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${r.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${o}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${i}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${o}`}case"invalid_value":return r.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 ${ue(r.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 ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);if(a){const o=Number(r.maximum),s=zd(o,a.unit.one,a.unit.few,a.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 ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${i}${r.maximum.toString()} ${s}`}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 ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);if(a){const o=Number(r.minimum),s=zd(o,a.unit.one,a.unit.few,a.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 ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${i}${r.minimum.toString()} ${s}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${n[i.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${r.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${L(r.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${r.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 ${r.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function G1(){return{localeError:H1()}}var K1=()=>{const 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 t(r){return e[r]??null}const n={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"},u={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${r.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${o}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${o}`}case"invalid_value":return r.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${ue(r.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 ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${r.maximum.toString()} ${a.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 ${r.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${r.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;if(i.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 "${i.prefix}"`;if(i.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 "${i.suffix}"`;if(i.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 "${i.includes}"`;if(i.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 ${i.pattern}`;let a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return i.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),i.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${n[i.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${r.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${r.keys.length>1?"\u043E\u0432\u0435":""}: ${L(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${r.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 ${r.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function X1(){return{localeError:K1()}}var Y1=()=>{const e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(r){return e[r]??null}const n={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"},u={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${r.expected}, s'ha rebut ${o}`:`Tipus inv\xE0lid: s'esperava ${i}, s'ha rebut ${o}`}case"invalid_value":return r.values.length===1?`Valor inv\xE0lid: s'esperava ${ue(r.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${L(r.values," o ")}`;case"too_big":{const i=r.inclusive?"com a m\xE0xim":"menys de",a=t(r.origin);return a?`Massa gran: s'esperava que ${r.origin??"el valor"} contingu\xE9s ${i} ${r.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${r.origin??"el valor"} fos ${i} ${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?"com a m\xEDnim":"m\xE9s de",a=t(r.origin);return a?`Massa petit: s'esperava que ${r.origin} contingu\xE9s ${i} ${r.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${r.origin} fos ${i} ${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${i.prefix}"`:i.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${i.suffix}"`:i.format==="includes"?`Format inv\xE0lid: ha d'incloure "${i.includes}"`:i.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${i.pattern}`:`Format inv\xE0lid per a ${n[i.format]??r.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${r.divisor}`;case"unrecognized_keys":return`Clau${r.keys.length>1?"s":""} no reconeguda${r.keys.length>1?"s":""}: ${L(r.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${r.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${r.origin}`;default:return"Entrada inv\xE0lida"}}};function Q1(){return{localeError:Y1()}}var e_=()=>{const 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 t(r){return e[r]??null}const n={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"},u={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${r.expected}, obdr\u017Eeno ${o}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${i}, obdr\u017Eeno ${o}`}case"invalid_value":return r.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${ue(r.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${i}${r.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${i}${r.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${i.prefix}"`:i.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${i.suffix}"`:i.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${i.includes}"`:i.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${i.pattern}`:`Neplatn\xFD form\xE1t ${n[i.format]??r.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${r.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${L(r.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${r.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${r.origin}`;default:return"Neplatn\xFD vstup"}}};function t_(){return{localeError:e_()}}var r_=()=>{const e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(r){return e[r]??null}const n={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\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"},u={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.expected)?`Ugyldigt input: forventede instanceof ${r.expected}, fik ${o}`:`Ugyldigt input: forventede ${i}, fik ${o}`}case"invalid_value":return r.values.length===1?`Ugyldig v\xE6rdi: forventede ${ue(r.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin),o=u[r.origin]??r.origin;return a?`For stor: forventede ${o??"value"} ${a.verb} ${i} ${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${o??"value"} havde ${i} ${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin),o=u[r.origin]??r.origin;return a?`For lille: forventede ${o} ${a.verb} ${i} ${r.minimum.toString()} ${a.unit}`:`For lille: forventede ${o} havde ${i} ${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Ugyldig streng: skal starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: skal ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: skal indeholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${n[i.format]??r.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${L(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${r.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${r.origin}`;default:return"Ugyldigt input"}}};function n_(){return{localeError:r_()}}var u_=()=>{const e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(r){return e[r]??null}const n={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},u={nan:"NaN",number:"Zahl",array:"Array"};return r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${r.expected}, erhalten ${o}`:`Ung\xFCltige Eingabe: erwartet ${i}, erhalten ${o}`}case"invalid_value":return r.values.length===1?`Ung\xFCltige Eingabe: erwartet ${ue(r.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${i}${r.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${i}${r.maximum.toString()} ist`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`Zu klein: erwartet, dass ${r.origin} ${i}${r.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${r.origin} ${i}${r.minimum.toString()} ist`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Ung\xFCltiger String: muss mit "${i.prefix}" beginnen`:i.format==="ends_with"?`Ung\xFCltiger String: muss mit "${i.suffix}" enden`:i.format==="includes"?`Ung\xFCltiger String: muss "${i.includes}" enthalten`:i.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${i.pattern} entsprechen`:`Ung\xFCltig: ${n[i.format]??r.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${r.divisor} sein`;case"unrecognized_keys":return`${r.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${L(r.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${r.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${r.origin}`;default:return"Ung\xFCltige Eingabe"}}};function i_(){return{localeError:u_()}}var a_=()=>{const e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(r){return e[r]??null}const n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},u={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return`Invalid input: expected ${i}, received ${o}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${ue(r.values[0])}`:`Invalid option: expected one of ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Too big: expected ${r.origin??"value"} to have ${i}${r.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${r.origin??"value"} to be ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`Too small: expected ${r.origin} to have ${i}${r.minimum.toString()} ${a.unit}`:`Too small: expected ${r.origin} to be ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${n[i.format]??r.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${r.divisor}`;case"unrecognized_keys":return`Unrecognized key${r.keys.length>1?"s":""}: ${L(r.keys,", ")}`;case"invalid_key":return`Invalid key in ${r.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${r.origin}`;default:return"Invalid input"}}};function Od(){return{localeError:a_()}}var o_=()=>{const e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(r){return e[r]??null}const n={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"},u={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${r.expected}, ricevi\u011Dis ${o}`:`Nevalida enigo: atendi\u011Dis ${i}, ricevi\u011Dis ${o}`}case"invalid_value":return r.values.length===1?`Nevalida enigo: atendi\u011Dis ${ue(r.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${i}${r.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`Tro malgranda: atendi\u011Dis ke ${r.origin} havu ${i}${r.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${r.origin} estu ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${i.prefix}"`:i.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${i.suffix}"`:i.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${i.includes}"`:i.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}`:`Nevalida ${n[i.format]??r.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${r.divisor}`;case"unrecognized_keys":return`Nekonata${r.keys.length>1?"j":""} \u015Dlosilo${r.keys.length>1?"j":""}: ${L(r.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${r.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${r.origin}`;default:return"Nevalida enigo"}}};function s_(){return{localeError:o_()}}var c_=()=>{const e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(r){return e[r]??null}const n={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"},u={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 r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${r.expected}, recibido ${o}`:`Entrada inv\xE1lida: se esperaba ${i}, recibido ${o}`}case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: se esperaba ${ue(r.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin),o=u[r.origin]??r.origin;return a?`Demasiado grande: se esperaba que ${o??"valor"} tuviera ${i}${r.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${o??"valor"} fuera ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin),o=u[r.origin]??r.origin;return a?`Demasiado peque\xF1o: se esperaba que ${o} tuviera ${i}${r.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${o} fuera ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${i.prefix}"`:i.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${i.suffix}"`:i.format==="includes"?`Cadena inv\xE1lida: debe incluir "${i.includes}"`:i.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${i.pattern}`:`Inv\xE1lido ${n[i.format]??r.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${r.divisor}`;case"unrecognized_keys":return`Llave${r.keys.length>1?"s":""} desconocida${r.keys.length>1?"s":""}: ${L(r.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${u[r.origin]??r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${u[r.origin]??r.origin}`;default:return"Entrada inv\xE1lida"}}};function l_(){return{localeError:c_()}}var d_=()=>{const 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 t(r){return e[r]??null}const n={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"},u={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${r.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${o} \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 ${i} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${o} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return r.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${ue(r.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 ${L(r.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${r.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${i}${r.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${i}${r.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{const i=r;return i.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:i.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:i.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${i.includes}" \u0628\u0627\u0634\u062F`:i.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${i.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${n[i.format]??r.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 ${r.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${r.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${L(r.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${r.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 ${r.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function f_(){return{localeError:d_()}}var h_=()=>{const 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 t(r){return e[r]??null}const n={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"},u={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.expected)?`Virheellinen tyyppi: odotettiin instanceof ${r.expected}, oli ${o}`:`Virheellinen tyyppi: odotettiin ${i}, oli ${o}`}case"invalid_value":return r.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${ue(r.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${i}${r.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${i}${r.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${i.prefix}"`:i.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${i.suffix}"`:i.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${i.includes}"`:i.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${i.pattern}`:`Virheellinen ${n[i.format]??r.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${r.divisor} monikerta`;case"unrecognized_keys":return`${r.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${L(r.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 m_(){return{localeError:h_()}}var p_=()=>{const 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 t(r){return e[r]??null}const n={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"},u={nan:"NaN",number:"nombre",array:"tableau"};return r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : instanceof ${r.expected} attendu, ${o} re\xE7u`:`Entr\xE9e invalide : ${i} attendu, ${o} re\xE7u`}case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : ${ue(r.values[0])} attendu`:`Option invalide : une valeur parmi ${L(r.values,"|")} attendue`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Trop grand : ${r.origin??"valeur"} doit ${a.verb} ${i}${r.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${r.origin??"valeur"} doit \xEAtre ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`Trop petit : ${r.origin} doit ${a.verb} ${i}${r.minimum.toString()} ${a.unit}`:`Trop petit : ${r.origin} doit \xEAtre ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${i.pattern}`:`${n[i.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${L(r.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\xE9e invalide"}}};function v_(){return{localeError:p_()}}var g_=()=>{const 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 t(r){return e[r]??null}const n={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"},u={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : attendu instanceof ${r.expected}, re\xE7u ${o}`:`Entr\xE9e invalide : attendu ${i}, re\xE7u ${o}`}case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : attendu ${ue(r.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"\u2264":"<",a=t(r.origin);return a?`Trop grand : attendu que ${r.origin??"la valeur"} ait ${i}${r.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${r.origin??"la valeur"} soit ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?"\u2265":">",a=t(r.origin);return a?`Trop petit : attendu que ${r.origin} ait ${i}${r.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${r.origin} soit ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${i.pattern}`:`${n[i.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${L(r.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\xE9e invalide"}}};function __(){return{localeError:g_()}}var y_=()=>{const 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"}},t={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"}},n=c=>c?e[c]:void 0,u=c=>{const l=n(c);return l?l.label:c??e.unknown.label},r=c=>`\u05D4${u(c)}`,i=c=>(n(c)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",a=c=>c?t[c]??null:null,o={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"}},s={nan:"NaN"};return c=>{switch(c.code){case"invalid_type":{const l=c.expected,d=s[l??""]??u(l),m=oe(c.input),p=s[m]??e[m]?.label??m;return/^[A-Z]/.test(c.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${c.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${p}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${d}, \u05D4\u05EA\u05E7\u05D1\u05DC ${p}`}case"invalid_value":{if(c.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 ${ue(c.values[0])}`;const l=c.values.map(p=>ue(p));if(c.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 ${l[0]} \u05D0\u05D5 ${l[1]}`;const d=l[l.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 ${l.slice(0,-1).join(", ")} \u05D0\u05D5 ${d}`}case"too_big":{const l=a(c.origin),d=r(c.origin??"value");if(c.origin==="string")return`${l?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.maximum.toString()} ${l?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(c.origin==="number"){const E=c.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${c.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${E}`}if(c.origin==="array"||c.origin==="set"){const E=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",b=c.inclusive?`${c.maximum} ${l?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${c.maximum} ${l?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} ${E} \u05DC\u05D4\u05DB\u05D9\u05DC ${b}`.trim()}const m=c.inclusive?"<=":"<",p=i(c.origin??"value");return l?.unit?`${l.longLabel} \u05DE\u05D3\u05D9: ${d} ${p} ${m}${c.maximum.toString()} ${l.unit}`:`${l?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${d} ${p} ${m}${c.maximum.toString()}`}case"too_small":{const l=a(c.origin),d=r(c.origin??"value");if(c.origin==="string")return`${l?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.minimum.toString()} ${l?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(c.origin==="number"){const E=c.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${c.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${E}`}if(c.origin==="array"||c.origin==="set"){const E=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(c.minimum===1&&c.inclusive){const g=(c.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${E} \u05DC\u05D4\u05DB\u05D9\u05DC ${g}`}const b=c.inclusive?`${c.minimum} ${l?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${c.minimum} ${l?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${E} \u05DC\u05D4\u05DB\u05D9\u05DC ${b}`.trim()}const m=c.inclusive?">=":">",p=i(c.origin??"value");return l?.unit?`${l.shortLabel} \u05DE\u05D3\u05D9: ${d} ${p} ${m}${c.minimum.toString()} ${l.unit}`:`${l?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${d} ${p} ${m}${c.minimum.toString()}`}case"invalid_format":{const l=c;if(l.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${l.prefix}"`;if(l.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${l.suffix}"`;if(l.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${l.includes}"`;if(l.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 ${l.pattern}`;const d=o[l.format],m=d?.label??l.format,E=(d?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${m} \u05DC\u05D0 ${E}`}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 ${c.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${c.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${c.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${L(c.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${r(c.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function E_(){return{localeError:y_()}}var b_=()=>{const e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(r){return e[r]??null}const n={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"},u={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${r.expected}, a kapott \xE9rt\xE9k ${o}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${i}, a kapott \xE9rt\xE9k ${o}`}case"invalid_value":return r.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${ue(r.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`T\xFAl nagy: ${r.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${i}${r.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${r.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} m\xE9rete t\xFAl kicsi ${i}${r.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} t\xFAl kicsi ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`\xC9rv\xE9nytelen string: "${i.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:i.format==="ends_with"?`\xC9rv\xE9nytelen string: "${i.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:i.format==="includes"?`\xC9rv\xE9nytelen string: "${i.includes}" \xE9rt\xE9ket kell tartalmaznia`:i.format==="regex"?`\xC9rv\xE9nytelen string: ${i.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${n[i.format]??r.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${r.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${r.keys.length>1?"s":""}: ${L(r.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${r.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${r.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function D_(){return{localeError:b_()}}function Nd(e,t,n){return Math.abs(e)===1?t:n}function Pr(e){if(!e)return"";const t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],n=e[e.length-1];return e+(t.includes(n)?"\u0576":"\u0568")}var $_=()=>{const 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 t(r){return e[r]??null}const n={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"},u={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.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 ${r.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${o}`:`\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 ${i}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${o}`}case"invalid_value":return r.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 ${ue(r.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 ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);if(a){const o=Number(r.maximum),s=Nd(o,a.unit.one,a.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 ${Pr(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${r.maximum.toString()} ${s}`}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 ${Pr(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);if(a){const o=Number(r.minimum),s=Nd(o,a.unit.one,a.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 ${Pr(r.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${r.minimum.toString()} ${s}`}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 ${Pr(r.origin)} \u056C\u056B\u0576\u056B ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${i.prefix}"-\u0578\u057E`:i.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${i.suffix}"-\u0578\u057E`:i.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${i.includes}"`:i.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 ${i.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${n[i.format]??r.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 ${r.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${r.keys.length>1?"\u0576\u0565\u0580":""}. ${L(r.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Pr(r.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 ${Pr(r.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function w_(){return{localeError:$_()}}var C_=()=>{const e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(r){return e[r]??null}const n={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},u={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.expected)?`Input tidak valid: diharapkan instanceof ${r.expected}, diterima ${o}`:`Input tidak valid: diharapkan ${i}, diterima ${o}`}case"invalid_value":return r.values.length===1?`Input tidak valid: diharapkan ${ue(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: diharapkan ${r.origin??"value"} memiliki ${i}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${r.origin??"value"} menjadi ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: diharapkan ${r.origin} memiliki ${i}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${r.origin} menjadi ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`String tidak valid: harus dimulai dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak valid: harus berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak valid: harus menyertakan "${i.includes}"`:i.format==="regex"?`String tidak valid: harus sesuai pola ${i.pattern}`:`${n[i.format]??r.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${r.keys.length>1?"s":""}: ${L(r.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${r.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${r.origin}`;default:return"Input tidak valid"}}};function k_(){return{localeError:C_()}}var S_=()=>{const 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 t(r){return e[r]??null}const n={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"},u={nan:"NaN",number:"n\xFAmer",array:"fylki"};return r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${o} \xFEar sem \xE1 a\xF0 vera instanceof ${r.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${o} \xFEar sem \xE1 a\xF0 vera ${i}`}case"invalid_value":return r.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${ue(r.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} hafi ${i}${r.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} s\xE9 ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} hafi ${i}${r.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} s\xE9 ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${i.prefix}"`:i.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${i.suffix}"`:i.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${i.includes}"`:i.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${i.pattern}`:`Rangt ${n[i.format]??r.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${r.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${r.keys.length>1?"ir lyklar":"ur lykill"}: ${L(r.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${r.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${r.origin}`;default:return"Rangt gildi"}}};function A_(){return{localeError:S_()}}var x_=()=>{const e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(r){return e[r]??null}const n={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},u={nan:"NaN",number:"numero",array:"vettore"};return r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.expected)?`Input non valido: atteso instanceof ${r.expected}, ricevuto ${o}`:`Input non valido: atteso ${i}, ricevuto ${o}`}case"invalid_value":return r.values.length===1?`Input non valido: atteso ${ue(r.values[0])}`:`Opzione non valida: atteso uno tra ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Troppo grande: ${r.origin??"valore"} deve avere ${i}${r.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${r.origin??"valore"} deve essere ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`Troppo piccolo: ${r.origin} deve avere ${i}${r.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${r.origin} deve essere ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Stringa non valida: deve iniziare con "${i.prefix}"`:i.format==="ends_with"?`Stringa non valida: deve terminare con "${i.suffix}"`:i.format==="includes"?`Stringa non valida: deve includere "${i.includes}"`:i.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${i.pattern}`:`Invalid ${n[i.format]??r.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${r.divisor}`;case"unrecognized_keys":return`Chiav${r.keys.length>1?"i":"e"} non riconosciut${r.keys.length>1?"e":"a"}: ${L(r.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${r.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${r.origin}`;default:return"Input non valido"}}};function B_(){return{localeError:x_()}}var I_=()=>{const 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 t(r){return e[r]??null}const n={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"},u={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${r.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${o}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${i}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${o}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return r.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${ue(r.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${L(r.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{const i=r.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=t(r.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${a.unit??"\u8981\u7D20"}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{const i=r.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=t(r.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${a.unit}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{const i=r;return i.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${i.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${n[i.format]??r.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${r.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${r.keys.length>1?"\u7FA4":""}: ${L(r.keys,"\u3001")}`;case"invalid_key":return`${r.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${r.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function F_(){return{localeError:I_()}}var T_=()=>{const 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 t(r){return e[r]??null}const n={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 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",json_string:"JSON \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},u={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\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 r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.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 ${r.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${o}`:`\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 ${i}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${o}`}case"invalid_value":return r.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 ${ue(r.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 ${L(r.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${r.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${i}${r.maximum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${r.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`\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 ${r.origin} ${a.verb} ${i}${r.minimum.toString()} ${a.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 ${r.origin} \u10D8\u10E7\u10DD\u10E1 ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.prefix}"-\u10D8\u10D7`:i.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.suffix}"-\u10D8\u10D7`:i.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${i.includes}"-\u10E1`:i.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\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 ${i.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${n[i.format]??r.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 ${r.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${r.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${L(r.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${r.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 ${r.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function j_(){return{localeError:T_()}}var P_=()=>{const 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 t(r){return e[r]??null}const n={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"},u={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 r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.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 ${r.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${o}`:`\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 ${i} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${o}`}case"invalid_value":return r.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 ${ue(r.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 ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${r.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${i} ${r.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${i} ${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${n[i.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${L(r.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 ${r.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 ${r.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 Rd(){return{localeError:P_()}}function z_(){return Rd()}var O_=()=>{const 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 t(r){return e[r]??null}const n={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"},u={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${r.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${o}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${i}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${o}\uC785\uB2C8\uB2E4`}case"invalid_value":return r.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${ue(r.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${L(r.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{const i=r.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=i==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",o=t(r.origin),s=o?.unit??"\uC694\uC18C";return o?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()}${s} ${i}${a}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()} ${i}${a}`}case"too_small":{const i=r.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=i==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",o=t(r.origin),s=o?.unit??"\uC694\uC18C";return o?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()}${s} ${i}${a}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()} ${i}${a}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:i.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${i.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${n[i.format]??r.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${r.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${L(r.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${r.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${r.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function N_(){return{localeError:O_()}}var ln=e=>e.charAt(0).toUpperCase()+e.slice(1);function Zd(e){const t=Math.abs(e),n=t%10,u=t%100;return u>=11&&u<=19||n===0?"many":n===1?"one":"few"}var R_=()=>{const 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 t(r,i,a,o){const s=e[r]??null;return s===null?s:{unit:s.unit[i],verb:s.verb[o][a?"inclusive":"notInclusive"]}}const n={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"},u={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 r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.expected)?`Gautas tipas ${o}, o tik\u0117tasi - instanceof ${r.expected}`:`Gautas tipas ${o}, o tik\u0117tasi - ${i}`}case"invalid_value":return r.values.length===1?`Privalo b\u016Bti ${ue(r.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${L(r.values,"|")} pasirinkim\u0173`;case"too_big":{const i=u[r.origin]??r.origin,a=t(r.origin,Zd(Number(r.maximum)),r.inclusive??!1,"smaller");if(a?.verb)return`${ln(i??r.origin??"reik\u0161m\u0117")} ${a.verb} ${r.maximum.toString()} ${a.unit??"element\u0173"}`;const o=r.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${ln(i??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${o} ${r.maximum.toString()} ${a?.unit}`}case"too_small":{const i=u[r.origin]??r.origin,a=t(r.origin,Zd(Number(r.minimum)),r.inclusive??!1,"bigger");if(a?.verb)return`${ln(i??r.origin??"reik\u0161m\u0117")} ${a.verb} ${r.minimum.toString()} ${a.unit??"element\u0173"}`;const o=r.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${ln(i??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${o} ${r.minimum.toString()} ${a?.unit}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${i.prefix}"`:i.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${i.suffix}"`:i.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${i.includes}"`:i.format==="regex"?`Eilut\u0117 privalo atitikti ${i.pattern}`:`Neteisingas ${n[i.format]??r.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${r.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${r.keys.length>1?"i":"as"} rakt${r.keys.length>1?"ai":"as"}: ${L(r.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{const i=u[r.origin]??r.origin;return`${ln(i??r.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function Z_(){return{localeError:R_()}}var U_=()=>{const 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 t(r){return e[r]??null}const n={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"},u={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${r.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${o}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${o}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${ue(r.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 ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${i}${r.maximum.toString()} ${a.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 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0438\u043C\u0430 ${i}${r.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`Invalid ${n[i.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`${r.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"}: ${L(r.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${r.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 ${r.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function M_(){return{localeError:U_()}}var L_=()=>{const e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(r){return e[r]??null}const n={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},u={nan:"NaN",number:"nombor"};return r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.expected)?`Input tidak sah: dijangka instanceof ${r.expected}, diterima ${o}`:`Input tidak sah: dijangka ${i}, diterima ${o}`}case"invalid_value":return r.values.length===1?`Input tidak sah: dijangka ${ue(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: dijangka ${r.origin??"nilai"} ${a.verb} ${i}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${r.origin??"nilai"} adalah ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: dijangka ${r.origin} ${a.verb} ${i}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${r.origin} adalah ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`String tidak sah: mesti bermula dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak sah: mesti mengandungi "${i.includes}"`:i.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${i.pattern}`:`${n[i.format]??r.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${L(r.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${r.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${r.origin}`;default:return"Input tidak sah"}}};function q_(){return{localeError:L_()}}var V_=()=>{const e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(r){return e[r]??null}const n={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},u={nan:"NaN",number:"getal"};return r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.expected)?`Ongeldige invoer: verwacht instanceof ${r.expected}, ontving ${o}`:`Ongeldige invoer: verwacht ${i}, ontving ${o}`}case"invalid_value":return r.values.length===1?`Ongeldige invoer: verwacht ${ue(r.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin),o=r.origin==="date"?"laat":r.origin==="string"?"lang":"groot";return a?`Te ${o}: verwacht dat ${r.origin??"waarde"} ${i}${r.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${o}: verwacht dat ${r.origin??"waarde"} ${i}${r.maximum.toString()} is`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin),o=r.origin==="date"?"vroeg":r.origin==="string"?"kort":"klein";return a?`Te ${o}: verwacht dat ${r.origin} ${i}${r.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${o}: verwacht dat ${r.origin} ${i}${r.minimum.toString()} is`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Ongeldige tekst: moet met "${i.prefix}" beginnen`:i.format==="ends_with"?`Ongeldige tekst: moet op "${i.suffix}" eindigen`:i.format==="includes"?`Ongeldige tekst: moet "${i.includes}" bevatten`:i.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}`:`Ongeldig: ${n[i.format]??r.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${r.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${r.keys.length>1?"s":""}: ${L(r.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${r.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${r.origin}`;default:return"Ongeldige invoer"}}};function J_(){return{localeError:V_()}}var W_=()=>{const 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 t(r){return e[r]??null}const n={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\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"},u={nan:"NaN",number:"tall",array:"liste"};return r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.expected)?`Ugyldig input: forventet instanceof ${r.expected}, fikk ${o}`:`Ugyldig input: forventet ${i}, fikk ${o}`}case"invalid_value":return r.values.length===1?`Ugyldig verdi: forventet ${ue(r.values[0])}`:`Ugyldig valg: forventet en av ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${i}${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`For lite(n): forventet ${r.origin} til \xE5 ha ${i}${r.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${r.origin} til \xE5 ha ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${n[i.format]??r.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${L(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${r.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${r.origin}`;default:return"Ugyldig input"}}};function H_(){return{localeError:W_()}}var G_=()=>{const 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 t(r){return e[r]??null}const n={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"},u={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.expected)?`F\xE2sit giren: umulan instanceof ${r.expected}, al\u0131nan ${o}`:`F\xE2sit giren: umulan ${i}, al\u0131nan ${o}`}case"invalid_value":return r.values.length===1?`F\xE2sit giren: umulan ${ue(r.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${i}${r.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${i}${r.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${i}${r.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${i}${r.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{const i=r;return i.format==="starts_with"?`F\xE2sit metin: "${i.prefix}" ile ba\u015Flamal\u0131.`:i.format==="ends_with"?`F\xE2sit metin: "${i.suffix}" ile bitmeli.`:i.format==="includes"?`F\xE2sit metin: "${i.includes}" ihtiv\xE2 etmeli.`:i.format==="regex"?`F\xE2sit metin: ${i.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${n[i.format]??r.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${r.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${r.keys.length>1?"s":""}: ${L(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${r.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function K_(){return{localeError:G_()}}var X_=()=>{const 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 t(r){return e[r]??null}const n={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"},u={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${r.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${o} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${i} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${o} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return r.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${ue(r.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${L(r.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${r.maximum.toString()} \u0648\u064A`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${i}${r.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${i}${r.minimum.toString()} \u0648\u064A`}case"invalid_format":{const i=r;return i.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:i.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:i.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${i.includes}" \u0648\u0644\u0631\u064A`:i.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${i.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${n[i.format]??r.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${r.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${r.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${L(r.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${r.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 ${r.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function Y_(){return{localeError:X_()}}var Q_=()=>{const 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 t(r){return e[r]??null}const n={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"},u={nan:"NaN",number:"liczba",array:"tablica"};return r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${r.expected}, otrzymano ${o}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${i}, otrzymano ${o}`}case"invalid_value":return r.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${ue(r.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${r.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${r.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${i.prefix}"`:i.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${i.suffix}"`:i.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${i.includes}"`:i.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${i.pattern}`:`Nieprawid\u0142ow(y/a/e) ${n[i.format]??r.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${r.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${r.keys.length>1?"s":""}: ${L(r.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${r.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${r.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function e3(){return{localeError:Q_()}}var t3=()=>{const e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(r){return e[r]??null}const n={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"},u={nan:"NaN",number:"n\xFAmero",null:"nulo"};return r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.expected)?`Tipo inv\xE1lido: esperado instanceof ${r.expected}, recebido ${o}`:`Tipo inv\xE1lido: esperado ${i}, recebido ${o}`}case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: esperado ${ue(r.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Muito grande: esperado que ${r.origin??"valor"} tivesse ${i}${r.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${r.origin??"valor"} fosse ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`Muito pequeno: esperado que ${r.origin} tivesse ${i}${r.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${r.origin} fosse ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${i.prefix}"`:i.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${i.suffix}"`:i.format==="includes"?`Texto inv\xE1lido: deve incluir "${i.includes}"`:i.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${i.pattern}`:`${n[i.format]??r.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${r.divisor}`;case"unrecognized_keys":return`Chave${r.keys.length>1?"s":""} desconhecida${r.keys.length>1?"s":""}: ${L(r.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${r.origin}`;default:return"Campo inv\xE1lido"}}};function r3(){return{localeError:t3()}}function Ud(e,t,n,u){const r=Math.abs(e),i=r%10,a=r%100;return a>=11&&a<=19?u:i===1?t:i>=2&&i<=4?n:u}var n3=()=>{const 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 t(r){return e[r]??null}const n={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"},u={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${r.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${o}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${o}`}case"invalid_value":return r.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${ue(r.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 ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);if(a){const o=Number(r.maximum),s=Ud(o,a.unit.one,a.unit.few,a.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 ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${r.maximum.toString()} ${s}`}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 ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);if(a){const o=Number(r.minimum),s=Ud(o,a.unit.one,a.unit.few,a.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 ${r.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${r.minimum.toString()} ${s}`}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 ${r.origin} \u0431\u0443\u0434\u0435\u0442 ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${n[i.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${r.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0438":""}: ${L(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${r.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 ${r.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 u3(){return{localeError:n3()}}var i3=()=>{const e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(r){return e[r]??null}const n={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"},u={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${r.expected}, prejeto ${o}`:`Neveljaven vnos: pri\u010Dakovano ${i}, prejeto ${o}`}case"invalid_value":return r.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${ue(r.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} imelo ${i}${r.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${r.origin} imelo ${i}${r.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${i.prefix}"`:i.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${i.suffix}"`:i.format==="includes"?`Neveljaven niz: mora vsebovati "${i.includes}"`:i.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${i.pattern}`:`Neveljaven ${n[i.format]??r.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${r.divisor}`;case"unrecognized_keys":return`Neprepoznan${r.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${L(r.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${r.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${r.origin}`;default:return"Neveljaven vnos"}}};function a3(){return{localeError:i3()}}var o3=()=>{const 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 t(r){return e[r]??null}const n={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"},u={nan:"NaN",number:"antal",array:"lista"};return r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${r.expected}, fick ${o}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${i}, fick ${o}`}case"invalid_value":return r.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${ue(r.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${i}${r.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${r.origin??"v\xE4rdet"} att ha ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${i}${r.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${i.prefix}"`:i.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${i.suffix}"`:i.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${i.includes}"`:i.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${i.pattern}"`:`Ogiltig(t) ${n[i.format]??r.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${L(r.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${r.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${r.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function s3(){return{localeError:o3()}}var c3=()=>{const 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 t(r){return e[r]??null}const n={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"},u={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.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 ${r.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${o}`:`\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 ${i}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${o}`}case"invalid_value":return r.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 ${ue(r.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 ${L(r.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\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 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${r.maximum.toString()} ${a.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 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${r.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`\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 ${r.origin} ${i}${r.minimum.toString()} ${a.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 ${r.origin} ${i}${r.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{const i=r;return i.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${i.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 ${n[i.format]??r.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${r.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${r.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${L(r.keys,", ")}`;case"invalid_key":return`${r.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`${r.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 l3(){return{localeError:c3()}}var d3=()=>{const 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 t(r){return e[r]??null}const n={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"},u={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 r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.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 ${r.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${o}`:`\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 ${i} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${o}`}case"invalid_value":return r.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${ue(r.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 ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=t(r.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${r.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=t(r.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${r.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:i.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 ${i.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${n[i.format]??r.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 ${r.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: ${L(r.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${r.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 ${r.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function f3(){return{localeError:d3()}}var h3=()=>{const 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 t(r){return e[r]??null}const n={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\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"},u={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${r.expected}, al\u0131nan ${o}`:`Ge\xE7ersiz de\u011Fer: beklenen ${i}, al\u0131nan ${o}`}case"invalid_value":return r.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${ue(r.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${i}${r.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${i}${r.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Ge\xE7ersiz metin: "${i.prefix}" ile ba\u015Flamal\u0131`:i.format==="ends_with"?`Ge\xE7ersiz metin: "${i.suffix}" ile bitmeli`:i.format==="includes"?`Ge\xE7ersiz metin: "${i.includes}" i\xE7ermeli`:i.format==="regex"?`Ge\xE7ersiz metin: ${i.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${n[i.format]??r.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${r.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${r.keys.length>1?"lar":""}: ${L(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${r.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function m3(){return{localeError:h3()}}var p3=()=>{const 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 t(r){return e[r]??null}const n={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"},u={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.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 ${r.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${o}`:`\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 ${i}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${o}`}case"invalid_value":return r.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 ${ue(r.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 ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\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 ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${i}${r.maximum.toString()} ${a.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 ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin} ${a.verb} ${i}${r.minimum.toString()} ${a.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin} \u0431\u0443\u0434\u0435 ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${n[i.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0456":""}: ${L(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${r.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 ${r.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 Md(){return{localeError:p3()}}function v3(){return Md()}var g3=()=>{const 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 t(r){return e[r]??null}const n={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"},u={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${r.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${o} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${i} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${o} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return r.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${ue(r.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${L(r.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${i}${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${i}${r.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u06D2 ${i}${r.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u0627 ${i}${r.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{const i=r;return i.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${i.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${n[i.format]??r.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${r.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${r.keys.length>1?"\u0632":""}: ${L(r.keys,"\u060C ")}`;case"invalid_key":return`${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function _3(){return{localeError:g3()}}var y3=()=>{const 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"}};function t(r){return e[r]??null}const n={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},u={nan:"NaN",number:"raqam",array:"massiv"};return r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${r.expected}, qabul qilingan ${o}`:`Noto\u2018g\u2018ri kirish: kutilgan ${i}, qabul qilingan ${o}`}case"invalid_value":return r.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${ue(r.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Juda katta: kutilgan ${r.origin??"qiymat"} ${i}${r.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${r.origin??"qiymat"} ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`Juda kichik: kutilgan ${r.origin} ${i}${r.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${i.prefix}" bilan boshlanishi kerak`:i.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${i.suffix}" bilan tugashi kerak`:i.format==="includes"?`Noto\u2018g\u2018ri satr: "${i.includes}" ni o\u2018z ichiga olishi kerak`:i.format==="regex"?`Noto\u2018g\u2018ri satr: ${i.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${n[i.format]??r.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${r.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${r.keys.length>1?"lar":""}: ${L(r.keys,", ")}`;case"invalid_key":return`${r.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${r.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function E3(){return{localeError:y3()}}var b3=()=>{const 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 t(r){return e[r]??null}const n={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"},u={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${r.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${o}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${i}, nh\u1EADn \u0111\u01B0\u1EE3c ${o}`}case"invalid_value":return r.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${ue(r.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${i}${r.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${a.verb} ${i}${r.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${i.prefix}"`:i.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${i.suffix}"`:i.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${i.includes}"`:i.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${i.pattern}`:`${n[i.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${L(r.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${r.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 ${r.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function D3(){return{localeError:b3()}}var $3=()=>{const 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 t(r){return e[r]??null}const n={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"},u={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${r.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${o}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${i}\uFF0C\u5B9E\u9645\u63A5\u6536 ${o}`}case"invalid_value":return r.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${ue(r.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${i}${r.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${i}${r.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.prefix}" \u5F00\u5934`:i.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.suffix}" \u7ED3\u5C3E`:i.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${i.pattern}`:`\u65E0\u6548${n[i.format]??r.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${r.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${L(r.keys,", ")}`;case"invalid_key":return`${r.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${r.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function w3(){return{localeError:$3()}}var C3=()=>{const 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 t(r){return e[r]??null}const n={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"},u={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${r.expected}\uFF0C\u4F46\u6536\u5230 ${o}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${i}\uFF0C\u4F46\u6536\u5230 ${o}`}case"invalid_value":return r.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${ue(r.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${i}${r.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${i}${r.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.prefix}" \u958B\u982D`:i.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.suffix}" \u7D50\u5C3E`:i.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${i.pattern}`:`\u7121\u6548\u7684 ${n[i.format]??r.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${r.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${r.keys.length>1?"\u5011":""}\uFF1A${L(r.keys,"\u3001")}`;case"invalid_key":return`${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function k3(){return{localeError:C3()}}var S3=()=>{const 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 t(r){return e[r]??null}const n={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"},u={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return r=>{switch(r.code){case"invalid_type":{const i=u[r.expected]??r.expected,a=oe(r.input),o=u[a]??a;return/^[A-Z]/.test(r.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${r.expected}, \xE0m\u1ECD\u0300 a r\xED ${o}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${i}, \xE0m\u1ECD\u0300 a r\xED ${o}`}case"invalid_value":return r.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${ue(r.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${L(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",a=t(r.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin??"iye"} ${a.verb} ${i}${r.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${r.maximum}`}case"too_small":{const i=r.inclusive?">=":">",a=t(r.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin} ${a.verb} ${i}${r.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${r.minimum}`}case"invalid_format":{const i=r;return i.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 "${i.prefix}"`:i.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${i.suffix}"`:i.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${i.includes}"`:i.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${i.pattern}`:`A\u1E63\xEC\u1E63e: ${n[i.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${L(r.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${r.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 ${r.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function A3(){return{localeError:S3()}}var Ld,qd=Symbol("ZodOutput"),Vd=Symbol("ZodInput"),Jd=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){const n=t[0];return this._map.set(e,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){const t=this._map.get(e);return t&&typeof t=="object"&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){const t=e._zod.parent;if(t){const n={...this.get(t)??{}};delete n.id;const u={...n,...this._map.get(e)};return Object.keys(u).length?u:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Qa(){return new Jd}(Ld=globalThis).__zod_globalRegistry??(Ld.__zod_globalRegistry=Qa());var Et=globalThis.__zod_globalRegistry;function Wd(e,t){return new e({type:"string",...q(t)})}function Hd(e,t){return new e({type:"string",coerce:!0,...q(t)})}function eo(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...q(t)})}function Pu(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...q(t)})}function to(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...q(t)})}function ro(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...q(t)})}function no(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...q(t)})}function uo(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...q(t)})}function zu(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...q(t)})}function io(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...q(t)})}function ao(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...q(t)})}function oo(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...q(t)})}function so(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...q(t)})}function co(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...q(t)})}function lo(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...q(t)})}function fo(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...q(t)})}function ho(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...q(t)})}function mo(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...q(t)})}function Gd(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...q(t)})}function po(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...q(t)})}function vo(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...q(t)})}function go(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...q(t)})}function _o(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...q(t)})}function yo(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...q(t)})}function Eo(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...q(t)})}var Kd={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Xd(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...q(t)})}function Yd(e,t){return new e({type:"string",format:"date",check:"string_format",...q(t)})}function Qd(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...q(t)})}function ef(e,t){return new e({type:"string",format:"duration",check:"string_format",...q(t)})}function tf(e,t){return new e({type:"number",checks:[],...q(t)})}function rf(e,t){return new e({type:"number",coerce:!0,checks:[],...q(t)})}function nf(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...q(t)})}function uf(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...q(t)})}function af(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...q(t)})}function of(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...q(t)})}function sf(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...q(t)})}function cf(e,t){return new e({type:"boolean",...q(t)})}function lf(e,t){return new e({type:"boolean",coerce:!0,...q(t)})}function df(e,t){return new e({type:"bigint",...q(t)})}function ff(e,t){return new e({type:"bigint",coerce:!0,...q(t)})}function hf(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...q(t)})}function mf(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...q(t)})}function pf(e,t){return new e({type:"symbol",...q(t)})}function vf(e,t){return new e({type:"undefined",...q(t)})}function gf(e,t){return new e({type:"null",...q(t)})}function _f(e){return new e({type:"any"})}function yf(e){return new e({type:"unknown"})}function Ef(e,t){return new e({type:"never",...q(t)})}function bf(e,t){return new e({type:"void",...q(t)})}function Df(e,t){return new e({type:"date",...q(t)})}function $f(e,t){return new e({type:"date",coerce:!0,...q(t)})}function wf(e,t){return new e({type:"nan",...q(t)})}function ir(e,t){return new Ua({check:"less_than",...q(t),value:e,inclusive:!1})}function bt(e,t){return new Ua({check:"less_than",...q(t),value:e,inclusive:!0})}function ar(e,t){return new Ma({check:"greater_than",...q(t),value:e,inclusive:!1})}function ot(e,t){return new Ma({check:"greater_than",...q(t),value:e,inclusive:!0})}function bo(e){return ar(0,e)}function Do(e){return ir(0,e)}function $o(e){return bt(0,e)}function wo(e){return ot(0,e)}function zr(e,t){return new Jc({check:"multiple_of",...q(t),value:e})}function Or(e,t){return new Gc({check:"max_size",...q(t),maximum:e})}function or(e,t){return new Kc({check:"min_size",...q(t),minimum:e})}function dn(e,t){return new Xc({check:"size_equals",...q(t),size:e})}function fn(e,t){return new Yc({check:"max_length",...q(t),maximum:e})}function br(e,t){return new Qc({check:"min_length",...q(t),minimum:e})}function hn(e,t){return new el({check:"length_equals",...q(t),length:e})}function Ou(e,t){return new tl({check:"string_format",format:"regex",...q(t),pattern:e})}function Nu(e){return new rl({check:"string_format",format:"lowercase",...q(e)})}function Ru(e){return new nl({check:"string_format",format:"uppercase",...q(e)})}function Zu(e,t){return new ul({check:"string_format",format:"includes",...q(t),includes:e})}function Uu(e,t){return new il({check:"string_format",format:"starts_with",...q(t),prefix:e})}function Mu(e,t){return new al({check:"string_format",format:"ends_with",...q(t),suffix:e})}function Co(e,t,n){return new sl({check:"property",property:e,schema:t,...q(n)})}function Lu(e,t){return new cl({check:"mime_type",mime:e,...q(t)})}function Kt(e){return new ll({check:"overwrite",tx:e})}function qu(e){return Kt(t=>t.normalize(e))}function Vu(){return Kt(e=>e.trim())}function Ju(){return Kt(e=>e.toLowerCase())}function Wu(){return Kt(e=>e.toUpperCase())}function Hu(){return Kt(e=>tc(e))}function Cf(e,t,n){return new e({type:"array",element:t,...q(n)})}function x3(e,t,n){return new e({type:"union",options:t,...q(n)})}function B3(e,t,n){return new e({type:"union",options:t,inclusive:!1,...q(n)})}function I3(e,t,n,u){return new e({type:"union",options:n,discriminator:t,...q(u)})}function F3(e,t,n){return new e({type:"intersection",left:t,right:n})}function T3(e,t,n,u){const r=n instanceof le,i=r?u:n,a=r?n:null;return new e({type:"tuple",items:t,rest:a,...q(i)})}function j3(e,t,n,u){return new e({type:"record",keyType:t,valueType:n,...q(u)})}function P3(e,t,n,u){return new e({type:"map",keyType:t,valueType:n,...q(u)})}function z3(e,t,n){return new e({type:"set",valueType:t,...q(n)})}function O3(e,t,n){const u=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new e({type:"enum",entries:u,...q(n)})}function N3(e,t,n){return new e({type:"enum",entries:t,...q(n)})}function R3(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...q(n)})}function kf(e,t){return new e({type:"file",...q(t)})}function Z3(e,t){return new e({type:"transform",transform:t})}function U3(e,t){return new e({type:"optional",innerType:t})}function M3(e,t){return new e({type:"nullable",innerType:t})}function L3(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():nc(n)}})}function q3(e,t,n){return new e({type:"nonoptional",innerType:t,...q(n)})}function V3(e,t){return new e({type:"success",innerType:t})}function J3(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:()=>n})}function W3(e,t,n){return new e({type:"pipe",in:t,out:n})}function H3(e,t){return new e({type:"readonly",innerType:t})}function G3(e,t,n){return new e({type:"template_literal",parts:t,...q(n)})}function K3(e,t){return new e({type:"lazy",getter:t})}function X3(e,t){return new e({type:"promise",innerType:t})}function Sf(e,t,n){const u=q(n);return u.abort??(u.abort=!0),new e({type:"custom",check:"custom",fn:t,...u})}function Af(e,t,n){return new e({type:"custom",check:"custom",fn:t,...q(n)})}function xf(e){const t=Bf(n=>(n.addIssue=u=>{if(typeof u=="string")n.issues.push(wu(u,n.value,t._zod.def));else{const r=u;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=n.value),r.inst??(r.inst=t),r.continue??(r.continue=!t._zod.def.abort),n.issues.push(wu(r))}},e(n.value,n)));return t}function Bf(e,t){const n=new ze({check:"custom",...q(t)});return n._zod.check=e,n}function If(e){const t=new ze({check:"describe"});return t._zod.onattach=[n=>{const u=Et.get(n)??{};Et.add(n,{...u,description:e})}],t._zod.check=()=>{},t}function Ff(e){const t=new ze({check:"meta"});return t._zod.onattach=[n=>{const u=Et.get(n)??{};Et.add(n,{...u,...e})}],t._zod.check=()=>{},t}function Tf(e,t){const n=q(t);let u=n.truthy??["true","1","yes","on","y","enabled"],r=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(u=u.map(p=>typeof p=="string"?p.toLowerCase():p),r=r.map(p=>typeof p=="string"?p.toLowerCase():p));const i=new Set(u),a=new Set(r),o=e.Codec??Xa,s=e.Boolean??Va,c=e.String??cn,l=new c({type:"string",error:n.error}),d=new s({type:"boolean",error:n.error}),m=new o({type:"pipe",in:l,out:d,transform:((p,E)=>{let b=p;return n.case!=="sensitive"&&(b=b.toLowerCase()),i.has(b)?!0:a.has(b)?!1:(E.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...a],input:E.value,inst:m,continue:!1}),{})}),reverseTransform:((p,E)=>p===!0?u[0]||"true":r[0]||"false"),error:n.error});return m}function mn(e,t,n,u={}){const r=q(u),i={...q(u),check:"string_format",type:"string",format:t,fn:typeof n=="function"?n:o=>n.test(o),...r};return n instanceof RegExp&&(i.pattern=n),new e(i)}function Nr(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Et,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function Ae(e,t,n={path:[],schemaPath:[]}){var u;const r=e._zod.def,i=t.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.schema;const a={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,a);const o=e._zod.toJSONSchema?.();if(o)a.schema=o;else{const l={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,l);else{const m=a.schema,p=t.processors[r.type];if(!p)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);p(e,t,m,l)}const d=e._zod.parent;d&&(a.ref||(a.ref=d),Ae(d,t,l),t.seen.get(d).isParent=!0)}const s=t.metadataRegistry.get(e);return s&&Object.assign(a.schema,s),t.io==="input"&&tt(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&a.schema._prefault&&((u=a.schema).default??(u.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function Rr(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const u=new Map;for(const a of e.seen.entries()){const o=e.metadataRegistry.get(a[0])?.id;if(o){const s=u.get(o);if(s&&s!==a[0])throw new Error(`Duplicate schema id "${o}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);u.set(o,a[0])}}const r=a=>{const o=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const d=e.external.registry.get(a[0])?.id,m=e.external.uri??(E=>E);if(d)return{ref:m(d)};const p=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=p,{defId:p,ref:`${m("__shared")}#/${o}/${p}`}}if(a[1]===n)return{ref:"#"};const c=`#/${o}/`,l=a[1].schema.id??`__schema${e.counter++}`;return{defId:l,ref:c+l}},i=a=>{if(a[1].schema.$ref)return;const o=a[1],{ref:s,defId:c}=r(a);o.def={...o.schema},c&&(o.defId=c);const l=o.schema;for(const d in l)delete l[d];l.$ref=s};if(e.cycles==="throw")for(const a of e.seen.entries()){const o=a[1];if(o.cycle)throw new Error(`Cycle detected: #/${o.cycle?.join("/")}/<root>
|
|
47
|
+
|
|
48
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const a of e.seen.entries()){const o=a[1];if(t===a[0]){i(a);continue}if(e.external){const c=e.external.registry.get(a[0])?.id;if(t!==a[0]&&c){i(a);continue}}if(e.metadataRegistry.get(a[0])?.id){i(a);continue}if(o.cycle){i(a);continue}if(o.count>1&&e.reused==="ref"){i(a);continue}}}function Zr(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const u=a=>{const o=e.seen.get(a);if(o.ref===null)return;const s=o.def??o.schema,c={...s},l=o.ref;if(o.ref=null,l){u(l);const m=e.seen.get(l),p=m.schema;if(p.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(s.allOf=s.allOf??[],s.allOf.push(p)):Object.assign(s,p),Object.assign(s,c),a._zod.parent===l)for(const b in s)b==="$ref"||b==="allOf"||b in c||delete s[b];if(p.$ref)for(const b in s)b==="$ref"||b==="allOf"||b in m.def&&JSON.stringify(s[b])===JSON.stringify(m.def[b])&&delete s[b]}const d=a._zod.parent;if(d&&d!==l){u(d);const m=e.seen.get(d);if(m?.schema.$ref&&(s.$ref=m.schema.$ref,m.def))for(const p in s)p==="$ref"||p==="allOf"||p in m.def&&JSON.stringify(s[p])===JSON.stringify(m.def[p])&&delete s[p]}e.override({zodSchema:a,jsonSchema:s,path:o.path??[]})};for(const a of[...e.seen.entries()].reverse())u(a[0]);const r={};if(e.target==="draft-2020-12"?r.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?r.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?r.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const a=e.external.registry.get(t)?.id;if(!a)throw new Error("Schema is missing an `id` property");r.$id=e.external.uri(a)}Object.assign(r,n.def??n.schema);const i=e.external?.defs??{};for(const a of e.seen.entries()){const o=a[1];o.def&&o.defId&&(i[o.defId]=o.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?r.$defs=i:r.definitions=i);try{const a=JSON.parse(JSON.stringify(r));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:pn(t,"input",e.processors),output:pn(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function tt(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const u=e._zod.def;if(u.type==="transform")return!0;if(u.type==="array")return tt(u.element,n);if(u.type==="set")return tt(u.valueType,n);if(u.type==="lazy")return tt(u.getter(),n);if(u.type==="promise"||u.type==="optional"||u.type==="nonoptional"||u.type==="nullable"||u.type==="readonly"||u.type==="default"||u.type==="prefault")return tt(u.innerType,n);if(u.type==="intersection")return tt(u.left,n)||tt(u.right,n);if(u.type==="record"||u.type==="map")return tt(u.keyType,n)||tt(u.valueType,n);if(u.type==="pipe")return tt(u.in,n)||tt(u.out,n);if(u.type==="object"){for(const r in u.shape)if(tt(u.shape[r],n))return!0;return!1}if(u.type==="union"){for(const r of u.options)if(tt(r,n))return!0;return!1}if(u.type==="tuple"){for(const r of u.items)if(tt(r,n))return!0;return!!(u.rest&&tt(u.rest,n))}return!1}var jf=(e,t={})=>n=>{const u=Nr({...n,processors:t});return Ae(e,u),Rr(u,e),Zr(u,e)},pn=(e,t,n={})=>u=>{const{libraryOptions:r,target:i}=u??{},a=Nr({...r??{},target:i,io:t,processors:n});return Ae(e,a),Rr(a,e),Zr(a,e)},Y3={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Pf=(e,t,n,u)=>{const r=n;r.type="string";const{minimum:i,maximum:a,format:o,patterns:s,contentEncoding:c}=e._zod.bag;if(typeof i=="number"&&(r.minLength=i),typeof a=="number"&&(r.maxLength=a),o&&(r.format=Y3[o]??o,r.format===""&&delete r.format,o==="time"&&delete r.format),c&&(r.contentEncoding=c),s&&s.size>0){const l=[...s];l.length===1?r.pattern=l[0].source:l.length>1&&(r.allOf=[...l.map(d=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},zf=(e,t,n,u)=>{const r=n,{minimum:i,maximum:a,format:o,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:l}=e._zod.bag;typeof o=="string"&&o.includes("int")?r.type="integer":r.type="number",typeof l=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.minimum=l,r.exclusiveMinimum=!0):r.exclusiveMinimum=l),typeof i=="number"&&(r.minimum=i,typeof l=="number"&&t.target!=="draft-04"&&(l>=i?delete r.minimum:delete r.exclusiveMinimum)),typeof c=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.maximum=c,r.exclusiveMaximum=!0):r.exclusiveMaximum=c),typeof a=="number"&&(r.maximum=a,typeof c=="number"&&t.target!=="draft-04"&&(c<=a?delete r.maximum:delete r.exclusiveMaximum)),typeof s=="number"&&(r.multipleOf=s)},Of=(e,t,n,u)=>{n.type="boolean"},Nf=(e,t,n,u)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},Rf=(e,t,n,u)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},Zf=(e,t,n,u)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},Uf=(e,t,n,u)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Mf=(e,t,n,u)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},Lf=(e,t,n,u)=>{n.not={}},qf=(e,t,n,u)=>{},Vf=(e,t,n,u)=>{},Jf=(e,t,n,u)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},Wf=(e,t,n,u)=>{const r=e._zod.def,i=Ca(r.entries);i.every(a=>typeof a=="number")&&(n.type="number"),i.every(a=>typeof a=="string")&&(n.type="string"),n.enum=i},Hf=(e,t,n,u)=>{const r=e._zod.def,i=[];for(const a of r.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(a))}else i.push(a);if(i.length!==0)if(i.length===1){const a=i[0];n.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[a]:n.const=a}else i.every(a=>typeof a=="number")&&(n.type="number"),i.every(a=>typeof a=="string")&&(n.type="string"),i.every(a=>typeof a=="boolean")&&(n.type="boolean"),i.every(a=>a===null)&&(n.type="null"),n.enum=i},Gf=(e,t,n,u)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},Kf=(e,t,n,u)=>{const r=n,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");r.type="string",r.pattern=i.source},Xf=(e,t,n,u)=>{const r=n,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:o,mime:s}=e._zod.bag;a!==void 0&&(i.minLength=a),o!==void 0&&(i.maxLength=o),s?s.length===1?(i.contentMediaType=s[0],Object.assign(r,i)):(Object.assign(r,i),r.anyOf=s.map(c=>({contentMediaType:c}))):Object.assign(r,i)},Yf=(e,t,n,u)=>{n.type="boolean"},Qf=(e,t,n,u)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},eh=(e,t,n,u)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},th=(e,t,n,u)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},rh=(e,t,n,u)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},nh=(e,t,n,u)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},uh=(e,t,n,u)=>{const r=n,i=e._zod.def,{minimum:a,maximum:o}=e._zod.bag;typeof a=="number"&&(r.minItems=a),typeof o=="number"&&(r.maxItems=o),r.type="array",r.items=Ae(i.element,t,{...u,path:[...u.path,"items"]})},ih=(e,t,n,u)=>{const r=n,i=e._zod.def;r.type="object",r.properties={};const a=i.shape;for(const c in a)r.properties[c]=Ae(a[c],t,{...u,path:[...u.path,"properties",c]});const o=new Set(Object.keys(a)),s=new Set([...o].filter(c=>{const l=i.shape[c]._zod;return t.io==="input"?l.optin===void 0:l.optout===void 0}));s.size>0&&(r.required=Array.from(s)),i.catchall?._zod.def.type==="never"?r.additionalProperties=!1:i.catchall?i.catchall&&(r.additionalProperties=Ae(i.catchall,t,{...u,path:[...u.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},ko=(e,t,n,u)=>{const r=e._zod.def,i=r.inclusive===!1,a=r.options.map((o,s)=>Ae(o,t,{...u,path:[...u.path,i?"oneOf":"anyOf",s]}));i?n.oneOf=a:n.anyOf=a},ah=(e,t,n,u)=>{const r=e._zod.def,i=Ae(r.left,t,{...u,path:[...u.path,"allOf",0]}),a=Ae(r.right,t,{...u,path:[...u.path,"allOf",1]}),o=c=>"allOf"in c&&Object.keys(c).length===1,s=[...o(i)?i.allOf:[i],...o(a)?a.allOf:[a]];n.allOf=s},oh=(e,t,n,u)=>{const r=n,i=e._zod.def;r.type="array";const a=t.target==="draft-2020-12"?"prefixItems":"items",o=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",s=i.items.map((m,p)=>Ae(m,t,{...u,path:[...u.path,a,p]})),c=i.rest?Ae(i.rest,t,{...u,path:[...u.path,o,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(r.prefixItems=s,c&&(r.items=c)):t.target==="openapi-3.0"?(r.items={anyOf:s},c&&r.items.anyOf.push(c),r.minItems=s.length,c||(r.maxItems=s.length)):(r.items=s,c&&(r.additionalItems=c));const{minimum:l,maximum:d}=e._zod.bag;typeof l=="number"&&(r.minItems=l),typeof d=="number"&&(r.maxItems=d)},sh=(e,t,n,u)=>{const r=n,i=e._zod.def;r.type="object";const a=i.keyType,s=a._zod.bag?.patterns;if(i.mode==="loose"&&s&&s.size>0){const l=Ae(i.valueType,t,{...u,path:[...u.path,"patternProperties","*"]});r.patternProperties={};for(const d of s)r.patternProperties[d.source]=l}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(r.propertyNames=Ae(i.keyType,t,{...u,path:[...u.path,"propertyNames"]})),r.additionalProperties=Ae(i.valueType,t,{...u,path:[...u.path,"additionalProperties"]});const c=a._zod.values;if(c){const l=[...c].filter(d=>typeof d=="string"||typeof d=="number");l.length>0&&(r.required=l)}},ch=(e,t,n,u)=>{const r=e._zod.def,i=Ae(r.innerType,t,u),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=r.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},lh=(e,t,n,u)=>{const r=e._zod.def;Ae(r.innerType,t,u);const i=t.seen.get(e);i.ref=r.innerType},dh=(e,t,n,u)=>{const r=e._zod.def;Ae(r.innerType,t,u);const i=t.seen.get(e);i.ref=r.innerType,n.default=JSON.parse(JSON.stringify(r.defaultValue))},fh=(e,t,n,u)=>{const r=e._zod.def;Ae(r.innerType,t,u);const i=t.seen.get(e);i.ref=r.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(r.defaultValue)))},hh=(e,t,n,u)=>{const r=e._zod.def;Ae(r.innerType,t,u);const i=t.seen.get(e);i.ref=r.innerType;let a;try{a=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=a},mh=(e,t,n,u)=>{const r=e._zod.def,i=t.io==="input"?r.in._zod.def.type==="transform"?r.out:r.in:r.out;Ae(i,t,u);const a=t.seen.get(e);a.ref=i},ph=(e,t,n,u)=>{const r=e._zod.def;Ae(r.innerType,t,u);const i=t.seen.get(e);i.ref=r.innerType,n.readOnly=!0},vh=(e,t,n,u)=>{const r=e._zod.def;Ae(r.innerType,t,u);const i=t.seen.get(e);i.ref=r.innerType},So=(e,t,n,u)=>{const r=e._zod.def;Ae(r.innerType,t,u);const i=t.seen.get(e);i.ref=r.innerType},gh=(e,t,n,u)=>{const r=e._zod.innerType;Ae(r,t,u);const i=t.seen.get(e);i.ref=r},Ao={string:Pf,number:zf,boolean:Of,bigint:Nf,symbol:Rf,null:Zf,undefined:Uf,void:Mf,never:Lf,any:qf,unknown:Vf,date:Jf,enum:Wf,literal:Hf,nan:Gf,template_literal:Kf,file:Xf,success:Yf,custom:Qf,function:eh,transform:th,map:rh,set:nh,array:uh,object:ih,union:ko,intersection:ah,tuple:oh,record:sh,nullable:ch,nonoptional:lh,default:dh,prefault:fh,catch:hh,pipe:mh,readonly:ph,promise:vh,optional:So,lazy:gh};function xo(e,t){if("_idmap"in e){const u=e,r=Nr({...t,processors:Ao}),i={};for(const s of u._idmap.entries()){const[c,l]=s;Ae(l,r)}const a={},o={registry:u,uri:t?.uri,defs:i};r.external=o;for(const s of u._idmap.entries()){const[c,l]=s;Rr(r,l),a[c]=Zr(r,l)}if(Object.keys(i).length>0){const s=r.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[s]:i}}return{schemas:a}}const n=Nr({...t,processors:Ao});return Ae(e,n),Rr(n,e),Zr(n,e)}var Q3=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let t=e?.target??"draft-2020-12";t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),this.ctx=Nr({processors:Ao,target:t,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,t={path:[],schemaPath:[]}){return Ae(e,this.ctx,t)}emit(e,t){t&&(t.cycles&&(this.ctx.cycles=t.cycles),t.reused&&(this.ctx.reused=t.reused),t.external&&(this.ctx.external=t.external)),Rr(this.ctx,e);const n=Zr(this.ctx,e),{"~standard":u,...r}=n;return r}},e6={},t6=F("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");le.init(e,t),e.def=t,e.type=t.type,e.parse=(n,u)=>Cu(e,n,u,{callee:e.parse}),e.safeParse=(n,u)=>Su(e,n,u),e.parseAsync=async(n,u)=>ku(e,n,u,{callee:e.parseAsync}),e.safeParseAsync=async(n,u)=>Au(e,n,u),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(u=>typeof u=="function"?{_zod:{check:u,def:{check:"custom"},onattach:[]}}:u)]},{parent:!0}),e.with=e.check,e.clone=(n,u)=>ht(e,n,u),e.brand=()=>e,e.register=((n,u)=>(n.add(e,u),e)),e.apply=n=>n(e)}),r6=F("ZodMiniObject",(e,t)=>{Wa.init(e,t),t6.init(e,t),me(e,"shape",()=>t.shape)});function _h(e,t){const n={type:"object",shape:e??{},...q(t)};return new r6(n)}function Nt(e){return!!e._zod}function Ur(e){const t=Object.values(e);if(t.length===0)return _h({});const n=t.every(Nt),u=t.every(r=>!Nt(r));if(n)return _h(e);if(u)return zg(e);throw new Error("Mixed Zod versions detected in object shape.")}function vn(e,t){return Nt(e)?Su(e,t):e.safeParse(t)}async function Bo(e,t){return Nt(e)?await Au(e,t):await e.safeParseAsync(t)}function gn(e){if(!e)return;let t;if(Nt(e)?t=e._zod?.def?.shape:t=e.shape,!!t){if(typeof t=="function")try{return t()}catch{return}return t}}function _n(e){if(e){if(typeof e=="object"){const t=e,n=e;if(!t._def&&!n._zod){const u=Object.values(e);if(u.length>0&&u.every(r=>typeof r=="object"&&r!==null&&(r._def!==void 0||r._zod!==void 0||typeof r.parse=="function")))return Ur(e)}}if(Nt(e)){const n=e._zod?.def;if(n&&(n.type==="object"||n.shape!==void 0))return e}else if(e.shape!==void 0)return e}}function Io(e){if(e&&typeof e=="object"){if("message"in e&&typeof e.message=="string")return e.message;if("issues"in e&&Array.isArray(e.issues)&&e.issues.length>0){const t=e.issues[0];if(t&&typeof t=="object"&&"message"in t)return String(t.message)}try{return JSON.stringify(e)}catch{return String(e)}}return String(e)}function n6(e){return e.description}function u6(e){if(Nt(e))return e._zod?.def?.type==="optional";const t=e;return typeof e.isOptional=="function"?e.isOptional():t._def?.typeName==="ZodOptional"}function yh(e){if(Nt(e)){const i=e._zod?.def;if(i){if(i.value!==void 0)return i.value;if(Array.isArray(i.values)&&i.values.length>0)return i.values[0]}}const n=e._def;if(n){if(n.value!==void 0)return n.value;if(Array.isArray(n.values)&&n.values.length>0)return n.values[0]}const u=e.value;if(u!==void 0)return u}var Ce={};qt(Ce,{$brand:()=>Y0,$input:()=>Vd,$output:()=>qd,NEVER:()=>X0,TimePrecision:()=>Kd,ZodAny:()=>Zo,ZodArray:()=>qo,ZodBase64:()=>ci,ZodBase64URL:()=>li,ZodBigInt:()=>wn,ZodBigIntFormat:()=>mi,ZodBoolean:()=>$n,ZodCIDRv4:()=>oi,ZodCIDRv6:()=>si,ZodCUID:()=>ei,ZodCUID2:()=>ti,ZodCatch:()=>ls,ZodCodec:()=>Di,ZodCustom:()=>Fn,ZodCustomStringFormat:()=>Mr,ZodDate:()=>gi,ZodDefault:()=>us,ZodDiscriminatedUnion:()=>Jo,ZodE164:()=>di,ZodEmail:()=>Xu,ZodEmoji:()=>Yu,ZodEnum:()=>Lr,ZodError:()=>i6,ZodExactOptional:()=>ts,ZodFile:()=>Qo,ZodFirstPartyTypeKind:()=>$s,ZodFunction:()=>ys,ZodGUID:()=>En,ZodIPv4:()=>ii,ZodIPv6:()=>ai,ZodISODate:()=>To,ZodISODateTime:()=>Fo,ZodISODuration:()=>Po,ZodISOTime:()=>jo,ZodIntersection:()=>Wo,ZodIssueCode:()=>a6,ZodJWT:()=>fi,ZodKSUID:()=>ui,ZodLazy:()=>vs,ZodLiteral:()=>Yo,ZodMAC:()=>zo,ZodMap:()=>Ko,ZodNaN:()=>fs,ZodNanoID:()=>Qu,ZodNever:()=>Mo,ZodNonOptional:()=>Ei,ZodNull:()=>Ro,ZodNullable:()=>ns,ZodNumber:()=>Dn,ZodNumberFormat:()=>Dr,ZodObject:()=>Cn,ZodOptional:()=>xn,ZodPipe:()=>bi,ZodPrefault:()=>as,ZodPromise:()=>_s,ZodReadonly:()=>hs,ZodRealError:()=>pt,ZodRecord:()=>An,ZodSet:()=>Xo,ZodString:()=>yn,ZodStringFormat:()=>Ie,ZodSuccess:()=>cs,ZodSymbol:()=>Oo,ZodTemplateLiteral:()=>ps,ZodTransform:()=>es,ZodTuple:()=>Ho,ZodType:()=>he,ZodULID:()=>ri,ZodURL:()=>bn,ZodUUID:()=>Rt,ZodUndefined:()=>No,ZodUnion:()=>kn,ZodUnknown:()=>Uo,ZodVoid:()=>Lo,ZodXID:()=>ni,ZodXor:()=>Vo,_ZodString:()=>Ku,_default:()=>is,_function:()=>$i,any:()=>Dm,array:()=>ge,base64:()=>im,base64url:()=>am,bigint:()=>gm,boolean:()=>Ze,catch:()=>ds,check:()=>Zm,cidrv4:()=>nm,cidrv6:()=>um,clone:()=>ht,codec:()=>Om,coerce:()=>Wm,config:()=>Ge,core:()=>K0,cuid:()=>Gh,cuid2:()=>Kh,custom:()=>Es,date:()=>wm,decode:()=>Fh,decodeAsync:()=>jh,describe:()=>Um,discriminatedUnion:()=>_i,e164:()=>om,email:()=>Rh,emoji:()=>Wh,encode:()=>Ih,encodeAsync:()=>Th,endsWith:()=>Mu,enum:()=>Xe,exactOptional:()=>rs,file:()=>Tm,flattenError:()=>xa,float32:()=>hm,float64:()=>mm,formatError:()=>Ba,fromJSONSchema:()=>f6,function:()=>$i,getErrorMap:()=>s6,globalRegistry:()=>Et,gt:()=>ar,gte:()=>ot,guid:()=>Zh,hash:()=>fm,hex:()=>dm,hostname:()=>lm,httpUrl:()=>Jh,includes:()=>Zu,instanceof:()=>Lm,int:()=>hi,int32:()=>pm,int64:()=>_m,intersection:()=>Sn,ipv4:()=>em,ipv6:()=>rm,iso:()=>Gu,json:()=>Vm,jwt:()=>sm,keyof:()=>Cm,ksuid:()=>Qh,lazy:()=>gs,length:()=>hn,literal:()=>ee,locales:()=>Ya,looseObject:()=>Ke,looseRecord:()=>xm,lowercase:()=>Nu,lt:()=>ir,lte:()=>bt,mac:()=>tm,map:()=>Bm,maxLength:()=>fn,maxSize:()=>Or,meta:()=>Mm,mime:()=>Lu,minLength:()=>br,minSize:()=>or,multipleOf:()=>zr,nan:()=>zm,nanoid:()=>Hh,nativeEnum:()=>Fm,negative:()=>Do,never:()=>vi,nonnegative:()=>wo,nonoptional:()=>ss,nonpositive:()=>$o,normalize:()=>qu,null:()=>pi,nullable:()=>Bn,nullish:()=>jm,number:()=>we,object:()=>K,optional:()=>Pe,overwrite:()=>Kt,parse:()=>Sh,parseAsync:()=>Ah,partialRecord:()=>Am,pipe:()=>In,positive:()=>bo,prefault:()=>os,preprocess:()=>wi,prettifyError:()=>hc,promise:()=>Rm,property:()=>Co,readonly:()=>ms,record:()=>xe,refine:()=>bs,regex:()=>Ou,regexes:()=>Er,registry:()=>Qa,safeDecode:()=>zh,safeDecodeAsync:()=>Nh,safeEncode:()=>Ph,safeEncodeAsync:()=>Oh,safeParse:()=>xh,safeParseAsync:()=>Bh,set:()=>Im,setErrorMap:()=>o6,size:()=>dn,slugify:()=>Hu,startsWith:()=>Uu,strictObject:()=>km,string:()=>z,stringFormat:()=>cm,stringbool:()=>qm,success:()=>Pm,superRefine:()=>Ds,symbol:()=>Em,templateLiteral:()=>Nm,toJSONSchema:()=>xo,toLowerCase:()=>Ju,toUpperCase:()=>Wu,transform:()=>yi,treeifyError:()=>dc,trim:()=>Vu,tuple:()=>Go,uint32:()=>vm,uint64:()=>ym,ulid:()=>Xh,undefined:()=>bm,union:()=>Te,unknown:()=>Fe,uppercase:()=>Ru,url:()=>Vh,util:()=>ye,uuid:()=>Uh,uuidv4:()=>Mh,uuidv6:()=>Lh,uuidv7:()=>qh,void:()=>$m,xid:()=>Yh,xor:()=>Sm});var Eh={};qt(Eh,{ZodAny:()=>Zo,ZodArray:()=>qo,ZodBase64:()=>ci,ZodBase64URL:()=>li,ZodBigInt:()=>wn,ZodBigIntFormat:()=>mi,ZodBoolean:()=>$n,ZodCIDRv4:()=>oi,ZodCIDRv6:()=>si,ZodCUID:()=>ei,ZodCUID2:()=>ti,ZodCatch:()=>ls,ZodCodec:()=>Di,ZodCustom:()=>Fn,ZodCustomStringFormat:()=>Mr,ZodDate:()=>gi,ZodDefault:()=>us,ZodDiscriminatedUnion:()=>Jo,ZodE164:()=>di,ZodEmail:()=>Xu,ZodEmoji:()=>Yu,ZodEnum:()=>Lr,ZodExactOptional:()=>ts,ZodFile:()=>Qo,ZodFunction:()=>ys,ZodGUID:()=>En,ZodIPv4:()=>ii,ZodIPv6:()=>ai,ZodIntersection:()=>Wo,ZodJWT:()=>fi,ZodKSUID:()=>ui,ZodLazy:()=>vs,ZodLiteral:()=>Yo,ZodMAC:()=>zo,ZodMap:()=>Ko,ZodNaN:()=>fs,ZodNanoID:()=>Qu,ZodNever:()=>Mo,ZodNonOptional:()=>Ei,ZodNull:()=>Ro,ZodNullable:()=>ns,ZodNumber:()=>Dn,ZodNumberFormat:()=>Dr,ZodObject:()=>Cn,ZodOptional:()=>xn,ZodPipe:()=>bi,ZodPrefault:()=>as,ZodPromise:()=>_s,ZodReadonly:()=>hs,ZodRecord:()=>An,ZodSet:()=>Xo,ZodString:()=>yn,ZodStringFormat:()=>Ie,ZodSuccess:()=>cs,ZodSymbol:()=>Oo,ZodTemplateLiteral:()=>ps,ZodTransform:()=>es,ZodTuple:()=>Ho,ZodType:()=>he,ZodULID:()=>ri,ZodURL:()=>bn,ZodUUID:()=>Rt,ZodUndefined:()=>No,ZodUnion:()=>kn,ZodUnknown:()=>Uo,ZodVoid:()=>Lo,ZodXID:()=>ni,ZodXor:()=>Vo,_ZodString:()=>Ku,_default:()=>is,_function:()=>$i,any:()=>Dm,array:()=>ge,base64:()=>im,base64url:()=>am,bigint:()=>gm,boolean:()=>Ze,catch:()=>ds,check:()=>Zm,cidrv4:()=>nm,cidrv6:()=>um,codec:()=>Om,cuid:()=>Gh,cuid2:()=>Kh,custom:()=>Es,date:()=>wm,describe:()=>Um,discriminatedUnion:()=>_i,e164:()=>om,email:()=>Rh,emoji:()=>Wh,enum:()=>Xe,exactOptional:()=>rs,file:()=>Tm,float32:()=>hm,float64:()=>mm,function:()=>$i,guid:()=>Zh,hash:()=>fm,hex:()=>dm,hostname:()=>lm,httpUrl:()=>Jh,instanceof:()=>Lm,int:()=>hi,int32:()=>pm,int64:()=>_m,intersection:()=>Sn,ipv4:()=>em,ipv6:()=>rm,json:()=>Vm,jwt:()=>sm,keyof:()=>Cm,ksuid:()=>Qh,lazy:()=>gs,literal:()=>ee,looseObject:()=>Ke,looseRecord:()=>xm,mac:()=>tm,map:()=>Bm,meta:()=>Mm,nan:()=>zm,nanoid:()=>Hh,nativeEnum:()=>Fm,never:()=>vi,nonoptional:()=>ss,null:()=>pi,nullable:()=>Bn,nullish:()=>jm,number:()=>we,object:()=>K,optional:()=>Pe,partialRecord:()=>Am,pipe:()=>In,prefault:()=>os,preprocess:()=>wi,promise:()=>Rm,readonly:()=>ms,record:()=>xe,refine:()=>bs,set:()=>Im,strictObject:()=>km,string:()=>z,stringFormat:()=>cm,stringbool:()=>qm,success:()=>Pm,superRefine:()=>Ds,symbol:()=>Em,templateLiteral:()=>Nm,transform:()=>yi,tuple:()=>Go,uint32:()=>vm,uint64:()=>ym,ulid:()=>Xh,undefined:()=>bm,union:()=>Te,unknown:()=>Fe,url:()=>Vh,uuid:()=>Uh,uuidv4:()=>Mh,uuidv6:()=>Lh,uuidv7:()=>qh,void:()=>$m,xid:()=>Yh,xor:()=>Sm});var bh={};qt(bh,{endsWith:()=>Mu,gt:()=>ar,gte:()=>ot,includes:()=>Zu,length:()=>hn,lowercase:()=>Nu,lt:()=>ir,lte:()=>bt,maxLength:()=>fn,maxSize:()=>Or,mime:()=>Lu,minLength:()=>br,minSize:()=>or,multipleOf:()=>zr,negative:()=>Do,nonnegative:()=>wo,nonpositive:()=>$o,normalize:()=>qu,overwrite:()=>Kt,positive:()=>bo,property:()=>Co,regex:()=>Ou,size:()=>dn,slugify:()=>Hu,startsWith:()=>Uu,toLowerCase:()=>Ju,toUpperCase:()=>Wu,trim:()=>Vu,uppercase:()=>Ru});var Gu={};qt(Gu,{ZodISODate:()=>To,ZodISODateTime:()=>Fo,ZodISODuration:()=>Po,ZodISOTime:()=>jo,date:()=>$h,datetime:()=>Dh,duration:()=>Ch,time:()=>wh});var Fo=F("ZodISODateTime",(e,t)=>{wl.init(e,t),Ie.init(e,t)});function Dh(e){return Xd(Fo,e)}var To=F("ZodISODate",(e,t)=>{Cl.init(e,t),Ie.init(e,t)});function $h(e){return Yd(To,e)}var jo=F("ZodISOTime",(e,t)=>{kl.init(e,t),Ie.init(e,t)});function wh(e){return Qd(jo,e)}var Po=F("ZodISODuration",(e,t)=>{Sl.init(e,t),Ie.init(e,t)});function Ch(e){return ef(Po,e)}var kh=(e,t)=>{Aa.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Ba(e,n)},flatten:{value:n=>xa(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,yu,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,yu,2)}},isEmpty:{get(){return e.issues.length===0}}})},i6=F("ZodError",kh),pt=F("ZodError",kh,{Parent:Error}),Sh=tn(pt),Ah=rn(pt),xh=nn(pt),Bh=un(pt),Ih=Ia(pt),Fh=Fa(pt),Th=Ta(pt),jh=ja(pt),Ph=Pa(pt),zh=za(pt),Oh=Oa(pt),Nh=Na(pt),he=F("ZodType",(e,t)=>(le.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:pn(e,"input"),output:pn(e,"output")}}),e.toJSONSchema=jf(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(ye.mergeDefs(t,{checks:[...t.checks??[],...n.map(u=>typeof u=="function"?{_zod:{check:u,def:{check:"custom"},onattach:[]}}:u)]}),{parent:!0}),e.with=e.check,e.clone=(n,u)=>ht(e,n,u),e.brand=()=>e,e.register=((n,u)=>(n.add(e,u),e)),e.parse=(n,u)=>Sh(e,n,u,{callee:e.parse}),e.safeParse=(n,u)=>xh(e,n,u),e.parseAsync=async(n,u)=>Ah(e,n,u,{callee:e.parseAsync}),e.safeParseAsync=async(n,u)=>Bh(e,n,u),e.spa=e.safeParseAsync,e.encode=(n,u)=>Ih(e,n,u),e.decode=(n,u)=>Fh(e,n,u),e.encodeAsync=async(n,u)=>Th(e,n,u),e.decodeAsync=async(n,u)=>jh(e,n,u),e.safeEncode=(n,u)=>Ph(e,n,u),e.safeDecode=(n,u)=>zh(e,n,u),e.safeEncodeAsync=async(n,u)=>Oh(e,n,u),e.safeDecodeAsync=async(n,u)=>Nh(e,n,u),e.refine=(n,u)=>e.check(bs(n,u)),e.superRefine=n=>e.check(Ds(n)),e.overwrite=n=>e.check(Kt(n)),e.optional=()=>Pe(e),e.exactOptional=()=>rs(e),e.nullable=()=>Bn(e),e.nullish=()=>Pe(Bn(e)),e.nonoptional=n=>ss(e,n),e.array=()=>ge(e),e.or=n=>Te([e,n]),e.and=n=>Sn(e,n),e.transform=n=>In(e,yi(n)),e.default=n=>is(e,n),e.prefault=n=>os(e,n),e.catch=n=>ds(e,n),e.pipe=n=>In(e,n),e.readonly=()=>ms(e),e.describe=n=>{const u=e.clone();return Et.add(u,{description:n}),u},Object.defineProperty(e,"description",{get(){return Et.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Et.get(e);const u=e.clone();return Et.add(u,n[0]),u},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),Ku=F("_ZodString",(e,t)=>{cn.init(e,t),he.init(e,t),e._zod.processJSONSchema=(u,r,i)=>Pf(e,u,r,i);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...u)=>e.check(Ou(...u)),e.includes=(...u)=>e.check(Zu(...u)),e.startsWith=(...u)=>e.check(Uu(...u)),e.endsWith=(...u)=>e.check(Mu(...u)),e.min=(...u)=>e.check(br(...u)),e.max=(...u)=>e.check(fn(...u)),e.length=(...u)=>e.check(hn(...u)),e.nonempty=(...u)=>e.check(br(1,...u)),e.lowercase=u=>e.check(Nu(u)),e.uppercase=u=>e.check(Ru(u)),e.trim=()=>e.check(Vu()),e.normalize=(...u)=>e.check(qu(...u)),e.toLowerCase=()=>e.check(Ju()),e.toUpperCase=()=>e.check(Wu()),e.slugify=()=>e.check(Hu())}),yn=F("ZodString",(e,t)=>{cn.init(e,t),Ku.init(e,t),e.email=n=>e.check(eo(Xu,n)),e.url=n=>e.check(zu(bn,n)),e.jwt=n=>e.check(Eo(fi,n)),e.emoji=n=>e.check(io(Yu,n)),e.guid=n=>e.check(Pu(En,n)),e.uuid=n=>e.check(to(Rt,n)),e.uuidv4=n=>e.check(ro(Rt,n)),e.uuidv6=n=>e.check(no(Rt,n)),e.uuidv7=n=>e.check(uo(Rt,n)),e.nanoid=n=>e.check(ao(Qu,n)),e.guid=n=>e.check(Pu(En,n)),e.cuid=n=>e.check(oo(ei,n)),e.cuid2=n=>e.check(so(ti,n)),e.ulid=n=>e.check(co(ri,n)),e.base64=n=>e.check(go(ci,n)),e.base64url=n=>e.check(_o(li,n)),e.xid=n=>e.check(lo(ni,n)),e.ksuid=n=>e.check(fo(ui,n)),e.ipv4=n=>e.check(ho(ii,n)),e.ipv6=n=>e.check(mo(ai,n)),e.cidrv4=n=>e.check(po(oi,n)),e.cidrv6=n=>e.check(vo(si,n)),e.e164=n=>e.check(yo(di,n)),e.datetime=n=>e.check(Dh(n)),e.date=n=>e.check($h(n)),e.time=n=>e.check(wh(n)),e.duration=n=>e.check(Ch(n))});function z(e){return Wd(yn,e)}var Ie=F("ZodStringFormat",(e,t)=>{Be.init(e,t),Ku.init(e,t)}),Xu=F("ZodEmail",(e,t)=>{pl.init(e,t),Ie.init(e,t)});function Rh(e){return eo(Xu,e)}var En=F("ZodGUID",(e,t)=>{hl.init(e,t),Ie.init(e,t)});function Zh(e){return Pu(En,e)}var Rt=F("ZodUUID",(e,t)=>{ml.init(e,t),Ie.init(e,t)});function Uh(e){return to(Rt,e)}function Mh(e){return ro(Rt,e)}function Lh(e){return no(Rt,e)}function qh(e){return uo(Rt,e)}var bn=F("ZodURL",(e,t)=>{vl.init(e,t),Ie.init(e,t)});function Vh(e){return zu(bn,e)}function Jh(e){return zu(bn,{protocol:/^https?$/,hostname:Er.domain,...ye.normalizeParams(e)})}var Yu=F("ZodEmoji",(e,t)=>{gl.init(e,t),Ie.init(e,t)});function Wh(e){return io(Yu,e)}var Qu=F("ZodNanoID",(e,t)=>{_l.init(e,t),Ie.init(e,t)});function Hh(e){return ao(Qu,e)}var ei=F("ZodCUID",(e,t)=>{yl.init(e,t),Ie.init(e,t)});function Gh(e){return oo(ei,e)}var ti=F("ZodCUID2",(e,t)=>{El.init(e,t),Ie.init(e,t)});function Kh(e){return so(ti,e)}var ri=F("ZodULID",(e,t)=>{bl.init(e,t),Ie.init(e,t)});function Xh(e){return co(ri,e)}var ni=F("ZodXID",(e,t)=>{Dl.init(e,t),Ie.init(e,t)});function Yh(e){return lo(ni,e)}var ui=F("ZodKSUID",(e,t)=>{$l.init(e,t),Ie.init(e,t)});function Qh(e){return fo(ui,e)}var ii=F("ZodIPv4",(e,t)=>{Al.init(e,t),Ie.init(e,t)});function em(e){return ho(ii,e)}var zo=F("ZodMAC",(e,t)=>{Bl.init(e,t),Ie.init(e,t)});function tm(e){return Gd(zo,e)}var ai=F("ZodIPv6",(e,t)=>{xl.init(e,t),Ie.init(e,t)});function rm(e){return mo(ai,e)}var oi=F("ZodCIDRv4",(e,t)=>{Il.init(e,t),Ie.init(e,t)});function nm(e){return po(oi,e)}var si=F("ZodCIDRv6",(e,t)=>{Fl.init(e,t),Ie.init(e,t)});function um(e){return vo(si,e)}var ci=F("ZodBase64",(e,t)=>{Tl.init(e,t),Ie.init(e,t)});function im(e){return go(ci,e)}var li=F("ZodBase64URL",(e,t)=>{Pl.init(e,t),Ie.init(e,t)});function am(e){return _o(li,e)}var di=F("ZodE164",(e,t)=>{zl.init(e,t),Ie.init(e,t)});function om(e){return yo(di,e)}var fi=F("ZodJWT",(e,t)=>{Nl.init(e,t),Ie.init(e,t)});function sm(e){return Eo(fi,e)}var Mr=F("ZodCustomStringFormat",(e,t)=>{Rl.init(e,t),Ie.init(e,t)});function cm(e,t,n={}){return mn(Mr,e,t,n)}function lm(e){return mn(Mr,"hostname",Er.hostname,e)}function dm(e){return mn(Mr,"hex",Er.hex,e)}function fm(e,t){const n=t?.enc??"hex",u=`${e}_${n}`,r=Er[u];if(!r)throw new Error(`Unrecognized hash format: ${u}`);return mn(Mr,u,r,t)}var Dn=F("ZodNumber",(e,t)=>{qa.init(e,t),he.init(e,t),e._zod.processJSONSchema=(u,r,i)=>zf(e,u,r,i),e.gt=(u,r)=>e.check(ar(u,r)),e.gte=(u,r)=>e.check(ot(u,r)),e.min=(u,r)=>e.check(ot(u,r)),e.lt=(u,r)=>e.check(ir(u,r)),e.lte=(u,r)=>e.check(bt(u,r)),e.max=(u,r)=>e.check(bt(u,r)),e.int=u=>e.check(hi(u)),e.safe=u=>e.check(hi(u)),e.positive=u=>e.check(ar(0,u)),e.nonnegative=u=>e.check(ot(0,u)),e.negative=u=>e.check(ir(0,u)),e.nonpositive=u=>e.check(bt(0,u)),e.multipleOf=(u,r)=>e.check(zr(u,r)),e.step=(u,r)=>e.check(zr(u,r)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function we(e){return tf(Dn,e)}var Dr=F("ZodNumberFormat",(e,t)=>{Zl.init(e,t),Dn.init(e,t)});function hi(e){return nf(Dr,e)}function hm(e){return uf(Dr,e)}function mm(e){return af(Dr,e)}function pm(e){return of(Dr,e)}function vm(e){return sf(Dr,e)}var $n=F("ZodBoolean",(e,t)=>{Va.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,u,r)=>Of(e,n,u,r)});function Ze(e){return cf($n,e)}var wn=F("ZodBigInt",(e,t)=>{Ja.init(e,t),he.init(e,t),e._zod.processJSONSchema=(u,r,i)=>Nf(e,u,r,i),e.gte=(u,r)=>e.check(ot(u,r)),e.min=(u,r)=>e.check(ot(u,r)),e.gt=(u,r)=>e.check(ar(u,r)),e.gte=(u,r)=>e.check(ot(u,r)),e.min=(u,r)=>e.check(ot(u,r)),e.lt=(u,r)=>e.check(ir(u,r)),e.lte=(u,r)=>e.check(bt(u,r)),e.max=(u,r)=>e.check(bt(u,r)),e.positive=u=>e.check(ar(BigInt(0),u)),e.negative=u=>e.check(ir(BigInt(0),u)),e.nonpositive=u=>e.check(bt(BigInt(0),u)),e.nonnegative=u=>e.check(ot(BigInt(0),u)),e.multipleOf=(u,r)=>e.check(zr(u,r));const n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function gm(e){return df(wn,e)}var mi=F("ZodBigIntFormat",(e,t)=>{Ul.init(e,t),wn.init(e,t)});function _m(e){return hf(mi,e)}function ym(e){return mf(mi,e)}var Oo=F("ZodSymbol",(e,t)=>{Ml.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,u,r)=>Rf(e,n,u,r)});function Em(e){return pf(Oo,e)}var No=F("ZodUndefined",(e,t)=>{Ll.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,u,r)=>Uf(e,n,u,r)});function bm(e){return vf(No,e)}var Ro=F("ZodNull",(e,t)=>{ql.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,u,r)=>Zf(e,n,u,r)});function pi(e){return gf(Ro,e)}var Zo=F("ZodAny",(e,t)=>{Vl.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,u,r)=>qf(e,n,u,r)});function Dm(){return _f(Zo)}var Uo=F("ZodUnknown",(e,t)=>{Jl.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,u,r)=>Vf(e,n,u,r)});function Fe(){return yf(Uo)}var Mo=F("ZodNever",(e,t)=>{Wl.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,u,r)=>Lf(e,n,u,r)});function vi(e){return Ef(Mo,e)}var Lo=F("ZodVoid",(e,t)=>{Hl.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,u,r)=>Mf(e,n,u,r)});function $m(e){return bf(Lo,e)}var gi=F("ZodDate",(e,t)=>{Gl.init(e,t),he.init(e,t),e._zod.processJSONSchema=(u,r,i)=>Jf(e,u,r,i),e.min=(u,r)=>e.check(ot(u,r)),e.max=(u,r)=>e.check(bt(u,r));const n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function wm(e){return Df(gi,e)}var qo=F("ZodArray",(e,t)=>{Xl.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,u,r)=>uh(e,n,u,r),e.element=t.element,e.min=(n,u)=>e.check(br(n,u)),e.nonempty=n=>e.check(br(1,n)),e.max=(n,u)=>e.check(fn(n,u)),e.length=(n,u)=>e.check(hn(n,u)),e.unwrap=()=>e.element});function ge(e,t){return Cf(qo,e,t)}function Cm(e){const t=e._zod.def.shape;return Xe(Object.keys(t))}var Cn=F("ZodObject",(e,t)=>{ed.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,u,r)=>ih(e,n,u,r),ye.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>Xe(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Fe()}),e.loose=()=>e.clone({...e._zod.def,catchall:Fe()}),e.strict=()=>e.clone({...e._zod.def,catchall:vi()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>ye.extend(e,n),e.safeExtend=n=>ye.safeExtend(e,n),e.merge=n=>ye.merge(e,n),e.pick=n=>ye.pick(e,n),e.omit=n=>ye.omit(e,n),e.partial=(...n)=>ye.partial(xn,e,n[0]),e.required=(...n)=>ye.required(Ei,e,n[0])});function K(e,t){const n={type:"object",shape:e??{},...ye.normalizeParams(t)};return new Cn(n)}function km(e,t){return new Cn({type:"object",shape:e,catchall:vi(),...ye.normalizeParams(t)})}function Ke(e,t){return new Cn({type:"object",shape:e,catchall:Fe(),...ye.normalizeParams(t)})}var kn=F("ZodUnion",(e,t)=>{Bu.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,u,r)=>ko(e,n,u,r),e.options=t.options});function Te(e,t){return new kn({type:"union",options:e,...ye.normalizeParams(t)})}var Vo=F("ZodXor",(e,t)=>{kn.init(e,t),nd.init(e,t),e._zod.processJSONSchema=(n,u,r)=>ko(e,n,u,r),e.options=t.options});function Sm(e,t){return new Vo({type:"union",options:e,inclusive:!1,...ye.normalizeParams(t)})}var Jo=F("ZodDiscriminatedUnion",(e,t)=>{kn.init(e,t),ud.init(e,t)});function _i(e,t,n){return new Jo({type:"union",options:t,discriminator:e,...ye.normalizeParams(n)})}var Wo=F("ZodIntersection",(e,t)=>{id.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,u,r)=>ah(e,n,u,r)});function Sn(e,t){return new Wo({type:"intersection",left:e,right:t})}var Ho=F("ZodTuple",(e,t)=>{Ga.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,u,r)=>oh(e,n,u,r),e.rest=n=>e.clone({...e._zod.def,rest:n})});function Go(e,t,n){const u=t instanceof le,r=u?n:t,i=u?t:null;return new Ho({type:"tuple",items:e,rest:i,...ye.normalizeParams(r)})}var An=F("ZodRecord",(e,t)=>{od.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,u,r)=>sh(e,n,u,r),e.keyType=t.keyType,e.valueType=t.valueType});function xe(e,t,n){return new An({type:"record",keyType:e,valueType:t,...ye.normalizeParams(n)})}function Am(e,t,n){const u=ht(e);return u._zod.values=void 0,new An({type:"record",keyType:u,valueType:t,...ye.normalizeParams(n)})}function xm(e,t,n){return new An({type:"record",keyType:e,valueType:t,mode:"loose",...ye.normalizeParams(n)})}var Ko=F("ZodMap",(e,t)=>{sd.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,u,r)=>rh(e,n,u,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(or(...n)),e.nonempty=n=>e.check(or(1,n)),e.max=(...n)=>e.check(Or(...n)),e.size=(...n)=>e.check(dn(...n))});function Bm(e,t,n){return new Ko({type:"map",keyType:e,valueType:t,...ye.normalizeParams(n)})}var Xo=F("ZodSet",(e,t)=>{ld.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,u,r)=>nh(e,n,u,r),e.min=(...n)=>e.check(or(...n)),e.nonempty=n=>e.check(or(1,n)),e.max=(...n)=>e.check(Or(...n)),e.size=(...n)=>e.check(dn(...n))});function Im(e,t){return new Xo({type:"set",valueType:e,...ye.normalizeParams(t)})}var Lr=F("ZodEnum",(e,t)=>{fd.init(e,t),he.init(e,t),e._zod.processJSONSchema=(u,r,i)=>Wf(e,u,r,i),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(u,r)=>{const i={};for(const a of u)if(n.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Lr({...t,checks:[],...ye.normalizeParams(r),entries:i})},e.exclude=(u,r)=>{const i={...t.entries};for(const a of u)if(n.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new Lr({...t,checks:[],...ye.normalizeParams(r),entries:i})}});function Xe(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(u=>[u,u])):e;return new Lr({type:"enum",entries:n,...ye.normalizeParams(t)})}function Fm(e,t){return new Lr({type:"enum",entries:e,...ye.normalizeParams(t)})}var Yo=F("ZodLiteral",(e,t)=>{hd.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,u,r)=>Hf(e,n,u,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function ee(e,t){return new Yo({type:"literal",values:Array.isArray(e)?e:[e],...ye.normalizeParams(t)})}var Qo=F("ZodFile",(e,t)=>{md.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,u,r)=>Xf(e,n,u,r),e.min=(n,u)=>e.check(or(n,u)),e.max=(n,u)=>e.check(Or(n,u)),e.mime=(n,u)=>e.check(Lu(Array.isArray(n)?n:[n],u))});function Tm(e){return kf(Qo,e)}var es=F("ZodTransform",(e,t)=>{pd.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,u,r)=>th(e,n,u,r),e._zod.parse=(n,u)=>{if(u.direction==="backward")throw new gu(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(ye.issue(i,n.value,t));else{const a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=e),n.issues.push(ye.issue(a))}};const r=t.transform(n.value,n);return r instanceof Promise?r.then(i=>(n.value=i,n)):(n.value=r,n)}});function yi(e){return new es({type:"transform",transform:e})}var xn=F("ZodOptional",(e,t)=>{Ka.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,u,r)=>So(e,n,u,r),e.unwrap=()=>e._zod.def.innerType});function Pe(e){return new xn({type:"optional",innerType:e})}var ts=F("ZodExactOptional",(e,t)=>{gd.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,u,r)=>So(e,n,u,r),e.unwrap=()=>e._zod.def.innerType});function rs(e){return new ts({type:"optional",innerType:e})}var ns=F("ZodNullable",(e,t)=>{_d.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,u,r)=>ch(e,n,u,r),e.unwrap=()=>e._zod.def.innerType});function Bn(e){return new ns({type:"nullable",innerType:e})}function jm(e){return Pe(Bn(e))}var us=F("ZodDefault",(e,t)=>{yd.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,u,r)=>dh(e,n,u,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function is(e,t){return new us({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():ye.shallowClone(t)}})}var as=F("ZodPrefault",(e,t)=>{bd.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,u,r)=>fh(e,n,u,r),e.unwrap=()=>e._zod.def.innerType});function os(e,t){return new as({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():ye.shallowClone(t)}})}var Ei=F("ZodNonOptional",(e,t)=>{Dd.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,u,r)=>lh(e,n,u,r),e.unwrap=()=>e._zod.def.innerType});function ss(e,t){return new Ei({type:"nonoptional",innerType:e,...ye.normalizeParams(t)})}var cs=F("ZodSuccess",(e,t)=>{wd.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,u,r)=>Yf(e,n,u,r),e.unwrap=()=>e._zod.def.innerType});function Pm(e){return new cs({type:"success",innerType:e})}var ls=F("ZodCatch",(e,t)=>{Cd.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,u,r)=>hh(e,n,u,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function ds(e,t){return new ls({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var fs=F("ZodNaN",(e,t)=>{kd.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,u,r)=>Gf(e,n,u,r)});function zm(e){return wf(fs,e)}var bi=F("ZodPipe",(e,t)=>{Sd.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,u,r)=>mh(e,n,u,r),e.in=t.in,e.out=t.out});function In(e,t){return new bi({type:"pipe",in:e,out:t})}var Di=F("ZodCodec",(e,t)=>{bi.init(e,t),Xa.init(e,t)});function Om(e,t,n){return new Di({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}var hs=F("ZodReadonly",(e,t)=>{Ad.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,u,r)=>ph(e,n,u,r),e.unwrap=()=>e._zod.def.innerType});function ms(e){return new hs({type:"readonly",innerType:e})}var ps=F("ZodTemplateLiteral",(e,t)=>{Bd.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,u,r)=>Kf(e,n,u,r)});function Nm(e,t){return new ps({type:"template_literal",parts:e,...ye.normalizeParams(t)})}var vs=F("ZodLazy",(e,t)=>{Td.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,u,r)=>gh(e,n,u,r),e.unwrap=()=>e._zod.def.getter()});function gs(e){return new vs({type:"lazy",getter:e})}var _s=F("ZodPromise",(e,t)=>{Fd.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,u,r)=>vh(e,n,u,r),e.unwrap=()=>e._zod.def.innerType});function Rm(e){return new _s({type:"promise",innerType:e})}var ys=F("ZodFunction",(e,t)=>{Id.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,u,r)=>eh(e,n,u,r)});function $i(e){return new ys({type:"function",input:Array.isArray(e?.input)?Go(e?.input):e?.input??ge(Fe()),output:e?.output??Fe()})}var Fn=F("ZodCustom",(e,t)=>{jd.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,u,r)=>Qf(e,n,u,r)});function Zm(e){const t=new ze({check:"custom"});return t._zod.check=e,t}function Es(e,t){return Sf(Fn,e??(()=>!0),t)}function bs(e,t={}){return Af(Fn,e,t)}function Ds(e){return xf(e)}var Um=If,Mm=Ff;function Lm(e,t={}){const n=new Fn({type:"custom",check:"custom",fn:u=>u instanceof e,abort:!0,...ye.normalizeParams(t)});return n._zod.bag.Class=e,n._zod.check=u=>{u.value instanceof e||u.issues.push({code:"invalid_type",expected:e.name,input:u.value,inst:n,path:[...n._zod.def.path??[]]})},n}var qm=(...e)=>Tf({Codec:Di,Boolean:$n,String:yn},...e);function Vm(e){const t=gs(()=>Te([z(e),we(),Ze(),pi(),ge(t),xe(z(),t)]));return t}function wi(e,t){return In(yi(e),t)}var a6={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 o6(e){Ge({customError:e})}function s6(){return Ge().customError}var $s;$s||($s={});var J={...Eh,...bh,iso:Gu},c6=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 l6(e,t){const n=e.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function d6(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");const n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return t.rootSchema;const u=t.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===u){const r=n[1];if(!r||!t.defs[r])throw new Error(`Reference not found: ${e}`);return t.defs[r]}throw new Error(`Reference not found: ${e}`)}function Jm(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return J.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){const r=e.$ref;if(t.refs.has(r))return t.refs.get(r);if(t.processing.has(r))return J.lazy(()=>{if(!t.refs.has(r))throw new Error(`Circular reference not resolved: ${r}`);return t.refs.get(r)});t.processing.add(r);const i=d6(r,t),a=Ye(i,t);return t.refs.set(r,a),t.processing.delete(r),a}if(e.enum!==void 0){const r=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&r.length===1&&r[0]===null)return J.null();if(r.length===0)return J.never();if(r.length===1)return J.literal(r[0]);if(r.every(a=>typeof a=="string"))return J.enum(r);const i=r.map(a=>J.literal(a));return i.length<2?i[0]:J.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return J.literal(e.const);const n=e.type;if(Array.isArray(n)){const r=n.map(i=>{const a={...e,type:i};return Jm(a,t)});return r.length===0?J.never():r.length===1?r[0]:J.union(r)}if(!n)return J.any();let u;switch(n){case"string":{let r=J.string();if(e.format){const i=e.format;i==="email"?r=r.check(J.email()):i==="uri"||i==="uri-reference"?r=r.check(J.url()):i==="uuid"||i==="guid"?r=r.check(J.uuid()):i==="date-time"?r=r.check(J.iso.datetime()):i==="date"?r=r.check(J.iso.date()):i==="time"?r=r.check(J.iso.time()):i==="duration"?r=r.check(J.iso.duration()):i==="ipv4"?r=r.check(J.ipv4()):i==="ipv6"?r=r.check(J.ipv6()):i==="mac"?r=r.check(J.mac()):i==="cidr"?r=r.check(J.cidrv4()):i==="cidr-v6"?r=r.check(J.cidrv6()):i==="base64"?r=r.check(J.base64()):i==="base64url"?r=r.check(J.base64url()):i==="e164"?r=r.check(J.e164()):i==="jwt"?r=r.check(J.jwt()):i==="emoji"?r=r.check(J.emoji()):i==="nanoid"?r=r.check(J.nanoid()):i==="cuid"?r=r.check(J.cuid()):i==="cuid2"?r=r.check(J.cuid2()):i==="ulid"?r=r.check(J.ulid()):i==="xid"?r=r.check(J.xid()):i==="ksuid"&&(r=r.check(J.ksuid()))}typeof e.minLength=="number"&&(r=r.min(e.minLength)),typeof e.maxLength=="number"&&(r=r.max(e.maxLength)),e.pattern&&(r=r.regex(new RegExp(e.pattern))),u=r;break}case"number":case"integer":{let r=n==="integer"?J.number().int():J.number();typeof e.minimum=="number"&&(r=r.min(e.minimum)),typeof e.maximum=="number"&&(r=r.max(e.maximum)),typeof e.exclusiveMinimum=="number"?r=r.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(r=r.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?r=r.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(r=r.lt(e.maximum)),typeof e.multipleOf=="number"&&(r=r.multipleOf(e.multipleOf)),u=r;break}case"boolean":{u=J.boolean();break}case"null":{u=J.null();break}case"object":{const r={},i=e.properties||{},a=new Set(e.required||[]);for(const[s,c]of Object.entries(i)){const l=Ye(c,t);r[s]=a.has(s)?l:l.optional()}if(e.propertyNames){const s=Ye(e.propertyNames,t),c=e.additionalProperties&&typeof e.additionalProperties=="object"?Ye(e.additionalProperties,t):J.any();if(Object.keys(r).length===0){u=J.record(s,c);break}const l=J.object(r).passthrough(),d=J.looseRecord(s,c);u=J.intersection(l,d);break}if(e.patternProperties){const s=e.patternProperties,c=Object.keys(s),l=[];for(const m of c){const p=Ye(s[m],t),E=J.string().regex(new RegExp(m));l.push(J.looseRecord(E,p))}const d=[];if(Object.keys(r).length>0&&d.push(J.object(r).passthrough()),d.push(...l),d.length===0)u=J.object({}).passthrough();else if(d.length===1)u=d[0];else{let m=J.intersection(d[0],d[1]);for(let p=2;p<d.length;p++)m=J.intersection(m,d[p]);u=m}break}const o=J.object(r);e.additionalProperties===!1?u=o.strict():typeof e.additionalProperties=="object"?u=o.catchall(Ye(e.additionalProperties,t)):u=o.passthrough();break}case"array":{const r=e.prefixItems,i=e.items;if(r&&Array.isArray(r)){const a=r.map(s=>Ye(s,t)),o=i&&typeof i=="object"&&!Array.isArray(i)?Ye(i,t):void 0;o?u=J.tuple(a).rest(o):u=J.tuple(a),typeof e.minItems=="number"&&(u=u.check(J.minLength(e.minItems))),typeof e.maxItems=="number"&&(u=u.check(J.maxLength(e.maxItems)))}else if(Array.isArray(i)){const a=i.map(s=>Ye(s,t)),o=e.additionalItems&&typeof e.additionalItems=="object"?Ye(e.additionalItems,t):void 0;o?u=J.tuple(a).rest(o):u=J.tuple(a),typeof e.minItems=="number"&&(u=u.check(J.minLength(e.minItems))),typeof e.maxItems=="number"&&(u=u.check(J.maxLength(e.maxItems)))}else if(i!==void 0){const a=Ye(i,t);let o=J.array(a);typeof e.minItems=="number"&&(o=o.min(e.minItems)),typeof e.maxItems=="number"&&(o=o.max(e.maxItems)),u=o}else u=J.array(J.any());break}default:throw new Error(`Unsupported type: ${n}`)}return e.description&&(u=u.describe(e.description)),e.default!==void 0&&(u=u.default(e.default)),u}function Ye(e,t){if(typeof e=="boolean")return e?J.any():J.never();let n=Jm(e,t);const u=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){const o=e.anyOf.map(c=>Ye(c,t)),s=J.union(o);n=u?J.intersection(n,s):s}if(e.oneOf&&Array.isArray(e.oneOf)){const o=e.oneOf.map(c=>Ye(c,t)),s=J.xor(o);n=u?J.intersection(n,s):s}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=u?n:J.any();else{let o=u?n:Ye(e.allOf[0],t);const s=u?0:1;for(let c=s;c<e.allOf.length;c++)o=J.intersection(o,Ye(e.allOf[c],t));n=o}e.nullable===!0&&t.version==="openapi-3.0"&&(n=J.nullable(n)),e.readOnly===!0&&(n=J.readonly(n));const r={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(const o of i)o in e&&(r[o]=e[o]);const a=["contentEncoding","contentMediaType","contentSchema"];for(const o of a)o in e&&(r[o]=e[o]);for(const o of Object.keys(e))c6.has(o)||(r[o]=e[o]);return Object.keys(r).length>0&&t.registry.add(n,r),n}function f6(e,t){if(typeof e=="boolean")return e?J.any():J.never();const n=l6(e,t?.defaultTarget),u=e.$defs||e.definitions||{},r={version:n,defs:u,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??Et};return Ye(e,r)}var Wm={};qt(Wm,{bigint:()=>v6,boolean:()=>p6,date:()=>g6,number:()=>m6,string:()=>h6});function h6(e){return Hd(yn,e)}function m6(e){return rf(Dn,e)}function p6(e){return lf($n,e)}function v6(e){return ff(wn,e)}function g6(e){return $f(gi,e)}Ge(Od());var Hm="2025-11-25",_6=[Hm,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],$r="io.modelcontextprotocol/related-task",Ci="2.0",Ue=Es(e=>e!==null&&(typeof e=="object"||typeof e=="function")),Gm=Te([z(),we().int()]),Km=z(),j$=Ke({ttl:we().optional(),pollInterval:we().optional()}),y6=K({ttl:we().optional()}),E6=K({taskId:z()}),ws=Ke({progressToken:Gm.optional(),[$r]:E6.optional()}),vt=K({_meta:ws.optional()}),Tn=vt.extend({task:y6.optional()}),b6=e=>Tn.safeParse(e).success,We=K({method:z(),params:vt.loose().optional()}),Dt=K({_meta:ws.optional()}),$t=K({method:z(),params:Dt.loose().optional()}),He=Ke({_meta:ws.optional()}),ki=Te([z(),we().int()]),Xm=K({jsonrpc:ee(Ci),id:ki,...We.shape}).strict(),Ym=e=>Xm.safeParse(e).success,Qm=K({jsonrpc:ee(Ci),...$t.shape}).strict(),D6=e=>Qm.safeParse(e).success,Cs=K({jsonrpc:ee(Ci),id:ki,result:He}).strict(),Si=e=>Cs.safeParse(e).success,re;(function(e){e[e.ConnectionClosed=-32e3]="ConnectionClosed",e[e.RequestTimeout=-32001]="RequestTimeout",e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(re||(re={}));var ks=K({jsonrpc:ee(Ci),id:ki.optional(),error:K({code:we().int(),message:z(),data:Fe().optional()})}).strict(),$6=e=>ks.safeParse(e).success,w6=Te([Xm,Qm,Cs,ks]),P$=Te([Cs,ks]),Ss=He.strict(),C6=Dt.extend({requestId:ki.optional(),reason:z().optional()}),As=$t.extend({method:ee("notifications/cancelled"),params:C6}),k6=K({src:z(),mimeType:z().optional(),sizes:ge(z()).optional(),theme:Xe(["light","dark"]).optional()}),jn=K({icons:ge(k6).optional()}),qr=K({name:z(),title:z().optional()}),ep=qr.extend({...qr.shape,...jn.shape,version:z(),websiteUrl:z().optional(),description:z().optional()}),S6=Sn(K({applyDefaults:Ze().optional()}),xe(z(),Fe())),A6=wi(e=>e&&typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,Sn(K({form:S6.optional(),url:Ue.optional()}),xe(z(),Fe()).optional())),x6=Ke({list:Ue.optional(),cancel:Ue.optional(),requests:Ke({sampling:Ke({createMessage:Ue.optional()}).optional(),elicitation:Ke({create:Ue.optional()}).optional()}).optional()}),B6=Ke({list:Ue.optional(),cancel:Ue.optional(),requests:Ke({tools:Ke({call:Ue.optional()}).optional()}).optional()}),I6=K({experimental:xe(z(),Ue).optional(),sampling:K({context:Ue.optional(),tools:Ue.optional()}).optional(),elicitation:A6.optional(),roots:K({listChanged:Ze().optional()}).optional(),tasks:x6.optional(),extensions:xe(z(),Ue).optional()}),F6=vt.extend({protocolVersion:z(),capabilities:I6,clientInfo:ep}),tp=We.extend({method:ee("initialize"),params:F6}),T6=K({experimental:xe(z(),Ue).optional(),logging:Ue.optional(),completions:Ue.optional(),prompts:K({listChanged:Ze().optional()}).optional(),resources:K({subscribe:Ze().optional(),listChanged:Ze().optional()}).optional(),tools:K({listChanged:Ze().optional()}).optional(),tasks:B6.optional(),extensions:xe(z(),Ue).optional()}),j6=He.extend({protocolVersion:z(),capabilities:T6,serverInfo:ep,instructions:z().optional()}),rp=$t.extend({method:ee("notifications/initialized"),params:Dt.optional()}),xs=We.extend({method:ee("ping"),params:vt.optional()}),P6=K({progress:we(),total:Pe(we()),message:Pe(z())}),z6=K({...Dt.shape,...P6.shape,progressToken:Gm}),Bs=$t.extend({method:ee("notifications/progress"),params:z6}),O6=vt.extend({cursor:Km.optional()}),Pn=We.extend({params:O6.optional()}),zn=He.extend({nextCursor:Km.optional()}),N6=Xe(["working","input_required","completed","failed","cancelled"]),On=K({taskId:z(),status:N6,ttl:Te([we(),pi()]),createdAt:z(),lastUpdatedAt:z(),pollInterval:Pe(we()),statusMessage:Pe(z())}),Ai=He.extend({task:On}),R6=Dt.merge(On),xi=$t.extend({method:ee("notifications/tasks/status"),params:R6}),Is=We.extend({method:ee("tasks/get"),params:vt.extend({taskId:z()})}),Fs=He.merge(On),Ts=We.extend({method:ee("tasks/result"),params:vt.extend({taskId:z()})}),z$=He.loose(),js=Pn.extend({method:ee("tasks/list")}),Ps=zn.extend({tasks:ge(On)}),zs=We.extend({method:ee("tasks/cancel"),params:vt.extend({taskId:z()})}),Z6=He.merge(On),np=K({uri:z(),mimeType:Pe(z()),_meta:xe(z(),Fe()).optional()}),up=np.extend({text:z()}),Os=z().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),ip=np.extend({blob:Os}),Nn=Xe(["user","assistant"]),Vr=K({audience:ge(Nn).optional(),priority:we().min(0).max(1).optional(),lastModified:Gu.datetime({offset:!0}).optional()}),ap=K({...qr.shape,...jn.shape,uri:z(),description:Pe(z()),mimeType:Pe(z()),size:Pe(we()),annotations:Vr.optional(),_meta:Pe(Ke({}))}),U6=K({...qr.shape,...jn.shape,uriTemplate:z(),description:Pe(z()),mimeType:Pe(z()),annotations:Vr.optional(),_meta:Pe(Ke({}))}),Ns=Pn.extend({method:ee("resources/list")}),M6=zn.extend({resources:ge(ap)}),Rs=Pn.extend({method:ee("resources/templates/list")}),L6=zn.extend({resourceTemplates:ge(U6)}),Zs=vt.extend({uri:z()}),q6=Zs,Us=We.extend({method:ee("resources/read"),params:q6}),V6=He.extend({contents:ge(Te([up,ip]))}),J6=$t.extend({method:ee("notifications/resources/list_changed"),params:Dt.optional()}),W6=Zs,H6=We.extend({method:ee("resources/subscribe"),params:W6}),G6=Zs,K6=We.extend({method:ee("resources/unsubscribe"),params:G6}),X6=Dt.extend({uri:z()}),Y6=$t.extend({method:ee("notifications/resources/updated"),params:X6}),Q6=K({name:z(),description:Pe(z()),required:Pe(Ze())}),ey=K({...qr.shape,...jn.shape,description:Pe(z()),arguments:Pe(ge(Q6)),_meta:Pe(Ke({}))}),Ms=Pn.extend({method:ee("prompts/list")}),ty=zn.extend({prompts:ge(ey)}),ry=vt.extend({name:z(),arguments:xe(z(),z()).optional()}),Ls=We.extend({method:ee("prompts/get"),params:ry}),qs=K({type:ee("text"),text:z(),annotations:Vr.optional(),_meta:xe(z(),Fe()).optional()}),Vs=K({type:ee("image"),data:Os,mimeType:z(),annotations:Vr.optional(),_meta:xe(z(),Fe()).optional()}),Js=K({type:ee("audio"),data:Os,mimeType:z(),annotations:Vr.optional(),_meta:xe(z(),Fe()).optional()}),ny=K({type:ee("tool_use"),name:z(),id:z(),input:xe(z(),Fe()),_meta:xe(z(),Fe()).optional()}),uy=K({type:ee("resource"),resource:Te([up,ip]),annotations:Vr.optional(),_meta:xe(z(),Fe()).optional()}),iy=ap.extend({type:ee("resource_link")}),Ws=Te([qs,Vs,Js,iy,uy]),ay=K({role:Nn,content:Ws}),oy=He.extend({description:z().optional(),messages:ge(ay)}),sy=$t.extend({method:ee("notifications/prompts/list_changed"),params:Dt.optional()}),cy=K({title:z().optional(),readOnlyHint:Ze().optional(),destructiveHint:Ze().optional(),idempotentHint:Ze().optional(),openWorldHint:Ze().optional()}),ly=K({taskSupport:Xe(["required","optional","forbidden"]).optional()}),op=K({...qr.shape,...jn.shape,description:z().optional(),inputSchema:K({type:ee("object"),properties:xe(z(),Ue).optional(),required:ge(z()).optional()}).catchall(Fe()),outputSchema:K({type:ee("object"),properties:xe(z(),Ue).optional(),required:ge(z()).optional()}).catchall(Fe()).optional(),annotations:cy.optional(),execution:ly.optional(),_meta:xe(z(),Fe()).optional()}),Hs=Pn.extend({method:ee("tools/list")}),dy=zn.extend({tools:ge(op)}),Gs=He.extend({content:ge(Ws).default([]),structuredContent:xe(z(),Fe()).optional(),isError:Ze().optional()}),O$=Gs.or(He.extend({toolResult:Fe()})),fy=Tn.extend({name:z(),arguments:xe(z(),Fe()).optional()}),Bi=We.extend({method:ee("tools/call"),params:fy}),hy=$t.extend({method:ee("notifications/tools/list_changed"),params:Dt.optional()}),N$=K({autoRefresh:Ze().default(!0),debounceMs:we().int().nonnegative().default(300)}),Ii=Xe(["debug","info","notice","warning","error","critical","alert","emergency"]),my=vt.extend({level:Ii}),sp=We.extend({method:ee("logging/setLevel"),params:my}),py=Dt.extend({level:Ii,logger:z().optional(),data:Fe()}),vy=$t.extend({method:ee("notifications/message"),params:py}),gy=K({name:z().optional()}),_y=K({hints:ge(gy).optional(),costPriority:we().min(0).max(1).optional(),speedPriority:we().min(0).max(1).optional(),intelligencePriority:we().min(0).max(1).optional()}),yy=K({mode:Xe(["auto","required","none"]).optional()}),Ey=K({type:ee("tool_result"),toolUseId:z().describe("The unique identifier for the corresponding tool call."),content:ge(Ws).default([]),structuredContent:K({}).loose().optional(),isError:Ze().optional(),_meta:xe(z(),Fe()).optional()}),by=_i("type",[qs,Vs,Js]),Fi=_i("type",[qs,Vs,Js,ny,Ey]),Dy=K({role:Nn,content:Te([Fi,ge(Fi)]),_meta:xe(z(),Fe()).optional()}),$y=Tn.extend({messages:ge(Dy),modelPreferences:_y.optional(),systemPrompt:z().optional(),includeContext:Xe(["none","thisServer","allServers"]).optional(),temperature:we().optional(),maxTokens:we().int(),stopSequences:ge(z()).optional(),metadata:Ue.optional(),tools:ge(op).optional(),toolChoice:yy.optional()}),wy=We.extend({method:ee("sampling/createMessage"),params:$y}),Ks=He.extend({model:z(),stopReason:Pe(Xe(["endTurn","stopSequence","maxTokens"]).or(z())),role:Nn,content:by}),cp=He.extend({model:z(),stopReason:Pe(Xe(["endTurn","stopSequence","maxTokens","toolUse"]).or(z())),role:Nn,content:Te([Fi,ge(Fi)])}),Cy=K({type:ee("boolean"),title:z().optional(),description:z().optional(),default:Ze().optional()}),ky=K({type:ee("string"),title:z().optional(),description:z().optional(),minLength:we().optional(),maxLength:we().optional(),format:Xe(["email","uri","date","date-time"]).optional(),default:z().optional()}),Sy=K({type:Xe(["number","integer"]),title:z().optional(),description:z().optional(),minimum:we().optional(),maximum:we().optional(),default:we().optional()}),Ay=K({type:ee("string"),title:z().optional(),description:z().optional(),enum:ge(z()),default:z().optional()}),xy=K({type:ee("string"),title:z().optional(),description:z().optional(),oneOf:ge(K({const:z(),title:z()})),default:z().optional()}),By=K({type:ee("string"),title:z().optional(),description:z().optional(),enum:ge(z()),enumNames:ge(z()).optional(),default:z().optional()}),Iy=Te([Ay,xy]),Fy=K({type:ee("array"),title:z().optional(),description:z().optional(),minItems:we().optional(),maxItems:we().optional(),items:K({type:ee("string"),enum:ge(z())}),default:ge(z()).optional()}),Ty=K({type:ee("array"),title:z().optional(),description:z().optional(),minItems:we().optional(),maxItems:we().optional(),items:K({anyOf:ge(K({const:z(),title:z()}))}),default:ge(z()).optional()}),jy=Te([Fy,Ty]),Py=Te([By,Iy,jy]),zy=Te([Py,Cy,ky,Sy]),Oy=Tn.extend({mode:ee("form").optional(),message:z(),requestedSchema:K({type:ee("object"),properties:xe(z(),zy),required:ge(z()).optional()})}),Ny=Tn.extend({mode:ee("url"),message:z(),elicitationId:z(),url:z().url()}),Ry=Te([Oy,Ny]),Zy=We.extend({method:ee("elicitation/create"),params:Ry}),Uy=Dt.extend({elicitationId:z()}),My=$t.extend({method:ee("notifications/elicitation/complete"),params:Uy}),Ti=He.extend({action:Xe(["accept","decline","cancel"]),content:wi(e=>e===null?void 0:e,xe(z(),Te([z(),we(),Ze(),ge(z())])).optional())}),Ly=K({type:ee("ref/resource"),uri:z()}),qy=K({type:ee("ref/prompt"),name:z()}),Vy=vt.extend({ref:Te([qy,Ly]),argument:K({name:z(),value:z()}),context:K({arguments:xe(z(),z()).optional()}).optional()}),Xs=We.extend({method:ee("completion/complete"),params:Vy});function Jy(e){if(e.params.ref.type!=="ref/prompt")throw new TypeError(`Expected CompleteRequestPrompt, but got ${e.params.ref.type}`)}function Wy(e){if(e.params.ref.type!=="ref/resource")throw new TypeError(`Expected CompleteRequestResourceTemplate, but got ${e.params.ref.type}`)}var Hy=He.extend({completion:Ke({values:ge(z()).max(100),total:Pe(we().int()),hasMore:Pe(Ze())})}),Gy=K({uri:z().startsWith("file://"),name:z().optional(),_meta:xe(z(),Fe()).optional()}),Ky=We.extend({method:ee("roots/list"),params:vt.optional()}),lp=He.extend({roots:ge(Gy)}),Xy=$t.extend({method:ee("notifications/roots/list_changed"),params:Dt.optional()}),R$=Te([xs,tp,Xs,sp,Ls,Ms,Ns,Rs,Us,H6,K6,Bi,Hs,Is,Ts,js,zs]),Z$=Te([As,Bs,rp,Xy,xi]),U$=Te([Ss,Ks,cp,Ti,lp,Fs,Ps,Ai]),M$=Te([xs,wy,Zy,Ky,Is,Ts,js,zs]),L$=Te([As,Bs,vy,Y6,J6,hy,sy,xi,My]),q$=Te([Ss,j6,Hy,oy,ty,M6,L6,V6,Gs,dy,Fs,Ps,Ai]),te=class ev extends Error{constructor(t,n,u){super(`MCP error ${t}: ${n}`),this.code=t,this.data=u,this.name="McpError"}static fromError(t,n,u){if(t===re.UrlElicitationRequired&&u){const r=u;if(r.elicitations)return new Yy(r.elicitations,n)}return new ev(t,n,u)}},Yy=class extends te{constructor(e,t=`URL elicitation${e.length>1?"s":""} required`){super(re.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}};function wr(e){return e==="completed"||e==="failed"||e==="cancelled"}var Qy=Symbol("Let zodToJsonSchema decide on which parser to use"),dp={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",target:"jsonSchema7",strictUnions:!1,definitions:{},errorMessages:!1,markdownDescription:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref",openAiAnyTypeName:"OpenAiAnyType"},eE=e=>typeof e=="string"?{...dp,name:e}:{...dp,...e},tE=e=>{const t=eE(e),n=t.name!==void 0?[...t.basePath,t.definitionPath,t.name]:t.basePath;return{...t,flags:{hasReferencedOpenAiAnyType:!1},currentPath:n,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map(([u,r])=>[r._def,{def:r._def,path:[...t.basePath,t.definitionPath,u],jsonSchema:void 0}]))}};function fp(e,t,n,u){u?.errorMessages&&n&&(e.errorMessage={...e.errorMessage,[t]:n})}function Se(e,t,n,u,r){e[t]=n,fp(e,t,u,r)}var hp=(e,t)=>{let n=0;for(;n<e.length&&n<t.length&&e[n]===t[n];n++);return[(e.length-n).toString(),...t.slice(n)].join("/")};function st(e){if(e.target!=="openAi")return{};const t=[...e.basePath,e.definitionPath,e.openAiAnyTypeName];return e.flags.hasReferencedOpenAiAnyType=!0,{$ref:e.$refStrategy==="relative"?hp(t,e.currentPath):t.join("/")}}function rE(e,t){const n={type:"array"};return e.type?._def&&e.type?._def?.typeName!==V.ZodAny&&(n.items=ke(e.type._def,{...t,currentPath:[...t.currentPath,"items"]})),e.minLength&&Se(n,"minItems",e.minLength.value,e.minLength.message,t),e.maxLength&&Se(n,"maxItems",e.maxLength.value,e.maxLength.message,t),e.exactLength&&(Se(n,"minItems",e.exactLength.value,e.exactLength.message,t),Se(n,"maxItems",e.exactLength.value,e.exactLength.message,t)),n}function nE(e,t){const n={type:"integer",format:"int64"};if(!e.checks)return n;for(const u of e.checks)switch(u.kind){case"min":t.target==="jsonSchema7"?u.inclusive?Se(n,"minimum",u.value,u.message,t):Se(n,"exclusiveMinimum",u.value,u.message,t):(u.inclusive||(n.exclusiveMinimum=!0),Se(n,"minimum",u.value,u.message,t));break;case"max":t.target==="jsonSchema7"?u.inclusive?Se(n,"maximum",u.value,u.message,t):Se(n,"exclusiveMaximum",u.value,u.message,t):(u.inclusive||(n.exclusiveMaximum=!0),Se(n,"maximum",u.value,u.message,t));break;case"multipleOf":Se(n,"multipleOf",u.value,u.message,t);break}return n}function uE(){return{type:"boolean"}}function mp(e,t){return ke(e.type._def,t)}var iE=(e,t)=>ke(e.innerType._def,t);function pp(e,t,n){const u=n??t.dateStrategy;if(Array.isArray(u))return{anyOf:u.map((r,i)=>pp(e,t,r))};switch(u){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return aE(e,t)}}var aE=(e,t)=>{const n={type:"integer",format:"unix-time"};if(t.target==="openApi3")return n;for(const u of e.checks)switch(u.kind){case"min":Se(n,"minimum",u.value,u.message,t);break;case"max":Se(n,"maximum",u.value,u.message,t);break}return n};function oE(e,t){return{...ke(e.innerType._def,t),default:e.defaultValue()}}function sE(e,t){return t.effectStrategy==="input"?ke(e.schema._def,t):st(t)}function cE(e){return{type:"string",enum:Array.from(e.values)}}var lE=e=>"type"in e&&e.type==="string"?!1:"allOf"in e;function dE(e,t){const n=[ke(e.left._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),ke(e.right._def,{...t,currentPath:[...t.currentPath,"allOf","1"]})].filter(i=>!!i);let u=t.target==="jsonSchema2019-09"?{unevaluatedProperties:!1}:void 0;const r=[];return n.forEach(i=>{if(lE(i))r.push(...i.allOf),i.unevaluatedProperties===void 0&&(u=void 0);else{let a=i;if("additionalProperties"in i&&i.additionalProperties===!1){const{additionalProperties:o,...s}=i;a=s}else u=void 0;r.push(a)}}),r.length?{allOf:r,...u}:void 0}function fE(e,t){const n=typeof e.value;return n!=="bigint"&&n!=="number"&&n!=="boolean"&&n!=="string"?{type:Array.isArray(e.value)?"array":"object"}:t.target==="openApi3"?{type:n==="bigint"?"integer":n,enum:[e.value]}:{type:n==="bigint"?"integer":n,const:e.value}}var Ys=void 0,Bt={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(Ys===void 0&&(Ys=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),Ys),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?: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])$/,ipv4Cidr:/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function vp(e,t){const n={type:"string"};if(e.checks)for(const u of e.checks)switch(u.kind){case"min":Se(n,"minLength",typeof n.minLength=="number"?Math.max(n.minLength,u.value):u.value,u.message,t);break;case"max":Se(n,"maxLength",typeof n.maxLength=="number"?Math.min(n.maxLength,u.value):u.value,u.message,t);break;case"email":switch(t.emailStrategy){case"format:email":It(n,"email",u.message,t);break;case"format:idn-email":It(n,"idn-email",u.message,t);break;case"pattern:zod":rt(n,Bt.email,u.message,t);break}break;case"url":It(n,"uri",u.message,t);break;case"uuid":It(n,"uuid",u.message,t);break;case"regex":rt(n,u.regex,u.message,t);break;case"cuid":rt(n,Bt.cuid,u.message,t);break;case"cuid2":rt(n,Bt.cuid2,u.message,t);break;case"startsWith":rt(n,RegExp(`^${Qs(u.value,t)}`),u.message,t);break;case"endsWith":rt(n,RegExp(`${Qs(u.value,t)}$`),u.message,t);break;case"datetime":It(n,"date-time",u.message,t);break;case"date":It(n,"date",u.message,t);break;case"time":It(n,"time",u.message,t);break;case"duration":It(n,"duration",u.message,t);break;case"length":Se(n,"minLength",typeof n.minLength=="number"?Math.max(n.minLength,u.value):u.value,u.message,t),Se(n,"maxLength",typeof n.maxLength=="number"?Math.min(n.maxLength,u.value):u.value,u.message,t);break;case"includes":{rt(n,RegExp(Qs(u.value,t)),u.message,t);break}case"ip":{u.version!=="v6"&&It(n,"ipv4",u.message,t),u.version!=="v4"&&It(n,"ipv6",u.message,t);break}case"base64url":rt(n,Bt.base64url,u.message,t);break;case"jwt":rt(n,Bt.jwt,u.message,t);break;case"cidr":{u.version!=="v6"&&rt(n,Bt.ipv4Cidr,u.message,t),u.version!=="v4"&&rt(n,Bt.ipv6Cidr,u.message,t);break}case"emoji":rt(n,Bt.emoji(),u.message,t);break;case"ulid":{rt(n,Bt.ulid,u.message,t);break}case"base64":{switch(t.base64Strategy){case"format:binary":{It(n,"binary",u.message,t);break}case"contentEncoding:base64":{Se(n,"contentEncoding","base64",u.message,t);break}case"pattern:zod":{rt(n,Bt.base64,u.message,t);break}}break}case"nanoid":rt(n,Bt.nanoid,u.message,t);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return n}function Qs(e,t){return t.patternStrategy==="escape"?mE(e):e}var hE=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function mE(e){let t="";for(let n=0;n<e.length;n++)hE.has(e[n])||(t+="\\"),t+=e[n];return t}function It(e,t,n,u){e.format||e.anyOf?.some(r=>r.format)?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format,...e.errorMessage&&u.errorMessages&&{errorMessage:{format:e.errorMessage.format}}}),delete e.format,e.errorMessage&&(delete e.errorMessage.format,Object.keys(e.errorMessage).length===0&&delete e.errorMessage)),e.anyOf.push({format:t,...n&&u.errorMessages&&{errorMessage:{format:n}}})):Se(e,"format",t,n,u)}function rt(e,t,n,u){e.pattern||e.allOf?.some(r=>r.pattern)?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern,...e.errorMessage&&u.errorMessages&&{errorMessage:{pattern:e.errorMessage.pattern}}}),delete e.pattern,e.errorMessage&&(delete e.errorMessage.pattern,Object.keys(e.errorMessage).length===0&&delete e.errorMessage)),e.allOf.push({pattern:gp(t,u),...n&&u.errorMessages&&{errorMessage:{pattern:n}}})):Se(e,"pattern",gp(t,u),n,u)}function gp(e,t){if(!t.applyRegexFlags||!e.flags)return e.source;const n={i:e.flags.includes("i"),m:e.flags.includes("m"),s:e.flags.includes("s")},u=n.i?e.source.toLowerCase():e.source;let r="",i=!1,a=!1,o=!1;for(let s=0;s<u.length;s++){if(i){r+=u[s],i=!1;continue}if(n.i){if(a){if(u[s].match(/[a-z]/)){o?(r+=u[s],r+=`${u[s-2]}-${u[s]}`.toUpperCase(),o=!1):u[s+1]==="-"&&u[s+2]?.match(/[a-z]/)?(r+=u[s],o=!0):r+=`${u[s]}${u[s].toUpperCase()}`;continue}}else if(u[s].match(/[a-z]/)){r+=`[${u[s]}${u[s].toUpperCase()}]`;continue}}if(n.m){if(u[s]==="^"){r+=`(^|(?<=[\r
|
|
49
|
+
]))`;continue}else if(u[s]==="$"){r+=`($|(?=[\r
|
|
50
|
+
]))`;continue}}if(n.s&&u[s]==="."){r+=a?`${u[s]}\r
|
|
51
|
+
`:`[${u[s]}\r
|
|
52
|
+
]`;continue}r+=u[s],u[s]==="\\"?i=!0:a&&u[s]==="]"?a=!1:!a&&u[s]==="["&&(a=!0)}try{new RegExp(r)}catch{return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return r}function _p(e,t){if(t.target==="openAi"&&console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead."),t.target==="openApi3"&&e.keyType?._def.typeName===V.ZodEnum)return{type:"object",required:e.keyType._def.values,properties:e.keyType._def.values.reduce((u,r)=>({...u,[r]:ke(e.valueType._def,{...t,currentPath:[...t.currentPath,"properties",r]})??st(t)}),{}),additionalProperties:t.rejectedAdditionalProperties};const n={type:"object",additionalProperties:ke(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]})??t.allowedAdditionalProperties};if(t.target==="openApi3")return n;if(e.keyType?._def.typeName===V.ZodString&&e.keyType._def.checks?.length){const{type:u,...r}=vp(e.keyType._def,t);return{...n,propertyNames:r}}else{if(e.keyType?._def.typeName===V.ZodEnum)return{...n,propertyNames:{enum:e.keyType._def.values}};if(e.keyType?._def.typeName===V.ZodBranded&&e.keyType._def.type._def.typeName===V.ZodString&&e.keyType._def.type._def.checks?.length){const{type:u,...r}=mp(e.keyType._def,t);return{...n,propertyNames:r}}}return n}function pE(e,t){if(t.mapStrategy==="record")return _p(e,t);const n=ke(e.keyType._def,{...t,currentPath:[...t.currentPath,"items","items","0"]})||st(t),u=ke(e.valueType._def,{...t,currentPath:[...t.currentPath,"items","items","1"]})||st(t);return{type:"array",maxItems:125,items:{type:"array",items:[n,u],minItems:2,maxItems:2}}}function vE(e){const t=e.values,u=Object.keys(e.values).filter(i=>typeof t[t[i]]!="number").map(i=>t[i]),r=Array.from(new Set(u.map(i=>typeof i)));return{type:r.length===1?r[0]==="string"?"string":"number":["string","number"],enum:u}}function gE(e){return e.target==="openAi"?void 0:{not:st({...e,currentPath:[...e.currentPath,"not"]})}}function _E(e){return e.target==="openApi3"?{enum:["null"],nullable:!0}:{type:"null"}}var ji={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function yE(e,t){if(t.target==="openApi3")return yp(e,t);const n=e.options instanceof Map?Array.from(e.options.values()):e.options;if(n.every(u=>u._def.typeName in ji&&(!u._def.checks||!u._def.checks.length))){const u=n.reduce((r,i)=>{const a=ji[i._def.typeName];return a&&!r.includes(a)?[...r,a]:r},[]);return{type:u.length>1?u:u[0]}}else if(n.every(u=>u._def.typeName==="ZodLiteral"&&!u.description)){const u=n.reduce((r,i)=>{const a=typeof i._def.value;switch(a){case"string":case"number":case"boolean":return[...r,a];case"bigint":return[...r,"integer"];case"object":if(i._def.value===null)return[...r,"null"];default:return r}},[]);if(u.length===n.length){const r=u.filter((i,a,o)=>o.indexOf(i)===a);return{type:r.length>1?r:r[0],enum:n.reduce((i,a)=>i.includes(a._def.value)?i:[...i,a._def.value],[])}}}else if(n.every(u=>u._def.typeName==="ZodEnum"))return{type:"string",enum:n.reduce((u,r)=>[...u,...r._def.values.filter(i=>!u.includes(i))],[])};return yp(e,t)}var yp=(e,t)=>{const n=(e.options instanceof Map?Array.from(e.options.values()):e.options).map((u,r)=>ke(u._def,{...t,currentPath:[...t.currentPath,"anyOf",`${r}`]})).filter(u=>!!u&&(!t.strictUnions||typeof u=="object"&&Object.keys(u).length>0));return n.length?{anyOf:n}:void 0};function EE(e,t){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return t.target==="openApi3"?{type:ji[e.innerType._def.typeName],nullable:!0}:{type:[ji[e.innerType._def.typeName],"null"]};if(t.target==="openApi3"){const u=ke(e.innerType._def,{...t,currentPath:[...t.currentPath]});return u&&"$ref"in u?{allOf:[u],nullable:!0}:u&&{...u,nullable:!0}}const n=ke(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","0"]});return n&&{anyOf:[n,{type:"null"}]}}function bE(e,t){const n={type:"number"};if(!e.checks)return n;for(const u of e.checks)switch(u.kind){case"int":n.type="integer",fp(n,"type",u.message,t);break;case"min":t.target==="jsonSchema7"?u.inclusive?Se(n,"minimum",u.value,u.message,t):Se(n,"exclusiveMinimum",u.value,u.message,t):(u.inclusive||(n.exclusiveMinimum=!0),Se(n,"minimum",u.value,u.message,t));break;case"max":t.target==="jsonSchema7"?u.inclusive?Se(n,"maximum",u.value,u.message,t):Se(n,"exclusiveMaximum",u.value,u.message,t):(u.inclusive||(n.exclusiveMaximum=!0),Se(n,"maximum",u.value,u.message,t));break;case"multipleOf":Se(n,"multipleOf",u.value,u.message,t);break}return n}function DE(e,t){const n=t.target==="openAi",u={type:"object",properties:{}},r=[],i=e.shape();for(const o in i){let s=i[o];if(s===void 0||s._def===void 0)continue;let c=wE(s);c&&n&&(s._def.typeName==="ZodOptional"&&(s=s._def.innerType),s.isNullable()||(s=s.nullable()),c=!1);const l=ke(s._def,{...t,currentPath:[...t.currentPath,"properties",o],propertyPath:[...t.currentPath,"properties",o]});l!==void 0&&(u.properties[o]=l,c||r.push(o))}r.length&&(u.required=r);const a=$E(e,t);return a!==void 0&&(u.additionalProperties=a),u}function $E(e,t){if(e.catchall._def.typeName!=="ZodNever")return ke(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return t.removeAdditionalStrategy==="strict"?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}function wE(e){try{return e.isOptional()}catch{return!0}}var CE=(e,t)=>{if(t.currentPath.toString()===t.propertyPath?.toString())return ke(e.innerType._def,t);const n=ke(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","1"]});return n?{anyOf:[{not:st(t)},n]}:st(t)},kE=(e,t)=>{if(t.pipeStrategy==="input")return ke(e.in._def,t);if(t.pipeStrategy==="output")return ke(e.out._def,t);const n=ke(e.in._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),u=ke(e.out._def,{...t,currentPath:[...t.currentPath,"allOf",n?"1":"0"]});return{allOf:[n,u].filter(r=>r!==void 0)}};function SE(e,t){return ke(e.type._def,t)}function AE(e,t){const u={type:"array",uniqueItems:!0,items:ke(e.valueType._def,{...t,currentPath:[...t.currentPath,"items"]})};return e.minSize&&Se(u,"minItems",e.minSize.value,e.minSize.message,t),e.maxSize&&Se(u,"maxItems",e.maxSize.value,e.maxSize.message,t),u}function xE(e,t){return e.rest?{type:"array",minItems:e.items.length,items:e.items.map((n,u)=>ke(n._def,{...t,currentPath:[...t.currentPath,"items",`${u}`]})).reduce((n,u)=>u===void 0?n:[...n,u],[]),additionalItems:ke(e.rest._def,{...t,currentPath:[...t.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map((n,u)=>ke(n._def,{...t,currentPath:[...t.currentPath,"items",`${u}`]})).reduce((n,u)=>u===void 0?n:[...n,u],[])}}function BE(e){return{not:st(e)}}function IE(e){return st(e)}var FE=(e,t)=>ke(e.innerType._def,t),TE=(e,t,n)=>{switch(t){case V.ZodString:return vp(e,n);case V.ZodNumber:return bE(e,n);case V.ZodObject:return DE(e,n);case V.ZodBigInt:return nE(e,n);case V.ZodBoolean:return uE();case V.ZodDate:return pp(e,n);case V.ZodUndefined:return BE(n);case V.ZodNull:return _E(n);case V.ZodArray:return rE(e,n);case V.ZodUnion:case V.ZodDiscriminatedUnion:return yE(e,n);case V.ZodIntersection:return dE(e,n);case V.ZodTuple:return xE(e,n);case V.ZodRecord:return _p(e,n);case V.ZodLiteral:return fE(e,n);case V.ZodEnum:return cE(e);case V.ZodNativeEnum:return vE(e);case V.ZodNullable:return EE(e,n);case V.ZodOptional:return CE(e,n);case V.ZodMap:return pE(e,n);case V.ZodSet:return AE(e,n);case V.ZodLazy:return()=>e.getter()._def;case V.ZodPromise:return SE(e,n);case V.ZodNaN:case V.ZodNever:return gE(n);case V.ZodEffects:return sE(e,n);case V.ZodAny:return st(n);case V.ZodUnknown:return IE(n);case V.ZodDefault:return oE(e,n);case V.ZodBranded:return mp(e,n);case V.ZodReadonly:return FE(e,n);case V.ZodCatch:return iE(e,n);case V.ZodPipeline:return kE(e,n);case V.ZodFunction:case V.ZodVoid:case V.ZodSymbol:return;default:return(u=>{})(t)}};function ke(e,t,n=!1){const u=t.seen.get(e);if(t.override){const o=t.override?.(e,t,u,n);if(o!==Qy)return o}if(u&&!n){const o=jE(u,t);if(o!==void 0)return o}const r={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,r);const i=TE(e,e.typeName,t),a=typeof i=="function"?ke(i(),t):i;if(a&&PE(e,t,a),t.postProcess){const o=t.postProcess(a,e,t);return r.jsonSchema=a,o}return r.jsonSchema=a,a}var jE=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:hp(t.currentPath,e.path)};case"none":case"seen":return e.path.length<t.currentPath.length&&e.path.every((n,u)=>t.currentPath[u]===n)?(console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),st(t)):t.$refStrategy==="seen"?st(t):void 0}},PE=(e,t,n)=>(e.description&&(n.description=e.description,t.markdownDescription&&(n.markdownDescription=e.description)),n),zE=(e,t)=>{const n=tE(t);let u=typeof t=="object"&&t.definitions?Object.entries(t.definitions).reduce((s,[c,l])=>({...s,[c]:ke(l._def,{...n,currentPath:[...n.basePath,n.definitionPath,c]},!0)??st(n)}),{}):void 0;const r=typeof t=="string"?t:t?.nameStrategy==="title"?void 0:t?.name,i=ke(e._def,r===void 0?n:{...n,currentPath:[...n.basePath,n.definitionPath,r]},!1)??st(n),a=typeof t=="object"&&t.name!==void 0&&t.nameStrategy==="title"?t.name:void 0;a!==void 0&&(i.title=a),n.flags.hasReferencedOpenAiAnyType&&(u||(u={}),u[n.openAiAnyTypeName]||(u[n.openAiAnyTypeName]={type:["string","number","integer","boolean","array","null"],items:{$ref:n.$refStrategy==="relative"?"1":[...n.basePath,n.definitionPath,n.openAiAnyTypeName].join("/")}}));const o=r===void 0?u?{...i,[n.definitionPath]:u}:i:{$ref:[...n.$refStrategy==="relative"?[]:n.basePath,n.definitionPath,r].join("/"),[n.definitionPath]:{...u,[r]:i}};return n.target==="jsonSchema7"?o.$schema="http://json-schema.org/draft-07/schema#":(n.target==="jsonSchema2019-09"||n.target==="openAi")&&(o.$schema="https://json-schema.org/draft/2019-09/schema#"),n.target==="openAi"&&("anyOf"in o||"oneOf"in o||"allOf"in o||"type"in o&&Array.isArray(o.type))&&console.warn("Warning: OpenAI may not support schemas with unions as roots! Try wrapping it in an object property."),o};function OE(e){return!e||e==="jsonSchema7"||e==="draft-7"?"draft-7":e==="jsonSchema2019-09"||e==="draft-2020-12"?"draft-2020-12":"draft-7"}function Ep(e,t){return Nt(e)?xo(e,{target:OE(t?.target),io:t?.pipeStrategy??"input"}):zE(e,{strictUnions:t?.strictUnions??!0,pipeStrategy:t?.pipeStrategy??"input"})}function bp(e){const n=gn(e)?.method;if(!n)throw new Error("Schema is missing a method literal");const u=yh(n);if(typeof u!="string")throw new Error("Schema method literal must be a string");return u}function Dp(e,t){const n=vn(e,t);if(!n.success)throw n.error;return n.data}var NE=6e4,RE=class{constructor(e){this._options=e,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(As,t=>{this._oncancel(t)}),this.setNotificationHandler(Bs,t=>{this._onprogress(t)}),this.setRequestHandler(xs,t=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(Is,async(t,n)=>{const u=await this._taskStore.getTask(t.params.taskId,n.sessionId);if(!u)throw new te(re.InvalidParams,"Failed to retrieve task: Task not found");return{...u}}),this.setRequestHandler(Ts,async(t,n)=>{const u=async()=>{const r=t.params.taskId;if(this._taskMessageQueue){let a;for(;a=await this._taskMessageQueue.dequeue(r,n.sessionId);){if(a.type==="response"||a.type==="error"){const o=a.message,s=o.id,c=this._requestResolvers.get(s);if(c)if(this._requestResolvers.delete(s),a.type==="response")c(o);else{const l=o,d=new te(l.error.code,l.error.message,l.error.data);c(d)}else{const l=a.type==="response"?"Response":"Error";this._onerror(new Error(`${l} handler missing for request ${s}`))}continue}await this._transport?.send(a.message,{relatedRequestId:n.requestId})}}const i=await this._taskStore.getTask(r,n.sessionId);if(!i)throw new te(re.InvalidParams,`Task not found: ${r}`);if(!wr(i.status))return await this._waitForTaskUpdate(r,n.signal),await u();if(wr(i.status)){const a=await this._taskStore.getTaskResult(r,n.sessionId);return this._clearTaskQueue(r),{...a,_meta:{...a._meta,[$r]:{taskId:r}}}}return await u()};return await u()}),this.setRequestHandler(js,async(t,n)=>{try{const{tasks:u,nextCursor:r}=await this._taskStore.listTasks(t.params?.cursor,n.sessionId);return{tasks:u,nextCursor:r,_meta:{}}}catch(u){throw new te(re.InvalidParams,`Failed to list tasks: ${u instanceof Error?u.message:String(u)}`)}}),this.setRequestHandler(zs,async(t,n)=>{try{const u=await this._taskStore.getTask(t.params.taskId,n.sessionId);if(!u)throw new te(re.InvalidParams,`Task not found: ${t.params.taskId}`);if(wr(u.status))throw new te(re.InvalidParams,`Cannot cancel task in terminal status: ${u.status}`);await this._taskStore.updateTaskStatus(t.params.taskId,"cancelled","Client cancelled task execution.",n.sessionId),this._clearTaskQueue(t.params.taskId);const r=await this._taskStore.getTask(t.params.taskId,n.sessionId);if(!r)throw new te(re.InvalidParams,`Task not found after cancellation: ${t.params.taskId}`);return{_meta:{},...r}}catch(u){throw u instanceof te?u:new te(re.InvalidRequest,`Failed to cancel task: ${u instanceof Error?u.message:String(u)}`)}}))}async _oncancel(e){if(!e.params.requestId)return;this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,t,n,u,r=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(u,t),startTime:Date.now(),timeout:t,maxTotalTimeout:n,resetTimeoutOnProgress:r,onTimeout:u})}_resetTimeout(e){const t=this._timeoutInfo.get(e);if(!t)return!1;const n=Date.now()-t.startTime;if(t.maxTotalTimeout&&n>=t.maxTotalTimeout)throw this._timeoutInfo.delete(e),te.fromError(re.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:t.maxTotalTimeout,totalElapsed:n});return clearTimeout(t.timeoutId),t.timeoutId=setTimeout(t.onTimeout,t.timeout),!0}_cleanupTimeout(e){const t=this._timeoutInfo.get(e);t&&(clearTimeout(t.timeoutId),this._timeoutInfo.delete(e))}async connect(e){if(this._transport)throw new Error("Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.");this._transport=e;const t=this.transport?.onclose;this._transport.onclose=()=>{t?.(),this._onclose()};const n=this.transport?.onerror;this._transport.onerror=r=>{n?.(r),this._onerror(r)};const u=this._transport?.onmessage;this._transport.onmessage=(r,i)=>{u?.(r,i),Si(r)||$6(r)?this._onresponse(r):Ym(r)?this._onrequest(r,i):D6(r)?this._onnotification(r):this._onerror(new Error(`Unknown message type: ${JSON.stringify(r)}`))},await this._transport.start()}_onclose(){const e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(const n of this._timeoutInfo.values())clearTimeout(n.timeoutId);this._timeoutInfo.clear();for(const n of this._requestHandlerAbortControllers.values())n.abort();this._requestHandlerAbortControllers.clear();const t=te.fromError(re.ConnectionClosed,"Connection closed");this._transport=void 0,this.onclose?.();for(const n of e.values())n(t)}_onerror(e){this.onerror?.(e)}_onnotification(e){const t=this._notificationHandlers.get(e.method)??this.fallbackNotificationHandler;t!==void 0&&Promise.resolve().then(()=>t(e)).catch(n=>this._onerror(new Error(`Uncaught error in notification handler: ${n}`)))}_onrequest(e,t){const n=this._requestHandlers.get(e.method)??this.fallbackRequestHandler,u=this._transport,r=e.params?._meta?.[$r]?.taskId;if(n===void 0){const c={jsonrpc:"2.0",id:e.id,error:{code:re.MethodNotFound,message:"Method not found"}};r&&this._taskMessageQueue?this._enqueueTaskMessage(r,{type:"error",message:c,timestamp:Date.now()},u?.sessionId).catch(l=>this._onerror(new Error(`Failed to enqueue error response: ${l}`))):u?.send(c).catch(l=>this._onerror(new Error(`Failed to send an error response: ${l}`)));return}const i=new AbortController;this._requestHandlerAbortControllers.set(e.id,i);const a=b6(e.params)?e.params.task:void 0,o=this._taskStore?this.requestTaskStore(e,u?.sessionId):void 0,s={signal:i.signal,sessionId:u?.sessionId,_meta:e.params?._meta,sendNotification:async c=>{if(i.signal.aborted)return;const l={relatedRequestId:e.id};r&&(l.relatedTask={taskId:r}),await this.notification(c,l)},sendRequest:async(c,l,d)=>{if(i.signal.aborted)throw new te(re.ConnectionClosed,"Request was cancelled");const m={...d,relatedRequestId:e.id};r&&!m.relatedTask&&(m.relatedTask={taskId:r});const p=m.relatedTask?.taskId??r;return p&&o&&await o.updateTaskStatus(p,"input_required"),await this.request(c,l,m)},authInfo:t?.authInfo,requestId:e.id,requestInfo:t?.requestInfo,taskId:r,taskStore:o,taskRequestedTtl:a?.ttl,closeSSEStream:t?.closeSSEStream,closeStandaloneSSEStream:t?.closeStandaloneSSEStream};Promise.resolve().then(()=>{a&&this.assertTaskHandlerCapability(e.method)}).then(()=>n(e,s)).then(async c=>{if(i.signal.aborted)return;const l={result:c,jsonrpc:"2.0",id:e.id};r&&this._taskMessageQueue?await this._enqueueTaskMessage(r,{type:"response",message:l,timestamp:Date.now()},u?.sessionId):await u?.send(l)},async c=>{if(i.signal.aborted)return;const l={jsonrpc:"2.0",id:e.id,error:{code:Number.isSafeInteger(c.code)?c.code:re.InternalError,message:c.message??"Internal error",...c.data!==void 0&&{data:c.data}}};r&&this._taskMessageQueue?await this._enqueueTaskMessage(r,{type:"error",message:l,timestamp:Date.now()},u?.sessionId):await u?.send(l)}).catch(c=>this._onerror(new Error(`Failed to send response: ${c}`))).finally(()=>{this._requestHandlerAbortControllers.get(e.id)===i&&this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){const{progressToken:t,...n}=e.params,u=Number(t),r=this._progressHandlers.get(u);if(!r){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}const i=this._responseHandlers.get(u),a=this._timeoutInfo.get(u);if(a&&i&&a.resetTimeoutOnProgress)try{this._resetTimeout(u)}catch(o){this._responseHandlers.delete(u),this._progressHandlers.delete(u),this._cleanupTimeout(u),i(o);return}r(n)}_onresponse(e){const t=Number(e.id),n=this._requestResolvers.get(t);if(n){if(this._requestResolvers.delete(t),Si(e))n(e);else{const i=new te(e.error.code,e.error.message,e.error.data);n(i)}return}const u=this._responseHandlers.get(t);if(u===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(t),this._cleanupTimeout(t);let r=!1;if(Si(e)&&e.result&&typeof e.result=="object"){const i=e.result;if(i.task&&typeof i.task=="object"){const a=i.task;typeof a.taskId=="string"&&(r=!0,this._taskProgressTokens.set(a.taskId,t))}}if(r||this._progressHandlers.delete(t),Si(e))u(e);else{const i=te.fromError(e.error.code,e.error.message,e.error.data);u(i)}}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(e,t,n){const{task:u}=n??{};if(!u){try{yield{type:"result",result:await this.request(e,t,n)}}catch(i){yield{type:"error",error:i instanceof te?i:new te(re.InternalError,String(i))}}return}let r;try{const i=await this.request(e,Ai,n);if(i.task)r=i.task.taskId,yield{type:"taskCreated",task:i.task};else throw new te(re.InternalError,"Task creation did not return a task");for(;;){const a=await this.getTask({taskId:r},n);if(yield{type:"taskStatus",task:a},wr(a.status)){a.status==="completed"?yield{type:"result",result:await this.getTaskResult({taskId:r},t,n)}:a.status==="failed"?yield{type:"error",error:new te(re.InternalError,`Task ${r} failed`)}:a.status==="cancelled"&&(yield{type:"error",error:new te(re.InternalError,`Task ${r} was cancelled`)});return}if(a.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:r},t,n)};return}const o=a.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(s=>setTimeout(s,o)),n?.signal?.throwIfAborted()}}catch(i){yield{type:"error",error:i instanceof te?i:new te(re.InternalError,String(i))}}}request(e,t,n){const{relatedRequestId:u,resumptionToken:r,onresumptiontoken:i,task:a,relatedTask:o}=n??{};return new Promise((s,c)=>{const l=f=>{c(f)};if(!this._transport){l(new Error("Not connected"));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(e.method),a&&this.assertTaskCapability(e.method)}catch(f){l(f);return}n?.signal?.throwIfAborted();const d=this._requestMessageId++,m={...e,jsonrpc:"2.0",id:d};n?.onprogress&&(this._progressHandlers.set(d,n.onprogress),m.params={...e.params,_meta:{...e.params?._meta||{},progressToken:d}}),a&&(m.params={...m.params,task:a}),o&&(m.params={...m.params,_meta:{...m.params?._meta||{},[$r]:o}});const p=f=>{this._responseHandlers.delete(d),this._progressHandlers.delete(d),this._cleanupTimeout(d),this._transport?.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:d,reason:String(f)}},{relatedRequestId:u,resumptionToken:r,onresumptiontoken:i}).catch(v=>this._onerror(new Error(`Failed to send cancellation: ${v}`)));const $=f instanceof te?f:new te(re.RequestTimeout,String(f));c($)};this._responseHandlers.set(d,f=>{if(!n?.signal?.aborted){if(f instanceof Error)return c(f);try{const $=vn(t,f.result);$.success?s($.data):c($.error)}catch($){c($)}}}),n?.signal?.addEventListener("abort",()=>{p(n?.signal?.reason)});const E=n?.timeout??NE,b=()=>p(te.fromError(re.RequestTimeout,"Request timed out",{timeout:E}));this._setupTimeout(d,E,n?.maxTotalTimeout,b,n?.resetTimeoutOnProgress??!1);const g=o?.taskId;if(g){const f=$=>{const v=this._responseHandlers.get(d);v?v($):this._onerror(new Error(`Response handler missing for side-channeled request ${d}`))};this._requestResolvers.set(d,f),this._enqueueTaskMessage(g,{type:"request",message:m,timestamp:Date.now()}).catch($=>{this._cleanupTimeout(d),c($)})}else this._transport.send(m,{relatedRequestId:u,resumptionToken:r,onresumptiontoken:i}).catch(f=>{this._cleanupTimeout(d),c(f)})})}async getTask(e,t){return this.request({method:"tasks/get",params:e},Fs,t)}async getTaskResult(e,t,n){return this.request({method:"tasks/result",params:e},t,n)}async listTasks(e,t){return this.request({method:"tasks/list",params:e},Ps,t)}async cancelTask(e,t){return this.request({method:"tasks/cancel",params:e},Z6,t)}async notification(e,t){if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(e.method);const n=t?.relatedTask?.taskId;if(n){const a={...e,jsonrpc:"2.0",params:{...e.params,_meta:{...e.params?._meta||{},[$r]:t.relatedTask}}};await this._enqueueTaskMessage(n,{type:"notification",message:a,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(e.method)&&!e.params&&!t?.relatedRequestId&&!t?.relatedTask){if(this._pendingDebouncedNotifications.has(e.method))return;this._pendingDebouncedNotifications.add(e.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let a={...e,jsonrpc:"2.0"};t?.relatedTask&&(a={...a,params:{...a.params,_meta:{...a.params?._meta||{},[$r]:t.relatedTask}}}),this._transport?.send(a,t).catch(o=>this._onerror(o))});return}let i={...e,jsonrpc:"2.0"};t?.relatedTask&&(i={...i,params:{...i.params,_meta:{...i.params?._meta||{},[$r]:t.relatedTask}}}),await this._transport.send(i,t)}setRequestHandler(e,t){const n=bp(e);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(u,r)=>{const i=Dp(e,u);return Promise.resolve(t(i,r))})}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw new Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,t){const n=bp(e);this._notificationHandlers.set(n,u=>{const r=Dp(e,u);return Promise.resolve(t(r))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){const t=this._taskProgressTokens.get(e);t!==void 0&&(this._progressHandlers.delete(t),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,t,n){if(!this._taskStore||!this._taskMessageQueue)throw new Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");const u=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(e,t,n,u)}async _clearTaskQueue(e,t){if(this._taskMessageQueue){const n=await this._taskMessageQueue.dequeueAll(e,t);for(const u of n)if(u.type==="request"&&Ym(u.message)){const r=u.message.id,i=this._requestResolvers.get(r);i?(i(new te(re.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(r)):this._onerror(new Error(`Resolver missing for request ${r} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,t){let n=this._options?.defaultTaskPollInterval??1e3;try{const u=await this._taskStore?.getTask(e);u?.pollInterval&&(n=u.pollInterval)}catch{}return new Promise((u,r)=>{if(t.aborted){r(new te(re.InvalidRequest,"Request cancelled"));return}const i=setTimeout(u,n);t.addEventListener("abort",()=>{clearTimeout(i),r(new te(re.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(e,t){const n=this._taskStore;if(!n)throw new Error("No task store configured");return{createTask:async u=>{if(!e)throw new Error("No request provided");return await n.createTask(u,e.id,{method:e.method,params:e.params},t)},getTask:async u=>{const r=await n.getTask(u,t);if(!r)throw new te(re.InvalidParams,"Failed to retrieve task: Task not found");return r},storeTaskResult:async(u,r,i)=>{await n.storeTaskResult(u,r,i,t);const a=await n.getTask(u,t);if(a){const o=xi.parse({method:"notifications/tasks/status",params:a});await this.notification(o),wr(a.status)&&this._cleanupTaskProgressHandler(u)}},getTaskResult:u=>n.getTaskResult(u,t),updateTaskStatus:async(u,r,i)=>{const a=await n.getTask(u,t);if(!a)throw new te(re.InvalidParams,`Task "${u}" not found - it may have been cleaned up`);if(wr(a.status))throw new te(re.InvalidParams,`Cannot update task "${u}" from terminal status "${a.status}" to "${r}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(u,r,i,t);const o=await n.getTask(u,t);if(o){const s=xi.parse({method:"notifications/tasks/status",params:o});await this.notification(s),wr(o.status)&&this._cleanupTaskProgressHandler(u)}},listTasks:u=>n.listTasks(u,t)}}};function $p(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function ZE(e,t){const n={...e};for(const u in t){const r=u,i=t[r];if(i===void 0)continue;const a=n[r];$p(a)&&$p(i)?n[r]={...a,...i}:n[r]=i}return n}var UE=I0(Z0(),1),ME=I0(sg(),1);function LE(){const e=new UE.default({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0}),t=ME.default;return t(e),e}var qE=class{constructor(e){this._ajv=e??LE()}getValidator(e){const t="$id"in e&&typeof e.$id=="string"?this._ajv.getSchema(e.$id)??this._ajv.compile(e):this._ajv.compile(e);return n=>t(n)?{valid:!0,data:n,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:this._ajv.errorsText(t.errors)}}},VE=class{constructor(e){this._server=e}requestStream(e,t,n){return this._server.requestStream(e,t,n)}createMessageStream(e,t){const n=this._server.getClientCapabilities();if((e.tools||e.toolChoice)&&!n?.sampling?.tools)throw new Error("Client does not support sampling tools capability.");if(e.messages.length>0){const u=e.messages[e.messages.length-1],r=Array.isArray(u.content)?u.content:[u.content],i=r.some(c=>c.type==="tool_result"),a=e.messages.length>1?e.messages[e.messages.length-2]:void 0,o=a?Array.isArray(a.content)?a.content:[a.content]:[],s=o.some(c=>c.type==="tool_use");if(i){if(r.some(c=>c.type!=="tool_result"))throw new Error("The last message must contain only tool_result content if any is present");if(!s)throw new Error("tool_result blocks are not matching any tool_use from the previous message")}if(s){const c=new Set(o.filter(d=>d.type==="tool_use").map(d=>d.id)),l=new Set(r.filter(d=>d.type==="tool_result").map(d=>d.toolUseId));if(c.size!==l.size||![...c].every(d=>l.has(d)))throw new Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}return this.requestStream({method:"sampling/createMessage",params:e},Ks,t)}elicitInputStream(e,t){const n=this._server.getClientCapabilities(),u=e.mode??"form";switch(u){case"url":{if(!n?.elicitation?.url)throw new Error("Client does not support url elicitation.");break}case"form":{if(!n?.elicitation?.form)throw new Error("Client does not support form elicitation.");break}}const r=u==="form"&&e.mode===void 0?{...e,mode:"form"}:e;return this.requestStream({method:"elicitation/create",params:r},Ti,t)}async getTask(e,t){return this._server.getTask({taskId:e},t)}async getTaskResult(e,t,n){return this._server.getTaskResult({taskId:e},t,n)}async listTasks(e,t){return this._server.listTasks(e?{cursor:e}:void 0,t)}async cancelTask(e,t){return this._server.cancelTask({taskId:e},t)}};function JE(e,t,n){if(!e)throw new Error(`${n} does not support task creation (required for ${t})`);switch(t){case"tools/call":if(!e.tools?.call)throw new Error(`${n} does not support task creation for tools/call (required for ${t})`);break;default:break}}function WE(e,t,n){if(!e)throw new Error(`${n} does not support task creation (required for ${t})`);switch(t){case"sampling/createMessage":if(!e.sampling?.createMessage)throw new Error(`${n} does not support task creation for sampling/createMessage (required for ${t})`);break;case"elicitation/create":if(!e.elicitation?.create)throw new Error(`${n} does not support task creation for elicitation/create (required for ${t})`);break;default:break}}var HE=class extends RE{constructor(e,t){super(t),this._serverInfo=e,this._loggingLevels=new Map,this.LOG_LEVEL_SEVERITY=new Map(Ii.options.map((n,u)=>[n,u])),this.isMessageIgnored=(n,u)=>{const r=this._loggingLevels.get(u);return r?this.LOG_LEVEL_SEVERITY.get(n)<this.LOG_LEVEL_SEVERITY.get(r):!1},this._capabilities=t?.capabilities??{},this._instructions=t?.instructions,this._jsonSchemaValidator=t?.jsonSchemaValidator??new qE,this.setRequestHandler(tp,n=>this._oninitialize(n)),this.setNotificationHandler(rp,()=>this.oninitialized?.()),this._capabilities.logging&&this.setRequestHandler(sp,async(n,u)=>{const r=u.sessionId||u.requestInfo?.headers["mcp-session-id"]||void 0,{level:i}=n.params,a=Ii.safeParse(i);return a.success&&this._loggingLevels.set(r,a.data),{}})}get experimental(){return this._experimental||(this._experimental={tasks:new VE(this)}),this._experimental}registerCapabilities(e){if(this.transport)throw new Error("Cannot register capabilities after connecting to transport");this._capabilities=ZE(this._capabilities,e)}setRequestHandler(e,t){const u=gn(e)?.method;if(!u)throw new Error("Schema is missing a method literal");let r;if(Nt(u)){const a=u;r=a._zod?.def?.value??a.value}else{const a=u;r=a._def?.value??a.value}if(typeof r!="string")throw new Error("Schema method literal must be a string");if(r==="tools/call"){const a=async(o,s)=>{const c=vn(Bi,o);if(!c.success){const p=c.error instanceof Error?c.error.message:String(c.error);throw new te(re.InvalidParams,`Invalid tools/call request: ${p}`)}const{params:l}=c.data,d=await Promise.resolve(t(o,s));if(l.task){const p=vn(Ai,d);if(!p.success){const E=p.error instanceof Error?p.error.message:String(p.error);throw new te(re.InvalidParams,`Invalid task creation result: ${E}`)}return p.data}const m=vn(Gs,d);if(!m.success){const p=m.error instanceof Error?m.error.message:String(m.error);throw new te(re.InvalidParams,`Invalid tools/call result: ${p}`)}return m.data};return super.setRequestHandler(e,a)}return super.setRequestHandler(e,t)}assertCapabilityForMethod(e){switch(e){case"sampling/createMessage":if(!this._clientCapabilities?.sampling)throw new Error(`Client does not support sampling (required for ${e})`);break;case"elicitation/create":if(!this._clientCapabilities?.elicitation)throw new Error(`Client does not support elicitation (required for ${e})`);break;case"roots/list":if(!this._clientCapabilities?.roots)throw new Error(`Client does not support listing roots (required for ${e})`);break;case"ping":break}}assertNotificationCapability(e){switch(e){case"notifications/message":if(!this._capabilities.logging)throw new Error(`Server does not support logging (required for ${e})`);break;case"notifications/resources/updated":case"notifications/resources/list_changed":if(!this._capabilities.resources)throw new Error(`Server does not support notifying about resources (required for ${e})`);break;case"notifications/tools/list_changed":if(!this._capabilities.tools)throw new Error(`Server does not support notifying of tool list changes (required for ${e})`);break;case"notifications/prompts/list_changed":if(!this._capabilities.prompts)throw new Error(`Server does not support notifying of prompt list changes (required for ${e})`);break;case"notifications/elicitation/complete":if(!this._clientCapabilities?.elicitation?.url)throw new Error(`Client does not support URL elicitation (required for ${e})`);break;case"notifications/cancelled":break;case"notifications/progress":break}}assertRequestHandlerCapability(e){if(this._capabilities)switch(e){case"completion/complete":if(!this._capabilities.completions)throw new Error(`Server does not support completions (required for ${e})`);break;case"logging/setLevel":if(!this._capabilities.logging)throw new Error(`Server does not support logging (required for ${e})`);break;case"prompts/get":case"prompts/list":if(!this._capabilities.prompts)throw new Error(`Server does not support prompts (required for ${e})`);break;case"resources/list":case"resources/templates/list":case"resources/read":if(!this._capabilities.resources)throw new Error(`Server does not support resources (required for ${e})`);break;case"tools/call":case"tools/list":if(!this._capabilities.tools)throw new Error(`Server does not support tools (required for ${e})`);break;case"tasks/get":case"tasks/list":case"tasks/result":case"tasks/cancel":if(!this._capabilities.tasks)throw new Error(`Server does not support tasks capability (required for ${e})`);break;case"ping":case"initialize":break}}assertTaskCapability(e){WE(this._clientCapabilities?.tasks?.requests,e,"Client")}assertTaskHandlerCapability(e){this._capabilities&&JE(this._capabilities.tasks?.requests,e,"Server")}async _oninitialize(e){const t=e.params.protocolVersion;return this._clientCapabilities=e.params.capabilities,this._clientVersion=e.params.clientInfo,{protocolVersion:_6.includes(t)?t:Hm,capabilities:this.getCapabilities(),serverInfo:this._serverInfo,...this._instructions&&{instructions:this._instructions}}}getClientCapabilities(){return this._clientCapabilities}getClientVersion(){return this._clientVersion}getCapabilities(){return this._capabilities}async ping(){return this.request({method:"ping"},Ss)}async createMessage(e,t){if((e.tools||e.toolChoice)&&!this._clientCapabilities?.sampling?.tools)throw new Error("Client does not support sampling tools capability.");if(e.messages.length>0){const n=e.messages[e.messages.length-1],u=Array.isArray(n.content)?n.content:[n.content],r=u.some(s=>s.type==="tool_result"),i=e.messages.length>1?e.messages[e.messages.length-2]:void 0,a=i?Array.isArray(i.content)?i.content:[i.content]:[],o=a.some(s=>s.type==="tool_use");if(r){if(u.some(s=>s.type!=="tool_result"))throw new Error("The last message must contain only tool_result content if any is present");if(!o)throw new Error("tool_result blocks are not matching any tool_use from the previous message")}if(o){const s=new Set(a.filter(l=>l.type==="tool_use").map(l=>l.id)),c=new Set(u.filter(l=>l.type==="tool_result").map(l=>l.toolUseId));if(s.size!==c.size||![...s].every(l=>c.has(l)))throw new Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}return e.tools?this.request({method:"sampling/createMessage",params:e},cp,t):this.request({method:"sampling/createMessage",params:e},Ks,t)}async elicitInput(e,t){switch(e.mode??"form"){case"url":{if(!this._clientCapabilities?.elicitation?.url)throw new Error("Client does not support url elicitation.");const u=e;return this.request({method:"elicitation/create",params:u},Ti,t)}case"form":{if(!this._clientCapabilities?.elicitation?.form)throw new Error("Client does not support form elicitation.");const u=e.mode==="form"?e:{...e,mode:"form"},r=await this.request({method:"elicitation/create",params:u},Ti,t);if(r.action==="accept"&&r.content&&u.requestedSchema)try{const a=this._jsonSchemaValidator.getValidator(u.requestedSchema)(r.content);if(!a.valid)throw new te(re.InvalidParams,`Elicitation response content does not match requested schema: ${a.errorMessage}`)}catch(i){throw i instanceof te?i:new te(re.InternalError,`Error validating elicitation response: ${i instanceof Error?i.message:String(i)}`)}return r}}}createElicitationCompletionNotifier(e,t){if(!this._clientCapabilities?.elicitation?.url)throw new Error("Client does not support URL elicitation (required for notifications/elicitation/complete)");return()=>this.notification({method:"notifications/elicitation/complete",params:{elicitationId:e}},t)}async listRoots(e,t){return this.request({method:"roots/list",params:e},lp,t)}async sendLoggingMessage(e,t){if(this._capabilities.logging&&!this.isMessageIgnored(e.level,t))return this.notification({method:"notifications/message",params:e})}async sendResourceUpdated(e){return this.notification({method:"notifications/resources/updated",params:e})}async sendResourceListChanged(){return this.notification({method:"notifications/resources/list_changed"})}async sendToolListChanged(){return this.notification({method:"notifications/tools/list_changed"})}async sendPromptListChanged(){return this.notification({method:"notifications/prompts/list_changed"})}},wp=Symbol.for("mcp.completable");function Cp(e){return!!e&&typeof e=="object"&&wp in e}function GE(e){return e[wp]?.complete}var kp;(function(e){e.Completable="McpCompletable"})(kp||(kp={}));var KE=/^[A-Za-z0-9._-]{1,128}$/;function XE(e){const t=[];if(e.length===0)return{isValid:!1,warnings:["Tool name cannot be empty"]};if(e.length>128)return{isValid:!1,warnings:[`Tool name exceeds maximum length of 128 characters (current: ${e.length})`]};if(e.includes(" ")&&t.push("Tool name contains spaces, which may cause parsing issues"),e.includes(",")&&t.push("Tool name contains commas, which may cause parsing issues"),(e.startsWith("-")||e.endsWith("-"))&&t.push("Tool name starts or ends with a dash, which may cause parsing issues in some contexts"),(e.startsWith(".")||e.endsWith("."))&&t.push("Tool name starts or ends with a dot, which may cause parsing issues in some contexts"),!KE.test(e)){const n=e.split("").filter(u=>!/[A-Za-z0-9._-]/.test(u)).filter((u,r,i)=>i.indexOf(u)===r);return t.push(`Tool name contains invalid characters: ${n.map(u=>`"${u}"`).join(", ")}`,"Allowed characters are: A-Z, a-z, 0-9, underscore (_), dash (-), and dot (.)"),{isValid:!1,warnings:t}}return{isValid:!0,warnings:t}}function YE(e,t){if(t.length>0){console.warn(`Tool name validation warning for "${e}":`);for(const n of t)console.warn(` - ${n}`);console.warn("Tool registration will proceed, but this may cause compatibility issues."),console.warn("Consider updating the tool name to conform to the MCP tool naming standard."),console.warn("See SEP: Specify Format for Tool Names (https://github.com/modelcontextprotocol/modelcontextprotocol/issues/986) for more details.")}}function Sp(e){const t=XE(e);return YE(e,t.warnings),t.isValid}var QE=class{constructor(e){this._mcpServer=e}registerToolTask(e,t,n){const u={taskSupport:"required",...t.execution};if(u.taskSupport==="forbidden")throw new Error(`Cannot register task-based tool '${e}' with taskSupport 'forbidden'. Use registerTool() instead.`);return this._mcpServer._createRegisteredTool(e,t.title,t.description,t.inputSchema,t.outputSchema,t.annotations,u,t._meta,n)}},eb=class{constructor(e,t){this._registeredResources={},this._registeredResourceTemplates={},this._registeredTools={},this._registeredPrompts={},this._toolHandlersInitialized=!1,this._completionHandlerInitialized=!1,this._resourceHandlersInitialized=!1,this._promptHandlersInitialized=!1,this.server=new HE(e,t)}get experimental(){return this._experimental||(this._experimental={tasks:new QE(this)}),this._experimental}async connect(e){return await this.server.connect(e)}async close(){await this.server.close()}setToolRequestHandlers(){this._toolHandlersInitialized||(this.server.assertCanSetRequestHandler(sr(Hs)),this.server.assertCanSetRequestHandler(sr(Bi)),this.server.registerCapabilities({tools:{listChanged:!0}}),this.server.setRequestHandler(Hs,()=>({tools:Object.entries(this._registeredTools).filter(([,e])=>e.enabled).map(([e,t])=>{const n={name:e,title:t.title,description:t.description,inputSchema:(()=>{const u=_n(t.inputSchema);return u?Ep(u,{strictUnions:!0,pipeStrategy:"input"}):tb})(),annotations:t.annotations,execution:t.execution,_meta:t._meta};if(t.outputSchema){const u=_n(t.outputSchema);u&&(n.outputSchema=Ep(u,{strictUnions:!0,pipeStrategy:"output"}))}return n})})),this.server.setRequestHandler(Bi,async(e,t)=>{try{const n=this._registeredTools[e.params.name];if(!n)throw new te(re.InvalidParams,`Tool ${e.params.name} not found`);if(!n.enabled)throw new te(re.InvalidParams,`Tool ${e.params.name} disabled`);const u=!!e.params.task,r=n.execution?.taskSupport,i="createTask"in n.handler;if((r==="required"||r==="optional")&&!i)throw new te(re.InternalError,`Tool ${e.params.name} has taskSupport '${r}' but was not registered with registerToolTask`);if(r==="required"&&!u)throw new te(re.MethodNotFound,`Tool ${e.params.name} requires task augmentation (taskSupport: 'required')`);if(r==="optional"&&!u&&i)return await this.handleAutomaticTaskPolling(n,e,t);const a=await this.validateToolInput(n,e.params.arguments,e.params.name),o=await this.executeToolHandler(n,a,t);return u||await this.validateToolOutput(n,o,e.params.name),o}catch(n){if(n instanceof te&&n.code===re.UrlElicitationRequired)throw n;return this.createToolError(n instanceof Error?n.message:String(n))}}),this._toolHandlersInitialized=!0)}createToolError(e){return{content:[{type:"text",text:e}],isError:!0}}async validateToolInput(e,t,n){if(!e.inputSchema)return;const r=_n(e.inputSchema)??e.inputSchema,i=await Bo(r,t);if(!i.success){const a="error"in i?i.error:"Unknown error",o=Io(a);throw new te(re.InvalidParams,`Input validation error: Invalid arguments for tool ${n}: ${o}`)}return i.data}async validateToolOutput(e,t,n){if(!e.outputSchema||!("content"in t)||t.isError)return;if(!t.structuredContent)throw new te(re.InvalidParams,`Output validation error: Tool ${n} has an output schema but no structured content was provided`);const u=_n(e.outputSchema),r=await Bo(u,t.structuredContent);if(!r.success){const i="error"in r?r.error:"Unknown error",a=Io(i);throw new te(re.InvalidParams,`Output validation error: Invalid structured content for tool ${n}: ${a}`)}}async executeToolHandler(e,t,n){const u=e.handler;if("createTask"in u){if(!n.taskStore)throw new Error("No task store provided.");const i={...n,taskStore:n.taskStore};if(e.inputSchema){const a=u;return await Promise.resolve(a.createTask(t,i))}else{const a=u;return await Promise.resolve(a.createTask(i))}}if(e.inputSchema){const i=u;return await Promise.resolve(i(t,n))}else{const i=u;return await Promise.resolve(i(n))}}async handleAutomaticTaskPolling(e,t,n){if(!n.taskStore)throw new Error("No task store provided for task-capable tool.");const u=await this.validateToolInput(e,t.params.arguments,t.params.name),r=e.handler,i={...n,taskStore:n.taskStore},a=u?await Promise.resolve(r.createTask(u,i)):await Promise.resolve(r.createTask(i)),o=a.task.taskId;let s=a.task;const c=s.pollInterval??5e3;for(;s.status!=="completed"&&s.status!=="failed"&&s.status!=="cancelled";){await new Promise(d=>setTimeout(d,c));const l=await n.taskStore.getTask(o);if(!l)throw new te(re.InternalError,`Task ${o} not found during polling`);s=l}return await n.taskStore.getTaskResult(o)}setCompletionRequestHandler(){this._completionHandlerInitialized||(this.server.assertCanSetRequestHandler(sr(Xs)),this.server.registerCapabilities({completions:{}}),this.server.setRequestHandler(Xs,async e=>{switch(e.params.ref.type){case"ref/prompt":return Jy(e),this.handlePromptCompletion(e,e.params.ref);case"ref/resource":return Wy(e),this.handleResourceCompletion(e,e.params.ref);default:throw new te(re.InvalidParams,`Invalid completion reference: ${e.params.ref}`)}}),this._completionHandlerInitialized=!0)}async handlePromptCompletion(e,t){const n=this._registeredPrompts[t.name];if(!n)throw new te(re.InvalidParams,`Prompt ${t.name} not found`);if(!n.enabled)throw new te(re.InvalidParams,`Prompt ${t.name} disabled`);if(!n.argsSchema)return Rn;const r=gn(n.argsSchema)?.[e.params.argument.name];if(!Cp(r))return Rn;const i=GE(r);if(!i)return Rn;const a=await i(e.params.argument.value,e.params.context);return Ip(a)}async handleResourceCompletion(e,t){const n=Object.values(this._registeredResourceTemplates).find(i=>i.resourceTemplate.uriTemplate.toString()===t.uri);if(!n){if(this._registeredResources[t.uri])return Rn;throw new te(re.InvalidParams,`Resource template ${e.params.ref.uri} not found`)}const u=n.resourceTemplate.completeCallback(e.params.argument.name);if(!u)return Rn;const r=await u(e.params.argument.value,e.params.context);return Ip(r)}setResourceRequestHandlers(){this._resourceHandlersInitialized||(this.server.assertCanSetRequestHandler(sr(Ns)),this.server.assertCanSetRequestHandler(sr(Rs)),this.server.assertCanSetRequestHandler(sr(Us)),this.server.registerCapabilities({resources:{listChanged:!0}}),this.server.setRequestHandler(Ns,async(e,t)=>{const n=Object.entries(this._registeredResources).filter(([r,i])=>i.enabled).map(([r,i])=>({uri:r,name:i.name,...i.metadata})),u=[];for(const r of Object.values(this._registeredResourceTemplates)){if(!r.resourceTemplate.listCallback)continue;const i=await r.resourceTemplate.listCallback(t);for(const a of i.resources)u.push({...r.metadata,...a})}return{resources:[...n,...u]}}),this.server.setRequestHandler(Rs,async()=>({resourceTemplates:Object.entries(this._registeredResourceTemplates).map(([t,n])=>({name:t,uriTemplate:n.resourceTemplate.uriTemplate.toString(),...n.metadata}))})),this.server.setRequestHandler(Us,async(e,t)=>{const n=new URL(e.params.uri),u=this._registeredResources[n.toString()];if(u){if(!u.enabled)throw new te(re.InvalidParams,`Resource ${n} disabled`);return u.readCallback(n,t)}for(const r of Object.values(this._registeredResourceTemplates)){const i=r.resourceTemplate.uriTemplate.match(n.toString());if(i)return r.readCallback(n,i,t)}throw new te(re.InvalidParams,`Resource ${n} not found`)}),this._resourceHandlersInitialized=!0)}setPromptRequestHandlers(){this._promptHandlersInitialized||(this.server.assertCanSetRequestHandler(sr(Ms)),this.server.assertCanSetRequestHandler(sr(Ls)),this.server.registerCapabilities({prompts:{listChanged:!0}}),this.server.setRequestHandler(Ms,()=>({prompts:Object.entries(this._registeredPrompts).filter(([,e])=>e.enabled).map(([e,t])=>({name:e,title:t.title,description:t.description,arguments:t.argsSchema?rb(t.argsSchema):void 0}))})),this.server.setRequestHandler(Ls,async(e,t)=>{const n=this._registeredPrompts[e.params.name];if(!n)throw new te(re.InvalidParams,`Prompt ${e.params.name} not found`);if(!n.enabled)throw new te(re.InvalidParams,`Prompt ${e.params.name} disabled`);if(n.argsSchema){const u=_n(n.argsSchema),r=await Bo(u,e.params.arguments);if(!r.success){const o="error"in r?r.error:"Unknown error",s=Io(o);throw new te(re.InvalidParams,`Invalid arguments for prompt ${e.params.name}: ${s}`)}const i=r.data,a=n.callback;return await Promise.resolve(a(i,t))}else{const u=n.callback;return await Promise.resolve(u(t))}}),this._promptHandlersInitialized=!0)}resource(e,t,...n){let u;typeof n[0]=="object"&&(u=n.shift());const r=n[0];if(typeof t=="string"){if(this._registeredResources[t])throw new Error(`Resource ${t} is already registered`);const i=this._createRegisteredResource(e,void 0,t,u,r);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),i}else{if(this._registeredResourceTemplates[e])throw new Error(`Resource template ${e} is already registered`);const i=this._createRegisteredResourceTemplate(e,void 0,t,u,r);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),i}}registerResource(e,t,n,u){if(typeof t=="string"){if(this._registeredResources[t])throw new Error(`Resource ${t} is already registered`);const r=this._createRegisteredResource(e,n.title,t,n,u);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),r}else{if(this._registeredResourceTemplates[e])throw new Error(`Resource template ${e} is already registered`);const r=this._createRegisteredResourceTemplate(e,n.title,t,n,u);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),r}}_createRegisteredResource(e,t,n,u,r){const i={name:e,title:t,metadata:u,readCallback:r,enabled:!0,disable:()=>i.update({enabled:!1}),enable:()=>i.update({enabled:!0}),remove:()=>i.update({uri:null}),update:a=>{typeof a.uri<"u"&&a.uri!==n&&(delete this._registeredResources[n],a.uri&&(this._registeredResources[a.uri]=i)),typeof a.name<"u"&&(i.name=a.name),typeof a.title<"u"&&(i.title=a.title),typeof a.metadata<"u"&&(i.metadata=a.metadata),typeof a.callback<"u"&&(i.readCallback=a.callback),typeof a.enabled<"u"&&(i.enabled=a.enabled),this.sendResourceListChanged()}};return this._registeredResources[n]=i,i}_createRegisteredResourceTemplate(e,t,n,u,r){const i={resourceTemplate:n,title:t,metadata:u,readCallback:r,enabled:!0,disable:()=>i.update({enabled:!1}),enable:()=>i.update({enabled:!0}),remove:()=>i.update({name:null}),update:s=>{typeof s.name<"u"&&s.name!==e&&(delete this._registeredResourceTemplates[e],s.name&&(this._registeredResourceTemplates[s.name]=i)),typeof s.title<"u"&&(i.title=s.title),typeof s.template<"u"&&(i.resourceTemplate=s.template),typeof s.metadata<"u"&&(i.metadata=s.metadata),typeof s.callback<"u"&&(i.readCallback=s.callback),typeof s.enabled<"u"&&(i.enabled=s.enabled),this.sendResourceListChanged()}};this._registeredResourceTemplates[e]=i;const a=n.uriTemplate.variableNames;return Array.isArray(a)&&a.some(s=>!!n.completeCallback(s))&&this.setCompletionRequestHandler(),i}_createRegisteredPrompt(e,t,n,u,r){const i={title:t,description:n,argsSchema:u===void 0?void 0:Ur(u),callback:r,enabled:!0,disable:()=>i.update({enabled:!1}),enable:()=>i.update({enabled:!0}),remove:()=>i.update({name:null}),update:a=>{typeof a.name<"u"&&a.name!==e&&(delete this._registeredPrompts[e],a.name&&(this._registeredPrompts[a.name]=i)),typeof a.title<"u"&&(i.title=a.title),typeof a.description<"u"&&(i.description=a.description),typeof a.argsSchema<"u"&&(i.argsSchema=Ur(a.argsSchema)),typeof a.callback<"u"&&(i.callback=a.callback),typeof a.enabled<"u"&&(i.enabled=a.enabled),this.sendPromptListChanged()}};return this._registeredPrompts[e]=i,u&&Object.values(u).some(o=>{const s=o instanceof xn?o._def?.innerType:o;return Cp(s)})&&this.setCompletionRequestHandler(),i}_createRegisteredTool(e,t,n,u,r,i,a,o,s){Sp(e);const c={title:t,description:n,inputSchema:Bp(u),outputSchema:Bp(r),annotations:i,execution:a,_meta:o,handler:s,enabled:!0,disable:()=>c.update({enabled:!1}),enable:()=>c.update({enabled:!0}),remove:()=>c.update({name:null}),update:l=>{typeof l.name<"u"&&l.name!==e&&(typeof l.name=="string"&&Sp(l.name),delete this._registeredTools[e],l.name&&(this._registeredTools[l.name]=c)),typeof l.title<"u"&&(c.title=l.title),typeof l.description<"u"&&(c.description=l.description),typeof l.paramsSchema<"u"&&(c.inputSchema=Ur(l.paramsSchema)),typeof l.outputSchema<"u"&&(c.outputSchema=Ur(l.outputSchema)),typeof l.callback<"u"&&(c.handler=l.callback),typeof l.annotations<"u"&&(c.annotations=l.annotations),typeof l._meta<"u"&&(c._meta=l._meta),typeof l.enabled<"u"&&(c.enabled=l.enabled),this.sendToolListChanged()}};return this._registeredTools[e]=c,this.setToolRequestHandlers(),this.sendToolListChanged(),c}tool(e,...t){if(this._registeredTools[e])throw new Error(`Tool ${e} is already registered`);let n,u,r,i;if(typeof t[0]=="string"&&(n=t.shift()),t.length>1){const o=t[0];if(e0(o))u=t.shift(),t.length>1&&typeof t[0]=="object"&&t[0]!==null&&!e0(t[0])&&(i=t.shift());else if(typeof o=="object"&&o!==null){if(Object.values(o).some(s=>typeof s=="object"&&s!==null))throw new Error(`Tool ${e} expected a Zod schema or ToolAnnotations, but received an unrecognized object`);i=t.shift()}}const a=t[0];return this._createRegisteredTool(e,void 0,n,u,r,i,{taskSupport:"forbidden"},void 0,a)}registerTool(e,t,n){if(this._registeredTools[e])throw new Error(`Tool ${e} is already registered`);const{title:u,description:r,inputSchema:i,outputSchema:a,annotations:o,_meta:s}=t;return this._createRegisteredTool(e,u,r,i,a,o,{taskSupport:"forbidden"},s,n)}prompt(e,...t){if(this._registeredPrompts[e])throw new Error(`Prompt ${e} is already registered`);let n;typeof t[0]=="string"&&(n=t.shift());let u;t.length>1&&(u=t.shift());const r=t[0],i=this._createRegisteredPrompt(e,void 0,n,u,r);return this.setPromptRequestHandlers(),this.sendPromptListChanged(),i}registerPrompt(e,t,n){if(this._registeredPrompts[e])throw new Error(`Prompt ${e} is already registered`);const{title:u,description:r,argsSchema:i}=t,a=this._createRegisteredPrompt(e,u,r,i,n);return this.setPromptRequestHandlers(),this.sendPromptListChanged(),a}isConnected(){return this.server.transport!==void 0}async sendLoggingMessage(e,t){return this.server.sendLoggingMessage(e,t)}sendResourceListChanged(){this.isConnected()&&this.server.sendResourceListChanged()}sendToolListChanged(){this.isConnected()&&this.server.sendToolListChanged()}sendPromptListChanged(){this.isConnected()&&this.server.sendPromptListChanged()}},tb={type:"object",properties:{}};function Ap(e){return e!==null&&typeof e=="object"&&"parse"in e&&typeof e.parse=="function"&&"safeParse"in e&&typeof e.safeParse=="function"}function xp(e){return"_def"in e||"_zod"in e||Ap(e)}function e0(e){return typeof e!="object"||e===null||xp(e)?!1:Object.keys(e).length===0?!0:Object.values(e).some(Ap)}function Bp(e){if(e){if(e0(e))return Ur(e);if(!xp(e))throw new Error("inputSchema must be a Zod schema or raw shape, received an unrecognized object");return e}}function rb(e){const t=gn(e);return t?Object.entries(t).map(([n,u])=>{const r=n6(u),i=u6(u);return{name:n,description:r,required:!i}}):[]}function sr(e){const n=gn(e)?.method;if(!n)throw new Error("Schema is missing a method literal");const u=yh(n);if(typeof u=="string")return u;throw new Error("Schema method literal must be a string")}function Ip(e){return{completion:{values:e.slice(0,100),total:e.length,hasMore:e.length>100}}}var Rn={completion:{values:[],hasMore:!1}};import Fp from"process";var nb=class{append(e){this._buffer=this._buffer?Buffer.concat([this._buffer,e]):e}readMessage(){if(!this._buffer)return null;const e=this._buffer.indexOf(`
|
|
53
|
+
`);if(e===-1)return null;const t=this._buffer.toString("utf8",0,e).replace(/\r$/,"");return this._buffer=this._buffer.subarray(e+1),ub(t)}clear(){this._buffer=void 0}};function ub(e){return w6.parse(JSON.parse(e))}function ib(e){return JSON.stringify(e)+`
|
|
54
|
+
`}var ab=class{constructor(e=Fp.stdin,t=Fp.stdout){this._stdin=e,this._stdout=t,this._readBuffer=new nb,this._started=!1,this._ondata=n=>{this._readBuffer.append(n),this.processReadBuffer()},this._onerror=n=>{this.onerror?.(n)}}async start(){if(this._started)throw new Error("StdioServerTransport already started! If using Server class, note that connect() calls start() automatically.");this._started=!0,this._stdin.on("data",this._ondata),this._stdin.on("error",this._onerror)}processReadBuffer(){for(;;)try{const e=this._readBuffer.readMessage();if(e===null)break;this.onmessage?.(e)}catch(e){this.onerror?.(e)}}async close(){this._stdin.off("data",this._ondata),this._stdin.off("error",this._onerror),this._stdin.listenerCount("data")===0&&this._stdin.pause(),this._readBuffer.clear(),this.onclose?.()}send(e){return new Promise(t=>{const n=ib(e);this._stdout.write(n)?t():this._stdout.once("drain",t)})}};import{existsSync as t0,mkdirSync as ob,readFileSync as r0,statSync as Tp,unlinkSync as sb,writeFileSync as jp}from"fs";import{dirname as cb,extname as lb}from"path";import{isAbsolute as db,resolve as fb}from"path";var n0=1e5,hb=11e4,mb=3e4,pb=10*1024*1024;function cr(e){return db(e)?e:fb(process.cwd(),e)}function Pi(e,t=n0){if(e.length<=t)return e;const n=Math.floor(t/2);return`${e.slice(0,n)}
|
|
55
|
+
|
|
56
|
+
... truncated ${e.length-t} characters ...
|
|
57
|
+
|
|
58
|
+
${e.slice(-n)}`}function Pp(e){return typeof e!="number"||Number.isNaN(e)?mb:e<0?0:Math.min(e,hb)}function lr(e){return{content:[{type:"text",text:e}]}}function Zt(e){return{content:[{type:"text",text:e}],isError:!0}}function Xt(e){return e instanceof Error?e.message:String(e)}var vb={".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".webp":"image/webp"};function gb(e,t){return e.split(`
|
|
59
|
+
`).map((u,r)=>`${String(t+r).padStart(6," ")}|${u}`).join(`
|
|
60
|
+
`)}function _b(e,t,n){const u=cr(e);if(!t0(u))return{kind:"error",message:`File does not exist: ${u}`};const r=Tp(u);if(r.isDirectory())return{kind:"error",message:`Path is a directory, not a file: ${u}`};if(!(typeof t=="number"||typeof n=="number"&&n>0)&&r.size>pb)return{kind:"error",message:`File is too large to read whole (${r.size} bytes). Read a slice with offset/limit, or search it with grep.`};const a=vb[lb(u).toLowerCase()];if(a)return{kind:"image",data:r0(u).toString("base64"),mimeType:a};const o=r0(u,"utf8");if(o.length===0)return{kind:"text",body:"File is empty."};const s=o.split(`
|
|
61
|
+
`);let c=0;typeof t=="number"&&(c=t<0?Math.max(0,s.length+t):Math.max(0,t-1));const l=typeof n=="number"&&n>0?Math.min(s.length,c+n):s.length,d=s.slice(c,l).join(`
|
|
62
|
+
`);return{kind:"text",body:Pi(gb(d,c+1))}}function yb(e,t){const n=cr(e);return ob(cb(n),{recursive:!0}),jp(n,t,"utf8"),`Wrote ${Buffer.byteLength(t,"utf8")} bytes to ${n}`}function Eb(e,t){if(t.length===0)return 0;let n=0,u=e.indexOf(t);for(;u!==-1;)n+=1,u=e.indexOf(t,u+t.length);return n}function bb(e,t,n,u){const r=cr(e);if(!t0(r))return`File does not exist: ${r}`;if(t===n)return"old_string and new_string are identical - nothing to do.";const i=r0(r,"utf8"),a=Eb(i,t);if(a===0)return`old_string was not found in ${r}. Ensure it matches the file exactly, including whitespace and indentation.`;if(a>1&&!u)return`old_string is not unique in ${r} (found ${a} matches). Add more surrounding context to make it unique, or set replace_all to replace every occurrence.`;const o=i.split(t).join(n);return jp(r,o,"utf8"),`Replaced ${u?a:1} occurrence${u&&a>1?"s":""} in ${r}`}function Db(e){const t=cr(e);return t0(t)?Tp(t).isDirectory()?`Path is a directory - refusing to delete: ${t}`:(sb(t),`Deleted ${t}`):`File did not exist (nothing deleted): ${t}`}import{execFile as $b,spawnSync as wb}from"child_process";import{readFileSync as Cb,statSync as zp}from"fs";var Op=(e,t,n)=>{const u=e instanceof RegExp?Np(e,n):e,r=t instanceof RegExp?Np(t,n):t,i=u!==null&&r!=null&&kb(u,r,n);return i&&{start:i[0],end:i[1],pre:n.slice(0,i[0]),body:n.slice(i[0]+u.length,i[1]),post:n.slice(i[1]+r.length)}},Np=(e,t)=>{const n=t.match(e);return n?n[0]:null},kb=(e,t,n)=>{let u,r,i,a,o,s=n.indexOf(e),c=n.indexOf(t,s+1),l=s;if(s>=0&&c>0){if(e===t)return[s,c];for(u=[],i=n.length;l>=0&&!o;){if(l===s)u.push(l),s=n.indexOf(e,l+1);else if(u.length===1){const d=u.pop();d!==void 0&&(o=[d,c])}else r=u.pop(),r!==void 0&&r<i&&(i=r,a=c),c=n.indexOf(t,l+1);l=s<c&&s>=0?s:c}u.length&&a!==void 0&&(o=[i,a])}return o},Rp="\0SLASH"+Math.random()+"\0",Zp="\0OPEN"+Math.random()+"\0",u0="\0CLOSE"+Math.random()+"\0",Up="\0COMMA"+Math.random()+"\0",Mp="\0PERIOD"+Math.random()+"\0",Sb=new RegExp(Rp,"g"),Ab=new RegExp(Zp,"g"),xb=new RegExp(u0,"g"),Bb=new RegExp(Up,"g"),Ib=new RegExp(Mp,"g"),Fb=/\\\\/g,Tb=/\\{/g,jb=/\\}/g,Pb=/\\,/g,zb=/\\\./g,Ob=1e5;function i0(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function Nb(e){return e.replace(Fb,Rp).replace(Tb,Zp).replace(jb,u0).replace(Pb,Up).replace(zb,Mp)}function Rb(e){return e.replace(Sb,"\\").replace(Ab,"{").replace(xb,"}").replace(Bb,",").replace(Ib,".")}function Lp(e){if(!e)return[""];const t=[],n=Op("{","}",e);if(!n)return e.split(",");const{pre:u,body:r,post:i}=n,a=u.split(",");a[a.length-1]+="{"+r+"}";const o=Lp(i);return i.length&&(a[a.length-1]+=o.shift(),a.push.apply(a,o)),t.push.apply(t,a),t}function Zb(e,t={}){if(!e)return[];const{max:n=Ob}=t;return e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),Zn(Nb(e),n,!0).map(Rb)}function Ub(e){return"{"+e+"}"}function Mb(e){return/^-?0\d/.test(e)}function Lb(e,t){return e<=t}function qb(e,t){return e>=t}function Zn(e,t,n){const u=[],r=Op("{","}",e);if(!r)return[e];const i=r.pre,a=r.post.length?Zn(r.post,t,!1):[""];if(/\$$/.test(r.pre))for(let o=0;o<a.length&&o<t;o++){const s=i+"{"+r.body+"}"+a[o];u.push(s)}else{const o=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(r.body),s=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(r.body),c=o||s,l=r.body.indexOf(",")>=0;if(!c&&!l)return r.post.match(/,(?!,).*\}/)?(e=r.pre+"{"+r.body+u0+r.post,Zn(e,t,!0)):[e];let d;if(c)d=r.body.split(/\.\./);else if(d=Lp(r.body),d.length===1&&d[0]!==void 0&&(d=Zn(d[0],t,!1).map(Ub),d.length===1))return a.map(p=>r.pre+d[0]+p);let m;if(c&&d[0]!==void 0&&d[1]!==void 0){const p=i0(d[0]),E=i0(d[1]),b=Math.max(d[0].length,d[1].length);let g=d.length===3&&d[2]!==void 0?Math.abs(i0(d[2])):1,f=Lb;E<p&&(g*=-1,f=qb);const v=d.some(Mb);m=[];for(let D=p;f(D,E);D+=g){let C;if(s)C=String.fromCharCode(D),C==="\\"&&(C="");else if(C=String(D),v){const w=b-C.length;if(w>0){const h=new Array(w+1).join("0");D<0?C="-"+h+C.slice(1):C=h+C}}m.push(C)}}else{m=[];for(let p=0;p<d.length;p++)m.push.apply(m,Zn(d[p],t,!1))}for(let p=0;p<m.length;p++)for(let E=0;E<a.length&&u.length<t;E++){const b=i+m[p]+a[E];(!n||c||b)&&u.push(b)}}return u}var Vb=1024*64,zi=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>Vb)throw new TypeError("pattern is too long")},Jb={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},Un=e=>e.replace(/[[\]\\-]/g,"\\$&"),Wb=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),qp=e=>e.join(""),Hb=(e,t)=>{const n=t;if(e.charAt(n)!=="[")throw new Error("not in a brace expression");const u=[],r=[];let i=n+1,a=!1,o=!1,s=!1,c=!1,l=n,d="";e:for(;i<e.length;){const b=e.charAt(i);if((b==="!"||b==="^")&&i===n+1){c=!0,i++;continue}if(b==="]"&&a&&!s){l=i+1;break}if(a=!0,b==="\\"&&!s){s=!0,i++;continue}if(b==="["&&!s){for(const[g,[f,$,v]]of Object.entries(Jb))if(e.startsWith(g,i)){if(d)return["$.",!1,e.length-n,!0];i+=g.length,v?r.push(f):u.push(f),o=o||$;continue e}}if(s=!1,d){b>d?u.push(Un(d)+"-"+Un(b)):b===d&&u.push(Un(b)),d="",i++;continue}if(e.startsWith("-]",i+1)){u.push(Un(b+"-")),i+=2;continue}if(e.startsWith("-",i+1)){d=b,i+=2;continue}u.push(Un(b)),i++}if(l<i)return["",!1,0,!1];if(!u.length&&!r.length)return["$.",!1,e.length-n,!0];if(r.length===0&&u.length===1&&/^\\?.$/.test(u[0])&&!c){const b=u[0].length===2?u[0].slice(-1):u[0];return[Wb(b),!1,l-n,!1]}const m="["+(c?"^":"")+qp(u)+"]",p="["+(c?"":"^")+qp(r)+"]";return[u.length&&r.length?"("+m+"|"+p+")":u.length?m:p,o,l-n,!0]},Jr=(e,{windowsPathsNoEscape:t=!1,magicalBraces:n=!0}={})=>n?t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"):t?e.replace(/\[([^\/\\{}])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\{}])\]/g,"$1$2").replace(/\\([^\/{}])/g,"$1"),ct,Gb=new Set(["!","?","+","*","@"]),a0=e=>Gb.has(e),Vp=e=>a0(e.type),Kb=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),Xb=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),Yb=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),Jp=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),Qb="(?!(?:^|/)\\.\\.?(?:$|/))",Oi="(?!\\.)",e5=new Set(["[","."]),t5=new Set(["..","."]),r5=new Set("().*{}+?[]^$\\!"),n5=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),o0="[^/]",Wp=o0+"*?",Hp=o0+"+?",u5=0,s0=class{type;#e;#n;#u=!1;#t=[];#a;#$;#_;#d=!1;#o;#f;#l=!1;id=++u5;get depth(){return(this.#a?.depth??-1)+1}[Symbol.for("nodejs.util.inspect.custom")](){return{"@@type":"AST",id:this.id,type:this.type,root:this.#e.id,parent:this.#a?.id,depth:this.depth,partsLength:this.#t.length,parts:this.#t}}constructor(e,t,n={}){this.type=e,e&&(this.#n=!0),this.#a=t,this.#e=this.#a?this.#a.#e:this,this.#o=this.#e===this?n:this.#e.#o,this.#_=this.#e===this?[]:this.#e.#_,e==="!"&&!this.#e.#d&&this.#_.push(this),this.#$=this.#a?this.#a.#t.length:0}get hasMagic(){if(this.#n!==void 0)return this.#n;for(const e of this.#t)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#n=!0;return this.#n}toString(){return this.#f!==void 0?this.#f:this.type?this.#f=this.type+"("+this.#t.map(e=>String(e)).join("|")+")":this.#f=this.#t.map(e=>String(e)).join("")}#s(){if(this!==this.#e)throw new Error("should only call on root");if(this.#d)return this;this.toString(),this.#d=!0;let e;for(;e=this.#_.pop();){if(e.type!=="!")continue;let t=e,n=t.#a;for(;n;){for(let u=t.#$+1;!n.type&&u<n.#t.length;u++)for(const r of e.#t){if(typeof r=="string")throw new Error("string part in extglob AST??");r.copyIn(n.#t[u])}t=n,n=t.#a}}return this}push(...e){for(const t of e)if(t!==""){if(typeof t!="string"&&!(t instanceof ct&&t.#a===this))throw new Error("invalid part: "+t);this.#t.push(t)}}toJSON(){const e=this.type===null?this.#t.slice().map(t=>typeof t=="string"?t:t.toJSON()):[this.type,...this.#t.map(t=>t.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#d&&this.#a?.type==="!")&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#a?.isStart())return!1;if(this.#$===0)return!0;const e=this.#a;for(let t=0;t<this.#$;t++){const n=e.#t[t];if(!(n instanceof ct&&n.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#a?.type==="!")return!0;if(!this.#a?.isEnd())return!1;if(!this.type)return this.#a?.isEnd();const e=this.#a?this.#a.#t.length:0;return this.#$===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){const t=new ct(this.type,e);for(const n of this.#t)t.copyIn(n);return t}static#i(e,t,n,u,r){const i=u.maxExtglobRecursion??2;let a=!1,o=!1,s=-1,c=!1;if(t.type===null){let E=n,b="";for(;E<e.length;){const g=e.charAt(E++);if(a||g==="\\"){a=!a,b+=g;continue}if(o){E===s+1?(g==="^"||g==="!")&&(c=!0):g==="]"&&!(E===s+2&&c)&&(o=!1),b+=g;continue}else if(g==="["){o=!0,s=E,c=!1,b+=g;continue}if(!u.noext&&a0(g)&&e.charAt(E)==="("&&r<=i){t.push(b),b="";const $=new ct(g,t);E=ct.#i(e,$,E,u,r+1),t.push($);continue}b+=g}return t.push(b),E}let l=n+1,d=new ct(null,t);const m=[];let p="";for(;l<e.length;){const E=e.charAt(l++);if(a||E==="\\"){a=!a,p+=E;continue}if(o){l===s+1?(E==="^"||E==="!")&&(c=!0):E==="]"&&!(l===s+2&&c)&&(o=!1),p+=E;continue}else if(E==="["){o=!0,s=l,c=!1,p+=E;continue}if(!u.noext&&a0(E)&&e.charAt(l)==="("&&(r<=i||t&&t.#m(E))){const g=t&&t.#m(E)?0:1;d.push(p),p="";const f=new ct(E,d);d.push(f),l=ct.#i(e,f,l,u,r+g);continue}if(E==="|"){d.push(p),p="",m.push(d),d=new ct(null,t);continue}if(E===")")return p===""&&t.#t.length===0&&(t.#l=!0),d.push(p),p="",t.push(...m,d),l;p+=E}return t.type=null,t.#n=void 0,t.#t=[e.substring(n-1)],l}#y(e){return this.#b(e,Xb)}#b(e,t=Kb){if(!e||typeof e!="object"||e.type!==null||e.#t.length!==1||this.type===null)return!1;const n=e.#t[0];return!n||typeof n!="object"||n.type===null?!1:this.#m(n.type,t)}#m(e,t=Yb){return!!t.get(this.type)?.includes(e)}#p(e,t){const n=e.#t[0],u=new ct(null,n,this.options);u.#t.push(""),n.push(u),this.#k(e,t)}#k(e,t){const n=e.#t[0];this.#t.splice(t,1,...n.#t);for(const u of n.#t)typeof u=="object"&&(u.#a=this);this.#f=void 0}#v(e){return!!Jp.get(this.type)?.has(e)}#D(e){if(!e||typeof e!="object"||e.type!==null||e.#t.length!==1||this.type===null||this.#t.length!==1)return!1;const t=e.#t[0];return!t||typeof t!="object"||t.type===null?!1:this.#v(t.type)}#w(e){const t=Jp.get(this.type),n=e.#t[0],u=t?.get(n.type);if(!u)return!1;this.#t=n.#t;for(const r of this.#t)typeof r=="object"&&(r.#a=this);this.type=u,this.#f=void 0,this.#l=!1}static fromGlob(e,t={}){const n=new ct(null,void 0,t);return ct.#i(e,n,0,t,0),n}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();const e=this.toString(),[t,n,u,r]=this.toRegExpSource();if(!(u||this.#n||this.#o.nocase&&!this.#o.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return n;const a=(this.#o.nocase?"i":"")+(r?"u":"");return Object.assign(new RegExp(`^${t}$`,a),{_src:t,_glob:e})}get options(){return this.#o}toRegExpSource(e){const t=e??!!this.#o.dot;if(this.#e===this&&(this.#h(),this.#s()),!Vp(this)){const o=this.isStart()&&this.isEnd()&&!this.#t.some(m=>typeof m!="string"),s=this.#t.map(m=>{const[p,E,b,g]=typeof m=="string"?ct.#E(m,this.#n,o):m.toRegExpSource(e);return this.#n=this.#n||b,this.#u=this.#u||g,p}).join("");let c="";if(this.isStart()&&typeof this.#t[0]=="string"&&!(this.#t.length===1&&t5.has(this.#t[0]))){const p=e5,E=t&&p.has(s.charAt(0))||s.startsWith("\\.")&&p.has(s.charAt(2))||s.startsWith("\\.\\.")&&p.has(s.charAt(4)),b=!t&&!e&&p.has(s.charAt(0));c=E?Qb:b?Oi:""}let l="";return this.isEnd()&&this.#e.#d&&this.#a?.type==="!"&&(l="(?:$|\\/)"),[c+s+l,Jr(s),this.#n=!!this.#n,this.#u]}const n=this.type==="*"||this.type==="+",u=this.type==="!"?"(?:(?!(?:":"(?:";let r=this.#g(t);if(this.isStart()&&this.isEnd()&&!r&&this.type!=="!"){const o=this.toString(),s=this;return s.#t=[o],s.type=null,s.#n=void 0,[o,Jr(this.toString()),!1,!1]}let i=!n||e||t||!Oi?"":this.#g(!0);i===r&&(i=""),i&&(r=`(?:${r})(?:${i})*?`);let a="";if(this.type==="!"&&this.#l)a=(this.isStart()&&!t?Oi:"")+Hp;else{const o=this.type==="!"?"))"+(this.isStart()&&!t&&!e?Oi:"")+Wp+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&i?")":this.type==="*"&&i?")?":`)${this.type}`;a=u+r+o}return[a,Jr(r),this.#n=!!this.#n,this.#u]}#h(){if(Vp(this)){let e=0,t=!1;do{t=!0;for(let n=0;n<this.#t.length;n++){const u=this.#t[n];typeof u=="object"&&(u.#h(),this.#b(u)?(t=!1,this.#k(u,n)):this.#y(u)?(t=!1,this.#p(u,n)):this.#D(u)&&(t=!1,this.#w(u)))}}while(!t&&++e<10)}else for(const e of this.#t)typeof e=="object"&&e.#h();this.#f=void 0}#g(e){return this.#t.map(t=>{if(typeof t=="string")throw new Error("string type in extglob ast??");const[n,u,r,i]=t.toRegExpSource(e);return this.#u=this.#u||i,n}).filter(t=>!(this.isStart()&&this.isEnd())||!!t).join("|")}static#E(e,t,n=!1){let u=!1,r="",i=!1,a=!1;for(let o=0;o<e.length;o++){const s=e.charAt(o);if(u){u=!1,r+=(r5.has(s)?"\\":"")+s;continue}if(s==="*"){if(a)continue;a=!0,r+=n&&/^[*]+$/.test(e)?Hp:Wp,t=!0;continue}else a=!1;if(s==="\\"){o===e.length-1?r+="\\\\":u=!0;continue}if(s==="["){const[c,l,d,m]=Hb(e,o);if(d){r+=c,i=i||l,o+=d-1,t=t||m;continue}}if(s==="?"){r+=o0,t=!0;continue}r+=n5(s)}return[r,Jr(e),!!t,i]}};ct=s0;var Gp=(e,{windowsPathsNoEscape:t=!1,magicalBraces:n=!1}={})=>n?t?e.replace(/[?*()[\]{}]/g,"[$&]"):e.replace(/[?*()[\]\\{}]/g,"\\$&"):t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),nt=(e,t,n={})=>(zi(t),!n.nocomment&&t.charAt(0)==="#"?!1:new dr(t,n).match(e)),i5=/^\*+([^+@!?\*\[\(]*)$/,a5=e=>t=>!t.startsWith(".")&&t.endsWith(e),o5=e=>t=>t.endsWith(e),s5=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),c5=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),l5=/^\*+\.\*+$/,d5=e=>!e.startsWith(".")&&e.includes("."),f5=e=>e!=="."&&e!==".."&&e.includes("."),h5=/^\.\*+$/,m5=e=>e!=="."&&e!==".."&&e.startsWith("."),p5=/^\*+$/,v5=e=>e.length!==0&&!e.startsWith("."),g5=e=>e.length!==0&&e!=="."&&e!=="..",_5=/^\?+([^+@!?\*\[\(]*)?$/,y5=([e,t=""])=>{const n=Kp([e]);return t?(t=t.toLowerCase(),u=>n(u)&&u.toLowerCase().endsWith(t)):n},E5=([e,t=""])=>{const n=Xp([e]);return t?(t=t.toLowerCase(),u=>n(u)&&u.toLowerCase().endsWith(t)):n},b5=([e,t=""])=>{const n=Xp([e]);return t?u=>n(u)&&u.endsWith(t):n},D5=([e,t=""])=>{const n=Kp([e]);return t?u=>n(u)&&u.endsWith(t):n},Kp=([e])=>{const t=e.length;return n=>n.length===t&&!n.startsWith(".")},Xp=([e])=>{const t=e.length;return n=>n.length===t&&n!=="."&&n!==".."},Yp=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Qp={win32:{sep:"\\"},posix:{sep:"/"}},$5=Yp==="win32"?Qp.win32.sep:Qp.posix.sep;nt.sep=$5;var Me=Symbol("globstar **");nt.GLOBSTAR=Me;var w5="[^/]",C5=w5+"*?",k5="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",S5="(?:(?!(?:\\/|^)\\.).)*?",A5=(e,t={})=>n=>nt(n,e,t);nt.filter=A5;var wt=(e,t={})=>Object.assign({},e,t),x5=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return nt;const t=nt;return Object.assign((u,r,i={})=>t(u,r,wt(e,i)),{Minimatch:class extends t.Minimatch{constructor(r,i={}){super(r,wt(e,i))}static defaults(r){return t.defaults(wt(e,r)).Minimatch}},AST:class extends t.AST{constructor(r,i,a={}){super(r,i,wt(e,a))}static fromGlob(r,i={}){return t.AST.fromGlob(r,wt(e,i))}},unescape:(u,r={})=>t.unescape(u,wt(e,r)),escape:(u,r={})=>t.escape(u,wt(e,r)),filter:(u,r={})=>t.filter(u,wt(e,r)),defaults:u=>t.defaults(wt(e,u)),makeRe:(u,r={})=>t.makeRe(u,wt(e,r)),braceExpand:(u,r={})=>t.braceExpand(u,wt(e,r)),match:(u,r,i={})=>t.match(u,r,wt(e,i)),sep:t.sep,GLOBSTAR:Me})};nt.defaults=x5;var e4=(e,t={})=>(zi(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:Zb(e,{max:t.braceExpandMax}));nt.braceExpand=e4;var B5=(e,t={})=>new dr(e,t).makeRe();nt.makeRe=B5;var I5=(e,t,n={})=>{const u=new dr(t,n);return e=e.filter(r=>u.match(r)),u.options.nonull&&!e.length&&e.push(t),e};nt.match=I5;var t4=/[?*]|[+@!]\(.*?\)|\[|\]/,F5=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),dr=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,t={}){zi(e),t=t||{},this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion??200,this.pattern=e,this.platform=t.platform||Yp,this.isWindows=this.platform==="win32";const n="allowWindowsEscape";this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t[n]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot!==void 0?t.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const e of this.set)for(const t of e)if(typeof t!="string")return!0;return!1}debug(...e){}make(){const e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...r)=>console.error(...r)),this.debug(this.pattern,this.globSet);const n=this.globSet.map(r=>this.slashSplit(r));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let u=this.globParts.map((r,i,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){const o=r[0]===""&&r[1]===""&&(r[2]==="?"||!t4.test(r[2]))&&!t4.test(r[3]),s=/^[a-z]:/i.test(r[0]);if(o)return[...r.slice(0,4),...r.slice(4).map(c=>this.parse(c))];if(s)return[r[0],...r.slice(1).map(c=>this.parse(c))]}return r.map(o=>this.parse(o))});if(this.debug(this.pattern,u),this.set=u.filter(r=>r.indexOf(!1)===-1),this.isWindows)for(let r=0;r<this.set.length;r++){const i=this.set[r];i[0]===""&&i[1]===""&&this.globParts[r][2]==="?"&&typeof i[3]=="string"&&/^[a-z]:$/i.test(i[3])&&(i[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let n=0;n<e.length;n++)for(let u=0;u<e[n].length;u++)e[n][u]==="**"&&(e[n][u]="*");const{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):t>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(t=>{let n=-1;for(;(n=t.indexOf("**",n+1))!==-1;){let u=n;for(;t[u+1]==="**";)u++;u!==n&&t.splice(n,u-n)}return t})}levelOneOptimize(e){return e.map(t=>(t=t.reduce((n,u)=>{const r=n[n.length-1];return u==="**"&&r==="**"?n:u===".."&&r&&r!==".."&&r!=="."&&r!=="**"?(n.pop(),n):(n.push(u),n)},[]),t.length===0?[""]:t))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let u=1;u<e.length-1;u++){const r=e[u];u===1&&r===""&&e[0]===""||(r==="."||r==="")&&(t=!0,e.splice(u,1),u--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(t=!0,e.pop())}let n=0;for(;(n=e.indexOf("..",n+1))!==-1;){const u=e[n-1];u&&u!=="."&&u!==".."&&u!=="**"&&(t=!0,e.splice(n-1,2),n-=2)}}while(t);return e.length===0?[""]:e}firstPhasePreProcess(e){let t=!1;do{t=!1;for(let n of e){let u=-1;for(;(u=n.indexOf("**",u+1))!==-1;){let i=u;for(;n[i+1]==="**";)i++;i>u&&n.splice(u+1,i-u);let a=n[u+1];const o=n[u+2],s=n[u+3];if(a!==".."||!o||o==="."||o===".."||!s||s==="."||s==="..")continue;t=!0,n.splice(u,1);const c=n.slice(0);c[u]="**",e.push(c),u--}if(!this.preserveMultipleSlashes){for(let i=1;i<n.length-1;i++){const a=n[i];i===1&&a===""&&n[0]===""||(a==="."||a==="")&&(t=!0,n.splice(i,1),i--)}n[0]==="."&&n.length===2&&(n[1]==="."||n[1]==="")&&(t=!0,n.pop())}let r=0;for(;(r=n.indexOf("..",r+1))!==-1;){const i=n[r-1];if(i&&i!=="."&&i!==".."&&i!=="**"){t=!0;const o=r===1&&n[r+1]==="**"?["."]:[];n.splice(r-1,2,...o),n.length===0&&n.push(""),r-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let n=t+1;n<e.length;n++){const u=this.partsMatch(e[t],e[n],!this.preserveMultipleSlashes);if(u){e[t]=[],e[n]=u;break}}return e.filter(t=>t.length)}partsMatch(e,t,n=!1){let u=0,r=0,i=[],a="";for(;u<e.length&&r<t.length;)if(e[u]===t[r])i.push(a==="b"?t[r]:e[u]),u++,r++;else if(n&&e[u]==="**"&&t[r]===e[u+1])i.push(e[u]),u++;else if(n&&t[r]==="**"&&e[u]===t[r+1])i.push(t[r]),r++;else if(e[u]==="*"&&t[r]&&(this.options.dot||!t[r].startsWith("."))&&t[r]!=="**"){if(a==="b")return!1;a="a",i.push(e[u]),u++,r++}else if(t[r]==="*"&&e[u]&&(this.options.dot||!e[u].startsWith("."))&&e[u]!=="**"){if(a==="a")return!1;a="b",i.push(t[r]),u++,r++}else return!1;return e.length===t.length&&i}parseNegate(){if(this.nonegate)return;const e=this.pattern;let t=!1,n=0;for(let u=0;u<e.length&&e.charAt(u)==="!";u++)t=!t,n++;n&&(this.pattern=e.slice(n)),this.negate=t}matchOne(e,t,n=!1){let u=0,r=0;if(this.isWindows){const a=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),o=!a&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),s=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),c=!s&&t[0]===""&&t[1]===""&&t[2]==="?"&&typeof t[3]=="string"&&/^[a-z]:$/i.test(t[3]),l=o?3:a?0:void 0,d=c?3:s?0:void 0;if(typeof l=="number"&&typeof d=="number"){const[m,p]=[e[l],t[d]];m.toLowerCase()===p.toLowerCase()&&(t[d]=m,r=d,u=l)}}const{optimizationLevel:i=1}=this.options;return i>=2&&(e=this.levelTwoFileOptimize(e)),t.includes(Me)?this.#e(e,t,n,u,r):this.#u(e,t,n,u,r)}#e(e,t,n,u,r){const i=t.indexOf(Me,r),a=t.lastIndexOf(Me),[o,s,c]=n?[t.slice(r,i),t.slice(i+1),[]]:[t.slice(r,i),t.slice(i+1,a),t.slice(a+1)];if(o.length){const f=e.slice(u,u+o.length);if(!this.#u(f,o,n,0,0))return!1;u+=o.length,r+=o.length}let l=0;if(c.length){if(c.length+u>e.length)return!1;let f=e.length-c.length;if(this.#u(e,c,n,f,0))l=c.length;else{if(e[e.length-1]!==""||u+c.length===e.length||(f--,!this.#u(e,c,n,f,0)))return!1;l=c.length+1}}if(!s.length){let f=!!l;for(let $=u;$<e.length-l;$++){const v=String(e[$]);if(f=!0,v==="."||v===".."||!this.options.dot&&v.startsWith("."))return!1}return n||f}const d=[[[],0]];let m=d[0],p=0;const E=[0];for(const f of s)f===Me?(E.push(p),m=[[],0],d.push(m)):(m[0].push(f),p++);let b=d.length-1;const g=e.length-l;for(const f of d)f[1]=g-(E[b--]+f[0].length);return!!this.#n(e,d,u,0,n,0,!!l)}#n(e,t,n,u,r,i,a){const o=t[u];if(!o){for(let l=n;l<e.length;l++){a=!0;const d=e[l];if(d==="."||d===".."||!this.options.dot&&d.startsWith("."))return!1}return a}const[s,c]=o;for(;n<=c;){if(this.#u(e.slice(0,n+s.length),s,r,n,0)&&i<this.maxGlobstarRecursion){const m=this.#n(e,t,n+s.length,u+1,r,i+1,a);if(m!==!1)return m}const d=e[n];if(d==="."||d===".."||!this.options.dot&&d.startsWith("."))return!1;n++}return r||null}#u(e,t,n,u,r){let i,a,o,s;for(i=u,a=r,s=e.length,o=t.length;i<s&&a<o;i++,a++){this.debug("matchOne loop");let c=t[a],l=e[i];if(this.debug(t,c,l),c===!1||c===Me)return!1;let d;if(typeof c=="string"?(d=l===c,this.debug("string match",c,l,d)):(d=c.test(l),this.debug("pattern match",c,l,d)),!d)return!1}if(i===s&&a===o)return!0;if(i===s)return n;if(a===o)return i===s-1&&e[i]==="";throw new Error("wtf?")}braceExpand(){return e4(this.pattern,this.options)}parse(e){zi(e);const t=this.options;if(e==="**")return Me;if(e==="")return"";let n,u=null;(n=e.match(p5))?u=t.dot?g5:v5:(n=e.match(i5))?u=(t.nocase?t.dot?c5:s5:t.dot?o5:a5)(n[1]):(n=e.match(_5))?u=(t.nocase?t.dot?E5:y5:t.dot?b5:D5)(n):(n=e.match(l5))?u=t.dot?f5:d5:(n=e.match(h5))&&(u=m5);const r=s0.fromGlob(e,this.options).toMMPattern();return u&&typeof r=="object"&&Reflect.defineProperty(r,"test",{value:u}),r}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const e=this.set;if(!e.length)return this.regexp=!1,this.regexp;const t=this.options,n=t.noglobstar?C5:t.dot?k5:S5,u=new Set(t.nocase?["i"]:[]);let r=e.map(o=>{const s=o.map(l=>{if(l instanceof RegExp)for(const d of l.flags.split(""))u.add(d);return typeof l=="string"?F5(l):l===Me?Me:l._src});s.forEach((l,d)=>{const m=s[d+1],p=s[d-1];l!==Me||p===Me||(p===void 0?m!==void 0&&m!==Me?s[d+1]="(?:\\/|"+n+"\\/)?"+m:s[d]=n:m===void 0?s[d-1]=p+"(?:\\/|\\/"+n+")?":m!==Me&&(s[d-1]=p+"(?:\\/|\\/"+n+"\\/)"+m,s[d+1]=Me))});const c=s.filter(l=>l!==Me);if(this.partial&&c.length>=1){const l=[];for(let d=1;d<=c.length;d++)l.push(c.slice(0,d).join("/"));return"(?:"+l.join("|")+")"}return c.join("/")}).join("|");const[i,a]=e.length>1?["(?:",")"]:["",""];r="^"+i+r+a+"$",this.partial&&(r="^(?:\\/|"+i+r.slice(1,-1)+a+")$"),this.negate&&(r="^(?!"+r+").+$");try{this.regexp=new RegExp(r,[...u].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&t)return!0;const n=this.options;this.isWindows&&(e=e.split("\\").join("/"));const u=this.slashSplit(e);this.debug(this.pattern,"split",u);const r=this.set;this.debug(this.pattern,"set",r);let i=u[u.length-1];if(!i)for(let a=u.length-2;!i&&a>=0;a--)i=u[a];for(let a=0;a<r.length;a++){const o=r[a];let s=u;if(n.matchBase&&o.length===1&&(s=[i]),this.matchOne(s,o,t))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return nt.defaults(e).Minimatch}};nt.AST=s0,nt.Minimatch=dr,nt.escape=Gp,nt.unescape=Jr;import{fileURLToPath as T5}from"url";var j5=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,r4=new Set,c0=typeof process=="object"&&process?process:{},n4=(e,t,n,u)=>{typeof c0.emitWarning=="function"?c0.emitWarning(e,t,n,u):console.error(`[${n}] ${t}: ${e}`)},Ni=globalThis.AbortController,u4=globalThis.AbortSignal;if(typeof Ni>"u"){u4=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(u,r){this._onabort.push(r)}},Ni=class{constructor(){t()}signal=new u4;abort(u){if(!this.signal.aborted){this.signal.reason=u,this.signal.aborted=!0;for(const r of this.signal._onabort)r(u);this.signal.onabort?.(u)}}};let e=c0.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1";const t=()=>{e&&(e=!1,n4("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}var P5=e=>!r4.has(e),fr=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),i4=e=>fr(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?Ri:null:null,Ri=class extends Array{constructor(e){super(e),this.fill(0)}},z5=class Xn{heap;length;static#e=!1;static create(t){const n=i4(t);if(!n)return[];Xn.#e=!0;const u=new Xn(t,n);return Xn.#e=!1,u}constructor(t,n){if(!Xn.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},Zi=class tv{#e;#n;#u;#t;#a;#$;#_;#d;get perf(){return this.#d}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#f;#l;#s;#i;#y;#b;#m;#p;#k;#v;#D;#w;#h;#g;#E;#S;#r;#j;static unsafeExposeInternals(t){return{starts:t.#w,ttls:t.#h,autopurgeTimers:t.#g,sizes:t.#D,keyMap:t.#l,keyList:t.#s,valList:t.#i,next:t.#y,prev:t.#b,get head(){return t.#m},get tail(){return t.#p},free:t.#k,isBackgroundFetch:n=>t.#c(n),backgroundFetch:(n,u,r,i)=>t.#M(n,u,r,i),moveToTail:n=>t.#z(n),indexes:n=>t.#B(n),rindexes:n=>t.#I(n),isStale:n=>t.#C(n)}}get max(){return this.#e}get maxSize(){return this.#n}get calculatedSize(){return this.#f}get size(){return this.#o}get fetchMethod(){return this.#$}get memoMethod(){return this.#_}get dispose(){return this.#u}get onInsert(){return this.#t}get disposeAfter(){return this.#a}constructor(t){const{max:n=0,ttl:u,ttlResolution:r=1,ttlAutopurge:i,updateAgeOnGet:a,updateAgeOnHas:o,allowStale:s,dispose:c,onInsert:l,disposeAfter:d,noDisposeOnSet:m,noUpdateTTL:p,maxSize:E=0,maxEntrySize:b=0,sizeCalculation:g,fetchMethod:f,memoMethod:$,noDeleteOnFetchRejection:v,noDeleteOnStaleGet:D,allowStaleOnFetchRejection:C,allowStaleOnFetchAbort:w,ignoreFetchAbort:h,perf:y}=t;if(y!==void 0&&typeof y?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#d=y??j5,n!==0&&!fr(n))throw new TypeError("max option must be a nonnegative integer");const k=n?i4(n):Array;if(!k)throw new Error("invalid max value: "+n);if(this.#e=n,this.#n=E,this.maxEntrySize=b||this.#n,this.sizeCalculation=g,this.sizeCalculation){if(!this.#n&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if($!==void 0&&typeof $!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#_=$,f!==void 0&&typeof f!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#$=f,this.#S=!!f,this.#l=new Map,this.#s=new Array(n).fill(void 0),this.#i=new Array(n).fill(void 0),this.#y=new k(n),this.#b=new k(n),this.#m=0,this.#p=0,this.#k=z5.create(n),this.#o=0,this.#f=0,typeof c=="function"&&(this.#u=c),typeof l=="function"&&(this.#t=l),typeof d=="function"?(this.#a=d,this.#v=[]):(this.#a=void 0,this.#v=void 0),this.#E=!!this.#u,this.#j=!!this.#t,this.#r=!!this.#a,this.noDisposeOnSet=!!m,this.noUpdateTTL=!!p,this.noDeleteOnFetchRejection=!!v,this.allowStaleOnFetchRejection=!!C,this.allowStaleOnFetchAbort=!!w,this.ignoreFetchAbort=!!h,this.maxEntrySize!==0){if(this.#n!==0&&!fr(this.#n))throw new TypeError("maxSize must be a positive integer if specified");if(!fr(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#q()}if(this.allowStale=!!s,this.noDeleteOnStaleGet=!!D,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!o,this.ttlResolution=fr(r)||r===0?r:1,this.ttlAutopurge=!!i,this.ttl=u||0,this.ttl){if(!fr(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#F()}if(this.#e===0&&this.ttl===0&&this.#n===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#n){const S="LRU_CACHE_UNBOUNDED";P5(S)&&(r4.add(S),n4("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",S,tv))}}getRemainingTTL(t){return this.#l.has(t)?1/0:0}#F(){const t=new Ri(this.#e),n=new Ri(this.#e);this.#h=t,this.#w=n;const u=this.ttlAutopurge?new Array(this.#e):void 0;this.#g=u,this.#N=(a,o,s=this.#d.now())=>{if(n[a]=o!==0?s:0,t[a]=o,u?.[a]&&(clearTimeout(u[a]),u[a]=void 0),o!==0&&u){const c=setTimeout(()=>{this.#C(a)&&this.#x(this.#s[a],"expire")},o+1);c.unref&&c.unref(),u[a]=c}},this.#A=a=>{n[a]=t[a]!==0?this.#d.now():0},this.#T=(a,o)=>{if(t[o]){const s=t[o],c=n[o];if(!s||!c)return;a.ttl=s,a.start=c,a.now=r||i();const l=a.now-c;a.remainingTTL=s-l}};let r=0;const i=()=>{const a=this.#d.now();if(this.ttlResolution>0){r=a;const o=setTimeout(()=>r=0,this.ttlResolution);o.unref&&o.unref()}return a};this.getRemainingTTL=a=>{const o=this.#l.get(a);if(o===void 0)return 0;const s=t[o],c=n[o];if(!s||!c)return 1/0;const l=(r||i())-c;return s-l},this.#C=a=>{const o=n[a],s=t[a];return!!s&&!!o&&(r||i())-o>s}}#A=()=>{};#T=()=>{};#N=()=>{};#C=()=>!1;#q(){const t=new Ri(this.#e);this.#f=0,this.#D=t,this.#O=n=>{this.#f-=t[n],t[n]=0},this.#R=(n,u,r,i)=>{if(this.#c(u))return 0;if(!fr(r))if(i){if(typeof i!="function")throw new TypeError("sizeCalculation must be a function");if(r=i(u,n),!fr(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return r},this.#P=(n,u,r)=>{if(t[n]=u,this.#n){const i=this.#n-t[n];for(;this.#f>i;)this.#U(!0)}this.#f+=t[n],r&&(r.entrySize=u,r.totalCalculatedSize=this.#f)}}#O=t=>{};#P=(t,n,u)=>{};#R=(t,n,u,r)=>{if(u||r)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#B({allowStale:t=this.allowStale}={}){if(this.#o)for(let n=this.#p;!(!this.#Z(n)||((t||!this.#C(n))&&(yield n),n===this.#m));)n=this.#b[n]}*#I({allowStale:t=this.allowStale}={}){if(this.#o)for(let n=this.#m;!(!this.#Z(n)||((t||!this.#C(n))&&(yield n),n===this.#p));)n=this.#y[n]}#Z(t){return t!==void 0&&this.#l.get(this.#s[t])===t}*entries(){for(const t of this.#B())this.#i[t]!==void 0&&this.#s[t]!==void 0&&!this.#c(this.#i[t])&&(yield[this.#s[t],this.#i[t]])}*rentries(){for(const t of this.#I())this.#i[t]!==void 0&&this.#s[t]!==void 0&&!this.#c(this.#i[t])&&(yield[this.#s[t],this.#i[t]])}*keys(){for(const t of this.#B()){const n=this.#s[t];n!==void 0&&!this.#c(this.#i[t])&&(yield n)}}*rkeys(){for(const t of this.#I()){const n=this.#s[t];n!==void 0&&!this.#c(this.#i[t])&&(yield n)}}*values(){for(const t of this.#B())this.#i[t]!==void 0&&!this.#c(this.#i[t])&&(yield this.#i[t])}*rvalues(){for(const t of this.#I())this.#i[t]!==void 0&&!this.#c(this.#i[t])&&(yield this.#i[t])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t,n={}){for(const u of this.#B()){const r=this.#i[u],i=this.#c(r)?r.__staleWhileFetching:r;if(i!==void 0&&t(i,this.#s[u],this))return this.get(this.#s[u],n)}}forEach(t,n=this){for(const u of this.#B()){const r=this.#i[u],i=this.#c(r)?r.__staleWhileFetching:r;i!==void 0&&t.call(n,i,this.#s[u],this)}}rforEach(t,n=this){for(const u of this.#I()){const r=this.#i[u],i=this.#c(r)?r.__staleWhileFetching:r;i!==void 0&&t.call(n,i,this.#s[u],this)}}purgeStale(){let t=!1;for(const n of this.#I({allowStale:!0}))this.#C(n)&&(this.#x(this.#s[n],"expire"),t=!0);return t}info(t){const n=this.#l.get(t);if(n===void 0)return;const u=this.#i[n],r=this.#c(u)?u.__staleWhileFetching:u;if(r===void 0)return;const i={value:r};if(this.#h&&this.#w){const a=this.#h[n],o=this.#w[n];if(a&&o){const s=a-(this.#d.now()-o);i.ttl=s,i.start=Date.now()}}return this.#D&&(i.size=this.#D[n]),i}dump(){const t=[];for(const n of this.#B({allowStale:!0})){const u=this.#s[n],r=this.#i[n],i=this.#c(r)?r.__staleWhileFetching:r;if(i===void 0||u===void 0)continue;const a={value:i};if(this.#h&&this.#w){a.ttl=this.#h[n];const o=this.#d.now()-this.#w[n];a.start=Math.floor(Date.now()-o)}this.#D&&(a.size=this.#D[n]),t.unshift([u,a])}return t}load(t){this.clear();for(const[n,u]of t){if(u.start){const r=Date.now()-u.start;u.start=this.#d.now()-r}this.set(n,u.value,u)}}set(t,n,u={}){if(n===void 0)return this.delete(t),this;const{ttl:r=this.ttl,start:i,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:o=this.sizeCalculation,status:s}=u;let{noUpdateTTL:c=this.noUpdateTTL}=u;const l=this.#R(t,n,u.size||0,o);if(this.maxEntrySize&&l>this.maxEntrySize)return s&&(s.set="miss",s.maxEntrySizeExceeded=!0),this.#x(t,"set"),this;let d=this.#o===0?void 0:this.#l.get(t);if(d===void 0)d=this.#o===0?this.#p:this.#k.length!==0?this.#k.pop():this.#o===this.#e?this.#U(!1):this.#o,this.#s[d]=t,this.#i[d]=n,this.#l.set(t,d),this.#y[this.#p]=d,this.#b[d]=this.#p,this.#p=d,this.#o++,this.#P(d,l,s),s&&(s.set="add"),c=!1,this.#j&&this.#t?.(n,t,"add");else{this.#z(d);const m=this.#i[d];if(n!==m){if(this.#S&&this.#c(m)){m.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:p}=m;p!==void 0&&!a&&(this.#E&&this.#u?.(p,t,"set"),this.#r&&this.#v?.push([p,t,"set"]))}else a||(this.#E&&this.#u?.(m,t,"set"),this.#r&&this.#v?.push([m,t,"set"]));if(this.#O(d),this.#P(d,l,s),this.#i[d]=n,s){s.set="replace";const p=m&&this.#c(m)?m.__staleWhileFetching:m;p!==void 0&&(s.oldValue=p)}}else s&&(s.set="update");this.#j&&this.onInsert?.(n,t,n===m?"update":"replace")}if(r!==0&&!this.#h&&this.#F(),this.#h&&(c||this.#N(d,r,i),s&&this.#T(s,d)),!a&&this.#r&&this.#v){const m=this.#v;let p;for(;p=m?.shift();)this.#a?.(...p)}return this}pop(){try{for(;this.#o;){const t=this.#i[this.#m];if(this.#U(!0),this.#c(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(t!==void 0)return t}}finally{if(this.#r&&this.#v){const t=this.#v;let n;for(;n=t?.shift();)this.#a?.(...n)}}}#U(t){const n=this.#m,u=this.#s[n],r=this.#i[n];return this.#S&&this.#c(r)?r.__abortController.abort(new Error("evicted")):(this.#E||this.#r)&&(this.#E&&this.#u?.(r,u,"evict"),this.#r&&this.#v?.push([r,u,"evict"])),this.#O(n),this.#g?.[n]&&(clearTimeout(this.#g[n]),this.#g[n]=void 0),t&&(this.#s[n]=void 0,this.#i[n]=void 0,this.#k.push(n)),this.#o===1?(this.#m=this.#p=0,this.#k.length=0):this.#m=this.#y[n],this.#l.delete(u),this.#o--,n}has(t,n={}){const{updateAgeOnHas:u=this.updateAgeOnHas,status:r}=n,i=this.#l.get(t);if(i!==void 0){const a=this.#i[i];if(this.#c(a)&&a.__staleWhileFetching===void 0)return!1;if(this.#C(i))r&&(r.has="stale",this.#T(r,i));else return u&&this.#A(i),r&&(r.has="hit",this.#T(r,i)),!0}else r&&(r.has="miss");return!1}peek(t,n={}){const{allowStale:u=this.allowStale}=n,r=this.#l.get(t);if(r===void 0||!u&&this.#C(r))return;const i=this.#i[r];return this.#c(i)?i.__staleWhileFetching:i}#M(t,n,u,r){const i=n===void 0?void 0:this.#i[n];if(this.#c(i))return i;const a=new Ni,{signal:o}=u;o?.addEventListener("abort",()=>a.abort(o.reason),{signal:a.signal});const s={signal:a.signal,options:u,context:r},c=(b,g=!1)=>{const{aborted:f}=a.signal,$=u.ignoreFetchAbort&&b!==void 0;if(u.status&&(f&&!g?(u.status.fetchAborted=!0,u.status.fetchError=a.signal.reason,$&&(u.status.fetchAbortIgnored=!0)):u.status.fetchResolved=!0),f&&!$&&!g)return d(a.signal.reason);const v=p,D=this.#i[n];return(D===p||$&&g&&D===void 0)&&(b===void 0?v.__staleWhileFetching!==void 0?this.#i[n]=v.__staleWhileFetching:this.#x(t,"fetch"):(u.status&&(u.status.fetchUpdated=!0),this.set(t,b,s.options))),b},l=b=>(u.status&&(u.status.fetchRejected=!0,u.status.fetchError=b),d(b)),d=b=>{const{aborted:g}=a.signal,f=g&&u.allowStaleOnFetchAbort,$=f||u.allowStaleOnFetchRejection,v=$||u.noDeleteOnFetchRejection,D=p;if(this.#i[n]===p&&(!v||D.__staleWhileFetching===void 0?this.#x(t,"fetch"):f||(this.#i[n]=D.__staleWhileFetching)),$)return u.status&&D.__staleWhileFetching!==void 0&&(u.status.returnedStale=!0),D.__staleWhileFetching;if(D.__returned===D)throw b},m=(b,g)=>{const f=this.#$?.(t,i,s);f&&f instanceof Promise&&f.then($=>b($===void 0?void 0:$),g),a.signal.addEventListener("abort",()=>{(!u.ignoreFetchAbort||u.allowStaleOnFetchAbort)&&(b(void 0),u.allowStaleOnFetchAbort&&(b=$=>c($,!0)))})};u.status&&(u.status.fetchDispatched=!0);const p=new Promise(m).then(c,l),E=Object.assign(p,{__abortController:a,__staleWhileFetching:i,__returned:void 0});return n===void 0?(this.set(t,E,{...s.options,status:void 0}),n=this.#l.get(t)):this.#i[n]=E,E}#c(t){if(!this.#S)return!1;const n=t;return!!n&&n instanceof Promise&&n.hasOwnProperty("__staleWhileFetching")&&n.__abortController instanceof Ni}async fetch(t,n={}){const{allowStale:u=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:s=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:l=this.noUpdateTTL,noDeleteOnFetchRejection:d=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:m=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:E=this.allowStaleOnFetchAbort,context:b,forceRefresh:g=!1,status:f,signal:$}=n;if(!this.#S)return f&&(f.fetch="get"),this.get(t,{allowStale:u,updateAgeOnGet:r,noDeleteOnStaleGet:i,status:f});const v={allowStale:u,updateAgeOnGet:r,noDeleteOnStaleGet:i,ttl:a,noDisposeOnSet:o,size:s,sizeCalculation:c,noUpdateTTL:l,noDeleteOnFetchRejection:d,allowStaleOnFetchRejection:m,allowStaleOnFetchAbort:E,ignoreFetchAbort:p,status:f,signal:$};let D=this.#l.get(t);if(D===void 0){f&&(f.fetch="miss");const C=this.#M(t,D,v,b);return C.__returned=C}else{const C=this.#i[D];if(this.#c(C)){const S=u&&C.__staleWhileFetching!==void 0;return f&&(f.fetch="inflight",S&&(f.returnedStale=!0)),S?C.__staleWhileFetching:C.__returned=C}const w=this.#C(D);if(!g&&!w)return f&&(f.fetch="hit"),this.#z(D),r&&this.#A(D),f&&this.#T(f,D),C;const h=this.#M(t,D,v,b),k=h.__staleWhileFetching!==void 0&&u;return f&&(f.fetch=w?"stale":"refresh",k&&w&&(f.returnedStale=!0)),k?h.__staleWhileFetching:h.__returned=h}}async forceFetch(t,n={}){const u=await this.fetch(t,n);if(u===void 0)throw new Error("fetch() returned undefined");return u}memo(t,n={}){const u=this.#_;if(!u)throw new Error("no memoMethod provided to constructor");const{context:r,forceRefresh:i,...a}=n,o=this.get(t,a);if(!i&&o!==void 0)return o;const s=u(t,o,{options:a,context:r});return this.set(t,s,a),s}get(t,n={}){const{allowStale:u=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,status:a}=n,o=this.#l.get(t);if(o!==void 0){const s=this.#i[o],c=this.#c(s);return a&&this.#T(a,o),this.#C(o)?(a&&(a.get="stale"),c?(a&&u&&s.__staleWhileFetching!==void 0&&(a.returnedStale=!0),u?s.__staleWhileFetching:void 0):(i||this.#x(t,"expire"),a&&u&&(a.returnedStale=!0),u?s:void 0)):(a&&(a.get="hit"),c?s.__staleWhileFetching:(this.#z(o),r&&this.#A(o),s))}else a&&(a.get="miss")}#L(t,n){this.#b[n]=t,this.#y[t]=n}#z(t){t!==this.#p&&(t===this.#m?this.#m=this.#y[t]:this.#L(this.#b[t],this.#y[t]),this.#L(this.#p,t),this.#p=t)}delete(t){return this.#x(t,"delete")}#x(t,n){let u=!1;if(this.#o!==0){const r=this.#l.get(t);if(r!==void 0)if(this.#g?.[r]&&(clearTimeout(this.#g?.[r]),this.#g[r]=void 0),u=!0,this.#o===1)this.#V(n);else{this.#O(r);const i=this.#i[r];if(this.#c(i)?i.__abortController.abort(new Error("deleted")):(this.#E||this.#r)&&(this.#E&&this.#u?.(i,t,n),this.#r&&this.#v?.push([i,t,n])),this.#l.delete(t),this.#s[r]=void 0,this.#i[r]=void 0,r===this.#p)this.#p=this.#b[r];else if(r===this.#m)this.#m=this.#y[r];else{const a=this.#b[r];this.#y[a]=this.#y[r];const o=this.#y[r];this.#b[o]=this.#b[r]}this.#o--,this.#k.push(r)}}if(this.#r&&this.#v?.length){const r=this.#v;let i;for(;i=r?.shift();)this.#a?.(...i)}return u}clear(){return this.#V("delete")}#V(t){for(const n of this.#I({allowStale:!0})){const u=this.#i[n];if(this.#c(u))u.__abortController.abort(new Error("deleted"));else{const r=this.#s[n];this.#E&&this.#u?.(u,r,t),this.#r&&this.#v?.push([u,r,t])}}if(this.#l.clear(),this.#i.fill(void 0),this.#s.fill(void 0),this.#h&&this.#w){this.#h.fill(0),this.#w.fill(0);for(const n of this.#g??[])n!==void 0&&clearTimeout(n);this.#g?.fill(void 0)}if(this.#D&&this.#D.fill(0),this.#m=0,this.#p=0,this.#k.length=0,this.#f=0,this.#o=0,this.#r&&this.#v){const n=this.#v;let u;for(;u=n?.shift();)this.#a?.(...u)}}};import{posix as O5,win32 as l0}from"path";import{fileURLToPath as N5}from"url";import{lstatSync as R5,readdir as Z5,readdirSync as U5,readlinkSync as M5,realpathSync as L5}from"fs";import*as q5 from"fs";import{lstat as V5,readdir as J5,readlink as W5,realpath as H5}from"fs/promises";import{EventEmitter as d0}from"events";import a4 from"stream";import{StringDecoder as G5}from"string_decoder";var o4=typeof process=="object"&&process?process:{stdout:null,stderr:null},K5=e=>!!e&&typeof e=="object"&&(e instanceof Ji||e instanceof a4||X5(e)||Y5(e)),X5=e=>!!e&&typeof e=="object"&&e instanceof d0&&typeof e.pipe=="function"&&e.pipe!==a4.Writable.prototype.pipe,Y5=e=>!!e&&typeof e=="object"&&e instanceof d0&&typeof e.write=="function"&&typeof e.end=="function",Yt=Symbol("EOF"),Qt=Symbol("maybeEmitEnd"),hr=Symbol("emittedEnd"),Ui=Symbol("emittingEnd"),Mn=Symbol("emittedError"),Mi=Symbol("closed"),s4=Symbol("read"),Li=Symbol("flush"),c4=Symbol("flushChunk"),Ft=Symbol("encoding"),Wr=Symbol("decoder"),Le=Symbol("flowing"),Ln=Symbol("paused"),Hr=Symbol("resume"),qe=Symbol("buffer"),ut=Symbol("pipes"),Ve=Symbol("bufferLength"),f0=Symbol("bufferPush"),qi=Symbol("bufferShift"),Qe=Symbol("objectMode"),Ne=Symbol("destroyed"),h0=Symbol("error"),m0=Symbol("emitData"),l4=Symbol("emitEnd"),p0=Symbol("emitEnd2"),Ut=Symbol("async"),v0=Symbol("abort"),Vi=Symbol("aborted"),qn=Symbol("signal"),Cr=Symbol("dataListeners"),gt=Symbol("discarded"),Vn=e=>Promise.resolve().then(e),Q5=e=>e(),eD=e=>e==="end"||e==="finish"||e==="prefinish",tD=e=>e instanceof ArrayBuffer||!!e&&typeof e=="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0,rD=e=>!Buffer.isBuffer(e)&&ArrayBuffer.isView(e),d4=class{src;dest;opts;ondrain;constructor(e,t,n){this.src=e,this.dest=t,this.opts=n,this.ondrain=()=>e[Hr](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},nD=class extends d4{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,t,n){super(e,t,n),this.proxyErrors=u=>this.dest.emit("error",u),e.on("error",this.proxyErrors)}},uD=e=>!!e.objectMode,iD=e=>!e.objectMode&&!!e.encoding&&e.encoding!=="buffer",Ji=class extends d0{[Le]=!1;[Ln]=!1;[ut]=[];[qe]=[];[Qe];[Ft];[Ut];[Wr];[Yt]=!1;[hr]=!1;[Ui]=!1;[Mi]=!1;[Mn]=null;[Ve]=0;[Ne]=!1;[qn];[Vi]=!1;[Cr]=0;[gt]=!1;writable=!0;readable=!0;constructor(...e){const t=e[0]||{};if(super(),t.objectMode&&typeof t.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");uD(t)?(this[Qe]=!0,this[Ft]=null):iD(t)?(this[Ft]=t.encoding,this[Qe]=!1):(this[Qe]=!1,this[Ft]=null),this[Ut]=!!t.async,this[Wr]=this[Ft]?new G5(this[Ft]):null,t&&t.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[qe]}),t&&t.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[ut]});const{signal:n}=t;n&&(this[qn]=n,n.aborted?this[v0]():n.addEventListener("abort",()=>this[v0]()))}get bufferLength(){return this[Ve]}get encoding(){return this[Ft]}set encoding(e){throw new Error("Encoding must be set at instantiation time")}setEncoding(e){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[Qe]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[Ut]}set async(e){this[Ut]=this[Ut]||!!e}[v0](){this[Vi]=!0,this.emit("abort",this[qn]?.reason),this.destroy(this[qn]?.reason)}get aborted(){return this[Vi]}set aborted(e){}write(e,t,n){if(this[Vi])return!1;if(this[Yt])throw new Error("write after end");if(this[Ne])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof t=="function"&&(n=t,t="utf8"),t||(t="utf8");const u=this[Ut]?Vn:Q5;if(!this[Qe]&&!Buffer.isBuffer(e)){if(rD(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(tD(e))e=Buffer.from(e);else if(typeof e!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[Qe]?(this[Le]&&this[Ve]!==0&&this[Li](!0),this[Le]?this.emit("data",e):this[f0](e),this[Ve]!==0&&this.emit("readable"),n&&u(n),this[Le]):e.length?(typeof e=="string"&&!(t===this[Ft]&&!this[Wr]?.lastNeed)&&(e=Buffer.from(e,t)),Buffer.isBuffer(e)&&this[Ft]&&(e=this[Wr].write(e)),this[Le]&&this[Ve]!==0&&this[Li](!0),this[Le]?this.emit("data",e):this[f0](e),this[Ve]!==0&&this.emit("readable"),n&&u(n),this[Le]):(this[Ve]!==0&&this.emit("readable"),n&&u(n),this[Le])}read(e){if(this[Ne])return null;if(this[gt]=!1,this[Ve]===0||e===0||e&&e>this[Ve])return this[Qt](),null;this[Qe]&&(e=null),this[qe].length>1&&!this[Qe]&&(this[qe]=[this[Ft]?this[qe].join(""):Buffer.concat(this[qe],this[Ve])]);const t=this[s4](e||null,this[qe][0]);return this[Qt](),t}[s4](e,t){if(this[Qe])this[qi]();else{const n=t;e===n.length||e===null?this[qi]():typeof n=="string"?(this[qe][0]=n.slice(e),t=n.slice(0,e),this[Ve]-=e):(this[qe][0]=n.subarray(e),t=n.subarray(0,e),this[Ve]-=e)}return this.emit("data",t),!this[qe].length&&!this[Yt]&&this.emit("drain"),t}end(e,t,n){return typeof e=="function"&&(n=e,e=void 0),typeof t=="function"&&(n=t,t="utf8"),e!==void 0&&this.write(e,t),n&&this.once("end",n),this[Yt]=!0,this.writable=!1,(this[Le]||!this[Ln])&&this[Qt](),this}[Hr](){this[Ne]||(!this[Cr]&&!this[ut].length&&(this[gt]=!0),this[Ln]=!1,this[Le]=!0,this.emit("resume"),this[qe].length?this[Li]():this[Yt]?this[Qt]():this.emit("drain"))}resume(){return this[Hr]()}pause(){this[Le]=!1,this[Ln]=!0,this[gt]=!1}get destroyed(){return this[Ne]}get flowing(){return this[Le]}get paused(){return this[Ln]}[f0](e){this[Qe]?this[Ve]+=1:this[Ve]+=e.length,this[qe].push(e)}[qi](){return this[Qe]?this[Ve]-=1:this[Ve]-=this[qe][0].length,this[qe].shift()}[Li](e=!1){do;while(this[c4](this[qi]())&&this[qe].length);!e&&!this[qe].length&&!this[Yt]&&this.emit("drain")}[c4](e){return this.emit("data",e),this[Le]}pipe(e,t){if(this[Ne])return e;this[gt]=!1;const n=this[hr];return t=t||{},e===o4.stdout||e===o4.stderr?t.end=!1:t.end=t.end!==!1,t.proxyErrors=!!t.proxyErrors,n?t.end&&e.end():(this[ut].push(t.proxyErrors?new nD(this,e,t):new d4(this,e,t)),this[Ut]?Vn(()=>this[Hr]()):this[Hr]()),e}unpipe(e){const t=this[ut].find(n=>n.dest===e);t&&(this[ut].length===1?(this[Le]&&this[Cr]===0&&(this[Le]=!1),this[ut]=[]):this[ut].splice(this[ut].indexOf(t),1),t.unpipe())}addListener(e,t){return this.on(e,t)}on(e,t){const n=super.on(e,t);if(e==="data")this[gt]=!1,this[Cr]++,!this[ut].length&&!this[Le]&&this[Hr]();else if(e==="readable"&&this[Ve]!==0)super.emit("readable");else if(eD(e)&&this[hr])super.emit(e),this.removeAllListeners(e);else if(e==="error"&&this[Mn]){const u=t;this[Ut]?Vn(()=>u.call(this,this[Mn])):u.call(this,this[Mn])}return n}removeListener(e,t){return this.off(e,t)}off(e,t){const n=super.off(e,t);return e==="data"&&(this[Cr]=this.listeners("data").length,this[Cr]===0&&!this[gt]&&!this[ut].length&&(this[Le]=!1)),n}removeAllListeners(e){const t=super.removeAllListeners(e);return(e==="data"||e===void 0)&&(this[Cr]=0,!this[gt]&&!this[ut].length&&(this[Le]=!1)),t}get emittedEnd(){return this[hr]}[Qt](){!this[Ui]&&!this[hr]&&!this[Ne]&&this[qe].length===0&&this[Yt]&&(this[Ui]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Mi]&&this.emit("close"),this[Ui]=!1)}emit(e,...t){const n=t[0];if(e!=="error"&&e!=="close"&&e!==Ne&&this[Ne])return!1;if(e==="data")return!this[Qe]&&!n?!1:this[Ut]?(Vn(()=>this[m0](n)),!0):this[m0](n);if(e==="end")return this[l4]();if(e==="close"){if(this[Mi]=!0,!this[hr]&&!this[Ne])return!1;const r=super.emit("close");return this.removeAllListeners("close"),r}else if(e==="error"){this[Mn]=n,super.emit(h0,n);const r=!this[qn]||this.listeners("error").length?super.emit("error",n):!1;return this[Qt](),r}else if(e==="resume"){const r=super.emit("resume");return this[Qt](),r}else if(e==="finish"||e==="prefinish"){const r=super.emit(e);return this.removeAllListeners(e),r}const u=super.emit(e,...t);return this[Qt](),u}[m0](e){for(const n of this[ut])n.dest.write(e)===!1&&this.pause();const t=this[gt]?!1:super.emit("data",e);return this[Qt](),t}[l4](){return this[hr]?!1:(this[hr]=!0,this.readable=!1,this[Ut]?(Vn(()=>this[p0]()),!0):this[p0]())}[p0](){if(this[Wr]){const t=this[Wr].end();if(t){for(const n of this[ut])n.dest.write(t);this[gt]||super.emit("data",t)}}for(const t of this[ut])t.end();const e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){const e=Object.assign([],{dataLength:0});this[Qe]||(e.dataLength=0);const t=this.promise();return this.on("data",n=>{e.push(n),this[Qe]||(e.dataLength+=n.length)}),await t,e}async concat(){if(this[Qe])throw new Error("cannot concat in objectMode");const e=await this.collect();return this[Ft]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,t)=>{this.on(Ne,()=>t(new Error("stream destroyed"))),this.on("error",n=>t(n)),this.on("end",()=>e())})}[Symbol.asyncIterator](){this[gt]=!1;let e=!1;const t=async()=>(this.pause(),e=!0,{value:void 0,done:!0});return{next:()=>{if(e)return t();const u=this.read();if(u!==null)return Promise.resolve({done:!1,value:u});if(this[Yt])return t();let r,i;const a=l=>{this.off("data",o),this.off("end",s),this.off(Ne,c),t(),i(l)},o=l=>{this.off("error",a),this.off("end",s),this.off(Ne,c),this.pause(),r({value:l,done:!!this[Yt]})},s=()=>{this.off("error",a),this.off("data",o),this.off(Ne,c),t(),r({done:!0,value:void 0})},c=()=>a(new Error("stream destroyed"));return new Promise((l,d)=>{i=d,r=l,this.once(Ne,c),this.once("error",a),this.once("end",s),this.once("data",o)})},throw:t,return:t,[Symbol.asyncIterator](){return this},[Symbol.asyncDispose]:async()=>{}}}[Symbol.iterator](){this[gt]=!1;let e=!1;const t=()=>(this.pause(),this.off(h0,t),this.off(Ne,t),this.off("end",t),e=!0,{done:!0,value:void 0}),n=()=>{if(e)return t();const u=this.read();return u===null?t():{done:!1,value:u}};return this.once("end",t),this.once(h0,t),this.once(Ne,t),{next:n,throw:t,return:t,[Symbol.iterator](){return this},[Symbol.dispose]:()=>{}}}destroy(e){if(this[Ne])return e?this.emit("error",e):this.emit(Ne),this;this[Ne]=!0,this[gt]=!0,this[qe].length=0,this[Ve]=0;const t=this;return typeof t.close=="function"&&!this[Mi]&&t.close(),e?this.emit("error",e):this.emit(Ne),this}static get isStream(){return K5}},aD=L5.native,Jn={lstatSync:R5,readdir:Z5,readdirSync:U5,readlinkSync:M5,realpathSync:aD,promises:{lstat:V5,readdir:J5,readlink:W5,realpath:H5}},f4=e=>!e||e===Jn||e===q5?Jn:{...Jn,...e,promises:{...Jn.promises,...e.promises||{}}},h4=/^\\\\\?\\([a-z]:)\\?$/i,oD=e=>e.replace(/\//g,"\\").replace(h4,"$1\\"),sD=/[\\\/]/,Ct=0,m4=1,p4=2,Mt=4,v4=6,g4=8,kr=10,_4=12,kt=15,Wn=~kt,g0=16,y4=32,Hn=64,Tt=128,Wi=256,Hi=512,E4=Hn|Tt|Hi,cD=1023,_0=e=>e.isFile()?g4:e.isDirectory()?Mt:e.isSymbolicLink()?kr:e.isCharacterDevice()?p4:e.isBlockDevice()?v4:e.isSocket()?_4:e.isFIFO()?m4:Ct,b4=new Zi({max:2**12}),Gn=e=>{const t=b4.get(e);if(t)return t;const n=e.normalize("NFKD");return b4.set(e,n),n},D4=new Zi({max:2**12}),Gi=e=>{const t=D4.get(e);if(t)return t;const n=Gn(e.toLowerCase());return D4.set(e,n),n},$4=class extends Zi{constructor(){super({max:256})}},lD=class extends Zi{constructor(e=16*1024){super({maxSize:e,sizeCalculation:t=>t.length+1})}},w4=Symbol("PathScurry setAsCwd"),lt=class{name;root;roots;parent;nocase;isCWD=!1;#e;#n;get dev(){return this.#n}#u;get mode(){return this.#u}#t;get nlink(){return this.#t}#a;get uid(){return this.#a}#$;get gid(){return this.#$}#_;get rdev(){return this.#_}#d;get blksize(){return this.#d}#o;get ino(){return this.#o}#f;get size(){return this.#f}#l;get blocks(){return this.#l}#s;get atimeMs(){return this.#s}#i;get mtimeMs(){return this.#i}#y;get ctimeMs(){return this.#y}#b;get birthtimeMs(){return this.#b}#m;get atime(){return this.#m}#p;get mtime(){return this.#p}#k;get ctime(){return this.#k}#v;get birthtime(){return this.#v}#D;#w;#h;#g;#E;#S;#r;#j;#F;#A;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(e,t=Ct,n,u,r,i,a){this.name=e,this.#D=r?Gi(e):Gn(e),this.#r=t&cD,this.nocase=r,this.roots=u,this.root=n||this,this.#j=i,this.#h=a.fullpath,this.#E=a.relative,this.#S=a.relativePosix,this.parent=a.parent,this.parent?this.#e=this.parent.#e:this.#e=f4(a.fs)}depth(){return this.#w!==void 0?this.#w:this.parent?this.#w=this.parent.depth()+1:this.#w=0}childrenCache(){return this.#j}resolve(e){if(!e)return this;const t=this.getRootString(e),u=e.substring(t.length).split(this.splitSep);return t?this.getRoot(t).#T(u):this.#T(u)}#T(e){let t=this;for(const n of e)t=t.child(n);return t}children(){const e=this.#j.get(this);if(e)return e;const t=Object.assign([],{provisional:0});return this.#j.set(this,t),this.#r&=~g0,t}child(e,t){if(e===""||e===".")return this;if(e==="..")return this.parent||this;const n=this.children(),u=this.nocase?Gi(e):Gn(e);for(const o of n)if(o.#D===u)return o;const r=this.parent?this.sep:"",i=this.#h?this.#h+r+e:void 0,a=this.newChild(e,Ct,{...t,parent:this,fullpath:i});return this.canReaddir()||(a.#r|=Tt),n.push(a),a}relative(){if(this.isCWD)return"";if(this.#E!==void 0)return this.#E;const e=this.name,t=this.parent;if(!t)return this.#E=this.name;const n=t.relative();return n+(!n||!t.parent?"":this.sep)+e}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#S!==void 0)return this.#S;const e=this.name,t=this.parent;if(!t)return this.#S=this.fullpathPosix();const n=t.relativePosix();return n+(!n||!t.parent?"":"/")+e}fullpath(){if(this.#h!==void 0)return this.#h;const e=this.name,t=this.parent;if(!t)return this.#h=this.name;const u=t.fullpath()+(t.parent?this.sep:"")+e;return this.#h=u}fullpathPosix(){if(this.#g!==void 0)return this.#g;if(this.sep==="/")return this.#g=this.fullpath();if(!this.parent){const u=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(u)?this.#g=`//?/${u}`:this.#g=u}const e=this.parent,t=e.fullpathPosix(),n=t+(!t||!e.parent?"":"/")+this.name;return this.#g=n}isUnknown(){return(this.#r&kt)===Ct}isType(e){return this[`is${e}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#r&kt)===g4}isDirectory(){return(this.#r&kt)===Mt}isCharacterDevice(){return(this.#r&kt)===p4}isBlockDevice(){return(this.#r&kt)===v4}isFIFO(){return(this.#r&kt)===m4}isSocket(){return(this.#r&kt)===_4}isSymbolicLink(){return(this.#r&kr)===kr}lstatCached(){return this.#r&y4?this:void 0}readlinkCached(){return this.#F}realpathCached(){return this.#A}readdirCached(){const e=this.children();return e.slice(0,e.provisional)}canReadlink(){if(this.#F)return!0;if(!this.parent)return!1;const e=this.#r&kt;return!(e!==Ct&&e!==kr||this.#r&Wi||this.#r&Tt)}calledReaddir(){return!!(this.#r&g0)}isENOENT(){return!!(this.#r&Tt)}isNamed(e){return this.nocase?this.#D===Gi(e):this.#D===Gn(e)}async readlink(){const e=this.#F;if(e)return e;if(this.canReadlink()&&this.parent)try{const t=await this.#e.promises.readlink(this.fullpath()),n=(await this.parent.realpath())?.resolve(t);if(n)return this.#F=n}catch(t){this.#I(t.code);return}}readlinkSync(){const e=this.#F;if(e)return e;if(this.canReadlink()&&this.parent)try{const t=this.#e.readlinkSync(this.fullpath()),n=this.parent.realpathSync()?.resolve(t);if(n)return this.#F=n}catch(t){this.#I(t.code);return}}#N(e){this.#r|=g0;for(let t=e.provisional;t<e.length;t++){const n=e[t];n&&n.#C()}}#C(){this.#r&Tt||(this.#r=(this.#r|Tt)&Wn,this.#q())}#q(){const e=this.children();e.provisional=0;for(const t of e)t.#C()}#O(){this.#r|=Hi,this.#P()}#P(){if(this.#r&Hn)return;let e=this.#r;(e&kt)===Mt&&(e&=Wn),this.#r=e|Hn,this.#q()}#R(e=""){e==="ENOTDIR"||e==="EPERM"?this.#P():e==="ENOENT"?this.#C():this.children().provisional=0}#B(e=""){e==="ENOTDIR"?this.parent.#P():e==="ENOENT"&&this.#C()}#I(e=""){let t=this.#r;t|=Wi,e==="ENOENT"&&(t|=Tt),(e==="EINVAL"||e==="UNKNOWN")&&(t&=Wn),this.#r=t,e==="ENOTDIR"&&this.parent&&this.parent.#P()}#Z(e,t){return this.#M(e,t)||this.#U(e,t)}#U(e,t){const n=_0(e),u=this.newChild(e.name,n,{parent:this}),r=u.#r&kt;return r!==Mt&&r!==kr&&r!==Ct&&(u.#r|=Hn),t.unshift(u),t.provisional++,u}#M(e,t){for(let n=t.provisional;n<t.length;n++){const u=t[n];if((this.nocase?Gi(e.name):Gn(e.name))===u.#D)return this.#c(e,u,n,t)}}#c(e,t,n,u){const r=t.name;return t.#r=t.#r&Wn|_0(e),r!==e.name&&(t.name=e.name),n!==u.provisional&&(n===u.length-1?u.pop():u.splice(n,1),u.unshift(t)),u.provisional++,t}async lstat(){if((this.#r&Tt)===0)try{return this.#L(await this.#e.promises.lstat(this.fullpath())),this}catch(e){this.#B(e.code)}}lstatSync(){if((this.#r&Tt)===0)try{return this.#L(this.#e.lstatSync(this.fullpath())),this}catch(e){this.#B(e.code)}}#L(e){const{atime:t,atimeMs:n,birthtime:u,birthtimeMs:r,blksize:i,blocks:a,ctime:o,ctimeMs:s,dev:c,gid:l,ino:d,mode:m,mtime:p,mtimeMs:E,nlink:b,rdev:g,size:f,uid:$}=e;this.#m=t,this.#s=n,this.#v=u,this.#b=r,this.#d=i,this.#l=a,this.#k=o,this.#y=s,this.#n=c,this.#$=l,this.#o=d,this.#u=m,this.#p=p,this.#i=E,this.#t=b,this.#_=g,this.#f=f,this.#a=$;const v=_0(e);this.#r=this.#r&Wn|v|y4,v!==Ct&&v!==Mt&&v!==kr&&(this.#r|=Hn)}#z=[];#x=!1;#V(e){this.#x=!1;const t=this.#z.slice();this.#z.length=0,t.forEach(n=>n(null,e))}readdirCB(e,t=!1){if(!this.canReaddir()){t?e(null,[]):queueMicrotask(()=>e(null,[]));return}const n=this.children();if(this.calledReaddir()){const r=n.slice(0,n.provisional);t?e(null,r):queueMicrotask(()=>e(null,r));return}if(this.#z.push(e),this.#x)return;this.#x=!0;const u=this.fullpath();this.#e.readdir(u,{withFileTypes:!0},(r,i)=>{if(r)this.#R(r.code),n.provisional=0;else{for(const a of i)this.#Z(a,n);this.#N(n)}this.#V(n.slice(0,n.provisional))})}#J;async readdir(){if(!this.canReaddir())return[];const e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);const t=this.fullpath();if(this.#J)await this.#J;else{let n=()=>{};this.#J=new Promise(u=>n=u);try{for(const u of await this.#e.promises.readdir(t,{withFileTypes:!0}))this.#Z(u,e);this.#N(e)}catch(u){this.#R(u.code),e.provisional=0}this.#J=void 0,n()}return e.slice(0,e.provisional)}readdirSync(){if(!this.canReaddir())return[];const e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);const t=this.fullpath();try{for(const n of this.#e.readdirSync(t,{withFileTypes:!0}))this.#Z(n,e);this.#N(e)}catch(n){this.#R(n.code),e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(this.#r&E4)return!1;const e=kt&this.#r;return e===Ct||e===Mt||e===kr}shouldWalk(e,t){return(this.#r&Mt)===Mt&&!(this.#r&E4)&&!e.has(this)&&(!t||t(this))}async realpath(){if(this.#A)return this.#A;if(!((Hi|Wi|Tt)&this.#r))try{const e=await this.#e.promises.realpath(this.fullpath());return this.#A=this.resolve(e)}catch{this.#O()}}realpathSync(){if(this.#A)return this.#A;if(!((Hi|Wi|Tt)&this.#r))try{const e=this.#e.realpathSync(this.fullpath());return this.#A=this.resolve(e)}catch{this.#O()}}[w4](e){if(e===this)return;e.isCWD=!1,this.isCWD=!0;const t=new Set([]);let n=[],u=this;for(;u&&u.parent;)t.add(u),u.#E=n.join(this.sep),u.#S=n.join("/"),u=u.parent,n.push("..");for(u=e;u&&u.parent&&!t.has(u);)u.#E=void 0,u.#S=void 0,u=u.parent}},C4=class rv extends lt{sep="\\";splitSep=sD;constructor(t,n=Ct,u,r,i,a,o){super(t,n,u,r,i,a,o)}newChild(t,n=Ct,u={}){return new rv(t,n,this.root,this.roots,this.nocase,this.childrenCache(),u)}getRootString(t){return l0.parse(t).root}getRoot(t){if(t=oD(t.toUpperCase()),t===this.root.name)return this.root;for(const[n,u]of Object.entries(this.roots))if(this.sameRoot(t,n))return this.roots[t]=u;return this.roots[t]=new y0(t,this).root}sameRoot(t,n=this.root.name){return t=t.toUpperCase().replace(/\//g,"\\").replace(h4,"$1\\"),t===n}},k4=class nv extends lt{splitSep="/";sep="/";constructor(t,n=Ct,u,r,i,a,o){super(t,n,u,r,i,a,o)}getRootString(t){return t.startsWith("/")?"/":""}getRoot(t){return this.root}newChild(t,n=Ct,u={}){return new nv(t,n,this.root,this.roots,this.nocase,this.childrenCache(),u)}},S4=class{root;rootPath;roots;cwd;#e;#n;#u;nocase;#t;constructor(e=process.cwd(),t,n,{nocase:u,childrenCacheSize:r=16*1024,fs:i=Jn}={}){this.#t=f4(i),(e instanceof URL||e.startsWith("file://"))&&(e=N5(e));const a=t.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(a),this.#e=new $4,this.#n=new $4,this.#u=new lD(r);const o=a.substring(this.rootPath.length).split(n);if(o.length===1&&!o[0]&&o.pop(),u===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=u,this.root=this.newRoot(this.#t),this.roots[this.rootPath]=this.root;let s=this.root,c=o.length-1;const l=t.sep;let d=this.rootPath,m=!1;for(const p of o){const E=c--;s=s.child(p,{relative:new Array(E).fill("..").join(l),relativePosix:new Array(E).fill("..").join("/"),fullpath:d+=(m?"":l)+p}),m=!0}this.cwd=s}depth(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.depth()}childrenCache(){return this.#u}resolve(...e){let t="";for(let r=e.length-1;r>=0;r--){const i=e[r];if(!(!i||i===".")&&(t=t?`${i}/${t}`:i,this.isAbsolute(i)))break}const n=this.#e.get(t);if(n!==void 0)return n;const u=this.cwd.resolve(t).fullpath();return this.#e.set(t,u),u}resolvePosix(...e){let t="";for(let r=e.length-1;r>=0;r--){const i=e[r];if(!(!i||i===".")&&(t=t?`${i}/${t}`:i,this.isAbsolute(i)))break}const n=this.#n.get(t);if(n!==void 0)return n;const u=this.cwd.resolve(t).fullpathPosix();return this.#n.set(t,u),u}relative(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relative()}relativePosix(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relativePosix()}basename(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.name}dirname(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),(e.parent||e).fullpath()}async readdir(e=this.cwd,t={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof lt||(t=e,e=this.cwd);const{withFileTypes:n}=t;if(e.canReaddir()){const u=await e.readdir();return n?u:u.map(r=>r.name)}else return[]}readdirSync(e=this.cwd,t={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof lt||(t=e,e=this.cwd);const{withFileTypes:n=!0}=t;return e.canReaddir()?n?e.readdirSync():e.readdirSync().map(u=>u.name):[]}async lstat(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstat()}lstatSync(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstatSync()}async readlink(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof lt||(t=e.withFileTypes,e=this.cwd);const n=await e.readlink();return t?n:n?.fullpath()}readlinkSync(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof lt||(t=e.withFileTypes,e=this.cwd);const n=e.readlinkSync();return t?n:n?.fullpath()}async realpath(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof lt||(t=e.withFileTypes,e=this.cwd);const n=await e.realpath();return t?n:n?.fullpath()}realpathSync(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof lt||(t=e.withFileTypes,e=this.cwd);const n=e.realpathSync();return t?n:n?.fullpath()}async walk(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof lt||(t=e,e=this.cwd);const{withFileTypes:n=!0,follow:u=!1,filter:r,walkFilter:i}=t,a=[];(!r||r(e))&&a.push(n?e:e.fullpath());const o=new Set,s=(l,d)=>{o.add(l),l.readdirCB((m,p)=>{if(m)return d(m);let E=p.length;if(!E)return d();const b=()=>{--E===0&&d()};for(const g of p)(!r||r(g))&&a.push(n?g:g.fullpath()),u&&g.isSymbolicLink()?g.realpath().then(f=>f?.isUnknown()?f.lstat():f).then(f=>f?.shouldWalk(o,i)?s(f,b):b()):g.shouldWalk(o,i)?s(g,b):b()},!0)},c=e;return new Promise((l,d)=>{s(c,m=>{if(m)return d(m);l(a)})})}walkSync(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof lt||(t=e,e=this.cwd);const{withFileTypes:n=!0,follow:u=!1,filter:r,walkFilter:i}=t,a=[];(!r||r(e))&&a.push(n?e:e.fullpath());const o=new Set([e]);for(const s of o){const c=s.readdirSync();for(const l of c){(!r||r(l))&&a.push(n?l:l.fullpath());let d=l;if(l.isSymbolicLink()){if(!(u&&(d=l.realpathSync())))continue;d.isUnknown()&&d.lstatSync()}d.shouldWalk(o,i)&&o.add(d)}}return a}[Symbol.asyncIterator](){return this.iterate()}iterate(e=this.cwd,t={}){return typeof e=="string"?e=this.cwd.resolve(e):e instanceof lt||(t=e,e=this.cwd),this.stream(e,t)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof lt||(t=e,e=this.cwd);const{withFileTypes:n=!0,follow:u=!1,filter:r,walkFilter:i}=t;(!r||r(e))&&(yield n?e:e.fullpath());const a=new Set([e]);for(const o of a){const s=o.readdirSync();for(const c of s){(!r||r(c))&&(yield n?c:c.fullpath());let l=c;if(c.isSymbolicLink()){if(!(u&&(l=c.realpathSync())))continue;l.isUnknown()&&l.lstatSync()}l.shouldWalk(a,i)&&a.add(l)}}}stream(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof lt||(t=e,e=this.cwd);const{withFileTypes:n=!0,follow:u=!1,filter:r,walkFilter:i}=t,a=new Ji({objectMode:!0});(!r||r(e))&&a.write(n?e:e.fullpath());const o=new Set,s=[e];let c=0;const l=()=>{let d=!1;for(;!d;){const m=s.shift();if(!m){c===0&&a.end();return}c++,o.add(m);const p=(b,g,f=!1)=>{if(b)return a.emit("error",b);if(u&&!f){const $=[];for(const v of g)v.isSymbolicLink()&&$.push(v.realpath().then(D=>D?.isUnknown()?D.lstat():D));if($.length){Promise.all($).then(()=>p(null,g,!0));return}}for(const $ of g)$&&(!r||r($))&&(a.write(n?$:$.fullpath())||(d=!0));c--;for(const $ of g){const v=$.realpathCached()||$;v.shouldWalk(o,i)&&s.push(v)}d&&!a.flowing?a.once("drain",l):E||l()};let E=!0;m.readdirCB(p,!0),E=!1}};return l(),a}streamSync(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof lt||(t=e,e=this.cwd);const{withFileTypes:n=!0,follow:u=!1,filter:r,walkFilter:i}=t,a=new Ji({objectMode:!0}),o=new Set;(!r||r(e))&&a.write(n?e:e.fullpath());const s=[e];let c=0;const l=()=>{let d=!1;for(;!d;){const m=s.shift();if(!m){c===0&&a.end();return}c++,o.add(m);const p=m.readdirSync();for(const E of p)(!r||r(E))&&(a.write(n?E:E.fullpath())||(d=!0));c--;for(const E of p){let b=E;if(E.isSymbolicLink()){if(!(u&&(b=E.realpathSync())))continue;b.isUnknown()&&b.lstatSync()}b.shouldWalk(o,i)&&s.push(b)}}d&&!a.flowing&&a.once("drain",l)};return l(),a}chdir(e=this.cwd){const t=this.cwd;this.cwd=typeof e=="string"?this.cwd.resolve(e):e,this.cwd[w4](t)}},y0=class extends S4{sep="\\";constructor(e=process.cwd(),t={}){const{nocase:n=!0}=t;super(e,l0,"\\",{...t,nocase:n}),this.nocase=n;for(let u=this.cwd;u;u=u.parent)u.nocase=this.nocase}parseRootPath(e){return l0.parse(e).root.toUpperCase()}newRoot(e){return new C4(this.rootPath,Mt,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")||e.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(e)}},E0=class extends S4{sep="/";constructor(e=process.cwd(),t={}){const{nocase:n=!1}=t;super(e,O5,"/",{...t,nocase:n}),this.nocase=n}parseRootPath(e){return"/"}newRoot(e){return new k4(this.rootPath,Mt,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}},A4=class extends E0{constructor(e=process.cwd(),t={}){const{nocase:n=!0}=t;super(e,{...t,nocase:n})}},cw=process.platform==="win32"?C4:k4,dD=process.platform==="win32"?y0:process.platform==="darwin"?A4:E0,fD=e=>e.length>=1,hD=e=>e.length>=1,x4=class uv{#e;#n;#u;length;#t;#a;#$;#_;#d;#o;#f=!0;constructor(t,n,u,r){if(!fD(t))throw new TypeError("empty pattern list");if(!hD(n))throw new TypeError("empty glob list");if(n.length!==t.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=t.length,u<0||u>=this.length)throw new TypeError("index out of range");if(this.#e=t,this.#n=n,this.#u=u,this.#t=r,this.#u===0){if(this.isUNC()){const[i,a,o,s,...c]=this.#e,[l,d,m,p,...E]=this.#n;c[0]===""&&(c.shift(),E.shift());const b=[i,a,o,s,""].join("/"),g=[l,d,m,p,""].join("/");this.#e=[b,...c],this.#n=[g,...E],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){const[i,...a]=this.#e,[o,...s]=this.#n;a[0]===""&&(a.shift(),s.shift());const c=i+"/",l=o+"/";this.#e=[c,...a],this.#n=[l,...s],this.length=this.#e.length}}}pattern(){return this.#e[this.#u]}isString(){return typeof this.#e[this.#u]=="string"}isGlobstar(){return this.#e[this.#u]===Me}isRegExp(){return this.#e[this.#u]instanceof RegExp}globString(){return this.#$=this.#$||(this.#u===0?this.isAbsolute()?this.#n[0]+this.#n.slice(1).join("/"):this.#n.join("/"):this.#n.slice(this.#u).join("/"))}hasMore(){return this.length>this.#u+1}rest(){return this.#a!==void 0?this.#a:this.hasMore()?(this.#a=new uv(this.#e,this.#n,this.#u+1,this.#t),this.#a.#o=this.#o,this.#a.#d=this.#d,this.#a.#_=this.#_,this.#a):this.#a=null}isUNC(){const t=this.#e;return this.#d!==void 0?this.#d:this.#d=this.#t==="win32"&&this.#u===0&&t[0]===""&&t[1]===""&&typeof t[2]=="string"&&!!t[2]&&typeof t[3]=="string"&&!!t[3]}isDrive(){const t=this.#e;return this.#_!==void 0?this.#_:this.#_=this.#t==="win32"&&this.#u===0&&this.length>1&&typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0])}isAbsolute(){const t=this.#e;return this.#o!==void 0?this.#o:this.#o=t[0]===""&&t.length>1||this.isDrive()||this.isUNC()}root(){const t=this.#e[0];return typeof t=="string"&&this.isAbsolute()&&this.#u===0?t:""}checkFollowGlobstar(){return!(this.#u===0||!this.isGlobstar()||!this.#f)}markFollowGlobstar(){return this.#u===0||!this.isGlobstar()||!this.#f?!1:(this.#f=!1,!0)}},mD=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",B4=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:t,nocase:n,noext:u,noglobstar:r,platform:i=mD}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=i,this.mmopts={dot:!0,nobrace:t,nocase:n,noext:u,noglobstar:r,optimizationLevel:2,platform:i,nocomment:!0,nonegate:!0};for(const a of e)this.add(a)}add(e){const t=new dr(e,this.mmopts);for(let n=0;n<t.set.length;n++){const u=t.set[n],r=t.globParts[n];if(!u||!r)throw new Error("invalid pattern object");for(;u[0]==="."&&r[0]===".";)u.shift(),r.shift();const i=new x4(u,r,0,this.platform),a=new dr(i.globString(),this.mmopts),o=r[r.length-1]==="**",s=i.isAbsolute();s?this.absolute.push(a):this.relative.push(a),o&&(s?this.absoluteChildren.push(a):this.relativeChildren.push(a))}}ignored(e){const t=e.fullpath(),n=`${t}/`,u=e.relative()||".",r=`${u}/`;for(const i of this.relative)if(i.match(u)||i.match(r))return!0;for(const i of this.absolute)if(i.match(t)||i.match(n))return!0;return!1}childrenIgnored(e){const t=e.fullpath()+"/",n=(e.relative()||".")+"/";for(const u of this.relativeChildren)if(u.match(n))return!0;for(const u of this.absoluteChildren)if(u.match(t))return!0;return!1}},pD=class iv{store;constructor(t=new Map){this.store=t}copy(){return new iv(new Map(this.store))}hasWalked(t,n){return this.store.get(t.fullpath())?.has(n.globString())}storeWalked(t,n){const u=t.fullpath(),r=this.store.get(u);r?r.add(n.globString()):this.store.set(u,new Set([n.globString()]))}},vD=class{store=new Map;add(e,t,n){const u=(t?2:0)|(n?1:0),r=this.store.get(e);this.store.set(e,r===void 0?u:u&r)}entries(){return[...this.store.entries()].map(([e,t])=>[e,!!(t&2),!!(t&1)])}},gD=class{store=new Map;add(e,t){if(!e.canReaddir())return;const n=this.store.get(e);n?n.find(u=>u.globString()===t.globString())||n.push(t):this.store.set(e,[t])}get(e){const t=this.store.get(e);if(!t)throw new Error("attempting to walk unknown path");return t}entries(){return this.keys().map(e=>[e,this.store.get(e)])}keys(){return[...this.store.keys()].filter(e=>e.canReaddir())}},I4=class av{hasWalkedCache;matches=new vD;subwalks=new gD;patterns;follow;dot;opts;constructor(t,n){this.opts=t,this.follow=!!t.follow,this.dot=!!t.dot,this.hasWalkedCache=n?n.copy():new pD}processPatterns(t,n){this.patterns=n;const u=n.map(r=>[t,r]);for(let[r,i]of u){this.hasWalkedCache.storeWalked(r,i);const a=i.root(),o=i.isAbsolute()&&this.opts.absolute!==!1;if(a){r=r.resolve(a==="/"&&this.opts.root!==void 0?this.opts.root:a);const d=i.rest();if(d)i=d;else{this.matches.add(r,!0,!1);continue}}if(r.isENOENT())continue;let s,c,l=!1;for(;typeof(s=i.pattern())=="string"&&(c=i.rest());)r=r.resolve(s),i=c,l=!0;if(s=i.pattern(),c=i.rest(),l){if(this.hasWalkedCache.hasWalked(r,i))continue;this.hasWalkedCache.storeWalked(r,i)}if(typeof s=="string"){const d=s===".."||s===""||s===".";this.matches.add(r.resolve(s),o,d);continue}else if(s===Me){(!r.isSymbolicLink()||this.follow||i.checkFollowGlobstar())&&this.subwalks.add(r,i);const d=c?.pattern(),m=c?.rest();if(!c||(d===""||d===".")&&!m)this.matches.add(r,o,d===""||d===".");else if(d===".."){const p=r.parent||r;m?this.hasWalkedCache.hasWalked(p,m)||this.subwalks.add(p,m):this.matches.add(p,o,!0)}}else s instanceof RegExp&&this.subwalks.add(r,i)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new av(this.opts,this.hasWalkedCache)}filterEntries(t,n){const u=this.subwalks.get(t),r=this.child();for(const i of n)for(const a of u){const o=a.isAbsolute(),s=a.pattern(),c=a.rest();s===Me?r.testGlobstar(i,a,c,o):s instanceof RegExp?r.testRegExp(i,s,c,o):r.testString(i,s,c,o)}return r}testGlobstar(t,n,u,r){if((this.dot||!t.name.startsWith("."))&&(n.hasMore()||this.matches.add(t,r,!1),t.canReaddir()&&(this.follow||!t.isSymbolicLink()?this.subwalks.add(t,n):t.isSymbolicLink()&&(u&&n.checkFollowGlobstar()?this.subwalks.add(t,u):n.markFollowGlobstar()&&this.subwalks.add(t,n)))),u){const i=u.pattern();if(typeof i=="string"&&i!==".."&&i!==""&&i!==".")this.testString(t,i,u.rest(),r);else if(i===".."){const a=t.parent||t;this.subwalks.add(a,u)}else i instanceof RegExp&&this.testRegExp(t,i,u.rest(),r)}}testRegExp(t,n,u,r){n.test(t.name)&&(u?this.subwalks.add(t,u):this.matches.add(t,r,!1))}testString(t,n,u,r){t.isNamed(n)&&(u?this.subwalks.add(t,u):this.matches.add(t,r,!1))}},_D=(e,t)=>typeof e=="string"?new B4([e],t):Array.isArray(e)?new B4(e,t):e,F4=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#n;#u;signal;maxDepth;includeChildMatches;constructor(e,t,n){if(this.patterns=e,this.path=t,this.opts=n,this.#u=!n.posix&&n.platform==="win32"?"\\":"/",this.includeChildMatches=n.includeChildMatches!==!1,(n.ignore||!this.includeChildMatches)&&(this.#n=_D(n.ignore??[],n),!this.includeChildMatches&&typeof this.#n.add!="function")){const u="cannot ignore child matches, ignore lacks add() method.";throw new Error(u)}this.maxDepth=n.maxDepth||1/0,n.signal&&(this.signal=n.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#t(e){return this.seen.has(e)||!!this.#n?.ignored?.(e)}#a(e){return!!this.#n?.childrenIgnored?.(e)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let e;for(;!this.paused&&(e=this.#e.shift());)e()}onResume(e){this.signal?.aborted||(this.paused?this.#e.push(e):e())}async matchCheck(e,t){if(t&&this.opts.nodir)return;let n;if(this.opts.realpath){if(n=e.realpathCached()||await e.realpath(),!n)return;e=n}const r=e.isUnknown()||this.opts.stat?await e.lstat():e;if(this.opts.follow&&this.opts.nodir&&r?.isSymbolicLink()){const i=await r.realpath();i&&(i.isUnknown()||this.opts.stat)&&await i.lstat()}return this.matchCheckTest(r,t)}matchCheckTest(e,t){return e&&(this.maxDepth===1/0||e.depth()<=this.maxDepth)&&(!t||e.canReaddir())&&(!this.opts.nodir||!e.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!e.isSymbolicLink()||!e.realpathCached()?.isDirectory())&&!this.#t(e)?e:void 0}matchCheckSync(e,t){if(t&&this.opts.nodir)return;let n;if(this.opts.realpath){if(n=e.realpathCached()||e.realpathSync(),!n)return;e=n}const r=e.isUnknown()||this.opts.stat?e.lstatSync():e;if(this.opts.follow&&this.opts.nodir&&r?.isSymbolicLink()){const i=r.realpathSync();i&&(i?.isUnknown()||this.opts.stat)&&i.lstatSync()}return this.matchCheckTest(r,t)}matchFinish(e,t){if(this.#t(e))return;if(!this.includeChildMatches&&this.#n?.add){const r=`${e.relativePosix()}/**`;this.#n.add(r)}const n=this.opts.absolute===void 0?t:this.opts.absolute;this.seen.add(e);const u=this.opts.mark&&e.isDirectory()?this.#u:"";if(this.opts.withFileTypes)this.matchEmit(e);else if(n){const r=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(r+u)}else{const r=this.opts.posix?e.relativePosix():e.relative(),i=this.opts.dotRelative&&!r.startsWith(".."+this.#u)?"."+this.#u:"";this.matchEmit(r?i+r+u:"."+u)}}async match(e,t,n){const u=await this.matchCheck(e,n);u&&this.matchFinish(u,t)}matchSync(e,t,n){const u=this.matchCheckSync(e,n);u&&this.matchFinish(u,t)}walkCB(e,t,n){this.signal?.aborted&&n(),this.walkCB2(e,t,new I4(this.opts),n)}walkCB2(e,t,n,u){if(this.#a(e))return u();if(this.signal?.aborted&&u(),this.paused){this.onResume(()=>this.walkCB2(e,t,n,u));return}n.processPatterns(e,t);let r=1;const i=()=>{--r===0&&u()};for(const[a,o,s]of n.matches.entries())this.#t(a)||(r++,this.match(a,o,s).then(()=>i()));for(const a of n.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;r++;const o=a.readdirCached();a.calledReaddir()?this.walkCB3(a,o,n,i):a.readdirCB((s,c)=>this.walkCB3(a,c,n,i),!0)}i()}walkCB3(e,t,n,u){n=n.filterEntries(e,t);let r=1;const i=()=>{--r===0&&u()};for(const[a,o,s]of n.matches.entries())this.#t(a)||(r++,this.match(a,o,s).then(()=>i()));for(const[a,o]of n.subwalks.entries())r++,this.walkCB2(a,o,n.child(),i);i()}walkCBSync(e,t,n){this.signal?.aborted&&n(),this.walkCB2Sync(e,t,new I4(this.opts),n)}walkCB2Sync(e,t,n,u){if(this.#a(e))return u();if(this.signal?.aborted&&u(),this.paused){this.onResume(()=>this.walkCB2Sync(e,t,n,u));return}n.processPatterns(e,t);let r=1;const i=()=>{--r===0&&u()};for(const[a,o,s]of n.matches.entries())this.#t(a)||this.matchSync(a,o,s);for(const a of n.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;r++;const o=a.readdirSync();this.walkCB3Sync(a,o,n,i)}i()}walkCB3Sync(e,t,n,u){n=n.filterEntries(e,t);let r=1;const i=()=>{--r===0&&u()};for(const[a,o,s]of n.matches.entries())this.#t(a)||this.matchSync(a,o,s);for(const[a,o]of n.subwalks.entries())r++,this.walkCB2Sync(a,o,n.child(),i);i()}},T4=class extends F4{matches=new Set;constructor(e,t,n){super(e,t,n)}matchEmit(e){this.matches.add(e)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((e,t)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?t(this.signal.reason):e(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}},j4=class extends F4{results;constructor(e,t,n){super(e,t,n),this.results=new Ji({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(e){this.results.write(e),this.results.flowing||this.pause()}stream(){const e=this.path;return e.isUnknown()?e.lstat().then(()=>{this.walkCB(e,this.patterns,()=>this.results.end())}):this.walkCB(e,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}},yD=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Sr=class{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(e,t){if(!t)throw new TypeError("glob options required");if(this.withFileTypes=!!t.withFileTypes,this.signal=t.signal,this.follow=!!t.follow,this.dot=!!t.dot,this.dotRelative=!!t.dotRelative,this.nodir=!!t.nodir,this.mark=!!t.mark,t.cwd?(t.cwd instanceof URL||t.cwd.startsWith("file://"))&&(t.cwd=T5(t.cwd)):this.cwd="",this.cwd=t.cwd||"",this.root=t.root,this.magicalBraces=!!t.magicalBraces,this.nobrace=!!t.nobrace,this.noext=!!t.noext,this.realpath=!!t.realpath,this.absolute=t.absolute,this.includeChildMatches=t.includeChildMatches!==!1,this.noglobstar=!!t.noglobstar,this.matchBase=!!t.matchBase,this.maxDepth=typeof t.maxDepth=="number"?t.maxDepth:1/0,this.stat=!!t.stat,this.ignore=t.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof e=="string"&&(e=[e]),this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(e=e.map(o=>o.replace(/\\/g,"/"))),this.matchBase){if(t.noglobstar)throw new TypeError("base matching requires globstar");e=e.map(o=>o.includes("/")?o:`./**/${o}`)}if(this.pattern=e,this.platform=t.platform||yD,this.opts={...t,platform:this.platform},t.scurry){if(this.scurry=t.scurry,t.nocase!==void 0&&t.nocase!==t.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{const o=t.platform==="win32"?y0:t.platform==="darwin"?A4:t.platform?E0:dD;this.scurry=new o(this.cwd,{nocase:t.nocase,fs:t.fs})}this.nocase=this.scurry.nocase;const n=this.platform==="darwin"||this.platform==="win32",u={...t,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:n,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},r=this.pattern.map(o=>new dr(o,u)),[i,a]=r.reduce((o,s)=>(o[0].push(...s.set),o[1].push(...s.globParts),o),[[],[]]);this.patterns=i.map((o,s)=>{const c=a[s];if(!c)throw new Error("invalid pattern object");return new x4(o,c,0,this.platform)})}async walk(){return[...await new T4(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new T4(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new j4(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new j4(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}},ED=(e,t={})=>{Array.isArray(e)||(e=[e]);for(const n of e)if(new dr(n,t).hasMagic())return!0;return!1};function Ki(e,t={}){return new Sr(e,t).streamSync()}function P4(e,t={}){return new Sr(e,t).stream()}function z4(e,t={}){return new Sr(e,t).walkSync()}async function O4(e,t={}){return new Sr(e,t).walk()}function Xi(e,t={}){return new Sr(e,t).iterateSync()}function N4(e,t={}){return new Sr(e,t).iterate()}var bD=Ki,DD=Object.assign(P4,{sync:Ki}),$D=Xi,wD=Object.assign(N4,{sync:Xi}),CD=Object.assign(z4,{stream:Ki,iterate:Xi}),Yi=Object.assign(O4,{glob:O4,globSync:z4,sync:CD,globStream:P4,stream:DD,globStreamSync:Ki,streamSync:bD,globIterate:N4,iterate:wD,globIterateSync:Xi,iterateSync:$D,Glob:Sr,hasMagic:ED,escape:Gp,unescape:Jr});Yi.glob=Yi;var Qi=1e3,R4=["**/node_modules/**","**/.git/**"];async function kD(e,t){const n=t?cr(t):process.cwd(),u=e.startsWith("**/")?e:`**/${e}`,i=(await Yi(u,{cwd:n,nodir:!0,absolute:!0,dot:!0,ignore:R4})).map(s=>{let c=0;try{c=zp(s).mtimeMs}catch{}return{file:s,mtime:c}});if(i.sort((s,c)=>c.mtime-s.mtime),i.length===0)return"No files found.";const a=i.slice(0,Qi).map(s=>s.file),o=i.length>Qi?`
|
|
63
|
+
|
|
64
|
+
... ${i.length-Qi} more (showing the ${Qi} most recently modified)`:"";return a.join(`
|
|
65
|
+
`)+o}var b0;function SD(){return b0===void 0&&(b0=wb("rg",["--version"],{stdio:"ignore"}).status===0),b0}function AD(e){const t=["--color=never"];e["-i"]&&t.push("-i"),e.multiline&&t.push("-U","--multiline-dotall"),e.glob&&t.push("--glob",e.glob),e.type&&t.push("--type",e.type);const n=e.output_mode??"content";return n==="files_with_matches"?t.push("--files-with-matches"):n==="count"?t.push("--count"):(t.push("--line-number","--no-heading"),typeof e["-A"]=="number"&&t.push("-A",String(e["-A"])),typeof e["-B"]=="number"&&t.push("-B",String(e["-B"])),typeof e["-C"]=="number"&&t.push("-C",String(e["-C"]))),t.push("--",e.pattern),e.path&&t.push(cr(e.path)),t}function Z4(e,t){const n=typeof t.offset=="number"&&t.offset>0?t.offset:0,u=typeof t.head_limit=="number"&&t.head_limit>=0?t.head_limit:void 0;if(n===0&&u===void 0)return e;const r=e.split(`
|
|
66
|
+
`);return(u===void 0?r.slice(n):r.slice(n,n+u)).join(`
|
|
67
|
+
`)}function xD(e){return new Promise(t=>{$b("rg",AD(e),{cwd:process.cwd(),timeout:6e4,maxBuffer:32*1024*1024},(n,u,r)=>{if(n&&n.code!==1){t(`grep failed: ${r.trim()||n.message}`);return}const i=Z4(u.trimEnd(),e);t(i.length===0?"No matches found.":Pi(i))})})}function BD(e){const t=[0];for(let n=0;n<e.length;n++)e[n]===`
|
|
68
|
+
`&&t.push(n+1);return t}function U4(e,t){let n=0,u=e.length-1;for(;n<u;){const r=n+u+1>>1;e[r]<=t?n=r:u=r-1}return n}function ID(e,t){const n=new Set;for(let u=0;u<e.length;u++)t.test(e[u])&&n.add(u);return n}function FD(e,t){const n=BD(e),u=new Set;for(const r of e.matchAll(t)){const i=r.index??0,a=Math.max(i,i+r[0].length-1),o=U4(n,i),s=U4(n,a);for(let c=o;c<=s;c++)u.add(c)}return u}async function TD(e){const t=e.path?cr(e.path):process.cwd(),n=e.glob??"**/*",u=e["-i"]?"i":"",r=e.multiline?new RegExp(e.pattern,`${u}gms`):new RegExp(e.pattern,u);let i=[];try{i=zp(t).isFile()?[t]:await Yi(n,{cwd:t,nodir:!0,absolute:!0,dot:!0,ignore:R4})}catch{return"No matches found."}const a=e.output_mode??"content",o=e["-C"]??e["-B"]??0,s=e["-C"]??e["-A"]??0,c=[],l=[],d=[];for(const E of i){let b;try{b=Cb(E,"utf8")}catch{continue}const g=b.split(`
|
|
69
|
+
`),f=e.multiline?FD(b,r):ID(g,r);if(f.size!==0&&(l.push(E),d.push(`${E}:${f.size}`),a==="content")){const $=new Set;for(const v of[...f].sort((D,C)=>D-C))for(let D=Math.max(0,v-o);D<=Math.min(g.length-1,v+s);D++){if($.has(D))continue;$.add(D);const C=f.has(D)?":":"-";c.push(`${E}${C}${D+1}${C}${g[D]}`)}}}let m=c.join(`
|
|
70
|
+
`);a==="files_with_matches"?m=l.join(`
|
|
71
|
+
`):a==="count"&&(m=d.join(`
|
|
72
|
+
`));const p=Z4(m,e);return p.length===0?"No matches found.":Pi(p)}function jD(e){return SD()?xD(e):TD(e)}import{spawn as M4}from"child_process";import{mkdirSync as PD,createWriteStream as zD,rmSync as OD}from"fs";import{tmpdir as ND,platform as RD}from"os";import{join as L4}from"path";var ZD=14400*1e3,UD=50,MD=[/\bpkill\b[^|;&]*\b(node|entry(\.js)?|chromium?|supervise-entry)\b/,/\bkillall\b[^|;&]*\b(node|chromium?|chrome)\b/,/\bfuser\s+-k\s+.*\b(8080|6080|5900)\b/,/\b(reboot|shutdown|halt|poweroff)\b/,/\binit\s+0\b/];function LD(e){return MD.some(t=>t.test(e))}var q4=L4(ND(),"octavus-code-shell"),ea=RD()==="win32",V4=0,ta=new Map;function qD(){const e=[...ta.values()].filter(t=>t.finishedAt!==void 0).sort((t,n)=>(t.finishedAt??0)-(n.finishedAt??0));for(let t=0;t<e.length-UD;t++){const n=e[t];ta.delete(n.id);try{OD(n.logPath,{force:!0})}catch{}}}function VD(){return ea?{shell:"cmd.exe",args:["/c"]}:{shell:process.env.SHELL??"/bin/bash",args:["-l","-c"]}}function J4(e,t){e.tail+=t,e.tail.length>n0&&(e.tail=e.tail.slice(-n0));for(const n of e.waiters)n()}function JD(e){try{ea?M4("taskkill",["/pid",String(e),"/t","/f"]).on("error",()=>{}):process.kill(-e,"SIGKILL")}catch{}}function WD(e,t){PD(q4,{recursive:!0}),V4+=1;const n=`sh_${V4}`,u=L4(q4,`${n}.log`),{shell:r,args:i}=VD(),a=M4(r,[...i,e],{cwd:t,env:process.env,stdio:["ignore","pipe","pipe"],detached:!ea,windowsHide:!0,windowsVerbatimArguments:ea}),o=zD(u,{flags:"w"});o.write(`# command: ${e}
|
|
73
|
+
# cwd: ${t}
|
|
74
|
+
# pid: ${a.pid??-1}
|
|
75
|
+
|
|
76
|
+
`);const s={id:n,pid:a.pid??-1,command:e,cwd:t,startedAt:Date.now(),tail:"",logPath:u,child:a,waiters:new Set},c=m=>{const p=m.toString();o.write(p),J4(s,p)};a.stdout?.on("data",c),a.stderr?.on("data",c);const l=setTimeout(()=>{s.finishedAt===void 0&&a.pid!==void 0&&(s.timedOut=!0,JD(a.pid))},ZD),d=m=>{if(s.finishedAt===void 0){clearTimeout(l),s.finishedAt=Date.now(),s.exitCode=s.timedOut?124:m,o.write(`
|
|
77
|
+
|
|
78
|
+
# exit_code: ${s.exitCode}
|
|
79
|
+
# elapsed_ms: ${s.finishedAt-s.startedAt}
|
|
80
|
+
`),o.end();for(const p of s.waiters)p()}};return a.on("error",m=>{J4(s,`
|
|
81
|
+
[spawn error] ${m.message}
|
|
82
|
+
`),d(1)}),a.on("exit",(m,p)=>d(m??(p?1:-1))),ta.set(n,s),qD(),s}function W4(e,t,n){return new Promise(u=>{const r={fn:()=>{}},i={};let a=!1;const o=()=>{a||(a=!0,i.handle!==void 0&&clearTimeout(i.handle),e.waiters.delete(r.fn),u())};r.fn=()=>{const s=n?n.test(e.tail):!1;(e.finishedAt!==void 0||s)&&o()},i.handle=setTimeout(o,t),e.waiters.add(r.fn),r.fn()})}function HD(e){if(e.finishedAt===void 0)return`[running] shell_id=${e.id} pid=${e.pid} running_for_ms=${Date.now()-e.startedAt}`;const t=e.timedOut?" (killed - exceeded max runtime)":"";return`[exited] shell_id=${e.id} exit_code=${e.exitCode} elapsed_ms=${e.finishedAt-e.startedAt}${t}`}function D0(e,t){return`${t}
|
|
83
|
+
|
|
84
|
+
${Pi(e.tail).trimEnd()}
|
|
85
|
+
|
|
86
|
+
${HD(e)}
|
|
87
|
+
Full output log: ${e.logPath}`}async function GD(e){const t=e.working_directory?cr(e.working_directory):process.cwd(),n=Pp(e.block_until_ms),u=WD(e.command,t);return n>0&&await W4(u,n),u.finishedAt!==void 0?D0(u,`$ ${u.command}`):D0(u,`$ ${u.command}
|
|
88
|
+
(still running after ${n}ms - moved to background; poll with await_shell)`)}async function KD(e){const t=Pp(e.block_until_ms);if(!e.shell_id)return await new Promise(r=>{setTimeout(r,t)}),`Waited ${t}ms.`;const n=ta.get(e.shell_id);if(!n)return`No background shell with id ${e.shell_id}. It may have been pruned or never existed.`;let u;if(e.pattern)try{u=new RegExp(e.pattern,"m")}catch(r){return`Invalid pattern: ${r instanceof Error?r.message:String(r)}`}return n.finishedAt===void 0&&await W4(n,t,u),D0(n,`Polled ${n.id}`)}var er=new eb({name:"octavus-code",version:"0.1.0"});er.registerTool("read",{description:"Read a file from the workspace. Returns the contents with a right-aligned line-number prefix (` 12|code`) so you can cite exact lines. The prefix is display metadata only - never include it when writing or editing. Reads the whole file by default; pass offset/limit for a slice (a negative offset counts back from the end). Image files (png, jpg, jpeg, gif, webp) are returned as images.",inputSchema:{path:Ce.string().describe("Absolute path, or a path relative to the workspace root."),offset:Ce.number().int().optional().describe("1-indexed line to start from; negative counts back from the end."),limit:Ce.number().int().optional().describe("Number of lines to read from the offset.")}},({path:e,offset:t,limit:n})=>{try{const u=_b(e,t,n);return u.kind==="error"?Zt(u.message):u.kind==="image"?{content:[{type:"image",data:u.data,mimeType:u.mimeType}]}:lr(u.body)}catch(u){return Zt(`read failed: ${Xt(u)}`)}}),er.registerTool("write",{description:"Write a file, overwriting it if it exists and creating parent directories as needed. Prefer str_replace for edits to an existing file; use write for new files or full rewrites.",inputSchema:{path:Ce.string().describe("Absolute path, or a path relative to the workspace root."),contents:Ce.string().describe("The full file contents to write.")}},({path:e,contents:t})=>{try{return lr(yb(e,t))}catch(n){return Zt(`write failed: ${Xt(n)}`)}}),er.registerTool("str_replace",{description:"Make an exact-string replacement in a file. old_string must match the file byte-for-byte, including indentation, and must be unique unless replace_all is set - otherwise the edit is rejected so you add more surrounding context. Preserve exact whitespace; do not include line-number prefixes from read.",inputSchema:{path:Ce.string().describe("Absolute path, or a path relative to the workspace root."),old_string:Ce.string().describe("The exact text to replace."),new_string:Ce.string().describe("The replacement text (must differ from old_string)."),replace_all:Ce.boolean().optional().describe("Replace every occurrence (default false). Useful for renames.")}},e=>{try{return lr(bb(e.path,e.old_string,e.new_string,e.replace_all??!1))}catch(t){return Zt(`str_replace failed: ${Xt(t)}`)}}),er.registerTool("delete",{description:"Delete a file. Succeeds quietly if the file does not exist; refuses directories.",inputSchema:{path:Ce.string().describe("Absolute path, or a path relative to the workspace root.")}},({path:e})=>{try{return lr(Db(e))}catch(t){return Zt(`delete failed: ${Xt(t)}`)}}),er.registerTool("glob",{description:'Find files by glob pattern, returned newest-first (by modification time). A pattern not starting with "**/" is made recursive automatically (e.g. "*.ts" -> "**/*.ts"). node_modules and .git are ignored.',inputSchema:{glob_pattern:Ce.string().describe('Glob to match, e.g. "src/**/*.ts" or "*.json".'),target_directory:Ce.string().optional().describe("Directory to search (absolute or workspace-relative). Defaults to the workspace root.")}},async e=>{try{return lr(await kD(e.glob_pattern,e.target_directory))}catch(t){return Zt(`glob failed: ${Xt(t)}`)}}),er.registerTool("grep",{description:'Search file contents with a regular expression (ripgrep). output_mode: "content" (matching lines, default), "files_with_matches" (paths only), or "count" (per-file counts). Content mode supports -A/-B/-C context lines. Use "multiline" for patterns that span lines. Filter with "glob" or "type" (e.g. js, py, rust). Escape literal braces (interface\\{\\}).',inputSchema:{pattern:Ce.string().describe("Regular expression to search for."),path:Ce.string().optional().describe("File or directory to search (defaults to the workspace root)."),glob:Ce.string().optional().describe('Only search files matching this glob (e.g. "*.{ts,tsx}").'),type:Ce.string().optional().describe("Only search files of this ripgrep type (e.g. js, py, go)."),output_mode:Ce.enum(["content","files_with_matches","count"]).optional(),"-i":Ce.boolean().optional().describe("Case-insensitive search."),"-A":Ce.number().int().optional().describe("Lines of context after each match (content mode)."),"-B":Ce.number().int().optional().describe("Lines of context before each match (content mode)."),"-C":Ce.number().int().optional().describe("Lines of context around each match (content mode)."),multiline:Ce.boolean().optional().describe("Let patterns span lines (. matches newlines)."),head_limit:Ce.number().int().min(0).optional().describe("Cap the number of output lines."),offset:Ce.number().int().min(0).optional().describe("Skip this many output lines (paginate with head_limit).")}},async e=>{try{return lr(await jD(e))}catch(t){return Zt(`grep failed: ${Xt(t)}`)}}),er.registerTool("shell",{description:"Run a shell command in the workspace. It runs in the foreground until block_until_ms elapses (default 30000); if it finishes first you get the full output and exit code, otherwise it keeps running in the background and you get a shell_id to poll with await_shell. Set block_until_ms to 0 to background immediately (dev servers, watchers, long builds). Use read/write/glob/grep for file work rather than cat/sed/find.",inputSchema:{command:Ce.string().describe("The command to execute."),block_until_ms:Ce.number().int().optional().describe("How long to wait in the foreground before backgrounding (default 30000, 0 = background now)."),working_directory:Ce.string().optional().describe("Directory to run in (absolute or workspace-relative). Defaults to the workspace root.")}},async e=>{try{return LD(e.command)?Zt(`Command blocked by safety policy - it would disrupt the tool server or the machine: ${e.command}`):lr(await GD(e))}catch(t){return Zt(`shell failed: ${Xt(t)}`)}}),er.registerTool("await_shell",{description:'Poll a backgrounded shell job (from shell) by its shell_id, blocking until it finishes, its output matches "pattern", or block_until_ms elapses (default 30000). Omit shell_id to simply sleep for block_until_ms. Prefer doing other useful work over polling in a tight loop.',inputSchema:{shell_id:Ce.string().optional().describe("The shell_id returned by shell. Omit to just sleep."),block_until_ms:Ce.number().int().optional().describe("Maximum time to block (default 30000)."),pattern:Ce.string().optional().describe("Return early once this regex matches the job output.")}},async e=>{try{return lr(await KD(e))}catch(t){return Zt(`await_shell failed: ${Xt(t)}`)}});async function XD(){const e=new ab;await er.connect(e)}XD().catch(e=>{process.stderr.write(`[octavus-code] fatal: ${Xt(e)}
|
|
89
|
+
`),process.exit(1)});
|