@spritz-finance/api-client 0.7.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/spritz-api-client.cjs +131 -185
- package/dist/spritz-api-client.d.ts +4668 -6211
- package/dist/spritz-api-client.mjs +131 -185
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";var
|
|
2
|
-
`),l=u.split(/\r\n|[\n\r]/g),f=l[i];if(f.length>120){for(var m=Math.floor(s/80),d=s%80,v=[],h=0;h<f.length;h+=80)v.push(f.slice(h,h+80));return c+
|
|
3
|
-
`)}function
|
|
1
|
+
"use strict";var Qs=require("@solana/web3.js"),Ar=(e=>(e.Sandbox="staging",e.Production="production",e))(Ar||{}),up=Object.defineProperty,Dn=(e,n)=>{for(var t in n)up(e,t,{get:n[t],enumerable:!0})};function vi(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?vi=function(t){return typeof t}:vi=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vi(e)}function Sn(e){return vi(e)=="object"&&e!==null}var Ws=typeof Symbol=="function"&&Symbol.iterator!=null?Symbol.iterator:"@@iterator",Ce=typeof Symbol=="function"&&Symbol.toStringTag!=null?Symbol.toStringTag:"@@toStringTag";function wr(e,n){for(var t=/\r\n|[\n\r]/g,u=1,i=n+1,r;(r=t.exec(e.body))&&r.index<n;)u+=1,i=n+1-(r.index+r[0].length);return{line:u,column:i}}function rp(e){return Ys(e.source,wr(e.source,e.start))}function Ys(e,n){var t=e.locationOffset.column-1,u=pi(t)+e.body,i=n.line-1,r=e.locationOffset.line-1,a=n.line+r,o=n.line===1?t:0,s=n.column+o,c="".concat(e.name,":").concat(a,":").concat(s,`
|
|
2
|
+
`),l=u.split(/\r\n|[\n\r]/g),f=l[i];if(f.length>120){for(var m=Math.floor(s/80),d=s%80,v=[],h=0;h<f.length;h+=80)v.push(f.slice(h,h+80));return c+Xs([["".concat(a),v[0]]].concat(v.slice(1,m+1).map(function(E){return["",E]}),[[" ",pi(d-1)+"^"],["",v[m+1]]]))}return c+Xs([["".concat(a-1),l[i-1]],["".concat(a),f],["",pi(s-1)+"^"],["".concat(a+1),l[i+1]]])}function Xs(e){var n=e.filter(function(u){u[0];var i=u[1];return i!==void 0}),t=Math.max.apply(Math,n.map(function(u){var i=u[0];return i.length}));return n.map(function(u){var i=u[0],r=u[1];return ap(t,i)+(r?" | "+r:" |")}).join(`
|
|
3
|
+
`)}function pi(e){return Array(e+1).join(" ")}function ap(e,n){return pi(e-n.length)+n}function hi(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?hi=function(t){return typeof t}:hi=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hi(e)}function ec(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);n&&(u=u.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,u)}return t}function op(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ec(Object(t),!0).forEach(function(u){sp(e,u,t[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ec(Object(t)).forEach(function(u){Object.defineProperty(e,u,Object.getOwnPropertyDescriptor(t,u))})}return e}function sp(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function cp(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function lp(e,n){for(var t=0;t<n.length;t++){var u=n[t];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,u.key,u)}}function dp(e,n,t){return n&&lp(e.prototype,n),e}function fp(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&It(e,n)}function mp(e){var n=tc();return function(){var u=Ft(e),i;if(n){var r=Ft(this).constructor;i=Reflect.construct(u,arguments,r)}else i=u.apply(this,arguments);return nc(this,i)}}function nc(e,n){return n&&(hi(n)==="object"||typeof n=="function")?n:xt(e)}function xt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _r(e){var n=typeof Map=="function"?new Map:void 0;return _r=function(u){if(u===null||!vp(u))return u;if(typeof u!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n<"u"){if(n.has(u))return n.get(u);n.set(u,i)}function i(){return gi(u,arguments,Ft(this).constructor)}return i.prototype=Object.create(u.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),It(i,u)},_r(e)}function gi(e,n,t){return tc()?gi=Reflect.construct:gi=function(i,r,a){var o=[null];o.push.apply(o,r);var s=Function.bind.apply(i,o),c=new s;return a&&It(c,a.prototype),c},gi.apply(null,arguments)}function tc(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function vp(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function It(e,n){return It=Object.setPrototypeOf||function(u,i){return u.__proto__=i,u},It(e,n)}function Ft(e){return Ft=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ft(e)}var ee=function(e){fp(t,e);var n=mp(t);function t(u,i,r,a,o,s,c){var l,f,m,d;cp(this,t),d=n.call(this,u),d.name="GraphQLError",d.originalError=s??void 0,d.nodes=ic(Array.isArray(i)?i:i?[i]:void 0);for(var v=[],h=0,E=(b=d.nodes)!==null&&b!==void 0?b:[];h<E.length;h++){var b,y=E[h],k=y.loc;k!=null&&v.push(k)}v=ic(v),d.source=r??((l=v)===null||l===void 0?void 0:l[0].source),d.positions=a??((f=v)===null||f===void 0?void 0:f.map(function(B){return B.start})),d.locations=a&&r?a.map(function(B){return wr(r,B)}):(m=v)===null||m===void 0?void 0:m.map(function(B){return wr(B.source,B.start)}),d.path=o??void 0;var _=s?.extensions;return c==null&&Sn(_)?d.extensions=op({},_):d.extensions=c??{},Object.defineProperties(xt(d),{message:{enumerable:!0},locations:{enumerable:d.locations!=null},path:{enumerable:d.path!=null},extensions:{enumerable:d.extensions!=null&&Object.keys(d.extensions).length>0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),s!=null&&s.stack?(Object.defineProperty(xt(d),"stack",{value:s.stack,writable:!0,configurable:!0}),nc(d)):(Error.captureStackTrace?Error.captureStackTrace(xt(d),t):Object.defineProperty(xt(d),"stack",{value:Error().stack,writable:!0,configurable:!0}),d)}return dp(t,[{key:"toString",value:function(){return pp(this)}},{key:Ce,get:function(){return"Object"}}]),t}(_r(Error));function ic(e){return e===void 0||e.length===0?void 0:e}function pp(e){var n=e.message;if(e.nodes)for(var t=0,u=e.nodes;t<u.length;t++){var i=u[t];i.loc&&(n+=`
|
|
4
4
|
|
|
5
|
-
`+
|
|
5
|
+
`+rp(i.loc))}else if(e.source&&e.locations)for(var r=0,a=e.locations;r<a.length;r++){var o=a[r];n+=`
|
|
6
6
|
|
|
7
|
-
`+
|
|
7
|
+
`+Ys(e.source,o)}return n}var C=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});function Nt(e,n){var t=!!e;if(!t)throw new Error(n??"Unexpected invariant triggered.")}var hp=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):void 0,Cr=hp;function Oe(e){var n=e.prototype.toJSON;typeof n=="function"||Nt(0),e.prototype.inspect=n,Cr&&(e.prototype[Cr]=n)}var gp=function(){function e(t,u,i){this.start=t.start,this.end=u.end,this.startToken=t,this.endToken=u,this.source=i}var n=e.prototype;return n.toJSON=function(){return{start:this.start,end:this.end}},e}();Oe(gp);var Ep=function(){function e(t,u,i,r,a,o,s){this.kind=t,this.start=u,this.end=i,this.line=r,this.column=a,this.value=s,this.prev=o,this.next=null}var n=e.prototype;return n.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();Oe(Ep);function $r(e){return e!=null&&typeof e.kind=="string"}function Ei(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ei=function(t){return typeof t}:Ei=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ei(e)}var yp=10,uc=2;function J(e){return yi(e,[])}function yi(e,n){switch(Ei(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return e===null?"null":bp(e,n);default:return String(e)}}function bp(e,n){if(n.indexOf(e)!==-1)return"[Circular]";var t=[].concat(n,[e]),u=Sp(e);if(u!==void 0){var i=u.call(e);if(i!==e)return typeof i=="string"?i:yi(i,t)}else if(Array.isArray(e))return Dp(e,t);return kp(e,t)}function kp(e,n){var t=Object.keys(e);if(t.length===0)return"{}";if(n.length>uc)return"["+Bp(e)+"]";var u=t.map(function(i){var r=yi(e[i],n);return i+": "+r});return"{ "+u.join(", ")+" }"}function Dp(e,n){if(e.length===0)return"[]";if(n.length>uc)return"[Array]";for(var t=Math.min(yp,e.length),u=e.length-t,i=[],r=0;r<t;++r)i.push(yi(e[r],n));return u===1?i.push("... 1 more item"):u>1&&i.push("... ".concat(u," more items")),"["+i.join(", ")+"]"}function Sp(e){var n=e[String(Cr)];if(typeof n=="function")return n;if(typeof e.inspect=="function")return e.inspect}function Bp(e){var n=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(n==="Object"&&typeof e.constructor=="function"){var t=e.constructor.name;if(typeof t=="string"&&t!=="")return t}return n}function q(e,n){var t=!!e;if(!t)throw new Error(n)}function bi(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?bi=function(t){return typeof t}:bi=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bi(e)}var Je=function(n,t){if(n instanceof t)return!0;if(bi(n)==="object"&&n!==null){var u,i=t.prototype[Symbol.toStringTag],r=Symbol.toStringTag in n?n[Symbol.toStringTag]:(u=n.constructor)===null||u===void 0?void 0:u.name;if(i===r){var a=J(n);throw new Error("Cannot use ".concat(i,' "').concat(a,`" from another module or realm.
|
|
8
8
|
|
|
9
9
|
Ensure that there is only one instance of "graphql" in the node_modules
|
|
10
10
|
directory. If different versions of "graphql" are the dependencies of other
|
|
@@ -15,59 +15,74 @@ https://yarnpkg.com/en/docs/selective-version-resolutions
|
|
|
15
15
|
Duplicate "graphql" modules cannot be used at the same time since different
|
|
16
16
|
versions may have different capabilities and behavior. The data from one
|
|
17
17
|
version used in the function from another could produce confusing and
|
|
18
|
-
spurious results.`))}}return!1};function
|
|
18
|
+
spurious results.`))}}return!1};function Ap(e,n){for(var t=0;t<n.length;t++){var u=n[t];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,u.key,u)}}function wp(e,n,t){return n&&Ap(e.prototype,n),e}(function(){function e(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GraphQL request",u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{line:1,column:1};typeof n=="string"||q(0,"Body must be a string. Received: ".concat(J(n),".")),this.body=n,this.name=t,this.locationOffset=u,this.locationOffset.line>0||q(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||q(0,"column in locationOffset is 1-indexed and must be positive.")}return wp(e,[{key:Ce,get:function(){return"Source"}}]),e})();var K=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function _p(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,u=e.indexOf(`
|
|
19
19
|
`)===-1,i=e[0]===" "||e[0]===" ",r=e[e.length-1]==='"',a=e[e.length-1]==="\\",o=!u||r||a||t,s="";return o&&!(u&&i)&&(s+=`
|
|
20
20
|
`+n),s+=n?e.replace(/\n/g,`
|
|
21
21
|
`+n):e,o&&(s+=`
|
|
22
|
-
`),'"""'+s.replace(/"""/g,'\\"""')+'"""'}var
|
|
22
|
+
`),'"""'+s.replace(/"""/g,'\\"""')+'"""'}var Cp={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},$p=Object.freeze({});function rc(e,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Cp,u=void 0,i=Array.isArray(e),r=[e],a=-1,o=[],s=void 0,c=void 0,l=void 0,f=[],m=[],d=e;do{a++;var v=a===r.length,h=v&&o.length!==0;if(v){if(c=m.length===0?void 0:f[f.length-1],s=l,l=m.pop(),h){if(i)s=s.slice();else{for(var E={},b=0,y=Object.keys(s);b<y.length;b++){var k=y[b];E[k]=s[k]}s=E}for(var _=0,B=0;B<o.length;B++){var G=o[B][0],V=o[B][1];i&&(G-=_),i&&V===null?(s.splice(G,1),_++):s[G]=V}}a=u.index,r=u.keys,o=u.edits,i=u.inArray,u=u.prev}else{if(c=l?i?a:r[a]:void 0,s=l?l[c]:d,s==null)continue;l&&f.push(c)}var F=void 0;if(!Array.isArray(s)){if(!$r(s))throw new Error("Invalid AST Node: ".concat(J(s),"."));var g=xr(n,s.kind,v);if(g){if(F=g.call(n,s,c,l,f,m),F===$p)break;if(F===!1){if(!v){f.pop();continue}}else if(F!==void 0&&(o.push([c,F]),!v))if($r(F))s=F;else{f.pop();continue}}}if(F===void 0&&h&&o.push([c,s]),v)f.pop();else{var $;u={inArray:i,index:a,keys:r,edits:o,prev:u},i=Array.isArray(s),r=i?s:($=t[s.kind])!==null&&$!==void 0?$:[],a=-1,o=[],l&&m.push(l),l=s}}while(u!==void 0);return o.length!==0&&(d=o[o.length-1][1]),d}function xr(e,n,t){var u=e[n];if(u){if(!t&&typeof u=="function")return u;var i=t?u.leave:u.enter;if(typeof i=="function")return i}else{var r=t?e.leave:e.enter;if(r){if(typeof r=="function")return r;var a=r[n];if(typeof a=="function")return a}}}var xp=Array.prototype.find?function(e,n){return Array.prototype.find.call(e,n)}:function(e,n){for(var t=0;t<e.length;t++){var u=e[t];if(n(u))return u}},ac=xp,Ip=Object.values||function(e){return Object.keys(e).map(function(n){return e[n]})},Bn=Ip,Fp=Object.entries||function(e){return Object.keys(e).map(function(n){return[n,e[n]]})},Tt=Fp;function oc(e,n){return e.reduce(function(t,u){return t[n(u)]=u,t},Object.create(null))}function ki(e,n){for(var t=Object.create(null),u=0,i=Tt(e);u<i.length;u++){var r=i[u],a=r[0],o=r[1];t[a]=n(o,a)}return t}function we(e){if(Object.getPrototypeOf(e)===null)return e;for(var n=Object.create(null),t=0,u=Tt(e);t<u.length;t++){var i=u[t],r=i[0],a=i[1];n[r]=a}return n}function Ir(e,n,t){return e.reduce(function(u,i){return u[n(i)]=t(i),u},Object.create(null))}var Np=5;function Tp(e,n){var t=[e,n],u=t[0],i=t[1],r=" Did you mean ";r+=u+" ";var a=i.map(function(c){return'"'.concat(c,'"')});switch(a.length){case 0:return"";case 1:return r+a[0]+"?";case 2:return r+a[0]+" or "+a[1]+"?"}var o=a.slice(0,Np),s=o.pop();return r+o.join(", ")+", or "+s+"?"}function sc(e){return e}function Op(e,n){for(var t=0,u=0;t<e.length&&u<n.length;){var i=e.charCodeAt(t),r=n.charCodeAt(u);if(Di(i)&&Di(r)){var a=0;do++t,a=a*10+i-Fr,i=e.charCodeAt(t);while(Di(i)&&a>0);var o=0;do++u,o=o*10+r-Fr,r=n.charCodeAt(u);while(Di(r)&&o>0);if(a<o)return-1;if(a>o)return 1}else{if(i<r)return-1;if(i>r)return 1;++t,++u}}return e.length-n.length}var Fr=48,zp=57;function Di(e){return!isNaN(e)&&Fr<=e&&e<=zp}function Up(e,n){for(var t=Object.create(null),u=new Pp(e),i=Math.floor(e.length*.4)+1,r=0;r<n.length;r++){var a=n[r],o=u.measure(a,i);o!==void 0&&(t[a]=o)}return Object.keys(t).sort(function(s,c){var l=t[s]-t[c];return l!==0?l:Op(s,c)})}var Pp=function(){function e(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=cc(this._inputLowerCase),this._rows=[new Array(t.length+1).fill(0),new Array(t.length+1).fill(0),new Array(t.length+1).fill(0)]}var n=e.prototype;return n.measure=function(u,i){if(this._input===u)return 0;var r=u.toLowerCase();if(this._inputLowerCase===r)return 1;var a=cc(r),o=this._inputArray;if(a.length<o.length){var s=a;a=o,o=s}var c=a.length,l=o.length;if(!(c-l>i)){for(var f=this._rows,m=0;m<=l;m++)f[0][m]=m;for(var d=1;d<=c;d++){for(var v=f[(d-1)%3],h=f[d%3],E=h[0]=d,b=1;b<=l;b++){var y=a[d-1]===o[b-1]?0:1,k=Math.min(v[b]+1,h[b-1]+1,v[b-1]+y);if(d>1&&b>1&&a[d-1]===o[b-2]&&a[d-2]===o[b-1]){var _=f[(d-2)%3][b-2];k=Math.min(k,_+1)}k<E&&(E=k),h[b]=k}if(E>i)return}var B=f[c%3][l];return B<=i?B:void 0}},e}();function cc(e){for(var n=e.length,t=new Array(n),u=0;u<n;++u)t[u]=e.charCodeAt(u);return t}function He(e){return rc(e,{leave:jp})}var Rp=80,jp={Name:function(n){return n.value},Variable:function(n){return"$"+n.name},Document:function(n){return x(n.definitions,`
|
|
23
23
|
|
|
24
24
|
`)+`
|
|
25
|
-
`},OperationDefinition:function(n){var t=n.operation,u=n.name,i=ne("(",x(n.variableDefinitions,", "),")"),r=x(n.directives," "),a=n.selectionSet;return!u&&!r&&!i&&t==="query"?a:x([t,x([u,i]),r,a]," ")},VariableDefinition:function(n){var t=n.variable,u=n.type,i=n.defaultValue,r=n.directives;return t+": "+u+ne(" = ",i)+ne(" ",x(r," "))},SelectionSet:function(n){var t=n.selections;return
|
|
26
|
-
`,
|
|
25
|
+
`},OperationDefinition:function(n){var t=n.operation,u=n.name,i=ne("(",x(n.variableDefinitions,", "),")"),r=x(n.directives," "),a=n.selectionSet;return!u&&!r&&!i&&t==="query"?a:x([t,x([u,i]),r,a]," ")},VariableDefinition:function(n){var t=n.variable,u=n.type,i=n.defaultValue,r=n.directives;return t+": "+u+ne(" = ",i)+ne(" ",x(r," "))},SelectionSet:function(n){var t=n.selections;return Ue(t)},Field:function(n){var t=n.alias,u=n.name,i=n.arguments,r=n.directives,a=n.selectionSet,o=ne("",t,": ")+u,s=o+ne("(",x(i,", "),")");return s.length>Rp&&(s=o+ne(`(
|
|
26
|
+
`,Si(x(i,`
|
|
27
27
|
`)),`
|
|
28
|
-
)`)),x([s,x(r," "),a]," ")},Argument:function(n){var t=n.name,u=n.value;return t+": "+u},FragmentSpread:function(n){var t=n.name,u=n.directives;return"..."+t+ne(" ",x(u," "))},InlineFragment:function(n){var t=n.typeCondition,u=n.directives,i=n.selectionSet;return x(["...",ne("on ",t),x(u," "),i]," ")},FragmentDefinition:function(n){var t=n.name,u=n.typeCondition,i=n.variableDefinitions,r=n.directives,a=n.selectionSet;return"fragment ".concat(t).concat(ne("(",x(i,", "),")")," ")+"on ".concat(u," ").concat(ne("",x(r," ")," "))+a},IntValue:function(n){var t=n.value;return t},FloatValue:function(n){var t=n.value;return t},StringValue:function(n,t){var u=n.value,i=n.block;return i?
|
|
29
|
-
`,
|
|
28
|
+
)`)),x([s,x(r," "),a]," ")},Argument:function(n){var t=n.name,u=n.value;return t+": "+u},FragmentSpread:function(n){var t=n.name,u=n.directives;return"..."+t+ne(" ",x(u," "))},InlineFragment:function(n){var t=n.typeCondition,u=n.directives,i=n.selectionSet;return x(["...",ne("on ",t),x(u," "),i]," ")},FragmentDefinition:function(n){var t=n.name,u=n.typeCondition,i=n.variableDefinitions,r=n.directives,a=n.selectionSet;return"fragment ".concat(t).concat(ne("(",x(i,", "),")")," ")+"on ".concat(u," ").concat(ne("",x(r," ")," "))+a},IntValue:function(n){var t=n.value;return t},FloatValue:function(n){var t=n.value;return t},StringValue:function(n,t){var u=n.value,i=n.block;return i?_p(u,t==="description"?"":" "):JSON.stringify(u)},BooleanValue:function(n){var t=n.value;return t?"true":"false"},NullValue:function(){return"null"},EnumValue:function(n){var t=n.value;return t},ListValue:function(n){var t=n.values;return"["+x(t,", ")+"]"},ObjectValue:function(n){var t=n.fields;return"{"+x(t,", ")+"}"},ObjectField:function(n){var t=n.name,u=n.value;return t+": "+u},Directive:function(n){var t=n.name,u=n.arguments;return"@"+t+ne("(",x(u,", "),")")},NamedType:function(n){var t=n.name;return t},ListType:function(n){var t=n.type;return"["+t+"]"},NonNullType:function(n){var t=n.type;return t+"!"},SchemaDefinition:ze(function(e){var n=e.directives,t=e.operationTypes;return x(["schema",x(n," "),Ue(t)]," ")}),OperationTypeDefinition:function(n){var t=n.operation,u=n.type;return t+": "+u},ScalarTypeDefinition:ze(function(e){var n=e.name,t=e.directives;return x(["scalar",n,x(t," ")]," ")}),ObjectTypeDefinition:ze(function(e){var n=e.name,t=e.interfaces,u=e.directives,i=e.fields;return x(["type",n,ne("implements ",x(t," & ")),x(u," "),Ue(i)]," ")}),FieldDefinition:ze(function(e){var n=e.name,t=e.arguments,u=e.type,i=e.directives;return n+(lc(t)?ne(`(
|
|
29
|
+
`,Si(x(t,`
|
|
30
30
|
`)),`
|
|
31
|
-
)`):ne("(",x(t,", "),")"))+": "+u+ne(" ",x(i," "))}),InputValueDefinition:
|
|
32
|
-
`,
|
|
31
|
+
)`):ne("(",x(t,", "),")"))+": "+u+ne(" ",x(i," "))}),InputValueDefinition:ze(function(e){var n=e.name,t=e.type,u=e.defaultValue,i=e.directives;return x([n+": "+t,ne("= ",u),x(i," ")]," ")}),InterfaceTypeDefinition:ze(function(e){var n=e.name,t=e.interfaces,u=e.directives,i=e.fields;return x(["interface",n,ne("implements ",x(t," & ")),x(u," "),Ue(i)]," ")}),UnionTypeDefinition:ze(function(e){var n=e.name,t=e.directives,u=e.types;return x(["union",n,x(t," "),u&&u.length!==0?"= "+x(u," | "):""]," ")}),EnumTypeDefinition:ze(function(e){var n=e.name,t=e.directives,u=e.values;return x(["enum",n,x(t," "),Ue(u)]," ")}),EnumValueDefinition:ze(function(e){var n=e.name,t=e.directives;return x([n,x(t," ")]," ")}),InputObjectTypeDefinition:ze(function(e){var n=e.name,t=e.directives,u=e.fields;return x(["input",n,x(t," "),Ue(u)]," ")}),DirectiveDefinition:ze(function(e){var n=e.name,t=e.arguments,u=e.repeatable,i=e.locations;return"directive @"+n+(lc(t)?ne(`(
|
|
32
|
+
`,Si(x(t,`
|
|
33
33
|
`)),`
|
|
34
|
-
)`):ne("(",x(t,", "),")"))+(u?" repeatable":"")+" on "+x(i," | ")}),SchemaExtension:function(n){var t=n.directives,u=n.operationTypes;return x(["extend schema",x(t," "),
|
|
35
|
-
`)}}function x(e){var n,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(n=e?.filter(function(u){return u}).join(t))!==null&&n!==void 0?n:""}function
|
|
36
|
-
`,
|
|
34
|
+
)`):ne("(",x(t,", "),")"))+(u?" repeatable":"")+" on "+x(i," | ")}),SchemaExtension:function(n){var t=n.directives,u=n.operationTypes;return x(["extend schema",x(t," "),Ue(u)]," ")},ScalarTypeExtension:function(n){var t=n.name,u=n.directives;return x(["extend scalar",t,x(u," ")]," ")},ObjectTypeExtension:function(n){var t=n.name,u=n.interfaces,i=n.directives,r=n.fields;return x(["extend type",t,ne("implements ",x(u," & ")),x(i," "),Ue(r)]," ")},InterfaceTypeExtension:function(n){var t=n.name,u=n.interfaces,i=n.directives,r=n.fields;return x(["extend interface",t,ne("implements ",x(u," & ")),x(i," "),Ue(r)]," ")},UnionTypeExtension:function(n){var t=n.name,u=n.directives,i=n.types;return x(["extend union",t,x(u," "),i&&i.length!==0?"= "+x(i," | "):""]," ")},EnumTypeExtension:function(n){var t=n.name,u=n.directives,i=n.values;return x(["extend enum",t,x(u," "),Ue(i)]," ")},InputObjectTypeExtension:function(n){var t=n.name,u=n.directives,i=n.fields;return x(["extend input",t,x(u," "),Ue(i)]," ")}};function ze(e){return function(n){return x([n.description,e(n)],`
|
|
35
|
+
`)}}function x(e){var n,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(n=e?.filter(function(u){return u}).join(t))!==null&&n!==void 0?n:""}function Ue(e){return ne(`{
|
|
36
|
+
`,Si(x(e,`
|
|
37
37
|
`)),`
|
|
38
|
-
}`)}function ne(e,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return n!=null&&n!==""?e+n+t:""}function
|
|
39
|
-
`))}function
|
|
40
|
-
`)!==-1}function Sc(e){return e!=null&&e.some(ah)}function Zr(e,n){switch(e.kind){case C.NULL:return null;case C.INT:return parseInt(e.value,10);case C.FLOAT:return parseFloat(e.value);case C.STRING:case C.ENUM:case C.BOOLEAN:return e.value;case C.LIST:return e.values.map(function(t){return Zr(t,n)});case C.OBJECT:return jr(e.fields,function(t){return t.name.value},function(t){return Zr(t.value,n)});case C.VARIABLE:return n?.[e.name.value]}Pt(0,"Unexpected value node: "+J(e))}function oh(e,n){for(var t=0;t<n.length;t++){var u=n[t];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,u.key,u)}}function Ln(e,n,t){return n&&oh(e.prototype,n),e}function Bc(e){return jt(e)||Ve(e)||xe(e)||an(e)||on(e)||_n(e)||Lt(e)||Zn(e)}function sh(e){if(!Bc(e))throw new Error("Expected ".concat(J(e)," to be a GraphQL type."));return e}function jt(e){return Qe(e,Cn)}function Ve(e){return Qe(e,sn)}function xe(e){return Qe(e,$c)}function an(e){return Qe(e,xc)}function on(e){return Qe(e,Ii)}function _n(e){return Qe(e,Ic)}function Lt(e){return Qe(e,se)}function Zn(e){return Qe(e,j)}function Vn(e){return jt(e)||on(e)||_n(e)||qr(e)&&Vn(e.ofType)}function $i(e){return jt(e)||Ve(e)||xe(e)||an(e)||on(e)||qr(e)&&$i(e.ofType)}function ch(e){return jt(e)||on(e)}function Vr(e){return Ve(e)||xe(e)||an(e)}function lh(e){return xe(e)||an(e)}function se(e){if(this instanceof se)this.ofType=sh(e);else return new se(e)}se.prototype.toString=function(){return"["+String(this.ofType)+"]"},se.prototype.toJSON=function(){return this.toString()},Object.defineProperty(se.prototype,$e,{get:function(){return"GraphQLList"}}),ze(se);function j(e){if(this instanceof j)this.ofType=fh(e);else return new j(e)}j.prototype.toString=function(){return String(this.ofType)+"!"},j.prototype.toJSON=function(){return this.toString()},Object.defineProperty(j.prototype,$e,{get:function(){return"GraphQLNonNull"}}),ze(j);function qr(e){return Lt(e)||Zn(e)}function dh(e){return Bc(e)&&!Zn(e)}function fh(e){if(!dh(e))throw new Error("Expected ".concat(J(e)," to be a GraphQL nullable type."));return e}function mh(e){if(e)return Zn(e)?e.ofType:e}function Zt(e){if(e){for(var n=e;qr(n);)n=n.ofType;return n}}function xi(e){return typeof e=="function"?e():e}function qn(e){return e&&e.length>0?e:void 0}var Cn=function(){function e(t){var u,i,r,a=(u=t.parseValue)!==null&&u!==void 0?u:kc;this.name=t.name,this.description=t.description,this.specifiedByUrl=t.specifiedByUrl,this.serialize=(i=t.serialize)!==null&&i!==void 0?i:kc,this.parseValue=a,this.parseLiteral=(r=t.parseLiteral)!==null&&r!==void 0?r:function(o,s){return a(Zr(o,s))},this.extensions=t.extensions&&_e(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=qn(t.extensionASTNodes),typeof t.name=="string"||q(0,"Must provide name."),t.specifiedByUrl==null||typeof t.specifiedByUrl=="string"||q(0,"".concat(this.name,' must provide "specifiedByUrl" as a string, ')+"but got: ".concat(J(t.specifiedByUrl),".")),t.serialize==null||typeof t.serialize=="function"||q(0,"".concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),t.parseLiteral&&(typeof t.parseValue=="function"&&typeof t.parseLiteral=="function"||q(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var n=e.prototype;return n.toConfig=function(){var u;return{name:this.name,description:this.description,specifiedByUrl:this.specifiedByUrl,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(u=this.extensionASTNodes)!==null&&u!==void 0?u:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Ln(e,[{key:$e,get:function(){return"GraphQLScalarType"}}]),e}();ze(Cn);var sn=function(){function e(t){this.name=t.name,this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=t.extensions&&_e(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=qn(t.extensionASTNodes),this._fields=wc.bind(void 0,t),this._interfaces=Ac.bind(void 0,t),typeof t.name=="string"||q(0,"Must provide name."),t.isTypeOf==null||typeof t.isTypeOf=="function"||q(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat(J(t.isTypeOf),"."))}var n=e.prototype;return n.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},n.getInterfaces=function(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces},n.toConfig=function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:_c(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Ln(e,[{key:$e,get:function(){return"GraphQLObjectType"}}]),e}();ze(sn);function Ac(e){var n,t=(n=xi(e.interfaces))!==null&&n!==void 0?n:[];return Array.isArray(t)||q(0,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),t}function wc(e){var n=xi(e.fields);return Mn(n)||q(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),wi(n,function(t,u){var i;Mn(t)||q(0,"".concat(e.name,".").concat(u," field config must be an object.")),!("isDeprecated"in t)||q(0,"".concat(e.name,".").concat(u,' should provide "deprecationReason" instead of "isDeprecated".')),t.resolve==null||typeof t.resolve=="function"||q(0,"".concat(e.name,".").concat(u," field resolver must be a function if ")+"provided, but got: ".concat(J(t.resolve),"."));var r=(i=t.args)!==null&&i!==void 0?i:{};Mn(r)||q(0,"".concat(e.name,".").concat(u," args must be an object with argument names as keys."));var a=Rt(r).map(function(o){var s=o[0],c=o[1];return{name:s,description:c.description,type:c.type,defaultValue:c.defaultValue,deprecationReason:c.deprecationReason,extensions:c.extensions&&_e(c.extensions),astNode:c.astNode}});return{name:u,description:t.description,type:t.type,args:a,resolve:t.resolve,subscribe:t.subscribe,isDeprecated:t.deprecationReason!=null,deprecationReason:t.deprecationReason,extensions:t.extensions&&_e(t.extensions),astNode:t.astNode}})}function Mn(e){return An(e)&&!Array.isArray(e)}function _c(e){return wi(e,function(n){return{description:n.description,type:n.type,args:Cc(n.args),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}})}function Cc(e){return jr(e,function(n){return n.name},function(n){return{description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}})}var $c=function(){function e(t){this.name=t.name,this.description=t.description,this.resolveType=t.resolveType,this.extensions=t.extensions&&_e(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=qn(t.extensionASTNodes),this._fields=wc.bind(void 0,t),this._interfaces=Ac.bind(void 0,t),typeof t.name=="string"||q(0,"Must provide name."),t.resolveType==null||typeof t.resolveType=="function"||q(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(J(t.resolveType),"."))}var n=e.prototype;return n.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},n.getInterfaces=function(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces},n.toConfig=function(){var u;return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:_c(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(u=this.extensionASTNodes)!==null&&u!==void 0?u:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Ln(e,[{key:$e,get:function(){return"GraphQLInterfaceType"}}]),e}();ze($c);var xc=function(){function e(t){this.name=t.name,this.description=t.description,this.resolveType=t.resolveType,this.extensions=t.extensions&&_e(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=qn(t.extensionASTNodes),this._types=vh.bind(void 0,t),typeof t.name=="string"||q(0,"Must provide name."),t.resolveType==null||typeof t.resolveType=="function"||q(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(J(t.resolveType),"."))}var n=e.prototype;return n.getTypes=function(){return typeof this._types=="function"&&(this._types=this._types()),this._types},n.toConfig=function(){var u;return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(u=this.extensionASTNodes)!==null&&u!==void 0?u:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Ln(e,[{key:$e,get:function(){return"GraphQLUnionType"}}]),e}();ze(xc);function vh(e){var n=xi(e.types);return Array.isArray(n)||q(0,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),n}var Ii=function(){function e(t){this.name=t.name,this.description=t.description,this.extensions=t.extensions&&_e(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=qn(t.extensionASTNodes),this._values=ph(this.name,t.values),this._valueLookup=new Map(this._values.map(function(u){return[u.value,u]})),this._nameLookup=bc(this._values,function(u){return u.name}),typeof t.name=="string"||q(0,"Must provide name.")}var n=e.prototype;return n.getValues=function(){return this._values},n.getValue=function(u){return this._nameLookup[u]},n.serialize=function(u){var i=this._valueLookup.get(u);if(i===void 0)throw new ee('Enum "'.concat(this.name,'" cannot represent value: ').concat(J(u)));return i.name},n.parseValue=function(u){if(typeof u!="string"){var i=J(u);throw new ee('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(i,".")+Fi(this,i))}var r=this.getValue(u);if(r==null)throw new ee('Value "'.concat(u,'" does not exist in "').concat(this.name,'" enum.')+Fi(this,u));return r.value},n.parseLiteral=function(u,i){if(u.kind!==C.ENUM){var r=He(u);throw new ee('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(r,".")+Fi(this,r),u)}var a=this.getValue(u.value);if(a==null){var o=He(u);throw new ee('Value "'.concat(o,'" does not exist in "').concat(this.name,'" enum.')+Fi(this,o),u)}return a.value},n.toConfig=function(){var u,i=jr(this.getValues(),function(r){return r.name},function(r){return{description:r.description,value:r.value,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.astNode}});return{name:this.name,description:this.description,values:i,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(u=this.extensionASTNodes)!==null&&u!==void 0?u:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Ln(e,[{key:$e,get:function(){return"GraphQLEnumType"}}]),e}();ze(Ii);function Fi(e,n){var t=e.getValues().map(function(i){return i.name}),u=th(n,t);return Xp("the enum value",u)}function ph(e,n){return Mn(n)||q(0,"".concat(e," values must be an object with value names as keys.")),Rt(n).map(function(t){var u=t[0],i=t[1];return Mn(i)||q(0,"".concat(e,".").concat(u,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat(J(i),".")),!("isDeprecated"in i)||q(0,"".concat(e,".").concat(u,' should provide "deprecationReason" instead of "isDeprecated".')),{name:u,description:i.description,value:i.value!==void 0?i.value:u,isDeprecated:i.deprecationReason!=null,deprecationReason:i.deprecationReason,extensions:i.extensions&&_e(i.extensions),astNode:i.astNode}})}var Ic=function(){function e(t){this.name=t.name,this.description=t.description,this.extensions=t.extensions&&_e(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=qn(t.extensionASTNodes),this._fields=hh.bind(void 0,t),typeof t.name=="string"||q(0,"Must provide name.")}var n=e.prototype;return n.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},n.toConfig=function(){var u,i=wi(this.getFields(),function(r){return{description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.astNode}});return{name:this.name,description:this.description,fields:i,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(u=this.extensionASTNodes)!==null&&u!==void 0?u:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Ln(e,[{key:$e,get:function(){return"GraphQLInputObjectType"}}]),e}();ze(Ic);function hh(e){var n=xi(e.fields);return Mn(n)||q(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),wi(n,function(t,u){return!("resolve"in t)||q(0,"".concat(e.name,".").concat(u," field has a resolve property, but Input Types cannot define resolvers.")),{name:u,description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions&&_e(t.extensions),astNode:t.astNode}})}var gh=Array.from||function(e,n,t){if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");var u=e[lc];if(typeof u=="function"){for(var i=u.call(e),r=[],a,o=0;!(a=i.next()).done;++o)if(r.push(n.call(t,a.value,o)),o>9999999)throw new TypeError("Near-infinite iteration.");return r}var s=e.length;if(typeof s=="number"&&s>=0&&s%1===0){for(var c=[],l=0;l<s;++l)Object.prototype.hasOwnProperty.call(e,l)&&c.push(n.call(t,e[l],l));return c}return[]},Eh=gh,yh=Number.isFinite||function(e){return typeof e=="number"&&isFinite(e)},Vt=yh;function Ni(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ni=function(t){return typeof t}:Ni=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ni(e)}function bh(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(l){return l};if(e==null||Ni(e)!=="object")return null;if(Array.isArray(e))return e.map(n);var t=e[lc];if(typeof t=="function"){for(var u=t.call(e),i=[],r,a=0;!(r=u.next()).done;++a)i.push(n(r.value,a));return i}var o=e.length;if(typeof o=="number"&&o>=0&&o%1===0){for(var s=[],c=0;c<o;++c){if(!Object.prototype.hasOwnProperty.call(e,c))return null;s.push(n(e[String(c)],c))}return s}return null}var kh=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},Ti=kh,Mr=2147483647,Gr=-2147483648;function Dh(e){var n=qt(e);if(typeof n=="boolean")return n?1:0;var t=n;if(typeof n=="string"&&n!==""&&(t=Number(n)),!Ti(t))throw new ee("Int cannot represent non-integer value: ".concat(J(n)));if(t>Mr||t<Gr)throw new ee("Int cannot represent non 32-bit signed integer value: "+J(n));return t}function Sh(e){if(!Ti(e))throw new ee("Int cannot represent non-integer value: ".concat(J(e)));if(e>Mr||e<Gr)throw new ee("Int cannot represent non 32-bit signed integer value: ".concat(e));return e}var Bh=new Cn({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize:Dh,parseValue:Sh,parseLiteral:function(n){if(n.kind!==C.INT)throw new ee("Int cannot represent non-integer value: ".concat(He(n)),n);var t=parseInt(n.value,10);if(t>Mr||t<Gr)throw new ee("Int cannot represent non 32-bit signed integer value: ".concat(n.value),n);return t}});function Ah(e){var n=qt(e);if(typeof n=="boolean")return n?1:0;var t=n;if(typeof n=="string"&&n!==""&&(t=Number(n)),!Vt(t))throw new ee("Float cannot represent non numeric value: ".concat(J(n)));return t}function wh(e){if(!Vt(e))throw new ee("Float cannot represent non numeric value: ".concat(J(e)));return e}var _h=new Cn({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize:Ah,parseValue:wh,parseLiteral:function(n){if(n.kind!==C.FLOAT&&n.kind!==C.INT)throw new ee("Float cannot represent non numeric value: ".concat(He(n)),n);return parseFloat(n.value)}});function qt(e){if(An(e)){if(typeof e.valueOf=="function"){var n=e.valueOf();if(!An(n))return n}if(typeof e.toJSON=="function")return e.toJSON()}return e}function Ch(e){var n=qt(e);if(typeof n=="string")return n;if(typeof n=="boolean")return n?"true":"false";if(Vt(n))return n.toString();throw new ee("String cannot represent value: ".concat(J(e)))}function $h(e){if(typeof e!="string")throw new ee("String cannot represent a non string value: ".concat(J(e)));return e}var te=new Cn({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize:Ch,parseValue:$h,parseLiteral:function(n){if(n.kind!==C.STRING)throw new ee("String cannot represent a non string value: ".concat(He(n)),n);return n.value}});function xh(e){var n=qt(e);if(typeof n=="boolean")return n;if(Vt(n))return n!==0;throw new ee("Boolean cannot represent a non boolean value: ".concat(J(n)))}function Ih(e){if(typeof e!="boolean")throw new ee("Boolean cannot represent a non boolean value: ".concat(J(e)));return e}var Ie=new Cn({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:xh,parseValue:Ih,parseLiteral:function(n){if(n.kind!==C.BOOLEAN)throw new ee("Boolean cannot represent a non boolean value: ".concat(He(n)),n);return n.value}});function Fh(e){var n=qt(e);if(typeof n=="string")return n;if(Ti(n))return String(n);throw new ee("ID cannot represent value: ".concat(J(e)))}function Nh(e){if(typeof e=="string")return e;if(Ti(e))return e.toString();throw new ee("ID cannot represent value: ".concat(J(e)))}var Fc=new Cn({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize:Fh,parseValue:Nh,parseLiteral:function(n){if(n.kind!==C.STRING&&n.kind!==C.INT)throw new ee("ID cannot represent a non-string and non-integer value: "+He(n),n);return n.value}}),Nc=Object.freeze([te,Bh,_h,Ie,Fc]);function Mt(e,n){if(Zn(n)){var t=Mt(e,n.ofType);return t?.kind===C.NULL?null:t}if(e===null)return{kind:C.NULL};if(e===void 0)return null;if(Lt(n)){var u=n.ofType,i=bh(e);if(i!=null){for(var r=[],a=0;a<i.length;a++){var o=i[a],s=Mt(o,u);s!=null&&r.push(s)}return{kind:C.LIST,values:r}}return Mt(e,u)}if(_n(n)){if(!An(e))return null;for(var c=[],l=0,f=wn(n.getFields());l<f.length;l++){var m=f[l],d=Mt(e[m.name],m.type);d&&c.push({kind:C.OBJECT_FIELD,name:{kind:C.NAME,value:m.name},value:d})}return{kind:C.OBJECT,fields:c}}if(ch(n)){var v=n.serialize(e);if(v==null)return null;if(typeof v=="boolean")return{kind:C.BOOLEAN,value:v};if(typeof v=="number"&&Vt(v)){var h=String(v);return Tc.test(h)?{kind:C.INT,value:h}:{kind:C.FLOAT,value:h}}if(typeof v=="string")return on(n)?{kind:C.ENUM,value:v}:n===Fc&&Tc.test(v)?{kind:C.INT,value:v}:{kind:C.STRING,value:v};throw new TypeError("Cannot convert value to AST: ".concat(J(v),"."))}Pt(0,"Unexpected input type: "+J(n))}var Tc=/^-?(?:0|[1-9][0-9]*)$/,Jr=new sn({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:function(){return{description:{type:te,resolve:function(t){return t.description}},types:{description:"A list of all types supported by this server.",type:new j(new se(new j(Re))),resolve:function(t){return wn(t.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new j(Re),resolve:function(t){return t.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Re,resolve:function(t){return t.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Re,resolve:function(t){return t.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:new j(new se(new j(Oc))),resolve:function(t){return t.getDirectives()}}}}}),Oc=new sn({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
|
|
38
|
+
}`)}function ne(e,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return n!=null&&n!==""?e+n+t:""}function Si(e){return ne(" ",e.replace(/\n/g,`
|
|
39
|
+
`))}function Lp(e){return e.indexOf(`
|
|
40
|
+
`)!==-1}function lc(e){return e!=null&&e.some(Lp)}function Nr(e,n){switch(e.kind){case C.NULL:return null;case C.INT:return parseInt(e.value,10);case C.FLOAT:return parseFloat(e.value);case C.STRING:case C.ENUM:case C.BOOLEAN:return e.value;case C.LIST:return e.values.map(function(t){return Nr(t,n)});case C.OBJECT:return Ir(e.fields,function(t){return t.name.value},function(t){return Nr(t.value,n)});case C.VARIABLE:return n?.[e.name.value]}Nt(0,"Unexpected value node: "+J(e))}function Zp(e,n){for(var t=0;t<n.length;t++){var u=n[t];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,u.key,u)}}function jn(e,n,t){return n&&Zp(e.prototype,n),e}function dc(e){return Ot(e)||Ze(e)||$e(e)||rn(e)||an(e)||An(e)||zt(e)||Ln(e)}function Vp(e){if(!dc(e))throw new Error("Expected ".concat(J(e)," to be a GraphQL type."));return e}function Ot(e){return Je(e,wn)}function Ze(e){return Je(e,on)}function $e(e){return Je(e,hc)}function rn(e){return Je(e,gc)}function an(e){return Je(e,wi)}function An(e){return Je(e,Ec)}function zt(e){return Je(e,se)}function Ln(e){return Je(e,j)}function Zn(e){return Ot(e)||an(e)||An(e)||Or(e)&&Zn(e.ofType)}function Bi(e){return Ot(e)||Ze(e)||$e(e)||rn(e)||an(e)||Or(e)&&Bi(e.ofType)}function qp(e){return Ot(e)||an(e)}function Tr(e){return Ze(e)||$e(e)||rn(e)}function Mp(e){return $e(e)||rn(e)}function se(e){if(this instanceof se)this.ofType=Vp(e);else return new se(e)}se.prototype.toString=function(){return"["+String(this.ofType)+"]"},se.prototype.toJSON=function(){return this.toString()},Object.defineProperty(se.prototype,Ce,{get:function(){return"GraphQLList"}}),Oe(se);function j(e){if(this instanceof j)this.ofType=Jp(e);else return new j(e)}j.prototype.toString=function(){return String(this.ofType)+"!"},j.prototype.toJSON=function(){return this.toString()},Object.defineProperty(j.prototype,Ce,{get:function(){return"GraphQLNonNull"}}),Oe(j);function Or(e){return zt(e)||Ln(e)}function Gp(e){return dc(e)&&!Ln(e)}function Jp(e){if(!Gp(e))throw new Error("Expected ".concat(J(e)," to be a GraphQL nullable type."));return e}function Hp(e){if(e)return Ln(e)?e.ofType:e}function Ut(e){if(e){for(var n=e;Or(n);)n=n.ofType;return n}}function Ai(e){return typeof e=="function"?e():e}function Vn(e){return e&&e.length>0?e:void 0}var wn=function(){function e(t){var u,i,r,a=(u=t.parseValue)!==null&&u!==void 0?u:sc;this.name=t.name,this.description=t.description,this.specifiedByUrl=t.specifiedByUrl,this.serialize=(i=t.serialize)!==null&&i!==void 0?i:sc,this.parseValue=a,this.parseLiteral=(r=t.parseLiteral)!==null&&r!==void 0?r:function(o,s){return a(Nr(o,s))},this.extensions=t.extensions&&we(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=Vn(t.extensionASTNodes),typeof t.name=="string"||q(0,"Must provide name."),t.specifiedByUrl==null||typeof t.specifiedByUrl=="string"||q(0,"".concat(this.name,' must provide "specifiedByUrl" as a string, ')+"but got: ".concat(J(t.specifiedByUrl),".")),t.serialize==null||typeof t.serialize=="function"||q(0,"".concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),t.parseLiteral&&(typeof t.parseValue=="function"&&typeof t.parseLiteral=="function"||q(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var n=e.prototype;return n.toConfig=function(){var u;return{name:this.name,description:this.description,specifiedByUrl:this.specifiedByUrl,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(u=this.extensionASTNodes)!==null&&u!==void 0?u:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},jn(e,[{key:Ce,get:function(){return"GraphQLScalarType"}}]),e}();Oe(wn);var on=function(){function e(t){this.name=t.name,this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=t.extensions&&we(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=Vn(t.extensionASTNodes),this._fields=mc.bind(void 0,t),this._interfaces=fc.bind(void 0,t),typeof t.name=="string"||q(0,"Must provide name."),t.isTypeOf==null||typeof t.isTypeOf=="function"||q(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat(J(t.isTypeOf),"."))}var n=e.prototype;return n.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},n.getInterfaces=function(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces},n.toConfig=function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:vc(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},jn(e,[{key:Ce,get:function(){return"GraphQLObjectType"}}]),e}();Oe(on);function fc(e){var n,t=(n=Ai(e.interfaces))!==null&&n!==void 0?n:[];return Array.isArray(t)||q(0,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),t}function mc(e){var n=Ai(e.fields);return qn(n)||q(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),ki(n,function(t,u){var i;qn(t)||q(0,"".concat(e.name,".").concat(u," field config must be an object.")),!("isDeprecated"in t)||q(0,"".concat(e.name,".").concat(u,' should provide "deprecationReason" instead of "isDeprecated".')),t.resolve==null||typeof t.resolve=="function"||q(0,"".concat(e.name,".").concat(u," field resolver must be a function if ")+"provided, but got: ".concat(J(t.resolve),"."));var r=(i=t.args)!==null&&i!==void 0?i:{};qn(r)||q(0,"".concat(e.name,".").concat(u," args must be an object with argument names as keys."));var a=Tt(r).map(function(o){var s=o[0],c=o[1];return{name:s,description:c.description,type:c.type,defaultValue:c.defaultValue,deprecationReason:c.deprecationReason,extensions:c.extensions&&we(c.extensions),astNode:c.astNode}});return{name:u,description:t.description,type:t.type,args:a,resolve:t.resolve,subscribe:t.subscribe,isDeprecated:t.deprecationReason!=null,deprecationReason:t.deprecationReason,extensions:t.extensions&&we(t.extensions),astNode:t.astNode}})}function qn(e){return Sn(e)&&!Array.isArray(e)}function vc(e){return ki(e,function(n){return{description:n.description,type:n.type,args:pc(n.args),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}})}function pc(e){return Ir(e,function(n){return n.name},function(n){return{description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}})}var hc=function(){function e(t){this.name=t.name,this.description=t.description,this.resolveType=t.resolveType,this.extensions=t.extensions&&we(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=Vn(t.extensionASTNodes),this._fields=mc.bind(void 0,t),this._interfaces=fc.bind(void 0,t),typeof t.name=="string"||q(0,"Must provide name."),t.resolveType==null||typeof t.resolveType=="function"||q(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(J(t.resolveType),"."))}var n=e.prototype;return n.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},n.getInterfaces=function(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces},n.toConfig=function(){var u;return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:vc(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(u=this.extensionASTNodes)!==null&&u!==void 0?u:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},jn(e,[{key:Ce,get:function(){return"GraphQLInterfaceType"}}]),e}();Oe(hc);var gc=function(){function e(t){this.name=t.name,this.description=t.description,this.resolveType=t.resolveType,this.extensions=t.extensions&&we(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=Vn(t.extensionASTNodes),this._types=Kp.bind(void 0,t),typeof t.name=="string"||q(0,"Must provide name."),t.resolveType==null||typeof t.resolveType=="function"||q(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(J(t.resolveType),"."))}var n=e.prototype;return n.getTypes=function(){return typeof this._types=="function"&&(this._types=this._types()),this._types},n.toConfig=function(){var u;return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(u=this.extensionASTNodes)!==null&&u!==void 0?u:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},jn(e,[{key:Ce,get:function(){return"GraphQLUnionType"}}]),e}();Oe(gc);function Kp(e){var n=Ai(e.types);return Array.isArray(n)||q(0,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),n}var wi=function(){function e(t){this.name=t.name,this.description=t.description,this.extensions=t.extensions&&we(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=Vn(t.extensionASTNodes),this._values=Qp(this.name,t.values),this._valueLookup=new Map(this._values.map(function(u){return[u.value,u]})),this._nameLookup=oc(this._values,function(u){return u.name}),typeof t.name=="string"||q(0,"Must provide name.")}var n=e.prototype;return n.getValues=function(){return this._values},n.getValue=function(u){return this._nameLookup[u]},n.serialize=function(u){var i=this._valueLookup.get(u);if(i===void 0)throw new ee('Enum "'.concat(this.name,'" cannot represent value: ').concat(J(u)));return i.name},n.parseValue=function(u){if(typeof u!="string"){var i=J(u);throw new ee('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(i,".")+_i(this,i))}var r=this.getValue(u);if(r==null)throw new ee('Value "'.concat(u,'" does not exist in "').concat(this.name,'" enum.')+_i(this,u));return r.value},n.parseLiteral=function(u,i){if(u.kind!==C.ENUM){var r=He(u);throw new ee('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(r,".")+_i(this,r),u)}var a=this.getValue(u.value);if(a==null){var o=He(u);throw new ee('Value "'.concat(o,'" does not exist in "').concat(this.name,'" enum.')+_i(this,o),u)}return a.value},n.toConfig=function(){var u,i=Ir(this.getValues(),function(r){return r.name},function(r){return{description:r.description,value:r.value,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.astNode}});return{name:this.name,description:this.description,values:i,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(u=this.extensionASTNodes)!==null&&u!==void 0?u:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},jn(e,[{key:Ce,get:function(){return"GraphQLEnumType"}}]),e}();Oe(wi);function _i(e,n){var t=e.getValues().map(function(i){return i.name}),u=Up(n,t);return Tp("the enum value",u)}function Qp(e,n){return qn(n)||q(0,"".concat(e," values must be an object with value names as keys.")),Tt(n).map(function(t){var u=t[0],i=t[1];return qn(i)||q(0,"".concat(e,".").concat(u,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat(J(i),".")),!("isDeprecated"in i)||q(0,"".concat(e,".").concat(u,' should provide "deprecationReason" instead of "isDeprecated".')),{name:u,description:i.description,value:i.value!==void 0?i.value:u,isDeprecated:i.deprecationReason!=null,deprecationReason:i.deprecationReason,extensions:i.extensions&&we(i.extensions),astNode:i.astNode}})}var Ec=function(){function e(t){this.name=t.name,this.description=t.description,this.extensions=t.extensions&&we(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=Vn(t.extensionASTNodes),this._fields=Wp.bind(void 0,t),typeof t.name=="string"||q(0,"Must provide name.")}var n=e.prototype;return n.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},n.toConfig=function(){var u,i=ki(this.getFields(),function(r){return{description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.astNode}});return{name:this.name,description:this.description,fields:i,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(u=this.extensionASTNodes)!==null&&u!==void 0?u:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},jn(e,[{key:Ce,get:function(){return"GraphQLInputObjectType"}}]),e}();Oe(Ec);function Wp(e){var n=Ai(e.fields);return qn(n)||q(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),ki(n,function(t,u){return!("resolve"in t)||q(0,"".concat(e.name,".").concat(u," field has a resolve property, but Input Types cannot define resolvers.")),{name:u,description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions&&we(t.extensions),astNode:t.astNode}})}var Yp=Array.from||function(e,n,t){if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");var u=e[Ws];if(typeof u=="function"){for(var i=u.call(e),r=[],a,o=0;!(a=i.next()).done;++o)if(r.push(n.call(t,a.value,o)),o>9999999)throw new TypeError("Near-infinite iteration.");return r}var s=e.length;if(typeof s=="number"&&s>=0&&s%1===0){for(var c=[],l=0;l<s;++l)Object.prototype.hasOwnProperty.call(e,l)&&c.push(n.call(t,e[l],l));return c}return[]},Xp=Yp,eh=Number.isFinite||function(e){return typeof e=="number"&&isFinite(e)},Pt=eh;function Ci(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ci=function(t){return typeof t}:Ci=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ci(e)}function nh(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(l){return l};if(e==null||Ci(e)!=="object")return null;if(Array.isArray(e))return e.map(n);var t=e[Ws];if(typeof t=="function"){for(var u=t.call(e),i=[],r,a=0;!(r=u.next()).done;++a)i.push(n(r.value,a));return i}var o=e.length;if(typeof o=="number"&&o>=0&&o%1===0){for(var s=[],c=0;c<o;++c){if(!Object.prototype.hasOwnProperty.call(e,c))return null;s.push(n(e[String(c)],c))}return s}return null}var th=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},$i=th,zr=2147483647,Ur=-2147483648;function ih(e){var n=Rt(e);if(typeof n=="boolean")return n?1:0;var t=n;if(typeof n=="string"&&n!==""&&(t=Number(n)),!$i(t))throw new ee("Int cannot represent non-integer value: ".concat(J(n)));if(t>zr||t<Ur)throw new ee("Int cannot represent non 32-bit signed integer value: "+J(n));return t}function uh(e){if(!$i(e))throw new ee("Int cannot represent non-integer value: ".concat(J(e)));if(e>zr||e<Ur)throw new ee("Int cannot represent non 32-bit signed integer value: ".concat(e));return e}var rh=new wn({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize:ih,parseValue:uh,parseLiteral:function(n){if(n.kind!==C.INT)throw new ee("Int cannot represent non-integer value: ".concat(He(n)),n);var t=parseInt(n.value,10);if(t>zr||t<Ur)throw new ee("Int cannot represent non 32-bit signed integer value: ".concat(n.value),n);return t}});function ah(e){var n=Rt(e);if(typeof n=="boolean")return n?1:0;var t=n;if(typeof n=="string"&&n!==""&&(t=Number(n)),!Pt(t))throw new ee("Float cannot represent non numeric value: ".concat(J(n)));return t}function oh(e){if(!Pt(e))throw new ee("Float cannot represent non numeric value: ".concat(J(e)));return e}var sh=new wn({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize:ah,parseValue:oh,parseLiteral:function(n){if(n.kind!==C.FLOAT&&n.kind!==C.INT)throw new ee("Float cannot represent non numeric value: ".concat(He(n)),n);return parseFloat(n.value)}});function Rt(e){if(Sn(e)){if(typeof e.valueOf=="function"){var n=e.valueOf();if(!Sn(n))return n}if(typeof e.toJSON=="function")return e.toJSON()}return e}function ch(e){var n=Rt(e);if(typeof n=="string")return n;if(typeof n=="boolean")return n?"true":"false";if(Pt(n))return n.toString();throw new ee("String cannot represent value: ".concat(J(e)))}function lh(e){if(typeof e!="string")throw new ee("String cannot represent a non string value: ".concat(J(e)));return e}var te=new wn({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize:ch,parseValue:lh,parseLiteral:function(n){if(n.kind!==C.STRING)throw new ee("String cannot represent a non string value: ".concat(He(n)),n);return n.value}});function dh(e){var n=Rt(e);if(typeof n=="boolean")return n;if(Pt(n))return n!==0;throw new ee("Boolean cannot represent a non boolean value: ".concat(J(n)))}function fh(e){if(typeof e!="boolean")throw new ee("Boolean cannot represent a non boolean value: ".concat(J(e)));return e}var xe=new wn({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:dh,parseValue:fh,parseLiteral:function(n){if(n.kind!==C.BOOLEAN)throw new ee("Boolean cannot represent a non boolean value: ".concat(He(n)),n);return n.value}});function mh(e){var n=Rt(e);if(typeof n=="string")return n;if($i(n))return String(n);throw new ee("ID cannot represent value: ".concat(J(e)))}function vh(e){if(typeof e=="string")return e;if($i(e))return e.toString();throw new ee("ID cannot represent value: ".concat(J(e)))}var yc=new wn({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize:mh,parseValue:vh,parseLiteral:function(n){if(n.kind!==C.STRING&&n.kind!==C.INT)throw new ee("ID cannot represent a non-string and non-integer value: "+He(n),n);return n.value}}),bc=Object.freeze([te,rh,sh,xe,yc]);function jt(e,n){if(Ln(n)){var t=jt(e,n.ofType);return t?.kind===C.NULL?null:t}if(e===null)return{kind:C.NULL};if(e===void 0)return null;if(zt(n)){var u=n.ofType,i=nh(e);if(i!=null){for(var r=[],a=0;a<i.length;a++){var o=i[a],s=jt(o,u);s!=null&&r.push(s)}return{kind:C.LIST,values:r}}return jt(e,u)}if(An(n)){if(!Sn(e))return null;for(var c=[],l=0,f=Bn(n.getFields());l<f.length;l++){var m=f[l],d=jt(e[m.name],m.type);d&&c.push({kind:C.OBJECT_FIELD,name:{kind:C.NAME,value:m.name},value:d})}return{kind:C.OBJECT,fields:c}}if(qp(n)){var v=n.serialize(e);if(v==null)return null;if(typeof v=="boolean")return{kind:C.BOOLEAN,value:v};if(typeof v=="number"&&Pt(v)){var h=String(v);return kc.test(h)?{kind:C.INT,value:h}:{kind:C.FLOAT,value:h}}if(typeof v=="string")return an(n)?{kind:C.ENUM,value:v}:n===yc&&kc.test(v)?{kind:C.INT,value:v}:{kind:C.STRING,value:v};throw new TypeError("Cannot convert value to AST: ".concat(J(v),"."))}Nt(0,"Unexpected input type: "+J(n))}var kc=/^-?(?:0|[1-9][0-9]*)$/,Pr=new on({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:function(){return{description:{type:te,resolve:function(t){return t.description}},types:{description:"A list of all types supported by this server.",type:new j(new se(new j(Pe))),resolve:function(t){return Bn(t.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new j(Pe),resolve:function(t){return t.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Pe,resolve:function(t){return t.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Pe,resolve:function(t){return t.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:new j(new se(new j(Dc))),resolve:function(t){return t.getDirectives()}}}}}),Dc=new on({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
|
|
41
41
|
|
|
42
|
-
In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:function(){return{name:{type:new j(te),resolve:function(t){return t.name}},description:{type:te,resolve:function(t){return t.description}},isRepeatable:{type:new j(Ie),resolve:function(t){return t.isRepeatable}},locations:{type:new j(new se(new j(zc))),resolve:function(t){return t.locations}},args:{type:new j(new se(new j(Oi))),args:{includeDeprecated:{type:Ie,defaultValue:!1}},resolve:function(t,u){var i=u.includeDeprecated;return i?t.args:t.args.filter(function(r){return r.deprecationReason==null})}}}}}),zc=new Ii({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:H.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:H.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:H.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:H.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:H.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:H.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:H.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:H.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:H.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:H.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:H.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:H.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:H.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:H.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:H.UNION,description:"Location adjacent to a union definition."},ENUM:{value:H.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:H.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:H.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:H.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),Re=new sn({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByUrl`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:function(){return{kind:{type:new j(Rc),resolve:function(t){if(jt(t))return de.SCALAR;if(Ve(t))return de.OBJECT;if(xe(t))return de.INTERFACE;if(an(t))return de.UNION;if(on(t))return de.ENUM;if(_n(t))return de.INPUT_OBJECT;if(Lt(t))return de.LIST;if(Zn(t))return de.NON_NULL;Pt(0,'Unexpected type: "'.concat(J(t),'".'))}},name:{type:te,resolve:function(t){return t.name!==void 0?t.name:void 0}},description:{type:te,resolve:function(t){return t.description!==void 0?t.description:void 0}},specifiedByUrl:{type:te,resolve:function(t){return t.specifiedByUrl!==void 0?t.specifiedByUrl:void 0}},fields:{type:new se(new j(Uc)),args:{includeDeprecated:{type:Ie,defaultValue:!1}},resolve:function(t,u){var i=u.includeDeprecated;if(Ve(t)||xe(t)){var r=wn(t.getFields());return i?r:r.filter(function(a){return a.deprecationReason==null})}}},interfaces:{type:new se(new j(Re)),resolve:function(t){if(Ve(t)||xe(t))return t.getInterfaces()}},possibleTypes:{type:new se(new j(Re)),resolve:function(t,u,i,r){var a=r.schema;if(lh(t))return a.getPossibleTypes(t)}},enumValues:{type:new se(new j(Pc)),args:{includeDeprecated:{type:Ie,defaultValue:!1}},resolve:function(t,u){var i=u.includeDeprecated;if(on(t)){var r=t.getValues();return i?r:r.filter(function(a){return a.deprecationReason==null})}}},inputFields:{type:new se(new j(Oi)),args:{includeDeprecated:{type:Ie,defaultValue:!1}},resolve:function(t,u){var i=u.includeDeprecated;if(_n(t)){var r=wn(t.getFields());return i?r:r.filter(function(a){return a.deprecationReason==null})}}},ofType:{type:Re,resolve:function(t){return t.ofType!==void 0?t.ofType:void 0}}}}}),Uc=new sn({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:function(){return{name:{type:new j(te),resolve:function(t){return t.name}},description:{type:te,resolve:function(t){return t.description}},args:{type:new j(new se(new j(Oi))),args:{includeDeprecated:{type:Ie,defaultValue:!1}},resolve:function(t,u){var i=u.includeDeprecated;return i?t.args:t.args.filter(function(r){return r.deprecationReason==null})}},type:{type:new j(Re),resolve:function(t){return t.type}},isDeprecated:{type:new j(Ie),resolve:function(t){return t.deprecationReason!=null}},deprecationReason:{type:te,resolve:function(t){return t.deprecationReason}}}}}),Oi=new sn({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:function(){return{name:{type:new j(te),resolve:function(t){return t.name}},description:{type:te,resolve:function(t){return t.description}},type:{type:new j(Re),resolve:function(t){return t.type}},defaultValue:{type:te,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(t){var u=t.type,i=t.defaultValue,r=Mt(i,u);return r?He(r):null}},isDeprecated:{type:new j(Ie),resolve:function(t){return t.deprecationReason!=null}},deprecationReason:{type:te,resolve:function(t){return t.deprecationReason}}}}}),Pc=new sn({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:function(){return{name:{type:new j(te),resolve:function(t){return t.name}},description:{type:te,resolve:function(t){return t.description}},isDeprecated:{type:new j(Ie),resolve:function(t){return t.deprecationReason!=null}},deprecationReason:{type:te,resolve:function(t){return t.deprecationReason}}}}}),de=Object.freeze({SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"}),Rc=new Ii({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:de.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:de.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:de.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:de.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:de.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:de.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:de.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:de.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),jc={name:"__schema",type:new j(Jr),description:"Access the current type schema of this server.",args:[],resolve:function(n,t,u,i){var r=i.schema;return r},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},Lc={name:"__type",type:Re,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new j(te),defaultValue:void 0,deprecationReason:void 0,extensions:void 0,astNode:void 0}],resolve:function(n,t,u,i){var r=t.name,a=i.schema;return a.getType(r)},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},Zc={name:"__typename",type:new j(te),description:"The name of the current Object type at runtime.",args:[],resolve:function(n,t,u,i){var r=i.parentType;return r.name},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},Vc=Object.freeze([Jr,Oc,zc,Re,Uc,Oi,Pc,Rc]);function Th(e,n){for(var t=0;t<n.length;t++){var u=n[t];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,u.key,u)}}function Oh(e,n,t){return n&&Th(e.prototype,n),e}function zh(e){return Qe(e,Gn)}var Gn=function(){function e(t){var u,i;this.name=t.name,this.description=t.description,this.locations=t.locations,this.isRepeatable=(u=t.isRepeatable)!==null&&u!==void 0?u:!1,this.extensions=t.extensions&&_e(t.extensions),this.astNode=t.astNode,t.name||q(0,"Directive must be named."),Array.isArray(t.locations)||q(0,"@".concat(t.name," locations must be an Array."));var r=(i=t.args)!==null&&i!==void 0?i:{};An(r)&&!Array.isArray(r)||q(0,"@".concat(t.name," args must be an object with argument names as keys.")),this.args=Rt(r).map(function(a){var o=a[0],s=a[1];return{name:o,description:s.description,type:s.type,defaultValue:s.defaultValue,deprecationReason:s.deprecationReason,extensions:s.extensions&&_e(s.extensions),astNode:s.astNode}})}var n=e.prototype;return n.toConfig=function(){return{name:this.name,description:this.description,locations:this.locations,args:Cc(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}},n.toString=function(){return"@"+this.name},n.toJSON=function(){return this.toString()},Oh(e,[{key:$e,get:function(){return"GraphQLDirective"}}]),e}();ze(Gn);var Uh=new Gn({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[H.FIELD,H.FRAGMENT_SPREAD,H.INLINE_FRAGMENT],args:{if:{type:new j(Ie),description:"Included when true."}}}),Ph=new Gn({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[H.FIELD,H.FRAGMENT_SPREAD,H.INLINE_FRAGMENT],args:{if:{type:new j(Ie),description:"Skipped when true."}}}),Rh="No longer supported",jh=new Gn({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[H.FIELD_DEFINITION,H.ARGUMENT_DEFINITION,H.INPUT_FIELD_DEFINITION,H.ENUM_VALUE],args:{reason:{type:te,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:Rh}}}),Lh=new Gn({name:"specifiedBy",description:"Exposes a URL that specifies the behaviour of this scalar.",locations:[H.SCALAR],args:{url:{type:new j(te),description:"The URL that specifies the behaviour of this scalar."}}}),Zh=Object.freeze([Uh,Ph,jh,Lh]);function Vh(e,n){for(var t=0;t<n.length;t++){var u=n[t];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,u.key,u)}}function qh(e,n,t){return n&&Vh(e.prototype,n),e}(function(){function e(t){var u;this.__validationErrors=t.assumeValid===!0?[]:void 0,An(t)||q(0,"Must provide configuration object."),!t.types||Array.isArray(t.types)||q(0,'"types" must be Array if provided but got: '.concat(J(t.types),".")),!t.directives||Array.isArray(t.directives)||q(0,'"directives" must be Array if provided but got: '+"".concat(J(t.directives),".")),this.description=t.description,this.extensions=t.extensions&&_e(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=t.extensionASTNodes,this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=(u=t.directives)!==null&&u!==void 0?u:Zh;var i=new Set(t.types);if(t.types!=null)for(var r=0,a=t.types;r<a.length;r++){var o=a[r];i.delete(o),je(o,i)}this._queryType!=null&&je(this._queryType,i),this._mutationType!=null&&je(this._mutationType,i),this._subscriptionType!=null&&je(this._subscriptionType,i);for(var s=0,c=this._directives;s<c.length;s++){var l=c[s];if(zh(l))for(var f=0,m=l.args;f<m.length;f++){var d=m[f];je(d.type,i)}}je(Jr,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(var v=0,h=Eh(i);v<h.length;v++){var E=h[v];if(E!=null){var b=E.name;if(b||q(0,"One of the provided types for building the Schema is missing a name."),this._typeMap[b]!==void 0)throw new Error('Schema must contain uniquely named types but contains multiple types named "'.concat(b,'".'));if(this._typeMap[b]=E,xe(E))for(var y=0,k=E.getInterfaces();y<k.length;y++){var _=k[y];if(xe(_)){var B=this._implementationsMap[_.name];B===void 0&&(B=this._implementationsMap[_.name]={objects:[],interfaces:[]}),B.interfaces.push(E)}}else if(Ve(E))for(var G=0,V=E.getInterfaces();G<V.length;G++){var F=V[G];if(xe(F)){var g=this._implementationsMap[F.name];g===void 0&&(g=this._implementationsMap[F.name]={objects:[],interfaces:[]}),g.objects.push(E)}}}}}var n=e.prototype;return n.getQueryType=function(){return this._queryType},n.getMutationType=function(){return this._mutationType},n.getSubscriptionType=function(){return this._subscriptionType},n.getTypeMap=function(){return this._typeMap},n.getType=function(u){return this.getTypeMap()[u]},n.getPossibleTypes=function(u){return an(u)?u.getTypes():this.getImplementations(u).objects},n.getImplementations=function(u){var i=this._implementationsMap[u.name];return i??{objects:[],interfaces:[]}},n.isPossibleType=function(u,i){return this.isSubType(u,i)},n.isSubType=function(u,i){var r=this._subTypeMap[u.name];if(r===void 0){if(r=Object.create(null),an(u))for(var a=0,o=u.getTypes();a<o.length;a++){var s=o[a];r[s.name]=!0}else{for(var c=this.getImplementations(u),l=0,f=c.objects;l<f.length;l++){var m=f[l];r[m.name]=!0}for(var d=0,v=c.interfaces;d<v.length;d++){var h=v[d];r[h.name]=!0}}this._subTypeMap[u.name]=r}return r[i.name]!==void 0},n.getDirectives=function(){return this._directives},n.getDirective=function(u){return yc(this.getDirectives(),function(i){return i.name===u})},n.toConfig=function(){var u;return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:wn(this.getTypeMap()),directives:this.getDirectives().slice(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(u=this.extensionASTNodes)!==null&&u!==void 0?u:[],assumeValid:this.__validationErrors!==void 0}},qh(e,[{key:$e,get:function(){return"GraphQLSchema"}}]),e})();function je(e,n){var t=Zt(e);if(!n.has(t)){if(n.add(t),an(t))for(var u=0,i=t.getTypes();u<i.length;u++){var r=i[u];je(r,n)}else if(Ve(t)||xe(t)){for(var a=0,o=t.getInterfaces();a<o.length;a++){var s=o[a];je(s,n)}for(var c=0,l=wn(t.getFields());c<l.length;c++){var f=l[c];je(f.type,n);for(var m=0,d=f.args;m<d.length;m++){var v=d[m];je(v.type,n)}}}else if(_n(t))for(var h=0,E=wn(t.getFields());h<E.length;h++){var b=E[h];je(b.type,n)}}return n}function zi(e,n){var t;if(n.kind===C.LIST_TYPE)return t=zi(e,n.type),t&&new se(t);if(n.kind===C.NON_NULL_TYPE)return t=zi(e,n.type),t&&new j(t);if(n.kind===C.NAMED_TYPE)return e.getType(n.name.value);Pt(0,"Unexpected type node: "+J(n))}var Mh=function(){function e(t,u,i){this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=u??Gh,i&&(Vn(i)&&this._inputTypeStack.push(i),Vr(i)&&this._parentTypeStack.push(i),$i(i)&&this._typeStack.push(i))}var n=e.prototype;return n.getType=function(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]},n.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},n.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},n.getParentInputType=function(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]},n.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},n.getDefaultValue=function(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]},n.getDirective=function(){return this._directive},n.getArgument=function(){return this._argument},n.getEnumValue=function(){return this._enumValue},n.enter=function(u){var i=this._schema;switch(u.kind){case C.SELECTION_SET:{var r=Zt(this.getType());this._parentTypeStack.push(Vr(r)?r:void 0);break}case C.FIELD:{var a=this.getParentType(),o,s;a&&(o=this._getFieldDef(i,a,u),o&&(s=o.type)),this._fieldDefStack.push(o),this._typeStack.push($i(s)?s:void 0);break}case C.DIRECTIVE:this._directive=i.getDirective(u.name.value);break;case C.OPERATION_DEFINITION:{var c;switch(u.operation){case"query":c=i.getQueryType();break;case"mutation":c=i.getMutationType();break;case"subscription":c=i.getSubscriptionType();break}this._typeStack.push(Ve(c)?c:void 0);break}case C.INLINE_FRAGMENT:case C.FRAGMENT_DEFINITION:{var l=u.typeCondition,f=l?zi(i,l):Zt(this.getType());this._typeStack.push($i(f)?f:void 0);break}case C.VARIABLE_DEFINITION:{var m=zi(i,u.type);this._inputTypeStack.push(Vn(m)?m:void 0);break}case C.ARGUMENT:{var d,v,h,E=(d=this.getDirective())!==null&&d!==void 0?d:this.getFieldDef();E&&(v=yc(E.args,function(F){return F.name===u.name.value}),v&&(h=v.type)),this._argument=v,this._defaultValueStack.push(v?v.defaultValue:void 0),this._inputTypeStack.push(Vn(h)?h:void 0);break}case C.LIST:{var b=mh(this.getInputType()),y=Lt(b)?b.ofType:b;this._defaultValueStack.push(void 0),this._inputTypeStack.push(Vn(y)?y:void 0);break}case C.OBJECT_FIELD:{var k=Zt(this.getInputType()),_,B;_n(k)&&(B=k.getFields()[u.name.value],B&&(_=B.type)),this._defaultValueStack.push(B?B.defaultValue:void 0),this._inputTypeStack.push(Vn(_)?_:void 0);break}case C.ENUM:{var G=Zt(this.getInputType()),V;on(G)&&(V=G.getValue(u.value)),this._enumValue=V;break}}},n.leave=function(u){switch(u.kind){case C.SELECTION_SET:this._parentTypeStack.pop();break;case C.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case C.DIRECTIVE:this._directive=null;break;case C.OPERATION_DEFINITION:case C.INLINE_FRAGMENT:case C.FRAGMENT_DEFINITION:this._typeStack.pop();break;case C.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case C.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case C.LIST:case C.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case C.ENUM:this._enumValue=null;break}},e}();function Gh(e,n,t){var u=t.name.value;if(u===jc.name&&e.getQueryType()===n)return jc;if(u===Lc.name&&e.getQueryType()===n)return Lc;if(u===Zc.name&&Vr(n))return Zc;if(Ve(n)||xe(n))return n.getFields()[u]}function Jh(e,n){return{enter:function(u){e.enter(u);var i=Rr(n,u.kind,!1);if(i){var r=i.apply(n,arguments);return r!==void 0&&(e.leave(u),Pr(r)&&e.enter(r)),r}},leave:function(u){var i=Rr(n,u.kind,!0),r;return i&&(r=i.apply(n,arguments)),e.leave(u),r}}}[].concat(Nc,Vc).map(function(e){return e.name});var cn;function Jn(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}cn={},Jn(cn,C.SCALAR_TYPE_DEFINITION,C.SCALAR_TYPE_EXTENSION),Jn(cn,C.OBJECT_TYPE_DEFINITION,C.OBJECT_TYPE_EXTENSION),Jn(cn,C.INTERFACE_TYPE_DEFINITION,C.INTERFACE_TYPE_EXTENSION),Jn(cn,C.UNION_TYPE_DEFINITION,C.UNION_TYPE_EXTENSION),Jn(cn,C.ENUM_TYPE_DEFINITION,C.ENUM_TYPE_EXTENSION),Jn(cn,C.INPUT_OBJECT_TYPE_DEFINITION,C.INPUT_OBJECT_TYPE_EXTENSION);function qc(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n}var Mc=function(){function e(t,u){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=u}var n=e.prototype;return n.reportError=function(u){this._onError(u)},n.getDocument=function(){return this._ast},n.getFragment=function(u){var i=this._fragments;return i||(this._fragments=i=this.getDocument().definitions.reduce(function(r,a){return a.kind===C.FRAGMENT_DEFINITION&&(r[a.name.value]=a),r},Object.create(null))),i[u]},n.getFragmentSpreads=function(u){var i=this._fragmentSpreads.get(u);if(!i){i=[];for(var r=[u];r.length!==0;)for(var a=r.pop(),o=0,s=a.selections;o<s.length;o++){var c=s[o];c.kind===C.FRAGMENT_SPREAD?i.push(c):c.selectionSet&&r.push(c.selectionSet)}this._fragmentSpreads.set(u,i)}return i},n.getRecursivelyReferencedFragments=function(u){var i=this._recursivelyReferencedFragments.get(u);if(!i){i=[];for(var r=Object.create(null),a=[u.selectionSet];a.length!==0;)for(var o=a.pop(),s=0,c=this.getFragmentSpreads(o);s<c.length;s++){var l=c[s],f=l.name.value;if(r[f]!==!0){r[f]=!0;var m=this.getFragment(f);m&&(i.push(m),a.push(m.selectionSet))}}this._recursivelyReferencedFragments.set(u,i)}return i},e}();(function(e){qc(n,e);function n(u,i,r){var a;return a=e.call(this,u,r)||this,a._schema=i,a}var t=n.prototype;return t.getSchema=function(){return this._schema},n})(Mc),function(e){qc(n,e);function n(u,i,r,a){var o;return o=e.call(this,i,a)||this,o._schema=u,o._typeInfo=r,o._variableUsages=new Map,o._recursiveVariableUsages=new Map,o}var t=n.prototype;return t.getSchema=function(){return this._schema},t.getVariableUsages=function(i){var r=this._variableUsages.get(i);if(!r){var a=[],o=new Mh(this._schema);Ec(i,Jh(o,{VariableDefinition:function(){return!1},Variable:function(c){a.push({node:c,type:o.getInputType(),defaultValue:o.getDefaultValue()})}})),r=a,this._variableUsages.set(i,r)}return r},t.getRecursiveVariableUsages=function(i){var r=this._recursiveVariableUsages.get(i);if(!r){r=this.getVariableUsages(i);for(var a=0,o=this.getRecursivelyReferencedFragments(i);a<o.length;a++){var s=o[a];r=r.concat(this.getVariableUsages(s))}this._recursiveVariableUsages.set(i,r)}return r},t.getType=function(){return this._typeInfo.getType()},t.getParentType=function(){return this._typeInfo.getParentType()},t.getInputType=function(){return this._typeInfo.getInputType()},t.getParentInputType=function(){return this._typeInfo.getParentInputType()},t.getFieldDef=function(){return this._typeInfo.getFieldDef()},t.getDirective=function(){return this._typeInfo.getDirective()},t.getArgument=function(){return this._typeInfo.getArgument()},t.getEnumValue=function(){return this._typeInfo.getEnumValue()},n}(Mc),bc(Nc.concat(Vc),function(e){return e.name});const Gc=e=>e instanceof Error?e:typeof e=="string"?new Error(e):new Error(String(e)),Qh=()=>typeof globalThis.window<"u"&&typeof globalThis.window.document<"u"&&typeof globalThis.navigator<"u",Qr={staging:{baseEndpoint:"https://api-staging.spritz.finance",graphEndpoint:"https://api-staging.spritz.finance/router/graph",restEndpoint:"https://sandbox.spritz.finance"},production:{baseEndpoint:"https://api.spritz.finance",graphEndpoint:"https://api.spritz.finance/router/graph",restEndpoint:"https://platform.spritz.finance"}},Hh=(e,n)=>{if(typeof n!="number"||!Number.isInteger(n))throw new Error(`${e} must be an integer`);if(n<0)throw new Error(`${e} must be a positive integer`);return n};function Kh(e){if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}function Hr(e,n){if(!e||typeof e!="object"||!(n in e))return;const t=e[n];if(typeof t=="string"&&t.length>0)return t}class Jc extends Error{timestamp;headers;constructor(n,t){super(n),this.name="SpritzApiError",this.message=n,this.headers=t??{},this.timestamp=new Date().toISOString()}}class Be extends Error{status;error;headers;timestamp;constructor(n,t,u,i){super(Be.makeMessage(t,u)),this.status=n,this.error=t,this.headers=i,this.timestamp=new Date().toISOString()}static makeMessage(n,t){const u=Hr(n,"detail");if(u)return u;const i=Hr(n,"title");return i||Hr(n,"message")||(n!==void 0?Kh(n):t||"Unknown error occurred")}static generate(n,t,u,i){return n?n===400?new Hc(n,t,u,i):n===401?new Kc(n,t,u,i):n===403?new Wc(n,t,u,i):n===404?new Yc(n,t,u,i):n===409?new Xc(n,t,u,i):n===422?new e0(n,t,u,i):n===429?new n0(n,t,u,i):n>=500?new t0(n,t,u,i):new Be(n,t,u,i):new Ui({cause:Gc(t)})}}class Wh extends Be{status=void 0;constructor({message:n}={}){super(void 0,void 0,n||"Request was aborted.",void 0)}}class Ui extends Be{status=void 0;constructor({message:n,cause:t}){super(void 0,void 0,n||"Connection error.",void 0),t&&(this.cause=t)}}class Qc extends Ui{constructor(){super({message:"Request timed out."})}}class Hc extends Be{name="BadRequestError";status=400}class Kc extends Be{name="AuthenticationError";status=401}class Wc extends Be{name="PermissionDeniedError";status=403}class Yc extends Be{name="NotFoundError";status=404}class Xc extends Be{name="ConflictError";status=409}class e0 extends Be{name="UnprocessableEntityError";status=422}class n0 extends Be{name="RateLimitError";status=429}class t0 extends Be{name="InternalServerError"}const Yh=e=>{try{return JSON.parse(e)}catch{return}},i0=10,u0=100;function Xh(e){if(!e||!e.definitions)throw new Error("Invalid GraphQL query: missing definitions");const n=e.definitions.filter(r=>r.kind==="OperationDefinition");if(n.length>1)throw new Error("Invalid GraphQL query: multiple operations not allowed");if(n.length===0)throw new Error("Invalid GraphQL query: no operation definition found");const t=n[0],u=eg(t);if(u>i0)throw new Error(`GraphQL query too deep: ${u} levels (max: ${i0})`);const i=ng(t);if(i>u0)throw new Error(`GraphQL query too complex: ${i} fields (max: ${u0})`);if(t.operation!=="query"&&t.operation!=="mutation")throw new Error(`Invalid GraphQL operation type: ${t.operation}`)}function eg(e){function n(t){let u=0;for(const i of t.selections)if(i.kind==="Field"&&i.selectionSet){const r=1+n(i.selectionSet);u=Math.max(u,r)}else if(i.kind==="InlineFragment"&&i.selectionSet){const r=n(i.selectionSet);u=Math.max(u,r)}else i.kind==="FragmentSpread"&&(u=Math.max(u,1));return u}return n(e.selectionSet)}function ng(e){function n(t){let u=0;for(const i of t.selections)u+=1,i.kind==="Field"&&i.selectionSet||i.kind==="InlineFragment"&&i.selectionSet?u+=n(i.selectionSet):i.kind==="FragmentSpread"&&(u+=5);return u}return n(e.selectionSet)}function tg(e){if(!e)return;const n=Object.create(null);for(const[t,u]of Object.entries(e)){if(!ig(t))throw new Error(`Invalid GraphQL variable name: ${t}`);if(t==="__proto__"||t==="constructor"||t==="prototype")throw new Error(`Invalid property name: ${t}`);n[t]=Kr(u)}return n}function ig(e){return/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(e)}function r0(e){return Array.from(e).filter(n=>{const t=n.charCodeAt(0);return t>31&&t!==127}).join("")}function Kr(e){if(e==null)return e;if(typeof e=="string")return r0(e);if(typeof e=="number"||typeof e=="boolean")return e;if(Array.isArray(e))return e.map(Kr);if(typeof e=="object"){const n=Object.create(null);for(const[t,u]of Object.entries(e)){if(t.includes("__proto__")||t.includes("constructor"))throw new Error(`Invalid property name: ${t}`);n[t]=Kr(u)}return n}return r0(String(e))}const ug="sha256=";function a0(e){return Array.from(new Uint8Array(e)).map(n=>n.toString(16).padStart(2,"0")).join("")}async function rg(e){const n=new TextEncoder().encode(e),t=await crypto.subtle.digest("SHA-256",n);return a0(t)}async function ag(e,n){const t=new TextEncoder,u=await crypto.subtle.importKey("raw",t.encode(e),{name:"HMAC",hash:"SHA-256"},!1,["sign"]),i=await crypto.subtle.sign("HMAC",u,t.encode(n));return a0(i)}function og(e){const n=e.searchParams;return[...n].length===0?"":[...n.keys()].sort().map(t=>{const u=n.get(t)??"";return`${encodeURIComponent(t)}=${encodeURIComponent(u)}`}).join("&")}function sg(e){const n=og(e);return n===""?e.pathname:`${e.pathname}?${n}`}async function cg(e,n,t){const u=t.body?await rg(t.body):"",i=`${n}.${t.method.toUpperCase()}.${t.path}.${u}`,r=await ag(e,i);return`${ug}${r}`}async function lg(e,n,t,u,i){const r=new URL(u),a=sg(r),o=Date.now(),s=await cg(n,o,{method:t,path:a,body:i});return{"X-Integrator-Key":e,"X-Signature":s,"X-Timestamp":String(o)}}async function Wr(e){const{response:n}=e;return n.headers.get("content-type")?.includes("application/json")?{response:await n.json(),headers:e.headers}:{response:await n.text(),headers:e.headers}}class dg{baseGraphURL;baseRestURL;baseRestApiURL;timeout;apiKey;integrationKey;integratorSecret;constructor({environment:n,timeout:t=3e5,apiKey:u,integrationKey:i,integratorSecret:r}){this.apiKey=u,this.integrationKey=i,this.integratorSecret=r,this.baseGraphURL=Qr[n].graphEndpoint,this.baseRestURL=Qr[n].baseEndpoint,this.baseRestApiURL=Qr[n].restEndpoint,this.timeout=Hh("timeout",t)}async query({query:n,variables:t}){Xh(n);const u=tg(t);return this.sendQuery({query:n,variables:u}).then(i=>Wr(i)).then(({response:i,headers:r})=>{if(i.data)return i.data;if(i.errors){const a=i.errors[0]??{message:"Unknown error"};throw new Jc(a.message,r)}else throw new Error("Unknown error")})}async request({method:n,path:t,body:u=void 0}){return this.sendRequest({method:n,path:t,body:u}).then(i=>Wr(i)).then(({response:i})=>i)}async restApi({method:n,path:t,body:u=void 0,query:i}){return this.sendRestApiRequest({method:n,path:t,body:u,query:i}).then(r=>Wr(r)).then(({response:r})=>r)}async sendQuery({query:n,variables:t}){const{url:u,req:i,timeout:r}=this.buildGraphRequest({query:n,variables:t});return this.sendHTTPRequest({url:u,req:i,timeout:r})}async sendRequest({method:n,path:t,body:u}){const{url:i,req:r,timeout:a}=this.buildRestRequest(n,t,u);return this.sendHTTPRequest({url:i,req:r,timeout:a})}async sendRestApiRequest({method:n,path:t,body:u,query:i}){const{url:r,req:a,timeout:o}=this.buildRestRequest(n,t,u,this.baseRestApiURL,i);if(this.integrationKey&&this.integratorSecret){const s=await lg(this.integrationKey,this.integratorSecret,n,r,a.body??null),{"X-INTEGRATION-KEY":c,...l}=a.headers;a.headers={...l,...s}}return this.sendHTTPRequest({url:r,req:a,timeout:o})}async sendHTTPRequest({url:n,req:t,timeout:u}){const i=new AbortController,r=await this.fetchWithTimeout(n,t,u,i).catch(Gc);if(r instanceof Error)throw r.name==="AbortError"?new Qc:new Ui({cause:r});const a=this.getResponseHeaders(r.headers);if(!r.ok){const o=await r.text().catch(()=>"Unknown error"),s=Yh(o);throw this.makeStatusError(r.status,s,s?void 0:o,a)}return{response:r,controller:i,headers:a}}getResponseHeaders(n){const t=n.get("x-amzn-trace-id"),u=n.get("x-amzn-requestid");return{traceId:t,requestId:u}}async fetchWithTimeout(n,t,u,i){const{signal:r,...a}=t||{},o=AbortSignal.timeout(u),s=r?AbortSignal.any([r,o,i.signal]):AbortSignal.any([o,i.signal]);return fetch(n,{...a,signal:s})}buildGraphRequest({query:n,variables:t}){const u={query:He(n),variables:t,operationName:n?.definitions?.[0]?.name?.value},i=u?JSON.stringify(u,null,2):null,r=this.calculateContentLength(i),a=this.timeout,o={...r&&{"Content-Length":r},...this.defaultHeaders()},s=Object.fromEntries(Object.entries(o).filter(([l,f])=>f!==null)),c={method:"POST",...i?{body:i}:{},headers:s};return{url:this.baseGraphURL,req:c,timeout:a}}buildRestRequest(n,t,u,i,r){const a=u?JSON.stringify(u):null,o=this.calculateContentLength(a),s=this.timeout,c={...o&&{"Content-Length":o},...this.defaultHeaders()},l=Object.fromEntries(Object.entries(c).filter(([h,E])=>E!==null)),f={method:n,...a?{body:a}:{},headers:l},m=i??this.baseRestURL,d=t.startsWith("/")?t:"/"+t,v=new URL(d,m);if(r)for(const[h,E]of Object.entries(r))E!==void 0&&v.searchParams.set(h,String(E));return{url:v.toString(),req:f,timeout:s}}defaultHeaders(){return{Accept:"application/json","Content-Type":"application/json",...this.authHeaders()}}calculateContentLength(n){if(typeof n=="string"){if(typeof Buffer<"u")return Buffer.byteLength(n,"utf8").toString();if(typeof TextEncoder<"u")return new TextEncoder().encode(n).length.toString()}return null}authHeaders(){return{Authorization:"Bearer "+this.apiKey,...this.integrationKey?{"X-INTEGRATION-KEY":this.integrationKey}:{}}}makeStatusError(n,t,u,i){return Be.generate(n,t,u,i)}}class fg{client;constructor(n){this.client=n}async list(n){return this.client.restApi({method:"get",path:"/v1/integrator/ach-debit/returns",query:n})}async get(n){return this.client.restApi({method:"get",path:`/v1/integrator/ach-debit/returns/${encodeURIComponent(n)}`})}}var fe={};Bn(fe,{$brand:()=>c0,$input:()=>Ld,$output:()=>jd,NEVER:()=>s0,TimePrecision:()=>qd,ZodAny:()=>Hf,ZodArray:()=>Xf,ZodBase64:()=>_o,ZodBase64URL:()=>Co,ZodBigInt:()=>iu,ZodBigIntFormat:()=>Fo,ZodBoolean:()=>tu,ZodCIDRv4:()=>Ao,ZodCIDRv6:()=>wo,ZodCUID:()=>Eo,ZodCUID2:()=>yo,ZodCatch:()=>Em,ZodCustom:()=>du,ZodCustomStringFormat:()=>Zf,ZodDate:()=>No,ZodDefault:()=>fm,ZodDiscriminatedUnion:()=>em,ZodE164:()=>$o,ZodEmail:()=>vo,ZodEmoji:()=>ho,ZodEnum:()=>ni,ZodError:()=>z3,ZodFile:()=>lm,ZodFirstPartyTypeKind:()=>Zo,ZodGUID:()=>eu,ZodIPv4:()=>So,ZodIPv6:()=>Bo,ZodISODate:()=>so,ZodISODateTime:()=>oo,ZodISODuration:()=>lo,ZodISOTime:()=>co,ZodIntersection:()=>nm,ZodIssueCode:()=>R1,ZodJWT:()=>xo,ZodKSUID:()=>Do,ZodLazy:()=>Bm,ZodLiteral:()=>sm,ZodMap:()=>rm,ZodNaN:()=>bm,ZodNanoID:()=>go,ZodNever:()=>Wf,ZodNonOptional:()=>jo,ZodNull:()=>Jf,ZodNullable:()=>dm,ZodNumber:()=>nu,ZodNumberFormat:()=>Xn,ZodObject:()=>au,ZodOptional:()=>Ro,ZodPipe:()=>Lo,ZodPrefault:()=>vm,ZodPromise:()=>wm,ZodReadonly:()=>km,ZodRealError:()=>ei,ZodRecord:()=>zo,ZodSet:()=>am,ZodString:()=>Xi,ZodStringFormat:()=>X,ZodSuccess:()=>gm,ZodSymbol:()=>Mf,ZodTemplateLiteral:()=>Sm,ZodTransform:()=>Uo,ZodTuple:()=>im,ZodType:()=>Z,ZodULID:()=>bo,ZodURL:()=>po,ZodUUID:()=>Ke,ZodUndefined:()=>Gf,ZodUnion:()=>Oo,ZodUnknown:()=>Kf,ZodVoid:()=>Yf,ZodXID:()=>ko,_ZodString:()=>fo,_default:()=>mm,any:()=>p1,array:()=>To,base64:()=>n1,base64url:()=>t1,bigint:()=>l1,boolean:()=>qf,catch:()=>ym,check:()=>_m,cidrv4:()=>X3,cidrv6:()=>e1,clone:()=>qe,coerce:()=>xm,config:()=>be,core:()=>o0,cuid:()=>G3,cuid2:()=>J3,custom:()=>T1,date:()=>g1,discriminatedUnion:()=>D1,e164:()=>i1,email:()=>U3,emoji:()=>q3,endsWith:()=>Xa,enum:()=>om,file:()=>C1,flattenError:()=>ta,float32:()=>a1,float64:()=>o1,formatError:()=>ia,function:()=>xf,getErrorMap:()=>L1,globalRegistry:()=>In,gt:()=>Nn,gte:()=>Ce,guid:()=>P3,includes:()=>Wa,instanceof:()=>O1,int:()=>Io,int32:()=>s1,int64:()=>d1,intersection:()=>tm,ipv4:()=>W3,ipv6:()=>Y3,iso:()=>Ff,json:()=>U1,jwt:()=>u1,keyof:()=>E1,ksuid:()=>K3,lazy:()=>Am,length:()=>Yi,literal:()=>cm,locales:()=>Sa,looseObject:()=>k1,lowercase:()=>Ha,lt:()=>Fn,lte:()=>Ze,map:()=>A1,maxLength:()=>Wi,maxSize:()=>Ki,mime:()=>eo,minLength:()=>Yn,minSize:()=>Xt,multipleOf:()=>Yt,nan:()=>I1,nanoid:()=>M3,nativeEnum:()=>_1,negative:()=>yf,never:()=>ru,nonnegative:()=>kf,nonoptional:()=>hm,nonpositive:()=>bf,normalize:()=>no,null:()=>Qf,nullable:()=>cu,nullish:()=>$1,number:()=>Vf,object:()=>y1,optional:()=>su,overwrite:()=>Tn,parse:()=>Pf,parseAsync:()=>Rf,partialRecord:()=>B1,pipe:()=>lu,positive:()=>Ef,prefault:()=>pm,preprocess:()=>P1,prettifyError:()=>k0,promise:()=>N1,property:()=>Df,readonly:()=>Dm,record:()=>um,refine:()=>Cm,regex:()=>Qa,regexes:()=>la,registry:()=>Aa,safeParse:()=>jf,safeParseAsync:()=>Lf,set:()=>w1,setErrorMap:()=>j1,size:()=>Ja,startsWith:()=>Ya,strictObject:()=>b1,string:()=>mo,stringFormat:()=>r1,stringbool:()=>z1,success:()=>x1,superRefine:()=>$m,symbol:()=>m1,templateLiteral:()=>F1,toJSONSchema:()=>If,toLowerCase:()=>io,toUpperCase:()=>uo,transform:()=>Po,treeifyError:()=>y0,trim:()=>to,tuple:()=>S1,uint32:()=>c1,uint64:()=>f1,ulid:()=>Q3,undefined:()=>v1,union:()=>ou,unknown:()=>uu,uppercase:()=>Ka,url:()=>V3,uuid:()=>R3,uuidv4:()=>j3,uuidv6:()=>L3,uuidv7:()=>Z3,void:()=>h1,xid:()=>H3});var o0={};Bn(o0,{$ZodAny:()=>ed,$ZodArray:()=>Ea,$ZodAsyncError:()=>Qn,$ZodBase64:()=>Zl,$ZodBase64URL:()=>ql,$ZodBigInt:()=>ga,$ZodBigIntFormat:()=>Kl,$ZodBoolean:()=>ha,$ZodCIDRv4:()=>jl,$ZodCIDRv6:()=>Ll,$ZodCUID:()=>$l,$ZodCUID2:()=>xl,$ZodCatch:()=>_d,$ZodCheck:()=>ie,$ZodCheckBigIntFormat:()=>ul,$ZodCheckEndsWith:()=>hl,$ZodCheckGreaterThan:()=>ma,$ZodCheckIncludes:()=>vl,$ZodCheckLengthEquals:()=>ll,$ZodCheckLessThan:()=>fa,$ZodCheckLowerCase:()=>fl,$ZodCheckMaxLength:()=>sl,$ZodCheckMaxSize:()=>rl,$ZodCheckMimeType:()=>yl,$ZodCheckMinLength:()=>cl,$ZodCheckMinSize:()=>al,$ZodCheckMultipleOf:()=>tl,$ZodCheckNumberFormat:()=>il,$ZodCheckOverwrite:()=>bl,$ZodCheckProperty:()=>El,$ZodCheckRegex:()=>dl,$ZodCheckSizeEquals:()=>ol,$ZodCheckStartsWith:()=>pl,$ZodCheckStringFormat:()=>Kt,$ZodCheckUpperCase:()=>ml,$ZodCustom:()=>Od,$ZodCustomStringFormat:()=>Ql,$ZodDate:()=>id,$ZodDefault:()=>kd,$ZodDiscriminatedUnion:()=>sd,$ZodE164:()=>Ml,$ZodEmail:()=>Al,$ZodEmoji:()=>_l,$ZodEnum:()=>hd,$ZodError:()=>na,$ZodFile:()=>Ed,$ZodFunction:()=>$f,$ZodGUID:()=>Sl,$ZodIPv4:()=>Pl,$ZodIPv6:()=>Rl,$ZodISODate:()=>Ol,$ZodISODateTime:()=>Tl,$ZodISODuration:()=>Ul,$ZodISOTime:()=>zl,$ZodIntersection:()=>cd,$ZodJWT:()=>Jl,$ZodKSUID:()=>Nl,$ZodLazy:()=>Td,$ZodLiteral:()=>gd,$ZodMap:()=>fd,$ZodNaN:()=>Cd,$ZodNanoID:()=>Cl,$ZodNever:()=>nd,$ZodNonOptional:()=>Bd,$ZodNull:()=>Xl,$ZodNullable:()=>bd,$ZodNumber:()=>pa,$ZodNumberFormat:()=>Hl,$ZodObject:()=>ad,$ZodOptional:()=>yd,$ZodPipe:()=>Da,$ZodPrefault:()=>Sd,$ZodPromise:()=>Nd,$ZodReadonly:()=>xd,$ZodRealError:()=>Ht,$ZodRecord:()=>dd,$ZodRegistry:()=>Ba,$ZodSet:()=>vd,$ZodString:()=>Wt,$ZodStringFormat:()=>W,$ZodSuccess:()=>wd,$ZodSymbol:()=>Wl,$ZodTemplateLiteral:()=>Fd,$ZodTransform:()=>ka,$ZodTuple:()=>Gi,$ZodType:()=>U,$ZodULID:()=>Il,$ZodURL:()=>wl,$ZodUUID:()=>Bl,$ZodUndefined:()=>Yl,$ZodUnion:()=>ya,$ZodUnknown:()=>qi,$ZodVoid:()=>td,$ZodXID:()=>Fl,$brand:()=>c0,$constructor:()=>p,$input:()=>Ld,$output:()=>jd,Doc:()=>kl,JSONSchema:()=>O3,JSONSchemaGenerator:()=>ao,NEVER:()=>s0,TimePrecision:()=>qd,_any:()=>ff,_array:()=>ro,_base64:()=>Va,_base64url:()=>qa,_bigint:()=>rf,_boolean:()=>tf,_catch:()=>$3,_cidrv4:()=>La,_cidrv6:()=>Za,_coercedBigint:()=>af,_coercedBoolean:()=>uf,_coercedDate:()=>hf,_coercedNumber:()=>Kd,_coercedString:()=>Vd,_cuid:()=>Ta,_cuid2:()=>Oa,_custom:()=>Af,_date:()=>pf,_default:()=>w3,_discriminatedUnion:()=>p3,_e164:()=>Ma,_email:()=>wa,_emoji:()=>Fa,_endsWith:()=>Xa,_enum:()=>b3,_file:()=>Bf,_float32:()=>Yd,_float64:()=>Xd,_gt:()=>Nn,_gte:()=>Ce,_guid:()=>Qi,_includes:()=>Wa,_int:()=>Wd,_int32:()=>ef,_int64:()=>of,_intersection:()=>h3,_ipv4:()=>Ra,_ipv6:()=>ja,_isoDate:()=>Gd,_isoDateTime:()=>Md,_isoDuration:()=>Qd,_isoTime:()=>Jd,_jwt:()=>Ga,_ksuid:()=>Pa,_lazy:()=>N3,_length:()=>Yi,_literal:()=>D3,_lowercase:()=>Ha,_lt:()=>Fn,_lte:()=>Ze,_map:()=>E3,_max:()=>Ze,_maxLength:()=>Wi,_maxSize:()=>Ki,_mime:()=>eo,_min:()=>Ce,_minLength:()=>Yn,_minSize:()=>Xt,_multipleOf:()=>Yt,_nan:()=>gf,_nanoid:()=>Na,_nativeEnum:()=>k3,_negative:()=>yf,_never:()=>mf,_nonnegative:()=>kf,_nonoptional:()=>_3,_nonpositive:()=>bf,_normalize:()=>no,_null:()=>df,_nullable:()=>A3,_number:()=>Hd,_optional:()=>B3,_overwrite:()=>Tn,_parse:()=>ua,_parseAsync:()=>aa,_pipe:()=>x3,_positive:()=>Ef,_promise:()=>T3,_property:()=>Df,_readonly:()=>I3,_record:()=>g3,_refine:()=>wf,_regex:()=>Qa,_safeParse:()=>sa,_safeParseAsync:()=>ca,_set:()=>y3,_size:()=>Ja,_startsWith:()=>Ya,_string:()=>Zd,_stringFormat:()=>Cf,_stringbool:()=>_f,_success:()=>C3,_symbol:()=>cf,_templateLiteral:()=>F3,_toLowerCase:()=>io,_toUpperCase:()=>uo,_transform:()=>S3,_trim:()=>to,_tuple:()=>Sf,_uint32:()=>nf,_uint64:()=>sf,_ulid:()=>za,_undefined:()=>lf,_union:()=>v3,_unknown:()=>Hi,_uppercase:()=>Ka,_url:()=>Ia,_uuid:()=>_a,_uuidv4:()=>Ca,_uuidv6:()=>$a,_uuidv7:()=>xa,_void:()=>vf,_xid:()=>Ua,clone:()=>qe,config:()=>be,flattenError:()=>ta,formatError:()=>ia,function:()=>xf,globalConfig:()=>Pi,globalRegistry:()=>In,isValidBase64:()=>va,isValidBase64URL:()=>Vl,isValidJWT:()=>Gl,locales:()=>Sa,parse:()=>ra,parseAsync:()=>oa,prettifyError:()=>k0,regexes:()=>la,registry:()=>Aa,safeParse:()=>D0,safeParseAsync:()=>S0,toDotPath:()=>b0,toJSONSchema:()=>If,treeifyError:()=>y0,util:()=>M,version:()=>Dl});var s0=Object.freeze({status:"aborted"});function p(e,n,t){function u(o,s){var c;Object.defineProperty(o,"_zod",{value:o._zod??{},enumerable:!1}),(c=o._zod).traits??(c.traits=new Set),o._zod.traits.add(e),n(o,s);for(const l in a.prototype)l in o||Object.defineProperty(o,l,{value:a.prototype[l].bind(o)});o._zod.constr=a,o._zod.def=s}const i=t?.Parent??Object;class r extends i{}Object.defineProperty(r,"name",{value:e});function a(o){var s;const c=t?.Parent?new r: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=>t?.Parent&&o instanceof t.Parent?!0:o?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var c0=Symbol("zod_brand"),Qn=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Pi={};function be(e){return e&&Object.assign(Pi,e),Pi}var M={};Bn(M,{BIGINT_FORMAT_RANGES:()=>h0,Class:()=>Ig,NUMBER_FORMAT_RANGES:()=>p0,aborted:()=>Kn,allowsEval:()=>f0,assert:()=>gg,assertEqual:()=>mg,assertIs:()=>pg,assertNever:()=>hg,assertNotEqual:()=>vg,assignProp:()=>Xr,cached:()=>Ri,captureStackTrace:()=>ea,cleanEnum:()=>xg,cleanRegex:()=>ji,clone:()=>qe,createTransparentProxy:()=>Sg,defineLazy:()=>Q,esc:()=>Hn,escapeRegex:()=>xn,extend:()=>wg,finalizeIssue:()=>Le,floatSafeRemainder:()=>d0,getElementAtPath:()=>Eg,getEnumValues:()=>Yr,getLengthableOrigin:()=>Vi,getParsedType:()=>Dg,getSizableOrigin:()=>Zi,isObject:()=>Gt,isPlainObject:()=>Jt,issue:()=>g0,joinValues:()=>w,jsonStringifyReplacer:()=>l0,merge:()=>_g,normalizeParams:()=>S,nullish:()=>$n,numKeys:()=>kg,omit:()=>Ag,optionalKeys:()=>v0,partial:()=>Cg,pick:()=>Bg,prefixIssues:()=>Fe,primitiveTypes:()=>m0,promiseAllObject:()=>yg,propertyKeyTypes:()=>Li,randomString:()=>bg,required:()=>$g,stringifyPrimitive:()=>L,unwrapMessage:()=>Qt});function mg(e){return e}function vg(e){return e}function pg(e){}function hg(e){throw new Error}function gg(e){}function Yr(e){const n=Object.values(e).filter(u=>typeof u=="number");return Object.entries(e).filter(([u,i])=>n.indexOf(+u)===-1).map(([u,i])=>i)}function w(e,n="|"){return e.map(t=>L(t)).join(n)}function l0(e,n){return typeof n=="bigint"?n.toString():n}function Ri(e){return{get value(){{const n=e();return Object.defineProperty(this,"value",{value:n}),n}}}}function $n(e){return e==null}function ji(e){const n=e.startsWith("^")?1:0,t=e.endsWith("$")?e.length-1:e.length;return e.slice(n,t)}function d0(e,n){const t=(e.toString().split(".")[1]||"").length,u=(n.toString().split(".")[1]||"").length,i=t>u?t:u,r=Number.parseInt(e.toFixed(i).replace(".","")),a=Number.parseInt(n.toFixed(i).replace(".",""));return r%a/10**i}function Q(e,n,t){Object.defineProperty(e,n,{get(){{const u=t();return e[n]=u,u}},set(u){Object.defineProperty(e,n,{value:u})},configurable:!0})}function Xr(e,n,t){Object.defineProperty(e,n,{value:t,writable:!0,enumerable:!0,configurable:!0})}function Eg(e,n){return n?n.reduce((t,u)=>t?.[u],e):e}function yg(e){const n=Object.keys(e),t=n.map(u=>e[u]);return Promise.all(t).then(u=>{const i={};for(let r=0;r<n.length;r++)i[n[r]]=u[r];return i})}function bg(e=10){const n="abcdefghijklmnopqrstuvwxyz";let t="";for(let u=0;u<e;u++)t+=n[Math.floor(Math.random()*n.length)];return t}function Hn(e){return JSON.stringify(e)}var ea=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function Gt(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var f0=Ri(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Jt(e){if(Gt(e)===!1)return!1;const n=e.constructor;if(n===void 0)return!0;const t=n.prototype;return!(Gt(t)===!1||Object.prototype.hasOwnProperty.call(t,"isPrototypeOf")===!1)}function kg(e){let n=0;for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&n++;return n}var Dg=e=>{const n=typeof e;switch(n){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: ${n}`)}},Li=new Set(["string","number","symbol"]),m0=new Set(["string","number","bigint","boolean","symbol","undefined"]);function xn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function qe(e,n,t){const u=new e._zod.constr(n??e._zod.def);return(!n||t?.parent)&&(u._zod.parent=e),u}function S(e){const n=e;if(!n)return{};if(typeof n=="string")return{error:()=>n};if(n?.message!==void 0){if(n?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");n.error=n.message}return delete n.message,typeof n.error=="string"?{...n,error:()=>n.error}:n}function Sg(e){let n;return new Proxy({},{get(t,u,i){return n??(n=e()),Reflect.get(n,u,i)},set(t,u,i,r){return n??(n=e()),Reflect.set(n,u,i,r)},has(t,u){return n??(n=e()),Reflect.has(n,u)},deleteProperty(t,u){return n??(n=e()),Reflect.deleteProperty(n,u)},ownKeys(t){return n??(n=e()),Reflect.ownKeys(n)},getOwnPropertyDescriptor(t,u){return n??(n=e()),Reflect.getOwnPropertyDescriptor(n,u)},defineProperty(t,u,i){return n??(n=e()),Reflect.defineProperty(n,u,i)}})}function L(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function v0(e){return Object.keys(e).filter(n=>e[n]._zod.optin==="optional"&&e[n]._zod.optout==="optional")}var p0={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]},h0={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Bg(e,n){const t={},u=e._zod.def;for(const i in n){if(!(i in u.shape))throw new Error(`Unrecognized key: "${i}"`);n[i]&&(t[i]=u.shape[i])}return qe(e,{...e._zod.def,shape:t,checks:[]})}function Ag(e,n){const t={...e._zod.def.shape},u=e._zod.def;for(const i in n){if(!(i in u.shape))throw new Error(`Unrecognized key: "${i}"`);n[i]&&delete t[i]}return qe(e,{...e._zod.def,shape:t,checks:[]})}function wg(e,n){if(!Jt(n))throw new Error("Invalid input to extend: expected a plain object");const t={...e._zod.def,get shape(){const u={...e._zod.def.shape,...n};return Xr(this,"shape",u),u},checks:[]};return qe(e,t)}function _g(e,n){return qe(e,{...e._zod.def,get shape(){const t={...e._zod.def.shape,...n._zod.def.shape};return Xr(this,"shape",t),t},catchall:n._zod.def.catchall,checks:[]})}function Cg(e,n,t){const u=n._zod.def.shape,i={...u};if(t)for(const r in t){if(!(r in u))throw new Error(`Unrecognized key: "${r}"`);t[r]&&(i[r]=e?new e({type:"optional",innerType:u[r]}):u[r])}else for(const r in u)i[r]=e?new e({type:"optional",innerType:u[r]}):u[r];return qe(n,{...n._zod.def,shape:i,checks:[]})}function $g(e,n,t){const u=n._zod.def.shape,i={...u};if(t)for(const r in t){if(!(r in i))throw new Error(`Unrecognized key: "${r}"`);t[r]&&(i[r]=new e({type:"nonoptional",innerType:u[r]}))}else for(const r in u)i[r]=new e({type:"nonoptional",innerType:u[r]});return qe(n,{...n._zod.def,shape:i,checks:[]})}function Kn(e,n=0){for(let t=n;t<e.issues.length;t++)if(e.issues[t]?.continue!==!0)return!0;return!1}function Fe(e,n){return n.map(t=>{var u;return(u=t).path??(u.path=[]),t.path.unshift(e),t})}function Qt(e){return typeof e=="string"?e:e?.message}function Le(e,n,t){const u={...e,path:e.path??[]};if(!e.message){const i=Qt(e.inst?._zod.def?.error?.(e))??Qt(n?.error?.(e))??Qt(t.customError?.(e))??Qt(t.localeError?.(e))??"Invalid input";u.message=i}return delete u.inst,delete u.continue,n?.reportInput||delete u.input,u}function Zi(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Vi(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function g0(...e){const[n,t,u]=e;return typeof n=="string"?{message:n,code:"custom",input:t,inst:u}:{...n}}function xg(e){return Object.entries(e).filter(([n,t])=>Number.isNaN(Number.parseInt(n,10))).map(n=>n[1])}var Ig=class{constructor(...e){}},E0=(e,n)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:n,enumerable:!1}),Object.defineProperty(e,"message",{get(){return JSON.stringify(n,l0,2)},enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},na=p("$ZodError",E0),Ht=p("$ZodError",E0,{Parent:Error});function ta(e,n=t=>t.message){const t={},u=[];for(const i of e.issues)i.path.length>0?(t[i.path[0]]=t[i.path[0]]||[],t[i.path[0]].push(n(i))):u.push(n(i));return{formErrors:u,fieldErrors:t}}function ia(e,n){const t=n||function(r){return r.message},u={_errors:[]},i=r=>{for(const a of r.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(o=>i({issues:o}));else if(a.code==="invalid_key")i({issues:a.issues});else if(a.code==="invalid_element")i({issues:a.issues});else if(a.path.length===0)u._errors.push(t(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(t(a))):o[c]=o[c]||{_errors:[]},o=o[c],s++}}};return i(e),u}function y0(e,n){const t=n||function(r){return r.message},u={errors:[]},i=(r,a=[])=>{var o,s;for(const c of r.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(l=>i({issues:l},c.path));else if(c.code==="invalid_key")i({issues:c.issues},c.path);else if(c.code==="invalid_element")i({issues:c.issues},c.path);else{const l=[...a,...c.path];if(l.length===0){u.errors.push(t(c));continue}let f=u,m=0;for(;m<l.length;){const d=l[m],v=m===l.length-1;typeof d=="string"?(f.properties??(f.properties={}),(o=f.properties)[d]??(o[d]={errors:[]}),f=f.properties[d]):(f.items??(f.items=[]),(s=f.items)[d]??(s[d]={errors:[]}),f=f.items[d]),v&&f.errors.push(t(c)),m++}}};return i(e),u}function b0(e){const n=[];for(const t of e)typeof t=="number"?n.push(`[${t}]`):typeof t=="symbol"?n.push(`[${JSON.stringify(String(t))}]`):/[^\w$]/.test(t)?n.push(`[${JSON.stringify(t)}]`):(n.length&&n.push("."),n.push(t));return n.join("")}function k0(e){const n=[],t=[...e.issues].sort((u,i)=>u.path.length-i.path.length);for(const u of t)n.push(`\u2716 ${u.message}`),u.path?.length&&n.push(` \u2192 at ${b0(u.path)}`);return n.join(`
|
|
43
|
-
`)}var ua=e=>(n,t,u,i)=>{const r=u?Object.assign(u,{async:!1}):{async:!1},a=n._zod.run({value:t,issues:[]},r);if(a instanceof Promise)throw new Qn;if(a.issues.length){const o=new(i?.Err??e)(a.issues.map(s=>Le(s,r,be())));throw ea(o,i?.callee),o}return a.value},ra=ua(Ht),aa=e=>async(n,t,u,i)=>{const r=u?Object.assign(u,{async:!0}):{async:!0};let a=n._zod.run({value:t,issues:[]},r);if(a instanceof Promise&&(a=await a),a.issues.length){const o=new(i?.Err??e)(a.issues.map(s=>Le(s,r,be())));throw ea(o,i?.callee),o}return a.value},oa=aa(Ht),sa=e=>(n,t,u)=>{const i=u?{...u,async:!1}:{async:!1},r=n._zod.run({value:t,issues:[]},i);if(r instanceof Promise)throw new Qn;return r.issues.length?{success:!1,error:new(e??na)(r.issues.map(a=>Le(a,i,be())))}:{success:!0,data:r.value}},D0=sa(Ht),ca=e=>async(n,t,u)=>{const i=u?Object.assign(u,{async:!0}):{async:!0};let r=n._zod.run({value:t,issues:[]},i);return r instanceof Promise&&(r=await r),r.issues.length?{success:!1,error:new e(r.issues.map(a=>Le(a,i,be())))}:{success:!0,data:r.value}},S0=ca(Ht),la={};Bn(la,{base64:()=>P0,base64url:()=>da,bigint:()=>J0,boolean:()=>K0,browserEmail:()=>Rg,cidrv4:()=>z0,cidrv6:()=>U0,cuid:()=>B0,cuid2:()=>A0,date:()=>Z0,datetime:()=>M0,domain:()=>Lg,duration:()=>x0,e164:()=>j0,email:()=>F0,emoji:()=>N0,extendedDuration:()=>Fg,guid:()=>I0,hostname:()=>R0,html5Email:()=>zg,integer:()=>Q0,ipv4:()=>T0,ipv6:()=>O0,ksuid:()=>C0,lowercase:()=>X0,nanoid:()=>$0,null:()=>W0,number:()=>H0,rfc5322Email:()=>Ug,string:()=>G0,time:()=>q0,ulid:()=>w0,undefined:()=>Y0,unicodeEmail:()=>Pg,uppercase:()=>el,uuid:()=>Wn,uuid4:()=>Ng,uuid6:()=>Tg,uuid7:()=>Og,xid:()=>_0});var B0=/^[cC][^\s-]{8,}$/,A0=/^[0-9a-z]+$/,w0=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,_0=/^[0-9a-vA-V]{20}$/,C0=/^[A-Za-z0-9]{27}$/,$0=/^[a-zA-Z0-9_-]{21}$/,x0=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Fg=/^[-+]?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)?)??$/,I0=/^([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})$/,Wn=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)$/,Ng=Wn(4),Tg=Wn(6),Og=Wn(7),F0=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,zg=/^[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])?)*$/,Ug=/^(([^<>()\[\]\\.,;:\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,}))$/,Pg=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Rg=/^[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])?)*$/,jg="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function N0(){return new RegExp(jg,"u")}var T0=/^(?:(?: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])$/,O0=/^(([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})$/,z0=/^((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])$/,U0=/^(([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])$/,P0=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,da=/^[A-Za-z0-9_-]*$/,R0=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,Lg=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,j0=/^\+(?:[0-9]){6,14}[0-9]$/,L0="(?:(?:\\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])))",Z0=new RegExp(`^${L0}$`);function V0(e){const n="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${n}`:e.precision===0?`${n}:[0-5]\\d`:`${n}:[0-5]\\d\\.\\d{${e.precision}}`:`${n}(?::[0-5]\\d(?:\\.\\d+)?)?`}function q0(e){return new RegExp(`^${V0(e)}$`)}function M0(e){const n=V0({precision:e.precision}),t=["Z"];e.local&&t.push(""),e.offset&&t.push("([+-]\\d{2}:\\d{2})");const u=`${n}(?:${t.join("|")})`;return new RegExp(`^${L0}T(?:${u})$`)}var G0=e=>{const n=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${n}$`)},J0=/^\d+n?$/,Q0=/^\d+$/,H0=/^-?\d+(?:\.\d+)?/i,K0=/true|false/i,W0=/null/i,Y0=/undefined/i,X0=/^[^A-Z]*$/,el=/^[^a-z]*$/,ie=p("$ZodCheck",(e,n)=>{var t;e._zod??(e._zod={}),e._zod.def=n,(t=e._zod).onattach??(t.onattach=[])}),nl={number:"number",bigint:"bigint",object:"date"},fa=p("$ZodCheckLessThan",(e,n)=>{ie.init(e,n);const t=nl[typeof n.value];e._zod.onattach.push(u=>{const i=u._zod.bag,r=(n.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;n.value<r&&(n.inclusive?i.maximum=n.value:i.exclusiveMaximum=n.value)}),e._zod.check=u=>{(n.inclusive?u.value<=n.value:u.value<n.value)||u.issues.push({origin:t,code:"too_big",maximum:n.value,input:u.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),ma=p("$ZodCheckGreaterThan",(e,n)=>{ie.init(e,n);const t=nl[typeof n.value];e._zod.onattach.push(u=>{const i=u._zod.bag,r=(n.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;n.value>r&&(n.inclusive?i.minimum=n.value:i.exclusiveMinimum=n.value)}),e._zod.check=u=>{(n.inclusive?u.value>=n.value:u.value>n.value)||u.issues.push({origin:t,code:"too_small",minimum:n.value,input:u.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),tl=p("$ZodCheckMultipleOf",(e,n)=>{ie.init(e,n),e._zod.onattach.push(t=>{var u;(u=t._zod.bag).multipleOf??(u.multipleOf=n.value)}),e._zod.check=t=>{if(typeof t.value!=typeof n.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof t.value=="bigint"?t.value%n.value===BigInt(0):d0(t.value,n.value)===0)||t.issues.push({origin:typeof t.value,code:"not_multiple_of",divisor:n.value,input:t.value,inst:e,continue:!n.abort})}}),il=p("$ZodCheckNumberFormat",(e,n)=>{ie.init(e,n),n.format=n.format||"float64";const t=n.format?.includes("int"),u=t?"int":"number",[i,r]=p0[n.format];e._zod.onattach.push(a=>{const o=a._zod.bag;o.format=n.format,o.minimum=i,o.maximum=r,t&&(o.pattern=Q0)}),e._zod.check=a=>{const o=a.value;if(t){if(!Number.isInteger(o)){a.issues.push({expected:u,format:n.format,code:"invalid_type",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,continue:!n.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,continue:!n.abort});return}}o<i&&a.issues.push({origin:"number",input:o,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!n.abort}),o>r&&a.issues.push({origin:"number",input:o,code:"too_big",maximum:r,inst:e})}}),ul=p("$ZodCheckBigIntFormat",(e,n)=>{ie.init(e,n);const[t,u]=h0[n.format];e._zod.onattach.push(i=>{const r=i._zod.bag;r.format=n.format,r.minimum=t,r.maximum=u}),e._zod.check=i=>{const r=i.value;r<t&&i.issues.push({origin:"bigint",input:r,code:"too_small",minimum:t,inclusive:!0,inst:e,continue:!n.abort}),r>u&&i.issues.push({origin:"bigint",input:r,code:"too_big",maximum:u,inst:e})}}),rl=p("$ZodCheckMaxSize",(e,n)=>{var t;ie.init(e,n),(t=e._zod.def).when??(t.when=u=>{const i=u.value;return!$n(i)&&i.size!==void 0}),e._zod.onattach.push(u=>{const i=u._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum<i&&(u._zod.bag.maximum=n.maximum)}),e._zod.check=u=>{const i=u.value;i.size<=n.maximum||u.issues.push({origin:Zi(i),code:"too_big",maximum:n.maximum,input:i,inst:e,continue:!n.abort})}}),al=p("$ZodCheckMinSize",(e,n)=>{var t;ie.init(e,n),(t=e._zod.def).when??(t.when=u=>{const i=u.value;return!$n(i)&&i.size!==void 0}),e._zod.onattach.push(u=>{const i=u._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>i&&(u._zod.bag.minimum=n.minimum)}),e._zod.check=u=>{const i=u.value;i.size>=n.minimum||u.issues.push({origin:Zi(i),code:"too_small",minimum:n.minimum,input:i,inst:e,continue:!n.abort})}}),ol=p("$ZodCheckSizeEquals",(e,n)=>{var t;ie.init(e,n),(t=e._zod.def).when??(t.when=u=>{const i=u.value;return!$n(i)&&i.size!==void 0}),e._zod.onattach.push(u=>{const i=u._zod.bag;i.minimum=n.size,i.maximum=n.size,i.size=n.size}),e._zod.check=u=>{const i=u.value,r=i.size;if(r===n.size)return;const a=r>n.size;u.issues.push({origin:Zi(i),...a?{code:"too_big",maximum:n.size}:{code:"too_small",minimum:n.size},inclusive:!0,exact:!0,input:u.value,inst:e,continue:!n.abort})}}),sl=p("$ZodCheckMaxLength",(e,n)=>{var t;ie.init(e,n),(t=e._zod.def).when??(t.when=u=>{const i=u.value;return!$n(i)&&i.length!==void 0}),e._zod.onattach.push(u=>{const i=u._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum<i&&(u._zod.bag.maximum=n.maximum)}),e._zod.check=u=>{const i=u.value;if(i.length<=n.maximum)return;const a=Vi(i);u.issues.push({origin:a,code:"too_big",maximum:n.maximum,inclusive:!0,input:i,inst:e,continue:!n.abort})}}),cl=p("$ZodCheckMinLength",(e,n)=>{var t;ie.init(e,n),(t=e._zod.def).when??(t.when=u=>{const i=u.value;return!$n(i)&&i.length!==void 0}),e._zod.onattach.push(u=>{const i=u._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>i&&(u._zod.bag.minimum=n.minimum)}),e._zod.check=u=>{const i=u.value;if(i.length>=n.minimum)return;const a=Vi(i);u.issues.push({origin:a,code:"too_small",minimum:n.minimum,inclusive:!0,input:i,inst:e,continue:!n.abort})}}),ll=p("$ZodCheckLengthEquals",(e,n)=>{var t;ie.init(e,n),(t=e._zod.def).when??(t.when=u=>{const i=u.value;return!$n(i)&&i.length!==void 0}),e._zod.onattach.push(u=>{const i=u._zod.bag;i.minimum=n.length,i.maximum=n.length,i.length=n.length}),e._zod.check=u=>{const i=u.value,r=i.length;if(r===n.length)return;const a=Vi(i),o=r>n.length;u.issues.push({origin:a,...o?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length},inclusive:!0,exact:!0,input:u.value,inst:e,continue:!n.abort})}}),Kt=p("$ZodCheckStringFormat",(e,n)=>{var t,u;ie.init(e,n),e._zod.onattach.push(i=>{const r=i._zod.bag;r.format=n.format,n.pattern&&(r.patterns??(r.patterns=new Set),r.patterns.add(n.pattern))}),n.pattern?(t=e._zod).check??(t.check=i=>{n.pattern.lastIndex=0,!n.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:n.format,input:i.value,...n.pattern?{pattern:n.pattern.toString()}:{},inst:e,continue:!n.abort})}):(u=e._zod).check??(u.check=()=>{})}),dl=p("$ZodCheckRegex",(e,n)=>{Kt.init(e,n),e._zod.check=t=>{n.pattern.lastIndex=0,!n.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:"regex",input:t.value,pattern:n.pattern.toString(),inst:e,continue:!n.abort})}}),fl=p("$ZodCheckLowerCase",(e,n)=>{n.pattern??(n.pattern=X0),Kt.init(e,n)}),ml=p("$ZodCheckUpperCase",(e,n)=>{n.pattern??(n.pattern=el),Kt.init(e,n)}),vl=p("$ZodCheckIncludes",(e,n)=>{ie.init(e,n);const t=xn(n.includes),u=new RegExp(typeof n.position=="number"?`^.{${n.position}}${t}`:t);n.pattern=u,e._zod.onattach.push(i=>{const r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(u)}),e._zod.check=i=>{i.value.includes(n.includes,n.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:n.includes,input:i.value,inst:e,continue:!n.abort})}}),pl=p("$ZodCheckStartsWith",(e,n)=>{ie.init(e,n);const t=new RegExp(`^${xn(n.prefix)}.*`);n.pattern??(n.pattern=t),e._zod.onattach.push(u=>{const i=u._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(t)}),e._zod.check=u=>{u.value.startsWith(n.prefix)||u.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:n.prefix,input:u.value,inst:e,continue:!n.abort})}}),hl=p("$ZodCheckEndsWith",(e,n)=>{ie.init(e,n);const t=new RegExp(`.*${xn(n.suffix)}$`);n.pattern??(n.pattern=t),e._zod.onattach.push(u=>{const i=u._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(t)}),e._zod.check=u=>{u.value.endsWith(n.suffix)||u.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:n.suffix,input:u.value,inst:e,continue:!n.abort})}});function gl(e,n,t){e.issues.length&&n.issues.push(...Fe(t,e.issues))}var El=p("$ZodCheckProperty",(e,n)=>{ie.init(e,n),e._zod.check=t=>{const u=n.schema._zod.run({value:t.value[n.property],issues:[]},{});if(u instanceof Promise)return u.then(i=>gl(i,t,n.property));gl(u,t,n.property)}}),yl=p("$ZodCheckMimeType",(e,n)=>{ie.init(e,n);const t=new Set(n.mime);e._zod.onattach.push(u=>{u._zod.bag.mime=n.mime}),e._zod.check=u=>{t.has(u.value.type)||u.issues.push({code:"invalid_value",values:n.mime,input:u.value.type,inst:e})}}),bl=p("$ZodCheckOverwrite",(e,n)=>{ie.init(e,n),e._zod.check=t=>{t.value=n.tx(t.value)}}),kl=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 t=e.split(`
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
})));`),m.write(`newResult[${Hn(y)}] = ${k}.value`)}m.write("payload.value = newResult;"),m.write("return payload;");const b=m.compile();return(y,k)=>b(f,y,k)};let i;const r=Gt,a=!Pi.jitless,s=a&&f0.value,c=n.catchall;let l;e._zod.parse=(f,m)=>{l??(l=t.value);const d=f.value;if(!r(d))return f.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),f;const v=[];if(a&&s&&m?.async===!1&&m.jitless!==!0)i||(i=u(n.shape)),f=i(f,m);else{f.value={};const k=l.shape;for(const _ of l.keys){const B=k[_],G=B._zod.run({value:d[_],issues:[]},m),V=B._zod.optin==="optional"&&B._zod.optout==="optional";G instanceof Promise?v.push(G.then(F=>V?rd(F,f,_,d):Mi(F,f,_))):V?rd(G,f,_,d):Mi(G,f,_)}}if(!c)return v.length?Promise.all(v).then(()=>f):f;const h=[],E=l.keySet,b=c._zod,y=b.def.type;for(const k of Object.keys(d)){if(E.has(k))continue;if(y==="never"){h.push(k);continue}const _=b.run({value:d[k],issues:[]},m);_ instanceof Promise?v.push(_.then(B=>Mi(B,f,k))):Mi(_,f,k)}return h.length&&f.issues.push({code:"unrecognized_keys",keys:h,input:d,inst:e}),v.length?Promise.all(v).then(()=>f):f}});function od(e,n,t,u){for(const i of e)if(i.issues.length===0)return n.value=i.value,n;return n.issues.push({code:"invalid_union",input:n.value,inst:t,errors:e.map(i=>i.issues.map(r=>Le(r,u,be())))}),n}var ya=p("$ZodUnion",(e,n)=>{U.init(e,n),Q(e._zod,"optin",()=>n.options.some(t=>t._zod.optin==="optional")?"optional":void 0),Q(e._zod,"optout",()=>n.options.some(t=>t._zod.optout==="optional")?"optional":void 0),Q(e._zod,"values",()=>{if(n.options.every(t=>t._zod.values))return new Set(n.options.flatMap(t=>Array.from(t._zod.values)))}),Q(e._zod,"pattern",()=>{if(n.options.every(t=>t._zod.pattern)){const t=n.options.map(u=>u._zod.pattern);return new RegExp(`^(${t.map(u=>ji(u.source)).join("|")})$`)}}),e._zod.parse=(t,u)=>{let i=!1;const r=[];for(const a of n.options){const o=a._zod.run({value:t.value,issues:[]},u);if(o instanceof Promise)r.push(o),i=!0;else{if(o.issues.length===0)return o;r.push(o)}}return i?Promise.all(r).then(a=>od(a,t,e,u)):od(r,t,e,u)}}),sd=p("$ZodDiscriminatedUnion",(e,n)=>{ya.init(e,n);const t=e._zod.parse;Q(e._zod,"propValues",()=>{const i={};for(const r of n.options){const a=r._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${n.options.indexOf(r)}"`);for(const[o,s]of Object.entries(a)){i[o]||(i[o]=new Set);for(const c of s)i[o].add(c)}}return i});const u=Ri(()=>{const i=n.options,r=new Map;for(const a of i){const o=a._zod.propValues?.[n.discriminator];if(!o||o.size===0)throw new Error(`Invalid discriminated union option at index "${n.options.indexOf(a)}"`);for(const s of o){if(r.has(s))throw new Error(`Duplicate discriminator value "${String(s)}"`);r.set(s,a)}}return r});e._zod.parse=(i,r)=>{const a=i.value;if(!Gt(a))return i.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),i;const o=u.value.get(a?.[n.discriminator]);return o?o._zod.run(i,r):n.unionFallback?t(i,r):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",input:a,path:[n.discriminator],inst:e}),i)}}),cd=p("$ZodIntersection",(e,n)=>{U.init(e,n),e._zod.parse=(t,u)=>{const i=t.value,r=n.left._zod.run({value:i,issues:[]},u),a=n.right._zod.run({value:i,issues:[]},u);return r instanceof Promise||a instanceof Promise?Promise.all([r,a]).then(([s,c])=>ld(t,s,c)):ld(t,r,a)}});function ba(e,n){if(e===n)return{valid:!0,data:e};if(e instanceof Date&&n instanceof Date&&+e==+n)return{valid:!0,data:e};if(Jt(e)&&Jt(n)){const t=Object.keys(n),u=Object.keys(e).filter(r=>t.indexOf(r)!==-1),i={...e,...n};for(const r of u){const a=ba(e[r],n[r]);if(!a.valid)return{valid:!1,mergeErrorPath:[r,...a.mergeErrorPath]};i[r]=a.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return{valid:!1,mergeErrorPath:[]};const t=[];for(let u=0;u<e.length;u++){const i=e[u],r=n[u],a=ba(i,r);if(!a.valid)return{valid:!1,mergeErrorPath:[u,...a.mergeErrorPath]};t.push(a.data)}return{valid:!0,data:t}}return{valid:!1,mergeErrorPath:[]}}function ld(e,n,t){if(n.issues.length&&e.issues.push(...n.issues),t.issues.length&&e.issues.push(...t.issues),Kn(e))return e;const u=ba(n.value,t.value);if(!u.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(u.mergeErrorPath)}`);return e.value=u.data,e}var Gi=p("$ZodTuple",(e,n)=>{U.init(e,n);const t=n.items,u=t.length-[...t].reverse().findIndex(i=>i._zod.optin!=="optional");e._zod.parse=(i,r)=>{const a=i.value;if(!Array.isArray(a))return i.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),i;i.value=[];const o=[];if(!n.rest){const c=a.length>t.length,l=a.length<u-1;if(c||l)return i.issues.push({input:a,inst:e,origin:"array",...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length}}),i}let s=-1;for(const c of t){if(s++,s>=a.length&&s>=u)continue;const l=c._zod.run({value:a[s],issues:[]},r);l instanceof Promise?o.push(l.then(f=>Ji(f,i,s))):Ji(l,i,s)}if(n.rest){const c=a.slice(t.length);for(const l of c){s++;const f=n.rest._zod.run({value:l,issues:[]},r);f instanceof Promise?o.push(f.then(m=>Ji(m,i,s))):Ji(f,i,s)}}return o.length?Promise.all(o).then(()=>i):i}});function Ji(e,n,t){e.issues.length&&n.issues.push(...Fe(t,e.issues)),n.value[t]=e.value}var dd=p("$ZodRecord",(e,n)=>{U.init(e,n),e._zod.parse=(t,u)=>{const i=t.value;if(!Jt(i))return t.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),t;const r=[];if(n.keyType._zod.values){const a=n.keyType._zod.values;t.value={};for(const s of a)if(typeof s=="string"||typeof s=="number"||typeof s=="symbol"){const c=n.valueType._zod.run({value:i[s],issues:[]},u);c instanceof Promise?r.push(c.then(l=>{l.issues.length&&t.issues.push(...Fe(s,l.issues)),t.value[s]=l.value})):(c.issues.length&&t.issues.push(...Fe(s,c.issues)),t.value[s]=c.value)}let o;for(const s in i)a.has(s)||(o=o??[],o.push(s));o&&o.length>0&&t.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:o})}else{t.value={};for(const a of Reflect.ownKeys(i)){if(a==="__proto__")continue;const o=n.keyType._zod.run({value:a,issues:[]},u);if(o instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(o.issues.length){t.issues.push({origin:"record",code:"invalid_key",issues:o.issues.map(c=>Le(c,u,be())),input:a,path:[a],inst:e}),t.value[o.value]=o.value;continue}const s=n.valueType._zod.run({value:i[a],issues:[]},u);s instanceof Promise?r.push(s.then(c=>{c.issues.length&&t.issues.push(...Fe(a,c.issues)),t.value[o.value]=c.value})):(s.issues.length&&t.issues.push(...Fe(a,s.issues)),t.value[o.value]=s.value)}}return r.length?Promise.all(r).then(()=>t):t}}),fd=p("$ZodMap",(e,n)=>{U.init(e,n),e._zod.parse=(t,u)=>{const i=t.value;if(!(i instanceof Map))return t.issues.push({expected:"map",code:"invalid_type",input:i,inst:e}),t;const r=[];t.value=new Map;for(const[a,o]of i){const s=n.keyType._zod.run({value:a,issues:[]},u),c=n.valueType._zod.run({value:o,issues:[]},u);s instanceof Promise||c instanceof Promise?r.push(Promise.all([s,c]).then(([l,f])=>{md(l,f,t,a,i,e,u)})):md(s,c,t,a,i,e,u)}return r.length?Promise.all(r).then(()=>t):t}});function md(e,n,t,u,i,r,a){e.issues.length&&(Li.has(typeof u)?t.issues.push(...Fe(u,e.issues)):t.issues.push({origin:"map",code:"invalid_key",input:i,inst:r,issues:e.issues.map(o=>Le(o,a,be()))})),n.issues.length&&(Li.has(typeof u)?t.issues.push(...Fe(u,n.issues)):t.issues.push({origin:"map",code:"invalid_element",input:i,inst:r,key:u,issues:n.issues.map(o=>Le(o,a,be()))})),t.value.set(e.value,n.value)}var vd=p("$ZodSet",(e,n)=>{U.init(e,n),e._zod.parse=(t,u)=>{const i=t.value;if(!(i instanceof Set))return t.issues.push({input:i,inst:e,expected:"set",code:"invalid_type"}),t;const r=[];t.value=new Set;for(const a of i){const o=n.valueType._zod.run({value:a,issues:[]},u);o instanceof Promise?r.push(o.then(s=>pd(s,t))):pd(o,t)}return r.length?Promise.all(r).then(()=>t):t}});function pd(e,n){e.issues.length&&n.issues.push(...e.issues),n.value.add(e.value)}var hd=p("$ZodEnum",(e,n)=>{U.init(e,n);const t=Yr(n.entries);e._zod.values=new Set(t),e._zod.pattern=new RegExp(`^(${t.filter(u=>Li.has(typeof u)).map(u=>typeof u=="string"?xn(u):u.toString()).join("|")})$`),e._zod.parse=(u,i)=>{const r=u.value;return e._zod.values.has(r)||u.issues.push({code:"invalid_value",values:t,input:r,inst:e}),u}}),gd=p("$ZodLiteral",(e,n)=>{U.init(e,n),e._zod.values=new Set(n.values),e._zod.pattern=new RegExp(`^(${n.values.map(t=>typeof t=="string"?xn(t):t?t.toString():String(t)).join("|")})$`),e._zod.parse=(t,u)=>{const i=t.value;return e._zod.values.has(i)||t.issues.push({code:"invalid_value",values:n.values,input:i,inst:e}),t}}),Ed=p("$ZodFile",(e,n)=>{U.init(e,n),e._zod.parse=(t,u)=>{const i=t.value;return i instanceof File||t.issues.push({expected:"file",code:"invalid_type",input:i,inst:e}),t}}),ka=p("$ZodTransform",(e,n)=>{U.init(e,n),e._zod.parse=(t,u)=>{const i=n.transform(t.value,t);if(u.async)return(i instanceof Promise?i:Promise.resolve(i)).then(a=>(t.value=a,t));if(i instanceof Promise)throw new Qn;return t.value=i,t}}),yd=p("$ZodOptional",(e,n)=>{U.init(e,n),e._zod.optin="optional",e._zod.optout="optional",Q(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,void 0]):void 0),Q(e._zod,"pattern",()=>{const t=n.innerType._zod.pattern;return t?new RegExp(`^(${ji(t.source)})?$`):void 0}),e._zod.parse=(t,u)=>n.innerType._zod.optin==="optional"?n.innerType._zod.run(t,u):t.value===void 0?t:n.innerType._zod.run(t,u)}),bd=p("$ZodNullable",(e,n)=>{U.init(e,n),Q(e._zod,"optin",()=>n.innerType._zod.optin),Q(e._zod,"optout",()=>n.innerType._zod.optout),Q(e._zod,"pattern",()=>{const t=n.innerType._zod.pattern;return t?new RegExp(`^(${ji(t.source)}|null)$`):void 0}),Q(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,null]):void 0),e._zod.parse=(t,u)=>t.value===null?t:n.innerType._zod.run(t,u)}),kd=p("$ZodDefault",(e,n)=>{U.init(e,n),e._zod.optin="optional",Q(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(t,u)=>{if(t.value===void 0)return t.value=n.defaultValue,t;const i=n.innerType._zod.run(t,u);return i instanceof Promise?i.then(r=>Dd(r,n)):Dd(i,n)}});function Dd(e,n){return e.value===void 0&&(e.value=n.defaultValue),e}var Sd=p("$ZodPrefault",(e,n)=>{U.init(e,n),e._zod.optin="optional",Q(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(t,u)=>(t.value===void 0&&(t.value=n.defaultValue),n.innerType._zod.run(t,u))}),Bd=p("$ZodNonOptional",(e,n)=>{U.init(e,n),Q(e._zod,"values",()=>{const t=n.innerType._zod.values;return t?new Set([...t].filter(u=>u!==void 0)):void 0}),e._zod.parse=(t,u)=>{const i=n.innerType._zod.run(t,u);return i instanceof Promise?i.then(r=>Ad(r,e)):Ad(i,e)}});function Ad(e,n){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:n}),e}var wd=p("$ZodSuccess",(e,n)=>{U.init(e,n),e._zod.parse=(t,u)=>{const i=n.innerType._zod.run(t,u);return i instanceof Promise?i.then(r=>(t.value=r.issues.length===0,t)):(t.value=i.issues.length===0,t)}}),_d=p("$ZodCatch",(e,n)=>{U.init(e,n),e._zod.optin="optional",Q(e._zod,"optout",()=>n.innerType._zod.optout),Q(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(t,u)=>{const i=n.innerType._zod.run(t,u);return i instanceof Promise?i.then(r=>(t.value=r.value,r.issues.length&&(t.value=n.catchValue({...t,error:{issues:r.issues.map(a=>Le(a,u,be()))},input:t.value}),t.issues=[]),t)):(t.value=i.value,i.issues.length&&(t.value=n.catchValue({...t,error:{issues:i.issues.map(r=>Le(r,u,be()))},input:t.value}),t.issues=[]),t)}}),Cd=p("$ZodNaN",(e,n)=>{U.init(e,n),e._zod.parse=(t,u)=>((typeof t.value!="number"||!Number.isNaN(t.value))&&t.issues.push({input:t.value,inst:e,expected:"nan",code:"invalid_type"}),t)}),Da=p("$ZodPipe",(e,n)=>{U.init(e,n),Q(e._zod,"values",()=>n.in._zod.values),Q(e._zod,"optin",()=>n.in._zod.optin),Q(e._zod,"optout",()=>n.out._zod.optout),Q(e._zod,"propValues",()=>n.in._zod.propValues),e._zod.parse=(t,u)=>{const i=n.in._zod.run(t,u);return i instanceof Promise?i.then(r=>$d(r,n,u)):$d(i,n,u)}});function $d(e,n,t){return Kn(e)?e:n.out._zod.run({value:e.value,issues:e.issues},t)}var xd=p("$ZodReadonly",(e,n)=>{U.init(e,n),Q(e._zod,"propValues",()=>n.innerType._zod.propValues),Q(e._zod,"values",()=>n.innerType._zod.values),Q(e._zod,"optin",()=>n.innerType._zod.optin),Q(e._zod,"optout",()=>n.innerType._zod.optout),e._zod.parse=(t,u)=>{const i=n.innerType._zod.run(t,u);return i instanceof Promise?i.then(Id):Id(i)}});function Id(e){return e.value=Object.freeze(e.value),e}var Fd=p("$ZodTemplateLiteral",(e,n)=>{U.init(e,n);const t=[];for(const u of n.parts)if(u instanceof U){if(!u._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...u._zod.traits].shift()}`);const i=u._zod.pattern instanceof RegExp?u._zod.pattern.source:u._zod.pattern;if(!i)throw new Error(`Invalid template literal part: ${u._zod.traits}`);const r=i.startsWith("^")?1:0,a=i.endsWith("$")?i.length-1:i.length;t.push(i.slice(r,a))}else if(u===null||m0.has(typeof u))t.push(xn(`${u}`));else throw new Error(`Invalid template literal part: ${u}`);e._zod.pattern=new RegExp(`^${t.join("")}$`),e._zod.parse=(u,i)=>typeof u.value!="string"?(u.issues.push({input:u.value,inst:e,expected:"template_literal",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:n.format??"template_literal",pattern:e._zod.pattern.source}),u)}),Nd=p("$ZodPromise",(e,n)=>{U.init(e,n),e._zod.parse=(t,u)=>Promise.resolve(t.value).then(i=>n.innerType._zod.run({value:i,issues:[]},u))}),Td=p("$ZodLazy",(e,n)=>{U.init(e,n),Q(e._zod,"innerType",()=>n.getter()),Q(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),Q(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),Q(e._zod,"optin",()=>e._zod.innerType._zod.optin),Q(e._zod,"optout",()=>e._zod.innerType._zod.optout),e._zod.parse=(t,u)=>e._zod.innerType._zod.run(t,u)}),Od=p("$ZodCustom",(e,n)=>{ie.init(e,n),U.init(e,n),e._zod.parse=(t,u)=>t,e._zod.check=t=>{const u=t.value,i=n.fn(u);if(i instanceof Promise)return i.then(r=>zd(r,t,u,e));zd(i,t,u,e)}});function zd(e,n,t,u){if(!e){const i={code:"custom",input:t,inst:u,path:[...u._zod.def.path??[]],continue:!u._zod.def.abort};u._zod.def.params&&(i.params=u._zod.def.params),n.issues.push(g0(i))}}var Sa={};Bn(Sa,{ar:()=>Vg,az:()=>Mg,be:()=>Jg,ca:()=>Hg,cs:()=>Wg,de:()=>Xg,en:()=>Pd,eo:()=>u6,es:()=>a6,fa:()=>s6,fi:()=>l6,fr:()=>f6,frCA:()=>v6,he:()=>h6,hu:()=>E6,id:()=>b6,it:()=>D6,ja:()=>B6,kh:()=>w6,ko:()=>C6,mk:()=>x6,ms:()=>F6,nl:()=>T6,no:()=>z6,ota:()=>P6,pl:()=>Z6,ps:()=>j6,pt:()=>q6,ru:()=>G6,sl:()=>Q6,sv:()=>K6,ta:()=>Y6,th:()=>e3,tr:()=>i3,ua:()=>r3,ur:()=>o3,vi:()=>c3,zhCN:()=>d3,zhTW:()=>m3});var Zg=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`\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.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${t(i.input)}`;case"invalid_value":return i.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 ${L(i.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: ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.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 ${i.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${r} ${i.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 ${i.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${r} ${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${i.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${r} ${i.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${i.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${r} ${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.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 "${i.prefix}"`:r.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 "${r.suffix}"`:r.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 "${r.includes}"`:r.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 ${r.pattern}`:`${u[r.format]??i.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 ${i.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${i.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${i.keys.length>1?"\u0629":""}: ${w(i.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${i.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 ${i.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function Vg(){return{localeError:Zg()}}var qg=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${i.expected}, daxil olan ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${L(i.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${i.origin??"d\u0259y\u0259r"} ${r}${i.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${i.origin??"d\u0259y\u0259r"} ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${i.origin} ${r}${i.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${i.origin} ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${r.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:r.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${r.suffix}" il\u0259 bitm\u0259lidir`:r.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${r.includes}" daxil olmal\u0131d\u0131r`:r.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${r.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${u[r.format]??i.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${i.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${i.keys.length>1?"lar":""}: ${w(i.keys,", ")}`;case"invalid_key":return`${i.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${i.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function Mg(){return{localeError:qg()}}function Ud(e,n,t,u){const i=Math.abs(e),r=i%10,a=i%100;return a>=11&&a<=19?u:r===1?n:r>=2&&r<=4?t:u}var Gg=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"\u043B\u0456\u043A";case"object":{if(Array.isArray(i))return"\u043C\u0430\u0441\u0456\u045E";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${i.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${t(i.input)}`;case"invalid_value":return i.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 ${L(i.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 ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);if(a){const o=Number(i.maximum),s=Ud(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 ${i.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${r}${i.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 ${i.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);if(a){const o=Number(i.minimum),s=Ud(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 ${i.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${r}${i.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 ${i.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.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 "${r.prefix}"`:r.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 "${r.suffix}"`:r.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 "${r.includes}"`:r.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 ${r.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${u[r.format]??i.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 ${i.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${i.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${w(i.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${i.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 ${i.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function Jg(){return{localeError:Gg()}}var Qg=()=>{const e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`Tipus inv\xE0lid: s'esperava ${i.expected}, s'ha rebut ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Valor inv\xE0lid: s'esperava ${L(i.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${w(i.values," o ")}`;case"too_big":{const r=i.inclusive?"com a m\xE0xim":"menys de",a=n(i.origin);return a?`Massa gran: s'esperava que ${i.origin??"el valor"} contingu\xE9s ${r} ${i.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${i.origin??"el valor"} fos ${r} ${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?"com a m\xEDnim":"m\xE9s de",a=n(i.origin);return a?`Massa petit: s'esperava que ${i.origin} contingu\xE9s ${r} ${i.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${i.origin} fos ${r} ${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${r.prefix}"`:r.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${r.suffix}"`:r.format==="includes"?`Format inv\xE0lid: ha d'incloure "${r.includes}"`:r.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${r.pattern}`:`Format inv\xE0lid per a ${u[r.format]??i.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${i.divisor}`;case"unrecognized_keys":return`Clau${i.keys.length>1?"s":""} no reconeguda${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${i.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${i.origin}`;default:return"Entrada inv\xE0lida"}}};function Hg(){return{localeError:Qg()}}var Kg=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"\u010D\xEDslo";case"string":return"\u0159et\u011Bzec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":{if(Array.isArray(i))return"pole";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${i.expected}, obdr\u017Eeno ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${L(i.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${i.origin??"hodnota"} mus\xED m\xEDt ${r}${i.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${i.origin??"hodnota"} mus\xED b\xFDt ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${i.origin??"hodnota"} mus\xED m\xEDt ${r}${i.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${i.origin??"hodnota"} mus\xED b\xFDt ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${r.prefix}"`:r.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${r.suffix}"`:r.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${r.includes}"`:r.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${r.pattern}`:`Neplatn\xFD form\xE1t ${u[r.format]??i.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${i.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${w(i.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${i.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${i.origin}`;default:return"Neplatn\xFD vstup"}}};function Wg(){return{localeError:Kg()}}var Yg=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"Zahl";case"object":{if(Array.isArray(i))return"Array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`Ung\xFCltige Eingabe: erwartet ${i.expected}, erhalten ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Ung\xFCltige Eingabe: erwartet ${L(i.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`Zu gro\xDF: erwartet, dass ${i.origin??"Wert"} ${r}${i.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${i.origin??"Wert"} ${r}${i.maximum.toString()} ist`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`Zu klein: erwartet, dass ${i.origin} ${r}${i.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${i.origin} ${r}${i.minimum.toString()} ist`}case"invalid_format":{const r=i;return r.format==="starts_with"?`Ung\xFCltiger String: muss mit "${r.prefix}" beginnen`:r.format==="ends_with"?`Ung\xFCltiger String: muss mit "${r.suffix}" enden`:r.format==="includes"?`Ung\xFCltiger String: muss "${r.includes}" enthalten`:r.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${r.pattern} entsprechen`:`Ung\xFCltig: ${u[r.format]??i.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${i.divisor} sein`;case"unrecognized_keys":return`${i.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${w(i.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${i.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${i.origin}`;default:return"Ung\xFCltige Eingabe"}}};function Xg(){return{localeError:Yg()}}var e6=e=>{const n=typeof e;switch(n){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return n},n6=()=>{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"}};function n(u){return e[u]??null}const t={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"};return u=>{switch(u.code){case"invalid_type":return`Invalid input: expected ${u.expected}, received ${e6(u.input)}`;case"invalid_value":return u.values.length===1?`Invalid input: expected ${L(u.values[0])}`:`Invalid option: expected one of ${w(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",r=n(u.origin);return r?`Too big: expected ${u.origin??"value"} to have ${i}${u.maximum.toString()} ${r.unit??"elements"}`:`Too big: expected ${u.origin??"value"} to be ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",r=n(u.origin);return r?`Too small: expected ${u.origin} to have ${i}${u.minimum.toString()} ${r.unit}`:`Too small: expected ${u.origin} to be ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;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 ${t[i.format]??u.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${u.divisor}`;case"unrecognized_keys":return`Unrecognized key${u.keys.length>1?"s":""}: ${w(u.keys,", ")}`;case"invalid_key":return`Invalid key in ${u.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${u.origin}`;default:return"Invalid input"}}};function Pd(){return{localeError:n6()}}var t6=e=>{const n=typeof e;switch(n){case"number":return Number.isNaN(e)?"NaN":"nombro";case"object":{if(Array.isArray(e))return"tabelo";if(e===null)return"senvalora";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return n},i6=()=>{const e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function n(u){return e[u]??null}const t={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"};return u=>{switch(u.code){case"invalid_type":return`Nevalida enigo: atendi\u011Dis ${u.expected}, ricevi\u011Dis ${t6(u.input)}`;case"invalid_value":return u.values.length===1?`Nevalida enigo: atendi\u011Dis ${L(u.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${w(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",r=n(u.origin);return r?`Tro granda: atendi\u011Dis ke ${u.origin??"valoro"} havu ${i}${u.maximum.toString()} ${r.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${u.origin??"valoro"} havu ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",r=n(u.origin);return r?`Tro malgranda: atendi\u011Dis ke ${u.origin} havu ${i}${u.minimum.toString()} ${r.unit}`:`Tro malgranda: atendi\u011Dis ke ${u.origin} estu ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;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 ${t[i.format]??u.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${u.divisor}`;case"unrecognized_keys":return`Nekonata${u.keys.length>1?"j":""} \u015Dlosilo${u.keys.length>1?"j":""}: ${w(u.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${u.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${u.origin}`;default:return"Nevalida enigo"}}};function u6(){return{localeError:i6()}}var r6=()=>{const e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"n\xFAmero";case"object":{if(Array.isArray(i))return"arreglo";if(i===null)return"nulo";if(Object.getPrototypeOf(i)!==Object.prototype)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`Entrada inv\xE1lida: se esperaba ${i.expected}, recibido ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Entrada inv\xE1lida: se esperaba ${L(i.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`Demasiado grande: se esperaba que ${i.origin??"valor"} tuviera ${r}${i.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${i.origin??"valor"} fuera ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`Demasiado peque\xF1o: se esperaba que ${i.origin} tuviera ${r}${i.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${i.origin} fuera ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${r.prefix}"`:r.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${r.suffix}"`:r.format==="includes"?`Cadena inv\xE1lida: debe incluir "${r.includes}"`:r.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${r.pattern}`:`Inv\xE1lido ${u[r.format]??i.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${i.divisor}`;case"unrecognized_keys":return`Llave${i.keys.length>1?"s":""} desconocida${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${i.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${i.origin}`;default:return"Entrada inv\xE1lida"}}};function a6(){return{localeError:r6()}}var o6=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"\u0639\u062F\u062F";case"object":{if(Array.isArray(i))return"\u0622\u0631\u0627\u06CC\u0647";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${i.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${t(i.input)} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`;case"invalid_value":return i.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${L(i.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 ${w(i.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${i.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${r}${i.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${i.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${r}${i.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${i.origin} \u0628\u0627\u06CC\u062F ${r}${i.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${i.origin} \u0628\u0627\u06CC\u062F ${r}${i.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{const r=i;return r.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${r.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:r.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${r.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:r.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${r.includes}" \u0628\u0627\u0634\u062F`:r.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${r.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${u[r.format]??i.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 ${i.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${i.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${w(i.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${i.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 ${i.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function s6(){return{localeError:o6()}}var c6=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${i.expected}, oli ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${L(i.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${r}${i.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${r}${i.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${r.prefix}"`:r.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${r.suffix}"`:r.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${r.includes}"`:r.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${r.pattern}`:`Virheellinen ${u[r.format]??i.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${i.divisor} monikerta`;case"unrecognized_keys":return`${i.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${w(i.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 l6(){return{localeError:c6()}}var d6=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"nombre";case"object":{if(Array.isArray(i))return"tableau";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`Entr\xE9e invalide : ${i.expected} attendu, ${t(i.input)} re\xE7u`;case"invalid_value":return i.values.length===1?`Entr\xE9e invalide : ${L(i.values[0])} attendu`:`Option invalide : une valeur parmi ${w(i.values,"|")} attendue`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`Trop grand : ${i.origin??"valeur"} doit ${a.verb} ${r}${i.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${i.origin??"valeur"} doit \xEAtre ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`Trop petit : ${i.origin} doit ${a.verb} ${r}${i.minimum.toString()} ${a.unit}`:`Trop petit : ${i.origin} doit \xEAtre ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${r.prefix}"`:r.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${r.suffix}"`:r.format==="includes"?`Cha\xEEne invalide : doit inclure "${r.includes}"`:r.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${r.pattern}`:`${u[r.format]??i.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${i.divisor}`;case"unrecognized_keys":return`Cl\xE9${i.keys.length>1?"s":""} non reconnue${i.keys.length>1?"s":""} : ${w(i.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${i.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${i.origin}`;default:return"Entr\xE9e invalide"}}};function f6(){return{localeError:d6()}}var m6=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`Entr\xE9e invalide : attendu ${i.expected}, re\xE7u ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Entr\xE9e invalide : attendu ${L(i.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"\u2264":"<",a=n(i.origin);return a?`Trop grand : attendu que ${i.origin??"la valeur"} ait ${r}${i.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${i.origin??"la valeur"} soit ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?"\u2265":">",a=n(i.origin);return a?`Trop petit : attendu que ${i.origin} ait ${r}${i.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${i.origin} soit ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${r.prefix}"`:r.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${r.suffix}"`:r.format==="includes"?`Cha\xEEne invalide : doit inclure "${r.includes}"`:r.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${r.pattern}`:`${u[r.format]??i.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${i.divisor}`;case"unrecognized_keys":return`Cl\xE9${i.keys.length>1?"s":""} non reconnue${i.keys.length>1?"s":""} : ${w(i.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${i.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${i.origin}`;default:return"Entr\xE9e invalide"}}};function v6(){return{localeError:m6()}}var p6=()=>{const e={string:{unit:"\u05D0\u05D5\u05EA\u05D9\u05D5\u05EA",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"}};function n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={regex:"\u05E7\u05DC\u05D8",email:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",url:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",emoji:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",date:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",time:"\u05D6\u05DE\u05DF ISO",duration:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",ipv4:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",ipv6:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",cidrv4:"\u05D8\u05D5\u05D5\u05D7 IPv4",cidrv6:"\u05D8\u05D5\u05D5\u05D7 IPv6",base64:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",base64url:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",json_string:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",e164:"\u05DE\u05E1\u05E4\u05E8 E.164",jwt:"JWT",template_literal:"\u05E7\u05DC\u05D8"};return i=>{switch(i.code){case"invalid_type":return`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${i.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${t(i.input)}`;case"invalid_value":return i.values.length===1?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${L(i.values[0])}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05D0\u05D7\u05EA \u05DE\u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${i.origin??"value"} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${r}${i.maximum.toString()} ${a.unit??"elements"}`:`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${i.origin??"value"} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${i.origin} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${r}${i.minimum.toString()} ${a.unit}`:`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${i.origin} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1"${r.prefix}"`:r.format==="ends_with"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${r.suffix}"`:r.format==="includes"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${r.includes}"`:r.format==="regex"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${r.pattern}`:`${u[r.format]??i.format} \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF`}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 ${i.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${i.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${i.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${w(i.keys,", ")}`;case"invalid_key":return`\u05DE\u05E4\u05EA\u05D7 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${i.origin}`;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${i.origin}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function h6(){return{localeError:p6()}}var g6=()=>{const e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"sz\xE1m";case"object":{if(Array.isArray(i))return"t\xF6mb";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${i.expected}, a kapott \xE9rt\xE9k ${t(i.input)}`;case"invalid_value":return i.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${L(i.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`T\xFAl nagy: ${i.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${r}${i.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${i.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${i.origin} m\xE9rete t\xFAl kicsi ${r}${i.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${i.origin} t\xFAl kicsi ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`\xC9rv\xE9nytelen string: "${r.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:r.format==="ends_with"?`\xC9rv\xE9nytelen string: "${r.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:r.format==="includes"?`\xC9rv\xE9nytelen string: "${r.includes}" \xE9rt\xE9ket kell tartalmaznia`:r.format==="regex"?`\xC9rv\xE9nytelen string: ${r.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${u[r.format]??i.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${i.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${i.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${i.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function E6(){return{localeError:g6()}}var y6=()=>{const e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`Input tidak valid: diharapkan ${i.expected}, diterima ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Input tidak valid: diharapkan ${L(i.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`Terlalu besar: diharapkan ${i.origin??"value"} memiliki ${r}${i.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${i.origin??"value"} menjadi ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`Terlalu kecil: diharapkan ${i.origin} memiliki ${r}${i.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${i.origin} menjadi ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`String tidak valid: harus dimulai dengan "${r.prefix}"`:r.format==="ends_with"?`String tidak valid: harus berakhir dengan "${r.suffix}"`:r.format==="includes"?`String tidak valid: harus menyertakan "${r.includes}"`:r.format==="regex"?`String tidak valid: harus sesuai pola ${r.pattern}`:`${u[r.format]??i.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${i.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${i.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${i.origin}`;default:return"Input tidak valid"}}};function b6(){return{localeError:y6()}}var k6=()=>{const e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"numero";case"object":{if(Array.isArray(i))return"vettore";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`Input non valido: atteso ${i.expected}, ricevuto ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Input non valido: atteso ${L(i.values[0])}`:`Opzione non valida: atteso uno tra ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`Troppo grande: ${i.origin??"valore"} deve avere ${r}${i.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${i.origin??"valore"} deve essere ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`Troppo piccolo: ${i.origin} deve avere ${r}${i.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${i.origin} deve essere ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`Stringa non valida: deve iniziare con "${r.prefix}"`:r.format==="ends_with"?`Stringa non valida: deve terminare con "${r.suffix}"`:r.format==="includes"?`Stringa non valida: deve includere "${r.includes}"`:r.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${r.pattern}`:`Invalid ${u[r.format]??i.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${i.divisor}`;case"unrecognized_keys":return`Chiav${i.keys.length>1?"i":"e"} non riconosciut${i.keys.length>1?"e":"a"}: ${w(i.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${i.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${i.origin}`;default:return"Input non valido"}}};function D6(){return{localeError:k6()}}var S6=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"\u6570\u5024";case"object":{if(Array.isArray(i))return"\u914D\u5217";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`\u7121\u52B9\u306A\u5165\u529B: ${i.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${t(i.input)}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`;case"invalid_value":return i.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${L(i.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${w(i.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{const r=i.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=n(i.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${i.origin??"\u5024"}\u306F${i.maximum.toString()}${a.unit??"\u8981\u7D20"}${r}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${i.origin??"\u5024"}\u306F${i.maximum.toString()}${r}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{const r=i.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=n(i.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${i.origin}\u306F${i.minimum.toString()}${a.unit}${r}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${i.origin}\u306F${i.minimum.toString()}${r}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{const r=i;return r.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${r.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:r.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${r.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:r.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${r.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:r.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${r.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${u[r.format]??i.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${i.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${i.keys.length>1?"\u7FA4":""}: ${w(i.keys,"\u3001")}`;case"invalid_key":return`${i.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${i.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function B6(){return{localeError:S6()}}var A6=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"\u1798\u17B7\u1793\u1798\u17C2\u1793\u1787\u17B6\u179B\u17C1\u1781 (NaN)":"\u179B\u17C1\u1781";case"object":{if(Array.isArray(i))return"\u17A2\u17B6\u179A\u17C1 (Array)";if(i===null)return"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`\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.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${t(i.input)}`;case"invalid_value":return i.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 ${L(i.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 ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${r} ${i.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${r} ${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin} ${r} ${i.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin} ${r} ${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.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 "${r.prefix}"`:r.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 "${r.suffix}"`:r.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 "${r.includes}"`:r.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 ${r.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${u[r.format]??i.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 ${i.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${w(i.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 ${i.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 ${i.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 w6(){return{localeError:A6()}}var _6=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${i.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${t(i.input)}\uC785\uB2C8\uB2E4`;case"invalid_value":return i.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${L(i.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${w(i.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{const r=i.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=r==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",o=n(i.origin),s=o?.unit??"\uC694\uC18C";return o?`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${i.maximum.toString()}${s} ${r}${a}`:`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${i.maximum.toString()} ${r}${a}`}case"too_small":{const r=i.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=r==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",o=n(i.origin),s=o?.unit??"\uC694\uC18C";return o?`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${i.minimum.toString()}${s} ${r}${a}`:`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${i.minimum.toString()} ${r}${a}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${r.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:r.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${r.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:r.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${r.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:r.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${r.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${u[r.format]??i.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${i.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${w(i.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${i.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${i.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function C6(){return{localeError:_6()}}var $6=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"\u0431\u0440\u043E\u0458";case"object":{if(Array.isArray(i))return"\u043D\u0438\u0437\u0430";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Invalid input: expected ${L(i.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 ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.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 ${i.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${r}${i.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 ${i.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i.origin} \u0434\u0430 \u0438\u043C\u0430 ${r}${i.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.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 "${r.prefix}"`:r.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 "${r.suffix}"`:r.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 "${r.includes}"`:r.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 ${r.pattern}`:`Invalid ${u[r.format]??i.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 ${i.divisor}`;case"unrecognized_keys":return`${i.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"}: ${w(i.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${i.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 ${i.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function x6(){return{localeError:$6()}}var I6=()=>{const e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"nombor";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`Input tidak sah: dijangka ${i.expected}, diterima ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Input tidak sah: dijangka ${L(i.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`Terlalu besar: dijangka ${i.origin??"nilai"} ${a.verb} ${r}${i.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${i.origin??"nilai"} adalah ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`Terlalu kecil: dijangka ${i.origin} ${a.verb} ${r}${i.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${i.origin} adalah ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`String tidak sah: mesti bermula dengan "${r.prefix}"`:r.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${r.suffix}"`:r.format==="includes"?`String tidak sah: mesti mengandungi "${r.includes}"`:r.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${r.pattern}`:`${u[r.format]??i.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${i.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${w(i.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${i.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${i.origin}`;default:return"Input tidak sah"}}};function F6(){return{localeError:I6()}}var N6=()=>{const e={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}};function n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"getal";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`Ongeldige invoer: verwacht ${i.expected}, ontving ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Ongeldige invoer: verwacht ${L(i.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`Te lang: verwacht dat ${i.origin??"waarde"} ${r}${i.maximum.toString()} ${a.unit??"elementen"} bevat`:`Te lang: verwacht dat ${i.origin??"waarde"} ${r}${i.maximum.toString()} is`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`Te kort: verwacht dat ${i.origin} ${r}${i.minimum.toString()} ${a.unit} bevat`:`Te kort: verwacht dat ${i.origin} ${r}${i.minimum.toString()} is`}case"invalid_format":{const r=i;return r.format==="starts_with"?`Ongeldige tekst: moet met "${r.prefix}" beginnen`:r.format==="ends_with"?`Ongeldige tekst: moet op "${r.suffix}" eindigen`:r.format==="includes"?`Ongeldige tekst: moet "${r.includes}" bevatten`:r.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${r.pattern}`:`Ongeldig: ${u[r.format]??i.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${i.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${i.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${i.origin}`;default:return"Ongeldige invoer"}}};function T6(){return{localeError:N6()}}var O6=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"tall";case"object":{if(Array.isArray(i))return"liste";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`Ugyldig input: forventet ${i.expected}, fikk ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Ugyldig verdi: forventet ${L(i.values[0])}`:`Ugyldig valg: forventet en av ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`For stor(t): forventet ${i.origin??"value"} til \xE5 ha ${r}${i.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${i.origin??"value"} til \xE5 ha ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`For lite(n): forventet ${i.origin} til \xE5 ha ${r}${i.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${i.origin} til \xE5 ha ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${r.prefix}"`:r.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${r.suffix}"`:r.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${r.includes}"`:r.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${r.pattern}`:`Ugyldig ${u[r.format]??i.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${w(i.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${i.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${i.origin}`;default:return"Ugyldig input"}}};function z6(){return{localeError:O6()}}var U6=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"numara";case"object":{if(Array.isArray(i))return"saf";if(i===null)return"gayb";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`F\xE2sit giren: umulan ${i.expected}, al\u0131nan ${t(i.input)}`;case"invalid_value":return i.values.length===1?`F\xE2sit giren: umulan ${L(i.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`Fazla b\xFCy\xFCk: ${i.origin??"value"}, ${r}${i.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${i.origin??"value"}, ${r}${i.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`Fazla k\xFC\xE7\xFCk: ${i.origin}, ${r}${i.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${i.origin}, ${r}${i.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{const r=i;return r.format==="starts_with"?`F\xE2sit metin: "${r.prefix}" ile ba\u015Flamal\u0131.`:r.format==="ends_with"?`F\xE2sit metin: "${r.suffix}" ile bitmeli.`:r.format==="includes"?`F\xE2sit metin: "${r.includes}" ihtiv\xE2 etmeli.`:r.format==="regex"?`F\xE2sit metin: ${r.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${u[r.format]??i.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${i.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`${i.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${i.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function P6(){return{localeError:U6()}}var R6=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"\u0639\u062F\u062F";case"object":{if(Array.isArray(i))return"\u0627\u0631\u06D0";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${i.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${t(i.input)} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`;case"invalid_value":return i.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${L(i.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${w(i.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${i.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${r}${i.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${i.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${r}${i.maximum.toString()} \u0648\u064A`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${i.origin} \u0628\u0627\u06CC\u062F ${r}${i.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${i.origin} \u0628\u0627\u06CC\u062F ${r}${i.minimum.toString()} \u0648\u064A`}case"invalid_format":{const r=i;return r.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${r.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:r.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${r.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:r.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${r.includes}" \u0648\u0644\u0631\u064A`:r.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${r.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${u[r.format]??i.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${i.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${i.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${w(i.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${i.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 ${i.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function j6(){return{localeError:R6()}}var L6=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"liczba";case"object":{if(Array.isArray(i))return"tablica";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${i.expected}, otrzymano ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${L(i.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${r}${i.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${r}${i.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${r.prefix}"`:r.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${r.suffix}"`:r.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${r.includes}"`:r.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${r.pattern}`:`Nieprawid\u0142ow(y/a/e) ${u[r.format]??i.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${i.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${i.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${i.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function Z6(){return{localeError:L6()}}var V6=()=>{const e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"n\xFAmero";case"object":{if(Array.isArray(i))return"array";if(i===null)return"nulo";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`Tipo inv\xE1lido: esperado ${i.expected}, recebido ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Entrada inv\xE1lida: esperado ${L(i.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`Muito grande: esperado que ${i.origin??"valor"} tivesse ${r}${i.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${i.origin??"valor"} fosse ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`Muito pequeno: esperado que ${i.origin} tivesse ${r}${i.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${i.origin} fosse ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${r.prefix}"`:r.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${r.suffix}"`:r.format==="includes"?`Texto inv\xE1lido: deve incluir "${r.includes}"`:r.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${r.pattern}`:`${u[r.format]??i.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${i.divisor}`;case"unrecognized_keys":return`Chave${i.keys.length>1?"s":""} desconhecida${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${i.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${i.origin}`;default:return"Campo inv\xE1lido"}}};function q6(){return{localeError:V6()}}function Rd(e,n,t,u){const i=Math.abs(e),r=i%10,a=i%100;return a>=11&&a<=19?u:r===1?n:r>=2&&r<=4?t:u}var M6=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(i))return"\u043C\u0430\u0441\u0441\u0438\u0432";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${i.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${t(i.input)}`;case"invalid_value":return i.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${L(i.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 ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);if(a){const o=Number(i.maximum),s=Rd(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 ${i.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${r}${i.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 ${i.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);if(a){const o=Number(i.minimum),s=Rd(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 ${i.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${r}${i.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 ${i.origin} \u0431\u0443\u0434\u0435\u0442 ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.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 "${r.prefix}"`:r.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 "${r.suffix}"`:r.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 "${r.includes}"`:r.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 ${r.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${u[r.format]??i.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 ${i.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${i.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${i.keys.length>1?"\u0438":""}: ${w(i.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${i.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 ${i.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 G6(){return{localeError:M6()}}var J6=()=>{const e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"\u0161tevilo";case"object":{if(Array.isArray(i))return"tabela";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`Neveljaven vnos: pri\u010Dakovano ${i.expected}, prejeto ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${L(i.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${i.origin??"vrednost"} imelo ${r}${i.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${i.origin??"vrednost"} ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${i.origin} imelo ${r}${i.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${i.origin} ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${r.prefix}"`:r.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${r.suffix}"`:r.format==="includes"?`Neveljaven niz: mora vsebovati "${r.includes}"`:r.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${r.pattern}`:`Neveljaven ${u[r.format]??i.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${i.divisor}`;case"unrecognized_keys":return`Neprepoznan${i.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${w(i.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${i.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${i.origin}`;default:return"Neveljaven vnos"}}};function Q6(){return{localeError:J6()}}var H6=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"antal";case"object":{if(Array.isArray(i))return"lista";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`Ogiltig inmatning: f\xF6rv\xE4ntat ${i.expected}, fick ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${L(i.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${i.origin??"v\xE4rdet"} att ha ${r}${i.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${i.origin??"v\xE4rdet"} att ha ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${i.origin??"v\xE4rdet"} att ha ${r}${i.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${i.origin??"v\xE4rdet"} att ha ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${r.prefix}"`:r.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${r.suffix}"`:r.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${r.includes}"`:r.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${r.pattern}"`:`Ogiltig(t) ${u[r.format]??i.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${w(i.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${i.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${i.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function K6(){return{localeError:H6()}}var W6=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"\u0B8E\u0BA3\u0BCD \u0B85\u0BB2\u0BCD\u0BB2\u0BBE\u0BA4\u0BA4\u0BC1":"\u0B8E\u0BA3\u0BCD";case"object":{if(Array.isArray(i))return"\u0B85\u0BA3\u0BBF";if(i===null)return"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`\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.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t(i.input)}`;case"invalid_value":return i.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 ${L(i.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 ${w(i.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.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 ${i.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${r}${i.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 ${i.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${r}${i.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.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 ${i.origin} ${r}${i.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 ${i.origin} ${r}${i.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{const r=i;return r.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${r.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:r.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${r.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:r.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${r.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:r.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${r.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 ${u[r.format]??i.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${i.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${i.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${w(i.keys,", ")}`;case"invalid_key":return`${i.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`${i.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 Y6(){return{localeError:W6()}}var X6=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02 (NaN)":"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02";case"object":{if(Array.isArray(i))return"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)";if(i===null)return"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`\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.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${t(i.input)}`;case"invalid_value":return i.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${L(i.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 ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=n(i.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${i.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${r} ${i.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${i.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${r} ${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=n(i.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${i.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${r} ${i.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${i.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${r} ${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.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 "${r.prefix}"`:r.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 "${r.suffix}"`:r.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 "${r.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:r.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 ${r.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${u[r.format]??i.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 ${i.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: ${w(i.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${i.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 ${i.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function e3(){return{localeError:X6()}}var n3=e=>{const n=typeof e;switch(n){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return n},t3=()=>{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 n(u){return e[u]??null}const t={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"};return u=>{switch(u.code){case"invalid_type":return`Ge\xE7ersiz de\u011Fer: beklenen ${u.expected}, al\u0131nan ${n3(u.input)}`;case"invalid_value":return u.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${L(u.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${w(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",r=n(u.origin);return r?`\xC7ok b\xFCy\xFCk: beklenen ${u.origin??"de\u011Fer"} ${i}${u.maximum.toString()} ${r.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${u.origin??"de\u011Fer"} ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",r=n(u.origin);return r?`\xC7ok k\xFC\xE7\xFCk: beklenen ${u.origin} ${i}${u.minimum.toString()} ${r.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${u.origin} ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;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 ${t[i.format]??u.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${u.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${u.keys.length>1?"lar":""}: ${w(u.keys,", ")}`;case"invalid_key":return`${u.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${u.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function i3(){return{localeError:t3()}}var u3=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(i))return"\u043C\u0430\u0441\u0438\u0432";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`\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.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${t(i.input)}`;case"invalid_value":return i.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 ${L(i.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 ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.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 ${i.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${r}${i.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 ${i.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.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 ${i.origin} ${a.verb} ${r}${i.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 ${i.origin} \u0431\u0443\u0434\u0435 ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.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 "${r.prefix}"`:r.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 "${r.suffix}"`:r.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 "${r.includes}"`:r.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 ${r.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${u[r.format]??i.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 ${i.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${i.keys.length>1?"\u0456":""}: ${w(i.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${i.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 ${i.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 r3(){return{localeError:u3()}}var a3=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"\u0646\u0645\u0628\u0631";case"object":{if(Array.isArray(i))return"\u0622\u0631\u06D2";if(i===null)return"\u0646\u0644";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${i.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${t(i.input)} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`;case"invalid_value":return i.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${L(i.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${w(i.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${i.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${r}${i.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: ${i.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${r}${i.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${i.origin} \u06A9\u06D2 ${r}${i.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${i.origin} \u06A9\u0627 ${r}${i.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{const r=i;return r.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${r.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:r.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${r.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:r.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${r.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:r.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${r.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${u[r.format]??i.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${i.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${i.keys.length>1?"\u0632":""}: ${w(i.keys,"\u060C ")}`;case"invalid_key":return`${i.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${i.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function o3(){return{localeError:a3()}}var s3=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"s\u1ED1";case"object":{if(Array.isArray(i))return"m\u1EA3ng";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${i.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${t(i.input)}`;case"invalid_value":return i.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${L(i.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${i.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${r}${i.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${i.origin??"gi\xE1 tr\u1ECB"} ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${i.origin} ${a.verb} ${r}${i.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${i.origin} ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${r.prefix}"`:r.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${r.suffix}"`:r.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${r.includes}"`:r.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${r.pattern}`:`${u[r.format]??i.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 ${i.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${w(i.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${i.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 ${i.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function c3(){return{localeError:s3()}}var l3=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"\u975E\u6570\u5B57(NaN)":"\u6570\u5B57";case"object":{if(Array.isArray(i))return"\u6570\u7EC4";if(i===null)return"\u7A7A\u503C(null)";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${i.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${t(i.input)}`;case"invalid_value":return i.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${L(i.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${i.origin??"\u503C"} ${r}${i.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${i.origin??"\u503C"} ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${i.origin} ${r}${i.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${i.origin} ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${r.prefix}" \u5F00\u5934`:r.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${r.suffix}" \u7ED3\u5C3E`:r.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${r.includes}"`:r.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${r.pattern}`:`\u65E0\u6548${u[r.format]??i.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${i.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${w(i.keys,", ")}`;case"invalid_key":return`${i.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${i.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function d3(){return{localeError:l3()}}var f3=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${i.expected}\uFF0C\u4F46\u6536\u5230 ${t(i.input)}`;case"invalid_value":return i.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${L(i.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${i.origin??"\u503C"} \u61C9\u70BA ${r}${i.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${i.origin??"\u503C"} \u61C9\u70BA ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${i.origin} \u61C9\u70BA ${r}${i.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${i.origin} \u61C9\u70BA ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${r.prefix}" \u958B\u982D`:r.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${r.suffix}" \u7D50\u5C3E`:r.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${r.includes}"`:r.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${r.pattern}`:`\u7121\u6548\u7684 ${u[r.format]??i.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${i.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${i.keys.length>1?"\u5011":""}\uFF1A${w(i.keys,"\u3001")}`;case"invalid_key":return`${i.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${i.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function m3(){return{localeError:f3()}}var jd=Symbol("ZodOutput"),Ld=Symbol("ZodInput"),Ba=class{constructor(){this._map=new Map,this._idmap=new Map}add(e,...n){const t=n[0];if(this._map.set(e,t),t&&typeof t=="object"&&"id"in t){if(this._idmap.has(t.id))throw new Error(`ID ${t.id} already exists in the registry`);this._idmap.set(t.id,e)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(e){const n=this._map.get(e);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(e),this}get(e){const n=e._zod.parent;if(n){const t={...this.get(n)??{}};return delete t.id,{...t,...this._map.get(e)}}return this._map.get(e)}has(e){return this._map.has(e)}};function Aa(){return new Ba}var In=Aa();function Zd(e,n){return new e({type:"string",...S(n)})}function Vd(e,n){return new e({type:"string",coerce:!0,...S(n)})}function wa(e,n){return new e({type:"string",format:"email",check:"string_format",abort:!1,...S(n)})}function Qi(e,n){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...S(n)})}function _a(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...S(n)})}function Ca(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...S(n)})}function $a(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...S(n)})}function xa(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...S(n)})}function Ia(e,n){return new e({type:"string",format:"url",check:"string_format",abort:!1,...S(n)})}function Fa(e,n){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...S(n)})}function Na(e,n){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...S(n)})}function Ta(e,n){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...S(n)})}function Oa(e,n){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...S(n)})}function za(e,n){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...S(n)})}function Ua(e,n){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...S(n)})}function Pa(e,n){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...S(n)})}function Ra(e,n){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...S(n)})}function ja(e,n){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...S(n)})}function La(e,n){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...S(n)})}function Za(e,n){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...S(n)})}function Va(e,n){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...S(n)})}function qa(e,n){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...S(n)})}function Ma(e,n){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...S(n)})}function Ga(e,n){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...S(n)})}var qd={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Md(e,n){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...S(n)})}function Gd(e,n){return new e({type:"string",format:"date",check:"string_format",...S(n)})}function Jd(e,n){return new e({type:"string",format:"time",check:"string_format",precision:null,...S(n)})}function Qd(e,n){return new e({type:"string",format:"duration",check:"string_format",...S(n)})}function Hd(e,n){return new e({type:"number",checks:[],...S(n)})}function Kd(e,n){return new e({type:"number",coerce:!0,checks:[],...S(n)})}function Wd(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...S(n)})}function Yd(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...S(n)})}function Xd(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...S(n)})}function ef(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...S(n)})}function nf(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...S(n)})}function tf(e,n){return new e({type:"boolean",...S(n)})}function uf(e,n){return new e({type:"boolean",coerce:!0,...S(n)})}function rf(e,n){return new e({type:"bigint",...S(n)})}function af(e,n){return new e({type:"bigint",coerce:!0,...S(n)})}function of(e,n){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...S(n)})}function sf(e,n){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...S(n)})}function cf(e,n){return new e({type:"symbol",...S(n)})}function lf(e,n){return new e({type:"undefined",...S(n)})}function df(e,n){return new e({type:"null",...S(n)})}function ff(e){return new e({type:"any"})}function Hi(e){return new e({type:"unknown"})}function mf(e,n){return new e({type:"never",...S(n)})}function vf(e,n){return new e({type:"void",...S(n)})}function pf(e,n){return new e({type:"date",...S(n)})}function hf(e,n){return new e({type:"date",coerce:!0,...S(n)})}function gf(e,n){return new e({type:"nan",...S(n)})}function Fn(e,n){return new fa({check:"less_than",...S(n),value:e,inclusive:!1})}function Ze(e,n){return new fa({check:"less_than",...S(n),value:e,inclusive:!0})}function Nn(e,n){return new ma({check:"greater_than",...S(n),value:e,inclusive:!1})}function Ce(e,n){return new ma({check:"greater_than",...S(n),value:e,inclusive:!0})}function Ef(e){return Nn(0,e)}function yf(e){return Fn(0,e)}function bf(e){return Ze(0,e)}function kf(e){return Ce(0,e)}function Yt(e,n){return new tl({check:"multiple_of",...S(n),value:e})}function Ki(e,n){return new rl({check:"max_size",...S(n),maximum:e})}function Xt(e,n){return new al({check:"min_size",...S(n),minimum:e})}function Ja(e,n){return new ol({check:"size_equals",...S(n),size:e})}function Wi(e,n){return new sl({check:"max_length",...S(n),maximum:e})}function Yn(e,n){return new cl({check:"min_length",...S(n),minimum:e})}function Yi(e,n){return new ll({check:"length_equals",...S(n),length:e})}function Qa(e,n){return new dl({check:"string_format",format:"regex",...S(n),pattern:e})}function Ha(e){return new fl({check:"string_format",format:"lowercase",...S(e)})}function Ka(e){return new ml({check:"string_format",format:"uppercase",...S(e)})}function Wa(e,n){return new vl({check:"string_format",format:"includes",...S(n),includes:e})}function Ya(e,n){return new pl({check:"string_format",format:"starts_with",...S(n),prefix:e})}function Xa(e,n){return new hl({check:"string_format",format:"ends_with",...S(n),suffix:e})}function Df(e,n,t){return new El({check:"property",property:e,schema:n,...S(t)})}function eo(e,n){return new yl({check:"mime_type",mime:e,...S(n)})}function Tn(e){return new bl({check:"overwrite",tx:e})}function no(e){return Tn(n=>n.normalize(e))}function to(){return Tn(e=>e.trim())}function io(){return Tn(e=>e.toLowerCase())}function uo(){return Tn(e=>e.toUpperCase())}function ro(e,n,t){return new e({type:"array",element:n,...S(t)})}function v3(e,n,t){return new e({type:"union",options:n,...S(t)})}function p3(e,n,t,u){return new e({type:"union",options:t,discriminator:n,...S(u)})}function h3(e,n,t){return new e({type:"intersection",left:n,right:t})}function Sf(e,n,t,u){const i=t instanceof U,r=i?u:t,a=i?t:null;return new e({type:"tuple",items:n,rest:a,...S(r)})}function g3(e,n,t,u){return new e({type:"record",keyType:n,valueType:t,...S(u)})}function E3(e,n,t,u){return new e({type:"map",keyType:n,valueType:t,...S(u)})}function y3(e,n,t){return new e({type:"set",valueType:n,...S(t)})}function b3(e,n,t){const u=Array.isArray(n)?Object.fromEntries(n.map(i=>[i,i])):n;return new e({type:"enum",entries:u,...S(t)})}function k3(e,n,t){return new e({type:"enum",entries:n,...S(t)})}function D3(e,n,t){return new e({type:"literal",values:Array.isArray(n)?n:[n],...S(t)})}function Bf(e,n){return new e({type:"file",...S(n)})}function S3(e,n){return new e({type:"transform",transform:n})}function B3(e,n){return new e({type:"optional",innerType:n})}function A3(e,n){return new e({type:"nullable",innerType:n})}function w3(e,n,t){return new e({type:"default",innerType:n,get defaultValue(){return typeof t=="function"?t():t}})}function _3(e,n,t){return new e({type:"nonoptional",innerType:n,...S(t)})}function C3(e,n){return new e({type:"success",innerType:n})}function $3(e,n,t){return new e({type:"catch",innerType:n,catchValue:typeof t=="function"?t:()=>t})}function x3(e,n,t){return new e({type:"pipe",in:n,out:t})}function I3(e,n){return new e({type:"readonly",innerType:n})}function F3(e,n,t){return new e({type:"template_literal",parts:n,...S(t)})}function N3(e,n){return new e({type:"lazy",getter:n})}function T3(e,n){return new e({type:"promise",innerType:n})}function Af(e,n,t){const u=S(t);return u.abort??(u.abort=!0),new e({type:"custom",check:"custom",fn:n,...u})}function wf(e,n,t){return new e({type:"custom",check:"custom",fn:n,...S(t)})}function _f(e,n){const t=S(n);let u=t.truthy??["true","1","yes","on","y","enabled"],i=t.falsy??["false","0","no","off","n","disabled"];t.case!=="sensitive"&&(u=u.map(v=>typeof v=="string"?v.toLowerCase():v),i=i.map(v=>typeof v=="string"?v.toLowerCase():v));const r=new Set(u),a=new Set(i),o=e.Pipe??Da,s=e.Boolean??ha,c=e.String??Wt,l=e.Transform??ka,f=new l({type:"transform",transform:(v,h)=>{let E=v;return t.case!=="sensitive"&&(E=E.toLowerCase()),r.has(E)?!0:a.has(E)?!1:(h.issues.push({code:"invalid_value",expected:"stringbool",values:[...r,...a],input:h.value,inst:f}),{})},error:t.error}),m=new o({type:"pipe",in:new c({type:"string",error:t.error}),out:f,error:t.error});return new o({type:"pipe",in:m,out:new s({type:"boolean",error:t.error}),error:t.error})}function Cf(e,n,t,u={}){const i=S(u),r={...S(u),check:"string_format",type:"string",format:n,fn:typeof t=="function"?t:o=>t.test(o),...i};return t instanceof RegExp&&(r.pattern=t),new e(r)}var $f=class{constructor(e){this._def=e,this.def=e}implement(e){if(typeof e!="function")throw new Error("implement() must be called with a function");const n=(...t)=>{const u=this._def.input?ra(this._def.input,t,void 0,{callee:n}):t;if(!Array.isArray(u))throw new Error("Invalid arguments schema: not an array or tuple schema.");const i=e(...u);return this._def.output?ra(this._def.output,i,void 0,{callee:n}):i};return n}implementAsync(e){if(typeof e!="function")throw new Error("implement() must be called with a function");const n=async(...t)=>{const u=this._def.input?await oa(this._def.input,t,void 0,{callee:n}):t;if(!Array.isArray(u))throw new Error("Invalid arguments schema: not an array or tuple schema.");const i=await e(...u);return this._def.output?oa(this._def.output,i,void 0,{callee:n}):i};return n}input(...e){const n=this.constructor;return Array.isArray(e[0])?new n({type:"function",input:new Gi({type:"tuple",items:e[0],rest:e[1]}),output:this._def.output}):new n({type:"function",input:e[0],output:this._def.output})}output(e){const n=this.constructor;return new n({type:"function",input:this._def.input,output:e})}};function xf(e){return new $f({type:"function",input:Array.isArray(e?.input)?Sf(Gi,e?.input):e?.input??ro(Ea,Hi(qi)),output:e?.output??Hi(qi)})}var ao=class{constructor(e){this.counter=0,this.metadataRegistry=e?.metadata??In,this.target=e?.target??"draft-2020-12",this.unrepresentable=e?.unrepresentable??"throw",this.override=e?.override??(()=>{}),this.io=e?.io??"output",this.seen=new Map}process(e,n={path:[],schemaPath:[]}){var t;const u=e._zod.def,i={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},r=this.seen.get(e);if(r)return r.count++,n.schemaPath.includes(e)&&(r.cycle=n.path),r.schema;const a={schema:{},count:1,cycle:void 0,path:n.path};this.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},f=e._zod.parent;if(f)a.ref=f,this.process(f,l),this.seen.get(f).isParent=!0;else{const m=a.schema;switch(u.type){case"string":{const d=m;d.type="string";const{minimum:v,maximum:h,format:E,patterns:b,contentEncoding:y}=e._zod.bag;if(typeof v=="number"&&(d.minLength=v),typeof h=="number"&&(d.maxLength=h),E&&(d.format=i[E]??E,d.format===""&&delete d.format),y&&(d.contentEncoding=y),b&&b.size>0){const k=[...b];k.length===1?d.pattern=k[0].source:k.length>1&&(a.schema.allOf=[...k.map(_=>({...this.target==="draft-7"?{type:"string"}:{},pattern:_.source}))])}break}case"number":{const d=m,{minimum:v,maximum:h,format:E,multipleOf:b,exclusiveMaximum:y,exclusiveMinimum:k}=e._zod.bag;typeof E=="string"&&E.includes("int")?d.type="integer":d.type="number",typeof k=="number"&&(d.exclusiveMinimum=k),typeof v=="number"&&(d.minimum=v,typeof k=="number"&&(k>=v?delete d.minimum:delete d.exclusiveMinimum)),typeof y=="number"&&(d.exclusiveMaximum=y),typeof h=="number"&&(d.maximum=h,typeof y=="number"&&(y<=h?delete d.maximum:delete d.exclusiveMaximum)),typeof b=="number"&&(d.multipleOf=b);break}case"boolean":{const d=m;d.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break}case"null":{m.type="null";break}case"any":break;case"unknown":break;case"undefined":{if(this.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema");break}case"void":{if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break}case"never":{m.not={};break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{const d=m,{minimum:v,maximum:h}=e._zod.bag;typeof v=="number"&&(d.minItems=v),typeof h=="number"&&(d.maxItems=h),d.type="array",d.items=this.process(u.element,{...l,path:[...l.path,"items"]});break}case"object":{const d=m;d.type="object",d.properties={};const v=u.shape;for(const b in v)d.properties[b]=this.process(v[b],{...l,path:[...l.path,"properties",b]});const h=new Set(Object.keys(v)),E=new Set([...h].filter(b=>{const y=u.shape[b]._zod;return this.io==="input"?y.optin===void 0:y.optout===void 0}));E.size>0&&(d.required=Array.from(E)),u.catchall?._zod.def.type==="never"?d.additionalProperties=!1:u.catchall?u.catchall&&(d.additionalProperties=this.process(u.catchall,{...l,path:[...l.path,"additionalProperties"]})):this.io==="output"&&(d.additionalProperties=!1);break}case"union":{const d=m;d.anyOf=u.options.map((v,h)=>this.process(v,{...l,path:[...l.path,"anyOf",h]}));break}case"intersection":{const d=m,v=this.process(u.left,{...l,path:[...l.path,"allOf",0]}),h=this.process(u.right,{...l,path:[...l.path,"allOf",1]}),E=y=>"allOf"in y&&Object.keys(y).length===1,b=[...E(v)?v.allOf:[v],...E(h)?h.allOf:[h]];d.allOf=b;break}case"tuple":{const d=m;d.type="array";const v=u.items.map((b,y)=>this.process(b,{...l,path:[...l.path,"prefixItems",y]}));if(this.target==="draft-2020-12"?d.prefixItems=v:d.items=v,u.rest){const b=this.process(u.rest,{...l,path:[...l.path,"items"]});this.target==="draft-2020-12"?d.items=b:d.additionalItems=b}u.rest&&(d.items=this.process(u.rest,{...l,path:[...l.path,"items"]}));const{minimum:h,maximum:E}=e._zod.bag;typeof h=="number"&&(d.minItems=h),typeof E=="number"&&(d.maxItems=E);break}case"record":{const d=m;d.type="object",d.propertyNames=this.process(u.keyType,{...l,path:[...l.path,"propertyNames"]}),d.additionalProperties=this.process(u.valueType,{...l,path:[...l.path,"additionalProperties"]});break}case"map":{if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break}case"enum":{const d=m,v=Yr(u.entries);v.every(h=>typeof h=="number")&&(d.type="number"),v.every(h=>typeof h=="string")&&(d.type="string"),d.enum=v;break}case"literal":{const d=m,v=[];for(const h of u.values)if(h===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof h=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");v.push(Number(h))}else v.push(h);if(v.length!==0)if(v.length===1){const h=v[0];d.type=h===null?"null":typeof h,d.const=h}else v.every(h=>typeof h=="number")&&(d.type="number"),v.every(h=>typeof h=="string")&&(d.type="string"),v.every(h=>typeof h=="boolean")&&(d.type="string"),v.every(h=>h===null)&&(d.type="null"),d.enum=v;break}case"file":{const d=m,v={type:"string",format:"binary",contentEncoding:"binary"},{minimum:h,maximum:E,mime:b}=e._zod.bag;h!==void 0&&(v.minLength=h),E!==void 0&&(v.maxLength=E),b?b.length===1?(v.contentMediaType=b[0],Object.assign(d,v)):d.anyOf=b.map(y=>({...v,contentMediaType:y})):Object.assign(d,v);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{const d=this.process(u.innerType,l);m.anyOf=[d,{type:"null"}];break}case"nonoptional":{this.process(u.innerType,l),a.ref=u.innerType;break}case"success":{const d=m;d.type="boolean";break}case"default":{this.process(u.innerType,l),a.ref=u.innerType,m.default=JSON.parse(JSON.stringify(u.defaultValue));break}case"prefault":{this.process(u.innerType,l),a.ref=u.innerType,this.io==="input"&&(m._prefault=JSON.parse(JSON.stringify(u.defaultValue)));break}case"catch":{this.process(u.innerType,l),a.ref=u.innerType;let d;try{d=u.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}m.default=d;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{const d=m,v=e._zod.pattern;if(!v)throw new Error("Pattern not found in template literal");d.type="string",d.pattern=v.source;break}case"pipe":{const d=this.io==="input"?u.in._zod.def.type==="transform"?u.out:u.in:u.out;this.process(d,l),a.ref=d;break}case"readonly":{this.process(u.innerType,l),a.ref=u.innerType,m.readOnly=!0;break}case"promise":{this.process(u.innerType,l),a.ref=u.innerType;break}case"optional":{this.process(u.innerType,l),a.ref=u.innerType;break}case"lazy":{const d=e._zod.innerType;this.process(d,l),a.ref=d;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}}}}const s=this.metadataRegistry.get(e);return s&&Object.assign(a.schema,s),this.io==="input"&&re(e)&&(delete a.schema.examples,delete a.schema.default),this.io==="input"&&a.schema._prefault&&((t=a.schema).default??(t.default=a.schema._prefault)),delete a.schema._prefault,this.seen.get(e).schema}emit(e,n){const t={cycles:n?.cycles??"ref",reused:n?.reused??"inline",external:n?.external??void 0},u=this.seen.get(e);if(!u)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=c=>{const l=this.target==="draft-2020-12"?"$defs":"definitions";if(t.external){const v=t.external.registry.get(c[0])?.id,h=t.external.uri??(b=>b);if(v)return{ref:h(v)};const E=c[1].defId??c[1].schema.id??`schema${this.counter++}`;return c[1].defId=E,{defId:E,ref:`${h("__shared")}#/${l}/${E}`}}if(c[1]===u)return{ref:"#"};const m=`#/${l}/`,d=c[1].schema.id??`__schema${this.counter++}`;return{defId:d,ref:m+d}},r=c=>{if(c[1].schema.$ref)return;const l=c[1],{ref:f,defId:m}=i(c);l.def={...l.schema},m&&(l.defId=m);const d=l.schema;for(const v in d)delete d[v];d.$ref=f};if(t.cycles==="throw")for(const c of this.seen.entries()){const l=c[1];if(l.cycle)throw new Error(`Cycle detected: #/${l.cycle?.join("/")}/<root>
|
|
42
|
+
In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:function(){return{name:{type:new j(te),resolve:function(t){return t.name}},description:{type:te,resolve:function(t){return t.description}},isRepeatable:{type:new j(xe),resolve:function(t){return t.isRepeatable}},locations:{type:new j(new se(new j(Sc))),resolve:function(t){return t.locations}},args:{type:new j(new se(new j(xi))),args:{includeDeprecated:{type:xe,defaultValue:!1}},resolve:function(t,u){var i=u.includeDeprecated;return i?t.args:t.args.filter(function(r){return r.deprecationReason==null})}}}}}),Sc=new wi({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:K.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:K.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:K.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:K.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:K.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:K.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:K.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:K.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:K.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:K.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:K.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:K.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:K.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:K.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:K.UNION,description:"Location adjacent to a union definition."},ENUM:{value:K.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:K.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:K.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:K.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),Pe=new on({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByUrl`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:function(){return{kind:{type:new j(wc),resolve:function(t){if(Ot(t))return de.SCALAR;if(Ze(t))return de.OBJECT;if($e(t))return de.INTERFACE;if(rn(t))return de.UNION;if(an(t))return de.ENUM;if(An(t))return de.INPUT_OBJECT;if(zt(t))return de.LIST;if(Ln(t))return de.NON_NULL;Nt(0,'Unexpected type: "'.concat(J(t),'".'))}},name:{type:te,resolve:function(t){return t.name!==void 0?t.name:void 0}},description:{type:te,resolve:function(t){return t.description!==void 0?t.description:void 0}},specifiedByUrl:{type:te,resolve:function(t){return t.specifiedByUrl!==void 0?t.specifiedByUrl:void 0}},fields:{type:new se(new j(Bc)),args:{includeDeprecated:{type:xe,defaultValue:!1}},resolve:function(t,u){var i=u.includeDeprecated;if(Ze(t)||$e(t)){var r=Bn(t.getFields());return i?r:r.filter(function(a){return a.deprecationReason==null})}}},interfaces:{type:new se(new j(Pe)),resolve:function(t){if(Ze(t)||$e(t))return t.getInterfaces()}},possibleTypes:{type:new se(new j(Pe)),resolve:function(t,u,i,r){var a=r.schema;if(Mp(t))return a.getPossibleTypes(t)}},enumValues:{type:new se(new j(Ac)),args:{includeDeprecated:{type:xe,defaultValue:!1}},resolve:function(t,u){var i=u.includeDeprecated;if(an(t)){var r=t.getValues();return i?r:r.filter(function(a){return a.deprecationReason==null})}}},inputFields:{type:new se(new j(xi)),args:{includeDeprecated:{type:xe,defaultValue:!1}},resolve:function(t,u){var i=u.includeDeprecated;if(An(t)){var r=Bn(t.getFields());return i?r:r.filter(function(a){return a.deprecationReason==null})}}},ofType:{type:Pe,resolve:function(t){return t.ofType!==void 0?t.ofType:void 0}}}}}),Bc=new on({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:function(){return{name:{type:new j(te),resolve:function(t){return t.name}},description:{type:te,resolve:function(t){return t.description}},args:{type:new j(new se(new j(xi))),args:{includeDeprecated:{type:xe,defaultValue:!1}},resolve:function(t,u){var i=u.includeDeprecated;return i?t.args:t.args.filter(function(r){return r.deprecationReason==null})}},type:{type:new j(Pe),resolve:function(t){return t.type}},isDeprecated:{type:new j(xe),resolve:function(t){return t.deprecationReason!=null}},deprecationReason:{type:te,resolve:function(t){return t.deprecationReason}}}}}),xi=new on({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:function(){return{name:{type:new j(te),resolve:function(t){return t.name}},description:{type:te,resolve:function(t){return t.description}},type:{type:new j(Pe),resolve:function(t){return t.type}},defaultValue:{type:te,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(t){var u=t.type,i=t.defaultValue,r=jt(i,u);return r?He(r):null}},isDeprecated:{type:new j(xe),resolve:function(t){return t.deprecationReason!=null}},deprecationReason:{type:te,resolve:function(t){return t.deprecationReason}}}}}),Ac=new on({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:function(){return{name:{type:new j(te),resolve:function(t){return t.name}},description:{type:te,resolve:function(t){return t.description}},isDeprecated:{type:new j(xe),resolve:function(t){return t.deprecationReason!=null}},deprecationReason:{type:te,resolve:function(t){return t.deprecationReason}}}}}),de=Object.freeze({SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"}),wc=new wi({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:de.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:de.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:de.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:de.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:de.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:de.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:de.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:de.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),_c={name:"__schema",type:new j(Pr),description:"Access the current type schema of this server.",args:[],resolve:function(n,t,u,i){var r=i.schema;return r},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},Cc={name:"__type",type:Pe,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new j(te),defaultValue:void 0,deprecationReason:void 0,extensions:void 0,astNode:void 0}],resolve:function(n,t,u,i){var r=t.name,a=i.schema;return a.getType(r)},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},$c={name:"__typename",type:new j(te),description:"The name of the current Object type at runtime.",args:[],resolve:function(n,t,u,i){var r=i.parentType;return r.name},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},xc=Object.freeze([Pr,Dc,Sc,Pe,Bc,xi,Ac,wc]);function ph(e,n){for(var t=0;t<n.length;t++){var u=n[t];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,u.key,u)}}function hh(e,n,t){return n&&ph(e.prototype,n),e}function gh(e){return Je(e,Mn)}var Mn=function(){function e(t){var u,i;this.name=t.name,this.description=t.description,this.locations=t.locations,this.isRepeatable=(u=t.isRepeatable)!==null&&u!==void 0?u:!1,this.extensions=t.extensions&&we(t.extensions),this.astNode=t.astNode,t.name||q(0,"Directive must be named."),Array.isArray(t.locations)||q(0,"@".concat(t.name," locations must be an Array."));var r=(i=t.args)!==null&&i!==void 0?i:{};Sn(r)&&!Array.isArray(r)||q(0,"@".concat(t.name," args must be an object with argument names as keys.")),this.args=Tt(r).map(function(a){var o=a[0],s=a[1];return{name:o,description:s.description,type:s.type,defaultValue:s.defaultValue,deprecationReason:s.deprecationReason,extensions:s.extensions&&we(s.extensions),astNode:s.astNode}})}var n=e.prototype;return n.toConfig=function(){return{name:this.name,description:this.description,locations:this.locations,args:pc(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}},n.toString=function(){return"@"+this.name},n.toJSON=function(){return this.toString()},hh(e,[{key:Ce,get:function(){return"GraphQLDirective"}}]),e}();Oe(Mn);var Eh=new Mn({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[K.FIELD,K.FRAGMENT_SPREAD,K.INLINE_FRAGMENT],args:{if:{type:new j(xe),description:"Included when true."}}}),yh=new Mn({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[K.FIELD,K.FRAGMENT_SPREAD,K.INLINE_FRAGMENT],args:{if:{type:new j(xe),description:"Skipped when true."}}}),bh="No longer supported",kh=new Mn({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[K.FIELD_DEFINITION,K.ARGUMENT_DEFINITION,K.INPUT_FIELD_DEFINITION,K.ENUM_VALUE],args:{reason:{type:te,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:bh}}}),Dh=new Mn({name:"specifiedBy",description:"Exposes a URL that specifies the behaviour of this scalar.",locations:[K.SCALAR],args:{url:{type:new j(te),description:"The URL that specifies the behaviour of this scalar."}}}),Sh=Object.freeze([Eh,yh,kh,Dh]);function Bh(e,n){for(var t=0;t<n.length;t++){var u=n[t];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,u.key,u)}}function Ah(e,n,t){return n&&Bh(e.prototype,n),e}(function(){function e(t){var u;this.__validationErrors=t.assumeValid===!0?[]:void 0,Sn(t)||q(0,"Must provide configuration object."),!t.types||Array.isArray(t.types)||q(0,'"types" must be Array if provided but got: '.concat(J(t.types),".")),!t.directives||Array.isArray(t.directives)||q(0,'"directives" must be Array if provided but got: '+"".concat(J(t.directives),".")),this.description=t.description,this.extensions=t.extensions&&we(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=t.extensionASTNodes,this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=(u=t.directives)!==null&&u!==void 0?u:Sh;var i=new Set(t.types);if(t.types!=null)for(var r=0,a=t.types;r<a.length;r++){var o=a[r];i.delete(o),Re(o,i)}this._queryType!=null&&Re(this._queryType,i),this._mutationType!=null&&Re(this._mutationType,i),this._subscriptionType!=null&&Re(this._subscriptionType,i);for(var s=0,c=this._directives;s<c.length;s++){var l=c[s];if(gh(l))for(var f=0,m=l.args;f<m.length;f++){var d=m[f];Re(d.type,i)}}Re(Pr,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(var v=0,h=Xp(i);v<h.length;v++){var E=h[v];if(E!=null){var b=E.name;if(b||q(0,"One of the provided types for building the Schema is missing a name."),this._typeMap[b]!==void 0)throw new Error('Schema must contain uniquely named types but contains multiple types named "'.concat(b,'".'));if(this._typeMap[b]=E,$e(E))for(var y=0,k=E.getInterfaces();y<k.length;y++){var _=k[y];if($e(_)){var B=this._implementationsMap[_.name];B===void 0&&(B=this._implementationsMap[_.name]={objects:[],interfaces:[]}),B.interfaces.push(E)}}else if(Ze(E))for(var G=0,V=E.getInterfaces();G<V.length;G++){var F=V[G];if($e(F)){var g=this._implementationsMap[F.name];g===void 0&&(g=this._implementationsMap[F.name]={objects:[],interfaces:[]}),g.objects.push(E)}}}}}var n=e.prototype;return n.getQueryType=function(){return this._queryType},n.getMutationType=function(){return this._mutationType},n.getSubscriptionType=function(){return this._subscriptionType},n.getTypeMap=function(){return this._typeMap},n.getType=function(u){return this.getTypeMap()[u]},n.getPossibleTypes=function(u){return rn(u)?u.getTypes():this.getImplementations(u).objects},n.getImplementations=function(u){var i=this._implementationsMap[u.name];return i??{objects:[],interfaces:[]}},n.isPossibleType=function(u,i){return this.isSubType(u,i)},n.isSubType=function(u,i){var r=this._subTypeMap[u.name];if(r===void 0){if(r=Object.create(null),rn(u))for(var a=0,o=u.getTypes();a<o.length;a++){var s=o[a];r[s.name]=!0}else{for(var c=this.getImplementations(u),l=0,f=c.objects;l<f.length;l++){var m=f[l];r[m.name]=!0}for(var d=0,v=c.interfaces;d<v.length;d++){var h=v[d];r[h.name]=!0}}this._subTypeMap[u.name]=r}return r[i.name]!==void 0},n.getDirectives=function(){return this._directives},n.getDirective=function(u){return ac(this.getDirectives(),function(i){return i.name===u})},n.toConfig=function(){var u;return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Bn(this.getTypeMap()),directives:this.getDirectives().slice(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(u=this.extensionASTNodes)!==null&&u!==void 0?u:[],assumeValid:this.__validationErrors!==void 0}},Ah(e,[{key:Ce,get:function(){return"GraphQLSchema"}}]),e})();function Re(e,n){var t=Ut(e);if(!n.has(t)){if(n.add(t),rn(t))for(var u=0,i=t.getTypes();u<i.length;u++){var r=i[u];Re(r,n)}else if(Ze(t)||$e(t)){for(var a=0,o=t.getInterfaces();a<o.length;a++){var s=o[a];Re(s,n)}for(var c=0,l=Bn(t.getFields());c<l.length;c++){var f=l[c];Re(f.type,n);for(var m=0,d=f.args;m<d.length;m++){var v=d[m];Re(v.type,n)}}}else if(An(t))for(var h=0,E=Bn(t.getFields());h<E.length;h++){var b=E[h];Re(b.type,n)}}return n}function Ii(e,n){var t;if(n.kind===C.LIST_TYPE)return t=Ii(e,n.type),t&&new se(t);if(n.kind===C.NON_NULL_TYPE)return t=Ii(e,n.type),t&&new j(t);if(n.kind===C.NAMED_TYPE)return e.getType(n.name.value);Nt(0,"Unexpected type node: "+J(n))}var wh=function(){function e(t,u,i){this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=u??_h,i&&(Zn(i)&&this._inputTypeStack.push(i),Tr(i)&&this._parentTypeStack.push(i),Bi(i)&&this._typeStack.push(i))}var n=e.prototype;return n.getType=function(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]},n.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},n.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},n.getParentInputType=function(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]},n.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},n.getDefaultValue=function(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]},n.getDirective=function(){return this._directive},n.getArgument=function(){return this._argument},n.getEnumValue=function(){return this._enumValue},n.enter=function(u){var i=this._schema;switch(u.kind){case C.SELECTION_SET:{var r=Ut(this.getType());this._parentTypeStack.push(Tr(r)?r:void 0);break}case C.FIELD:{var a=this.getParentType(),o,s;a&&(o=this._getFieldDef(i,a,u),o&&(s=o.type)),this._fieldDefStack.push(o),this._typeStack.push(Bi(s)?s:void 0);break}case C.DIRECTIVE:this._directive=i.getDirective(u.name.value);break;case C.OPERATION_DEFINITION:{var c;switch(u.operation){case"query":c=i.getQueryType();break;case"mutation":c=i.getMutationType();break;case"subscription":c=i.getSubscriptionType();break}this._typeStack.push(Ze(c)?c:void 0);break}case C.INLINE_FRAGMENT:case C.FRAGMENT_DEFINITION:{var l=u.typeCondition,f=l?Ii(i,l):Ut(this.getType());this._typeStack.push(Bi(f)?f:void 0);break}case C.VARIABLE_DEFINITION:{var m=Ii(i,u.type);this._inputTypeStack.push(Zn(m)?m:void 0);break}case C.ARGUMENT:{var d,v,h,E=(d=this.getDirective())!==null&&d!==void 0?d:this.getFieldDef();E&&(v=ac(E.args,function(F){return F.name===u.name.value}),v&&(h=v.type)),this._argument=v,this._defaultValueStack.push(v?v.defaultValue:void 0),this._inputTypeStack.push(Zn(h)?h:void 0);break}case C.LIST:{var b=Hp(this.getInputType()),y=zt(b)?b.ofType:b;this._defaultValueStack.push(void 0),this._inputTypeStack.push(Zn(y)?y:void 0);break}case C.OBJECT_FIELD:{var k=Ut(this.getInputType()),_,B;An(k)&&(B=k.getFields()[u.name.value],B&&(_=B.type)),this._defaultValueStack.push(B?B.defaultValue:void 0),this._inputTypeStack.push(Zn(_)?_:void 0);break}case C.ENUM:{var G=Ut(this.getInputType()),V;an(G)&&(V=G.getValue(u.value)),this._enumValue=V;break}}},n.leave=function(u){switch(u.kind){case C.SELECTION_SET:this._parentTypeStack.pop();break;case C.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case C.DIRECTIVE:this._directive=null;break;case C.OPERATION_DEFINITION:case C.INLINE_FRAGMENT:case C.FRAGMENT_DEFINITION:this._typeStack.pop();break;case C.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case C.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case C.LIST:case C.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case C.ENUM:this._enumValue=null;break}},e}();function _h(e,n,t){var u=t.name.value;if(u===_c.name&&e.getQueryType()===n)return _c;if(u===Cc.name&&e.getQueryType()===n)return Cc;if(u===$c.name&&Tr(n))return $c;if(Ze(n)||$e(n))return n.getFields()[u]}function Ch(e,n){return{enter:function(u){e.enter(u);var i=xr(n,u.kind,!1);if(i){var r=i.apply(n,arguments);return r!==void 0&&(e.leave(u),$r(r)&&e.enter(r)),r}},leave:function(u){var i=xr(n,u.kind,!0),r;return i&&(r=i.apply(n,arguments)),e.leave(u),r}}}[].concat(bc,xc).map(function(e){return e.name});var sn;function Gn(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}sn={},Gn(sn,C.SCALAR_TYPE_DEFINITION,C.SCALAR_TYPE_EXTENSION),Gn(sn,C.OBJECT_TYPE_DEFINITION,C.OBJECT_TYPE_EXTENSION),Gn(sn,C.INTERFACE_TYPE_DEFINITION,C.INTERFACE_TYPE_EXTENSION),Gn(sn,C.UNION_TYPE_DEFINITION,C.UNION_TYPE_EXTENSION),Gn(sn,C.ENUM_TYPE_DEFINITION,C.ENUM_TYPE_EXTENSION),Gn(sn,C.INPUT_OBJECT_TYPE_DEFINITION,C.INPUT_OBJECT_TYPE_EXTENSION);function Ic(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n}var Fc=function(){function e(t,u){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=u}var n=e.prototype;return n.reportError=function(u){this._onError(u)},n.getDocument=function(){return this._ast},n.getFragment=function(u){var i=this._fragments;return i||(this._fragments=i=this.getDocument().definitions.reduce(function(r,a){return a.kind===C.FRAGMENT_DEFINITION&&(r[a.name.value]=a),r},Object.create(null))),i[u]},n.getFragmentSpreads=function(u){var i=this._fragmentSpreads.get(u);if(!i){i=[];for(var r=[u];r.length!==0;)for(var a=r.pop(),o=0,s=a.selections;o<s.length;o++){var c=s[o];c.kind===C.FRAGMENT_SPREAD?i.push(c):c.selectionSet&&r.push(c.selectionSet)}this._fragmentSpreads.set(u,i)}return i},n.getRecursivelyReferencedFragments=function(u){var i=this._recursivelyReferencedFragments.get(u);if(!i){i=[];for(var r=Object.create(null),a=[u.selectionSet];a.length!==0;)for(var o=a.pop(),s=0,c=this.getFragmentSpreads(o);s<c.length;s++){var l=c[s],f=l.name.value;if(r[f]!==!0){r[f]=!0;var m=this.getFragment(f);m&&(i.push(m),a.push(m.selectionSet))}}this._recursivelyReferencedFragments.set(u,i)}return i},e}();(function(e){Ic(n,e);function n(u,i,r){var a;return a=e.call(this,u,r)||this,a._schema=i,a}var t=n.prototype;return t.getSchema=function(){return this._schema},n})(Fc),function(e){Ic(n,e);function n(u,i,r,a){var o;return o=e.call(this,i,a)||this,o._schema=u,o._typeInfo=r,o._variableUsages=new Map,o._recursiveVariableUsages=new Map,o}var t=n.prototype;return t.getSchema=function(){return this._schema},t.getVariableUsages=function(i){var r=this._variableUsages.get(i);if(!r){var a=[],o=new wh(this._schema);rc(i,Ch(o,{VariableDefinition:function(){return!1},Variable:function(c){a.push({node:c,type:o.getInputType(),defaultValue:o.getDefaultValue()})}})),r=a,this._variableUsages.set(i,r)}return r},t.getRecursiveVariableUsages=function(i){var r=this._recursiveVariableUsages.get(i);if(!r){r=this.getVariableUsages(i);for(var a=0,o=this.getRecursivelyReferencedFragments(i);a<o.length;a++){var s=o[a];r=r.concat(this.getVariableUsages(s))}this._recursiveVariableUsages.set(i,r)}return r},t.getType=function(){return this._typeInfo.getType()},t.getParentType=function(){return this._typeInfo.getParentType()},t.getInputType=function(){return this._typeInfo.getInputType()},t.getParentInputType=function(){return this._typeInfo.getParentInputType()},t.getFieldDef=function(){return this._typeInfo.getFieldDef()},t.getDirective=function(){return this._typeInfo.getDirective()},t.getArgument=function(){return this._typeInfo.getArgument()},t.getEnumValue=function(){return this._typeInfo.getEnumValue()},n}(Fc),oc(bc.concat(xc),function(e){return e.name});const Nc=e=>e instanceof Error?e:typeof e=="string"?new Error(e):new Error(String(e)),$h=()=>typeof globalThis.window<"u"&&typeof globalThis.window.document<"u"&&typeof globalThis.navigator<"u",Rr={staging:{baseEndpoint:"https://api-staging.spritz.finance",graphEndpoint:"https://api-staging.spritz.finance/router/graph",restEndpoint:"https://sandbox.spritz.finance"},production:{baseEndpoint:"https://api.spritz.finance",graphEndpoint:"https://api.spritz.finance/router/graph",restEndpoint:"https://platform.spritz.finance"}},xh=(e,n)=>{if(typeof n!="number"||!Number.isInteger(n))throw new Error(`${e} must be an integer`);if(n<0)throw new Error(`${e} must be a positive integer`);return n};function Ih(e){if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}function jr(e,n){if(!e||typeof e!="object"||!(n in e))return;const t=e[n];if(typeof t=="string"&&t.length>0)return t}class Tc extends Error{timestamp;headers;constructor(n,t){super(n),this.name="SpritzApiError",this.message=n,this.headers=t??{},this.timestamp=new Date().toISOString()}}class Se extends Error{status;error;headers;timestamp;constructor(n,t,u,i){super(Se.makeMessage(t,u)),this.status=n,this.error=t,this.headers=i,this.timestamp=new Date().toISOString()}static makeMessage(n,t){const u=jr(n,"detail");if(u)return u;const i=jr(n,"title");return i||jr(n,"message")||(n!==void 0?Ih(n):t||"Unknown error occurred")}static generate(n,t,u,i){return n?n===400?new zc(n,t,u,i):n===401?new Uc(n,t,u,i):n===403?new Pc(n,t,u,i):n===404?new Rc(n,t,u,i):n===409?new jc(n,t,u,i):n===422?new Lc(n,t,u,i):n===429?new Zc(n,t,u,i):n>=500?new Vc(n,t,u,i):new Se(n,t,u,i):new Fi({cause:Nc(t)})}}class Fh extends Se{status=void 0;constructor({message:n}={}){super(void 0,void 0,n||"Request was aborted.",void 0)}}class Fi extends Se{status=void 0;constructor({message:n,cause:t}){super(void 0,void 0,n||"Connection error.",void 0),t&&(this.cause=t)}}class Oc extends Fi{constructor(){super({message:"Request timed out."})}}class zc extends Se{name="BadRequestError";status=400}class Uc extends Se{name="AuthenticationError";status=401}class Pc extends Se{name="PermissionDeniedError";status=403}class Rc extends Se{name="NotFoundError";status=404}class jc extends Se{name="ConflictError";status=409}class Lc extends Se{name="UnprocessableEntityError";status=422}class Zc extends Se{name="RateLimitError";status=429}class Vc extends Se{name="InternalServerError"}const Nh=e=>{try{return JSON.parse(e)}catch{return}},qc=10,Mc=100;function Th(e){if(!e||!e.definitions)throw new Error("Invalid GraphQL query: missing definitions");const n=e.definitions.filter(r=>r.kind==="OperationDefinition");if(n.length>1)throw new Error("Invalid GraphQL query: multiple operations not allowed");if(n.length===0)throw new Error("Invalid GraphQL query: no operation definition found");const t=n[0],u=Oh(t);if(u>qc)throw new Error(`GraphQL query too deep: ${u} levels (max: ${qc})`);const i=zh(t);if(i>Mc)throw new Error(`GraphQL query too complex: ${i} fields (max: ${Mc})`);if(t.operation!=="query"&&t.operation!=="mutation")throw new Error(`Invalid GraphQL operation type: ${t.operation}`)}function Oh(e){function n(t){let u=0;for(const i of t.selections)if(i.kind==="Field"&&i.selectionSet){const r=1+n(i.selectionSet);u=Math.max(u,r)}else if(i.kind==="InlineFragment"&&i.selectionSet){const r=n(i.selectionSet);u=Math.max(u,r)}else i.kind==="FragmentSpread"&&(u=Math.max(u,1));return u}return n(e.selectionSet)}function zh(e){function n(t){let u=0;for(const i of t.selections)u+=1,i.kind==="Field"&&i.selectionSet||i.kind==="InlineFragment"&&i.selectionSet?u+=n(i.selectionSet):i.kind==="FragmentSpread"&&(u+=5);return u}return n(e.selectionSet)}function Uh(e){if(!e)return;const n=Object.create(null);for(const[t,u]of Object.entries(e)){if(!Ph(t))throw new Error(`Invalid GraphQL variable name: ${t}`);if(t==="__proto__"||t==="constructor"||t==="prototype")throw new Error(`Invalid property name: ${t}`);n[t]=Lr(u)}return n}function Ph(e){return/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(e)}function Gc(e){return Array.from(e).filter(n=>{const t=n.charCodeAt(0);return t>31&&t!==127}).join("")}function Lr(e){if(e==null)return e;if(typeof e=="string")return Gc(e);if(typeof e=="number"||typeof e=="boolean")return e;if(Array.isArray(e))return e.map(Lr);if(typeof e=="object"){const n=Object.create(null);for(const[t,u]of Object.entries(e)){if(t.includes("__proto__")||t.includes("constructor"))throw new Error(`Invalid property name: ${t}`);n[t]=Lr(u)}return n}return Gc(String(e))}const Rh="sha256=";function Jc(e){return Array.from(new Uint8Array(e)).map(n=>n.toString(16).padStart(2,"0")).join("")}async function jh(e){const n=new TextEncoder().encode(e),t=await crypto.subtle.digest("SHA-256",n);return Jc(t)}async function Lh(e,n){const t=new TextEncoder,u=await crypto.subtle.importKey("raw",t.encode(e),{name:"HMAC",hash:"SHA-256"},!1,["sign"]),i=await crypto.subtle.sign("HMAC",u,t.encode(n));return Jc(i)}function Zh(e){const n=e.searchParams;return[...n].length===0?"":[...n.keys()].sort().map(t=>{const u=n.get(t)??"";return`${encodeURIComponent(t)}=${encodeURIComponent(u)}`}).join("&")}function Vh(e){const n=Zh(e);return n===""?e.pathname:`${e.pathname}?${n}`}async function qh(e,n,t){const u=t.body?await jh(t.body):"",i=`${n}.${t.method.toUpperCase()}.${t.path}.${u}`,r=await Lh(e,i);return`${Rh}${r}`}async function Mh(e,n,t,u,i){const r=new URL(u),a=Vh(r),o=Date.now(),s=await qh(n,o,{method:t,path:a,body:i});return{"X-Integrator-Key":e,"X-Signature":s,"X-Timestamp":String(o)}}async function Zr(e){const{response:n}=e;return n.headers.get("content-type")?.includes("application/json")?{response:await n.json(),headers:e.headers}:{response:await n.text(),headers:e.headers}}class Gh{baseGraphURL;baseRestURL;baseRestApiURL;timeout;apiKey;integrationKey;integratorSecret;constructor({environment:n,timeout:t=3e5,apiKey:u,integrationKey:i,integratorSecret:r}){this.apiKey=u,this.integrationKey=i,this.integratorSecret=r,this.baseGraphURL=Rr[n].graphEndpoint,this.baseRestURL=Rr[n].baseEndpoint,this.baseRestApiURL=Rr[n].restEndpoint,this.timeout=xh("timeout",t)}async query({query:n,variables:t}){Th(n);const u=Uh(t);return this.sendQuery({query:n,variables:u}).then(i=>Zr(i)).then(({response:i,headers:r})=>{if(i.data)return i.data;if(i.errors){const a=i.errors[0]??{message:"Unknown error"};throw new Tc(a.message,r)}else throw new Error("Unknown error")})}async request({method:n,path:t,body:u=void 0}){return this.sendRequest({method:n,path:t,body:u}).then(i=>Zr(i)).then(({response:i})=>i)}async restApi({method:n,path:t,body:u=void 0,query:i}){return this.sendRestApiRequest({method:n,path:t,body:u,query:i}).then(r=>Zr(r)).then(({response:r})=>r)}async sendQuery({query:n,variables:t}){const{url:u,req:i,timeout:r}=this.buildGraphRequest({query:n,variables:t});return this.sendHTTPRequest({url:u,req:i,timeout:r})}async sendRequest({method:n,path:t,body:u}){const{url:i,req:r,timeout:a}=this.buildRestRequest(n,t,u);return this.sendHTTPRequest({url:i,req:r,timeout:a})}async sendRestApiRequest({method:n,path:t,body:u,query:i}){const{url:r,req:a,timeout:o}=this.buildRestRequest(n,t,u,this.baseRestApiURL,i);if(this.integrationKey&&this.integratorSecret){const s=await Mh(this.integrationKey,this.integratorSecret,n,r,a.body??null),{"X-INTEGRATION-KEY":c,...l}=a.headers;a.headers={...l,...s}}return this.sendHTTPRequest({url:r,req:a,timeout:o})}async sendHTTPRequest({url:n,req:t,timeout:u}){const i=new AbortController,r=await this.fetchWithTimeout(n,t,u,i).catch(Nc);if(r instanceof Error)throw r.name==="AbortError"?new Oc:new Fi({cause:r});const a=this.getResponseHeaders(r.headers);if(!r.ok){const o=await r.text().catch(()=>"Unknown error"),s=Nh(o);throw this.makeStatusError(r.status,s,s?void 0:o,a)}return{response:r,controller:i,headers:a}}getResponseHeaders(n){const t=n.get("x-amzn-trace-id"),u=n.get("x-amzn-requestid");return{traceId:t,requestId:u}}async fetchWithTimeout(n,t,u,i){const{signal:r,...a}=t||{},o=AbortSignal.timeout(u),s=r?AbortSignal.any([r,o,i.signal]):AbortSignal.any([o,i.signal]);return fetch(n,{...a,signal:s})}buildGraphRequest({query:n,variables:t}){const u={query:He(n),variables:t,operationName:n?.definitions?.[0]?.name?.value},i=u?JSON.stringify(u,null,2):null,r=this.calculateContentLength(i),a=this.timeout,o={...r&&{"Content-Length":r},...this.defaultHeaders()},s=Object.fromEntries(Object.entries(o).filter(([l,f])=>f!==null)),c={method:"POST",...i?{body:i}:{},headers:s};return{url:this.baseGraphURL,req:c,timeout:a}}buildRestRequest(n,t,u,i,r){const a=u?JSON.stringify(u):null,o=this.calculateContentLength(a),s=this.timeout,c={...o&&{"Content-Length":o},...this.defaultHeaders()},l=Object.fromEntries(Object.entries(c).filter(([h,E])=>E!==null)),f={method:n,...a?{body:a}:{},headers:l},m=i??this.baseRestURL,d=t.startsWith("/")?t:"/"+t,v=new URL(d,m);if(r)for(const[h,E]of Object.entries(r))E!==void 0&&v.searchParams.set(h,String(E));return{url:v.toString(),req:f,timeout:s}}defaultHeaders(){return{Accept:"application/json","Content-Type":"application/json",...this.authHeaders()}}calculateContentLength(n){if(typeof n=="string"){if(typeof Buffer<"u")return Buffer.byteLength(n,"utf8").toString();if(typeof TextEncoder<"u")return new TextEncoder().encode(n).length.toString()}return null}authHeaders(){return{Authorization:"Bearer "+this.apiKey,...this.integrationKey?{"X-INTEGRATION-KEY":this.integrationKey}:{}}}makeStatusError(n,t,u,i){return Se.generate(n,t,u,i)}}class Jh{client;constructor(n){this.client=n}async list(n){return this.client.restApi({method:"get",path:"/v1/integrator/ach-debit/returns",query:n})}async get(n){return this.client.restApi({method:"get",path:`/v1/integrator/ach-debit/returns/${encodeURIComponent(n)}`})}}class Hh{client;constructor(n){this.client=n}async list(){return this.client.restApi({method:"get",path:"/v1/bank-accounts/"})}async get(n){return this.client.restApi({method:"get",path:`/v1/bank-accounts/${encodeURIComponent(n)}`})}async create(n){return this.client.restApi({method:"post",path:"/v1/bank-accounts/",body:n})}async delete(n){return this.client.restApi({method:"delete",path:`/v1/bank-accounts/${encodeURIComponent(n)}`})}async createLinkToken(n){return this.client.restApi({method:"post",path:"/v1/bank-accounts/link-token",body:n})}async completeLinking(n){return this.client.restApi({method:"post",path:"/v1/bank-accounts/link-complete",body:n})}}var Lt={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"BillFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Bill"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"originator"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"payable"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"verifying"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"billType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"billAccountDetails"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"balance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amountDue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"openedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastPaymentAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastPaymentDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nextPaymentDueDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nextPaymentMinimumAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastStatementBalance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"remainingStatementBalance"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"dataSync"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"lastSync"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"syncStatus"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"institution"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"logo"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"paymentAddresses"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"network"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:588}};Lt.loc.source={body:`fragment BillFragment on Bill {
|
|
43
|
+
id
|
|
44
|
+
name
|
|
45
|
+
userId
|
|
46
|
+
country
|
|
47
|
+
currency
|
|
48
|
+
originator
|
|
49
|
+
payable
|
|
50
|
+
verifying
|
|
51
|
+
billType
|
|
52
|
+
createdAt
|
|
53
|
+
billAccountDetails {
|
|
54
|
+
balance
|
|
55
|
+
amountDue
|
|
56
|
+
openedAt
|
|
57
|
+
lastPaymentAmount
|
|
58
|
+
lastPaymentDate
|
|
59
|
+
nextPaymentDueDate
|
|
60
|
+
nextPaymentMinimumAmount
|
|
61
|
+
lastStatementBalance
|
|
62
|
+
remainingStatementBalance
|
|
63
|
+
}
|
|
64
|
+
dataSync {
|
|
65
|
+
lastSync
|
|
66
|
+
syncStatus
|
|
67
|
+
}
|
|
68
|
+
institution {
|
|
69
|
+
id
|
|
70
|
+
name
|
|
71
|
+
logo
|
|
72
|
+
}
|
|
73
|
+
paymentAddresses {
|
|
74
|
+
network
|
|
75
|
+
address
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Ni(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){Ni(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){Ni(u,n)}),e.definitions&&e.definitions.forEach(function(u){Ni(u,n)})}var Vr={};(function(){Lt.definitions.forEach(function(n){if(n.name){var t=new Set;Ni(n,t),Vr[n.name.value]=t}})})();function Hc(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function Kh(e,n){var t={kind:e.kind,definitions:[Hc(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=Vr[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Vr[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=Hc(e,o);s&&t.definitions.push(s)}),t}Kh(Lt,"BillFragment");var Jn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateUSBill"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"institutionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountNumber"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"type"}},type:{kind:"NamedType",name:{kind:"Name",value:"BillType"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addUSBill"},arguments:[{kind:"Argument",name:{kind:"Name",value:"institutionId"},value:{kind:"Variable",name:{kind:"Name",value:"institutionId"}}},{kind:"Argument",name:{kind:"Name",value:"accountNumber"},value:{kind:"Variable",name:{kind:"Name",value:"accountNumber"}}},{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"Variable",name:{kind:"Name",value:"type"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"BillFragment"},directives:[]}]}}]}}],loc:{start:0,end:257}};Jn.loc.source={body:`#import "../queries/billFragment.graphql"
|
|
69
79
|
|
|
70
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const c of this.seen.entries()){const l=c[1];if(e===c[0]){r(c);continue}if(t.external){const m=t.external.registry.get(c[0])?.id;if(e!==c[0]&&m){r(c);continue}}if(this.metadataRegistry.get(c[0])?.id){r(c);continue}if(l.cycle){r(c);continue}if(l.count>1&&t.reused==="ref"){r(c);continue}}const a=(c,l)=>{const f=this.seen.get(c),m=f.def??f.schema,d={...m};if(f.ref===null)return;const v=f.ref;if(f.ref=null,v){a(v,l);const h=this.seen.get(v).schema;h.$ref&&l.target==="draft-7"?(m.allOf=m.allOf??[],m.allOf.push(h)):(Object.assign(m,h),Object.assign(m,d))}f.isParent||this.override({zodSchema:c,jsonSchema:m,path:f.path??[]})};for(const c of[...this.seen.entries()].reverse())a(c[0],{target:this.target});const o={};if(this.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?o.$schema="http://json-schema.org/draft-07/schema#":console.warn(`Invalid target: ${this.target}`),t.external?.uri){const c=t.external.registry.get(e)?.id;if(!c)throw new Error("Schema is missing an `id` property");o.$id=t.external.uri(c)}Object.assign(o,u.def);const s=t.external?.defs??{};for(const c of this.seen.entries()){const l=c[1];l.def&&l.defId&&(s[l.defId]=l.def)}t.external||Object.keys(s).length>0&&(this.target==="draft-2020-12"?o.$defs=s:o.definitions=s);try{return JSON.parse(JSON.stringify(o))}catch{throw new Error("Error converting schema to JSON.")}}};function If(e,n){if(e instanceof Ba){const u=new ao(n),i={};for(const o of e._idmap.entries()){const[s,c]=o;u.process(c)}const r={},a={registry:e,uri:n?.uri,defs:i};for(const o of e._idmap.entries()){const[s,c]=o;r[s]=u.emit(c,{...n,external:a})}if(Object.keys(i).length>0){const o=u.target==="draft-2020-12"?"$defs":"definitions";r.__shared={[o]:i}}return{schemas:r}}const t=new ao(n);return t.process(e),t.emit(e,n)}function re(e,n){const t=n??{seen:new Set};if(t.seen.has(e))return!1;t.seen.add(e);const i=e._zod.def;switch(i.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":return!1;case"array":return re(i.element,t);case"object":{for(const r in i.shape)if(re(i.shape[r],t))return!0;return!1}case"union":{for(const r of i.options)if(re(r,t))return!0;return!1}case"intersection":return re(i.left,t)||re(i.right,t);case"tuple":{for(const r of i.items)if(re(r,t))return!0;return!!(i.rest&&re(i.rest,t))}case"record":return re(i.keyType,t)||re(i.valueType,t);case"map":return re(i.keyType,t)||re(i.valueType,t);case"set":return re(i.valueType,t);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return re(i.innerType,t);case"lazy":return re(i.getter(),t);case"default":return re(i.innerType,t);case"prefault":return re(i.innerType,t);case"custom":return!1;case"transform":return!0;case"pipe":return re(i.in,t)||re(i.out,t);case"success":return!1;case"catch":return!1}throw new Error(`Unknown schema type: ${i.type}`)}var O3={},Ff={};Bn(Ff,{ZodISODate:()=>so,ZodISODateTime:()=>oo,ZodISODuration:()=>lo,ZodISOTime:()=>co,date:()=>Tf,datetime:()=>Nf,duration:()=>zf,time:()=>Of});var oo=p("ZodISODateTime",(e,n)=>{Tl.init(e,n),X.init(e,n)});function Nf(e){return Md(oo,e)}var so=p("ZodISODate",(e,n)=>{Ol.init(e,n),X.init(e,n)});function Tf(e){return Gd(so,e)}var co=p("ZodISOTime",(e,n)=>{zl.init(e,n),X.init(e,n)});function Of(e){return Jd(co,e)}var lo=p("ZodISODuration",(e,n)=>{Ul.init(e,n),X.init(e,n)});function zf(e){return Qd(lo,e)}var Uf=(e,n)=>{na.init(e,n),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>ia(e,t)},flatten:{value:t=>ta(e,t)},addIssue:{value:t=>e.issues.push(t)},addIssues:{value:t=>e.issues.push(...t)},isEmpty:{get(){return e.issues.length===0}}})},z3=p("ZodError",Uf),ei=p("ZodError",Uf,{Parent:Error}),Pf=ua(ei),Rf=aa(ei),jf=sa(ei),Lf=ca(ei),Z=p("ZodType",(e,n)=>(U.init(e,n),e.def=n,Object.defineProperty(e,"_def",{value:n}),e.check=(...t)=>e.clone({...n,checks:[...n.checks??[],...t.map(u=>typeof u=="function"?{_zod:{check:u,def:{check:"custom"},onattach:[]}}:u)]}),e.clone=(t,u)=>qe(e,t,u),e.brand=()=>e,e.register=(t,u)=>(t.add(e,u),e),e.parse=(t,u)=>Pf(e,t,u,{callee:e.parse}),e.safeParse=(t,u)=>jf(e,t,u),e.parseAsync=async(t,u)=>Rf(e,t,u,{callee:e.parseAsync}),e.safeParseAsync=async(t,u)=>Lf(e,t,u),e.spa=e.safeParseAsync,e.refine=(t,u)=>e.check(Cm(t,u)),e.superRefine=t=>e.check($m(t)),e.overwrite=t=>e.check(Tn(t)),e.optional=()=>su(e),e.nullable=()=>cu(e),e.nullish=()=>su(cu(e)),e.nonoptional=t=>hm(e,t),e.array=()=>To(e),e.or=t=>ou([e,t]),e.and=t=>tm(e,t),e.transform=t=>lu(e,Po(t)),e.default=t=>mm(e,t),e.prefault=t=>pm(e,t),e.catch=t=>ym(e,t),e.pipe=t=>lu(e,t),e.readonly=()=>Dm(e),e.describe=t=>{const u=e.clone();return In.add(u,{description:t}),u},Object.defineProperty(e,"description",{get(){return In.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return In.get(e);const u=e.clone();return In.add(u,t[0]),u},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),fo=p("_ZodString",(e,n)=>{Wt.init(e,n),Z.init(e,n);const t=e._zod.bag;e.format=t.format??null,e.minLength=t.minimum??null,e.maxLength=t.maximum??null,e.regex=(...u)=>e.check(Qa(...u)),e.includes=(...u)=>e.check(Wa(...u)),e.startsWith=(...u)=>e.check(Ya(...u)),e.endsWith=(...u)=>e.check(Xa(...u)),e.min=(...u)=>e.check(Yn(...u)),e.max=(...u)=>e.check(Wi(...u)),e.length=(...u)=>e.check(Yi(...u)),e.nonempty=(...u)=>e.check(Yn(1,...u)),e.lowercase=u=>e.check(Ha(u)),e.uppercase=u=>e.check(Ka(u)),e.trim=()=>e.check(to()),e.normalize=(...u)=>e.check(no(...u)),e.toLowerCase=()=>e.check(io()),e.toUpperCase=()=>e.check(uo())}),Xi=p("ZodString",(e,n)=>{Wt.init(e,n),fo.init(e,n),e.email=t=>e.check(wa(vo,t)),e.url=t=>e.check(Ia(po,t)),e.jwt=t=>e.check(Ga(xo,t)),e.emoji=t=>e.check(Fa(ho,t)),e.guid=t=>e.check(Qi(eu,t)),e.uuid=t=>e.check(_a(Ke,t)),e.uuidv4=t=>e.check(Ca(Ke,t)),e.uuidv6=t=>e.check($a(Ke,t)),e.uuidv7=t=>e.check(xa(Ke,t)),e.nanoid=t=>e.check(Na(go,t)),e.guid=t=>e.check(Qi(eu,t)),e.cuid=t=>e.check(Ta(Eo,t)),e.cuid2=t=>e.check(Oa(yo,t)),e.ulid=t=>e.check(za(bo,t)),e.base64=t=>e.check(Va(_o,t)),e.base64url=t=>e.check(qa(Co,t)),e.xid=t=>e.check(Ua(ko,t)),e.ksuid=t=>e.check(Pa(Do,t)),e.ipv4=t=>e.check(Ra(So,t)),e.ipv6=t=>e.check(ja(Bo,t)),e.cidrv4=t=>e.check(La(Ao,t)),e.cidrv6=t=>e.check(Za(wo,t)),e.e164=t=>e.check(Ma($o,t)),e.datetime=t=>e.check(Nf(t)),e.date=t=>e.check(Tf(t)),e.time=t=>e.check(Of(t)),e.duration=t=>e.check(zf(t))});function mo(e){return Zd(Xi,e)}var X=p("ZodStringFormat",(e,n)=>{W.init(e,n),fo.init(e,n)}),vo=p("ZodEmail",(e,n)=>{Al.init(e,n),X.init(e,n)});function U3(e){return wa(vo,e)}var eu=p("ZodGUID",(e,n)=>{Sl.init(e,n),X.init(e,n)});function P3(e){return Qi(eu,e)}var Ke=p("ZodUUID",(e,n)=>{Bl.init(e,n),X.init(e,n)});function R3(e){return _a(Ke,e)}function j3(e){return Ca(Ke,e)}function L3(e){return $a(Ke,e)}function Z3(e){return xa(Ke,e)}var po=p("ZodURL",(e,n)=>{wl.init(e,n),X.init(e,n)});function V3(e){return Ia(po,e)}var ho=p("ZodEmoji",(e,n)=>{_l.init(e,n),X.init(e,n)});function q3(e){return Fa(ho,e)}var go=p("ZodNanoID",(e,n)=>{Cl.init(e,n),X.init(e,n)});function M3(e){return Na(go,e)}var Eo=p("ZodCUID",(e,n)=>{$l.init(e,n),X.init(e,n)});function G3(e){return Ta(Eo,e)}var yo=p("ZodCUID2",(e,n)=>{xl.init(e,n),X.init(e,n)});function J3(e){return Oa(yo,e)}var bo=p("ZodULID",(e,n)=>{Il.init(e,n),X.init(e,n)});function Q3(e){return za(bo,e)}var ko=p("ZodXID",(e,n)=>{Fl.init(e,n),X.init(e,n)});function H3(e){return Ua(ko,e)}var Do=p("ZodKSUID",(e,n)=>{Nl.init(e,n),X.init(e,n)});function K3(e){return Pa(Do,e)}var So=p("ZodIPv4",(e,n)=>{Pl.init(e,n),X.init(e,n)});function W3(e){return Ra(So,e)}var Bo=p("ZodIPv6",(e,n)=>{Rl.init(e,n),X.init(e,n)});function Y3(e){return ja(Bo,e)}var Ao=p("ZodCIDRv4",(e,n)=>{jl.init(e,n),X.init(e,n)});function X3(e){return La(Ao,e)}var wo=p("ZodCIDRv6",(e,n)=>{Ll.init(e,n),X.init(e,n)});function e1(e){return Za(wo,e)}var _o=p("ZodBase64",(e,n)=>{Zl.init(e,n),X.init(e,n)});function n1(e){return Va(_o,e)}var Co=p("ZodBase64URL",(e,n)=>{ql.init(e,n),X.init(e,n)});function t1(e){return qa(Co,e)}var $o=p("ZodE164",(e,n)=>{Ml.init(e,n),X.init(e,n)});function i1(e){return Ma($o,e)}var xo=p("ZodJWT",(e,n)=>{Jl.init(e,n),X.init(e,n)});function u1(e){return Ga(xo,e)}var Zf=p("ZodCustomStringFormat",(e,n)=>{Ql.init(e,n),X.init(e,n)});function r1(e,n,t={}){return Cf(Zf,e,n,t)}var nu=p("ZodNumber",(e,n)=>{pa.init(e,n),Z.init(e,n),e.gt=(u,i)=>e.check(Nn(u,i)),e.gte=(u,i)=>e.check(Ce(u,i)),e.min=(u,i)=>e.check(Ce(u,i)),e.lt=(u,i)=>e.check(Fn(u,i)),e.lte=(u,i)=>e.check(Ze(u,i)),e.max=(u,i)=>e.check(Ze(u,i)),e.int=u=>e.check(Io(u)),e.safe=u=>e.check(Io(u)),e.positive=u=>e.check(Nn(0,u)),e.nonnegative=u=>e.check(Ce(0,u)),e.negative=u=>e.check(Fn(0,u)),e.nonpositive=u=>e.check(Ze(0,u)),e.multipleOf=(u,i)=>e.check(Yt(u,i)),e.step=(u,i)=>e.check(Yt(u,i)),e.finite=()=>e;const t=e._zod.bag;e.minValue=Math.max(t.minimum??Number.NEGATIVE_INFINITY,t.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(t.maximum??Number.POSITIVE_INFINITY,t.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(t.format??"").includes("int")||Number.isSafeInteger(t.multipleOf??.5),e.isFinite=!0,e.format=t.format??null});function Vf(e){return Hd(nu,e)}var Xn=p("ZodNumberFormat",(e,n)=>{Hl.init(e,n),nu.init(e,n)});function Io(e){return Wd(Xn,e)}function a1(e){return Yd(Xn,e)}function o1(e){return Xd(Xn,e)}function s1(e){return ef(Xn,e)}function c1(e){return nf(Xn,e)}var tu=p("ZodBoolean",(e,n)=>{ha.init(e,n),Z.init(e,n)});function qf(e){return tf(tu,e)}var iu=p("ZodBigInt",(e,n)=>{ga.init(e,n),Z.init(e,n),e.gte=(u,i)=>e.check(Ce(u,i)),e.min=(u,i)=>e.check(Ce(u,i)),e.gt=(u,i)=>e.check(Nn(u,i)),e.gte=(u,i)=>e.check(Ce(u,i)),e.min=(u,i)=>e.check(Ce(u,i)),e.lt=(u,i)=>e.check(Fn(u,i)),e.lte=(u,i)=>e.check(Ze(u,i)),e.max=(u,i)=>e.check(Ze(u,i)),e.positive=u=>e.check(Nn(BigInt(0),u)),e.negative=u=>e.check(Fn(BigInt(0),u)),e.nonpositive=u=>e.check(Ze(BigInt(0),u)),e.nonnegative=u=>e.check(Ce(BigInt(0),u)),e.multipleOf=(u,i)=>e.check(Yt(u,i));const t=e._zod.bag;e.minValue=t.minimum??null,e.maxValue=t.maximum??null,e.format=t.format??null});function l1(e){return rf(iu,e)}var Fo=p("ZodBigIntFormat",(e,n)=>{Kl.init(e,n),iu.init(e,n)});function d1(e){return of(Fo,e)}function f1(e){return sf(Fo,e)}var Mf=p("ZodSymbol",(e,n)=>{Wl.init(e,n),Z.init(e,n)});function m1(e){return cf(Mf,e)}var Gf=p("ZodUndefined",(e,n)=>{Yl.init(e,n),Z.init(e,n)});function v1(e){return lf(Gf,e)}var Jf=p("ZodNull",(e,n)=>{Xl.init(e,n),Z.init(e,n)});function Qf(e){return df(Jf,e)}var Hf=p("ZodAny",(e,n)=>{ed.init(e,n),Z.init(e,n)});function p1(){return ff(Hf)}var Kf=p("ZodUnknown",(e,n)=>{qi.init(e,n),Z.init(e,n)});function uu(){return Hi(Kf)}var Wf=p("ZodNever",(e,n)=>{nd.init(e,n),Z.init(e,n)});function ru(e){return mf(Wf,e)}var Yf=p("ZodVoid",(e,n)=>{td.init(e,n),Z.init(e,n)});function h1(e){return vf(Yf,e)}var No=p("ZodDate",(e,n)=>{id.init(e,n),Z.init(e,n),e.min=(u,i)=>e.check(Ce(u,i)),e.max=(u,i)=>e.check(Ze(u,i));const t=e._zod.bag;e.minDate=t.minimum?new Date(t.minimum):null,e.maxDate=t.maximum?new Date(t.maximum):null});function g1(e){return pf(No,e)}var Xf=p("ZodArray",(e,n)=>{Ea.init(e,n),Z.init(e,n),e.element=n.element,e.min=(t,u)=>e.check(Yn(t,u)),e.nonempty=t=>e.check(Yn(1,t)),e.max=(t,u)=>e.check(Wi(t,u)),e.length=(t,u)=>e.check(Yi(t,u)),e.unwrap=()=>e.element});function To(e,n){return ro(Xf,e,n)}function E1(e){const n=e._zod.def.shape;return cm(Object.keys(n))}var au=p("ZodObject",(e,n)=>{ad.init(e,n),Z.init(e,n),M.defineLazy(e,"shape",()=>n.shape),e.keyof=()=>om(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:uu()}),e.loose=()=>e.clone({...e._zod.def,catchall:uu()}),e.strict=()=>e.clone({...e._zod.def,catchall:ru()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>M.extend(e,t),e.merge=t=>M.merge(e,t),e.pick=t=>M.pick(e,t),e.omit=t=>M.omit(e,t),e.partial=(...t)=>M.partial(Ro,e,t[0]),e.required=(...t)=>M.required(jo,e,t[0])});function y1(e,n){const t={type:"object",get shape(){return M.assignProp(this,"shape",{...e}),this.shape},...M.normalizeParams(n)};return new au(t)}function b1(e,n){return new au({type:"object",get shape(){return M.assignProp(this,"shape",{...e}),this.shape},catchall:ru(),...M.normalizeParams(n)})}function k1(e,n){return new au({type:"object",get shape(){return M.assignProp(this,"shape",{...e}),this.shape},catchall:uu(),...M.normalizeParams(n)})}var Oo=p("ZodUnion",(e,n)=>{ya.init(e,n),Z.init(e,n),e.options=n.options});function ou(e,n){return new Oo({type:"union",options:e,...M.normalizeParams(n)})}var em=p("ZodDiscriminatedUnion",(e,n)=>{Oo.init(e,n),sd.init(e,n)});function D1(e,n,t){return new em({type:"union",options:n,discriminator:e,...M.normalizeParams(t)})}var nm=p("ZodIntersection",(e,n)=>{cd.init(e,n),Z.init(e,n)});function tm(e,n){return new nm({type:"intersection",left:e,right:n})}var im=p("ZodTuple",(e,n)=>{Gi.init(e,n),Z.init(e,n),e.rest=t=>e.clone({...e._zod.def,rest:t})});function S1(e,n,t){const u=n instanceof U,i=u?t:n,r=u?n:null;return new im({type:"tuple",items:e,rest:r,...M.normalizeParams(i)})}var zo=p("ZodRecord",(e,n)=>{dd.init(e,n),Z.init(e,n),e.keyType=n.keyType,e.valueType=n.valueType});function um(e,n,t){return new zo({type:"record",keyType:e,valueType:n,...M.normalizeParams(t)})}function B1(e,n,t){return new zo({type:"record",keyType:ou([e,ru()]),valueType:n,...M.normalizeParams(t)})}var rm=p("ZodMap",(e,n)=>{fd.init(e,n),Z.init(e,n),e.keyType=n.keyType,e.valueType=n.valueType});function A1(e,n,t){return new rm({type:"map",keyType:e,valueType:n,...M.normalizeParams(t)})}var am=p("ZodSet",(e,n)=>{vd.init(e,n),Z.init(e,n),e.min=(...t)=>e.check(Xt(...t)),e.nonempty=t=>e.check(Xt(1,t)),e.max=(...t)=>e.check(Ki(...t)),e.size=(...t)=>e.check(Ja(...t))});function w1(e,n){return new am({type:"set",valueType:e,...M.normalizeParams(n)})}var ni=p("ZodEnum",(e,n)=>{hd.init(e,n),Z.init(e,n),e.enum=n.entries,e.options=Object.values(n.entries);const t=new Set(Object.keys(n.entries));e.extract=(u,i)=>{const r={};for(const a of u)if(t.has(a))r[a]=n.entries[a];else throw new Error(`Key ${a} not found in enum`);return new ni({...n,checks:[],...M.normalizeParams(i),entries:r})},e.exclude=(u,i)=>{const r={...n.entries};for(const a of u)if(t.has(a))delete r[a];else throw new Error(`Key ${a} not found in enum`);return new ni({...n,checks:[],...M.normalizeParams(i),entries:r})}});function om(e,n){const t=Array.isArray(e)?Object.fromEntries(e.map(u=>[u,u])):e;return new ni({type:"enum",entries:t,...M.normalizeParams(n)})}function _1(e,n){return new ni({type:"enum",entries:e,...M.normalizeParams(n)})}var sm=p("ZodLiteral",(e,n)=>{gd.init(e,n),Z.init(e,n),e.values=new Set(n.values),Object.defineProperty(e,"value",{get(){if(n.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return n.values[0]}})});function cm(e,n){return new sm({type:"literal",values:Array.isArray(e)?e:[e],...M.normalizeParams(n)})}var lm=p("ZodFile",(e,n)=>{Ed.init(e,n),Z.init(e,n),e.min=(t,u)=>e.check(Xt(t,u)),e.max=(t,u)=>e.check(Ki(t,u)),e.mime=(t,u)=>e.check(eo(Array.isArray(t)?t:[t],u))});function C1(e){return Bf(lm,e)}var Uo=p("ZodTransform",(e,n)=>{ka.init(e,n),Z.init(e,n),e._zod.parse=(t,u)=>{t.addIssue=r=>{if(typeof r=="string")t.issues.push(M.issue(r,t.value,n));else{const a=r;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=t.value),a.inst??(a.inst=e),a.continue??(a.continue=!0),t.issues.push(M.issue(a))}};const i=n.transform(t.value,t);return i instanceof Promise?i.then(r=>(t.value=r,t)):(t.value=i,t)}});function Po(e){return new Uo({type:"transform",transform:e})}var Ro=p("ZodOptional",(e,n)=>{yd.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType});function su(e){return new Ro({type:"optional",innerType:e})}var dm=p("ZodNullable",(e,n)=>{bd.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType});function cu(e){return new dm({type:"nullable",innerType:e})}function $1(e){return su(cu(e))}var fm=p("ZodDefault",(e,n)=>{kd.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function mm(e,n){return new fm({type:"default",innerType:e,get defaultValue(){return typeof n=="function"?n():n}})}var vm=p("ZodPrefault",(e,n)=>{Sd.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType});function pm(e,n){return new vm({type:"prefault",innerType:e,get defaultValue(){return typeof n=="function"?n():n}})}var jo=p("ZodNonOptional",(e,n)=>{Bd.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType});function hm(e,n){return new jo({type:"nonoptional",innerType:e,...M.normalizeParams(n)})}var gm=p("ZodSuccess",(e,n)=>{wd.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType});function x1(e){return new gm({type:"success",innerType:e})}var Em=p("ZodCatch",(e,n)=>{_d.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function ym(e,n){return new Em({type:"catch",innerType:e,catchValue:typeof n=="function"?n:()=>n})}var bm=p("ZodNaN",(e,n)=>{Cd.init(e,n),Z.init(e,n)});function I1(e){return gf(bm,e)}var Lo=p("ZodPipe",(e,n)=>{Da.init(e,n),Z.init(e,n),e.in=n.in,e.out=n.out});function lu(e,n){return new Lo({type:"pipe",in:e,out:n})}var km=p("ZodReadonly",(e,n)=>{xd.init(e,n),Z.init(e,n)});function Dm(e){return new km({type:"readonly",innerType:e})}var Sm=p("ZodTemplateLiteral",(e,n)=>{Fd.init(e,n),Z.init(e,n)});function F1(e,n){return new Sm({type:"template_literal",parts:e,...M.normalizeParams(n)})}var Bm=p("ZodLazy",(e,n)=>{Td.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.getter()});function Am(e){return new Bm({type:"lazy",getter:e})}var wm=p("ZodPromise",(e,n)=>{Nd.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType});function N1(e){return new wm({type:"promise",innerType:e})}var du=p("ZodCustom",(e,n)=>{Od.init(e,n),Z.init(e,n)});function _m(e){const n=new ie({check:"custom"});return n._zod.check=e,n}function T1(e,n){return Af(du,e??(()=>!0),n)}function Cm(e,n={}){return wf(du,e,n)}function $m(e){const n=_m(t=>(t.addIssue=u=>{if(typeof u=="string")t.issues.push(M.issue(u,t.value,n._zod.def));else{const i=u;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=t.value),i.inst??(i.inst=n),i.continue??(i.continue=!n._zod.def.abort),t.issues.push(M.issue(i))}},e(t.value,t)));return n}function O1(e,n={error:`Input not instance of ${e.name}`}){const t=new du({type:"custom",check:"custom",fn:u=>u instanceof e,abort:!0,...M.normalizeParams(n)});return t._zod.bag.Class=e,t}var z1=(...e)=>_f({Pipe:Lo,Boolean:tu,String:Xi,Transform:Uo},...e);function U1(e){const n=Am(()=>ou([mo(e),Vf(),qf(),Qf(),To(n),um(mo(),n)]));return n}function P1(e,n){return lu(Po(e),n)}var R1={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 j1(e){be({customError:e})}function L1(){return be().customError}var Zo;Zo||(Zo={});var xm={};Bn(xm,{bigint:()=>M1,boolean:()=>q1,date:()=>G1,number:()=>V1,string:()=>Z1});function Z1(e){return Vd(Xi,e)}function V1(e){return Kd(nu,e)}function q1(e){return uf(tu,e)}function M1(e){return af(iu,e)}function G1(e){return hf(No,e)}be(Pd());var et={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PayableAccountFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PayableAccount"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"payable"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"originator"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BankAccount"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankAccountType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankAccountSubType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"holder"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ownedByUser"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankAccountDetails"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"USBankAccountDetails"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"routingNumber"},arguments:[],directives:[]}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"VirtualCard"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mask"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"balance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"renderSecret"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"virtualCardType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"billingInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"holder"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"phone"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"street"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"street2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"city"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"subdivision"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"postalCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"countryCode"},arguments:[],directives:[]}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Bill"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"billType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"verifying"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"billAccountDetails"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"balance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amountDue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"openedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastPaymentAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastPaymentDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nextPaymentDueDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nextPaymentMinimumAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastStatementBalance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"remainingStatementBalance"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"dataSync"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"lastSync"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"syncStatus"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"institution"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"logo"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:1289}};et.loc.source={body:`fragment PayableAccountFragment on PayableAccount {
|
|
80
|
+
mutation CreateUSBill($institutionId: String!, $accountNumber: String!, $type: BillType) {
|
|
81
|
+
addUSBill(institutionId: $institutionId, accountNumber: $accountNumber, type: $type) {
|
|
82
|
+
...BillFragment
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Kc={};function Qh(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Kc[t]?!1:(Kc[t]=!0,!0)})}Jn.definitions=Jn.definitions.concat(Qh(Lt.definitions));function Ti(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){Ti(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){Ti(u,n)}),e.definitions&&e.definitions.forEach(function(u){Ti(u,n)})}var qr={};(function(){Jn.definitions.forEach(function(n){if(n.name){var t=new Set;Ti(n,t),qr[n.name.value]=t}})})();function Qc(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function Wh(e,n){var t={kind:e.kind,definitions:[Qc(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=qr[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=qr[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=Qc(e,o);s&&t.definitions.push(s)}),t}Wh(Jn,"CreateUSBill");var Zt={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PayableAccountFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PayableAccount"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"payable"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"originator"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BankAccount"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankAccountType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankAccountSubType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"holder"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ownedByUser"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankAccountDetails"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"USBankAccountDetails"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"routingNumber"},arguments:[],directives:[]}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"VirtualCard"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mask"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"balance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"renderSecret"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"virtualCardType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"billingInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"holder"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"phone"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"street"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"street2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"city"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"subdivision"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"postalCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"countryCode"},arguments:[],directives:[]}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Bill"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"billType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"verifying"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"billAccountDetails"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"balance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amountDue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"openedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastPaymentAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastPaymentDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nextPaymentDueDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nextPaymentMinimumAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastStatementBalance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"remainingStatementBalance"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"dataSync"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"lastSync"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"syncStatus"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"institution"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"logo"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:1289}};Zt.loc.source={body:`fragment PayableAccountFragment on PayableAccount {
|
|
71
86
|
id
|
|
72
87
|
name
|
|
73
88
|
userId
|
|
@@ -134,125 +149,56 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
134
149
|
logo
|
|
135
150
|
}
|
|
136
151
|
}
|
|
137
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function
|
|
138
|
-
|
|
139
|
-
mutation CreateBankAccount($createAccountInput: BankAccountInput!) {
|
|
140
|
-
createBankAccount(createAccountInput: $createAccountInput) {
|
|
141
|
-
...PayableAccountFragment
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Fm={};function Q1(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Fm[t]?!1:(Fm[t]=!0,!0)})}nt.definitions=nt.definitions.concat(Q1(et.definitions));function mu(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){mu(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){mu(u,n)}),e.definitions&&e.definitions.forEach(function(u){mu(u,n)})}var qo={};(function(){nt.definitions.forEach(function(n){if(n.name){var t=new Set;mu(n,t),qo[n.name.value]=t}})})();function Nm(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function H1(e,n){var t={kind:e.kind,definitions:[Nm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=qo[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=qo[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=Nm(e,o);s&&t.definitions.push(s)}),t}H1(nt,"CreateBankAccount");var ln={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeletePayableAccount"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deletePayableAccount"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PayableAccountFragment"},directives:[]}]}}]}}],loc:{start:0,end:198}};ln.loc.source={body:`#import "../queries/payableAccountFragment.graphql"
|
|
152
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Oi(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){Oi(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){Oi(u,n)}),e.definitions&&e.definitions.forEach(function(u){Oi(u,n)})}var Mr={};(function(){Zt.definitions.forEach(function(n){if(n.name){var t=new Set;Oi(n,t),Mr[n.name.value]=t}})})();function Wc(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function Yh(e,n){var t={kind:e.kind,definitions:[Wc(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=Mr[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Mr[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=Wc(e,o);s&&t.definitions.push(s)}),t}Yh(Zt,"PayableAccountFragment");var _n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeletePayableAccount"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deletePayableAccount"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PayableAccountFragment"},directives:[]}]}}]}}],loc:{start:0,end:198}};_n.loc.source={body:`#import "../queries/payableAccountFragment.graphql"
|
|
145
153
|
|
|
146
154
|
mutation DeletePayableAccount($accountId: String!) {
|
|
147
155
|
deletePayableAccount(accountId: $accountId) {
|
|
148
156
|
...PayableAccountFragment
|
|
149
157
|
}
|
|
150
158
|
}
|
|
151
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var
|
|
152
|
-
id
|
|
153
|
-
name
|
|
154
|
-
userId
|
|
155
|
-
country
|
|
156
|
-
currency
|
|
157
|
-
createdAt
|
|
158
|
-
type
|
|
159
|
-
... on BankAccount {
|
|
160
|
-
accountNumber
|
|
161
|
-
bankAccountType
|
|
162
|
-
bankAccountSubType
|
|
163
|
-
email
|
|
164
|
-
ownedByUser
|
|
165
|
-
bankAccountDetails {
|
|
166
|
-
... on USBankAccountDetails {
|
|
167
|
-
routingNumber
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
deliveryMethods
|
|
171
|
-
}
|
|
172
|
-
institution {
|
|
173
|
-
id
|
|
174
|
-
name
|
|
175
|
-
logo
|
|
176
|
-
country
|
|
177
|
-
currency
|
|
178
|
-
}
|
|
179
|
-
paymentAddresses {
|
|
180
|
-
network
|
|
181
|
-
address
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function pu(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){pu(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){pu(u,n)}),e.definitions&&e.definitions.forEach(function(u){pu(u,n)})}var Go={};(function(){ti.definitions.forEach(function(n){if(n.name){var t=new Set;pu(n,t),Go[n.name.value]=t}})})();function zm(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function Y1(e,n){var t={kind:e.kind,definitions:[zm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=Go[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Go[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=zm(e,o);s&&t.definitions.push(s)}),t}Y1(ti,"BankAccountFragment");var tt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RenameBankAccount"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"renamePayableAccount"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"BankAccountFragment"},directives:[]}]}}]}}],loc:{start:0,end:218}};tt.loc.source={body:`#import "../queries/bankAccountFragment.graphql"
|
|
185
|
-
|
|
186
|
-
mutation RenameBankAccount($accountId: String!, $name: String!) {
|
|
187
|
-
renamePayableAccount(accountId: $accountId, name: $name) {
|
|
188
|
-
...BankAccountFragment
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Um={};function X1(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Um[t]?!1:(Um[t]=!0,!0)})}tt.definitions=tt.definitions.concat(X1(ti.definitions));function hu(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){hu(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){hu(u,n)}),e.definitions&&e.definitions.forEach(function(u){hu(u,n)})}var Jo={};(function(){tt.definitions.forEach(function(n){if(n.name){var t=new Set;hu(n,t),Jo[n.name.value]=t}})})();function Pm(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function eE(e,n){var t={kind:e.kind,definitions:[Pm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=Jo[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Jo[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=Pm(e,o);s&&t.definitions.push(s)}),t}eE(tt,"RenameBankAccount");var it={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"UserBankAccounts"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bankAccounts"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"BankAccountFragment"},directives:[]}]}}]}}],loc:{start:0,end:124}};it.loc.source={body:`#import "./bankAccountFragment.graphql"
|
|
192
|
-
|
|
193
|
-
query UserBankAccounts {
|
|
194
|
-
bankAccounts {
|
|
195
|
-
...BankAccountFragment
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Rm={};function nE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Rm[t]?!1:(Rm[t]=!0,!0)})}it.definitions=it.definitions.concat(nE(ti.definitions));function gu(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){gu(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){gu(u,n)}),e.definitions&&e.definitions.forEach(function(u){gu(u,n)})}var Qo={};(function(){it.definitions.forEach(function(n){if(n.name){var t=new Set;gu(n,t),Qo[n.name.value]=t}})})();function jm(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function tE(e,n){var t={kind:e.kind,definitions:[jm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=Qo[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Qo[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=jm(e,o);s&&t.definitions.push(s)}),t}tE(it,"UserBankAccounts");function iE(e){throw new Error(e)}var uE=(e=>(e.Active="Active",e.Error="Error",e.Syncing="Syncing",e.Unavailable="Unavailable",e))(uE||{}),Lm=(e=>(e.AMOUNT_RECEIVED="AMOUNT_RECEIVED",e.TOTAL_AMOUNT="TOTAL_AMOUNT",e))(Lm||{}),Zm=(e=>(e.Business="Business",e.Checking="Checking",e.Savings="Savings",e))(Zm||{}),ut=(e=>(e.CABankAccount="CABankAccount",e.IbanAccount="IbanAccount",e.UKBankAccount="UKBankAccount",e.USBankAccount="USBankAccount",e))(ut||{}),Vm=(e=>(e.AutoLoan="AutoLoan",e.CreditCard="CreditCard",e.Loan="Loan",e.MobilePhone="MobilePhone",e.Mortgage="Mortgage",e.StudentLoan="StudentLoan",e.Unknown="Unknown",e.Utility="Utility",e))(Vm||{}),qm=(e=>(e.Mastercard="Mastercard",e.Visa="Visa",e))(qm||{}),Mm=(e=>(e.COMPLETED="COMPLETED",e.CONFIRMED="CONFIRMED",e.CREATED="CREATED",e.FAILED="FAILED",e.FAILED_VALIDATION="FAILED_VALIDATION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.PENDING="PENDING",e.REFUNDED="REFUNDED",e.TRANSACTION_FAILED="TRANSACTION_FAILED",e.TRANSACTION_PENDING="TRANSACTION_PENDING",e))(Mm||{}),rt=(e=>(e.ACTIVE="ACTIVE",e.DISABLED="DISABLED",e.FAILED="FAILED",e.INITIALIZED="INITIALIZED",e.LOADING="LOADING",e.RETRY="RETRY",e.UNAVAILABLE="UNAVAILABLE",e.UNDER_REVIEW="UNDER_REVIEW",e.UNINITIALIZED="UNINITIALIZED",e))(rt||{}),rE=(e=>(e.AWAITING_FUNDS="AWAITING_FUNDS",e.CANCELLED="CANCELLED",e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.ON_HOLD="ON_HOLD",e.PENDING="PENDING",e.REFUNDED="REFUNDED",e.REVERSED="REVERSED",e))(rE||{}),aE=(e=>(e.Provider="Provider",e.User="User",e))(aE||{}),Gm=(e=>(e.BankAccount="BankAccount",e.Bill="Bill",e.DebitCard="DebitCard",e.DigitalAccount="DigitalAccount",e.OneTimePayment="OneTimePayment",e.VirtualCard="VirtualCard",e))(Gm||{}),Jm=(e=>(e.INSTANT="INSTANT",e.SAME_DAY="SAME_DAY",e.STANDARD="STANDARD",e))(Jm||{}),Qm=(e=>(e.CANCELLED="CANCELLED",e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.INITIALIZED="INITIALIZED",e.PENDING="PENDING",e.REFUNDED="REFUNDED",e.REVERSAL_IN_PROGRESS="REVERSAL_IN_PROGRESS",e.REVERSED="REVERSED",e.SCHEDULED="SCHEDULED",e.SENT="SENT",e))(Qm||{}),Ho=(e=>(e.USPhysicalDebitCard="USPhysicalDebitCard",e.USVirtualDebitCard="USVirtualDebitCard",e))(Ho||{});const oE=fe.object({transitNumber:fe.string().length(5,{message:"Transit number must be exactly 5 characters long"}).regex(/^[0-9]{5}$/,"Transit number should contain only digits."),institutionNumber:fe.string().length(3,{message:"Institution number must be exactly 3 characters long"}).regex(/^[0-9]{3}$/,"Institution number should contain only digits.")}),sE=fe.object({routingNumber:fe.string().length(9,{message:"Routing number must be exactly 9 characters long"}).regex(/^[0-9]{9}$/,"Routing number should contain only digits.")}),cE=fe.object({iban:fe.string().min(15,{message:"IBAN must be at least 15 characters long"}).max(34,{message:"IBAN must be at most 34 characters long"}).regex(/^[A-Z]{2}[0-9]{2}[A-Z0-9]+$/,"IBAN must start with 2 letters, followed by 2 digits, then alphanumeric characters")}),lE=fe.object({sortCode:fe.string().length(6,{message:"Sort code must be exactly 6 characters long"}).regex(/^[0-9]{6}$/,"Sort code should contain only digits.")}),dE={[ut.CABankAccount]:oE,[ut.USBankAccount]:sE,[ut.IbanAccount]:cE,[ut.UKBankAccount]:lE};class fE{client;constructor(n){this.client=n}async list(){return(await this.client.query({query:it}))?.bankAccounts??[]}async rename(n,t){return(await this.client.query({query:tt,variables:{accountId:n,name:t}}))?.renamePayableAccount??null}async delete(n){return(await this.client.query({query:ln,variables:{accountId:n}}))?.deletePayableAccount??null}async createLinkToken(){return this.client.restApi({method:"post",path:"/v1/bank-accounts/link-token"})}async completeLinking(n){return this.client.restApi({method:"post",path:"/v1/bank-accounts/link-complete",body:n})}async create(n,t){const u=dE[n]??iE("Invalid bank account type");try{const i=u.parse(t);return(await this.client.query({query:nt,variables:{createAccountInput:{accountNumber:t.accountNumber,name:t.name??null,type:n,subType:t.subType,details:i,email:t.email??null,ownedByUser:t.ownedByUser??null}}}))?.createBankAccount??null}catch(i){throw i instanceof fe.ZodError?new Error(i?.issues?.[0]?.message??"Input validation failure"):i}}}var ii={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"BillFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Bill"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"originator"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"payable"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"verifying"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"billType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"billAccountDetails"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"balance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amountDue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"openedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastPaymentAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastPaymentDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nextPaymentDueDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nextPaymentMinimumAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastStatementBalance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"remainingStatementBalance"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"dataSync"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"lastSync"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"syncStatus"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"institution"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"logo"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"paymentAddresses"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"network"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:588}};ii.loc.source={body:`fragment BillFragment on Bill {
|
|
199
|
-
id
|
|
200
|
-
name
|
|
201
|
-
userId
|
|
202
|
-
country
|
|
203
|
-
currency
|
|
204
|
-
originator
|
|
205
|
-
payable
|
|
206
|
-
verifying
|
|
207
|
-
billType
|
|
208
|
-
createdAt
|
|
209
|
-
billAccountDetails {
|
|
210
|
-
balance
|
|
211
|
-
amountDue
|
|
212
|
-
openedAt
|
|
213
|
-
lastPaymentAmount
|
|
214
|
-
lastPaymentDate
|
|
215
|
-
nextPaymentDueDate
|
|
216
|
-
nextPaymentMinimumAmount
|
|
217
|
-
lastStatementBalance
|
|
218
|
-
remainingStatementBalance
|
|
219
|
-
}
|
|
220
|
-
dataSync {
|
|
221
|
-
lastSync
|
|
222
|
-
syncStatus
|
|
223
|
-
}
|
|
224
|
-
institution {
|
|
225
|
-
id
|
|
226
|
-
name
|
|
227
|
-
logo
|
|
228
|
-
}
|
|
229
|
-
paymentAddresses {
|
|
230
|
-
network
|
|
231
|
-
address
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Eu(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){Eu(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){Eu(u,n)}),e.definitions&&e.definitions.forEach(function(u){Eu(u,n)})}var Ko={};(function(){ii.definitions.forEach(function(n){if(n.name){var t=new Set;Eu(n,t),Ko[n.name.value]=t}})})();function Hm(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function mE(e,n){var t={kind:e.kind,definitions:[Hm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=Ko[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Ko[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=Hm(e,o);s&&t.definitions.push(s)}),t}mE(ii,"BillFragment");var at={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateUSBill"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"institutionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountNumber"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"type"}},type:{kind:"NamedType",name:{kind:"Name",value:"BillType"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addUSBill"},arguments:[{kind:"Argument",name:{kind:"Name",value:"institutionId"},value:{kind:"Variable",name:{kind:"Name",value:"institutionId"}}},{kind:"Argument",name:{kind:"Name",value:"accountNumber"},value:{kind:"Variable",name:{kind:"Name",value:"accountNumber"}}},{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"Variable",name:{kind:"Name",value:"type"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"BillFragment"},directives:[]}]}}]}}],loc:{start:0,end:257}};at.loc.source={body:`#import "../queries/billFragment.graphql"
|
|
235
|
-
|
|
236
|
-
mutation CreateUSBill($institutionId: String!, $accountNumber: String!, $type: BillType) {
|
|
237
|
-
addUSBill(institutionId: $institutionId, accountNumber: $accountNumber, type: $type) {
|
|
238
|
-
...BillFragment
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Km={};function vE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Km[t]?!1:(Km[t]=!0,!0)})}at.definitions=at.definitions.concat(vE(ii.definitions));function yu(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){yu(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){yu(u,n)}),e.definitions&&e.definitions.forEach(function(u){yu(u,n)})}var Wo={};(function(){at.definitions.forEach(function(n){if(n.name){var t=new Set;yu(n,t),Wo[n.name.value]=t}})})();function Wm(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function pE(e,n){var t={kind:e.kind,definitions:[Wm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=Wo[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Wo[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=Wm(e,o);s&&t.definitions.push(s)}),t}pE(at,"CreateUSBill");var ot={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RenamePayableAccount"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"renamePayableAccount"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PayableAccountFragment"},directives:[]}]}}]}}],loc:{start:0,end:227}};ot.loc.source={body:`#import "../queries/payableAccountFragment.graphql"
|
|
159
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Yc={};function Xh(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Yc[t]?!1:(Yc[t]=!0,!0)})}_n.definitions=_n.definitions.concat(Xh(Zt.definitions));function zi(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){zi(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){zi(u,n)}),e.definitions&&e.definitions.forEach(function(u){zi(u,n)})}var Gr={};(function(){_n.definitions.forEach(function(n){if(n.name){var t=new Set;zi(n,t),Gr[n.name.value]=t}})})();function Xc(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function eg(e,n){var t={kind:e.kind,definitions:[Xc(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=Gr[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Gr[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=Xc(e,o);s&&t.definitions.push(s)}),t}eg(_n,"DeletePayableAccount");var Hn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RenamePayableAccount"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"renamePayableAccount"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PayableAccountFragment"},directives:[]}]}}]}}],loc:{start:0,end:227}};Hn.loc.source={body:`#import "../queries/payableAccountFragment.graphql"
|
|
242
160
|
|
|
243
161
|
mutation RenamePayableAccount($accountId: String!, $name: String!) {
|
|
244
162
|
renamePayableAccount(accountId: $accountId, name: $name) {
|
|
245
163
|
...PayableAccountFragment
|
|
246
164
|
}
|
|
247
165
|
}
|
|
248
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var
|
|
166
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var e0={};function ng(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return e0[t]?!1:(e0[t]=!0,!0)})}Hn.definitions=Hn.definitions.concat(ng(Zt.definitions));function Ui(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){Ui(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){Ui(u,n)}),e.definitions&&e.definitions.forEach(function(u){Ui(u,n)})}var Jr={};(function(){Hn.definitions.forEach(function(n){if(n.name){var t=new Set;Ui(n,t),Jr[n.name.value]=t}})})();function n0(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function tg(e,n){var t={kind:e.kind,definitions:[n0(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=Jr[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Jr[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=n0(e,o);s&&t.definitions.push(s)}),t}tg(Hn,"RenamePayableAccount");var Kn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"UserBills"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bills"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"BillFragment"},directives:[]}]}}]}}],loc:{start:0,end:96}};Kn.loc.source={body:`#import "./billFragment.graphql"
|
|
249
167
|
|
|
250
168
|
query UserBills {
|
|
251
169
|
bills {
|
|
252
170
|
...BillFragment
|
|
253
171
|
}
|
|
254
172
|
}
|
|
255
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var e4={};function EE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return e4[t]?!1:(e4[t]=!0,!0)})}st.definitions=st.definitions.concat(EE(ii.definitions));function ku(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){ku(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){ku(u,n)}),e.definitions&&e.definitions.forEach(function(u){ku(u,n)})}var Xo={};(function(){st.definitions.forEach(function(n){if(n.name){var t=new Set;ku(n,t),Xo[n.name.value]=t}})})();function n4(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function yE(e,n){var t={kind:e.kind,definitions:[n4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=Xo[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Xo[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=n4(e,o);s&&t.definitions.push(s)}),t}yE(st,"UserBills");class bE{client;constructor(n){this.client=n}async list(){return(await this.client.query({query:st}))?.bills??[]}async rename(n,t){return(await this.client.query({query:ot,variables:{accountId:n,name:t}}))?.renamePayableAccount??null}async delete(n){return(await this.client.query({query:ln,variables:{accountId:n}}))?.deletePayableAccount??null}async add(n,t,u){return(await this.client.query({query:at,variables:{institutionId:n,accountNumber:t,type:u??null}}))?.addUSBill??null}}var Du={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateDebitCard"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"createDebitCardInput"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DebitCardInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createDebitCard"},arguments:[{kind:"Argument",name:{kind:"Name",value:"createDebitCardInput"},value:{kind:"Variable",name:{kind:"Name",value:"createDebitCardInput"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"payable"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"debitCardNetwork"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"expirationDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cardNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mask"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"externalId"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:381}};Du.loc.source={body:`mutation CreateDebitCard($createDebitCardInput: DebitCardInput!) {
|
|
173
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var t0={};function ig(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return t0[t]?!1:(t0[t]=!0,!0)})}Kn.definitions=Kn.definitions.concat(ig(Lt.definitions));function Pi(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){Pi(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){Pi(u,n)}),e.definitions&&e.definitions.forEach(function(u){Pi(u,n)})}var Hr={};(function(){Kn.definitions.forEach(function(n){if(n.name){var t=new Set;Pi(n,t),Hr[n.name.value]=t}})})();function i0(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function ug(e,n){var t={kind:e.kind,definitions:[i0(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=Hr[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Hr[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=i0(e,o);s&&t.definitions.push(s)}),t}ug(Kn,"UserBills");class rg{client;constructor(n){this.client=n}async list(){return(await this.client.query({query:Kn}))?.bills??[]}async rename(n,t){return(await this.client.query({query:Hn,variables:{accountId:n,name:t}}))?.renamePayableAccount??null}async delete(n){return(await this.client.query({query:_n,variables:{accountId:n}}))?.deletePayableAccount??null}async add(n,t,u){return(await this.client.query({query:Jn,variables:{institutionId:n,accountNumber:t,type:u??null}}))?.addUSBill??null}}var Qn={};Dn(Qn,{$brand:()=>a0,$input:()=>Pd,$output:()=>Ud,NEVER:()=>r0,TimePrecision:()=>Ld,ZodAny:()=>Gf,ZodArray:()=>Qf,ZodBase64:()=>Bo,ZodBase64URL:()=>Ao,ZodBigInt:()=>uu,ZodBigIntFormat:()=>$o,ZodBoolean:()=>iu,ZodCIDRv4:()=>Do,ZodCIDRv6:()=>So,ZodCUID:()=>po,ZodCUID2:()=>ho,ZodCatch:()=>pm,ZodCustom:()=>fu,ZodCustomStringFormat:()=>Rf,ZodDate:()=>xo,ZodDefault:()=>cm,ZodDiscriminatedUnion:()=>Wf,ZodE164:()=>wo,ZodEmail:()=>lo,ZodEmoji:()=>mo,ZodEnum:()=>Yt,ZodError:()=>$3,ZodFile:()=>om,ZodFirstPartyTypeKind:()=>Ro,ZodGUID:()=>nu,ZodIPv4:()=>bo,ZodIPv6:()=>ko,ZodISODate:()=>ro,ZodISODateTime:()=>uo,ZodISODuration:()=>oo,ZodISOTime:()=>ao,ZodIntersection:()=>Yf,ZodIssueCode:()=>F1,ZodJWT:()=>_o,ZodKSUID:()=>yo,ZodLazy:()=>km,ZodLiteral:()=>rm,ZodMap:()=>tm,ZodNaN:()=>gm,ZodNanoID:()=>vo,ZodNever:()=>Hf,ZodNonOptional:()=>Uo,ZodNull:()=>qf,ZodNullable:()=>sm,ZodNumber:()=>tu,ZodNumberFormat:()=>tt,ZodObject:()=>ou,ZodOptional:()=>zo,ZodPipe:()=>Po,ZodPrefault:()=>dm,ZodPromise:()=>Sm,ZodReadonly:()=>Em,ZodRealError:()=>Wt,ZodRecord:()=>No,ZodSet:()=>im,ZodString:()=>eu,ZodStringFormat:()=>X,ZodSuccess:()=>vm,ZodSymbol:()=>Zf,ZodTemplateLiteral:()=>bm,ZodTransform:()=>To,ZodTuple:()=>em,ZodType:()=>Z,ZodULID:()=>go,ZodURL:()=>fo,ZodUUID:()=>Ke,ZodUndefined:()=>Vf,ZodUnion:()=>Fo,ZodUnknown:()=>Jf,ZodVoid:()=>Kf,ZodXID:()=>Eo,_ZodString:()=>so,_default:()=>lm,any:()=>s1,array:()=>Io,base64:()=>H3,base64url:()=>K3,bigint:()=>i1,boolean:()=>Lf,catch:()=>hm,check:()=>Bm,cidrv4:()=>G3,cidrv6:()=>J3,clone:()=>Ve,coerce:()=>_m,config:()=>ye,core:()=>u0,cuid:()=>R3,cuid2:()=>j3,custom:()=>_1,date:()=>l1,discriminatedUnion:()=>p1,e164:()=>Q3,email:()=>x3,emoji:()=>U3,endsWith:()=>Qa,enum:()=>um,file:()=>k1,flattenError:()=>Xr,float32:()=>X3,float64:()=>e1,formatError:()=>ea,function:()=>_f,getErrorMap:()=>T1,globalRegistry:()=>xn,gt:()=>Fn,gte:()=>_e,guid:()=>I3,includes:()=>Ha,instanceof:()=>C1,int:()=>Co,int32:()=>n1,int64:()=>u1,intersection:()=>Xf,ipv4:()=>q3,ipv6:()=>M3,iso:()=>$f,json:()=>x1,jwt:()=>W3,keyof:()=>d1,ksuid:()=>V3,lazy:()=>Dm,length:()=>Xi,literal:()=>am,locales:()=>ba,looseObject:()=>v1,lowercase:()=>Ga,lt:()=>In,lte:()=>Le,map:()=>E1,maxLength:()=>Yi,maxSize:()=>Wi,mime:()=>Wa,minLength:()=>nt,minSize:()=>Qt,multipleOf:()=>Kt,nan:()=>B1,nanoid:()=>P3,nativeEnum:()=>b1,negative:()=>hf,never:()=>au,nonnegative:()=>Ef,nonoptional:()=>mm,nonpositive:()=>gf,normalize:()=>Ya,null:()=>Mf,nullable:()=>lu,nullish:()=>D1,number:()=>jf,object:()=>f1,optional:()=>cu,overwrite:()=>Nn,parse:()=>Of,parseAsync:()=>zf,partialRecord:()=>g1,pipe:()=>du,positive:()=>pf,prefault:()=>fm,preprocess:()=>I1,prettifyError:()=>E0,promise:()=>w1,property:()=>yf,readonly:()=>ym,record:()=>nm,refine:()=>Am,regex:()=>Ma,regexes:()=>oa,registry:()=>Da,safeParse:()=>Uf,safeParseAsync:()=>Pf,set:()=>y1,setErrorMap:()=>N1,size:()=>qa,startsWith:()=>Ka,strictObject:()=>m1,string:()=>co,stringFormat:()=>Y3,stringbool:()=>$1,success:()=>S1,superRefine:()=>wm,symbol:()=>a1,templateLiteral:()=>A1,toJSONSchema:()=>Cf,toLowerCase:()=>eo,toUpperCase:()=>no,transform:()=>Oo,treeifyError:()=>h0,trim:()=>Xa,tuple:()=>h1,uint32:()=>t1,uint64:()=>r1,ulid:()=>L3,undefined:()=>o1,union:()=>su,unknown:()=>ru,uppercase:()=>Ja,url:()=>z3,uuid:()=>F3,uuidv4:()=>N3,uuidv6:()=>T3,uuidv7:()=>O3,void:()=>c1,xid:()=>Z3});var u0={};Dn(u0,{$ZodAny:()=>Wl,$ZodArray:()=>pa,$ZodAsyncError:()=>Wn,$ZodBase64:()=>Rl,$ZodBase64URL:()=>Ll,$ZodBigInt:()=>va,$ZodBigIntFormat:()=>Jl,$ZodBoolean:()=>ma,$ZodCIDRv4:()=>Ul,$ZodCIDRv6:()=>Pl,$ZodCUID:()=>wl,$ZodCUID2:()=>_l,$ZodCatch:()=>Bd,$ZodCheck:()=>ie,$ZodCheckBigIntFormat:()=>nl,$ZodCheckEndsWith:()=>ml,$ZodCheckGreaterThan:()=>la,$ZodCheckIncludes:()=>dl,$ZodCheckLengthEquals:()=>ol,$ZodCheckLessThan:()=>ca,$ZodCheckLowerCase:()=>cl,$ZodCheckMaxLength:()=>rl,$ZodCheckMaxSize:()=>tl,$ZodCheckMimeType:()=>hl,$ZodCheckMinLength:()=>al,$ZodCheckMinSize:()=>il,$ZodCheckMultipleOf:()=>X0,$ZodCheckNumberFormat:()=>el,$ZodCheckOverwrite:()=>gl,$ZodCheckProperty:()=>pl,$ZodCheckRegex:()=>sl,$ZodCheckSizeEquals:()=>ul,$ZodCheckStartsWith:()=>fl,$ZodCheckStringFormat:()=>Jt,$ZodCheckUpperCase:()=>ll,$ZodCustom:()=>Fd,$ZodCustomStringFormat:()=>Ml,$ZodDate:()=>ed,$ZodDefault:()=>Ed,$ZodDiscriminatedUnion:()=>rd,$ZodE164:()=>Zl,$ZodEmail:()=>Dl,$ZodEmoji:()=>Bl,$ZodEnum:()=>md,$ZodError:()=>Yr,$ZodFile:()=>pd,$ZodFunction:()=>wf,$ZodGUID:()=>bl,$ZodIPv4:()=>Ol,$ZodIPv6:()=>zl,$ZodISODate:()=>Fl,$ZodISODateTime:()=>Il,$ZodISODuration:()=>Tl,$ZodISOTime:()=>Nl,$ZodIntersection:()=>ad,$ZodJWT:()=>ql,$ZodKSUID:()=>xl,$ZodLazy:()=>Id,$ZodLiteral:()=>vd,$ZodMap:()=>cd,$ZodNaN:()=>Ad,$ZodNanoID:()=>Al,$ZodNever:()=>Yl,$ZodNonOptional:()=>kd,$ZodNull:()=>Ql,$ZodNullable:()=>gd,$ZodNumber:()=>fa,$ZodNumberFormat:()=>Gl,$ZodObject:()=>id,$ZodOptional:()=>hd,$ZodPipe:()=>ya,$ZodPrefault:()=>bd,$ZodPromise:()=>xd,$ZodReadonly:()=>_d,$ZodRealError:()=>Gt,$ZodRecord:()=>sd,$ZodRegistry:()=>ka,$ZodSet:()=>dd,$ZodString:()=>Ht,$ZodStringFormat:()=>W,$ZodSuccess:()=>Sd,$ZodSymbol:()=>Hl,$ZodTemplateLiteral:()=>$d,$ZodTransform:()=>Ea,$ZodTuple:()=>Ji,$ZodType:()=>U,$ZodULID:()=>Cl,$ZodURL:()=>Sl,$ZodUUID:()=>kl,$ZodUndefined:()=>Kl,$ZodUnion:()=>ha,$ZodUnknown:()=>Mi,$ZodVoid:()=>Xl,$ZodXID:()=>$l,$brand:()=>a0,$constructor:()=>p,$input:()=>Pd,$output:()=>Ud,Doc:()=>El,JSONSchema:()=>C3,JSONSchemaGenerator:()=>io,NEVER:()=>r0,TimePrecision:()=>Ld,_any:()=>cf,_array:()=>to,_base64:()=>ja,_base64url:()=>La,_bigint:()=>nf,_boolean:()=>Xd,_catch:()=>D3,_cidrv4:()=>Pa,_cidrv6:()=>Ra,_coercedBigint:()=>tf,_coercedBoolean:()=>ef,_coercedDate:()=>mf,_coercedNumber:()=>Jd,_coercedString:()=>jd,_cuid:()=>Ia,_cuid2:()=>Fa,_custom:()=>Df,_date:()=>ff,_default:()=>y3,_discriminatedUnion:()=>s3,_e164:()=>Za,_email:()=>Sa,_emoji:()=>$a,_endsWith:()=>Qa,_enum:()=>m3,_file:()=>kf,_float32:()=>Kd,_float64:()=>Qd,_gt:()=>Fn,_gte:()=>_e,_guid:()=>Ki,_includes:()=>Ha,_int:()=>Hd,_int32:()=>Wd,_int64:()=>uf,_intersection:()=>c3,_ipv4:()=>za,_ipv6:()=>Ua,_isoDate:()=>Vd,_isoDateTime:()=>Zd,_isoDuration:()=>Md,_isoTime:()=>qd,_jwt:()=>Va,_ksuid:()=>Oa,_lazy:()=>w3,_length:()=>Xi,_literal:()=>p3,_lowercase:()=>Ga,_lt:()=>In,_lte:()=>Le,_map:()=>d3,_max:()=>Le,_maxLength:()=>Yi,_maxSize:()=>Wi,_mime:()=>Wa,_min:()=>_e,_minLength:()=>nt,_minSize:()=>Qt,_multipleOf:()=>Kt,_nan:()=>vf,_nanoid:()=>xa,_nativeEnum:()=>v3,_negative:()=>hf,_never:()=>lf,_nonnegative:()=>Ef,_nonoptional:()=>b3,_nonpositive:()=>gf,_normalize:()=>Ya,_null:()=>sf,_nullable:()=>E3,_number:()=>Gd,_optional:()=>g3,_overwrite:()=>Nn,_parse:()=>na,_parseAsync:()=>ia,_pipe:()=>S3,_positive:()=>pf,_promise:()=>_3,_property:()=>yf,_readonly:()=>B3,_record:()=>l3,_refine:()=>Sf,_regex:()=>Ma,_safeParse:()=>ra,_safeParseAsync:()=>aa,_set:()=>f3,_size:()=>qa,_startsWith:()=>Ka,_string:()=>Rd,_stringFormat:()=>Af,_stringbool:()=>Bf,_success:()=>k3,_symbol:()=>af,_templateLiteral:()=>A3,_toLowerCase:()=>eo,_toUpperCase:()=>no,_transform:()=>h3,_trim:()=>Xa,_tuple:()=>bf,_uint32:()=>Yd,_uint64:()=>rf,_ulid:()=>Na,_undefined:()=>of,_union:()=>o3,_unknown:()=>Qi,_uppercase:()=>Ja,_url:()=>Ca,_uuid:()=>Ba,_uuidv4:()=>Aa,_uuidv6:()=>wa,_uuidv7:()=>_a,_void:()=>df,_xid:()=>Ta,clone:()=>Ve,config:()=>ye,flattenError:()=>Xr,formatError:()=>ea,function:()=>_f,globalConfig:()=>Ri,globalRegistry:()=>xn,isValidBase64:()=>da,isValidBase64URL:()=>jl,isValidJWT:()=>Vl,locales:()=>ba,parse:()=>ta,parseAsync:()=>ua,prettifyError:()=>E0,regexes:()=>oa,registry:()=>Da,safeParse:()=>y0,safeParseAsync:()=>b0,toDotPath:()=>g0,toJSONSchema:()=>Cf,treeifyError:()=>h0,util:()=>M,version:()=>yl});var r0=Object.freeze({status:"aborted"});function p(e,n,t){function u(o,s){var c;Object.defineProperty(o,"_zod",{value:o._zod??{},enumerable:!1}),(c=o._zod).traits??(c.traits=new Set),o._zod.traits.add(e),n(o,s);for(const l in a.prototype)l in o||Object.defineProperty(o,l,{value:a.prototype[l].bind(o)});o._zod.constr=a,o._zod.def=s}const i=t?.Parent??Object;class r extends i{}Object.defineProperty(r,"name",{value:e});function a(o){var s;const c=t?.Parent?new r: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=>t?.Parent&&o instanceof t.Parent?!0:o?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var a0=Symbol("zod_brand"),Wn=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Ri={};function ye(e){return e&&Object.assign(Ri,e),Ri}var M={};Dn(M,{BIGINT_FORMAT_RANGES:()=>m0,Class:()=>Bg,NUMBER_FORMAT_RANGES:()=>f0,aborted:()=>Xn,allowsEval:()=>c0,assert:()=>lg,assertEqual:()=>ag,assertIs:()=>sg,assertNever:()=>cg,assertNotEqual:()=>og,assignProp:()=>Qr,cached:()=>ji,captureStackTrace:()=>Wr,cleanEnum:()=>Sg,cleanRegex:()=>Li,clone:()=>Ve,createTransparentProxy:()=>hg,defineLazy:()=>H,esc:()=>Yn,escapeRegex:()=>$n,extend:()=>yg,finalizeIssue:()=>je,floatSafeRemainder:()=>s0,getElementAtPath:()=>dg,getEnumValues:()=>Kr,getLengthableOrigin:()=>qi,getParsedType:()=>pg,getSizableOrigin:()=>Vi,isObject:()=>Vt,isPlainObject:()=>qt,issue:()=>v0,joinValues:()=>w,jsonStringifyReplacer:()=>o0,merge:()=>bg,normalizeParams:()=>S,nullish:()=>Cn,numKeys:()=>vg,omit:()=>Eg,optionalKeys:()=>d0,partial:()=>kg,pick:()=>gg,prefixIssues:()=>Ie,primitiveTypes:()=>l0,promiseAllObject:()=>fg,propertyKeyTypes:()=>Zi,randomString:()=>mg,required:()=>Dg,stringifyPrimitive:()=>L,unwrapMessage:()=>Mt});function ag(e){return e}function og(e){return e}function sg(e){}function cg(e){throw new Error}function lg(e){}function Kr(e){const n=Object.values(e).filter(u=>typeof u=="number");return Object.entries(e).filter(([u,i])=>n.indexOf(+u)===-1).map(([u,i])=>i)}function w(e,n="|"){return e.map(t=>L(t)).join(n)}function o0(e,n){return typeof n=="bigint"?n.toString():n}function ji(e){return{get value(){{const n=e();return Object.defineProperty(this,"value",{value:n}),n}}}}function Cn(e){return e==null}function Li(e){const n=e.startsWith("^")?1:0,t=e.endsWith("$")?e.length-1:e.length;return e.slice(n,t)}function s0(e,n){const t=(e.toString().split(".")[1]||"").length,u=(n.toString().split(".")[1]||"").length,i=t>u?t:u,r=Number.parseInt(e.toFixed(i).replace(".","")),a=Number.parseInt(n.toFixed(i).replace(".",""));return r%a/10**i}function H(e,n,t){Object.defineProperty(e,n,{get(){{const u=t();return e[n]=u,u}},set(u){Object.defineProperty(e,n,{value:u})},configurable:!0})}function Qr(e,n,t){Object.defineProperty(e,n,{value:t,writable:!0,enumerable:!0,configurable:!0})}function dg(e,n){return n?n.reduce((t,u)=>t?.[u],e):e}function fg(e){const n=Object.keys(e),t=n.map(u=>e[u]);return Promise.all(t).then(u=>{const i={};for(let r=0;r<n.length;r++)i[n[r]]=u[r];return i})}function mg(e=10){const n="abcdefghijklmnopqrstuvwxyz";let t="";for(let u=0;u<e;u++)t+=n[Math.floor(Math.random()*n.length)];return t}function Yn(e){return JSON.stringify(e)}var Wr=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function Vt(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var c0=ji(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function qt(e){if(Vt(e)===!1)return!1;const n=e.constructor;if(n===void 0)return!0;const t=n.prototype;return!(Vt(t)===!1||Object.prototype.hasOwnProperty.call(t,"isPrototypeOf")===!1)}function vg(e){let n=0;for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&n++;return n}var pg=e=>{const n=typeof e;switch(n){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: ${n}`)}},Zi=new Set(["string","number","symbol"]),l0=new Set(["string","number","bigint","boolean","symbol","undefined"]);function $n(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ve(e,n,t){const u=new e._zod.constr(n??e._zod.def);return(!n||t?.parent)&&(u._zod.parent=e),u}function S(e){const n=e;if(!n)return{};if(typeof n=="string")return{error:()=>n};if(n?.message!==void 0){if(n?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");n.error=n.message}return delete n.message,typeof n.error=="string"?{...n,error:()=>n.error}:n}function hg(e){let n;return new Proxy({},{get(t,u,i){return n??(n=e()),Reflect.get(n,u,i)},set(t,u,i,r){return n??(n=e()),Reflect.set(n,u,i,r)},has(t,u){return n??(n=e()),Reflect.has(n,u)},deleteProperty(t,u){return n??(n=e()),Reflect.deleteProperty(n,u)},ownKeys(t){return n??(n=e()),Reflect.ownKeys(n)},getOwnPropertyDescriptor(t,u){return n??(n=e()),Reflect.getOwnPropertyDescriptor(n,u)},defineProperty(t,u,i){return n??(n=e()),Reflect.defineProperty(n,u,i)}})}function L(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function d0(e){return Object.keys(e).filter(n=>e[n]._zod.optin==="optional"&&e[n]._zod.optout==="optional")}var f0={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]},m0={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function gg(e,n){const t={},u=e._zod.def;for(const i in n){if(!(i in u.shape))throw new Error(`Unrecognized key: "${i}"`);n[i]&&(t[i]=u.shape[i])}return Ve(e,{...e._zod.def,shape:t,checks:[]})}function Eg(e,n){const t={...e._zod.def.shape},u=e._zod.def;for(const i in n){if(!(i in u.shape))throw new Error(`Unrecognized key: "${i}"`);n[i]&&delete t[i]}return Ve(e,{...e._zod.def,shape:t,checks:[]})}function yg(e,n){if(!qt(n))throw new Error("Invalid input to extend: expected a plain object");const t={...e._zod.def,get shape(){const u={...e._zod.def.shape,...n};return Qr(this,"shape",u),u},checks:[]};return Ve(e,t)}function bg(e,n){return Ve(e,{...e._zod.def,get shape(){const t={...e._zod.def.shape,...n._zod.def.shape};return Qr(this,"shape",t),t},catchall:n._zod.def.catchall,checks:[]})}function kg(e,n,t){const u=n._zod.def.shape,i={...u};if(t)for(const r in t){if(!(r in u))throw new Error(`Unrecognized key: "${r}"`);t[r]&&(i[r]=e?new e({type:"optional",innerType:u[r]}):u[r])}else for(const r in u)i[r]=e?new e({type:"optional",innerType:u[r]}):u[r];return Ve(n,{...n._zod.def,shape:i,checks:[]})}function Dg(e,n,t){const u=n._zod.def.shape,i={...u};if(t)for(const r in t){if(!(r in i))throw new Error(`Unrecognized key: "${r}"`);t[r]&&(i[r]=new e({type:"nonoptional",innerType:u[r]}))}else for(const r in u)i[r]=new e({type:"nonoptional",innerType:u[r]});return Ve(n,{...n._zod.def,shape:i,checks:[]})}function Xn(e,n=0){for(let t=n;t<e.issues.length;t++)if(e.issues[t]?.continue!==!0)return!0;return!1}function Ie(e,n){return n.map(t=>{var u;return(u=t).path??(u.path=[]),t.path.unshift(e),t})}function Mt(e){return typeof e=="string"?e:e?.message}function je(e,n,t){const u={...e,path:e.path??[]};if(!e.message){const i=Mt(e.inst?._zod.def?.error?.(e))??Mt(n?.error?.(e))??Mt(t.customError?.(e))??Mt(t.localeError?.(e))??"Invalid input";u.message=i}return delete u.inst,delete u.continue,n?.reportInput||delete u.input,u}function Vi(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function qi(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function v0(...e){const[n,t,u]=e;return typeof n=="string"?{message:n,code:"custom",input:t,inst:u}:{...n}}function Sg(e){return Object.entries(e).filter(([n,t])=>Number.isNaN(Number.parseInt(n,10))).map(n=>n[1])}var Bg=class{constructor(...e){}},p0=(e,n)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:n,enumerable:!1}),Object.defineProperty(e,"message",{get(){return JSON.stringify(n,o0,2)},enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Yr=p("$ZodError",p0),Gt=p("$ZodError",p0,{Parent:Error});function Xr(e,n=t=>t.message){const t={},u=[];for(const i of e.issues)i.path.length>0?(t[i.path[0]]=t[i.path[0]]||[],t[i.path[0]].push(n(i))):u.push(n(i));return{formErrors:u,fieldErrors:t}}function ea(e,n){const t=n||function(r){return r.message},u={_errors:[]},i=r=>{for(const a of r.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(o=>i({issues:o}));else if(a.code==="invalid_key")i({issues:a.issues});else if(a.code==="invalid_element")i({issues:a.issues});else if(a.path.length===0)u._errors.push(t(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(t(a))):o[c]=o[c]||{_errors:[]},o=o[c],s++}}};return i(e),u}function h0(e,n){const t=n||function(r){return r.message},u={errors:[]},i=(r,a=[])=>{var o,s;for(const c of r.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(l=>i({issues:l},c.path));else if(c.code==="invalid_key")i({issues:c.issues},c.path);else if(c.code==="invalid_element")i({issues:c.issues},c.path);else{const l=[...a,...c.path];if(l.length===0){u.errors.push(t(c));continue}let f=u,m=0;for(;m<l.length;){const d=l[m],v=m===l.length-1;typeof d=="string"?(f.properties??(f.properties={}),(o=f.properties)[d]??(o[d]={errors:[]}),f=f.properties[d]):(f.items??(f.items=[]),(s=f.items)[d]??(s[d]={errors:[]}),f=f.items[d]),v&&f.errors.push(t(c)),m++}}};return i(e),u}function g0(e){const n=[];for(const t of e)typeof t=="number"?n.push(`[${t}]`):typeof t=="symbol"?n.push(`[${JSON.stringify(String(t))}]`):/[^\w$]/.test(t)?n.push(`[${JSON.stringify(t)}]`):(n.length&&n.push("."),n.push(t));return n.join("")}function E0(e){const n=[],t=[...e.issues].sort((u,i)=>u.path.length-i.path.length);for(const u of t)n.push(`\u2716 ${u.message}`),u.path?.length&&n.push(` \u2192 at ${g0(u.path)}`);return n.join(`
|
|
174
|
+
`)}var na=e=>(n,t,u,i)=>{const r=u?Object.assign(u,{async:!1}):{async:!1},a=n._zod.run({value:t,issues:[]},r);if(a instanceof Promise)throw new Wn;if(a.issues.length){const o=new(i?.Err??e)(a.issues.map(s=>je(s,r,ye())));throw Wr(o,i?.callee),o}return a.value},ta=na(Gt),ia=e=>async(n,t,u,i)=>{const r=u?Object.assign(u,{async:!0}):{async:!0};let a=n._zod.run({value:t,issues:[]},r);if(a instanceof Promise&&(a=await a),a.issues.length){const o=new(i?.Err??e)(a.issues.map(s=>je(s,r,ye())));throw Wr(o,i?.callee),o}return a.value},ua=ia(Gt),ra=e=>(n,t,u)=>{const i=u?{...u,async:!1}:{async:!1},r=n._zod.run({value:t,issues:[]},i);if(r instanceof Promise)throw new Wn;return r.issues.length?{success:!1,error:new(e??Yr)(r.issues.map(a=>je(a,i,ye())))}:{success:!0,data:r.value}},y0=ra(Gt),aa=e=>async(n,t,u)=>{const i=u?Object.assign(u,{async:!0}):{async:!0};let r=n._zod.run({value:t,issues:[]},i);return r instanceof Promise&&(r=await r),r.issues.length?{success:!1,error:new e(r.issues.map(a=>je(a,i,ye())))}:{success:!0,data:r.value}},b0=aa(Gt),oa={};Dn(oa,{base64:()=>O0,base64url:()=>sa,bigint:()=>q0,boolean:()=>J0,browserEmail:()=>Fg,cidrv4:()=>N0,cidrv6:()=>T0,cuid:()=>k0,cuid2:()=>D0,date:()=>R0,datetime:()=>Z0,domain:()=>Tg,duration:()=>_0,e164:()=>U0,email:()=>$0,emoji:()=>x0,extendedDuration:()=>Ag,guid:()=>C0,hostname:()=>z0,html5Email:()=>$g,integer:()=>M0,ipv4:()=>I0,ipv6:()=>F0,ksuid:()=>A0,lowercase:()=>Q0,nanoid:()=>w0,null:()=>H0,number:()=>G0,rfc5322Email:()=>xg,string:()=>V0,time:()=>L0,ulid:()=>S0,undefined:()=>K0,unicodeEmail:()=>Ig,uppercase:()=>W0,uuid:()=>et,uuid4:()=>wg,uuid6:()=>_g,uuid7:()=>Cg,xid:()=>B0});var k0=/^[cC][^\s-]{8,}$/,D0=/^[0-9a-z]+$/,S0=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,B0=/^[0-9a-vA-V]{20}$/,A0=/^[A-Za-z0-9]{27}$/,w0=/^[a-zA-Z0-9_-]{21}$/,_0=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Ag=/^[-+]?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)?)??$/,C0=/^([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})$/,et=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)$/,wg=et(4),_g=et(6),Cg=et(7),$0=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,$g=/^[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])?)*$/,xg=/^(([^<>()\[\]\\.,;:\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,}))$/,Ig=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Fg=/^[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])?)*$/,Ng="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function x0(){return new RegExp(Ng,"u")}var I0=/^(?:(?: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])$/,F0=/^(([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})$/,N0=/^((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])$/,T0=/^(([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])$/,O0=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,sa=/^[A-Za-z0-9_-]*$/,z0=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,Tg=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,U0=/^\+(?:[0-9]){6,14}[0-9]$/,P0="(?:(?:\\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])))",R0=new RegExp(`^${P0}$`);function j0(e){const n="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${n}`:e.precision===0?`${n}:[0-5]\\d`:`${n}:[0-5]\\d\\.\\d{${e.precision}}`:`${n}(?::[0-5]\\d(?:\\.\\d+)?)?`}function L0(e){return new RegExp(`^${j0(e)}$`)}function Z0(e){const n=j0({precision:e.precision}),t=["Z"];e.local&&t.push(""),e.offset&&t.push("([+-]\\d{2}:\\d{2})");const u=`${n}(?:${t.join("|")})`;return new RegExp(`^${P0}T(?:${u})$`)}var V0=e=>{const n=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${n}$`)},q0=/^\d+n?$/,M0=/^\d+$/,G0=/^-?\d+(?:\.\d+)?/i,J0=/true|false/i,H0=/null/i,K0=/undefined/i,Q0=/^[^A-Z]*$/,W0=/^[^a-z]*$/,ie=p("$ZodCheck",(e,n)=>{var t;e._zod??(e._zod={}),e._zod.def=n,(t=e._zod).onattach??(t.onattach=[])}),Y0={number:"number",bigint:"bigint",object:"date"},ca=p("$ZodCheckLessThan",(e,n)=>{ie.init(e,n);const t=Y0[typeof n.value];e._zod.onattach.push(u=>{const i=u._zod.bag,r=(n.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;n.value<r&&(n.inclusive?i.maximum=n.value:i.exclusiveMaximum=n.value)}),e._zod.check=u=>{(n.inclusive?u.value<=n.value:u.value<n.value)||u.issues.push({origin:t,code:"too_big",maximum:n.value,input:u.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),la=p("$ZodCheckGreaterThan",(e,n)=>{ie.init(e,n);const t=Y0[typeof n.value];e._zod.onattach.push(u=>{const i=u._zod.bag,r=(n.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;n.value>r&&(n.inclusive?i.minimum=n.value:i.exclusiveMinimum=n.value)}),e._zod.check=u=>{(n.inclusive?u.value>=n.value:u.value>n.value)||u.issues.push({origin:t,code:"too_small",minimum:n.value,input:u.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),X0=p("$ZodCheckMultipleOf",(e,n)=>{ie.init(e,n),e._zod.onattach.push(t=>{var u;(u=t._zod.bag).multipleOf??(u.multipleOf=n.value)}),e._zod.check=t=>{if(typeof t.value!=typeof n.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof t.value=="bigint"?t.value%n.value===BigInt(0):s0(t.value,n.value)===0)||t.issues.push({origin:typeof t.value,code:"not_multiple_of",divisor:n.value,input:t.value,inst:e,continue:!n.abort})}}),el=p("$ZodCheckNumberFormat",(e,n)=>{ie.init(e,n),n.format=n.format||"float64";const t=n.format?.includes("int"),u=t?"int":"number",[i,r]=f0[n.format];e._zod.onattach.push(a=>{const o=a._zod.bag;o.format=n.format,o.minimum=i,o.maximum=r,t&&(o.pattern=M0)}),e._zod.check=a=>{const o=a.value;if(t){if(!Number.isInteger(o)){a.issues.push({expected:u,format:n.format,code:"invalid_type",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,continue:!n.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,continue:!n.abort});return}}o<i&&a.issues.push({origin:"number",input:o,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!n.abort}),o>r&&a.issues.push({origin:"number",input:o,code:"too_big",maximum:r,inst:e})}}),nl=p("$ZodCheckBigIntFormat",(e,n)=>{ie.init(e,n);const[t,u]=m0[n.format];e._zod.onattach.push(i=>{const r=i._zod.bag;r.format=n.format,r.minimum=t,r.maximum=u}),e._zod.check=i=>{const r=i.value;r<t&&i.issues.push({origin:"bigint",input:r,code:"too_small",minimum:t,inclusive:!0,inst:e,continue:!n.abort}),r>u&&i.issues.push({origin:"bigint",input:r,code:"too_big",maximum:u,inst:e})}}),tl=p("$ZodCheckMaxSize",(e,n)=>{var t;ie.init(e,n),(t=e._zod.def).when??(t.when=u=>{const i=u.value;return!Cn(i)&&i.size!==void 0}),e._zod.onattach.push(u=>{const i=u._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum<i&&(u._zod.bag.maximum=n.maximum)}),e._zod.check=u=>{const i=u.value;i.size<=n.maximum||u.issues.push({origin:Vi(i),code:"too_big",maximum:n.maximum,input:i,inst:e,continue:!n.abort})}}),il=p("$ZodCheckMinSize",(e,n)=>{var t;ie.init(e,n),(t=e._zod.def).when??(t.when=u=>{const i=u.value;return!Cn(i)&&i.size!==void 0}),e._zod.onattach.push(u=>{const i=u._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>i&&(u._zod.bag.minimum=n.minimum)}),e._zod.check=u=>{const i=u.value;i.size>=n.minimum||u.issues.push({origin:Vi(i),code:"too_small",minimum:n.minimum,input:i,inst:e,continue:!n.abort})}}),ul=p("$ZodCheckSizeEquals",(e,n)=>{var t;ie.init(e,n),(t=e._zod.def).when??(t.when=u=>{const i=u.value;return!Cn(i)&&i.size!==void 0}),e._zod.onattach.push(u=>{const i=u._zod.bag;i.minimum=n.size,i.maximum=n.size,i.size=n.size}),e._zod.check=u=>{const i=u.value,r=i.size;if(r===n.size)return;const a=r>n.size;u.issues.push({origin:Vi(i),...a?{code:"too_big",maximum:n.size}:{code:"too_small",minimum:n.size},inclusive:!0,exact:!0,input:u.value,inst:e,continue:!n.abort})}}),rl=p("$ZodCheckMaxLength",(e,n)=>{var t;ie.init(e,n),(t=e._zod.def).when??(t.when=u=>{const i=u.value;return!Cn(i)&&i.length!==void 0}),e._zod.onattach.push(u=>{const i=u._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum<i&&(u._zod.bag.maximum=n.maximum)}),e._zod.check=u=>{const i=u.value;if(i.length<=n.maximum)return;const a=qi(i);u.issues.push({origin:a,code:"too_big",maximum:n.maximum,inclusive:!0,input:i,inst:e,continue:!n.abort})}}),al=p("$ZodCheckMinLength",(e,n)=>{var t;ie.init(e,n),(t=e._zod.def).when??(t.when=u=>{const i=u.value;return!Cn(i)&&i.length!==void 0}),e._zod.onattach.push(u=>{const i=u._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>i&&(u._zod.bag.minimum=n.minimum)}),e._zod.check=u=>{const i=u.value;if(i.length>=n.minimum)return;const a=qi(i);u.issues.push({origin:a,code:"too_small",minimum:n.minimum,inclusive:!0,input:i,inst:e,continue:!n.abort})}}),ol=p("$ZodCheckLengthEquals",(e,n)=>{var t;ie.init(e,n),(t=e._zod.def).when??(t.when=u=>{const i=u.value;return!Cn(i)&&i.length!==void 0}),e._zod.onattach.push(u=>{const i=u._zod.bag;i.minimum=n.length,i.maximum=n.length,i.length=n.length}),e._zod.check=u=>{const i=u.value,r=i.length;if(r===n.length)return;const a=qi(i),o=r>n.length;u.issues.push({origin:a,...o?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length},inclusive:!0,exact:!0,input:u.value,inst:e,continue:!n.abort})}}),Jt=p("$ZodCheckStringFormat",(e,n)=>{var t,u;ie.init(e,n),e._zod.onattach.push(i=>{const r=i._zod.bag;r.format=n.format,n.pattern&&(r.patterns??(r.patterns=new Set),r.patterns.add(n.pattern))}),n.pattern?(t=e._zod).check??(t.check=i=>{n.pattern.lastIndex=0,!n.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:n.format,input:i.value,...n.pattern?{pattern:n.pattern.toString()}:{},inst:e,continue:!n.abort})}):(u=e._zod).check??(u.check=()=>{})}),sl=p("$ZodCheckRegex",(e,n)=>{Jt.init(e,n),e._zod.check=t=>{n.pattern.lastIndex=0,!n.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:"regex",input:t.value,pattern:n.pattern.toString(),inst:e,continue:!n.abort})}}),cl=p("$ZodCheckLowerCase",(e,n)=>{n.pattern??(n.pattern=Q0),Jt.init(e,n)}),ll=p("$ZodCheckUpperCase",(e,n)=>{n.pattern??(n.pattern=W0),Jt.init(e,n)}),dl=p("$ZodCheckIncludes",(e,n)=>{ie.init(e,n);const t=$n(n.includes),u=new RegExp(typeof n.position=="number"?`^.{${n.position}}${t}`:t);n.pattern=u,e._zod.onattach.push(i=>{const r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(u)}),e._zod.check=i=>{i.value.includes(n.includes,n.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:n.includes,input:i.value,inst:e,continue:!n.abort})}}),fl=p("$ZodCheckStartsWith",(e,n)=>{ie.init(e,n);const t=new RegExp(`^${$n(n.prefix)}.*`);n.pattern??(n.pattern=t),e._zod.onattach.push(u=>{const i=u._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(t)}),e._zod.check=u=>{u.value.startsWith(n.prefix)||u.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:n.prefix,input:u.value,inst:e,continue:!n.abort})}}),ml=p("$ZodCheckEndsWith",(e,n)=>{ie.init(e,n);const t=new RegExp(`.*${$n(n.suffix)}$`);n.pattern??(n.pattern=t),e._zod.onattach.push(u=>{const i=u._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(t)}),e._zod.check=u=>{u.value.endsWith(n.suffix)||u.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:n.suffix,input:u.value,inst:e,continue:!n.abort})}});function vl(e,n,t){e.issues.length&&n.issues.push(...Ie(t,e.issues))}var pl=p("$ZodCheckProperty",(e,n)=>{ie.init(e,n),e._zod.check=t=>{const u=n.schema._zod.run({value:t.value[n.property],issues:[]},{});if(u instanceof Promise)return u.then(i=>vl(i,t,n.property));vl(u,t,n.property)}}),hl=p("$ZodCheckMimeType",(e,n)=>{ie.init(e,n);const t=new Set(n.mime);e._zod.onattach.push(u=>{u._zod.bag.mime=n.mime}),e._zod.check=u=>{t.has(u.value.type)||u.issues.push({code:"invalid_value",values:n.mime,input:u.value.type,inst:e})}}),gl=p("$ZodCheckOverwrite",(e,n)=>{ie.init(e,n),e._zod.check=t=>{t.value=n.tx(t.value)}}),El=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 t=e.split(`
|
|
175
|
+
`).filter(r=>r),u=Math.min(...t.map(r=>r.length-r.trimStart().length)),i=t.map(r=>r.slice(u)).map(r=>" ".repeat(this.indent*2)+r);for(const r of i)this.content.push(r)}compile(){const e=Function,n=this?.args,u=[...(this?.content??[""]).map(i=>` ${i}`)];return new e(...n,u.join(`
|
|
176
|
+
`))}},yl={major:4,minor:0,patch:5},U=p("$ZodType",(e,n)=>{var t;e??(e={}),e._zod.def=n,e._zod.bag=e._zod.bag||{},e._zod.version=yl;const u=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&u.unshift(e);for(const i of u)for(const r of i._zod.onattach)r(e);if(u.length===0)(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const i=(r,a,o)=>{let s=Xn(r),c;for(const l of a){if(l._zod.def.when){if(!l._zod.def.when(r))continue}else if(s)continue;const f=r.issues.length,m=l._zod.check(r);if(m instanceof Promise&&o?.async===!1)throw new Wn;if(c||m instanceof Promise)c=(c??Promise.resolve()).then(async()=>{await m,r.issues.length!==f&&(s||(s=Xn(r,f)))});else{if(r.issues.length===f)continue;s||(s=Xn(r,f))}}return c?c.then(()=>r):r};e._zod.run=(r,a)=>{const o=e._zod.parse(r,a);if(o instanceof Promise){if(a.async===!1)throw new Wn;return o.then(s=>i(s,u,a))}return i(o,u,a)}}e["~standard"]={validate:i=>{try{const r=y0(e,i);return r.success?{value:r.data}:{issues:r.error?.issues}}catch{return b0(e,i).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}}),Ht=p("$ZodString",(e,n)=>{U.init(e,n),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??V0(e._zod.bag),e._zod.parse=(t,u)=>{if(n.coerce)try{t.value=String(t.value)}catch{}return typeof t.value=="string"||t.issues.push({expected:"string",code:"invalid_type",input:t.value,inst:e}),t}}),W=p("$ZodStringFormat",(e,n)=>{Jt.init(e,n),Ht.init(e,n)}),bl=p("$ZodGUID",(e,n)=>{n.pattern??(n.pattern=C0),W.init(e,n)}),kl=p("$ZodUUID",(e,n)=>{if(n.version){const u={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[n.version];if(u===void 0)throw new Error(`Invalid UUID version: "${n.version}"`);n.pattern??(n.pattern=et(u))}else n.pattern??(n.pattern=et());W.init(e,n)}),Dl=p("$ZodEmail",(e,n)=>{n.pattern??(n.pattern=$0),W.init(e,n)}),Sl=p("$ZodURL",(e,n)=>{W.init(e,n),e._zod.check=t=>{try{const u=t.value,i=new URL(u),r=i.href;n.hostname&&(n.hostname.lastIndex=0,n.hostname.test(i.hostname)||t.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:z0.source,input:t.value,inst:e,continue:!n.abort})),n.protocol&&(n.protocol.lastIndex=0,n.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||t.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:n.protocol.source,input:t.value,inst:e,continue:!n.abort})),!u.endsWith("/")&&r.endsWith("/")?t.value=r.slice(0,-1):t.value=r;return}catch{t.issues.push({code:"invalid_format",format:"url",input:t.value,inst:e,continue:!n.abort})}}}),Bl=p("$ZodEmoji",(e,n)=>{n.pattern??(n.pattern=x0()),W.init(e,n)}),Al=p("$ZodNanoID",(e,n)=>{n.pattern??(n.pattern=w0),W.init(e,n)}),wl=p("$ZodCUID",(e,n)=>{n.pattern??(n.pattern=k0),W.init(e,n)}),_l=p("$ZodCUID2",(e,n)=>{n.pattern??(n.pattern=D0),W.init(e,n)}),Cl=p("$ZodULID",(e,n)=>{n.pattern??(n.pattern=S0),W.init(e,n)}),$l=p("$ZodXID",(e,n)=>{n.pattern??(n.pattern=B0),W.init(e,n)}),xl=p("$ZodKSUID",(e,n)=>{n.pattern??(n.pattern=A0),W.init(e,n)}),Il=p("$ZodISODateTime",(e,n)=>{n.pattern??(n.pattern=Z0(n)),W.init(e,n)}),Fl=p("$ZodISODate",(e,n)=>{n.pattern??(n.pattern=R0),W.init(e,n)}),Nl=p("$ZodISOTime",(e,n)=>{n.pattern??(n.pattern=L0(n)),W.init(e,n)}),Tl=p("$ZodISODuration",(e,n)=>{n.pattern??(n.pattern=_0),W.init(e,n)}),Ol=p("$ZodIPv4",(e,n)=>{n.pattern??(n.pattern=I0),W.init(e,n),e._zod.onattach.push(t=>{const u=t._zod.bag;u.format="ipv4"})}),zl=p("$ZodIPv6",(e,n)=>{n.pattern??(n.pattern=F0),W.init(e,n),e._zod.onattach.push(t=>{const u=t._zod.bag;u.format="ipv6"}),e._zod.check=t=>{try{new URL(`http://[${t.value}]`)}catch{t.issues.push({code:"invalid_format",format:"ipv6",input:t.value,inst:e,continue:!n.abort})}}}),Ul=p("$ZodCIDRv4",(e,n)=>{n.pattern??(n.pattern=N0),W.init(e,n)}),Pl=p("$ZodCIDRv6",(e,n)=>{n.pattern??(n.pattern=T0),W.init(e,n),e._zod.check=t=>{const[u,i]=t.value.split("/");try{if(!i)throw new Error;const r=Number(i);if(`${r}`!==i)throw new Error;if(r<0||r>128)throw new Error;new URL(`http://[${u}]`)}catch{t.issues.push({code:"invalid_format",format:"cidrv6",input:t.value,inst:e,continue:!n.abort})}}});function da(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Rl=p("$ZodBase64",(e,n)=>{n.pattern??(n.pattern=O0),W.init(e,n),e._zod.onattach.push(t=>{t._zod.bag.contentEncoding="base64"}),e._zod.check=t=>{da(t.value)||t.issues.push({code:"invalid_format",format:"base64",input:t.value,inst:e,continue:!n.abort})}});function jl(e){if(!sa.test(e))return!1;const n=e.replace(/[-_]/g,u=>u==="-"?"+":"/"),t=n.padEnd(Math.ceil(n.length/4)*4,"=");return da(t)}var Ll=p("$ZodBase64URL",(e,n)=>{n.pattern??(n.pattern=sa),W.init(e,n),e._zod.onattach.push(t=>{t._zod.bag.contentEncoding="base64url"}),e._zod.check=t=>{jl(t.value)||t.issues.push({code:"invalid_format",format:"base64url",input:t.value,inst:e,continue:!n.abort})}}),Zl=p("$ZodE164",(e,n)=>{n.pattern??(n.pattern=U0),W.init(e,n)});function Vl(e,n=null){try{const t=e.split(".");if(t.length!==3)return!1;const[u]=t;if(!u)return!1;const i=JSON.parse(atob(u));return!("typ"in i&&i?.typ!=="JWT"||!i.alg||n&&(!("alg"in i)||i.alg!==n))}catch{return!1}}var ql=p("$ZodJWT",(e,n)=>{W.init(e,n),e._zod.check=t=>{Vl(t.value,n.alg)||t.issues.push({code:"invalid_format",format:"jwt",input:t.value,inst:e,continue:!n.abort})}}),Ml=p("$ZodCustomStringFormat",(e,n)=>{W.init(e,n),e._zod.check=t=>{n.fn(t.value)||t.issues.push({code:"invalid_format",format:n.format,input:t.value,inst:e,continue:!n.abort})}}),fa=p("$ZodNumber",(e,n)=>{U.init(e,n),e._zod.pattern=e._zod.bag.pattern??G0,e._zod.parse=(t,u)=>{if(n.coerce)try{t.value=Number(t.value)}catch{}const i=t.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return t;const r=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return t.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...r?{received:r}:{}}),t}}),Gl=p("$ZodNumber",(e,n)=>{el.init(e,n),fa.init(e,n)}),ma=p("$ZodBoolean",(e,n)=>{U.init(e,n),e._zod.pattern=J0,e._zod.parse=(t,u)=>{if(n.coerce)try{t.value=!!t.value}catch{}const i=t.value;return typeof i=="boolean"||t.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),t}}),va=p("$ZodBigInt",(e,n)=>{U.init(e,n),e._zod.pattern=q0,e._zod.parse=(t,u)=>{if(n.coerce)try{t.value=BigInt(t.value)}catch{}return typeof t.value=="bigint"||t.issues.push({expected:"bigint",code:"invalid_type",input:t.value,inst:e}),t}}),Jl=p("$ZodBigInt",(e,n)=>{nl.init(e,n),va.init(e,n)}),Hl=p("$ZodSymbol",(e,n)=>{U.init(e,n),e._zod.parse=(t,u)=>{const i=t.value;return typeof i=="symbol"||t.issues.push({expected:"symbol",code:"invalid_type",input:i,inst:e}),t}}),Kl=p("$ZodUndefined",(e,n)=>{U.init(e,n),e._zod.pattern=K0,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(t,u)=>{const i=t.value;return typeof i>"u"||t.issues.push({expected:"undefined",code:"invalid_type",input:i,inst:e}),t}}),Ql=p("$ZodNull",(e,n)=>{U.init(e,n),e._zod.pattern=H0,e._zod.values=new Set([null]),e._zod.parse=(t,u)=>{const i=t.value;return i===null||t.issues.push({expected:"null",code:"invalid_type",input:i,inst:e}),t}}),Wl=p("$ZodAny",(e,n)=>{U.init(e,n),e._zod.parse=t=>t}),Mi=p("$ZodUnknown",(e,n)=>{U.init(e,n),e._zod.parse=t=>t}),Yl=p("$ZodNever",(e,n)=>{U.init(e,n),e._zod.parse=(t,u)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)}),Xl=p("$ZodVoid",(e,n)=>{U.init(e,n),e._zod.parse=(t,u)=>{const i=t.value;return typeof i>"u"||t.issues.push({expected:"void",code:"invalid_type",input:i,inst:e}),t}}),ed=p("$ZodDate",(e,n)=>{U.init(e,n),e._zod.parse=(t,u)=>{if(n.coerce)try{t.value=new Date(t.value)}catch{}const i=t.value,r=i instanceof Date;return r&&!Number.isNaN(i.getTime())||t.issues.push({expected:"date",code:"invalid_type",input:i,...r?{received:"Invalid Date"}:{},inst:e}),t}});function nd(e,n,t){e.issues.length&&n.issues.push(...Ie(t,e.issues)),n.value[t]=e.value}var pa=p("$ZodArray",(e,n)=>{U.init(e,n),e._zod.parse=(t,u)=>{const i=t.value;if(!Array.isArray(i))return t.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),t;t.value=Array(i.length);const r=[];for(let a=0;a<i.length;a++){const o=i[a],s=n.element._zod.run({value:o,issues:[]},u);s instanceof Promise?r.push(s.then(c=>nd(c,t,a))):nd(s,t,a)}return r.length?Promise.all(r).then(()=>t):t}});function Gi(e,n,t){e.issues.length&&n.issues.push(...Ie(t,e.issues)),n.value[t]=e.value}function td(e,n,t,u){e.issues.length?u[t]===void 0?t in u?n.value[t]=void 0:n.value[t]=e.value:n.issues.push(...Ie(t,e.issues)):e.value===void 0?t in u&&(n.value[t]=void 0):n.value[t]=e.value}var id=p("$ZodObject",(e,n)=>{U.init(e,n);const t=ji(()=>{const f=Object.keys(n.shape);for(const d of f)if(!(n.shape[d]instanceof U))throw new Error(`Invalid element at key "${d}": expected a Zod schema`);const m=d0(n.shape);return{shape:n.shape,keys:f,keySet:new Set(f),numKeys:f.length,optionalKeys:new Set(m)}});H(e._zod,"propValues",()=>{const f=n.shape,m={};for(const d in f){const v=f[d]._zod;if(v.values){m[d]??(m[d]=new Set);for(const h of v.values)m[d].add(h)}}return m});const u=f=>{const m=new El(["shape","payload","ctx"]),d=t.value,v=y=>{const k=Yn(y);return`shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`};m.write("const input = payload.value;");const h=Object.create(null);let E=0;for(const y of d.keys)h[y]=`key_${E++}`;m.write("const newResult = {}");for(const y of d.keys)if(d.optionalKeys.has(y)){const k=h[y];m.write(`const ${k} = ${v(y)};`);const _=Yn(y);m.write(`
|
|
177
|
+
if (${k}.issues.length) {
|
|
178
|
+
if (input[${_}] === undefined) {
|
|
179
|
+
if (${_} in input) {
|
|
180
|
+
newResult[${_}] = undefined;
|
|
181
|
+
}
|
|
182
|
+
} else {
|
|
183
|
+
payload.issues = payload.issues.concat(
|
|
184
|
+
${k}.issues.map((iss) => ({
|
|
185
|
+
...iss,
|
|
186
|
+
path: iss.path ? [${_}, ...iss.path] : [${_}],
|
|
187
|
+
}))
|
|
188
|
+
);
|
|
189
|
+
}
|
|
190
|
+
} else if (${k}.value === undefined) {
|
|
191
|
+
if (${_} in input) newResult[${_}] = undefined;
|
|
192
|
+
} else {
|
|
193
|
+
newResult[${_}] = ${k}.value;
|
|
194
|
+
}
|
|
195
|
+
`)}else{const k=h[y];m.write(`const ${k} = ${v(y)};`),m.write(`
|
|
196
|
+
if (${k}.issues.length) payload.issues = payload.issues.concat(${k}.issues.map(iss => ({
|
|
197
|
+
...iss,
|
|
198
|
+
path: iss.path ? [${Yn(y)}, ...iss.path] : [${Yn(y)}]
|
|
199
|
+
})));`),m.write(`newResult[${Yn(y)}] = ${k}.value`)}m.write("payload.value = newResult;"),m.write("return payload;");const b=m.compile();return(y,k)=>b(f,y,k)};let i;const r=Vt,a=!Ri.jitless,s=a&&c0.value,c=n.catchall;let l;e._zod.parse=(f,m)=>{l??(l=t.value);const d=f.value;if(!r(d))return f.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),f;const v=[];if(a&&s&&m?.async===!1&&m.jitless!==!0)i||(i=u(n.shape)),f=i(f,m);else{f.value={};const k=l.shape;for(const _ of l.keys){const B=k[_],G=B._zod.run({value:d[_],issues:[]},m),V=B._zod.optin==="optional"&&B._zod.optout==="optional";G instanceof Promise?v.push(G.then(F=>V?td(F,f,_,d):Gi(F,f,_))):V?td(G,f,_,d):Gi(G,f,_)}}if(!c)return v.length?Promise.all(v).then(()=>f):f;const h=[],E=l.keySet,b=c._zod,y=b.def.type;for(const k of Object.keys(d)){if(E.has(k))continue;if(y==="never"){h.push(k);continue}const _=b.run({value:d[k],issues:[]},m);_ instanceof Promise?v.push(_.then(B=>Gi(B,f,k))):Gi(_,f,k)}return h.length&&f.issues.push({code:"unrecognized_keys",keys:h,input:d,inst:e}),v.length?Promise.all(v).then(()=>f):f}});function ud(e,n,t,u){for(const i of e)if(i.issues.length===0)return n.value=i.value,n;return n.issues.push({code:"invalid_union",input:n.value,inst:t,errors:e.map(i=>i.issues.map(r=>je(r,u,ye())))}),n}var ha=p("$ZodUnion",(e,n)=>{U.init(e,n),H(e._zod,"optin",()=>n.options.some(t=>t._zod.optin==="optional")?"optional":void 0),H(e._zod,"optout",()=>n.options.some(t=>t._zod.optout==="optional")?"optional":void 0),H(e._zod,"values",()=>{if(n.options.every(t=>t._zod.values))return new Set(n.options.flatMap(t=>Array.from(t._zod.values)))}),H(e._zod,"pattern",()=>{if(n.options.every(t=>t._zod.pattern)){const t=n.options.map(u=>u._zod.pattern);return new RegExp(`^(${t.map(u=>Li(u.source)).join("|")})$`)}}),e._zod.parse=(t,u)=>{let i=!1;const r=[];for(const a of n.options){const o=a._zod.run({value:t.value,issues:[]},u);if(o instanceof Promise)r.push(o),i=!0;else{if(o.issues.length===0)return o;r.push(o)}}return i?Promise.all(r).then(a=>ud(a,t,e,u)):ud(r,t,e,u)}}),rd=p("$ZodDiscriminatedUnion",(e,n)=>{ha.init(e,n);const t=e._zod.parse;H(e._zod,"propValues",()=>{const i={};for(const r of n.options){const a=r._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${n.options.indexOf(r)}"`);for(const[o,s]of Object.entries(a)){i[o]||(i[o]=new Set);for(const c of s)i[o].add(c)}}return i});const u=ji(()=>{const i=n.options,r=new Map;for(const a of i){const o=a._zod.propValues?.[n.discriminator];if(!o||o.size===0)throw new Error(`Invalid discriminated union option at index "${n.options.indexOf(a)}"`);for(const s of o){if(r.has(s))throw new Error(`Duplicate discriminator value "${String(s)}"`);r.set(s,a)}}return r});e._zod.parse=(i,r)=>{const a=i.value;if(!Vt(a))return i.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),i;const o=u.value.get(a?.[n.discriminator]);return o?o._zod.run(i,r):n.unionFallback?t(i,r):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",input:a,path:[n.discriminator],inst:e}),i)}}),ad=p("$ZodIntersection",(e,n)=>{U.init(e,n),e._zod.parse=(t,u)=>{const i=t.value,r=n.left._zod.run({value:i,issues:[]},u),a=n.right._zod.run({value:i,issues:[]},u);return r instanceof Promise||a instanceof Promise?Promise.all([r,a]).then(([s,c])=>od(t,s,c)):od(t,r,a)}});function ga(e,n){if(e===n)return{valid:!0,data:e};if(e instanceof Date&&n instanceof Date&&+e==+n)return{valid:!0,data:e};if(qt(e)&&qt(n)){const t=Object.keys(n),u=Object.keys(e).filter(r=>t.indexOf(r)!==-1),i={...e,...n};for(const r of u){const a=ga(e[r],n[r]);if(!a.valid)return{valid:!1,mergeErrorPath:[r,...a.mergeErrorPath]};i[r]=a.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return{valid:!1,mergeErrorPath:[]};const t=[];for(let u=0;u<e.length;u++){const i=e[u],r=n[u],a=ga(i,r);if(!a.valid)return{valid:!1,mergeErrorPath:[u,...a.mergeErrorPath]};t.push(a.data)}return{valid:!0,data:t}}return{valid:!1,mergeErrorPath:[]}}function od(e,n,t){if(n.issues.length&&e.issues.push(...n.issues),t.issues.length&&e.issues.push(...t.issues),Xn(e))return e;const u=ga(n.value,t.value);if(!u.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(u.mergeErrorPath)}`);return e.value=u.data,e}var Ji=p("$ZodTuple",(e,n)=>{U.init(e,n);const t=n.items,u=t.length-[...t].reverse().findIndex(i=>i._zod.optin!=="optional");e._zod.parse=(i,r)=>{const a=i.value;if(!Array.isArray(a))return i.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),i;i.value=[];const o=[];if(!n.rest){const c=a.length>t.length,l=a.length<u-1;if(c||l)return i.issues.push({input:a,inst:e,origin:"array",...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length}}),i}let s=-1;for(const c of t){if(s++,s>=a.length&&s>=u)continue;const l=c._zod.run({value:a[s],issues:[]},r);l instanceof Promise?o.push(l.then(f=>Hi(f,i,s))):Hi(l,i,s)}if(n.rest){const c=a.slice(t.length);for(const l of c){s++;const f=n.rest._zod.run({value:l,issues:[]},r);f instanceof Promise?o.push(f.then(m=>Hi(m,i,s))):Hi(f,i,s)}}return o.length?Promise.all(o).then(()=>i):i}});function Hi(e,n,t){e.issues.length&&n.issues.push(...Ie(t,e.issues)),n.value[t]=e.value}var sd=p("$ZodRecord",(e,n)=>{U.init(e,n),e._zod.parse=(t,u)=>{const i=t.value;if(!qt(i))return t.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),t;const r=[];if(n.keyType._zod.values){const a=n.keyType._zod.values;t.value={};for(const s of a)if(typeof s=="string"||typeof s=="number"||typeof s=="symbol"){const c=n.valueType._zod.run({value:i[s],issues:[]},u);c instanceof Promise?r.push(c.then(l=>{l.issues.length&&t.issues.push(...Ie(s,l.issues)),t.value[s]=l.value})):(c.issues.length&&t.issues.push(...Ie(s,c.issues)),t.value[s]=c.value)}let o;for(const s in i)a.has(s)||(o=o??[],o.push(s));o&&o.length>0&&t.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:o})}else{t.value={};for(const a of Reflect.ownKeys(i)){if(a==="__proto__")continue;const o=n.keyType._zod.run({value:a,issues:[]},u);if(o instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(o.issues.length){t.issues.push({origin:"record",code:"invalid_key",issues:o.issues.map(c=>je(c,u,ye())),input:a,path:[a],inst:e}),t.value[o.value]=o.value;continue}const s=n.valueType._zod.run({value:i[a],issues:[]},u);s instanceof Promise?r.push(s.then(c=>{c.issues.length&&t.issues.push(...Ie(a,c.issues)),t.value[o.value]=c.value})):(s.issues.length&&t.issues.push(...Ie(a,s.issues)),t.value[o.value]=s.value)}}return r.length?Promise.all(r).then(()=>t):t}}),cd=p("$ZodMap",(e,n)=>{U.init(e,n),e._zod.parse=(t,u)=>{const i=t.value;if(!(i instanceof Map))return t.issues.push({expected:"map",code:"invalid_type",input:i,inst:e}),t;const r=[];t.value=new Map;for(const[a,o]of i){const s=n.keyType._zod.run({value:a,issues:[]},u),c=n.valueType._zod.run({value:o,issues:[]},u);s instanceof Promise||c instanceof Promise?r.push(Promise.all([s,c]).then(([l,f])=>{ld(l,f,t,a,i,e,u)})):ld(s,c,t,a,i,e,u)}return r.length?Promise.all(r).then(()=>t):t}});function ld(e,n,t,u,i,r,a){e.issues.length&&(Zi.has(typeof u)?t.issues.push(...Ie(u,e.issues)):t.issues.push({origin:"map",code:"invalid_key",input:i,inst:r,issues:e.issues.map(o=>je(o,a,ye()))})),n.issues.length&&(Zi.has(typeof u)?t.issues.push(...Ie(u,n.issues)):t.issues.push({origin:"map",code:"invalid_element",input:i,inst:r,key:u,issues:n.issues.map(o=>je(o,a,ye()))})),t.value.set(e.value,n.value)}var dd=p("$ZodSet",(e,n)=>{U.init(e,n),e._zod.parse=(t,u)=>{const i=t.value;if(!(i instanceof Set))return t.issues.push({input:i,inst:e,expected:"set",code:"invalid_type"}),t;const r=[];t.value=new Set;for(const a of i){const o=n.valueType._zod.run({value:a,issues:[]},u);o instanceof Promise?r.push(o.then(s=>fd(s,t))):fd(o,t)}return r.length?Promise.all(r).then(()=>t):t}});function fd(e,n){e.issues.length&&n.issues.push(...e.issues),n.value.add(e.value)}var md=p("$ZodEnum",(e,n)=>{U.init(e,n);const t=Kr(n.entries);e._zod.values=new Set(t),e._zod.pattern=new RegExp(`^(${t.filter(u=>Zi.has(typeof u)).map(u=>typeof u=="string"?$n(u):u.toString()).join("|")})$`),e._zod.parse=(u,i)=>{const r=u.value;return e._zod.values.has(r)||u.issues.push({code:"invalid_value",values:t,input:r,inst:e}),u}}),vd=p("$ZodLiteral",(e,n)=>{U.init(e,n),e._zod.values=new Set(n.values),e._zod.pattern=new RegExp(`^(${n.values.map(t=>typeof t=="string"?$n(t):t?t.toString():String(t)).join("|")})$`),e._zod.parse=(t,u)=>{const i=t.value;return e._zod.values.has(i)||t.issues.push({code:"invalid_value",values:n.values,input:i,inst:e}),t}}),pd=p("$ZodFile",(e,n)=>{U.init(e,n),e._zod.parse=(t,u)=>{const i=t.value;return i instanceof File||t.issues.push({expected:"file",code:"invalid_type",input:i,inst:e}),t}}),Ea=p("$ZodTransform",(e,n)=>{U.init(e,n),e._zod.parse=(t,u)=>{const i=n.transform(t.value,t);if(u.async)return(i instanceof Promise?i:Promise.resolve(i)).then(a=>(t.value=a,t));if(i instanceof Promise)throw new Wn;return t.value=i,t}}),hd=p("$ZodOptional",(e,n)=>{U.init(e,n),e._zod.optin="optional",e._zod.optout="optional",H(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,void 0]):void 0),H(e._zod,"pattern",()=>{const t=n.innerType._zod.pattern;return t?new RegExp(`^(${Li(t.source)})?$`):void 0}),e._zod.parse=(t,u)=>n.innerType._zod.optin==="optional"?n.innerType._zod.run(t,u):t.value===void 0?t:n.innerType._zod.run(t,u)}),gd=p("$ZodNullable",(e,n)=>{U.init(e,n),H(e._zod,"optin",()=>n.innerType._zod.optin),H(e._zod,"optout",()=>n.innerType._zod.optout),H(e._zod,"pattern",()=>{const t=n.innerType._zod.pattern;return t?new RegExp(`^(${Li(t.source)}|null)$`):void 0}),H(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,null]):void 0),e._zod.parse=(t,u)=>t.value===null?t:n.innerType._zod.run(t,u)}),Ed=p("$ZodDefault",(e,n)=>{U.init(e,n),e._zod.optin="optional",H(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(t,u)=>{if(t.value===void 0)return t.value=n.defaultValue,t;const i=n.innerType._zod.run(t,u);return i instanceof Promise?i.then(r=>yd(r,n)):yd(i,n)}});function yd(e,n){return e.value===void 0&&(e.value=n.defaultValue),e}var bd=p("$ZodPrefault",(e,n)=>{U.init(e,n),e._zod.optin="optional",H(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(t,u)=>(t.value===void 0&&(t.value=n.defaultValue),n.innerType._zod.run(t,u))}),kd=p("$ZodNonOptional",(e,n)=>{U.init(e,n),H(e._zod,"values",()=>{const t=n.innerType._zod.values;return t?new Set([...t].filter(u=>u!==void 0)):void 0}),e._zod.parse=(t,u)=>{const i=n.innerType._zod.run(t,u);return i instanceof Promise?i.then(r=>Dd(r,e)):Dd(i,e)}});function Dd(e,n){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:n}),e}var Sd=p("$ZodSuccess",(e,n)=>{U.init(e,n),e._zod.parse=(t,u)=>{const i=n.innerType._zod.run(t,u);return i instanceof Promise?i.then(r=>(t.value=r.issues.length===0,t)):(t.value=i.issues.length===0,t)}}),Bd=p("$ZodCatch",(e,n)=>{U.init(e,n),e._zod.optin="optional",H(e._zod,"optout",()=>n.innerType._zod.optout),H(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(t,u)=>{const i=n.innerType._zod.run(t,u);return i instanceof Promise?i.then(r=>(t.value=r.value,r.issues.length&&(t.value=n.catchValue({...t,error:{issues:r.issues.map(a=>je(a,u,ye()))},input:t.value}),t.issues=[]),t)):(t.value=i.value,i.issues.length&&(t.value=n.catchValue({...t,error:{issues:i.issues.map(r=>je(r,u,ye()))},input:t.value}),t.issues=[]),t)}}),Ad=p("$ZodNaN",(e,n)=>{U.init(e,n),e._zod.parse=(t,u)=>((typeof t.value!="number"||!Number.isNaN(t.value))&&t.issues.push({input:t.value,inst:e,expected:"nan",code:"invalid_type"}),t)}),ya=p("$ZodPipe",(e,n)=>{U.init(e,n),H(e._zod,"values",()=>n.in._zod.values),H(e._zod,"optin",()=>n.in._zod.optin),H(e._zod,"optout",()=>n.out._zod.optout),H(e._zod,"propValues",()=>n.in._zod.propValues),e._zod.parse=(t,u)=>{const i=n.in._zod.run(t,u);return i instanceof Promise?i.then(r=>wd(r,n,u)):wd(i,n,u)}});function wd(e,n,t){return Xn(e)?e:n.out._zod.run({value:e.value,issues:e.issues},t)}var _d=p("$ZodReadonly",(e,n)=>{U.init(e,n),H(e._zod,"propValues",()=>n.innerType._zod.propValues),H(e._zod,"values",()=>n.innerType._zod.values),H(e._zod,"optin",()=>n.innerType._zod.optin),H(e._zod,"optout",()=>n.innerType._zod.optout),e._zod.parse=(t,u)=>{const i=n.innerType._zod.run(t,u);return i instanceof Promise?i.then(Cd):Cd(i)}});function Cd(e){return e.value=Object.freeze(e.value),e}var $d=p("$ZodTemplateLiteral",(e,n)=>{U.init(e,n);const t=[];for(const u of n.parts)if(u instanceof U){if(!u._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...u._zod.traits].shift()}`);const i=u._zod.pattern instanceof RegExp?u._zod.pattern.source:u._zod.pattern;if(!i)throw new Error(`Invalid template literal part: ${u._zod.traits}`);const r=i.startsWith("^")?1:0,a=i.endsWith("$")?i.length-1:i.length;t.push(i.slice(r,a))}else if(u===null||l0.has(typeof u))t.push($n(`${u}`));else throw new Error(`Invalid template literal part: ${u}`);e._zod.pattern=new RegExp(`^${t.join("")}$`),e._zod.parse=(u,i)=>typeof u.value!="string"?(u.issues.push({input:u.value,inst:e,expected:"template_literal",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:n.format??"template_literal",pattern:e._zod.pattern.source}),u)}),xd=p("$ZodPromise",(e,n)=>{U.init(e,n),e._zod.parse=(t,u)=>Promise.resolve(t.value).then(i=>n.innerType._zod.run({value:i,issues:[]},u))}),Id=p("$ZodLazy",(e,n)=>{U.init(e,n),H(e._zod,"innerType",()=>n.getter()),H(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),H(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),H(e._zod,"optin",()=>e._zod.innerType._zod.optin),H(e._zod,"optout",()=>e._zod.innerType._zod.optout),e._zod.parse=(t,u)=>e._zod.innerType._zod.run(t,u)}),Fd=p("$ZodCustom",(e,n)=>{ie.init(e,n),U.init(e,n),e._zod.parse=(t,u)=>t,e._zod.check=t=>{const u=t.value,i=n.fn(u);if(i instanceof Promise)return i.then(r=>Nd(r,t,u,e));Nd(i,t,u,e)}});function Nd(e,n,t,u){if(!e){const i={code:"custom",input:t,inst:u,path:[...u._zod.def.path??[]],continue:!u._zod.def.abort};u._zod.def.params&&(i.params=u._zod.def.params),n.issues.push(v0(i))}}var ba={};Dn(ba,{ar:()=>zg,az:()=>Pg,be:()=>jg,ca:()=>Zg,cs:()=>qg,de:()=>Gg,en:()=>Od,eo:()=>Wg,es:()=>Xg,fa:()=>n6,fi:()=>i6,fr:()=>r6,frCA:()=>o6,he:()=>c6,hu:()=>d6,id:()=>m6,it:()=>p6,ja:()=>g6,kh:()=>y6,ko:()=>k6,mk:()=>S6,ms:()=>A6,nl:()=>_6,no:()=>$6,ota:()=>I6,pl:()=>O6,ps:()=>N6,pt:()=>U6,ru:()=>R6,sl:()=>L6,sv:()=>V6,ta:()=>M6,th:()=>J6,tr:()=>Q6,ua:()=>Y6,ur:()=>e3,vi:()=>t3,zhCN:()=>u3,zhTW:()=>a3});var Og=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`\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.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${t(i.input)}`;case"invalid_value":return i.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 ${L(i.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: ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.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 ${i.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${r} ${i.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 ${i.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${r} ${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${i.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${r} ${i.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${i.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${r} ${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.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 "${i.prefix}"`:r.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 "${r.suffix}"`:r.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 "${r.includes}"`:r.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 ${r.pattern}`:`${u[r.format]??i.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 ${i.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${i.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${i.keys.length>1?"\u0629":""}: ${w(i.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${i.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 ${i.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function zg(){return{localeError:Og()}}var Ug=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${i.expected}, daxil olan ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${L(i.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${i.origin??"d\u0259y\u0259r"} ${r}${i.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${i.origin??"d\u0259y\u0259r"} ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${i.origin} ${r}${i.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${i.origin} ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${r.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:r.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${r.suffix}" il\u0259 bitm\u0259lidir`:r.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${r.includes}" daxil olmal\u0131d\u0131r`:r.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${r.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${u[r.format]??i.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${i.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${i.keys.length>1?"lar":""}: ${w(i.keys,", ")}`;case"invalid_key":return`${i.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${i.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function Pg(){return{localeError:Ug()}}function Td(e,n,t,u){const i=Math.abs(e),r=i%10,a=i%100;return a>=11&&a<=19?u:r===1?n:r>=2&&r<=4?t:u}var Rg=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"\u043B\u0456\u043A";case"object":{if(Array.isArray(i))return"\u043C\u0430\u0441\u0456\u045E";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${i.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${t(i.input)}`;case"invalid_value":return i.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 ${L(i.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 ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);if(a){const o=Number(i.maximum),s=Td(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 ${i.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${r}${i.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 ${i.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);if(a){const o=Number(i.minimum),s=Td(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 ${i.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${r}${i.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 ${i.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.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 "${r.prefix}"`:r.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 "${r.suffix}"`:r.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 "${r.includes}"`:r.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 ${r.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${u[r.format]??i.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 ${i.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${i.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${w(i.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${i.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 ${i.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function jg(){return{localeError:Rg()}}var Lg=()=>{const e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`Tipus inv\xE0lid: s'esperava ${i.expected}, s'ha rebut ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Valor inv\xE0lid: s'esperava ${L(i.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${w(i.values," o ")}`;case"too_big":{const r=i.inclusive?"com a m\xE0xim":"menys de",a=n(i.origin);return a?`Massa gran: s'esperava que ${i.origin??"el valor"} contingu\xE9s ${r} ${i.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${i.origin??"el valor"} fos ${r} ${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?"com a m\xEDnim":"m\xE9s de",a=n(i.origin);return a?`Massa petit: s'esperava que ${i.origin} contingu\xE9s ${r} ${i.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${i.origin} fos ${r} ${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${r.prefix}"`:r.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${r.suffix}"`:r.format==="includes"?`Format inv\xE0lid: ha d'incloure "${r.includes}"`:r.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${r.pattern}`:`Format inv\xE0lid per a ${u[r.format]??i.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${i.divisor}`;case"unrecognized_keys":return`Clau${i.keys.length>1?"s":""} no reconeguda${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${i.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${i.origin}`;default:return"Entrada inv\xE0lida"}}};function Zg(){return{localeError:Lg()}}var Vg=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"\u010D\xEDslo";case"string":return"\u0159et\u011Bzec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":{if(Array.isArray(i))return"pole";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${i.expected}, obdr\u017Eeno ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${L(i.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${i.origin??"hodnota"} mus\xED m\xEDt ${r}${i.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${i.origin??"hodnota"} mus\xED b\xFDt ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${i.origin??"hodnota"} mus\xED m\xEDt ${r}${i.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${i.origin??"hodnota"} mus\xED b\xFDt ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${r.prefix}"`:r.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${r.suffix}"`:r.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${r.includes}"`:r.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${r.pattern}`:`Neplatn\xFD form\xE1t ${u[r.format]??i.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${i.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${w(i.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${i.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${i.origin}`;default:return"Neplatn\xFD vstup"}}};function qg(){return{localeError:Vg()}}var Mg=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"Zahl";case"object":{if(Array.isArray(i))return"Array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`Ung\xFCltige Eingabe: erwartet ${i.expected}, erhalten ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Ung\xFCltige Eingabe: erwartet ${L(i.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`Zu gro\xDF: erwartet, dass ${i.origin??"Wert"} ${r}${i.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${i.origin??"Wert"} ${r}${i.maximum.toString()} ist`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`Zu klein: erwartet, dass ${i.origin} ${r}${i.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${i.origin} ${r}${i.minimum.toString()} ist`}case"invalid_format":{const r=i;return r.format==="starts_with"?`Ung\xFCltiger String: muss mit "${r.prefix}" beginnen`:r.format==="ends_with"?`Ung\xFCltiger String: muss mit "${r.suffix}" enden`:r.format==="includes"?`Ung\xFCltiger String: muss "${r.includes}" enthalten`:r.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${r.pattern} entsprechen`:`Ung\xFCltig: ${u[r.format]??i.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${i.divisor} sein`;case"unrecognized_keys":return`${i.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${w(i.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${i.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${i.origin}`;default:return"Ung\xFCltige Eingabe"}}};function Gg(){return{localeError:Mg()}}var Jg=e=>{const n=typeof e;switch(n){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return n},Hg=()=>{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"}};function n(u){return e[u]??null}const t={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"};return u=>{switch(u.code){case"invalid_type":return`Invalid input: expected ${u.expected}, received ${Jg(u.input)}`;case"invalid_value":return u.values.length===1?`Invalid input: expected ${L(u.values[0])}`:`Invalid option: expected one of ${w(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",r=n(u.origin);return r?`Too big: expected ${u.origin??"value"} to have ${i}${u.maximum.toString()} ${r.unit??"elements"}`:`Too big: expected ${u.origin??"value"} to be ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",r=n(u.origin);return r?`Too small: expected ${u.origin} to have ${i}${u.minimum.toString()} ${r.unit}`:`Too small: expected ${u.origin} to be ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;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 ${t[i.format]??u.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${u.divisor}`;case"unrecognized_keys":return`Unrecognized key${u.keys.length>1?"s":""}: ${w(u.keys,", ")}`;case"invalid_key":return`Invalid key in ${u.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${u.origin}`;default:return"Invalid input"}}};function Od(){return{localeError:Hg()}}var Kg=e=>{const n=typeof e;switch(n){case"number":return Number.isNaN(e)?"NaN":"nombro";case"object":{if(Array.isArray(e))return"tabelo";if(e===null)return"senvalora";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return n},Qg=()=>{const e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function n(u){return e[u]??null}const t={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"};return u=>{switch(u.code){case"invalid_type":return`Nevalida enigo: atendi\u011Dis ${u.expected}, ricevi\u011Dis ${Kg(u.input)}`;case"invalid_value":return u.values.length===1?`Nevalida enigo: atendi\u011Dis ${L(u.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${w(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",r=n(u.origin);return r?`Tro granda: atendi\u011Dis ke ${u.origin??"valoro"} havu ${i}${u.maximum.toString()} ${r.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${u.origin??"valoro"} havu ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",r=n(u.origin);return r?`Tro malgranda: atendi\u011Dis ke ${u.origin} havu ${i}${u.minimum.toString()} ${r.unit}`:`Tro malgranda: atendi\u011Dis ke ${u.origin} estu ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;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 ${t[i.format]??u.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${u.divisor}`;case"unrecognized_keys":return`Nekonata${u.keys.length>1?"j":""} \u015Dlosilo${u.keys.length>1?"j":""}: ${w(u.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${u.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${u.origin}`;default:return"Nevalida enigo"}}};function Wg(){return{localeError:Qg()}}var Yg=()=>{const e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"n\xFAmero";case"object":{if(Array.isArray(i))return"arreglo";if(i===null)return"nulo";if(Object.getPrototypeOf(i)!==Object.prototype)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`Entrada inv\xE1lida: se esperaba ${i.expected}, recibido ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Entrada inv\xE1lida: se esperaba ${L(i.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`Demasiado grande: se esperaba que ${i.origin??"valor"} tuviera ${r}${i.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${i.origin??"valor"} fuera ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`Demasiado peque\xF1o: se esperaba que ${i.origin} tuviera ${r}${i.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${i.origin} fuera ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${r.prefix}"`:r.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${r.suffix}"`:r.format==="includes"?`Cadena inv\xE1lida: debe incluir "${r.includes}"`:r.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${r.pattern}`:`Inv\xE1lido ${u[r.format]??i.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${i.divisor}`;case"unrecognized_keys":return`Llave${i.keys.length>1?"s":""} desconocida${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${i.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${i.origin}`;default:return"Entrada inv\xE1lida"}}};function Xg(){return{localeError:Yg()}}var e6=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"\u0639\u062F\u062F";case"object":{if(Array.isArray(i))return"\u0622\u0631\u0627\u06CC\u0647";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${i.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${t(i.input)} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`;case"invalid_value":return i.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${L(i.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 ${w(i.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${i.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${r}${i.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${i.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${r}${i.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${i.origin} \u0628\u0627\u06CC\u062F ${r}${i.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${i.origin} \u0628\u0627\u06CC\u062F ${r}${i.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{const r=i;return r.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${r.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:r.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${r.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:r.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${r.includes}" \u0628\u0627\u0634\u062F`:r.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${r.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${u[r.format]??i.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 ${i.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${i.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${w(i.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${i.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 ${i.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function n6(){return{localeError:e6()}}var t6=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${i.expected}, oli ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${L(i.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${r}${i.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${r}${i.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${r.prefix}"`:r.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${r.suffix}"`:r.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${r.includes}"`:r.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${r.pattern}`:`Virheellinen ${u[r.format]??i.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${i.divisor} monikerta`;case"unrecognized_keys":return`${i.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${w(i.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 i6(){return{localeError:t6()}}var u6=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"nombre";case"object":{if(Array.isArray(i))return"tableau";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`Entr\xE9e invalide : ${i.expected} attendu, ${t(i.input)} re\xE7u`;case"invalid_value":return i.values.length===1?`Entr\xE9e invalide : ${L(i.values[0])} attendu`:`Option invalide : une valeur parmi ${w(i.values,"|")} attendue`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`Trop grand : ${i.origin??"valeur"} doit ${a.verb} ${r}${i.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${i.origin??"valeur"} doit \xEAtre ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`Trop petit : ${i.origin} doit ${a.verb} ${r}${i.minimum.toString()} ${a.unit}`:`Trop petit : ${i.origin} doit \xEAtre ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${r.prefix}"`:r.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${r.suffix}"`:r.format==="includes"?`Cha\xEEne invalide : doit inclure "${r.includes}"`:r.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${r.pattern}`:`${u[r.format]??i.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${i.divisor}`;case"unrecognized_keys":return`Cl\xE9${i.keys.length>1?"s":""} non reconnue${i.keys.length>1?"s":""} : ${w(i.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${i.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${i.origin}`;default:return"Entr\xE9e invalide"}}};function r6(){return{localeError:u6()}}var a6=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`Entr\xE9e invalide : attendu ${i.expected}, re\xE7u ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Entr\xE9e invalide : attendu ${L(i.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"\u2264":"<",a=n(i.origin);return a?`Trop grand : attendu que ${i.origin??"la valeur"} ait ${r}${i.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${i.origin??"la valeur"} soit ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?"\u2265":">",a=n(i.origin);return a?`Trop petit : attendu que ${i.origin} ait ${r}${i.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${i.origin} soit ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${r.prefix}"`:r.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${r.suffix}"`:r.format==="includes"?`Cha\xEEne invalide : doit inclure "${r.includes}"`:r.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${r.pattern}`:`${u[r.format]??i.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${i.divisor}`;case"unrecognized_keys":return`Cl\xE9${i.keys.length>1?"s":""} non reconnue${i.keys.length>1?"s":""} : ${w(i.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${i.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${i.origin}`;default:return"Entr\xE9e invalide"}}};function o6(){return{localeError:a6()}}var s6=()=>{const e={string:{unit:"\u05D0\u05D5\u05EA\u05D9\u05D5\u05EA",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"}};function n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={regex:"\u05E7\u05DC\u05D8",email:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",url:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",emoji:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",date:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",time:"\u05D6\u05DE\u05DF ISO",duration:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",ipv4:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",ipv6:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",cidrv4:"\u05D8\u05D5\u05D5\u05D7 IPv4",cidrv6:"\u05D8\u05D5\u05D5\u05D7 IPv6",base64:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",base64url:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",json_string:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",e164:"\u05DE\u05E1\u05E4\u05E8 E.164",jwt:"JWT",template_literal:"\u05E7\u05DC\u05D8"};return i=>{switch(i.code){case"invalid_type":return`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${i.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${t(i.input)}`;case"invalid_value":return i.values.length===1?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${L(i.values[0])}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05D0\u05D7\u05EA \u05DE\u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${i.origin??"value"} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${r}${i.maximum.toString()} ${a.unit??"elements"}`:`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${i.origin??"value"} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${i.origin} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${r}${i.minimum.toString()} ${a.unit}`:`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${i.origin} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1"${r.prefix}"`:r.format==="ends_with"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${r.suffix}"`:r.format==="includes"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${r.includes}"`:r.format==="regex"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${r.pattern}`:`${u[r.format]??i.format} \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF`}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 ${i.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${i.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${i.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${w(i.keys,", ")}`;case"invalid_key":return`\u05DE\u05E4\u05EA\u05D7 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${i.origin}`;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${i.origin}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function c6(){return{localeError:s6()}}var l6=()=>{const e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"sz\xE1m";case"object":{if(Array.isArray(i))return"t\xF6mb";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${i.expected}, a kapott \xE9rt\xE9k ${t(i.input)}`;case"invalid_value":return i.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${L(i.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`T\xFAl nagy: ${i.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${r}${i.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${i.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${i.origin} m\xE9rete t\xFAl kicsi ${r}${i.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${i.origin} t\xFAl kicsi ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`\xC9rv\xE9nytelen string: "${r.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:r.format==="ends_with"?`\xC9rv\xE9nytelen string: "${r.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:r.format==="includes"?`\xC9rv\xE9nytelen string: "${r.includes}" \xE9rt\xE9ket kell tartalmaznia`:r.format==="regex"?`\xC9rv\xE9nytelen string: ${r.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${u[r.format]??i.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${i.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${i.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${i.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function d6(){return{localeError:l6()}}var f6=()=>{const e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`Input tidak valid: diharapkan ${i.expected}, diterima ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Input tidak valid: diharapkan ${L(i.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`Terlalu besar: diharapkan ${i.origin??"value"} memiliki ${r}${i.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${i.origin??"value"} menjadi ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`Terlalu kecil: diharapkan ${i.origin} memiliki ${r}${i.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${i.origin} menjadi ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`String tidak valid: harus dimulai dengan "${r.prefix}"`:r.format==="ends_with"?`String tidak valid: harus berakhir dengan "${r.suffix}"`:r.format==="includes"?`String tidak valid: harus menyertakan "${r.includes}"`:r.format==="regex"?`String tidak valid: harus sesuai pola ${r.pattern}`:`${u[r.format]??i.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${i.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${i.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${i.origin}`;default:return"Input tidak valid"}}};function m6(){return{localeError:f6()}}var v6=()=>{const e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"numero";case"object":{if(Array.isArray(i))return"vettore";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`Input non valido: atteso ${i.expected}, ricevuto ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Input non valido: atteso ${L(i.values[0])}`:`Opzione non valida: atteso uno tra ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`Troppo grande: ${i.origin??"valore"} deve avere ${r}${i.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${i.origin??"valore"} deve essere ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`Troppo piccolo: ${i.origin} deve avere ${r}${i.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${i.origin} deve essere ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`Stringa non valida: deve iniziare con "${r.prefix}"`:r.format==="ends_with"?`Stringa non valida: deve terminare con "${r.suffix}"`:r.format==="includes"?`Stringa non valida: deve includere "${r.includes}"`:r.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${r.pattern}`:`Invalid ${u[r.format]??i.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${i.divisor}`;case"unrecognized_keys":return`Chiav${i.keys.length>1?"i":"e"} non riconosciut${i.keys.length>1?"e":"a"}: ${w(i.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${i.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${i.origin}`;default:return"Input non valido"}}};function p6(){return{localeError:v6()}}var h6=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"\u6570\u5024";case"object":{if(Array.isArray(i))return"\u914D\u5217";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`\u7121\u52B9\u306A\u5165\u529B: ${i.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${t(i.input)}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`;case"invalid_value":return i.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${L(i.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${w(i.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{const r=i.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=n(i.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${i.origin??"\u5024"}\u306F${i.maximum.toString()}${a.unit??"\u8981\u7D20"}${r}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${i.origin??"\u5024"}\u306F${i.maximum.toString()}${r}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{const r=i.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=n(i.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${i.origin}\u306F${i.minimum.toString()}${a.unit}${r}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${i.origin}\u306F${i.minimum.toString()}${r}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{const r=i;return r.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${r.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:r.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${r.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:r.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${r.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:r.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${r.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${u[r.format]??i.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${i.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${i.keys.length>1?"\u7FA4":""}: ${w(i.keys,"\u3001")}`;case"invalid_key":return`${i.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${i.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function g6(){return{localeError:h6()}}var E6=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"\u1798\u17B7\u1793\u1798\u17C2\u1793\u1787\u17B6\u179B\u17C1\u1781 (NaN)":"\u179B\u17C1\u1781";case"object":{if(Array.isArray(i))return"\u17A2\u17B6\u179A\u17C1 (Array)";if(i===null)return"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`\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.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${t(i.input)}`;case"invalid_value":return i.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 ${L(i.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 ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${r} ${i.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${r} ${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin} ${r} ${i.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin} ${r} ${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.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 "${r.prefix}"`:r.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 "${r.suffix}"`:r.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 "${r.includes}"`:r.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 ${r.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${u[r.format]??i.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 ${i.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${w(i.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 ${i.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 ${i.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 y6(){return{localeError:E6()}}var b6=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${i.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${t(i.input)}\uC785\uB2C8\uB2E4`;case"invalid_value":return i.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${L(i.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${w(i.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{const r=i.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=r==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",o=n(i.origin),s=o?.unit??"\uC694\uC18C";return o?`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${i.maximum.toString()}${s} ${r}${a}`:`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${i.maximum.toString()} ${r}${a}`}case"too_small":{const r=i.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=r==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",o=n(i.origin),s=o?.unit??"\uC694\uC18C";return o?`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${i.minimum.toString()}${s} ${r}${a}`:`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${i.minimum.toString()} ${r}${a}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${r.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:r.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${r.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:r.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${r.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:r.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${r.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${u[r.format]??i.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${i.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${w(i.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${i.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${i.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function k6(){return{localeError:b6()}}var D6=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"\u0431\u0440\u043E\u0458";case"object":{if(Array.isArray(i))return"\u043D\u0438\u0437\u0430";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Invalid input: expected ${L(i.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 ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.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 ${i.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${r}${i.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 ${i.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i.origin} \u0434\u0430 \u0438\u043C\u0430 ${r}${i.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.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 "${r.prefix}"`:r.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 "${r.suffix}"`:r.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 "${r.includes}"`:r.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 ${r.pattern}`:`Invalid ${u[r.format]??i.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 ${i.divisor}`;case"unrecognized_keys":return`${i.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"}: ${w(i.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${i.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 ${i.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function S6(){return{localeError:D6()}}var B6=()=>{const e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"nombor";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`Input tidak sah: dijangka ${i.expected}, diterima ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Input tidak sah: dijangka ${L(i.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`Terlalu besar: dijangka ${i.origin??"nilai"} ${a.verb} ${r}${i.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${i.origin??"nilai"} adalah ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`Terlalu kecil: dijangka ${i.origin} ${a.verb} ${r}${i.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${i.origin} adalah ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`String tidak sah: mesti bermula dengan "${r.prefix}"`:r.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${r.suffix}"`:r.format==="includes"?`String tidak sah: mesti mengandungi "${r.includes}"`:r.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${r.pattern}`:`${u[r.format]??i.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${i.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${w(i.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${i.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${i.origin}`;default:return"Input tidak sah"}}};function A6(){return{localeError:B6()}}var w6=()=>{const e={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}};function n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"getal";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`Ongeldige invoer: verwacht ${i.expected}, ontving ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Ongeldige invoer: verwacht ${L(i.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`Te lang: verwacht dat ${i.origin??"waarde"} ${r}${i.maximum.toString()} ${a.unit??"elementen"} bevat`:`Te lang: verwacht dat ${i.origin??"waarde"} ${r}${i.maximum.toString()} is`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`Te kort: verwacht dat ${i.origin} ${r}${i.minimum.toString()} ${a.unit} bevat`:`Te kort: verwacht dat ${i.origin} ${r}${i.minimum.toString()} is`}case"invalid_format":{const r=i;return r.format==="starts_with"?`Ongeldige tekst: moet met "${r.prefix}" beginnen`:r.format==="ends_with"?`Ongeldige tekst: moet op "${r.suffix}" eindigen`:r.format==="includes"?`Ongeldige tekst: moet "${r.includes}" bevatten`:r.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${r.pattern}`:`Ongeldig: ${u[r.format]??i.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${i.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${i.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${i.origin}`;default:return"Ongeldige invoer"}}};function _6(){return{localeError:w6()}}var C6=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"tall";case"object":{if(Array.isArray(i))return"liste";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`Ugyldig input: forventet ${i.expected}, fikk ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Ugyldig verdi: forventet ${L(i.values[0])}`:`Ugyldig valg: forventet en av ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`For stor(t): forventet ${i.origin??"value"} til \xE5 ha ${r}${i.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${i.origin??"value"} til \xE5 ha ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`For lite(n): forventet ${i.origin} til \xE5 ha ${r}${i.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${i.origin} til \xE5 ha ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${r.prefix}"`:r.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${r.suffix}"`:r.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${r.includes}"`:r.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${r.pattern}`:`Ugyldig ${u[r.format]??i.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${w(i.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${i.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${i.origin}`;default:return"Ugyldig input"}}};function $6(){return{localeError:C6()}}var x6=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"numara";case"object":{if(Array.isArray(i))return"saf";if(i===null)return"gayb";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`F\xE2sit giren: umulan ${i.expected}, al\u0131nan ${t(i.input)}`;case"invalid_value":return i.values.length===1?`F\xE2sit giren: umulan ${L(i.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`Fazla b\xFCy\xFCk: ${i.origin??"value"}, ${r}${i.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${i.origin??"value"}, ${r}${i.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`Fazla k\xFC\xE7\xFCk: ${i.origin}, ${r}${i.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${i.origin}, ${r}${i.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{const r=i;return r.format==="starts_with"?`F\xE2sit metin: "${r.prefix}" ile ba\u015Flamal\u0131.`:r.format==="ends_with"?`F\xE2sit metin: "${r.suffix}" ile bitmeli.`:r.format==="includes"?`F\xE2sit metin: "${r.includes}" ihtiv\xE2 etmeli.`:r.format==="regex"?`F\xE2sit metin: ${r.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${u[r.format]??i.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${i.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`${i.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${i.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function I6(){return{localeError:x6()}}var F6=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"\u0639\u062F\u062F";case"object":{if(Array.isArray(i))return"\u0627\u0631\u06D0";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${i.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${t(i.input)} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`;case"invalid_value":return i.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${L(i.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${w(i.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${i.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${r}${i.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${i.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${r}${i.maximum.toString()} \u0648\u064A`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${i.origin} \u0628\u0627\u06CC\u062F ${r}${i.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${i.origin} \u0628\u0627\u06CC\u062F ${r}${i.minimum.toString()} \u0648\u064A`}case"invalid_format":{const r=i;return r.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${r.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:r.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${r.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:r.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${r.includes}" \u0648\u0644\u0631\u064A`:r.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${r.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${u[r.format]??i.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${i.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${i.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${w(i.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${i.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 ${i.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function N6(){return{localeError:F6()}}var T6=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"liczba";case"object":{if(Array.isArray(i))return"tablica";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${i.expected}, otrzymano ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${L(i.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${r}${i.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${r}${i.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${r.prefix}"`:r.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${r.suffix}"`:r.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${r.includes}"`:r.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${r.pattern}`:`Nieprawid\u0142ow(y/a/e) ${u[r.format]??i.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${i.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${i.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${i.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function O6(){return{localeError:T6()}}var z6=()=>{const e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"n\xFAmero";case"object":{if(Array.isArray(i))return"array";if(i===null)return"nulo";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`Tipo inv\xE1lido: esperado ${i.expected}, recebido ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Entrada inv\xE1lida: esperado ${L(i.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`Muito grande: esperado que ${i.origin??"valor"} tivesse ${r}${i.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${i.origin??"valor"} fosse ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`Muito pequeno: esperado que ${i.origin} tivesse ${r}${i.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${i.origin} fosse ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${r.prefix}"`:r.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${r.suffix}"`:r.format==="includes"?`Texto inv\xE1lido: deve incluir "${r.includes}"`:r.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${r.pattern}`:`${u[r.format]??i.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${i.divisor}`;case"unrecognized_keys":return`Chave${i.keys.length>1?"s":""} desconhecida${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${i.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${i.origin}`;default:return"Campo inv\xE1lido"}}};function U6(){return{localeError:z6()}}function zd(e,n,t,u){const i=Math.abs(e),r=i%10,a=i%100;return a>=11&&a<=19?u:r===1?n:r>=2&&r<=4?t:u}var P6=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(i))return"\u043C\u0430\u0441\u0441\u0438\u0432";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${i.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${t(i.input)}`;case"invalid_value":return i.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${L(i.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 ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);if(a){const o=Number(i.maximum),s=zd(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 ${i.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${r}${i.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 ${i.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);if(a){const o=Number(i.minimum),s=zd(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 ${i.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${r}${i.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 ${i.origin} \u0431\u0443\u0434\u0435\u0442 ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.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 "${r.prefix}"`:r.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 "${r.suffix}"`:r.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 "${r.includes}"`:r.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 ${r.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${u[r.format]??i.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 ${i.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${i.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${i.keys.length>1?"\u0438":""}: ${w(i.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${i.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 ${i.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 R6(){return{localeError:P6()}}var j6=()=>{const e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"\u0161tevilo";case"object":{if(Array.isArray(i))return"tabela";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`Neveljaven vnos: pri\u010Dakovano ${i.expected}, prejeto ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${L(i.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${i.origin??"vrednost"} imelo ${r}${i.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${i.origin??"vrednost"} ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${i.origin} imelo ${r}${i.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${i.origin} ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${r.prefix}"`:r.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${r.suffix}"`:r.format==="includes"?`Neveljaven niz: mora vsebovati "${r.includes}"`:r.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${r.pattern}`:`Neveljaven ${u[r.format]??i.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${i.divisor}`;case"unrecognized_keys":return`Neprepoznan${i.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${w(i.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${i.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${i.origin}`;default:return"Neveljaven vnos"}}};function L6(){return{localeError:j6()}}var Z6=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"antal";case"object":{if(Array.isArray(i))return"lista";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`Ogiltig inmatning: f\xF6rv\xE4ntat ${i.expected}, fick ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${L(i.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${i.origin??"v\xE4rdet"} att ha ${r}${i.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${i.origin??"v\xE4rdet"} att ha ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${i.origin??"v\xE4rdet"} att ha ${r}${i.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${i.origin??"v\xE4rdet"} att ha ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${r.prefix}"`:r.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${r.suffix}"`:r.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${r.includes}"`:r.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${r.pattern}"`:`Ogiltig(t) ${u[r.format]??i.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${w(i.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${i.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${i.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function V6(){return{localeError:Z6()}}var q6=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"\u0B8E\u0BA3\u0BCD \u0B85\u0BB2\u0BCD\u0BB2\u0BBE\u0BA4\u0BA4\u0BC1":"\u0B8E\u0BA3\u0BCD";case"object":{if(Array.isArray(i))return"\u0B85\u0BA3\u0BBF";if(i===null)return"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`\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.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t(i.input)}`;case"invalid_value":return i.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 ${L(i.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 ${w(i.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.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 ${i.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${r}${i.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 ${i.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${r}${i.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.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 ${i.origin} ${r}${i.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 ${i.origin} ${r}${i.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{const r=i;return r.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${r.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:r.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${r.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:r.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${r.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:r.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${r.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 ${u[r.format]??i.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${i.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${i.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${w(i.keys,", ")}`;case"invalid_key":return`${i.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`${i.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 M6(){return{localeError:q6()}}var G6=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02 (NaN)":"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02";case"object":{if(Array.isArray(i))return"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)";if(i===null)return"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`\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.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${t(i.input)}`;case"invalid_value":return i.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${L(i.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 ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=n(i.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${i.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${r} ${i.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${i.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${r} ${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=n(i.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${i.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${r} ${i.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${i.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${r} ${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.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 "${r.prefix}"`:r.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 "${r.suffix}"`:r.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 "${r.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:r.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 ${r.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${u[r.format]??i.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 ${i.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: ${w(i.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${i.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 ${i.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function J6(){return{localeError:G6()}}var H6=e=>{const n=typeof e;switch(n){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return n},K6=()=>{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 n(u){return e[u]??null}const t={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"};return u=>{switch(u.code){case"invalid_type":return`Ge\xE7ersiz de\u011Fer: beklenen ${u.expected}, al\u0131nan ${H6(u.input)}`;case"invalid_value":return u.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${L(u.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${w(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",r=n(u.origin);return r?`\xC7ok b\xFCy\xFCk: beklenen ${u.origin??"de\u011Fer"} ${i}${u.maximum.toString()} ${r.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${u.origin??"de\u011Fer"} ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",r=n(u.origin);return r?`\xC7ok k\xFC\xE7\xFCk: beklenen ${u.origin} ${i}${u.minimum.toString()} ${r.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${u.origin} ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;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 ${t[i.format]??u.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${u.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${u.keys.length>1?"lar":""}: ${w(u.keys,", ")}`;case"invalid_key":return`${u.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${u.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function Q6(){return{localeError:K6()}}var W6=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(i))return"\u043C\u0430\u0441\u0438\u0432";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`\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.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${t(i.input)}`;case"invalid_value":return i.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 ${L(i.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 ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.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 ${i.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${r}${i.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 ${i.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.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 ${i.origin} ${a.verb} ${r}${i.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 ${i.origin} \u0431\u0443\u0434\u0435 ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.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 "${r.prefix}"`:r.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 "${r.suffix}"`:r.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 "${r.includes}"`:r.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 ${r.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${u[r.format]??i.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 ${i.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${i.keys.length>1?"\u0456":""}: ${w(i.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${i.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 ${i.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 Y6(){return{localeError:W6()}}var X6=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"\u0646\u0645\u0628\u0631";case"object":{if(Array.isArray(i))return"\u0622\u0631\u06D2";if(i===null)return"\u0646\u0644";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${i.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${t(i.input)} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`;case"invalid_value":return i.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${L(i.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${w(i.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${i.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${r}${i.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: ${i.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${r}${i.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${i.origin} \u06A9\u06D2 ${r}${i.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${i.origin} \u06A9\u0627 ${r}${i.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{const r=i;return r.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${r.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:r.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${r.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:r.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${r.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:r.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${r.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${u[r.format]??i.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${i.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${i.keys.length>1?"\u0632":""}: ${w(i.keys,"\u060C ")}`;case"invalid_key":return`${i.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${i.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function e3(){return{localeError:X6()}}var n3=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"s\u1ED1";case"object":{if(Array.isArray(i))return"m\u1EA3ng";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${i.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${t(i.input)}`;case"invalid_value":return i.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${L(i.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${i.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${r}${i.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${i.origin??"gi\xE1 tr\u1ECB"} ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${i.origin} ${a.verb} ${r}${i.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${i.origin} ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${r.prefix}"`:r.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${r.suffix}"`:r.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${r.includes}"`:r.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${r.pattern}`:`${u[r.format]??i.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 ${i.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${w(i.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${i.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 ${i.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function t3(){return{localeError:n3()}}var i3=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"\u975E\u6570\u5B57(NaN)":"\u6570\u5B57";case"object":{if(Array.isArray(i))return"\u6570\u7EC4";if(i===null)return"\u7A7A\u503C(null)";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${i.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${t(i.input)}`;case"invalid_value":return i.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${L(i.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${i.origin??"\u503C"} ${r}${i.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${i.origin??"\u503C"} ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${i.origin} ${r}${i.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${i.origin} ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${r.prefix}" \u5F00\u5934`:r.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${r.suffix}" \u7ED3\u5C3E`:r.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${r.includes}"`:r.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${r.pattern}`:`\u65E0\u6548${u[r.format]??i.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${i.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${w(i.keys,", ")}`;case"invalid_key":return`${i.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${i.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function u3(){return{localeError:i3()}}var r3=()=>{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 n(i){return e[i]??null}const t=i=>{const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return r},u={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"};return i=>{switch(i.code){case"invalid_type":return`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${i.expected}\uFF0C\u4F46\u6536\u5230 ${t(i.input)}`;case"invalid_value":return i.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${L(i.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${w(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",a=n(i.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${i.origin??"\u503C"} \u61C9\u70BA ${r}${i.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${i.origin??"\u503C"} \u61C9\u70BA ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",a=n(i.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${i.origin} \u61C9\u70BA ${r}${i.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${i.origin} \u61C9\u70BA ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${r.prefix}" \u958B\u982D`:r.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${r.suffix}" \u7D50\u5C3E`:r.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${r.includes}"`:r.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${r.pattern}`:`\u7121\u6548\u7684 ${u[r.format]??i.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${i.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${i.keys.length>1?"\u5011":""}\uFF1A${w(i.keys,"\u3001")}`;case"invalid_key":return`${i.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${i.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function a3(){return{localeError:r3()}}var Ud=Symbol("ZodOutput"),Pd=Symbol("ZodInput"),ka=class{constructor(){this._map=new Map,this._idmap=new Map}add(e,...n){const t=n[0];if(this._map.set(e,t),t&&typeof t=="object"&&"id"in t){if(this._idmap.has(t.id))throw new Error(`ID ${t.id} already exists in the registry`);this._idmap.set(t.id,e)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(e){const n=this._map.get(e);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(e),this}get(e){const n=e._zod.parent;if(n){const t={...this.get(n)??{}};return delete t.id,{...t,...this._map.get(e)}}return this._map.get(e)}has(e){return this._map.has(e)}};function Da(){return new ka}var xn=Da();function Rd(e,n){return new e({type:"string",...S(n)})}function jd(e,n){return new e({type:"string",coerce:!0,...S(n)})}function Sa(e,n){return new e({type:"string",format:"email",check:"string_format",abort:!1,...S(n)})}function Ki(e,n){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...S(n)})}function Ba(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...S(n)})}function Aa(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...S(n)})}function wa(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...S(n)})}function _a(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...S(n)})}function Ca(e,n){return new e({type:"string",format:"url",check:"string_format",abort:!1,...S(n)})}function $a(e,n){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...S(n)})}function xa(e,n){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...S(n)})}function Ia(e,n){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...S(n)})}function Fa(e,n){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...S(n)})}function Na(e,n){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...S(n)})}function Ta(e,n){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...S(n)})}function Oa(e,n){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...S(n)})}function za(e,n){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...S(n)})}function Ua(e,n){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...S(n)})}function Pa(e,n){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...S(n)})}function Ra(e,n){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...S(n)})}function ja(e,n){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...S(n)})}function La(e,n){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...S(n)})}function Za(e,n){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...S(n)})}function Va(e,n){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...S(n)})}var Ld={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Zd(e,n){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...S(n)})}function Vd(e,n){return new e({type:"string",format:"date",check:"string_format",...S(n)})}function qd(e,n){return new e({type:"string",format:"time",check:"string_format",precision:null,...S(n)})}function Md(e,n){return new e({type:"string",format:"duration",check:"string_format",...S(n)})}function Gd(e,n){return new e({type:"number",checks:[],...S(n)})}function Jd(e,n){return new e({type:"number",coerce:!0,checks:[],...S(n)})}function Hd(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...S(n)})}function Kd(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...S(n)})}function Qd(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...S(n)})}function Wd(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...S(n)})}function Yd(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...S(n)})}function Xd(e,n){return new e({type:"boolean",...S(n)})}function ef(e,n){return new e({type:"boolean",coerce:!0,...S(n)})}function nf(e,n){return new e({type:"bigint",...S(n)})}function tf(e,n){return new e({type:"bigint",coerce:!0,...S(n)})}function uf(e,n){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...S(n)})}function rf(e,n){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...S(n)})}function af(e,n){return new e({type:"symbol",...S(n)})}function of(e,n){return new e({type:"undefined",...S(n)})}function sf(e,n){return new e({type:"null",...S(n)})}function cf(e){return new e({type:"any"})}function Qi(e){return new e({type:"unknown"})}function lf(e,n){return new e({type:"never",...S(n)})}function df(e,n){return new e({type:"void",...S(n)})}function ff(e,n){return new e({type:"date",...S(n)})}function mf(e,n){return new e({type:"date",coerce:!0,...S(n)})}function vf(e,n){return new e({type:"nan",...S(n)})}function In(e,n){return new ca({check:"less_than",...S(n),value:e,inclusive:!1})}function Le(e,n){return new ca({check:"less_than",...S(n),value:e,inclusive:!0})}function Fn(e,n){return new la({check:"greater_than",...S(n),value:e,inclusive:!1})}function _e(e,n){return new la({check:"greater_than",...S(n),value:e,inclusive:!0})}function pf(e){return Fn(0,e)}function hf(e){return In(0,e)}function gf(e){return Le(0,e)}function Ef(e){return _e(0,e)}function Kt(e,n){return new X0({check:"multiple_of",...S(n),value:e})}function Wi(e,n){return new tl({check:"max_size",...S(n),maximum:e})}function Qt(e,n){return new il({check:"min_size",...S(n),minimum:e})}function qa(e,n){return new ul({check:"size_equals",...S(n),size:e})}function Yi(e,n){return new rl({check:"max_length",...S(n),maximum:e})}function nt(e,n){return new al({check:"min_length",...S(n),minimum:e})}function Xi(e,n){return new ol({check:"length_equals",...S(n),length:e})}function Ma(e,n){return new sl({check:"string_format",format:"regex",...S(n),pattern:e})}function Ga(e){return new cl({check:"string_format",format:"lowercase",...S(e)})}function Ja(e){return new ll({check:"string_format",format:"uppercase",...S(e)})}function Ha(e,n){return new dl({check:"string_format",format:"includes",...S(n),includes:e})}function Ka(e,n){return new fl({check:"string_format",format:"starts_with",...S(n),prefix:e})}function Qa(e,n){return new ml({check:"string_format",format:"ends_with",...S(n),suffix:e})}function yf(e,n,t){return new pl({check:"property",property:e,schema:n,...S(t)})}function Wa(e,n){return new hl({check:"mime_type",mime:e,...S(n)})}function Nn(e){return new gl({check:"overwrite",tx:e})}function Ya(e){return Nn(n=>n.normalize(e))}function Xa(){return Nn(e=>e.trim())}function eo(){return Nn(e=>e.toLowerCase())}function no(){return Nn(e=>e.toUpperCase())}function to(e,n,t){return new e({type:"array",element:n,...S(t)})}function o3(e,n,t){return new e({type:"union",options:n,...S(t)})}function s3(e,n,t,u){return new e({type:"union",options:t,discriminator:n,...S(u)})}function c3(e,n,t){return new e({type:"intersection",left:n,right:t})}function bf(e,n,t,u){const i=t instanceof U,r=i?u:t,a=i?t:null;return new e({type:"tuple",items:n,rest:a,...S(r)})}function l3(e,n,t,u){return new e({type:"record",keyType:n,valueType:t,...S(u)})}function d3(e,n,t,u){return new e({type:"map",keyType:n,valueType:t,...S(u)})}function f3(e,n,t){return new e({type:"set",valueType:n,...S(t)})}function m3(e,n,t){const u=Array.isArray(n)?Object.fromEntries(n.map(i=>[i,i])):n;return new e({type:"enum",entries:u,...S(t)})}function v3(e,n,t){return new e({type:"enum",entries:n,...S(t)})}function p3(e,n,t){return new e({type:"literal",values:Array.isArray(n)?n:[n],...S(t)})}function kf(e,n){return new e({type:"file",...S(n)})}function h3(e,n){return new e({type:"transform",transform:n})}function g3(e,n){return new e({type:"optional",innerType:n})}function E3(e,n){return new e({type:"nullable",innerType:n})}function y3(e,n,t){return new e({type:"default",innerType:n,get defaultValue(){return typeof t=="function"?t():t}})}function b3(e,n,t){return new e({type:"nonoptional",innerType:n,...S(t)})}function k3(e,n){return new e({type:"success",innerType:n})}function D3(e,n,t){return new e({type:"catch",innerType:n,catchValue:typeof t=="function"?t:()=>t})}function S3(e,n,t){return new e({type:"pipe",in:n,out:t})}function B3(e,n){return new e({type:"readonly",innerType:n})}function A3(e,n,t){return new e({type:"template_literal",parts:n,...S(t)})}function w3(e,n){return new e({type:"lazy",getter:n})}function _3(e,n){return new e({type:"promise",innerType:n})}function Df(e,n,t){const u=S(t);return u.abort??(u.abort=!0),new e({type:"custom",check:"custom",fn:n,...u})}function Sf(e,n,t){return new e({type:"custom",check:"custom",fn:n,...S(t)})}function Bf(e,n){const t=S(n);let u=t.truthy??["true","1","yes","on","y","enabled"],i=t.falsy??["false","0","no","off","n","disabled"];t.case!=="sensitive"&&(u=u.map(v=>typeof v=="string"?v.toLowerCase():v),i=i.map(v=>typeof v=="string"?v.toLowerCase():v));const r=new Set(u),a=new Set(i),o=e.Pipe??ya,s=e.Boolean??ma,c=e.String??Ht,l=e.Transform??Ea,f=new l({type:"transform",transform:(v,h)=>{let E=v;return t.case!=="sensitive"&&(E=E.toLowerCase()),r.has(E)?!0:a.has(E)?!1:(h.issues.push({code:"invalid_value",expected:"stringbool",values:[...r,...a],input:h.value,inst:f}),{})},error:t.error}),m=new o({type:"pipe",in:new c({type:"string",error:t.error}),out:f,error:t.error});return new o({type:"pipe",in:m,out:new s({type:"boolean",error:t.error}),error:t.error})}function Af(e,n,t,u={}){const i=S(u),r={...S(u),check:"string_format",type:"string",format:n,fn:typeof t=="function"?t:o=>t.test(o),...i};return t instanceof RegExp&&(r.pattern=t),new e(r)}var wf=class{constructor(e){this._def=e,this.def=e}implement(e){if(typeof e!="function")throw new Error("implement() must be called with a function");const n=(...t)=>{const u=this._def.input?ta(this._def.input,t,void 0,{callee:n}):t;if(!Array.isArray(u))throw new Error("Invalid arguments schema: not an array or tuple schema.");const i=e(...u);return this._def.output?ta(this._def.output,i,void 0,{callee:n}):i};return n}implementAsync(e){if(typeof e!="function")throw new Error("implement() must be called with a function");const n=async(...t)=>{const u=this._def.input?await ua(this._def.input,t,void 0,{callee:n}):t;if(!Array.isArray(u))throw new Error("Invalid arguments schema: not an array or tuple schema.");const i=await e(...u);return this._def.output?ua(this._def.output,i,void 0,{callee:n}):i};return n}input(...e){const n=this.constructor;return Array.isArray(e[0])?new n({type:"function",input:new Ji({type:"tuple",items:e[0],rest:e[1]}),output:this._def.output}):new n({type:"function",input:e[0],output:this._def.output})}output(e){const n=this.constructor;return new n({type:"function",input:this._def.input,output:e})}};function _f(e){return new wf({type:"function",input:Array.isArray(e?.input)?bf(Ji,e?.input):e?.input??to(pa,Qi(Mi)),output:e?.output??Qi(Mi)})}var io=class{constructor(e){this.counter=0,this.metadataRegistry=e?.metadata??xn,this.target=e?.target??"draft-2020-12",this.unrepresentable=e?.unrepresentable??"throw",this.override=e?.override??(()=>{}),this.io=e?.io??"output",this.seen=new Map}process(e,n={path:[],schemaPath:[]}){var t;const u=e._zod.def,i={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},r=this.seen.get(e);if(r)return r.count++,n.schemaPath.includes(e)&&(r.cycle=n.path),r.schema;const a={schema:{},count:1,cycle:void 0,path:n.path};this.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},f=e._zod.parent;if(f)a.ref=f,this.process(f,l),this.seen.get(f).isParent=!0;else{const m=a.schema;switch(u.type){case"string":{const d=m;d.type="string";const{minimum:v,maximum:h,format:E,patterns:b,contentEncoding:y}=e._zod.bag;if(typeof v=="number"&&(d.minLength=v),typeof h=="number"&&(d.maxLength=h),E&&(d.format=i[E]??E,d.format===""&&delete d.format),y&&(d.contentEncoding=y),b&&b.size>0){const k=[...b];k.length===1?d.pattern=k[0].source:k.length>1&&(a.schema.allOf=[...k.map(_=>({...this.target==="draft-7"?{type:"string"}:{},pattern:_.source}))])}break}case"number":{const d=m,{minimum:v,maximum:h,format:E,multipleOf:b,exclusiveMaximum:y,exclusiveMinimum:k}=e._zod.bag;typeof E=="string"&&E.includes("int")?d.type="integer":d.type="number",typeof k=="number"&&(d.exclusiveMinimum=k),typeof v=="number"&&(d.minimum=v,typeof k=="number"&&(k>=v?delete d.minimum:delete d.exclusiveMinimum)),typeof y=="number"&&(d.exclusiveMaximum=y),typeof h=="number"&&(d.maximum=h,typeof y=="number"&&(y<=h?delete d.maximum:delete d.exclusiveMaximum)),typeof b=="number"&&(d.multipleOf=b);break}case"boolean":{const d=m;d.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break}case"null":{m.type="null";break}case"any":break;case"unknown":break;case"undefined":{if(this.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema");break}case"void":{if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break}case"never":{m.not={};break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{const d=m,{minimum:v,maximum:h}=e._zod.bag;typeof v=="number"&&(d.minItems=v),typeof h=="number"&&(d.maxItems=h),d.type="array",d.items=this.process(u.element,{...l,path:[...l.path,"items"]});break}case"object":{const d=m;d.type="object",d.properties={};const v=u.shape;for(const b in v)d.properties[b]=this.process(v[b],{...l,path:[...l.path,"properties",b]});const h=new Set(Object.keys(v)),E=new Set([...h].filter(b=>{const y=u.shape[b]._zod;return this.io==="input"?y.optin===void 0:y.optout===void 0}));E.size>0&&(d.required=Array.from(E)),u.catchall?._zod.def.type==="never"?d.additionalProperties=!1:u.catchall?u.catchall&&(d.additionalProperties=this.process(u.catchall,{...l,path:[...l.path,"additionalProperties"]})):this.io==="output"&&(d.additionalProperties=!1);break}case"union":{const d=m;d.anyOf=u.options.map((v,h)=>this.process(v,{...l,path:[...l.path,"anyOf",h]}));break}case"intersection":{const d=m,v=this.process(u.left,{...l,path:[...l.path,"allOf",0]}),h=this.process(u.right,{...l,path:[...l.path,"allOf",1]}),E=y=>"allOf"in y&&Object.keys(y).length===1,b=[...E(v)?v.allOf:[v],...E(h)?h.allOf:[h]];d.allOf=b;break}case"tuple":{const d=m;d.type="array";const v=u.items.map((b,y)=>this.process(b,{...l,path:[...l.path,"prefixItems",y]}));if(this.target==="draft-2020-12"?d.prefixItems=v:d.items=v,u.rest){const b=this.process(u.rest,{...l,path:[...l.path,"items"]});this.target==="draft-2020-12"?d.items=b:d.additionalItems=b}u.rest&&(d.items=this.process(u.rest,{...l,path:[...l.path,"items"]}));const{minimum:h,maximum:E}=e._zod.bag;typeof h=="number"&&(d.minItems=h),typeof E=="number"&&(d.maxItems=E);break}case"record":{const d=m;d.type="object",d.propertyNames=this.process(u.keyType,{...l,path:[...l.path,"propertyNames"]}),d.additionalProperties=this.process(u.valueType,{...l,path:[...l.path,"additionalProperties"]});break}case"map":{if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break}case"enum":{const d=m,v=Kr(u.entries);v.every(h=>typeof h=="number")&&(d.type="number"),v.every(h=>typeof h=="string")&&(d.type="string"),d.enum=v;break}case"literal":{const d=m,v=[];for(const h of u.values)if(h===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof h=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");v.push(Number(h))}else v.push(h);if(v.length!==0)if(v.length===1){const h=v[0];d.type=h===null?"null":typeof h,d.const=h}else v.every(h=>typeof h=="number")&&(d.type="number"),v.every(h=>typeof h=="string")&&(d.type="string"),v.every(h=>typeof h=="boolean")&&(d.type="string"),v.every(h=>h===null)&&(d.type="null"),d.enum=v;break}case"file":{const d=m,v={type:"string",format:"binary",contentEncoding:"binary"},{minimum:h,maximum:E,mime:b}=e._zod.bag;h!==void 0&&(v.minLength=h),E!==void 0&&(v.maxLength=E),b?b.length===1?(v.contentMediaType=b[0],Object.assign(d,v)):d.anyOf=b.map(y=>({...v,contentMediaType:y})):Object.assign(d,v);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{const d=this.process(u.innerType,l);m.anyOf=[d,{type:"null"}];break}case"nonoptional":{this.process(u.innerType,l),a.ref=u.innerType;break}case"success":{const d=m;d.type="boolean";break}case"default":{this.process(u.innerType,l),a.ref=u.innerType,m.default=JSON.parse(JSON.stringify(u.defaultValue));break}case"prefault":{this.process(u.innerType,l),a.ref=u.innerType,this.io==="input"&&(m._prefault=JSON.parse(JSON.stringify(u.defaultValue)));break}case"catch":{this.process(u.innerType,l),a.ref=u.innerType;let d;try{d=u.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}m.default=d;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{const d=m,v=e._zod.pattern;if(!v)throw new Error("Pattern not found in template literal");d.type="string",d.pattern=v.source;break}case"pipe":{const d=this.io==="input"?u.in._zod.def.type==="transform"?u.out:u.in:u.out;this.process(d,l),a.ref=d;break}case"readonly":{this.process(u.innerType,l),a.ref=u.innerType,m.readOnly=!0;break}case"promise":{this.process(u.innerType,l),a.ref=u.innerType;break}case"optional":{this.process(u.innerType,l),a.ref=u.innerType;break}case"lazy":{const d=e._zod.innerType;this.process(d,l),a.ref=d;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}}}}const s=this.metadataRegistry.get(e);return s&&Object.assign(a.schema,s),this.io==="input"&&re(e)&&(delete a.schema.examples,delete a.schema.default),this.io==="input"&&a.schema._prefault&&((t=a.schema).default??(t.default=a.schema._prefault)),delete a.schema._prefault,this.seen.get(e).schema}emit(e,n){const t={cycles:n?.cycles??"ref",reused:n?.reused??"inline",external:n?.external??void 0},u=this.seen.get(e);if(!u)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=c=>{const l=this.target==="draft-2020-12"?"$defs":"definitions";if(t.external){const v=t.external.registry.get(c[0])?.id,h=t.external.uri??(b=>b);if(v)return{ref:h(v)};const E=c[1].defId??c[1].schema.id??`schema${this.counter++}`;return c[1].defId=E,{defId:E,ref:`${h("__shared")}#/${l}/${E}`}}if(c[1]===u)return{ref:"#"};const m=`#/${l}/`,d=c[1].schema.id??`__schema${this.counter++}`;return{defId:d,ref:m+d}},r=c=>{if(c[1].schema.$ref)return;const l=c[1],{ref:f,defId:m}=i(c);l.def={...l.schema},m&&(l.defId=m);const d=l.schema;for(const v in d)delete d[v];d.$ref=f};if(t.cycles==="throw")for(const c of this.seen.entries()){const l=c[1];if(l.cycle)throw new Error(`Cycle detected: #/${l.cycle?.join("/")}/<root>
|
|
200
|
+
|
|
201
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const c of this.seen.entries()){const l=c[1];if(e===c[0]){r(c);continue}if(t.external){const m=t.external.registry.get(c[0])?.id;if(e!==c[0]&&m){r(c);continue}}if(this.metadataRegistry.get(c[0])?.id){r(c);continue}if(l.cycle){r(c);continue}if(l.count>1&&t.reused==="ref"){r(c);continue}}const a=(c,l)=>{const f=this.seen.get(c),m=f.def??f.schema,d={...m};if(f.ref===null)return;const v=f.ref;if(f.ref=null,v){a(v,l);const h=this.seen.get(v).schema;h.$ref&&l.target==="draft-7"?(m.allOf=m.allOf??[],m.allOf.push(h)):(Object.assign(m,h),Object.assign(m,d))}f.isParent||this.override({zodSchema:c,jsonSchema:m,path:f.path??[]})};for(const c of[...this.seen.entries()].reverse())a(c[0],{target:this.target});const o={};if(this.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?o.$schema="http://json-schema.org/draft-07/schema#":console.warn(`Invalid target: ${this.target}`),t.external?.uri){const c=t.external.registry.get(e)?.id;if(!c)throw new Error("Schema is missing an `id` property");o.$id=t.external.uri(c)}Object.assign(o,u.def);const s=t.external?.defs??{};for(const c of this.seen.entries()){const l=c[1];l.def&&l.defId&&(s[l.defId]=l.def)}t.external||Object.keys(s).length>0&&(this.target==="draft-2020-12"?o.$defs=s:o.definitions=s);try{return JSON.parse(JSON.stringify(o))}catch{throw new Error("Error converting schema to JSON.")}}};function Cf(e,n){if(e instanceof ka){const u=new io(n),i={};for(const o of e._idmap.entries()){const[s,c]=o;u.process(c)}const r={},a={registry:e,uri:n?.uri,defs:i};for(const o of e._idmap.entries()){const[s,c]=o;r[s]=u.emit(c,{...n,external:a})}if(Object.keys(i).length>0){const o=u.target==="draft-2020-12"?"$defs":"definitions";r.__shared={[o]:i}}return{schemas:r}}const t=new io(n);return t.process(e),t.emit(e,n)}function re(e,n){const t=n??{seen:new Set};if(t.seen.has(e))return!1;t.seen.add(e);const i=e._zod.def;switch(i.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":return!1;case"array":return re(i.element,t);case"object":{for(const r in i.shape)if(re(i.shape[r],t))return!0;return!1}case"union":{for(const r of i.options)if(re(r,t))return!0;return!1}case"intersection":return re(i.left,t)||re(i.right,t);case"tuple":{for(const r of i.items)if(re(r,t))return!0;return!!(i.rest&&re(i.rest,t))}case"record":return re(i.keyType,t)||re(i.valueType,t);case"map":return re(i.keyType,t)||re(i.valueType,t);case"set":return re(i.valueType,t);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return re(i.innerType,t);case"lazy":return re(i.getter(),t);case"default":return re(i.innerType,t);case"prefault":return re(i.innerType,t);case"custom":return!1;case"transform":return!0;case"pipe":return re(i.in,t)||re(i.out,t);case"success":return!1;case"catch":return!1}throw new Error(`Unknown schema type: ${i.type}`)}var C3={},$f={};Dn($f,{ZodISODate:()=>ro,ZodISODateTime:()=>uo,ZodISODuration:()=>oo,ZodISOTime:()=>ao,date:()=>If,datetime:()=>xf,duration:()=>Nf,time:()=>Ff});var uo=p("ZodISODateTime",(e,n)=>{Il.init(e,n),X.init(e,n)});function xf(e){return Zd(uo,e)}var ro=p("ZodISODate",(e,n)=>{Fl.init(e,n),X.init(e,n)});function If(e){return Vd(ro,e)}var ao=p("ZodISOTime",(e,n)=>{Nl.init(e,n),X.init(e,n)});function Ff(e){return qd(ao,e)}var oo=p("ZodISODuration",(e,n)=>{Tl.init(e,n),X.init(e,n)});function Nf(e){return Md(oo,e)}var Tf=(e,n)=>{Yr.init(e,n),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>ea(e,t)},flatten:{value:t=>Xr(e,t)},addIssue:{value:t=>e.issues.push(t)},addIssues:{value:t=>e.issues.push(...t)},isEmpty:{get(){return e.issues.length===0}}})},$3=p("ZodError",Tf),Wt=p("ZodError",Tf,{Parent:Error}),Of=na(Wt),zf=ia(Wt),Uf=ra(Wt),Pf=aa(Wt),Z=p("ZodType",(e,n)=>(U.init(e,n),e.def=n,Object.defineProperty(e,"_def",{value:n}),e.check=(...t)=>e.clone({...n,checks:[...n.checks??[],...t.map(u=>typeof u=="function"?{_zod:{check:u,def:{check:"custom"},onattach:[]}}:u)]}),e.clone=(t,u)=>Ve(e,t,u),e.brand=()=>e,e.register=(t,u)=>(t.add(e,u),e),e.parse=(t,u)=>Of(e,t,u,{callee:e.parse}),e.safeParse=(t,u)=>Uf(e,t,u),e.parseAsync=async(t,u)=>zf(e,t,u,{callee:e.parseAsync}),e.safeParseAsync=async(t,u)=>Pf(e,t,u),e.spa=e.safeParseAsync,e.refine=(t,u)=>e.check(Am(t,u)),e.superRefine=t=>e.check(wm(t)),e.overwrite=t=>e.check(Nn(t)),e.optional=()=>cu(e),e.nullable=()=>lu(e),e.nullish=()=>cu(lu(e)),e.nonoptional=t=>mm(e,t),e.array=()=>Io(e),e.or=t=>su([e,t]),e.and=t=>Xf(e,t),e.transform=t=>du(e,Oo(t)),e.default=t=>lm(e,t),e.prefault=t=>fm(e,t),e.catch=t=>hm(e,t),e.pipe=t=>du(e,t),e.readonly=()=>ym(e),e.describe=t=>{const u=e.clone();return xn.add(u,{description:t}),u},Object.defineProperty(e,"description",{get(){return xn.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return xn.get(e);const u=e.clone();return xn.add(u,t[0]),u},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),so=p("_ZodString",(e,n)=>{Ht.init(e,n),Z.init(e,n);const t=e._zod.bag;e.format=t.format??null,e.minLength=t.minimum??null,e.maxLength=t.maximum??null,e.regex=(...u)=>e.check(Ma(...u)),e.includes=(...u)=>e.check(Ha(...u)),e.startsWith=(...u)=>e.check(Ka(...u)),e.endsWith=(...u)=>e.check(Qa(...u)),e.min=(...u)=>e.check(nt(...u)),e.max=(...u)=>e.check(Yi(...u)),e.length=(...u)=>e.check(Xi(...u)),e.nonempty=(...u)=>e.check(nt(1,...u)),e.lowercase=u=>e.check(Ga(u)),e.uppercase=u=>e.check(Ja(u)),e.trim=()=>e.check(Xa()),e.normalize=(...u)=>e.check(Ya(...u)),e.toLowerCase=()=>e.check(eo()),e.toUpperCase=()=>e.check(no())}),eu=p("ZodString",(e,n)=>{Ht.init(e,n),so.init(e,n),e.email=t=>e.check(Sa(lo,t)),e.url=t=>e.check(Ca(fo,t)),e.jwt=t=>e.check(Va(_o,t)),e.emoji=t=>e.check($a(mo,t)),e.guid=t=>e.check(Ki(nu,t)),e.uuid=t=>e.check(Ba(Ke,t)),e.uuidv4=t=>e.check(Aa(Ke,t)),e.uuidv6=t=>e.check(wa(Ke,t)),e.uuidv7=t=>e.check(_a(Ke,t)),e.nanoid=t=>e.check(xa(vo,t)),e.guid=t=>e.check(Ki(nu,t)),e.cuid=t=>e.check(Ia(po,t)),e.cuid2=t=>e.check(Fa(ho,t)),e.ulid=t=>e.check(Na(go,t)),e.base64=t=>e.check(ja(Bo,t)),e.base64url=t=>e.check(La(Ao,t)),e.xid=t=>e.check(Ta(Eo,t)),e.ksuid=t=>e.check(Oa(yo,t)),e.ipv4=t=>e.check(za(bo,t)),e.ipv6=t=>e.check(Ua(ko,t)),e.cidrv4=t=>e.check(Pa(Do,t)),e.cidrv6=t=>e.check(Ra(So,t)),e.e164=t=>e.check(Za(wo,t)),e.datetime=t=>e.check(xf(t)),e.date=t=>e.check(If(t)),e.time=t=>e.check(Ff(t)),e.duration=t=>e.check(Nf(t))});function co(e){return Rd(eu,e)}var X=p("ZodStringFormat",(e,n)=>{W.init(e,n),so.init(e,n)}),lo=p("ZodEmail",(e,n)=>{Dl.init(e,n),X.init(e,n)});function x3(e){return Sa(lo,e)}var nu=p("ZodGUID",(e,n)=>{bl.init(e,n),X.init(e,n)});function I3(e){return Ki(nu,e)}var Ke=p("ZodUUID",(e,n)=>{kl.init(e,n),X.init(e,n)});function F3(e){return Ba(Ke,e)}function N3(e){return Aa(Ke,e)}function T3(e){return wa(Ke,e)}function O3(e){return _a(Ke,e)}var fo=p("ZodURL",(e,n)=>{Sl.init(e,n),X.init(e,n)});function z3(e){return Ca(fo,e)}var mo=p("ZodEmoji",(e,n)=>{Bl.init(e,n),X.init(e,n)});function U3(e){return $a(mo,e)}var vo=p("ZodNanoID",(e,n)=>{Al.init(e,n),X.init(e,n)});function P3(e){return xa(vo,e)}var po=p("ZodCUID",(e,n)=>{wl.init(e,n),X.init(e,n)});function R3(e){return Ia(po,e)}var ho=p("ZodCUID2",(e,n)=>{_l.init(e,n),X.init(e,n)});function j3(e){return Fa(ho,e)}var go=p("ZodULID",(e,n)=>{Cl.init(e,n),X.init(e,n)});function L3(e){return Na(go,e)}var Eo=p("ZodXID",(e,n)=>{$l.init(e,n),X.init(e,n)});function Z3(e){return Ta(Eo,e)}var yo=p("ZodKSUID",(e,n)=>{xl.init(e,n),X.init(e,n)});function V3(e){return Oa(yo,e)}var bo=p("ZodIPv4",(e,n)=>{Ol.init(e,n),X.init(e,n)});function q3(e){return za(bo,e)}var ko=p("ZodIPv6",(e,n)=>{zl.init(e,n),X.init(e,n)});function M3(e){return Ua(ko,e)}var Do=p("ZodCIDRv4",(e,n)=>{Ul.init(e,n),X.init(e,n)});function G3(e){return Pa(Do,e)}var So=p("ZodCIDRv6",(e,n)=>{Pl.init(e,n),X.init(e,n)});function J3(e){return Ra(So,e)}var Bo=p("ZodBase64",(e,n)=>{Rl.init(e,n),X.init(e,n)});function H3(e){return ja(Bo,e)}var Ao=p("ZodBase64URL",(e,n)=>{Ll.init(e,n),X.init(e,n)});function K3(e){return La(Ao,e)}var wo=p("ZodE164",(e,n)=>{Zl.init(e,n),X.init(e,n)});function Q3(e){return Za(wo,e)}var _o=p("ZodJWT",(e,n)=>{ql.init(e,n),X.init(e,n)});function W3(e){return Va(_o,e)}var Rf=p("ZodCustomStringFormat",(e,n)=>{Ml.init(e,n),X.init(e,n)});function Y3(e,n,t={}){return Af(Rf,e,n,t)}var tu=p("ZodNumber",(e,n)=>{fa.init(e,n),Z.init(e,n),e.gt=(u,i)=>e.check(Fn(u,i)),e.gte=(u,i)=>e.check(_e(u,i)),e.min=(u,i)=>e.check(_e(u,i)),e.lt=(u,i)=>e.check(In(u,i)),e.lte=(u,i)=>e.check(Le(u,i)),e.max=(u,i)=>e.check(Le(u,i)),e.int=u=>e.check(Co(u)),e.safe=u=>e.check(Co(u)),e.positive=u=>e.check(Fn(0,u)),e.nonnegative=u=>e.check(_e(0,u)),e.negative=u=>e.check(In(0,u)),e.nonpositive=u=>e.check(Le(0,u)),e.multipleOf=(u,i)=>e.check(Kt(u,i)),e.step=(u,i)=>e.check(Kt(u,i)),e.finite=()=>e;const t=e._zod.bag;e.minValue=Math.max(t.minimum??Number.NEGATIVE_INFINITY,t.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(t.maximum??Number.POSITIVE_INFINITY,t.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(t.format??"").includes("int")||Number.isSafeInteger(t.multipleOf??.5),e.isFinite=!0,e.format=t.format??null});function jf(e){return Gd(tu,e)}var tt=p("ZodNumberFormat",(e,n)=>{Gl.init(e,n),tu.init(e,n)});function Co(e){return Hd(tt,e)}function X3(e){return Kd(tt,e)}function e1(e){return Qd(tt,e)}function n1(e){return Wd(tt,e)}function t1(e){return Yd(tt,e)}var iu=p("ZodBoolean",(e,n)=>{ma.init(e,n),Z.init(e,n)});function Lf(e){return Xd(iu,e)}var uu=p("ZodBigInt",(e,n)=>{va.init(e,n),Z.init(e,n),e.gte=(u,i)=>e.check(_e(u,i)),e.min=(u,i)=>e.check(_e(u,i)),e.gt=(u,i)=>e.check(Fn(u,i)),e.gte=(u,i)=>e.check(_e(u,i)),e.min=(u,i)=>e.check(_e(u,i)),e.lt=(u,i)=>e.check(In(u,i)),e.lte=(u,i)=>e.check(Le(u,i)),e.max=(u,i)=>e.check(Le(u,i)),e.positive=u=>e.check(Fn(BigInt(0),u)),e.negative=u=>e.check(In(BigInt(0),u)),e.nonpositive=u=>e.check(Le(BigInt(0),u)),e.nonnegative=u=>e.check(_e(BigInt(0),u)),e.multipleOf=(u,i)=>e.check(Kt(u,i));const t=e._zod.bag;e.minValue=t.minimum??null,e.maxValue=t.maximum??null,e.format=t.format??null});function i1(e){return nf(uu,e)}var $o=p("ZodBigIntFormat",(e,n)=>{Jl.init(e,n),uu.init(e,n)});function u1(e){return uf($o,e)}function r1(e){return rf($o,e)}var Zf=p("ZodSymbol",(e,n)=>{Hl.init(e,n),Z.init(e,n)});function a1(e){return af(Zf,e)}var Vf=p("ZodUndefined",(e,n)=>{Kl.init(e,n),Z.init(e,n)});function o1(e){return of(Vf,e)}var qf=p("ZodNull",(e,n)=>{Ql.init(e,n),Z.init(e,n)});function Mf(e){return sf(qf,e)}var Gf=p("ZodAny",(e,n)=>{Wl.init(e,n),Z.init(e,n)});function s1(){return cf(Gf)}var Jf=p("ZodUnknown",(e,n)=>{Mi.init(e,n),Z.init(e,n)});function ru(){return Qi(Jf)}var Hf=p("ZodNever",(e,n)=>{Yl.init(e,n),Z.init(e,n)});function au(e){return lf(Hf,e)}var Kf=p("ZodVoid",(e,n)=>{Xl.init(e,n),Z.init(e,n)});function c1(e){return df(Kf,e)}var xo=p("ZodDate",(e,n)=>{ed.init(e,n),Z.init(e,n),e.min=(u,i)=>e.check(_e(u,i)),e.max=(u,i)=>e.check(Le(u,i));const t=e._zod.bag;e.minDate=t.minimum?new Date(t.minimum):null,e.maxDate=t.maximum?new Date(t.maximum):null});function l1(e){return ff(xo,e)}var Qf=p("ZodArray",(e,n)=>{pa.init(e,n),Z.init(e,n),e.element=n.element,e.min=(t,u)=>e.check(nt(t,u)),e.nonempty=t=>e.check(nt(1,t)),e.max=(t,u)=>e.check(Yi(t,u)),e.length=(t,u)=>e.check(Xi(t,u)),e.unwrap=()=>e.element});function Io(e,n){return to(Qf,e,n)}function d1(e){const n=e._zod.def.shape;return am(Object.keys(n))}var ou=p("ZodObject",(e,n)=>{id.init(e,n),Z.init(e,n),M.defineLazy(e,"shape",()=>n.shape),e.keyof=()=>um(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:ru()}),e.loose=()=>e.clone({...e._zod.def,catchall:ru()}),e.strict=()=>e.clone({...e._zod.def,catchall:au()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>M.extend(e,t),e.merge=t=>M.merge(e,t),e.pick=t=>M.pick(e,t),e.omit=t=>M.omit(e,t),e.partial=(...t)=>M.partial(zo,e,t[0]),e.required=(...t)=>M.required(Uo,e,t[0])});function f1(e,n){const t={type:"object",get shape(){return M.assignProp(this,"shape",{...e}),this.shape},...M.normalizeParams(n)};return new ou(t)}function m1(e,n){return new ou({type:"object",get shape(){return M.assignProp(this,"shape",{...e}),this.shape},catchall:au(),...M.normalizeParams(n)})}function v1(e,n){return new ou({type:"object",get shape(){return M.assignProp(this,"shape",{...e}),this.shape},catchall:ru(),...M.normalizeParams(n)})}var Fo=p("ZodUnion",(e,n)=>{ha.init(e,n),Z.init(e,n),e.options=n.options});function su(e,n){return new Fo({type:"union",options:e,...M.normalizeParams(n)})}var Wf=p("ZodDiscriminatedUnion",(e,n)=>{Fo.init(e,n),rd.init(e,n)});function p1(e,n,t){return new Wf({type:"union",options:n,discriminator:e,...M.normalizeParams(t)})}var Yf=p("ZodIntersection",(e,n)=>{ad.init(e,n),Z.init(e,n)});function Xf(e,n){return new Yf({type:"intersection",left:e,right:n})}var em=p("ZodTuple",(e,n)=>{Ji.init(e,n),Z.init(e,n),e.rest=t=>e.clone({...e._zod.def,rest:t})});function h1(e,n,t){const u=n instanceof U,i=u?t:n,r=u?n:null;return new em({type:"tuple",items:e,rest:r,...M.normalizeParams(i)})}var No=p("ZodRecord",(e,n)=>{sd.init(e,n),Z.init(e,n),e.keyType=n.keyType,e.valueType=n.valueType});function nm(e,n,t){return new No({type:"record",keyType:e,valueType:n,...M.normalizeParams(t)})}function g1(e,n,t){return new No({type:"record",keyType:su([e,au()]),valueType:n,...M.normalizeParams(t)})}var tm=p("ZodMap",(e,n)=>{cd.init(e,n),Z.init(e,n),e.keyType=n.keyType,e.valueType=n.valueType});function E1(e,n,t){return new tm({type:"map",keyType:e,valueType:n,...M.normalizeParams(t)})}var im=p("ZodSet",(e,n)=>{dd.init(e,n),Z.init(e,n),e.min=(...t)=>e.check(Qt(...t)),e.nonempty=t=>e.check(Qt(1,t)),e.max=(...t)=>e.check(Wi(...t)),e.size=(...t)=>e.check(qa(...t))});function y1(e,n){return new im({type:"set",valueType:e,...M.normalizeParams(n)})}var Yt=p("ZodEnum",(e,n)=>{md.init(e,n),Z.init(e,n),e.enum=n.entries,e.options=Object.values(n.entries);const t=new Set(Object.keys(n.entries));e.extract=(u,i)=>{const r={};for(const a of u)if(t.has(a))r[a]=n.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Yt({...n,checks:[],...M.normalizeParams(i),entries:r})},e.exclude=(u,i)=>{const r={...n.entries};for(const a of u)if(t.has(a))delete r[a];else throw new Error(`Key ${a} not found in enum`);return new Yt({...n,checks:[],...M.normalizeParams(i),entries:r})}});function um(e,n){const t=Array.isArray(e)?Object.fromEntries(e.map(u=>[u,u])):e;return new Yt({type:"enum",entries:t,...M.normalizeParams(n)})}function b1(e,n){return new Yt({type:"enum",entries:e,...M.normalizeParams(n)})}var rm=p("ZodLiteral",(e,n)=>{vd.init(e,n),Z.init(e,n),e.values=new Set(n.values),Object.defineProperty(e,"value",{get(){if(n.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return n.values[0]}})});function am(e,n){return new rm({type:"literal",values:Array.isArray(e)?e:[e],...M.normalizeParams(n)})}var om=p("ZodFile",(e,n)=>{pd.init(e,n),Z.init(e,n),e.min=(t,u)=>e.check(Qt(t,u)),e.max=(t,u)=>e.check(Wi(t,u)),e.mime=(t,u)=>e.check(Wa(Array.isArray(t)?t:[t],u))});function k1(e){return kf(om,e)}var To=p("ZodTransform",(e,n)=>{Ea.init(e,n),Z.init(e,n),e._zod.parse=(t,u)=>{t.addIssue=r=>{if(typeof r=="string")t.issues.push(M.issue(r,t.value,n));else{const a=r;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=t.value),a.inst??(a.inst=e),a.continue??(a.continue=!0),t.issues.push(M.issue(a))}};const i=n.transform(t.value,t);return i instanceof Promise?i.then(r=>(t.value=r,t)):(t.value=i,t)}});function Oo(e){return new To({type:"transform",transform:e})}var zo=p("ZodOptional",(e,n)=>{hd.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType});function cu(e){return new zo({type:"optional",innerType:e})}var sm=p("ZodNullable",(e,n)=>{gd.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType});function lu(e){return new sm({type:"nullable",innerType:e})}function D1(e){return cu(lu(e))}var cm=p("ZodDefault",(e,n)=>{Ed.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function lm(e,n){return new cm({type:"default",innerType:e,get defaultValue(){return typeof n=="function"?n():n}})}var dm=p("ZodPrefault",(e,n)=>{bd.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType});function fm(e,n){return new dm({type:"prefault",innerType:e,get defaultValue(){return typeof n=="function"?n():n}})}var Uo=p("ZodNonOptional",(e,n)=>{kd.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType});function mm(e,n){return new Uo({type:"nonoptional",innerType:e,...M.normalizeParams(n)})}var vm=p("ZodSuccess",(e,n)=>{Sd.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType});function S1(e){return new vm({type:"success",innerType:e})}var pm=p("ZodCatch",(e,n)=>{Bd.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function hm(e,n){return new pm({type:"catch",innerType:e,catchValue:typeof n=="function"?n:()=>n})}var gm=p("ZodNaN",(e,n)=>{Ad.init(e,n),Z.init(e,n)});function B1(e){return vf(gm,e)}var Po=p("ZodPipe",(e,n)=>{ya.init(e,n),Z.init(e,n),e.in=n.in,e.out=n.out});function du(e,n){return new Po({type:"pipe",in:e,out:n})}var Em=p("ZodReadonly",(e,n)=>{_d.init(e,n),Z.init(e,n)});function ym(e){return new Em({type:"readonly",innerType:e})}var bm=p("ZodTemplateLiteral",(e,n)=>{$d.init(e,n),Z.init(e,n)});function A1(e,n){return new bm({type:"template_literal",parts:e,...M.normalizeParams(n)})}var km=p("ZodLazy",(e,n)=>{Id.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.getter()});function Dm(e){return new km({type:"lazy",getter:e})}var Sm=p("ZodPromise",(e,n)=>{xd.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType});function w1(e){return new Sm({type:"promise",innerType:e})}var fu=p("ZodCustom",(e,n)=>{Fd.init(e,n),Z.init(e,n)});function Bm(e){const n=new ie({check:"custom"});return n._zod.check=e,n}function _1(e,n){return Df(fu,e??(()=>!0),n)}function Am(e,n={}){return Sf(fu,e,n)}function wm(e){const n=Bm(t=>(t.addIssue=u=>{if(typeof u=="string")t.issues.push(M.issue(u,t.value,n._zod.def));else{const i=u;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=t.value),i.inst??(i.inst=n),i.continue??(i.continue=!n._zod.def.abort),t.issues.push(M.issue(i))}},e(t.value,t)));return n}function C1(e,n={error:`Input not instance of ${e.name}`}){const t=new fu({type:"custom",check:"custom",fn:u=>u instanceof e,abort:!0,...M.normalizeParams(n)});return t._zod.bag.Class=e,t}var $1=(...e)=>Bf({Pipe:Po,Boolean:iu,String:eu,Transform:To},...e);function x1(e){const n=Dm(()=>su([co(e),jf(),Lf(),Mf(),Io(n),nm(co(),n)]));return n}function I1(e,n){return du(Oo(e),n)}var F1={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 N1(e){ye({customError:e})}function T1(){return ye().customError}var Ro;Ro||(Ro={});var _m={};Dn(_m,{bigint:()=>P1,boolean:()=>U1,date:()=>R1,number:()=>z1,string:()=>O1});function O1(e){return jd(eu,e)}function z1(e){return Jd(tu,e)}function U1(e){return ef(iu,e)}function P1(e){return tf(uu,e)}function R1(e){return mf(xo,e)}ye(Od());var mu={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateDebitCard"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"createDebitCardInput"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DebitCardInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createDebitCard"},arguments:[{kind:"Argument",name:{kind:"Name",value:"createDebitCardInput"},value:{kind:"Variable",name:{kind:"Name",value:"createDebitCardInput"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"payable"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"debitCardNetwork"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"expirationDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cardNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mask"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"externalId"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:381}};mu.loc.source={body:`mutation CreateDebitCard($createDebitCardInput: DebitCardInput!) {
|
|
256
202
|
createDebitCard(createDebitCardInput: $createDebitCardInput) {
|
|
257
203
|
id
|
|
258
204
|
type
|
|
@@ -270,7 +216,7 @@ query UserBills {
|
|
|
270
216
|
externalId
|
|
271
217
|
}
|
|
272
218
|
}
|
|
273
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function
|
|
219
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function vu(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){vu(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){vu(u,n)}),e.definitions&&e.definitions.forEach(function(u){vu(u,n)})}var jo={};(function(){mu.definitions.forEach(function(n){if(n.name){var t=new Set;vu(n,t),jo[n.name.value]=t}})})();function Cm(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function j1(e,n){var t={kind:e.kind,definitions:[Cm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=jo[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=jo[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=Cm(e,o);s&&t.definitions.push(s)}),t}j1(mu,"CreateDebitCard");var pu={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RenameDebitCard"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"renamePayableAccount"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DebitCard"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"payable"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"debitCardNetwork"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"expirationDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cardNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mask"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"externalId"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:467}};pu.loc.source={body:`mutation RenameDebitCard($accountId: String!, $name: String!) {
|
|
274
220
|
renamePayableAccount(accountId: $accountId, name: $name) {
|
|
275
221
|
... on DebitCard {
|
|
276
222
|
id
|
|
@@ -290,7 +236,7 @@ query UserBills {
|
|
|
290
236
|
}
|
|
291
237
|
}
|
|
292
238
|
}
|
|
293
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function
|
|
239
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function hu(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){hu(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){hu(u,n)}),e.definitions&&e.definitions.forEach(function(u){hu(u,n)})}var Lo={};(function(){pu.definitions.forEach(function(n){if(n.name){var t=new Set;hu(n,t),Lo[n.name.value]=t}})})();function $m(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function L1(e,n){var t={kind:e.kind,definitions:[$m(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=Lo[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Lo[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=$m(e,o);s&&t.definitions.push(s)}),t}L1(pu,"RenameDebitCard");var gu={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"DebitCardFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DebitCard"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"payable"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"debitCardNetwork"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"expirationDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cardNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mask"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"externalId"},arguments:[],directives:[]}]}}],loc:{start:0,end:227}};gu.loc.source={body:`fragment DebitCardFragment on DebitCard {
|
|
294
240
|
id
|
|
295
241
|
type
|
|
296
242
|
name
|
|
@@ -306,35 +252,35 @@ query UserBills {
|
|
|
306
252
|
paymentCount
|
|
307
253
|
externalId
|
|
308
254
|
}
|
|
309
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function
|
|
255
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Eu(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){Eu(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){Eu(u,n)}),e.definitions&&e.definitions.forEach(function(u){Eu(u,n)})}var Zo={};(function(){gu.definitions.forEach(function(n){if(n.name){var t=new Set;Eu(n,t),Zo[n.name.value]=t}})})();function xm(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function Z1(e,n){var t={kind:e.kind,definitions:[xm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=Zo[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Zo[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=xm(e,o);s&&t.definitions.push(s)}),t}Z1(gu,"DebitCardFragment");var it={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"UserDebitCards"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"debitCards"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"DebitCardFragment"},directives:[]}]}}]}}],loc:{start:0,end:116}};it.loc.source={body:`#import "./debitCardFragment.graphql"
|
|
310
256
|
|
|
311
257
|
query UserDebitCards {
|
|
312
258
|
debitCards {
|
|
313
259
|
...DebitCardFragment
|
|
314
260
|
}
|
|
315
261
|
}
|
|
316
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var
|
|
262
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Im={};function V1(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Im[t]?!1:(Im[t]=!0,!0)})}it.definitions=it.definitions.concat(V1(gu.definitions));function yu(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){yu(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){yu(u,n)}),e.definitions&&e.definitions.forEach(function(u){yu(u,n)})}var Vo={};(function(){it.definitions.forEach(function(n){if(n.name){var t=new Set;yu(n,t),Vo[n.name.value]=t}})})();function Fm(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function q1(e,n){var t={kind:e.kind,definitions:[Fm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=Vo[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Vo[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=Fm(e,o);s&&t.definitions.push(s)}),t}q1(it,"UserDebitCards");const M1=/^4[0-9]{12}(?:[0-9]{3})?$/,G1=/^5[1-5][0-9]{14}$/,J1=Qn.object({name:Qn.string().min(1,"Name is required").nullable().optional(),cardNumber:Qn.string().min(1,"Card number is required").transform(e=>e.replace(/[^\d]/g,"")).refine(e=>(M1.test(e)||G1.test(e))&&e.length===16,"Card must be a valid 16-digit Visa or Mastercard number"),expirationDate:Qn.string().min(1,"Expiration date is required").regex(/^(0[1-9]|1[0-2])\/\d{2}$/,"Expiration date must be in MM/YY format")});class H1{client;constructor(n){this.client=n}async list(){return(await this.client.query({query:it}))?.debitCards??[]}async rename(n,t){return(await this.client.query({query:pu,variables:{accountId:n,name:t}}))?.renamePayableAccount??null}async delete(n){return(await this.client.query({query:_n,variables:{accountId:n}}))?.deletePayableAccount??null}async create(n){try{const t=J1.parse(n);return(await this.client.query({query:mu,variables:{createDebitCardInput:{...n,cardNumber:t.cardNumber}}}))?.createDebitCard??null}catch(t){throw t instanceof Qn.ZodError?new Error(t.issues[0]?.message??"Input validation failure"):t}}}class K1{client;constructor(n){this.client=n}async prepare(n){return this.client.restApi({method:"post",path:"/v1/deposits/direct/prepare",body:n})}async create(n){return this.client.restApi({method:"post",path:"/v1/deposits/direct",body:n})}}class Q1{client;constructor(n){this.client=n}async list(){return this.client.restApi({method:"get",path:"/v1/funding-sources/"})}async get(n){return this.client.restApi({method:"get",path:`/v1/funding-sources/${encodeURIComponent(n)}`})}async getDepositLimits(n){return this.client.restApi({method:"get",path:`/v1/funding-sources/${encodeURIComponent(n)}/deposit-limits`})}}var Xt={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PayableAccountInstitutionFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PayableAccountInstitution"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"logo"},arguments:[],directives:[]}]}}],loc:{start:0,end:126}};Xt.loc.source={body:`fragment PayableAccountInstitutionFragment on PayableAccountInstitution {
|
|
317
263
|
id
|
|
318
264
|
country
|
|
319
265
|
currency
|
|
320
266
|
name
|
|
321
267
|
logo
|
|
322
268
|
}
|
|
323
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function
|
|
269
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function bu(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){bu(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){bu(u,n)}),e.definitions&&e.definitions.forEach(function(u){bu(u,n)})}var qo={};(function(){Xt.definitions.forEach(function(n){if(n.name){var t=new Set;bu(n,t),qo[n.name.value]=t}})})();function Nm(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function W1(e,n){var t={kind:e.kind,definitions:[Nm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=qo[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=qo[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=Nm(e,o);s&&t.definitions.push(s)}),t}W1(Xt,"PayableAccountInstitutionFragment");var ut={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"PopularBillInstitutions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"billType"}},type:{kind:"NamedType",name:{kind:"Name",value:"BillType"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"popularUSBillInstitutions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"billType"},value:{kind:"Variable",name:{kind:"Name",value:"billType"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PayableAccountInstitutionFragment"},directives:[]}]}}]}}],loc:{start:0,end:214}};ut.loc.source={body:`#import "./payableAccountInstitutionFragment.graphql"
|
|
324
270
|
|
|
325
271
|
query PopularBillInstitutions($billType: BillType) {
|
|
326
272
|
popularUSBillInstitutions(billType: $billType) {
|
|
327
273
|
...PayableAccountInstitutionFragment
|
|
328
274
|
}
|
|
329
275
|
}
|
|
330
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var
|
|
276
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Tm={};function Y1(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Tm[t]?!1:(Tm[t]=!0,!0)})}ut.definitions=ut.definitions.concat(Y1(Xt.definitions));function ku(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){ku(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){ku(u,n)}),e.definitions&&e.definitions.forEach(function(u){ku(u,n)})}var Mo={};(function(){ut.definitions.forEach(function(n){if(n.name){var t=new Set;ku(n,t),Mo[n.name.value]=t}})})();function Om(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function X1(e,n){var t={kind:e.kind,definitions:[Om(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=Mo[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Mo[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=Om(e,o);s&&t.definitions.push(s)}),t}X1(ut,"PopularBillInstitutions");var rt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SearchUSBillInstitutions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"searchTerm"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"billType"}},type:{kind:"NamedType",name:{kind:"Name",value:"BillType"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"searchUSBillInstitutions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"searchTerm"},value:{kind:"Variable",name:{kind:"Name",value:"searchTerm"}}},{kind:"Argument",name:{kind:"Name",value:"billType"},value:{kind:"Variable",name:{kind:"Name",value:"billType"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PayableAccountInstitutionFragment"},directives:[]}]}}]}}],loc:{start:0,end:261}};rt.loc.source={body:`#import "./payableAccountInstitutionFragment.graphql"
|
|
331
277
|
|
|
332
278
|
query SearchUSBillInstitutions($searchTerm: String!, $billType: BillType) {
|
|
333
279
|
searchUSBillInstitutions(searchTerm: $searchTerm, billType: $billType) {
|
|
334
280
|
...PayableAccountInstitutionFragment
|
|
335
281
|
}
|
|
336
282
|
}
|
|
337
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var
|
|
283
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var zm={};function eE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return zm[t]?!1:(zm[t]=!0,!0)})}rt.definitions=rt.definitions.concat(eE(Xt.definitions));function Du(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){Du(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){Du(u,n)}),e.definitions&&e.definitions.forEach(function(u){Du(u,n)})}var Go={};(function(){rt.definitions.forEach(function(n){if(n.name){var t=new Set;Du(n,t),Go[n.name.value]=t}})})();function Um(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function nE(e,n){var t={kind:e.kind,definitions:[Um(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=Go[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Go[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=Um(e,o);s&&t.definitions.push(s)}),t}nE(rt,"SearchUSBillInstitutions");class tE{client;constructor(n){this.client=n}async popularUSBillInstitutions(n){return(await this.client.query({query:ut,variables:{billType:n??null}}))?.popularUSBillInstitutions??[]}async searchUSBillInstitutions(n,t){return(await this.client.query({query:rt,variables:{searchTerm:n,billType:t??null}}))?.searchUSBillInstitutions??[]}}class iE{client;constructor(n){this.client=n}async bypassKyc(n){return this.client.restApi({method:"post",path:"/v1/sandbox/bypass-kyc",body:n??{country:"US"}})}async createDepositWithReturn(n){return this.client.restApi({method:"post",path:"/v1/sandbox/deposits/direct",body:n})}}var Su={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"OnrampPaymentFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"OnRampPayment"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"feeAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"depositInstructions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankAddress"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankBeneficiaryName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankRoutingNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankAccountNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentMethod"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"depositMessage"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"network"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"token"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]}]}}],loc:{start:0,end:369}};Su.loc.source={body:`fragment OnrampPaymentFragment on OnRampPayment {
|
|
338
284
|
id
|
|
339
285
|
amount
|
|
340
286
|
feeAmount
|
|
@@ -355,14 +301,14 @@ query SearchUSBillInstitutions($searchTerm: String!, $billType: BillType) {
|
|
|
355
301
|
status
|
|
356
302
|
createdAt
|
|
357
303
|
}
|
|
358
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function
|
|
304
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Bu(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){Bu(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){Bu(u,n)}),e.definitions&&e.definitions.forEach(function(u){Bu(u,n)})}var Jo={};(function(){Su.definitions.forEach(function(n){if(n.name){var t=new Set;Bu(n,t),Jo[n.name.value]=t}})})();function Pm(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function uE(e,n){var t={kind:e.kind,definitions:[Pm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=Jo[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Jo[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=Pm(e,o);s&&t.definitions.push(s)}),t}uE(Su,"OnrampPaymentFragment");var at={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateOnrampPayment"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"createOnrampPaymentInput"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateOnrampPaymentInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createOnrampPayment"},arguments:[{kind:"Argument",name:{kind:"Name",value:"createOnrampPaymentInput"},value:{kind:"Variable",name:{kind:"Name",value:"createOnrampPaymentInput"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"OnrampPaymentFragment"},directives:[]}]}}]}}],loc:{start:0,end:257}};at.loc.source={body:`#import "../queries/onrampPaymentFragment.graphql"
|
|
359
305
|
|
|
360
306
|
mutation CreateOnrampPayment($createOnrampPaymentInput: CreateOnrampPaymentInput!) {
|
|
361
307
|
createOnrampPayment(createOnrampPaymentInput: $createOnrampPaymentInput) {
|
|
362
308
|
...OnrampPaymentFragment
|
|
363
309
|
}
|
|
364
310
|
}
|
|
365
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var
|
|
311
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Rm={};function rE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Rm[t]?!1:(Rm[t]=!0,!0)})}at.definitions=at.definitions.concat(rE(Su.definitions));function Au(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){Au(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){Au(u,n)}),e.definitions&&e.definitions.forEach(function(u){Au(u,n)})}var Ho={};(function(){at.definitions.forEach(function(n){if(n.name){var t=new Set;Au(n,t),Ho[n.name.value]=t}})})();function jm(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function aE(e,n){var t={kind:e.kind,definitions:[jm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=Ho[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Ho[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=jm(e,o);s&&t.definitions.push(s)}),t}aE(at,"CreateOnrampPayment");class oE{client;constructor(n){this.client=n}async create(n){return(await this.client.query({query:at,variables:{createOnrampPaymentInput:n}}))?.createOnrampPayment}async list(n){return this.client.restApi({method:"get",path:"/v1/on-ramps/",query:n})}async get(n){return this.client.restApi({method:"get",path:`/v1/on-ramps/${encodeURIComponent(n)}`})}}var wu={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"FullBridgeUser"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BridgeUser"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"kycStatus"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tosLink"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tosStatus"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"signedAgreementId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"error"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasAcceptedTos"},arguments:[],directives:[]}]}}],loc:{start:0,end:151}};wu.loc.source={body:`fragment FullBridgeUser on BridgeUser {
|
|
366
312
|
id
|
|
367
313
|
kycStatus
|
|
368
314
|
tosLink
|
|
@@ -372,14 +318,14 @@ mutation CreateOnrampPayment($createOnrampPaymentInput: CreateOnrampPaymentInput
|
|
|
372
318
|
error
|
|
373
319
|
hasAcceptedTos
|
|
374
320
|
}
|
|
375
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function
|
|
321
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function _u(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){_u(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){_u(u,n)}),e.definitions&&e.definitions.forEach(function(u){_u(u,n)})}var Ko={};(function(){wu.definitions.forEach(function(n){if(n.name){var t=new Set;_u(n,t),Ko[n.name.value]=t}})})();function Lm(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function sE(e,n){var t={kind:e.kind,definitions:[Lm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=Ko[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Ko[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=Lm(e,o);s&&t.definitions.push(s)}),t}sE(wu,"FullBridgeUser");var ot={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AcceptTermsOfService"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"agreementId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"setBridgeUserAgreementId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"agreementId"},value:{kind:"Variable",name:{kind:"Name",value:"agreementId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FullBridgeUser"},directives:[]}]}}]}}],loc:{start:0,end:196}};ot.loc.source={body:`#import "../queries/bridgeUserFragment.graphql"
|
|
376
322
|
|
|
377
323
|
mutation AcceptTermsOfService($agreementId: String!) {
|
|
378
324
|
setBridgeUserAgreementId(agreementId: $agreementId) {
|
|
379
325
|
...FullBridgeUser
|
|
380
326
|
}
|
|
381
327
|
}
|
|
382
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var
|
|
328
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Zm={};function cE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Zm[t]?!1:(Zm[t]=!0,!0)})}ot.definitions=ot.definitions.concat(cE(wu.definitions));function Cu(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){Cu(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){Cu(u,n)}),e.definitions&&e.definitions.forEach(function(u){Cu(u,n)})}var Qo={};(function(){ot.definitions.forEach(function(n){if(n.name){var t=new Set;Cu(n,t),Qo[n.name.value]=t}})})();function Vm(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function lE(e,n){var t={kind:e.kind,definitions:[Vm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=Qo[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Qo[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=Vm(e,o);s&&t.definitions.push(s)}),t}lE(ot,"AcceptTermsOfService");class dE{client;constructor(n){this.client=n}async acceptTermsOfService(n){return(await this.client.query({query:ot,variables:{agreementId:n}})).setBridgeUserAgreementId}}var ei={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"VirtualAccountFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BridgeVirtualAccount"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"network"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"token"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"deposited"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"microdeposits"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"depositInstructions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bankAccountNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankAddress"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankRoutingNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentMethod"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:306}};ei.loc.source={body:`fragment VirtualAccountFragment on BridgeVirtualAccount {
|
|
383
329
|
id
|
|
384
330
|
network
|
|
385
331
|
address
|
|
@@ -396,7 +342,7 @@ mutation AcceptTermsOfService($agreementId: String!) {
|
|
|
396
342
|
paymentMethod
|
|
397
343
|
}
|
|
398
344
|
}
|
|
399
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function
|
|
345
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function $u(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){$u(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){$u(u,n)}),e.definitions&&e.definitions.forEach(function(u){$u(u,n)})}var Wo={};(function(){ei.definitions.forEach(function(n){if(n.name){var t=new Set;$u(n,t),Wo[n.name.value]=t}})})();function qm(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function fE(e,n){var t={kind:e.kind,definitions:[qm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=Wo[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Wo[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=qm(e,o);s&&t.definitions.push(s)}),t}fE(ei,"VirtualAccountFragment");var st={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateVirtualAccount"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"network"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"address"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"token"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createVirtualAccount"},arguments:[{kind:"Argument",name:{kind:"Name",value:"createBridgeVirtualAccountInput"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"address"},value:{kind:"Variable",name:{kind:"Name",value:"address"}}},{kind:"ObjectField",name:{kind:"Name",value:"network"},value:{kind:"Variable",name:{kind:"Name",value:"network"}}},{kind:"ObjectField",name:{kind:"Name",value:"token"},value:{kind:"Variable",name:{kind:"Name",value:"token"}}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VirtualAccountFragment"},directives:[]}]}}]}}],loc:{start:0,end:313}};st.loc.source={body:`#import "../queries/virtualAccountFragment.graphql"
|
|
400
346
|
|
|
401
347
|
mutation CreateVirtualAccount($network: String!, $address: String!, $token: String!) {
|
|
402
348
|
createVirtualAccount(
|
|
@@ -405,14 +351,14 @@ mutation CreateVirtualAccount($network: String!, $address: String!, $token: Stri
|
|
|
405
351
|
...VirtualAccountFragment
|
|
406
352
|
}
|
|
407
353
|
}
|
|
408
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var
|
|
354
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Mm={};function mE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Mm[t]?!1:(Mm[t]=!0,!0)})}st.definitions=st.definitions.concat(mE(ei.definitions));function xu(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){xu(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){xu(u,n)}),e.definitions&&e.definitions.forEach(function(u){xu(u,n)})}var Yo={};(function(){st.definitions.forEach(function(n){if(n.name){var t=new Set;xu(n,t),Yo[n.name.value]=t}})})();function Gm(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function vE(e,n){var t={kind:e.kind,definitions:[Gm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=Yo[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Yo[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=Gm(e,o);s&&t.definitions.push(s)}),t}vE(st,"CreateVirtualAccount");var ct={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"VirtualAccounts"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"virtualAccounts"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VirtualAccountFragment"},directives:[]}]}}]}}],loc:{start:0,end:132}};ct.loc.source={body:`#import "./virtualAccountFragment.graphql"
|
|
409
355
|
|
|
410
356
|
query VirtualAccounts {
|
|
411
357
|
virtualAccounts {
|
|
412
358
|
...VirtualAccountFragment
|
|
413
359
|
}
|
|
414
360
|
}
|
|
415
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var
|
|
361
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Jm={};function pE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Jm[t]?!1:(Jm[t]=!0,!0)})}ct.definitions=ct.definitions.concat(pE(ei.definitions));function Iu(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){Iu(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){Iu(u,n)}),e.definitions&&e.definitions.forEach(function(u){Iu(u,n)})}var Xo={};(function(){ct.definitions.forEach(function(n){if(n.name){var t=new Set;Iu(n,t),Xo[n.name.value]=t}})})();function Hm(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function hE(e,n){var t={kind:e.kind,definitions:[Hm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=Xo[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Xo[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=Hm(e,o);s&&t.definitions.push(s)}),t}hE(ct,"VirtualAccounts");var qe=(e=>(e.Ethereum="ethereum",e.Polygon="polygon",e.Optimism="optimism",e.Arbitrum="arbitrum",e.Binance="binance-smart-chain",e.Avalanche="avalanche",e.Base="base",e.Bitcoin="bitcoin",e.Dash="dash",e.Tron="tron",e.Solana="solana",e.Sui="sui",e))(qe||{});const Km={[qe.Ethereum]:["USDC","USDT","DAI","USDP","PYUSD"],[qe.Polygon]:["USDC"],[qe.Base]:["USDC"],[qe.Arbitrum]:["USDC"],[qe.Avalanche]:["USDC"],[qe.Optimism]:["USDC"],[qe.Solana]:["USDC","PYUSD"],[qe.Tron]:["USDT"]};function gE(e){const{network:n,token:t}=e,u=Km[n];if(!u||!u.includes(t))throw new Error(`Token "${t}" is not supported on network "${n}". Supported tokens for ${n}: ${u?.join(", ")||"none"}`)}class EE{client;constructor(n){this.client=n}async list(){return(await this.client.query({query:ct})).virtualAccounts}async create(n){return gE(n),(await this.client.query({query:st,variables:{network:n.network,address:n.address,token:n.token}})).createVirtualAccount}}var lt={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PaymentFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Payment"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"accountId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"feeAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"feeSubsidyAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"deliveryMethod"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentRequestId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"targetCurrency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"targetCurrencyAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"targetCurrencyRate"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"failureReason"},name:{kind:"Name",value:"error"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"transaction"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hash"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"from"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"asset"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"network"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:369}};lt.loc.source={body:`fragment PaymentFragment on Payment {
|
|
416
362
|
id
|
|
417
363
|
userId
|
|
418
364
|
status
|
|
@@ -435,28 +381,28 @@ query VirtualAccounts {
|
|
|
435
381
|
network
|
|
436
382
|
}
|
|
437
383
|
}
|
|
438
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function
|
|
384
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Fu(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){Fu(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){Fu(u,n)}),e.definitions&&e.definitions.forEach(function(u){Fu(u,n)})}var es={};(function(){lt.definitions.forEach(function(n){if(n.name){var t=new Set;Fu(n,t),es[n.name.value]=t}})})();function Qm(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function yE(e,n){var t={kind:e.kind,definitions:[Qm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=es[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=es[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=Qm(e,o);s&&t.definitions.push(s)}),t}yE(lt,"PaymentFragment");var dt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"PaymentRequestPayment"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"paymentRequestId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"paymentForPaymentRequest"},arguments:[{kind:"Argument",name:{kind:"Name",value:"paymentRequestId"},value:{kind:"Variable",name:{kind:"Name",value:"paymentRequestId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PaymentFragment"},directives:[]}]}}]}}],loc:{start:0,end:198}};dt.loc.source={body:`#import "./paymentFragment.graphql"
|
|
439
385
|
|
|
440
386
|
query PaymentRequestPayment($paymentRequestId: String!) {
|
|
441
387
|
paymentForPaymentRequest(paymentRequestId: $paymentRequestId) {
|
|
442
388
|
...PaymentFragment
|
|
443
389
|
}
|
|
444
390
|
}
|
|
445
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var
|
|
391
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Wm={};function bE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Wm[t]?!1:(Wm[t]=!0,!0)})}dt.definitions=dt.definitions.concat(bE(lt.definitions));function Nu(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){Nu(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){Nu(u,n)}),e.definitions&&e.definitions.forEach(function(u){Nu(u,n)})}var ns={};(function(){dt.definitions.forEach(function(n){if(n.name){var t=new Set;Nu(n,t),ns[n.name.value]=t}})})();function Ym(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function kE(e,n){var t={kind:e.kind,definitions:[Ym(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=ns[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=ns[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=Ym(e,o);s&&t.definitions.push(s)}),t}kE(dt,"PaymentRequestPayment");var ft={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AccountPayments"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"paymentsForAccount"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PaymentFragment"},directives:[]}]}}]}}],loc:{start:0,end:165}};ft.loc.source={body:`#import "./paymentFragment.graphql"
|
|
446
392
|
|
|
447
393
|
query AccountPayments($accountId: String!) {
|
|
448
394
|
paymentsForAccount(accountId: $accountId) {
|
|
449
395
|
...PaymentFragment
|
|
450
396
|
}
|
|
451
397
|
}
|
|
452
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var
|
|
398
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Xm={};function DE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Xm[t]?!1:(Xm[t]=!0,!0)})}ft.definitions=ft.definitions.concat(DE(lt.definitions));function Tu(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){Tu(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){Tu(u,n)}),e.definitions&&e.definitions.forEach(function(u){Tu(u,n)})}var ts={};(function(){ft.definitions.forEach(function(n){if(n.name){var t=new Set;Tu(n,t),ts[n.name.value]=t}})})();function e4(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function SE(e,n){var t={kind:e.kind,definitions:[e4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=ts[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=ts[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=e4(e,o);s&&t.definitions.push(s)}),t}SE(ft,"AccountPayments");var mt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Payment"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"paymentId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"payment"},arguments:[{kind:"Argument",name:{kind:"Name",value:"paymentId"},value:{kind:"Variable",name:{kind:"Name",value:"paymentId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PaymentFragment"},directives:[]}]}}]}}],loc:{start:0,end:146}};mt.loc.source={body:`#import "./paymentFragment.graphql"
|
|
453
399
|
|
|
454
400
|
query Payment($paymentId: String!) {
|
|
455
401
|
payment(paymentId: $paymentId) {
|
|
456
402
|
...PaymentFragment
|
|
457
403
|
}
|
|
458
404
|
}
|
|
459
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var
|
|
405
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var n4={};function BE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return n4[t]?!1:(n4[t]=!0,!0)})}mt.definitions=mt.definitions.concat(BE(lt.definitions));function Ou(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){Ou(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){Ou(u,n)}),e.definitions&&e.definitions.forEach(function(u){Ou(u,n)})}var is={};(function(){mt.definitions.forEach(function(n){if(n.name){var t=new Set;Ou(n,t),is[n.name.value]=t}})})();function t4(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function AE(e,n){var t={kind:e.kind,definitions:[t4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=is[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=is[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=t4(e,o);s&&t.definitions.push(s)}),t}AE(mt,"Payment");class wE{client;constructor(n){this.client=n}async listForAccount(n){return(await this.client.query({query:ft,variables:{accountId:n}}))?.paymentsForAccount??[]}async fetchById(n){return(await this.client.query({query:mt,variables:{paymentId:n}}))?.payment??null}async getForPaymentRequest(n){return(await this.client.query({query:dt,variables:{paymentRequestId:n}}))?.paymentForPaymentRequest??null}async getPaymentLimits(n){try{const t=await this.client.restApi({method:"get",path:`/v1/bank-accounts/${encodeURIComponent(n)}/payment-limits`});return{perTransaction:Number(t.transactionLimit),dailyLimit:Number(t.dailyLimit),dailyRemainingVolume:Number(t.dailyRemaining)}}catch{return null}}}var zu={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PaymentRequestFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DirectPayment"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"accountId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"feeAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amountDue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"network"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"deliveryMethod"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"targetCurrency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"targetCurrencyAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"targetCurrencyRate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"feeSubsidyAmount"},arguments:[],directives:[]}]}}],loc:{start:0,end:268}};zu.loc.source={body:`fragment PaymentRequestFragment on DirectPayment {
|
|
460
406
|
id
|
|
461
407
|
userId
|
|
462
408
|
accountId
|
|
@@ -472,14 +418,14 @@ query Payment($paymentId: String!) {
|
|
|
472
418
|
targetCurrencyRate
|
|
473
419
|
feeSubsidyAmount
|
|
474
420
|
}
|
|
475
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function
|
|
421
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Uu(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){Uu(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){Uu(u,n)}),e.definitions&&e.definitions.forEach(function(u){Uu(u,n)})}var us={};(function(){zu.definitions.forEach(function(n){if(n.name){var t=new Set;Uu(n,t),us[n.name.value]=t}})})();function i4(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function _E(e,n){var t={kind:e.kind,definitions:[i4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=us[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=us[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=i4(e,o);s&&t.definitions.push(s)}),t}_E(zu,"PaymentRequestFragment");var vt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreatePaymentRequest"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"createDirectPaymentInput"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateDirectPaymentInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createDirectPayment"},arguments:[{kind:"Argument",name:{kind:"Name",value:"createDirectPaymentInput"},value:{kind:"Variable",name:{kind:"Name",value:"createDirectPaymentInput"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PaymentRequestFragment"},directives:[]}]}}]}}],loc:{start:0,end:260}};vt.loc.source={body:`#import "../queries/paymentRequestFragment.graphql"
|
|
476
422
|
|
|
477
423
|
mutation CreatePaymentRequest($createDirectPaymentInput: CreateDirectPaymentInput!) {
|
|
478
424
|
createDirectPayment(createDirectPaymentInput: $createDirectPaymentInput) {
|
|
479
425
|
...PaymentRequestFragment
|
|
480
426
|
}
|
|
481
427
|
}
|
|
482
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var
|
|
428
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var u4={};function CE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return u4[t]?!1:(u4[t]=!0,!0)})}vt.definitions=vt.definitions.concat(CE(zu.definitions));function Pu(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){Pu(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){Pu(u,n)}),e.definitions&&e.definitions.forEach(function(u){Pu(u,n)})}var rs={};(function(){vt.definitions.forEach(function(n){if(n.name){var t=new Set;Pu(n,t),rs[n.name.value]=t}})})();function r4(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function $E(e,n){var t={kind:e.kind,definitions:[r4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=rs[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=rs[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=r4(e,o);s&&t.definitions.push(s)}),t}$E(vt,"CreatePaymentRequest");var Ru={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetSolanaPayParams"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"tokenAddress"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"amount"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Float"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"reference"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"signer"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"solanaParams"},arguments:[{kind:"Argument",name:{kind:"Name",value:"tokenAddress"},value:{kind:"Variable",name:{kind:"Name",value:"tokenAddress"}}},{kind:"Argument",name:{kind:"Name",value:"amount"},value:{kind:"Variable",name:{kind:"Name",value:"amount"}}},{kind:"Argument",name:{kind:"Name",value:"reference"},value:{kind:"Variable",name:{kind:"Name",value:"reference"}}},{kind:"Argument",name:{kind:"Name",value:"signer"},value:{kind:"Variable",name:{kind:"Name",value:"signer"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"transactionSerialized"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"transaction"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:320}};Ru.loc.source={body:`query GetSolanaPayParams(
|
|
483
429
|
$tokenAddress: String!
|
|
484
430
|
$amount: Float!
|
|
485
431
|
$reference: String!
|
|
@@ -495,7 +441,7 @@ mutation CreatePaymentRequest($createDirectPaymentInput: CreateDirectPaymentInpu
|
|
|
495
441
|
transaction
|
|
496
442
|
}
|
|
497
443
|
}
|
|
498
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function
|
|
444
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function ju(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){ju(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){ju(u,n)}),e.definitions&&e.definitions.forEach(function(u){ju(u,n)})}var as={};(function(){Ru.definitions.forEach(function(n){if(n.name){var t=new Set;ju(n,t),as[n.name.value]=t}})})();function a4(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function xE(e,n){var t={kind:e.kind,definitions:[a4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=as[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=as[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=a4(e,o);s&&t.definitions.push(s)}),t}xE(Ru,"GetSolanaPayParams");var Lu={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetSpritzPayParams"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"tokenAddress"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"amount"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Float"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"reference"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"network"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"spritzPayParams"},arguments:[{kind:"Argument",name:{kind:"Name",value:"tokenAddress"},value:{kind:"Variable",name:{kind:"Name",value:"tokenAddress"}}},{kind:"Argument",name:{kind:"Name",value:"amount"},value:{kind:"Variable",name:{kind:"Name",value:"amount"}}},{kind:"Argument",name:{kind:"Name",value:"reference"},value:{kind:"Variable",name:{kind:"Name",value:"reference"}}},{kind:"Argument",name:{kind:"Name",value:"network"},value:{kind:"Variable",name:{kind:"Name",value:"network"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"contractAddress"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"method"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"calldata"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"requiredTokenInput"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:373}};Lu.loc.source={body:`query GetSpritzPayParams(
|
|
499
445
|
$tokenAddress: String!
|
|
500
446
|
$amount: Float!
|
|
501
447
|
$reference: String!
|
|
@@ -514,14 +460,14 @@ mutation CreatePaymentRequest($createDirectPaymentInput: CreateDirectPaymentInpu
|
|
|
514
460
|
requiredTokenInput
|
|
515
461
|
}
|
|
516
462
|
}
|
|
517
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function
|
|
463
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Zu(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){Zu(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){Zu(u,n)}),e.definitions&&e.definitions.forEach(function(u){Zu(u,n)})}var os={};(function(){Lu.definitions.forEach(function(n){if(n.name){var t=new Set;Zu(n,t),os[n.name.value]=t}})})();function o4(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function IE(e,n){var t={kind:e.kind,definitions:[o4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=os[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=os[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=o4(e,o);s&&t.definitions.push(s)}),t}IE(Lu,"GetSpritzPayParams");var pt=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;function Vu(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function ni(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function fe(e,...n){if(!Vu(e))throw new Error("Uint8Array expected");if(n.length>0&&!n.includes(e.length))throw new Error("Uint8Array expected of length "+n+", got length="+e.length)}function FE(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");ni(e.outputLen),ni(e.blockLen)}function ht(e,n=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(n&&e.finished)throw new Error("Hash#digest() has already been called")}function s4(e,n){fe(e);const t=n.outputLen;if(e.length<t)throw new Error("digestInto() expects output buffer of length at least "+t)}function NE(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function Be(...e){for(let n=0;n<e.length;n++)e[n].fill(0)}function ss(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Me(e,n){return e<<32-n|e>>>n}function cn(e,n){return e<<n|e>>>32-n>>>0}var TE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function OE(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function zE(e){for(let n=0;n<e.length;n++)e[n]=OE(e[n]);return e}var c4=TE?e=>e:zE,l4=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",UE=Array.from({length:256},(e,n)=>n.toString(16).padStart(2,"0"));function ti(e){if(fe(e),l4)return e.toHex();let n="";for(let t=0;t<e.length;t++)n+=UE[e[t]];return n}var Qe={_0:48,_9:57,A:65,F:70,a:97,f:102};function d4(e){if(e>=Qe._0&&e<=Qe._9)return e-Qe._0;if(e>=Qe.A&&e<=Qe.F)return e-(Qe.A-10);if(e>=Qe.a&&e<=Qe.f)return e-(Qe.a-10)}function cs(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(l4)return Uint8Array.fromHex(e);const n=e.length,t=n/2;if(n%2)throw new Error("hex string expected, got unpadded hex of length "+n);const u=new Uint8Array(t);for(let i=0,r=0;i<t;i++,r+=2){const a=d4(e.charCodeAt(r)),o=d4(e.charCodeAt(r+1));if(a===void 0||o===void 0){const s=e[r]+e[r+1];throw new Error('hex string expected, got non-hex character "'+s+'" at index '+r)}u[i]=a*16+o}return u}function qu(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function ii(e){return typeof e=="string"&&(e=qu(e)),fe(e),e}function be(...e){let n=0;for(let u=0;u<e.length;u++){const i=e[u];fe(i),n+=i.length}const t=new Uint8Array(n);for(let u=0,i=0;u<e.length;u++){const r=e[u];t.set(r,i),i+=r.length}return t}var ls=class{};function Ge(e){const n=u=>e().update(ii(u)).digest(),t=e();return n.outputLen=t.outputLen,n.blockLen=t.blockLen,n.create=()=>e(),n}function PE(e){const n=(u,i)=>e(i).update(ii(u)).digest(),t=e({});return n.outputLen=t.outputLen,n.blockLen=t.blockLen,n.create=u=>e(u),n}function f4(e=32){if(pt&&typeof pt.getRandomValues=="function")return pt.getRandomValues(new Uint8Array(e));if(pt&&typeof pt.randomBytes=="function")return Uint8Array.from(pt.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}var ds=BigInt(0),fs=BigInt(1);function Mu(e,n){if(typeof n!="boolean")throw new Error(e+" boolean expected, got "+n)}function Gu(e){const n=e.toString(16);return n.length&1?"0"+n:n}function m4(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?ds:BigInt("0x"+e)}function Tn(e){return m4(ti(e))}function v4(e){return fe(e),m4(ti(Uint8Array.from(e).reverse()))}function ui(e,n){return cs(e.toString(16).padStart(n*2,"0"))}function p4(e,n){return ui(e,n).reverse()}function ce(e,n,t){let u;if(typeof n=="string")try{u=cs(n)}catch(r){throw new Error(e+" must be hex string or Uint8Array, cause: "+r)}else if(Vu(n))u=Uint8Array.from(n);else throw new Error(e+" must be hex string or Uint8Array");const i=u.length;if(typeof t=="number"&&i!==t)throw new Error(e+" of length "+t+" expected, got "+i);return u}var ms=e=>typeof e=="bigint"&&ds<=e;function vs(e,n,t){return ms(e)&&ms(n)&&ms(t)&&n<=e&&e<t}function h4(e,n,t,u){if(!vs(n,t,u))throw new Error("expected valid "+e+": "+t+" <= n < "+u+", got "+n)}function RE(e){let n;for(n=0;e>ds;e>>=fs,n+=1);return n}var Ju=e=>(fs<<BigInt(e))-fs;function jE(e,n,t){if(typeof e!="number"||e<2)throw new Error("hashLen must be a number");if(typeof n!="number"||n<2)throw new Error("qByteLen must be a number");if(typeof t!="function")throw new Error("hmacFn must be a function");const u=d=>new Uint8Array(d),i=d=>Uint8Array.of(d);let r=u(e),a=u(e),o=0;const s=()=>{r.fill(1),a.fill(0),o=0},c=(...d)=>t(a,r,...d),l=(d=u(0))=>{a=c(i(0),d),r=c(),d.length!==0&&(a=c(i(1),d),r=c())},f=()=>{if(o++>=1e3)throw new Error("drbg: tried 1000 values");let d=0;const v=[];for(;d<n;){r=c();const h=r.slice();v.push(h),d+=r.length}return be(...v)};return(d,v)=>{s(),l(d);let h;for(;!(h=v(f()));)l();return s(),h}}function LE(e){return typeof e=="function"&&Number.isSafeInteger(e.outputLen)}function Hu(e,n,t={}){if(!e||typeof e!="object")throw new Error("expected valid options object");function u(i,r,a){const o=e[i];if(a&&o===void 0)return;const s=typeof o;if(s!==r||o===null)throw new Error(`param "${i}" is invalid: expected ${r}, got ${s}`)}Object.entries(n).forEach(([i,r])=>u(i,r,!1)),Object.entries(t).forEach(([i,r])=>u(i,r,!0))}function g4(e){const n=new WeakMap;return(t,...u)=>{const i=n.get(t);if(i!==void 0)return i;const r=e(t,...u);return n.set(t,r),r}}var Ku=BigInt(2**32-1),E4=BigInt(32);function ZE(e,n=!1){return n?{h:Number(e&Ku),l:Number(e>>E4&Ku)}:{h:Number(e>>E4&Ku)|0,l:Number(e&Ku)|0}}function y4(e,n=!1){const t=e.length;let u=new Uint32Array(t),i=new Uint32Array(t);for(let r=0;r<t;r++){const{h:a,l:o}=ZE(e[r],n);[u[r],i[r]]=[a,o]}return[u,i]}var b4=(e,n,t)=>e>>>t,k4=(e,n,t)=>e<<32-t|n>>>t,gt=(e,n,t)=>e>>>t|n<<32-t,Et=(e,n,t)=>e<<32-t|n>>>t,Qu=(e,n,t)=>e<<64-t|n>>>t-32,Wu=(e,n,t)=>e>>>t-32|n<<64-t,VE=(e,n,t)=>e<<t|n>>>32-t,qE=(e,n,t)=>n<<t|e>>>32-t,ME=(e,n,t)=>n<<t-32|e>>>64-t,GE=(e,n,t)=>e<<t-32|n>>>64-t;function We(e,n,t,u){const i=(n>>>0)+(u>>>0);return{h:e+t+(i/2**32|0)|0,l:i|0}}var JE=(e,n,t)=>(e>>>0)+(n>>>0)+(t>>>0),HE=(e,n,t,u)=>n+t+u+(e/2**32|0)|0,KE=(e,n,t,u)=>(e>>>0)+(n>>>0)+(t>>>0)+(u>>>0),QE=(e,n,t,u,i)=>n+t+u+i+(e/2**32|0)|0,WE=(e,n,t,u,i)=>(e>>>0)+(n>>>0)+(t>>>0)+(u>>>0)+(i>>>0),YE=(e,n,t,u,i,r)=>n+t+u+i+r+(e/2**32|0)|0;/*! Bundled license information:
|
|
518
464
|
|
|
519
465
|
@noble/hashes/esm/utils.js:
|
|
520
466
|
(*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
|
|
521
467
|
|
|
522
468
|
@noble/curves/esm/utils.js:
|
|
523
469
|
(*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
|
|
524
|
-
*/function Ty(e,n,t,u){if(typeof e.setBigUint64=="function")return e.setBigUint64(n,t,u);const i=BigInt(32),r=BigInt(4294967295),a=Number(t>>i&r),o=Number(t&r),s=u?4:0,c=u?0:4;e.setUint32(n+s,a,u),e.setUint32(n+c,o,u)}function or(e,n,t){return e&n^~e&t}function K4(e,n,t){return e&n^e&t^n&t}var li=class extends Bs{constructor(e,n,t,u){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=n,this.padOffset=t,this.isLE=u,this.buffer=new Uint8Array(e),this.view=Ds(this.buffer)}update(e){Dt(this),e=si(e),me(e);const{view:n,buffer:t,blockLen:u}=this,i=e.length;for(let r=0;r<i;){const a=Math.min(u-this.pos,i-r);if(a===u){const o=Ds(e);for(;u<=i-r;r+=u)this.process(o,r);continue}t.set(e.subarray(r,r+a),this.pos),this.pos+=a,r+=a,this.pos===u&&(this.process(n,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){Dt(this),z4(e,this),this.finished=!0;const{buffer:n,view:t,blockLen:u,isLE:i}=this;let{pos:r}=this;n[r++]=128,Ae(this.buffer.subarray(r)),this.padOffset>u-r&&(this.process(t,0),r=0);for(let l=r;l<u;l++)n[l]=0;Ty(t,u-8,BigInt(this.length*8),i),this.process(t,0);const a=Ds(e),o=this.outputLen;if(o%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const s=o/4,c=this.get();if(s>c.length)throw new Error("_sha2: outputLen bigger than state");for(let l=0;l<s;l++)a.setUint32(4*l,c[l],i)}digest(){const{buffer:e,outputLen:n}=this;this.digestInto(e);const t=e.slice(0,n);return this.destroy(),t}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:n,buffer:t,length:u,finished:i,destroyed:r,pos:a}=this;return e.destroyed=r,e.finished=i,e.length=u,e.pos=a,u%n&&e.buffer.set(t),e}clone(){return this._cloneInto()}},fn=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),mn=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),ve=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),pe=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),Oy=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),vn=new Uint32Array(64),W4=class extends li{constructor(e=32){super(64,e,8,!1),this.A=fn[0]|0,this.B=fn[1]|0,this.C=fn[2]|0,this.D=fn[3]|0,this.E=fn[4]|0,this.F=fn[5]|0,this.G=fn[6]|0,this.H=fn[7]|0}get(){const{A:e,B:n,C:t,D:u,E:i,F:r,G:a,H:o}=this;return[e,n,t,u,i,r,a,o]}set(e,n,t,u,i,r,a,o){this.A=e|0,this.B=n|0,this.C=t|0,this.D=u|0,this.E=i|0,this.F=r|0,this.G=a|0,this.H=o|0}process(e,n){for(let l=0;l<16;l++,n+=4)vn[l]=e.getUint32(n,!1);for(let l=16;l<64;l++){const f=vn[l-15],m=vn[l-2],d=Ge(f,7)^Ge(f,18)^f>>>3,v=Ge(m,17)^Ge(m,19)^m>>>10;vn[l]=v+vn[l-7]+d+vn[l-16]|0}let{A:t,B:u,C:i,D:r,E:a,F:o,G:s,H:c}=this;for(let l=0;l<64;l++){const f=Ge(a,6)^Ge(a,11)^Ge(a,25),m=c+f+or(a,o,s)+Oy[l]+vn[l]|0,v=(Ge(t,2)^Ge(t,13)^Ge(t,22))+K4(t,u,i)|0;c=s,s=o,o=a,a=r+m|0,r=i,i=u,u=t,t=m+v|0}t=t+this.A|0,u=u+this.B|0,i=i+this.C|0,r=r+this.D|0,a=a+this.E|0,o=o+this.F|0,s=s+this.G|0,c=c+this.H|0,this.set(t,u,i,r,a,o,s,c)}roundClean(){Ae(vn)}destroy(){this.set(0,0,0,0,0,0,0,0),Ae(this.buffer)}},zy=class extends W4{constructor(){super(28),this.A=mn[0]|0,this.B=mn[1]|0,this.C=mn[2]|0,this.D=mn[3]|0,this.E=mn[4]|0,this.F=mn[5]|0,this.G=mn[6]|0,this.H=mn[7]|0}},Y4=J4(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),Uy=Y4[0],Py=Y4[1],pn=new Uint32Array(80),hn=new Uint32Array(80),sr=class extends li{constructor(e=64){super(128,e,16,!1),this.Ah=pe[0]|0,this.Al=pe[1]|0,this.Bh=pe[2]|0,this.Bl=pe[3]|0,this.Ch=pe[4]|0,this.Cl=pe[5]|0,this.Dh=pe[6]|0,this.Dl=pe[7]|0,this.Eh=pe[8]|0,this.El=pe[9]|0,this.Fh=pe[10]|0,this.Fl=pe[11]|0,this.Gh=pe[12]|0,this.Gl=pe[13]|0,this.Hh=pe[14]|0,this.Hl=pe[15]|0}get(){const{Ah:e,Al:n,Bh:t,Bl:u,Ch:i,Cl:r,Dh:a,Dl:o,Eh:s,El:c,Fh:l,Fl:f,Gh:m,Gl:d,Hh:v,Hl:h}=this;return[e,n,t,u,i,r,a,o,s,c,l,f,m,d,v,h]}set(e,n,t,u,i,r,a,o,s,c,l,f,m,d,v,h){this.Ah=e|0,this.Al=n|0,this.Bh=t|0,this.Bl=u|0,this.Ch=i|0,this.Cl=r|0,this.Dh=a|0,this.Dl=o|0,this.Eh=s|0,this.El=c|0,this.Fh=l|0,this.Fl=f|0,this.Gh=m|0,this.Gl=d|0,this.Hh=v|0,this.Hl=h|0}process(e,n){for(let y=0;y<16;y++,n+=4)pn[y]=e.getUint32(n),hn[y]=e.getUint32(n+=4);for(let y=16;y<80;y++){const k=pn[y-15]|0,_=hn[y-15]|0,B=St(k,_,1)^St(k,_,8)^Q4(k,_,7),G=Bt(k,_,1)^Bt(k,_,8)^H4(k,_,7),V=pn[y-2]|0,F=hn[y-2]|0,g=St(V,F,19)^rr(V,F,61)^Q4(V,F,6),$=Bt(V,F,19)^ar(V,F,61)^H4(V,F,6),D=xy(G,$,hn[y-7],hn[y-16]),A=Iy(D,B,g,pn[y-7],pn[y-16]);pn[y]=A|0,hn[y]=D|0}let{Ah:t,Al:u,Bh:i,Bl:r,Ch:a,Cl:o,Dh:s,Dl:c,Eh:l,El:f,Fh:m,Fl:d,Gh:v,Gl:h,Hh:E,Hl:b}=this;for(let y=0;y<80;y++){const k=St(l,f,14)^St(l,f,18)^rr(l,f,41),_=Bt(l,f,14)^Bt(l,f,18)^ar(l,f,41),B=l&m^~l&v,G=f&d^~f&h,V=Fy(b,_,G,Py[y],hn[y]),F=Ny(V,E,k,B,Uy[y],pn[y]),g=V|0,$=St(t,u,28)^rr(t,u,34)^rr(t,u,39),D=Bt(t,u,28)^ar(t,u,34)^ar(t,u,39),A=t&i^t&a^i&a,I=u&r^u&o^r&o;E=v|0,b=h|0,v=m|0,h=d|0,m=l|0,d=f|0,{h:l,l:f}=Ye(s|0,c|0,F|0,g|0),s=a|0,c=o|0,a=i|0,o=r|0,i=t|0,r=u|0;const T=Cy(g,D,I);t=$y(T,F,$,A),u=T|0}({h:t,l:u}=Ye(this.Ah|0,this.Al|0,t|0,u|0)),{h:i,l:r}=Ye(this.Bh|0,this.Bl|0,i|0,r|0),{h:a,l:o}=Ye(this.Ch|0,this.Cl|0,a|0,o|0),{h:s,l:c}=Ye(this.Dh|0,this.Dl|0,s|0,c|0),{h:l,l:f}=Ye(this.Eh|0,this.El|0,l|0,f|0),{h:m,l:d}=Ye(this.Fh|0,this.Fl|0,m|0,d|0),{h:v,l:h}=Ye(this.Gh|0,this.Gl|0,v|0,h|0),{h:E,l:b}=Ye(this.Hh|0,this.Hl|0,E|0,b|0),this.set(t,u,i,r,a,o,s,c,l,f,m,d,v,h,E,b)}roundClean(){Ae(pn,hn)}destroy(){Ae(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}},Ry=class extends sr{constructor(){super(48),this.Ah=ve[0]|0,this.Al=ve[1]|0,this.Bh=ve[2]|0,this.Bl=ve[3]|0,this.Ch=ve[4]|0,this.Cl=ve[5]|0,this.Dh=ve[6]|0,this.Dl=ve[7]|0,this.Eh=ve[8]|0,this.El=ve[9]|0,this.Fh=ve[10]|0,this.Fl=ve[11]|0,this.Gh=ve[12]|0,this.Gl=ve[13]|0,this.Hh=ve[14]|0,this.Hl=ve[15]|0}},he=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),ge=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]),jy=class extends sr{constructor(){super(28),this.Ah=he[0]|0,this.Al=he[1]|0,this.Bh=he[2]|0,this.Bl=he[3]|0,this.Ch=he[4]|0,this.Cl=he[5]|0,this.Dh=he[6]|0,this.Dl=he[7]|0,this.Eh=he[8]|0,this.El=he[9]|0,this.Fh=he[10]|0,this.Fl=he[11]|0,this.Gh=he[12]|0,this.Gl=he[13]|0,this.Hh=he[14]|0,this.Hl=he[15]|0}},Ly=class extends sr{constructor(){super(32),this.Ah=ge[0]|0,this.Al=ge[1]|0,this.Bh=ge[2]|0,this.Bl=ge[3]|0,this.Ch=ge[4]|0,this.Cl=ge[5]|0,this.Dh=ge[6]|0,this.Dl=ge[7]|0,this.Eh=ge[8]|0,this.El=ge[9]|0,this.Fh=ge[10]|0,this.Fl=ge[11]|0,this.Gh=ge[12]|0,this.Gl=ge[13]|0,this.Hh=ge[14]|0,this.Hl=ge[15]|0}},cr=Je(()=>new W4);Je(()=>new zy),Je(()=>new sr),Je(()=>new Ry),Je(()=>new Ly),Je(()=>new jy);var X4=class extends Bs{constructor(e,n){super(),this.finished=!1,this.destroyed=!1,my(e);const t=si(n);if(this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const u=this.blockLen,i=new Uint8Array(u);i.set(t.length>u?e.create().update(t).digest():t);for(let r=0;r<i.length;r++)i[r]^=54;this.iHash.update(i),this.oHash=e.create();for(let r=0;r<i.length;r++)i[r]^=106;this.oHash.update(i),Ae(i)}update(e){return Dt(this),this.iHash.update(e),this}digestInto(e){Dt(this),me(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:n,iHash:t,finished:u,destroyed:i,blockLen:r,outputLen:a}=this;return e=e,e.finished=u,e.destroyed=i,e.blockLen=r,e.outputLen=a,e.oHash=n._cloneInto(e.oHash),e.iHash=t._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}},ev=(e,n,t)=>new X4(e,n).update(t).digest();ev.create=(e,n)=>new X4(e,n);var we=BigInt(0),De=BigInt(1),zn=BigInt(2),Zy=BigInt(3),nv=BigInt(4),tv=BigInt(5),iv=BigInt(8);function Ee(e,n){const t=e%n;return t>=we?t:n+t}function Ne(e,n,t){let u=e;for(;n-- >we;)u*=u,u%=t;return u}function uv(e,n){if(e===we)throw new Error("invert: expected non-zero number");if(n<=we)throw new Error("invert: expected positive modulus, got "+n);let t=Ee(e,n),u=n,i=we,r=De;for(;t!==we;){const o=u/t,s=u%t,c=i-r*o;u=t,t=s,i=r,r=c}if(u!==De)throw new Error("invert: does not exist");return Ee(i,n)}function rv(e,n){const t=(e.ORDER+De)/nv,u=e.pow(n,t);if(!e.eql(e.sqr(u),n))throw new Error("Cannot find square root");return u}function Vy(e,n){const t=(e.ORDER-tv)/iv,u=e.mul(n,zn),i=e.pow(u,t),r=e.mul(n,i),a=e.mul(e.mul(r,zn),i),o=e.mul(r,e.sub(a,e.ONE));if(!e.eql(e.sqr(o),n))throw new Error("Cannot find square root");return o}function qy(e){if(e<BigInt(3))throw new Error("sqrt is not defined for small field");let n=e-De,t=0;for(;n%zn===we;)n/=zn,t++;let u=zn;const i=dr(e);for(;ov(i,u)===1;)if(u++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(t===1)return rv;let r=i.pow(u,n);const a=(n+De)/zn;return function(s,c){if(s.is0(c))return c;if(ov(s,c)!==1)throw new Error("Cannot find square root");let l=t,f=s.mul(s.ONE,r),m=s.pow(c,n),d=s.pow(c,a);for(;!s.eql(m,s.ONE);){if(s.is0(m))return s.ZERO;let v=1,h=s.sqr(m);for(;!s.eql(h,s.ONE);)if(v++,h=s.sqr(h),v===l)throw new Error("Cannot find square root");const E=De<<BigInt(l-v-1),b=s.pow(f,E);l=v,f=s.sqr(b),m=s.mul(m,f),d=s.mul(d,b)}return d}}function My(e){return e%nv===Zy?rv:e%iv===tv?Vy:qy(e)}var Gy=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function av(e){const n={ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"},t=Gy.reduce((u,i)=>(u[i]="function",u),n);return ir(e,t),e}function Jy(e,n,t){if(t<we)throw new Error("invalid exponent, negatives unsupported");if(t===we)return e.ONE;if(t===De)return n;let u=e.ONE,i=n;for(;t>we;)t&De&&(u=e.mul(u,i)),i=e.sqr(i),t>>=De;return u}function lr(e,n,t=!1){const u=new Array(n.length).fill(t?e.ZERO:void 0),i=n.reduce((a,o,s)=>e.is0(o)?a:(u[s]=a,e.mul(a,o)),e.ONE),r=e.inv(i);return n.reduceRight((a,o,s)=>e.is0(o)?a:(u[s]=e.mul(a,u[s]),e.mul(a,o)),r),u}function ov(e,n){const t=(e.ORDER-De)/zn,u=e.pow(n,t),i=e.eql(u,e.ONE),r=e.eql(u,e.ZERO),a=e.eql(u,e.neg(e.ONE));if(!i&&!r&&!a)throw new Error("invalid Legendre symbol result");return i?1:r?0:-1}function Qy(e,n){n!==void 0&&ai(n);const t=n!==void 0?n:e.toString(2).length,u=Math.ceil(t/8);return{nBitLength:t,nByteLength:u}}function dr(e,n,t=!1,u={}){if(e<=we)throw new Error("invalid field: expected ORDER > 0, got "+e);let i,r;if(typeof n=="object"&&n!=null){if(u.sqrt||t)throw new Error("cannot specify opts in two arguments");const l=n;l.BITS&&(i=l.BITS),l.sqrt&&(r=l.sqrt),typeof l.isLE=="boolean"&&(t=l.isLE)}else typeof n=="number"&&(i=n),u.sqrt&&(r=u.sqrt);const{nBitLength:a,nByteLength:o}=Qy(e,i);if(o>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let s;const c=Object.freeze({ORDER:e,isLE:t,BITS:a,BYTES:o,MASK:tr(a),ZERO:we,ONE:De,create:l=>Ee(l,e),isValid:l=>{if(typeof l!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof l);return we<=l&&l<e},is0:l=>l===we,isValidNot0:l=>!c.is0(l)&&c.isValid(l),isOdd:l=>(l&De)===De,neg:l=>Ee(-l,e),eql:(l,f)=>l===f,sqr:l=>Ee(l*l,e),add:(l,f)=>Ee(l+f,e),sub:(l,f)=>Ee(l-f,e),mul:(l,f)=>Ee(l*f,e),pow:(l,f)=>Jy(c,l,f),div:(l,f)=>Ee(l*uv(f,e),e),sqrN:l=>l*l,addN:(l,f)=>l+f,subN:(l,f)=>l-f,mulN:(l,f)=>l*f,inv:l=>uv(l,e),sqrt:r||(l=>(s||(s=My(e)),s(c,l))),toBytes:l=>t?V4(l,o):ci(l,o),fromBytes:l=>{if(l.length!==o)throw new Error("Field.fromBytes: expected "+o+" bytes, got "+l.length);return t?Z4(l):On(l)},invertBatch:l=>lr(c,l),cmov:(l,f,m)=>m?f:l});return Object.freeze(c)}function sv(e){if(typeof e!="bigint")throw new Error("field order must be bigint");const n=e.toString(2).length;return Math.ceil(n/8)}function cv(e){const n=sv(e);return n+Math.ceil(n/2)}function Hy(e,n,t=!1){const u=e.length,i=sv(n),r=cv(n);if(u<16||u<r||u>1024)throw new Error("expected "+r+"-1024 bytes of input, got "+u);const a=t?Z4(e):On(e),o=Ee(a,n-De)+De;return t?V4(o,i):ci(o,i)}var At=BigInt(0),Un=BigInt(1);function di(e,n){const t=n.negate();return e?t:n}function Ky(e,n,t){const u=a=>a.pz,i=lr(e.Fp,t.map(u));return t.map((a,o)=>a.toAffine(i[o])).map(e.fromAffine)}function lv(e,n){if(!Number.isSafeInteger(e)||e<=0||e>n)throw new Error("invalid window size, expected [1.."+n+"], got W="+e)}function $s(e,n){lv(e,n);const t=Math.ceil(n/e)+1,u=2**(e-1),i=2**e,r=tr(e),a=BigInt(e);return{windows:t,windowSize:u,mask:r,maxNumber:i,shiftBy:a}}function dv(e,n,t){const{windowSize:u,mask:i,maxNumber:r,shiftBy:a}=t;let o=Number(e&i),s=e>>a;o>u&&(o-=r,s+=Un);const c=n*u,l=c+Math.abs(o)-1,f=o===0,m=o<0,d=n%2!==0;return{nextN:s,offset:l,isZero:f,isNeg:m,isNegF:d,offsetF:c}}function Wy(e,n){if(!Array.isArray(e))throw new Error("array expected");e.forEach((t,u)=>{if(!(t instanceof n))throw new Error("invalid point at index "+u)})}function Yy(e,n){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((t,u)=>{if(!n.isValid(t))throw new Error("invalid scalar at index "+u)})}var xs=new WeakMap,fv=new WeakMap;function Is(e){return fv.get(e)||1}function mv(e){if(e!==At)throw new Error("invalid wNAF")}function Xy(e,n){return{constTimeNegate:di,hasPrecomputes(t){return Is(t)!==1},unsafeLadder(t,u,i=e.ZERO){let r=t;for(;u>At;)u&Un&&(i=i.add(r)),r=r.double(),u>>=Un;return i},precomputeWindow(t,u){const{windows:i,windowSize:r}=$s(u,n),a=[];let o=t,s=o;for(let c=0;c<i;c++){s=o,a.push(s);for(let l=1;l<r;l++)s=s.add(o),a.push(s);o=s.double()}return a},wNAF(t,u,i){let r=e.ZERO,a=e.BASE;const o=$s(t,n);for(let s=0;s<o.windows;s++){const{nextN:c,offset:l,isZero:f,isNeg:m,isNegF:d,offsetF:v}=dv(i,s,o);i=c,f?a=a.add(di(d,u[v])):r=r.add(di(m,u[l]))}return mv(i),{p:r,f:a}},wNAFUnsafe(t,u,i,r=e.ZERO){const a=$s(t,n);for(let o=0;o<a.windows&&i!==At;o++){const{nextN:s,offset:c,isZero:l,isNeg:f}=dv(i,o,a);if(i=s,!l){const m=u[c];r=r.add(f?m.negate():m)}}return mv(i),r},getPrecomputes(t,u,i){let r=xs.get(u);return r||(r=this.precomputeWindow(u,t),t!==1&&(typeof i=="function"&&(r=i(r)),xs.set(u,r))),r},wNAFCached(t,u,i){const r=Is(t);return this.wNAF(r,this.getPrecomputes(r,t,i),u)},wNAFCachedUnsafe(t,u,i,r){const a=Is(t);return a===1?this.unsafeLadder(t,u,r):this.wNAFUnsafe(a,this.getPrecomputes(a,t,i),u,r)},setWindowSize(t,u){lv(u,n),fv.set(t,u),xs.delete(t)}}}function eb(e,n,t,u){let i=n,r=e.ZERO,a=e.ZERO;for(;t>At||u>At;)t&Un&&(r=r.add(i)),u&Un&&(a=a.add(i)),i=i.double(),t>>=Un,u>>=Un;return{p1:r,p2:a}}function nb(e,n,t,u){Wy(t,e),Yy(u,n);const i=t.length,r=u.length;if(i!==r)throw new Error("arrays of points and scalars must have equal length");const a=e.ZERO,o=by(BigInt(i));let s=1;o>12?s=o-3:o>4?s=o-2:o>0&&(s=2);const c=tr(s),l=new Array(Number(c)+1).fill(a),f=Math.floor((n.BITS-1)/s)*s;let m=a;for(let d=f;d>=0;d-=s){l.fill(a);for(let h=0;h<r;h++){const E=u[h],b=Number(E>>BigInt(d)&c);l[b]=l[b].add(t[h])}let v=a;for(let h=l.length-1,E=a;h>0;h--)E=E.add(l[h]),v=v.add(E);if(m=m.add(v),d!==0)for(let h=0;h<s;h++)m=m.double()}return m}function vv(e,n){if(n){if(n.ORDER!==e)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return av(n),n}else return dr(e)}function tb(e,n,t={}){if(!n||typeof n!="object")throw new Error(`expected valid ${e} CURVE object`);for(const o of["p","n","h"]){const s=n[o];if(!(typeof s=="bigint"&&s>At))throw new Error(`CURVE.${o} must be positive bigint`)}const u=vv(n.p,t.Fp),i=vv(n.n,t.Fn),a=["Gx","Gy","a","b"];for(const o of a)if(!u.isValid(n[o]))throw new Error(`CURVE.${o} must be valid field element of CURVE.Fp`);return{Fp:u,Fn:i}}function pv(e){e.lowS!==void 0&&er("lowS",e.lowS),e.prehash!==void 0&&er("prehash",e.prehash)}var ib=class extends Error{constructor(e=""){super(e)}},Xe={Err:ib,_tlv:{encode:(e,n)=>{const{Err:t}=Xe;if(e<0||e>256)throw new t("tlv.encode: wrong tag");if(n.length&1)throw new t("tlv.encode: unpadded data");const u=n.length/2,i=nr(u);if(i.length/2&128)throw new t("tlv.encode: long form length too big");const r=u>127?nr(i.length/2|128):"";return nr(e)+r+i+n},decode(e,n){const{Err:t}=Xe;let u=0;if(e<0||e>256)throw new t("tlv.encode: wrong tag");if(n.length<2||n[u++]!==e)throw new t("tlv.decode: wrong tlv");const i=n[u++],r=!!(i&128);let a=0;if(!r)a=i;else{const s=i&127;if(!s)throw new t("tlv.decode(long): indefinite length not supported");if(s>4)throw new t("tlv.decode(long): byte length is too big");const c=n.subarray(u,u+s);if(c.length!==s)throw new t("tlv.decode: length bytes not complete");if(c[0]===0)throw new t("tlv.decode(long): zero leftmost byte");for(const l of c)a=a<<8|l;if(u+=s,a<128)throw new t("tlv.decode(long): not minimal encoding")}const o=n.subarray(u,u+a);if(o.length!==a)throw new t("tlv.decode: wrong value length");return{v:o,l:n.subarray(u+a)}}},_int:{encode(e){const{Err:n}=Xe;if(e<Pn)throw new n("integer: negative integers are not allowed");let t=nr(e);if(Number.parseInt(t[0],16)&8&&(t="00"+t),t.length&1)throw new n("unexpected DER parsing assertion: unpadded hex");return t},decode(e){const{Err:n}=Xe;if(e[0]&128)throw new n("invalid signature integer: negative");if(e[0]===0&&!(e[1]&128))throw new n("invalid signature integer: unnecessary leading zero");return On(e)}},toSig(e){const{Err:n,_int:t,_tlv:u}=Xe,i=ce("signature",e),{v:r,l:a}=u.decode(48,i);if(a.length)throw new n("invalid signature: left bytes after parsing");const{v:o,l:s}=u.decode(2,r),{v:c,l}=u.decode(2,s);if(l.length)throw new n("invalid signature: left bytes after parsing");return{r:t.decode(o),s:t.decode(c)}},hexFromSig(e){const{_tlv:n,_int:t}=Xe,u=n.encode(2,t.encode(e.r)),i=n.encode(2,t.encode(e.s)),r=u+i;return n.encode(48,r)}},Pn=BigInt(0),Se=BigInt(1),en=BigInt(2),wt=BigInt(3),Fs=BigInt(4);function ub(e,n,t){function u(i){const r=e.sqr(i),a=e.mul(r,i);return e.add(e.add(a,e.mul(i,n)),t)}return u}function hv(e,n,t){const{BYTES:u}=e;function i(r){let a;if(typeof r=="bigint")a=r;else{let o=ce("private key",r);if(n){if(!n.includes(o.length*2))throw new Error("invalid private key");const s=new Uint8Array(u);s.set(o,s.length-o.length),o=s}try{a=e.fromBytes(o)}catch{throw new Error(`invalid private key: expected ui8a of size ${u}, got ${typeof r}`)}}if(t&&(a=e.create(a)),!e.isValidNot0(a))throw new Error("invalid private key: out of range [1..N-1]");return a}return i}function rb(e,n={}){const{Fp:t,Fn:u}=tb("weierstrass",e,n),{h:i,n:r}=e;ir(n,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object",wrapPrivateKey:"boolean"});const{endo:a}=n;if(a&&(!t.is0(e.a)||typeof a.beta!="bigint"||typeof a.splitScalar!="function"))throw new Error('invalid endo: expected "beta": bigint and "splitScalar": function');function o(){if(!t.isOdd)throw new Error("compression is not supported: Field does not have .isOdd()")}function s(F,g,$){const{x:D,y:A}=g.toAffine(),I=t.toBytes(D);if(er("isCompressed",$),$){o();const T=!t.isOdd(A);return ke(gv(T),I)}else return ke(Uint8Array.of(4),I,t.toBytes(A))}function c(F){me(F);const g=t.BYTES,$=g+1,D=2*g+1,A=F.length,I=F[0],T=F.subarray(1);if(A===$&&(I===2||I===3)){const N=t.fromBytes(T);if(!t.isValid(N))throw new Error("bad point: is not on curve, wrong x");const O=m(N);let P;try{P=t.sqrt(O)}catch(K){const R=K instanceof Error?": "+K.message:"";throw new Error("bad point: is not on curve, sqrt error"+R)}o();const z=t.isOdd(P);return(I&1)===1!==z&&(P=t.neg(P)),{x:N,y:P}}else if(A===D&&I===4){const N=t.fromBytes(T.subarray(g*0,g*1)),O=t.fromBytes(T.subarray(g*1,g*2));if(!d(N,O))throw new Error("bad point: is not on curve");return{x:N,y:O}}else throw new Error(`bad point: got length ${A}, expected compressed=${$} or uncompressed=${D}`)}const l=n.toBytes||s,f=n.fromBytes||c,m=ub(t,e.a,e.b);function d(F,g){const $=t.sqr(g),D=m(F);return t.eql($,D)}if(!d(e.Gx,e.Gy))throw new Error("bad curve params: generator point");const v=t.mul(t.pow(e.a,wt),Fs),h=t.mul(t.sqr(e.b),BigInt(27));if(t.is0(t.add(v,h)))throw new Error("bad curve params: a or b");function E(F,g,$=!1){if(!t.isValid(g)||$&&t.is0(g))throw new Error(`bad point coordinate ${F}`);return g}function b(F){if(!(F instanceof B))throw new Error("ProjectivePoint expected")}const y=M4((F,g)=>{const{px:$,py:D,pz:A}=F;if(t.eql(A,t.ONE))return{x:$,y:D};const I=F.is0();g==null&&(g=I?t.ONE:t.inv(A));const T=t.mul($,g),N=t.mul(D,g),O=t.mul(A,g);if(I)return{x:t.ZERO,y:t.ZERO};if(!t.eql(O,t.ONE))throw new Error("invZ was invalid");return{x:T,y:N}}),k=M4(F=>{if(F.is0()){if(n.allowInfinityPoint&&!t.is0(F.py))return;throw new Error("bad point: ZERO")}const{x:g,y:$}=F.toAffine();if(!t.isValid(g)||!t.isValid($))throw new Error("bad point: x or y not field elements");if(!d(g,$))throw new Error("bad point: equation left != right");if(!F.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});function _(F,g,$,D,A){return $=new B(t.mul($.px,F),$.py,$.pz),g=di(D,g),$=di(A,$),g.add($)}class B{constructor(g,$,D){this.px=E("x",g),this.py=E("y",$,!0),this.pz=E("z",D),Object.freeze(this)}static fromAffine(g){const{x:$,y:D}=g||{};if(!g||!t.isValid($)||!t.isValid(D))throw new Error("invalid affine point");if(g instanceof B)throw new Error("projective point not allowed");return t.is0($)&&t.is0(D)?B.ZERO:new B($,D,t.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(g){return Ky(B,"pz",g)}static fromBytes(g){return me(g),B.fromHex(g)}static fromHex(g){const $=B.fromAffine(f(ce("pointHex",g)));return $.assertValidity(),$}static fromPrivateKey(g){const $=hv(u,n.allowedPrivateKeyLengths,n.wrapPrivateKey);return B.BASE.multiply($(g))}static msm(g,$){return nb(B,u,g,$)}precompute(g=8,$=!0){return V.setWindowSize(this,g),$||this.multiply(wt),this}_setWindowSize(g){this.precompute(g)}assertValidity(){k(this)}hasEvenY(){const{y:g}=this.toAffine();if(!t.isOdd)throw new Error("Field doesn't support isOdd");return!t.isOdd(g)}equals(g){b(g);const{px:$,py:D,pz:A}=this,{px:I,py:T,pz:N}=g,O=t.eql(t.mul($,N),t.mul(I,A)),P=t.eql(t.mul(D,N),t.mul(T,A));return O&&P}negate(){return new B(this.px,t.neg(this.py),this.pz)}double(){const{a:g,b:$}=e,D=t.mul($,wt),{px:A,py:I,pz:T}=this;let N=t.ZERO,O=t.ZERO,P=t.ZERO,z=t.mul(A,A),ue=t.mul(I,I),K=t.mul(T,T),R=t.mul(A,I);return R=t.add(R,R),P=t.mul(A,T),P=t.add(P,P),N=t.mul(g,P),O=t.mul(D,K),O=t.add(N,O),N=t.sub(ue,O),O=t.add(ue,O),O=t.mul(N,O),N=t.mul(R,N),P=t.mul(D,P),K=t.mul(g,K),R=t.sub(z,K),R=t.mul(g,R),R=t.add(R,P),P=t.add(z,z),z=t.add(P,z),z=t.add(z,K),z=t.mul(z,R),O=t.add(O,z),K=t.mul(I,T),K=t.add(K,K),z=t.mul(K,R),N=t.sub(N,z),P=t.mul(K,ue),P=t.add(P,P),P=t.add(P,P),new B(N,O,P)}add(g){b(g);const{px:$,py:D,pz:A}=this,{px:I,py:T,pz:N}=g;let O=t.ZERO,P=t.ZERO,z=t.ZERO;const ue=e.a,K=t.mul(e.b,wt);let R=t.mul($,I),ae=t.mul(D,T),oe=t.mul(A,N),le=t.add($,D),Y=t.add(I,T);le=t.mul(le,Y),Y=t.add(R,ae),le=t.sub(le,Y),Y=t.add($,A);let ye=t.add(I,N);return Y=t.mul(Y,ye),ye=t.add(R,oe),Y=t.sub(Y,ye),ye=t.add(D,A),O=t.add(T,N),ye=t.mul(ye,O),O=t.add(ae,oe),ye=t.sub(ye,O),z=t.mul(ue,Y),O=t.mul(K,oe),z=t.add(O,z),O=t.sub(ae,z),z=t.add(ae,z),P=t.mul(O,z),ae=t.add(R,R),ae=t.add(ae,R),oe=t.mul(ue,oe),Y=t.mul(K,Y),ae=t.add(ae,oe),oe=t.sub(R,oe),oe=t.mul(ue,oe),Y=t.add(Y,oe),R=t.mul(ae,Y),P=t.add(P,R),R=t.mul(ye,Y),O=t.mul(le,O),O=t.sub(O,R),R=t.mul(le,ae),z=t.mul(ye,z),z=t.add(z,R),new B(O,P,z)}subtract(g){return this.add(g.negate())}is0(){return this.equals(B.ZERO)}multiply(g){const{endo:$}=n;if(!u.isValidNot0(g))throw new Error("invalid scalar: out of range");let D,A;const I=T=>V.wNAFCached(this,T,B.normalizeZ);if($){const{k1neg:T,k1:N,k2neg:O,k2:P}=$.splitScalar(g),{p:z,f:ue}=I(N),{p:K,f:R}=I(P);A=ue.add(R),D=_($.beta,z,K,T,O)}else{const{p:T,f:N}=I(g);D=T,A=N}return B.normalizeZ([D,A])[0]}multiplyUnsafe(g){const{endo:$}=n,D=this;if(!u.isValid(g))throw new Error("invalid scalar: out of range");if(g===Pn||D.is0())return B.ZERO;if(g===Se)return D;if(V.hasPrecomputes(this))return this.multiply(g);if($){const{k1neg:A,k1:I,k2neg:T,k2:N}=$.splitScalar(g),{p1:O,p2:P}=eb(B,D,I,N);return _($.beta,O,P,A,T)}else return V.wNAFCachedUnsafe(D,g)}multiplyAndAddUnsafe(g,$,D){const A=this.multiplyUnsafe($).add(g.multiplyUnsafe(D));return A.is0()?void 0:A}toAffine(g){return y(this,g)}isTorsionFree(){const{isTorsionFree:g}=n;return i===Se?!0:g?g(B,this):V.wNAFCachedUnsafe(this,r).is0()}clearCofactor(){const{clearCofactor:g}=n;return i===Se?this:g?g(B,this):this.multiplyUnsafe(i)}toBytes(g=!0){return er("isCompressed",g),this.assertValidity(),l(B,this,g)}toRawBytes(g=!0){return this.toBytes(g)}toHex(g=!0){return oi(this.toBytes(g))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}}B.BASE=new B(e.Gx,e.Gy,t.ONE),B.ZERO=new B(t.ZERO,t.ONE,t.ZERO),B.Fp=t,B.Fn=u;const G=u.BITS,V=Xy(B,n.endo?Math.ceil(G/2):G);return B}function gv(e){return Uint8Array.of(e?2:3)}function ab(e,n,t={}){ir(n,{hash:"function"},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});const u=n.randomBytes||j4,i=n.hmac||((D,...A)=>ev(n.hash,D,ke(...A))),{Fp:r,Fn:a}=e,{ORDER:o,BITS:s}=a;function c(D){const A=o>>Se;return D>A}function l(D){return c(D)?a.neg(D):D}function f(D,A){if(!a.isValidNot0(A))throw new Error(`invalid signature ${D}: out of range 1..CURVE.n`)}class m{constructor(A,I,T){f("r",A),f("s",I),this.r=A,this.s=I,T!=null&&(this.recovery=T),Object.freeze(this)}static fromCompact(A){const I=a.BYTES,T=ce("compactSignature",A,I*2);return new m(a.fromBytes(T.subarray(0,I)),a.fromBytes(T.subarray(I,I*2)))}static fromDER(A){const{r:I,s:T}=Xe.toSig(ce("DER",A));return new m(I,T)}assertValidity(){}addRecoveryBit(A){return new m(this.r,this.s,A)}recoverPublicKey(A){const I=r.ORDER,{r:T,s:N,recovery:O}=this;if(O==null||![0,1,2,3].includes(O))throw new Error("recovery id invalid");if(o*en<I&&O>1)throw new Error("recovery id is ambiguous for h>1 curve");const z=O===2||O===3?T+o:T;if(!r.isValid(z))throw new Error("recovery id 2 or 3 invalid");const ue=r.toBytes(z),K=e.fromHex(ke(gv((O&1)===0),ue)),R=a.inv(z),ae=k(ce("msgHash",A)),oe=a.create(-ae*R),le=a.create(N*R),Y=e.BASE.multiplyUnsafe(oe).add(K.multiplyUnsafe(le));if(Y.is0())throw new Error("point at infinify");return Y.assertValidity(),Y}hasHighS(){return c(this.s)}normalizeS(){return this.hasHighS()?new m(this.r,a.neg(this.s),this.recovery):this}toBytes(A){if(A==="compact")return ke(a.toBytes(this.r),a.toBytes(this.s));if(A==="der")return Ss(Xe.hexFromSig(this));throw new Error("invalid format")}toDERRawBytes(){return this.toBytes("der")}toDERHex(){return oi(this.toBytes("der"))}toCompactRawBytes(){return this.toBytes("compact")}toCompactHex(){return oi(this.toBytes("compact"))}}const d=hv(a,t.allowedPrivateKeyLengths,t.wrapPrivateKey),v={isValidPrivateKey(D){try{return d(D),!0}catch{return!1}},normPrivateKeyToScalar:d,randomPrivateKey:()=>{const D=o;return Hy(u(cv(D)),D)},precompute(D=8,A=e.BASE){return A.precompute(D,!1)}};function h(D,A=!0){return e.fromPrivateKey(D).toBytes(A)}function E(D){if(typeof D=="bigint")return!1;if(D instanceof e)return!0;const I=ce("key",D).length,T=r.BYTES,N=T+1,O=2*T+1;if(!(t.allowedPrivateKeyLengths||a.BYTES===N))return I===N||I===O}function b(D,A,I=!0){if(E(D)===!0)throw new Error("first arg must be private key");if(E(A)===!1)throw new Error("second arg must be public key");return e.fromHex(A).multiply(d(D)).toBytes(I)}const y=n.bits2int||function(D){if(D.length>8192)throw new Error("input is too large");const A=On(D),I=D.length*8-s;return I>0?A>>BigInt(I):A},k=n.bits2int_modN||function(D){return a.create(y(D))},_=tr(s);function B(D){return q4("num < 2^"+s,D,Pn,_),a.toBytes(D)}function G(D,A,I=V){if(["recovered","canonical"].some(le=>le in I))throw new Error("sign() legacy options not supported");const{hash:T}=n;let{lowS:N,prehash:O,extraEntropy:P}=I;N==null&&(N=!0),D=ce("msgHash",D),pv(I),O&&(D=ce("prehashed msgHash",T(D)));const z=k(D),ue=d(A),K=[B(ue),B(z)];if(P!=null&&P!==!1){const le=P===!0?u(r.BYTES):P;K.push(ce("extraEntropy",le))}const R=ke(...K),ae=z;function oe(le){const Y=y(le);if(!a.isValidNot0(Y))return;const ye=a.inv(Y),Tt=e.BASE.multiply(Y).toAffine(),Rn=a.create(Tt.x);if(Rn===Pn)return;const Sn=a.create(ye*a.create(ae+Rn*ue));if(Sn===Pn)return;let Nr=(Tt.x===Rn?0:2)|Number(Tt.y&Se),jn=Sn;return N&&c(Sn)&&(jn=l(Sn),Nr^=1),new m(Rn,jn,Nr)}return{seed:R,k2sig:oe}}const V={lowS:n.lowS,prehash:!1},F={lowS:n.lowS,prehash:!1};function g(D,A,I=V){const{seed:T,k2sig:N}=G(D,A,I);return ky(n.hash.outputLen,a.BYTES,i)(T,N)}e.BASE.precompute(8);function $(D,A,I,T=F){const N=D;A=ce("msgHash",A),I=ce("publicKey",I),pv(T);const{lowS:O,prehash:P,format:z}=T;if("strict"in T)throw new Error("options.strict was renamed to lowS");if(z!==void 0&&!["compact","der","js"].includes(z))throw new Error('format must be "compact", "der" or "js"');const ue=typeof N=="string"||Yu(N),K=!ue&&!z&&typeof N=="object"&&N!==null&&typeof N.r=="bigint"&&typeof N.s=="bigint";if(!ue&&!K)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let R,ae;try{if(K)if(z===void 0||z==="js")R=new m(N.r,N.s);else throw new Error("invalid format");if(ue){try{z!=="compact"&&(R=m.fromDER(N))}catch(jn){if(!(jn instanceof Xe.Err))throw jn}!R&&z!=="der"&&(R=m.fromCompact(N))}ae=e.fromHex(I)}catch{return!1}if(!R||O&&R.hasHighS())return!1;P&&(A=n.hash(A));const{r:oe,s:le}=R,Y=k(A),ye=a.inv(le),Tt=a.create(Y*ye),Rn=a.create(oe*ye),Sn=e.BASE.multiplyUnsafe(Tt).add(ae.multiplyUnsafe(Rn));return Sn.is0()?!1:a.create(Sn.x)===oe}return Object.freeze({getPublicKey:h,getSharedSecret:b,sign:g,verify:$,utils:v,Point:e,Signature:m})}function ob(e){const n={a:e.a,b:e.b,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},t=e.Fp,u=dr(n.n,e.nBitLength),i={Fp:t,Fn:u,allowedPrivateKeyLengths:e.allowedPrivateKeyLengths,allowInfinityPoint:e.allowInfinityPoint,endo:e.endo,wrapPrivateKey:e.wrapPrivateKey,isTorsionFree:e.isTorsionFree,clearCofactor:e.clearCofactor,fromBytes:e.fromBytes,toBytes:e.toBytes};return{CURVE:n,curveOpts:i}}function sb(e){const{CURVE:n,curveOpts:t}=ob(e),u={hash:e.hash,hmac:e.hmac,randomBytes:e.randomBytes,lowS:e.lowS,bits2int:e.bits2int,bits2int_modN:e.bits2int_modN};return{CURVE:n,curveOpts:t,ecdsaOpts:u}}function cb(e,n){return Object.assign({},n,{ProjectivePoint:n.Point,CURVE:e})}function lb(e){const{CURVE:n,curveOpts:t,ecdsaOpts:u}=sb(e),i=rb(n,t),r=ab(i,u,t);return cb(e,r)}function db(e,n){const t=e.ORDER;let u=Pn;for(let v=t-Se;v%en===Pn;v/=en)u+=Se;const i=u,r=en<<i-Se-Se,a=r*en,o=(t-Se)/a,s=(o-Se)/en,c=a-Se,l=r,f=e.pow(n,o),m=e.pow(n,(o+Se)/en);let d=(v,h)=>{let E=f,b=e.pow(h,c),y=e.sqr(b);y=e.mul(y,h);let k=e.mul(v,y);k=e.pow(k,s),k=e.mul(k,b),b=e.mul(k,h),y=e.mul(k,v);let _=e.mul(y,b);k=e.pow(_,l);let B=e.eql(k,e.ONE);b=e.mul(y,m),k=e.mul(_,E),y=e.cmov(b,y,B),_=e.cmov(k,_,B);for(let G=i;G>Se;G--){let V=G-en;V=en<<V-Se;let F=e.pow(_,V);const g=e.eql(F,e.ONE);b=e.mul(y,E),E=e.mul(E,E),F=e.mul(_,E),y=e.cmov(b,y,g),_=e.cmov(F,_,g)}return{isValid:B,value:y}};if(e.ORDER%Fs===wt){const v=(e.ORDER-wt)/Fs,h=e.sqrt(e.neg(n));d=(E,b)=>{let y=e.sqr(b);const k=e.mul(E,b);y=e.mul(y,k);let _=e.pow(y,v);_=e.mul(_,k);const B=e.mul(_,h),G=e.mul(e.sqr(_),b),V=e.eql(G,E);let F=e.cmov(B,_,V);return{isValid:V,value:F}}}return d}function fb(e,n){av(e);const{A:t,B:u,Z:i}=n;if(!e.isValid(t)||!e.isValid(u)||!e.isValid(i))throw new Error("mapToCurveSimpleSWU: invalid opts");const r=db(e,i);if(!e.isOdd)throw new Error("Field does not have .isOdd()");return a=>{let o,s,c,l,f,m,d,v;o=e.sqr(a),o=e.mul(o,i),s=e.sqr(o),s=e.add(s,o),c=e.add(s,e.ONE),c=e.mul(c,u),l=e.cmov(i,e.neg(s),!e.eql(s,e.ZERO)),l=e.mul(l,t),s=e.sqr(c),m=e.sqr(l),f=e.mul(m,t),s=e.add(s,f),s=e.mul(s,c),m=e.mul(m,l),f=e.mul(m,u),s=e.add(s,f),d=e.mul(o,c);const{isValid:h,value:E}=r(s,m);v=e.mul(o,a),v=e.mul(v,E),d=e.cmov(d,c,h),v=e.cmov(v,E,h);const b=e.isOdd(a)===e.isOdd(v);v=e.cmov(e.neg(v),v,b);const y=lr(e,[l],!0)[0];return d=e.mul(d,y),{x:d,y:v}}}function mb(e,n){const t=u=>lb({...e,hash:u});return{...t(n),create:t}}var vb=On;function gn(e,n){if(fi(e),fi(n),e<0||e>=1<<8*n)throw new Error("invalid I2OSP input: "+e);const t=Array.from({length:n}).fill(0);for(let u=n-1;u>=0;u--)t[u]=e&255,e>>>=8;return new Uint8Array(t)}function pb(e,n){const t=new Uint8Array(e.length);for(let u=0;u<e.length;u++)t[u]=e[u]^n[u];return t}function fi(e){if(!Number.isSafeInteger(e))throw new Error("number expected")}function hb(e,n,t,u){me(e),me(n),fi(t),n.length>255&&(n=u(ke(Xu("H2C-OVERSIZE-DST-"),n)));const{outputLen:i,blockLen:r}=u,a=Math.ceil(t/i);if(t>65535||a>255)throw new Error("expand_message_xmd: invalid lenInBytes");const o=ke(n,gn(n.length,1)),s=gn(0,r),c=gn(t,2),l=new Array(a),f=u(ke(s,e,c,gn(0,1),o));l[0]=u(ke(f,gn(1,1),o));for(let d=1;d<=a;d++){const v=[pb(f,l[d-1]),gn(d+1,1),o];l[d]=u(ke(...v))}return ke(...l).slice(0,t)}function gb(e,n,t,u,i){if(me(e),me(n),fi(t),n.length>255){const r=Math.ceil(2*u/8);n=i.create({dkLen:r}).update(Xu("H2C-OVERSIZE-DST-")).update(n).digest()}if(t>65535||n.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return i.create({dkLen:t}).update(e).update(gn(t,2)).update(n).update(gn(n.length,1)).digest()}function Ev(e,n,t){ir(t,{p:"bigint",m:"number",k:"number",hash:"function"});const{p:u,k:i,m:r,hash:a,expand:o,DST:s}=t;if(!Yu(s)&&typeof s!="string")throw new Error("DST must be string or uint8array");if(!Dy(t.hash))throw new Error("expected valid hash");me(e),fi(n);const c=typeof s=="string"?Xu(s):s,l=u.toString(2).length,f=Math.ceil((l+i)/8),m=n*r*f;let d;if(o==="xmd")d=hb(e,c,m,a);else if(o==="xof")d=gb(e,c,m,i,a);else if(o==="_internal_pass")d=e;else throw new Error('expand must be "xmd" or "xof"');const v=new Array(n);for(let h=0;h<n;h++){const E=new Array(r);for(let b=0;b<r;b++){const y=f*(b+h*r),k=d.subarray(y,y+f);E[b]=Ee(vb(k),u)}v[h]=E}return v}function Eb(e,n){const t=n.map(u=>Array.from(u).reverse());return(u,i)=>{const[r,a,o,s]=t.map(f=>f.reduce((m,d)=>e.add(e.mul(m,u),d))),[c,l]=lr(e,[a,s],!0);return u=e.mul(r,c),i=e.mul(i,e.mul(o,l)),{x:u,y:i}}}function yb(e,n,t){if(typeof n!="function")throw new Error("mapToCurve() must be defined");function u(r){return e.fromAffine(n(r))}function i(r){const a=r.clearCofactor();return a.equals(e.ZERO)?e.ZERO:(a.assertValidity(),a)}return{defaults:t,hashToCurve(r,a){const o=t.DST?t.DST:{},s=Object.assign({},t,o,a),c=Ev(r,2,s),l=u(c[0]),f=u(c[1]);return i(l.add(f))},encodeToCurve(r,a){const o=t.encodeDST?t.encodeDST:{},s=Object.assign({},t,o,a),c=Ev(r,1,s);return i(u(c[0]))},mapToCurve(r){if(!Array.isArray(r))throw new Error("expected array of bigints");for(const a of r)if(typeof a!="bigint")throw new Error("expected array of bigints");return i(u(r))}}}var nn={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},yv=BigInt(0),fr=BigInt(1),mr=BigInt(2),bv=(e,n)=>(e+n/mr)/n;function kv(e){const n=nn.p,t=BigInt(3),u=BigInt(6),i=BigInt(11),r=BigInt(22),a=BigInt(23),o=BigInt(44),s=BigInt(88),c=e*e*e%n,l=c*c*e%n,f=Ne(l,t,n)*l%n,m=Ne(f,t,n)*l%n,d=Ne(m,mr,n)*c%n,v=Ne(d,i,n)*d%n,h=Ne(v,r,n)*v%n,E=Ne(h,o,n)*h%n,b=Ne(E,s,n)*E%n,y=Ne(b,o,n)*h%n,k=Ne(y,t,n)*l%n,_=Ne(k,a,n)*v%n,B=Ne(_,u,n)*c%n,G=Ne(B,mr,n);if(!En.eql(En.sqr(G),e))throw new Error("Cannot find square root");return G}var En=dr(nn.p,void 0,void 0,{sqrt:kv}),vr=mb({...nn,Fp:En,lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const n=nn.n,t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),u=-fr*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),r=t,a=BigInt("0x100000000000000000000000000000000"),o=bv(r*e,n),s=bv(-u*e,n);let c=Ee(e-o*t-s*i,n),l=Ee(-o*u-s*r,n);const f=c>a,m=l>a;if(f&&(c=n-c),m&&(l=n-l),c>a||l>a)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:f,k1:c,k2neg:m,k2:l}}}},cr),Dv={};function pr(e,...n){let t=Dv[e];if(t===void 0){const u=cr(Uint8Array.from(e,i=>i.charCodeAt(0)));t=ke(u,u),Dv[e]=t}return cr(ke(t,...n))}var Ns=e=>e.toBytes(!0).slice(1),Ts=e=>ci(e,32),Os=e=>Ee(e,nn.p),mi=e=>Ee(e,nn.n),zs=vr.Point,Us=e=>e%mr===yv;function Ps(e){let n=vr.utils.normPrivateKeyToScalar(e),t=zs.fromPrivateKey(n);return{scalar:Us(t.y)?n:mi(-n),bytes:Ns(t)}}function Sv(e){q4("x",e,fr,nn.p);const n=Os(e*e),t=Os(n*e+BigInt(7));let u=kv(t);Us(u)||(u=Os(-u));const i=zs.fromAffine({x:e,y:u});return i.assertValidity(),i}var _t=On;function Bv(...e){return mi(_t(pr("BIP0340/challenge",...e)))}function bb(e){return Ps(e).bytes}function kb(e,n,t=j4(32)){const u=ce("message",e),{bytes:i,scalar:r}=Ps(n),a=ce("auxRand",t,32),o=Ts(r^_t(pr("BIP0340/aux",a))),s=pr("BIP0340/nonce",o,i,u),c=mi(_t(s));if(c===yv)throw new Error("sign failed: k is zero");const{bytes:l,scalar:f}=Ps(c),m=Bv(l,i,u),d=new Uint8Array(64);if(d.set(l,0),d.set(Ts(mi(f+m*r)),32),!Av(d,u,i))throw new Error("sign: Invalid signature produced");return d}function Av(e,n,t){const u=ce("signature",e,64),i=ce("message",n),r=ce("publicKey",t,32);try{const a=Sv(_t(r)),o=_t(u.subarray(0,32));if(!Cs(o,fr,nn.p))return!1;const s=_t(u.subarray(32,64));if(!Cs(s,fr,nn.n))return!1;const c=Bv(Ts(o),Ns(a),i),l=zs.BASE.multiplyUnsafe(s).add(a.multiplyUnsafe(mi(-c))),{x:f,y:m}=l.toAffine();return!(l.is0()||!Us(m)||f!==o)}catch{return!1}}({getPublicKey:bb,sign:kb,verify:Av,utils:{randomPrivateKey:vr.utils.randomPrivateKey,lift_x:Sv,pointToBytes:Ns,numberToBytesBE:ci,bytesToNumberBE:On,taggedHash:pr,mod:Ee}});var Db=Eb(En,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(e=>e.map(n=>BigInt(n)))),Sb=fb(En,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:En.create(BigInt("-11"))});yb(vr.Point,e=>{const{x:n,y:t}=Sb(En.create(e[0]));return Db(n,t)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:En.ORDER,m:1,k:128,expand:"xmd",hash:cr});/*! Bundled license information:
|
|
470
|
+
*/function XE(e,n,t,u){if(typeof e.setBigUint64=="function")return e.setBigUint64(n,t,u);const i=BigInt(32),r=BigInt(4294967295),a=Number(t>>i&r),o=Number(t&r),s=u?4:0,c=u?0:4;e.setUint32(n+s,a,u),e.setUint32(n+c,o,u)}function Yu(e,n,t){return e&n^~e&t}function D4(e,n,t){return e&n^e&t^n&t}var ri=class extends ls{constructor(e,n,t,u){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=n,this.padOffset=t,this.isLE=u,this.buffer=new Uint8Array(e),this.view=ss(this.buffer)}update(e){ht(this),e=ii(e),fe(e);const{view:n,buffer:t,blockLen:u}=this,i=e.length;for(let r=0;r<i;){const a=Math.min(u-this.pos,i-r);if(a===u){const o=ss(e);for(;u<=i-r;r+=u)this.process(o,r);continue}t.set(e.subarray(r,r+a),this.pos),this.pos+=a,r+=a,this.pos===u&&(this.process(n,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){ht(this),s4(e,this),this.finished=!0;const{buffer:n,view:t,blockLen:u,isLE:i}=this;let{pos:r}=this;n[r++]=128,Be(this.buffer.subarray(r)),this.padOffset>u-r&&(this.process(t,0),r=0);for(let l=r;l<u;l++)n[l]=0;XE(t,u-8,BigInt(this.length*8),i),this.process(t,0);const a=ss(e),o=this.outputLen;if(o%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const s=o/4,c=this.get();if(s>c.length)throw new Error("_sha2: outputLen bigger than state");for(let l=0;l<s;l++)a.setUint32(4*l,c[l],i)}digest(){const{buffer:e,outputLen:n}=this;this.digestInto(e);const t=e.slice(0,n);return this.destroy(),t}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:n,buffer:t,length:u,finished:i,destroyed:r,pos:a}=this;return e.destroyed=r,e.finished=i,e.length=u,e.pos=a,u%n&&e.buffer.set(t),e}clone(){return this._cloneInto()}},ln=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),dn=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),me=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),ve=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),ey=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),fn=new Uint32Array(64),S4=class extends ri{constructor(e=32){super(64,e,8,!1),this.A=ln[0]|0,this.B=ln[1]|0,this.C=ln[2]|0,this.D=ln[3]|0,this.E=ln[4]|0,this.F=ln[5]|0,this.G=ln[6]|0,this.H=ln[7]|0}get(){const{A:e,B:n,C:t,D:u,E:i,F:r,G:a,H:o}=this;return[e,n,t,u,i,r,a,o]}set(e,n,t,u,i,r,a,o){this.A=e|0,this.B=n|0,this.C=t|0,this.D=u|0,this.E=i|0,this.F=r|0,this.G=a|0,this.H=o|0}process(e,n){for(let l=0;l<16;l++,n+=4)fn[l]=e.getUint32(n,!1);for(let l=16;l<64;l++){const f=fn[l-15],m=fn[l-2],d=Me(f,7)^Me(f,18)^f>>>3,v=Me(m,17)^Me(m,19)^m>>>10;fn[l]=v+fn[l-7]+d+fn[l-16]|0}let{A:t,B:u,C:i,D:r,E:a,F:o,G:s,H:c}=this;for(let l=0;l<64;l++){const f=Me(a,6)^Me(a,11)^Me(a,25),m=c+f+Yu(a,o,s)+ey[l]+fn[l]|0,v=(Me(t,2)^Me(t,13)^Me(t,22))+D4(t,u,i)|0;c=s,s=o,o=a,a=r+m|0,r=i,i=u,u=t,t=m+v|0}t=t+this.A|0,u=u+this.B|0,i=i+this.C|0,r=r+this.D|0,a=a+this.E|0,o=o+this.F|0,s=s+this.G|0,c=c+this.H|0,this.set(t,u,i,r,a,o,s,c)}roundClean(){Be(fn)}destroy(){this.set(0,0,0,0,0,0,0,0),Be(this.buffer)}},ny=class extends S4{constructor(){super(28),this.A=dn[0]|0,this.B=dn[1]|0,this.C=dn[2]|0,this.D=dn[3]|0,this.E=dn[4]|0,this.F=dn[5]|0,this.G=dn[6]|0,this.H=dn[7]|0}},B4=y4(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),ty=B4[0],iy=B4[1],mn=new Uint32Array(80),vn=new Uint32Array(80),Xu=class extends ri{constructor(e=64){super(128,e,16,!1),this.Ah=ve[0]|0,this.Al=ve[1]|0,this.Bh=ve[2]|0,this.Bl=ve[3]|0,this.Ch=ve[4]|0,this.Cl=ve[5]|0,this.Dh=ve[6]|0,this.Dl=ve[7]|0,this.Eh=ve[8]|0,this.El=ve[9]|0,this.Fh=ve[10]|0,this.Fl=ve[11]|0,this.Gh=ve[12]|0,this.Gl=ve[13]|0,this.Hh=ve[14]|0,this.Hl=ve[15]|0}get(){const{Ah:e,Al:n,Bh:t,Bl:u,Ch:i,Cl:r,Dh:a,Dl:o,Eh:s,El:c,Fh:l,Fl:f,Gh:m,Gl:d,Hh:v,Hl:h}=this;return[e,n,t,u,i,r,a,o,s,c,l,f,m,d,v,h]}set(e,n,t,u,i,r,a,o,s,c,l,f,m,d,v,h){this.Ah=e|0,this.Al=n|0,this.Bh=t|0,this.Bl=u|0,this.Ch=i|0,this.Cl=r|0,this.Dh=a|0,this.Dl=o|0,this.Eh=s|0,this.El=c|0,this.Fh=l|0,this.Fl=f|0,this.Gh=m|0,this.Gl=d|0,this.Hh=v|0,this.Hl=h|0}process(e,n){for(let y=0;y<16;y++,n+=4)mn[y]=e.getUint32(n),vn[y]=e.getUint32(n+=4);for(let y=16;y<80;y++){const k=mn[y-15]|0,_=vn[y-15]|0,B=gt(k,_,1)^gt(k,_,8)^b4(k,_,7),G=Et(k,_,1)^Et(k,_,8)^k4(k,_,7),V=mn[y-2]|0,F=vn[y-2]|0,g=gt(V,F,19)^Qu(V,F,61)^b4(V,F,6),$=Et(V,F,19)^Wu(V,F,61)^k4(V,F,6),D=KE(G,$,vn[y-7],vn[y-16]),A=QE(D,B,g,mn[y-7],mn[y-16]);mn[y]=A|0,vn[y]=D|0}let{Ah:t,Al:u,Bh:i,Bl:r,Ch:a,Cl:o,Dh:s,Dl:c,Eh:l,El:f,Fh:m,Fl:d,Gh:v,Gl:h,Hh:E,Hl:b}=this;for(let y=0;y<80;y++){const k=gt(l,f,14)^gt(l,f,18)^Qu(l,f,41),_=Et(l,f,14)^Et(l,f,18)^Wu(l,f,41),B=l&m^~l&v,G=f&d^~f&h,V=WE(b,_,G,iy[y],vn[y]),F=YE(V,E,k,B,ty[y],mn[y]),g=V|0,$=gt(t,u,28)^Qu(t,u,34)^Qu(t,u,39),D=Et(t,u,28)^Wu(t,u,34)^Wu(t,u,39),A=t&i^t&a^i&a,I=u&r^u&o^r&o;E=v|0,b=h|0,v=m|0,h=d|0,m=l|0,d=f|0,{h:l,l:f}=We(s|0,c|0,F|0,g|0),s=a|0,c=o|0,a=i|0,o=r|0,i=t|0,r=u|0;const T=JE(g,D,I);t=HE(T,F,$,A),u=T|0}({h:t,l:u}=We(this.Ah|0,this.Al|0,t|0,u|0)),{h:i,l:r}=We(this.Bh|0,this.Bl|0,i|0,r|0),{h:a,l:o}=We(this.Ch|0,this.Cl|0,a|0,o|0),{h:s,l:c}=We(this.Dh|0,this.Dl|0,s|0,c|0),{h:l,l:f}=We(this.Eh|0,this.El|0,l|0,f|0),{h:m,l:d}=We(this.Fh|0,this.Fl|0,m|0,d|0),{h:v,l:h}=We(this.Gh|0,this.Gl|0,v|0,h|0),{h:E,l:b}=We(this.Hh|0,this.Hl|0,E|0,b|0),this.set(t,u,i,r,a,o,s,c,l,f,m,d,v,h,E,b)}roundClean(){Be(mn,vn)}destroy(){Be(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}},uy=class extends Xu{constructor(){super(48),this.Ah=me[0]|0,this.Al=me[1]|0,this.Bh=me[2]|0,this.Bl=me[3]|0,this.Ch=me[4]|0,this.Cl=me[5]|0,this.Dh=me[6]|0,this.Dl=me[7]|0,this.Eh=me[8]|0,this.El=me[9]|0,this.Fh=me[10]|0,this.Fl=me[11]|0,this.Gh=me[12]|0,this.Gl=me[13]|0,this.Hh=me[14]|0,this.Hl=me[15]|0}},pe=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),he=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]),ry=class extends Xu{constructor(){super(28),this.Ah=pe[0]|0,this.Al=pe[1]|0,this.Bh=pe[2]|0,this.Bl=pe[3]|0,this.Ch=pe[4]|0,this.Cl=pe[5]|0,this.Dh=pe[6]|0,this.Dl=pe[7]|0,this.Eh=pe[8]|0,this.El=pe[9]|0,this.Fh=pe[10]|0,this.Fl=pe[11]|0,this.Gh=pe[12]|0,this.Gl=pe[13]|0,this.Hh=pe[14]|0,this.Hl=pe[15]|0}},ay=class extends Xu{constructor(){super(32),this.Ah=he[0]|0,this.Al=he[1]|0,this.Bh=he[2]|0,this.Bl=he[3]|0,this.Ch=he[4]|0,this.Cl=he[5]|0,this.Dh=he[6]|0,this.Dl=he[7]|0,this.Eh=he[8]|0,this.El=he[9]|0,this.Fh=he[10]|0,this.Fl=he[11]|0,this.Gh=he[12]|0,this.Gl=he[13]|0,this.Hh=he[14]|0,this.Hl=he[15]|0}},er=Ge(()=>new S4);Ge(()=>new ny),Ge(()=>new Xu),Ge(()=>new uy),Ge(()=>new ay),Ge(()=>new ry);var A4=class extends ls{constructor(e,n){super(),this.finished=!1,this.destroyed=!1,FE(e);const t=ii(n);if(this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const u=this.blockLen,i=new Uint8Array(u);i.set(t.length>u?e.create().update(t).digest():t);for(let r=0;r<i.length;r++)i[r]^=54;this.iHash.update(i),this.oHash=e.create();for(let r=0;r<i.length;r++)i[r]^=106;this.oHash.update(i),Be(i)}update(e){return ht(this),this.iHash.update(e),this}digestInto(e){ht(this),fe(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:n,iHash:t,finished:u,destroyed:i,blockLen:r,outputLen:a}=this;return e=e,e.finished=u,e.destroyed=i,e.blockLen=r,e.outputLen=a,e.oHash=n._cloneInto(e.oHash),e.iHash=t._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}},w4=(e,n,t)=>new A4(e,n).update(t).digest();w4.create=(e,n)=>new A4(e,n);var Ae=BigInt(0),ke=BigInt(1),On=BigInt(2),oy=BigInt(3),_4=BigInt(4),C4=BigInt(5),$4=BigInt(8);function ge(e,n){const t=e%n;return t>=Ae?t:n+t}function Fe(e,n,t){let u=e;for(;n-- >Ae;)u*=u,u%=t;return u}function x4(e,n){if(e===Ae)throw new Error("invert: expected non-zero number");if(n<=Ae)throw new Error("invert: expected positive modulus, got "+n);let t=ge(e,n),u=n,i=Ae,r=ke;for(;t!==Ae;){const o=u/t,s=u%t,c=i-r*o;u=t,t=s,i=r,r=c}if(u!==ke)throw new Error("invert: does not exist");return ge(i,n)}function I4(e,n){const t=(e.ORDER+ke)/_4,u=e.pow(n,t);if(!e.eql(e.sqr(u),n))throw new Error("Cannot find square root");return u}function sy(e,n){const t=(e.ORDER-C4)/$4,u=e.mul(n,On),i=e.pow(u,t),r=e.mul(n,i),a=e.mul(e.mul(r,On),i),o=e.mul(r,e.sub(a,e.ONE));if(!e.eql(e.sqr(o),n))throw new Error("Cannot find square root");return o}function cy(e){if(e<BigInt(3))throw new Error("sqrt is not defined for small field");let n=e-ke,t=0;for(;n%On===Ae;)n/=On,t++;let u=On;const i=tr(e);for(;N4(i,u)===1;)if(u++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(t===1)return I4;let r=i.pow(u,n);const a=(n+ke)/On;return function(s,c){if(s.is0(c))return c;if(N4(s,c)!==1)throw new Error("Cannot find square root");let l=t,f=s.mul(s.ONE,r),m=s.pow(c,n),d=s.pow(c,a);for(;!s.eql(m,s.ONE);){if(s.is0(m))return s.ZERO;let v=1,h=s.sqr(m);for(;!s.eql(h,s.ONE);)if(v++,h=s.sqr(h),v===l)throw new Error("Cannot find square root");const E=ke<<BigInt(l-v-1),b=s.pow(f,E);l=v,f=s.sqr(b),m=s.mul(m,f),d=s.mul(d,b)}return d}}function ly(e){return e%_4===oy?I4:e%$4===C4?sy:cy(e)}var dy=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function F4(e){const n={ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"},t=dy.reduce((u,i)=>(u[i]="function",u),n);return Hu(e,t),e}function fy(e,n,t){if(t<Ae)throw new Error("invalid exponent, negatives unsupported");if(t===Ae)return e.ONE;if(t===ke)return n;let u=e.ONE,i=n;for(;t>Ae;)t&ke&&(u=e.mul(u,i)),i=e.sqr(i),t>>=ke;return u}function nr(e,n,t=!1){const u=new Array(n.length).fill(t?e.ZERO:void 0),i=n.reduce((a,o,s)=>e.is0(o)?a:(u[s]=a,e.mul(a,o)),e.ONE),r=e.inv(i);return n.reduceRight((a,o,s)=>e.is0(o)?a:(u[s]=e.mul(a,u[s]),e.mul(a,o)),r),u}function N4(e,n){const t=(e.ORDER-ke)/On,u=e.pow(n,t),i=e.eql(u,e.ONE),r=e.eql(u,e.ZERO),a=e.eql(u,e.neg(e.ONE));if(!i&&!r&&!a)throw new Error("invalid Legendre symbol result");return i?1:r?0:-1}function my(e,n){n!==void 0&&ni(n);const t=n!==void 0?n:e.toString(2).length,u=Math.ceil(t/8);return{nBitLength:t,nByteLength:u}}function tr(e,n,t=!1,u={}){if(e<=Ae)throw new Error("invalid field: expected ORDER > 0, got "+e);let i,r;if(typeof n=="object"&&n!=null){if(u.sqrt||t)throw new Error("cannot specify opts in two arguments");const l=n;l.BITS&&(i=l.BITS),l.sqrt&&(r=l.sqrt),typeof l.isLE=="boolean"&&(t=l.isLE)}else typeof n=="number"&&(i=n),u.sqrt&&(r=u.sqrt);const{nBitLength:a,nByteLength:o}=my(e,i);if(o>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let s;const c=Object.freeze({ORDER:e,isLE:t,BITS:a,BYTES:o,MASK:Ju(a),ZERO:Ae,ONE:ke,create:l=>ge(l,e),isValid:l=>{if(typeof l!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof l);return Ae<=l&&l<e},is0:l=>l===Ae,isValidNot0:l=>!c.is0(l)&&c.isValid(l),isOdd:l=>(l&ke)===ke,neg:l=>ge(-l,e),eql:(l,f)=>l===f,sqr:l=>ge(l*l,e),add:(l,f)=>ge(l+f,e),sub:(l,f)=>ge(l-f,e),mul:(l,f)=>ge(l*f,e),pow:(l,f)=>fy(c,l,f),div:(l,f)=>ge(l*x4(f,e),e),sqrN:l=>l*l,addN:(l,f)=>l+f,subN:(l,f)=>l-f,mulN:(l,f)=>l*f,inv:l=>x4(l,e),sqrt:r||(l=>(s||(s=ly(e)),s(c,l))),toBytes:l=>t?p4(l,o):ui(l,o),fromBytes:l=>{if(l.length!==o)throw new Error("Field.fromBytes: expected "+o+" bytes, got "+l.length);return t?v4(l):Tn(l)},invertBatch:l=>nr(c,l),cmov:(l,f,m)=>m?f:l});return Object.freeze(c)}function T4(e){if(typeof e!="bigint")throw new Error("field order must be bigint");const n=e.toString(2).length;return Math.ceil(n/8)}function O4(e){const n=T4(e);return n+Math.ceil(n/2)}function vy(e,n,t=!1){const u=e.length,i=T4(n),r=O4(n);if(u<16||u<r||u>1024)throw new Error("expected "+r+"-1024 bytes of input, got "+u);const a=t?v4(e):Tn(e),o=ge(a,n-ke)+ke;return t?p4(o,i):ui(o,i)}var yt=BigInt(0),zn=BigInt(1);function ai(e,n){const t=n.negate();return e?t:n}function py(e,n,t){const u=a=>a.pz,i=nr(e.Fp,t.map(u));return t.map((a,o)=>a.toAffine(i[o])).map(e.fromAffine)}function z4(e,n){if(!Number.isSafeInteger(e)||e<=0||e>n)throw new Error("invalid window size, expected [1.."+n+"], got W="+e)}function ps(e,n){z4(e,n);const t=Math.ceil(n/e)+1,u=2**(e-1),i=2**e,r=Ju(e),a=BigInt(e);return{windows:t,windowSize:u,mask:r,maxNumber:i,shiftBy:a}}function U4(e,n,t){const{windowSize:u,mask:i,maxNumber:r,shiftBy:a}=t;let o=Number(e&i),s=e>>a;o>u&&(o-=r,s+=zn);const c=n*u,l=c+Math.abs(o)-1,f=o===0,m=o<0,d=n%2!==0;return{nextN:s,offset:l,isZero:f,isNeg:m,isNegF:d,offsetF:c}}function hy(e,n){if(!Array.isArray(e))throw new Error("array expected");e.forEach((t,u)=>{if(!(t instanceof n))throw new Error("invalid point at index "+u)})}function gy(e,n){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((t,u)=>{if(!n.isValid(t))throw new Error("invalid scalar at index "+u)})}var hs=new WeakMap,P4=new WeakMap;function gs(e){return P4.get(e)||1}function R4(e){if(e!==yt)throw new Error("invalid wNAF")}function Ey(e,n){return{constTimeNegate:ai,hasPrecomputes(t){return gs(t)!==1},unsafeLadder(t,u,i=e.ZERO){let r=t;for(;u>yt;)u&zn&&(i=i.add(r)),r=r.double(),u>>=zn;return i},precomputeWindow(t,u){const{windows:i,windowSize:r}=ps(u,n),a=[];let o=t,s=o;for(let c=0;c<i;c++){s=o,a.push(s);for(let l=1;l<r;l++)s=s.add(o),a.push(s);o=s.double()}return a},wNAF(t,u,i){let r=e.ZERO,a=e.BASE;const o=ps(t,n);for(let s=0;s<o.windows;s++){const{nextN:c,offset:l,isZero:f,isNeg:m,isNegF:d,offsetF:v}=U4(i,s,o);i=c,f?a=a.add(ai(d,u[v])):r=r.add(ai(m,u[l]))}return R4(i),{p:r,f:a}},wNAFUnsafe(t,u,i,r=e.ZERO){const a=ps(t,n);for(let o=0;o<a.windows&&i!==yt;o++){const{nextN:s,offset:c,isZero:l,isNeg:f}=U4(i,o,a);if(i=s,!l){const m=u[c];r=r.add(f?m.negate():m)}}return R4(i),r},getPrecomputes(t,u,i){let r=hs.get(u);return r||(r=this.precomputeWindow(u,t),t!==1&&(typeof i=="function"&&(r=i(r)),hs.set(u,r))),r},wNAFCached(t,u,i){const r=gs(t);return this.wNAF(r,this.getPrecomputes(r,t,i),u)},wNAFCachedUnsafe(t,u,i,r){const a=gs(t);return a===1?this.unsafeLadder(t,u,r):this.wNAFUnsafe(a,this.getPrecomputes(a,t,i),u,r)},setWindowSize(t,u){z4(u,n),P4.set(t,u),hs.delete(t)}}}function yy(e,n,t,u){let i=n,r=e.ZERO,a=e.ZERO;for(;t>yt||u>yt;)t&zn&&(r=r.add(i)),u&zn&&(a=a.add(i)),i=i.double(),t>>=zn,u>>=zn;return{p1:r,p2:a}}function by(e,n,t,u){hy(t,e),gy(u,n);const i=t.length,r=u.length;if(i!==r)throw new Error("arrays of points and scalars must have equal length");const a=e.ZERO,o=RE(BigInt(i));let s=1;o>12?s=o-3:o>4?s=o-2:o>0&&(s=2);const c=Ju(s),l=new Array(Number(c)+1).fill(a),f=Math.floor((n.BITS-1)/s)*s;let m=a;for(let d=f;d>=0;d-=s){l.fill(a);for(let h=0;h<r;h++){const E=u[h],b=Number(E>>BigInt(d)&c);l[b]=l[b].add(t[h])}let v=a;for(let h=l.length-1,E=a;h>0;h--)E=E.add(l[h]),v=v.add(E);if(m=m.add(v),d!==0)for(let h=0;h<s;h++)m=m.double()}return m}function j4(e,n){if(n){if(n.ORDER!==e)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return F4(n),n}else return tr(e)}function ky(e,n,t={}){if(!n||typeof n!="object")throw new Error(`expected valid ${e} CURVE object`);for(const o of["p","n","h"]){const s=n[o];if(!(typeof s=="bigint"&&s>yt))throw new Error(`CURVE.${o} must be positive bigint`)}const u=j4(n.p,t.Fp),i=j4(n.n,t.Fn),a=["Gx","Gy","a","b"];for(const o of a)if(!u.isValid(n[o]))throw new Error(`CURVE.${o} must be valid field element of CURVE.Fp`);return{Fp:u,Fn:i}}function L4(e){e.lowS!==void 0&&Mu("lowS",e.lowS),e.prehash!==void 0&&Mu("prehash",e.prehash)}var Dy=class extends Error{constructor(e=""){super(e)}},Ye={Err:Dy,_tlv:{encode:(e,n)=>{const{Err:t}=Ye;if(e<0||e>256)throw new t("tlv.encode: wrong tag");if(n.length&1)throw new t("tlv.encode: unpadded data");const u=n.length/2,i=Gu(u);if(i.length/2&128)throw new t("tlv.encode: long form length too big");const r=u>127?Gu(i.length/2|128):"";return Gu(e)+r+i+n},decode(e,n){const{Err:t}=Ye;let u=0;if(e<0||e>256)throw new t("tlv.encode: wrong tag");if(n.length<2||n[u++]!==e)throw new t("tlv.decode: wrong tlv");const i=n[u++],r=!!(i&128);let a=0;if(!r)a=i;else{const s=i&127;if(!s)throw new t("tlv.decode(long): indefinite length not supported");if(s>4)throw new t("tlv.decode(long): byte length is too big");const c=n.subarray(u,u+s);if(c.length!==s)throw new t("tlv.decode: length bytes not complete");if(c[0]===0)throw new t("tlv.decode(long): zero leftmost byte");for(const l of c)a=a<<8|l;if(u+=s,a<128)throw new t("tlv.decode(long): not minimal encoding")}const o=n.subarray(u,u+a);if(o.length!==a)throw new t("tlv.decode: wrong value length");return{v:o,l:n.subarray(u+a)}}},_int:{encode(e){const{Err:n}=Ye;if(e<Un)throw new n("integer: negative integers are not allowed");let t=Gu(e);if(Number.parseInt(t[0],16)&8&&(t="00"+t),t.length&1)throw new n("unexpected DER parsing assertion: unpadded hex");return t},decode(e){const{Err:n}=Ye;if(e[0]&128)throw new n("invalid signature integer: negative");if(e[0]===0&&!(e[1]&128))throw new n("invalid signature integer: unnecessary leading zero");return Tn(e)}},toSig(e){const{Err:n,_int:t,_tlv:u}=Ye,i=ce("signature",e),{v:r,l:a}=u.decode(48,i);if(a.length)throw new n("invalid signature: left bytes after parsing");const{v:o,l:s}=u.decode(2,r),{v:c,l}=u.decode(2,s);if(l.length)throw new n("invalid signature: left bytes after parsing");return{r:t.decode(o),s:t.decode(c)}},hexFromSig(e){const{_tlv:n,_int:t}=Ye,u=n.encode(2,t.encode(e.r)),i=n.encode(2,t.encode(e.s)),r=u+i;return n.encode(48,r)}},Un=BigInt(0),De=BigInt(1),Xe=BigInt(2),bt=BigInt(3),Es=BigInt(4);function Sy(e,n,t){function u(i){const r=e.sqr(i),a=e.mul(r,i);return e.add(e.add(a,e.mul(i,n)),t)}return u}function Z4(e,n,t){const{BYTES:u}=e;function i(r){let a;if(typeof r=="bigint")a=r;else{let o=ce("private key",r);if(n){if(!n.includes(o.length*2))throw new Error("invalid private key");const s=new Uint8Array(u);s.set(o,s.length-o.length),o=s}try{a=e.fromBytes(o)}catch{throw new Error(`invalid private key: expected ui8a of size ${u}, got ${typeof r}`)}}if(t&&(a=e.create(a)),!e.isValidNot0(a))throw new Error("invalid private key: out of range [1..N-1]");return a}return i}function By(e,n={}){const{Fp:t,Fn:u}=ky("weierstrass",e,n),{h:i,n:r}=e;Hu(n,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object",wrapPrivateKey:"boolean"});const{endo:a}=n;if(a&&(!t.is0(e.a)||typeof a.beta!="bigint"||typeof a.splitScalar!="function"))throw new Error('invalid endo: expected "beta": bigint and "splitScalar": function');function o(){if(!t.isOdd)throw new Error("compression is not supported: Field does not have .isOdd()")}function s(F,g,$){const{x:D,y:A}=g.toAffine(),I=t.toBytes(D);if(Mu("isCompressed",$),$){o();const T=!t.isOdd(A);return be(V4(T),I)}else return be(Uint8Array.of(4),I,t.toBytes(A))}function c(F){fe(F);const g=t.BYTES,$=g+1,D=2*g+1,A=F.length,I=F[0],T=F.subarray(1);if(A===$&&(I===2||I===3)){const N=t.fromBytes(T);if(!t.isValid(N))throw new Error("bad point: is not on curve, wrong x");const O=m(N);let P;try{P=t.sqrt(O)}catch(Q){const R=Q instanceof Error?": "+Q.message:"";throw new Error("bad point: is not on curve, sqrt error"+R)}o();const z=t.isOdd(P);return(I&1)===1!==z&&(P=t.neg(P)),{x:N,y:P}}else if(A===D&&I===4){const N=t.fromBytes(T.subarray(g*0,g*1)),O=t.fromBytes(T.subarray(g*1,g*2));if(!d(N,O))throw new Error("bad point: is not on curve");return{x:N,y:O}}else throw new Error(`bad point: got length ${A}, expected compressed=${$} or uncompressed=${D}`)}const l=n.toBytes||s,f=n.fromBytes||c,m=Sy(t,e.a,e.b);function d(F,g){const $=t.sqr(g),D=m(F);return t.eql($,D)}if(!d(e.Gx,e.Gy))throw new Error("bad curve params: generator point");const v=t.mul(t.pow(e.a,bt),Es),h=t.mul(t.sqr(e.b),BigInt(27));if(t.is0(t.add(v,h)))throw new Error("bad curve params: a or b");function E(F,g,$=!1){if(!t.isValid(g)||$&&t.is0(g))throw new Error(`bad point coordinate ${F}`);return g}function b(F){if(!(F instanceof B))throw new Error("ProjectivePoint expected")}const y=g4((F,g)=>{const{px:$,py:D,pz:A}=F;if(t.eql(A,t.ONE))return{x:$,y:D};const I=F.is0();g==null&&(g=I?t.ONE:t.inv(A));const T=t.mul($,g),N=t.mul(D,g),O=t.mul(A,g);if(I)return{x:t.ZERO,y:t.ZERO};if(!t.eql(O,t.ONE))throw new Error("invZ was invalid");return{x:T,y:N}}),k=g4(F=>{if(F.is0()){if(n.allowInfinityPoint&&!t.is0(F.py))return;throw new Error("bad point: ZERO")}const{x:g,y:$}=F.toAffine();if(!t.isValid(g)||!t.isValid($))throw new Error("bad point: x or y not field elements");if(!d(g,$))throw new Error("bad point: equation left != right");if(!F.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});function _(F,g,$,D,A){return $=new B(t.mul($.px,F),$.py,$.pz),g=ai(D,g),$=ai(A,$),g.add($)}class B{constructor(g,$,D){this.px=E("x",g),this.py=E("y",$,!0),this.pz=E("z",D),Object.freeze(this)}static fromAffine(g){const{x:$,y:D}=g||{};if(!g||!t.isValid($)||!t.isValid(D))throw new Error("invalid affine point");if(g instanceof B)throw new Error("projective point not allowed");return t.is0($)&&t.is0(D)?B.ZERO:new B($,D,t.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(g){return py(B,"pz",g)}static fromBytes(g){return fe(g),B.fromHex(g)}static fromHex(g){const $=B.fromAffine(f(ce("pointHex",g)));return $.assertValidity(),$}static fromPrivateKey(g){const $=Z4(u,n.allowedPrivateKeyLengths,n.wrapPrivateKey);return B.BASE.multiply($(g))}static msm(g,$){return by(B,u,g,$)}precompute(g=8,$=!0){return V.setWindowSize(this,g),$||this.multiply(bt),this}_setWindowSize(g){this.precompute(g)}assertValidity(){k(this)}hasEvenY(){const{y:g}=this.toAffine();if(!t.isOdd)throw new Error("Field doesn't support isOdd");return!t.isOdd(g)}equals(g){b(g);const{px:$,py:D,pz:A}=this,{px:I,py:T,pz:N}=g,O=t.eql(t.mul($,N),t.mul(I,A)),P=t.eql(t.mul(D,N),t.mul(T,A));return O&&P}negate(){return new B(this.px,t.neg(this.py),this.pz)}double(){const{a:g,b:$}=e,D=t.mul($,bt),{px:A,py:I,pz:T}=this;let N=t.ZERO,O=t.ZERO,P=t.ZERO,z=t.mul(A,A),ue=t.mul(I,I),Q=t.mul(T,T),R=t.mul(A,I);return R=t.add(R,R),P=t.mul(A,T),P=t.add(P,P),N=t.mul(g,P),O=t.mul(D,Q),O=t.add(N,O),N=t.sub(ue,O),O=t.add(ue,O),O=t.mul(N,O),N=t.mul(R,N),P=t.mul(D,P),Q=t.mul(g,Q),R=t.sub(z,Q),R=t.mul(g,R),R=t.add(R,P),P=t.add(z,z),z=t.add(P,z),z=t.add(z,Q),z=t.mul(z,R),O=t.add(O,z),Q=t.mul(I,T),Q=t.add(Q,Q),z=t.mul(Q,R),N=t.sub(N,z),P=t.mul(Q,ue),P=t.add(P,P),P=t.add(P,P),new B(N,O,P)}add(g){b(g);const{px:$,py:D,pz:A}=this,{px:I,py:T,pz:N}=g;let O=t.ZERO,P=t.ZERO,z=t.ZERO;const ue=e.a,Q=t.mul(e.b,bt);let R=t.mul($,I),ae=t.mul(D,T),oe=t.mul(A,N),le=t.add($,D),Y=t.add(I,T);le=t.mul(le,Y),Y=t.add(R,ae),le=t.sub(le,Y),Y=t.add($,A);let Ee=t.add(I,N);return Y=t.mul(Y,Ee),Ee=t.add(R,oe),Y=t.sub(Y,Ee),Ee=t.add(D,A),O=t.add(T,N),Ee=t.mul(Ee,O),O=t.add(ae,oe),Ee=t.sub(Ee,O),z=t.mul(ue,Y),O=t.mul(Q,oe),z=t.add(O,z),O=t.sub(ae,z),z=t.add(ae,z),P=t.mul(O,z),ae=t.add(R,R),ae=t.add(ae,R),oe=t.mul(ue,oe),Y=t.mul(Q,Y),ae=t.add(ae,oe),oe=t.sub(R,oe),oe=t.mul(ue,oe),Y=t.add(Y,oe),R=t.mul(ae,Y),P=t.add(P,R),R=t.mul(Ee,Y),O=t.mul(le,O),O=t.sub(O,R),R=t.mul(le,ae),z=t.mul(Ee,z),z=t.add(z,R),new B(O,P,z)}subtract(g){return this.add(g.negate())}is0(){return this.equals(B.ZERO)}multiply(g){const{endo:$}=n;if(!u.isValidNot0(g))throw new Error("invalid scalar: out of range");let D,A;const I=T=>V.wNAFCached(this,T,B.normalizeZ);if($){const{k1neg:T,k1:N,k2neg:O,k2:P}=$.splitScalar(g),{p:z,f:ue}=I(N),{p:Q,f:R}=I(P);A=ue.add(R),D=_($.beta,z,Q,T,O)}else{const{p:T,f:N}=I(g);D=T,A=N}return B.normalizeZ([D,A])[0]}multiplyUnsafe(g){const{endo:$}=n,D=this;if(!u.isValid(g))throw new Error("invalid scalar: out of range");if(g===Un||D.is0())return B.ZERO;if(g===De)return D;if(V.hasPrecomputes(this))return this.multiply(g);if($){const{k1neg:A,k1:I,k2neg:T,k2:N}=$.splitScalar(g),{p1:O,p2:P}=yy(B,D,I,N);return _($.beta,O,P,A,T)}else return V.wNAFCachedUnsafe(D,g)}multiplyAndAddUnsafe(g,$,D){const A=this.multiplyUnsafe($).add(g.multiplyUnsafe(D));return A.is0()?void 0:A}toAffine(g){return y(this,g)}isTorsionFree(){const{isTorsionFree:g}=n;return i===De?!0:g?g(B,this):V.wNAFCachedUnsafe(this,r).is0()}clearCofactor(){const{clearCofactor:g}=n;return i===De?this:g?g(B,this):this.multiplyUnsafe(i)}toBytes(g=!0){return Mu("isCompressed",g),this.assertValidity(),l(B,this,g)}toRawBytes(g=!0){return this.toBytes(g)}toHex(g=!0){return ti(this.toBytes(g))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}}B.BASE=new B(e.Gx,e.Gy,t.ONE),B.ZERO=new B(t.ZERO,t.ONE,t.ZERO),B.Fp=t,B.Fn=u;const G=u.BITS,V=Ey(B,n.endo?Math.ceil(G/2):G);return B}function V4(e){return Uint8Array.of(e?2:3)}function Ay(e,n,t={}){Hu(n,{hash:"function"},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});const u=n.randomBytes||f4,i=n.hmac||((D,...A)=>w4(n.hash,D,be(...A))),{Fp:r,Fn:a}=e,{ORDER:o,BITS:s}=a;function c(D){const A=o>>De;return D>A}function l(D){return c(D)?a.neg(D):D}function f(D,A){if(!a.isValidNot0(A))throw new Error(`invalid signature ${D}: out of range 1..CURVE.n`)}class m{constructor(A,I,T){f("r",A),f("s",I),this.r=A,this.s=I,T!=null&&(this.recovery=T),Object.freeze(this)}static fromCompact(A){const I=a.BYTES,T=ce("compactSignature",A,I*2);return new m(a.fromBytes(T.subarray(0,I)),a.fromBytes(T.subarray(I,I*2)))}static fromDER(A){const{r:I,s:T}=Ye.toSig(ce("DER",A));return new m(I,T)}assertValidity(){}addRecoveryBit(A){return new m(this.r,this.s,A)}recoverPublicKey(A){const I=r.ORDER,{r:T,s:N,recovery:O}=this;if(O==null||![0,1,2,3].includes(O))throw new Error("recovery id invalid");if(o*Xe<I&&O>1)throw new Error("recovery id is ambiguous for h>1 curve");const z=O===2||O===3?T+o:T;if(!r.isValid(z))throw new Error("recovery id 2 or 3 invalid");const ue=r.toBytes(z),Q=e.fromHex(be(V4((O&1)===0),ue)),R=a.inv(z),ae=k(ce("msgHash",A)),oe=a.create(-ae*R),le=a.create(N*R),Y=e.BASE.multiplyUnsafe(oe).add(Q.multiplyUnsafe(le));if(Y.is0())throw new Error("point at infinify");return Y.assertValidity(),Y}hasHighS(){return c(this.s)}normalizeS(){return this.hasHighS()?new m(this.r,a.neg(this.s),this.recovery):this}toBytes(A){if(A==="compact")return be(a.toBytes(this.r),a.toBytes(this.s));if(A==="der")return cs(Ye.hexFromSig(this));throw new Error("invalid format")}toDERRawBytes(){return this.toBytes("der")}toDERHex(){return ti(this.toBytes("der"))}toCompactRawBytes(){return this.toBytes("compact")}toCompactHex(){return ti(this.toBytes("compact"))}}const d=Z4(a,t.allowedPrivateKeyLengths,t.wrapPrivateKey),v={isValidPrivateKey(D){try{return d(D),!0}catch{return!1}},normPrivateKeyToScalar:d,randomPrivateKey:()=>{const D=o;return vy(u(O4(D)),D)},precompute(D=8,A=e.BASE){return A.precompute(D,!1)}};function h(D,A=!0){return e.fromPrivateKey(D).toBytes(A)}function E(D){if(typeof D=="bigint")return!1;if(D instanceof e)return!0;const I=ce("key",D).length,T=r.BYTES,N=T+1,O=2*T+1;if(!(t.allowedPrivateKeyLengths||a.BYTES===N))return I===N||I===O}function b(D,A,I=!0){if(E(D)===!0)throw new Error("first arg must be private key");if(E(A)===!1)throw new Error("second arg must be public key");return e.fromHex(A).multiply(d(D)).toBytes(I)}const y=n.bits2int||function(D){if(D.length>8192)throw new Error("input is too large");const A=Tn(D),I=D.length*8-s;return I>0?A>>BigInt(I):A},k=n.bits2int_modN||function(D){return a.create(y(D))},_=Ju(s);function B(D){return h4("num < 2^"+s,D,Un,_),a.toBytes(D)}function G(D,A,I=V){if(["recovered","canonical"].some(le=>le in I))throw new Error("sign() legacy options not supported");const{hash:T}=n;let{lowS:N,prehash:O,extraEntropy:P}=I;N==null&&(N=!0),D=ce("msgHash",D),L4(I),O&&(D=ce("prehashed msgHash",T(D)));const z=k(D),ue=d(A),Q=[B(ue),B(z)];if(P!=null&&P!==!1){const le=P===!0?u(r.BYTES):P;Q.push(ce("extraEntropy",le))}const R=be(...Q),ae=z;function oe(le){const Y=y(le);if(!a.isValidNot0(Y))return;const Ee=a.inv(Y),$t=e.BASE.multiply(Y).toAffine(),Pn=a.create($t.x);if(Pn===Un)return;const kn=a.create(Ee*a.create(ae+Pn*ue));if(kn===Un)return;let Br=($t.x===Pn?0:2)|Number($t.y&De),Rn=kn;return N&&c(kn)&&(Rn=l(kn),Br^=1),new m(Pn,Rn,Br)}return{seed:R,k2sig:oe}}const V={lowS:n.lowS,prehash:!1},F={lowS:n.lowS,prehash:!1};function g(D,A,I=V){const{seed:T,k2sig:N}=G(D,A,I);return jE(n.hash.outputLen,a.BYTES,i)(T,N)}e.BASE.precompute(8);function $(D,A,I,T=F){const N=D;A=ce("msgHash",A),I=ce("publicKey",I),L4(T);const{lowS:O,prehash:P,format:z}=T;if("strict"in T)throw new Error("options.strict was renamed to lowS");if(z!==void 0&&!["compact","der","js"].includes(z))throw new Error('format must be "compact", "der" or "js"');const ue=typeof N=="string"||Vu(N),Q=!ue&&!z&&typeof N=="object"&&N!==null&&typeof N.r=="bigint"&&typeof N.s=="bigint";if(!ue&&!Q)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let R,ae;try{if(Q)if(z===void 0||z==="js")R=new m(N.r,N.s);else throw new Error("invalid format");if(ue){try{z!=="compact"&&(R=m.fromDER(N))}catch(Rn){if(!(Rn instanceof Ye.Err))throw Rn}!R&&z!=="der"&&(R=m.fromCompact(N))}ae=e.fromHex(I)}catch{return!1}if(!R||O&&R.hasHighS())return!1;P&&(A=n.hash(A));const{r:oe,s:le}=R,Y=k(A),Ee=a.inv(le),$t=a.create(Y*Ee),Pn=a.create(oe*Ee),kn=e.BASE.multiplyUnsafe($t).add(ae.multiplyUnsafe(Pn));return kn.is0()?!1:a.create(kn.x)===oe}return Object.freeze({getPublicKey:h,getSharedSecret:b,sign:g,verify:$,utils:v,Point:e,Signature:m})}function wy(e){const n={a:e.a,b:e.b,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},t=e.Fp,u=tr(n.n,e.nBitLength),i={Fp:t,Fn:u,allowedPrivateKeyLengths:e.allowedPrivateKeyLengths,allowInfinityPoint:e.allowInfinityPoint,endo:e.endo,wrapPrivateKey:e.wrapPrivateKey,isTorsionFree:e.isTorsionFree,clearCofactor:e.clearCofactor,fromBytes:e.fromBytes,toBytes:e.toBytes};return{CURVE:n,curveOpts:i}}function _y(e){const{CURVE:n,curveOpts:t}=wy(e),u={hash:e.hash,hmac:e.hmac,randomBytes:e.randomBytes,lowS:e.lowS,bits2int:e.bits2int,bits2int_modN:e.bits2int_modN};return{CURVE:n,curveOpts:t,ecdsaOpts:u}}function Cy(e,n){return Object.assign({},n,{ProjectivePoint:n.Point,CURVE:e})}function $y(e){const{CURVE:n,curveOpts:t,ecdsaOpts:u}=_y(e),i=By(n,t),r=Ay(i,u,t);return Cy(e,r)}function xy(e,n){const t=e.ORDER;let u=Un;for(let v=t-De;v%Xe===Un;v/=Xe)u+=De;const i=u,r=Xe<<i-De-De,a=r*Xe,o=(t-De)/a,s=(o-De)/Xe,c=a-De,l=r,f=e.pow(n,o),m=e.pow(n,(o+De)/Xe);let d=(v,h)=>{let E=f,b=e.pow(h,c),y=e.sqr(b);y=e.mul(y,h);let k=e.mul(v,y);k=e.pow(k,s),k=e.mul(k,b),b=e.mul(k,h),y=e.mul(k,v);let _=e.mul(y,b);k=e.pow(_,l);let B=e.eql(k,e.ONE);b=e.mul(y,m),k=e.mul(_,E),y=e.cmov(b,y,B),_=e.cmov(k,_,B);for(let G=i;G>De;G--){let V=G-Xe;V=Xe<<V-De;let F=e.pow(_,V);const g=e.eql(F,e.ONE);b=e.mul(y,E),E=e.mul(E,E),F=e.mul(_,E),y=e.cmov(b,y,g),_=e.cmov(F,_,g)}return{isValid:B,value:y}};if(e.ORDER%Es===bt){const v=(e.ORDER-bt)/Es,h=e.sqrt(e.neg(n));d=(E,b)=>{let y=e.sqr(b);const k=e.mul(E,b);y=e.mul(y,k);let _=e.pow(y,v);_=e.mul(_,k);const B=e.mul(_,h),G=e.mul(e.sqr(_),b),V=e.eql(G,E);let F=e.cmov(B,_,V);return{isValid:V,value:F}}}return d}function Iy(e,n){F4(e);const{A:t,B:u,Z:i}=n;if(!e.isValid(t)||!e.isValid(u)||!e.isValid(i))throw new Error("mapToCurveSimpleSWU: invalid opts");const r=xy(e,i);if(!e.isOdd)throw new Error("Field does not have .isOdd()");return a=>{let o,s,c,l,f,m,d,v;o=e.sqr(a),o=e.mul(o,i),s=e.sqr(o),s=e.add(s,o),c=e.add(s,e.ONE),c=e.mul(c,u),l=e.cmov(i,e.neg(s),!e.eql(s,e.ZERO)),l=e.mul(l,t),s=e.sqr(c),m=e.sqr(l),f=e.mul(m,t),s=e.add(s,f),s=e.mul(s,c),m=e.mul(m,l),f=e.mul(m,u),s=e.add(s,f),d=e.mul(o,c);const{isValid:h,value:E}=r(s,m);v=e.mul(o,a),v=e.mul(v,E),d=e.cmov(d,c,h),v=e.cmov(v,E,h);const b=e.isOdd(a)===e.isOdd(v);v=e.cmov(e.neg(v),v,b);const y=nr(e,[l],!0)[0];return d=e.mul(d,y),{x:d,y:v}}}function Fy(e,n){const t=u=>$y({...e,hash:u});return{...t(n),create:t}}var Ny=Tn;function pn(e,n){if(oi(e),oi(n),e<0||e>=1<<8*n)throw new Error("invalid I2OSP input: "+e);const t=Array.from({length:n}).fill(0);for(let u=n-1;u>=0;u--)t[u]=e&255,e>>>=8;return new Uint8Array(t)}function Ty(e,n){const t=new Uint8Array(e.length);for(let u=0;u<e.length;u++)t[u]=e[u]^n[u];return t}function oi(e){if(!Number.isSafeInteger(e))throw new Error("number expected")}function Oy(e,n,t,u){fe(e),fe(n),oi(t),n.length>255&&(n=u(be(qu("H2C-OVERSIZE-DST-"),n)));const{outputLen:i,blockLen:r}=u,a=Math.ceil(t/i);if(t>65535||a>255)throw new Error("expand_message_xmd: invalid lenInBytes");const o=be(n,pn(n.length,1)),s=pn(0,r),c=pn(t,2),l=new Array(a),f=u(be(s,e,c,pn(0,1),o));l[0]=u(be(f,pn(1,1),o));for(let d=1;d<=a;d++){const v=[Ty(f,l[d-1]),pn(d+1,1),o];l[d]=u(be(...v))}return be(...l).slice(0,t)}function zy(e,n,t,u,i){if(fe(e),fe(n),oi(t),n.length>255){const r=Math.ceil(2*u/8);n=i.create({dkLen:r}).update(qu("H2C-OVERSIZE-DST-")).update(n).digest()}if(t>65535||n.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return i.create({dkLen:t}).update(e).update(pn(t,2)).update(n).update(pn(n.length,1)).digest()}function q4(e,n,t){Hu(t,{p:"bigint",m:"number",k:"number",hash:"function"});const{p:u,k:i,m:r,hash:a,expand:o,DST:s}=t;if(!Vu(s)&&typeof s!="string")throw new Error("DST must be string or uint8array");if(!LE(t.hash))throw new Error("expected valid hash");fe(e),oi(n);const c=typeof s=="string"?qu(s):s,l=u.toString(2).length,f=Math.ceil((l+i)/8),m=n*r*f;let d;if(o==="xmd")d=Oy(e,c,m,a);else if(o==="xof")d=zy(e,c,m,i,a);else if(o==="_internal_pass")d=e;else throw new Error('expand must be "xmd" or "xof"');const v=new Array(n);for(let h=0;h<n;h++){const E=new Array(r);for(let b=0;b<r;b++){const y=f*(b+h*r),k=d.subarray(y,y+f);E[b]=ge(Ny(k),u)}v[h]=E}return v}function Uy(e,n){const t=n.map(u=>Array.from(u).reverse());return(u,i)=>{const[r,a,o,s]=t.map(f=>f.reduce((m,d)=>e.add(e.mul(m,u),d))),[c,l]=nr(e,[a,s],!0);return u=e.mul(r,c),i=e.mul(i,e.mul(o,l)),{x:u,y:i}}}function Py(e,n,t){if(typeof n!="function")throw new Error("mapToCurve() must be defined");function u(r){return e.fromAffine(n(r))}function i(r){const a=r.clearCofactor();return a.equals(e.ZERO)?e.ZERO:(a.assertValidity(),a)}return{defaults:t,hashToCurve(r,a){const o=t.DST?t.DST:{},s=Object.assign({},t,o,a),c=q4(r,2,s),l=u(c[0]),f=u(c[1]);return i(l.add(f))},encodeToCurve(r,a){const o=t.encodeDST?t.encodeDST:{},s=Object.assign({},t,o,a),c=q4(r,1,s);return i(u(c[0]))},mapToCurve(r){if(!Array.isArray(r))throw new Error("expected array of bigints");for(const a of r)if(typeof a!="bigint")throw new Error("expected array of bigints");return i(u(r))}}}var en={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},M4=BigInt(0),ir=BigInt(1),ur=BigInt(2),G4=(e,n)=>(e+n/ur)/n;function J4(e){const n=en.p,t=BigInt(3),u=BigInt(6),i=BigInt(11),r=BigInt(22),a=BigInt(23),o=BigInt(44),s=BigInt(88),c=e*e*e%n,l=c*c*e%n,f=Fe(l,t,n)*l%n,m=Fe(f,t,n)*l%n,d=Fe(m,ur,n)*c%n,v=Fe(d,i,n)*d%n,h=Fe(v,r,n)*v%n,E=Fe(h,o,n)*h%n,b=Fe(E,s,n)*E%n,y=Fe(b,o,n)*h%n,k=Fe(y,t,n)*l%n,_=Fe(k,a,n)*v%n,B=Fe(_,u,n)*c%n,G=Fe(B,ur,n);if(!hn.eql(hn.sqr(G),e))throw new Error("Cannot find square root");return G}var hn=tr(en.p,void 0,void 0,{sqrt:J4}),rr=Fy({...en,Fp:hn,lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const n=en.n,t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),u=-ir*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),r=t,a=BigInt("0x100000000000000000000000000000000"),o=G4(r*e,n),s=G4(-u*e,n);let c=ge(e-o*t-s*i,n),l=ge(-o*u-s*r,n);const f=c>a,m=l>a;if(f&&(c=n-c),m&&(l=n-l),c>a||l>a)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:f,k1:c,k2neg:m,k2:l}}}},er),H4={};function ar(e,...n){let t=H4[e];if(t===void 0){const u=er(Uint8Array.from(e,i=>i.charCodeAt(0)));t=be(u,u),H4[e]=t}return er(be(t,...n))}var ys=e=>e.toBytes(!0).slice(1),bs=e=>ui(e,32),ks=e=>ge(e,en.p),si=e=>ge(e,en.n),Ds=rr.Point,Ss=e=>e%ur===M4;function Bs(e){let n=rr.utils.normPrivateKeyToScalar(e),t=Ds.fromPrivateKey(n);return{scalar:Ss(t.y)?n:si(-n),bytes:ys(t)}}function K4(e){h4("x",e,ir,en.p);const n=ks(e*e),t=ks(n*e+BigInt(7));let u=J4(t);Ss(u)||(u=ks(-u));const i=Ds.fromAffine({x:e,y:u});return i.assertValidity(),i}var kt=Tn;function Q4(...e){return si(kt(ar("BIP0340/challenge",...e)))}function Ry(e){return Bs(e).bytes}function jy(e,n,t=f4(32)){const u=ce("message",e),{bytes:i,scalar:r}=Bs(n),a=ce("auxRand",t,32),o=bs(r^kt(ar("BIP0340/aux",a))),s=ar("BIP0340/nonce",o,i,u),c=si(kt(s));if(c===M4)throw new Error("sign failed: k is zero");const{bytes:l,scalar:f}=Bs(c),m=Q4(l,i,u),d=new Uint8Array(64);if(d.set(l,0),d.set(bs(si(f+m*r)),32),!W4(d,u,i))throw new Error("sign: Invalid signature produced");return d}function W4(e,n,t){const u=ce("signature",e,64),i=ce("message",n),r=ce("publicKey",t,32);try{const a=K4(kt(r)),o=kt(u.subarray(0,32));if(!vs(o,ir,en.p))return!1;const s=kt(u.subarray(32,64));if(!vs(s,ir,en.n))return!1;const c=Q4(bs(o),ys(a),i),l=Ds.BASE.multiplyUnsafe(s).add(a.multiplyUnsafe(si(-c))),{x:f,y:m}=l.toAffine();return!(l.is0()||!Ss(m)||f!==o)}catch{return!1}}({getPublicKey:Ry,sign:jy,verify:W4,utils:{randomPrivateKey:rr.utils.randomPrivateKey,lift_x:K4,pointToBytes:ys,numberToBytesBE:ui,bytesToNumberBE:Tn,taggedHash:ar,mod:ge}});var Ly=Uy(hn,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(e=>e.map(n=>BigInt(n)))),Zy=Iy(hn,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:hn.create(BigInt("-11"))});Py(rr.Point,e=>{const{x:n,y:t}=Zy(hn.create(e[0]));return Ly(n,t)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:hn.ORDER,m:1,k:128,expand:"xmd",hash:er});/*! Bundled license information:
|
|
525
471
|
|
|
526
472
|
@noble/curves/esm/abstract/modular.js:
|
|
527
473
|
@noble/curves/esm/abstract/curve.js:
|
|
@@ -529,10 +475,10 @@ mutation CreatePaymentRequest($createDirectPaymentInput: CreateDirectPaymentInpu
|
|
|
529
475
|
@noble/curves/esm/_shortw_utils.js:
|
|
530
476
|
@noble/curves/esm/secp256k1.js:
|
|
531
477
|
(*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
|
|
532
|
-
*/var
|
|
533
|
-
`);super(o,t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:`ox@${
|
|
534
|
-
`);super(a,t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=u,this.docsPath=i,this.metaMessages=t.metaMessages,this.name=t.name??this.name,this.shortMessage=n,this.version=Fv}walk(n){return Nv(this,n)}};function Nv(e,n){return n?.(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause!==void 0?Nv(e.cause,n):n?null:e}function Vs(e,{strict:n=!0}={}){return!e||typeof e!="string"?!1:n?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")}function Tv(e){return Vs(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}var Ov=class extends gr{constructor({size:e,targetSize:n,type:t}){super(`${t.charAt(0).toUpperCase()}${t.slice(1).toLowerCase()} size (${e}) exceeds padding size (${n}).`,{name:"SizeExceedsPaddingSizeError"})}};function Er(e,{dir:n,size:t=32}={}){return typeof e=="string"?qb(e,{dir:n,size:t}):Mb(e,{dir:n,size:t})}function qb(e,{dir:n,size:t=32}={}){if(t===null)return e;const u=e.replace("0x","");if(u.length>t*2)throw new Ov({size:Math.ceil(u.length/2),targetSize:t,type:"hex"});return`0x${u[n==="right"?"padEnd":"padStart"](t*2,"0")}`}function Mb(e,{dir:n,size:t=32}={}){if(t===null)return e;if(e.length>t)throw new Ov({size:e.length,targetSize:t,type:"bytes"});const u=new Uint8Array(t);for(let i=0;i<t;i++){const r=n==="right";u[r?i:t-i-1]=e[r?i:e.length-i-1]}return u}var Gb=class extends gr{constructor({max:e,min:n,signed:t,size:u,value:i}){super(`Number "${i}" is not in safe ${u?`${u*8}-bit ${t?"signed":"unsigned"} `:""}integer range ${e?`(${n} to ${e})`:`(above ${n})`}`,{name:"IntegerOutOfRangeError"})}},Jb=class extends gr{constructor({givenSize:e,maxSize:n}){super(`Size cannot exceed ${n} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}};function yr(e,{size:n}){if(Tv(e)>n)throw new Jb({givenSize:Tv(e),maxSize:n})}function Qb(e,n={}){const{signed:t}=n;n.size&&yr(e,{size:n.size});const u=BigInt(e);if(!t)return u;const i=(e.length-2)/2,r=(1n<<BigInt(i)*8n-1n)-1n;return u<=r?u:u-BigInt(`0x${"f".padStart(i*2,"f")}`)-1n}function Hb(e,n={}){return Number(Qb(e,n))}Array.from({length:256},(e,n)=>n.toString(16).padStart(2,"0"));function qs(e,n={}){const{signed:t,size:u}=n,i=BigInt(e);let r;u?t?r=(1n<<BigInt(u)*8n-1n)-1n:r=2n**(BigInt(u)*8n)-1n:typeof e=="number"&&(r=BigInt(Number.MAX_SAFE_INTEGER));const a=typeof r=="bigint"&&t?-r-1n:0;if(r&&i>r||i<a){const s=typeof e=="bigint"?"n":"";throw new Gb({max:r?`${r}${s}`:void 0,min:`${a}${s}`,signed:t,size:u,value:`${e}${s}`})}const o=`0x${(t&&i<0?(1n<<BigInt(u*8))+BigInt(i):i).toString(16)}`;return u?Er(o,{size:u}):o}new TextEncoder;var Kb=new TextEncoder;function Wb(e,n={}){return typeof e=="number"||typeof e=="bigint"?Xb(e,n):typeof e=="boolean"?Yb(e,n):Vs(e)?Uv(e,n):Pv(e,n)}function Yb(e,n={}){const t=new Uint8Array(1);return t[0]=Number(e),typeof n.size=="number"?(yr(t,{size:n.size}),Er(t,{size:n.size})):t}var un={zero:48,nine:57,A:65,F:70,a:97,f:102};function zv(e){if(e>=un.zero&&e<=un.nine)return e-un.zero;if(e>=un.A&&e<=un.F)return e-(un.A-10);if(e>=un.a&&e<=un.f)return e-(un.a-10)}function Uv(e,n={}){let t=e;n.size&&(yr(t,{size:n.size}),t=Er(t,{dir:"right",size:n.size}));let u=t.slice(2);u.length%2&&(u=`0${u}`);const i=u.length/2,r=new Uint8Array(i);for(let a=0,o=0;a<i;a++){const s=zv(u.charCodeAt(o++)),c=zv(u.charCodeAt(o++));if(s===void 0||c===void 0)throw new gr(`Invalid byte sequence ("${u[o-2]}${u[o-1]}" in "${u}").`);r[a]=s*16+c}return r}function Xb(e,n){const t=qs(e,n);return Uv(t)}function Pv(e,n={}){const t=Kb.encode(e);return typeof n.size=="number"?(yr(t,{size:n.size}),Er(t,{dir:"right",size:n.size})):t}var ek=BigInt(0),vi=BigInt(1),nk=BigInt(2),tk=BigInt(7),ik=BigInt(256),uk=BigInt(113),Rv=[],jv=[],Lv=[];for(let e=0,n=vi,t=1,u=0;e<24;e++){[t,u]=[u,(2*t+3*u)%5],Rv.push(2*(5*u+t)),jv.push((e+1)*(e+2)/2%64);let i=ek;for(let r=0;r<7;r++)n=(n<<vi^(n>>tk)*uk)%ik,n&nk&&(i^=vi<<(vi<<BigInt(r))-vi);Lv.push(i)}var Zv=J4(Lv,!0),rk=Zv[0],ak=Zv[1],Vv=(e,n,t)=>t>32?wy(e,n,t):By(e,n,t),qv=(e,n,t)=>t>32?_y(e,n,t):Ay(e,n,t);function ok(e,n=24){const t=new Uint32Array(10);for(let u=24-n;u<24;u++){for(let a=0;a<10;a++)t[a]=e[a]^e[a+10]^e[a+20]^e[a+30]^e[a+40];for(let a=0;a<10;a+=2){const o=(a+8)%10,s=(a+2)%10,c=t[s],l=t[s+1],f=Vv(c,l,1)^t[o],m=qv(c,l,1)^t[o+1];for(let d=0;d<50;d+=10)e[a+d]^=f,e[a+d+1]^=m}let i=e[2],r=e[3];for(let a=0;a<24;a++){const o=jv[a],s=Vv(i,r,o),c=qv(i,r,o),l=Rv[a];i=e[l],r=e[l+1],e[l]=s,e[l+1]=c}for(let a=0;a<50;a+=10){for(let o=0;o<10;o++)t[o]=e[a+o];for(let o=0;o<10;o++)e[a+o]^=~t[(o+2)%10]&t[(o+4)%10]}e[0]^=rk[u],e[1]^=ak[u]}Ae(t)}var Mv=class Dp extends Bs{constructor(n,t,u,i=!1,r=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=n,this.suffix=t,this.outputLen=u,this.enableXOF=i,this.rounds=r,ai(u),!(0<n&&n<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=vy(this.state)}clone(){return this._cloneInto()}keccak(){U4(this.state32),ok(this.state32,this.rounds),U4(this.state32),this.posOut=0,this.pos=0}update(n){Dt(this),n=si(n),me(n);const{blockLen:t,state:u}=this,i=n.length;for(let r=0;r<i;){const a=Math.min(t-this.pos,i-r);for(let o=0;o<a;o++)u[this.pos++]^=n[r++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:n,suffix:t,pos:u,blockLen:i}=this;n[u]^=t,(t&128)!==0&&u===i-1&&this.keccak(),n[i-1]^=128,this.keccak()}writeInto(n){Dt(this,!1),me(n),this.finish();const t=this.state,{blockLen:u}=this;for(let i=0,r=n.length;i<r;){this.posOut>=u&&this.keccak();const a=Math.min(u-this.posOut,r-i);n.set(t.subarray(this.posOut,this.posOut+a),i),this.posOut+=a,i+=a}return n}xofInto(n){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(n)}xof(n){return ai(n),this.xofInto(new Uint8Array(n))}digestInto(n){if(z4(n,this),this.finished)throw new Error("digest() was already called");return this.writeInto(n),this.destroy(),n}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,Ae(this.state)}_cloneInto(n){const{blockLen:t,suffix:u,outputLen:i,rounds:r,enableXOF:a}=this;return n||(n=new Dp(t,u,i,a,r)),n.state32.set(this.state32),n.pos=this.pos,n.posOut=this.posOut,n.finished=this.finished,n.rounds=r,n.suffix=u,n.outputLen=i,n.enableXOF=a,n.destroyed=this.destroyed,n}},yn=(e,n,t)=>Je(()=>new Mv(n,e,t));yn(6,144,224/8),yn(6,136,256/8),yn(6,104,384/8),yn(6,72,512/8),yn(1,144,224/8);var Gv=yn(1,136,256/8);yn(1,104,384/8),yn(1,72,512/8);var Jv=(e,n,t)=>yy((u={})=>new Mv(n,e,u.dkLen===void 0?t:u.dkLen,!0));Jv(31,168,128/8),Jv(31,136,256/8);function sk(e,n){return Gv(Vs(e,{strict:!1})?Wb(e):e)}var pi=class extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){const n=super.get(e);return super.has(e)&&n!==void 0&&(this.delete(e),super.set(e,n)),n}set(e,n){if(super.set(e,n),this.maxSize&&this.size>this.maxSize){const t=this.keys().next().value;t&&this.delete(t)}return this}},ck=/^0x[a-fA-F0-9]{40}$/,Ms=new pi(8192);function lk(e,n){const{strict:t=!0}={},u=`${e}.${t}`;if(Ms.has(u))return Ms.get(u);const i=ck.test(e)?e.toLowerCase()===e?!0:t?dk(e)===e:!0:!1;return Ms.set(u,i),i}var Gs=new pi(8192);function dk(e,n){if(Gs.has(`${e}.${n}`))return Gs.get(`${e}.${n}`);const t=e.substring(2).toLowerCase(),u=sk(Pv(t)),i=t.split("");for(let a=0;a<40;a+=2)u[a>>1]>>4>=8&&i[a]&&(i[a]=i[a].toUpperCase()),(u[a>>1]&15)>=8&&i[a+1]&&(i[a+1]=i[a+1].toUpperCase());const r=`0x${i.join("")}`;return Gs.set(`${e}.${n}`,r),r}async function fk(e,{address:n,blockTag:t="latest",blockNumber:u}){const i=await e.request({method:"eth_getTransactionCount",params:[n,typeof u=="bigint"?qs(u):t]},{dedupe:!!u});return Hb(i)}new pi(128),qs(0,{size:32}),new pi(8192);var Ct=Uint32Array.from([1732584193,4023233417,2562383102,271733878,3285377520]),bn=new Uint32Array(80),mk=class extends li{constructor(){super(64,20,8,!1),this.A=Ct[0]|0,this.B=Ct[1]|0,this.C=Ct[2]|0,this.D=Ct[3]|0,this.E=Ct[4]|0}get(){const{A:e,B:n,C:t,D:u,E:i}=this;return[e,n,t,u,i]}set(e,n,t,u,i){this.A=e|0,this.B=n|0,this.C=t|0,this.D=u|0,this.E=i|0}process(e,n){for(let o=0;o<16;o++,n+=4)bn[o]=e.getUint32(n,!1);for(let o=16;o<80;o++)bn[o]=dn(bn[o-3]^bn[o-8]^bn[o-14]^bn[o-16],1);let{A:t,B:u,C:i,D:r,E:a}=this;for(let o=0;o<80;o++){let s,c;o<20?(s=or(u,i,r),c=1518500249):o<40?(s=u^i^r,c=1859775393):o<60?(s=K4(u,i,r),c=2400959708):(s=u^i^r,c=3395469782);const l=dn(t,5)+s+a+c+bn[o]|0;a=r,r=i,i=dn(u,30),u=t,t=l}t=t+this.A|0,u=u+this.B|0,i=i+this.C|0,r=r+this.D|0,a=a+this.E|0,this.set(t,u,i,r,a)}roundClean(){Ae(bn)}destroy(){this.set(0,0,0,0,0),Ae(this.buffer)}};Je(()=>new mk);var vk=Math.pow(2,32),pk=Array.from({length:64},(e,n)=>Math.floor(vk*Math.abs(Math.sin(n+1)))),br=Ct.slice(0,4),Js=new Uint32Array(16),hk=class extends li{constructor(){super(64,16,8,!0),this.A=br[0]|0,this.B=br[1]|0,this.C=br[2]|0,this.D=br[3]|0}get(){const{A:e,B:n,C:t,D:u}=this;return[e,n,t,u]}set(e,n,t,u){this.A=e|0,this.B=n|0,this.C=t|0,this.D=u|0}process(e,n){for(let a=0;a<16;a++,n+=4)Js[a]=e.getUint32(n,!0);let{A:t,B:u,C:i,D:r}=this;for(let a=0;a<64;a++){let o,s,c;a<16?(o=or(u,i,r),s=a,c=[7,12,17,22]):a<32?(o=or(r,u,i),s=(5*a+1)%16,c=[5,9,14,20]):a<48?(o=u^i^r,s=(3*a+5)%16,c=[4,11,16,23]):(o=i^(u|~r),s=7*a%16,c=[6,10,15,21]),o=o+t+pk[a]+Js[s],t=r,r=i,i=u,u=u+dn(o,c[a%4])}t=t+this.A|0,u=u+this.B|0,i=i+this.C|0,r=r+this.D|0,this.set(t,u,i,r)}roundClean(){Ae(Js)}destroy(){this.set(0,0,0,0),Ae(this.buffer)}};Je(()=>new hk);var gk=Uint8Array.from([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),Qv=Uint8Array.from(new Array(16).fill(0).map((e,n)=>n)),Ek=Qv.map(e=>(9*e+5)%16),Hv=(()=>{const t=[[Qv],[Ek]];for(let u=0;u<4;u++)for(let i of t)i.push(i[u].map(r=>gk[r]));return t})(),Kv=Hv[0],Wv=Hv[1],Yv=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(e=>Uint8Array.from(e)),yk=Kv.map((e,n)=>e.map(t=>Yv[n][t])),bk=Wv.map((e,n)=>e.map(t=>Yv[n][t])),kk=Uint32Array.from([0,1518500249,1859775393,2400959708,2840853838]),Dk=Uint32Array.from([1352829926,1548603684,1836072691,2053994217,0]);function Xv(e,n,t,u){return e===0?n^t^u:e===1?n&t|~n&u:e===2?(n|~t)^u:e===3?n&u|t&~u:n^(t|~u)}var kr=new Uint32Array(16),Sk=class extends li{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:n,h2:t,h3:u,h4:i}=this;return[e,n,t,u,i]}set(e,n,t,u,i){this.h0=e|0,this.h1=n|0,this.h2=t|0,this.h3=u|0,this.h4=i|0}process(e,n){for(let m=0;m<16;m++,n+=4)kr[m]=e.getUint32(n,!0);let t=this.h0|0,u=t,i=this.h1|0,r=i,a=this.h2|0,o=a,s=this.h3|0,c=s,l=this.h4|0,f=l;for(let m=0;m<5;m++){const d=4-m,v=kk[m],h=Dk[m],E=Kv[m],b=Wv[m],y=yk[m],k=bk[m];for(let _=0;_<16;_++){const B=dn(t+Xv(m,i,a,s)+kr[E[_]]+v,y[_])+l|0;t=l,l=s,s=dn(a,10)|0,a=i,i=B}for(let _=0;_<16;_++){const B=dn(u+Xv(d,r,o,c)+kr[b[_]]+h,k[_])+f|0;u=f,f=c,c=dn(o,10)|0,o=r,r=B}}this.set(this.h1+a+c|0,this.h2+s+f|0,this.h3+l+u|0,this.h4+t+r|0,this.h0+i+o|0)}roundClean(){Ae(kr)}destroy(){this.destroyed=!0,Ae(this.buffer),this.set(0,0,0,0,0)}};Je(()=>new Sk);function Bk(e){const{source:n}=e,t=new Map,u=new pi(8192),i=new Map,r=({address:a,chainId:o})=>`${a}.${o}`;return{async consume({address:a,chainId:o,client:s}){const c=r({address:a,chainId:o}),l=this.get({address:a,chainId:o,client:s});this.increment({address:a,chainId:o});const f=await l;return await n.set({address:a,chainId:o},f),u.set(c,f),f},async increment({address:a,chainId:o}){const s=r({address:a,chainId:o}),c=t.get(s)??0;t.set(s,c+1)},async get({address:a,chainId:o,client:s}){const c=r({address:a,chainId:o});let l=i.get(c);return l||(l=(async()=>{try{const m=await n.get({address:a,chainId:o,client:s}),d=u.get(c)??0;return d>0&&m<=d?d+1:(u.delete(c),m)}finally{this.reset({address:a,chainId:o})}})(),i.set(c,l)),(t.get(c)??0)+await l},reset({address:a,chainId:o}){const s=r({address:a,chainId:o});t.delete(s),i.delete(s)}}}function Ak(){return{async get(e){const{address:n,client:t}=e;return fk(t,{address:n,blockTag:"pending"})},set(){}}}Bk({source:Ak()});function wk(e,n={}){const{as:t=typeof e=="string"?"Hex":"Bytes"}=n,u=Gv($b(e));return t==="Bytes"?u:Iv(u)}var _k=class extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){const n=super.get(e);return super.has(e)&&n!==void 0&&(this.delete(e),super.set(e,n)),n}set(e,n){if(super.set(e,n),this.maxSize&&this.size>this.maxSize){const t=this.keys().next().value;t&&this.delete(t)}return this}},Ck={checksum:new _k(8192)},Qs=Ck.checksum,$k=/^0x[a-fA-F0-9]{40}$/;function ep(e,n={}){const{strict:t=!0}=n;if(!$k.test(e))throw new np({address:e,cause:new Ik});if(t){if(e.toLowerCase()===e)return;if(xk(e)!==e)throw new np({address:e,cause:new Fk})}}function xk(e){if(Qs.has(e))return Qs.get(e);ep(e,{strict:!1});const n=e.substring(2).toLowerCase(),t=wk(Fb(n),{as:"Bytes"}),u=n.split("");for(let r=0;r<40;r+=2)t[r>>1]>>4>=8&&u[r]&&(u[r]=u[r].toUpperCase()),(t[r>>1]&15)>=8&&u[r+1]&&(u[r+1]=u[r+1].toUpperCase());const i=`0x${u.join("")}`;return Qs.set(e,i),i}var np=class extends Te{constructor({address:e,cause:n}){super(`Address "${e}" is invalid.`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}},Ik=class extends Te{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}},Fk=class extends Te{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}},Nk=/^(.*)\[([0-9]*)\]$/,Tk=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Ok=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function Hs(e,n){if(e.length!==n.length)throw new Uk({expectedLength:e.length,givenLength:n.length});const t=[];for(let u=0;u<e.length;u++){const i=e[u],r=n[u];t.push(Hs.encode(i,r))}return xv(...t)}(function(e){function n(t,u,i=!1){if(t==="address"){const s=u;return ep(s),hr(s.toLowerCase(),i?32:0)}if(t==="string")return jb(u);if(t==="bytes")return u;if(t==="bool")return hr(Pb(u),i?32:1);const r=t.match(Ok);if(r){const[s,c,l="256"]=r,f=Number.parseInt(l)/8;return Rb(u,{size:i?32:f,signed:c==="int"})}const a=t.match(Tk);if(a){const[s,c]=a;if(Number.parseInt(c)!==(u.length-2)/2)throw new zk({expectedSize:Number.parseInt(c),value:u});return js(u,i?32:0)}const o=t.match(Nk);if(o&&Array.isArray(u)){const[s,c]=o,l=[];for(let f=0;f<u.length;f++)l.push(n(c,u[f],!0));return l.length===0?"0x":xv(...l)}throw new Pk(t)}e.encode=n})(Hs||(Hs={}));var zk=class extends Te{constructor({expectedSize:e,value:n}){super(`Size of bytes "${n}" (bytes${Ls(n)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}},Uk=class extends Te{constructor({expectedLength:e,givenLength:n}){super(["ABI encoding parameters/values length mismatch.",`Expected length (parameters): ${e}`,`Given length (values): ${n}`].join(`
|
|
535
|
-
`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}},
|
|
478
|
+
*/var Vy="0.1.1";function qy(){return Vy}var Ne=class Js extends Error{constructor(n,t={}){const u=(()=>{if(t.cause instanceof Js){if(t.cause.details)return t.cause.details;if(t.cause.shortMessage)return t.cause.shortMessage}return t.cause&&"details"in t.cause&&typeof t.cause.details=="string"?t.cause.details:t.cause?.message?t.cause.message:t.details})(),i=t.cause instanceof Js&&t.cause.docsPath||t.docsPath,a=`https://oxlib.sh${i??""}`,o=[n||"An error occurred.",...t.metaMessages?["",...t.metaMessages]:[],...u||i?["",u?`Details: ${u}`:void 0,i?`See: ${a}`:void 0]:[]].filter(s=>typeof s=="string").join(`
|
|
479
|
+
`);super(o,t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:`ox@${qy()}`}),this.cause=t.cause,this.details=u,this.docs=a,this.docsPath=i,this.shortMessage=n}walk(n){return Y4(this,n)}};function Y4(e,n){return n?.(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause?Y4(e.cause,n):n?null:e}function My(e,n){if(nv(e)>n)throw new Xy({givenSize:nv(e),maxSize:n})}var nn={zero:48,nine:57,A:65,F:70,a:97,f:102};function X4(e){if(e>=nn.zero&&e<=nn.nine)return e-nn.zero;if(e>=nn.A&&e<=nn.F)return e-(nn.A-10);if(e>=nn.a&&e<=nn.f)return e-(nn.a-10)}function Gy(e,n={}){const{dir:t,size:u=32}=n;if(u===0)return e;if(e.length>u)throw new eb({size:e.length,targetSize:u,type:"Bytes"});const i=new Uint8Array(u);for(let r=0;r<u;r++){const a=t==="right";i[a?r:u-r-1]=e[a?r:e.length-r-1]}return i}function As(e,n){if(_s(e)>n)throw new ob({givenSize:_s(e),maxSize:n})}function ev(e,n={}){const{dir:t,size:u=32}=n;if(u===0)return e;const i=e.replace("0x","");if(i.length>u*2)throw new sb({size:Math.ceil(i.length/2),targetSize:u,type:"Hex"});return`0x${i[t==="right"?"padEnd":"padStart"](u*2,"0")}`}new TextDecoder;var Jy=new TextEncoder;function Hy(e){return e instanceof Uint8Array?e:typeof e=="string"?Qy(e):Ky(e)}function Ky(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function Qy(e,n={}){const{size:t}=n;let u=e;t&&(As(e,t),u=ws(e,t));let i=u.slice(2);i.length%2&&(i=`0${i}`);const r=i.length/2,a=new Uint8Array(r);for(let o=0,s=0;o<r;o++){const c=X4(i.charCodeAt(s++)),l=X4(i.charCodeAt(s++));if(c===void 0||l===void 0)throw new Ne(`Invalid byte sequence ("${i[s-2]}${i[s-1]}" in "${i}").`);a[o]=c*16+l}return a}function Wy(e,n={}){const{size:t}=n,u=Jy.encode(e);return typeof t=="number"?(My(u,t),Yy(u,t)):u}function Yy(e,n){return Gy(e,{dir:"right",size:n})}function nv(e){return e.length}var Xy=class extends Ne{constructor({givenSize:e,maxSize:n}){super(`Size cannot exceed \`${n}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeOverflowError"})}},eb=class extends Ne{constructor({size:e,targetSize:n,type:t}){super(`${t.charAt(0).toUpperCase()}${t.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeExceedsPaddingSizeError"})}},nb=new TextEncoder,tb=Array.from({length:256},(e,n)=>n.toString(16).padStart(2,"0"));function tv(...e){return`0x${e.reduce((n,t)=>n+t.replace("0x",""),"")}`}function ib(e,n={}){const t=`0x${Number(e)}`;return typeof n.size=="number"?(As(t,n.size),or(t,n.size)):t}function iv(e,n={}){let t="";for(let i=0;i<e.length;i++)t+=tb[e[i]];const u=`0x${t}`;return typeof n.size=="number"?(As(u,n.size),ws(u,n.size)):u}function ub(e,n={}){const{signed:t,size:u}=n,i=BigInt(e);let r;u?t?r=(1n<<BigInt(u)*8n-1n)-1n:r=2n**(BigInt(u)*8n)-1n:typeof e=="number"&&(r=BigInt(Number.MAX_SAFE_INTEGER));const a=typeof r=="bigint"&&t?-r-1n:0;if(r&&i>r||i<a){const c=typeof e=="bigint"?"n":"";throw new ab({max:r?`${r}${c}`:void 0,min:`${a}${c}`,signed:t,size:u,value:`${e}${c}`})}const s=`0x${(t&&i<0?(1n<<BigInt(u*8))+BigInt(i):i).toString(16)}`;return u?or(s,u):s}function rb(e,n={}){return iv(nb.encode(e),n)}function or(e,n){return ev(e,{dir:"left",size:n})}function ws(e,n){return ev(e,{dir:"right",size:n})}function _s(e){return Math.ceil((e.length-2)/2)}var ab=class extends Ne{constructor({max:e,min:n,signed:t,size:u,value:i}){super(`Number \`${i}\` is not in safe${u?` ${u*8}-bit`:""}${t?" signed":" unsigned"} integer range ${e?`(\`${n}\` to \`${e}\`)`:`(above \`${n}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}},ob=class extends Ne{constructor({givenSize:e,maxSize:n}){super(`Size cannot exceed \`${n}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}},sb=class extends Ne{constructor({size:e,targetSize:n,type:t}){super(`${t.charAt(0).toUpperCase()}${t.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}},uv="2.31.7",Cs={getDocsUrl:({docsBaseUrl:e,docsPath:n="",docsSlug:t})=>n?`${e??"https://viem.sh"}${n}${t?`#${t}`:""}`:void 0,version:`viem@${uv}`},sr=class Hs extends Error{constructor(n,t={}){const u=t.cause instanceof Hs?t.cause.details:t.cause?.message?t.cause.message:t.details,i=t.cause instanceof Hs&&t.cause.docsPath||t.docsPath,r=Cs.getDocsUrl?.({...t,docsPath:i}),a=[n||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...r?[`Docs: ${r}`]:[],...u?[`Details: ${u}`]:[],...Cs.version?[`Version: ${Cs.version}`]:[]].join(`
|
|
480
|
+
`);super(a,t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=u,this.docsPath=i,this.metaMessages=t.metaMessages,this.name=t.name??this.name,this.shortMessage=n,this.version=uv}walk(n){return rv(this,n)}};function rv(e,n){return n?.(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause!==void 0?rv(e.cause,n):n?null:e}function $s(e,{strict:n=!0}={}){return!e||typeof e!="string"?!1:n?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")}function av(e){return $s(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}var ov=class extends sr{constructor({size:e,targetSize:n,type:t}){super(`${t.charAt(0).toUpperCase()}${t.slice(1).toLowerCase()} size (${e}) exceeds padding size (${n}).`,{name:"SizeExceedsPaddingSizeError"})}};function cr(e,{dir:n,size:t=32}={}){return typeof e=="string"?cb(e,{dir:n,size:t}):lb(e,{dir:n,size:t})}function cb(e,{dir:n,size:t=32}={}){if(t===null)return e;const u=e.replace("0x","");if(u.length>t*2)throw new ov({size:Math.ceil(u.length/2),targetSize:t,type:"hex"});return`0x${u[n==="right"?"padEnd":"padStart"](t*2,"0")}`}function lb(e,{dir:n,size:t=32}={}){if(t===null)return e;if(e.length>t)throw new ov({size:e.length,targetSize:t,type:"bytes"});const u=new Uint8Array(t);for(let i=0;i<t;i++){const r=n==="right";u[r?i:t-i-1]=e[r?i:e.length-i-1]}return u}var db=class extends sr{constructor({max:e,min:n,signed:t,size:u,value:i}){super(`Number "${i}" is not in safe ${u?`${u*8}-bit ${t?"signed":"unsigned"} `:""}integer range ${e?`(${n} to ${e})`:`(above ${n})`}`,{name:"IntegerOutOfRangeError"})}},fb=class extends sr{constructor({givenSize:e,maxSize:n}){super(`Size cannot exceed ${n} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}};function lr(e,{size:n}){if(av(e)>n)throw new fb({givenSize:av(e),maxSize:n})}function mb(e,n={}){const{signed:t}=n;n.size&&lr(e,{size:n.size});const u=BigInt(e);if(!t)return u;const i=(e.length-2)/2,r=(1n<<BigInt(i)*8n-1n)-1n;return u<=r?u:u-BigInt(`0x${"f".padStart(i*2,"f")}`)-1n}function vb(e,n={}){return Number(mb(e,n))}Array.from({length:256},(e,n)=>n.toString(16).padStart(2,"0"));function xs(e,n={}){const{signed:t,size:u}=n,i=BigInt(e);let r;u?t?r=(1n<<BigInt(u)*8n-1n)-1n:r=2n**(BigInt(u)*8n)-1n:typeof e=="number"&&(r=BigInt(Number.MAX_SAFE_INTEGER));const a=typeof r=="bigint"&&t?-r-1n:0;if(r&&i>r||i<a){const s=typeof e=="bigint"?"n":"";throw new db({max:r?`${r}${s}`:void 0,min:`${a}${s}`,signed:t,size:u,value:`${e}${s}`})}const o=`0x${(t&&i<0?(1n<<BigInt(u*8))+BigInt(i):i).toString(16)}`;return u?cr(o,{size:u}):o}new TextEncoder;var pb=new TextEncoder;function hb(e,n={}){return typeof e=="number"||typeof e=="bigint"?Eb(e,n):typeof e=="boolean"?gb(e,n):$s(e)?cv(e,n):lv(e,n)}function gb(e,n={}){const t=new Uint8Array(1);return t[0]=Number(e),typeof n.size=="number"?(lr(t,{size:n.size}),cr(t,{size:n.size})):t}var tn={zero:48,nine:57,A:65,F:70,a:97,f:102};function sv(e){if(e>=tn.zero&&e<=tn.nine)return e-tn.zero;if(e>=tn.A&&e<=tn.F)return e-(tn.A-10);if(e>=tn.a&&e<=tn.f)return e-(tn.a-10)}function cv(e,n={}){let t=e;n.size&&(lr(t,{size:n.size}),t=cr(t,{dir:"right",size:n.size}));let u=t.slice(2);u.length%2&&(u=`0${u}`);const i=u.length/2,r=new Uint8Array(i);for(let a=0,o=0;a<i;a++){const s=sv(u.charCodeAt(o++)),c=sv(u.charCodeAt(o++));if(s===void 0||c===void 0)throw new sr(`Invalid byte sequence ("${u[o-2]}${u[o-1]}" in "${u}").`);r[a]=s*16+c}return r}function Eb(e,n){const t=xs(e,n);return cv(t)}function lv(e,n={}){const t=pb.encode(e);return typeof n.size=="number"?(lr(t,{size:n.size}),cr(t,{dir:"right",size:n.size})):t}var yb=BigInt(0),ci=BigInt(1),bb=BigInt(2),kb=BigInt(7),Db=BigInt(256),Sb=BigInt(113),dv=[],fv=[],mv=[];for(let e=0,n=ci,t=1,u=0;e<24;e++){[t,u]=[u,(2*t+3*u)%5],dv.push(2*(5*u+t)),fv.push((e+1)*(e+2)/2%64);let i=yb;for(let r=0;r<7;r++)n=(n<<ci^(n>>kb)*Sb)%Db,n&bb&&(i^=ci<<(ci<<BigInt(r))-ci);mv.push(i)}var vv=y4(mv,!0),Bb=vv[0],Ab=vv[1],pv=(e,n,t)=>t>32?ME(e,n,t):VE(e,n,t),hv=(e,n,t)=>t>32?GE(e,n,t):qE(e,n,t);function wb(e,n=24){const t=new Uint32Array(10);for(let u=24-n;u<24;u++){for(let a=0;a<10;a++)t[a]=e[a]^e[a+10]^e[a+20]^e[a+30]^e[a+40];for(let a=0;a<10;a+=2){const o=(a+8)%10,s=(a+2)%10,c=t[s],l=t[s+1],f=pv(c,l,1)^t[o],m=hv(c,l,1)^t[o+1];for(let d=0;d<50;d+=10)e[a+d]^=f,e[a+d+1]^=m}let i=e[2],r=e[3];for(let a=0;a<24;a++){const o=fv[a],s=pv(i,r,o),c=hv(i,r,o),l=dv[a];i=e[l],r=e[l+1],e[l]=s,e[l+1]=c}for(let a=0;a<50;a+=10){for(let o=0;o<10;o++)t[o]=e[a+o];for(let o=0;o<10;o++)e[a+o]^=~t[(o+2)%10]&t[(o+4)%10]}e[0]^=Bb[u],e[1]^=Ab[u]}Be(t)}var gv=class ip extends ls{constructor(n,t,u,i=!1,r=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=n,this.suffix=t,this.outputLen=u,this.enableXOF=i,this.rounds=r,ni(u),!(0<n&&n<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=NE(this.state)}clone(){return this._cloneInto()}keccak(){c4(this.state32),wb(this.state32,this.rounds),c4(this.state32),this.posOut=0,this.pos=0}update(n){ht(this),n=ii(n),fe(n);const{blockLen:t,state:u}=this,i=n.length;for(let r=0;r<i;){const a=Math.min(t-this.pos,i-r);for(let o=0;o<a;o++)u[this.pos++]^=n[r++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:n,suffix:t,pos:u,blockLen:i}=this;n[u]^=t,(t&128)!==0&&u===i-1&&this.keccak(),n[i-1]^=128,this.keccak()}writeInto(n){ht(this,!1),fe(n),this.finish();const t=this.state,{blockLen:u}=this;for(let i=0,r=n.length;i<r;){this.posOut>=u&&this.keccak();const a=Math.min(u-this.posOut,r-i);n.set(t.subarray(this.posOut,this.posOut+a),i),this.posOut+=a,i+=a}return n}xofInto(n){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(n)}xof(n){return ni(n),this.xofInto(new Uint8Array(n))}digestInto(n){if(s4(n,this),this.finished)throw new Error("digest() was already called");return this.writeInto(n),this.destroy(),n}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,Be(this.state)}_cloneInto(n){const{blockLen:t,suffix:u,outputLen:i,rounds:r,enableXOF:a}=this;return n||(n=new ip(t,u,i,a,r)),n.state32.set(this.state32),n.pos=this.pos,n.posOut=this.posOut,n.finished=this.finished,n.rounds=r,n.suffix=u,n.outputLen=i,n.enableXOF=a,n.destroyed=this.destroyed,n}},gn=(e,n,t)=>Ge(()=>new gv(n,e,t));gn(6,144,224/8),gn(6,136,256/8),gn(6,104,384/8),gn(6,72,512/8),gn(1,144,224/8);var Ev=gn(1,136,256/8);gn(1,104,384/8),gn(1,72,512/8);var yv=(e,n,t)=>PE((u={})=>new gv(n,e,u.dkLen===void 0?t:u.dkLen,!0));yv(31,168,128/8),yv(31,136,256/8);function _b(e,n){return Ev($s(e,{strict:!1})?hb(e):e)}var li=class extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){const n=super.get(e);return super.has(e)&&n!==void 0&&(this.delete(e),super.set(e,n)),n}set(e,n){if(super.set(e,n),this.maxSize&&this.size>this.maxSize){const t=this.keys().next().value;t&&this.delete(t)}return this}},Cb=/^0x[a-fA-F0-9]{40}$/,Is=new li(8192);function $b(e,n){const{strict:t=!0}={},u=`${e}.${t}`;if(Is.has(u))return Is.get(u);const i=Cb.test(e)?e.toLowerCase()===e?!0:t?xb(e)===e:!0:!1;return Is.set(u,i),i}var Fs=new li(8192);function xb(e,n){if(Fs.has(`${e}.${n}`))return Fs.get(`${e}.${n}`);const t=e.substring(2).toLowerCase(),u=_b(lv(t)),i=t.split("");for(let a=0;a<40;a+=2)u[a>>1]>>4>=8&&i[a]&&(i[a]=i[a].toUpperCase()),(u[a>>1]&15)>=8&&i[a+1]&&(i[a+1]=i[a+1].toUpperCase());const r=`0x${i.join("")}`;return Fs.set(`${e}.${n}`,r),r}async function Ib(e,{address:n,blockTag:t="latest",blockNumber:u}){const i=await e.request({method:"eth_getTransactionCount",params:[n,typeof u=="bigint"?xs(u):t]},{dedupe:!!u});return vb(i)}new li(128),xs(0,{size:32}),new li(8192);var Dt=Uint32Array.from([1732584193,4023233417,2562383102,271733878,3285377520]),En=new Uint32Array(80),Fb=class extends ri{constructor(){super(64,20,8,!1),this.A=Dt[0]|0,this.B=Dt[1]|0,this.C=Dt[2]|0,this.D=Dt[3]|0,this.E=Dt[4]|0}get(){const{A:e,B:n,C:t,D:u,E:i}=this;return[e,n,t,u,i]}set(e,n,t,u,i){this.A=e|0,this.B=n|0,this.C=t|0,this.D=u|0,this.E=i|0}process(e,n){for(let o=0;o<16;o++,n+=4)En[o]=e.getUint32(n,!1);for(let o=16;o<80;o++)En[o]=cn(En[o-3]^En[o-8]^En[o-14]^En[o-16],1);let{A:t,B:u,C:i,D:r,E:a}=this;for(let o=0;o<80;o++){let s,c;o<20?(s=Yu(u,i,r),c=1518500249):o<40?(s=u^i^r,c=1859775393):o<60?(s=D4(u,i,r),c=2400959708):(s=u^i^r,c=3395469782);const l=cn(t,5)+s+a+c+En[o]|0;a=r,r=i,i=cn(u,30),u=t,t=l}t=t+this.A|0,u=u+this.B|0,i=i+this.C|0,r=r+this.D|0,a=a+this.E|0,this.set(t,u,i,r,a)}roundClean(){Be(En)}destroy(){this.set(0,0,0,0,0),Be(this.buffer)}};Ge(()=>new Fb);var Nb=Math.pow(2,32),Tb=Array.from({length:64},(e,n)=>Math.floor(Nb*Math.abs(Math.sin(n+1)))),dr=Dt.slice(0,4),Ns=new Uint32Array(16),Ob=class extends ri{constructor(){super(64,16,8,!0),this.A=dr[0]|0,this.B=dr[1]|0,this.C=dr[2]|0,this.D=dr[3]|0}get(){const{A:e,B:n,C:t,D:u}=this;return[e,n,t,u]}set(e,n,t,u){this.A=e|0,this.B=n|0,this.C=t|0,this.D=u|0}process(e,n){for(let a=0;a<16;a++,n+=4)Ns[a]=e.getUint32(n,!0);let{A:t,B:u,C:i,D:r}=this;for(let a=0;a<64;a++){let o,s,c;a<16?(o=Yu(u,i,r),s=a,c=[7,12,17,22]):a<32?(o=Yu(r,u,i),s=(5*a+1)%16,c=[5,9,14,20]):a<48?(o=u^i^r,s=(3*a+5)%16,c=[4,11,16,23]):(o=i^(u|~r),s=7*a%16,c=[6,10,15,21]),o=o+t+Tb[a]+Ns[s],t=r,r=i,i=u,u=u+cn(o,c[a%4])}t=t+this.A|0,u=u+this.B|0,i=i+this.C|0,r=r+this.D|0,this.set(t,u,i,r)}roundClean(){Be(Ns)}destroy(){this.set(0,0,0,0),Be(this.buffer)}};Ge(()=>new Ob);var zb=Uint8Array.from([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),bv=Uint8Array.from(new Array(16).fill(0).map((e,n)=>n)),Ub=bv.map(e=>(9*e+5)%16),kv=(()=>{const t=[[bv],[Ub]];for(let u=0;u<4;u++)for(let i of t)i.push(i[u].map(r=>zb[r]));return t})(),Dv=kv[0],Sv=kv[1],Bv=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(e=>Uint8Array.from(e)),Pb=Dv.map((e,n)=>e.map(t=>Bv[n][t])),Rb=Sv.map((e,n)=>e.map(t=>Bv[n][t])),jb=Uint32Array.from([0,1518500249,1859775393,2400959708,2840853838]),Lb=Uint32Array.from([1352829926,1548603684,1836072691,2053994217,0]);function Av(e,n,t,u){return e===0?n^t^u:e===1?n&t|~n&u:e===2?(n|~t)^u:e===3?n&u|t&~u:n^(t|~u)}var fr=new Uint32Array(16),Zb=class extends ri{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:n,h2:t,h3:u,h4:i}=this;return[e,n,t,u,i]}set(e,n,t,u,i){this.h0=e|0,this.h1=n|0,this.h2=t|0,this.h3=u|0,this.h4=i|0}process(e,n){for(let m=0;m<16;m++,n+=4)fr[m]=e.getUint32(n,!0);let t=this.h0|0,u=t,i=this.h1|0,r=i,a=this.h2|0,o=a,s=this.h3|0,c=s,l=this.h4|0,f=l;for(let m=0;m<5;m++){const d=4-m,v=jb[m],h=Lb[m],E=Dv[m],b=Sv[m],y=Pb[m],k=Rb[m];for(let _=0;_<16;_++){const B=cn(t+Av(m,i,a,s)+fr[E[_]]+v,y[_])+l|0;t=l,l=s,s=cn(a,10)|0,a=i,i=B}for(let _=0;_<16;_++){const B=cn(u+Av(d,r,o,c)+fr[b[_]]+h,k[_])+f|0;u=f,f=c,c=cn(o,10)|0,o=r,r=B}}this.set(this.h1+a+c|0,this.h2+s+f|0,this.h3+l+u|0,this.h4+t+r|0,this.h0+i+o|0)}roundClean(){Be(fr)}destroy(){this.destroyed=!0,Be(this.buffer),this.set(0,0,0,0,0)}};Ge(()=>new Zb);function Vb(e){const{source:n}=e,t=new Map,u=new li(8192),i=new Map,r=({address:a,chainId:o})=>`${a}.${o}`;return{async consume({address:a,chainId:o,client:s}){const c=r({address:a,chainId:o}),l=this.get({address:a,chainId:o,client:s});this.increment({address:a,chainId:o});const f=await l;return await n.set({address:a,chainId:o},f),u.set(c,f),f},async increment({address:a,chainId:o}){const s=r({address:a,chainId:o}),c=t.get(s)??0;t.set(s,c+1)},async get({address:a,chainId:o,client:s}){const c=r({address:a,chainId:o});let l=i.get(c);return l||(l=(async()=>{try{const m=await n.get({address:a,chainId:o,client:s}),d=u.get(c)??0;return d>0&&m<=d?d+1:(u.delete(c),m)}finally{this.reset({address:a,chainId:o})}})(),i.set(c,l)),(t.get(c)??0)+await l},reset({address:a,chainId:o}){const s=r({address:a,chainId:o});t.delete(s),i.delete(s)}}}function qb(){return{async get(e){const{address:n,client:t}=e;return Ib(t,{address:n,blockTag:"pending"})},set(){}}}Vb({source:qb()});function Mb(e,n={}){const{as:t=typeof e=="string"?"Hex":"Bytes"}=n,u=Ev(Hy(e));return t==="Bytes"?u:iv(u)}var Gb=class extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){const n=super.get(e);return super.has(e)&&n!==void 0&&(this.delete(e),super.set(e,n)),n}set(e,n){if(super.set(e,n),this.maxSize&&this.size>this.maxSize){const t=this.keys().next().value;t&&this.delete(t)}return this}},Jb={checksum:new Gb(8192)},Ts=Jb.checksum,Hb=/^0x[a-fA-F0-9]{40}$/;function wv(e,n={}){const{strict:t=!0}=n;if(!Hb.test(e))throw new _v({address:e,cause:new Qb});if(t){if(e.toLowerCase()===e)return;if(Kb(e)!==e)throw new _v({address:e,cause:new Wb})}}function Kb(e){if(Ts.has(e))return Ts.get(e);wv(e,{strict:!1});const n=e.substring(2).toLowerCase(),t=Mb(Wy(n),{as:"Bytes"}),u=n.split("");for(let r=0;r<40;r+=2)t[r>>1]>>4>=8&&u[r]&&(u[r]=u[r].toUpperCase()),(t[r>>1]&15)>=8&&u[r+1]&&(u[r+1]=u[r+1].toUpperCase());const i=`0x${u.join("")}`;return Ts.set(e,i),i}var _v=class extends Ne{constructor({address:e,cause:n}){super(`Address "${e}" is invalid.`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}},Qb=class extends Ne{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}},Wb=class extends Ne{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}},Yb=/^(.*)\[([0-9]*)\]$/,Xb=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,ek=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function Os(e,n){if(e.length!==n.length)throw new tk({expectedLength:e.length,givenLength:n.length});const t=[];for(let u=0;u<e.length;u++){const i=e[u],r=n[u];t.push(Os.encode(i,r))}return tv(...t)}(function(e){function n(t,u,i=!1){if(t==="address"){const s=u;return wv(s),or(s.toLowerCase(),i?32:0)}if(t==="string")return rb(u);if(t==="bytes")return u;if(t==="bool")return or(ib(u),i?32:1);const r=t.match(ek);if(r){const[s,c,l="256"]=r,f=Number.parseInt(l)/8;return ub(u,{size:i?32:f,signed:c==="int"})}const a=t.match(Xb);if(a){const[s,c]=a;if(Number.parseInt(c)!==(u.length-2)/2)throw new nk({expectedSize:Number.parseInt(c),value:u});return ws(u,i?32:0)}const o=t.match(Yb);if(o&&Array.isArray(u)){const[s,c]=o,l=[];for(let f=0;f<u.length;f++)l.push(n(c,u[f],!0));return l.length===0?"0x":tv(...l)}throw new ik(t)}e.encode=n})(Os||(Os={}));var nk=class extends Ne{constructor({expectedSize:e,value:n}){super(`Size of bytes "${n}" (bytes${_s(n)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}},tk=class extends Ne{constructor({expectedLength:e,givenLength:n}){super(["ABI encoding parameters/values length mismatch.",`Expected length (parameters): ${e}`,`Given length (values): ${n}`].join(`
|
|
481
|
+
`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}},ik=class extends Ne{constructor(e){super(`Type \`${e}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}};function uk(e){if(!/^0[xX][0-9a-fA-F]{40}$/.test(e))return!1;const n="0x"+e.slice(2),t=n.slice(2);return t===t.toLowerCase()||t===t.toUpperCase()?!0:$b(n)}function Cv(e){try{return new Qs.PublicKey(e),!0}catch{return!1}}const $v=e=>Math.round((e+Number.EPSILON)*100)/100;function rk(e){const n=e.replace(/^data:\w+\/\w+;base64,/,""),t=Buffer.from(n,"base64");return new Uint8Array(t)}class ak{client;constructor(n){this.client=n}async create(n){return(await this.client.query({query:vt,variables:{createDirectPaymentInput:{...n,amount:n.amount}}}))?.createDirectPayment}async getWeb3PaymentParams(n){if(!uk(n.paymentTokenAddress))throw new Error("Invalid token address");return(await this.client.query({query:Lu,variables:{amount:$v(n.paymentRequest.amountDue),network:n.paymentRequest.network,tokenAddress:n.paymentTokenAddress,reference:n.paymentRequest.id}}))?.spritzPayParams}async getSolanaPaymentParams(n){if(!Cv(n.paymentTokenAddress))throw new Error(`Invalid token address: ${n.paymentTokenAddress}`);if(!Cv(n.signer))throw new Error(`Invalid signer: ${n.signer}`);const t=await this.client.query({query:Ru,variables:{amount:$v(n.paymentRequest.amountDue),tokenAddress:n.paymentTokenAddress,reference:n.paymentRequest.id,signer:n.signer}});return{versionedTransaction:Qs.VersionedTransaction.deserialize(rk(t?.solanaParams?.transactionSerialized??"")),transactionSerialized:t?.solanaParams?.transactionSerialized}}}var St={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"VerificationFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Verification"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"identity"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"canRetry"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"verificationUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"verificationMetadata"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"failureReason"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"details"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"matchedEmail"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:286}};St.loc.source={body:`fragment VerificationFragment on Verification {
|
|
536
482
|
userId
|
|
537
483
|
identity {
|
|
538
484
|
canRetry
|
|
@@ -547,14 +493,14 @@ mutation CreatePaymentRequest($createDirectPaymentInput: CreateDirectPaymentInpu
|
|
|
547
493
|
}
|
|
548
494
|
}
|
|
549
495
|
}
|
|
550
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function
|
|
496
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function mr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){mr(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){mr(u,n)}),e.definitions&&e.definitions.forEach(function(u){mr(u,n)})}var zs={};(function(){St.definitions.forEach(function(n){if(n.name){var t=new Set;mr(n,t),zs[n.name.value]=t}})})();function xv(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function ok(e,n){var t={kind:e.kind,definitions:[xv(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=zs[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=zs[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=xv(e,o);s&&t.definitions.push(s)}),t}ok(St,"VerificationFragment");var Bt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RetryFailedVerification"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"retryFailedVerification"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VerificationFragment"},directives:[]}]}}]}}],loc:{start:0,end:156}};Bt.loc.source={body:`#import "../queries/verificationFragment.graphql"
|
|
551
497
|
|
|
552
498
|
mutation RetryFailedVerification {
|
|
553
499
|
retryFailedVerification {
|
|
554
500
|
...VerificationFragment
|
|
555
501
|
}
|
|
556
502
|
}
|
|
557
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var
|
|
503
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Iv={};function sk(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Iv[t]?!1:(Iv[t]=!0,!0)})}Bt.definitions=Bt.definitions.concat(sk(St.definitions));function vr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){vr(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){vr(u,n)}),e.definitions&&e.definitions.forEach(function(u){vr(u,n)})}var Us={};(function(){Bt.definitions.forEach(function(n){if(n.name){var t=new Set;vr(n,t),Us[n.name.value]=t}})})();function Fv(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function ck(e,n){var t={kind:e.kind,definitions:[Fv(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=Us[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Us[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=Fv(e,o);s&&t.definitions.push(s)}),t}ck(Bt,"RetryFailedVerification");var pr={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"GetVerificationParams"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getVerificationParams"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"inquiryId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"verificationUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sessionToken"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"verificationUrlExpiresAt"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:165}};pr.loc.source={body:`mutation GetVerificationParams {
|
|
558
504
|
getVerificationParams {
|
|
559
505
|
inquiryId
|
|
560
506
|
verificationUrl
|
|
@@ -562,7 +508,7 @@ mutation RetryFailedVerification {
|
|
|
562
508
|
verificationUrlExpiresAt
|
|
563
509
|
}
|
|
564
510
|
}
|
|
565
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function
|
|
511
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function hr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){hr(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){hr(u,n)}),e.definitions&&e.definitions.forEach(function(u){hr(u,n)})}var Ps={};(function(){pr.definitions.forEach(function(n){if(n.name){var t=new Set;hr(n,t),Ps[n.name.value]=t}})})();function Nv(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function lk(e,n){var t={kind:e.kind,definitions:[Nv(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=Ps[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Ps[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=Nv(e,o);s&&t.definitions.push(s)}),t}lk(pr,"GetVerificationParams");var di={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"UserFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"firstName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"timezone"},arguments:[],directives:[]}]}}],loc:{start:0,end:105}};di.loc.source={body:`fragment UserFragment on User {
|
|
566
512
|
id
|
|
567
513
|
email
|
|
568
514
|
firstName
|
|
@@ -570,7 +516,7 @@ mutation RetryFailedVerification {
|
|
|
570
516
|
createdAt
|
|
571
517
|
timezone
|
|
572
518
|
}
|
|
573
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function
|
|
519
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function gr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){gr(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){gr(u,n)}),e.definitions&&e.definitions.forEach(function(u){gr(u,n)})}var Rs={};(function(){di.definitions.forEach(function(n){if(n.name){var t=new Set;gr(n,t),Rs[n.name.value]=t}})})();function Tv(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function dk(e,n){var t={kind:e.kind,definitions:[Tv(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=Rs[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Rs[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=Tv(e,o);s&&t.definitions.push(s)}),t}dk(di,"UserFragment");var yn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"CurrentUser"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"me"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"UserFragment"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"verification"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VerificationFragment"},directives:[]}]}}]}}],loc:{start:0,end:193}};yn.loc.source={body:`#import "./userFragment.graphql"
|
|
574
520
|
#import "./verificationFragment.graphql"
|
|
575
521
|
|
|
576
522
|
query CurrentUser {
|
|
@@ -581,7 +527,7 @@ query CurrentUser {
|
|
|
581
527
|
...VerificationFragment
|
|
582
528
|
}
|
|
583
529
|
}
|
|
584
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var
|
|
530
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Ov={};function zv(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Ov[t]?!1:(Ov[t]=!0,!0)})}yn.definitions=yn.definitions.concat(zv(di.definitions)),yn.definitions=yn.definitions.concat(zv(St.definitions));function Er(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){Er(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){Er(u,n)}),e.definitions&&e.definitions.forEach(function(u){Er(u,n)})}var js={};(function(){yn.definitions.forEach(function(n){if(n.name){var t=new Set;Er(n,t),js[n.name.value]=t}})})();function Uv(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function fk(e,n){var t={kind:e.kind,definitions:[Uv(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=js[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=js[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=Uv(e,o);s&&t.definitions.push(s)}),t}fk(yn,"CurrentUser");var bn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"UserAccess"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"me"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"UserFragment"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"verification"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VerificationFragment"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"bridgeUser"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"kycStatus"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tosLink"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tosStatus"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"signedAgreementId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"error"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasAcceptedTos"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:356}};bn.loc.source={body:`#import "./userFragment.graphql"
|
|
585
531
|
#import "./verificationFragment.graphql"
|
|
586
532
|
|
|
587
533
|
query UserAccess {
|
|
@@ -602,7 +548,7 @@ query UserAccess {
|
|
|
602
548
|
hasAcceptedTos
|
|
603
549
|
}
|
|
604
550
|
}
|
|
605
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var fp={};function mp(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return fp[t]?!1:(fp[t]=!0,!0)})}Dn.definitions=Dn.definitions.concat(mp(hi.definitions)),Dn.definitions=Dn.definitions.concat(mp($t.definitions));function Cr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){Cr(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){Cr(u,n)}),e.definitions&&e.definitions.forEach(function(u){Cr(u,n)})}var nc={};(function(){Dn.definitions.forEach(function(n){if(n.name){var t=new Set;Cr(n,t),nc[n.name.value]=t}})})();function vp(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function Qk(e,n){var t={kind:e.kind,definitions:[vp(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=nc[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=nc[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=vp(e,o);s&&t.definitions.push(s)}),t}Qk(Dn,"UserAccess");var rn=(e=>(e.NotStarted="not_started",e.Pending="pending",e.Completed="completed",e.Failed="failed",e))(rn||{}),Oe=(e=>(e.IdentityVerification="identity_verification",e.TermsAcceptance="terms_acceptance",e.AdditionalVerification="additional_verification",e.RegionalCompliance="regional_compliance",e.RiskEvaluation="risk_evaluation",e.DocumentSubmission="document_submission",e))(Oe||{}),$r=(e=>(e.AchPurchase="ach_purchase",e.WirePurchase="wire_purchase",e))($r||{}),gi=(e=>(e.UsBankAccount="us_bank_account",e.UsBills="us_bills",e.UsDebitCard="us_debit_card",e.IbanTransfer="iban_transfer",e.UkBankAccount="uk_bank_account",e.CaBankAccount="ca_bank_account",e))(gi||{}),pp=(e=>(e.UsVirtualCard="us_virtual_card",e.UsPhysicalCard="us_physical_card",e))(pp||{}),Hk=(e=>(e.VerifySms="verify_sms",e.DocumentVerification="documentary_verification",e.RiskCheck="risk_check",e.KycCheck="kyc_check",e.WatchlistScreening="watchlist_screening",e.SelfieCheck="selfie_check",e.AddressInvalid="address_invalid",e.DuplicateIdentity="duplicate_identity",e))(Hk||{}),It=(e=>(e.NotStarted="not_started",e.Verified="verified",e.Failed="failed",e.Disabled="disabled",e))(It||{});function Kk(e=rt.INITIALIZED){switch(e){case rt.FAILED:return"failed";case rt.ACTIVE:return"verified";case rt.DISABLED:return"disabled";case rt.RETRY:return"failed";default:return"not_started"}}function hp(e){const n=e?.me??null;if(!n)return null;const t=e?.verification??null,u=t?.identity?.verificationMetadata??null,i=u?.details?.matchedEmail??null,r=u?.failureReason?{failureReason:u.failureReason,details:{matchedEmail:i}}:null;return{...n,verificationStatus:Kk(t?.identity?.status),verificationUrl:t?.identity?.verificationUrl??null,verifiedCountry:t?.identity?.country??null,canRetryVerification:t?.identity?.canRetry??!1,verificationMetadata:r}}function Wk(e,n){return{verified:e===It.Verified,country:n??null}}function Yk({verificationUrl:e,verificationStatus:n,retryable:t}){if(n!==It.Verified)return n===It.Failed?{type:Oe.IdentityVerification,description:"Identity verification failed. Please retry verification.",retryable:t,status:rn.Failed}:n===It.NotStarted?{type:Oe.IdentityVerification,description:"Verify your identity to unlock features",actionUrl:e,status:rn.NotStarted}:{type:Oe.IdentityVerification,description:"Identity verification pending review",status:rn.Pending}}function Xk(e){try{const n=new URL(e);return n.searchParams.delete("redirect_uri"),n.toString()}catch{return e}}function eD(e,n){if(!e&&n)return{type:Oe.TermsAcceptance,description:"Please review and accept the terms of service",actionUrl:Xk(n),status:rn.NotStarted}}function nD(e){if(!e)return{type:Oe.IdentityVerification,status:rn.NotStarted};if(!(e.status==="active"||e.status==="approved"))return e.status==="rejected"||e.status==="failed"?{type:Oe.IdentityVerification,status:rn.Failed}:e.status==="pending"||e.status==="in_review"?{type:Oe.IdentityVerification,status:rn.Pending}:{type:Oe.IdentityVerification,status:rn.NotStarted}}function tD(e){if(!e)return[];if(!["US"].includes(e.toUpperCase()))return[];const n=[];return e.toUpperCase()==="US"&&n.push($r.AchPurchase,$r.WirePurchase),n}const iD={US:[gi.UsBankAccount,gi.UsDebitCard],CA:[gi.CaBankAccount]};function uD(e){return e?iD[e.toUpperCase()]??[]:[]}function rD(e){if(!e.verified)return{active:!1,features:[],requirements:[]};const n=uD(e.country??null);return{active:n.length>0,features:n,requirements:[]}}function aD(e,n){const t=tD(e.country??null);if(!e.verified)return{active:!1,features:[],requirements:[]};const u=[],i=eD(n?.hasAcceptedTos??!1,n?.tosLink);i&&u.push(i);const r=nD(n);if(r&&u.push(r),t.length===0)return{active:!1,features:[],requirements:u};const a={active:u.length===0,features:u.length===0?t:[],requirements:u};return i?a.nextRequirement=Oe.TermsAcceptance:r&&(a.nextRequirement=Oe.IdentityVerification),a}function oD(e,n,t){const u=e?.bridgeUser,i=e?.verification?.identity?.canRetry??!1,r=e?.verification?.identity?.verificationUrl??null,a=Wk(n,t),o=Yk({verificationStatus:n,retryable:i,verificationUrl:r}),s={onramp:aD(a,u),offramp:rD(a)};return{kycStatus:a,...o&&{kycRequirement:o},capabilities:s}}class sD{client;constructor(n){this.client=n}async createUser(n){return this.client.request({method:"post",path:"/users/integration",body:n})}async create(n){return this.createUser(n)}async requestApiKey(n){return this.client.request({method:"post",path:"/users/request-key",body:{email:n}})}async authorizeApiKeyWithOTP(n){return this.client.request({method:"post",path:"/users/validate-key",body:n})}async getCurrentUser(){const n=await this.client.query({query:kn});return hp(n)}async retryFailedVerification(){return await this.client.query({query:xt}),this.getCurrentUser()}async getVerificationParams(){return(await this.client.query({query:Br})).getVerificationParams}async getUserAccess(){const n=await this.client.query({query:Dn}),t=hp(n),u=t?.verificationStatus??It.NotStarted,i=t?.verifiedCountry??null;return oD(n,u,i)}}var Ei={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"VirtualDebitCardFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"VirtualCard"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mask"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"balance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"renderSecret"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"virtualCardType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"billingInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"holder"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"phone"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"street"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"street2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"city"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"subdivision"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"postalCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"countryCode"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"paymentAddresses"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"network"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:469}};Ei.loc.source={body:`fragment VirtualDebitCardFragment on VirtualCard {
|
|
551
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Pv={};function Rv(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Pv[t]?!1:(Pv[t]=!0,!0)})}bn.definitions=bn.definitions.concat(Rv(di.definitions)),bn.definitions=bn.definitions.concat(Rv(St.definitions));function yr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){yr(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){yr(u,n)}),e.definitions&&e.definitions.forEach(function(u){yr(u,n)})}var Ls={};(function(){bn.definitions.forEach(function(n){if(n.name){var t=new Set;yr(n,t),Ls[n.name.value]=t}})})();function jv(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function mk(e,n){var t={kind:e.kind,definitions:[jv(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=Ls[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Ls[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=jv(e,o);s&&t.definitions.push(s)}),t}mk(bn,"UserAccess");var un=(e=>(e.NotStarted="not_started",e.Pending="pending",e.Completed="completed",e.Failed="failed",e))(un||{}),Te=(e=>(e.IdentityVerification="identity_verification",e.TermsAcceptance="terms_acceptance",e.AdditionalVerification="additional_verification",e.RegionalCompliance="regional_compliance",e.RiskEvaluation="risk_evaluation",e.DocumentSubmission="document_submission",e))(Te||{}),br=(e=>(e.AchPurchase="ach_purchase",e.WirePurchase="wire_purchase",e))(br||{}),fi=(e=>(e.UsBankAccount="us_bank_account",e.UsBills="us_bills",e.UsDebitCard="us_debit_card",e.IbanTransfer="iban_transfer",e.UkBankAccount="uk_bank_account",e.CaBankAccount="ca_bank_account",e))(fi||{}),Lv=(e=>(e.UsVirtualCard="us_virtual_card",e.UsPhysicalCard="us_physical_card",e))(Lv||{}),vk=(e=>(e.Active="Active",e.Error="Error",e.Syncing="Syncing",e.Unavailable="Unavailable",e))(vk||{}),Zv=(e=>(e.AMOUNT_RECEIVED="AMOUNT_RECEIVED",e.TOTAL_AMOUNT="TOTAL_AMOUNT",e))(Zv||{}),Vv=(e=>(e.Business="Business",e.Checking="Checking",e.Savings="Savings",e))(Vv||{}),qv=(e=>(e.CABankAccount="CABankAccount",e.IbanAccount="IbanAccount",e.UKBankAccount="UKBankAccount",e.USBankAccount="USBankAccount",e))(qv||{}),Mv=(e=>(e.AutoLoan="AutoLoan",e.CreditCard="CreditCard",e.Loan="Loan",e.MobilePhone="MobilePhone",e.Mortgage="Mortgage",e.StudentLoan="StudentLoan",e.Unknown="Unknown",e.Utility="Utility",e))(Mv||{}),Gv=(e=>(e.Mastercard="Mastercard",e.Visa="Visa",e))(Gv||{}),Jv=(e=>(e.COMPLETED="COMPLETED",e.CONFIRMED="CONFIRMED",e.CREATED="CREATED",e.FAILED="FAILED",e.FAILED_VALIDATION="FAILED_VALIDATION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.PENDING="PENDING",e.REFUNDED="REFUNDED",e.TRANSACTION_FAILED="TRANSACTION_FAILED",e.TRANSACTION_PENDING="TRANSACTION_PENDING",e))(Jv||{}),At=(e=>(e.ACTIVE="ACTIVE",e.DISABLED="DISABLED",e.FAILED="FAILED",e.INITIALIZED="INITIALIZED",e.LOADING="LOADING",e.RETRY="RETRY",e.UNAVAILABLE="UNAVAILABLE",e.UNDER_REVIEW="UNDER_REVIEW",e.UNINITIALIZED="UNINITIALIZED",e))(At||{}),pk=(e=>(e.AWAITING_FUNDS="AWAITING_FUNDS",e.CANCELLED="CANCELLED",e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.ON_HOLD="ON_HOLD",e.PENDING="PENDING",e.REFUNDED="REFUNDED",e.REVERSED="REVERSED",e))(pk||{}),hk=(e=>(e.Provider="Provider",e.User="User",e))(hk||{}),Hv=(e=>(e.BankAccount="BankAccount",e.Bill="Bill",e.DebitCard="DebitCard",e.DigitalAccount="DigitalAccount",e.OneTimePayment="OneTimePayment",e.VirtualCard="VirtualCard",e))(Hv||{}),Kv=(e=>(e.INSTANT="INSTANT",e.SAME_DAY="SAME_DAY",e.STANDARD="STANDARD",e))(Kv||{}),Qv=(e=>(e.CANCELLED="CANCELLED",e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.INITIALIZED="INITIALIZED",e.PENDING="PENDING",e.REFUNDED="REFUNDED",e.REVERSAL_IN_PROGRESS="REVERSAL_IN_PROGRESS",e.REVERSED="REVERSED",e.SCHEDULED="SCHEDULED",e.SENT="SENT",e))(Qv||{}),Zs=(e=>(e.USPhysicalDebitCard="USPhysicalDebitCard",e.USVirtualDebitCard="USVirtualDebitCard",e))(Zs||{}),gk=(e=>(e.VerifySms="verify_sms",e.DocumentVerification="documentary_verification",e.RiskCheck="risk_check",e.KycCheck="kyc_check",e.WatchlistScreening="watchlist_screening",e.SelfieCheck="selfie_check",e.AddressInvalid="address_invalid",e.DuplicateIdentity="duplicate_identity",e))(gk||{}),wt=(e=>(e.NotStarted="not_started",e.Verified="verified",e.Failed="failed",e.Disabled="disabled",e))(wt||{});function Ek(e=At.INITIALIZED){switch(e){case At.FAILED:return"failed";case At.ACTIVE:return"verified";case At.DISABLED:return"disabled";case At.RETRY:return"failed";default:return"not_started"}}function Wv(e){const n=e?.me??null;if(!n)return null;const t=e?.verification??null,u=t?.identity?.verificationMetadata??null,i=u?.details?.matchedEmail??null,r=u?.failureReason?{failureReason:u.failureReason,details:{matchedEmail:i}}:null;return{...n,verificationStatus:Ek(t?.identity?.status),verificationUrl:t?.identity?.verificationUrl??null,verifiedCountry:t?.identity?.country??null,canRetryVerification:t?.identity?.canRetry??!1,verificationMetadata:r}}function yk(e,n){return{verified:e===wt.Verified,country:n??null}}function bk({verificationUrl:e,verificationStatus:n,retryable:t}){if(n!==wt.Verified)return n===wt.Failed?{type:Te.IdentityVerification,description:"Identity verification failed. Please retry verification.",retryable:t,status:un.Failed}:n===wt.NotStarted?{type:Te.IdentityVerification,description:"Verify your identity to unlock features",actionUrl:e,status:un.NotStarted}:{type:Te.IdentityVerification,description:"Identity verification pending review",status:un.Pending}}function kk(e){try{const n=new URL(e);return n.searchParams.delete("redirect_uri"),n.toString()}catch{return e}}function Dk(e,n){if(!e&&n)return{type:Te.TermsAcceptance,description:"Please review and accept the terms of service",actionUrl:kk(n),status:un.NotStarted}}function Sk(e){if(!e)return{type:Te.IdentityVerification,status:un.NotStarted};if(!(e.status==="active"||e.status==="approved"))return e.status==="rejected"||e.status==="failed"?{type:Te.IdentityVerification,status:un.Failed}:e.status==="pending"||e.status==="in_review"?{type:Te.IdentityVerification,status:un.Pending}:{type:Te.IdentityVerification,status:un.NotStarted}}function Bk(e){if(!e)return[];if(!["US"].includes(e.toUpperCase()))return[];const n=[];return e.toUpperCase()==="US"&&n.push(br.AchPurchase,br.WirePurchase),n}const Ak={US:[fi.UsBankAccount,fi.UsDebitCard],CA:[fi.CaBankAccount]};function wk(e){return e?Ak[e.toUpperCase()]??[]:[]}function _k(e){if(!e.verified)return{active:!1,features:[],requirements:[]};const n=wk(e.country??null);return{active:n.length>0,features:n,requirements:[]}}function Ck(e,n){const t=Bk(e.country??null);if(!e.verified)return{active:!1,features:[],requirements:[]};const u=[],i=Dk(n?.hasAcceptedTos??!1,n?.tosLink);i&&u.push(i);const r=Sk(n);if(r&&u.push(r),t.length===0)return{active:!1,features:[],requirements:u};const a={active:u.length===0,features:u.length===0?t:[],requirements:u};return i?a.nextRequirement=Te.TermsAcceptance:r&&(a.nextRequirement=Te.IdentityVerification),a}function $k(e,n,t){const u=e?.bridgeUser,i=e?.verification?.identity?.canRetry??!1,r=e?.verification?.identity?.verificationUrl??null,a=yk(n,t),o=bk({verificationStatus:n,retryable:i,verificationUrl:r}),s={onramp:Ck(a,u),offramp:_k(a)};return{kycStatus:a,...o&&{kycRequirement:o},capabilities:s}}class xk{client;constructor(n){this.client=n}async createUser(n){return this.client.request({method:"post",path:"/users/integration",body:n})}async create(n){return this.createUser(n)}async requestApiKey(n){return this.client.request({method:"post",path:"/users/request-key",body:{email:n}})}async authorizeApiKeyWithOTP(n){return this.client.request({method:"post",path:"/users/validate-key",body:n})}async getCurrentUser(){const n=await this.client.query({query:yn});return Wv(n)}async retryFailedVerification(){return await this.client.query({query:Bt}),this.getCurrentUser()}async getVerificationParams(){return(await this.client.query({query:pr})).getVerificationParams}async getUserAccess(){const n=await this.client.query({query:bn}),t=Wv(n),u=t?.verificationStatus??wt.NotStarted,i=t?.verifiedCountry??null;return $k(n,u,i)}}var mi={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"VirtualDebitCardFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"VirtualCard"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mask"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"balance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"renderSecret"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"virtualCardType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"billingInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"holder"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"phone"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"street"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"street2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"city"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"subdivision"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"postalCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"countryCode"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"paymentAddresses"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"network"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:469}};mi.loc.source={body:`fragment VirtualDebitCardFragment on VirtualCard {
|
|
606
552
|
id
|
|
607
553
|
name
|
|
608
554
|
userId
|
|
@@ -632,24 +578,24 @@ query UserAccess {
|
|
|
632
578
|
address
|
|
633
579
|
}
|
|
634
580
|
}
|
|
635
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function
|
|
581
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function kr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){kr(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){kr(u,n)}),e.definitions&&e.definitions.forEach(function(u){kr(u,n)})}var Vs={};(function(){mi.definitions.forEach(function(n){if(n.name){var t=new Set;kr(n,t),Vs[n.name.value]=t}})})();function Yv(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function Ik(e,n){var t={kind:e.kind,definitions:[Yv(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=Vs[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Vs[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=Yv(e,o);s&&t.definitions.push(s)}),t}Ik(mi,"VirtualDebitCardFragment");var _t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateUSVirtualDebitCard"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createUSVirtualDebitCard"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VirtualDebitCardFragment"},directives:[]}]}}]}}],loc:{start:0,end:166}};_t.loc.source={body:`#import "../queries/virtualDebitCardFragment.graphql"
|
|
636
582
|
|
|
637
583
|
mutation CreateUSVirtualDebitCard {
|
|
638
584
|
createUSVirtualDebitCard {
|
|
639
585
|
...VirtualDebitCardFragment
|
|
640
586
|
}
|
|
641
587
|
}
|
|
642
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var
|
|
588
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Xv={};function Fk(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Xv[t]?!1:(Xv[t]=!0,!0)})}_t.definitions=_t.definitions.concat(Fk(mi.definitions));function Dr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){Dr(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){Dr(u,n)}),e.definitions&&e.definitions.forEach(function(u){Dr(u,n)})}var qs={};(function(){_t.definitions.forEach(function(n){if(n.name){var t=new Set;Dr(n,t),qs[n.name.value]=t}})})();function ep(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function Nk(e,n){var t={kind:e.kind,definitions:[ep(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=qs[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=qs[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=ep(e,o);s&&t.definitions.push(s)}),t}Nk(_t,"CreateUSVirtualDebitCard");var Ct={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"UserVirtualDebitCard"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"virtualDebitCard"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VirtualDebitCardFragment"},directives:[]}]}}]}}],loc:{start:0,end:142}};Ct.loc.source={body:`#import "./virtualDebitCardFragment.graphql"
|
|
643
589
|
|
|
644
590
|
query UserVirtualDebitCard {
|
|
645
591
|
virtualDebitCard {
|
|
646
592
|
...VirtualDebitCardFragment
|
|
647
593
|
}
|
|
648
594
|
}
|
|
649
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var
|
|
595
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var np={};function Tk(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return np[t]?!1:(np[t]=!0,!0)})}Ct.definitions=Ct.definitions.concat(Tk(mi.definitions));function Sr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(u){Sr(u,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(u){Sr(u,n)}),e.definitions&&e.definitions.forEach(function(u){Sr(u,n)})}var Ms={};(function(){Ct.definitions.forEach(function(n){if(n.name){var t=new Set;Sr(n,t),Ms[n.name.value]=t}})})();function tp(e,n){for(var t=0;t<e.definitions.length;t++){var u=e.definitions[t];if(u.name&&u.name.value==n)return u}}function Ok(e,n){var t={kind:e.kind,definitions:[tp(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var u=Ms[n]||new Set,i=new Set,r=new Set;for(u.forEach(function(o){r.add(o)});r.size>0;){var a=r;r=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Ms[o]||new Set;s.forEach(function(c){r.add(c)})}})}return i.forEach(function(o){var s=tp(e,o);s&&t.definitions.push(s)}),t}Ok(Ct,"UserVirtualDebitCard");const zk={[Zs.USVirtualDebitCard]:e=>({query:_t,variables:void 0,response:"createUSVirtualDebitCard"})},Uk=(e,n)=>zk[e]?.(n)??null;class Pk{client;constructor(n){this.client=n}async fetch(){return(await this.client.query({query:Ct}))?.virtualDebitCard??null}async create(n,t){const u=Uk(n,t);if(!u)throw new Error("Invalid virtual card type");return(await this.client.query({query:u.query,variables:u.variables}))?.[u.response]??null}}function Gs(e){const n=e;return{id:e.id,integratorId:n.integratorId??"",failureCount:e.failureCount,events:e.events,url:e.url,createdAt:n.createdAt??"",disabled:e.disabled}}class Rk{client;constructor(n){this.client=n}async create(n){const t=await this.client.restApi({method:"post",path:"/v1/integrator/webhooks",body:n});return Gs(t)}async update(n,t){const u=await this.client.restApi({method:"patch",path:`/v1/integrator/webhooks/${encodeURIComponent(n)}`,body:t});return Gs(u)}async updateWebhookSecret(n){return{success:(await this.client.restApi({method:"post",path:"/v1/integrator/webhook-secret",body:{secret:n}})).secretConfigured}}async list(){return(await this.client.restApi({method:"get",path:"/v1/integrator/webhooks"})).map(Gs)}async delete(n){const t=await this.list().then(u=>u.find(i=>i.id===n)).catch(()=>{});return await this.client.restApi({method:"delete",path:`/v1/integrator/webhooks/${encodeURIComponent(n)}`}),t??{id:n,integratorId:"",failureCount:0,events:[],url:"",createdAt:"",disabled:!0}}}class Ks{environment;apiKey;integrationKey;integratorSecret;client;user;bankAccount;debitCard;deposit;achDebitReturn;fundingSource;paymentRequest;payment;onrampPayment;onramp;virtualAccounts;virtualCard;bill;institution;sandbox;webhook;constructor(n,t,u,i,r){if(t===void 0&&u===void 0)throw new Error("The integrationKey or apiKey variable appears to be missing or empty. Please ensure you provide it, or when initializing the SpritzApiClient, opt for the integratorKey option.");if(i&&!u)throw new Error("integratorSecret requires integrationKey to be provided. Both are needed for HMAC-signed REST API requests.");if(this.environment=n,this.apiKey=t,this.integrationKey=u,this.integratorSecret=i,!r&&$h())throw new Error(`It seems you're operating within a browser environment.
|
|
650
596
|
|
|
651
597
|
By default, this is deactivated due to the potential risk of exposing your confidential integrator credentials.
|
|
652
598
|
If you're aware of these risks and have taken necessary security measures, you can enable the \`dangerouslyAllowBrowser\` option, e.g.,
|
|
653
599
|
|
|
654
600
|
SpritzApiClient.initialize({ apiKey, dangerouslyAllowBrowser: true });
|
|
655
|
-
`)}static initialize({environment:n=
|
|
601
|
+
`)}static initialize({environment:n=Ar.Sandbox,apiKey:t,integrationKey:u,integratorSecret:i,dangerouslyAllowBrowser:r=!1}){const a=new Ks(n,t,u,i,r);return a.init(),a}init(){this.client=new Gh({environment:this.environment,apiKey:this.apiKey,integrationKey:this.integrationKey,integratorSecret:this.integratorSecret}),this.user=new xk(this.client),this.bankAccount=new Hh(this.client),this.debitCard=new H1(this.client),this.deposit=new K1(this.client),this.achDebitReturn=new Jh(this.client),this.fundingSource=new Q1(this.client),this.paymentRequest=new ak(this.client),this.payment=new wE(this.client),this.onrampPayment=new oE(this.client),this.onramp=new dE(this.client),this.virtualAccounts=new EE(this.client),this.virtualCard=new Pk(this.client),this.bill=new rg(this.client),this.institution=new tE(this.client),this.sandbox=new iE(this.client),this.webhook=new Rk(this.client)}setApiKey(n){return this.apiKey=n,this.init(),this}}exports.APIConnectionError=Fi,exports.APIConnectionTimeoutError=Oc,exports.APIError=Se,exports.APIUserAbortError=Fh,exports.AmountMode=Zv,exports.AuthenticationError=Uc,exports.BadRequestError=zc,exports.BankAccountSubType=Vv,exports.BankAccountType=qv,exports.BillType=Mv,exports.CardFeatureType=Lv,exports.ConflictError=jc,exports.DebitCardNetwork=Gv,exports.Environment=Ar,exports.InternalServerError=Vc,exports.NotFoundError=Rc,exports.OfframpFeatureType=fi,exports.OnrampFeatureType=br,exports.PayableAccountType=Hv,exports.PaymentDeliveryMethod=Kv,exports.PaymentNetwork=qe,exports.PaymentRequestStatus=Jv,exports.PaymentStatus=Qv,exports.PermissionDeniedError=Pc,exports.RateLimitError=Zc,exports.RequirementType=Te,exports.SpritzApiClient=Ks,exports.SpritzApiError=Tc,exports.UnprocessableEntityError=Lc,exports.VirtualCardType=Zs,exports.onrampSupportedTokens=Km;
|