@spritz-finance/api-client 0.18.2 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@
4
4
 
5
5
  `+hp(i.loc))}else if(e.source&&e.locations)for(var u=0,a=e.locations;u<a.length;u++){var o=a[u];n+=`
6
6
 
7
- `+tc(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 zt(e,n){var t=!!e;if(!t)throw new Error(n??"Unexpected invariant triggered.")}var _p=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):void 0,xu=_p;function Pe(e){var n=e.prototype.toJSON;typeof n=="function"||zt(0),e.prototype.inspect=n,xu&&(e.prototype[xu]=n)}var Cp=function(){function e(t,r,i){this.start=t.start,this.end=r.end,this.startToken=t,this.endToken=r,this.source=i}var n=e.prototype;return n.toJSON=function(){return{start:this.start,end:this.end}},e}();Pe(Cp);var $p=function(){function e(t,r,i,u,a,o,s){this.kind=t,this.start=r,this.end=i,this.line=u,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}();Pe($p);function Fu(e){return e!=null&&typeof e.kind=="string"}function ki(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ki=function(t){return typeof t}:ki=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ki(e)}var Ip=10,sc=2;function H(e){return Di(e,[])}function Di(e,n){switch(ki(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return e===null?"null":xp(e,n);default:return String(e)}}function xp(e,n){if(n.indexOf(e)!==-1)return"[Circular]";var t=[].concat(n,[e]),r=Tp(e);if(r!==void 0){var i=r.call(e);if(i!==e)return typeof i=="string"?i:Di(i,t)}else if(Array.isArray(e))return Np(e,t);return Fp(e,t)}function Fp(e,n){var t=Object.keys(e);if(t.length===0)return"{}";if(n.length>sc)return"["+Op(e)+"]";var r=t.map(function(i){var u=Di(e[i],n);return i+": "+u});return"{ "+r.join(", ")+" }"}function Np(e,n){if(e.length===0)return"[]";if(n.length>sc)return"[Array]";for(var t=Math.min(Ip,e.length),r=e.length-t,i=[],u=0;u<t;++u)i.push(Di(e[u],n));return r===1?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items")),"["+i.join(", ")+"]"}function Tp(e){var n=e[String(xu)];if(typeof n=="function")return n;if(typeof e.inspect=="function")return e.inspect}function Op(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 Si(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Si=function(t){return typeof t}:Si=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Si(e)}var Qe=function(n,t){if(n instanceof t)return!0;if(Si(n)==="object"&&n!==null){var r,i=t.prototype[Symbol.toStringTag],u=Symbol.toStringTag in n?n[Symbol.toStringTag]:(r=n.constructor)===null||r===void 0?void 0:r.name;if(i===u){var a=H(n);throw new Error("Cannot use ".concat(i,' "').concat(a,`" from another module or realm.
7
+ `+tc(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 zt(e,n){var t=!!e;if(!t)throw new Error(n??"Unexpected invariant triggered.")}var _p=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):void 0,xu=_p;function Pe(e){var n=e.prototype.toJSON;typeof n=="function"||zt(0),e.prototype.inspect=n,xu&&(e.prototype[xu]=n)}var Cp=function(){function e(t,r,i){this.start=t.start,this.end=r.end,this.startToken=t,this.endToken=r,this.source=i}var n=e.prototype;return n.toJSON=function(){return{start:this.start,end:this.end}},e}();Pe(Cp);var $p=function(){function e(t,r,i,u,a,o,s){this.kind=t,this.start=r,this.end=i,this.line=u,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}();Pe($p);function Fu(e){return e!=null&&typeof e.kind=="string"}function ki(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ki=function(t){return typeof t}:ki=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ki(e)}var Ip=10,sc=2;function H(e){return Di(e,[])}function Di(e,n){switch(ki(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return e===null?"null":xp(e,n);default:return String(e)}}function xp(e,n){if(n.indexOf(e)!==-1)return"[Circular]";var t=[].concat(n,[e]),r=Tp(e);if(r!==void 0){var i=r.call(e);if(i!==e)return typeof i=="string"?i:Di(i,t)}else if(Array.isArray(e))return Np(e,t);return Fp(e,t)}function Fp(e,n){var t=Object.keys(e);if(t.length===0)return"{}";if(n.length>sc)return"["+Op(e)+"]";var r=t.map(function(i){var u=Di(e[i],n);return i+": "+u});return"{ "+r.join(", ")+" }"}function Np(e,n){if(e.length===0)return"[]";if(n.length>sc)return"[Array]";for(var t=Math.min(Ip,e.length),r=e.length-t,i=[],u=0;u<t;++u)i.push(Di(e[u],n));return r===1?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items")),"["+i.join(", ")+"]"}function Tp(e){var n=e[String(xu)];if(typeof n=="function")return n;if(typeof e.inspect=="function")return e.inspect}function Op(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 M(e,n){var t=!!e;if(!t)throw new Error(n)}function Si(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Si=function(t){return typeof t}:Si=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Si(e)}var Ke=function(n,t){if(n instanceof t)return!0;if(Si(n)==="object"&&n!==null){var r,i=t.prototype[Symbol.toStringTag],u=Symbol.toStringTag in n?n[Symbol.toStringTag]:(r=n.constructor)===null||r===void 0?void 0:r.name;if(i===u){var a=H(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,14 +15,14 @@ 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 zp(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Up(e,n,t){return n&&zp(e.prototype,n),e}(function(){function e(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GraphQL request",r=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(H(n),".")),this.body=n,this.name=t,this.locationOffset=r,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 Up(e,[{key:xe,get:function(){return"Source"}}]),e})();var Q=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 Pp(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=e.indexOf(`
18
+ spurious results.`))}}return!1};function zp(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Up(e,n,t){return n&&zp(e.prototype,n),e}(function(){function e(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GraphQL request",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{line:1,column:1};typeof n=="string"||M(0,"Body must be a string. Received: ".concat(H(n),".")),this.body=n,this.name=t,this.locationOffset=r,this.locationOffset.line>0||M(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||M(0,"column in locationOffset is 1-indexed and must be positive.")}return Up(e,[{key:xe,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 Pp(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=e.indexOf(`
19
19
  `)===-1,i=e[0]===" "||e[0]===" ",u=e[e.length-1]==='"',a=e[e.length-1]==="\\",o=!r||u||a||t,s="";return o&&!(r&&i)&&(s+=`
20
20
  `+n),s+=n?e.replace(/\n/g,`
21
21
  `+n):e,o&&(s+=`
22
- `),'"""'+s.replace(/"""/g,'\\"""')+'"""'}var Rp={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"]},jp=Object.freeze({});function cc(e,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Rp,r=void 0,i=Array.isArray(e),u=[e],a=-1,o=[],s=void 0,c=void 0,l=void 0,f=[],m=[],d=e;do{a++;var v=a===u.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 b={},E=0,g=Object.keys(s);E<g.length;E++){var k=g[E];b[k]=s[k]}s=b}for(var _=0,B=0;B<o.length;B++){var J=o[B][0],V=o[B][1];i&&(J-=_),i&&V===null?(s.splice(J,1),_++):s[J]=V}}a=r.index,u=r.keys,o=r.edits,i=r.inArray,r=r.prev}else{if(c=l?i?a:u[a]:void 0,s=l?l[c]:d,s==null)continue;l&&f.push(c)}var F=void 0;if(!Array.isArray(s)){if(!Fu(s))throw new Error("Invalid AST Node: ".concat(H(s),"."));var y=Nu(n,s.kind,v);if(y){if(F=y.call(n,s,c,l,f,m),F===jp)break;if(F===!1){if(!v){f.pop();continue}}else if(F!==void 0&&(o.push([c,F]),!v))if(Fu(F))s=F;else{f.pop();continue}}}if(F===void 0&&h&&o.push([c,s]),v)f.pop();else{var $;r={inArray:i,index:a,keys:u,edits:o,prev:r},i=Array.isArray(s),u=i?s:($=t[s.kind])!==null&&$!==void 0?$:[],a=-1,o=[],l&&m.push(l),l=s}}while(r!==void 0);return o.length!==0&&(d=o[o.length-1][1]),d}function Nu(e,n,t){var r=e[n];if(r){if(!t&&typeof r=="function")return r;var i=t?r.leave:r.enter;if(typeof i=="function")return i}else{var u=t?e.leave:e.enter;if(u){if(typeof u=="function")return u;var a=u[n];if(typeof a=="function")return a}}}var Lp=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 r=e[t];if(n(r))return r}},lc=Lp,Zp=Object.values||function(e){return Object.keys(e).map(function(n){return e[n]})},_n=Zp,Vp=Object.entries||function(e){return Object.keys(e).map(function(n){return[n,e[n]]})},Ut=Vp;function dc(e,n){return e.reduce(function(t,r){return t[n(r)]=r,t},Object.create(null))}function Bi(e,n){for(var t=Object.create(null),r=0,i=Ut(e);r<i.length;r++){var u=i[r],a=u[0],o=u[1];t[a]=n(o,a)}return t}function $e(e){if(Object.getPrototypeOf(e)===null)return e;for(var n=Object.create(null),t=0,r=Ut(e);t<r.length;t++){var i=r[t],u=i[0],a=i[1];n[u]=a}return n}function Tu(e,n,t){return e.reduce(function(r,i){return r[n(i)]=t(i),r},Object.create(null))}var qp=5;function Mp(e,n){var t=[e,n],r=t[0],i=t[1],u=" Did you mean ";u+=r+" ";var a=i.map(function(c){return'"'.concat(c,'"')});switch(a.length){case 0:return"";case 1:return u+a[0]+"?";case 2:return u+a[0]+" or "+a[1]+"?"}var o=a.slice(0,qp),s=o.pop();return u+o.join(", ")+", or "+s+"?"}function fc(e){return e}function Gp(e,n){for(var t=0,r=0;t<e.length&&r<n.length;){var i=e.charCodeAt(t),u=n.charCodeAt(r);if(Ai(i)&&Ai(u)){var a=0;do++t,a=a*10+i-Ou,i=e.charCodeAt(t);while(Ai(i)&&a>0);var o=0;do++r,o=o*10+u-Ou,u=n.charCodeAt(r);while(Ai(u)&&o>0);if(a<o)return-1;if(a>o)return 1}else{if(i<u)return-1;if(i>u)return 1;++t,++r}}return e.length-n.length}var Ou=48,Jp=57;function Ai(e){return!isNaN(e)&&Ou<=e&&e<=Jp}function Hp(e,n){for(var t=Object.create(null),r=new Kp(e),i=Math.floor(e.length*.4)+1,u=0;u<n.length;u++){var a=n[u],o=r.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:Gp(s,c)})}var Kp=function(){function e(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=mc(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(r,i){if(this._input===r)return 0;var u=r.toLowerCase();if(this._inputLowerCase===u)return 1;var a=mc(u),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],b=h[0]=d,E=1;E<=l;E++){var g=a[d-1]===o[E-1]?0:1,k=Math.min(v[E]+1,h[E-1]+1,v[E-1]+g);if(d>1&&E>1&&a[d-1]===o[E-2]&&a[d-2]===o[E-1]){var _=f[(d-2)%3][E-2];k=Math.min(k,_+1)}k<b&&(b=k),h[E]=k}if(b>i)return}var B=f[c%3][l];return B<=i?B:void 0}},e}();function mc(e){for(var n=e.length,t=new Array(n),r=0;r<n;++r)t[r]=e.charCodeAt(r);return t}function We(e){return cc(e,{leave:Wp})}var Qp=80,Wp={Name:function(n){return n.value},Variable:function(n){return"$"+n.name},Document:function(n){return I(n.definitions,`
22
+ `),'"""'+s.replace(/"""/g,'\\"""')+'"""'}var Rp={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"]},jp=Object.freeze({});function cc(e,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Rp,r=void 0,i=Array.isArray(e),u=[e],a=-1,o=[],s=void 0,c=void 0,l=void 0,f=[],m=[],d=e;do{a++;var v=a===u.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 b={},E=0,g=Object.keys(s);E<g.length;E++){var k=g[E];b[k]=s[k]}s=b}for(var _=0,B=0;B<o.length;B++){var J=o[B][0],q=o[B][1];i&&(J-=_),i&&q===null?(s.splice(J,1),_++):s[J]=q}}a=r.index,u=r.keys,o=r.edits,i=r.inArray,r=r.prev}else{if(c=l?i?a:u[a]:void 0,s=l?l[c]:d,s==null)continue;l&&f.push(c)}var F=void 0;if(!Array.isArray(s)){if(!Fu(s))throw new Error("Invalid AST Node: ".concat(H(s),"."));var y=Nu(n,s.kind,v);if(y){if(F=y.call(n,s,c,l,f,m),F===jp)break;if(F===!1){if(!v){f.pop();continue}}else if(F!==void 0&&(o.push([c,F]),!v))if(Fu(F))s=F;else{f.pop();continue}}}if(F===void 0&&h&&o.push([c,s]),v)f.pop();else{var $;r={inArray:i,index:a,keys:u,edits:o,prev:r},i=Array.isArray(s),u=i?s:($=t[s.kind])!==null&&$!==void 0?$:[],a=-1,o=[],l&&m.push(l),l=s}}while(r!==void 0);return o.length!==0&&(d=o[o.length-1][1]),d}function Nu(e,n,t){var r=e[n];if(r){if(!t&&typeof r=="function")return r;var i=t?r.leave:r.enter;if(typeof i=="function")return i}else{var u=t?e.leave:e.enter;if(u){if(typeof u=="function")return u;var a=u[n];if(typeof a=="function")return a}}}var Lp=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 r=e[t];if(n(r))return r}},lc=Lp,Zp=Object.values||function(e){return Object.keys(e).map(function(n){return e[n]})},_n=Zp,Vp=Object.entries||function(e){return Object.keys(e).map(function(n){return[n,e[n]]})},Ut=Vp;function dc(e,n){return e.reduce(function(t,r){return t[n(r)]=r,t},Object.create(null))}function Bi(e,n){for(var t=Object.create(null),r=0,i=Ut(e);r<i.length;r++){var u=i[r],a=u[0],o=u[1];t[a]=n(o,a)}return t}function $e(e){if(Object.getPrototypeOf(e)===null)return e;for(var n=Object.create(null),t=0,r=Ut(e);t<r.length;t++){var i=r[t],u=i[0],a=i[1];n[u]=a}return n}function Tu(e,n,t){return e.reduce(function(r,i){return r[n(i)]=t(i),r},Object.create(null))}var qp=5;function Mp(e,n){var t=[e,n],r=t[0],i=t[1],u=" Did you mean ";u+=r+" ";var a=i.map(function(c){return'"'.concat(c,'"')});switch(a.length){case 0:return"";case 1:return u+a[0]+"?";case 2:return u+a[0]+" or "+a[1]+"?"}var o=a.slice(0,qp),s=o.pop();return u+o.join(", ")+", or "+s+"?"}function fc(e){return e}function Gp(e,n){for(var t=0,r=0;t<e.length&&r<n.length;){var i=e.charCodeAt(t),u=n.charCodeAt(r);if(Ai(i)&&Ai(u)){var a=0;do++t,a=a*10+i-Ou,i=e.charCodeAt(t);while(Ai(i)&&a>0);var o=0;do++r,o=o*10+u-Ou,u=n.charCodeAt(r);while(Ai(u)&&o>0);if(a<o)return-1;if(a>o)return 1}else{if(i<u)return-1;if(i>u)return 1;++t,++r}}return e.length-n.length}var Ou=48,Jp=57;function Ai(e){return!isNaN(e)&&Ou<=e&&e<=Jp}function Hp(e,n){for(var t=Object.create(null),r=new Qp(e),i=Math.floor(e.length*.4)+1,u=0;u<n.length;u++){var a=n[u],o=r.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:Gp(s,c)})}var Qp=function(){function e(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=mc(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(r,i){if(this._input===r)return 0;var u=r.toLowerCase();if(this._inputLowerCase===u)return 1;var a=mc(u),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],b=h[0]=d,E=1;E<=l;E++){var g=a[d-1]===o[E-1]?0:1,k=Math.min(v[E]+1,h[E-1]+1,v[E-1]+g);if(d>1&&E>1&&a[d-1]===o[E-2]&&a[d-2]===o[E-1]){var _=f[(d-2)%3][E-2];k=Math.min(k,_+1)}k<b&&(b=k),h[E]=k}if(b>i)return}var B=f[c%3][l];return B<=i?B:void 0}},e}();function mc(e){for(var n=e.length,t=new Array(n),r=0;r<n;++r)t[r]=e.charCodeAt(r);return t}function We(e){return cc(e,{leave:Wp})}var Kp=80,Wp={Name:function(n){return n.value},Variable:function(n){return"$"+n.name},Document:function(n){return I(n.definitions,`
23
23
 
24
24
  `)+`
25
- `},OperationDefinition:function(n){var t=n.operation,r=n.name,i=te("(",I(n.variableDefinitions,", "),")"),u=I(n.directives," "),a=n.selectionSet;return!r&&!u&&!i&&t==="query"?a:I([t,I([r,i]),u,a]," ")},VariableDefinition:function(n){var t=n.variable,r=n.type,i=n.defaultValue,u=n.directives;return t+": "+r+te(" = ",i)+te(" ",I(u," "))},SelectionSet:function(n){var t=n.selections;return je(t)},Field:function(n){var t=n.alias,r=n.name,i=n.arguments,u=n.directives,a=n.selectionSet,o=te("",t,": ")+r,s=o+te("(",I(i,", "),")");return s.length>Qp&&(s=o+te(`(
25
+ `},OperationDefinition:function(n){var t=n.operation,r=n.name,i=te("(",I(n.variableDefinitions,", "),")"),u=I(n.directives," "),a=n.selectionSet;return!r&&!u&&!i&&t==="query"?a:I([t,I([r,i]),u,a]," ")},VariableDefinition:function(n){var t=n.variable,r=n.type,i=n.defaultValue,u=n.directives;return t+": "+r+te(" = ",i)+te(" ",I(u," "))},SelectionSet:function(n){var t=n.selections;return je(t)},Field:function(n){var t=n.alias,r=n.name,i=n.arguments,u=n.directives,a=n.selectionSet,o=te("",t,": ")+r,s=o+te("(",I(i,", "),")");return s.length>Kp&&(s=o+te(`(
26
26
  `,wi(I(i,`
27
27
  `)),`
28
28
  )`)),I([s,I(u," "),a]," ")},Argument:function(n){var t=n.name,r=n.value;return t+": "+r},FragmentSpread:function(n){var t=n.name,r=n.directives;return"..."+t+te(" ",I(r," "))},InlineFragment:function(n){var t=n.typeCondition,r=n.directives,i=n.selectionSet;return I(["...",te("on ",t),I(r," "),i]," ")},FragmentDefinition:function(n){var t=n.name,r=n.typeCondition,i=n.variableDefinitions,u=n.directives,a=n.selectionSet;return"fragment ".concat(t).concat(te("(",I(i,", "),")")," ")+"on ".concat(r," ").concat(te("",I(u," ")," "))+a},IntValue:function(n){var t=n.value;return t},FloatValue:function(n){var t=n.value;return t},StringValue:function(n,t){var r=n.value,i=n.block;return i?Pp(r,t==="description"?"":" "):JSON.stringify(r)},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"["+I(t,", ")+"]"},ObjectValue:function(n){var t=n.fields;return"{"+I(t,", ")+"}"},ObjectField:function(n){var t=n.name,r=n.value;return t+": "+r},Directive:function(n){var t=n.name,r=n.arguments;return"@"+t+te("(",I(r,", "),")")},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:Re(function(e){var n=e.directives,t=e.operationTypes;return I(["schema",I(n," "),je(t)]," ")}),OperationTypeDefinition:function(n){var t=n.operation,r=n.type;return t+": "+r},ScalarTypeDefinition:Re(function(e){var n=e.name,t=e.directives;return I(["scalar",n,I(t," ")]," ")}),ObjectTypeDefinition:Re(function(e){var n=e.name,t=e.interfaces,r=e.directives,i=e.fields;return I(["type",n,te("implements ",I(t," & ")),I(r," "),je(i)]," ")}),FieldDefinition:Re(function(e){var n=e.name,t=e.arguments,r=e.type,i=e.directives;return n+(vc(t)?te(`(
@@ -37,9 +37,9 @@ spurious results.`))}}return!1};function zp(e,n){for(var t=0;t<n.length;t++){var
37
37
  `)),`
38
38
  }`)}function te(e,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return n!=null&&n!==""?e+n+t:""}function wi(e){return te(" ",e.replace(/\n/g,`
39
39
  `))}function Yp(e){return e.indexOf(`
40
- `)!==-1}function vc(e){return e!=null&&e.some(Yp)}function zu(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 zu(t,n)});case C.OBJECT:return Tu(e.fields,function(t){return t.name.value},function(t){return zu(t.value,n)});case C.VARIABLE:return n?.[e.name.value]}zt(0,"Unexpected value node: "+H(e))}function Xp(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vn(e,n,t){return n&&Xp(e.prototype,n),e}function pc(e){return Pt(e)||Me(e)||Fe(e)||sn(e)||cn(e)||Cn(e)||Rt(e)||qn(e)}function eh(e){if(!pc(e))throw new Error("Expected ".concat(H(e)," to be a GraphQL type."));return e}function Pt(e){return Qe(e,$n)}function Me(e){return Qe(e,ln)}function Fe(e){return Qe(e,bc)}function sn(e){return Qe(e,kc)}function cn(e){return Qe(e,$i)}function Cn(e){return Qe(e,Dc)}function Rt(e){return Qe(e,ce)}function qn(e){return Qe(e,j)}function Mn(e){return Pt(e)||cn(e)||Cn(e)||Pu(e)&&Mn(e.ofType)}function _i(e){return Pt(e)||Me(e)||Fe(e)||sn(e)||cn(e)||Pu(e)&&_i(e.ofType)}function nh(e){return Pt(e)||cn(e)}function Uu(e){return Me(e)||Fe(e)||sn(e)}function th(e){return Fe(e)||sn(e)}function ce(e){if(this instanceof ce)this.ofType=eh(e);else return new ce(e)}ce.prototype.toString=function(){return"["+String(this.ofType)+"]"},ce.prototype.toJSON=function(){return this.toString()},Object.defineProperty(ce.prototype,xe,{get:function(){return"GraphQLList"}}),Pe(ce);function j(e){if(this instanceof j)this.ofType=rh(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,xe,{get:function(){return"GraphQLNonNull"}}),Pe(j);function Pu(e){return Rt(e)||qn(e)}function ih(e){return pc(e)&&!qn(e)}function rh(e){if(!ih(e))throw new Error("Expected ".concat(H(e)," to be a GraphQL nullable type."));return e}function uh(e){if(e)return qn(e)?e.ofType:e}function jt(e){if(e){for(var n=e;Pu(n);)n=n.ofType;return n}}function Ci(e){return typeof e=="function"?e():e}function Gn(e){return e&&e.length>0?e:void 0}var $n=function(){function e(t){var r,i,u,a=(r=t.parseValue)!==null&&r!==void 0?r:fc;this.name=t.name,this.description=t.description,this.specifiedByUrl=t.specifiedByUrl,this.serialize=(i=t.serialize)!==null&&i!==void 0?i:fc,this.parseValue=a,this.parseLiteral=(u=t.parseLiteral)!==null&&u!==void 0?u:function(o,s){return a(zu(o,s))},this.extensions=t.extensions&&$e(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=Gn(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(H(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 r;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:(r=this.extensionASTNodes)!==null&&r!==void 0?r:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Vn(e,[{key:xe,get:function(){return"GraphQLScalarType"}}]),e}();Pe($n);var ln=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=Gn(t.extensionASTNodes),this._fields=gc.bind(void 0,t),this._interfaces=hc.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(H(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:Ec(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()},Vn(e,[{key:xe,get:function(){return"GraphQLObjectType"}}]),e}();Pe(ln);function hc(e){var n,t=(n=Ci(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 gc(e){var n=Ci(e.fields);return Jn(n)||q(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),Bi(n,function(t,r){var i;Jn(t)||q(0,"".concat(e.name,".").concat(r," field config must be an object.")),!("isDeprecated"in t)||q(0,"".concat(e.name,".").concat(r,' should provide "deprecationReason" instead of "isDeprecated".')),t.resolve==null||typeof t.resolve=="function"||q(0,"".concat(e.name,".").concat(r," field resolver must be a function if ")+"provided, but got: ".concat(H(t.resolve),"."));var u=(i=t.args)!==null&&i!==void 0?i:{};Jn(u)||q(0,"".concat(e.name,".").concat(r," args must be an object with argument names as keys."));var a=Ut(u).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:r,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 Jn(e){return wn(e)&&!Array.isArray(e)}function Ec(e){return Bi(e,function(n){return{description:n.description,type:n.type,args:yc(n.args),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}})}function yc(e){return Tu(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 bc=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=Gn(t.extensionASTNodes),this._fields=gc.bind(void 0,t),this._interfaces=hc.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(H(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 r;return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Ec(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(r=this.extensionASTNodes)!==null&&r!==void 0?r:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Vn(e,[{key:xe,get:function(){return"GraphQLInterfaceType"}}]),e}();Pe(bc);var kc=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=Gn(t.extensionASTNodes),this._types=ah.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(H(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 r;return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(r=this.extensionASTNodes)!==null&&r!==void 0?r:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Vn(e,[{key:xe,get:function(){return"GraphQLUnionType"}}]),e}();Pe(kc);function ah(e){var n=Ci(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 $i=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=Gn(t.extensionASTNodes),this._values=oh(this.name,t.values),this._valueLookup=new Map(this._values.map(function(r){return[r.value,r]})),this._nameLookup=dc(this._values,function(r){return r.name}),typeof t.name=="string"||q(0,"Must provide name.")}var n=e.prototype;return n.getValues=function(){return this._values},n.getValue=function(r){return this._nameLookup[r]},n.serialize=function(r){var i=this._valueLookup.get(r);if(i===void 0)throw new ne('Enum "'.concat(this.name,'" cannot represent value: ').concat(H(r)));return i.name},n.parseValue=function(r){if(typeof r!="string"){var i=H(r);throw new ne('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(i,".")+Ii(this,i))}var u=this.getValue(r);if(u==null)throw new ne('Value "'.concat(r,'" does not exist in "').concat(this.name,'" enum.')+Ii(this,r));return u.value},n.parseLiteral=function(r,i){if(r.kind!==C.ENUM){var u=We(r);throw new ne('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(u,".")+Ii(this,u),r)}var a=this.getValue(r.value);if(a==null){var o=We(r);throw new ne('Value "'.concat(o,'" does not exist in "').concat(this.name,'" enum.')+Ii(this,o),r)}return a.value},n.toConfig=function(){var r,i=Tu(this.getValues(),function(u){return u.name},function(u){return{description:u.description,value:u.value,deprecationReason:u.deprecationReason,extensions:u.extensions,astNode:u.astNode}});return{name:this.name,description:this.description,values:i,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(r=this.extensionASTNodes)!==null&&r!==void 0?r:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Vn(e,[{key:xe,get:function(){return"GraphQLEnumType"}}]),e}();Pe($i);function Ii(e,n){var t=e.getValues().map(function(i){return i.name}),r=Hp(n,t);return Mp("the enum value",r)}function oh(e,n){return Jn(n)||q(0,"".concat(e," values must be an object with value names as keys.")),Ut(n).map(function(t){var r=t[0],i=t[1];return Jn(i)||q(0,"".concat(e,".").concat(r,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat(H(i),".")),!("isDeprecated"in i)||q(0,"".concat(e,".").concat(r,' should provide "deprecationReason" instead of "isDeprecated".')),{name:r,description:i.description,value:i.value!==void 0?i.value:r,isDeprecated:i.deprecationReason!=null,deprecationReason:i.deprecationReason,extensions:i.extensions&&$e(i.extensions),astNode:i.astNode}})}var Dc=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=Gn(t.extensionASTNodes),this._fields=sh.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 r,i=Bi(this.getFields(),function(u){return{description:u.description,type:u.type,defaultValue:u.defaultValue,deprecationReason:u.deprecationReason,extensions:u.extensions,astNode:u.astNode}});return{name:this.name,description:this.description,fields:i,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(r=this.extensionASTNodes)!==null&&r!==void 0?r:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Vn(e,[{key:xe,get:function(){return"GraphQLInputObjectType"}}]),e}();Pe(Dc);function sh(e){var n=Ci(e.fields);return Jn(n)||q(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),Bi(n,function(t,r){return!("resolve"in t)||q(0,"".concat(e.name,".").concat(r," field has a resolve property, but Input Types cannot define resolvers.")),{name:r,description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions&&$e(t.extensions),astNode:t.astNode}})}var ch=Array.from||function(e,n,t){if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");var r=e[nc];if(typeof r=="function"){for(var i=r.call(e),u=[],a,o=0;!(a=i.next()).done;++o)if(u.push(n.call(t,a.value,o)),o>9999999)throw new TypeError("Near-infinite iteration.");return u}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[]},lh=ch,dh=Number.isFinite||function(e){return typeof e=="number"&&isFinite(e)},Lt=dh;function xi(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?xi=function(t){return typeof t}:xi=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xi(e)}function fh(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(l){return l};if(e==null||xi(e)!=="object")return null;if(Array.isArray(e))return e.map(n);var t=e[nc];if(typeof t=="function"){for(var r=t.call(e),i=[],u,a=0;!(u=r.next()).done;++a)i.push(n(u.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 mh=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},Fi=mh,Ru=2147483647,ju=-2147483648;function vh(e){var n=Zt(e);if(typeof n=="boolean")return n?1:0;var t=n;if(typeof n=="string"&&n!==""&&(t=Number(n)),!Fi(t))throw new ne("Int cannot represent non-integer value: ".concat(H(n)));if(t>Ru||t<ju)throw new ne("Int cannot represent non 32-bit signed integer value: "+H(n));return t}function ph(e){if(!Fi(e))throw new ne("Int cannot represent non-integer value: ".concat(H(e)));if(e>Ru||e<ju)throw new ne("Int cannot represent non 32-bit signed integer value: ".concat(e));return e}var hh=new $n({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:vh,parseValue:ph,parseLiteral:function(n){if(n.kind!==C.INT)throw new ne("Int cannot represent non-integer value: ".concat(We(n)),n);var t=parseInt(n.value,10);if(t>Ru||t<ju)throw new ne("Int cannot represent non 32-bit signed integer value: ".concat(n.value),n);return t}});function gh(e){var n=Zt(e);if(typeof n=="boolean")return n?1:0;var t=n;if(typeof n=="string"&&n!==""&&(t=Number(n)),!Lt(t))throw new ne("Float cannot represent non numeric value: ".concat(H(n)));return t}function Eh(e){if(!Lt(e))throw new ne("Float cannot represent non numeric value: ".concat(H(e)));return e}var yh=new $n({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:gh,parseValue:Eh,parseLiteral:function(n){if(n.kind!==C.FLOAT&&n.kind!==C.INT)throw new ne("Float cannot represent non numeric value: ".concat(We(n)),n);return parseFloat(n.value)}});function Zt(e){if(wn(e)){if(typeof e.valueOf=="function"){var n=e.valueOf();if(!wn(n))return n}if(typeof e.toJSON=="function")return e.toJSON()}return e}function bh(e){var n=Zt(e);if(typeof n=="string")return n;if(typeof n=="boolean")return n?"true":"false";if(Lt(n))return n.toString();throw new ne("String cannot represent value: ".concat(H(e)))}function kh(e){if(typeof e!="string")throw new ne("String cannot represent a non string value: ".concat(H(e)));return e}var ie=new $n({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:bh,parseValue:kh,parseLiteral:function(n){if(n.kind!==C.STRING)throw new ne("String cannot represent a non string value: ".concat(We(n)),n);return n.value}});function Dh(e){var n=Zt(e);if(typeof n=="boolean")return n;if(Lt(n))return n!==0;throw new ne("Boolean cannot represent a non boolean value: ".concat(H(n)))}function Sh(e){if(typeof e!="boolean")throw new ne("Boolean cannot represent a non boolean value: ".concat(H(e)));return e}var Ne=new $n({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:Dh,parseValue:Sh,parseLiteral:function(n){if(n.kind!==C.BOOLEAN)throw new ne("Boolean cannot represent a non boolean value: ".concat(We(n)),n);return n.value}});function Bh(e){var n=Zt(e);if(typeof n=="string")return n;if(Fi(n))return String(n);throw new ne("ID cannot represent value: ".concat(H(e)))}function Ah(e){if(typeof e=="string")return e;if(Fi(e))return e.toString();throw new ne("ID cannot represent value: ".concat(H(e)))}var Sc=new $n({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:Bh,parseValue:Ah,parseLiteral:function(n){if(n.kind!==C.STRING&&n.kind!==C.INT)throw new ne("ID cannot represent a non-string and non-integer value: "+We(n),n);return n.value}}),Bc=Object.freeze([ie,hh,yh,Ne,Sc]);function Vt(e,n){if(qn(n)){var t=Vt(e,n.ofType);return t?.kind===C.NULL?null:t}if(e===null)return{kind:C.NULL};if(e===void 0)return null;if(Rt(n)){var r=n.ofType,i=fh(e);if(i!=null){for(var u=[],a=0;a<i.length;a++){var o=i[a],s=Vt(o,r);s!=null&&u.push(s)}return{kind:C.LIST,values:u}}return Vt(e,r)}if(Cn(n)){if(!wn(e))return null;for(var c=[],l=0,f=_n(n.getFields());l<f.length;l++){var m=f[l],d=Vt(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(nh(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"&&Lt(v)){var h=String(v);return Ac.test(h)?{kind:C.INT,value:h}:{kind:C.FLOAT,value:h}}if(typeof v=="string")return cn(n)?{kind:C.ENUM,value:v}:n===Sc&&Ac.test(v)?{kind:C.INT,value:v}:{kind:C.STRING,value:v};throw new TypeError("Cannot convert value to AST: ".concat(H(v),"."))}zt(0,"Unexpected input type: "+H(n))}var Ac=/^-?(?:0|[1-9][0-9]*)$/,Lu=new ln({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:ie,resolve:function(t){return t.description}},types:{description:"A list of all types supported by this server.",type:new j(new ce(new j(Le))),resolve:function(t){return _n(t.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new j(Le),resolve:function(t){return t.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Le,resolve:function(t){return t.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Le,resolve:function(t){return t.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:new j(new ce(new j(wc))),resolve:function(t){return t.getDirectives()}}}}}),wc=new ln({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
40
+ `)!==-1}function vc(e){return e!=null&&e.some(Yp)}function zu(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 zu(t,n)});case C.OBJECT:return Tu(e.fields,function(t){return t.name.value},function(t){return zu(t.value,n)});case C.VARIABLE:return n?.[e.name.value]}zt(0,"Unexpected value node: "+H(e))}function Xp(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vn(e,n,t){return n&&Xp(e.prototype,n),e}function pc(e){return Pt(e)||Me(e)||Fe(e)||sn(e)||cn(e)||Cn(e)||Rt(e)||qn(e)}function eh(e){if(!pc(e))throw new Error("Expected ".concat(H(e)," to be a GraphQL type."));return e}function Pt(e){return Ke(e,$n)}function Me(e){return Ke(e,ln)}function Fe(e){return Ke(e,bc)}function sn(e){return Ke(e,kc)}function cn(e){return Ke(e,$i)}function Cn(e){return Ke(e,Dc)}function Rt(e){return Ke(e,ce)}function qn(e){return Ke(e,L)}function Mn(e){return Pt(e)||cn(e)||Cn(e)||Pu(e)&&Mn(e.ofType)}function _i(e){return Pt(e)||Me(e)||Fe(e)||sn(e)||cn(e)||Pu(e)&&_i(e.ofType)}function nh(e){return Pt(e)||cn(e)}function Uu(e){return Me(e)||Fe(e)||sn(e)}function th(e){return Fe(e)||sn(e)}function ce(e){if(this instanceof ce)this.ofType=eh(e);else return new ce(e)}ce.prototype.toString=function(){return"["+String(this.ofType)+"]"},ce.prototype.toJSON=function(){return this.toString()},Object.defineProperty(ce.prototype,xe,{get:function(){return"GraphQLList"}}),Pe(ce);function L(e){if(this instanceof L)this.ofType=rh(e);else return new L(e)}L.prototype.toString=function(){return String(this.ofType)+"!"},L.prototype.toJSON=function(){return this.toString()},Object.defineProperty(L.prototype,xe,{get:function(){return"GraphQLNonNull"}}),Pe(L);function Pu(e){return Rt(e)||qn(e)}function ih(e){return pc(e)&&!qn(e)}function rh(e){if(!ih(e))throw new Error("Expected ".concat(H(e)," to be a GraphQL nullable type."));return e}function uh(e){if(e)return qn(e)?e.ofType:e}function jt(e){if(e){for(var n=e;Pu(n);)n=n.ofType;return n}}function Ci(e){return typeof e=="function"?e():e}function Gn(e){return e&&e.length>0?e:void 0}var $n=function(){function e(t){var r,i,u,a=(r=t.parseValue)!==null&&r!==void 0?r:fc;this.name=t.name,this.description=t.description,this.specifiedByUrl=t.specifiedByUrl,this.serialize=(i=t.serialize)!==null&&i!==void 0?i:fc,this.parseValue=a,this.parseLiteral=(u=t.parseLiteral)!==null&&u!==void 0?u:function(o,s){return a(zu(o,s))},this.extensions=t.extensions&&$e(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=Gn(t.extensionASTNodes),typeof t.name=="string"||M(0,"Must provide name."),t.specifiedByUrl==null||typeof t.specifiedByUrl=="string"||M(0,"".concat(this.name,' must provide "specifiedByUrl" as a string, ')+"but got: ".concat(H(t.specifiedByUrl),".")),t.serialize==null||typeof t.serialize=="function"||M(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"||M(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var n=e.prototype;return n.toConfig=function(){var r;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:(r=this.extensionASTNodes)!==null&&r!==void 0?r:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Vn(e,[{key:xe,get:function(){return"GraphQLScalarType"}}]),e}();Pe($n);var ln=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=Gn(t.extensionASTNodes),this._fields=gc.bind(void 0,t),this._interfaces=hc.bind(void 0,t),typeof t.name=="string"||M(0,"Must provide name."),t.isTypeOf==null||typeof t.isTypeOf=="function"||M(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat(H(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:Ec(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()},Vn(e,[{key:xe,get:function(){return"GraphQLObjectType"}}]),e}();Pe(ln);function hc(e){var n,t=(n=Ci(e.interfaces))!==null&&n!==void 0?n:[];return Array.isArray(t)||M(0,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),t}function gc(e){var n=Ci(e.fields);return Jn(n)||M(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),Bi(n,function(t,r){var i;Jn(t)||M(0,"".concat(e.name,".").concat(r," field config must be an object.")),!("isDeprecated"in t)||M(0,"".concat(e.name,".").concat(r,' should provide "deprecationReason" instead of "isDeprecated".')),t.resolve==null||typeof t.resolve=="function"||M(0,"".concat(e.name,".").concat(r," field resolver must be a function if ")+"provided, but got: ".concat(H(t.resolve),"."));var u=(i=t.args)!==null&&i!==void 0?i:{};Jn(u)||M(0,"".concat(e.name,".").concat(r," args must be an object with argument names as keys."));var a=Ut(u).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:r,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 Jn(e){return wn(e)&&!Array.isArray(e)}function Ec(e){return Bi(e,function(n){return{description:n.description,type:n.type,args:yc(n.args),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}})}function yc(e){return Tu(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 bc=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=Gn(t.extensionASTNodes),this._fields=gc.bind(void 0,t),this._interfaces=hc.bind(void 0,t),typeof t.name=="string"||M(0,"Must provide name."),t.resolveType==null||typeof t.resolveType=="function"||M(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(H(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 r;return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Ec(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(r=this.extensionASTNodes)!==null&&r!==void 0?r:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Vn(e,[{key:xe,get:function(){return"GraphQLInterfaceType"}}]),e}();Pe(bc);var kc=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=Gn(t.extensionASTNodes),this._types=ah.bind(void 0,t),typeof t.name=="string"||M(0,"Must provide name."),t.resolveType==null||typeof t.resolveType=="function"||M(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(H(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 r;return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(r=this.extensionASTNodes)!==null&&r!==void 0?r:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Vn(e,[{key:xe,get:function(){return"GraphQLUnionType"}}]),e}();Pe(kc);function ah(e){var n=Ci(e.types);return Array.isArray(n)||M(0,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),n}var $i=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=Gn(t.extensionASTNodes),this._values=oh(this.name,t.values),this._valueLookup=new Map(this._values.map(function(r){return[r.value,r]})),this._nameLookup=dc(this._values,function(r){return r.name}),typeof t.name=="string"||M(0,"Must provide name.")}var n=e.prototype;return n.getValues=function(){return this._values},n.getValue=function(r){return this._nameLookup[r]},n.serialize=function(r){var i=this._valueLookup.get(r);if(i===void 0)throw new ne('Enum "'.concat(this.name,'" cannot represent value: ').concat(H(r)));return i.name},n.parseValue=function(r){if(typeof r!="string"){var i=H(r);throw new ne('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(i,".")+Ii(this,i))}var u=this.getValue(r);if(u==null)throw new ne('Value "'.concat(r,'" does not exist in "').concat(this.name,'" enum.')+Ii(this,r));return u.value},n.parseLiteral=function(r,i){if(r.kind!==C.ENUM){var u=We(r);throw new ne('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(u,".")+Ii(this,u),r)}var a=this.getValue(r.value);if(a==null){var o=We(r);throw new ne('Value "'.concat(o,'" does not exist in "').concat(this.name,'" enum.')+Ii(this,o),r)}return a.value},n.toConfig=function(){var r,i=Tu(this.getValues(),function(u){return u.name},function(u){return{description:u.description,value:u.value,deprecationReason:u.deprecationReason,extensions:u.extensions,astNode:u.astNode}});return{name:this.name,description:this.description,values:i,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(r=this.extensionASTNodes)!==null&&r!==void 0?r:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Vn(e,[{key:xe,get:function(){return"GraphQLEnumType"}}]),e}();Pe($i);function Ii(e,n){var t=e.getValues().map(function(i){return i.name}),r=Hp(n,t);return Mp("the enum value",r)}function oh(e,n){return Jn(n)||M(0,"".concat(e," values must be an object with value names as keys.")),Ut(n).map(function(t){var r=t[0],i=t[1];return Jn(i)||M(0,"".concat(e,".").concat(r,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat(H(i),".")),!("isDeprecated"in i)||M(0,"".concat(e,".").concat(r,' should provide "deprecationReason" instead of "isDeprecated".')),{name:r,description:i.description,value:i.value!==void 0?i.value:r,isDeprecated:i.deprecationReason!=null,deprecationReason:i.deprecationReason,extensions:i.extensions&&$e(i.extensions),astNode:i.astNode}})}var Dc=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=Gn(t.extensionASTNodes),this._fields=sh.bind(void 0,t),typeof t.name=="string"||M(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 r,i=Bi(this.getFields(),function(u){return{description:u.description,type:u.type,defaultValue:u.defaultValue,deprecationReason:u.deprecationReason,extensions:u.extensions,astNode:u.astNode}});return{name:this.name,description:this.description,fields:i,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(r=this.extensionASTNodes)!==null&&r!==void 0?r:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Vn(e,[{key:xe,get:function(){return"GraphQLInputObjectType"}}]),e}();Pe(Dc);function sh(e){var n=Ci(e.fields);return Jn(n)||M(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),Bi(n,function(t,r){return!("resolve"in t)||M(0,"".concat(e.name,".").concat(r," field has a resolve property, but Input Types cannot define resolvers.")),{name:r,description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions&&$e(t.extensions),astNode:t.astNode}})}var ch=Array.from||function(e,n,t){if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");var r=e[nc];if(typeof r=="function"){for(var i=r.call(e),u=[],a,o=0;!(a=i.next()).done;++o)if(u.push(n.call(t,a.value,o)),o>9999999)throw new TypeError("Near-infinite iteration.");return u}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[]},lh=ch,dh=Number.isFinite||function(e){return typeof e=="number"&&isFinite(e)},Lt=dh;function xi(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?xi=function(t){return typeof t}:xi=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xi(e)}function fh(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(l){return l};if(e==null||xi(e)!=="object")return null;if(Array.isArray(e))return e.map(n);var t=e[nc];if(typeof t=="function"){for(var r=t.call(e),i=[],u,a=0;!(u=r.next()).done;++a)i.push(n(u.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 mh=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},Fi=mh,Ru=2147483647,ju=-2147483648;function vh(e){var n=Zt(e);if(typeof n=="boolean")return n?1:0;var t=n;if(typeof n=="string"&&n!==""&&(t=Number(n)),!Fi(t))throw new ne("Int cannot represent non-integer value: ".concat(H(n)));if(t>Ru||t<ju)throw new ne("Int cannot represent non 32-bit signed integer value: "+H(n));return t}function ph(e){if(!Fi(e))throw new ne("Int cannot represent non-integer value: ".concat(H(e)));if(e>Ru||e<ju)throw new ne("Int cannot represent non 32-bit signed integer value: ".concat(e));return e}var hh=new $n({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:vh,parseValue:ph,parseLiteral:function(n){if(n.kind!==C.INT)throw new ne("Int cannot represent non-integer value: ".concat(We(n)),n);var t=parseInt(n.value,10);if(t>Ru||t<ju)throw new ne("Int cannot represent non 32-bit signed integer value: ".concat(n.value),n);return t}});function gh(e){var n=Zt(e);if(typeof n=="boolean")return n?1:0;var t=n;if(typeof n=="string"&&n!==""&&(t=Number(n)),!Lt(t))throw new ne("Float cannot represent non numeric value: ".concat(H(n)));return t}function Eh(e){if(!Lt(e))throw new ne("Float cannot represent non numeric value: ".concat(H(e)));return e}var yh=new $n({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:gh,parseValue:Eh,parseLiteral:function(n){if(n.kind!==C.FLOAT&&n.kind!==C.INT)throw new ne("Float cannot represent non numeric value: ".concat(We(n)),n);return parseFloat(n.value)}});function Zt(e){if(wn(e)){if(typeof e.valueOf=="function"){var n=e.valueOf();if(!wn(n))return n}if(typeof e.toJSON=="function")return e.toJSON()}return e}function bh(e){var n=Zt(e);if(typeof n=="string")return n;if(typeof n=="boolean")return n?"true":"false";if(Lt(n))return n.toString();throw new ne("String cannot represent value: ".concat(H(e)))}function kh(e){if(typeof e!="string")throw new ne("String cannot represent a non string value: ".concat(H(e)));return e}var ie=new $n({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:bh,parseValue:kh,parseLiteral:function(n){if(n.kind!==C.STRING)throw new ne("String cannot represent a non string value: ".concat(We(n)),n);return n.value}});function Dh(e){var n=Zt(e);if(typeof n=="boolean")return n;if(Lt(n))return n!==0;throw new ne("Boolean cannot represent a non boolean value: ".concat(H(n)))}function Sh(e){if(typeof e!="boolean")throw new ne("Boolean cannot represent a non boolean value: ".concat(H(e)));return e}var Ne=new $n({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:Dh,parseValue:Sh,parseLiteral:function(n){if(n.kind!==C.BOOLEAN)throw new ne("Boolean cannot represent a non boolean value: ".concat(We(n)),n);return n.value}});function Bh(e){var n=Zt(e);if(typeof n=="string")return n;if(Fi(n))return String(n);throw new ne("ID cannot represent value: ".concat(H(e)))}function Ah(e){if(typeof e=="string")return e;if(Fi(e))return e.toString();throw new ne("ID cannot represent value: ".concat(H(e)))}var Sc=new $n({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:Bh,parseValue:Ah,parseLiteral:function(n){if(n.kind!==C.STRING&&n.kind!==C.INT)throw new ne("ID cannot represent a non-string and non-integer value: "+We(n),n);return n.value}}),Bc=Object.freeze([ie,hh,yh,Ne,Sc]);function Vt(e,n){if(qn(n)){var t=Vt(e,n.ofType);return t?.kind===C.NULL?null:t}if(e===null)return{kind:C.NULL};if(e===void 0)return null;if(Rt(n)){var r=n.ofType,i=fh(e);if(i!=null){for(var u=[],a=0;a<i.length;a++){var o=i[a],s=Vt(o,r);s!=null&&u.push(s)}return{kind:C.LIST,values:u}}return Vt(e,r)}if(Cn(n)){if(!wn(e))return null;for(var c=[],l=0,f=_n(n.getFields());l<f.length;l++){var m=f[l],d=Vt(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(nh(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"&&Lt(v)){var h=String(v);return Ac.test(h)?{kind:C.INT,value:h}:{kind:C.FLOAT,value:h}}if(typeof v=="string")return cn(n)?{kind:C.ENUM,value:v}:n===Sc&&Ac.test(v)?{kind:C.INT,value:v}:{kind:C.STRING,value:v};throw new TypeError("Cannot convert value to AST: ".concat(H(v),"."))}zt(0,"Unexpected input type: "+H(n))}var Ac=/^-?(?:0|[1-9][0-9]*)$/,Lu=new ln({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:ie,resolve:function(t){return t.description}},types:{description:"A list of all types supported by this server.",type:new L(new ce(new L(Le))),resolve:function(t){return _n(t.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new L(Le),resolve:function(t){return t.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Le,resolve:function(t){return t.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Le,resolve:function(t){return t.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:new L(new ce(new L(wc))),resolve:function(t){return t.getDirectives()}}}}}),wc=new ln({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(ie),resolve:function(t){return t.name}},description:{type:ie,resolve:function(t){return t.description}},isRepeatable:{type:new j(Ne),resolve:function(t){return t.isRepeatable}},locations:{type:new j(new ce(new j(_c))),resolve:function(t){return t.locations}},args:{type:new j(new ce(new j(Ni))),args:{includeDeprecated:{type:Ne,defaultValue:!1}},resolve:function(t,r){var i=r.includeDeprecated;return i?t.args:t.args.filter(function(u){return u.deprecationReason==null})}}}}}),_c=new $i({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:Q.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:Q.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:Q.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:Q.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:Q.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:Q.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:Q.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:Q.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:Q.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:Q.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:Q.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:Q.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:Q.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:Q.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:Q.UNION,description:"Location adjacent to a union definition."},ENUM:{value:Q.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:Q.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:Q.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:Q.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),Le=new ln({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(Ic),resolve:function(t){if(Pt(t))return me.SCALAR;if(Me(t))return me.OBJECT;if(Fe(t))return me.INTERFACE;if(sn(t))return me.UNION;if(cn(t))return me.ENUM;if(Cn(t))return me.INPUT_OBJECT;if(Rt(t))return me.LIST;if(qn(t))return me.NON_NULL;zt(0,'Unexpected type: "'.concat(H(t),'".'))}},name:{type:ie,resolve:function(t){return t.name!==void 0?t.name:void 0}},description:{type:ie,resolve:function(t){return t.description!==void 0?t.description:void 0}},specifiedByUrl:{type:ie,resolve:function(t){return t.specifiedByUrl!==void 0?t.specifiedByUrl:void 0}},fields:{type:new ce(new j(Cc)),args:{includeDeprecated:{type:Ne,defaultValue:!1}},resolve:function(t,r){var i=r.includeDeprecated;if(Me(t)||Fe(t)){var u=_n(t.getFields());return i?u:u.filter(function(a){return a.deprecationReason==null})}}},interfaces:{type:new ce(new j(Le)),resolve:function(t){if(Me(t)||Fe(t))return t.getInterfaces()}},possibleTypes:{type:new ce(new j(Le)),resolve:function(t,r,i,u){var a=u.schema;if(th(t))return a.getPossibleTypes(t)}},enumValues:{type:new ce(new j($c)),args:{includeDeprecated:{type:Ne,defaultValue:!1}},resolve:function(t,r){var i=r.includeDeprecated;if(cn(t)){var u=t.getValues();return i?u:u.filter(function(a){return a.deprecationReason==null})}}},inputFields:{type:new ce(new j(Ni)),args:{includeDeprecated:{type:Ne,defaultValue:!1}},resolve:function(t,r){var i=r.includeDeprecated;if(Cn(t)){var u=_n(t.getFields());return i?u:u.filter(function(a){return a.deprecationReason==null})}}},ofType:{type:Le,resolve:function(t){return t.ofType!==void 0?t.ofType:void 0}}}}}),Cc=new ln({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(ie),resolve:function(t){return t.name}},description:{type:ie,resolve:function(t){return t.description}},args:{type:new j(new ce(new j(Ni))),args:{includeDeprecated:{type:Ne,defaultValue:!1}},resolve:function(t,r){var i=r.includeDeprecated;return i?t.args:t.args.filter(function(u){return u.deprecationReason==null})}},type:{type:new j(Le),resolve:function(t){return t.type}},isDeprecated:{type:new j(Ne),resolve:function(t){return t.deprecationReason!=null}},deprecationReason:{type:ie,resolve:function(t){return t.deprecationReason}}}}}),Ni=new ln({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(ie),resolve:function(t){return t.name}},description:{type:ie,resolve:function(t){return t.description}},type:{type:new j(Le),resolve:function(t){return t.type}},defaultValue:{type:ie,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(t){var r=t.type,i=t.defaultValue,u=Vt(i,r);return u?We(u):null}},isDeprecated:{type:new j(Ne),resolve:function(t){return t.deprecationReason!=null}},deprecationReason:{type:ie,resolve:function(t){return t.deprecationReason}}}}}),$c=new ln({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(ie),resolve:function(t){return t.name}},description:{type:ie,resolve:function(t){return t.description}},isDeprecated:{type:new j(Ne),resolve:function(t){return t.deprecationReason!=null}},deprecationReason:{type:ie,resolve:function(t){return t.deprecationReason}}}}}),me=Object.freeze({SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"}),Ic=new $i({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:me.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:me.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:me.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:me.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:me.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:me.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:me.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:me.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),xc={name:"__schema",type:new j(Lu),description:"Access the current type schema of this server.",args:[],resolve:function(n,t,r,i){var u=i.schema;return u},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},Fc={name:"__type",type:Le,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new j(ie),defaultValue:void 0,deprecationReason:void 0,extensions:void 0,astNode:void 0}],resolve:function(n,t,r,i){var u=t.name,a=i.schema;return a.getType(u)},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},Nc={name:"__typename",type:new j(ie),description:"The name of the current Object type at runtime.",args:[],resolve:function(n,t,r,i){var u=i.parentType;return u.name},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},Tc=Object.freeze([Lu,wc,_c,Le,Cc,Ni,$c,Ic]);function wh(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _h(e,n,t){return n&&wh(e.prototype,n),e}function Ch(e){return Qe(e,Hn)}var Hn=function(){function e(t){var r,i;this.name=t.name,this.description=t.description,this.locations=t.locations,this.isRepeatable=(r=t.isRepeatable)!==null&&r!==void 0?r:!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 u=(i=t.args)!==null&&i!==void 0?i:{};wn(u)&&!Array.isArray(u)||q(0,"@".concat(t.name," args must be an object with argument names as keys.")),this.args=Ut(u).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:yc(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}},n.toString=function(){return"@"+this.name},n.toJSON=function(){return this.toString()},_h(e,[{key:xe,get:function(){return"GraphQLDirective"}}]),e}();Pe(Hn);var $h=new Hn({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[Q.FIELD,Q.FRAGMENT_SPREAD,Q.INLINE_FRAGMENT],args:{if:{type:new j(Ne),description:"Included when true."}}}),Ih=new Hn({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[Q.FIELD,Q.FRAGMENT_SPREAD,Q.INLINE_FRAGMENT],args:{if:{type:new j(Ne),description:"Skipped when true."}}}),xh="No longer supported",Fh=new Hn({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[Q.FIELD_DEFINITION,Q.ARGUMENT_DEFINITION,Q.INPUT_FIELD_DEFINITION,Q.ENUM_VALUE],args:{reason:{type:ie,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:xh}}}),Nh=new Hn({name:"specifiedBy",description:"Exposes a URL that specifies the behaviour of this scalar.",locations:[Q.SCALAR],args:{url:{type:new j(ie),description:"The URL that specifies the behaviour of this scalar."}}}),Th=Object.freeze([$h,Ih,Fh,Nh]);function Oh(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zh(e,n,t){return n&&Oh(e.prototype,n),e}(function(){function e(t){var r;this.__validationErrors=t.assumeValid===!0?[]:void 0,wn(t)||q(0,"Must provide configuration object."),!t.types||Array.isArray(t.types)||q(0,'"types" must be Array if provided but got: '.concat(H(t.types),".")),!t.directives||Array.isArray(t.directives)||q(0,'"directives" must be Array if provided but got: '+"".concat(H(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=(r=t.directives)!==null&&r!==void 0?r:Th;var i=new Set(t.types);if(t.types!=null)for(var u=0,a=t.types;u<a.length;u++){var o=a[u];i.delete(o),Ze(o,i)}this._queryType!=null&&Ze(this._queryType,i),this._mutationType!=null&&Ze(this._mutationType,i),this._subscriptionType!=null&&Ze(this._subscriptionType,i);for(var s=0,c=this._directives;s<c.length;s++){var l=c[s];if(Ch(l))for(var f=0,m=l.args;f<m.length;f++){var d=m[f];Ze(d.type,i)}}Ze(Lu,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(var v=0,h=lh(i);v<h.length;v++){var b=h[v];if(b!=null){var E=b.name;if(E||q(0,"One of the provided types for building the Schema is missing a name."),this._typeMap[E]!==void 0)throw new Error('Schema must contain uniquely named types but contains multiple types named "'.concat(E,'".'));if(this._typeMap[E]=b,Fe(b))for(var g=0,k=b.getInterfaces();g<k.length;g++){var _=k[g];if(Fe(_)){var B=this._implementationsMap[_.name];B===void 0&&(B=this._implementationsMap[_.name]={objects:[],interfaces:[]}),B.interfaces.push(b)}}else if(Me(b))for(var J=0,V=b.getInterfaces();J<V.length;J++){var F=V[J];if(Fe(F)){var y=this._implementationsMap[F.name];y===void 0&&(y=this._implementationsMap[F.name]={objects:[],interfaces:[]}),y.objects.push(b)}}}}}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(r){return this.getTypeMap()[r]},n.getPossibleTypes=function(r){return sn(r)?r.getTypes():this.getImplementations(r).objects},n.getImplementations=function(r){var i=this._implementationsMap[r.name];return i??{objects:[],interfaces:[]}},n.isPossibleType=function(r,i){return this.isSubType(r,i)},n.isSubType=function(r,i){var u=this._subTypeMap[r.name];if(u===void 0){if(u=Object.create(null),sn(r))for(var a=0,o=r.getTypes();a<o.length;a++){var s=o[a];u[s.name]=!0}else{for(var c=this.getImplementations(r),l=0,f=c.objects;l<f.length;l++){var m=f[l];u[m.name]=!0}for(var d=0,v=c.interfaces;d<v.length;d++){var h=v[d];u[h.name]=!0}}this._subTypeMap[r.name]=u}return u[i.name]!==void 0},n.getDirectives=function(){return this._directives},n.getDirective=function(r){return lc(this.getDirectives(),function(i){return i.name===r})},n.toConfig=function(){var r;return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:_n(this.getTypeMap()),directives:this.getDirectives().slice(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(r=this.extensionASTNodes)!==null&&r!==void 0?r:[],assumeValid:this.__validationErrors!==void 0}},zh(e,[{key:xe,get:function(){return"GraphQLSchema"}}]),e})();function Ze(e,n){var t=jt(e);if(!n.has(t)){if(n.add(t),sn(t))for(var r=0,i=t.getTypes();r<i.length;r++){var u=i[r];Ze(u,n)}else if(Me(t)||Fe(t)){for(var a=0,o=t.getInterfaces();a<o.length;a++){var s=o[a];Ze(s,n)}for(var c=0,l=_n(t.getFields());c<l.length;c++){var f=l[c];Ze(f.type,n);for(var m=0,d=f.args;m<d.length;m++){var v=d[m];Ze(v.type,n)}}}else if(Cn(t))for(var h=0,b=_n(t.getFields());h<b.length;h++){var E=b[h];Ze(E.type,n)}}return n}function Ti(e,n){var t;if(n.kind===C.LIST_TYPE)return t=Ti(e,n.type),t&&new ce(t);if(n.kind===C.NON_NULL_TYPE)return t=Ti(e,n.type),t&&new j(t);if(n.kind===C.NAMED_TYPE)return e.getType(n.name.value);zt(0,"Unexpected type node: "+H(n))}var Uh=function(){function e(t,r,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=r??Ph,i&&(Mn(i)&&this._inputTypeStack.push(i),Uu(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(r){var i=this._schema;switch(r.kind){case C.SELECTION_SET:{var u=jt(this.getType());this._parentTypeStack.push(Uu(u)?u:void 0);break}case C.FIELD:{var a=this.getParentType(),o,s;a&&(o=this._getFieldDef(i,a,r),o&&(s=o.type)),this._fieldDefStack.push(o),this._typeStack.push(_i(s)?s:void 0);break}case C.DIRECTIVE:this._directive=i.getDirective(r.name.value);break;case C.OPERATION_DEFINITION:{var c;switch(r.operation){case"query":c=i.getQueryType();break;case"mutation":c=i.getMutationType();break;case"subscription":c=i.getSubscriptionType();break}this._typeStack.push(Me(c)?c:void 0);break}case C.INLINE_FRAGMENT:case C.FRAGMENT_DEFINITION:{var l=r.typeCondition,f=l?Ti(i,l):jt(this.getType());this._typeStack.push(_i(f)?f:void 0);break}case C.VARIABLE_DEFINITION:{var m=Ti(i,r.type);this._inputTypeStack.push(Mn(m)?m:void 0);break}case C.ARGUMENT:{var d,v,h,b=(d=this.getDirective())!==null&&d!==void 0?d:this.getFieldDef();b&&(v=lc(b.args,function(F){return F.name===r.name.value}),v&&(h=v.type)),this._argument=v,this._defaultValueStack.push(v?v.defaultValue:void 0),this._inputTypeStack.push(Mn(h)?h:void 0);break}case C.LIST:{var E=uh(this.getInputType()),g=Rt(E)?E.ofType:E;this._defaultValueStack.push(void 0),this._inputTypeStack.push(Mn(g)?g:void 0);break}case C.OBJECT_FIELD:{var k=jt(this.getInputType()),_,B;Cn(k)&&(B=k.getFields()[r.name.value],B&&(_=B.type)),this._defaultValueStack.push(B?B.defaultValue:void 0),this._inputTypeStack.push(Mn(_)?_:void 0);break}case C.ENUM:{var J=jt(this.getInputType()),V;cn(J)&&(V=J.getValue(r.value)),this._enumValue=V;break}}},n.leave=function(r){switch(r.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 Ph(e,n,t){var r=t.name.value;if(r===xc.name&&e.getQueryType()===n)return xc;if(r===Fc.name&&e.getQueryType()===n)return Fc;if(r===Nc.name&&Uu(n))return Nc;if(Me(n)||Fe(n))return n.getFields()[r]}function Rh(e,n){return{enter:function(r){e.enter(r);var i=Nu(n,r.kind,!1);if(i){var u=i.apply(n,arguments);return u!==void 0&&(e.leave(r),Fu(u)&&e.enter(u)),u}},leave:function(r){var i=Nu(n,r.kind,!0),u;return i&&(u=i.apply(n,arguments)),e.leave(r),u}}}[].concat(Bc,Tc).map(function(e){return e.name});var dn;function Kn(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}dn={},Kn(dn,C.SCALAR_TYPE_DEFINITION,C.SCALAR_TYPE_EXTENSION),Kn(dn,C.OBJECT_TYPE_DEFINITION,C.OBJECT_TYPE_EXTENSION),Kn(dn,C.INTERFACE_TYPE_DEFINITION,C.INTERFACE_TYPE_EXTENSION),Kn(dn,C.UNION_TYPE_DEFINITION,C.UNION_TYPE_EXTENSION),Kn(dn,C.ENUM_TYPE_DEFINITION,C.ENUM_TYPE_EXTENSION),Kn(dn,C.INPUT_OBJECT_TYPE_DEFINITION,C.INPUT_OBJECT_TYPE_EXTENSION);function Oc(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n}var zc=function(){function e(t,r){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=r}var n=e.prototype;return n.reportError=function(r){this._onError(r)},n.getDocument=function(){return this._ast},n.getFragment=function(r){var i=this._fragments;return i||(this._fragments=i=this.getDocument().definitions.reduce(function(u,a){return a.kind===C.FRAGMENT_DEFINITION&&(u[a.name.value]=a),u},Object.create(null))),i[r]},n.getFragmentSpreads=function(r){var i=this._fragmentSpreads.get(r);if(!i){i=[];for(var u=[r];u.length!==0;)for(var a=u.pop(),o=0,s=a.selections;o<s.length;o++){var c=s[o];c.kind===C.FRAGMENT_SPREAD?i.push(c):c.selectionSet&&u.push(c.selectionSet)}this._fragmentSpreads.set(r,i)}return i},n.getRecursivelyReferencedFragments=function(r){var i=this._recursivelyReferencedFragments.get(r);if(!i){i=[];for(var u=Object.create(null),a=[r.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(u[f]!==!0){u[f]=!0;var m=this.getFragment(f);m&&(i.push(m),a.push(m.selectionSet))}}this._recursivelyReferencedFragments.set(r,i)}return i},e}();(function(e){Oc(n,e);function n(r,i,u){var a;return a=e.call(this,r,u)||this,a._schema=i,a}var t=n.prototype;return t.getSchema=function(){return this._schema},n})(zc),function(e){Oc(n,e);function n(r,i,u,a){var o;return o=e.call(this,i,a)||this,o._schema=r,o._typeInfo=u,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 u=this._variableUsages.get(i);if(!u){var a=[],o=new Uh(this._schema);cc(i,Rh(o,{VariableDefinition:function(){return!1},Variable:function(c){a.push({node:c,type:o.getInputType(),defaultValue:o.getDefaultValue()})}})),u=a,this._variableUsages.set(i,u)}return u},t.getRecursiveVariableUsages=function(i){var u=this._recursiveVariableUsages.get(i);if(!u){u=this.getVariableUsages(i);for(var a=0,o=this.getRecursivelyReferencedFragments(i);a<o.length;a++){var s=o[a];u=u.concat(this.getVariableUsages(s))}this._recursiveVariableUsages.set(i,u)}return u},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}(zc),dc(Bc.concat(Tc),function(e){return e.name});const Uc=e=>e instanceof Error?e:typeof e=="string"?new Error(e):new Error(String(e)),jh=()=>typeof globalThis.window<"u"&&typeof globalThis.window.document<"u"&&typeof globalThis.navigator<"u",Zu={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"}},Lh=(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 Pc(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function we(e,n){if(!Object.hasOwn(e,n))return;const t=e[n];return typeof t=="string"?t:void 0}function Rc(e,n){if(!Object.hasOwn(e,n))return;const t=e[n];return typeof t=="number"&&Number.isFinite(t)?t:void 0}function jc(e,n){if(!Object.hasOwn(e,n))return;const t=e[n];return typeof t=="boolean"?t:void 0}function Lc(e,n){if(!Object.hasOwn(e,n))return;const t=e[n];return t===null?null:typeof t=="string"?t:void 0}function Zh(e,n){const t=Object.hasOwn(e,n)?e[n]:void 0;if(!Array.isArray(t))return;const r=[];for(const i of t){if(!Pc(i))continue;const u=we(i,"field"),a=we(i,"message");if(u===void 0||a===void 0)continue;const o=we(i,"code");r.push({field:u,message:a,...o!==void 0?{code:o}:{}})}return r.length>0?r:void 0}function le(e,n,t){t!==void 0&&(e[n]=t)}function Vh(e){if(!Pc(e))return;const n={};return le(n,"type",we(e,"type")),le(n,"title",we(e,"title")),le(n,"status",Rc(e,"status")),le(n,"detail",we(e,"detail")),le(n,"instance",we(e,"instance")),le(n,"code",we(e,"code")),le(n,"field",we(e,"field")),le(n,"errors",Zh(e,"errors")),le(n,"retryable",jc(e,"retryable")),le(n,"retryAfter",Rc(e,"retryAfter")),le(n,"suggestedAction",we(e,"suggestedAction")),le(n,"clearsAt",Lc(e,"clearsAt")),le(n,"availableAt",Lc(e,"availableAt")),le(n,"permanent",jc(e,"permanent")),le(n,"realm",we(e,"realm")),le(n,"scope",we(e,"scope")),le(n,"resourceType",we(e,"resourceType")),le(n,"resourceId",we(e,"resourceId")),Object.keys(n).length>0?n:void 0}function qh(e){if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}function Vu(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 Zc 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;problem;headers;requestId;traceId;timestamp;constructor(n,t,r,i){super(be.makeMessage(t,r)),this.status=n,this.error=t,this.headers=i,this.timestamp=new Date().toISOString();const u=Vh(t);u&&(this.problem=u);const a=i?.requestId;a&&(this.requestId=a);const o=i?.traceId;o&&(this.traceId=o)}static makeMessage(n,t){const r=Vu(n,"detail");if(r)return r;const i=Vu(n,"title");return i||Vu(n,"message")||(n!==void 0?qh(n):t||"Unknown error occurred")}static generate(n,t,r,i){return n?n===400?new qc(n,t,r,i):n===401?new Mc(n,t,r,i):n===403?new Gc(n,t,r,i):n===404?new Jc(n,t,r,i):n===409?new Hc(n,t,r,i):n===422?new Kc(n,t,r,i):n===429?new Qc(n,t,r,i):n>=500?new Wc(n,t,r,i):new be(n,t,r,i):new Oi({cause:Uc(t)})}}class Mh extends be{status=void 0;constructor({message:n}={}){super(void 0,void 0,n||"Request was aborted.",void 0)}}class Oi 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 Vc extends Oi{constructor(){super({message:"Request timed out."})}}class qc extends be{name="BadRequestError";status=400}class Mc extends be{name="AuthenticationError";status=401}class Gc extends be{name="PermissionDeniedError";status=403}class Jc extends be{name="NotFoundError";status=404}class Hc extends be{name="ConflictError";status=409}class Kc extends be{name="UnprocessableEntityError";status=422}class Qc extends be{name="RateLimitError";status=429}class Wc extends be{name="InternalServerError"}function qu(e){return e instanceof be}function Gh(e,n){return qu(e)&&e.problem?.type===n}function Jh(e,n){return qu(e)&&e.problem?.code===n}const Hh=e=>{try{return JSON.parse(e)}catch{return}},Yc=10,Xc=100;function Kh(e){if(!e||!e.definitions)throw new Error("Invalid GraphQL query: missing definitions");const n=e.definitions.filter(u=>u.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],r=Qh(t);if(r>Yc)throw new Error(`GraphQL query too deep: ${r} levels (max: ${Yc})`);const i=Wh(t);if(i>Xc)throw new Error(`GraphQL query too complex: ${i} fields (max: ${Xc})`);if(t.operation!=="query"&&t.operation!=="mutation")throw new Error(`Invalid GraphQL operation type: ${t.operation}`)}function Qh(e){function n(t){let r=0;for(const i of t.selections)if(i.kind==="Field"&&i.selectionSet){const u=1+n(i.selectionSet);r=Math.max(r,u)}else if(i.kind==="InlineFragment"&&i.selectionSet){const u=n(i.selectionSet);r=Math.max(r,u)}else i.kind==="FragmentSpread"&&(r=Math.max(r,1));return r}return n(e.selectionSet)}function Wh(e){function n(t){let r=0;for(const i of t.selections)r+=1,i.kind==="Field"&&i.selectionSet||i.kind==="InlineFragment"&&i.selectionSet?r+=n(i.selectionSet):i.kind==="FragmentSpread"&&(r+=5);return r}return n(e.selectionSet)}function Yh(e){if(!e)return;const n=Object.create(null);for(const[t,r]of Object.entries(e)){if(!Xh(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]=Mu(r)}return n}function Xh(e){return/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(e)}function e0(e){return Array.from(e).filter(n=>{const t=n.charCodeAt(0);return t>31&&t!==127}).join("")}function Mu(e){if(e==null)return e;if(typeof e=="string")return e0(e);if(typeof e=="number"||typeof e=="boolean")return e;if(Array.isArray(e))return e.map(Mu);if(typeof e=="object"){const n=Object.create(null);for(const[t,r]of Object.entries(e)){if(t.includes("__proto__")||t.includes("constructor"))throw new Error(`Invalid property name: ${t}`);n[t]=Mu(r)}return n}return e0(String(e))}const eg="sha256=";function n0(e){return Array.from(new Uint8Array(e)).map(n=>n.toString(16).padStart(2,"0")).join("")}async function ng(e){const n=new TextEncoder().encode(e),t=await crypto.subtle.digest("SHA-256",n);return n0(t)}async function tg(e,n){const t=new TextEncoder,r=await crypto.subtle.importKey("raw",t.encode(e),{name:"HMAC",hash:"SHA-256"},!1,["sign"]),i=await crypto.subtle.sign("HMAC",r,t.encode(n));return n0(i)}const ig=/[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDFFF]/g,rg="\uFFFD";function ug(e){return e.replace(ig,n=>n.length===2?n:rg)}function t0(e){return encodeURIComponent(ug(e)).replace(/'/g,"%27")}function i0(e){const n=[...e];return n.length===0?"":n.sort(([t],[r])=>t<r?-1:t>r?1:0).map(([t,r])=>`${t0(t)}=${t0(r)}`).join("&")}function ag(e){return i0(e.searchParams)}function og(e){const n=ag(e);return n===""?e.pathname:`${e.pathname}?${n}`}async function sg(e,n,t){const r=t.body?await ng(t.body):"",i=`${n}.${t.method.toUpperCase()}.${t.path}.${r}`,u=await tg(e,i);return`${eg}${u}`}async function cg(e,n,t,r,i){const u=new URL(r),a=og(u),o=Date.now(),s=await sg(n,o,{method:t,path:a,body:i});return{"X-Integrator-Key":e,"X-Signature":s,"X-Timestamp":String(o)}}async function Gu(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 lg{baseGraphURL;baseRestURL;baseRestApiURL;timeout;apiKey;integrationKey;integratorSecret;constructor({environment:n,timeout:t=3e5,apiKey:r,integrationKey:i,integratorSecret:u}){this.apiKey=r,this.integrationKey=i,this.integratorSecret=u,this.baseGraphURL=Zu[n].graphEndpoint,this.baseRestURL=Zu[n].baseEndpoint,this.baseRestApiURL=Zu[n].restEndpoint,this.timeout=Lh("timeout",t)}async query({query:n,variables:t}){Kh(n);const r=Yh(t);return this.sendQuery({query:n,variables:r}).then(i=>Gu(i)).then(({response:i,headers:u})=>{if(i.data)return i.data;if(i.errors){const a=i.errors[0]??{message:"Unknown error"};throw new Zc(a.message,u)}else throw new Error("Unknown error")})}async request({method:n,path:t,body:r=void 0}){return this.sendRequest({method:n,path:t,body:r}).then(i=>Gu(i)).then(({response:i})=>i)}get usesIntegratorAuth(){return!!(this.integrationKey&&this.integratorSecret)}async restApi({method:n,path:t,body:r=void 0,query:i,headers:u}){return this.sendRestApiRequest({method:n,path:t,body:r,...i?{query:i}:{},...u?{headers:u}:{}}).then(a=>Gu(a)).then(({response:a})=>a)}async sendQuery({query:n,variables:t}){const{url:r,req:i,timeout:u}=this.buildGraphRequest({query:n,variables:t});return this.sendHTTPRequest({url:r,req:i,timeout:u})}async sendRequest({method:n,path:t,body:r}){const{url:i,req:u,timeout:a}=this.buildRestRequest(n,t,r);return this.sendHTTPRequest({url:i,req:u,timeout:a})}async sendRestApiRequest({method:n,path:t,body:r,query:i,headers:u}){const{url:a,req:o,timeout:s}=this.buildRestRequest(n,t,r,this.baseRestApiURL,i,u);if(this.integrationKey&&this.integratorSecret){const c=await cg(this.integrationKey,this.integratorSecret,n,a,o.body??null),{"X-INTEGRATION-KEY":l,...f}=o.headers;o.headers={...f,...c}}return this.sendHTTPRequest({url:a,req:o,timeout:s})}async sendHTTPRequest({url:n,req:t,timeout:r}){const i=new AbortController,u=await this.fetchWithTimeout(n,t,r,i).catch(Uc);if(u instanceof Error)throw u.name==="AbortError"?new Vc:new Oi({cause:u});const a=this.getResponseHeaders(u.headers);if(!u.ok){const o=await u.text().catch(()=>"Unknown error"),s=Hh(o);throw this.makeStatusError(u.status,s,s?void 0:o,a)}return{response:u,controller:i,headers:a}}getResponseHeaders(n){const t=n.get("x-amzn-trace-id"),r=n.get("x-amzn-requestid");return{traceId:t,requestId:r}}async fetchWithTimeout(n,t,r,i){const{signal:u,...a}=t||{},o=AbortSignal.timeout(r),s=u?AbortSignal.any([u,o,i.signal]):AbortSignal.any([o,i.signal]);return fetch(n,{...a,signal:s})}buildGraphRequest({query:n,variables:t}){const r={query:We(n),variables:t,operationName:n?.definitions?.[0]?.name?.value},i=r?JSON.stringify(r,null,2):null,u=this.calculateContentLength(i),a=this.timeout,o={...u&&{"Content-Length":u},...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,r,i,u,a){const o=r?JSON.stringify(r):null,s=this.calculateContentLength(o),c=this.timeout,l={...s&&{"Content-Length":s},...this.defaultHeaders(),...a??{}},f=Object.fromEntries(Object.entries(l).filter(([b,E])=>E!==null)),m={method:n,...o?{body:o}:{},headers:f},d=i??this.baseRestURL,v=t.startsWith("/")?t:"/"+t,h=new URL(v,d);if(u){const b=Object.entries(u).filter(g=>g[1]!==void 0).map(([g,k])=>[g,String(k)]),E=i0(b);E&&(h.search=`?${E}`)}return{url:h.toString(),req:m,timeout:c}}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,r,i){return be.generate(n,t,r,i)}}function dg(e){if(!(!e||typeof e!="object"))return e}function fg(e,n){return e.replace(/\{([^}]+)\}/g,(t,r)=>{if(!n||!(r in n))throw new Error(`Missing path parameter: ${r}`);const i=n[r];if(i==null)throw new Error(`Missing path parameter: ${r}`);return encodeURIComponent(String(i))})}function mg(e){if(!e)return;const n=[];for(const[t,r]of Object.entries(e))if(r!==void 0){if(typeof r!="string"&&typeof r!="number"&&typeof r!="boolean")throw new Error(`Unsupported query parameter value for ${t}`);n.push([t,r])}return n.length>0?Object.fromEntries(n):void 0}function vg(e){if(!e)return;const n=[];for(const[t,r]of Object.entries(e))if(r!==void 0){if(typeof r!="string"||r.length===0)throw new Error(`Unsupported header value for ${t}`);n.push([t,r])}return n.length>0?Object.fromEntries(n):void 0}function M(e,n,...[t]){const r=dg(t?.params),i=fg(e,r),u=mg(t?.query),a=vg(t?.headers),o=t?.body;return{method:n,path:i,...o!==void 0?{body:o}:{},...u?{query:u}:{},...a?{headers:a}:{}}}class pg{client;constructor(n){this.client=n}async checkEligibility(n){return this.client.restApi(M("/v1/ach-debit/eligibility","post",{body:n}))}}class hg{client;constructor(n){this.client=n}async list(n){return this.client.restApi(M("/v1/integrator/ach-debit/returns","get",n?{query:n}:void 0))}async get(n){return this.client.restApi(M("/v1/integrator/ach-debit/returns/{returnId}","get",{params:{returnId:n}}))}}class gg{client;constructor(n){this.client=n}async list(){return this.client.restApi(M("/v1/bank-accounts/","get"))}async get(n){return this.client.restApi(M("/v1/bank-accounts/{accountId}","get",{params:{accountId:n}}))}async create(n){return this.client.restApi(M("/v1/bank-accounts/","post",{body:n}))}async delete(n){return this.client.restApi(M("/v1/bank-accounts/{accountId}","delete",{params:{accountId:n}}))}async createLinkToken(n){return this.client.restApi(M("/v1/bank-accounts/link-token","post",n?{body:n}:void 0))}async completeLinking(n){return this.client.restApi(M("/v1/bank-accounts/link-complete","post",{body:n}))}}var qt={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}};qt.loc.source={body:`fragment BillFragment on Bill {
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 L(ie),resolve:function(t){return t.name}},description:{type:ie,resolve:function(t){return t.description}},isRepeatable:{type:new L(Ne),resolve:function(t){return t.isRepeatable}},locations:{type:new L(new ce(new L(_c))),resolve:function(t){return t.locations}},args:{type:new L(new ce(new L(Ni))),args:{includeDeprecated:{type:Ne,defaultValue:!1}},resolve:function(t,r){var i=r.includeDeprecated;return i?t.args:t.args.filter(function(u){return u.deprecationReason==null})}}}}}),_c=new $i({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."}}}),Le=new ln({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 L(Ic),resolve:function(t){if(Pt(t))return me.SCALAR;if(Me(t))return me.OBJECT;if(Fe(t))return me.INTERFACE;if(sn(t))return me.UNION;if(cn(t))return me.ENUM;if(Cn(t))return me.INPUT_OBJECT;if(Rt(t))return me.LIST;if(qn(t))return me.NON_NULL;zt(0,'Unexpected type: "'.concat(H(t),'".'))}},name:{type:ie,resolve:function(t){return t.name!==void 0?t.name:void 0}},description:{type:ie,resolve:function(t){return t.description!==void 0?t.description:void 0}},specifiedByUrl:{type:ie,resolve:function(t){return t.specifiedByUrl!==void 0?t.specifiedByUrl:void 0}},fields:{type:new ce(new L(Cc)),args:{includeDeprecated:{type:Ne,defaultValue:!1}},resolve:function(t,r){var i=r.includeDeprecated;if(Me(t)||Fe(t)){var u=_n(t.getFields());return i?u:u.filter(function(a){return a.deprecationReason==null})}}},interfaces:{type:new ce(new L(Le)),resolve:function(t){if(Me(t)||Fe(t))return t.getInterfaces()}},possibleTypes:{type:new ce(new L(Le)),resolve:function(t,r,i,u){var a=u.schema;if(th(t))return a.getPossibleTypes(t)}},enumValues:{type:new ce(new L($c)),args:{includeDeprecated:{type:Ne,defaultValue:!1}},resolve:function(t,r){var i=r.includeDeprecated;if(cn(t)){var u=t.getValues();return i?u:u.filter(function(a){return a.deprecationReason==null})}}},inputFields:{type:new ce(new L(Ni)),args:{includeDeprecated:{type:Ne,defaultValue:!1}},resolve:function(t,r){var i=r.includeDeprecated;if(Cn(t)){var u=_n(t.getFields());return i?u:u.filter(function(a){return a.deprecationReason==null})}}},ofType:{type:Le,resolve:function(t){return t.ofType!==void 0?t.ofType:void 0}}}}}),Cc=new ln({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 L(ie),resolve:function(t){return t.name}},description:{type:ie,resolve:function(t){return t.description}},args:{type:new L(new ce(new L(Ni))),args:{includeDeprecated:{type:Ne,defaultValue:!1}},resolve:function(t,r){var i=r.includeDeprecated;return i?t.args:t.args.filter(function(u){return u.deprecationReason==null})}},type:{type:new L(Le),resolve:function(t){return t.type}},isDeprecated:{type:new L(Ne),resolve:function(t){return t.deprecationReason!=null}},deprecationReason:{type:ie,resolve:function(t){return t.deprecationReason}}}}}),Ni=new ln({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 L(ie),resolve:function(t){return t.name}},description:{type:ie,resolve:function(t){return t.description}},type:{type:new L(Le),resolve:function(t){return t.type}},defaultValue:{type:ie,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(t){var r=t.type,i=t.defaultValue,u=Vt(i,r);return u?We(u):null}},isDeprecated:{type:new L(Ne),resolve:function(t){return t.deprecationReason!=null}},deprecationReason:{type:ie,resolve:function(t){return t.deprecationReason}}}}}),$c=new ln({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 L(ie),resolve:function(t){return t.name}},description:{type:ie,resolve:function(t){return t.description}},isDeprecated:{type:new L(Ne),resolve:function(t){return t.deprecationReason!=null}},deprecationReason:{type:ie,resolve:function(t){return t.deprecationReason}}}}}),me=Object.freeze({SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"}),Ic=new $i({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:me.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:me.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:me.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:me.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:me.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:me.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:me.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:me.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),xc={name:"__schema",type:new L(Lu),description:"Access the current type schema of this server.",args:[],resolve:function(n,t,r,i){var u=i.schema;return u},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},Fc={name:"__type",type:Le,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new L(ie),defaultValue:void 0,deprecationReason:void 0,extensions:void 0,astNode:void 0}],resolve:function(n,t,r,i){var u=t.name,a=i.schema;return a.getType(u)},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},Nc={name:"__typename",type:new L(ie),description:"The name of the current Object type at runtime.",args:[],resolve:function(n,t,r,i){var u=i.parentType;return u.name},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},Tc=Object.freeze([Lu,wc,_c,Le,Cc,Ni,$c,Ic]);function wh(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _h(e,n,t){return n&&wh(e.prototype,n),e}function Ch(e){return Ke(e,Hn)}var Hn=function(){function e(t){var r,i;this.name=t.name,this.description=t.description,this.locations=t.locations,this.isRepeatable=(r=t.isRepeatable)!==null&&r!==void 0?r:!1,this.extensions=t.extensions&&$e(t.extensions),this.astNode=t.astNode,t.name||M(0,"Directive must be named."),Array.isArray(t.locations)||M(0,"@".concat(t.name," locations must be an Array."));var u=(i=t.args)!==null&&i!==void 0?i:{};wn(u)&&!Array.isArray(u)||M(0,"@".concat(t.name," args must be an object with argument names as keys.")),this.args=Ut(u).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:yc(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}},n.toString=function(){return"@"+this.name},n.toJSON=function(){return this.toString()},_h(e,[{key:xe,get:function(){return"GraphQLDirective"}}]),e}();Pe(Hn);var $h=new Hn({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 L(Ne),description:"Included when true."}}}),Ih=new Hn({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 L(Ne),description:"Skipped when true."}}}),xh="No longer supported",Fh=new Hn({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:ie,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:xh}}}),Nh=new Hn({name:"specifiedBy",description:"Exposes a URL that specifies the behaviour of this scalar.",locations:[K.SCALAR],args:{url:{type:new L(ie),description:"The URL that specifies the behaviour of this scalar."}}}),Th=Object.freeze([$h,Ih,Fh,Nh]);function Oh(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zh(e,n,t){return n&&Oh(e.prototype,n),e}(function(){function e(t){var r;this.__validationErrors=t.assumeValid===!0?[]:void 0,wn(t)||M(0,"Must provide configuration object."),!t.types||Array.isArray(t.types)||M(0,'"types" must be Array if provided but got: '.concat(H(t.types),".")),!t.directives||Array.isArray(t.directives)||M(0,'"directives" must be Array if provided but got: '+"".concat(H(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=(r=t.directives)!==null&&r!==void 0?r:Th;var i=new Set(t.types);if(t.types!=null)for(var u=0,a=t.types;u<a.length;u++){var o=a[u];i.delete(o),Ze(o,i)}this._queryType!=null&&Ze(this._queryType,i),this._mutationType!=null&&Ze(this._mutationType,i),this._subscriptionType!=null&&Ze(this._subscriptionType,i);for(var s=0,c=this._directives;s<c.length;s++){var l=c[s];if(Ch(l))for(var f=0,m=l.args;f<m.length;f++){var d=m[f];Ze(d.type,i)}}Ze(Lu,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(var v=0,h=lh(i);v<h.length;v++){var b=h[v];if(b!=null){var E=b.name;if(E||M(0,"One of the provided types for building the Schema is missing a name."),this._typeMap[E]!==void 0)throw new Error('Schema must contain uniquely named types but contains multiple types named "'.concat(E,'".'));if(this._typeMap[E]=b,Fe(b))for(var g=0,k=b.getInterfaces();g<k.length;g++){var _=k[g];if(Fe(_)){var B=this._implementationsMap[_.name];B===void 0&&(B=this._implementationsMap[_.name]={objects:[],interfaces:[]}),B.interfaces.push(b)}}else if(Me(b))for(var J=0,q=b.getInterfaces();J<q.length;J++){var F=q[J];if(Fe(F)){var y=this._implementationsMap[F.name];y===void 0&&(y=this._implementationsMap[F.name]={objects:[],interfaces:[]}),y.objects.push(b)}}}}}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(r){return this.getTypeMap()[r]},n.getPossibleTypes=function(r){return sn(r)?r.getTypes():this.getImplementations(r).objects},n.getImplementations=function(r){var i=this._implementationsMap[r.name];return i??{objects:[],interfaces:[]}},n.isPossibleType=function(r,i){return this.isSubType(r,i)},n.isSubType=function(r,i){var u=this._subTypeMap[r.name];if(u===void 0){if(u=Object.create(null),sn(r))for(var a=0,o=r.getTypes();a<o.length;a++){var s=o[a];u[s.name]=!0}else{for(var c=this.getImplementations(r),l=0,f=c.objects;l<f.length;l++){var m=f[l];u[m.name]=!0}for(var d=0,v=c.interfaces;d<v.length;d++){var h=v[d];u[h.name]=!0}}this._subTypeMap[r.name]=u}return u[i.name]!==void 0},n.getDirectives=function(){return this._directives},n.getDirective=function(r){return lc(this.getDirectives(),function(i){return i.name===r})},n.toConfig=function(){var r;return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:_n(this.getTypeMap()),directives:this.getDirectives().slice(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(r=this.extensionASTNodes)!==null&&r!==void 0?r:[],assumeValid:this.__validationErrors!==void 0}},zh(e,[{key:xe,get:function(){return"GraphQLSchema"}}]),e})();function Ze(e,n){var t=jt(e);if(!n.has(t)){if(n.add(t),sn(t))for(var r=0,i=t.getTypes();r<i.length;r++){var u=i[r];Ze(u,n)}else if(Me(t)||Fe(t)){for(var a=0,o=t.getInterfaces();a<o.length;a++){var s=o[a];Ze(s,n)}for(var c=0,l=_n(t.getFields());c<l.length;c++){var f=l[c];Ze(f.type,n);for(var m=0,d=f.args;m<d.length;m++){var v=d[m];Ze(v.type,n)}}}else if(Cn(t))for(var h=0,b=_n(t.getFields());h<b.length;h++){var E=b[h];Ze(E.type,n)}}return n}function Ti(e,n){var t;if(n.kind===C.LIST_TYPE)return t=Ti(e,n.type),t&&new ce(t);if(n.kind===C.NON_NULL_TYPE)return t=Ti(e,n.type),t&&new L(t);if(n.kind===C.NAMED_TYPE)return e.getType(n.name.value);zt(0,"Unexpected type node: "+H(n))}var Uh=function(){function e(t,r,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=r??Ph,i&&(Mn(i)&&this._inputTypeStack.push(i),Uu(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(r){var i=this._schema;switch(r.kind){case C.SELECTION_SET:{var u=jt(this.getType());this._parentTypeStack.push(Uu(u)?u:void 0);break}case C.FIELD:{var a=this.getParentType(),o,s;a&&(o=this._getFieldDef(i,a,r),o&&(s=o.type)),this._fieldDefStack.push(o),this._typeStack.push(_i(s)?s:void 0);break}case C.DIRECTIVE:this._directive=i.getDirective(r.name.value);break;case C.OPERATION_DEFINITION:{var c;switch(r.operation){case"query":c=i.getQueryType();break;case"mutation":c=i.getMutationType();break;case"subscription":c=i.getSubscriptionType();break}this._typeStack.push(Me(c)?c:void 0);break}case C.INLINE_FRAGMENT:case C.FRAGMENT_DEFINITION:{var l=r.typeCondition,f=l?Ti(i,l):jt(this.getType());this._typeStack.push(_i(f)?f:void 0);break}case C.VARIABLE_DEFINITION:{var m=Ti(i,r.type);this._inputTypeStack.push(Mn(m)?m:void 0);break}case C.ARGUMENT:{var d,v,h,b=(d=this.getDirective())!==null&&d!==void 0?d:this.getFieldDef();b&&(v=lc(b.args,function(F){return F.name===r.name.value}),v&&(h=v.type)),this._argument=v,this._defaultValueStack.push(v?v.defaultValue:void 0),this._inputTypeStack.push(Mn(h)?h:void 0);break}case C.LIST:{var E=uh(this.getInputType()),g=Rt(E)?E.ofType:E;this._defaultValueStack.push(void 0),this._inputTypeStack.push(Mn(g)?g:void 0);break}case C.OBJECT_FIELD:{var k=jt(this.getInputType()),_,B;Cn(k)&&(B=k.getFields()[r.name.value],B&&(_=B.type)),this._defaultValueStack.push(B?B.defaultValue:void 0),this._inputTypeStack.push(Mn(_)?_:void 0);break}case C.ENUM:{var J=jt(this.getInputType()),q;cn(J)&&(q=J.getValue(r.value)),this._enumValue=q;break}}},n.leave=function(r){switch(r.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 Ph(e,n,t){var r=t.name.value;if(r===xc.name&&e.getQueryType()===n)return xc;if(r===Fc.name&&e.getQueryType()===n)return Fc;if(r===Nc.name&&Uu(n))return Nc;if(Me(n)||Fe(n))return n.getFields()[r]}function Rh(e,n){return{enter:function(r){e.enter(r);var i=Nu(n,r.kind,!1);if(i){var u=i.apply(n,arguments);return u!==void 0&&(e.leave(r),Fu(u)&&e.enter(u)),u}},leave:function(r){var i=Nu(n,r.kind,!0),u;return i&&(u=i.apply(n,arguments)),e.leave(r),u}}}[].concat(Bc,Tc).map(function(e){return e.name});var dn;function Qn(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}dn={},Qn(dn,C.SCALAR_TYPE_DEFINITION,C.SCALAR_TYPE_EXTENSION),Qn(dn,C.OBJECT_TYPE_DEFINITION,C.OBJECT_TYPE_EXTENSION),Qn(dn,C.INTERFACE_TYPE_DEFINITION,C.INTERFACE_TYPE_EXTENSION),Qn(dn,C.UNION_TYPE_DEFINITION,C.UNION_TYPE_EXTENSION),Qn(dn,C.ENUM_TYPE_DEFINITION,C.ENUM_TYPE_EXTENSION),Qn(dn,C.INPUT_OBJECT_TYPE_DEFINITION,C.INPUT_OBJECT_TYPE_EXTENSION);function Oc(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n}var zc=function(){function e(t,r){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=r}var n=e.prototype;return n.reportError=function(r){this._onError(r)},n.getDocument=function(){return this._ast},n.getFragment=function(r){var i=this._fragments;return i||(this._fragments=i=this.getDocument().definitions.reduce(function(u,a){return a.kind===C.FRAGMENT_DEFINITION&&(u[a.name.value]=a),u},Object.create(null))),i[r]},n.getFragmentSpreads=function(r){var i=this._fragmentSpreads.get(r);if(!i){i=[];for(var u=[r];u.length!==0;)for(var a=u.pop(),o=0,s=a.selections;o<s.length;o++){var c=s[o];c.kind===C.FRAGMENT_SPREAD?i.push(c):c.selectionSet&&u.push(c.selectionSet)}this._fragmentSpreads.set(r,i)}return i},n.getRecursivelyReferencedFragments=function(r){var i=this._recursivelyReferencedFragments.get(r);if(!i){i=[];for(var u=Object.create(null),a=[r.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(u[f]!==!0){u[f]=!0;var m=this.getFragment(f);m&&(i.push(m),a.push(m.selectionSet))}}this._recursivelyReferencedFragments.set(r,i)}return i},e}();(function(e){Oc(n,e);function n(r,i,u){var a;return a=e.call(this,r,u)||this,a._schema=i,a}var t=n.prototype;return t.getSchema=function(){return this._schema},n})(zc),function(e){Oc(n,e);function n(r,i,u,a){var o;return o=e.call(this,i,a)||this,o._schema=r,o._typeInfo=u,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 u=this._variableUsages.get(i);if(!u){var a=[],o=new Uh(this._schema);cc(i,Rh(o,{VariableDefinition:function(){return!1},Variable:function(c){a.push({node:c,type:o.getInputType(),defaultValue:o.getDefaultValue()})}})),u=a,this._variableUsages.set(i,u)}return u},t.getRecursiveVariableUsages=function(i){var u=this._recursiveVariableUsages.get(i);if(!u){u=this.getVariableUsages(i);for(var a=0,o=this.getRecursivelyReferencedFragments(i);a<o.length;a++){var s=o[a];u=u.concat(this.getVariableUsages(s))}this._recursiveVariableUsages.set(i,u)}return u},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}(zc),dc(Bc.concat(Tc),function(e){return e.name});const Uc=e=>e instanceof Error?e:typeof e=="string"?new Error(e):new Error(String(e)),jh=()=>typeof globalThis.window<"u"&&typeof globalThis.window.document<"u"&&typeof globalThis.navigator<"u",Zu={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"}},Lh=(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 Pc(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function we(e,n){if(!Object.hasOwn(e,n))return;const t=e[n];return typeof t=="string"?t:void 0}function Rc(e,n){if(!Object.hasOwn(e,n))return;const t=e[n];return typeof t=="number"&&Number.isFinite(t)?t:void 0}function jc(e,n){if(!Object.hasOwn(e,n))return;const t=e[n];return typeof t=="boolean"?t:void 0}function Lc(e,n){if(!Object.hasOwn(e,n))return;const t=e[n];return t===null?null:typeof t=="string"?t:void 0}function Zh(e,n){const t=Object.hasOwn(e,n)?e[n]:void 0;if(!Array.isArray(t))return;const r=[];for(const i of t){if(!Pc(i))continue;const u=we(i,"field"),a=we(i,"message");if(u===void 0||a===void 0)continue;const o=we(i,"code");r.push({field:u,message:a,...o!==void 0?{code:o}:{}})}return r.length>0?r:void 0}function le(e,n,t){t!==void 0&&(e[n]=t)}function Vh(e){if(!Pc(e))return;const n={};return le(n,"type",we(e,"type")),le(n,"title",we(e,"title")),le(n,"status",Rc(e,"status")),le(n,"detail",we(e,"detail")),le(n,"instance",we(e,"instance")),le(n,"code",we(e,"code")),le(n,"field",we(e,"field")),le(n,"errors",Zh(e,"errors")),le(n,"retryable",jc(e,"retryable")),le(n,"retryAfter",Rc(e,"retryAfter")),le(n,"suggestedAction",we(e,"suggestedAction")),le(n,"clearsAt",Lc(e,"clearsAt")),le(n,"availableAt",Lc(e,"availableAt")),le(n,"permanent",jc(e,"permanent")),le(n,"realm",we(e,"realm")),le(n,"scope",we(e,"scope")),le(n,"resourceType",we(e,"resourceType")),le(n,"resourceId",we(e,"resourceId")),Object.keys(n).length>0?n:void 0}function qh(e){if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}function Vu(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 Zc 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;problem;headers;requestId;traceId;timestamp;constructor(n,t,r,i){super(be.makeMessage(t,r)),this.status=n,this.error=t,this.headers=i,this.timestamp=new Date().toISOString();const u=Vh(t);u&&(this.problem=u);const a=i?.requestId;a&&(this.requestId=a);const o=i?.traceId;o&&(this.traceId=o)}static makeMessage(n,t){const r=Vu(n,"detail");if(r)return r;const i=Vu(n,"title");return i||Vu(n,"message")||(n!==void 0?qh(n):t||"Unknown error occurred")}static generate(n,t,r,i){return n?n===400?new qc(n,t,r,i):n===401?new Mc(n,t,r,i):n===403?new Gc(n,t,r,i):n===404?new Jc(n,t,r,i):n===409?new Hc(n,t,r,i):n===422?new Qc(n,t,r,i):n===429?new Kc(n,t,r,i):n>=500?new Wc(n,t,r,i):new be(n,t,r,i):new Oi({cause:Uc(t)})}}class Mh extends be{status=void 0;constructor({message:n}={}){super(void 0,void 0,n||"Request was aborted.",void 0)}}class Oi 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 Vc extends Oi{constructor(){super({message:"Request timed out."})}}class qc extends be{name="BadRequestError";status=400}class Mc extends be{name="AuthenticationError";status=401}class Gc extends be{name="PermissionDeniedError";status=403}class Jc extends be{name="NotFoundError";status=404}class Hc extends be{name="ConflictError";status=409}class Qc extends be{name="UnprocessableEntityError";status=422}class Kc extends be{name="RateLimitError";status=429}class Wc extends be{name="InternalServerError"}function qu(e){return e instanceof be}function Gh(e,n){return qu(e)&&e.problem?.type===n}function Jh(e,n){return qu(e)&&e.problem?.code===n}const Hh=e=>{try{return JSON.parse(e)}catch{return}},Yc=10,Xc=100;function Qh(e){if(!e||!e.definitions)throw new Error("Invalid GraphQL query: missing definitions");const n=e.definitions.filter(u=>u.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],r=Kh(t);if(r>Yc)throw new Error(`GraphQL query too deep: ${r} levels (max: ${Yc})`);const i=Wh(t);if(i>Xc)throw new Error(`GraphQL query too complex: ${i} fields (max: ${Xc})`);if(t.operation!=="query"&&t.operation!=="mutation")throw new Error(`Invalid GraphQL operation type: ${t.operation}`)}function Kh(e){function n(t){let r=0;for(const i of t.selections)if(i.kind==="Field"&&i.selectionSet){const u=1+n(i.selectionSet);r=Math.max(r,u)}else if(i.kind==="InlineFragment"&&i.selectionSet){const u=n(i.selectionSet);r=Math.max(r,u)}else i.kind==="FragmentSpread"&&(r=Math.max(r,1));return r}return n(e.selectionSet)}function Wh(e){function n(t){let r=0;for(const i of t.selections)r+=1,i.kind==="Field"&&i.selectionSet||i.kind==="InlineFragment"&&i.selectionSet?r+=n(i.selectionSet):i.kind==="FragmentSpread"&&(r+=5);return r}return n(e.selectionSet)}function Yh(e){if(!e)return;const n=Object.create(null);for(const[t,r]of Object.entries(e)){if(!Xh(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]=Mu(r)}return n}function Xh(e){return/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(e)}function e0(e){return Array.from(e).filter(n=>{const t=n.charCodeAt(0);return t>31&&t!==127}).join("")}function Mu(e){if(e==null)return e;if(typeof e=="string")return e0(e);if(typeof e=="number"||typeof e=="boolean")return e;if(Array.isArray(e))return e.map(Mu);if(typeof e=="object"){const n=Object.create(null);for(const[t,r]of Object.entries(e)){if(t.includes("__proto__")||t.includes("constructor"))throw new Error(`Invalid property name: ${t}`);n[t]=Mu(r)}return n}return e0(String(e))}const eg="sha256=";function n0(e){return Array.from(new Uint8Array(e)).map(n=>n.toString(16).padStart(2,"0")).join("")}async function ng(e){const n=new TextEncoder().encode(e),t=await crypto.subtle.digest("SHA-256",n);return n0(t)}async function tg(e,n){const t=new TextEncoder,r=await crypto.subtle.importKey("raw",t.encode(e),{name:"HMAC",hash:"SHA-256"},!1,["sign"]),i=await crypto.subtle.sign("HMAC",r,t.encode(n));return n0(i)}const ig=/[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDFFF]/g,rg="\uFFFD";function ug(e){return e.replace(ig,n=>n.length===2?n:rg)}function t0(e){return encodeURIComponent(ug(e)).replace(/'/g,"%27")}function i0(e){const n=[...e];return n.length===0?"":n.sort(([t],[r])=>t<r?-1:t>r?1:0).map(([t,r])=>`${t0(t)}=${t0(r)}`).join("&")}function ag(e){return i0(e.searchParams)}function og(e){const n=ag(e);return n===""?e.pathname:`${e.pathname}?${n}`}async function sg(e,n,t){const r=t.body?await ng(t.body):"",i=`${n}.${t.method.toUpperCase()}.${t.path}.${r}`,u=await tg(e,i);return`${eg}${u}`}async function cg(e,n,t,r,i){const u=new URL(r),a=og(u),o=Date.now(),s=await sg(n,o,{method:t,path:a,body:i});return{"X-Integrator-Key":e,"X-Signature":s,"X-Timestamp":String(o)}}async function Gu(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 lg{baseGraphURL;baseRestURL;baseRestApiURL;timeout;apiKey;integrationKey;integratorSecret;constructor({environment:n,timeout:t=3e5,apiKey:r,integrationKey:i,integratorSecret:u}){this.apiKey=r,this.integrationKey=i,this.integratorSecret=u,this.baseGraphURL=Zu[n].graphEndpoint,this.baseRestURL=Zu[n].baseEndpoint,this.baseRestApiURL=Zu[n].restEndpoint,this.timeout=Lh("timeout",t)}async query({query:n,variables:t}){Qh(n);const r=Yh(t);return this.sendQuery({query:n,variables:r}).then(i=>Gu(i)).then(({response:i,headers:u})=>{if(i.data)return i.data;if(i.errors){const a=i.errors[0]??{message:"Unknown error"};throw new Zc(a.message,u)}else throw new Error("Unknown error")})}async request({method:n,path:t,body:r=void 0}){return this.sendRequest({method:n,path:t,body:r}).then(i=>Gu(i)).then(({response:i})=>i)}get usesIntegratorAuth(){return!!(this.integrationKey&&this.integratorSecret)}async restApi({method:n,path:t,body:r=void 0,query:i,headers:u}){return this.sendRestApiRequest({method:n,path:t,body:r,...i?{query:i}:{},...u?{headers:u}:{}}).then(a=>Gu(a)).then(({response:a})=>a)}async sendQuery({query:n,variables:t}){const{url:r,req:i,timeout:u}=this.buildGraphRequest({query:n,variables:t});return this.sendHTTPRequest({url:r,req:i,timeout:u})}async sendRequest({method:n,path:t,body:r}){const{url:i,req:u,timeout:a}=this.buildRestRequest(n,t,r);return this.sendHTTPRequest({url:i,req:u,timeout:a})}async sendRestApiRequest({method:n,path:t,body:r,query:i,headers:u}){const{url:a,req:o,timeout:s}=this.buildRestRequest(n,t,r,this.baseRestApiURL,i,u);if(this.integrationKey&&this.integratorSecret){const c=await cg(this.integrationKey,this.integratorSecret,n,a,o.body??null),{"X-INTEGRATION-KEY":l,...f}=o.headers;o.headers={...f,...c}}return this.sendHTTPRequest({url:a,req:o,timeout:s})}async sendHTTPRequest({url:n,req:t,timeout:r}){const i=new AbortController,u=await this.fetchWithTimeout(n,t,r,i).catch(Uc);if(u instanceof Error)throw u.name==="AbortError"?new Vc:new Oi({cause:u});const a=this.getResponseHeaders(u.headers);if(!u.ok){const o=await u.text().catch(()=>"Unknown error"),s=Hh(o);throw this.makeStatusError(u.status,s,s?void 0:o,a)}return{response:u,controller:i,headers:a}}getResponseHeaders(n){const t=n.get("x-amzn-trace-id"),r=n.get("x-amzn-requestid");return{traceId:t,requestId:r}}async fetchWithTimeout(n,t,r,i){const{signal:u,...a}=t||{},o=AbortSignal.timeout(r),s=u?AbortSignal.any([u,o,i.signal]):AbortSignal.any([o,i.signal]);return fetch(n,{...a,signal:s})}buildGraphRequest({query:n,variables:t}){const r={query:We(n),variables:t,operationName:n?.definitions?.[0]?.name?.value},i=r?JSON.stringify(r,null,2):null,u=this.calculateContentLength(i),a=this.timeout,o={...u&&{"Content-Length":u},...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,r,i,u,a){const o=r?JSON.stringify(r):null,s=this.calculateContentLength(o),c=this.timeout,l={...s&&{"Content-Length":s},...this.defaultHeaders(),...a??{}},f=Object.fromEntries(Object.entries(l).filter(([b,E])=>E!==null)),m={method:n,...o?{body:o}:{},headers:f},d=i??this.baseRestURL,v=t.startsWith("/")?t:"/"+t,h=new URL(v,d);if(u){const b=Object.entries(u).filter(g=>g[1]!==void 0).map(([g,k])=>[g,String(k)]),E=i0(b);E&&(h.search=`?${E}`)}return{url:h.toString(),req:m,timeout:c}}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,r,i){return be.generate(n,t,r,i)}}function dg(e){if(!(!e||typeof e!="object"))return e}function fg(e,n){return e.replace(/\{([^}]+)\}/g,(t,r)=>{if(!n||!(r in n))throw new Error(`Missing path parameter: ${r}`);const i=n[r];if(i==null)throw new Error(`Missing path parameter: ${r}`);return encodeURIComponent(String(i))})}function mg(e){if(!e)return;const n=[];for(const[t,r]of Object.entries(e))if(r!==void 0){if(typeof r!="string"&&typeof r!="number"&&typeof r!="boolean")throw new Error(`Unsupported query parameter value for ${t}`);n.push([t,r])}return n.length>0?Object.fromEntries(n):void 0}function vg(e){if(!e)return;const n=[];for(const[t,r]of Object.entries(e))if(r!==void 0){if(typeof r!="string"||r.length===0)throw new Error(`Unsupported header value for ${t}`);n.push([t,r])}return n.length>0?Object.fromEntries(n):void 0}function z(e,n,...[t]){const r=dg(t?.params),i=fg(e,r),u=mg(t?.query),a=vg(t?.headers),o=t?.body;return{method:n,path:i,...o!==void 0?{body:o}:{},...u?{query:u}:{},...a?{headers:a}:{}}}class pg{client;constructor(n){this.client=n}async checkEligibility(n){return this.client.restApi(z("/v1/ach-debit/eligibility","post",{body:n}))}}class hg{client;constructor(n){this.client=n}async list(n){return this.client.restApi(z("/v1/integrator/ach-debit/returns","get",n?{query:n}:void 0))}async get(n){return this.client.restApi(z("/v1/integrator/ach-debit/returns/{returnId}","get",{params:{returnId:n}}))}}class gg{client;constructor(n){this.client=n}async list(){return this.client.restApi(z("/v1/bank-accounts/","get"))}async get(n){return this.client.restApi(z("/v1/bank-accounts/{accountId}","get",{params:{accountId:n}}))}async create(n){return this.client.restApi(z("/v1/bank-accounts/","post",{body:n}))}async delete(n){return this.client.restApi(z("/v1/bank-accounts/{accountId}","delete",{params:{accountId:n}}))}async createLinkToken(n){return this.client.restApi(z("/v1/bank-accounts/link-token","post",n?{body:n}:void 0))}async completeLinking(n){return this.client.restApi(z("/v1/bank-accounts/link-complete","post",{body:n}))}}var qt={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}};qt.loc.source={body:`fragment BillFragment on Bill {
43
43
  id
44
44
  name
45
45
  userId
@@ -75,14 +75,14 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
75
75
  address
76
76
  }
77
77
  }
78
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};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(r){zi(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){zi(r,n)}),e.definitions&&e.definitions.forEach(function(r){zi(r,n)})}var Ju={};(function(){qt.definitions.forEach(function(n){if(n.name){var t=new Set;zi(n,t),Ju[n.name.value]=t}})})();function r0(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function Eg(e,n){var t={kind:e.kind,definitions:[r0(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Ju[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Ju[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=r0(e,o);s&&t.definitions.push(s)}),t}Eg(qt,"BillFragment");var Qn={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}};Qn.loc.source={body:`#import "../queries/billFragment.graphql"
78
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};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(r){zi(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){zi(r,n)}),e.definitions&&e.definitions.forEach(function(r){zi(r,n)})}var Ju={};(function(){qt.definitions.forEach(function(n){if(n.name){var t=new Set;zi(n,t),Ju[n.name.value]=t}})})();function r0(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function Eg(e,n){var t={kind:e.kind,definitions:[r0(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Ju[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Ju[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=r0(e,o);s&&t.definitions.push(s)}),t}Eg(qt,"BillFragment");var Kn={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}};Kn.loc.source={body:`#import "../queries/billFragment.graphql"
79
79
 
80
80
  mutation CreateUSBill($institutionId: String!, $accountNumber: String!, $type: BillType) {
81
81
  addUSBill(institutionId: $institutionId, accountNumber: $accountNumber, type: $type) {
82
82
  ...BillFragment
83
83
  }
84
84
  }
85
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};var u0={};function yg(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return u0[t]?!1:(u0[t]=!0,!0)})}Qn.definitions=Qn.definitions.concat(yg(qt.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(r){Ui(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Ui(r,n)}),e.definitions&&e.definitions.forEach(function(r){Ui(r,n)})}var Hu={};(function(){Qn.definitions.forEach(function(n){if(n.name){var t=new Set;Ui(n,t),Hu[n.name.value]=t}})})();function a0(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function bg(e,n){var t={kind:e.kind,definitions:[a0(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Hu[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Hu[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=a0(e,o);s&&t.definitions.push(s)}),t}bg(Qn,"CreateUSBill");var Mt={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}};Mt.loc.source={body:`fragment PayableAccountFragment on PayableAccount {
85
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};var u0={};function yg(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return u0[t]?!1:(u0[t]=!0,!0)})}Kn.definitions=Kn.definitions.concat(yg(qt.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(r){Ui(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Ui(r,n)}),e.definitions&&e.definitions.forEach(function(r){Ui(r,n)})}var Hu={};(function(){Kn.definitions.forEach(function(n){if(n.name){var t=new Set;Ui(n,t),Hu[n.name.value]=t}})})();function a0(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function bg(e,n){var t={kind:e.kind,definitions:[a0(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Hu[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Hu[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=a0(e,o);s&&t.definitions.push(s)}),t}bg(Kn,"CreateUSBill");var Mt={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}};Mt.loc.source={body:`fragment PayableAccountFragment on PayableAccount {
86
86
  id
87
87
  name
88
88
  userId
@@ -149,14 +149,14 @@ mutation CreateUSBill($institutionId: String!, $accountNumber: String!, $type: B
149
149
  logo
150
150
  }
151
151
  }
152
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};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(r){Pi(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Pi(r,n)}),e.definitions&&e.definitions.forEach(function(r){Pi(r,n)})}var Ku={};(function(){Mt.definitions.forEach(function(n){if(n.name){var t=new Set;Pi(n,t),Ku[n.name.value]=t}})})();function o0(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function kg(e,n){var t={kind:e.kind,definitions:[o0(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Ku[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Ku[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=o0(e,o);s&&t.definitions.push(s)}),t}kg(Mt,"PayableAccountFragment");var In={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}};In.loc.source={body:`#import "../queries/payableAccountFragment.graphql"
152
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};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(r){Pi(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Pi(r,n)}),e.definitions&&e.definitions.forEach(function(r){Pi(r,n)})}var Qu={};(function(){Mt.definitions.forEach(function(n){if(n.name){var t=new Set;Pi(n,t),Qu[n.name.value]=t}})})();function o0(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function kg(e,n){var t={kind:e.kind,definitions:[o0(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Qu[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Qu[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=o0(e,o);s&&t.definitions.push(s)}),t}kg(Mt,"PayableAccountFragment");var In={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}};In.loc.source={body:`#import "../queries/payableAccountFragment.graphql"
153
153
 
154
154
  mutation DeletePayableAccount($accountId: String!) {
155
155
  deletePayableAccount(accountId: $accountId) {
156
156
  ...PayableAccountFragment
157
157
  }
158
158
  }
159
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};var s0={};function Dg(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return s0[t]?!1:(s0[t]=!0,!0)})}In.definitions=In.definitions.concat(Dg(Mt.definitions));function Ri(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(r){Ri(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Ri(r,n)}),e.definitions&&e.definitions.forEach(function(r){Ri(r,n)})}var Qu={};(function(){In.definitions.forEach(function(n){if(n.name){var t=new Set;Ri(n,t),Qu[n.name.value]=t}})})();function c0(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function Sg(e,n){var t={kind:e.kind,definitions:[c0(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Qu[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Qu[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=c0(e,o);s&&t.definitions.push(s)}),t}Sg(In,"DeletePayableAccount");var Wn={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}};Wn.loc.source={body:`#import "../queries/payableAccountFragment.graphql"
159
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};var s0={};function Dg(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return s0[t]?!1:(s0[t]=!0,!0)})}In.definitions=In.definitions.concat(Dg(Mt.definitions));function Ri(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(r){Ri(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Ri(r,n)}),e.definitions&&e.definitions.forEach(function(r){Ri(r,n)})}var Ku={};(function(){In.definitions.forEach(function(n){if(n.name){var t=new Set;Ri(n,t),Ku[n.name.value]=t}})})();function c0(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function Sg(e,n){var t={kind:e.kind,definitions:[c0(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Ku[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Ku[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=c0(e,o);s&&t.definitions.push(s)}),t}Sg(In,"DeletePayableAccount");var Wn={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}};Wn.loc.source={body:`#import "../queries/payableAccountFragment.graphql"
160
160
 
161
161
  mutation RenamePayableAccount($accountId: String!, $name: String!) {
162
162
  renamePayableAccount(accountId: $accountId, name: $name) {
@@ -170,10 +170,10 @@ query UserBills {
170
170
  ...BillFragment
171
171
  }
172
172
  }
173
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};var f0={};function wg(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return f0[t]?!1:(f0[t]=!0,!0)})}Yn.definitions=Yn.definitions.concat(wg(qt.definitions));function Li(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(r){Li(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Li(r,n)}),e.definitions&&e.definitions.forEach(function(r){Li(r,n)})}var Yu={};(function(){Yn.definitions.forEach(function(n){if(n.name){var t=new Set;Li(n,t),Yu[n.name.value]=t}})})();function m0(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function _g(e,n){var t={kind:e.kind,definitions:[m0(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Yu[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Yu[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=m0(e,o);s&&t.definitions.push(s)}),t}_g(Yn,"UserBills");class Cg{client;constructor(n){this.client=n}async list(){return(await this.client.query({query:Yn}))?.bills??[]}async rename(n,t){return(await this.client.query({query:Wn,variables:{accountId:n,name:t}}))?.renamePayableAccount??null}async delete(n){return(await this.client.query({query:In,variables:{accountId:n}}))?.deletePayableAccount??null}async add(n,t,r){return(await this.client.query({query:Qn,variables:{institutionId:n,accountNumber:t,type:r??null}}))?.addUSBill??null}}var Xn={};An(Xn,{$brand:()=>h0,$input:()=>Hd,$output:()=>Jd,NEVER:()=>p0,TimePrecision:()=>Wd,ZodAny:()=>tm,ZodArray:()=>am,ZodBase64:()=>Co,ZodBase64URL:()=>$o,ZodBigInt:()=>or,ZodBigIntFormat:()=>No,ZodBoolean:()=>ar,ZodCIDRv4:()=>wo,ZodCIDRv6:()=>_o,ZodCUID:()=>yo,ZodCUID2:()=>bo,ZodCatch:()=>Am,ZodCustom:()=>pr,ZodCustomStringFormat:()=>Kf,ZodDate:()=>To,ZodDefault:()=>ym,ZodDiscriminatedUnion:()=>om,ZodE164:()=>Io,ZodEmail:()=>po,ZodEmoji:()=>go,ZodEnum:()=>ni,ZodError:()=>Y1,ZodFile:()=>gm,ZodFirstPartyTypeKind:()=>Vo,ZodGUID:()=>rr,ZodIPv4:()=>Bo,ZodIPv6:()=>Ao,ZodISODate:()=>co,ZodISODateTime:()=>so,ZodISODuration:()=>fo,ZodISOTime:()=>lo,ZodIntersection:()=>sm,ZodIssueCode:()=>nE,ZodJWT:()=>xo,ZodKSUID:()=>So,ZodLazy:()=>xm,ZodLiteral:()=>pm,ZodMap:()=>fm,ZodNaN:()=>_m,ZodNanoID:()=>Eo,ZodNever:()=>rm,ZodNonOptional:()=>Lo,ZodNull:()=>em,ZodNullable:()=>Em,ZodNumber:()=>ur,ZodNumberFormat:()=>ut,ZodObject:()=>lr,ZodOptional:()=>jo,ZodPipe:()=>Zo,ZodPrefault:()=>km,ZodPromise:()=>Nm,ZodReadonly:()=>Cm,ZodRealError:()=>ei,ZodRecord:()=>Uo,ZodSet:()=>mm,ZodString:()=>ir,ZodStringFormat:()=>ee,ZodSuccess:()=>Bm,ZodSymbol:()=>Yf,ZodTemplateLiteral:()=>Im,ZodTransform:()=>Po,ZodTuple:()=>lm,ZodType:()=>Z,ZodULID:()=>ko,ZodURL:()=>ho,ZodUUID:()=>Ye,ZodUndefined:()=>Xf,ZodUnion:()=>zo,ZodUnknown:()=>im,ZodVoid:()=>um,ZodXID:()=>Do,_ZodString:()=>mo,_default:()=>bm,any:()=>x3,array:()=>Oo,base64:()=>g3,base64url:()=>E3,bigint:()=>w3,boolean:()=>Wf,catch:()=>wm,check:()=>Tm,cidrv4:()=>p3,cidrv6:()=>h3,clone:()=>Ge,coerce:()=>Um,config:()=>De,core:()=>v0,cuid:()=>s3,cuid2:()=>c3,custom:()=>Q3,date:()=>N3,discriminatedUnion:()=>P3,e164:()=>y3,email:()=>X1,emoji:()=>a3,endsWith:()=>eo,enum:()=>vm,file:()=>q3,flattenError:()=>ia,float32:()=>D3,float64:()=>S3,formatError:()=>ra,function:()=>Uf,getErrorMap:()=>iE,globalRegistry:()=>Nn,gt:()=>On,gte:()=>Ie,guid:()=>e3,includes:()=>Ya,instanceof:()=>W3,int:()=>Fo,int32:()=>B3,int64:()=>_3,intersection:()=>cm,ipv4:()=>m3,ipv6:()=>v3,iso:()=>Rf,json:()=>X3,jwt:()=>b3,keyof:()=>T3,ksuid:()=>f3,lazy:()=>Fm,length:()=>tr,literal:()=>hm,locales:()=>Ba,looseObject:()=>U3,lowercase:()=>Qa,lt:()=>Tn,lte:()=>qe,map:()=>L3,maxLength:()=>nr,maxSize:()=>er,mime:()=>no,minLength:()=>rt,minSize:()=>Xt,multipleOf:()=>Yt,nan:()=>J3,nanoid:()=>o3,nativeEnum:()=>V3,negative:()=>wf,never:()=>cr,nonnegative:()=>Cf,nonoptional:()=>Sm,nonpositive:()=>_f,normalize:()=>to,null:()=>nm,nullable:()=>mr,nullish:()=>M3,number:()=>Qf,object:()=>O3,optional:()=>fr,overwrite:()=>zn,parse:()=>Mf,parseAsync:()=>Gf,partialRecord:()=>j3,pipe:()=>vr,positive:()=>Af,prefault:()=>Dm,preprocess:()=>eE,prettifyError:()=>C0,promise:()=>K3,property:()=>$f,readonly:()=>$m,record:()=>dm,refine:()=>Om,regex:()=>Ka,regexes:()=>da,registry:()=>wa,safeParse:()=>Jf,safeParseAsync:()=>Hf,set:()=>Z3,setErrorMap:()=>tE,size:()=>Ha,startsWith:()=>Xa,strictObject:()=>z3,string:()=>vo,stringFormat:()=>k3,stringbool:()=>Y3,success:()=>G3,superRefine:()=>zm,symbol:()=>$3,templateLiteral:()=>H3,toJSONSchema:()=>Pf,toLowerCase:()=>ro,toUpperCase:()=>uo,transform:()=>Ro,treeifyError:()=>w0,trim:()=>io,tuple:()=>R3,uint32:()=>A3,uint64:()=>C3,ulid:()=>l3,undefined:()=>I3,union:()=>dr,unknown:()=>sr,uppercase:()=>Wa,url:()=>u3,uuid:()=>n3,uuidv4:()=>t3,uuidv6:()=>i3,uuidv7:()=>r3,void:()=>F3,xid:()=>d3});var v0={};An(v0,{$ZodAny:()=>od,$ZodArray:()=>ya,$ZodAsyncError:()=>et,$ZodBase64:()=>Kl,$ZodBase64URL:()=>Wl,$ZodBigInt:()=>Ea,$ZodBigIntFormat:()=>id,$ZodBoolean:()=>ga,$ZodCIDRv4:()=>Jl,$ZodCIDRv6:()=>Hl,$ZodCUID:()=>zl,$ZodCUID2:()=>Ul,$ZodCatch:()=>Td,$ZodCheck:()=>re,$ZodCheckBigIntFormat:()=>dl,$ZodCheckEndsWith:()=>Sl,$ZodCheckGreaterThan:()=>va,$ZodCheckIncludes:()=>kl,$ZodCheckLengthEquals:()=>gl,$ZodCheckLessThan:()=>ma,$ZodCheckLowerCase:()=>yl,$ZodCheckMaxLength:()=>pl,$ZodCheckMaxSize:()=>fl,$ZodCheckMimeType:()=>wl,$ZodCheckMinLength:()=>hl,$ZodCheckMinSize:()=>ml,$ZodCheckMultipleOf:()=>cl,$ZodCheckNumberFormat:()=>ll,$ZodCheckOverwrite:()=>_l,$ZodCheckProperty:()=>Al,$ZodCheckRegex:()=>El,$ZodCheckSizeEquals:()=>vl,$ZodCheckStartsWith:()=>Dl,$ZodCheckStringFormat:()=>Qt,$ZodCheckUpperCase:()=>bl,$ZodCustom:()=>Zd,$ZodCustomStringFormat:()=>nd,$ZodDate:()=>ld,$ZodDefault:()=>Cd,$ZodDiscriminatedUnion:()=>pd,$ZodE164:()=>Yl,$ZodEmail:()=>Fl,$ZodEmoji:()=>Tl,$ZodEnum:()=>Sd,$ZodError:()=>ta,$ZodFile:()=>Ad,$ZodFunction:()=>zf,$ZodGUID:()=>Il,$ZodIPv4:()=>Ml,$ZodIPv6:()=>Gl,$ZodISODate:()=>Zl,$ZodISODateTime:()=>Ll,$ZodISODuration:()=>ql,$ZodISOTime:()=>Vl,$ZodIntersection:()=>hd,$ZodJWT:()=>ed,$ZodKSUID:()=>jl,$ZodLazy:()=>Ld,$ZodLiteral:()=>Bd,$ZodMap:()=>yd,$ZodNaN:()=>Od,$ZodNanoID:()=>Ol,$ZodNever:()=>sd,$ZodNonOptional:()=>xd,$ZodNull:()=>ad,$ZodNullable:()=>_d,$ZodNumber:()=>ha,$ZodNumberFormat:()=>td,$ZodObject:()=>md,$ZodOptional:()=>wd,$ZodPipe:()=>Sa,$ZodPrefault:()=>Id,$ZodPromise:()=>jd,$ZodReadonly:()=>Ud,$ZodRealError:()=>Kt,$ZodRecord:()=>Ed,$ZodRegistry:()=>Aa,$ZodSet:()=>kd,$ZodString:()=>Wt,$ZodStringFormat:()=>Y,$ZodSuccess:()=>Nd,$ZodSymbol:()=>rd,$ZodTemplateLiteral:()=>Rd,$ZodTransform:()=>Da,$ZodTuple:()=>Qi,$ZodType:()=>U,$ZodULID:()=>Pl,$ZodURL:()=>Nl,$ZodUUID:()=>xl,$ZodUndefined:()=>ud,$ZodUnion:()=>ba,$ZodUnknown:()=>Hi,$ZodVoid:()=>cd,$ZodXID:()=>Rl,$brand:()=>h0,$constructor:()=>p,$input:()=>Hd,$output:()=>Jd,Doc:()=>Cl,JSONSchema:()=>W1,JSONSchemaGenerator:()=>oo,NEVER:()=>p0,TimePrecision:()=>Wd,_any:()=>yf,_array:()=>ao,_base64:()=>qa,_base64url:()=>Ma,_bigint:()=>ff,_boolean:()=>lf,_catch:()=>M1,_cidrv4:()=>Za,_cidrv6:()=>Va,_coercedBigint:()=>mf,_coercedBoolean:()=>df,_coercedDate:()=>Sf,_coercedNumber:()=>rf,_coercedString:()=>Qd,_cuid:()=>Oa,_cuid2:()=>za,_custom:()=>Ff,_date:()=>Df,_default:()=>Z1,_discriminatedUnion:()=>x1,_e164:()=>Ga,_email:()=>_a,_emoji:()=>Na,_endsWith:()=>eo,_enum:()=>z1,_file:()=>xf,_float32:()=>af,_float64:()=>of,_gt:()=>On,_gte:()=>Ie,_guid:()=>Yi,_includes:()=>Ya,_int:()=>uf,_int32:()=>sf,_int64:()=>vf,_intersection:()=>F1,_ipv4:()=>ja,_ipv6:()=>La,_isoDate:()=>Xd,_isoDateTime:()=>Yd,_isoDuration:()=>nf,_isoTime:()=>ef,_jwt:()=>Ja,_ksuid:()=>Ra,_lazy:()=>K1,_length:()=>tr,_literal:()=>P1,_lowercase:()=>Qa,_lt:()=>Tn,_lte:()=>qe,_map:()=>T1,_max:()=>qe,_maxLength:()=>nr,_maxSize:()=>er,_mime:()=>no,_min:()=>Ie,_minLength:()=>rt,_minSize:()=>Xt,_multipleOf:()=>Yt,_nan:()=>Bf,_nanoid:()=>Ta,_nativeEnum:()=>U1,_negative:()=>wf,_never:()=>bf,_nonnegative:()=>Cf,_nonoptional:()=>V1,_nonpositive:()=>_f,_normalize:()=>to,_null:()=>Ef,_nullable:()=>L1,_number:()=>tf,_optional:()=>j1,_overwrite:()=>zn,_parse:()=>ua,_parseAsync:()=>oa,_pipe:()=>G1,_positive:()=>Af,_promise:()=>Q1,_property:()=>$f,_readonly:()=>J1,_record:()=>N1,_refine:()=>Nf,_regex:()=>Ka,_safeParse:()=>ca,_safeParseAsync:()=>la,_set:()=>O1,_size:()=>Ha,_startsWith:()=>Xa,_string:()=>Kd,_stringFormat:()=>Of,_stringbool:()=>Tf,_success:()=>q1,_symbol:()=>hf,_templateLiteral:()=>H1,_toLowerCase:()=>ro,_toUpperCase:()=>uo,_transform:()=>R1,_trim:()=>io,_tuple:()=>If,_uint32:()=>cf,_uint64:()=>pf,_ulid:()=>Ua,_undefined:()=>gf,_union:()=>I1,_unknown:()=>Xi,_uppercase:()=>Wa,_url:()=>Fa,_uuid:()=>Ca,_uuidv4:()=>$a,_uuidv6:()=>Ia,_uuidv7:()=>xa,_void:()=>kf,_xid:()=>Pa,clone:()=>Ge,config:()=>De,flattenError:()=>ia,formatError:()=>ra,function:()=>Uf,globalConfig:()=>Zi,globalRegistry:()=>Nn,isValidBase64:()=>pa,isValidBase64URL:()=>Ql,isValidJWT:()=>Xl,locales:()=>Ba,parse:()=>aa,parseAsync:()=>sa,prettifyError:()=>C0,regexes:()=>da,registry:()=>wa,safeParse:()=>$0,safeParseAsync:()=>I0,toDotPath:()=>_0,toJSONSchema:()=>Pf,treeifyError:()=>w0,util:()=>G,version:()=>$l});var p0=Object.freeze({status:"aborted"});function p(e,n,t){function r(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 u extends i{}Object.defineProperty(u,"name",{value:e});function a(o){var s;const c=t?.Parent?new u:this;r(c,o),(s=c._zod).deferred??(s.deferred=[]);for(const l of c._zod.deferred)l();return c}return Object.defineProperty(a,"init",{value:r}),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 h0=Symbol("zod_brand"),et=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Zi={};function De(e){return e&&Object.assign(Zi,e),Zi}var G={};An(G,{BIGINT_FORMAT_RANGES:()=>S0,Class:()=>Jg,NUMBER_FORMAT_RANGES:()=>D0,aborted:()=>tt,allowsEval:()=>y0,assert:()=>Ng,assertEqual:()=>$g,assertIs:()=>xg,assertNever:()=>Fg,assertNotEqual:()=>Ig,assignProp:()=>ea,cached:()=>Vi,captureStackTrace:()=>na,cleanEnum:()=>Gg,cleanRegex:()=>qi,clone:()=>Ge,createTransparentProxy:()=>Rg,defineLazy:()=>K,esc:()=>nt,escapeRegex:()=>Fn,extend:()=>Zg,finalizeIssue:()=>Ve,floatSafeRemainder:()=>E0,getElementAtPath:()=>Tg,getEnumValues:()=>Xu,getLengthableOrigin:()=>Ji,getParsedType:()=>Pg,getSizableOrigin:()=>Gi,isObject:()=>Gt,isPlainObject:()=>Jt,issue:()=>B0,joinValues:()=>w,jsonStringifyReplacer:()=>g0,merge:()=>Vg,normalizeParams:()=>S,nullish:()=>xn,numKeys:()=>Ug,omit:()=>Lg,optionalKeys:()=>k0,partial:()=>qg,pick:()=>jg,prefixIssues:()=>Te,primitiveTypes:()=>b0,promiseAllObject:()=>Og,propertyKeyTypes:()=>Mi,randomString:()=>zg,required:()=>Mg,stringifyPrimitive:()=>L,unwrapMessage:()=>Ht});function $g(e){return e}function Ig(e){return e}function xg(e){}function Fg(e){throw new Error}function Ng(e){}function Xu(e){const n=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,i])=>n.indexOf(+r)===-1).map(([r,i])=>i)}function w(e,n="|"){return e.map(t=>L(t)).join(n)}function g0(e,n){return typeof n=="bigint"?n.toString():n}function Vi(e){return{get value(){{const n=e();return Object.defineProperty(this,"value",{value:n}),n}}}}function xn(e){return e==null}function qi(e){const n=e.startsWith("^")?1:0,t=e.endsWith("$")?e.length-1:e.length;return e.slice(n,t)}function E0(e,n){const t=(e.toString().split(".")[1]||"").length,r=(n.toString().split(".")[1]||"").length,i=t>r?t:r,u=Number.parseInt(e.toFixed(i).replace(".","")),a=Number.parseInt(n.toFixed(i).replace(".",""));return u%a/10**i}function K(e,n,t){Object.defineProperty(e,n,{get(){{const r=t();return e[n]=r,r}},set(r){Object.defineProperty(e,n,{value:r})},configurable:!0})}function ea(e,n,t){Object.defineProperty(e,n,{value:t,writable:!0,enumerable:!0,configurable:!0})}function Tg(e,n){return n?n.reduce((t,r)=>t?.[r],e):e}function Og(e){const n=Object.keys(e),t=n.map(r=>e[r]);return Promise.all(t).then(r=>{const i={};for(let u=0;u<n.length;u++)i[n[u]]=r[u];return i})}function zg(e=10){const n="abcdefghijklmnopqrstuvwxyz";let t="";for(let r=0;r<e;r++)t+=n[Math.floor(Math.random()*n.length)];return t}function nt(e){return JSON.stringify(e)}var na=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function Gt(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var y0=Vi(()=>{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 Ug(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}`)}},Mi=new Set(["string","number","symbol"]),b0=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Fn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ge(e,n,t){const r=new e._zod.constr(n??e._zod.def);return(!n||t?.parent)&&(r._zod.parent=e),r}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 Rg(e){let n;return new Proxy({},{get(t,r,i){return n??(n=e()),Reflect.get(n,r,i)},set(t,r,i,u){return n??(n=e()),Reflect.set(n,r,i,u)},has(t,r){return n??(n=e()),Reflect.has(n,r)},deleteProperty(t,r){return n??(n=e()),Reflect.deleteProperty(n,r)},ownKeys(t){return n??(n=e()),Reflect.ownKeys(n)},getOwnPropertyDescriptor(t,r){return n??(n=e()),Reflect.getOwnPropertyDescriptor(n,r)},defineProperty(t,r,i){return n??(n=e()),Reflect.defineProperty(n,r,i)}})}function L(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function k0(e){return Object.keys(e).filter(n=>e[n]._zod.optin==="optional"&&e[n]._zod.optout==="optional")}var D0={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]},S0={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function jg(e,n){const t={},r=e._zod.def;for(const i in n){if(!(i in r.shape))throw new Error(`Unrecognized key: "${i}"`);n[i]&&(t[i]=r.shape[i])}return Ge(e,{...e._zod.def,shape:t,checks:[]})}function Lg(e,n){const t={...e._zod.def.shape},r=e._zod.def;for(const i in n){if(!(i in r.shape))throw new Error(`Unrecognized key: "${i}"`);n[i]&&delete t[i]}return Ge(e,{...e._zod.def,shape:t,checks:[]})}function Zg(e,n){if(!Jt(n))throw new Error("Invalid input to extend: expected a plain object");const t={...e._zod.def,get shape(){const r={...e._zod.def.shape,...n};return ea(this,"shape",r),r},checks:[]};return Ge(e,t)}function Vg(e,n){return Ge(e,{...e._zod.def,get shape(){const t={...e._zod.def.shape,...n._zod.def.shape};return ea(this,"shape",t),t},catchall:n._zod.def.catchall,checks:[]})}function qg(e,n,t){const r=n._zod.def.shape,i={...r};if(t)for(const u in t){if(!(u in r))throw new Error(`Unrecognized key: "${u}"`);t[u]&&(i[u]=e?new e({type:"optional",innerType:r[u]}):r[u])}else for(const u in r)i[u]=e?new e({type:"optional",innerType:r[u]}):r[u];return Ge(n,{...n._zod.def,shape:i,checks:[]})}function Mg(e,n,t){const r=n._zod.def.shape,i={...r};if(t)for(const u in t){if(!(u in i))throw new Error(`Unrecognized key: "${u}"`);t[u]&&(i[u]=new e({type:"nonoptional",innerType:r[u]}))}else for(const u in r)i[u]=new e({type:"nonoptional",innerType:r[u]});return Ge(n,{...n._zod.def,shape:i,checks:[]})}function tt(e,n=0){for(let t=n;t<e.issues.length;t++)if(e.issues[t]?.continue!==!0)return!0;return!1}function Te(e,n){return n.map(t=>{var r;return(r=t).path??(r.path=[]),t.path.unshift(e),t})}function Ht(e){return typeof e=="string"?e:e?.message}function Ve(e,n,t){const r={...e,path:e.path??[]};if(!e.message){const i=Ht(e.inst?._zod.def?.error?.(e))??Ht(n?.error?.(e))??Ht(t.customError?.(e))??Ht(t.localeError?.(e))??"Invalid input";r.message=i}return delete r.inst,delete r.continue,n?.reportInput||delete r.input,r}function Gi(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Ji(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function B0(...e){const[n,t,r]=e;return typeof n=="string"?{message:n,code:"custom",input:t,inst:r}:{...n}}function Gg(e){return Object.entries(e).filter(([n,t])=>Number.isNaN(Number.parseInt(n,10))).map(n=>n[1])}var Jg=class{constructor(...e){}},A0=(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,g0,2)},enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},ta=p("$ZodError",A0),Kt=p("$ZodError",A0,{Parent:Error});function ia(e,n=t=>t.message){const t={},r=[];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))):r.push(n(i));return{formErrors:r,fieldErrors:t}}function ra(e,n){const t=n||function(u){return u.message},r={_errors:[]},i=u=>{for(const a of u.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)r._errors.push(t(a));else{let o=r,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),r}function w0(e,n){const t=n||function(u){return u.message},r={errors:[]},i=(u,a=[])=>{var o,s;for(const c of u.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){r.errors.push(t(c));continue}let f=r,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),r}function _0(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 C0(e){const n=[],t=[...e.issues].sort((r,i)=>r.path.length-i.path.length);for(const r of t)n.push(`\u2716 ${r.message}`),r.path?.length&&n.push(` \u2192 at ${_0(r.path)}`);return n.join(`
174
- `)}var ua=e=>(n,t,r,i)=>{const u=r?Object.assign(r,{async:!1}):{async:!1},a=n._zod.run({value:t,issues:[]},u);if(a instanceof Promise)throw new et;if(a.issues.length){const o=new(i?.Err??e)(a.issues.map(s=>Ve(s,u,De())));throw na(o,i?.callee),o}return a.value},aa=ua(Kt),oa=e=>async(n,t,r,i)=>{const u=r?Object.assign(r,{async:!0}):{async:!0};let a=n._zod.run({value:t,issues:[]},u);if(a instanceof Promise&&(a=await a),a.issues.length){const o=new(i?.Err??e)(a.issues.map(s=>Ve(s,u,De())));throw na(o,i?.callee),o}return a.value},sa=oa(Kt),ca=e=>(n,t,r)=>{const i=r?{...r,async:!1}:{async:!1},u=n._zod.run({value:t,issues:[]},i);if(u instanceof Promise)throw new et;return u.issues.length?{success:!1,error:new(e??ta)(u.issues.map(a=>Ve(a,i,De())))}:{success:!0,data:u.value}},$0=ca(Kt),la=e=>async(n,t,r)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let u=n._zod.run({value:t,issues:[]},i);return u instanceof Promise&&(u=await u),u.issues.length?{success:!1,error:new e(u.issues.map(a=>Ve(a,i,De())))}:{success:!0,data:u.value}},I0=la(Kt),da={};An(da,{base64:()=>M0,base64url:()=>fa,bigint:()=>el,boolean:()=>il,browserEmail:()=>n6,cidrv4:()=>V0,cidrv6:()=>q0,cuid:()=>x0,cuid2:()=>F0,date:()=>K0,datetime:()=>Y0,domain:()=>i6,duration:()=>U0,e164:()=>J0,email:()=>R0,emoji:()=>j0,extendedDuration:()=>Hg,guid:()=>P0,hostname:()=>G0,html5Email:()=>Yg,integer:()=>nl,ipv4:()=>L0,ipv6:()=>Z0,ksuid:()=>O0,lowercase:()=>al,nanoid:()=>z0,null:()=>rl,number:()=>tl,rfc5322Email:()=>Xg,string:()=>X0,time:()=>W0,ulid:()=>N0,undefined:()=>ul,unicodeEmail:()=>e6,uppercase:()=>ol,uuid:()=>it,uuid4:()=>Kg,uuid6:()=>Qg,uuid7:()=>Wg,xid:()=>T0});var x0=/^[cC][^\s-]{8,}$/,F0=/^[0-9a-z]+$/,N0=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,T0=/^[0-9a-vA-V]{20}$/,O0=/^[A-Za-z0-9]{27}$/,z0=/^[a-zA-Z0-9_-]{21}$/,U0=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Hg=/^[-+]?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)?)??$/,P0=/^([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})$/,it=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)$/,Kg=it(4),Qg=it(6),Wg=it(7),R0=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Yg=/^[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,}))$/,e6=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,n6=/^[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])?)*$/,t6="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function j0(){return new RegExp(t6,"u")}var L0=/^(?:(?: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])$/,Z0=/^(([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})$/,V0=/^((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])$/,q0=/^(([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])$/,M0=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,fa=/^[A-Za-z0-9_-]*$/,G0=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,i6=/^([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]$/,H0="(?:(?:\\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])))",K0=new RegExp(`^${H0}$`);function Q0(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 W0(e){return new RegExp(`^${Q0(e)}$`)}function Y0(e){const n=Q0({precision:e.precision}),t=["Z"];e.local&&t.push(""),e.offset&&t.push("([+-]\\d{2}:\\d{2})");const r=`${n}(?:${t.join("|")})`;return new RegExp(`^${H0}T(?:${r})$`)}var X0=e=>{const n=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${n}$`)},el=/^\d+n?$/,nl=/^\d+$/,tl=/^-?\d+(?:\.\d+)?/i,il=/true|false/i,rl=/null/i,ul=/undefined/i,al=/^[^A-Z]*$/,ol=/^[^a-z]*$/,re=p("$ZodCheck",(e,n)=>{var t;e._zod??(e._zod={}),e._zod.def=n,(t=e._zod).onattach??(t.onattach=[])}),sl={number:"number",bigint:"bigint",object:"date"},ma=p("$ZodCheckLessThan",(e,n)=>{re.init(e,n);const t=sl[typeof n.value];e._zod.onattach.push(r=>{const i=r._zod.bag,u=(n.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;n.value<u&&(n.inclusive?i.maximum=n.value:i.exclusiveMaximum=n.value)}),e._zod.check=r=>{(n.inclusive?r.value<=n.value:r.value<n.value)||r.issues.push({origin:t,code:"too_big",maximum:n.value,input:r.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),va=p("$ZodCheckGreaterThan",(e,n)=>{re.init(e,n);const t=sl[typeof n.value];e._zod.onattach.push(r=>{const i=r._zod.bag,u=(n.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;n.value>u&&(n.inclusive?i.minimum=n.value:i.exclusiveMinimum=n.value)}),e._zod.check=r=>{(n.inclusive?r.value>=n.value:r.value>n.value)||r.issues.push({origin:t,code:"too_small",minimum:n.value,input:r.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),cl=p("$ZodCheckMultipleOf",(e,n)=>{re.init(e,n),e._zod.onattach.push(t=>{var r;(r=t._zod.bag).multipleOf??(r.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):E0(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})}}),ll=p("$ZodCheckNumberFormat",(e,n)=>{re.init(e,n),n.format=n.format||"float64";const t=n.format?.includes("int"),r=t?"int":"number",[i,u]=D0[n.format];e._zod.onattach.push(a=>{const o=a._zod.bag;o.format=n.format,o.minimum=i,o.maximum=u,t&&(o.pattern=nl)}),e._zod.check=a=>{const o=a.value;if(t){if(!Number.isInteger(o)){a.issues.push({expected:r,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:r,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:r,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>u&&a.issues.push({origin:"number",input:o,code:"too_big",maximum:u,inst:e})}}),dl=p("$ZodCheckBigIntFormat",(e,n)=>{re.init(e,n);const[t,r]=S0[n.format];e._zod.onattach.push(i=>{const u=i._zod.bag;u.format=n.format,u.minimum=t,u.maximum=r}),e._zod.check=i=>{const u=i.value;u<t&&i.issues.push({origin:"bigint",input:u,code:"too_small",minimum:t,inclusive:!0,inst:e,continue:!n.abort}),u>r&&i.issues.push({origin:"bigint",input:u,code:"too_big",maximum:r,inst:e})}}),fl=p("$ZodCheckMaxSize",(e,n)=>{var t;re.init(e,n),(t=e._zod.def).when??(t.when=r=>{const i=r.value;return!xn(i)&&i.size!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum<i&&(r._zod.bag.maximum=n.maximum)}),e._zod.check=r=>{const i=r.value;i.size<=n.maximum||r.issues.push({origin:Gi(i),code:"too_big",maximum:n.maximum,input:i,inst:e,continue:!n.abort})}}),ml=p("$ZodCheckMinSize",(e,n)=>{var t;re.init(e,n),(t=e._zod.def).when??(t.when=r=>{const i=r.value;return!xn(i)&&i.size!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>i&&(r._zod.bag.minimum=n.minimum)}),e._zod.check=r=>{const i=r.value;i.size>=n.minimum||r.issues.push({origin:Gi(i),code:"too_small",minimum:n.minimum,input:i,inst:e,continue:!n.abort})}}),vl=p("$ZodCheckSizeEquals",(e,n)=>{var t;re.init(e,n),(t=e._zod.def).when??(t.when=r=>{const i=r.value;return!xn(i)&&i.size!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag;i.minimum=n.size,i.maximum=n.size,i.size=n.size}),e._zod.check=r=>{const i=r.value,u=i.size;if(u===n.size)return;const a=u>n.size;r.issues.push({origin:Gi(i),...a?{code:"too_big",maximum:n.size}:{code:"too_small",minimum:n.size},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!n.abort})}}),pl=p("$ZodCheckMaxLength",(e,n)=>{var t;re.init(e,n),(t=e._zod.def).when??(t.when=r=>{const i=r.value;return!xn(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum<i&&(r._zod.bag.maximum=n.maximum)}),e._zod.check=r=>{const i=r.value;if(i.length<=n.maximum)return;const a=Ji(i);r.issues.push({origin:a,code:"too_big",maximum:n.maximum,inclusive:!0,input:i,inst:e,continue:!n.abort})}}),hl=p("$ZodCheckMinLength",(e,n)=>{var t;re.init(e,n),(t=e._zod.def).when??(t.when=r=>{const i=r.value;return!xn(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>i&&(r._zod.bag.minimum=n.minimum)}),e._zod.check=r=>{const i=r.value;if(i.length>=n.minimum)return;const a=Ji(i);r.issues.push({origin:a,code:"too_small",minimum:n.minimum,inclusive:!0,input:i,inst:e,continue:!n.abort})}}),gl=p("$ZodCheckLengthEquals",(e,n)=>{var t;re.init(e,n),(t=e._zod.def).when??(t.when=r=>{const i=r.value;return!xn(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag;i.minimum=n.length,i.maximum=n.length,i.length=n.length}),e._zod.check=r=>{const i=r.value,u=i.length;if(u===n.length)return;const a=Ji(i),o=u>n.length;r.issues.push({origin:a,...o?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!n.abort})}}),Qt=p("$ZodCheckStringFormat",(e,n)=>{var t,r;re.init(e,n),e._zod.onattach.push(i=>{const u=i._zod.bag;u.format=n.format,n.pattern&&(u.patterns??(u.patterns=new Set),u.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})}):(r=e._zod).check??(r.check=()=>{})}),El=p("$ZodCheckRegex",(e,n)=>{Qt.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})}}),yl=p("$ZodCheckLowerCase",(e,n)=>{n.pattern??(n.pattern=al),Qt.init(e,n)}),bl=p("$ZodCheckUpperCase",(e,n)=>{n.pattern??(n.pattern=ol),Qt.init(e,n)}),kl=p("$ZodCheckIncludes",(e,n)=>{re.init(e,n);const t=Fn(n.includes),r=new RegExp(typeof n.position=="number"?`^.{${n.position}}${t}`:t);n.pattern=r,e._zod.onattach.push(i=>{const u=i._zod.bag;u.patterns??(u.patterns=new Set),u.patterns.add(r)}),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})}}),Dl=p("$ZodCheckStartsWith",(e,n)=>{re.init(e,n);const t=new RegExp(`^${Fn(n.prefix)}.*`);n.pattern??(n.pattern=t),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(t)}),e._zod.check=r=>{r.value.startsWith(n.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:n.prefix,input:r.value,inst:e,continue:!n.abort})}}),Sl=p("$ZodCheckEndsWith",(e,n)=>{re.init(e,n);const t=new RegExp(`.*${Fn(n.suffix)}$`);n.pattern??(n.pattern=t),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(t)}),e._zod.check=r=>{r.value.endsWith(n.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:n.suffix,input:r.value,inst:e,continue:!n.abort})}});function Bl(e,n,t){e.issues.length&&n.issues.push(...Te(t,e.issues))}var Al=p("$ZodCheckProperty",(e,n)=>{re.init(e,n),e._zod.check=t=>{const r=n.schema._zod.run({value:t.value[n.property],issues:[]},{});if(r instanceof Promise)return r.then(i=>Bl(i,t,n.property));Bl(r,t,n.property)}}),wl=p("$ZodCheckMimeType",(e,n)=>{re.init(e,n);const t=new Set(n.mime);e._zod.onattach.push(r=>{r._zod.bag.mime=n.mime}),e._zod.check=r=>{t.has(r.value.type)||r.issues.push({code:"invalid_value",values:n.mime,input:r.value.type,inst:e})}}),_l=p("$ZodCheckOverwrite",(e,n)=>{re.init(e,n),e._zod.check=t=>{t.value=n.tx(t.value)}}),Cl=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(`
173
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};var f0={};function wg(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return f0[t]?!1:(f0[t]=!0,!0)})}Yn.definitions=Yn.definitions.concat(wg(qt.definitions));function Li(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(r){Li(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Li(r,n)}),e.definitions&&e.definitions.forEach(function(r){Li(r,n)})}var Yu={};(function(){Yn.definitions.forEach(function(n){if(n.name){var t=new Set;Li(n,t),Yu[n.name.value]=t}})})();function m0(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function _g(e,n){var t={kind:e.kind,definitions:[m0(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Yu[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Yu[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=m0(e,o);s&&t.definitions.push(s)}),t}_g(Yn,"UserBills");class Cg{client;constructor(n){this.client=n}async list(){return(await this.client.query({query:Yn}))?.bills??[]}async rename(n,t){return(await this.client.query({query:Wn,variables:{accountId:n,name:t}}))?.renamePayableAccount??null}async delete(n){return(await this.client.query({query:In,variables:{accountId:n}}))?.deletePayableAccount??null}async add(n,t,r){return(await this.client.query({query:Kn,variables:{institutionId:n,accountNumber:t,type:r??null}}))?.addUSBill??null}}class $g{client;constructor(n){this.client=n}async getRequirements(){return this.client.restApi(z("/v1/users/me/compliance/requirements","get"))}async submit(n){return this.client.restApi(z("/v1/users/me/compliance","post",{body:n}))}}var Xn={};An(Xn,{$brand:()=>h0,$input:()=>Hd,$output:()=>Jd,NEVER:()=>p0,TimePrecision:()=>Wd,ZodAny:()=>tm,ZodArray:()=>am,ZodBase64:()=>Co,ZodBase64URL:()=>$o,ZodBigInt:()=>or,ZodBigIntFormat:()=>No,ZodBoolean:()=>ar,ZodCIDRv4:()=>wo,ZodCIDRv6:()=>_o,ZodCUID:()=>yo,ZodCUID2:()=>bo,ZodCatch:()=>Am,ZodCustom:()=>pr,ZodCustomStringFormat:()=>Qf,ZodDate:()=>To,ZodDefault:()=>ym,ZodDiscriminatedUnion:()=>om,ZodE164:()=>Io,ZodEmail:()=>po,ZodEmoji:()=>go,ZodEnum:()=>ni,ZodError:()=>X1,ZodFile:()=>gm,ZodFirstPartyTypeKind:()=>Vo,ZodGUID:()=>rr,ZodIPv4:()=>Bo,ZodIPv6:()=>Ao,ZodISODate:()=>co,ZodISODateTime:()=>so,ZodISODuration:()=>fo,ZodISOTime:()=>lo,ZodIntersection:()=>sm,ZodIssueCode:()=>tE,ZodJWT:()=>xo,ZodKSUID:()=>So,ZodLazy:()=>xm,ZodLiteral:()=>pm,ZodMap:()=>fm,ZodNaN:()=>_m,ZodNanoID:()=>Eo,ZodNever:()=>rm,ZodNonOptional:()=>Lo,ZodNull:()=>em,ZodNullable:()=>Em,ZodNumber:()=>ur,ZodNumberFormat:()=>ut,ZodObject:()=>lr,ZodOptional:()=>jo,ZodPipe:()=>Zo,ZodPrefault:()=>km,ZodPromise:()=>Nm,ZodReadonly:()=>Cm,ZodRealError:()=>ei,ZodRecord:()=>Uo,ZodSet:()=>mm,ZodString:()=>ir,ZodStringFormat:()=>ee,ZodSuccess:()=>Bm,ZodSymbol:()=>Yf,ZodTemplateLiteral:()=>Im,ZodTransform:()=>Po,ZodTuple:()=>lm,ZodType:()=>V,ZodULID:()=>ko,ZodURL:()=>ho,ZodUUID:()=>Ye,ZodUndefined:()=>Xf,ZodUnion:()=>zo,ZodUnknown:()=>im,ZodVoid:()=>um,ZodXID:()=>Do,_ZodString:()=>mo,_default:()=>bm,any:()=>F3,array:()=>Oo,base64:()=>E3,base64url:()=>y3,bigint:()=>_3,boolean:()=>Wf,catch:()=>wm,check:()=>Tm,cidrv4:()=>h3,cidrv6:()=>g3,clone:()=>Ge,coerce:()=>Um,config:()=>De,core:()=>v0,cuid:()=>c3,cuid2:()=>l3,custom:()=>W3,date:()=>T3,discriminatedUnion:()=>R3,e164:()=>b3,email:()=>e3,emoji:()=>o3,endsWith:()=>eo,enum:()=>vm,file:()=>M3,flattenError:()=>ia,float32:()=>S3,float64:()=>B3,formatError:()=>ra,function:()=>Uf,getErrorMap:()=>rE,globalRegistry:()=>Nn,gt:()=>On,gte:()=>Ie,guid:()=>n3,includes:()=>Ya,instanceof:()=>Y3,int:()=>Fo,int32:()=>A3,int64:()=>C3,intersection:()=>cm,ipv4:()=>v3,ipv6:()=>p3,iso:()=>Rf,json:()=>eE,jwt:()=>k3,keyof:()=>O3,ksuid:()=>m3,lazy:()=>Fm,length:()=>tr,literal:()=>hm,locales:()=>Ba,looseObject:()=>P3,lowercase:()=>Ka,lt:()=>Tn,lte:()=>qe,map:()=>Z3,maxLength:()=>nr,maxSize:()=>er,mime:()=>no,minLength:()=>rt,minSize:()=>Xt,multipleOf:()=>Yt,nan:()=>H3,nanoid:()=>s3,nativeEnum:()=>q3,negative:()=>wf,never:()=>cr,nonnegative:()=>Cf,nonoptional:()=>Sm,nonpositive:()=>_f,normalize:()=>to,null:()=>nm,nullable:()=>mr,nullish:()=>G3,number:()=>Kf,object:()=>z3,optional:()=>fr,overwrite:()=>zn,parse:()=>Mf,parseAsync:()=>Gf,partialRecord:()=>L3,pipe:()=>vr,positive:()=>Af,prefault:()=>Dm,preprocess:()=>nE,prettifyError:()=>C0,promise:()=>K3,property:()=>$f,readonly:()=>$m,record:()=>dm,refine:()=>Om,regex:()=>Qa,regexes:()=>da,registry:()=>wa,safeParse:()=>Jf,safeParseAsync:()=>Hf,set:()=>V3,setErrorMap:()=>iE,size:()=>Ha,startsWith:()=>Xa,strictObject:()=>U3,string:()=>vo,stringFormat:()=>D3,stringbool:()=>X3,success:()=>J3,superRefine:()=>zm,symbol:()=>I3,templateLiteral:()=>Q3,toJSONSchema:()=>Pf,toLowerCase:()=>ro,toUpperCase:()=>uo,transform:()=>Ro,treeifyError:()=>w0,trim:()=>io,tuple:()=>j3,uint32:()=>w3,uint64:()=>$3,ulid:()=>d3,undefined:()=>x3,union:()=>dr,unknown:()=>sr,uppercase:()=>Wa,url:()=>a3,uuid:()=>t3,uuidv4:()=>i3,uuidv6:()=>r3,uuidv7:()=>u3,void:()=>N3,xid:()=>f3});var v0={};An(v0,{$ZodAny:()=>od,$ZodArray:()=>ya,$ZodAsyncError:()=>et,$ZodBase64:()=>Ql,$ZodBase64URL:()=>Wl,$ZodBigInt:()=>Ea,$ZodBigIntFormat:()=>id,$ZodBoolean:()=>ga,$ZodCIDRv4:()=>Jl,$ZodCIDRv6:()=>Hl,$ZodCUID:()=>zl,$ZodCUID2:()=>Ul,$ZodCatch:()=>Td,$ZodCheck:()=>re,$ZodCheckBigIntFormat:()=>dl,$ZodCheckEndsWith:()=>Sl,$ZodCheckGreaterThan:()=>va,$ZodCheckIncludes:()=>kl,$ZodCheckLengthEquals:()=>gl,$ZodCheckLessThan:()=>ma,$ZodCheckLowerCase:()=>yl,$ZodCheckMaxLength:()=>pl,$ZodCheckMaxSize:()=>fl,$ZodCheckMimeType:()=>wl,$ZodCheckMinLength:()=>hl,$ZodCheckMinSize:()=>ml,$ZodCheckMultipleOf:()=>cl,$ZodCheckNumberFormat:()=>ll,$ZodCheckOverwrite:()=>_l,$ZodCheckProperty:()=>Al,$ZodCheckRegex:()=>El,$ZodCheckSizeEquals:()=>vl,$ZodCheckStartsWith:()=>Dl,$ZodCheckStringFormat:()=>Kt,$ZodCheckUpperCase:()=>bl,$ZodCustom:()=>Zd,$ZodCustomStringFormat:()=>nd,$ZodDate:()=>ld,$ZodDefault:()=>Cd,$ZodDiscriminatedUnion:()=>pd,$ZodE164:()=>Yl,$ZodEmail:()=>Fl,$ZodEmoji:()=>Tl,$ZodEnum:()=>Sd,$ZodError:()=>ta,$ZodFile:()=>Ad,$ZodFunction:()=>zf,$ZodGUID:()=>Il,$ZodIPv4:()=>Ml,$ZodIPv6:()=>Gl,$ZodISODate:()=>Zl,$ZodISODateTime:()=>Ll,$ZodISODuration:()=>ql,$ZodISOTime:()=>Vl,$ZodIntersection:()=>hd,$ZodJWT:()=>ed,$ZodKSUID:()=>jl,$ZodLazy:()=>Ld,$ZodLiteral:()=>Bd,$ZodMap:()=>yd,$ZodNaN:()=>Od,$ZodNanoID:()=>Ol,$ZodNever:()=>sd,$ZodNonOptional:()=>xd,$ZodNull:()=>ad,$ZodNullable:()=>_d,$ZodNumber:()=>ha,$ZodNumberFormat:()=>td,$ZodObject:()=>md,$ZodOptional:()=>wd,$ZodPipe:()=>Sa,$ZodPrefault:()=>Id,$ZodPromise:()=>jd,$ZodReadonly:()=>Ud,$ZodRealError:()=>Qt,$ZodRecord:()=>Ed,$ZodRegistry:()=>Aa,$ZodSet:()=>kd,$ZodString:()=>Wt,$ZodStringFormat:()=>Y,$ZodSuccess:()=>Nd,$ZodSymbol:()=>rd,$ZodTemplateLiteral:()=>Rd,$ZodTransform:()=>Da,$ZodTuple:()=>Ki,$ZodType:()=>P,$ZodULID:()=>Pl,$ZodURL:()=>Nl,$ZodUUID:()=>xl,$ZodUndefined:()=>ud,$ZodUnion:()=>ba,$ZodUnknown:()=>Hi,$ZodVoid:()=>cd,$ZodXID:()=>Rl,$brand:()=>h0,$constructor:()=>p,$input:()=>Hd,$output:()=>Jd,Doc:()=>Cl,JSONSchema:()=>Y1,JSONSchemaGenerator:()=>oo,NEVER:()=>p0,TimePrecision:()=>Wd,_any:()=>yf,_array:()=>ao,_base64:()=>qa,_base64url:()=>Ma,_bigint:()=>ff,_boolean:()=>lf,_catch:()=>G1,_cidrv4:()=>Za,_cidrv6:()=>Va,_coercedBigint:()=>mf,_coercedBoolean:()=>df,_coercedDate:()=>Sf,_coercedNumber:()=>rf,_coercedString:()=>Kd,_cuid:()=>Oa,_cuid2:()=>za,_custom:()=>Ff,_date:()=>Df,_default:()=>V1,_discriminatedUnion:()=>F1,_e164:()=>Ga,_email:()=>_a,_emoji:()=>Na,_endsWith:()=>eo,_enum:()=>U1,_file:()=>xf,_float32:()=>af,_float64:()=>of,_gt:()=>On,_gte:()=>Ie,_guid:()=>Yi,_includes:()=>Ya,_int:()=>uf,_int32:()=>sf,_int64:()=>vf,_intersection:()=>N1,_ipv4:()=>ja,_ipv6:()=>La,_isoDate:()=>Xd,_isoDateTime:()=>Yd,_isoDuration:()=>nf,_isoTime:()=>ef,_jwt:()=>Ja,_ksuid:()=>Ra,_lazy:()=>K1,_length:()=>tr,_literal:()=>R1,_lowercase:()=>Ka,_lt:()=>Tn,_lte:()=>qe,_map:()=>O1,_max:()=>qe,_maxLength:()=>nr,_maxSize:()=>er,_mime:()=>no,_min:()=>Ie,_minLength:()=>rt,_minSize:()=>Xt,_multipleOf:()=>Yt,_nan:()=>Bf,_nanoid:()=>Ta,_nativeEnum:()=>P1,_negative:()=>wf,_never:()=>bf,_nonnegative:()=>Cf,_nonoptional:()=>q1,_nonpositive:()=>_f,_normalize:()=>to,_null:()=>Ef,_nullable:()=>Z1,_number:()=>tf,_optional:()=>L1,_overwrite:()=>zn,_parse:()=>ua,_parseAsync:()=>oa,_pipe:()=>J1,_positive:()=>Af,_promise:()=>W1,_property:()=>$f,_readonly:()=>H1,_record:()=>T1,_refine:()=>Nf,_regex:()=>Qa,_safeParse:()=>ca,_safeParseAsync:()=>la,_set:()=>z1,_size:()=>Ha,_startsWith:()=>Xa,_string:()=>Qd,_stringFormat:()=>Of,_stringbool:()=>Tf,_success:()=>M1,_symbol:()=>hf,_templateLiteral:()=>Q1,_toLowerCase:()=>ro,_toUpperCase:()=>uo,_transform:()=>j1,_trim:()=>io,_tuple:()=>If,_uint32:()=>cf,_uint64:()=>pf,_ulid:()=>Ua,_undefined:()=>gf,_union:()=>x1,_unknown:()=>Xi,_uppercase:()=>Wa,_url:()=>Fa,_uuid:()=>Ca,_uuidv4:()=>$a,_uuidv6:()=>Ia,_uuidv7:()=>xa,_void:()=>kf,_xid:()=>Pa,clone:()=>Ge,config:()=>De,flattenError:()=>ia,formatError:()=>ra,function:()=>Uf,globalConfig:()=>Zi,globalRegistry:()=>Nn,isValidBase64:()=>pa,isValidBase64URL:()=>Kl,isValidJWT:()=>Xl,locales:()=>Ba,parse:()=>aa,parseAsync:()=>sa,prettifyError:()=>C0,regexes:()=>da,registry:()=>wa,safeParse:()=>$0,safeParseAsync:()=>I0,toDotPath:()=>_0,toJSONSchema:()=>Pf,treeifyError:()=>w0,util:()=>G,version:()=>$l});var p0=Object.freeze({status:"aborted"});function p(e,n,t){function r(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 u extends i{}Object.defineProperty(u,"name",{value:e});function a(o){var s;const c=t?.Parent?new u:this;r(c,o),(s=c._zod).deferred??(s.deferred=[]);for(const l of c._zod.deferred)l();return c}return Object.defineProperty(a,"init",{value:r}),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 h0=Symbol("zod_brand"),et=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Zi={};function De(e){return e&&Object.assign(Zi,e),Zi}var G={};An(G,{BIGINT_FORMAT_RANGES:()=>S0,Class:()=>Hg,NUMBER_FORMAT_RANGES:()=>D0,aborted:()=>tt,allowsEval:()=>y0,assert:()=>Tg,assertEqual:()=>Ig,assertIs:()=>Fg,assertNever:()=>Ng,assertNotEqual:()=>xg,assignProp:()=>ea,cached:()=>Vi,captureStackTrace:()=>na,cleanEnum:()=>Jg,cleanRegex:()=>qi,clone:()=>Ge,createTransparentProxy:()=>jg,defineLazy:()=>Q,esc:()=>nt,escapeRegex:()=>Fn,extend:()=>Vg,finalizeIssue:()=>Ve,floatSafeRemainder:()=>E0,getElementAtPath:()=>Og,getEnumValues:()=>Xu,getLengthableOrigin:()=>Ji,getParsedType:()=>Rg,getSizableOrigin:()=>Gi,isObject:()=>Gt,isPlainObject:()=>Jt,issue:()=>B0,joinValues:()=>w,jsonStringifyReplacer:()=>g0,merge:()=>qg,normalizeParams:()=>S,nullish:()=>xn,numKeys:()=>Pg,omit:()=>Zg,optionalKeys:()=>k0,partial:()=>Mg,pick:()=>Lg,prefixIssues:()=>Te,primitiveTypes:()=>b0,promiseAllObject:()=>zg,propertyKeyTypes:()=>Mi,randomString:()=>Ug,required:()=>Gg,stringifyPrimitive:()=>Z,unwrapMessage:()=>Ht});function Ig(e){return e}function xg(e){return e}function Fg(e){}function Ng(e){throw new Error}function Tg(e){}function Xu(e){const n=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,i])=>n.indexOf(+r)===-1).map(([r,i])=>i)}function w(e,n="|"){return e.map(t=>Z(t)).join(n)}function g0(e,n){return typeof n=="bigint"?n.toString():n}function Vi(e){return{get value(){{const n=e();return Object.defineProperty(this,"value",{value:n}),n}}}}function xn(e){return e==null}function qi(e){const n=e.startsWith("^")?1:0,t=e.endsWith("$")?e.length-1:e.length;return e.slice(n,t)}function E0(e,n){const t=(e.toString().split(".")[1]||"").length,r=(n.toString().split(".")[1]||"").length,i=t>r?t:r,u=Number.parseInt(e.toFixed(i).replace(".","")),a=Number.parseInt(n.toFixed(i).replace(".",""));return u%a/10**i}function Q(e,n,t){Object.defineProperty(e,n,{get(){{const r=t();return e[n]=r,r}},set(r){Object.defineProperty(e,n,{value:r})},configurable:!0})}function ea(e,n,t){Object.defineProperty(e,n,{value:t,writable:!0,enumerable:!0,configurable:!0})}function Og(e,n){return n?n.reduce((t,r)=>t?.[r],e):e}function zg(e){const n=Object.keys(e),t=n.map(r=>e[r]);return Promise.all(t).then(r=>{const i={};for(let u=0;u<n.length;u++)i[n[u]]=r[u];return i})}function Ug(e=10){const n="abcdefghijklmnopqrstuvwxyz";let t="";for(let r=0;r<e;r++)t+=n[Math.floor(Math.random()*n.length)];return t}function nt(e){return JSON.stringify(e)}var na=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function Gt(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var y0=Vi(()=>{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 Pg(e){let n=0;for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&n++;return n}var Rg=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}`)}},Mi=new Set(["string","number","symbol"]),b0=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Fn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ge(e,n,t){const r=new e._zod.constr(n??e._zod.def);return(!n||t?.parent)&&(r._zod.parent=e),r}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 jg(e){let n;return new Proxy({},{get(t,r,i){return n??(n=e()),Reflect.get(n,r,i)},set(t,r,i,u){return n??(n=e()),Reflect.set(n,r,i,u)},has(t,r){return n??(n=e()),Reflect.has(n,r)},deleteProperty(t,r){return n??(n=e()),Reflect.deleteProperty(n,r)},ownKeys(t){return n??(n=e()),Reflect.ownKeys(n)},getOwnPropertyDescriptor(t,r){return n??(n=e()),Reflect.getOwnPropertyDescriptor(n,r)},defineProperty(t,r,i){return n??(n=e()),Reflect.defineProperty(n,r,i)}})}function Z(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function k0(e){return Object.keys(e).filter(n=>e[n]._zod.optin==="optional"&&e[n]._zod.optout==="optional")}var D0={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]},S0={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Lg(e,n){const t={},r=e._zod.def;for(const i in n){if(!(i in r.shape))throw new Error(`Unrecognized key: "${i}"`);n[i]&&(t[i]=r.shape[i])}return Ge(e,{...e._zod.def,shape:t,checks:[]})}function Zg(e,n){const t={...e._zod.def.shape},r=e._zod.def;for(const i in n){if(!(i in r.shape))throw new Error(`Unrecognized key: "${i}"`);n[i]&&delete t[i]}return Ge(e,{...e._zod.def,shape:t,checks:[]})}function Vg(e,n){if(!Jt(n))throw new Error("Invalid input to extend: expected a plain object");const t={...e._zod.def,get shape(){const r={...e._zod.def.shape,...n};return ea(this,"shape",r),r},checks:[]};return Ge(e,t)}function qg(e,n){return Ge(e,{...e._zod.def,get shape(){const t={...e._zod.def.shape,...n._zod.def.shape};return ea(this,"shape",t),t},catchall:n._zod.def.catchall,checks:[]})}function Mg(e,n,t){const r=n._zod.def.shape,i={...r};if(t)for(const u in t){if(!(u in r))throw new Error(`Unrecognized key: "${u}"`);t[u]&&(i[u]=e?new e({type:"optional",innerType:r[u]}):r[u])}else for(const u in r)i[u]=e?new e({type:"optional",innerType:r[u]}):r[u];return Ge(n,{...n._zod.def,shape:i,checks:[]})}function Gg(e,n,t){const r=n._zod.def.shape,i={...r};if(t)for(const u in t){if(!(u in i))throw new Error(`Unrecognized key: "${u}"`);t[u]&&(i[u]=new e({type:"nonoptional",innerType:r[u]}))}else for(const u in r)i[u]=new e({type:"nonoptional",innerType:r[u]});return Ge(n,{...n._zod.def,shape:i,checks:[]})}function tt(e,n=0){for(let t=n;t<e.issues.length;t++)if(e.issues[t]?.continue!==!0)return!0;return!1}function Te(e,n){return n.map(t=>{var r;return(r=t).path??(r.path=[]),t.path.unshift(e),t})}function Ht(e){return typeof e=="string"?e:e?.message}function Ve(e,n,t){const r={...e,path:e.path??[]};if(!e.message){const i=Ht(e.inst?._zod.def?.error?.(e))??Ht(n?.error?.(e))??Ht(t.customError?.(e))??Ht(t.localeError?.(e))??"Invalid input";r.message=i}return delete r.inst,delete r.continue,n?.reportInput||delete r.input,r}function Gi(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Ji(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function B0(...e){const[n,t,r]=e;return typeof n=="string"?{message:n,code:"custom",input:t,inst:r}:{...n}}function Jg(e){return Object.entries(e).filter(([n,t])=>Number.isNaN(Number.parseInt(n,10))).map(n=>n[1])}var Hg=class{constructor(...e){}},A0=(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,g0,2)},enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},ta=p("$ZodError",A0),Qt=p("$ZodError",A0,{Parent:Error});function ia(e,n=t=>t.message){const t={},r=[];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))):r.push(n(i));return{formErrors:r,fieldErrors:t}}function ra(e,n){const t=n||function(u){return u.message},r={_errors:[]},i=u=>{for(const a of u.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)r._errors.push(t(a));else{let o=r,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),r}function w0(e,n){const t=n||function(u){return u.message},r={errors:[]},i=(u,a=[])=>{var o,s;for(const c of u.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){r.errors.push(t(c));continue}let f=r,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),r}function _0(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 C0(e){const n=[],t=[...e.issues].sort((r,i)=>r.path.length-i.path.length);for(const r of t)n.push(`\u2716 ${r.message}`),r.path?.length&&n.push(` \u2192 at ${_0(r.path)}`);return n.join(`
174
+ `)}var ua=e=>(n,t,r,i)=>{const u=r?Object.assign(r,{async:!1}):{async:!1},a=n._zod.run({value:t,issues:[]},u);if(a instanceof Promise)throw new et;if(a.issues.length){const o=new(i?.Err??e)(a.issues.map(s=>Ve(s,u,De())));throw na(o,i?.callee),o}return a.value},aa=ua(Qt),oa=e=>async(n,t,r,i)=>{const u=r?Object.assign(r,{async:!0}):{async:!0};let a=n._zod.run({value:t,issues:[]},u);if(a instanceof Promise&&(a=await a),a.issues.length){const o=new(i?.Err??e)(a.issues.map(s=>Ve(s,u,De())));throw na(o,i?.callee),o}return a.value},sa=oa(Qt),ca=e=>(n,t,r)=>{const i=r?{...r,async:!1}:{async:!1},u=n._zod.run({value:t,issues:[]},i);if(u instanceof Promise)throw new et;return u.issues.length?{success:!1,error:new(e??ta)(u.issues.map(a=>Ve(a,i,De())))}:{success:!0,data:u.value}},$0=ca(Qt),la=e=>async(n,t,r)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let u=n._zod.run({value:t,issues:[]},i);return u instanceof Promise&&(u=await u),u.issues.length?{success:!1,error:new e(u.issues.map(a=>Ve(a,i,De())))}:{success:!0,data:u.value}},I0=la(Qt),da={};An(da,{base64:()=>M0,base64url:()=>fa,bigint:()=>el,boolean:()=>il,browserEmail:()=>t6,cidrv4:()=>V0,cidrv6:()=>q0,cuid:()=>x0,cuid2:()=>F0,date:()=>Q0,datetime:()=>Y0,domain:()=>r6,duration:()=>U0,e164:()=>J0,email:()=>R0,emoji:()=>j0,extendedDuration:()=>Qg,guid:()=>P0,hostname:()=>G0,html5Email:()=>Xg,integer:()=>nl,ipv4:()=>L0,ipv6:()=>Z0,ksuid:()=>O0,lowercase:()=>al,nanoid:()=>z0,null:()=>rl,number:()=>tl,rfc5322Email:()=>e6,string:()=>X0,time:()=>W0,ulid:()=>N0,undefined:()=>ul,unicodeEmail:()=>n6,uppercase:()=>ol,uuid:()=>it,uuid4:()=>Kg,uuid6:()=>Wg,uuid7:()=>Yg,xid:()=>T0});var x0=/^[cC][^\s-]{8,}$/,F0=/^[0-9a-z]+$/,N0=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,T0=/^[0-9a-vA-V]{20}$/,O0=/^[A-Za-z0-9]{27}$/,z0=/^[a-zA-Z0-9_-]{21}$/,U0=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Qg=/^[-+]?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)?)??$/,P0=/^([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})$/,it=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)$/,Kg=it(4),Wg=it(6),Yg=it(7),R0=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Xg=/^[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])?)*$/,e6=/^(([^<>()\[\]\\.,;:\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,}))$/,n6=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,t6=/^[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])?)*$/,i6="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function j0(){return new RegExp(i6,"u")}var L0=/^(?:(?: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])$/,Z0=/^(([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})$/,V0=/^((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])$/,q0=/^(([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])$/,M0=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,fa=/^[A-Za-z0-9_-]*$/,G0=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,r6=/^([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]$/,H0="(?:(?:\\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])))",Q0=new RegExp(`^${H0}$`);function K0(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 W0(e){return new RegExp(`^${K0(e)}$`)}function Y0(e){const n=K0({precision:e.precision}),t=["Z"];e.local&&t.push(""),e.offset&&t.push("([+-]\\d{2}:\\d{2})");const r=`${n}(?:${t.join("|")})`;return new RegExp(`^${H0}T(?:${r})$`)}var X0=e=>{const n=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${n}$`)},el=/^\d+n?$/,nl=/^\d+$/,tl=/^-?\d+(?:\.\d+)?/i,il=/true|false/i,rl=/null/i,ul=/undefined/i,al=/^[^A-Z]*$/,ol=/^[^a-z]*$/,re=p("$ZodCheck",(e,n)=>{var t;e._zod??(e._zod={}),e._zod.def=n,(t=e._zod).onattach??(t.onattach=[])}),sl={number:"number",bigint:"bigint",object:"date"},ma=p("$ZodCheckLessThan",(e,n)=>{re.init(e,n);const t=sl[typeof n.value];e._zod.onattach.push(r=>{const i=r._zod.bag,u=(n.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;n.value<u&&(n.inclusive?i.maximum=n.value:i.exclusiveMaximum=n.value)}),e._zod.check=r=>{(n.inclusive?r.value<=n.value:r.value<n.value)||r.issues.push({origin:t,code:"too_big",maximum:n.value,input:r.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),va=p("$ZodCheckGreaterThan",(e,n)=>{re.init(e,n);const t=sl[typeof n.value];e._zod.onattach.push(r=>{const i=r._zod.bag,u=(n.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;n.value>u&&(n.inclusive?i.minimum=n.value:i.exclusiveMinimum=n.value)}),e._zod.check=r=>{(n.inclusive?r.value>=n.value:r.value>n.value)||r.issues.push({origin:t,code:"too_small",minimum:n.value,input:r.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),cl=p("$ZodCheckMultipleOf",(e,n)=>{re.init(e,n),e._zod.onattach.push(t=>{var r;(r=t._zod.bag).multipleOf??(r.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):E0(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})}}),ll=p("$ZodCheckNumberFormat",(e,n)=>{re.init(e,n),n.format=n.format||"float64";const t=n.format?.includes("int"),r=t?"int":"number",[i,u]=D0[n.format];e._zod.onattach.push(a=>{const o=a._zod.bag;o.format=n.format,o.minimum=i,o.maximum=u,t&&(o.pattern=nl)}),e._zod.check=a=>{const o=a.value;if(t){if(!Number.isInteger(o)){a.issues.push({expected:r,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:r,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:r,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>u&&a.issues.push({origin:"number",input:o,code:"too_big",maximum:u,inst:e})}}),dl=p("$ZodCheckBigIntFormat",(e,n)=>{re.init(e,n);const[t,r]=S0[n.format];e._zod.onattach.push(i=>{const u=i._zod.bag;u.format=n.format,u.minimum=t,u.maximum=r}),e._zod.check=i=>{const u=i.value;u<t&&i.issues.push({origin:"bigint",input:u,code:"too_small",minimum:t,inclusive:!0,inst:e,continue:!n.abort}),u>r&&i.issues.push({origin:"bigint",input:u,code:"too_big",maximum:r,inst:e})}}),fl=p("$ZodCheckMaxSize",(e,n)=>{var t;re.init(e,n),(t=e._zod.def).when??(t.when=r=>{const i=r.value;return!xn(i)&&i.size!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum<i&&(r._zod.bag.maximum=n.maximum)}),e._zod.check=r=>{const i=r.value;i.size<=n.maximum||r.issues.push({origin:Gi(i),code:"too_big",maximum:n.maximum,input:i,inst:e,continue:!n.abort})}}),ml=p("$ZodCheckMinSize",(e,n)=>{var t;re.init(e,n),(t=e._zod.def).when??(t.when=r=>{const i=r.value;return!xn(i)&&i.size!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>i&&(r._zod.bag.minimum=n.minimum)}),e._zod.check=r=>{const i=r.value;i.size>=n.minimum||r.issues.push({origin:Gi(i),code:"too_small",minimum:n.minimum,input:i,inst:e,continue:!n.abort})}}),vl=p("$ZodCheckSizeEquals",(e,n)=>{var t;re.init(e,n),(t=e._zod.def).when??(t.when=r=>{const i=r.value;return!xn(i)&&i.size!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag;i.minimum=n.size,i.maximum=n.size,i.size=n.size}),e._zod.check=r=>{const i=r.value,u=i.size;if(u===n.size)return;const a=u>n.size;r.issues.push({origin:Gi(i),...a?{code:"too_big",maximum:n.size}:{code:"too_small",minimum:n.size},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!n.abort})}}),pl=p("$ZodCheckMaxLength",(e,n)=>{var t;re.init(e,n),(t=e._zod.def).when??(t.when=r=>{const i=r.value;return!xn(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum<i&&(r._zod.bag.maximum=n.maximum)}),e._zod.check=r=>{const i=r.value;if(i.length<=n.maximum)return;const a=Ji(i);r.issues.push({origin:a,code:"too_big",maximum:n.maximum,inclusive:!0,input:i,inst:e,continue:!n.abort})}}),hl=p("$ZodCheckMinLength",(e,n)=>{var t;re.init(e,n),(t=e._zod.def).when??(t.when=r=>{const i=r.value;return!xn(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>i&&(r._zod.bag.minimum=n.minimum)}),e._zod.check=r=>{const i=r.value;if(i.length>=n.minimum)return;const a=Ji(i);r.issues.push({origin:a,code:"too_small",minimum:n.minimum,inclusive:!0,input:i,inst:e,continue:!n.abort})}}),gl=p("$ZodCheckLengthEquals",(e,n)=>{var t;re.init(e,n),(t=e._zod.def).when??(t.when=r=>{const i=r.value;return!xn(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag;i.minimum=n.length,i.maximum=n.length,i.length=n.length}),e._zod.check=r=>{const i=r.value,u=i.length;if(u===n.length)return;const a=Ji(i),o=u>n.length;r.issues.push({origin:a,...o?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!n.abort})}}),Kt=p("$ZodCheckStringFormat",(e,n)=>{var t,r;re.init(e,n),e._zod.onattach.push(i=>{const u=i._zod.bag;u.format=n.format,n.pattern&&(u.patterns??(u.patterns=new Set),u.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})}):(r=e._zod).check??(r.check=()=>{})}),El=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})}}),yl=p("$ZodCheckLowerCase",(e,n)=>{n.pattern??(n.pattern=al),Kt.init(e,n)}),bl=p("$ZodCheckUpperCase",(e,n)=>{n.pattern??(n.pattern=ol),Kt.init(e,n)}),kl=p("$ZodCheckIncludes",(e,n)=>{re.init(e,n);const t=Fn(n.includes),r=new RegExp(typeof n.position=="number"?`^.{${n.position}}${t}`:t);n.pattern=r,e._zod.onattach.push(i=>{const u=i._zod.bag;u.patterns??(u.patterns=new Set),u.patterns.add(r)}),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})}}),Dl=p("$ZodCheckStartsWith",(e,n)=>{re.init(e,n);const t=new RegExp(`^${Fn(n.prefix)}.*`);n.pattern??(n.pattern=t),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(t)}),e._zod.check=r=>{r.value.startsWith(n.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:n.prefix,input:r.value,inst:e,continue:!n.abort})}}),Sl=p("$ZodCheckEndsWith",(e,n)=>{re.init(e,n);const t=new RegExp(`.*${Fn(n.suffix)}$`);n.pattern??(n.pattern=t),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(t)}),e._zod.check=r=>{r.value.endsWith(n.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:n.suffix,input:r.value,inst:e,continue:!n.abort})}});function Bl(e,n,t){e.issues.length&&n.issues.push(...Te(t,e.issues))}var Al=p("$ZodCheckProperty",(e,n)=>{re.init(e,n),e._zod.check=t=>{const r=n.schema._zod.run({value:t.value[n.property],issues:[]},{});if(r instanceof Promise)return r.then(i=>Bl(i,t,n.property));Bl(r,t,n.property)}}),wl=p("$ZodCheckMimeType",(e,n)=>{re.init(e,n);const t=new Set(n.mime);e._zod.onattach.push(r=>{r._zod.bag.mime=n.mime}),e._zod.check=r=>{t.has(r.value.type)||r.issues.push({code:"invalid_value",values:n.mime,input:r.value.type,inst:e})}}),_l=p("$ZodCheckOverwrite",(e,n)=>{re.init(e,n),e._zod.check=t=>{t.value=n.tx(t.value)}}),Cl=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
175
  `).filter(u=>u),r=Math.min(...t.map(u=>u.length-u.trimStart().length)),i=t.map(u=>u.slice(r)).map(u=>" ".repeat(this.indent*2)+u);for(const u of i)this.content.push(u)}compile(){const e=Function,n=this?.args,r=[...(this?.content??[""]).map(i=>` ${i}`)];return new e(...n,r.join(`
176
- `))}},$l={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=$l;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const i of r)for(const u of i._zod.onattach)u(e);if(r.length===0)(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const i=(u,a,o)=>{let s=tt(u),c;for(const l of a){if(l._zod.def.when){if(!l._zod.def.when(u))continue}else if(s)continue;const f=u.issues.length,m=l._zod.check(u);if(m instanceof Promise&&o?.async===!1)throw new et;if(c||m instanceof Promise)c=(c??Promise.resolve()).then(async()=>{await m,u.issues.length!==f&&(s||(s=tt(u,f)))});else{if(u.issues.length===f)continue;s||(s=tt(u,f))}}return c?c.then(()=>u):u};e._zod.run=(u,a)=>{const o=e._zod.parse(u,a);if(o instanceof Promise){if(a.async===!1)throw new et;return o.then(s=>i(s,r,a))}return i(o,r,a)}}e["~standard"]={validate:i=>{try{const u=$0(e,i);return u.success?{value:u.data}:{issues:u.error?.issues}}catch{return I0(e,i).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}}),Wt=p("$ZodString",(e,n)=>{U.init(e,n),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??X0(e._zod.bag),e._zod.parse=(t,r)=>{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}}),Y=p("$ZodStringFormat",(e,n)=>{Qt.init(e,n),Wt.init(e,n)}),Il=p("$ZodGUID",(e,n)=>{n.pattern??(n.pattern=P0),Y.init(e,n)}),xl=p("$ZodUUID",(e,n)=>{if(n.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[n.version];if(r===void 0)throw new Error(`Invalid UUID version: "${n.version}"`);n.pattern??(n.pattern=it(r))}else n.pattern??(n.pattern=it());Y.init(e,n)}),Fl=p("$ZodEmail",(e,n)=>{n.pattern??(n.pattern=R0),Y.init(e,n)}),Nl=p("$ZodURL",(e,n)=>{Y.init(e,n),e._zod.check=t=>{try{const r=t.value,i=new URL(r),u=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:G0.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})),!r.endsWith("/")&&u.endsWith("/")?t.value=u.slice(0,-1):t.value=u;return}catch{t.issues.push({code:"invalid_format",format:"url",input:t.value,inst:e,continue:!n.abort})}}}),Tl=p("$ZodEmoji",(e,n)=>{n.pattern??(n.pattern=j0()),Y.init(e,n)}),Ol=p("$ZodNanoID",(e,n)=>{n.pattern??(n.pattern=z0),Y.init(e,n)}),zl=p("$ZodCUID",(e,n)=>{n.pattern??(n.pattern=x0),Y.init(e,n)}),Ul=p("$ZodCUID2",(e,n)=>{n.pattern??(n.pattern=F0),Y.init(e,n)}),Pl=p("$ZodULID",(e,n)=>{n.pattern??(n.pattern=N0),Y.init(e,n)}),Rl=p("$ZodXID",(e,n)=>{n.pattern??(n.pattern=T0),Y.init(e,n)}),jl=p("$ZodKSUID",(e,n)=>{n.pattern??(n.pattern=O0),Y.init(e,n)}),Ll=p("$ZodISODateTime",(e,n)=>{n.pattern??(n.pattern=Y0(n)),Y.init(e,n)}),Zl=p("$ZodISODate",(e,n)=>{n.pattern??(n.pattern=K0),Y.init(e,n)}),Vl=p("$ZodISOTime",(e,n)=>{n.pattern??(n.pattern=W0(n)),Y.init(e,n)}),ql=p("$ZodISODuration",(e,n)=>{n.pattern??(n.pattern=U0),Y.init(e,n)}),Ml=p("$ZodIPv4",(e,n)=>{n.pattern??(n.pattern=L0),Y.init(e,n),e._zod.onattach.push(t=>{const r=t._zod.bag;r.format="ipv4"})}),Gl=p("$ZodIPv6",(e,n)=>{n.pattern??(n.pattern=Z0),Y.init(e,n),e._zod.onattach.push(t=>{const r=t._zod.bag;r.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})}}}),Jl=p("$ZodCIDRv4",(e,n)=>{n.pattern??(n.pattern=V0),Y.init(e,n)}),Hl=p("$ZodCIDRv6",(e,n)=>{n.pattern??(n.pattern=q0),Y.init(e,n),e._zod.check=t=>{const[r,i]=t.value.split("/");try{if(!i)throw new Error;const u=Number(i);if(`${u}`!==i)throw new Error;if(u<0||u>128)throw new Error;new URL(`http://[${r}]`)}catch{t.issues.push({code:"invalid_format",format:"cidrv6",input:t.value,inst:e,continue:!n.abort})}}});function pa(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Kl=p("$ZodBase64",(e,n)=>{n.pattern??(n.pattern=M0),Y.init(e,n),e._zod.onattach.push(t=>{t._zod.bag.contentEncoding="base64"}),e._zod.check=t=>{pa(t.value)||t.issues.push({code:"invalid_format",format:"base64",input:t.value,inst:e,continue:!n.abort})}});function Ql(e){if(!fa.test(e))return!1;const n=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),t=n.padEnd(Math.ceil(n.length/4)*4,"=");return pa(t)}var Wl=p("$ZodBase64URL",(e,n)=>{n.pattern??(n.pattern=fa),Y.init(e,n),e._zod.onattach.push(t=>{t._zod.bag.contentEncoding="base64url"}),e._zod.check=t=>{Ql(t.value)||t.issues.push({code:"invalid_format",format:"base64url",input:t.value,inst:e,continue:!n.abort})}}),Yl=p("$ZodE164",(e,n)=>{n.pattern??(n.pattern=J0),Y.init(e,n)});function Xl(e,n=null){try{const t=e.split(".");if(t.length!==3)return!1;const[r]=t;if(!r)return!1;const i=JSON.parse(atob(r));return!("typ"in i&&i?.typ!=="JWT"||!i.alg||n&&(!("alg"in i)||i.alg!==n))}catch{return!1}}var ed=p("$ZodJWT",(e,n)=>{Y.init(e,n),e._zod.check=t=>{Xl(t.value,n.alg)||t.issues.push({code:"invalid_format",format:"jwt",input:t.value,inst:e,continue:!n.abort})}}),nd=p("$ZodCustomStringFormat",(e,n)=>{Y.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})}}),ha=p("$ZodNumber",(e,n)=>{U.init(e,n),e._zod.pattern=e._zod.bag.pattern??tl,e._zod.parse=(t,r)=>{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 u=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,...u?{received:u}:{}}),t}}),td=p("$ZodNumber",(e,n)=>{ll.init(e,n),ha.init(e,n)}),ga=p("$ZodBoolean",(e,n)=>{U.init(e,n),e._zod.pattern=il,e._zod.parse=(t,r)=>{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}}),Ea=p("$ZodBigInt",(e,n)=>{U.init(e,n),e._zod.pattern=el,e._zod.parse=(t,r)=>{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}}),id=p("$ZodBigInt",(e,n)=>{dl.init(e,n),Ea.init(e,n)}),rd=p("$ZodSymbol",(e,n)=>{U.init(e,n),e._zod.parse=(t,r)=>{const i=t.value;return typeof i=="symbol"||t.issues.push({expected:"symbol",code:"invalid_type",input:i,inst:e}),t}}),ud=p("$ZodUndefined",(e,n)=>{U.init(e,n),e._zod.pattern=ul,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(t,r)=>{const i=t.value;return typeof i>"u"||t.issues.push({expected:"undefined",code:"invalid_type",input:i,inst:e}),t}}),ad=p("$ZodNull",(e,n)=>{U.init(e,n),e._zod.pattern=rl,e._zod.values=new Set([null]),e._zod.parse=(t,r)=>{const i=t.value;return i===null||t.issues.push({expected:"null",code:"invalid_type",input:i,inst:e}),t}}),od=p("$ZodAny",(e,n)=>{U.init(e,n),e._zod.parse=t=>t}),Hi=p("$ZodUnknown",(e,n)=>{U.init(e,n),e._zod.parse=t=>t}),sd=p("$ZodNever",(e,n)=>{U.init(e,n),e._zod.parse=(t,r)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)}),cd=p("$ZodVoid",(e,n)=>{U.init(e,n),e._zod.parse=(t,r)=>{const i=t.value;return typeof i>"u"||t.issues.push({expected:"void",code:"invalid_type",input:i,inst:e}),t}}),ld=p("$ZodDate",(e,n)=>{U.init(e,n),e._zod.parse=(t,r)=>{if(n.coerce)try{t.value=new Date(t.value)}catch{}const i=t.value,u=i instanceof Date;return u&&!Number.isNaN(i.getTime())||t.issues.push({expected:"date",code:"invalid_type",input:i,...u?{received:"Invalid Date"}:{},inst:e}),t}});function dd(e,n,t){e.issues.length&&n.issues.push(...Te(t,e.issues)),n.value[t]=e.value}var ya=p("$ZodArray",(e,n)=>{U.init(e,n),e._zod.parse=(t,r)=>{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 u=[];for(let a=0;a<i.length;a++){const o=i[a],s=n.element._zod.run({value:o,issues:[]},r);s instanceof Promise?u.push(s.then(c=>dd(c,t,a))):dd(s,t,a)}return u.length?Promise.all(u).then(()=>t):t}});function Ki(e,n,t){e.issues.length&&n.issues.push(...Te(t,e.issues)),n.value[t]=e.value}function fd(e,n,t,r){e.issues.length?r[t]===void 0?t in r?n.value[t]=void 0:n.value[t]=e.value:n.issues.push(...Te(t,e.issues)):e.value===void 0?t in r&&(n.value[t]=void 0):n.value[t]=e.value}var md=p("$ZodObject",(e,n)=>{U.init(e,n);const t=Vi(()=>{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=k0(n.shape);return{shape:n.shape,keys:f,keySet:new Set(f),numKeys:f.length,optionalKeys:new Set(m)}});K(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 r=f=>{const m=new Cl(["shape","payload","ctx"]),d=t.value,v=g=>{const k=nt(g);return`shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`};m.write("const input = payload.value;");const h=Object.create(null);let b=0;for(const g of d.keys)h[g]=`key_${b++}`;m.write("const newResult = {}");for(const g of d.keys)if(d.optionalKeys.has(g)){const k=h[g];m.write(`const ${k} = ${v(g)};`);const _=nt(g);m.write(`
176
+ `))}},$l={major:4,minor:0,patch:5},P=p("$ZodType",(e,n)=>{var t;e??(e={}),e._zod.def=n,e._zod.bag=e._zod.bag||{},e._zod.version=$l;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const i of r)for(const u of i._zod.onattach)u(e);if(r.length===0)(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const i=(u,a,o)=>{let s=tt(u),c;for(const l of a){if(l._zod.def.when){if(!l._zod.def.when(u))continue}else if(s)continue;const f=u.issues.length,m=l._zod.check(u);if(m instanceof Promise&&o?.async===!1)throw new et;if(c||m instanceof Promise)c=(c??Promise.resolve()).then(async()=>{await m,u.issues.length!==f&&(s||(s=tt(u,f)))});else{if(u.issues.length===f)continue;s||(s=tt(u,f))}}return c?c.then(()=>u):u};e._zod.run=(u,a)=>{const o=e._zod.parse(u,a);if(o instanceof Promise){if(a.async===!1)throw new et;return o.then(s=>i(s,r,a))}return i(o,r,a)}}e["~standard"]={validate:i=>{try{const u=$0(e,i);return u.success?{value:u.data}:{issues:u.error?.issues}}catch{return I0(e,i).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}}),Wt=p("$ZodString",(e,n)=>{P.init(e,n),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??X0(e._zod.bag),e._zod.parse=(t,r)=>{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}}),Y=p("$ZodStringFormat",(e,n)=>{Kt.init(e,n),Wt.init(e,n)}),Il=p("$ZodGUID",(e,n)=>{n.pattern??(n.pattern=P0),Y.init(e,n)}),xl=p("$ZodUUID",(e,n)=>{if(n.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[n.version];if(r===void 0)throw new Error(`Invalid UUID version: "${n.version}"`);n.pattern??(n.pattern=it(r))}else n.pattern??(n.pattern=it());Y.init(e,n)}),Fl=p("$ZodEmail",(e,n)=>{n.pattern??(n.pattern=R0),Y.init(e,n)}),Nl=p("$ZodURL",(e,n)=>{Y.init(e,n),e._zod.check=t=>{try{const r=t.value,i=new URL(r),u=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:G0.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})),!r.endsWith("/")&&u.endsWith("/")?t.value=u.slice(0,-1):t.value=u;return}catch{t.issues.push({code:"invalid_format",format:"url",input:t.value,inst:e,continue:!n.abort})}}}),Tl=p("$ZodEmoji",(e,n)=>{n.pattern??(n.pattern=j0()),Y.init(e,n)}),Ol=p("$ZodNanoID",(e,n)=>{n.pattern??(n.pattern=z0),Y.init(e,n)}),zl=p("$ZodCUID",(e,n)=>{n.pattern??(n.pattern=x0),Y.init(e,n)}),Ul=p("$ZodCUID2",(e,n)=>{n.pattern??(n.pattern=F0),Y.init(e,n)}),Pl=p("$ZodULID",(e,n)=>{n.pattern??(n.pattern=N0),Y.init(e,n)}),Rl=p("$ZodXID",(e,n)=>{n.pattern??(n.pattern=T0),Y.init(e,n)}),jl=p("$ZodKSUID",(e,n)=>{n.pattern??(n.pattern=O0),Y.init(e,n)}),Ll=p("$ZodISODateTime",(e,n)=>{n.pattern??(n.pattern=Y0(n)),Y.init(e,n)}),Zl=p("$ZodISODate",(e,n)=>{n.pattern??(n.pattern=Q0),Y.init(e,n)}),Vl=p("$ZodISOTime",(e,n)=>{n.pattern??(n.pattern=W0(n)),Y.init(e,n)}),ql=p("$ZodISODuration",(e,n)=>{n.pattern??(n.pattern=U0),Y.init(e,n)}),Ml=p("$ZodIPv4",(e,n)=>{n.pattern??(n.pattern=L0),Y.init(e,n),e._zod.onattach.push(t=>{const r=t._zod.bag;r.format="ipv4"})}),Gl=p("$ZodIPv6",(e,n)=>{n.pattern??(n.pattern=Z0),Y.init(e,n),e._zod.onattach.push(t=>{const r=t._zod.bag;r.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})}}}),Jl=p("$ZodCIDRv4",(e,n)=>{n.pattern??(n.pattern=V0),Y.init(e,n)}),Hl=p("$ZodCIDRv6",(e,n)=>{n.pattern??(n.pattern=q0),Y.init(e,n),e._zod.check=t=>{const[r,i]=t.value.split("/");try{if(!i)throw new Error;const u=Number(i);if(`${u}`!==i)throw new Error;if(u<0||u>128)throw new Error;new URL(`http://[${r}]`)}catch{t.issues.push({code:"invalid_format",format:"cidrv6",input:t.value,inst:e,continue:!n.abort})}}});function pa(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Ql=p("$ZodBase64",(e,n)=>{n.pattern??(n.pattern=M0),Y.init(e,n),e._zod.onattach.push(t=>{t._zod.bag.contentEncoding="base64"}),e._zod.check=t=>{pa(t.value)||t.issues.push({code:"invalid_format",format:"base64",input:t.value,inst:e,continue:!n.abort})}});function Kl(e){if(!fa.test(e))return!1;const n=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),t=n.padEnd(Math.ceil(n.length/4)*4,"=");return pa(t)}var Wl=p("$ZodBase64URL",(e,n)=>{n.pattern??(n.pattern=fa),Y.init(e,n),e._zod.onattach.push(t=>{t._zod.bag.contentEncoding="base64url"}),e._zod.check=t=>{Kl(t.value)||t.issues.push({code:"invalid_format",format:"base64url",input:t.value,inst:e,continue:!n.abort})}}),Yl=p("$ZodE164",(e,n)=>{n.pattern??(n.pattern=J0),Y.init(e,n)});function Xl(e,n=null){try{const t=e.split(".");if(t.length!==3)return!1;const[r]=t;if(!r)return!1;const i=JSON.parse(atob(r));return!("typ"in i&&i?.typ!=="JWT"||!i.alg||n&&(!("alg"in i)||i.alg!==n))}catch{return!1}}var ed=p("$ZodJWT",(e,n)=>{Y.init(e,n),e._zod.check=t=>{Xl(t.value,n.alg)||t.issues.push({code:"invalid_format",format:"jwt",input:t.value,inst:e,continue:!n.abort})}}),nd=p("$ZodCustomStringFormat",(e,n)=>{Y.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})}}),ha=p("$ZodNumber",(e,n)=>{P.init(e,n),e._zod.pattern=e._zod.bag.pattern??tl,e._zod.parse=(t,r)=>{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 u=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,...u?{received:u}:{}}),t}}),td=p("$ZodNumber",(e,n)=>{ll.init(e,n),ha.init(e,n)}),ga=p("$ZodBoolean",(e,n)=>{P.init(e,n),e._zod.pattern=il,e._zod.parse=(t,r)=>{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}}),Ea=p("$ZodBigInt",(e,n)=>{P.init(e,n),e._zod.pattern=el,e._zod.parse=(t,r)=>{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}}),id=p("$ZodBigInt",(e,n)=>{dl.init(e,n),Ea.init(e,n)}),rd=p("$ZodSymbol",(e,n)=>{P.init(e,n),e._zod.parse=(t,r)=>{const i=t.value;return typeof i=="symbol"||t.issues.push({expected:"symbol",code:"invalid_type",input:i,inst:e}),t}}),ud=p("$ZodUndefined",(e,n)=>{P.init(e,n),e._zod.pattern=ul,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(t,r)=>{const i=t.value;return typeof i>"u"||t.issues.push({expected:"undefined",code:"invalid_type",input:i,inst:e}),t}}),ad=p("$ZodNull",(e,n)=>{P.init(e,n),e._zod.pattern=rl,e._zod.values=new Set([null]),e._zod.parse=(t,r)=>{const i=t.value;return i===null||t.issues.push({expected:"null",code:"invalid_type",input:i,inst:e}),t}}),od=p("$ZodAny",(e,n)=>{P.init(e,n),e._zod.parse=t=>t}),Hi=p("$ZodUnknown",(e,n)=>{P.init(e,n),e._zod.parse=t=>t}),sd=p("$ZodNever",(e,n)=>{P.init(e,n),e._zod.parse=(t,r)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)}),cd=p("$ZodVoid",(e,n)=>{P.init(e,n),e._zod.parse=(t,r)=>{const i=t.value;return typeof i>"u"||t.issues.push({expected:"void",code:"invalid_type",input:i,inst:e}),t}}),ld=p("$ZodDate",(e,n)=>{P.init(e,n),e._zod.parse=(t,r)=>{if(n.coerce)try{t.value=new Date(t.value)}catch{}const i=t.value,u=i instanceof Date;return u&&!Number.isNaN(i.getTime())||t.issues.push({expected:"date",code:"invalid_type",input:i,...u?{received:"Invalid Date"}:{},inst:e}),t}});function dd(e,n,t){e.issues.length&&n.issues.push(...Te(t,e.issues)),n.value[t]=e.value}var ya=p("$ZodArray",(e,n)=>{P.init(e,n),e._zod.parse=(t,r)=>{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 u=[];for(let a=0;a<i.length;a++){const o=i[a],s=n.element._zod.run({value:o,issues:[]},r);s instanceof Promise?u.push(s.then(c=>dd(c,t,a))):dd(s,t,a)}return u.length?Promise.all(u).then(()=>t):t}});function Qi(e,n,t){e.issues.length&&n.issues.push(...Te(t,e.issues)),n.value[t]=e.value}function fd(e,n,t,r){e.issues.length?r[t]===void 0?t in r?n.value[t]=void 0:n.value[t]=e.value:n.issues.push(...Te(t,e.issues)):e.value===void 0?t in r&&(n.value[t]=void 0):n.value[t]=e.value}var md=p("$ZodObject",(e,n)=>{P.init(e,n);const t=Vi(()=>{const f=Object.keys(n.shape);for(const d of f)if(!(n.shape[d]instanceof P))throw new Error(`Invalid element at key "${d}": expected a Zod schema`);const m=k0(n.shape);return{shape:n.shape,keys:f,keySet:new Set(f),numKeys:f.length,optionalKeys:new Set(m)}});Q(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 r=f=>{const m=new Cl(["shape","payload","ctx"]),d=t.value,v=g=>{const k=nt(g);return`shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`};m.write("const input = payload.value;");const h=Object.create(null);let b=0;for(const g of d.keys)h[g]=`key_${b++}`;m.write("const newResult = {}");for(const g of d.keys)if(d.optionalKeys.has(g)){const k=h[g];m.write(`const ${k} = ${v(g)};`);const _=nt(g);m.write(`
177
177
  if (${k}.issues.length) {
178
178
  if (input[${_}] === undefined) {
179
179
  if (${_} in input) {
@@ -196,9 +196,9 @@ query UserBills {
196
196
  if (${k}.issues.length) payload.issues = payload.issues.concat(${k}.issues.map(iss => ({
197
197
  ...iss,
198
198
  path: iss.path ? [${nt(g)}, ...iss.path] : [${nt(g)}]
199
- })));`),m.write(`newResult[${nt(g)}] = ${k}.value`)}m.write("payload.value = newResult;"),m.write("return payload;");const E=m.compile();return(g,k)=>E(f,g,k)};let i;const u=Gt,a=!Zi.jitless,s=a&&y0.value,c=n.catchall;let l;e._zod.parse=(f,m)=>{l??(l=t.value);const d=f.value;if(!u(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=r(n.shape)),f=i(f,m);else{f.value={};const k=l.shape;for(const _ of l.keys){const B=k[_],J=B._zod.run({value:d[_],issues:[]},m),V=B._zod.optin==="optional"&&B._zod.optout==="optional";J instanceof Promise?v.push(J.then(F=>V?fd(F,f,_,d):Ki(F,f,_))):V?fd(J,f,_,d):Ki(J,f,_)}}if(!c)return v.length?Promise.all(v).then(()=>f):f;const h=[],b=l.keySet,E=c._zod,g=E.def.type;for(const k of Object.keys(d)){if(b.has(k))continue;if(g==="never"){h.push(k);continue}const _=E.run({value:d[k],issues:[]},m);_ instanceof Promise?v.push(_.then(B=>Ki(B,f,k))):Ki(_,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 vd(e,n,t,r){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(u=>Ve(u,r,De())))}),n}var ba=p("$ZodUnion",(e,n)=>{U.init(e,n),K(e._zod,"optin",()=>n.options.some(t=>t._zod.optin==="optional")?"optional":void 0),K(e._zod,"optout",()=>n.options.some(t=>t._zod.optout==="optional")?"optional":void 0),K(e._zod,"values",()=>{if(n.options.every(t=>t._zod.values))return new Set(n.options.flatMap(t=>Array.from(t._zod.values)))}),K(e._zod,"pattern",()=>{if(n.options.every(t=>t._zod.pattern)){const t=n.options.map(r=>r._zod.pattern);return new RegExp(`^(${t.map(r=>qi(r.source)).join("|")})$`)}}),e._zod.parse=(t,r)=>{let i=!1;const u=[];for(const a of n.options){const o=a._zod.run({value:t.value,issues:[]},r);if(o instanceof Promise)u.push(o),i=!0;else{if(o.issues.length===0)return o;u.push(o)}}return i?Promise.all(u).then(a=>vd(a,t,e,r)):vd(u,t,e,r)}}),pd=p("$ZodDiscriminatedUnion",(e,n)=>{ba.init(e,n);const t=e._zod.parse;K(e._zod,"propValues",()=>{const i={};for(const u of n.options){const a=u._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${n.options.indexOf(u)}"`);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 r=Vi(()=>{const i=n.options,u=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(u.has(s))throw new Error(`Duplicate discriminator value "${String(s)}"`);u.set(s,a)}}return u});e._zod.parse=(i,u)=>{const a=i.value;if(!Gt(a))return i.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),i;const o=r.value.get(a?.[n.discriminator]);return o?o._zod.run(i,u):n.unionFallback?t(i,u):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",input:a,path:[n.discriminator],inst:e}),i)}}),hd=p("$ZodIntersection",(e,n)=>{U.init(e,n),e._zod.parse=(t,r)=>{const i=t.value,u=n.left._zod.run({value:i,issues:[]},r),a=n.right._zod.run({value:i,issues:[]},r);return u instanceof Promise||a instanceof Promise?Promise.all([u,a]).then(([s,c])=>gd(t,s,c)):gd(t,u,a)}});function ka(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),r=Object.keys(e).filter(u=>t.indexOf(u)!==-1),i={...e,...n};for(const u of r){const a=ka(e[u],n[u]);if(!a.valid)return{valid:!1,mergeErrorPath:[u,...a.mergeErrorPath]};i[u]=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 r=0;r<e.length;r++){const i=e[r],u=n[r],a=ka(i,u);if(!a.valid)return{valid:!1,mergeErrorPath:[r,...a.mergeErrorPath]};t.push(a.data)}return{valid:!0,data:t}}return{valid:!1,mergeErrorPath:[]}}function gd(e,n,t){if(n.issues.length&&e.issues.push(...n.issues),t.issues.length&&e.issues.push(...t.issues),tt(e))return e;const r=ka(n.value,t.value);if(!r.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}var Qi=p("$ZodTuple",(e,n)=>{U.init(e,n);const t=n.items,r=t.length-[...t].reverse().findIndex(i=>i._zod.optin!=="optional");e._zod.parse=(i,u)=>{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<r-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>=r)continue;const l=c._zod.run({value:a[s],issues:[]},u);l instanceof Promise?o.push(l.then(f=>Wi(f,i,s))):Wi(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:[]},u);f instanceof Promise?o.push(f.then(m=>Wi(m,i,s))):Wi(f,i,s)}}return o.length?Promise.all(o).then(()=>i):i}});function Wi(e,n,t){e.issues.length&&n.issues.push(...Te(t,e.issues)),n.value[t]=e.value}var Ed=p("$ZodRecord",(e,n)=>{U.init(e,n),e._zod.parse=(t,r)=>{const i=t.value;if(!Jt(i))return t.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),t;const u=[];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:[]},r);c instanceof Promise?u.push(c.then(l=>{l.issues.length&&t.issues.push(...Te(s,l.issues)),t.value[s]=l.value})):(c.issues.length&&t.issues.push(...Te(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:[]},r);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=>Ve(c,r,De())),input:a,path:[a],inst:e}),t.value[o.value]=o.value;continue}const s=n.valueType._zod.run({value:i[a],issues:[]},r);s instanceof Promise?u.push(s.then(c=>{c.issues.length&&t.issues.push(...Te(a,c.issues)),t.value[o.value]=c.value})):(s.issues.length&&t.issues.push(...Te(a,s.issues)),t.value[o.value]=s.value)}}return u.length?Promise.all(u).then(()=>t):t}}),yd=p("$ZodMap",(e,n)=>{U.init(e,n),e._zod.parse=(t,r)=>{const i=t.value;if(!(i instanceof Map))return t.issues.push({expected:"map",code:"invalid_type",input:i,inst:e}),t;const u=[];t.value=new Map;for(const[a,o]of i){const s=n.keyType._zod.run({value:a,issues:[]},r),c=n.valueType._zod.run({value:o,issues:[]},r);s instanceof Promise||c instanceof Promise?u.push(Promise.all([s,c]).then(([l,f])=>{bd(l,f,t,a,i,e,r)})):bd(s,c,t,a,i,e,r)}return u.length?Promise.all(u).then(()=>t):t}});function bd(e,n,t,r,i,u,a){e.issues.length&&(Mi.has(typeof r)?t.issues.push(...Te(r,e.issues)):t.issues.push({origin:"map",code:"invalid_key",input:i,inst:u,issues:e.issues.map(o=>Ve(o,a,De()))})),n.issues.length&&(Mi.has(typeof r)?t.issues.push(...Te(r,n.issues)):t.issues.push({origin:"map",code:"invalid_element",input:i,inst:u,key:r,issues:n.issues.map(o=>Ve(o,a,De()))})),t.value.set(e.value,n.value)}var kd=p("$ZodSet",(e,n)=>{U.init(e,n),e._zod.parse=(t,r)=>{const i=t.value;if(!(i instanceof Set))return t.issues.push({input:i,inst:e,expected:"set",code:"invalid_type"}),t;const u=[];t.value=new Set;for(const a of i){const o=n.valueType._zod.run({value:a,issues:[]},r);o instanceof Promise?u.push(o.then(s=>Dd(s,t))):Dd(o,t)}return u.length?Promise.all(u).then(()=>t):t}});function Dd(e,n){e.issues.length&&n.issues.push(...e.issues),n.value.add(e.value)}var Sd=p("$ZodEnum",(e,n)=>{U.init(e,n);const t=Xu(n.entries);e._zod.values=new Set(t),e._zod.pattern=new RegExp(`^(${t.filter(r=>Mi.has(typeof r)).map(r=>typeof r=="string"?Fn(r):r.toString()).join("|")})$`),e._zod.parse=(r,i)=>{const u=r.value;return e._zod.values.has(u)||r.issues.push({code:"invalid_value",values:t,input:u,inst:e}),r}}),Bd=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"?Fn(t):t?t.toString():String(t)).join("|")})$`),e._zod.parse=(t,r)=>{const i=t.value;return e._zod.values.has(i)||t.issues.push({code:"invalid_value",values:n.values,input:i,inst:e}),t}}),Ad=p("$ZodFile",(e,n)=>{U.init(e,n),e._zod.parse=(t,r)=>{const i=t.value;return i instanceof File||t.issues.push({expected:"file",code:"invalid_type",input:i,inst:e}),t}}),Da=p("$ZodTransform",(e,n)=>{U.init(e,n),e._zod.parse=(t,r)=>{const i=n.transform(t.value,t);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(a=>(t.value=a,t));if(i instanceof Promise)throw new et;return t.value=i,t}}),wd=p("$ZodOptional",(e,n)=>{U.init(e,n),e._zod.optin="optional",e._zod.optout="optional",K(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,void 0]):void 0),K(e._zod,"pattern",()=>{const t=n.innerType._zod.pattern;return t?new RegExp(`^(${qi(t.source)})?$`):void 0}),e._zod.parse=(t,r)=>n.innerType._zod.optin==="optional"?n.innerType._zod.run(t,r):t.value===void 0?t:n.innerType._zod.run(t,r)}),_d=p("$ZodNullable",(e,n)=>{U.init(e,n),K(e._zod,"optin",()=>n.innerType._zod.optin),K(e._zod,"optout",()=>n.innerType._zod.optout),K(e._zod,"pattern",()=>{const t=n.innerType._zod.pattern;return t?new RegExp(`^(${qi(t.source)}|null)$`):void 0}),K(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,null]):void 0),e._zod.parse=(t,r)=>t.value===null?t:n.innerType._zod.run(t,r)}),Cd=p("$ZodDefault",(e,n)=>{U.init(e,n),e._zod.optin="optional",K(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(t,r)=>{if(t.value===void 0)return t.value=n.defaultValue,t;const i=n.innerType._zod.run(t,r);return i instanceof Promise?i.then(u=>$d(u,n)):$d(i,n)}});function $d(e,n){return e.value===void 0&&(e.value=n.defaultValue),e}var Id=p("$ZodPrefault",(e,n)=>{U.init(e,n),e._zod.optin="optional",K(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(t,r)=>(t.value===void 0&&(t.value=n.defaultValue),n.innerType._zod.run(t,r))}),xd=p("$ZodNonOptional",(e,n)=>{U.init(e,n),K(e._zod,"values",()=>{const t=n.innerType._zod.values;return t?new Set([...t].filter(r=>r!==void 0)):void 0}),e._zod.parse=(t,r)=>{const i=n.innerType._zod.run(t,r);return i instanceof Promise?i.then(u=>Fd(u,e)):Fd(i,e)}});function Fd(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 Nd=p("$ZodSuccess",(e,n)=>{U.init(e,n),e._zod.parse=(t,r)=>{const i=n.innerType._zod.run(t,r);return i instanceof Promise?i.then(u=>(t.value=u.issues.length===0,t)):(t.value=i.issues.length===0,t)}}),Td=p("$ZodCatch",(e,n)=>{U.init(e,n),e._zod.optin="optional",K(e._zod,"optout",()=>n.innerType._zod.optout),K(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(t,r)=>{const i=n.innerType._zod.run(t,r);return i instanceof Promise?i.then(u=>(t.value=u.value,u.issues.length&&(t.value=n.catchValue({...t,error:{issues:u.issues.map(a=>Ve(a,r,De()))},input:t.value}),t.issues=[]),t)):(t.value=i.value,i.issues.length&&(t.value=n.catchValue({...t,error:{issues:i.issues.map(u=>Ve(u,r,De()))},input:t.value}),t.issues=[]),t)}}),Od=p("$ZodNaN",(e,n)=>{U.init(e,n),e._zod.parse=(t,r)=>((typeof t.value!="number"||!Number.isNaN(t.value))&&t.issues.push({input:t.value,inst:e,expected:"nan",code:"invalid_type"}),t)}),Sa=p("$ZodPipe",(e,n)=>{U.init(e,n),K(e._zod,"values",()=>n.in._zod.values),K(e._zod,"optin",()=>n.in._zod.optin),K(e._zod,"optout",()=>n.out._zod.optout),K(e._zod,"propValues",()=>n.in._zod.propValues),e._zod.parse=(t,r)=>{const i=n.in._zod.run(t,r);return i instanceof Promise?i.then(u=>zd(u,n,r)):zd(i,n,r)}});function zd(e,n,t){return tt(e)?e:n.out._zod.run({value:e.value,issues:e.issues},t)}var Ud=p("$ZodReadonly",(e,n)=>{U.init(e,n),K(e._zod,"propValues",()=>n.innerType._zod.propValues),K(e._zod,"values",()=>n.innerType._zod.values),K(e._zod,"optin",()=>n.innerType._zod.optin),K(e._zod,"optout",()=>n.innerType._zod.optout),e._zod.parse=(t,r)=>{const i=n.innerType._zod.run(t,r);return i instanceof Promise?i.then(Pd):Pd(i)}});function Pd(e){return e.value=Object.freeze(e.value),e}var Rd=p("$ZodTemplateLiteral",(e,n)=>{U.init(e,n);const t=[];for(const r of n.parts)if(r instanceof U){if(!r._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...r._zod.traits].shift()}`);const i=r._zod.pattern instanceof RegExp?r._zod.pattern.source:r._zod.pattern;if(!i)throw new Error(`Invalid template literal part: ${r._zod.traits}`);const u=i.startsWith("^")?1:0,a=i.endsWith("$")?i.length-1:i.length;t.push(i.slice(u,a))}else if(r===null||b0.has(typeof r))t.push(Fn(`${r}`));else throw new Error(`Invalid template literal part: ${r}`);e._zod.pattern=new RegExp(`^${t.join("")}$`),e._zod.parse=(r,i)=>typeof r.value!="string"?(r.issues.push({input:r.value,inst:e,expected:"template_literal",code:"invalid_type"}),r):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(r.value)||r.issues.push({input:r.value,inst:e,code:"invalid_format",format:n.format??"template_literal",pattern:e._zod.pattern.source}),r)}),jd=p("$ZodPromise",(e,n)=>{U.init(e,n),e._zod.parse=(t,r)=>Promise.resolve(t.value).then(i=>n.innerType._zod.run({value:i,issues:[]},r))}),Ld=p("$ZodLazy",(e,n)=>{U.init(e,n),K(e._zod,"innerType",()=>n.getter()),K(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),K(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),K(e._zod,"optin",()=>e._zod.innerType._zod.optin),K(e._zod,"optout",()=>e._zod.innerType._zod.optout),e._zod.parse=(t,r)=>e._zod.innerType._zod.run(t,r)}),Zd=p("$ZodCustom",(e,n)=>{re.init(e,n),U.init(e,n),e._zod.parse=(t,r)=>t,e._zod.check=t=>{const r=t.value,i=n.fn(r);if(i instanceof Promise)return i.then(u=>Vd(u,t,r,e));Vd(i,t,r,e)}});function Vd(e,n,t,r){if(!e){const i={code:"custom",input:t,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(i.params=r._zod.def.params),n.issues.push(B0(i))}}var Ba={};An(Ba,{ar:()=>u6,az:()=>o6,be:()=>c6,ca:()=>d6,cs:()=>m6,de:()=>p6,en:()=>Md,eo:()=>b6,es:()=>D6,fa:()=>B6,fi:()=>w6,fr:()=>C6,frCA:()=>I6,he:()=>F6,hu:()=>T6,id:()=>z6,it:()=>P6,ja:()=>j6,kh:()=>Z6,ko:()=>q6,mk:()=>G6,ms:()=>H6,nl:()=>Q6,no:()=>Y6,ota:()=>e1,pl:()=>r1,ps:()=>t1,pt:()=>a1,ru:()=>s1,sl:()=>l1,sv:()=>f1,ta:()=>v1,th:()=>h1,tr:()=>y1,ua:()=>k1,ur:()=>S1,vi:()=>A1,zhCN:()=>_1,zhTW:()=>$1});var r6=()=>{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 u=typeof i;switch(u){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 u},r={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 u=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"} ${u} ${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"} ${u} ${i.maximum.toString()}`}case"too_small":{const u=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 ${u} ${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 ${u} ${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.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}"`:u.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 "${u.suffix}"`:u.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 "${u.includes}"`:u.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 ${u.pattern}`:`${r[u.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 u6(){return{localeError:r6()}}var a6=()=>{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 u=typeof i;switch(u){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 u},r={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 u=i.inclusive?"<=":"<",a=n(i.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${i.origin??"d\u0259y\u0259r"} ${u}${i.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${i.origin??"d\u0259y\u0259r"} ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${i.origin} ${u}${i.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${i.origin} ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${u.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:u.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${u.suffix}" il\u0259 bitm\u0259lidir`:u.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${u.includes}" daxil olmal\u0131d\u0131r`:u.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${u.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${r[u.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 o6(){return{localeError:a6()}}function qd(e,n,t,r){const i=Math.abs(e),u=i%10,a=i%100;return a>=11&&a<=19?r:u===1?n:u>=2&&u<=4?t:r}var s6=()=>{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 u=typeof i;switch(u){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 u},r={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 u=i.inclusive?"<=":"<",a=n(i.origin);if(a){const o=Number(i.maximum),s=qd(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} ${u}${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 ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);if(a){const o=Number(i.minimum),s=qd(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} ${u}${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 ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.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 "${u.prefix}"`:u.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 "${u.suffix}"`:u.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 "${u.includes}"`:u.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 ${u.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${r[u.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 c6(){return{localeError:s6()}}var l6=()=>{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 u=typeof i;switch(u){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 u},r={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 u=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 ${u} ${i.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${i.origin??"el valor"} fos ${u} ${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?"com a m\xEDnim":"m\xE9s de",a=n(i.origin);return a?`Massa petit: s'esperava que ${i.origin} contingu\xE9s ${u} ${i.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${i.origin} fos ${u} ${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${u.prefix}"`:u.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${u.suffix}"`:u.format==="includes"?`Format inv\xE0lid: ha d'incloure "${u.includes}"`:u.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${u.pattern}`:`Format inv\xE0lid per a ${r[u.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 d6(){return{localeError:l6()}}var f6=()=>{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 u=typeof i;switch(u){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 u},r={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 u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${i.origin??"hodnota"} mus\xED m\xEDt ${u}${i.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${i.origin??"hodnota"} mus\xED b\xFDt ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${i.origin??"hodnota"} mus\xED m\xEDt ${u}${i.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${i.origin??"hodnota"} mus\xED b\xFDt ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${u.prefix}"`:u.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${u.suffix}"`:u.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${u.includes}"`:u.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${u.pattern}`:`Neplatn\xFD form\xE1t ${r[u.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 m6(){return{localeError:f6()}}var v6=()=>{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 u=typeof i;switch(u){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 u},r={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 u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Zu gro\xDF: erwartet, dass ${i.origin??"Wert"} ${u}${i.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${i.origin??"Wert"} ${u}${i.maximum.toString()} ist`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Zu klein: erwartet, dass ${i.origin} ${u}${i.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${i.origin} ${u}${i.minimum.toString()} ist`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Ung\xFCltiger String: muss mit "${u.prefix}" beginnen`:u.format==="ends_with"?`Ung\xFCltiger String: muss mit "${u.suffix}" enden`:u.format==="includes"?`Ung\xFCltiger String: muss "${u.includes}" enthalten`:u.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${u.pattern} entsprechen`:`Ung\xFCltig: ${r[u.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 p6(){return{localeError:v6()}}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},g6=()=>{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(r){return e[r]??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 r=>{switch(r.code){case"invalid_type":return`Invalid input: expected ${r.expected}, received ${h6(r.input)}`;case"invalid_value":return r.values.length===1?`Invalid input: expected ${L(r.values[0])}`:`Invalid option: expected one of ${w(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",u=n(r.origin);return u?`Too big: expected ${r.origin??"value"} to have ${i}${r.maximum.toString()} ${u.unit??"elements"}`:`Too big: expected ${r.origin??"value"} to be ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",u=n(r.origin);return u?`Too small: expected ${r.origin} to have ${i}${r.minimum.toString()} ${u.unit}`:`Too small: expected ${r.origin} to be ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${t[i.format]??r.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${r.divisor}`;case"unrecognized_keys":return`Unrecognized key${r.keys.length>1?"s":""}: ${w(r.keys,", ")}`;case"invalid_key":return`Invalid key in ${r.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${r.origin}`;default:return"Invalid input"}}};function Md(){return{localeError:g6()}}var E6=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},y6=()=>{const e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function n(r){return e[r]??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 r=>{switch(r.code){case"invalid_type":return`Nevalida enigo: atendi\u011Dis ${r.expected}, ricevi\u011Dis ${E6(r.input)}`;case"invalid_value":return r.values.length===1?`Nevalida enigo: atendi\u011Dis ${L(r.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${w(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",u=n(r.origin);return u?`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${i}${r.maximum.toString()} ${u.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",u=n(r.origin);return u?`Tro malgranda: atendi\u011Dis ke ${r.origin} havu ${i}${r.minimum.toString()} ${u.unit}`:`Tro malgranda: atendi\u011Dis ke ${r.origin} estu ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${i.prefix}"`:i.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${i.suffix}"`:i.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${i.includes}"`:i.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}`:`Nevalida ${t[i.format]??r.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${r.divisor}`;case"unrecognized_keys":return`Nekonata${r.keys.length>1?"j":""} \u015Dlosilo${r.keys.length>1?"j":""}: ${w(r.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${r.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${r.origin}`;default:return"Nevalida enigo"}}};function b6(){return{localeError:y6()}}var k6=()=>{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 u=typeof i;switch(u){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 u},r={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 u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Demasiado grande: se esperaba que ${i.origin??"valor"} tuviera ${u}${i.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${i.origin??"valor"} fuera ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Demasiado peque\xF1o: se esperaba que ${i.origin} tuviera ${u}${i.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${i.origin} fuera ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${u.prefix}"`:u.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${u.suffix}"`:u.format==="includes"?`Cadena inv\xE1lida: debe incluir "${u.includes}"`:u.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${u.pattern}`:`Inv\xE1lido ${r[u.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 D6(){return{localeError:k6()}}var S6=()=>{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 u=typeof i;switch(u){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 u},r={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 u=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 ${u}${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 ${u}${i.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${i.origin} \u0628\u0627\u06CC\u062F ${u}${i.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${i.origin} \u0628\u0627\u06CC\u062F ${u}${i.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${u.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:u.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${u.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:u.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${u.includes}" \u0628\u0627\u0634\u062F`:u.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${u.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${r[u.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 B6(){return{localeError:S6()}}var A6=()=>{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 u=typeof i;switch(u){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 u},r={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 u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${u}${i.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${u}${i.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${u.prefix}"`:u.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${u.suffix}"`:u.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${u.includes}"`:u.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${u.pattern}`:`Virheellinen ${r[u.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 w6(){return{localeError:A6()}}var _6=()=>{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 u=typeof i;switch(u){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 u},r={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 u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Trop grand : ${i.origin??"valeur"} doit ${a.verb} ${u}${i.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${i.origin??"valeur"} doit \xEAtre ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Trop petit : ${i.origin} doit ${a.verb} ${u}${i.minimum.toString()} ${a.unit}`:`Trop petit : ${i.origin} doit \xEAtre ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${u.prefix}"`:u.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${u.suffix}"`:u.format==="includes"?`Cha\xEEne invalide : doit inclure "${u.includes}"`:u.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${u.pattern}`:`${r[u.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 C6(){return{localeError:_6()}}var $6=()=>{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 u=typeof i;switch(u){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 u},r={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 u=i.inclusive?"\u2264":"<",a=n(i.origin);return a?`Trop grand : attendu que ${i.origin??"la valeur"} ait ${u}${i.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${i.origin??"la valeur"} soit ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?"\u2265":">",a=n(i.origin);return a?`Trop petit : attendu que ${i.origin} ait ${u}${i.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${i.origin} soit ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${u.prefix}"`:u.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${u.suffix}"`:u.format==="includes"?`Cha\xEEne invalide : doit inclure "${u.includes}"`:u.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${u.pattern}`:`${r[u.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 I6(){return{localeError:$6()}}var x6=()=>{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 u=typeof i;switch(u){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 u},r={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 u=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 ${u}${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 ${u}${i.maximum.toString()}`}case"too_small":{const u=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 ${u}${i.minimum.toString()} ${a.unit}`:`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${i.origin} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.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"${u.prefix}"`:u.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 "${u.suffix}"`:u.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 "${u.includes}"`:u.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 ${u.pattern}`:`${r[u.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 F6(){return{localeError:x6()}}var N6=()=>{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 u=typeof i;switch(u){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 u},r={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 u=i.inclusive?"<=":"<",a=n(i.origin);return a?`T\xFAl nagy: ${i.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${u}${i.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${i.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${i.origin} m\xE9rete t\xFAl kicsi ${u}${i.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${i.origin} t\xFAl kicsi ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\xC9rv\xE9nytelen string: "${u.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:u.format==="ends_with"?`\xC9rv\xE9nytelen string: "${u.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:u.format==="includes"?`\xC9rv\xE9nytelen string: "${u.includes}" \xE9rt\xE9ket kell tartalmaznia`:u.format==="regex"?`\xC9rv\xE9nytelen string: ${u.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${r[u.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 T6(){return{localeError:N6()}}var O6=()=>{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 u=typeof i;switch(u){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 u},r={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 u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Terlalu besar: diharapkan ${i.origin??"value"} memiliki ${u}${i.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${i.origin??"value"} menjadi ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Terlalu kecil: diharapkan ${i.origin} memiliki ${u}${i.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${i.origin} menjadi ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`String tidak valid: harus dimulai dengan "${u.prefix}"`:u.format==="ends_with"?`String tidak valid: harus berakhir dengan "${u.suffix}"`:u.format==="includes"?`String tidak valid: harus menyertakan "${u.includes}"`:u.format==="regex"?`String tidak valid: harus sesuai pola ${u.pattern}`:`${r[u.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 z6(){return{localeError:O6()}}var U6=()=>{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 u=typeof i;switch(u){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 u},r={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 u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Troppo grande: ${i.origin??"valore"} deve avere ${u}${i.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${i.origin??"valore"} deve essere ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Troppo piccolo: ${i.origin} deve avere ${u}${i.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${i.origin} deve essere ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Stringa non valida: deve iniziare con "${u.prefix}"`:u.format==="ends_with"?`Stringa non valida: deve terminare con "${u.suffix}"`:u.format==="includes"?`Stringa non valida: deve includere "${u.includes}"`:u.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${u.pattern}`:`Invalid ${r[u.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:U6()}}var R6=()=>{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 u=typeof i;switch(u){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 u},r={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 u=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"}${u}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${i.origin??"\u5024"}\u306F${i.maximum.toString()}${u}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{const u=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}${u}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${i.origin}\u306F${i.minimum.toString()}${u}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${u.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:u.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${u.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:u.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${u.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:u.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${u.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${r[u.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 j6(){return{localeError:R6()}}var L6=()=>{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 u=typeof i;switch(u){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 u},r={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 u=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"} ${u} ${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"} ${u} ${i.maximum.toString()}`}case"too_small":{const u=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} ${u} ${i.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin} ${u} ${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.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 "${u.prefix}"`:u.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 "${u.suffix}"`:u.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 "${u.includes}"`:u.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 ${u.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${r[u.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 Z6(){return{localeError:L6()}}var V6=()=>{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 u=typeof i;switch(u){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 u},r={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 u=i.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=u==="\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} ${u}${a}`:`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${i.maximum.toString()} ${u}${a}`}case"too_small":{const u=i.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=u==="\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} ${u}${a}`:`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${i.minimum.toString()} ${u}${a}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${u.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:u.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${u.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:u.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${u.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:u.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${u.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${r[u.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 q6(){return{localeError:V6()}}var M6=()=>{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 u=typeof i;switch(u){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 u},r={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 u=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 ${u}${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 ${u}${i.maximum.toString()}`}case"too_small":{const u=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 ${u}${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 ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.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 "${u.prefix}"`:u.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 "${u.suffix}"`:u.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 "${u.includes}"`:u.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 ${u.pattern}`:`Invalid ${r[u.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 G6(){return{localeError:M6()}}var J6=()=>{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 u=typeof i;switch(u){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 u},r={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 u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Terlalu besar: dijangka ${i.origin??"nilai"} ${a.verb} ${u}${i.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${i.origin??"nilai"} adalah ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Terlalu kecil: dijangka ${i.origin} ${a.verb} ${u}${i.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${i.origin} adalah ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`String tidak sah: mesti bermula dengan "${u.prefix}"`:u.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${u.suffix}"`:u.format==="includes"?`String tidak sah: mesti mengandungi "${u.includes}"`:u.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${u.pattern}`:`${r[u.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 H6(){return{localeError:J6()}}var K6=()=>{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 u=typeof i;switch(u){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 u},r={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 u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Te lang: verwacht dat ${i.origin??"waarde"} ${u}${i.maximum.toString()} ${a.unit??"elementen"} bevat`:`Te lang: verwacht dat ${i.origin??"waarde"} ${u}${i.maximum.toString()} is`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Te kort: verwacht dat ${i.origin} ${u}${i.minimum.toString()} ${a.unit} bevat`:`Te kort: verwacht dat ${i.origin} ${u}${i.minimum.toString()} is`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Ongeldige tekst: moet met "${u.prefix}" beginnen`:u.format==="ends_with"?`Ongeldige tekst: moet op "${u.suffix}" eindigen`:u.format==="includes"?`Ongeldige tekst: moet "${u.includes}" bevatten`:u.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${u.pattern}`:`Ongeldig: ${r[u.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 Q6(){return{localeError:K6()}}var W6=()=>{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 u=typeof i;switch(u){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 u},r={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 u=i.inclusive?"<=":"<",a=n(i.origin);return a?`For stor(t): forventet ${i.origin??"value"} til \xE5 ha ${u}${i.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${i.origin??"value"} til \xE5 ha ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`For lite(n): forventet ${i.origin} til \xE5 ha ${u}${i.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${i.origin} til \xE5 ha ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${u.prefix}"`:u.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${u.suffix}"`:u.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${u.includes}"`:u.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${u.pattern}`:`Ugyldig ${r[u.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 Y6(){return{localeError:W6()}}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 u=typeof i;switch(u){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 u},r={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 u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Fazla b\xFCy\xFCk: ${i.origin??"value"}, ${u}${i.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${i.origin??"value"}, ${u}${i.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Fazla k\xFC\xE7\xFCk: ${i.origin}, ${u}${i.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${i.origin}, ${u}${i.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{const u=i;return u.format==="starts_with"?`F\xE2sit metin: "${u.prefix}" ile ba\u015Flamal\u0131.`:u.format==="ends_with"?`F\xE2sit metin: "${u.suffix}" ile bitmeli.`:u.format==="includes"?`F\xE2sit metin: "${u.includes}" ihtiv\xE2 etmeli.`:u.format==="regex"?`F\xE2sit metin: ${u.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${r[u.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 e1(){return{localeError:X6()}}var n1=()=>{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 u=typeof i;switch(u){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 u},r={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 u=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 ${u}${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 ${u}${i.maximum.toString()} \u0648\u064A`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${i.origin} \u0628\u0627\u06CC\u062F ${u}${i.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${i.origin} \u0628\u0627\u06CC\u062F ${u}${i.minimum.toString()} \u0648\u064A`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${u.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:u.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${u.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:u.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${u.includes}" \u0648\u0644\u0631\u064A`:u.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${u.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${r[u.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 t1(){return{localeError:n1()}}var i1=()=>{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 u=typeof i;switch(u){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 u},r={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 u=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 ${u}${i.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${u}${i.maximum.toString()}`}case"too_small":{const u=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 ${u}${i.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${u.prefix}"`:u.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${u.suffix}"`:u.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${u.includes}"`:u.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${u.pattern}`:`Nieprawid\u0142ow(y/a/e) ${r[u.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 r1(){return{localeError:i1()}}var u1=()=>{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 u=typeof i;switch(u){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 u},r={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 u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Muito grande: esperado que ${i.origin??"valor"} tivesse ${u}${i.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${i.origin??"valor"} fosse ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Muito pequeno: esperado que ${i.origin} tivesse ${u}${i.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${i.origin} fosse ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${u.prefix}"`:u.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${u.suffix}"`:u.format==="includes"?`Texto inv\xE1lido: deve incluir "${u.includes}"`:u.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${u.pattern}`:`${r[u.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 a1(){return{localeError:u1()}}function Gd(e,n,t,r){const i=Math.abs(e),u=i%10,a=i%100;return a>=11&&a<=19?r:u===1?n:u>=2&&u<=4?t:r}var o1=()=>{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 u=typeof i;switch(u){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 u},r={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 u=i.inclusive?"<=":"<",a=n(i.origin);if(a){const o=Number(i.maximum),s=Gd(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 ${u}${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 ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);if(a){const o=Number(i.minimum),s=Gd(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 ${u}${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 ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.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 "${u.prefix}"`:u.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 "${u.suffix}"`:u.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 "${u.includes}"`:u.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 ${u.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${r[u.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 s1(){return{localeError:o1()}}var c1=()=>{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 u=typeof i;switch(u){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 u},r={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 u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${i.origin??"vrednost"} imelo ${u}${i.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${i.origin??"vrednost"} ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${i.origin} imelo ${u}${i.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${i.origin} ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${u.prefix}"`:u.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${u.suffix}"`:u.format==="includes"?`Neveljaven niz: mora vsebovati "${u.includes}"`:u.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${u.pattern}`:`Neveljaven ${r[u.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 l1(){return{localeError:c1()}}var d1=()=>{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 u=typeof i;switch(u){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 u},r={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 u=i.inclusive?"<=":"<",a=n(i.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${i.origin??"v\xE4rdet"} att ha ${u}${i.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${i.origin??"v\xE4rdet"} att ha ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${i.origin??"v\xE4rdet"} att ha ${u}${i.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${i.origin??"v\xE4rdet"} att ha ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${u.prefix}"`:u.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${u.suffix}"`:u.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${u.includes}"`:u.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${u.pattern}"`:`Ogiltig(t) ${r[u.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 f1(){return{localeError:d1()}}var m1=()=>{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 u=typeof i;switch(u){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 u},r={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 u=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"} ${u}${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"} ${u}${i.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{const u=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} ${u}${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} ${u}${i.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${u.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:u.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${u.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:u.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${u.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:u.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${u.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 ${r[u.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 v1(){return{localeError:m1()}}var p1=()=>{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 u=typeof i;switch(u){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 u},r={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 u=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${u} ${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${u} ${i.maximum.toString()}`}case"too_small":{const u=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${u} ${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${u} ${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.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 "${u.prefix}"`:u.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 "${u.suffix}"`:u.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 "${u.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:u.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 ${u.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${r[u.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 h1(){return{localeError:p1()}}var g1=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},E1=()=>{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(r){return e[r]??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 r=>{switch(r.code){case"invalid_type":return`Ge\xE7ersiz de\u011Fer: beklenen ${r.expected}, al\u0131nan ${g1(r.input)}`;case"invalid_value":return r.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${L(r.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${w(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",u=n(r.origin);return u?`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${i}${r.maximum.toString()} ${u.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",u=n(r.origin);return u?`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${i}${r.minimum.toString()} ${u.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Ge\xE7ersiz metin: "${i.prefix}" ile ba\u015Flamal\u0131`:i.format==="ends_with"?`Ge\xE7ersiz metin: "${i.suffix}" ile bitmeli`:i.format==="includes"?`Ge\xE7ersiz metin: "${i.includes}" i\xE7ermeli`:i.format==="regex"?`Ge\xE7ersiz metin: ${i.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${t[i.format]??r.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${r.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${r.keys.length>1?"lar":""}: ${w(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${r.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function y1(){return{localeError:E1()}}var b1=()=>{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 u=typeof i;switch(u){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 u},r={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 u=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} ${u}${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 ${u}${i.maximum.toString()}`}case"too_small":{const u=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} ${u}${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 ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.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 "${u.prefix}"`:u.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 "${u.suffix}"`:u.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 "${u.includes}"`:u.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 ${u.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${r[u.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 k1(){return{localeError:b1()}}var D1=()=>{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 u=typeof i;switch(u){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 u},r={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 u=i.inclusive?"<=":"<",a=n(i.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${i.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${u}${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 ${u}${i.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${i.origin} \u06A9\u06D2 ${u}${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 ${u}${i.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${u.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:u.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${u.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:u.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${u.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:u.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${u.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${r[u.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 S1(){return{localeError:D1()}}var B1=()=>{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 u=typeof i;switch(u){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 u},r={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 u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${i.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${u}${i.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${i.origin??"gi\xE1 tr\u1ECB"} ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${i.origin} ${a.verb} ${u}${i.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${i.origin} ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${u.prefix}"`:u.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${u.suffix}"`:u.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${u.includes}"`:u.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${u.pattern}`:`${r[u.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 A1(){return{localeError:B1()}}var w1=()=>{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 u=typeof i;switch(u){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 u},r={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 u=i.inclusive?"<=":"<",a=n(i.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${i.origin??"\u503C"} ${u}${i.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${i.origin??"\u503C"} ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${i.origin} ${u}${i.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${i.origin} ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${u.prefix}" \u5F00\u5934`:u.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${u.suffix}" \u7ED3\u5C3E`:u.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${u.includes}"`:u.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${u.pattern}`:`\u65E0\u6548${r[u.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 _1(){return{localeError:w1()}}var C1=()=>{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 u=typeof i;switch(u){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 u},r={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 u=i.inclusive?"<=":"<",a=n(i.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${i.origin??"\u503C"} \u61C9\u70BA ${u}${i.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${i.origin??"\u503C"} \u61C9\u70BA ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${i.origin} \u61C9\u70BA ${u}${i.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${i.origin} \u61C9\u70BA ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${u.prefix}" \u958B\u982D`:u.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${u.suffix}" \u7D50\u5C3E`:u.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${u.includes}"`:u.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${u.pattern}`:`\u7121\u6548\u7684 ${r[u.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 $1(){return{localeError:C1()}}var Jd=Symbol("ZodOutput"),Hd=Symbol("ZodInput"),Aa=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 wa(){return new Aa}var Nn=wa();function Kd(e,n){return new e({type:"string",...S(n)})}function Qd(e,n){return new e({type:"string",coerce:!0,...S(n)})}function _a(e,n){return new e({type:"string",format:"email",check:"string_format",abort:!1,...S(n)})}function Yi(e,n){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...S(n)})}function Ca(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...S(n)})}function $a(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...S(n)})}function Ia(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 Fa(e,n){return new e({type:"string",format:"url",check:"string_format",abort:!1,...S(n)})}function Na(e,n){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...S(n)})}function Ta(e,n){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...S(n)})}function Oa(e,n){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...S(n)})}function za(e,n){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...S(n)})}function Ua(e,n){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...S(n)})}function Pa(e,n){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...S(n)})}function Ra(e,n){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...S(n)})}function ja(e,n){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...S(n)})}function La(e,n){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...S(n)})}function Za(e,n){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...S(n)})}function Va(e,n){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...S(n)})}function qa(e,n){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...S(n)})}function Ma(e,n){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...S(n)})}function Ga(e,n){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...S(n)})}function Ja(e,n){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...S(n)})}var Wd={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Yd(e,n){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...S(n)})}function Xd(e,n){return new e({type:"string",format:"date",check:"string_format",...S(n)})}function ef(e,n){return new e({type:"string",format:"time",check:"string_format",precision:null,...S(n)})}function nf(e,n){return new e({type:"string",format:"duration",check:"string_format",...S(n)})}function tf(e,n){return new e({type:"number",checks:[],...S(n)})}function rf(e,n){return new e({type:"number",coerce:!0,checks:[],...S(n)})}function uf(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...S(n)})}function af(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...S(n)})}function of(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...S(n)})}function sf(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...S(n)})}function cf(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...S(n)})}function lf(e,n){return new e({type:"boolean",...S(n)})}function df(e,n){return new e({type:"boolean",coerce:!0,...S(n)})}function ff(e,n){return new e({type:"bigint",...S(n)})}function mf(e,n){return new e({type:"bigint",coerce:!0,...S(n)})}function vf(e,n){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...S(n)})}function pf(e,n){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...S(n)})}function hf(e,n){return new e({type:"symbol",...S(n)})}function gf(e,n){return new e({type:"undefined",...S(n)})}function Ef(e,n){return new e({type:"null",...S(n)})}function yf(e){return new e({type:"any"})}function Xi(e){return new e({type:"unknown"})}function bf(e,n){return new e({type:"never",...S(n)})}function kf(e,n){return new e({type:"void",...S(n)})}function Df(e,n){return new e({type:"date",...S(n)})}function Sf(e,n){return new e({type:"date",coerce:!0,...S(n)})}function Bf(e,n){return new e({type:"nan",...S(n)})}function Tn(e,n){return new ma({check:"less_than",...S(n),value:e,inclusive:!1})}function qe(e,n){return new ma({check:"less_than",...S(n),value:e,inclusive:!0})}function On(e,n){return new va({check:"greater_than",...S(n),value:e,inclusive:!1})}function Ie(e,n){return new va({check:"greater_than",...S(n),value:e,inclusive:!0})}function Af(e){return On(0,e)}function wf(e){return Tn(0,e)}function _f(e){return qe(0,e)}function Cf(e){return Ie(0,e)}function Yt(e,n){return new cl({check:"multiple_of",...S(n),value:e})}function er(e,n){return new fl({check:"max_size",...S(n),maximum:e})}function Xt(e,n){return new ml({check:"min_size",...S(n),minimum:e})}function Ha(e,n){return new vl({check:"size_equals",...S(n),size:e})}function nr(e,n){return new pl({check:"max_length",...S(n),maximum:e})}function rt(e,n){return new hl({check:"min_length",...S(n),minimum:e})}function tr(e,n){return new gl({check:"length_equals",...S(n),length:e})}function Ka(e,n){return new El({check:"string_format",format:"regex",...S(n),pattern:e})}function Qa(e){return new yl({check:"string_format",format:"lowercase",...S(e)})}function Wa(e){return new bl({check:"string_format",format:"uppercase",...S(e)})}function Ya(e,n){return new kl({check:"string_format",format:"includes",...S(n),includes:e})}function Xa(e,n){return new Dl({check:"string_format",format:"starts_with",...S(n),prefix:e})}function eo(e,n){return new Sl({check:"string_format",format:"ends_with",...S(n),suffix:e})}function $f(e,n,t){return new Al({check:"property",property:e,schema:n,...S(t)})}function no(e,n){return new wl({check:"mime_type",mime:e,...S(n)})}function zn(e){return new _l({check:"overwrite",tx:e})}function to(e){return zn(n=>n.normalize(e))}function io(){return zn(e=>e.trim())}function ro(){return zn(e=>e.toLowerCase())}function uo(){return zn(e=>e.toUpperCase())}function ao(e,n,t){return new e({type:"array",element:n,...S(t)})}function I1(e,n,t){return new e({type:"union",options:n,...S(t)})}function x1(e,n,t,r){return new e({type:"union",options:t,discriminator:n,...S(r)})}function F1(e,n,t){return new e({type:"intersection",left:n,right:t})}function If(e,n,t,r){const i=t instanceof U,u=i?r:t,a=i?t:null;return new e({type:"tuple",items:n,rest:a,...S(u)})}function N1(e,n,t,r){return new e({type:"record",keyType:n,valueType:t,...S(r)})}function T1(e,n,t,r){return new e({type:"map",keyType:n,valueType:t,...S(r)})}function O1(e,n,t){return new e({type:"set",valueType:n,...S(t)})}function z1(e,n,t){const r=Array.isArray(n)?Object.fromEntries(n.map(i=>[i,i])):n;return new e({type:"enum",entries:r,...S(t)})}function U1(e,n,t){return new e({type:"enum",entries:n,...S(t)})}function P1(e,n,t){return new e({type:"literal",values:Array.isArray(n)?n:[n],...S(t)})}function xf(e,n){return new e({type:"file",...S(n)})}function R1(e,n){return new e({type:"transform",transform:n})}function j1(e,n){return new e({type:"optional",innerType:n})}function L1(e,n){return new e({type:"nullable",innerType:n})}function Z1(e,n,t){return new e({type:"default",innerType:n,get defaultValue(){return typeof t=="function"?t():t}})}function V1(e,n,t){return new e({type:"nonoptional",innerType:n,...S(t)})}function q1(e,n){return new e({type:"success",innerType:n})}function M1(e,n,t){return new e({type:"catch",innerType:n,catchValue:typeof t=="function"?t:()=>t})}function G1(e,n,t){return new e({type:"pipe",in:n,out:t})}function J1(e,n){return new e({type:"readonly",innerType:n})}function H1(e,n,t){return new e({type:"template_literal",parts:n,...S(t)})}function K1(e,n){return new e({type:"lazy",getter:n})}function Q1(e,n){return new e({type:"promise",innerType:n})}function Ff(e,n,t){const r=S(t);return r.abort??(r.abort=!0),new e({type:"custom",check:"custom",fn:n,...r})}function Nf(e,n,t){return new e({type:"custom",check:"custom",fn:n,...S(t)})}function Tf(e,n){const t=S(n);let r=t.truthy??["true","1","yes","on","y","enabled"],i=t.falsy??["false","0","no","off","n","disabled"];t.case!=="sensitive"&&(r=r.map(v=>typeof v=="string"?v.toLowerCase():v),i=i.map(v=>typeof v=="string"?v.toLowerCase():v));const u=new Set(r),a=new Set(i),o=e.Pipe??Sa,s=e.Boolean??ga,c=e.String??Wt,l=e.Transform??Da,f=new l({type:"transform",transform:(v,h)=>{let b=v;return t.case!=="sensitive"&&(b=b.toLowerCase()),u.has(b)?!0:a.has(b)?!1:(h.issues.push({code:"invalid_value",expected:"stringbool",values:[...u,...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 Of(e,n,t,r={}){const i=S(r),u={...S(r),check:"string_format",type:"string",format:n,fn:typeof t=="function"?t:o=>t.test(o),...i};return t instanceof RegExp&&(u.pattern=t),new e(u)}var zf=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 r=this._def.input?aa(this._def.input,t,void 0,{callee:n}):t;if(!Array.isArray(r))throw new Error("Invalid arguments schema: not an array or tuple schema.");const i=e(...r);return this._def.output?aa(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 r=this._def.input?await sa(this._def.input,t,void 0,{callee:n}):t;if(!Array.isArray(r))throw new Error("Invalid arguments schema: not an array or tuple schema.");const i=await e(...r);return this._def.output?sa(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 Qi({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 Uf(e){return new zf({type:"function",input:Array.isArray(e?.input)?If(Qi,e?.input):e?.input??ao(ya,Xi(Hi)),output:e?.output??Xi(Hi)})}var oo=class{constructor(e){this.counter=0,this.metadataRegistry=e?.metadata??Nn,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 r=e._zod.def,i={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},u=this.seen.get(e);if(u)return u.count++,n.schemaPath.includes(e)&&(u.cycle=n.path),u.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(r.type){case"string":{const d=m;d.type="string";const{minimum:v,maximum:h,format:b,patterns:E,contentEncoding:g}=e._zod.bag;if(typeof v=="number"&&(d.minLength=v),typeof h=="number"&&(d.maxLength=h),b&&(d.format=i[b]??b,d.format===""&&delete d.format),g&&(d.contentEncoding=g),E&&E.size>0){const k=[...E];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:b,multipleOf:E,exclusiveMaximum:g,exclusiveMinimum:k}=e._zod.bag;typeof b=="string"&&b.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 g=="number"&&(d.exclusiveMaximum=g),typeof h=="number"&&(d.maximum=h,typeof g=="number"&&(g<=h?delete d.maximum:delete d.exclusiveMaximum)),typeof E=="number"&&(d.multipleOf=E);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(r.element,{...l,path:[...l.path,"items"]});break}case"object":{const d=m;d.type="object",d.properties={};const v=r.shape;for(const E in v)d.properties[E]=this.process(v[E],{...l,path:[...l.path,"properties",E]});const h=new Set(Object.keys(v)),b=new Set([...h].filter(E=>{const g=r.shape[E]._zod;return this.io==="input"?g.optin===void 0:g.optout===void 0}));b.size>0&&(d.required=Array.from(b)),r.catchall?._zod.def.type==="never"?d.additionalProperties=!1:r.catchall?r.catchall&&(d.additionalProperties=this.process(r.catchall,{...l,path:[...l.path,"additionalProperties"]})):this.io==="output"&&(d.additionalProperties=!1);break}case"union":{const d=m;d.anyOf=r.options.map((v,h)=>this.process(v,{...l,path:[...l.path,"anyOf",h]}));break}case"intersection":{const d=m,v=this.process(r.left,{...l,path:[...l.path,"allOf",0]}),h=this.process(r.right,{...l,path:[...l.path,"allOf",1]}),b=g=>"allOf"in g&&Object.keys(g).length===1,E=[...b(v)?v.allOf:[v],...b(h)?h.allOf:[h]];d.allOf=E;break}case"tuple":{const d=m;d.type="array";const v=r.items.map((E,g)=>this.process(E,{...l,path:[...l.path,"prefixItems",g]}));if(this.target==="draft-2020-12"?d.prefixItems=v:d.items=v,r.rest){const E=this.process(r.rest,{...l,path:[...l.path,"items"]});this.target==="draft-2020-12"?d.items=E:d.additionalItems=E}r.rest&&(d.items=this.process(r.rest,{...l,path:[...l.path,"items"]}));const{minimum:h,maximum:b}=e._zod.bag;typeof h=="number"&&(d.minItems=h),typeof b=="number"&&(d.maxItems=b);break}case"record":{const d=m;d.type="object",d.propertyNames=this.process(r.keyType,{...l,path:[...l.path,"propertyNames"]}),d.additionalProperties=this.process(r.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=Xu(r.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 r.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:b,mime:E}=e._zod.bag;h!==void 0&&(v.minLength=h),b!==void 0&&(v.maxLength=b),E?E.length===1?(v.contentMediaType=E[0],Object.assign(d,v)):d.anyOf=E.map(g=>({...v,contentMediaType:g})):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(r.innerType,l);m.anyOf=[d,{type:"null"}];break}case"nonoptional":{this.process(r.innerType,l),a.ref=r.innerType;break}case"success":{const d=m;d.type="boolean";break}case"default":{this.process(r.innerType,l),a.ref=r.innerType,m.default=JSON.parse(JSON.stringify(r.defaultValue));break}case"prefault":{this.process(r.innerType,l),a.ref=r.innerType,this.io==="input"&&(m._prefault=JSON.parse(JSON.stringify(r.defaultValue)));break}case"catch":{this.process(r.innerType,l),a.ref=r.innerType;let d;try{d=r.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"?r.in._zod.def.type==="transform"?r.out:r.in:r.out;this.process(d,l),a.ref=d;break}case"readonly":{this.process(r.innerType,l),a.ref=r.innerType,m.readOnly=!0;break}case"promise":{this.process(r.innerType,l),a.ref=r.innerType;break}case"optional":{this.process(r.innerType,l),a.ref=r.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"&&ae(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},r=this.seen.get(e);if(!r)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??(E=>E);if(v)return{ref:h(v)};const b=c[1].defId??c[1].schema.id??`schema${this.counter++}`;return c[1].defId=b,{defId:b,ref:`${h("__shared")}#/${l}/${b}`}}if(c[1]===r)return{ref:"#"};const m=`#/${l}/`,d=c[1].schema.id??`__schema${this.counter++}`;return{defId:d,ref:m+d}},u=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>
199
+ })));`),m.write(`newResult[${nt(g)}] = ${k}.value`)}m.write("payload.value = newResult;"),m.write("return payload;");const E=m.compile();return(g,k)=>E(f,g,k)};let i;const u=Gt,a=!Zi.jitless,s=a&&y0.value,c=n.catchall;let l;e._zod.parse=(f,m)=>{l??(l=t.value);const d=f.value;if(!u(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=r(n.shape)),f=i(f,m);else{f.value={};const k=l.shape;for(const _ of l.keys){const B=k[_],J=B._zod.run({value:d[_],issues:[]},m),q=B._zod.optin==="optional"&&B._zod.optout==="optional";J instanceof Promise?v.push(J.then(F=>q?fd(F,f,_,d):Qi(F,f,_))):q?fd(J,f,_,d):Qi(J,f,_)}}if(!c)return v.length?Promise.all(v).then(()=>f):f;const h=[],b=l.keySet,E=c._zod,g=E.def.type;for(const k of Object.keys(d)){if(b.has(k))continue;if(g==="never"){h.push(k);continue}const _=E.run({value:d[k],issues:[]},m);_ instanceof Promise?v.push(_.then(B=>Qi(B,f,k))):Qi(_,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 vd(e,n,t,r){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(u=>Ve(u,r,De())))}),n}var ba=p("$ZodUnion",(e,n)=>{P.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(r=>r._zod.pattern);return new RegExp(`^(${t.map(r=>qi(r.source)).join("|")})$`)}}),e._zod.parse=(t,r)=>{let i=!1;const u=[];for(const a of n.options){const o=a._zod.run({value:t.value,issues:[]},r);if(o instanceof Promise)u.push(o),i=!0;else{if(o.issues.length===0)return o;u.push(o)}}return i?Promise.all(u).then(a=>vd(a,t,e,r)):vd(u,t,e,r)}}),pd=p("$ZodDiscriminatedUnion",(e,n)=>{ba.init(e,n);const t=e._zod.parse;Q(e._zod,"propValues",()=>{const i={};for(const u of n.options){const a=u._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${n.options.indexOf(u)}"`);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 r=Vi(()=>{const i=n.options,u=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(u.has(s))throw new Error(`Duplicate discriminator value "${String(s)}"`);u.set(s,a)}}return u});e._zod.parse=(i,u)=>{const a=i.value;if(!Gt(a))return i.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),i;const o=r.value.get(a?.[n.discriminator]);return o?o._zod.run(i,u):n.unionFallback?t(i,u):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",input:a,path:[n.discriminator],inst:e}),i)}}),hd=p("$ZodIntersection",(e,n)=>{P.init(e,n),e._zod.parse=(t,r)=>{const i=t.value,u=n.left._zod.run({value:i,issues:[]},r),a=n.right._zod.run({value:i,issues:[]},r);return u instanceof Promise||a instanceof Promise?Promise.all([u,a]).then(([s,c])=>gd(t,s,c)):gd(t,u,a)}});function ka(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),r=Object.keys(e).filter(u=>t.indexOf(u)!==-1),i={...e,...n};for(const u of r){const a=ka(e[u],n[u]);if(!a.valid)return{valid:!1,mergeErrorPath:[u,...a.mergeErrorPath]};i[u]=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 r=0;r<e.length;r++){const i=e[r],u=n[r],a=ka(i,u);if(!a.valid)return{valid:!1,mergeErrorPath:[r,...a.mergeErrorPath]};t.push(a.data)}return{valid:!0,data:t}}return{valid:!1,mergeErrorPath:[]}}function gd(e,n,t){if(n.issues.length&&e.issues.push(...n.issues),t.issues.length&&e.issues.push(...t.issues),tt(e))return e;const r=ka(n.value,t.value);if(!r.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}var Ki=p("$ZodTuple",(e,n)=>{P.init(e,n);const t=n.items,r=t.length-[...t].reverse().findIndex(i=>i._zod.optin!=="optional");e._zod.parse=(i,u)=>{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<r-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>=r)continue;const l=c._zod.run({value:a[s],issues:[]},u);l instanceof Promise?o.push(l.then(f=>Wi(f,i,s))):Wi(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:[]},u);f instanceof Promise?o.push(f.then(m=>Wi(m,i,s))):Wi(f,i,s)}}return o.length?Promise.all(o).then(()=>i):i}});function Wi(e,n,t){e.issues.length&&n.issues.push(...Te(t,e.issues)),n.value[t]=e.value}var Ed=p("$ZodRecord",(e,n)=>{P.init(e,n),e._zod.parse=(t,r)=>{const i=t.value;if(!Jt(i))return t.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),t;const u=[];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:[]},r);c instanceof Promise?u.push(c.then(l=>{l.issues.length&&t.issues.push(...Te(s,l.issues)),t.value[s]=l.value})):(c.issues.length&&t.issues.push(...Te(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:[]},r);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=>Ve(c,r,De())),input:a,path:[a],inst:e}),t.value[o.value]=o.value;continue}const s=n.valueType._zod.run({value:i[a],issues:[]},r);s instanceof Promise?u.push(s.then(c=>{c.issues.length&&t.issues.push(...Te(a,c.issues)),t.value[o.value]=c.value})):(s.issues.length&&t.issues.push(...Te(a,s.issues)),t.value[o.value]=s.value)}}return u.length?Promise.all(u).then(()=>t):t}}),yd=p("$ZodMap",(e,n)=>{P.init(e,n),e._zod.parse=(t,r)=>{const i=t.value;if(!(i instanceof Map))return t.issues.push({expected:"map",code:"invalid_type",input:i,inst:e}),t;const u=[];t.value=new Map;for(const[a,o]of i){const s=n.keyType._zod.run({value:a,issues:[]},r),c=n.valueType._zod.run({value:o,issues:[]},r);s instanceof Promise||c instanceof Promise?u.push(Promise.all([s,c]).then(([l,f])=>{bd(l,f,t,a,i,e,r)})):bd(s,c,t,a,i,e,r)}return u.length?Promise.all(u).then(()=>t):t}});function bd(e,n,t,r,i,u,a){e.issues.length&&(Mi.has(typeof r)?t.issues.push(...Te(r,e.issues)):t.issues.push({origin:"map",code:"invalid_key",input:i,inst:u,issues:e.issues.map(o=>Ve(o,a,De()))})),n.issues.length&&(Mi.has(typeof r)?t.issues.push(...Te(r,n.issues)):t.issues.push({origin:"map",code:"invalid_element",input:i,inst:u,key:r,issues:n.issues.map(o=>Ve(o,a,De()))})),t.value.set(e.value,n.value)}var kd=p("$ZodSet",(e,n)=>{P.init(e,n),e._zod.parse=(t,r)=>{const i=t.value;if(!(i instanceof Set))return t.issues.push({input:i,inst:e,expected:"set",code:"invalid_type"}),t;const u=[];t.value=new Set;for(const a of i){const o=n.valueType._zod.run({value:a,issues:[]},r);o instanceof Promise?u.push(o.then(s=>Dd(s,t))):Dd(o,t)}return u.length?Promise.all(u).then(()=>t):t}});function Dd(e,n){e.issues.length&&n.issues.push(...e.issues),n.value.add(e.value)}var Sd=p("$ZodEnum",(e,n)=>{P.init(e,n);const t=Xu(n.entries);e._zod.values=new Set(t),e._zod.pattern=new RegExp(`^(${t.filter(r=>Mi.has(typeof r)).map(r=>typeof r=="string"?Fn(r):r.toString()).join("|")})$`),e._zod.parse=(r,i)=>{const u=r.value;return e._zod.values.has(u)||r.issues.push({code:"invalid_value",values:t,input:u,inst:e}),r}}),Bd=p("$ZodLiteral",(e,n)=>{P.init(e,n),e._zod.values=new Set(n.values),e._zod.pattern=new RegExp(`^(${n.values.map(t=>typeof t=="string"?Fn(t):t?t.toString():String(t)).join("|")})$`),e._zod.parse=(t,r)=>{const i=t.value;return e._zod.values.has(i)||t.issues.push({code:"invalid_value",values:n.values,input:i,inst:e}),t}}),Ad=p("$ZodFile",(e,n)=>{P.init(e,n),e._zod.parse=(t,r)=>{const i=t.value;return i instanceof File||t.issues.push({expected:"file",code:"invalid_type",input:i,inst:e}),t}}),Da=p("$ZodTransform",(e,n)=>{P.init(e,n),e._zod.parse=(t,r)=>{const i=n.transform(t.value,t);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(a=>(t.value=a,t));if(i instanceof Promise)throw new et;return t.value=i,t}}),wd=p("$ZodOptional",(e,n)=>{P.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(`^(${qi(t.source)})?$`):void 0}),e._zod.parse=(t,r)=>n.innerType._zod.optin==="optional"?n.innerType._zod.run(t,r):t.value===void 0?t:n.innerType._zod.run(t,r)}),_d=p("$ZodNullable",(e,n)=>{P.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(`^(${qi(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,r)=>t.value===null?t:n.innerType._zod.run(t,r)}),Cd=p("$ZodDefault",(e,n)=>{P.init(e,n),e._zod.optin="optional",Q(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(t,r)=>{if(t.value===void 0)return t.value=n.defaultValue,t;const i=n.innerType._zod.run(t,r);return i instanceof Promise?i.then(u=>$d(u,n)):$d(i,n)}});function $d(e,n){return e.value===void 0&&(e.value=n.defaultValue),e}var Id=p("$ZodPrefault",(e,n)=>{P.init(e,n),e._zod.optin="optional",Q(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(t,r)=>(t.value===void 0&&(t.value=n.defaultValue),n.innerType._zod.run(t,r))}),xd=p("$ZodNonOptional",(e,n)=>{P.init(e,n),Q(e._zod,"values",()=>{const t=n.innerType._zod.values;return t?new Set([...t].filter(r=>r!==void 0)):void 0}),e._zod.parse=(t,r)=>{const i=n.innerType._zod.run(t,r);return i instanceof Promise?i.then(u=>Fd(u,e)):Fd(i,e)}});function Fd(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 Nd=p("$ZodSuccess",(e,n)=>{P.init(e,n),e._zod.parse=(t,r)=>{const i=n.innerType._zod.run(t,r);return i instanceof Promise?i.then(u=>(t.value=u.issues.length===0,t)):(t.value=i.issues.length===0,t)}}),Td=p("$ZodCatch",(e,n)=>{P.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,r)=>{const i=n.innerType._zod.run(t,r);return i instanceof Promise?i.then(u=>(t.value=u.value,u.issues.length&&(t.value=n.catchValue({...t,error:{issues:u.issues.map(a=>Ve(a,r,De()))},input:t.value}),t.issues=[]),t)):(t.value=i.value,i.issues.length&&(t.value=n.catchValue({...t,error:{issues:i.issues.map(u=>Ve(u,r,De()))},input:t.value}),t.issues=[]),t)}}),Od=p("$ZodNaN",(e,n)=>{P.init(e,n),e._zod.parse=(t,r)=>((typeof t.value!="number"||!Number.isNaN(t.value))&&t.issues.push({input:t.value,inst:e,expected:"nan",code:"invalid_type"}),t)}),Sa=p("$ZodPipe",(e,n)=>{P.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,r)=>{const i=n.in._zod.run(t,r);return i instanceof Promise?i.then(u=>zd(u,n,r)):zd(i,n,r)}});function zd(e,n,t){return tt(e)?e:n.out._zod.run({value:e.value,issues:e.issues},t)}var Ud=p("$ZodReadonly",(e,n)=>{P.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,r)=>{const i=n.innerType._zod.run(t,r);return i instanceof Promise?i.then(Pd):Pd(i)}});function Pd(e){return e.value=Object.freeze(e.value),e}var Rd=p("$ZodTemplateLiteral",(e,n)=>{P.init(e,n);const t=[];for(const r of n.parts)if(r instanceof P){if(!r._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...r._zod.traits].shift()}`);const i=r._zod.pattern instanceof RegExp?r._zod.pattern.source:r._zod.pattern;if(!i)throw new Error(`Invalid template literal part: ${r._zod.traits}`);const u=i.startsWith("^")?1:0,a=i.endsWith("$")?i.length-1:i.length;t.push(i.slice(u,a))}else if(r===null||b0.has(typeof r))t.push(Fn(`${r}`));else throw new Error(`Invalid template literal part: ${r}`);e._zod.pattern=new RegExp(`^${t.join("")}$`),e._zod.parse=(r,i)=>typeof r.value!="string"?(r.issues.push({input:r.value,inst:e,expected:"template_literal",code:"invalid_type"}),r):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(r.value)||r.issues.push({input:r.value,inst:e,code:"invalid_format",format:n.format??"template_literal",pattern:e._zod.pattern.source}),r)}),jd=p("$ZodPromise",(e,n)=>{P.init(e,n),e._zod.parse=(t,r)=>Promise.resolve(t.value).then(i=>n.innerType._zod.run({value:i,issues:[]},r))}),Ld=p("$ZodLazy",(e,n)=>{P.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,r)=>e._zod.innerType._zod.run(t,r)}),Zd=p("$ZodCustom",(e,n)=>{re.init(e,n),P.init(e,n),e._zod.parse=(t,r)=>t,e._zod.check=t=>{const r=t.value,i=n.fn(r);if(i instanceof Promise)return i.then(u=>Vd(u,t,r,e));Vd(i,t,r,e)}});function Vd(e,n,t,r){if(!e){const i={code:"custom",input:t,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(i.params=r._zod.def.params),n.issues.push(B0(i))}}var Ba={};An(Ba,{ar:()=>a6,az:()=>s6,be:()=>l6,ca:()=>f6,cs:()=>v6,de:()=>h6,en:()=>Md,eo:()=>k6,es:()=>S6,fa:()=>A6,fi:()=>_6,fr:()=>$6,frCA:()=>x6,he:()=>N6,hu:()=>O6,id:()=>U6,it:()=>R6,ja:()=>L6,kh:()=>V6,ko:()=>M6,mk:()=>J6,ms:()=>Q6,nl:()=>W6,no:()=>X6,ota:()=>n1,pl:()=>u1,ps:()=>i1,pt:()=>o1,ru:()=>c1,sl:()=>d1,sv:()=>m1,ta:()=>p1,th:()=>g1,tr:()=>b1,ua:()=>D1,ur:()=>B1,vi:()=>w1,zhCN:()=>C1,zhTW:()=>I1});var u6=()=>{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 u=typeof i;switch(u){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 u},r={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 ${Z(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 u=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"} ${u} ${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"} ${u} ${i.maximum.toString()}`}case"too_small":{const u=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 ${u} ${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 ${u} ${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.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}"`:u.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 "${u.suffix}"`:u.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 "${u.includes}"`:u.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 ${u.pattern}`:`${r[u.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 a6(){return{localeError:u6()}}var o6=()=>{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 u=typeof i;switch(u){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 u},r={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 ${Z(i.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${i.origin??"d\u0259y\u0259r"} ${u}${i.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${i.origin??"d\u0259y\u0259r"} ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${i.origin} ${u}${i.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${i.origin} ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${u.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:u.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${u.suffix}" il\u0259 bitm\u0259lidir`:u.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${u.includes}" daxil olmal\u0131d\u0131r`:u.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${u.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${r[u.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 s6(){return{localeError:o6()}}function qd(e,n,t,r){const i=Math.abs(e),u=i%10,a=i%100;return a>=11&&a<=19?r:u===1?n:u>=2&&u<=4?t:r}var c6=()=>{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 u=typeof i;switch(u){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 u},r={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 ${Z(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 u=i.inclusive?"<=":"<",a=n(i.origin);if(a){const o=Number(i.maximum),s=qd(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} ${u}${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 ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);if(a){const o=Number(i.minimum),s=qd(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} ${u}${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 ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.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 "${u.prefix}"`:u.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 "${u.suffix}"`:u.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 "${u.includes}"`:u.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 ${u.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${r[u.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 l6(){return{localeError:c6()}}var d6=()=>{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 u=typeof i;switch(u){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 u},r={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 ${Z(i.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${w(i.values," o ")}`;case"too_big":{const u=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 ${u} ${i.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${i.origin??"el valor"} fos ${u} ${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?"com a m\xEDnim":"m\xE9s de",a=n(i.origin);return a?`Massa petit: s'esperava que ${i.origin} contingu\xE9s ${u} ${i.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${i.origin} fos ${u} ${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${u.prefix}"`:u.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${u.suffix}"`:u.format==="includes"?`Format inv\xE0lid: ha d'incloure "${u.includes}"`:u.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${u.pattern}`:`Format inv\xE0lid per a ${r[u.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 f6(){return{localeError:d6()}}var m6=()=>{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 u=typeof i;switch(u){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 u},r={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 ${Z(i.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${i.origin??"hodnota"} mus\xED m\xEDt ${u}${i.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${i.origin??"hodnota"} mus\xED b\xFDt ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${i.origin??"hodnota"} mus\xED m\xEDt ${u}${i.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${i.origin??"hodnota"} mus\xED b\xFDt ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${u.prefix}"`:u.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${u.suffix}"`:u.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${u.includes}"`:u.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${u.pattern}`:`Neplatn\xFD form\xE1t ${r[u.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 v6(){return{localeError:m6()}}var p6=()=>{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 u=typeof i;switch(u){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 u},r={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 ${Z(i.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Zu gro\xDF: erwartet, dass ${i.origin??"Wert"} ${u}${i.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${i.origin??"Wert"} ${u}${i.maximum.toString()} ist`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Zu klein: erwartet, dass ${i.origin} ${u}${i.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${i.origin} ${u}${i.minimum.toString()} ist`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Ung\xFCltiger String: muss mit "${u.prefix}" beginnen`:u.format==="ends_with"?`Ung\xFCltiger String: muss mit "${u.suffix}" enden`:u.format==="includes"?`Ung\xFCltiger String: muss "${u.includes}" enthalten`:u.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${u.pattern} entsprechen`:`Ung\xFCltig: ${r[u.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 h6(){return{localeError:p6()}}var g6=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},E6=()=>{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(r){return e[r]??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 r=>{switch(r.code){case"invalid_type":return`Invalid input: expected ${r.expected}, received ${g6(r.input)}`;case"invalid_value":return r.values.length===1?`Invalid input: expected ${Z(r.values[0])}`:`Invalid option: expected one of ${w(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",u=n(r.origin);return u?`Too big: expected ${r.origin??"value"} to have ${i}${r.maximum.toString()} ${u.unit??"elements"}`:`Too big: expected ${r.origin??"value"} to be ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",u=n(r.origin);return u?`Too small: expected ${r.origin} to have ${i}${r.minimum.toString()} ${u.unit}`:`Too small: expected ${r.origin} to be ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${t[i.format]??r.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${r.divisor}`;case"unrecognized_keys":return`Unrecognized key${r.keys.length>1?"s":""}: ${w(r.keys,", ")}`;case"invalid_key":return`Invalid key in ${r.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${r.origin}`;default:return"Invalid input"}}};function Md(){return{localeError:E6()}}var y6=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},b6=()=>{const e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function n(r){return e[r]??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 r=>{switch(r.code){case"invalid_type":return`Nevalida enigo: atendi\u011Dis ${r.expected}, ricevi\u011Dis ${y6(r.input)}`;case"invalid_value":return r.values.length===1?`Nevalida enigo: atendi\u011Dis ${Z(r.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${w(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",u=n(r.origin);return u?`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${i}${r.maximum.toString()} ${u.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",u=n(r.origin);return u?`Tro malgranda: atendi\u011Dis ke ${r.origin} havu ${i}${r.minimum.toString()} ${u.unit}`:`Tro malgranda: atendi\u011Dis ke ${r.origin} estu ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${i.prefix}"`:i.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${i.suffix}"`:i.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${i.includes}"`:i.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}`:`Nevalida ${t[i.format]??r.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${r.divisor}`;case"unrecognized_keys":return`Nekonata${r.keys.length>1?"j":""} \u015Dlosilo${r.keys.length>1?"j":""}: ${w(r.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${r.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${r.origin}`;default:return"Nevalida enigo"}}};function k6(){return{localeError:b6()}}var D6=()=>{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 u=typeof i;switch(u){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 u},r={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 ${Z(i.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Demasiado grande: se esperaba que ${i.origin??"valor"} tuviera ${u}${i.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${i.origin??"valor"} fuera ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Demasiado peque\xF1o: se esperaba que ${i.origin} tuviera ${u}${i.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${i.origin} fuera ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${u.prefix}"`:u.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${u.suffix}"`:u.format==="includes"?`Cadena inv\xE1lida: debe incluir "${u.includes}"`:u.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${u.pattern}`:`Inv\xE1lido ${r[u.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 S6(){return{localeError:D6()}}var B6=()=>{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 u=typeof i;switch(u){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 u},r={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 ${Z(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 u=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 ${u}${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 ${u}${i.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${i.origin} \u0628\u0627\u06CC\u062F ${u}${i.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${i.origin} \u0628\u0627\u06CC\u062F ${u}${i.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${u.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:u.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${u.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:u.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${u.includes}" \u0628\u0627\u0634\u062F`:u.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${u.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${r[u.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 A6(){return{localeError:B6()}}var w6=()=>{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 u=typeof i;switch(u){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 u},r={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 ${Z(i.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${u}${i.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${u}${i.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${u.prefix}"`:u.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${u.suffix}"`:u.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${u.includes}"`:u.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${u.pattern}`:`Virheellinen ${r[u.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 _6(){return{localeError:w6()}}var C6=()=>{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 u=typeof i;switch(u){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 u},r={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 : ${Z(i.values[0])} attendu`:`Option invalide : une valeur parmi ${w(i.values,"|")} attendue`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Trop grand : ${i.origin??"valeur"} doit ${a.verb} ${u}${i.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${i.origin??"valeur"} doit \xEAtre ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Trop petit : ${i.origin} doit ${a.verb} ${u}${i.minimum.toString()} ${a.unit}`:`Trop petit : ${i.origin} doit \xEAtre ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${u.prefix}"`:u.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${u.suffix}"`:u.format==="includes"?`Cha\xEEne invalide : doit inclure "${u.includes}"`:u.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${u.pattern}`:`${r[u.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 $6(){return{localeError:C6()}}var I6=()=>{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 u=typeof i;switch(u){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 u},r={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 ${Z(i.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"\u2264":"<",a=n(i.origin);return a?`Trop grand : attendu que ${i.origin??"la valeur"} ait ${u}${i.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${i.origin??"la valeur"} soit ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?"\u2265":">",a=n(i.origin);return a?`Trop petit : attendu que ${i.origin} ait ${u}${i.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${i.origin} soit ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${u.prefix}"`:u.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${u.suffix}"`:u.format==="includes"?`Cha\xEEne invalide : doit inclure "${u.includes}"`:u.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${u.pattern}`:`${r[u.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 x6(){return{localeError:I6()}}var F6=()=>{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 u=typeof i;switch(u){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 u},r={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 ${Z(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 u=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 ${u}${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 ${u}${i.maximum.toString()}`}case"too_small":{const u=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 ${u}${i.minimum.toString()} ${a.unit}`:`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${i.origin} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.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"${u.prefix}"`:u.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 "${u.suffix}"`:u.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 "${u.includes}"`:u.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 ${u.pattern}`:`${r[u.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 N6(){return{localeError:F6()}}var T6=()=>{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 u=typeof i;switch(u){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 u},r={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 ${Z(i.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`T\xFAl nagy: ${i.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${u}${i.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${i.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${i.origin} m\xE9rete t\xFAl kicsi ${u}${i.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${i.origin} t\xFAl kicsi ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\xC9rv\xE9nytelen string: "${u.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:u.format==="ends_with"?`\xC9rv\xE9nytelen string: "${u.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:u.format==="includes"?`\xC9rv\xE9nytelen string: "${u.includes}" \xE9rt\xE9ket kell tartalmaznia`:u.format==="regex"?`\xC9rv\xE9nytelen string: ${u.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${r[u.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 O6(){return{localeError:T6()}}var z6=()=>{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 u=typeof i;switch(u){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 u},r={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 ${Z(i.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Terlalu besar: diharapkan ${i.origin??"value"} memiliki ${u}${i.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${i.origin??"value"} menjadi ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Terlalu kecil: diharapkan ${i.origin} memiliki ${u}${i.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${i.origin} menjadi ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`String tidak valid: harus dimulai dengan "${u.prefix}"`:u.format==="ends_with"?`String tidak valid: harus berakhir dengan "${u.suffix}"`:u.format==="includes"?`String tidak valid: harus menyertakan "${u.includes}"`:u.format==="regex"?`String tidak valid: harus sesuai pola ${u.pattern}`:`${r[u.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 U6(){return{localeError:z6()}}var P6=()=>{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 u=typeof i;switch(u){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 u},r={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 ${Z(i.values[0])}`:`Opzione non valida: atteso uno tra ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Troppo grande: ${i.origin??"valore"} deve avere ${u}${i.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${i.origin??"valore"} deve essere ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Troppo piccolo: ${i.origin} deve avere ${u}${i.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${i.origin} deve essere ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Stringa non valida: deve iniziare con "${u.prefix}"`:u.format==="ends_with"?`Stringa non valida: deve terminare con "${u.suffix}"`:u.format==="includes"?`Stringa non valida: deve includere "${u.includes}"`:u.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${u.pattern}`:`Invalid ${r[u.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 R6(){return{localeError:P6()}}var j6=()=>{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 u=typeof i;switch(u){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 u},r={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: ${Z(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 u=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"}${u}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${i.origin??"\u5024"}\u306F${i.maximum.toString()}${u}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{const u=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}${u}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${i.origin}\u306F${i.minimum.toString()}${u}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${u.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:u.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${u.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:u.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${u.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:u.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${u.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${r[u.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 L6(){return{localeError:j6()}}var Z6=()=>{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 u=typeof i;switch(u){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 u},r={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 ${Z(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 u=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"} ${u} ${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"} ${u} ${i.maximum.toString()}`}case"too_small":{const u=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} ${u} ${i.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin} ${u} ${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.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 "${u.prefix}"`:u.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 "${u.suffix}"`:u.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 "${u.includes}"`:u.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 ${u.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${r[u.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 V6(){return{localeError:Z6()}}var q6=()=>{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 u=typeof i;switch(u){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 u},r={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 ${Z(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 u=i.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=u==="\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} ${u}${a}`:`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${i.maximum.toString()} ${u}${a}`}case"too_small":{const u=i.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=u==="\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} ${u}${a}`:`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${i.minimum.toString()} ${u}${a}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${u.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:u.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${u.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:u.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${u.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:u.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${u.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${r[u.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 M6(){return{localeError:q6()}}var G6=()=>{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 u=typeof i;switch(u){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 u},r={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 ${Z(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 u=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 ${u}${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 ${u}${i.maximum.toString()}`}case"too_small":{const u=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 ${u}${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 ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.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 "${u.prefix}"`:u.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 "${u.suffix}"`:u.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 "${u.includes}"`:u.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 ${u.pattern}`:`Invalid ${r[u.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 J6(){return{localeError:G6()}}var H6=()=>{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 u=typeof i;switch(u){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 u},r={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 ${Z(i.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Terlalu besar: dijangka ${i.origin??"nilai"} ${a.verb} ${u}${i.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${i.origin??"nilai"} adalah ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Terlalu kecil: dijangka ${i.origin} ${a.verb} ${u}${i.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${i.origin} adalah ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`String tidak sah: mesti bermula dengan "${u.prefix}"`:u.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${u.suffix}"`:u.format==="includes"?`String tidak sah: mesti mengandungi "${u.includes}"`:u.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${u.pattern}`:`${r[u.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 Q6(){return{localeError:H6()}}var K6=()=>{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 u=typeof i;switch(u){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 u},r={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 ${Z(i.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Te lang: verwacht dat ${i.origin??"waarde"} ${u}${i.maximum.toString()} ${a.unit??"elementen"} bevat`:`Te lang: verwacht dat ${i.origin??"waarde"} ${u}${i.maximum.toString()} is`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Te kort: verwacht dat ${i.origin} ${u}${i.minimum.toString()} ${a.unit} bevat`:`Te kort: verwacht dat ${i.origin} ${u}${i.minimum.toString()} is`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Ongeldige tekst: moet met "${u.prefix}" beginnen`:u.format==="ends_with"?`Ongeldige tekst: moet op "${u.suffix}" eindigen`:u.format==="includes"?`Ongeldige tekst: moet "${u.includes}" bevatten`:u.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${u.pattern}`:`Ongeldig: ${r[u.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 W6(){return{localeError:K6()}}var Y6=()=>{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 u=typeof i;switch(u){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 u},r={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 ${Z(i.values[0])}`:`Ugyldig valg: forventet en av ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`For stor(t): forventet ${i.origin??"value"} til \xE5 ha ${u}${i.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${i.origin??"value"} til \xE5 ha ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`For lite(n): forventet ${i.origin} til \xE5 ha ${u}${i.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${i.origin} til \xE5 ha ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${u.prefix}"`:u.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${u.suffix}"`:u.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${u.includes}"`:u.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${u.pattern}`:`Ugyldig ${r[u.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 X6(){return{localeError:Y6()}}var e1=()=>{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 u=typeof i;switch(u){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 u},r={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 ${Z(i.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Fazla b\xFCy\xFCk: ${i.origin??"value"}, ${u}${i.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${i.origin??"value"}, ${u}${i.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Fazla k\xFC\xE7\xFCk: ${i.origin}, ${u}${i.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${i.origin}, ${u}${i.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{const u=i;return u.format==="starts_with"?`F\xE2sit metin: "${u.prefix}" ile ba\u015Flamal\u0131.`:u.format==="ends_with"?`F\xE2sit metin: "${u.suffix}" ile bitmeli.`:u.format==="includes"?`F\xE2sit metin: "${u.includes}" ihtiv\xE2 etmeli.`:u.format==="regex"?`F\xE2sit metin: ${u.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${r[u.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 n1(){return{localeError:e1()}}var t1=()=>{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 u=typeof i;switch(u){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 u},r={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 ${Z(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 u=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 ${u}${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 ${u}${i.maximum.toString()} \u0648\u064A`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${i.origin} \u0628\u0627\u06CC\u062F ${u}${i.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${i.origin} \u0628\u0627\u06CC\u062F ${u}${i.minimum.toString()} \u0648\u064A`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${u.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:u.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${u.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:u.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${u.includes}" \u0648\u0644\u0631\u064A`:u.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${u.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${r[u.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 i1(){return{localeError:t1()}}var r1=()=>{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 u=typeof i;switch(u){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 u},r={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 ${Z(i.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${w(i.values,"|")}`;case"too_big":{const u=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 ${u}${i.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${u}${i.maximum.toString()}`}case"too_small":{const u=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 ${u}${i.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${u.prefix}"`:u.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${u.suffix}"`:u.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${u.includes}"`:u.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${u.pattern}`:`Nieprawid\u0142ow(y/a/e) ${r[u.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 u1(){return{localeError:r1()}}var a1=()=>{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 u=typeof i;switch(u){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 u},r={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 ${Z(i.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Muito grande: esperado que ${i.origin??"valor"} tivesse ${u}${i.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${i.origin??"valor"} fosse ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Muito pequeno: esperado que ${i.origin} tivesse ${u}${i.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${i.origin} fosse ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${u.prefix}"`:u.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${u.suffix}"`:u.format==="includes"?`Texto inv\xE1lido: deve incluir "${u.includes}"`:u.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${u.pattern}`:`${r[u.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 o1(){return{localeError:a1()}}function Gd(e,n,t,r){const i=Math.abs(e),u=i%10,a=i%100;return a>=11&&a<=19?r:u===1?n:u>=2&&u<=4?t:r}var s1=()=>{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 u=typeof i;switch(u){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 u},r={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 ${Z(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 u=i.inclusive?"<=":"<",a=n(i.origin);if(a){const o=Number(i.maximum),s=Gd(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 ${u}${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 ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);if(a){const o=Number(i.minimum),s=Gd(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 ${u}${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 ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.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 "${u.prefix}"`:u.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 "${u.suffix}"`:u.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 "${u.includes}"`:u.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 ${u.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${r[u.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 c1(){return{localeError:s1()}}var l1=()=>{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 u=typeof i;switch(u){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 u},r={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 ${Z(i.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${i.origin??"vrednost"} imelo ${u}${i.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${i.origin??"vrednost"} ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${i.origin} imelo ${u}${i.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${i.origin} ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${u.prefix}"`:u.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${u.suffix}"`:u.format==="includes"?`Neveljaven niz: mora vsebovati "${u.includes}"`:u.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${u.pattern}`:`Neveljaven ${r[u.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 d1(){return{localeError:l1()}}var f1=()=>{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 u=typeof i;switch(u){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 u},r={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 ${Z(i.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${i.origin??"v\xE4rdet"} att ha ${u}${i.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${i.origin??"v\xE4rdet"} att ha ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${i.origin??"v\xE4rdet"} att ha ${u}${i.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${i.origin??"v\xE4rdet"} att ha ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${u.prefix}"`:u.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${u.suffix}"`:u.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${u.includes}"`:u.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${u.pattern}"`:`Ogiltig(t) ${r[u.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 m1(){return{localeError:f1()}}var v1=()=>{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 u=typeof i;switch(u){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 u},r={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 ${Z(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 u=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"} ${u}${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"} ${u}${i.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{const u=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} ${u}${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} ${u}${i.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${u.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:u.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${u.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:u.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${u.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:u.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${u.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 ${r[u.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 p1(){return{localeError:v1()}}var h1=()=>{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 u=typeof i;switch(u){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 u},r={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 ${Z(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 u=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${u} ${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${u} ${i.maximum.toString()}`}case"too_small":{const u=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${u} ${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${u} ${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.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 "${u.prefix}"`:u.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 "${u.suffix}"`:u.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 "${u.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:u.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 ${u.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${r[u.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 g1(){return{localeError:h1()}}var E1=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},y1=()=>{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(r){return e[r]??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 r=>{switch(r.code){case"invalid_type":return`Ge\xE7ersiz de\u011Fer: beklenen ${r.expected}, al\u0131nan ${E1(r.input)}`;case"invalid_value":return r.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${Z(r.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${w(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",u=n(r.origin);return u?`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${i}${r.maximum.toString()} ${u.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",u=n(r.origin);return u?`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${i}${r.minimum.toString()} ${u.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Ge\xE7ersiz metin: "${i.prefix}" ile ba\u015Flamal\u0131`:i.format==="ends_with"?`Ge\xE7ersiz metin: "${i.suffix}" ile bitmeli`:i.format==="includes"?`Ge\xE7ersiz metin: "${i.includes}" i\xE7ermeli`:i.format==="regex"?`Ge\xE7ersiz metin: ${i.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${t[i.format]??r.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${r.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${r.keys.length>1?"lar":""}: ${w(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${r.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function b1(){return{localeError:y1()}}var k1=()=>{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 u=typeof i;switch(u){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 u},r={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 ${Z(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 u=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} ${u}${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 ${u}${i.maximum.toString()}`}case"too_small":{const u=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} ${u}${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 ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.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 "${u.prefix}"`:u.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 "${u.suffix}"`:u.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 "${u.includes}"`:u.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 ${u.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${r[u.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 D1(){return{localeError:k1()}}var S1=()=>{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 u=typeof i;switch(u){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 u},r={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: ${Z(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 u=i.inclusive?"<=":"<",a=n(i.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${i.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${u}${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 ${u}${i.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${i.origin} \u06A9\u06D2 ${u}${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 ${u}${i.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${u.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:u.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${u.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:u.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${u.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:u.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${u.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${r[u.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 B1(){return{localeError:S1()}}var A1=()=>{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 u=typeof i;switch(u){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 u},r={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 ${Z(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 u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${i.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${u}${i.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${i.origin??"gi\xE1 tr\u1ECB"} ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${i.origin} ${a.verb} ${u}${i.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${i.origin} ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${u.prefix}"`:u.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${u.suffix}"`:u.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${u.includes}"`:u.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${u.pattern}`:`${r[u.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 w1(){return{localeError:A1()}}var _1=()=>{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 u=typeof i;switch(u){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 u},r={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 ${Z(i.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${i.origin??"\u503C"} ${u}${i.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${i.origin??"\u503C"} ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${i.origin} ${u}${i.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${i.origin} ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${u.prefix}" \u5F00\u5934`:u.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${u.suffix}" \u7ED3\u5C3E`:u.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${u.includes}"`:u.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${u.pattern}`:`\u65E0\u6548${r[u.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 C1(){return{localeError:_1()}}var $1=()=>{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 u=typeof i;switch(u){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 u},r={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 ${Z(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 u=i.inclusive?"<=":"<",a=n(i.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${i.origin??"\u503C"} \u61C9\u70BA ${u}${i.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${i.origin??"\u503C"} \u61C9\u70BA ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${i.origin} \u61C9\u70BA ${u}${i.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${i.origin} \u61C9\u70BA ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${u.prefix}" \u958B\u982D`:u.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${u.suffix}" \u7D50\u5C3E`:u.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${u.includes}"`:u.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${u.pattern}`:`\u7121\u6548\u7684 ${r[u.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 I1(){return{localeError:$1()}}var Jd=Symbol("ZodOutput"),Hd=Symbol("ZodInput"),Aa=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 wa(){return new Aa}var Nn=wa();function Qd(e,n){return new e({type:"string",...S(n)})}function Kd(e,n){return new e({type:"string",coerce:!0,...S(n)})}function _a(e,n){return new e({type:"string",format:"email",check:"string_format",abort:!1,...S(n)})}function Yi(e,n){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...S(n)})}function Ca(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...S(n)})}function $a(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...S(n)})}function Ia(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 Fa(e,n){return new e({type:"string",format:"url",check:"string_format",abort:!1,...S(n)})}function Na(e,n){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...S(n)})}function Ta(e,n){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...S(n)})}function Oa(e,n){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...S(n)})}function za(e,n){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...S(n)})}function Ua(e,n){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...S(n)})}function Pa(e,n){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...S(n)})}function Ra(e,n){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...S(n)})}function ja(e,n){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...S(n)})}function La(e,n){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...S(n)})}function Za(e,n){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...S(n)})}function Va(e,n){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...S(n)})}function qa(e,n){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...S(n)})}function Ma(e,n){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...S(n)})}function Ga(e,n){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...S(n)})}function Ja(e,n){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...S(n)})}var Wd={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Yd(e,n){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...S(n)})}function Xd(e,n){return new e({type:"string",format:"date",check:"string_format",...S(n)})}function ef(e,n){return new e({type:"string",format:"time",check:"string_format",precision:null,...S(n)})}function nf(e,n){return new e({type:"string",format:"duration",check:"string_format",...S(n)})}function tf(e,n){return new e({type:"number",checks:[],...S(n)})}function rf(e,n){return new e({type:"number",coerce:!0,checks:[],...S(n)})}function uf(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...S(n)})}function af(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...S(n)})}function of(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...S(n)})}function sf(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...S(n)})}function cf(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...S(n)})}function lf(e,n){return new e({type:"boolean",...S(n)})}function df(e,n){return new e({type:"boolean",coerce:!0,...S(n)})}function ff(e,n){return new e({type:"bigint",...S(n)})}function mf(e,n){return new e({type:"bigint",coerce:!0,...S(n)})}function vf(e,n){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...S(n)})}function pf(e,n){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...S(n)})}function hf(e,n){return new e({type:"symbol",...S(n)})}function gf(e,n){return new e({type:"undefined",...S(n)})}function Ef(e,n){return new e({type:"null",...S(n)})}function yf(e){return new e({type:"any"})}function Xi(e){return new e({type:"unknown"})}function bf(e,n){return new e({type:"never",...S(n)})}function kf(e,n){return new e({type:"void",...S(n)})}function Df(e,n){return new e({type:"date",...S(n)})}function Sf(e,n){return new e({type:"date",coerce:!0,...S(n)})}function Bf(e,n){return new e({type:"nan",...S(n)})}function Tn(e,n){return new ma({check:"less_than",...S(n),value:e,inclusive:!1})}function qe(e,n){return new ma({check:"less_than",...S(n),value:e,inclusive:!0})}function On(e,n){return new va({check:"greater_than",...S(n),value:e,inclusive:!1})}function Ie(e,n){return new va({check:"greater_than",...S(n),value:e,inclusive:!0})}function Af(e){return On(0,e)}function wf(e){return Tn(0,e)}function _f(e){return qe(0,e)}function Cf(e){return Ie(0,e)}function Yt(e,n){return new cl({check:"multiple_of",...S(n),value:e})}function er(e,n){return new fl({check:"max_size",...S(n),maximum:e})}function Xt(e,n){return new ml({check:"min_size",...S(n),minimum:e})}function Ha(e,n){return new vl({check:"size_equals",...S(n),size:e})}function nr(e,n){return new pl({check:"max_length",...S(n),maximum:e})}function rt(e,n){return new hl({check:"min_length",...S(n),minimum:e})}function tr(e,n){return new gl({check:"length_equals",...S(n),length:e})}function Qa(e,n){return new El({check:"string_format",format:"regex",...S(n),pattern:e})}function Ka(e){return new yl({check:"string_format",format:"lowercase",...S(e)})}function Wa(e){return new bl({check:"string_format",format:"uppercase",...S(e)})}function Ya(e,n){return new kl({check:"string_format",format:"includes",...S(n),includes:e})}function Xa(e,n){return new Dl({check:"string_format",format:"starts_with",...S(n),prefix:e})}function eo(e,n){return new Sl({check:"string_format",format:"ends_with",...S(n),suffix:e})}function $f(e,n,t){return new Al({check:"property",property:e,schema:n,...S(t)})}function no(e,n){return new wl({check:"mime_type",mime:e,...S(n)})}function zn(e){return new _l({check:"overwrite",tx:e})}function to(e){return zn(n=>n.normalize(e))}function io(){return zn(e=>e.trim())}function ro(){return zn(e=>e.toLowerCase())}function uo(){return zn(e=>e.toUpperCase())}function ao(e,n,t){return new e({type:"array",element:n,...S(t)})}function x1(e,n,t){return new e({type:"union",options:n,...S(t)})}function F1(e,n,t,r){return new e({type:"union",options:t,discriminator:n,...S(r)})}function N1(e,n,t){return new e({type:"intersection",left:n,right:t})}function If(e,n,t,r){const i=t instanceof P,u=i?r:t,a=i?t:null;return new e({type:"tuple",items:n,rest:a,...S(u)})}function T1(e,n,t,r){return new e({type:"record",keyType:n,valueType:t,...S(r)})}function O1(e,n,t,r){return new e({type:"map",keyType:n,valueType:t,...S(r)})}function z1(e,n,t){return new e({type:"set",valueType:n,...S(t)})}function U1(e,n,t){const r=Array.isArray(n)?Object.fromEntries(n.map(i=>[i,i])):n;return new e({type:"enum",entries:r,...S(t)})}function P1(e,n,t){return new e({type:"enum",entries:n,...S(t)})}function R1(e,n,t){return new e({type:"literal",values:Array.isArray(n)?n:[n],...S(t)})}function xf(e,n){return new e({type:"file",...S(n)})}function j1(e,n){return new e({type:"transform",transform:n})}function L1(e,n){return new e({type:"optional",innerType:n})}function Z1(e,n){return new e({type:"nullable",innerType:n})}function V1(e,n,t){return new e({type:"default",innerType:n,get defaultValue(){return typeof t=="function"?t():t}})}function q1(e,n,t){return new e({type:"nonoptional",innerType:n,...S(t)})}function M1(e,n){return new e({type:"success",innerType:n})}function G1(e,n,t){return new e({type:"catch",innerType:n,catchValue:typeof t=="function"?t:()=>t})}function J1(e,n,t){return new e({type:"pipe",in:n,out:t})}function H1(e,n){return new e({type:"readonly",innerType:n})}function Q1(e,n,t){return new e({type:"template_literal",parts:n,...S(t)})}function K1(e,n){return new e({type:"lazy",getter:n})}function W1(e,n){return new e({type:"promise",innerType:n})}function Ff(e,n,t){const r=S(t);return r.abort??(r.abort=!0),new e({type:"custom",check:"custom",fn:n,...r})}function Nf(e,n,t){return new e({type:"custom",check:"custom",fn:n,...S(t)})}function Tf(e,n){const t=S(n);let r=t.truthy??["true","1","yes","on","y","enabled"],i=t.falsy??["false","0","no","off","n","disabled"];t.case!=="sensitive"&&(r=r.map(v=>typeof v=="string"?v.toLowerCase():v),i=i.map(v=>typeof v=="string"?v.toLowerCase():v));const u=new Set(r),a=new Set(i),o=e.Pipe??Sa,s=e.Boolean??ga,c=e.String??Wt,l=e.Transform??Da,f=new l({type:"transform",transform:(v,h)=>{let b=v;return t.case!=="sensitive"&&(b=b.toLowerCase()),u.has(b)?!0:a.has(b)?!1:(h.issues.push({code:"invalid_value",expected:"stringbool",values:[...u,...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 Of(e,n,t,r={}){const i=S(r),u={...S(r),check:"string_format",type:"string",format:n,fn:typeof t=="function"?t:o=>t.test(o),...i};return t instanceof RegExp&&(u.pattern=t),new e(u)}var zf=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 r=this._def.input?aa(this._def.input,t,void 0,{callee:n}):t;if(!Array.isArray(r))throw new Error("Invalid arguments schema: not an array or tuple schema.");const i=e(...r);return this._def.output?aa(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 r=this._def.input?await sa(this._def.input,t,void 0,{callee:n}):t;if(!Array.isArray(r))throw new Error("Invalid arguments schema: not an array or tuple schema.");const i=await e(...r);return this._def.output?sa(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 Ki({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 Uf(e){return new zf({type:"function",input:Array.isArray(e?.input)?If(Ki,e?.input):e?.input??ao(ya,Xi(Hi)),output:e?.output??Xi(Hi)})}var oo=class{constructor(e){this.counter=0,this.metadataRegistry=e?.metadata??Nn,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 r=e._zod.def,i={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},u=this.seen.get(e);if(u)return u.count++,n.schemaPath.includes(e)&&(u.cycle=n.path),u.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(r.type){case"string":{const d=m;d.type="string";const{minimum:v,maximum:h,format:b,patterns:E,contentEncoding:g}=e._zod.bag;if(typeof v=="number"&&(d.minLength=v),typeof h=="number"&&(d.maxLength=h),b&&(d.format=i[b]??b,d.format===""&&delete d.format),g&&(d.contentEncoding=g),E&&E.size>0){const k=[...E];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:b,multipleOf:E,exclusiveMaximum:g,exclusiveMinimum:k}=e._zod.bag;typeof b=="string"&&b.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 g=="number"&&(d.exclusiveMaximum=g),typeof h=="number"&&(d.maximum=h,typeof g=="number"&&(g<=h?delete d.maximum:delete d.exclusiveMaximum)),typeof E=="number"&&(d.multipleOf=E);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(r.element,{...l,path:[...l.path,"items"]});break}case"object":{const d=m;d.type="object",d.properties={};const v=r.shape;for(const E in v)d.properties[E]=this.process(v[E],{...l,path:[...l.path,"properties",E]});const h=new Set(Object.keys(v)),b=new Set([...h].filter(E=>{const g=r.shape[E]._zod;return this.io==="input"?g.optin===void 0:g.optout===void 0}));b.size>0&&(d.required=Array.from(b)),r.catchall?._zod.def.type==="never"?d.additionalProperties=!1:r.catchall?r.catchall&&(d.additionalProperties=this.process(r.catchall,{...l,path:[...l.path,"additionalProperties"]})):this.io==="output"&&(d.additionalProperties=!1);break}case"union":{const d=m;d.anyOf=r.options.map((v,h)=>this.process(v,{...l,path:[...l.path,"anyOf",h]}));break}case"intersection":{const d=m,v=this.process(r.left,{...l,path:[...l.path,"allOf",0]}),h=this.process(r.right,{...l,path:[...l.path,"allOf",1]}),b=g=>"allOf"in g&&Object.keys(g).length===1,E=[...b(v)?v.allOf:[v],...b(h)?h.allOf:[h]];d.allOf=E;break}case"tuple":{const d=m;d.type="array";const v=r.items.map((E,g)=>this.process(E,{...l,path:[...l.path,"prefixItems",g]}));if(this.target==="draft-2020-12"?d.prefixItems=v:d.items=v,r.rest){const E=this.process(r.rest,{...l,path:[...l.path,"items"]});this.target==="draft-2020-12"?d.items=E:d.additionalItems=E}r.rest&&(d.items=this.process(r.rest,{...l,path:[...l.path,"items"]}));const{minimum:h,maximum:b}=e._zod.bag;typeof h=="number"&&(d.minItems=h),typeof b=="number"&&(d.maxItems=b);break}case"record":{const d=m;d.type="object",d.propertyNames=this.process(r.keyType,{...l,path:[...l.path,"propertyNames"]}),d.additionalProperties=this.process(r.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=Xu(r.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 r.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:b,mime:E}=e._zod.bag;h!==void 0&&(v.minLength=h),b!==void 0&&(v.maxLength=b),E?E.length===1?(v.contentMediaType=E[0],Object.assign(d,v)):d.anyOf=E.map(g=>({...v,contentMediaType:g})):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(r.innerType,l);m.anyOf=[d,{type:"null"}];break}case"nonoptional":{this.process(r.innerType,l),a.ref=r.innerType;break}case"success":{const d=m;d.type="boolean";break}case"default":{this.process(r.innerType,l),a.ref=r.innerType,m.default=JSON.parse(JSON.stringify(r.defaultValue));break}case"prefault":{this.process(r.innerType,l),a.ref=r.innerType,this.io==="input"&&(m._prefault=JSON.parse(JSON.stringify(r.defaultValue)));break}case"catch":{this.process(r.innerType,l),a.ref=r.innerType;let d;try{d=r.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"?r.in._zod.def.type==="transform"?r.out:r.in:r.out;this.process(d,l),a.ref=d;break}case"readonly":{this.process(r.innerType,l),a.ref=r.innerType,m.readOnly=!0;break}case"promise":{this.process(r.innerType,l),a.ref=r.innerType;break}case"optional":{this.process(r.innerType,l),a.ref=r.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"&&ae(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},r=this.seen.get(e);if(!r)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??(E=>E);if(v)return{ref:h(v)};const b=c[1].defId??c[1].schema.id??`schema${this.counter++}`;return c[1].defId=b,{defId:b,ref:`${h("__shared")}#/${l}/${b}`}}if(c[1]===r)return{ref:"#"};const m=`#/${l}/`,d=c[1].schema.id??`__schema${this.counter++}`;return{defId:d,ref:m+d}},u=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
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]){u(c);continue}if(t.external){const m=t.external.registry.get(c[0])?.id;if(e!==c[0]&&m){u(c);continue}}if(this.metadataRegistry.get(c[0])?.id){u(c);continue}if(l.cycle){u(c);continue}if(l.count>1&&t.reused==="ref"){u(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,r.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 Pf(e,n){if(e instanceof Aa){const r=new oo(n),i={};for(const o of e._idmap.entries()){const[s,c]=o;r.process(c)}const u={},a={registry:e,uri:n?.uri,defs:i};for(const o of e._idmap.entries()){const[s,c]=o;u[s]=r.emit(c,{...n,external:a})}if(Object.keys(i).length>0){const o=r.target==="draft-2020-12"?"$defs":"definitions";u.__shared={[o]:i}}return{schemas:u}}const t=new oo(n);return t.process(e),t.emit(e,n)}function ae(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 ae(i.element,t);case"object":{for(const u in i.shape)if(ae(i.shape[u],t))return!0;return!1}case"union":{for(const u of i.options)if(ae(u,t))return!0;return!1}case"intersection":return ae(i.left,t)||ae(i.right,t);case"tuple":{for(const u of i.items)if(ae(u,t))return!0;return!!(i.rest&&ae(i.rest,t))}case"record":return ae(i.keyType,t)||ae(i.valueType,t);case"map":return ae(i.keyType,t)||ae(i.valueType,t);case"set":return ae(i.valueType,t);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return ae(i.innerType,t);case"lazy":return ae(i.getter(),t);case"default":return ae(i.innerType,t);case"prefault":return ae(i.innerType,t);case"custom":return!1;case"transform":return!0;case"pipe":return ae(i.in,t)||ae(i.out,t);case"success":return!1;case"catch":return!1}throw new Error(`Unknown schema type: ${i.type}`)}var W1={},Rf={};An(Rf,{ZodISODate:()=>co,ZodISODateTime:()=>so,ZodISODuration:()=>fo,ZodISOTime:()=>lo,date:()=>Lf,datetime:()=>jf,duration:()=>Vf,time:()=>Zf});var so=p("ZodISODateTime",(e,n)=>{Ll.init(e,n),ee.init(e,n)});function jf(e){return Yd(so,e)}var co=p("ZodISODate",(e,n)=>{Zl.init(e,n),ee.init(e,n)});function Lf(e){return Xd(co,e)}var lo=p("ZodISOTime",(e,n)=>{Vl.init(e,n),ee.init(e,n)});function Zf(e){return ef(lo,e)}var fo=p("ZodISODuration",(e,n)=>{ql.init(e,n),ee.init(e,n)});function Vf(e){return nf(fo,e)}var qf=(e,n)=>{ta.init(e,n),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>ra(e,t)},flatten:{value:t=>ia(e,t)},addIssue:{value:t=>e.issues.push(t)},addIssues:{value:t=>e.issues.push(...t)},isEmpty:{get(){return e.issues.length===0}}})},Y1=p("ZodError",qf),ei=p("ZodError",qf,{Parent:Error}),Mf=ua(ei),Gf=oa(ei),Jf=ca(ei),Hf=la(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(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),e.clone=(t,r)=>Ge(e,t,r),e.brand=()=>e,e.register=(t,r)=>(t.add(e,r),e),e.parse=(t,r)=>Mf(e,t,r,{callee:e.parse}),e.safeParse=(t,r)=>Jf(e,t,r),e.parseAsync=async(t,r)=>Gf(e,t,r,{callee:e.parseAsync}),e.safeParseAsync=async(t,r)=>Hf(e,t,r),e.spa=e.safeParseAsync,e.refine=(t,r)=>e.check(Om(t,r)),e.superRefine=t=>e.check(zm(t)),e.overwrite=t=>e.check(zn(t)),e.optional=()=>fr(e),e.nullable=()=>mr(e),e.nullish=()=>fr(mr(e)),e.nonoptional=t=>Sm(e,t),e.array=()=>Oo(e),e.or=t=>dr([e,t]),e.and=t=>cm(e,t),e.transform=t=>vr(e,Ro(t)),e.default=t=>bm(e,t),e.prefault=t=>Dm(e,t),e.catch=t=>wm(e,t),e.pipe=t=>vr(e,t),e.readonly=()=>$m(e),e.describe=t=>{const r=e.clone();return Nn.add(r,{description:t}),r},Object.defineProperty(e,"description",{get(){return Nn.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return Nn.get(e);const r=e.clone();return Nn.add(r,t[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),mo=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=(...r)=>e.check(Ka(...r)),e.includes=(...r)=>e.check(Ya(...r)),e.startsWith=(...r)=>e.check(Xa(...r)),e.endsWith=(...r)=>e.check(eo(...r)),e.min=(...r)=>e.check(rt(...r)),e.max=(...r)=>e.check(nr(...r)),e.length=(...r)=>e.check(tr(...r)),e.nonempty=(...r)=>e.check(rt(1,...r)),e.lowercase=r=>e.check(Qa(r)),e.uppercase=r=>e.check(Wa(r)),e.trim=()=>e.check(io()),e.normalize=(...r)=>e.check(to(...r)),e.toLowerCase=()=>e.check(ro()),e.toUpperCase=()=>e.check(uo())}),ir=p("ZodString",(e,n)=>{Wt.init(e,n),mo.init(e,n),e.email=t=>e.check(_a(po,t)),e.url=t=>e.check(Fa(ho,t)),e.jwt=t=>e.check(Ja(xo,t)),e.emoji=t=>e.check(Na(go,t)),e.guid=t=>e.check(Yi(rr,t)),e.uuid=t=>e.check(Ca(Ye,t)),e.uuidv4=t=>e.check($a(Ye,t)),e.uuidv6=t=>e.check(Ia(Ye,t)),e.uuidv7=t=>e.check(xa(Ye,t)),e.nanoid=t=>e.check(Ta(Eo,t)),e.guid=t=>e.check(Yi(rr,t)),e.cuid=t=>e.check(Oa(yo,t)),e.cuid2=t=>e.check(za(bo,t)),e.ulid=t=>e.check(Ua(ko,t)),e.base64=t=>e.check(qa(Co,t)),e.base64url=t=>e.check(Ma($o,t)),e.xid=t=>e.check(Pa(Do,t)),e.ksuid=t=>e.check(Ra(So,t)),e.ipv4=t=>e.check(ja(Bo,t)),e.ipv6=t=>e.check(La(Ao,t)),e.cidrv4=t=>e.check(Za(wo,t)),e.cidrv6=t=>e.check(Va(_o,t)),e.e164=t=>e.check(Ga(Io,t)),e.datetime=t=>e.check(jf(t)),e.date=t=>e.check(Lf(t)),e.time=t=>e.check(Zf(t)),e.duration=t=>e.check(Vf(t))});function vo(e){return Kd(ir,e)}var ee=p("ZodStringFormat",(e,n)=>{Y.init(e,n),mo.init(e,n)}),po=p("ZodEmail",(e,n)=>{Fl.init(e,n),ee.init(e,n)});function X1(e){return _a(po,e)}var rr=p("ZodGUID",(e,n)=>{Il.init(e,n),ee.init(e,n)});function e3(e){return Yi(rr,e)}var Ye=p("ZodUUID",(e,n)=>{xl.init(e,n),ee.init(e,n)});function n3(e){return Ca(Ye,e)}function t3(e){return $a(Ye,e)}function i3(e){return Ia(Ye,e)}function r3(e){return xa(Ye,e)}var ho=p("ZodURL",(e,n)=>{Nl.init(e,n),ee.init(e,n)});function u3(e){return Fa(ho,e)}var go=p("ZodEmoji",(e,n)=>{Tl.init(e,n),ee.init(e,n)});function a3(e){return Na(go,e)}var Eo=p("ZodNanoID",(e,n)=>{Ol.init(e,n),ee.init(e,n)});function o3(e){return Ta(Eo,e)}var yo=p("ZodCUID",(e,n)=>{zl.init(e,n),ee.init(e,n)});function s3(e){return Oa(yo,e)}var bo=p("ZodCUID2",(e,n)=>{Ul.init(e,n),ee.init(e,n)});function c3(e){return za(bo,e)}var ko=p("ZodULID",(e,n)=>{Pl.init(e,n),ee.init(e,n)});function l3(e){return Ua(ko,e)}var Do=p("ZodXID",(e,n)=>{Rl.init(e,n),ee.init(e,n)});function d3(e){return Pa(Do,e)}var So=p("ZodKSUID",(e,n)=>{jl.init(e,n),ee.init(e,n)});function f3(e){return Ra(So,e)}var Bo=p("ZodIPv4",(e,n)=>{Ml.init(e,n),ee.init(e,n)});function m3(e){return ja(Bo,e)}var Ao=p("ZodIPv6",(e,n)=>{Gl.init(e,n),ee.init(e,n)});function v3(e){return La(Ao,e)}var wo=p("ZodCIDRv4",(e,n)=>{Jl.init(e,n),ee.init(e,n)});function p3(e){return Za(wo,e)}var _o=p("ZodCIDRv6",(e,n)=>{Hl.init(e,n),ee.init(e,n)});function h3(e){return Va(_o,e)}var Co=p("ZodBase64",(e,n)=>{Kl.init(e,n),ee.init(e,n)});function g3(e){return qa(Co,e)}var $o=p("ZodBase64URL",(e,n)=>{Wl.init(e,n),ee.init(e,n)});function E3(e){return Ma($o,e)}var Io=p("ZodE164",(e,n)=>{Yl.init(e,n),ee.init(e,n)});function y3(e){return Ga(Io,e)}var xo=p("ZodJWT",(e,n)=>{ed.init(e,n),ee.init(e,n)});function b3(e){return Ja(xo,e)}var Kf=p("ZodCustomStringFormat",(e,n)=>{nd.init(e,n),ee.init(e,n)});function k3(e,n,t={}){return Of(Kf,e,n,t)}var ur=p("ZodNumber",(e,n)=>{ha.init(e,n),Z.init(e,n),e.gt=(r,i)=>e.check(On(r,i)),e.gte=(r,i)=>e.check(Ie(r,i)),e.min=(r,i)=>e.check(Ie(r,i)),e.lt=(r,i)=>e.check(Tn(r,i)),e.lte=(r,i)=>e.check(qe(r,i)),e.max=(r,i)=>e.check(qe(r,i)),e.int=r=>e.check(Fo(r)),e.safe=r=>e.check(Fo(r)),e.positive=r=>e.check(On(0,r)),e.nonnegative=r=>e.check(Ie(0,r)),e.negative=r=>e.check(Tn(0,r)),e.nonpositive=r=>e.check(qe(0,r)),e.multipleOf=(r,i)=>e.check(Yt(r,i)),e.step=(r,i)=>e.check(Yt(r,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 Qf(e){return tf(ur,e)}var ut=p("ZodNumberFormat",(e,n)=>{td.init(e,n),ur.init(e,n)});function Fo(e){return uf(ut,e)}function D3(e){return af(ut,e)}function S3(e){return of(ut,e)}function B3(e){return sf(ut,e)}function A3(e){return cf(ut,e)}var ar=p("ZodBoolean",(e,n)=>{ga.init(e,n),Z.init(e,n)});function Wf(e){return lf(ar,e)}var or=p("ZodBigInt",(e,n)=>{Ea.init(e,n),Z.init(e,n),e.gte=(r,i)=>e.check(Ie(r,i)),e.min=(r,i)=>e.check(Ie(r,i)),e.gt=(r,i)=>e.check(On(r,i)),e.gte=(r,i)=>e.check(Ie(r,i)),e.min=(r,i)=>e.check(Ie(r,i)),e.lt=(r,i)=>e.check(Tn(r,i)),e.lte=(r,i)=>e.check(qe(r,i)),e.max=(r,i)=>e.check(qe(r,i)),e.positive=r=>e.check(On(BigInt(0),r)),e.negative=r=>e.check(Tn(BigInt(0),r)),e.nonpositive=r=>e.check(qe(BigInt(0),r)),e.nonnegative=r=>e.check(Ie(BigInt(0),r)),e.multipleOf=(r,i)=>e.check(Yt(r,i));const t=e._zod.bag;e.minValue=t.minimum??null,e.maxValue=t.maximum??null,e.format=t.format??null});function w3(e){return ff(or,e)}var No=p("ZodBigIntFormat",(e,n)=>{id.init(e,n),or.init(e,n)});function _3(e){return vf(No,e)}function C3(e){return pf(No,e)}var Yf=p("ZodSymbol",(e,n)=>{rd.init(e,n),Z.init(e,n)});function $3(e){return hf(Yf,e)}var Xf=p("ZodUndefined",(e,n)=>{ud.init(e,n),Z.init(e,n)});function I3(e){return gf(Xf,e)}var em=p("ZodNull",(e,n)=>{ad.init(e,n),Z.init(e,n)});function nm(e){return Ef(em,e)}var tm=p("ZodAny",(e,n)=>{od.init(e,n),Z.init(e,n)});function x3(){return yf(tm)}var im=p("ZodUnknown",(e,n)=>{Hi.init(e,n),Z.init(e,n)});function sr(){return Xi(im)}var rm=p("ZodNever",(e,n)=>{sd.init(e,n),Z.init(e,n)});function cr(e){return bf(rm,e)}var um=p("ZodVoid",(e,n)=>{cd.init(e,n),Z.init(e,n)});function F3(e){return kf(um,e)}var To=p("ZodDate",(e,n)=>{ld.init(e,n),Z.init(e,n),e.min=(r,i)=>e.check(Ie(r,i)),e.max=(r,i)=>e.check(qe(r,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 N3(e){return Df(To,e)}var am=p("ZodArray",(e,n)=>{ya.init(e,n),Z.init(e,n),e.element=n.element,e.min=(t,r)=>e.check(rt(t,r)),e.nonempty=t=>e.check(rt(1,t)),e.max=(t,r)=>e.check(nr(t,r)),e.length=(t,r)=>e.check(tr(t,r)),e.unwrap=()=>e.element});function Oo(e,n){return ao(am,e,n)}function T3(e){const n=e._zod.def.shape;return hm(Object.keys(n))}var lr=p("ZodObject",(e,n)=>{md.init(e,n),Z.init(e,n),G.defineLazy(e,"shape",()=>n.shape),e.keyof=()=>vm(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:sr()}),e.loose=()=>e.clone({...e._zod.def,catchall:sr()}),e.strict=()=>e.clone({...e._zod.def,catchall:cr()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>G.extend(e,t),e.merge=t=>G.merge(e,t),e.pick=t=>G.pick(e,t),e.omit=t=>G.omit(e,t),e.partial=(...t)=>G.partial(jo,e,t[0]),e.required=(...t)=>G.required(Lo,e,t[0])});function O3(e,n){const t={type:"object",get shape(){return G.assignProp(this,"shape",{...e}),this.shape},...G.normalizeParams(n)};return new lr(t)}function z3(e,n){return new lr({type:"object",get shape(){return G.assignProp(this,"shape",{...e}),this.shape},catchall:cr(),...G.normalizeParams(n)})}function U3(e,n){return new lr({type:"object",get shape(){return G.assignProp(this,"shape",{...e}),this.shape},catchall:sr(),...G.normalizeParams(n)})}var zo=p("ZodUnion",(e,n)=>{ba.init(e,n),Z.init(e,n),e.options=n.options});function dr(e,n){return new zo({type:"union",options:e,...G.normalizeParams(n)})}var om=p("ZodDiscriminatedUnion",(e,n)=>{zo.init(e,n),pd.init(e,n)});function P3(e,n,t){return new om({type:"union",options:n,discriminator:e,...G.normalizeParams(t)})}var sm=p("ZodIntersection",(e,n)=>{hd.init(e,n),Z.init(e,n)});function cm(e,n){return new sm({type:"intersection",left:e,right:n})}var lm=p("ZodTuple",(e,n)=>{Qi.init(e,n),Z.init(e,n),e.rest=t=>e.clone({...e._zod.def,rest:t})});function R3(e,n,t){const r=n instanceof U,i=r?t:n,u=r?n:null;return new lm({type:"tuple",items:e,rest:u,...G.normalizeParams(i)})}var Uo=p("ZodRecord",(e,n)=>{Ed.init(e,n),Z.init(e,n),e.keyType=n.keyType,e.valueType=n.valueType});function dm(e,n,t){return new Uo({type:"record",keyType:e,valueType:n,...G.normalizeParams(t)})}function j3(e,n,t){return new Uo({type:"record",keyType:dr([e,cr()]),valueType:n,...G.normalizeParams(t)})}var fm=p("ZodMap",(e,n)=>{yd.init(e,n),Z.init(e,n),e.keyType=n.keyType,e.valueType=n.valueType});function L3(e,n,t){return new fm({type:"map",keyType:e,valueType:n,...G.normalizeParams(t)})}var mm=p("ZodSet",(e,n)=>{kd.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(er(...t)),e.size=(...t)=>e.check(Ha(...t))});function Z3(e,n){return new mm({type:"set",valueType:e,...G.normalizeParams(n)})}var ni=p("ZodEnum",(e,n)=>{Sd.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=(r,i)=>{const u={};for(const a of r)if(t.has(a))u[a]=n.entries[a];else throw new Error(`Key ${a} not found in enum`);return new ni({...n,checks:[],...G.normalizeParams(i),entries:u})},e.exclude=(r,i)=>{const u={...n.entries};for(const a of r)if(t.has(a))delete u[a];else throw new Error(`Key ${a} not found in enum`);return new ni({...n,checks:[],...G.normalizeParams(i),entries:u})}});function vm(e,n){const t=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new ni({type:"enum",entries:t,...G.normalizeParams(n)})}function V3(e,n){return new ni({type:"enum",entries:e,...G.normalizeParams(n)})}var pm=p("ZodLiteral",(e,n)=>{Bd.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 hm(e,n){return new pm({type:"literal",values:Array.isArray(e)?e:[e],...G.normalizeParams(n)})}var gm=p("ZodFile",(e,n)=>{Ad.init(e,n),Z.init(e,n),e.min=(t,r)=>e.check(Xt(t,r)),e.max=(t,r)=>e.check(er(t,r)),e.mime=(t,r)=>e.check(no(Array.isArray(t)?t:[t],r))});function q3(e){return xf(gm,e)}var Po=p("ZodTransform",(e,n)=>{Da.init(e,n),Z.init(e,n),e._zod.parse=(t,r)=>{t.addIssue=u=>{if(typeof u=="string")t.issues.push(G.issue(u,t.value,n));else{const a=u;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(G.issue(a))}};const i=n.transform(t.value,t);return i instanceof Promise?i.then(u=>(t.value=u,t)):(t.value=i,t)}});function Ro(e){return new Po({type:"transform",transform:e})}var jo=p("ZodOptional",(e,n)=>{wd.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType});function fr(e){return new jo({type:"optional",innerType:e})}var Em=p("ZodNullable",(e,n)=>{_d.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType});function mr(e){return new Em({type:"nullable",innerType:e})}function M3(e){return fr(mr(e))}var ym=p("ZodDefault",(e,n)=>{Cd.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function bm(e,n){return new ym({type:"default",innerType:e,get defaultValue(){return typeof n=="function"?n():n}})}var km=p("ZodPrefault",(e,n)=>{Id.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType});function Dm(e,n){return new km({type:"prefault",innerType:e,get defaultValue(){return typeof n=="function"?n():n}})}var Lo=p("ZodNonOptional",(e,n)=>{xd.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType});function Sm(e,n){return new Lo({type:"nonoptional",innerType:e,...G.normalizeParams(n)})}var Bm=p("ZodSuccess",(e,n)=>{Nd.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType});function G3(e){return new Bm({type:"success",innerType:e})}var Am=p("ZodCatch",(e,n)=>{Td.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function wm(e,n){return new Am({type:"catch",innerType:e,catchValue:typeof n=="function"?n:()=>n})}var _m=p("ZodNaN",(e,n)=>{Od.init(e,n),Z.init(e,n)});function J3(e){return Bf(_m,e)}var Zo=p("ZodPipe",(e,n)=>{Sa.init(e,n),Z.init(e,n),e.in=n.in,e.out=n.out});function vr(e,n){return new Zo({type:"pipe",in:e,out:n})}var Cm=p("ZodReadonly",(e,n)=>{Ud.init(e,n),Z.init(e,n)});function $m(e){return new Cm({type:"readonly",innerType:e})}var Im=p("ZodTemplateLiteral",(e,n)=>{Rd.init(e,n),Z.init(e,n)});function H3(e,n){return new Im({type:"template_literal",parts:e,...G.normalizeParams(n)})}var xm=p("ZodLazy",(e,n)=>{Ld.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.getter()});function Fm(e){return new xm({type:"lazy",getter:e})}var Nm=p("ZodPromise",(e,n)=>{jd.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType});function K3(e){return new Nm({type:"promise",innerType:e})}var pr=p("ZodCustom",(e,n)=>{Zd.init(e,n),Z.init(e,n)});function Tm(e){const n=new re({check:"custom"});return n._zod.check=e,n}function Q3(e,n){return Ff(pr,e??(()=>!0),n)}function Om(e,n={}){return Nf(pr,e,n)}function zm(e){const n=Tm(t=>(t.addIssue=r=>{if(typeof r=="string")t.issues.push(G.issue(r,t.value,n._zod.def));else{const i=r;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(G.issue(i))}},e(t.value,t)));return n}function W3(e,n={error:`Input not instance of ${e.name}`}){const t=new pr({type:"custom",check:"custom",fn:r=>r instanceof e,abort:!0,...G.normalizeParams(n)});return t._zod.bag.Class=e,t}var Y3=(...e)=>Tf({Pipe:Zo,Boolean:ar,String:ir,Transform:Po},...e);function X3(e){const n=Fm(()=>dr([vo(e),Qf(),Wf(),nm(),Oo(n),dm(vo(),n)]));return n}function eE(e,n){return vr(Ro(e),n)}var nE={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 tE(e){De({customError:e})}function iE(){return De().customError}var Vo;Vo||(Vo={});var Um={};An(Um,{bigint:()=>oE,boolean:()=>aE,date:()=>sE,number:()=>uE,string:()=>rE});function rE(e){return Qd(ir,e)}function uE(e){return rf(ur,e)}function aE(e){return df(ar,e)}function oE(e){return mf(or,e)}function sE(e){return Sf(To,e)}De(Md());var hr={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}};hr.loc.source={body:`mutation CreateDebitCard($createDebitCardInput: DebitCardInput!) {
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]){u(c);continue}if(t.external){const m=t.external.registry.get(c[0])?.id;if(e!==c[0]&&m){u(c);continue}}if(this.metadataRegistry.get(c[0])?.id){u(c);continue}if(l.cycle){u(c);continue}if(l.count>1&&t.reused==="ref"){u(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,r.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 Pf(e,n){if(e instanceof Aa){const r=new oo(n),i={};for(const o of e._idmap.entries()){const[s,c]=o;r.process(c)}const u={},a={registry:e,uri:n?.uri,defs:i};for(const o of e._idmap.entries()){const[s,c]=o;u[s]=r.emit(c,{...n,external:a})}if(Object.keys(i).length>0){const o=r.target==="draft-2020-12"?"$defs":"definitions";u.__shared={[o]:i}}return{schemas:u}}const t=new oo(n);return t.process(e),t.emit(e,n)}function ae(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 ae(i.element,t);case"object":{for(const u in i.shape)if(ae(i.shape[u],t))return!0;return!1}case"union":{for(const u of i.options)if(ae(u,t))return!0;return!1}case"intersection":return ae(i.left,t)||ae(i.right,t);case"tuple":{for(const u of i.items)if(ae(u,t))return!0;return!!(i.rest&&ae(i.rest,t))}case"record":return ae(i.keyType,t)||ae(i.valueType,t);case"map":return ae(i.keyType,t)||ae(i.valueType,t);case"set":return ae(i.valueType,t);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return ae(i.innerType,t);case"lazy":return ae(i.getter(),t);case"default":return ae(i.innerType,t);case"prefault":return ae(i.innerType,t);case"custom":return!1;case"transform":return!0;case"pipe":return ae(i.in,t)||ae(i.out,t);case"success":return!1;case"catch":return!1}throw new Error(`Unknown schema type: ${i.type}`)}var Y1={},Rf={};An(Rf,{ZodISODate:()=>co,ZodISODateTime:()=>so,ZodISODuration:()=>fo,ZodISOTime:()=>lo,date:()=>Lf,datetime:()=>jf,duration:()=>Vf,time:()=>Zf});var so=p("ZodISODateTime",(e,n)=>{Ll.init(e,n),ee.init(e,n)});function jf(e){return Yd(so,e)}var co=p("ZodISODate",(e,n)=>{Zl.init(e,n),ee.init(e,n)});function Lf(e){return Xd(co,e)}var lo=p("ZodISOTime",(e,n)=>{Vl.init(e,n),ee.init(e,n)});function Zf(e){return ef(lo,e)}var fo=p("ZodISODuration",(e,n)=>{ql.init(e,n),ee.init(e,n)});function Vf(e){return nf(fo,e)}var qf=(e,n)=>{ta.init(e,n),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>ra(e,t)},flatten:{value:t=>ia(e,t)},addIssue:{value:t=>e.issues.push(t)},addIssues:{value:t=>e.issues.push(...t)},isEmpty:{get(){return e.issues.length===0}}})},X1=p("ZodError",qf),ei=p("ZodError",qf,{Parent:Error}),Mf=ua(ei),Gf=oa(ei),Jf=ca(ei),Hf=la(ei),V=p("ZodType",(e,n)=>(P.init(e,n),e.def=n,Object.defineProperty(e,"_def",{value:n}),e.check=(...t)=>e.clone({...n,checks:[...n.checks??[],...t.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),e.clone=(t,r)=>Ge(e,t,r),e.brand=()=>e,e.register=(t,r)=>(t.add(e,r),e),e.parse=(t,r)=>Mf(e,t,r,{callee:e.parse}),e.safeParse=(t,r)=>Jf(e,t,r),e.parseAsync=async(t,r)=>Gf(e,t,r,{callee:e.parseAsync}),e.safeParseAsync=async(t,r)=>Hf(e,t,r),e.spa=e.safeParseAsync,e.refine=(t,r)=>e.check(Om(t,r)),e.superRefine=t=>e.check(zm(t)),e.overwrite=t=>e.check(zn(t)),e.optional=()=>fr(e),e.nullable=()=>mr(e),e.nullish=()=>fr(mr(e)),e.nonoptional=t=>Sm(e,t),e.array=()=>Oo(e),e.or=t=>dr([e,t]),e.and=t=>cm(e,t),e.transform=t=>vr(e,Ro(t)),e.default=t=>bm(e,t),e.prefault=t=>Dm(e,t),e.catch=t=>wm(e,t),e.pipe=t=>vr(e,t),e.readonly=()=>$m(e),e.describe=t=>{const r=e.clone();return Nn.add(r,{description:t}),r},Object.defineProperty(e,"description",{get(){return Nn.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return Nn.get(e);const r=e.clone();return Nn.add(r,t[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),mo=p("_ZodString",(e,n)=>{Wt.init(e,n),V.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=(...r)=>e.check(Qa(...r)),e.includes=(...r)=>e.check(Ya(...r)),e.startsWith=(...r)=>e.check(Xa(...r)),e.endsWith=(...r)=>e.check(eo(...r)),e.min=(...r)=>e.check(rt(...r)),e.max=(...r)=>e.check(nr(...r)),e.length=(...r)=>e.check(tr(...r)),e.nonempty=(...r)=>e.check(rt(1,...r)),e.lowercase=r=>e.check(Ka(r)),e.uppercase=r=>e.check(Wa(r)),e.trim=()=>e.check(io()),e.normalize=(...r)=>e.check(to(...r)),e.toLowerCase=()=>e.check(ro()),e.toUpperCase=()=>e.check(uo())}),ir=p("ZodString",(e,n)=>{Wt.init(e,n),mo.init(e,n),e.email=t=>e.check(_a(po,t)),e.url=t=>e.check(Fa(ho,t)),e.jwt=t=>e.check(Ja(xo,t)),e.emoji=t=>e.check(Na(go,t)),e.guid=t=>e.check(Yi(rr,t)),e.uuid=t=>e.check(Ca(Ye,t)),e.uuidv4=t=>e.check($a(Ye,t)),e.uuidv6=t=>e.check(Ia(Ye,t)),e.uuidv7=t=>e.check(xa(Ye,t)),e.nanoid=t=>e.check(Ta(Eo,t)),e.guid=t=>e.check(Yi(rr,t)),e.cuid=t=>e.check(Oa(yo,t)),e.cuid2=t=>e.check(za(bo,t)),e.ulid=t=>e.check(Ua(ko,t)),e.base64=t=>e.check(qa(Co,t)),e.base64url=t=>e.check(Ma($o,t)),e.xid=t=>e.check(Pa(Do,t)),e.ksuid=t=>e.check(Ra(So,t)),e.ipv4=t=>e.check(ja(Bo,t)),e.ipv6=t=>e.check(La(Ao,t)),e.cidrv4=t=>e.check(Za(wo,t)),e.cidrv6=t=>e.check(Va(_o,t)),e.e164=t=>e.check(Ga(Io,t)),e.datetime=t=>e.check(jf(t)),e.date=t=>e.check(Lf(t)),e.time=t=>e.check(Zf(t)),e.duration=t=>e.check(Vf(t))});function vo(e){return Qd(ir,e)}var ee=p("ZodStringFormat",(e,n)=>{Y.init(e,n),mo.init(e,n)}),po=p("ZodEmail",(e,n)=>{Fl.init(e,n),ee.init(e,n)});function e3(e){return _a(po,e)}var rr=p("ZodGUID",(e,n)=>{Il.init(e,n),ee.init(e,n)});function n3(e){return Yi(rr,e)}var Ye=p("ZodUUID",(e,n)=>{xl.init(e,n),ee.init(e,n)});function t3(e){return Ca(Ye,e)}function i3(e){return $a(Ye,e)}function r3(e){return Ia(Ye,e)}function u3(e){return xa(Ye,e)}var ho=p("ZodURL",(e,n)=>{Nl.init(e,n),ee.init(e,n)});function a3(e){return Fa(ho,e)}var go=p("ZodEmoji",(e,n)=>{Tl.init(e,n),ee.init(e,n)});function o3(e){return Na(go,e)}var Eo=p("ZodNanoID",(e,n)=>{Ol.init(e,n),ee.init(e,n)});function s3(e){return Ta(Eo,e)}var yo=p("ZodCUID",(e,n)=>{zl.init(e,n),ee.init(e,n)});function c3(e){return Oa(yo,e)}var bo=p("ZodCUID2",(e,n)=>{Ul.init(e,n),ee.init(e,n)});function l3(e){return za(bo,e)}var ko=p("ZodULID",(e,n)=>{Pl.init(e,n),ee.init(e,n)});function d3(e){return Ua(ko,e)}var Do=p("ZodXID",(e,n)=>{Rl.init(e,n),ee.init(e,n)});function f3(e){return Pa(Do,e)}var So=p("ZodKSUID",(e,n)=>{jl.init(e,n),ee.init(e,n)});function m3(e){return Ra(So,e)}var Bo=p("ZodIPv4",(e,n)=>{Ml.init(e,n),ee.init(e,n)});function v3(e){return ja(Bo,e)}var Ao=p("ZodIPv6",(e,n)=>{Gl.init(e,n),ee.init(e,n)});function p3(e){return La(Ao,e)}var wo=p("ZodCIDRv4",(e,n)=>{Jl.init(e,n),ee.init(e,n)});function h3(e){return Za(wo,e)}var _o=p("ZodCIDRv6",(e,n)=>{Hl.init(e,n),ee.init(e,n)});function g3(e){return Va(_o,e)}var Co=p("ZodBase64",(e,n)=>{Ql.init(e,n),ee.init(e,n)});function E3(e){return qa(Co,e)}var $o=p("ZodBase64URL",(e,n)=>{Wl.init(e,n),ee.init(e,n)});function y3(e){return Ma($o,e)}var Io=p("ZodE164",(e,n)=>{Yl.init(e,n),ee.init(e,n)});function b3(e){return Ga(Io,e)}var xo=p("ZodJWT",(e,n)=>{ed.init(e,n),ee.init(e,n)});function k3(e){return Ja(xo,e)}var Qf=p("ZodCustomStringFormat",(e,n)=>{nd.init(e,n),ee.init(e,n)});function D3(e,n,t={}){return Of(Qf,e,n,t)}var ur=p("ZodNumber",(e,n)=>{ha.init(e,n),V.init(e,n),e.gt=(r,i)=>e.check(On(r,i)),e.gte=(r,i)=>e.check(Ie(r,i)),e.min=(r,i)=>e.check(Ie(r,i)),e.lt=(r,i)=>e.check(Tn(r,i)),e.lte=(r,i)=>e.check(qe(r,i)),e.max=(r,i)=>e.check(qe(r,i)),e.int=r=>e.check(Fo(r)),e.safe=r=>e.check(Fo(r)),e.positive=r=>e.check(On(0,r)),e.nonnegative=r=>e.check(Ie(0,r)),e.negative=r=>e.check(Tn(0,r)),e.nonpositive=r=>e.check(qe(0,r)),e.multipleOf=(r,i)=>e.check(Yt(r,i)),e.step=(r,i)=>e.check(Yt(r,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 Kf(e){return tf(ur,e)}var ut=p("ZodNumberFormat",(e,n)=>{td.init(e,n),ur.init(e,n)});function Fo(e){return uf(ut,e)}function S3(e){return af(ut,e)}function B3(e){return of(ut,e)}function A3(e){return sf(ut,e)}function w3(e){return cf(ut,e)}var ar=p("ZodBoolean",(e,n)=>{ga.init(e,n),V.init(e,n)});function Wf(e){return lf(ar,e)}var or=p("ZodBigInt",(e,n)=>{Ea.init(e,n),V.init(e,n),e.gte=(r,i)=>e.check(Ie(r,i)),e.min=(r,i)=>e.check(Ie(r,i)),e.gt=(r,i)=>e.check(On(r,i)),e.gte=(r,i)=>e.check(Ie(r,i)),e.min=(r,i)=>e.check(Ie(r,i)),e.lt=(r,i)=>e.check(Tn(r,i)),e.lte=(r,i)=>e.check(qe(r,i)),e.max=(r,i)=>e.check(qe(r,i)),e.positive=r=>e.check(On(BigInt(0),r)),e.negative=r=>e.check(Tn(BigInt(0),r)),e.nonpositive=r=>e.check(qe(BigInt(0),r)),e.nonnegative=r=>e.check(Ie(BigInt(0),r)),e.multipleOf=(r,i)=>e.check(Yt(r,i));const t=e._zod.bag;e.minValue=t.minimum??null,e.maxValue=t.maximum??null,e.format=t.format??null});function _3(e){return ff(or,e)}var No=p("ZodBigIntFormat",(e,n)=>{id.init(e,n),or.init(e,n)});function C3(e){return vf(No,e)}function $3(e){return pf(No,e)}var Yf=p("ZodSymbol",(e,n)=>{rd.init(e,n),V.init(e,n)});function I3(e){return hf(Yf,e)}var Xf=p("ZodUndefined",(e,n)=>{ud.init(e,n),V.init(e,n)});function x3(e){return gf(Xf,e)}var em=p("ZodNull",(e,n)=>{ad.init(e,n),V.init(e,n)});function nm(e){return Ef(em,e)}var tm=p("ZodAny",(e,n)=>{od.init(e,n),V.init(e,n)});function F3(){return yf(tm)}var im=p("ZodUnknown",(e,n)=>{Hi.init(e,n),V.init(e,n)});function sr(){return Xi(im)}var rm=p("ZodNever",(e,n)=>{sd.init(e,n),V.init(e,n)});function cr(e){return bf(rm,e)}var um=p("ZodVoid",(e,n)=>{cd.init(e,n),V.init(e,n)});function N3(e){return kf(um,e)}var To=p("ZodDate",(e,n)=>{ld.init(e,n),V.init(e,n),e.min=(r,i)=>e.check(Ie(r,i)),e.max=(r,i)=>e.check(qe(r,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 T3(e){return Df(To,e)}var am=p("ZodArray",(e,n)=>{ya.init(e,n),V.init(e,n),e.element=n.element,e.min=(t,r)=>e.check(rt(t,r)),e.nonempty=t=>e.check(rt(1,t)),e.max=(t,r)=>e.check(nr(t,r)),e.length=(t,r)=>e.check(tr(t,r)),e.unwrap=()=>e.element});function Oo(e,n){return ao(am,e,n)}function O3(e){const n=e._zod.def.shape;return hm(Object.keys(n))}var lr=p("ZodObject",(e,n)=>{md.init(e,n),V.init(e,n),G.defineLazy(e,"shape",()=>n.shape),e.keyof=()=>vm(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:sr()}),e.loose=()=>e.clone({...e._zod.def,catchall:sr()}),e.strict=()=>e.clone({...e._zod.def,catchall:cr()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>G.extend(e,t),e.merge=t=>G.merge(e,t),e.pick=t=>G.pick(e,t),e.omit=t=>G.omit(e,t),e.partial=(...t)=>G.partial(jo,e,t[0]),e.required=(...t)=>G.required(Lo,e,t[0])});function z3(e,n){const t={type:"object",get shape(){return G.assignProp(this,"shape",{...e}),this.shape},...G.normalizeParams(n)};return new lr(t)}function U3(e,n){return new lr({type:"object",get shape(){return G.assignProp(this,"shape",{...e}),this.shape},catchall:cr(),...G.normalizeParams(n)})}function P3(e,n){return new lr({type:"object",get shape(){return G.assignProp(this,"shape",{...e}),this.shape},catchall:sr(),...G.normalizeParams(n)})}var zo=p("ZodUnion",(e,n)=>{ba.init(e,n),V.init(e,n),e.options=n.options});function dr(e,n){return new zo({type:"union",options:e,...G.normalizeParams(n)})}var om=p("ZodDiscriminatedUnion",(e,n)=>{zo.init(e,n),pd.init(e,n)});function R3(e,n,t){return new om({type:"union",options:n,discriminator:e,...G.normalizeParams(t)})}var sm=p("ZodIntersection",(e,n)=>{hd.init(e,n),V.init(e,n)});function cm(e,n){return new sm({type:"intersection",left:e,right:n})}var lm=p("ZodTuple",(e,n)=>{Ki.init(e,n),V.init(e,n),e.rest=t=>e.clone({...e._zod.def,rest:t})});function j3(e,n,t){const r=n instanceof P,i=r?t:n,u=r?n:null;return new lm({type:"tuple",items:e,rest:u,...G.normalizeParams(i)})}var Uo=p("ZodRecord",(e,n)=>{Ed.init(e,n),V.init(e,n),e.keyType=n.keyType,e.valueType=n.valueType});function dm(e,n,t){return new Uo({type:"record",keyType:e,valueType:n,...G.normalizeParams(t)})}function L3(e,n,t){return new Uo({type:"record",keyType:dr([e,cr()]),valueType:n,...G.normalizeParams(t)})}var fm=p("ZodMap",(e,n)=>{yd.init(e,n),V.init(e,n),e.keyType=n.keyType,e.valueType=n.valueType});function Z3(e,n,t){return new fm({type:"map",keyType:e,valueType:n,...G.normalizeParams(t)})}var mm=p("ZodSet",(e,n)=>{kd.init(e,n),V.init(e,n),e.min=(...t)=>e.check(Xt(...t)),e.nonempty=t=>e.check(Xt(1,t)),e.max=(...t)=>e.check(er(...t)),e.size=(...t)=>e.check(Ha(...t))});function V3(e,n){return new mm({type:"set",valueType:e,...G.normalizeParams(n)})}var ni=p("ZodEnum",(e,n)=>{Sd.init(e,n),V.init(e,n),e.enum=n.entries,e.options=Object.values(n.entries);const t=new Set(Object.keys(n.entries));e.extract=(r,i)=>{const u={};for(const a of r)if(t.has(a))u[a]=n.entries[a];else throw new Error(`Key ${a} not found in enum`);return new ni({...n,checks:[],...G.normalizeParams(i),entries:u})},e.exclude=(r,i)=>{const u={...n.entries};for(const a of r)if(t.has(a))delete u[a];else throw new Error(`Key ${a} not found in enum`);return new ni({...n,checks:[],...G.normalizeParams(i),entries:u})}});function vm(e,n){const t=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new ni({type:"enum",entries:t,...G.normalizeParams(n)})}function q3(e,n){return new ni({type:"enum",entries:e,...G.normalizeParams(n)})}var pm=p("ZodLiteral",(e,n)=>{Bd.init(e,n),V.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 hm(e,n){return new pm({type:"literal",values:Array.isArray(e)?e:[e],...G.normalizeParams(n)})}var gm=p("ZodFile",(e,n)=>{Ad.init(e,n),V.init(e,n),e.min=(t,r)=>e.check(Xt(t,r)),e.max=(t,r)=>e.check(er(t,r)),e.mime=(t,r)=>e.check(no(Array.isArray(t)?t:[t],r))});function M3(e){return xf(gm,e)}var Po=p("ZodTransform",(e,n)=>{Da.init(e,n),V.init(e,n),e._zod.parse=(t,r)=>{t.addIssue=u=>{if(typeof u=="string")t.issues.push(G.issue(u,t.value,n));else{const a=u;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(G.issue(a))}};const i=n.transform(t.value,t);return i instanceof Promise?i.then(u=>(t.value=u,t)):(t.value=i,t)}});function Ro(e){return new Po({type:"transform",transform:e})}var jo=p("ZodOptional",(e,n)=>{wd.init(e,n),V.init(e,n),e.unwrap=()=>e._zod.def.innerType});function fr(e){return new jo({type:"optional",innerType:e})}var Em=p("ZodNullable",(e,n)=>{_d.init(e,n),V.init(e,n),e.unwrap=()=>e._zod.def.innerType});function mr(e){return new Em({type:"nullable",innerType:e})}function G3(e){return fr(mr(e))}var ym=p("ZodDefault",(e,n)=>{Cd.init(e,n),V.init(e,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function bm(e,n){return new ym({type:"default",innerType:e,get defaultValue(){return typeof n=="function"?n():n}})}var km=p("ZodPrefault",(e,n)=>{Id.init(e,n),V.init(e,n),e.unwrap=()=>e._zod.def.innerType});function Dm(e,n){return new km({type:"prefault",innerType:e,get defaultValue(){return typeof n=="function"?n():n}})}var Lo=p("ZodNonOptional",(e,n)=>{xd.init(e,n),V.init(e,n),e.unwrap=()=>e._zod.def.innerType});function Sm(e,n){return new Lo({type:"nonoptional",innerType:e,...G.normalizeParams(n)})}var Bm=p("ZodSuccess",(e,n)=>{Nd.init(e,n),V.init(e,n),e.unwrap=()=>e._zod.def.innerType});function J3(e){return new Bm({type:"success",innerType:e})}var Am=p("ZodCatch",(e,n)=>{Td.init(e,n),V.init(e,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function wm(e,n){return new Am({type:"catch",innerType:e,catchValue:typeof n=="function"?n:()=>n})}var _m=p("ZodNaN",(e,n)=>{Od.init(e,n),V.init(e,n)});function H3(e){return Bf(_m,e)}var Zo=p("ZodPipe",(e,n)=>{Sa.init(e,n),V.init(e,n),e.in=n.in,e.out=n.out});function vr(e,n){return new Zo({type:"pipe",in:e,out:n})}var Cm=p("ZodReadonly",(e,n)=>{Ud.init(e,n),V.init(e,n)});function $m(e){return new Cm({type:"readonly",innerType:e})}var Im=p("ZodTemplateLiteral",(e,n)=>{Rd.init(e,n),V.init(e,n)});function Q3(e,n){return new Im({type:"template_literal",parts:e,...G.normalizeParams(n)})}var xm=p("ZodLazy",(e,n)=>{Ld.init(e,n),V.init(e,n),e.unwrap=()=>e._zod.def.getter()});function Fm(e){return new xm({type:"lazy",getter:e})}var Nm=p("ZodPromise",(e,n)=>{jd.init(e,n),V.init(e,n),e.unwrap=()=>e._zod.def.innerType});function K3(e){return new Nm({type:"promise",innerType:e})}var pr=p("ZodCustom",(e,n)=>{Zd.init(e,n),V.init(e,n)});function Tm(e){const n=new re({check:"custom"});return n._zod.check=e,n}function W3(e,n){return Ff(pr,e??(()=>!0),n)}function Om(e,n={}){return Nf(pr,e,n)}function zm(e){const n=Tm(t=>(t.addIssue=r=>{if(typeof r=="string")t.issues.push(G.issue(r,t.value,n._zod.def));else{const i=r;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(G.issue(i))}},e(t.value,t)));return n}function Y3(e,n={error:`Input not instance of ${e.name}`}){const t=new pr({type:"custom",check:"custom",fn:r=>r instanceof e,abort:!0,...G.normalizeParams(n)});return t._zod.bag.Class=e,t}var X3=(...e)=>Tf({Pipe:Zo,Boolean:ar,String:ir,Transform:Po},...e);function eE(e){const n=Fm(()=>dr([vo(e),Kf(),Wf(),nm(),Oo(n),dm(vo(),n)]));return n}function nE(e,n){return vr(Ro(e),n)}var tE={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 iE(e){De({customError:e})}function rE(){return De().customError}var Vo;Vo||(Vo={});var Um={};An(Um,{bigint:()=>sE,boolean:()=>oE,date:()=>cE,number:()=>aE,string:()=>uE});function uE(e){return Kd(ir,e)}function aE(e){return rf(ur,e)}function oE(e){return df(ar,e)}function sE(e){return mf(or,e)}function cE(e){return Sf(To,e)}De(Md());var hr={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}};hr.loc.source={body:`mutation CreateDebitCard($createDebitCardInput: DebitCardInput!) {
202
202
  createDebitCard(createDebitCardInput: $createDebitCardInput) {
203
203
  id
204
204
  type
@@ -216,7 +216,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
216
216
  externalId
217
217
  }
218
218
  }
219
- `,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(r){gr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){gr(r,n)}),e.definitions&&e.definitions.forEach(function(r){gr(r,n)})}var qo={};(function(){hr.definitions.forEach(function(n){if(n.name){var t=new Set;gr(n,t),qo[n.name.value]=t}})})();function Pm(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function cE(e,n){var t={kind:e.kind,definitions:[Pm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=qo[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=qo[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Pm(e,o);s&&t.definitions.push(s)}),t}cE(hr,"CreateDebitCard");var Er={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}};Er.loc.source={body:`mutation RenameDebitCard($accountId: String!, $name: String!) {
219
+ `,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(r){gr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){gr(r,n)}),e.definitions&&e.definitions.forEach(function(r){gr(r,n)})}var qo={};(function(){hr.definitions.forEach(function(n){if(n.name){var t=new Set;gr(n,t),qo[n.name.value]=t}})})();function Pm(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function lE(e,n){var t={kind:e.kind,definitions:[Pm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=qo[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=qo[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Pm(e,o);s&&t.definitions.push(s)}),t}lE(hr,"CreateDebitCard");var Er={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}};Er.loc.source={body:`mutation RenameDebitCard($accountId: String!, $name: String!) {
220
220
  renamePayableAccount(accountId: $accountId, name: $name) {
221
221
  ... on DebitCard {
222
222
  id
@@ -236,7 +236,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
236
236
  }
237
237
  }
238
238
  }
239
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};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(r){yr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){yr(r,n)}),e.definitions&&e.definitions.forEach(function(r){yr(r,n)})}var Mo={};(function(){Er.definitions.forEach(function(n){if(n.name){var t=new Set;yr(n,t),Mo[n.name.value]=t}})})();function Rm(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function lE(e,n){var t={kind:e.kind,definitions:[Rm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Mo[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Mo[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Rm(e,o);s&&t.definitions.push(s)}),t}lE(Er,"RenameDebitCard");var br={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}};br.loc.source={body:`fragment DebitCardFragment on DebitCard {
239
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};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(r){yr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){yr(r,n)}),e.definitions&&e.definitions.forEach(function(r){yr(r,n)})}var Mo={};(function(){Er.definitions.forEach(function(n){if(n.name){var t=new Set;yr(n,t),Mo[n.name.value]=t}})})();function Rm(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function dE(e,n){var t={kind:e.kind,definitions:[Rm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Mo[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Mo[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Rm(e,o);s&&t.definitions.push(s)}),t}dE(Er,"RenameDebitCard");var br={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}};br.loc.source={body:`fragment DebitCardFragment on DebitCard {
240
240
  id
241
241
  type
242
242
  name
@@ -252,35 +252,35 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
252
252
  paymentCount
253
253
  externalId
254
254
  }
255
- `,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(r){kr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){kr(r,n)}),e.definitions&&e.definitions.forEach(function(r){kr(r,n)})}var Go={};(function(){br.definitions.forEach(function(n){if(n.name){var t=new Set;kr(n,t),Go[n.name.value]=t}})})();function jm(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function dE(e,n){var t={kind:e.kind,definitions:[jm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Go[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Go[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=jm(e,o);s&&t.definitions.push(s)}),t}dE(br,"DebitCardFragment");var at={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}};at.loc.source={body:`#import "./debitCardFragment.graphql"
255
+ `,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(r){kr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){kr(r,n)}),e.definitions&&e.definitions.forEach(function(r){kr(r,n)})}var Go={};(function(){br.definitions.forEach(function(n){if(n.name){var t=new Set;kr(n,t),Go[n.name.value]=t}})})();function jm(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function fE(e,n){var t={kind:e.kind,definitions:[jm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Go[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Go[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=jm(e,o);s&&t.definitions.push(s)}),t}fE(br,"DebitCardFragment");var at={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}};at.loc.source={body:`#import "./debitCardFragment.graphql"
256
256
 
257
257
  query UserDebitCards {
258
258
  debitCards {
259
259
  ...DebitCardFragment
260
260
  }
261
261
  }
262
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};var Lm={};function fE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Lm[t]?!1:(Lm[t]=!0,!0)})}at.definitions=at.definitions.concat(fE(br.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(r){Dr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Dr(r,n)}),e.definitions&&e.definitions.forEach(function(r){Dr(r,n)})}var Jo={};(function(){at.definitions.forEach(function(n){if(n.name){var t=new Set;Dr(n,t),Jo[n.name.value]=t}})})();function Zm(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function mE(e,n){var t={kind:e.kind,definitions:[Zm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Jo[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Jo[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Zm(e,o);s&&t.definitions.push(s)}),t}mE(at,"UserDebitCards");const vE=/^4[0-9]{12}(?:[0-9]{3})?$/,pE=/^5[1-5][0-9]{14}$/,hE=Xn.object({name:Xn.string().min(1,"Name is required").nullable().optional(),cardNumber:Xn.string().min(1,"Card number is required").transform(e=>e.replace(/[^\d]/g,"")).refine(e=>(vE.test(e)||pE.test(e))&&e.length===16,"Card must be a valid 16-digit Visa or Mastercard number"),expirationDate:Xn.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 gE{client;constructor(n){this.client=n}async list(){return(await this.client.query({query:at}))?.debitCards??[]}async rename(n,t){return(await this.client.query({query:Er,variables:{accountId:n,name:t}}))?.renamePayableAccount??null}async delete(n){return(await this.client.query({query:In,variables:{accountId:n}}))?.deletePayableAccount??null}async create(n){try{const t=hE.parse(n);return(await this.client.query({query:hr,variables:{createDebitCardInput:{...n,cardNumber:t.cardNumber}}}))?.createDebitCard??null}catch(t){throw t instanceof Xn.ZodError?new Error(t.issues[0]?.message??"Input validation failure"):t}}}function EE(e,n){if(!e.usesIntegratorAuth)return;const t=n.clientIp;if(typeof t!="string"||t.length===0)throw new Error("clientIp is required to create a deposit with integrator HMAC credentials: pass the public address your edge observed for the authorizing client")}function Vm(e){const n=e?.idempotencyKey;if(typeof n!="string"||n.length===0)throw new Error("idempotencyKey is required to create a deposit");return{"idempotency-key":n}}class yE{client;constructor(n){this.client=n}async prepare(n){return this.client.restApi(M("/v1/deposits/direct/prepare","post",{body:n}))}async create(n,t){return EE(this.client,n),this.client.restApi(M("/v1/deposits/direct","post",{body:n,headers:Vm(t)}))}async list(n){return this.client.restApi(M("/v1/deposits/","get",n?{query:n}:void 0))}async get(n){return this.client.restApi(M("/v1/deposits/{depositId}","get",{params:{depositId:n}}))}}class bE{client;constructor(n){this.client=n}async list(){return this.client.restApi(M("/v1/funding-sources/","get"))}async get(n){return this.client.restApi(M("/v1/funding-sources/{fundingSourceId}","get",{params:{fundingSourceId:n}}))}async getDepositLimits(n){return this.client.restApi(M("/v1/funding-sources/{fundingSourceId}/deposit-limits","get",{params:{fundingSourceId:n}}))}}var ti={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}};ti.loc.source={body:`fragment PayableAccountInstitutionFragment on PayableAccountInstitution {
262
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};var Lm={};function mE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Lm[t]?!1:(Lm[t]=!0,!0)})}at.definitions=at.definitions.concat(mE(br.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(r){Dr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Dr(r,n)}),e.definitions&&e.definitions.forEach(function(r){Dr(r,n)})}var Jo={};(function(){at.definitions.forEach(function(n){if(n.name){var t=new Set;Dr(n,t),Jo[n.name.value]=t}})})();function Zm(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function vE(e,n){var t={kind:e.kind,definitions:[Zm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Jo[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Jo[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Zm(e,o);s&&t.definitions.push(s)}),t}vE(at,"UserDebitCards");const pE=/^4[0-9]{12}(?:[0-9]{3})?$/,hE=/^5[1-5][0-9]{14}$/,gE=Xn.object({name:Xn.string().min(1,"Name is required").nullable().optional(),cardNumber:Xn.string().min(1,"Card number is required").transform(e=>e.replace(/[^\d]/g,"")).refine(e=>(pE.test(e)||hE.test(e))&&e.length===16,"Card must be a valid 16-digit Visa or Mastercard number"),expirationDate:Xn.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 EE{client;constructor(n){this.client=n}async list(){return(await this.client.query({query:at}))?.debitCards??[]}async rename(n,t){return(await this.client.query({query:Er,variables:{accountId:n,name:t}}))?.renamePayableAccount??null}async delete(n){return(await this.client.query({query:In,variables:{accountId:n}}))?.deletePayableAccount??null}async create(n){try{const t=gE.parse(n);return(await this.client.query({query:hr,variables:{createDebitCardInput:{...n,cardNumber:t.cardNumber}}}))?.createDebitCard??null}catch(t){throw t instanceof Xn.ZodError?new Error(t.issues[0]?.message??"Input validation failure"):t}}}function yE(e,n){if(!e.usesIntegratorAuth)return;const t=n.clientIp;if(typeof t!="string"||t.length===0)throw new Error("clientIp is required to create a deposit with integrator HMAC credentials: pass the public address your edge observed for the authorizing client")}function Vm(e){const n=e?.idempotencyKey;if(typeof n!="string"||n.length===0)throw new Error("idempotencyKey is required to create a deposit");return{"idempotency-key":n}}class bE{client;constructor(n){this.client=n}async prepare(n){return this.client.restApi(z("/v1/deposits/direct/prepare","post",{body:n}))}async create(n,t){return yE(this.client,n),this.client.restApi(z("/v1/deposits/direct","post",{body:n,headers:Vm(t)}))}async list(n){return this.client.restApi(z("/v1/deposits/","get",n?{query:n}:void 0))}async get(n){return this.client.restApi(z("/v1/deposits/{depositId}","get",{params:{depositId:n}}))}}class kE{client;constructor(n){this.client=n}async list(){return this.client.restApi(z("/v1/funding-sources/","get"))}async get(n){return this.client.restApi(z("/v1/funding-sources/{fundingSourceId}","get",{params:{fundingSourceId:n}}))}async getDepositLimits(n){return this.client.restApi(z("/v1/funding-sources/{fundingSourceId}/deposit-limits","get",{params:{fundingSourceId:n}}))}}var ti={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}};ti.loc.source={body:`fragment PayableAccountInstitutionFragment on PayableAccountInstitution {
263
263
  id
264
264
  country
265
265
  currency
266
266
  name
267
267
  logo
268
268
  }
269
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};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(r){Sr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Sr(r,n)}),e.definitions&&e.definitions.forEach(function(r){Sr(r,n)})}var Ho={};(function(){ti.definitions.forEach(function(n){if(n.name){var t=new Set;Sr(n,t),Ho[n.name.value]=t}})})();function qm(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function kE(e,n){var t={kind:e.kind,definitions:[qm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Ho[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Ho[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=qm(e,o);s&&t.definitions.push(s)}),t}kE(ti,"PayableAccountInstitutionFragment");var ot={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}};ot.loc.source={body:`#import "./payableAccountInstitutionFragment.graphql"
269
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};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(r){Sr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Sr(r,n)}),e.definitions&&e.definitions.forEach(function(r){Sr(r,n)})}var Ho={};(function(){ti.definitions.forEach(function(n){if(n.name){var t=new Set;Sr(n,t),Ho[n.name.value]=t}})})();function qm(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function DE(e,n){var t={kind:e.kind,definitions:[qm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Ho[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Ho[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=qm(e,o);s&&t.definitions.push(s)}),t}DE(ti,"PayableAccountInstitutionFragment");var ot={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}};ot.loc.source={body:`#import "./payableAccountInstitutionFragment.graphql"
270
270
 
271
271
  query PopularBillInstitutions($billType: BillType) {
272
272
  popularUSBillInstitutions(billType: $billType) {
273
273
  ...PayableAccountInstitutionFragment
274
274
  }
275
275
  }
276
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};var Mm={};function DE(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)})}ot.definitions=ot.definitions.concat(DE(ti.definitions));function Br(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(r){Br(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Br(r,n)}),e.definitions&&e.definitions.forEach(function(r){Br(r,n)})}var Ko={};(function(){ot.definitions.forEach(function(n){if(n.name){var t=new Set;Br(n,t),Ko[n.name.value]=t}})})();function Gm(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function SE(e,n){var t={kind:e.kind,definitions:[Gm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Ko[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Ko[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Gm(e,o);s&&t.definitions.push(s)}),t}SE(ot,"PopularBillInstitutions");var st={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}};st.loc.source={body:`#import "./payableAccountInstitutionFragment.graphql"
276
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};var Mm={};function SE(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)})}ot.definitions=ot.definitions.concat(SE(ti.definitions));function Br(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(r){Br(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Br(r,n)}),e.definitions&&e.definitions.forEach(function(r){Br(r,n)})}var Qo={};(function(){ot.definitions.forEach(function(n){if(n.name){var t=new Set;Br(n,t),Qo[n.name.value]=t}})})();function Gm(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function BE(e,n){var t={kind:e.kind,definitions:[Gm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Qo[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Qo[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Gm(e,o);s&&t.definitions.push(s)}),t}BE(ot,"PopularBillInstitutions");var st={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}};st.loc.source={body:`#import "./payableAccountInstitutionFragment.graphql"
277
277
 
278
278
  query SearchUSBillInstitutions($searchTerm: String!, $billType: BillType) {
279
279
  searchUSBillInstitutions(searchTerm: $searchTerm, billType: $billType) {
280
280
  ...PayableAccountInstitutionFragment
281
281
  }
282
282
  }
283
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};var Jm={};function BE(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)})}st.definitions=st.definitions.concat(BE(ti.definitions));function Ar(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(r){Ar(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Ar(r,n)}),e.definitions&&e.definitions.forEach(function(r){Ar(r,n)})}var Qo={};(function(){st.definitions.forEach(function(n){if(n.name){var t=new Set;Ar(n,t),Qo[n.name.value]=t}})})();function Hm(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function AE(e,n){var t={kind:e.kind,definitions:[Hm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Qo[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Qo[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Hm(e,o);s&&t.definitions.push(s)}),t}AE(st,"SearchUSBillInstitutions");class wE{client;constructor(n){this.client=n}async popularUSBillInstitutions(n){return(await this.client.query({query:ot,variables:{billType:n??null}}))?.popularUSBillInstitutions??[]}async searchUSBillInstitutions(n,t){return(await this.client.query({query:st,variables:{searchTerm:n,billType:t??null}}))?.searchUSBillInstitutions??[]}}class _E{client;constructor(n){this.client=n}async bypassKyc(n){return this.client.restApi(M("/v1/sandbox/bypass-kyc","post",{body:n??{country:"US"}}))}async createDepositWithReturn(n,t){return this.client.restApi(M("/v1/sandbox/deposits/direct","post",{body:n,headers:Vm(t)}))}async prepareDepositWithProgramControl(n){return this.client.restApi(M("/v1/sandbox/deposits/direct/prepare","post",{body:n}))}async getAchDebitExposure(){return this.client.restApi(M("/v1/sandbox/ach-debit/exposure","get",{}))}async setAchDebitExposureCap(n){return this.client.restApi(M("/v1/sandbox/ach-debit/exposure/cap","post",{body:n}))}async linkBankAccount(n){return this.client.restApi(M("/v1/sandbox/bank-accounts/link","post",{body:n}))}async deleteFundingSource(n){return this.client.restApi(M("/v1/sandbox/funding-sources/{fundingSourceId}","delete",{params:{fundingSourceId:n}}))}}class CE{client;constructor(n){this.client=n}async refund(n,t){return this.client.restApi(M("/v1/off-ramps/{offRampId}/refund","post",{params:{offRampId:n},body:t}))}}var wr={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}};wr.loc.source={body:`fragment OnrampPaymentFragment on OnRampPayment {
283
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};var Jm={};function AE(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)})}st.definitions=st.definitions.concat(AE(ti.definitions));function Ar(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(r){Ar(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Ar(r,n)}),e.definitions&&e.definitions.forEach(function(r){Ar(r,n)})}var Ko={};(function(){st.definitions.forEach(function(n){if(n.name){var t=new Set;Ar(n,t),Ko[n.name.value]=t}})})();function Hm(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function wE(e,n){var t={kind:e.kind,definitions:[Hm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Ko[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Ko[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Hm(e,o);s&&t.definitions.push(s)}),t}wE(st,"SearchUSBillInstitutions");class _E{client;constructor(n){this.client=n}async popularUSBillInstitutions(n){return(await this.client.query({query:ot,variables:{billType:n??null}}))?.popularUSBillInstitutions??[]}async searchUSBillInstitutions(n,t){return(await this.client.query({query:st,variables:{searchTerm:n,billType:t??null}}))?.searchUSBillInstitutions??[]}}class CE{client;constructor(n){this.client=n}async bypassKyc(n){return this.client.restApi(z("/v1/sandbox/bypass-kyc","post",{body:n??{country:"US"}}))}async createDepositWithReturn(n,t){return this.client.restApi(z("/v1/sandbox/deposits/direct","post",{body:n,headers:Vm(t)}))}async prepareDepositWithProgramControl(n){return this.client.restApi(z("/v1/sandbox/deposits/direct/prepare","post",{body:n}))}async getAchDebitExposure(){return this.client.restApi(z("/v1/sandbox/ach-debit/exposure","get",{}))}async setAchDebitExposureCap(n){return this.client.restApi(z("/v1/sandbox/ach-debit/exposure/cap","post",{body:n}))}async linkBankAccount(n){return this.client.restApi(z("/v1/sandbox/bank-accounts/link","post",{body:n}))}async deleteFundingSource(n){return this.client.restApi(z("/v1/sandbox/funding-sources/{fundingSourceId}","delete",{params:{fundingSourceId:n}}))}async simulateAutoRampDeposit(n,t){return this.client.restApi(z("/v1/sandbox/auto-ramp-accounts/{id}/deposit","post",{params:{id:n},body:t}))}}class $E{client;constructor(n){this.client=n}async refund(n,t){return this.client.restApi(z("/v1/off-ramps/{offRampId}/refund","post",{params:{offRampId:n},body:t}))}}class IE{client;constructor(n){this.client=n}async create(n){return this.client.restApi(z("/v1/off-ramp-quotes/","post",{body:n}))}async get(n){return this.client.restApi(z("/v1/off-ramp-quotes/{quoteId}","get",{params:{quoteId:n}}))}async getTransaction(n,t={}){return this.client.restApi(z("/v1/off-ramp-quotes/{quoteId}/transaction","post",{params:{quoteId:n},body:t}))}async submit(n,t){return this.client.restApi(z("/v1/off-ramp-quotes/{quoteId}/submit","post",{params:{quoteId:n},body:t}))}}var wr={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}};wr.loc.source={body:`fragment OnrampPaymentFragment on OnRampPayment {
284
284
  id
285
285
  amount
286
286
  feeAmount
@@ -301,14 +301,14 @@ query SearchUSBillInstitutions($searchTerm: String!, $billType: BillType) {
301
301
  status
302
302
  createdAt
303
303
  }
304
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};function _r(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(r){_r(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){_r(r,n)}),e.definitions&&e.definitions.forEach(function(r){_r(r,n)})}var Wo={};(function(){wr.definitions.forEach(function(n){if(n.name){var t=new Set;_r(n,t),Wo[n.name.value]=t}})})();function Km(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function $E(e,n){var t={kind:e.kind,definitions:[Km(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Wo[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Wo[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Km(e,o);s&&t.definitions.push(s)}),t}$E(wr,"OnrampPaymentFragment");var ct={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}};ct.loc.source={body:`#import "../queries/onrampPaymentFragment.graphql"
304
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};function _r(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(r){_r(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){_r(r,n)}),e.definitions&&e.definitions.forEach(function(r){_r(r,n)})}var Wo={};(function(){wr.definitions.forEach(function(n){if(n.name){var t=new Set;_r(n,t),Wo[n.name.value]=t}})})();function Qm(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function xE(e,n){var t={kind:e.kind,definitions:[Qm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Wo[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Wo[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Qm(e,o);s&&t.definitions.push(s)}),t}xE(wr,"OnrampPaymentFragment");var ct={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}};ct.loc.source={body:`#import "../queries/onrampPaymentFragment.graphql"
305
305
 
306
306
  mutation CreateOnrampPayment($createOnrampPaymentInput: CreateOnrampPaymentInput!) {
307
307
  createOnrampPayment(createOnrampPaymentInput: $createOnrampPaymentInput) {
308
308
  ...OnrampPaymentFragment
309
309
  }
310
310
  }
311
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};var Qm={};function IE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Qm[t]?!1:(Qm[t]=!0,!0)})}ct.definitions=ct.definitions.concat(IE(wr.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(r){Cr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Cr(r,n)}),e.definitions&&e.definitions.forEach(function(r){Cr(r,n)})}var Yo={};(function(){ct.definitions.forEach(function(n){if(n.name){var t=new Set;Cr(n,t),Yo[n.name.value]=t}})})();function Wm(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function xE(e,n){var t={kind:e.kind,definitions:[Wm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Yo[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Yo[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Wm(e,o);s&&t.definitions.push(s)}),t}xE(ct,"CreateOnrampPayment");class FE{client;constructor(n){this.client=n}async create(n){return(await this.client.query({query:ct,variables:{createOnrampPaymentInput:n}}))?.createOnrampPayment}async list(n){return this.client.restApi(M("/v1/on-ramps/","get",n?{query:n}:void 0))}async get(n){return this.client.restApi(M("/v1/on-ramps/{onRampId}","get",{params:{onRampId:n}}))}}var $r={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}};$r.loc.source={body:`fragment FullBridgeUser on BridgeUser {
311
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};var Km={};function FE(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)})}ct.definitions=ct.definitions.concat(FE(wr.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(r){Cr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Cr(r,n)}),e.definitions&&e.definitions.forEach(function(r){Cr(r,n)})}var Yo={};(function(){ct.definitions.forEach(function(n){if(n.name){var t=new Set;Cr(n,t),Yo[n.name.value]=t}})})();function Wm(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function NE(e,n){var t={kind:e.kind,definitions:[Wm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Yo[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Yo[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Wm(e,o);s&&t.definitions.push(s)}),t}NE(ct,"CreateOnrampPayment");class TE{client;constructor(n){this.client=n}async create(n){return(await this.client.query({query:ct,variables:{createOnrampPaymentInput:n}}))?.createOnrampPayment}async list(n){return this.client.restApi(z("/v1/on-ramps/","get",n?{query:n}:void 0))}async get(n){return this.client.restApi(z("/v1/on-ramps/{onRampId}","get",{params:{onRampId:n}}))}}var $r={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}};$r.loc.source={body:`fragment FullBridgeUser on BridgeUser {
312
312
  id
313
313
  kycStatus
314
314
  tosLink
@@ -318,14 +318,14 @@ mutation CreateOnrampPayment($createOnrampPaymentInput: CreateOnrampPaymentInput
318
318
  error
319
319
  hasAcceptedTos
320
320
  }
321
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};function Ir(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(r){Ir(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Ir(r,n)}),e.definitions&&e.definitions.forEach(function(r){Ir(r,n)})}var Xo={};(function(){$r.definitions.forEach(function(n){if(n.name){var t=new Set;Ir(n,t),Xo[n.name.value]=t}})})();function Ym(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function NE(e,n){var t={kind:e.kind,definitions:[Ym(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Xo[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Xo[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Ym(e,o);s&&t.definitions.push(s)}),t}NE($r,"FullBridgeUser");var lt={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}};lt.loc.source={body:`#import "../queries/bridgeUserFragment.graphql"
321
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};function Ir(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(r){Ir(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Ir(r,n)}),e.definitions&&e.definitions.forEach(function(r){Ir(r,n)})}var Xo={};(function(){$r.definitions.forEach(function(n){if(n.name){var t=new Set;Ir(n,t),Xo[n.name.value]=t}})})();function Ym(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function OE(e,n){var t={kind:e.kind,definitions:[Ym(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Xo[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Xo[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Ym(e,o);s&&t.definitions.push(s)}),t}OE($r,"FullBridgeUser");var lt={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}};lt.loc.source={body:`#import "../queries/bridgeUserFragment.graphql"
322
322
 
323
323
  mutation AcceptTermsOfService($agreementId: String!) {
324
324
  setBridgeUserAgreementId(agreementId: $agreementId) {
325
325
  ...FullBridgeUser
326
326
  }
327
327
  }
328
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};var Xm={};function TE(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)})}lt.definitions=lt.definitions.concat(TE($r.definitions));function xr(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(r){xr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){xr(r,n)}),e.definitions&&e.definitions.forEach(function(r){xr(r,n)})}var es={};(function(){lt.definitions.forEach(function(n){if(n.name){var t=new Set;xr(n,t),es[n.name.value]=t}})})();function e4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function OE(e,n){var t={kind:e.kind,definitions:[e4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=es[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=es[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=e4(e,o);s&&t.definitions.push(s)}),t}OE(lt,"AcceptTermsOfService");class zE{client;constructor(n){this.client=n}async acceptTermsOfService(n){return(await this.client.query({query:lt,variables:{agreementId:n}})).setBridgeUserAgreementId}}var ii={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}};ii.loc.source={body:`fragment VirtualAccountFragment on BridgeVirtualAccount {
328
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};var Xm={};function zE(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)})}lt.definitions=lt.definitions.concat(zE($r.definitions));function xr(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(r){xr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){xr(r,n)}),e.definitions&&e.definitions.forEach(function(r){xr(r,n)})}var es={};(function(){lt.definitions.forEach(function(n){if(n.name){var t=new Set;xr(n,t),es[n.name.value]=t}})})();function e4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function UE(e,n){var t={kind:e.kind,definitions:[e4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=es[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=es[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=e4(e,o);s&&t.definitions.push(s)}),t}UE(lt,"AcceptTermsOfService");class PE{client;constructor(n){this.client=n}async acceptTermsOfService(n){return(await this.client.query({query:lt,variables:{agreementId:n}})).setBridgeUserAgreementId}}var ii={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}};ii.loc.source={body:`fragment VirtualAccountFragment on BridgeVirtualAccount {
329
329
  id
330
330
  network
331
331
  address
@@ -342,7 +342,7 @@ mutation AcceptTermsOfService($agreementId: String!) {
342
342
  paymentMethod
343
343
  }
344
344
  }
345
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};function Fr(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(r){Fr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Fr(r,n)}),e.definitions&&e.definitions.forEach(function(r){Fr(r,n)})}var ns={};(function(){ii.definitions.forEach(function(n){if(n.name){var t=new Set;Fr(n,t),ns[n.name.value]=t}})})();function n4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function UE(e,n){var t={kind:e.kind,definitions:[n4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=ns[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=ns[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=n4(e,o);s&&t.definitions.push(s)}),t}UE(ii,"VirtualAccountFragment");var dt={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}};dt.loc.source={body:`#import "../queries/virtualAccountFragment.graphql"
345
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};function Fr(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(r){Fr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Fr(r,n)}),e.definitions&&e.definitions.forEach(function(r){Fr(r,n)})}var ns={};(function(){ii.definitions.forEach(function(n){if(n.name){var t=new Set;Fr(n,t),ns[n.name.value]=t}})})();function n4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function RE(e,n){var t={kind:e.kind,definitions:[n4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=ns[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=ns[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=n4(e,o);s&&t.definitions.push(s)}),t}RE(ii,"VirtualAccountFragment");var dt={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}};dt.loc.source={body:`#import "../queries/virtualAccountFragment.graphql"
346
346
 
347
347
  mutation CreateVirtualAccount($network: String!, $address: String!, $token: String!) {
348
348
  createVirtualAccount(
@@ -351,14 +351,14 @@ mutation CreateVirtualAccount($network: String!, $address: String!, $token: Stri
351
351
  ...VirtualAccountFragment
352
352
  }
353
353
  }
354
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};var t4={};function PE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return t4[t]?!1:(t4[t]=!0,!0)})}dt.definitions=dt.definitions.concat(PE(ii.definitions));function Nr(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(r){Nr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Nr(r,n)}),e.definitions&&e.definitions.forEach(function(r){Nr(r,n)})}var ts={};(function(){dt.definitions.forEach(function(n){if(n.name){var t=new Set;Nr(n,t),ts[n.name.value]=t}})})();function i4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function RE(e,n){var t={kind:e.kind,definitions:[i4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=ts[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=ts[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=i4(e,o);s&&t.definitions.push(s)}),t}RE(dt,"CreateVirtualAccount");var ft={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}};ft.loc.source={body:`#import "./virtualAccountFragment.graphql"
354
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};var t4={};function jE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return t4[t]?!1:(t4[t]=!0,!0)})}dt.definitions=dt.definitions.concat(jE(ii.definitions));function Nr(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(r){Nr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Nr(r,n)}),e.definitions&&e.definitions.forEach(function(r){Nr(r,n)})}var ts={};(function(){dt.definitions.forEach(function(n){if(n.name){var t=new Set;Nr(n,t),ts[n.name.value]=t}})})();function i4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function LE(e,n){var t={kind:e.kind,definitions:[i4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=ts[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=ts[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=i4(e,o);s&&t.definitions.push(s)}),t}LE(dt,"CreateVirtualAccount");var ft={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}};ft.loc.source={body:`#import "./virtualAccountFragment.graphql"
355
355
 
356
356
  query VirtualAccounts {
357
357
  virtualAccounts {
358
358
  ...VirtualAccountFragment
359
359
  }
360
360
  }
361
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};var r4={};function jE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return r4[t]?!1:(r4[t]=!0,!0)})}ft.definitions=ft.definitions.concat(jE(ii.definitions));function Tr(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(r){Tr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Tr(r,n)}),e.definitions&&e.definitions.forEach(function(r){Tr(r,n)})}var is={};(function(){ft.definitions.forEach(function(n){if(n.name){var t=new Set;Tr(n,t),is[n.name.value]=t}})})();function u4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function LE(e,n){var t={kind:e.kind,definitions:[u4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=is[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=is[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=u4(e,o);s&&t.definitions.push(s)}),t}LE(ft,"VirtualAccounts");var Je=(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))(Je||{});const a4={[Je.Ethereum]:["USDC","USDT","DAI","USDP","PYUSD"],[Je.Polygon]:["USDC"],[Je.Base]:["USDC"],[Je.Arbitrum]:["USDC"],[Je.Avalanche]:["USDC"],[Je.Optimism]:["USDC"],[Je.Solana]:["USDC","PYUSD"],[Je.Tron]:["USDT"]};function ZE(e){const{network:n,token:t}=e,r=a4[n];if(!r||!r.includes(t))throw new Error(`Token "${t}" is not supported on network "${n}". Supported tokens for ${n}: ${r?.join(", ")||"none"}`)}class VE{client;constructor(n){this.client=n}async list(){return(await this.client.query({query:ft})).virtualAccounts}async create(n){return ZE(n),(await this.client.query({query:dt,variables:{network:n.network,address:n.address,token:n.token}})).createVirtualAccount}}var mt={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}};mt.loc.source={body:`fragment PaymentFragment on Payment {
361
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};var r4={};function ZE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return r4[t]?!1:(r4[t]=!0,!0)})}ft.definitions=ft.definitions.concat(ZE(ii.definitions));function Tr(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(r){Tr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Tr(r,n)}),e.definitions&&e.definitions.forEach(function(r){Tr(r,n)})}var is={};(function(){ft.definitions.forEach(function(n){if(n.name){var t=new Set;Tr(n,t),is[n.name.value]=t}})})();function u4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function VE(e,n){var t={kind:e.kind,definitions:[u4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=is[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=is[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=u4(e,o);s&&t.definitions.push(s)}),t}VE(ft,"VirtualAccounts");var Je=(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))(Je||{});const a4={[Je.Ethereum]:["USDC","USDT","DAI","USDP","PYUSD"],[Je.Polygon]:["USDC"],[Je.Base]:["USDC"],[Je.Arbitrum]:["USDC"],[Je.Avalanche]:["USDC"],[Je.Optimism]:["USDC"],[Je.Solana]:["USDC","PYUSD"],[Je.Tron]:["USDT"]};function qE(e){const{network:n,token:t}=e,r=a4[n];if(!r||!r.includes(t))throw new Error(`Token "${t}" is not supported on network "${n}". Supported tokens for ${n}: ${r?.join(", ")||"none"}`)}class ME{client;constructor(n){this.client=n}async list(){return(await this.client.query({query:ft})).virtualAccounts}async create(n){return qE(n),(await this.client.query({query:dt,variables:{network:n.network,address:n.address,token:n.token}})).createVirtualAccount}}class GE{client;constructor(n){this.client=n}async list(){return this.client.restApi(z("/v1/auto-ramp-accounts/","get"))}async get(n){return this.client.restApi(z("/v1/auto-ramp-accounts/{id}","get",{params:{id:n}}))}async create(n){return this.client.restApi(z("/v1/auto-ramp-accounts/","post",{body:n}))}async estimate(n,t){return this.client.restApi(z("/v1/auto-ramp-accounts/{id}/estimate","get",{params:{id:n},query:{amount:t}}))}}var mt={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}};mt.loc.source={body:`fragment PaymentFragment on Payment {
362
362
  id
363
363
  userId
364
364
  status
@@ -381,28 +381,28 @@ query VirtualAccounts {
381
381
  network
382
382
  }
383
383
  }
384
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};function Or(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(r){Or(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Or(r,n)}),e.definitions&&e.definitions.forEach(function(r){Or(r,n)})}var rs={};(function(){mt.definitions.forEach(function(n){if(n.name){var t=new Set;Or(n,t),rs[n.name.value]=t}})})();function o4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function qE(e,n){var t={kind:e.kind,definitions:[o4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=rs[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=rs[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=o4(e,o);s&&t.definitions.push(s)}),t}qE(mt,"PaymentFragment");var vt={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}};vt.loc.source={body:`#import "./paymentFragment.graphql"
384
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};function Or(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(r){Or(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Or(r,n)}),e.definitions&&e.definitions.forEach(function(r){Or(r,n)})}var rs={};(function(){mt.definitions.forEach(function(n){if(n.name){var t=new Set;Or(n,t),rs[n.name.value]=t}})})();function o4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function JE(e,n){var t={kind:e.kind,definitions:[o4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=rs[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=rs[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=o4(e,o);s&&t.definitions.push(s)}),t}JE(mt,"PaymentFragment");var vt={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}};vt.loc.source={body:`#import "./paymentFragment.graphql"
385
385
 
386
386
  query PaymentRequestPayment($paymentRequestId: String!) {
387
387
  paymentForPaymentRequest(paymentRequestId: $paymentRequestId) {
388
388
  ...PaymentFragment
389
389
  }
390
390
  }
391
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};var s4={};function ME(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return s4[t]?!1:(s4[t]=!0,!0)})}vt.definitions=vt.definitions.concat(ME(mt.definitions));function zr(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(r){zr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){zr(r,n)}),e.definitions&&e.definitions.forEach(function(r){zr(r,n)})}var us={};(function(){vt.definitions.forEach(function(n){if(n.name){var t=new Set;zr(n,t),us[n.name.value]=t}})})();function c4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function GE(e,n){var t={kind:e.kind,definitions:[c4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=us[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=us[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=c4(e,o);s&&t.definitions.push(s)}),t}GE(vt,"PaymentRequestPayment");var pt={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}};pt.loc.source={body:`#import "./paymentFragment.graphql"
391
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};var s4={};function HE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return s4[t]?!1:(s4[t]=!0,!0)})}vt.definitions=vt.definitions.concat(HE(mt.definitions));function zr(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(r){zr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){zr(r,n)}),e.definitions&&e.definitions.forEach(function(r){zr(r,n)})}var us={};(function(){vt.definitions.forEach(function(n){if(n.name){var t=new Set;zr(n,t),us[n.name.value]=t}})})();function c4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function QE(e,n){var t={kind:e.kind,definitions:[c4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=us[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=us[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=c4(e,o);s&&t.definitions.push(s)}),t}QE(vt,"PaymentRequestPayment");var pt={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}};pt.loc.source={body:`#import "./paymentFragment.graphql"
392
392
 
393
393
  query AccountPayments($accountId: String!) {
394
394
  paymentsForAccount(accountId: $accountId) {
395
395
  ...PaymentFragment
396
396
  }
397
397
  }
398
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};var l4={};function JE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return l4[t]?!1:(l4[t]=!0,!0)})}pt.definitions=pt.definitions.concat(JE(mt.definitions));function Ur(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(r){Ur(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Ur(r,n)}),e.definitions&&e.definitions.forEach(function(r){Ur(r,n)})}var as={};(function(){pt.definitions.forEach(function(n){if(n.name){var t=new Set;Ur(n,t),as[n.name.value]=t}})})();function d4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function HE(e,n){var t={kind:e.kind,definitions:[d4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=as[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=as[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=d4(e,o);s&&t.definitions.push(s)}),t}HE(pt,"AccountPayments");var ht={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}};ht.loc.source={body:`#import "./paymentFragment.graphql"
398
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};var l4={};function KE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return l4[t]?!1:(l4[t]=!0,!0)})}pt.definitions=pt.definitions.concat(KE(mt.definitions));function Ur(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(r){Ur(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Ur(r,n)}),e.definitions&&e.definitions.forEach(function(r){Ur(r,n)})}var as={};(function(){pt.definitions.forEach(function(n){if(n.name){var t=new Set;Ur(n,t),as[n.name.value]=t}})})();function d4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function WE(e,n){var t={kind:e.kind,definitions:[d4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=as[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=as[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=d4(e,o);s&&t.definitions.push(s)}),t}WE(pt,"AccountPayments");var ht={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}};ht.loc.source={body:`#import "./paymentFragment.graphql"
399
399
 
400
400
  query Payment($paymentId: String!) {
401
401
  payment(paymentId: $paymentId) {
402
402
  ...PaymentFragment
403
403
  }
404
404
  }
405
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};var f4={};function KE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return f4[t]?!1:(f4[t]=!0,!0)})}ht.definitions=ht.definitions.concat(KE(mt.definitions));function Pr(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(r){Pr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Pr(r,n)}),e.definitions&&e.definitions.forEach(function(r){Pr(r,n)})}var os={};(function(){ht.definitions.forEach(function(n){if(n.name){var t=new Set;Pr(n,t),os[n.name.value]=t}})})();function m4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function QE(e,n){var t={kind:e.kind,definitions:[m4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=os[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=os[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=m4(e,o);s&&t.definitions.push(s)}),t}QE(ht,"Payment");class WE{client;constructor(n){this.client=n}async listForAccount(n){return(await this.client.query({query:pt,variables:{accountId:n}}))?.paymentsForAccount??[]}async fetchById(n){return(await this.client.query({query:ht,variables:{paymentId:n}}))?.payment??null}async getForPaymentRequest(n){return(await this.client.query({query:vt,variables:{paymentRequestId:n}}))?.paymentForPaymentRequest??null}async getPaymentLimits(n){try{const t=await this.client.restApi(M("/v1/bank-accounts/{accountId}/payment-limits","get",{params:{accountId:n}}));return{perTransaction:Number(t.transactionLimit),dailyLimit:Number(t.dailyLimit),dailyRemainingVolume:Number(t.dailyRemaining)}}catch{return null}}}var Rr={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}};Rr.loc.source={body:`fragment PaymentRequestFragment on DirectPayment {
405
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};var f4={};function YE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return f4[t]?!1:(f4[t]=!0,!0)})}ht.definitions=ht.definitions.concat(YE(mt.definitions));function Pr(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(r){Pr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Pr(r,n)}),e.definitions&&e.definitions.forEach(function(r){Pr(r,n)})}var os={};(function(){ht.definitions.forEach(function(n){if(n.name){var t=new Set;Pr(n,t),os[n.name.value]=t}})})();function m4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function XE(e,n){var t={kind:e.kind,definitions:[m4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=os[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=os[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=m4(e,o);s&&t.definitions.push(s)}),t}XE(ht,"Payment");class ey{client;constructor(n){this.client=n}async listForAccount(n){return(await this.client.query({query:pt,variables:{accountId:n}}))?.paymentsForAccount??[]}async fetchById(n){return(await this.client.query({query:ht,variables:{paymentId:n}}))?.payment??null}async getForPaymentRequest(n){return(await this.client.query({query:vt,variables:{paymentRequestId:n}}))?.paymentForPaymentRequest??null}async getPaymentLimits(n){try{const t=await this.client.restApi(z("/v1/bank-accounts/{accountId}/payment-limits","get",{params:{accountId:n}}));return{perTransaction:Number(t.transactionLimit),dailyLimit:Number(t.dailyLimit),dailyRemainingVolume:Number(t.dailyRemaining)}}catch{return null}}}var Rr={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}};Rr.loc.source={body:`fragment PaymentRequestFragment on DirectPayment {
406
406
  id
407
407
  userId
408
408
  accountId
@@ -418,14 +418,14 @@ query Payment($paymentId: String!) {
418
418
  targetCurrencyRate
419
419
  feeSubsidyAmount
420
420
  }
421
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};function jr(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(r){jr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){jr(r,n)}),e.definitions&&e.definitions.forEach(function(r){jr(r,n)})}var ss={};(function(){Rr.definitions.forEach(function(n){if(n.name){var t=new Set;jr(n,t),ss[n.name.value]=t}})})();function v4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function YE(e,n){var t={kind:e.kind,definitions:[v4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=ss[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=ss[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=v4(e,o);s&&t.definitions.push(s)}),t}YE(Rr,"PaymentRequestFragment");var gt={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}};gt.loc.source={body:`#import "../queries/paymentRequestFragment.graphql"
421
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};function jr(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(r){jr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){jr(r,n)}),e.definitions&&e.definitions.forEach(function(r){jr(r,n)})}var ss={};(function(){Rr.definitions.forEach(function(n){if(n.name){var t=new Set;jr(n,t),ss[n.name.value]=t}})})();function v4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function ny(e,n){var t={kind:e.kind,definitions:[v4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=ss[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=ss[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=v4(e,o);s&&t.definitions.push(s)}),t}ny(Rr,"PaymentRequestFragment");var gt={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}};gt.loc.source={body:`#import "../queries/paymentRequestFragment.graphql"
422
422
 
423
423
  mutation CreatePaymentRequest($createDirectPaymentInput: CreateDirectPaymentInput!) {
424
424
  createDirectPayment(createDirectPaymentInput: $createDirectPaymentInput) {
425
425
  ...PaymentRequestFragment
426
426
  }
427
427
  }
428
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};var p4={};function XE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return p4[t]?!1:(p4[t]=!0,!0)})}gt.definitions=gt.definitions.concat(XE(Rr.definitions));function Lr(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(r){Lr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Lr(r,n)}),e.definitions&&e.definitions.forEach(function(r){Lr(r,n)})}var cs={};(function(){gt.definitions.forEach(function(n){if(n.name){var t=new Set;Lr(n,t),cs[n.name.value]=t}})})();function h4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function ey(e,n){var t={kind:e.kind,definitions:[h4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=cs[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=cs[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=h4(e,o);s&&t.definitions.push(s)}),t}ey(gt,"CreatePaymentRequest");var Zr={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}};Zr.loc.source={body:`query GetSolanaPayParams(
428
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};var p4={};function ty(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return p4[t]?!1:(p4[t]=!0,!0)})}gt.definitions=gt.definitions.concat(ty(Rr.definitions));function Lr(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(r){Lr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Lr(r,n)}),e.definitions&&e.definitions.forEach(function(r){Lr(r,n)})}var cs={};(function(){gt.definitions.forEach(function(n){if(n.name){var t=new Set;Lr(n,t),cs[n.name.value]=t}})})();function h4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function iy(e,n){var t={kind:e.kind,definitions:[h4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=cs[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=cs[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=h4(e,o);s&&t.definitions.push(s)}),t}iy(gt,"CreatePaymentRequest");var Zr={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}};Zr.loc.source={body:`query GetSolanaPayParams(
429
429
  $tokenAddress: String!
430
430
  $amount: Float!
431
431
  $reference: String!
@@ -441,7 +441,7 @@ mutation CreatePaymentRequest($createDirectPaymentInput: CreateDirectPaymentInpu
441
441
  transaction
442
442
  }
443
443
  }
444
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};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(r){Vr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Vr(r,n)}),e.definitions&&e.definitions.forEach(function(r){Vr(r,n)})}var ls={};(function(){Zr.definitions.forEach(function(n){if(n.name){var t=new Set;Vr(n,t),ls[n.name.value]=t}})})();function g4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function ny(e,n){var t={kind:e.kind,definitions:[g4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=ls[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=ls[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=g4(e,o);s&&t.definitions.push(s)}),t}ny(Zr,"GetSolanaPayParams");var qr={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}};qr.loc.source={body:`query GetSpritzPayParams(
444
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};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(r){Vr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Vr(r,n)}),e.definitions&&e.definitions.forEach(function(r){Vr(r,n)})}var ls={};(function(){Zr.definitions.forEach(function(n){if(n.name){var t=new Set;Vr(n,t),ls[n.name.value]=t}})})();function g4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function ry(e,n){var t={kind:e.kind,definitions:[g4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=ls[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=ls[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=g4(e,o);s&&t.definitions.push(s)}),t}ry(Zr,"GetSolanaPayParams");var qr={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}};qr.loc.source={body:`query GetSpritzPayParams(
445
445
  $tokenAddress: String!
446
446
  $amount: Float!
447
447
  $reference: String!
@@ -460,14 +460,14 @@ mutation CreatePaymentRequest($createDirectPaymentInput: CreateDirectPaymentInpu
460
460
  requiredTokenInput
461
461
  }
462
462
  }
463
- `,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(r){Mr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Mr(r,n)}),e.definitions&&e.definitions.forEach(function(r){Mr(r,n)})}var ds={};(function(){qr.definitions.forEach(function(n){if(n.name){var t=new Set;Mr(n,t),ds[n.name.value]=t}})})();function E4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function ty(e,n){var t={kind:e.kind,definitions:[E4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=ds[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=ds[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=E4(e,o);s&&t.definitions.push(s)}),t}ty(qr,"GetSpritzPayParams");var Et=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;function Gr(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function ri(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function ve(e,...n){if(!Gr(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 iy(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");ri(e.outputLen),ri(e.blockLen)}function yt(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 y4(e,n){ve(e);const t=n.outputLen;if(e.length<t)throw new Error("digestInto() expects output buffer of length at least "+t)}function ry(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function _e(...e){for(let n=0;n<e.length;n++)e[n].fill(0)}function fs(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function He(e,n){return e<<32-n|e>>>n}function fn(e,n){return e<<n|e>>>32-n>>>0}var uy=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function ay(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function oy(e){for(let n=0;n<e.length;n++)e[n]=ay(e[n]);return e}var b4=uy?e=>e:oy,k4=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",sy=Array.from({length:256},(e,n)=>n.toString(16).padStart(2,"0"));function ui(e){if(ve(e),k4)return e.toHex();let n="";for(let t=0;t<e.length;t++)n+=sy[e[t]];return n}var Xe={_0:48,_9:57,A:65,F:70,a:97,f:102};function D4(e){if(e>=Xe._0&&e<=Xe._9)return e-Xe._0;if(e>=Xe.A&&e<=Xe.F)return e-(Xe.A-10);if(e>=Xe.a&&e<=Xe.f)return e-(Xe.a-10)}function ms(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(k4)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 r=new Uint8Array(t);for(let i=0,u=0;i<t;i++,u+=2){const a=D4(e.charCodeAt(u)),o=D4(e.charCodeAt(u+1));if(a===void 0||o===void 0){const s=e[u]+e[u+1];throw new Error('hex string expected, got non-hex character "'+s+'" at index '+u)}r[i]=a*16+o}return r}function Jr(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function ai(e){return typeof e=="string"&&(e=Jr(e)),ve(e),e}function Se(...e){let n=0;for(let r=0;r<e.length;r++){const i=e[r];ve(i),n+=i.length}const t=new Uint8Array(n);for(let r=0,i=0;r<e.length;r++){const u=e[r];t.set(u,i),i+=u.length}return t}var vs=class{};function Ke(e){const n=r=>e().update(ai(r)).digest(),t=e();return n.outputLen=t.outputLen,n.blockLen=t.blockLen,n.create=()=>e(),n}function cy(e){const n=(r,i)=>e(i).update(ai(r)).digest(),t=e({});return n.outputLen=t.outputLen,n.blockLen=t.blockLen,n.create=r=>e(r),n}function S4(e=32){if(Et&&typeof Et.getRandomValues=="function")return Et.getRandomValues(new Uint8Array(e));if(Et&&typeof Et.randomBytes=="function")return Uint8Array.from(Et.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}var ps=BigInt(0),hs=BigInt(1);function Hr(e,n){if(typeof n!="boolean")throw new Error(e+" boolean expected, got "+n)}function Kr(e){const n=e.toString(16);return n.length&1?"0"+n:n}function B4(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?ps:BigInt("0x"+e)}function Un(e){return B4(ui(e))}function A4(e){return ve(e),B4(ui(Uint8Array.from(e).reverse()))}function oi(e,n){return ms(e.toString(16).padStart(n*2,"0"))}function w4(e,n){return oi(e,n).reverse()}function de(e,n,t){let r;if(typeof n=="string")try{r=ms(n)}catch(u){throw new Error(e+" must be hex string or Uint8Array, cause: "+u)}else if(Gr(n))r=Uint8Array.from(n);else throw new Error(e+" must be hex string or Uint8Array");const i=r.length;if(typeof t=="number"&&i!==t)throw new Error(e+" of length "+t+" expected, got "+i);return r}var gs=e=>typeof e=="bigint"&&ps<=e;function Es(e,n,t){return gs(e)&&gs(n)&&gs(t)&&n<=e&&e<t}function _4(e,n,t,r){if(!Es(n,t,r))throw new Error("expected valid "+e+": "+t+" <= n < "+r+", got "+n)}function ly(e){let n;for(n=0;e>ps;e>>=hs,n+=1);return n}var Qr=e=>(hs<<BigInt(e))-hs;function dy(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 r=d=>new Uint8Array(d),i=d=>Uint8Array.of(d);let u=r(e),a=r(e),o=0;const s=()=>{u.fill(1),a.fill(0),o=0},c=(...d)=>t(a,u,...d),l=(d=r(0))=>{a=c(i(0),d),u=c(),d.length!==0&&(a=c(i(1),d),u=c())},f=()=>{if(o++>=1e3)throw new Error("drbg: tried 1000 values");let d=0;const v=[];for(;d<n;){u=c();const h=u.slice();v.push(h),d+=u.length}return Se(...v)};return(d,v)=>{s(),l(d);let h;for(;!(h=v(f()));)l();return s(),h}}function fy(e){return typeof e=="function"&&Number.isSafeInteger(e.outputLen)}function Wr(e,n,t={}){if(!e||typeof e!="object")throw new Error("expected valid options object");function r(i,u,a){const o=e[i];if(a&&o===void 0)return;const s=typeof o;if(s!==u||o===null)throw new Error(`param "${i}" is invalid: expected ${u}, got ${s}`)}Object.entries(n).forEach(([i,u])=>r(i,u,!1)),Object.entries(t).forEach(([i,u])=>r(i,u,!0))}function C4(e){const n=new WeakMap;return(t,...r)=>{const i=n.get(t);if(i!==void 0)return i;const u=e(t,...r);return n.set(t,u),u}}var Yr=BigInt(2**32-1),$4=BigInt(32);function my(e,n=!1){return n?{h:Number(e&Yr),l:Number(e>>$4&Yr)}:{h:Number(e>>$4&Yr)|0,l:Number(e&Yr)|0}}function I4(e,n=!1){const t=e.length;let r=new Uint32Array(t),i=new Uint32Array(t);for(let u=0;u<t;u++){const{h:a,l:o}=my(e[u],n);[r[u],i[u]]=[a,o]}return[r,i]}var x4=(e,n,t)=>e>>>t,F4=(e,n,t)=>e<<32-t|n>>>t,bt=(e,n,t)=>e>>>t|n<<32-t,kt=(e,n,t)=>e<<32-t|n>>>t,Xr=(e,n,t)=>e<<64-t|n>>>t-32,eu=(e,n,t)=>e>>>t-32|n<<64-t,vy=(e,n,t)=>e<<t|n>>>32-t,py=(e,n,t)=>n<<t|e>>>32-t,hy=(e,n,t)=>n<<t-32|e>>>64-t,gy=(e,n,t)=>e<<t-32|n>>>64-t;function en(e,n,t,r){const i=(n>>>0)+(r>>>0);return{h:e+t+(i/2**32|0)|0,l:i|0}}var Ey=(e,n,t)=>(e>>>0)+(n>>>0)+(t>>>0),yy=(e,n,t,r)=>n+t+r+(e/2**32|0)|0,by=(e,n,t,r)=>(e>>>0)+(n>>>0)+(t>>>0)+(r>>>0),ky=(e,n,t,r,i)=>n+t+r+i+(e/2**32|0)|0,Dy=(e,n,t,r,i)=>(e>>>0)+(n>>>0)+(t>>>0)+(r>>>0)+(i>>>0),Sy=(e,n,t,r,i,u)=>n+t+r+i+u+(e/2**32|0)|0;/*! Bundled license information:
463
+ `,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(r){Mr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Mr(r,n)}),e.definitions&&e.definitions.forEach(function(r){Mr(r,n)})}var ds={};(function(){qr.definitions.forEach(function(n){if(n.name){var t=new Set;Mr(n,t),ds[n.name.value]=t}})})();function E4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function uy(e,n){var t={kind:e.kind,definitions:[E4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=ds[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=ds[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=E4(e,o);s&&t.definitions.push(s)}),t}uy(qr,"GetSpritzPayParams");var Et=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;function Gr(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function ri(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function ve(e,...n){if(!Gr(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 ay(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");ri(e.outputLen),ri(e.blockLen)}function yt(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 y4(e,n){ve(e);const t=n.outputLen;if(e.length<t)throw new Error("digestInto() expects output buffer of length at least "+t)}function oy(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function _e(...e){for(let n=0;n<e.length;n++)e[n].fill(0)}function fs(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function He(e,n){return e<<32-n|e>>>n}function fn(e,n){return e<<n|e>>>32-n>>>0}var sy=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function cy(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function ly(e){for(let n=0;n<e.length;n++)e[n]=cy(e[n]);return e}var b4=sy?e=>e:ly,k4=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",dy=Array.from({length:256},(e,n)=>n.toString(16).padStart(2,"0"));function ui(e){if(ve(e),k4)return e.toHex();let n="";for(let t=0;t<e.length;t++)n+=dy[e[t]];return n}var Xe={_0:48,_9:57,A:65,F:70,a:97,f:102};function D4(e){if(e>=Xe._0&&e<=Xe._9)return e-Xe._0;if(e>=Xe.A&&e<=Xe.F)return e-(Xe.A-10);if(e>=Xe.a&&e<=Xe.f)return e-(Xe.a-10)}function ms(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(k4)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 r=new Uint8Array(t);for(let i=0,u=0;i<t;i++,u+=2){const a=D4(e.charCodeAt(u)),o=D4(e.charCodeAt(u+1));if(a===void 0||o===void 0){const s=e[u]+e[u+1];throw new Error('hex string expected, got non-hex character "'+s+'" at index '+u)}r[i]=a*16+o}return r}function Jr(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function ai(e){return typeof e=="string"&&(e=Jr(e)),ve(e),e}function Se(...e){let n=0;for(let r=0;r<e.length;r++){const i=e[r];ve(i),n+=i.length}const t=new Uint8Array(n);for(let r=0,i=0;r<e.length;r++){const u=e[r];t.set(u,i),i+=u.length}return t}var vs=class{};function Qe(e){const n=r=>e().update(ai(r)).digest(),t=e();return n.outputLen=t.outputLen,n.blockLen=t.blockLen,n.create=()=>e(),n}function fy(e){const n=(r,i)=>e(i).update(ai(r)).digest(),t=e({});return n.outputLen=t.outputLen,n.blockLen=t.blockLen,n.create=r=>e(r),n}function S4(e=32){if(Et&&typeof Et.getRandomValues=="function")return Et.getRandomValues(new Uint8Array(e));if(Et&&typeof Et.randomBytes=="function")return Uint8Array.from(Et.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}var ps=BigInt(0),hs=BigInt(1);function Hr(e,n){if(typeof n!="boolean")throw new Error(e+" boolean expected, got "+n)}function Qr(e){const n=e.toString(16);return n.length&1?"0"+n:n}function B4(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?ps:BigInt("0x"+e)}function Un(e){return B4(ui(e))}function A4(e){return ve(e),B4(ui(Uint8Array.from(e).reverse()))}function oi(e,n){return ms(e.toString(16).padStart(n*2,"0"))}function w4(e,n){return oi(e,n).reverse()}function de(e,n,t){let r;if(typeof n=="string")try{r=ms(n)}catch(u){throw new Error(e+" must be hex string or Uint8Array, cause: "+u)}else if(Gr(n))r=Uint8Array.from(n);else throw new Error(e+" must be hex string or Uint8Array");const i=r.length;if(typeof t=="number"&&i!==t)throw new Error(e+" of length "+t+" expected, got "+i);return r}var gs=e=>typeof e=="bigint"&&ps<=e;function Es(e,n,t){return gs(e)&&gs(n)&&gs(t)&&n<=e&&e<t}function _4(e,n,t,r){if(!Es(n,t,r))throw new Error("expected valid "+e+": "+t+" <= n < "+r+", got "+n)}function my(e){let n;for(n=0;e>ps;e>>=hs,n+=1);return n}var Kr=e=>(hs<<BigInt(e))-hs;function vy(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 r=d=>new Uint8Array(d),i=d=>Uint8Array.of(d);let u=r(e),a=r(e),o=0;const s=()=>{u.fill(1),a.fill(0),o=0},c=(...d)=>t(a,u,...d),l=(d=r(0))=>{a=c(i(0),d),u=c(),d.length!==0&&(a=c(i(1),d),u=c())},f=()=>{if(o++>=1e3)throw new Error("drbg: tried 1000 values");let d=0;const v=[];for(;d<n;){u=c();const h=u.slice();v.push(h),d+=u.length}return Se(...v)};return(d,v)=>{s(),l(d);let h;for(;!(h=v(f()));)l();return s(),h}}function py(e){return typeof e=="function"&&Number.isSafeInteger(e.outputLen)}function Wr(e,n,t={}){if(!e||typeof e!="object")throw new Error("expected valid options object");function r(i,u,a){const o=e[i];if(a&&o===void 0)return;const s=typeof o;if(s!==u||o===null)throw new Error(`param "${i}" is invalid: expected ${u}, got ${s}`)}Object.entries(n).forEach(([i,u])=>r(i,u,!1)),Object.entries(t).forEach(([i,u])=>r(i,u,!0))}function C4(e){const n=new WeakMap;return(t,...r)=>{const i=n.get(t);if(i!==void 0)return i;const u=e(t,...r);return n.set(t,u),u}}var Yr=BigInt(2**32-1),$4=BigInt(32);function hy(e,n=!1){return n?{h:Number(e&Yr),l:Number(e>>$4&Yr)}:{h:Number(e>>$4&Yr)|0,l:Number(e&Yr)|0}}function I4(e,n=!1){const t=e.length;let r=new Uint32Array(t),i=new Uint32Array(t);for(let u=0;u<t;u++){const{h:a,l:o}=hy(e[u],n);[r[u],i[u]]=[a,o]}return[r,i]}var x4=(e,n,t)=>e>>>t,F4=(e,n,t)=>e<<32-t|n>>>t,bt=(e,n,t)=>e>>>t|n<<32-t,kt=(e,n,t)=>e<<32-t|n>>>t,Xr=(e,n,t)=>e<<64-t|n>>>t-32,eu=(e,n,t)=>e>>>t-32|n<<64-t,gy=(e,n,t)=>e<<t|n>>>32-t,Ey=(e,n,t)=>n<<t|e>>>32-t,yy=(e,n,t)=>n<<t-32|e>>>64-t,by=(e,n,t)=>e<<t-32|n>>>64-t;function en(e,n,t,r){const i=(n>>>0)+(r>>>0);return{h:e+t+(i/2**32|0)|0,l:i|0}}var ky=(e,n,t)=>(e>>>0)+(n>>>0)+(t>>>0),Dy=(e,n,t,r)=>n+t+r+(e/2**32|0)|0,Sy=(e,n,t,r)=>(e>>>0)+(n>>>0)+(t>>>0)+(r>>>0),By=(e,n,t,r,i)=>n+t+r+i+(e/2**32|0)|0,Ay=(e,n,t,r,i)=>(e>>>0)+(n>>>0)+(t>>>0)+(r>>>0)+(i>>>0),wy=(e,n,t,r,i,u)=>n+t+r+i+u+(e/2**32|0)|0;/*! Bundled license information:
464
464
 
465
465
  @noble/hashes/esm/utils.js:
466
466
  (*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
467
467
 
468
468
  @noble/curves/esm/utils.js:
469
469
  (*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
470
- */function By(e,n,t,r){if(typeof e.setBigUint64=="function")return e.setBigUint64(n,t,r);const i=BigInt(32),u=BigInt(4294967295),a=Number(t>>i&u),o=Number(t&u),s=r?4:0,c=r?0:4;e.setUint32(n+s,a,r),e.setUint32(n+c,o,r)}function nu(e,n,t){return e&n^~e&t}function N4(e,n,t){return e&n^e&t^n&t}var si=class extends vs{constructor(e,n,t,r){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=n,this.padOffset=t,this.isLE=r,this.buffer=new Uint8Array(e),this.view=fs(this.buffer)}update(e){yt(this),e=ai(e),ve(e);const{view:n,buffer:t,blockLen:r}=this,i=e.length;for(let u=0;u<i;){const a=Math.min(r-this.pos,i-u);if(a===r){const o=fs(e);for(;r<=i-u;u+=r)this.process(o,u);continue}t.set(e.subarray(u,u+a),this.pos),this.pos+=a,u+=a,this.pos===r&&(this.process(n,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){yt(this),y4(e,this),this.finished=!0;const{buffer:n,view:t,blockLen:r,isLE:i}=this;let{pos:u}=this;n[u++]=128,_e(this.buffer.subarray(u)),this.padOffset>r-u&&(this.process(t,0),u=0);for(let l=u;l<r;l++)n[l]=0;By(t,r-8,BigInt(this.length*8),i),this.process(t,0);const a=fs(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:r,finished:i,destroyed:u,pos:a}=this;return e.destroyed=u,e.finished=i,e.length=r,e.pos=a,r%n&&e.buffer.set(t),e}clone(){return this._cloneInto()}},mn=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),vn=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),pe=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),he=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),Ay=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]),pn=new Uint32Array(64),T4=class extends si{constructor(e=32){super(64,e,8,!1),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}get(){const{A:e,B:n,C:t,D:r,E:i,F:u,G:a,H:o}=this;return[e,n,t,r,i,u,a,o]}set(e,n,t,r,i,u,a,o){this.A=e|0,this.B=n|0,this.C=t|0,this.D=r|0,this.E=i|0,this.F=u|0,this.G=a|0,this.H=o|0}process(e,n){for(let l=0;l<16;l++,n+=4)pn[l]=e.getUint32(n,!1);for(let l=16;l<64;l++){const f=pn[l-15],m=pn[l-2],d=He(f,7)^He(f,18)^f>>>3,v=He(m,17)^He(m,19)^m>>>10;pn[l]=v+pn[l-7]+d+pn[l-16]|0}let{A:t,B:r,C:i,D:u,E:a,F:o,G:s,H:c}=this;for(let l=0;l<64;l++){const f=He(a,6)^He(a,11)^He(a,25),m=c+f+nu(a,o,s)+Ay[l]+pn[l]|0,v=(He(t,2)^He(t,13)^He(t,22))+N4(t,r,i)|0;c=s,s=o,o=a,a=u+m|0,u=i,i=r,r=t,t=m+v|0}t=t+this.A|0,r=r+this.B|0,i=i+this.C|0,u=u+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,r,i,u,a,o,s,c)}roundClean(){_e(pn)}destroy(){this.set(0,0,0,0,0,0,0,0),_e(this.buffer)}},wy=class extends T4{constructor(){super(28),this.A=vn[0]|0,this.B=vn[1]|0,this.C=vn[2]|0,this.D=vn[3]|0,this.E=vn[4]|0,this.F=vn[5]|0,this.G=vn[6]|0,this.H=vn[7]|0}},O4=I4(["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))),_y=O4[0],Cy=O4[1],hn=new Uint32Array(80),gn=new Uint32Array(80),tu=class extends si{constructor(e=64){super(128,e,16,!1),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}get(){const{Ah:e,Al:n,Bh:t,Bl:r,Ch:i,Cl:u,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,r,i,u,a,o,s,c,l,f,m,d,v,h]}set(e,n,t,r,i,u,a,o,s,c,l,f,m,d,v,h){this.Ah=e|0,this.Al=n|0,this.Bh=t|0,this.Bl=r|0,this.Ch=i|0,this.Cl=u|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 g=0;g<16;g++,n+=4)hn[g]=e.getUint32(n),gn[g]=e.getUint32(n+=4);for(let g=16;g<80;g++){const k=hn[g-15]|0,_=gn[g-15]|0,B=bt(k,_,1)^bt(k,_,8)^x4(k,_,7),J=kt(k,_,1)^kt(k,_,8)^F4(k,_,7),V=hn[g-2]|0,F=gn[g-2]|0,y=bt(V,F,19)^Xr(V,F,61)^x4(V,F,6),$=kt(V,F,19)^eu(V,F,61)^F4(V,F,6),D=by(J,$,gn[g-7],gn[g-16]),A=ky(D,B,y,hn[g-7],hn[g-16]);hn[g]=A|0,gn[g]=D|0}let{Ah:t,Al:r,Bh:i,Bl:u,Ch:a,Cl:o,Dh:s,Dl:c,Eh:l,El:f,Fh:m,Fl:d,Gh:v,Gl:h,Hh:b,Hl:E}=this;for(let g=0;g<80;g++){const k=bt(l,f,14)^bt(l,f,18)^Xr(l,f,41),_=kt(l,f,14)^kt(l,f,18)^eu(l,f,41),B=l&m^~l&v,J=f&d^~f&h,V=Dy(E,_,J,Cy[g],gn[g]),F=Sy(V,b,k,B,_y[g],hn[g]),y=V|0,$=bt(t,r,28)^Xr(t,r,34)^Xr(t,r,39),D=kt(t,r,28)^eu(t,r,34)^eu(t,r,39),A=t&i^t&a^i&a,x=r&u^r&o^u&o;b=v|0,E=h|0,v=m|0,h=d|0,m=l|0,d=f|0,{h:l,l:f}=en(s|0,c|0,F|0,y|0),s=a|0,c=o|0,a=i|0,o=u|0,i=t|0,u=r|0;const T=Ey(y,D,x);t=yy(T,F,$,A),r=T|0}({h:t,l:r}=en(this.Ah|0,this.Al|0,t|0,r|0)),{h:i,l:u}=en(this.Bh|0,this.Bl|0,i|0,u|0),{h:a,l:o}=en(this.Ch|0,this.Cl|0,a|0,o|0),{h:s,l:c}=en(this.Dh|0,this.Dl|0,s|0,c|0),{h:l,l:f}=en(this.Eh|0,this.El|0,l|0,f|0),{h:m,l:d}=en(this.Fh|0,this.Fl|0,m|0,d|0),{h:v,l:h}=en(this.Gh|0,this.Gl|0,v|0,h|0),{h:b,l:E}=en(this.Hh|0,this.Hl|0,b|0,E|0),this.set(t,r,i,u,a,o,s,c,l,f,m,d,v,h,b,E)}roundClean(){_e(hn,gn)}destroy(){_e(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}},$y=class extends tu{constructor(){super(48),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}},ge=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),Ee=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]),Iy=class extends tu{constructor(){super(28),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}},xy=class extends tu{constructor(){super(32),this.Ah=Ee[0]|0,this.Al=Ee[1]|0,this.Bh=Ee[2]|0,this.Bl=Ee[3]|0,this.Ch=Ee[4]|0,this.Cl=Ee[5]|0,this.Dh=Ee[6]|0,this.Dl=Ee[7]|0,this.Eh=Ee[8]|0,this.El=Ee[9]|0,this.Fh=Ee[10]|0,this.Fl=Ee[11]|0,this.Gh=Ee[12]|0,this.Gl=Ee[13]|0,this.Hh=Ee[14]|0,this.Hl=Ee[15]|0}},iu=Ke(()=>new T4);Ke(()=>new wy),Ke(()=>new tu),Ke(()=>new $y),Ke(()=>new xy),Ke(()=>new Iy);var z4=class extends vs{constructor(e,n){super(),this.finished=!1,this.destroyed=!1,iy(e);const t=ai(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 r=this.blockLen,i=new Uint8Array(r);i.set(t.length>r?e.create().update(t).digest():t);for(let u=0;u<i.length;u++)i[u]^=54;this.iHash.update(i),this.oHash=e.create();for(let u=0;u<i.length;u++)i[u]^=106;this.oHash.update(i),_e(i)}update(e){return yt(this),this.iHash.update(e),this}digestInto(e){yt(this),ve(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:r,destroyed:i,blockLen:u,outputLen:a}=this;return e=e,e.finished=r,e.destroyed=i,e.blockLen=u,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()}},U4=(e,n,t)=>new z4(e,n).update(t).digest();U4.create=(e,n)=>new z4(e,n);var Ce=BigInt(0),Be=BigInt(1),Pn=BigInt(2),Fy=BigInt(3),P4=BigInt(4),R4=BigInt(5),j4=BigInt(8);function ye(e,n){const t=e%n;return t>=Ce?t:n+t}function Oe(e,n,t){let r=e;for(;n-- >Ce;)r*=r,r%=t;return r}function L4(e,n){if(e===Ce)throw new Error("invert: expected non-zero number");if(n<=Ce)throw new Error("invert: expected positive modulus, got "+n);let t=ye(e,n),r=n,i=Ce,u=Be;for(;t!==Ce;){const o=r/t,s=r%t,c=i-u*o;r=t,t=s,i=u,u=c}if(r!==Be)throw new Error("invert: does not exist");return ye(i,n)}function Z4(e,n){const t=(e.ORDER+Be)/P4,r=e.pow(n,t);if(!e.eql(e.sqr(r),n))throw new Error("Cannot find square root");return r}function Ny(e,n){const t=(e.ORDER-R4)/j4,r=e.mul(n,Pn),i=e.pow(r,t),u=e.mul(n,i),a=e.mul(e.mul(u,Pn),i),o=e.mul(u,e.sub(a,e.ONE));if(!e.eql(e.sqr(o),n))throw new Error("Cannot find square root");return o}function Ty(e){if(e<BigInt(3))throw new Error("sqrt is not defined for small field");let n=e-Be,t=0;for(;n%Pn===Ce;)n/=Pn,t++;let r=Pn;const i=uu(e);for(;q4(i,r)===1;)if(r++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(t===1)return Z4;let u=i.pow(r,n);const a=(n+Be)/Pn;return function(s,c){if(s.is0(c))return c;if(q4(s,c)!==1)throw new Error("Cannot find square root");let l=t,f=s.mul(s.ONE,u),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 b=Be<<BigInt(l-v-1),E=s.pow(f,b);l=v,f=s.sqr(E),m=s.mul(m,f),d=s.mul(d,E)}return d}}function Oy(e){return e%P4===Fy?Z4:e%j4===R4?Ny:Ty(e)}var zy=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function V4(e){const n={ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"},t=zy.reduce((r,i)=>(r[i]="function",r),n);return Wr(e,t),e}function Uy(e,n,t){if(t<Ce)throw new Error("invalid exponent, negatives unsupported");if(t===Ce)return e.ONE;if(t===Be)return n;let r=e.ONE,i=n;for(;t>Ce;)t&Be&&(r=e.mul(r,i)),i=e.sqr(i),t>>=Be;return r}function ru(e,n,t=!1){const r=new Array(n.length).fill(t?e.ZERO:void 0),i=n.reduce((a,o,s)=>e.is0(o)?a:(r[s]=a,e.mul(a,o)),e.ONE),u=e.inv(i);return n.reduceRight((a,o,s)=>e.is0(o)?a:(r[s]=e.mul(a,r[s]),e.mul(a,o)),u),r}function q4(e,n){const t=(e.ORDER-Be)/Pn,r=e.pow(n,t),i=e.eql(r,e.ONE),u=e.eql(r,e.ZERO),a=e.eql(r,e.neg(e.ONE));if(!i&&!u&&!a)throw new Error("invalid Legendre symbol result");return i?1:u?0:-1}function Py(e,n){n!==void 0&&ri(n);const t=n!==void 0?n:e.toString(2).length,r=Math.ceil(t/8);return{nBitLength:t,nByteLength:r}}function uu(e,n,t=!1,r={}){if(e<=Ce)throw new Error("invalid field: expected ORDER > 0, got "+e);let i,u;if(typeof n=="object"&&n!=null){if(r.sqrt||t)throw new Error("cannot specify opts in two arguments");const l=n;l.BITS&&(i=l.BITS),l.sqrt&&(u=l.sqrt),typeof l.isLE=="boolean"&&(t=l.isLE)}else typeof n=="number"&&(i=n),r.sqrt&&(u=r.sqrt);const{nBitLength:a,nByteLength:o}=Py(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:Qr(a),ZERO:Ce,ONE:Be,create:l=>ye(l,e),isValid:l=>{if(typeof l!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof l);return Ce<=l&&l<e},is0:l=>l===Ce,isValidNot0:l=>!c.is0(l)&&c.isValid(l),isOdd:l=>(l&Be)===Be,neg:l=>ye(-l,e),eql:(l,f)=>l===f,sqr:l=>ye(l*l,e),add:(l,f)=>ye(l+f,e),sub:(l,f)=>ye(l-f,e),mul:(l,f)=>ye(l*f,e),pow:(l,f)=>Uy(c,l,f),div:(l,f)=>ye(l*L4(f,e),e),sqrN:l=>l*l,addN:(l,f)=>l+f,subN:(l,f)=>l-f,mulN:(l,f)=>l*f,inv:l=>L4(l,e),sqrt:u||(l=>(s||(s=Oy(e)),s(c,l))),toBytes:l=>t?w4(l,o):oi(l,o),fromBytes:l=>{if(l.length!==o)throw new Error("Field.fromBytes: expected "+o+" bytes, got "+l.length);return t?A4(l):Un(l)},invertBatch:l=>ru(c,l),cmov:(l,f,m)=>m?f:l});return Object.freeze(c)}function M4(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 G4(e){const n=M4(e);return n+Math.ceil(n/2)}function Ry(e,n,t=!1){const r=e.length,i=M4(n),u=G4(n);if(r<16||r<u||r>1024)throw new Error("expected "+u+"-1024 bytes of input, got "+r);const a=t?A4(e):Un(e),o=ye(a,n-Be)+Be;return t?w4(o,i):oi(o,i)}var Dt=BigInt(0),Rn=BigInt(1);function ci(e,n){const t=n.negate();return e?t:n}function jy(e,n,t){const r=a=>a.pz,i=ru(e.Fp,t.map(r));return t.map((a,o)=>a.toAffine(i[o])).map(e.fromAffine)}function J4(e,n){if(!Number.isSafeInteger(e)||e<=0||e>n)throw new Error("invalid window size, expected [1.."+n+"], got W="+e)}function ys(e,n){J4(e,n);const t=Math.ceil(n/e)+1,r=2**(e-1),i=2**e,u=Qr(e),a=BigInt(e);return{windows:t,windowSize:r,mask:u,maxNumber:i,shiftBy:a}}function H4(e,n,t){const{windowSize:r,mask:i,maxNumber:u,shiftBy:a}=t;let o=Number(e&i),s=e>>a;o>r&&(o-=u,s+=Rn);const c=n*r,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 Ly(e,n){if(!Array.isArray(e))throw new Error("array expected");e.forEach((t,r)=>{if(!(t instanceof n))throw new Error("invalid point at index "+r)})}function Zy(e,n){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((t,r)=>{if(!n.isValid(t))throw new Error("invalid scalar at index "+r)})}var bs=new WeakMap,K4=new WeakMap;function ks(e){return K4.get(e)||1}function Q4(e){if(e!==Dt)throw new Error("invalid wNAF")}function Vy(e,n){return{constTimeNegate:ci,hasPrecomputes(t){return ks(t)!==1},unsafeLadder(t,r,i=e.ZERO){let u=t;for(;r>Dt;)r&Rn&&(i=i.add(u)),u=u.double(),r>>=Rn;return i},precomputeWindow(t,r){const{windows:i,windowSize:u}=ys(r,n),a=[];let o=t,s=o;for(let c=0;c<i;c++){s=o,a.push(s);for(let l=1;l<u;l++)s=s.add(o),a.push(s);o=s.double()}return a},wNAF(t,r,i){let u=e.ZERO,a=e.BASE;const o=ys(t,n);for(let s=0;s<o.windows;s++){const{nextN:c,offset:l,isZero:f,isNeg:m,isNegF:d,offsetF:v}=H4(i,s,o);i=c,f?a=a.add(ci(d,r[v])):u=u.add(ci(m,r[l]))}return Q4(i),{p:u,f:a}},wNAFUnsafe(t,r,i,u=e.ZERO){const a=ys(t,n);for(let o=0;o<a.windows&&i!==Dt;o++){const{nextN:s,offset:c,isZero:l,isNeg:f}=H4(i,o,a);if(i=s,!l){const m=r[c];u=u.add(f?m.negate():m)}}return Q4(i),u},getPrecomputes(t,r,i){let u=bs.get(r);return u||(u=this.precomputeWindow(r,t),t!==1&&(typeof i=="function"&&(u=i(u)),bs.set(r,u))),u},wNAFCached(t,r,i){const u=ks(t);return this.wNAF(u,this.getPrecomputes(u,t,i),r)},wNAFCachedUnsafe(t,r,i,u){const a=ks(t);return a===1?this.unsafeLadder(t,r,u):this.wNAFUnsafe(a,this.getPrecomputes(a,t,i),r,u)},setWindowSize(t,r){J4(r,n),K4.set(t,r),bs.delete(t)}}}function qy(e,n,t,r){let i=n,u=e.ZERO,a=e.ZERO;for(;t>Dt||r>Dt;)t&Rn&&(u=u.add(i)),r&Rn&&(a=a.add(i)),i=i.double(),t>>=Rn,r>>=Rn;return{p1:u,p2:a}}function My(e,n,t,r){Ly(t,e),Zy(r,n);const i=t.length,u=r.length;if(i!==u)throw new Error("arrays of points and scalars must have equal length");const a=e.ZERO,o=ly(BigInt(i));let s=1;o>12?s=o-3:o>4?s=o-2:o>0&&(s=2);const c=Qr(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<u;h++){const b=r[h],E=Number(b>>BigInt(d)&c);l[E]=l[E].add(t[h])}let v=a;for(let h=l.length-1,b=a;h>0;h--)b=b.add(l[h]),v=v.add(b);if(m=m.add(v),d!==0)for(let h=0;h<s;h++)m=m.double()}return m}function W4(e,n){if(n){if(n.ORDER!==e)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return V4(n),n}else return uu(e)}function Gy(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>Dt))throw new Error(`CURVE.${o} must be positive bigint`)}const r=W4(n.p,t.Fp),i=W4(n.n,t.Fn),a=["Gx","Gy","a","b"];for(const o of a)if(!r.isValid(n[o]))throw new Error(`CURVE.${o} must be valid field element of CURVE.Fp`);return{Fp:r,Fn:i}}function Y4(e){e.lowS!==void 0&&Hr("lowS",e.lowS),e.prehash!==void 0&&Hr("prehash",e.prehash)}var Jy=class extends Error{constructor(e=""){super(e)}},nn={Err:Jy,_tlv:{encode:(e,n)=>{const{Err:t}=nn;if(e<0||e>256)throw new t("tlv.encode: wrong tag");if(n.length&1)throw new t("tlv.encode: unpadded data");const r=n.length/2,i=Kr(r);if(i.length/2&128)throw new t("tlv.encode: long form length too big");const u=r>127?Kr(i.length/2|128):"";return Kr(e)+u+i+n},decode(e,n){const{Err:t}=nn;let r=0;if(e<0||e>256)throw new t("tlv.encode: wrong tag");if(n.length<2||n[r++]!==e)throw new t("tlv.decode: wrong tlv");const i=n[r++],u=!!(i&128);let a=0;if(!u)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(r,r+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(r+=s,a<128)throw new t("tlv.decode(long): not minimal encoding")}const o=n.subarray(r,r+a);if(o.length!==a)throw new t("tlv.decode: wrong value length");return{v:o,l:n.subarray(r+a)}}},_int:{encode(e){const{Err:n}=nn;if(e<jn)throw new n("integer: negative integers are not allowed");let t=Kr(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}=nn;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 Un(e)}},toSig(e){const{Err:n,_int:t,_tlv:r}=nn,i=de("signature",e),{v:u,l:a}=r.decode(48,i);if(a.length)throw new n("invalid signature: left bytes after parsing");const{v:o,l:s}=r.decode(2,u),{v:c,l}=r.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}=nn,r=n.encode(2,t.encode(e.r)),i=n.encode(2,t.encode(e.s)),u=r+i;return n.encode(48,u)}},jn=BigInt(0),Ae=BigInt(1),tn=BigInt(2),St=BigInt(3),Ds=BigInt(4);function Hy(e,n,t){function r(i){const u=e.sqr(i),a=e.mul(u,i);return e.add(e.add(a,e.mul(i,n)),t)}return r}function X4(e,n,t){const{BYTES:r}=e;function i(u){let a;if(typeof u=="bigint")a=u;else{let o=de("private key",u);if(n){if(!n.includes(o.length*2))throw new Error("invalid private key");const s=new Uint8Array(r);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 ${r}, got ${typeof u}`)}}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 Ky(e,n={}){const{Fp:t,Fn:r}=Gy("weierstrass",e,n),{h:i,n:u}=e;Wr(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,y,$){const{x:D,y:A}=y.toAffine(),x=t.toBytes(D);if(Hr("isCompressed",$),$){o();const T=!t.isOdd(A);return Se(ev(T),x)}else return Se(Uint8Array.of(4),x,t.toBytes(A))}function c(F){ve(F);const y=t.BYTES,$=y+1,D=2*y+1,A=F.length,x=F[0],T=F.subarray(1);if(A===$&&(x===2||x===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(W){const R=W instanceof Error?": "+W.message:"";throw new Error("bad point: is not on curve, sqrt error"+R)}o();const z=t.isOdd(P);return(x&1)===1!==z&&(P=t.neg(P)),{x:N,y:P}}else if(A===D&&x===4){const N=t.fromBytes(T.subarray(y*0,y*1)),O=t.fromBytes(T.subarray(y*1,y*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=Hy(t,e.a,e.b);function d(F,y){const $=t.sqr(y),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,St),Ds),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 b(F,y,$=!1){if(!t.isValid(y)||$&&t.is0(y))throw new Error(`bad point coordinate ${F}`);return y}function E(F){if(!(F instanceof B))throw new Error("ProjectivePoint expected")}const g=C4((F,y)=>{const{px:$,py:D,pz:A}=F;if(t.eql(A,t.ONE))return{x:$,y:D};const x=F.is0();y==null&&(y=x?t.ONE:t.inv(A));const T=t.mul($,y),N=t.mul(D,y),O=t.mul(A,y);if(x)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=C4(F=>{if(F.is0()){if(n.allowInfinityPoint&&!t.is0(F.py))return;throw new Error("bad point: ZERO")}const{x:y,y:$}=F.toAffine();if(!t.isValid(y)||!t.isValid($))throw new Error("bad point: x or y not field elements");if(!d(y,$))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,y,$,D,A){return $=new B(t.mul($.px,F),$.py,$.pz),y=ci(D,y),$=ci(A,$),y.add($)}class B{constructor(y,$,D){this.px=b("x",y),this.py=b("y",$,!0),this.pz=b("z",D),Object.freeze(this)}static fromAffine(y){const{x:$,y:D}=y||{};if(!y||!t.isValid($)||!t.isValid(D))throw new Error("invalid affine point");if(y 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(y){return jy(B,"pz",y)}static fromBytes(y){return ve(y),B.fromHex(y)}static fromHex(y){const $=B.fromAffine(f(de("pointHex",y)));return $.assertValidity(),$}static fromPrivateKey(y){const $=X4(r,n.allowedPrivateKeyLengths,n.wrapPrivateKey);return B.BASE.multiply($(y))}static msm(y,$){return My(B,r,y,$)}precompute(y=8,$=!0){return V.setWindowSize(this,y),$||this.multiply(St),this}_setWindowSize(y){this.precompute(y)}assertValidity(){k(this)}hasEvenY(){const{y}=this.toAffine();if(!t.isOdd)throw new Error("Field doesn't support isOdd");return!t.isOdd(y)}equals(y){E(y);const{px:$,py:D,pz:A}=this,{px:x,py:T,pz:N}=y,O=t.eql(t.mul($,N),t.mul(x,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:y,b:$}=e,D=t.mul($,St),{px:A,py:x,pz:T}=this;let N=t.ZERO,O=t.ZERO,P=t.ZERO,z=t.mul(A,A),ue=t.mul(x,x),W=t.mul(T,T),R=t.mul(A,x);return R=t.add(R,R),P=t.mul(A,T),P=t.add(P,P),N=t.mul(y,P),O=t.mul(D,W),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),W=t.mul(y,W),R=t.sub(z,W),R=t.mul(y,R),R=t.add(R,P),P=t.add(z,z),z=t.add(P,z),z=t.add(z,W),z=t.mul(z,R),O=t.add(O,z),W=t.mul(x,T),W=t.add(W,W),z=t.mul(W,R),N=t.sub(N,z),P=t.mul(W,ue),P=t.add(P,P),P=t.add(P,P),new B(N,O,P)}add(y){E(y);const{px:$,py:D,pz:A}=this,{px:x,py:T,pz:N}=y;let O=t.ZERO,P=t.ZERO,z=t.ZERO;const ue=e.a,W=t.mul(e.b,St);let R=t.mul($,x),oe=t.mul(D,T),se=t.mul(A,N),fe=t.add($,D),X=t.add(x,T);fe=t.mul(fe,X),X=t.add(R,oe),fe=t.sub(fe,X),X=t.add($,A);let ke=t.add(x,N);return X=t.mul(X,ke),ke=t.add(R,se),X=t.sub(X,ke),ke=t.add(D,A),O=t.add(T,N),ke=t.mul(ke,O),O=t.add(oe,se),ke=t.sub(ke,O),z=t.mul(ue,X),O=t.mul(W,se),z=t.add(O,z),O=t.sub(oe,z),z=t.add(oe,z),P=t.mul(O,z),oe=t.add(R,R),oe=t.add(oe,R),se=t.mul(ue,se),X=t.mul(W,X),oe=t.add(oe,se),se=t.sub(R,se),se=t.mul(ue,se),X=t.add(X,se),R=t.mul(oe,X),P=t.add(P,R),R=t.mul(ke,X),O=t.mul(fe,O),O=t.sub(O,R),R=t.mul(fe,oe),z=t.mul(ke,z),z=t.add(z,R),new B(O,P,z)}subtract(y){return this.add(y.negate())}is0(){return this.equals(B.ZERO)}multiply(y){const{endo:$}=n;if(!r.isValidNot0(y))throw new Error("invalid scalar: out of range");let D,A;const x=T=>V.wNAFCached(this,T,B.normalizeZ);if($){const{k1neg:T,k1:N,k2neg:O,k2:P}=$.splitScalar(y),{p:z,f:ue}=x(N),{p:W,f:R}=x(P);A=ue.add(R),D=_($.beta,z,W,T,O)}else{const{p:T,f:N}=x(y);D=T,A=N}return B.normalizeZ([D,A])[0]}multiplyUnsafe(y){const{endo:$}=n,D=this;if(!r.isValid(y))throw new Error("invalid scalar: out of range");if(y===jn||D.is0())return B.ZERO;if(y===Ae)return D;if(V.hasPrecomputes(this))return this.multiply(y);if($){const{k1neg:A,k1:x,k2neg:T,k2:N}=$.splitScalar(y),{p1:O,p2:P}=qy(B,D,x,N);return _($.beta,O,P,A,T)}else return V.wNAFCachedUnsafe(D,y)}multiplyAndAddUnsafe(y,$,D){const A=this.multiplyUnsafe($).add(y.multiplyUnsafe(D));return A.is0()?void 0:A}toAffine(y){return g(this,y)}isTorsionFree(){const{isTorsionFree:y}=n;return i===Ae?!0:y?y(B,this):V.wNAFCachedUnsafe(this,u).is0()}clearCofactor(){const{clearCofactor:y}=n;return i===Ae?this:y?y(B,this):this.multiplyUnsafe(i)}toBytes(y=!0){return Hr("isCompressed",y),this.assertValidity(),l(B,this,y)}toRawBytes(y=!0){return this.toBytes(y)}toHex(y=!0){return ui(this.toBytes(y))}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=r;const J=r.BITS,V=Vy(B,n.endo?Math.ceil(J/2):J);return B}function ev(e){return Uint8Array.of(e?2:3)}function Qy(e,n,t={}){Wr(n,{hash:"function"},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});const r=n.randomBytes||S4,i=n.hmac||((D,...A)=>U4(n.hash,D,Se(...A))),{Fp:u,Fn:a}=e,{ORDER:o,BITS:s}=a;function c(D){const A=o>>Ae;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,x,T){f("r",A),f("s",x),this.r=A,this.s=x,T!=null&&(this.recovery=T),Object.freeze(this)}static fromCompact(A){const x=a.BYTES,T=de("compactSignature",A,x*2);return new m(a.fromBytes(T.subarray(0,x)),a.fromBytes(T.subarray(x,x*2)))}static fromDER(A){const{r:x,s:T}=nn.toSig(de("DER",A));return new m(x,T)}assertValidity(){}addRecoveryBit(A){return new m(this.r,this.s,A)}recoverPublicKey(A){const x=u.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*tn<x&&O>1)throw new Error("recovery id is ambiguous for h>1 curve");const z=O===2||O===3?T+o:T;if(!u.isValid(z))throw new Error("recovery id 2 or 3 invalid");const ue=u.toBytes(z),W=e.fromHex(Se(ev((O&1)===0),ue)),R=a.inv(z),oe=k(de("msgHash",A)),se=a.create(-oe*R),fe=a.create(N*R),X=e.BASE.multiplyUnsafe(se).add(W.multiplyUnsafe(fe));if(X.is0())throw new Error("point at infinify");return X.assertValidity(),X}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 Se(a.toBytes(this.r),a.toBytes(this.s));if(A==="der")return ms(nn.hexFromSig(this));throw new Error("invalid format")}toDERRawBytes(){return this.toBytes("der")}toDERHex(){return ui(this.toBytes("der"))}toCompactRawBytes(){return this.toBytes("compact")}toCompactHex(){return ui(this.toBytes("compact"))}}const d=X4(a,t.allowedPrivateKeyLengths,t.wrapPrivateKey),v={isValidPrivateKey(D){try{return d(D),!0}catch{return!1}},normPrivateKeyToScalar:d,randomPrivateKey:()=>{const D=o;return Ry(r(G4(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 b(D){if(typeof D=="bigint")return!1;if(D instanceof e)return!0;const x=de("key",D).length,T=u.BYTES,N=T+1,O=2*T+1;if(!(t.allowedPrivateKeyLengths||a.BYTES===N))return x===N||x===O}function E(D,A,x=!0){if(b(D)===!0)throw new Error("first arg must be private key");if(b(A)===!1)throw new Error("second arg must be public key");return e.fromHex(A).multiply(d(D)).toBytes(x)}const g=n.bits2int||function(D){if(D.length>8192)throw new Error("input is too large");const A=Un(D),x=D.length*8-s;return x>0?A>>BigInt(x):A},k=n.bits2int_modN||function(D){return a.create(g(D))},_=Qr(s);function B(D){return _4("num < 2^"+s,D,jn,_),a.toBytes(D)}function J(D,A,x=V){if(["recovered","canonical"].some(fe=>fe in x))throw new Error("sign() legacy options not supported");const{hash:T}=n;let{lowS:N,prehash:O,extraEntropy:P}=x;N==null&&(N=!0),D=de("msgHash",D),Y4(x),O&&(D=de("prehashed msgHash",T(D)));const z=k(D),ue=d(A),W=[B(ue),B(z)];if(P!=null&&P!==!1){const fe=P===!0?r(u.BYTES):P;W.push(de("extraEntropy",fe))}const R=Se(...W),oe=z;function se(fe){const X=g(fe);if(!a.isValidNot0(X))return;const ke=a.inv(X),Ft=e.BASE.multiply(X).toAffine(),Ln=a.create(Ft.x);if(Ln===jn)return;const Bn=a.create(ke*a.create(oe+Ln*ue));if(Bn===jn)return;let _u=(Ft.x===Ln?0:2)|Number(Ft.y&Ae),Zn=Bn;return N&&c(Bn)&&(Zn=l(Bn),_u^=1),new m(Ln,Zn,_u)}return{seed:R,k2sig:se}}const V={lowS:n.lowS,prehash:!1},F={lowS:n.lowS,prehash:!1};function y(D,A,x=V){const{seed:T,k2sig:N}=J(D,A,x);return dy(n.hash.outputLen,a.BYTES,i)(T,N)}e.BASE.precompute(8);function $(D,A,x,T=F){const N=D;A=de("msgHash",A),x=de("publicKey",x),Y4(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"||Gr(N),W=!ue&&!z&&typeof N=="object"&&N!==null&&typeof N.r=="bigint"&&typeof N.s=="bigint";if(!ue&&!W)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let R,oe;try{if(W)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(Zn){if(!(Zn instanceof nn.Err))throw Zn}!R&&z!=="der"&&(R=m.fromCompact(N))}oe=e.fromHex(x)}catch{return!1}if(!R||O&&R.hasHighS())return!1;P&&(A=n.hash(A));const{r:se,s:fe}=R,X=k(A),ke=a.inv(fe),Ft=a.create(X*ke),Ln=a.create(se*ke),Bn=e.BASE.multiplyUnsafe(Ft).add(oe.multiplyUnsafe(Ln));return Bn.is0()?!1:a.create(Bn.x)===se}return Object.freeze({getPublicKey:h,getSharedSecret:E,sign:y,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,r=uu(n.n,e.nBitLength),i={Fp:t,Fn:r,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 Yy(e){const{CURVE:n,curveOpts:t}=Wy(e),r={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:r}}function Xy(e,n){return Object.assign({},n,{ProjectivePoint:n.Point,CURVE:e})}function eb(e){const{CURVE:n,curveOpts:t,ecdsaOpts:r}=Yy(e),i=Ky(n,t),u=Qy(i,r,t);return Xy(e,u)}function nb(e,n){const t=e.ORDER;let r=jn;for(let v=t-Ae;v%tn===jn;v/=tn)r+=Ae;const i=r,u=tn<<i-Ae-Ae,a=u*tn,o=(t-Ae)/a,s=(o-Ae)/tn,c=a-Ae,l=u,f=e.pow(n,o),m=e.pow(n,(o+Ae)/tn);let d=(v,h)=>{let b=f,E=e.pow(h,c),g=e.sqr(E);g=e.mul(g,h);let k=e.mul(v,g);k=e.pow(k,s),k=e.mul(k,E),E=e.mul(k,h),g=e.mul(k,v);let _=e.mul(g,E);k=e.pow(_,l);let B=e.eql(k,e.ONE);E=e.mul(g,m),k=e.mul(_,b),g=e.cmov(E,g,B),_=e.cmov(k,_,B);for(let J=i;J>Ae;J--){let V=J-tn;V=tn<<V-Ae;let F=e.pow(_,V);const y=e.eql(F,e.ONE);E=e.mul(g,b),b=e.mul(b,b),F=e.mul(_,b),g=e.cmov(E,g,y),_=e.cmov(F,_,y)}return{isValid:B,value:g}};if(e.ORDER%Ds===St){const v=(e.ORDER-St)/Ds,h=e.sqrt(e.neg(n));d=(b,E)=>{let g=e.sqr(E);const k=e.mul(b,E);g=e.mul(g,k);let _=e.pow(g,v);_=e.mul(_,k);const B=e.mul(_,h),J=e.mul(e.sqr(_),E),V=e.eql(J,b);let F=e.cmov(B,_,V);return{isValid:V,value:F}}}return d}function tb(e,n){V4(e);const{A:t,B:r,Z:i}=n;if(!e.isValid(t)||!e.isValid(r)||!e.isValid(i))throw new Error("mapToCurveSimpleSWU: invalid opts");const u=nb(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,r),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,r),s=e.add(s,f),d=e.mul(o,c);const{isValid:h,value:b}=u(s,m);v=e.mul(o,a),v=e.mul(v,b),d=e.cmov(d,c,h),v=e.cmov(v,b,h);const E=e.isOdd(a)===e.isOdd(v);v=e.cmov(e.neg(v),v,E);const g=ru(e,[l],!0)[0];return d=e.mul(d,g),{x:d,y:v}}}function ib(e,n){const t=r=>eb({...e,hash:r});return{...t(n),create:t}}var rb=Un;function En(e,n){if(li(e),li(n),e<0||e>=1<<8*n)throw new Error("invalid I2OSP input: "+e);const t=Array.from({length:n}).fill(0);for(let r=n-1;r>=0;r--)t[r]=e&255,e>>>=8;return new Uint8Array(t)}function ub(e,n){const t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e[r]^n[r];return t}function li(e){if(!Number.isSafeInteger(e))throw new Error("number expected")}function ab(e,n,t,r){ve(e),ve(n),li(t),n.length>255&&(n=r(Se(Jr("H2C-OVERSIZE-DST-"),n)));const{outputLen:i,blockLen:u}=r,a=Math.ceil(t/i);if(t>65535||a>255)throw new Error("expand_message_xmd: invalid lenInBytes");const o=Se(n,En(n.length,1)),s=En(0,u),c=En(t,2),l=new Array(a),f=r(Se(s,e,c,En(0,1),o));l[0]=r(Se(f,En(1,1),o));for(let d=1;d<=a;d++){const v=[ub(f,l[d-1]),En(d+1,1),o];l[d]=r(Se(...v))}return Se(...l).slice(0,t)}function ob(e,n,t,r,i){if(ve(e),ve(n),li(t),n.length>255){const u=Math.ceil(2*r/8);n=i.create({dkLen:u}).update(Jr("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(En(t,2)).update(n).update(En(n.length,1)).digest()}function nv(e,n,t){Wr(t,{p:"bigint",m:"number",k:"number",hash:"function"});const{p:r,k:i,m:u,hash:a,expand:o,DST:s}=t;if(!Gr(s)&&typeof s!="string")throw new Error("DST must be string or uint8array");if(!fy(t.hash))throw new Error("expected valid hash");ve(e),li(n);const c=typeof s=="string"?Jr(s):s,l=r.toString(2).length,f=Math.ceil((l+i)/8),m=n*u*f;let d;if(o==="xmd")d=ab(e,c,m,a);else if(o==="xof")d=ob(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 b=new Array(u);for(let E=0;E<u;E++){const g=f*(E+h*u),k=d.subarray(g,g+f);b[E]=ye(rb(k),r)}v[h]=b}return v}function sb(e,n){const t=n.map(r=>Array.from(r).reverse());return(r,i)=>{const[u,a,o,s]=t.map(f=>f.reduce((m,d)=>e.add(e.mul(m,r),d))),[c,l]=ru(e,[a,s],!0);return r=e.mul(u,c),i=e.mul(i,e.mul(o,l)),{x:r,y:i}}}function cb(e,n,t){if(typeof n!="function")throw new Error("mapToCurve() must be defined");function r(u){return e.fromAffine(n(u))}function i(u){const a=u.clearCofactor();return a.equals(e.ZERO)?e.ZERO:(a.assertValidity(),a)}return{defaults:t,hashToCurve(u,a){const o=t.DST?t.DST:{},s=Object.assign({},t,o,a),c=nv(u,2,s),l=r(c[0]),f=r(c[1]);return i(l.add(f))},encodeToCurve(u,a){const o=t.encodeDST?t.encodeDST:{},s=Object.assign({},t,o,a),c=nv(u,1,s);return i(r(c[0]))},mapToCurve(u){if(!Array.isArray(u))throw new Error("expected array of bigints");for(const a of u)if(typeof a!="bigint")throw new Error("expected array of bigints");return i(r(u))}}}var rn={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},tv=BigInt(0),au=BigInt(1),ou=BigInt(2),iv=(e,n)=>(e+n/ou)/n;function rv(e){const n=rn.p,t=BigInt(3),r=BigInt(6),i=BigInt(11),u=BigInt(22),a=BigInt(23),o=BigInt(44),s=BigInt(88),c=e*e*e%n,l=c*c*e%n,f=Oe(l,t,n)*l%n,m=Oe(f,t,n)*l%n,d=Oe(m,ou,n)*c%n,v=Oe(d,i,n)*d%n,h=Oe(v,u,n)*v%n,b=Oe(h,o,n)*h%n,E=Oe(b,s,n)*b%n,g=Oe(E,o,n)*h%n,k=Oe(g,t,n)*l%n,_=Oe(k,a,n)*v%n,B=Oe(_,r,n)*c%n,J=Oe(B,ou,n);if(!yn.eql(yn.sqr(J),e))throw new Error("Cannot find square root");return J}var yn=uu(rn.p,void 0,void 0,{sqrt:rv}),su=ib({...rn,Fp:yn,lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const n=rn.n,t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-au*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),u=t,a=BigInt("0x100000000000000000000000000000000"),o=iv(u*e,n),s=iv(-r*e,n);let c=ye(e-o*t-s*i,n),l=ye(-o*r-s*u,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}}}},iu),uv={};function cu(e,...n){let t=uv[e];if(t===void 0){const r=iu(Uint8Array.from(e,i=>i.charCodeAt(0)));t=Se(r,r),uv[e]=t}return iu(Se(t,...n))}var Ss=e=>e.toBytes(!0).slice(1),Bs=e=>oi(e,32),As=e=>ye(e,rn.p),di=e=>ye(e,rn.n),ws=su.Point,_s=e=>e%ou===tv;function Cs(e){let n=su.utils.normPrivateKeyToScalar(e),t=ws.fromPrivateKey(n);return{scalar:_s(t.y)?n:di(-n),bytes:Ss(t)}}function av(e){_4("x",e,au,rn.p);const n=As(e*e),t=As(n*e+BigInt(7));let r=rv(t);_s(r)||(r=As(-r));const i=ws.fromAffine({x:e,y:r});return i.assertValidity(),i}var Bt=Un;function ov(...e){return di(Bt(cu("BIP0340/challenge",...e)))}function lb(e){return Cs(e).bytes}function db(e,n,t=S4(32)){const r=de("message",e),{bytes:i,scalar:u}=Cs(n),a=de("auxRand",t,32),o=Bs(u^Bt(cu("BIP0340/aux",a))),s=cu("BIP0340/nonce",o,i,r),c=di(Bt(s));if(c===tv)throw new Error("sign failed: k is zero");const{bytes:l,scalar:f}=Cs(c),m=ov(l,i,r),d=new Uint8Array(64);if(d.set(l,0),d.set(Bs(di(f+m*u)),32),!sv(d,r,i))throw new Error("sign: Invalid signature produced");return d}function sv(e,n,t){const r=de("signature",e,64),i=de("message",n),u=de("publicKey",t,32);try{const a=av(Bt(u)),o=Bt(r.subarray(0,32));if(!Es(o,au,rn.p))return!1;const s=Bt(r.subarray(32,64));if(!Es(s,au,rn.n))return!1;const c=ov(Bs(o),Ss(a),i),l=ws.BASE.multiplyUnsafe(s).add(a.multiplyUnsafe(di(-c))),{x:f,y:m}=l.toAffine();return!(l.is0()||!_s(m)||f!==o)}catch{return!1}}({getPublicKey:lb,sign:db,verify:sv,utils:{randomPrivateKey:su.utils.randomPrivateKey,lift_x:av,pointToBytes:Ss,numberToBytesBE:oi,bytesToNumberBE:Un,taggedHash:cu,mod:ye}});var fb=sb(yn,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(e=>e.map(n=>BigInt(n)))),mb=tb(yn,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:yn.create(BigInt("-11"))});cb(su.Point,e=>{const{x:n,y:t}=mb(yn.create(e[0]));return fb(n,t)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:yn.ORDER,m:1,k:128,expand:"xmd",hash:iu});/*! Bundled license information:
470
+ */function _y(e,n,t,r){if(typeof e.setBigUint64=="function")return e.setBigUint64(n,t,r);const i=BigInt(32),u=BigInt(4294967295),a=Number(t>>i&u),o=Number(t&u),s=r?4:0,c=r?0:4;e.setUint32(n+s,a,r),e.setUint32(n+c,o,r)}function nu(e,n,t){return e&n^~e&t}function N4(e,n,t){return e&n^e&t^n&t}var si=class extends vs{constructor(e,n,t,r){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=n,this.padOffset=t,this.isLE=r,this.buffer=new Uint8Array(e),this.view=fs(this.buffer)}update(e){yt(this),e=ai(e),ve(e);const{view:n,buffer:t,blockLen:r}=this,i=e.length;for(let u=0;u<i;){const a=Math.min(r-this.pos,i-u);if(a===r){const o=fs(e);for(;r<=i-u;u+=r)this.process(o,u);continue}t.set(e.subarray(u,u+a),this.pos),this.pos+=a,u+=a,this.pos===r&&(this.process(n,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){yt(this),y4(e,this),this.finished=!0;const{buffer:n,view:t,blockLen:r,isLE:i}=this;let{pos:u}=this;n[u++]=128,_e(this.buffer.subarray(u)),this.padOffset>r-u&&(this.process(t,0),u=0);for(let l=u;l<r;l++)n[l]=0;_y(t,r-8,BigInt(this.length*8),i),this.process(t,0);const a=fs(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:r,finished:i,destroyed:u,pos:a}=this;return e.destroyed=u,e.finished=i,e.length=r,e.pos=a,r%n&&e.buffer.set(t),e}clone(){return this._cloneInto()}},mn=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),vn=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),pe=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),he=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),Cy=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]),pn=new Uint32Array(64),T4=class extends si{constructor(e=32){super(64,e,8,!1),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}get(){const{A:e,B:n,C:t,D:r,E:i,F:u,G:a,H:o}=this;return[e,n,t,r,i,u,a,o]}set(e,n,t,r,i,u,a,o){this.A=e|0,this.B=n|0,this.C=t|0,this.D=r|0,this.E=i|0,this.F=u|0,this.G=a|0,this.H=o|0}process(e,n){for(let l=0;l<16;l++,n+=4)pn[l]=e.getUint32(n,!1);for(let l=16;l<64;l++){const f=pn[l-15],m=pn[l-2],d=He(f,7)^He(f,18)^f>>>3,v=He(m,17)^He(m,19)^m>>>10;pn[l]=v+pn[l-7]+d+pn[l-16]|0}let{A:t,B:r,C:i,D:u,E:a,F:o,G:s,H:c}=this;for(let l=0;l<64;l++){const f=He(a,6)^He(a,11)^He(a,25),m=c+f+nu(a,o,s)+Cy[l]+pn[l]|0,v=(He(t,2)^He(t,13)^He(t,22))+N4(t,r,i)|0;c=s,s=o,o=a,a=u+m|0,u=i,i=r,r=t,t=m+v|0}t=t+this.A|0,r=r+this.B|0,i=i+this.C|0,u=u+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,r,i,u,a,o,s,c)}roundClean(){_e(pn)}destroy(){this.set(0,0,0,0,0,0,0,0),_e(this.buffer)}},$y=class extends T4{constructor(){super(28),this.A=vn[0]|0,this.B=vn[1]|0,this.C=vn[2]|0,this.D=vn[3]|0,this.E=vn[4]|0,this.F=vn[5]|0,this.G=vn[6]|0,this.H=vn[7]|0}},O4=I4(["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))),Iy=O4[0],xy=O4[1],hn=new Uint32Array(80),gn=new Uint32Array(80),tu=class extends si{constructor(e=64){super(128,e,16,!1),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}get(){const{Ah:e,Al:n,Bh:t,Bl:r,Ch:i,Cl:u,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,r,i,u,a,o,s,c,l,f,m,d,v,h]}set(e,n,t,r,i,u,a,o,s,c,l,f,m,d,v,h){this.Ah=e|0,this.Al=n|0,this.Bh=t|0,this.Bl=r|0,this.Ch=i|0,this.Cl=u|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 g=0;g<16;g++,n+=4)hn[g]=e.getUint32(n),gn[g]=e.getUint32(n+=4);for(let g=16;g<80;g++){const k=hn[g-15]|0,_=gn[g-15]|0,B=bt(k,_,1)^bt(k,_,8)^x4(k,_,7),J=kt(k,_,1)^kt(k,_,8)^F4(k,_,7),q=hn[g-2]|0,F=gn[g-2]|0,y=bt(q,F,19)^Xr(q,F,61)^x4(q,F,6),$=kt(q,F,19)^eu(q,F,61)^F4(q,F,6),D=Sy(J,$,gn[g-7],gn[g-16]),A=By(D,B,y,hn[g-7],hn[g-16]);hn[g]=A|0,gn[g]=D|0}let{Ah:t,Al:r,Bh:i,Bl:u,Ch:a,Cl:o,Dh:s,Dl:c,Eh:l,El:f,Fh:m,Fl:d,Gh:v,Gl:h,Hh:b,Hl:E}=this;for(let g=0;g<80;g++){const k=bt(l,f,14)^bt(l,f,18)^Xr(l,f,41),_=kt(l,f,14)^kt(l,f,18)^eu(l,f,41),B=l&m^~l&v,J=f&d^~f&h,q=Ay(E,_,J,xy[g],gn[g]),F=wy(q,b,k,B,Iy[g],hn[g]),y=q|0,$=bt(t,r,28)^Xr(t,r,34)^Xr(t,r,39),D=kt(t,r,28)^eu(t,r,34)^eu(t,r,39),A=t&i^t&a^i&a,x=r&u^r&o^u&o;b=v|0,E=h|0,v=m|0,h=d|0,m=l|0,d=f|0,{h:l,l:f}=en(s|0,c|0,F|0,y|0),s=a|0,c=o|0,a=i|0,o=u|0,i=t|0,u=r|0;const T=ky(y,D,x);t=Dy(T,F,$,A),r=T|0}({h:t,l:r}=en(this.Ah|0,this.Al|0,t|0,r|0)),{h:i,l:u}=en(this.Bh|0,this.Bl|0,i|0,u|0),{h:a,l:o}=en(this.Ch|0,this.Cl|0,a|0,o|0),{h:s,l:c}=en(this.Dh|0,this.Dl|0,s|0,c|0),{h:l,l:f}=en(this.Eh|0,this.El|0,l|0,f|0),{h:m,l:d}=en(this.Fh|0,this.Fl|0,m|0,d|0),{h:v,l:h}=en(this.Gh|0,this.Gl|0,v|0,h|0),{h:b,l:E}=en(this.Hh|0,this.Hl|0,b|0,E|0),this.set(t,r,i,u,a,o,s,c,l,f,m,d,v,h,b,E)}roundClean(){_e(hn,gn)}destroy(){_e(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}},Fy=class extends tu{constructor(){super(48),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}},ge=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),Ee=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]),Ny=class extends tu{constructor(){super(28),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}},Ty=class extends tu{constructor(){super(32),this.Ah=Ee[0]|0,this.Al=Ee[1]|0,this.Bh=Ee[2]|0,this.Bl=Ee[3]|0,this.Ch=Ee[4]|0,this.Cl=Ee[5]|0,this.Dh=Ee[6]|0,this.Dl=Ee[7]|0,this.Eh=Ee[8]|0,this.El=Ee[9]|0,this.Fh=Ee[10]|0,this.Fl=Ee[11]|0,this.Gh=Ee[12]|0,this.Gl=Ee[13]|0,this.Hh=Ee[14]|0,this.Hl=Ee[15]|0}},iu=Qe(()=>new T4);Qe(()=>new $y),Qe(()=>new tu),Qe(()=>new Fy),Qe(()=>new Ty),Qe(()=>new Ny);var z4=class extends vs{constructor(e,n){super(),this.finished=!1,this.destroyed=!1,ay(e);const t=ai(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 r=this.blockLen,i=new Uint8Array(r);i.set(t.length>r?e.create().update(t).digest():t);for(let u=0;u<i.length;u++)i[u]^=54;this.iHash.update(i),this.oHash=e.create();for(let u=0;u<i.length;u++)i[u]^=106;this.oHash.update(i),_e(i)}update(e){return yt(this),this.iHash.update(e),this}digestInto(e){yt(this),ve(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:r,destroyed:i,blockLen:u,outputLen:a}=this;return e=e,e.finished=r,e.destroyed=i,e.blockLen=u,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()}},U4=(e,n,t)=>new z4(e,n).update(t).digest();U4.create=(e,n)=>new z4(e,n);var Ce=BigInt(0),Be=BigInt(1),Pn=BigInt(2),Oy=BigInt(3),P4=BigInt(4),R4=BigInt(5),j4=BigInt(8);function ye(e,n){const t=e%n;return t>=Ce?t:n+t}function Oe(e,n,t){let r=e;for(;n-- >Ce;)r*=r,r%=t;return r}function L4(e,n){if(e===Ce)throw new Error("invert: expected non-zero number");if(n<=Ce)throw new Error("invert: expected positive modulus, got "+n);let t=ye(e,n),r=n,i=Ce,u=Be;for(;t!==Ce;){const o=r/t,s=r%t,c=i-u*o;r=t,t=s,i=u,u=c}if(r!==Be)throw new Error("invert: does not exist");return ye(i,n)}function Z4(e,n){const t=(e.ORDER+Be)/P4,r=e.pow(n,t);if(!e.eql(e.sqr(r),n))throw new Error("Cannot find square root");return r}function zy(e,n){const t=(e.ORDER-R4)/j4,r=e.mul(n,Pn),i=e.pow(r,t),u=e.mul(n,i),a=e.mul(e.mul(u,Pn),i),o=e.mul(u,e.sub(a,e.ONE));if(!e.eql(e.sqr(o),n))throw new Error("Cannot find square root");return o}function Uy(e){if(e<BigInt(3))throw new Error("sqrt is not defined for small field");let n=e-Be,t=0;for(;n%Pn===Ce;)n/=Pn,t++;let r=Pn;const i=uu(e);for(;q4(i,r)===1;)if(r++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(t===1)return Z4;let u=i.pow(r,n);const a=(n+Be)/Pn;return function(s,c){if(s.is0(c))return c;if(q4(s,c)!==1)throw new Error("Cannot find square root");let l=t,f=s.mul(s.ONE,u),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 b=Be<<BigInt(l-v-1),E=s.pow(f,b);l=v,f=s.sqr(E),m=s.mul(m,f),d=s.mul(d,E)}return d}}function Py(e){return e%P4===Oy?Z4:e%j4===R4?zy:Uy(e)}var Ry=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function V4(e){const n={ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"},t=Ry.reduce((r,i)=>(r[i]="function",r),n);return Wr(e,t),e}function jy(e,n,t){if(t<Ce)throw new Error("invalid exponent, negatives unsupported");if(t===Ce)return e.ONE;if(t===Be)return n;let r=e.ONE,i=n;for(;t>Ce;)t&Be&&(r=e.mul(r,i)),i=e.sqr(i),t>>=Be;return r}function ru(e,n,t=!1){const r=new Array(n.length).fill(t?e.ZERO:void 0),i=n.reduce((a,o,s)=>e.is0(o)?a:(r[s]=a,e.mul(a,o)),e.ONE),u=e.inv(i);return n.reduceRight((a,o,s)=>e.is0(o)?a:(r[s]=e.mul(a,r[s]),e.mul(a,o)),u),r}function q4(e,n){const t=(e.ORDER-Be)/Pn,r=e.pow(n,t),i=e.eql(r,e.ONE),u=e.eql(r,e.ZERO),a=e.eql(r,e.neg(e.ONE));if(!i&&!u&&!a)throw new Error("invalid Legendre symbol result");return i?1:u?0:-1}function Ly(e,n){n!==void 0&&ri(n);const t=n!==void 0?n:e.toString(2).length,r=Math.ceil(t/8);return{nBitLength:t,nByteLength:r}}function uu(e,n,t=!1,r={}){if(e<=Ce)throw new Error("invalid field: expected ORDER > 0, got "+e);let i,u;if(typeof n=="object"&&n!=null){if(r.sqrt||t)throw new Error("cannot specify opts in two arguments");const l=n;l.BITS&&(i=l.BITS),l.sqrt&&(u=l.sqrt),typeof l.isLE=="boolean"&&(t=l.isLE)}else typeof n=="number"&&(i=n),r.sqrt&&(u=r.sqrt);const{nBitLength:a,nByteLength:o}=Ly(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:Kr(a),ZERO:Ce,ONE:Be,create:l=>ye(l,e),isValid:l=>{if(typeof l!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof l);return Ce<=l&&l<e},is0:l=>l===Ce,isValidNot0:l=>!c.is0(l)&&c.isValid(l),isOdd:l=>(l&Be)===Be,neg:l=>ye(-l,e),eql:(l,f)=>l===f,sqr:l=>ye(l*l,e),add:(l,f)=>ye(l+f,e),sub:(l,f)=>ye(l-f,e),mul:(l,f)=>ye(l*f,e),pow:(l,f)=>jy(c,l,f),div:(l,f)=>ye(l*L4(f,e),e),sqrN:l=>l*l,addN:(l,f)=>l+f,subN:(l,f)=>l-f,mulN:(l,f)=>l*f,inv:l=>L4(l,e),sqrt:u||(l=>(s||(s=Py(e)),s(c,l))),toBytes:l=>t?w4(l,o):oi(l,o),fromBytes:l=>{if(l.length!==o)throw new Error("Field.fromBytes: expected "+o+" bytes, got "+l.length);return t?A4(l):Un(l)},invertBatch:l=>ru(c,l),cmov:(l,f,m)=>m?f:l});return Object.freeze(c)}function M4(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 G4(e){const n=M4(e);return n+Math.ceil(n/2)}function Zy(e,n,t=!1){const r=e.length,i=M4(n),u=G4(n);if(r<16||r<u||r>1024)throw new Error("expected "+u+"-1024 bytes of input, got "+r);const a=t?A4(e):Un(e),o=ye(a,n-Be)+Be;return t?w4(o,i):oi(o,i)}var Dt=BigInt(0),Rn=BigInt(1);function ci(e,n){const t=n.negate();return e?t:n}function Vy(e,n,t){const r=a=>a.pz,i=ru(e.Fp,t.map(r));return t.map((a,o)=>a.toAffine(i[o])).map(e.fromAffine)}function J4(e,n){if(!Number.isSafeInteger(e)||e<=0||e>n)throw new Error("invalid window size, expected [1.."+n+"], got W="+e)}function ys(e,n){J4(e,n);const t=Math.ceil(n/e)+1,r=2**(e-1),i=2**e,u=Kr(e),a=BigInt(e);return{windows:t,windowSize:r,mask:u,maxNumber:i,shiftBy:a}}function H4(e,n,t){const{windowSize:r,mask:i,maxNumber:u,shiftBy:a}=t;let o=Number(e&i),s=e>>a;o>r&&(o-=u,s+=Rn);const c=n*r,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 qy(e,n){if(!Array.isArray(e))throw new Error("array expected");e.forEach((t,r)=>{if(!(t instanceof n))throw new Error("invalid point at index "+r)})}function My(e,n){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((t,r)=>{if(!n.isValid(t))throw new Error("invalid scalar at index "+r)})}var bs=new WeakMap,Q4=new WeakMap;function ks(e){return Q4.get(e)||1}function K4(e){if(e!==Dt)throw new Error("invalid wNAF")}function Gy(e,n){return{constTimeNegate:ci,hasPrecomputes(t){return ks(t)!==1},unsafeLadder(t,r,i=e.ZERO){let u=t;for(;r>Dt;)r&Rn&&(i=i.add(u)),u=u.double(),r>>=Rn;return i},precomputeWindow(t,r){const{windows:i,windowSize:u}=ys(r,n),a=[];let o=t,s=o;for(let c=0;c<i;c++){s=o,a.push(s);for(let l=1;l<u;l++)s=s.add(o),a.push(s);o=s.double()}return a},wNAF(t,r,i){let u=e.ZERO,a=e.BASE;const o=ys(t,n);for(let s=0;s<o.windows;s++){const{nextN:c,offset:l,isZero:f,isNeg:m,isNegF:d,offsetF:v}=H4(i,s,o);i=c,f?a=a.add(ci(d,r[v])):u=u.add(ci(m,r[l]))}return K4(i),{p:u,f:a}},wNAFUnsafe(t,r,i,u=e.ZERO){const a=ys(t,n);for(let o=0;o<a.windows&&i!==Dt;o++){const{nextN:s,offset:c,isZero:l,isNeg:f}=H4(i,o,a);if(i=s,!l){const m=r[c];u=u.add(f?m.negate():m)}}return K4(i),u},getPrecomputes(t,r,i){let u=bs.get(r);return u||(u=this.precomputeWindow(r,t),t!==1&&(typeof i=="function"&&(u=i(u)),bs.set(r,u))),u},wNAFCached(t,r,i){const u=ks(t);return this.wNAF(u,this.getPrecomputes(u,t,i),r)},wNAFCachedUnsafe(t,r,i,u){const a=ks(t);return a===1?this.unsafeLadder(t,r,u):this.wNAFUnsafe(a,this.getPrecomputes(a,t,i),r,u)},setWindowSize(t,r){J4(r,n),Q4.set(t,r),bs.delete(t)}}}function Jy(e,n,t,r){let i=n,u=e.ZERO,a=e.ZERO;for(;t>Dt||r>Dt;)t&Rn&&(u=u.add(i)),r&Rn&&(a=a.add(i)),i=i.double(),t>>=Rn,r>>=Rn;return{p1:u,p2:a}}function Hy(e,n,t,r){qy(t,e),My(r,n);const i=t.length,u=r.length;if(i!==u)throw new Error("arrays of points and scalars must have equal length");const a=e.ZERO,o=my(BigInt(i));let s=1;o>12?s=o-3:o>4?s=o-2:o>0&&(s=2);const c=Kr(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<u;h++){const b=r[h],E=Number(b>>BigInt(d)&c);l[E]=l[E].add(t[h])}let v=a;for(let h=l.length-1,b=a;h>0;h--)b=b.add(l[h]),v=v.add(b);if(m=m.add(v),d!==0)for(let h=0;h<s;h++)m=m.double()}return m}function W4(e,n){if(n){if(n.ORDER!==e)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return V4(n),n}else return uu(e)}function Qy(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>Dt))throw new Error(`CURVE.${o} must be positive bigint`)}const r=W4(n.p,t.Fp),i=W4(n.n,t.Fn),a=["Gx","Gy","a","b"];for(const o of a)if(!r.isValid(n[o]))throw new Error(`CURVE.${o} must be valid field element of CURVE.Fp`);return{Fp:r,Fn:i}}function Y4(e){e.lowS!==void 0&&Hr("lowS",e.lowS),e.prehash!==void 0&&Hr("prehash",e.prehash)}var Ky=class extends Error{constructor(e=""){super(e)}},nn={Err:Ky,_tlv:{encode:(e,n)=>{const{Err:t}=nn;if(e<0||e>256)throw new t("tlv.encode: wrong tag");if(n.length&1)throw new t("tlv.encode: unpadded data");const r=n.length/2,i=Qr(r);if(i.length/2&128)throw new t("tlv.encode: long form length too big");const u=r>127?Qr(i.length/2|128):"";return Qr(e)+u+i+n},decode(e,n){const{Err:t}=nn;let r=0;if(e<0||e>256)throw new t("tlv.encode: wrong tag");if(n.length<2||n[r++]!==e)throw new t("tlv.decode: wrong tlv");const i=n[r++],u=!!(i&128);let a=0;if(!u)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(r,r+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(r+=s,a<128)throw new t("tlv.decode(long): not minimal encoding")}const o=n.subarray(r,r+a);if(o.length!==a)throw new t("tlv.decode: wrong value length");return{v:o,l:n.subarray(r+a)}}},_int:{encode(e){const{Err:n}=nn;if(e<jn)throw new n("integer: negative integers are not allowed");let t=Qr(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}=nn;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 Un(e)}},toSig(e){const{Err:n,_int:t,_tlv:r}=nn,i=de("signature",e),{v:u,l:a}=r.decode(48,i);if(a.length)throw new n("invalid signature: left bytes after parsing");const{v:o,l:s}=r.decode(2,u),{v:c,l}=r.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}=nn,r=n.encode(2,t.encode(e.r)),i=n.encode(2,t.encode(e.s)),u=r+i;return n.encode(48,u)}},jn=BigInt(0),Ae=BigInt(1),tn=BigInt(2),St=BigInt(3),Ds=BigInt(4);function Wy(e,n,t){function r(i){const u=e.sqr(i),a=e.mul(u,i);return e.add(e.add(a,e.mul(i,n)),t)}return r}function X4(e,n,t){const{BYTES:r}=e;function i(u){let a;if(typeof u=="bigint")a=u;else{let o=de("private key",u);if(n){if(!n.includes(o.length*2))throw new Error("invalid private key");const s=new Uint8Array(r);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 ${r}, got ${typeof u}`)}}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 Yy(e,n={}){const{Fp:t,Fn:r}=Qy("weierstrass",e,n),{h:i,n:u}=e;Wr(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,y,$){const{x:D,y:A}=y.toAffine(),x=t.toBytes(D);if(Hr("isCompressed",$),$){o();const T=!t.isOdd(A);return Se(ev(T),x)}else return Se(Uint8Array.of(4),x,t.toBytes(A))}function c(F){ve(F);const y=t.BYTES,$=y+1,D=2*y+1,A=F.length,x=F[0],T=F.subarray(1);if(A===$&&(x===2||x===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 R;try{R=t.sqrt(O)}catch(W){const j=W instanceof Error?": "+W.message:"";throw new Error("bad point: is not on curve, sqrt error"+j)}o();const U=t.isOdd(R);return(x&1)===1!==U&&(R=t.neg(R)),{x:N,y:R}}else if(A===D&&x===4){const N=t.fromBytes(T.subarray(y*0,y*1)),O=t.fromBytes(T.subarray(y*1,y*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=Wy(t,e.a,e.b);function d(F,y){const $=t.sqr(y),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,St),Ds),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 b(F,y,$=!1){if(!t.isValid(y)||$&&t.is0(y))throw new Error(`bad point coordinate ${F}`);return y}function E(F){if(!(F instanceof B))throw new Error("ProjectivePoint expected")}const g=C4((F,y)=>{const{px:$,py:D,pz:A}=F;if(t.eql(A,t.ONE))return{x:$,y:D};const x=F.is0();y==null&&(y=x?t.ONE:t.inv(A));const T=t.mul($,y),N=t.mul(D,y),O=t.mul(A,y);if(x)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=C4(F=>{if(F.is0()){if(n.allowInfinityPoint&&!t.is0(F.py))return;throw new Error("bad point: ZERO")}const{x:y,y:$}=F.toAffine();if(!t.isValid(y)||!t.isValid($))throw new Error("bad point: x or y not field elements");if(!d(y,$))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,y,$,D,A){return $=new B(t.mul($.px,F),$.py,$.pz),y=ci(D,y),$=ci(A,$),y.add($)}class B{constructor(y,$,D){this.px=b("x",y),this.py=b("y",$,!0),this.pz=b("z",D),Object.freeze(this)}static fromAffine(y){const{x:$,y:D}=y||{};if(!y||!t.isValid($)||!t.isValid(D))throw new Error("invalid affine point");if(y 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(y){return Vy(B,"pz",y)}static fromBytes(y){return ve(y),B.fromHex(y)}static fromHex(y){const $=B.fromAffine(f(de("pointHex",y)));return $.assertValidity(),$}static fromPrivateKey(y){const $=X4(r,n.allowedPrivateKeyLengths,n.wrapPrivateKey);return B.BASE.multiply($(y))}static msm(y,$){return Hy(B,r,y,$)}precompute(y=8,$=!0){return q.setWindowSize(this,y),$||this.multiply(St),this}_setWindowSize(y){this.precompute(y)}assertValidity(){k(this)}hasEvenY(){const{y}=this.toAffine();if(!t.isOdd)throw new Error("Field doesn't support isOdd");return!t.isOdd(y)}equals(y){E(y);const{px:$,py:D,pz:A}=this,{px:x,py:T,pz:N}=y,O=t.eql(t.mul($,N),t.mul(x,A)),R=t.eql(t.mul(D,N),t.mul(T,A));return O&&R}negate(){return new B(this.px,t.neg(this.py),this.pz)}double(){const{a:y,b:$}=e,D=t.mul($,St),{px:A,py:x,pz:T}=this;let N=t.ZERO,O=t.ZERO,R=t.ZERO,U=t.mul(A,A),ue=t.mul(x,x),W=t.mul(T,T),j=t.mul(A,x);return j=t.add(j,j),R=t.mul(A,T),R=t.add(R,R),N=t.mul(y,R),O=t.mul(D,W),O=t.add(N,O),N=t.sub(ue,O),O=t.add(ue,O),O=t.mul(N,O),N=t.mul(j,N),R=t.mul(D,R),W=t.mul(y,W),j=t.sub(U,W),j=t.mul(y,j),j=t.add(j,R),R=t.add(U,U),U=t.add(R,U),U=t.add(U,W),U=t.mul(U,j),O=t.add(O,U),W=t.mul(x,T),W=t.add(W,W),U=t.mul(W,j),N=t.sub(N,U),R=t.mul(W,ue),R=t.add(R,R),R=t.add(R,R),new B(N,O,R)}add(y){E(y);const{px:$,py:D,pz:A}=this,{px:x,py:T,pz:N}=y;let O=t.ZERO,R=t.ZERO,U=t.ZERO;const ue=e.a,W=t.mul(e.b,St);let j=t.mul($,x),oe=t.mul(D,T),se=t.mul(A,N),fe=t.add($,D),X=t.add(x,T);fe=t.mul(fe,X),X=t.add(j,oe),fe=t.sub(fe,X),X=t.add($,A);let ke=t.add(x,N);return X=t.mul(X,ke),ke=t.add(j,se),X=t.sub(X,ke),ke=t.add(D,A),O=t.add(T,N),ke=t.mul(ke,O),O=t.add(oe,se),ke=t.sub(ke,O),U=t.mul(ue,X),O=t.mul(W,se),U=t.add(O,U),O=t.sub(oe,U),U=t.add(oe,U),R=t.mul(O,U),oe=t.add(j,j),oe=t.add(oe,j),se=t.mul(ue,se),X=t.mul(W,X),oe=t.add(oe,se),se=t.sub(j,se),se=t.mul(ue,se),X=t.add(X,se),j=t.mul(oe,X),R=t.add(R,j),j=t.mul(ke,X),O=t.mul(fe,O),O=t.sub(O,j),j=t.mul(fe,oe),U=t.mul(ke,U),U=t.add(U,j),new B(O,R,U)}subtract(y){return this.add(y.negate())}is0(){return this.equals(B.ZERO)}multiply(y){const{endo:$}=n;if(!r.isValidNot0(y))throw new Error("invalid scalar: out of range");let D,A;const x=T=>q.wNAFCached(this,T,B.normalizeZ);if($){const{k1neg:T,k1:N,k2neg:O,k2:R}=$.splitScalar(y),{p:U,f:ue}=x(N),{p:W,f:j}=x(R);A=ue.add(j),D=_($.beta,U,W,T,O)}else{const{p:T,f:N}=x(y);D=T,A=N}return B.normalizeZ([D,A])[0]}multiplyUnsafe(y){const{endo:$}=n,D=this;if(!r.isValid(y))throw new Error("invalid scalar: out of range");if(y===jn||D.is0())return B.ZERO;if(y===Ae)return D;if(q.hasPrecomputes(this))return this.multiply(y);if($){const{k1neg:A,k1:x,k2neg:T,k2:N}=$.splitScalar(y),{p1:O,p2:R}=Jy(B,D,x,N);return _($.beta,O,R,A,T)}else return q.wNAFCachedUnsafe(D,y)}multiplyAndAddUnsafe(y,$,D){const A=this.multiplyUnsafe($).add(y.multiplyUnsafe(D));return A.is0()?void 0:A}toAffine(y){return g(this,y)}isTorsionFree(){const{isTorsionFree:y}=n;return i===Ae?!0:y?y(B,this):q.wNAFCachedUnsafe(this,u).is0()}clearCofactor(){const{clearCofactor:y}=n;return i===Ae?this:y?y(B,this):this.multiplyUnsafe(i)}toBytes(y=!0){return Hr("isCompressed",y),this.assertValidity(),l(B,this,y)}toRawBytes(y=!0){return this.toBytes(y)}toHex(y=!0){return ui(this.toBytes(y))}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=r;const J=r.BITS,q=Gy(B,n.endo?Math.ceil(J/2):J);return B}function ev(e){return Uint8Array.of(e?2:3)}function Xy(e,n,t={}){Wr(n,{hash:"function"},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});const r=n.randomBytes||S4,i=n.hmac||((D,...A)=>U4(n.hash,D,Se(...A))),{Fp:u,Fn:a}=e,{ORDER:o,BITS:s}=a;function c(D){const A=o>>Ae;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,x,T){f("r",A),f("s",x),this.r=A,this.s=x,T!=null&&(this.recovery=T),Object.freeze(this)}static fromCompact(A){const x=a.BYTES,T=de("compactSignature",A,x*2);return new m(a.fromBytes(T.subarray(0,x)),a.fromBytes(T.subarray(x,x*2)))}static fromDER(A){const{r:x,s:T}=nn.toSig(de("DER",A));return new m(x,T)}assertValidity(){}addRecoveryBit(A){return new m(this.r,this.s,A)}recoverPublicKey(A){const x=u.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*tn<x&&O>1)throw new Error("recovery id is ambiguous for h>1 curve");const U=O===2||O===3?T+o:T;if(!u.isValid(U))throw new Error("recovery id 2 or 3 invalid");const ue=u.toBytes(U),W=e.fromHex(Se(ev((O&1)===0),ue)),j=a.inv(U),oe=k(de("msgHash",A)),se=a.create(-oe*j),fe=a.create(N*j),X=e.BASE.multiplyUnsafe(se).add(W.multiplyUnsafe(fe));if(X.is0())throw new Error("point at infinify");return X.assertValidity(),X}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 Se(a.toBytes(this.r),a.toBytes(this.s));if(A==="der")return ms(nn.hexFromSig(this));throw new Error("invalid format")}toDERRawBytes(){return this.toBytes("der")}toDERHex(){return ui(this.toBytes("der"))}toCompactRawBytes(){return this.toBytes("compact")}toCompactHex(){return ui(this.toBytes("compact"))}}const d=X4(a,t.allowedPrivateKeyLengths,t.wrapPrivateKey),v={isValidPrivateKey(D){try{return d(D),!0}catch{return!1}},normPrivateKeyToScalar:d,randomPrivateKey:()=>{const D=o;return Zy(r(G4(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 b(D){if(typeof D=="bigint")return!1;if(D instanceof e)return!0;const x=de("key",D).length,T=u.BYTES,N=T+1,O=2*T+1;if(!(t.allowedPrivateKeyLengths||a.BYTES===N))return x===N||x===O}function E(D,A,x=!0){if(b(D)===!0)throw new Error("first arg must be private key");if(b(A)===!1)throw new Error("second arg must be public key");return e.fromHex(A).multiply(d(D)).toBytes(x)}const g=n.bits2int||function(D){if(D.length>8192)throw new Error("input is too large");const A=Un(D),x=D.length*8-s;return x>0?A>>BigInt(x):A},k=n.bits2int_modN||function(D){return a.create(g(D))},_=Kr(s);function B(D){return _4("num < 2^"+s,D,jn,_),a.toBytes(D)}function J(D,A,x=q){if(["recovered","canonical"].some(fe=>fe in x))throw new Error("sign() legacy options not supported");const{hash:T}=n;let{lowS:N,prehash:O,extraEntropy:R}=x;N==null&&(N=!0),D=de("msgHash",D),Y4(x),O&&(D=de("prehashed msgHash",T(D)));const U=k(D),ue=d(A),W=[B(ue),B(U)];if(R!=null&&R!==!1){const fe=R===!0?r(u.BYTES):R;W.push(de("extraEntropy",fe))}const j=Se(...W),oe=U;function se(fe){const X=g(fe);if(!a.isValidNot0(X))return;const ke=a.inv(X),Ft=e.BASE.multiply(X).toAffine(),Ln=a.create(Ft.x);if(Ln===jn)return;const Bn=a.create(ke*a.create(oe+Ln*ue));if(Bn===jn)return;let _u=(Ft.x===Ln?0:2)|Number(Ft.y&Ae),Zn=Bn;return N&&c(Bn)&&(Zn=l(Bn),_u^=1),new m(Ln,Zn,_u)}return{seed:j,k2sig:se}}const q={lowS:n.lowS,prehash:!1},F={lowS:n.lowS,prehash:!1};function y(D,A,x=q){const{seed:T,k2sig:N}=J(D,A,x);return vy(n.hash.outputLen,a.BYTES,i)(T,N)}e.BASE.precompute(8);function $(D,A,x,T=F){const N=D;A=de("msgHash",A),x=de("publicKey",x),Y4(T);const{lowS:O,prehash:R,format:U}=T;if("strict"in T)throw new Error("options.strict was renamed to lowS");if(U!==void 0&&!["compact","der","js"].includes(U))throw new Error('format must be "compact", "der" or "js"');const ue=typeof N=="string"||Gr(N),W=!ue&&!U&&typeof N=="object"&&N!==null&&typeof N.r=="bigint"&&typeof N.s=="bigint";if(!ue&&!W)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let j,oe;try{if(W)if(U===void 0||U==="js")j=new m(N.r,N.s);else throw new Error("invalid format");if(ue){try{U!=="compact"&&(j=m.fromDER(N))}catch(Zn){if(!(Zn instanceof nn.Err))throw Zn}!j&&U!=="der"&&(j=m.fromCompact(N))}oe=e.fromHex(x)}catch{return!1}if(!j||O&&j.hasHighS())return!1;R&&(A=n.hash(A));const{r:se,s:fe}=j,X=k(A),ke=a.inv(fe),Ft=a.create(X*ke),Ln=a.create(se*ke),Bn=e.BASE.multiplyUnsafe(Ft).add(oe.multiplyUnsafe(Ln));return Bn.is0()?!1:a.create(Bn.x)===se}return Object.freeze({getPublicKey:h,getSharedSecret:E,sign:y,verify:$,utils:v,Point:e,Signature:m})}function eb(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,r=uu(n.n,e.nBitLength),i={Fp:t,Fn:r,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 nb(e){const{CURVE:n,curveOpts:t}=eb(e),r={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:r}}function tb(e,n){return Object.assign({},n,{ProjectivePoint:n.Point,CURVE:e})}function ib(e){const{CURVE:n,curveOpts:t,ecdsaOpts:r}=nb(e),i=Yy(n,t),u=Xy(i,r,t);return tb(e,u)}function rb(e,n){const t=e.ORDER;let r=jn;for(let v=t-Ae;v%tn===jn;v/=tn)r+=Ae;const i=r,u=tn<<i-Ae-Ae,a=u*tn,o=(t-Ae)/a,s=(o-Ae)/tn,c=a-Ae,l=u,f=e.pow(n,o),m=e.pow(n,(o+Ae)/tn);let d=(v,h)=>{let b=f,E=e.pow(h,c),g=e.sqr(E);g=e.mul(g,h);let k=e.mul(v,g);k=e.pow(k,s),k=e.mul(k,E),E=e.mul(k,h),g=e.mul(k,v);let _=e.mul(g,E);k=e.pow(_,l);let B=e.eql(k,e.ONE);E=e.mul(g,m),k=e.mul(_,b),g=e.cmov(E,g,B),_=e.cmov(k,_,B);for(let J=i;J>Ae;J--){let q=J-tn;q=tn<<q-Ae;let F=e.pow(_,q);const y=e.eql(F,e.ONE);E=e.mul(g,b),b=e.mul(b,b),F=e.mul(_,b),g=e.cmov(E,g,y),_=e.cmov(F,_,y)}return{isValid:B,value:g}};if(e.ORDER%Ds===St){const v=(e.ORDER-St)/Ds,h=e.sqrt(e.neg(n));d=(b,E)=>{let g=e.sqr(E);const k=e.mul(b,E);g=e.mul(g,k);let _=e.pow(g,v);_=e.mul(_,k);const B=e.mul(_,h),J=e.mul(e.sqr(_),E),q=e.eql(J,b);let F=e.cmov(B,_,q);return{isValid:q,value:F}}}return d}function ub(e,n){V4(e);const{A:t,B:r,Z:i}=n;if(!e.isValid(t)||!e.isValid(r)||!e.isValid(i))throw new Error("mapToCurveSimpleSWU: invalid opts");const u=rb(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,r),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,r),s=e.add(s,f),d=e.mul(o,c);const{isValid:h,value:b}=u(s,m);v=e.mul(o,a),v=e.mul(v,b),d=e.cmov(d,c,h),v=e.cmov(v,b,h);const E=e.isOdd(a)===e.isOdd(v);v=e.cmov(e.neg(v),v,E);const g=ru(e,[l],!0)[0];return d=e.mul(d,g),{x:d,y:v}}}function ab(e,n){const t=r=>ib({...e,hash:r});return{...t(n),create:t}}var ob=Un;function En(e,n){if(li(e),li(n),e<0||e>=1<<8*n)throw new Error("invalid I2OSP input: "+e);const t=Array.from({length:n}).fill(0);for(let r=n-1;r>=0;r--)t[r]=e&255,e>>>=8;return new Uint8Array(t)}function sb(e,n){const t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e[r]^n[r];return t}function li(e){if(!Number.isSafeInteger(e))throw new Error("number expected")}function cb(e,n,t,r){ve(e),ve(n),li(t),n.length>255&&(n=r(Se(Jr("H2C-OVERSIZE-DST-"),n)));const{outputLen:i,blockLen:u}=r,a=Math.ceil(t/i);if(t>65535||a>255)throw new Error("expand_message_xmd: invalid lenInBytes");const o=Se(n,En(n.length,1)),s=En(0,u),c=En(t,2),l=new Array(a),f=r(Se(s,e,c,En(0,1),o));l[0]=r(Se(f,En(1,1),o));for(let d=1;d<=a;d++){const v=[sb(f,l[d-1]),En(d+1,1),o];l[d]=r(Se(...v))}return Se(...l).slice(0,t)}function lb(e,n,t,r,i){if(ve(e),ve(n),li(t),n.length>255){const u=Math.ceil(2*r/8);n=i.create({dkLen:u}).update(Jr("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(En(t,2)).update(n).update(En(n.length,1)).digest()}function nv(e,n,t){Wr(t,{p:"bigint",m:"number",k:"number",hash:"function"});const{p:r,k:i,m:u,hash:a,expand:o,DST:s}=t;if(!Gr(s)&&typeof s!="string")throw new Error("DST must be string or uint8array");if(!py(t.hash))throw new Error("expected valid hash");ve(e),li(n);const c=typeof s=="string"?Jr(s):s,l=r.toString(2).length,f=Math.ceil((l+i)/8),m=n*u*f;let d;if(o==="xmd")d=cb(e,c,m,a);else if(o==="xof")d=lb(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 b=new Array(u);for(let E=0;E<u;E++){const g=f*(E+h*u),k=d.subarray(g,g+f);b[E]=ye(ob(k),r)}v[h]=b}return v}function db(e,n){const t=n.map(r=>Array.from(r).reverse());return(r,i)=>{const[u,a,o,s]=t.map(f=>f.reduce((m,d)=>e.add(e.mul(m,r),d))),[c,l]=ru(e,[a,s],!0);return r=e.mul(u,c),i=e.mul(i,e.mul(o,l)),{x:r,y:i}}}function fb(e,n,t){if(typeof n!="function")throw new Error("mapToCurve() must be defined");function r(u){return e.fromAffine(n(u))}function i(u){const a=u.clearCofactor();return a.equals(e.ZERO)?e.ZERO:(a.assertValidity(),a)}return{defaults:t,hashToCurve(u,a){const o=t.DST?t.DST:{},s=Object.assign({},t,o,a),c=nv(u,2,s),l=r(c[0]),f=r(c[1]);return i(l.add(f))},encodeToCurve(u,a){const o=t.encodeDST?t.encodeDST:{},s=Object.assign({},t,o,a),c=nv(u,1,s);return i(r(c[0]))},mapToCurve(u){if(!Array.isArray(u))throw new Error("expected array of bigints");for(const a of u)if(typeof a!="bigint")throw new Error("expected array of bigints");return i(r(u))}}}var rn={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},tv=BigInt(0),au=BigInt(1),ou=BigInt(2),iv=(e,n)=>(e+n/ou)/n;function rv(e){const n=rn.p,t=BigInt(3),r=BigInt(6),i=BigInt(11),u=BigInt(22),a=BigInt(23),o=BigInt(44),s=BigInt(88),c=e*e*e%n,l=c*c*e%n,f=Oe(l,t,n)*l%n,m=Oe(f,t,n)*l%n,d=Oe(m,ou,n)*c%n,v=Oe(d,i,n)*d%n,h=Oe(v,u,n)*v%n,b=Oe(h,o,n)*h%n,E=Oe(b,s,n)*b%n,g=Oe(E,o,n)*h%n,k=Oe(g,t,n)*l%n,_=Oe(k,a,n)*v%n,B=Oe(_,r,n)*c%n,J=Oe(B,ou,n);if(!yn.eql(yn.sqr(J),e))throw new Error("Cannot find square root");return J}var yn=uu(rn.p,void 0,void 0,{sqrt:rv}),su=ab({...rn,Fp:yn,lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const n=rn.n,t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-au*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),u=t,a=BigInt("0x100000000000000000000000000000000"),o=iv(u*e,n),s=iv(-r*e,n);let c=ye(e-o*t-s*i,n),l=ye(-o*r-s*u,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}}}},iu),uv={};function cu(e,...n){let t=uv[e];if(t===void 0){const r=iu(Uint8Array.from(e,i=>i.charCodeAt(0)));t=Se(r,r),uv[e]=t}return iu(Se(t,...n))}var Ss=e=>e.toBytes(!0).slice(1),Bs=e=>oi(e,32),As=e=>ye(e,rn.p),di=e=>ye(e,rn.n),ws=su.Point,_s=e=>e%ou===tv;function Cs(e){let n=su.utils.normPrivateKeyToScalar(e),t=ws.fromPrivateKey(n);return{scalar:_s(t.y)?n:di(-n),bytes:Ss(t)}}function av(e){_4("x",e,au,rn.p);const n=As(e*e),t=As(n*e+BigInt(7));let r=rv(t);_s(r)||(r=As(-r));const i=ws.fromAffine({x:e,y:r});return i.assertValidity(),i}var Bt=Un;function ov(...e){return di(Bt(cu("BIP0340/challenge",...e)))}function mb(e){return Cs(e).bytes}function vb(e,n,t=S4(32)){const r=de("message",e),{bytes:i,scalar:u}=Cs(n),a=de("auxRand",t,32),o=Bs(u^Bt(cu("BIP0340/aux",a))),s=cu("BIP0340/nonce",o,i,r),c=di(Bt(s));if(c===tv)throw new Error("sign failed: k is zero");const{bytes:l,scalar:f}=Cs(c),m=ov(l,i,r),d=new Uint8Array(64);if(d.set(l,0),d.set(Bs(di(f+m*u)),32),!sv(d,r,i))throw new Error("sign: Invalid signature produced");return d}function sv(e,n,t){const r=de("signature",e,64),i=de("message",n),u=de("publicKey",t,32);try{const a=av(Bt(u)),o=Bt(r.subarray(0,32));if(!Es(o,au,rn.p))return!1;const s=Bt(r.subarray(32,64));if(!Es(s,au,rn.n))return!1;const c=ov(Bs(o),Ss(a),i),l=ws.BASE.multiplyUnsafe(s).add(a.multiplyUnsafe(di(-c))),{x:f,y:m}=l.toAffine();return!(l.is0()||!_s(m)||f!==o)}catch{return!1}}({getPublicKey:mb,sign:vb,verify:sv,utils:{randomPrivateKey:su.utils.randomPrivateKey,lift_x:av,pointToBytes:Ss,numberToBytesBE:oi,bytesToNumberBE:Un,taggedHash:cu,mod:ye}});var pb=db(yn,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(e=>e.map(n=>BigInt(n)))),hb=ub(yn,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:yn.create(BigInt("-11"))});fb(su.Point,e=>{const{x:n,y:t}=hb(yn.create(e[0]));return pb(n,t)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:yn.ORDER,m:1,k:128,expand:"xmd",hash:iu});/*! Bundled license information:
471
471
 
472
472
  @noble/curves/esm/abstract/modular.js:
473
473
  @noble/curves/esm/abstract/curve.js:
@@ -475,10 +475,10 @@ mutation CreatePaymentRequest($createDirectPaymentInput: CreateDirectPaymentInpu
475
475
  @noble/curves/esm/_shortw_utils.js:
476
476
  @noble/curves/esm/secp256k1.js:
477
477
  (*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
478
- */var vb="0.1.1";function pb(){return vb}var ze=class Ws extends Error{constructor(n,t={}){const r=(()=>{if(t.cause instanceof Ws){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 Ws&&t.cause.docsPath||t.docsPath,a=`https://oxlib.sh${i??""}`,o=[n||"An error occurred.",...t.metaMessages?["",...t.metaMessages]:[],...r||i?["",r?`Details: ${r}`: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@${pb()}`}),this.cause=t.cause,this.details=r,this.docs=a,this.docsPath=i,this.shortMessage=n}walk(n){return cv(this,n)}};function cv(e,n){return n?.(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause?cv(e.cause,n):n?null:e}function hb(e,n){if(fv(e)>n)throw new Bb({givenSize:fv(e),maxSize:n})}var un={zero:48,nine:57,A:65,F:70,a:97,f:102};function lv(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 gb(e,n={}){const{dir:t,size:r=32}=n;if(r===0)return e;if(e.length>r)throw new Ab({size:e.length,targetSize:r,type:"Bytes"});const i=new Uint8Array(r);for(let u=0;u<r;u++){const a=t==="right";i[a?u:r-u-1]=e[a?u:e.length-u-1]}return i}function $s(e,n){if(xs(e)>n)throw new Fb({givenSize:xs(e),maxSize:n})}function dv(e,n={}){const{dir:t,size:r=32}=n;if(r===0)return e;const i=e.replace("0x","");if(i.length>r*2)throw new Nb({size:Math.ceil(i.length/2),targetSize:r,type:"Hex"});return`0x${i[t==="right"?"padEnd":"padStart"](r*2,"0")}`}new TextDecoder;var Eb=new TextEncoder;function yb(e){return e instanceof Uint8Array?e:typeof e=="string"?kb(e):bb(e)}function bb(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function kb(e,n={}){const{size:t}=n;let r=e;t&&($s(e,t),r=Is(e,t));let i=r.slice(2);i.length%2&&(i=`0${i}`);const u=i.length/2,a=new Uint8Array(u);for(let o=0,s=0;o<u;o++){const c=lv(i.charCodeAt(s++)),l=lv(i.charCodeAt(s++));if(c===void 0||l===void 0)throw new ze(`Invalid byte sequence ("${i[s-2]}${i[s-1]}" in "${i}").`);a[o]=c*16+l}return a}function Db(e,n={}){const{size:t}=n,r=Eb.encode(e);return typeof t=="number"?(hb(r,t),Sb(r,t)):r}function Sb(e,n){return gb(e,{dir:"right",size:n})}function fv(e){return e.length}var Bb=class extends ze{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"})}},Ab=class extends ze{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"})}},wb=new TextEncoder,_b=Array.from({length:256},(e,n)=>n.toString(16).padStart(2,"0"));function mv(...e){return`0x${e.reduce((n,t)=>n+t.replace("0x",""),"")}`}function Cb(e,n={}){const t=`0x${Number(e)}`;return typeof n.size=="number"?($s(t,n.size),lu(t,n.size)):t}function vv(e,n={}){let t="";for(let i=0;i<e.length;i++)t+=_b[e[i]];const r=`0x${t}`;return typeof n.size=="number"?($s(r,n.size),Is(r,n.size)):r}function $b(e,n={}){const{signed:t,size:r}=n,i=BigInt(e);let u;r?t?u=(1n<<BigInt(r)*8n-1n)-1n:u=2n**(BigInt(r)*8n)-1n:typeof e=="number"&&(u=BigInt(Number.MAX_SAFE_INTEGER));const a=typeof u=="bigint"&&t?-u-1n:0;if(u&&i>u||i<a){const c=typeof e=="bigint"?"n":"";throw new xb({max:u?`${u}${c}`:void 0,min:`${a}${c}`,signed:t,size:r,value:`${e}${c}`})}const s=`0x${(t&&i<0?(1n<<BigInt(r*8))+BigInt(i):i).toString(16)}`;return r?lu(s,r):s}function Ib(e,n={}){return vv(wb.encode(e),n)}function lu(e,n){return dv(e,{dir:"left",size:n})}function Is(e,n){return dv(e,{dir:"right",size:n})}function xs(e){return Math.ceil((e.length-2)/2)}var xb=class extends ze{constructor({max:e,min:n,signed:t,size:r,value:i}){super(`Number \`${i}\` is not in safe${r?` ${r*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"})}},Fb=class extends ze{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"})}},Nb=class extends ze{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"})}},pv="2.31.7",Fs={getDocsUrl:({docsBaseUrl:e,docsPath:n="",docsSlug:t})=>n?`${e??"https://viem.sh"}${n}${t?`#${t}`:""}`:void 0,version:`viem@${pv}`},du=class Ys extends Error{constructor(n,t={}){const r=t.cause instanceof Ys?t.cause.details:t.cause?.message?t.cause.message:t.details,i=t.cause instanceof Ys&&t.cause.docsPath||t.docsPath,u=Fs.getDocsUrl?.({...t,docsPath:i}),a=[n||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...u?[`Docs: ${u}`]:[],...r?[`Details: ${r}`]:[],...Fs.version?[`Version: ${Fs.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=r,this.docsPath=i,this.metaMessages=t.metaMessages,this.name=t.name??this.name,this.shortMessage=n,this.version=pv}walk(n){return hv(this,n)}};function hv(e,n){return n?.(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause!==void 0?hv(e.cause,n):n?null:e}function Ns(e,{strict:n=!0}={}){return!e||typeof e!="string"?!1:n?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")}function gv(e){return Ns(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}var Ev=class extends du{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 fu(e,{dir:n,size:t=32}={}){return typeof e=="string"?Tb(e,{dir:n,size:t}):Ob(e,{dir:n,size:t})}function Tb(e,{dir:n,size:t=32}={}){if(t===null)return e;const r=e.replace("0x","");if(r.length>t*2)throw new Ev({size:Math.ceil(r.length/2),targetSize:t,type:"hex"});return`0x${r[n==="right"?"padEnd":"padStart"](t*2,"0")}`}function Ob(e,{dir:n,size:t=32}={}){if(t===null)return e;if(e.length>t)throw new Ev({size:e.length,targetSize:t,type:"bytes"});const r=new Uint8Array(t);for(let i=0;i<t;i++){const u=n==="right";r[u?i:t-i-1]=e[u?i:e.length-i-1]}return r}var zb=class extends du{constructor({max:e,min:n,signed:t,size:r,value:i}){super(`Number "${i}" is not in safe ${r?`${r*8}-bit ${t?"signed":"unsigned"} `:""}integer range ${e?`(${n} to ${e})`:`(above ${n})`}`,{name:"IntegerOutOfRangeError"})}},Ub=class extends du{constructor({givenSize:e,maxSize:n}){super(`Size cannot exceed ${n} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}};function mu(e,{size:n}){if(gv(e)>n)throw new Ub({givenSize:gv(e),maxSize:n})}function Pb(e,n={}){const{signed:t}=n;n.size&&mu(e,{size:n.size});const r=BigInt(e);if(!t)return r;const i=(e.length-2)/2,u=(1n<<BigInt(i)*8n-1n)-1n;return r<=u?r:r-BigInt(`0x${"f".padStart(i*2,"f")}`)-1n}function Rb(e,n={}){return Number(Pb(e,n))}Array.from({length:256},(e,n)=>n.toString(16).padStart(2,"0"));function Ts(e,n={}){const{signed:t,size:r}=n,i=BigInt(e);let u;r?t?u=(1n<<BigInt(r)*8n-1n)-1n:u=2n**(BigInt(r)*8n)-1n:typeof e=="number"&&(u=BigInt(Number.MAX_SAFE_INTEGER));const a=typeof u=="bigint"&&t?-u-1n:0;if(u&&i>u||i<a){const s=typeof e=="bigint"?"n":"";throw new zb({max:u?`${u}${s}`:void 0,min:`${a}${s}`,signed:t,size:r,value:`${e}${s}`})}const o=`0x${(t&&i<0?(1n<<BigInt(r*8))+BigInt(i):i).toString(16)}`;return r?fu(o,{size:r}):o}new TextEncoder;var jb=new TextEncoder;function Lb(e,n={}){return typeof e=="number"||typeof e=="bigint"?Vb(e,n):typeof e=="boolean"?Zb(e,n):Ns(e)?bv(e,n):kv(e,n)}function Zb(e,n={}){const t=new Uint8Array(1);return t[0]=Number(e),typeof n.size=="number"?(mu(t,{size:n.size}),fu(t,{size:n.size})):t}var an={zero:48,nine:57,A:65,F:70,a:97,f:102};function yv(e){if(e>=an.zero&&e<=an.nine)return e-an.zero;if(e>=an.A&&e<=an.F)return e-(an.A-10);if(e>=an.a&&e<=an.f)return e-(an.a-10)}function bv(e,n={}){let t=e;n.size&&(mu(t,{size:n.size}),t=fu(t,{dir:"right",size:n.size}));let r=t.slice(2);r.length%2&&(r=`0${r}`);const i=r.length/2,u=new Uint8Array(i);for(let a=0,o=0;a<i;a++){const s=yv(r.charCodeAt(o++)),c=yv(r.charCodeAt(o++));if(s===void 0||c===void 0)throw new du(`Invalid byte sequence ("${r[o-2]}${r[o-1]}" in "${r}").`);u[a]=s*16+c}return u}function Vb(e,n){const t=Ts(e,n);return bv(t)}function kv(e,n={}){const t=jb.encode(e);return typeof n.size=="number"?(mu(t,{size:n.size}),fu(t,{dir:"right",size:n.size})):t}var qb=BigInt(0),fi=BigInt(1),Mb=BigInt(2),Gb=BigInt(7),Jb=BigInt(256),Hb=BigInt(113),Dv=[],Sv=[],Bv=[];for(let e=0,n=fi,t=1,r=0;e<24;e++){[t,r]=[r,(2*t+3*r)%5],Dv.push(2*(5*r+t)),Sv.push((e+1)*(e+2)/2%64);let i=qb;for(let u=0;u<7;u++)n=(n<<fi^(n>>Gb)*Hb)%Jb,n&Mb&&(i^=fi<<(fi<<BigInt(u))-fi);Bv.push(i)}var Av=I4(Bv,!0),Kb=Av[0],Qb=Av[1],wv=(e,n,t)=>t>32?hy(e,n,t):vy(e,n,t),_v=(e,n,t)=>t>32?gy(e,n,t):py(e,n,t);function Wb(e,n=24){const t=new Uint32Array(10);for(let r=24-n;r<24;r++){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=wv(c,l,1)^t[o],m=_v(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],u=e[3];for(let a=0;a<24;a++){const o=Sv[a],s=wv(i,u,o),c=_v(i,u,o),l=Dv[a];i=e[l],u=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]^=Kb[r],e[1]^=Qb[r]}_e(t)}var Cv=class vp extends vs{constructor(n,t,r,i=!1,u=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=r,this.enableXOF=i,this.rounds=u,ri(r),!(0<n&&n<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=ry(this.state)}clone(){return this._cloneInto()}keccak(){b4(this.state32),Wb(this.state32,this.rounds),b4(this.state32),this.posOut=0,this.pos=0}update(n){yt(this),n=ai(n),ve(n);const{blockLen:t,state:r}=this,i=n.length;for(let u=0;u<i;){const a=Math.min(t-this.pos,i-u);for(let o=0;o<a;o++)r[this.pos++]^=n[u++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:n,suffix:t,pos:r,blockLen:i}=this;n[r]^=t,(t&128)!==0&&r===i-1&&this.keccak(),n[i-1]^=128,this.keccak()}writeInto(n){yt(this,!1),ve(n),this.finish();const t=this.state,{blockLen:r}=this;for(let i=0,u=n.length;i<u;){this.posOut>=r&&this.keccak();const a=Math.min(r-this.posOut,u-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 ri(n),this.xofInto(new Uint8Array(n))}digestInto(n){if(y4(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,_e(this.state)}_cloneInto(n){const{blockLen:t,suffix:r,outputLen:i,rounds:u,enableXOF:a}=this;return n||(n=new vp(t,r,i,a,u)),n.state32.set(this.state32),n.pos=this.pos,n.posOut=this.posOut,n.finished=this.finished,n.rounds=u,n.suffix=r,n.outputLen=i,n.enableXOF=a,n.destroyed=this.destroyed,n}},bn=(e,n,t)=>Ke(()=>new Cv(n,e,t));bn(6,144,224/8),bn(6,136,256/8),bn(6,104,384/8),bn(6,72,512/8),bn(1,144,224/8);var $v=bn(1,136,256/8);bn(1,104,384/8),bn(1,72,512/8);var Iv=(e,n,t)=>cy((r={})=>new Cv(n,e,r.dkLen===void 0?t:r.dkLen,!0));Iv(31,168,128/8),Iv(31,136,256/8);function Yb(e,n){return $v(Ns(e,{strict:!1})?Lb(e):e)}var mi=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}},Xb=/^0x[a-fA-F0-9]{40}$/,Os=new mi(8192);function ek(e,n){const{strict:t=!0}={},r=`${e}.${t}`;if(Os.has(r))return Os.get(r);const i=Xb.test(e)?e.toLowerCase()===e?!0:t?nk(e)===e:!0:!1;return Os.set(r,i),i}var zs=new mi(8192);function nk(e,n){if(zs.has(`${e}.${n}`))return zs.get(`${e}.${n}`);const t=e.substring(2).toLowerCase(),r=Yb(kv(t)),i=t.split("");for(let a=0;a<40;a+=2)r[a>>1]>>4>=8&&i[a]&&(i[a]=i[a].toUpperCase()),(r[a>>1]&15)>=8&&i[a+1]&&(i[a+1]=i[a+1].toUpperCase());const u=`0x${i.join("")}`;return zs.set(`${e}.${n}`,u),u}async function tk(e,{address:n,blockTag:t="latest",blockNumber:r}){const i=await e.request({method:"eth_getTransactionCount",params:[n,typeof r=="bigint"?Ts(r):t]},{dedupe:!!r});return Rb(i)}new mi(128),Ts(0,{size:32}),new mi(8192);var At=Uint32Array.from([1732584193,4023233417,2562383102,271733878,3285377520]),kn=new Uint32Array(80),ik=class extends si{constructor(){super(64,20,8,!1),this.A=At[0]|0,this.B=At[1]|0,this.C=At[2]|0,this.D=At[3]|0,this.E=At[4]|0}get(){const{A:e,B:n,C:t,D:r,E:i}=this;return[e,n,t,r,i]}set(e,n,t,r,i){this.A=e|0,this.B=n|0,this.C=t|0,this.D=r|0,this.E=i|0}process(e,n){for(let o=0;o<16;o++,n+=4)kn[o]=e.getUint32(n,!1);for(let o=16;o<80;o++)kn[o]=fn(kn[o-3]^kn[o-8]^kn[o-14]^kn[o-16],1);let{A:t,B:r,C:i,D:u,E:a}=this;for(let o=0;o<80;o++){let s,c;o<20?(s=nu(r,i,u),c=1518500249):o<40?(s=r^i^u,c=1859775393):o<60?(s=N4(r,i,u),c=2400959708):(s=r^i^u,c=3395469782);const l=fn(t,5)+s+a+c+kn[o]|0;a=u,u=i,i=fn(r,30),r=t,t=l}t=t+this.A|0,r=r+this.B|0,i=i+this.C|0,u=u+this.D|0,a=a+this.E|0,this.set(t,r,i,u,a)}roundClean(){_e(kn)}destroy(){this.set(0,0,0,0,0),_e(this.buffer)}};Ke(()=>new ik);var rk=Math.pow(2,32),uk=Array.from({length:64},(e,n)=>Math.floor(rk*Math.abs(Math.sin(n+1)))),vu=At.slice(0,4),Us=new Uint32Array(16),ak=class extends si{constructor(){super(64,16,8,!0),this.A=vu[0]|0,this.B=vu[1]|0,this.C=vu[2]|0,this.D=vu[3]|0}get(){const{A:e,B:n,C:t,D:r}=this;return[e,n,t,r]}set(e,n,t,r){this.A=e|0,this.B=n|0,this.C=t|0,this.D=r|0}process(e,n){for(let a=0;a<16;a++,n+=4)Us[a]=e.getUint32(n,!0);let{A:t,B:r,C:i,D:u}=this;for(let a=0;a<64;a++){let o,s,c;a<16?(o=nu(r,i,u),s=a,c=[7,12,17,22]):a<32?(o=nu(u,r,i),s=(5*a+1)%16,c=[5,9,14,20]):a<48?(o=r^i^u,s=(3*a+5)%16,c=[4,11,16,23]):(o=i^(r|~u),s=7*a%16,c=[6,10,15,21]),o=o+t+uk[a]+Us[s],t=u,u=i,i=r,r=r+fn(o,c[a%4])}t=t+this.A|0,r=r+this.B|0,i=i+this.C|0,u=u+this.D|0,this.set(t,r,i,u)}roundClean(){_e(Us)}destroy(){this.set(0,0,0,0),_e(this.buffer)}};Ke(()=>new ak);var ok=Uint8Array.from([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),xv=Uint8Array.from(new Array(16).fill(0).map((e,n)=>n)),sk=xv.map(e=>(9*e+5)%16),Fv=(()=>{const t=[[xv],[sk]];for(let r=0;r<4;r++)for(let i of t)i.push(i[r].map(u=>ok[u]));return t})(),Nv=Fv[0],Tv=Fv[1],Ov=[[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)),ck=Nv.map((e,n)=>e.map(t=>Ov[n][t])),lk=Tv.map((e,n)=>e.map(t=>Ov[n][t])),dk=Uint32Array.from([0,1518500249,1859775393,2400959708,2840853838]),fk=Uint32Array.from([1352829926,1548603684,1836072691,2053994217,0]);function zv(e,n,t,r){return e===0?n^t^r:e===1?n&t|~n&r:e===2?(n|~t)^r:e===3?n&r|t&~r:n^(t|~r)}var pu=new Uint32Array(16),mk=class extends si{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:r,h4:i}=this;return[e,n,t,r,i]}set(e,n,t,r,i){this.h0=e|0,this.h1=n|0,this.h2=t|0,this.h3=r|0,this.h4=i|0}process(e,n){for(let m=0;m<16;m++,n+=4)pu[m]=e.getUint32(n,!0);let t=this.h0|0,r=t,i=this.h1|0,u=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=dk[m],h=fk[m],b=Nv[m],E=Tv[m],g=ck[m],k=lk[m];for(let _=0;_<16;_++){const B=fn(t+zv(m,i,a,s)+pu[b[_]]+v,g[_])+l|0;t=l,l=s,s=fn(a,10)|0,a=i,i=B}for(let _=0;_<16;_++){const B=fn(r+zv(d,u,o,c)+pu[E[_]]+h,k[_])+f|0;r=f,f=c,c=fn(o,10)|0,o=u,u=B}}this.set(this.h1+a+c|0,this.h2+s+f|0,this.h3+l+r|0,this.h4+t+u|0,this.h0+i+o|0)}roundClean(){_e(pu)}destroy(){this.destroyed=!0,_e(this.buffer),this.set(0,0,0,0,0)}};Ke(()=>new mk);function vk(e){const{source:n}=e,t=new Map,r=new mi(8192),i=new Map,u=({address:a,chainId:o})=>`${a}.${o}`;return{async consume({address:a,chainId:o,client:s}){const c=u({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),r.set(c,f),f},async increment({address:a,chainId:o}){const s=u({address:a,chainId:o}),c=t.get(s)??0;t.set(s,c+1)},async get({address:a,chainId:o,client:s}){const c=u({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=r.get(c)??0;return d>0&&m<=d?d+1:(r.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=u({address:a,chainId:o});t.delete(s),i.delete(s)}}}function pk(){return{async get(e){const{address:n,client:t}=e;return tk(t,{address:n,blockTag:"pending"})},set(){}}}vk({source:pk()});function hk(e,n={}){const{as:t=typeof e=="string"?"Hex":"Bytes"}=n,r=$v(yb(e));return t==="Bytes"?r:vv(r)}var gk=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}},Ek={checksum:new gk(8192)},Ps=Ek.checksum,yk=/^0x[a-fA-F0-9]{40}$/;function Uv(e,n={}){const{strict:t=!0}=n;if(!yk.test(e))throw new Pv({address:e,cause:new kk});if(t){if(e.toLowerCase()===e)return;if(bk(e)!==e)throw new Pv({address:e,cause:new Dk})}}function bk(e){if(Ps.has(e))return Ps.get(e);Uv(e,{strict:!1});const n=e.substring(2).toLowerCase(),t=hk(Db(n),{as:"Bytes"}),r=n.split("");for(let u=0;u<40;u+=2)t[u>>1]>>4>=8&&r[u]&&(r[u]=r[u].toUpperCase()),(t[u>>1]&15)>=8&&r[u+1]&&(r[u+1]=r[u+1].toUpperCase());const i=`0x${r.join("")}`;return Ps.set(e,i),i}var Pv=class extends ze{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"})}},kk=class extends ze{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"})}},Dk=class extends ze{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}},Sk=/^(.*)\[([0-9]*)\]$/,Bk=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Ak=/^(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 Rs(e,n){if(e.length!==n.length)throw new _k({expectedLength:e.length,givenLength:n.length});const t=[];for(let r=0;r<e.length;r++){const i=e[r],u=n[r];t.push(Rs.encode(i,u))}return mv(...t)}(function(e){function n(t,r,i=!1){if(t==="address"){const s=r;return Uv(s),lu(s.toLowerCase(),i?32:0)}if(t==="string")return Ib(r);if(t==="bytes")return r;if(t==="bool")return lu(Cb(r),i?32:1);const u=t.match(Ak);if(u){const[s,c,l="256"]=u,f=Number.parseInt(l)/8;return $b(r,{size:i?32:f,signed:c==="int"})}const a=t.match(Bk);if(a){const[s,c]=a;if(Number.parseInt(c)!==(r.length-2)/2)throw new wk({expectedSize:Number.parseInt(c),value:r});return Is(r,i?32:0)}const o=t.match(Sk);if(o&&Array.isArray(r)){const[s,c]=o,l=[];for(let f=0;f<r.length;f++)l.push(n(c,r[f],!0));return l.length===0?"0x":mv(...l)}throw new Ck(t)}e.encode=n})(Rs||(Rs={}));var wk=class extends ze{constructor({expectedSize:e,value:n}){super(`Size of bytes "${n}" (bytes${xs(n)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}},_k=class extends ze{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"})}},Ck=class extends ze{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 $k(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:ek(n)}function Rv(e){try{return new ec.PublicKey(e),!0}catch{return!1}}const jv=e=>Math.round((e+Number.EPSILON)*100)/100;function Ik(e){const n=e.replace(/^data:\w+\/\w+;base64,/,""),t=Buffer.from(n,"base64");return new Uint8Array(t)}class xk{client;constructor(n){this.client=n}async create(n){return(await this.client.query({query:gt,variables:{createDirectPaymentInput:{...n,amount:n.amount}}}))?.createDirectPayment}async getWeb3PaymentParams(n){if(!$k(n.paymentTokenAddress))throw new Error("Invalid token address");return(await this.client.query({query:qr,variables:{amount:jv(n.paymentRequest.amountDue),network:n.paymentRequest.network,tokenAddress:n.paymentTokenAddress,reference:n.paymentRequest.id}}))?.spritzPayParams}async getSolanaPaymentParams(n){if(!Rv(n.paymentTokenAddress))throw new Error(`Invalid token address: ${n.paymentTokenAddress}`);if(!Rv(n.signer))throw new Error(`Invalid signer: ${n.signer}`);const t=await this.client.query({query:Zr,variables:{amount:jv(n.paymentRequest.amountDue),tokenAddress:n.paymentTokenAddress,reference:n.paymentRequest.id,signer:n.signer}});return{versionedTransaction:ec.VersionedTransaction.deserialize(Ik(t?.solanaParams?.transactionSerialized??"")),transactionSerialized:t?.solanaParams?.transactionSerialized}}}var wt={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}};wt.loc.source={body:`fragment VerificationFragment on Verification {
478
+ */var gb="0.1.1";function Eb(){return gb}var ze=class Ws extends Error{constructor(n,t={}){const r=(()=>{if(t.cause instanceof Ws){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 Ws&&t.cause.docsPath||t.docsPath,a=`https://oxlib.sh${i??""}`,o=[n||"An error occurred.",...t.metaMessages?["",...t.metaMessages]:[],...r||i?["",r?`Details: ${r}`: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@${Eb()}`}),this.cause=t.cause,this.details=r,this.docs=a,this.docsPath=i,this.shortMessage=n}walk(n){return cv(this,n)}};function cv(e,n){return n?.(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause?cv(e.cause,n):n?null:e}function yb(e,n){if(fv(e)>n)throw new _b({givenSize:fv(e),maxSize:n})}var un={zero:48,nine:57,A:65,F:70,a:97,f:102};function lv(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 bb(e,n={}){const{dir:t,size:r=32}=n;if(r===0)return e;if(e.length>r)throw new Cb({size:e.length,targetSize:r,type:"Bytes"});const i=new Uint8Array(r);for(let u=0;u<r;u++){const a=t==="right";i[a?u:r-u-1]=e[a?u:e.length-u-1]}return i}function $s(e,n){if(xs(e)>n)throw new Ob({givenSize:xs(e),maxSize:n})}function dv(e,n={}){const{dir:t,size:r=32}=n;if(r===0)return e;const i=e.replace("0x","");if(i.length>r*2)throw new zb({size:Math.ceil(i.length/2),targetSize:r,type:"Hex"});return`0x${i[t==="right"?"padEnd":"padStart"](r*2,"0")}`}new TextDecoder;var kb=new TextEncoder;function Db(e){return e instanceof Uint8Array?e:typeof e=="string"?Bb(e):Sb(e)}function Sb(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function Bb(e,n={}){const{size:t}=n;let r=e;t&&($s(e,t),r=Is(e,t));let i=r.slice(2);i.length%2&&(i=`0${i}`);const u=i.length/2,a=new Uint8Array(u);for(let o=0,s=0;o<u;o++){const c=lv(i.charCodeAt(s++)),l=lv(i.charCodeAt(s++));if(c===void 0||l===void 0)throw new ze(`Invalid byte sequence ("${i[s-2]}${i[s-1]}" in "${i}").`);a[o]=c*16+l}return a}function Ab(e,n={}){const{size:t}=n,r=kb.encode(e);return typeof t=="number"?(yb(r,t),wb(r,t)):r}function wb(e,n){return bb(e,{dir:"right",size:n})}function fv(e){return e.length}var _b=class extends ze{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"})}},Cb=class extends ze{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"})}},$b=new TextEncoder,Ib=Array.from({length:256},(e,n)=>n.toString(16).padStart(2,"0"));function mv(...e){return`0x${e.reduce((n,t)=>n+t.replace("0x",""),"")}`}function xb(e,n={}){const t=`0x${Number(e)}`;return typeof n.size=="number"?($s(t,n.size),lu(t,n.size)):t}function vv(e,n={}){let t="";for(let i=0;i<e.length;i++)t+=Ib[e[i]];const r=`0x${t}`;return typeof n.size=="number"?($s(r,n.size),Is(r,n.size)):r}function Fb(e,n={}){const{signed:t,size:r}=n,i=BigInt(e);let u;r?t?u=(1n<<BigInt(r)*8n-1n)-1n:u=2n**(BigInt(r)*8n)-1n:typeof e=="number"&&(u=BigInt(Number.MAX_SAFE_INTEGER));const a=typeof u=="bigint"&&t?-u-1n:0;if(u&&i>u||i<a){const c=typeof e=="bigint"?"n":"";throw new Tb({max:u?`${u}${c}`:void 0,min:`${a}${c}`,signed:t,size:r,value:`${e}${c}`})}const s=`0x${(t&&i<0?(1n<<BigInt(r*8))+BigInt(i):i).toString(16)}`;return r?lu(s,r):s}function Nb(e,n={}){return vv($b.encode(e),n)}function lu(e,n){return dv(e,{dir:"left",size:n})}function Is(e,n){return dv(e,{dir:"right",size:n})}function xs(e){return Math.ceil((e.length-2)/2)}var Tb=class extends ze{constructor({max:e,min:n,signed:t,size:r,value:i}){super(`Number \`${i}\` is not in safe${r?` ${r*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 ze{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"})}},zb=class extends ze{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"})}},pv="2.31.7",Fs={getDocsUrl:({docsBaseUrl:e,docsPath:n="",docsSlug:t})=>n?`${e??"https://viem.sh"}${n}${t?`#${t}`:""}`:void 0,version:`viem@${pv}`},du=class Ys extends Error{constructor(n,t={}){const r=t.cause instanceof Ys?t.cause.details:t.cause?.message?t.cause.message:t.details,i=t.cause instanceof Ys&&t.cause.docsPath||t.docsPath,u=Fs.getDocsUrl?.({...t,docsPath:i}),a=[n||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...u?[`Docs: ${u}`]:[],...r?[`Details: ${r}`]:[],...Fs.version?[`Version: ${Fs.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=r,this.docsPath=i,this.metaMessages=t.metaMessages,this.name=t.name??this.name,this.shortMessage=n,this.version=pv}walk(n){return hv(this,n)}};function hv(e,n){return n?.(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause!==void 0?hv(e.cause,n):n?null:e}function Ns(e,{strict:n=!0}={}){return!e||typeof e!="string"?!1:n?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")}function gv(e){return Ns(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}var Ev=class extends du{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 fu(e,{dir:n,size:t=32}={}){return typeof e=="string"?Ub(e,{dir:n,size:t}):Pb(e,{dir:n,size:t})}function Ub(e,{dir:n,size:t=32}={}){if(t===null)return e;const r=e.replace("0x","");if(r.length>t*2)throw new Ev({size:Math.ceil(r.length/2),targetSize:t,type:"hex"});return`0x${r[n==="right"?"padEnd":"padStart"](t*2,"0")}`}function Pb(e,{dir:n,size:t=32}={}){if(t===null)return e;if(e.length>t)throw new Ev({size:e.length,targetSize:t,type:"bytes"});const r=new Uint8Array(t);for(let i=0;i<t;i++){const u=n==="right";r[u?i:t-i-1]=e[u?i:e.length-i-1]}return r}var Rb=class extends du{constructor({max:e,min:n,signed:t,size:r,value:i}){super(`Number "${i}" is not in safe ${r?`${r*8}-bit ${t?"signed":"unsigned"} `:""}integer range ${e?`(${n} to ${e})`:`(above ${n})`}`,{name:"IntegerOutOfRangeError"})}},jb=class extends du{constructor({givenSize:e,maxSize:n}){super(`Size cannot exceed ${n} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}};function mu(e,{size:n}){if(gv(e)>n)throw new jb({givenSize:gv(e),maxSize:n})}function Lb(e,n={}){const{signed:t}=n;n.size&&mu(e,{size:n.size});const r=BigInt(e);if(!t)return r;const i=(e.length-2)/2,u=(1n<<BigInt(i)*8n-1n)-1n;return r<=u?r:r-BigInt(`0x${"f".padStart(i*2,"f")}`)-1n}function Zb(e,n={}){return Number(Lb(e,n))}Array.from({length:256},(e,n)=>n.toString(16).padStart(2,"0"));function Ts(e,n={}){const{signed:t,size:r}=n,i=BigInt(e);let u;r?t?u=(1n<<BigInt(r)*8n-1n)-1n:u=2n**(BigInt(r)*8n)-1n:typeof e=="number"&&(u=BigInt(Number.MAX_SAFE_INTEGER));const a=typeof u=="bigint"&&t?-u-1n:0;if(u&&i>u||i<a){const s=typeof e=="bigint"?"n":"";throw new Rb({max:u?`${u}${s}`:void 0,min:`${a}${s}`,signed:t,size:r,value:`${e}${s}`})}const o=`0x${(t&&i<0?(1n<<BigInt(r*8))+BigInt(i):i).toString(16)}`;return r?fu(o,{size:r}):o}new TextEncoder;var Vb=new TextEncoder;function qb(e,n={}){return typeof e=="number"||typeof e=="bigint"?Gb(e,n):typeof e=="boolean"?Mb(e,n):Ns(e)?bv(e,n):kv(e,n)}function Mb(e,n={}){const t=new Uint8Array(1);return t[0]=Number(e),typeof n.size=="number"?(mu(t,{size:n.size}),fu(t,{size:n.size})):t}var an={zero:48,nine:57,A:65,F:70,a:97,f:102};function yv(e){if(e>=an.zero&&e<=an.nine)return e-an.zero;if(e>=an.A&&e<=an.F)return e-(an.A-10);if(e>=an.a&&e<=an.f)return e-(an.a-10)}function bv(e,n={}){let t=e;n.size&&(mu(t,{size:n.size}),t=fu(t,{dir:"right",size:n.size}));let r=t.slice(2);r.length%2&&(r=`0${r}`);const i=r.length/2,u=new Uint8Array(i);for(let a=0,o=0;a<i;a++){const s=yv(r.charCodeAt(o++)),c=yv(r.charCodeAt(o++));if(s===void 0||c===void 0)throw new du(`Invalid byte sequence ("${r[o-2]}${r[o-1]}" in "${r}").`);u[a]=s*16+c}return u}function Gb(e,n){const t=Ts(e,n);return bv(t)}function kv(e,n={}){const t=Vb.encode(e);return typeof n.size=="number"?(mu(t,{size:n.size}),fu(t,{dir:"right",size:n.size})):t}var Jb=BigInt(0),fi=BigInt(1),Hb=BigInt(2),Qb=BigInt(7),Kb=BigInt(256),Wb=BigInt(113),Dv=[],Sv=[],Bv=[];for(let e=0,n=fi,t=1,r=0;e<24;e++){[t,r]=[r,(2*t+3*r)%5],Dv.push(2*(5*r+t)),Sv.push((e+1)*(e+2)/2%64);let i=Jb;for(let u=0;u<7;u++)n=(n<<fi^(n>>Qb)*Wb)%Kb,n&Hb&&(i^=fi<<(fi<<BigInt(u))-fi);Bv.push(i)}var Av=I4(Bv,!0),Yb=Av[0],Xb=Av[1],wv=(e,n,t)=>t>32?yy(e,n,t):gy(e,n,t),_v=(e,n,t)=>t>32?by(e,n,t):Ey(e,n,t);function ek(e,n=24){const t=new Uint32Array(10);for(let r=24-n;r<24;r++){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=wv(c,l,1)^t[o],m=_v(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],u=e[3];for(let a=0;a<24;a++){const o=Sv[a],s=wv(i,u,o),c=_v(i,u,o),l=Dv[a];i=e[l],u=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]^=Yb[r],e[1]^=Xb[r]}_e(t)}var Cv=class vp extends vs{constructor(n,t,r,i=!1,u=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=r,this.enableXOF=i,this.rounds=u,ri(r),!(0<n&&n<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=oy(this.state)}clone(){return this._cloneInto()}keccak(){b4(this.state32),ek(this.state32,this.rounds),b4(this.state32),this.posOut=0,this.pos=0}update(n){yt(this),n=ai(n),ve(n);const{blockLen:t,state:r}=this,i=n.length;for(let u=0;u<i;){const a=Math.min(t-this.pos,i-u);for(let o=0;o<a;o++)r[this.pos++]^=n[u++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:n,suffix:t,pos:r,blockLen:i}=this;n[r]^=t,(t&128)!==0&&r===i-1&&this.keccak(),n[i-1]^=128,this.keccak()}writeInto(n){yt(this,!1),ve(n),this.finish();const t=this.state,{blockLen:r}=this;for(let i=0,u=n.length;i<u;){this.posOut>=r&&this.keccak();const a=Math.min(r-this.posOut,u-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 ri(n),this.xofInto(new Uint8Array(n))}digestInto(n){if(y4(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,_e(this.state)}_cloneInto(n){const{blockLen:t,suffix:r,outputLen:i,rounds:u,enableXOF:a}=this;return n||(n=new vp(t,r,i,a,u)),n.state32.set(this.state32),n.pos=this.pos,n.posOut=this.posOut,n.finished=this.finished,n.rounds=u,n.suffix=r,n.outputLen=i,n.enableXOF=a,n.destroyed=this.destroyed,n}},bn=(e,n,t)=>Qe(()=>new Cv(n,e,t));bn(6,144,224/8),bn(6,136,256/8),bn(6,104,384/8),bn(6,72,512/8),bn(1,144,224/8);var $v=bn(1,136,256/8);bn(1,104,384/8),bn(1,72,512/8);var Iv=(e,n,t)=>fy((r={})=>new Cv(n,e,r.dkLen===void 0?t:r.dkLen,!0));Iv(31,168,128/8),Iv(31,136,256/8);function nk(e,n){return $v(Ns(e,{strict:!1})?qb(e):e)}var mi=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}},tk=/^0x[a-fA-F0-9]{40}$/,Os=new mi(8192);function ik(e,n){const{strict:t=!0}={},r=`${e}.${t}`;if(Os.has(r))return Os.get(r);const i=tk.test(e)?e.toLowerCase()===e?!0:t?rk(e)===e:!0:!1;return Os.set(r,i),i}var zs=new mi(8192);function rk(e,n){if(zs.has(`${e}.${n}`))return zs.get(`${e}.${n}`);const t=e.substring(2).toLowerCase(),r=nk(kv(t)),i=t.split("");for(let a=0;a<40;a+=2)r[a>>1]>>4>=8&&i[a]&&(i[a]=i[a].toUpperCase()),(r[a>>1]&15)>=8&&i[a+1]&&(i[a+1]=i[a+1].toUpperCase());const u=`0x${i.join("")}`;return zs.set(`${e}.${n}`,u),u}async function uk(e,{address:n,blockTag:t="latest",blockNumber:r}){const i=await e.request({method:"eth_getTransactionCount",params:[n,typeof r=="bigint"?Ts(r):t]},{dedupe:!!r});return Zb(i)}new mi(128),Ts(0,{size:32}),new mi(8192);var At=Uint32Array.from([1732584193,4023233417,2562383102,271733878,3285377520]),kn=new Uint32Array(80),ak=class extends si{constructor(){super(64,20,8,!1),this.A=At[0]|0,this.B=At[1]|0,this.C=At[2]|0,this.D=At[3]|0,this.E=At[4]|0}get(){const{A:e,B:n,C:t,D:r,E:i}=this;return[e,n,t,r,i]}set(e,n,t,r,i){this.A=e|0,this.B=n|0,this.C=t|0,this.D=r|0,this.E=i|0}process(e,n){for(let o=0;o<16;o++,n+=4)kn[o]=e.getUint32(n,!1);for(let o=16;o<80;o++)kn[o]=fn(kn[o-3]^kn[o-8]^kn[o-14]^kn[o-16],1);let{A:t,B:r,C:i,D:u,E:a}=this;for(let o=0;o<80;o++){let s,c;o<20?(s=nu(r,i,u),c=1518500249):o<40?(s=r^i^u,c=1859775393):o<60?(s=N4(r,i,u),c=2400959708):(s=r^i^u,c=3395469782);const l=fn(t,5)+s+a+c+kn[o]|0;a=u,u=i,i=fn(r,30),r=t,t=l}t=t+this.A|0,r=r+this.B|0,i=i+this.C|0,u=u+this.D|0,a=a+this.E|0,this.set(t,r,i,u,a)}roundClean(){_e(kn)}destroy(){this.set(0,0,0,0,0),_e(this.buffer)}};Qe(()=>new ak);var ok=Math.pow(2,32),sk=Array.from({length:64},(e,n)=>Math.floor(ok*Math.abs(Math.sin(n+1)))),vu=At.slice(0,4),Us=new Uint32Array(16),ck=class extends si{constructor(){super(64,16,8,!0),this.A=vu[0]|0,this.B=vu[1]|0,this.C=vu[2]|0,this.D=vu[3]|0}get(){const{A:e,B:n,C:t,D:r}=this;return[e,n,t,r]}set(e,n,t,r){this.A=e|0,this.B=n|0,this.C=t|0,this.D=r|0}process(e,n){for(let a=0;a<16;a++,n+=4)Us[a]=e.getUint32(n,!0);let{A:t,B:r,C:i,D:u}=this;for(let a=0;a<64;a++){let o,s,c;a<16?(o=nu(r,i,u),s=a,c=[7,12,17,22]):a<32?(o=nu(u,r,i),s=(5*a+1)%16,c=[5,9,14,20]):a<48?(o=r^i^u,s=(3*a+5)%16,c=[4,11,16,23]):(o=i^(r|~u),s=7*a%16,c=[6,10,15,21]),o=o+t+sk[a]+Us[s],t=u,u=i,i=r,r=r+fn(o,c[a%4])}t=t+this.A|0,r=r+this.B|0,i=i+this.C|0,u=u+this.D|0,this.set(t,r,i,u)}roundClean(){_e(Us)}destroy(){this.set(0,0,0,0),_e(this.buffer)}};Qe(()=>new ck);var lk=Uint8Array.from([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),xv=Uint8Array.from(new Array(16).fill(0).map((e,n)=>n)),dk=xv.map(e=>(9*e+5)%16),Fv=(()=>{const t=[[xv],[dk]];for(let r=0;r<4;r++)for(let i of t)i.push(i[r].map(u=>lk[u]));return t})(),Nv=Fv[0],Tv=Fv[1],Ov=[[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)),fk=Nv.map((e,n)=>e.map(t=>Ov[n][t])),mk=Tv.map((e,n)=>e.map(t=>Ov[n][t])),vk=Uint32Array.from([0,1518500249,1859775393,2400959708,2840853838]),pk=Uint32Array.from([1352829926,1548603684,1836072691,2053994217,0]);function zv(e,n,t,r){return e===0?n^t^r:e===1?n&t|~n&r:e===2?(n|~t)^r:e===3?n&r|t&~r:n^(t|~r)}var pu=new Uint32Array(16),hk=class extends si{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:r,h4:i}=this;return[e,n,t,r,i]}set(e,n,t,r,i){this.h0=e|0,this.h1=n|0,this.h2=t|0,this.h3=r|0,this.h4=i|0}process(e,n){for(let m=0;m<16;m++,n+=4)pu[m]=e.getUint32(n,!0);let t=this.h0|0,r=t,i=this.h1|0,u=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=vk[m],h=pk[m],b=Nv[m],E=Tv[m],g=fk[m],k=mk[m];for(let _=0;_<16;_++){const B=fn(t+zv(m,i,a,s)+pu[b[_]]+v,g[_])+l|0;t=l,l=s,s=fn(a,10)|0,a=i,i=B}for(let _=0;_<16;_++){const B=fn(r+zv(d,u,o,c)+pu[E[_]]+h,k[_])+f|0;r=f,f=c,c=fn(o,10)|0,o=u,u=B}}this.set(this.h1+a+c|0,this.h2+s+f|0,this.h3+l+r|0,this.h4+t+u|0,this.h0+i+o|0)}roundClean(){_e(pu)}destroy(){this.destroyed=!0,_e(this.buffer),this.set(0,0,0,0,0)}};Qe(()=>new hk);function gk(e){const{source:n}=e,t=new Map,r=new mi(8192),i=new Map,u=({address:a,chainId:o})=>`${a}.${o}`;return{async consume({address:a,chainId:o,client:s}){const c=u({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),r.set(c,f),f},async increment({address:a,chainId:o}){const s=u({address:a,chainId:o}),c=t.get(s)??0;t.set(s,c+1)},async get({address:a,chainId:o,client:s}){const c=u({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=r.get(c)??0;return d>0&&m<=d?d+1:(r.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=u({address:a,chainId:o});t.delete(s),i.delete(s)}}}function Ek(){return{async get(e){const{address:n,client:t}=e;return uk(t,{address:n,blockTag:"pending"})},set(){}}}gk({source:Ek()});function yk(e,n={}){const{as:t=typeof e=="string"?"Hex":"Bytes"}=n,r=$v(Db(e));return t==="Bytes"?r:vv(r)}var bk=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}},kk={checksum:new bk(8192)},Ps=kk.checksum,Dk=/^0x[a-fA-F0-9]{40}$/;function Uv(e,n={}){const{strict:t=!0}=n;if(!Dk.test(e))throw new Pv({address:e,cause:new Bk});if(t){if(e.toLowerCase()===e)return;if(Sk(e)!==e)throw new Pv({address:e,cause:new Ak})}}function Sk(e){if(Ps.has(e))return Ps.get(e);Uv(e,{strict:!1});const n=e.substring(2).toLowerCase(),t=yk(Ab(n),{as:"Bytes"}),r=n.split("");for(let u=0;u<40;u+=2)t[u>>1]>>4>=8&&r[u]&&(r[u]=r[u].toUpperCase()),(t[u>>1]&15)>=8&&r[u+1]&&(r[u+1]=r[u+1].toUpperCase());const i=`0x${r.join("")}`;return Ps.set(e,i),i}var Pv=class extends ze{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"})}},Bk=class extends ze{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"})}},Ak=class extends ze{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}},wk=/^(.*)\[([0-9]*)\]$/,_k=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Ck=/^(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 Rs(e,n){if(e.length!==n.length)throw new Ik({expectedLength:e.length,givenLength:n.length});const t=[];for(let r=0;r<e.length;r++){const i=e[r],u=n[r];t.push(Rs.encode(i,u))}return mv(...t)}(function(e){function n(t,r,i=!1){if(t==="address"){const s=r;return Uv(s),lu(s.toLowerCase(),i?32:0)}if(t==="string")return Nb(r);if(t==="bytes")return r;if(t==="bool")return lu(xb(r),i?32:1);const u=t.match(Ck);if(u){const[s,c,l="256"]=u,f=Number.parseInt(l)/8;return Fb(r,{size:i?32:f,signed:c==="int"})}const a=t.match(_k);if(a){const[s,c]=a;if(Number.parseInt(c)!==(r.length-2)/2)throw new $k({expectedSize:Number.parseInt(c),value:r});return Is(r,i?32:0)}const o=t.match(wk);if(o&&Array.isArray(r)){const[s,c]=o,l=[];for(let f=0;f<r.length;f++)l.push(n(c,r[f],!0));return l.length===0?"0x":mv(...l)}throw new xk(t)}e.encode=n})(Rs||(Rs={}));var $k=class extends ze{constructor({expectedSize:e,value:n}){super(`Size of bytes "${n}" (bytes${xs(n)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}},Ik=class extends ze{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"})}},xk=class extends ze{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 Fk(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:ik(n)}function Rv(e){try{return new ec.PublicKey(e),!0}catch{return!1}}const jv=e=>Math.round((e+Number.EPSILON)*100)/100;function Nk(e){const n=e.replace(/^data:\w+\/\w+;base64,/,""),t=Buffer.from(n,"base64");return new Uint8Array(t)}class Tk{client;constructor(n){this.client=n}async create(n){return(await this.client.query({query:gt,variables:{createDirectPaymentInput:{...n,amount:n.amount}}}))?.createDirectPayment}async getWeb3PaymentParams(n){if(!Fk(n.paymentTokenAddress))throw new Error("Invalid token address");return(await this.client.query({query:qr,variables:{amount:jv(n.paymentRequest.amountDue),network:n.paymentRequest.network,tokenAddress:n.paymentTokenAddress,reference:n.paymentRequest.id}}))?.spritzPayParams}async getSolanaPaymentParams(n){if(!Rv(n.paymentTokenAddress))throw new Error(`Invalid token address: ${n.paymentTokenAddress}`);if(!Rv(n.signer))throw new Error(`Invalid signer: ${n.signer}`);const t=await this.client.query({query:Zr,variables:{amount:jv(n.paymentRequest.amountDue),tokenAddress:n.paymentTokenAddress,reference:n.paymentRequest.id,signer:n.signer}});return{versionedTransaction:ec.VersionedTransaction.deserialize(Nk(t?.solanaParams?.transactionSerialized??"")),transactionSerialized:t?.solanaParams?.transactionSerialized}}}class Ok{client;constructor(n){this.client=n}async accept(n){return this.client.restApi(z("/v1/users/me/terms","post",{body:n}))}}var wt={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}};wt.loc.source={body:`fragment VerificationFragment on Verification {
482
482
  userId
483
483
  identity {
484
484
  canRetry
@@ -493,14 +493,14 @@ mutation CreatePaymentRequest($createDirectPaymentInput: CreateDirectPaymentInpu
493
493
  }
494
494
  }
495
495
  }
496
- `,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(r){hu(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){hu(r,n)}),e.definitions&&e.definitions.forEach(function(r){hu(r,n)})}var js={};(function(){wt.definitions.forEach(function(n){if(n.name){var t=new Set;hu(n,t),js[n.name.value]=t}})})();function Lv(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function Fk(e,n){var t={kind:e.kind,definitions:[Lv(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=js[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=js[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Lv(e,o);s&&t.definitions.push(s)}),t}Fk(wt,"VerificationFragment");var _t={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}};_t.loc.source={body:`#import "../queries/verificationFragment.graphql"
496
+ `,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(r){hu(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){hu(r,n)}),e.definitions&&e.definitions.forEach(function(r){hu(r,n)})}var js={};(function(){wt.definitions.forEach(function(n){if(n.name){var t=new Set;hu(n,t),js[n.name.value]=t}})})();function Lv(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function zk(e,n){var t={kind:e.kind,definitions:[Lv(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=js[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=js[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Lv(e,o);s&&t.definitions.push(s)}),t}zk(wt,"VerificationFragment");var _t={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}};_t.loc.source={body:`#import "../queries/verificationFragment.graphql"
497
497
 
498
498
  mutation RetryFailedVerification {
499
499
  retryFailedVerification {
500
500
  ...VerificationFragment
501
501
  }
502
502
  }
503
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};var Zv={};function Nk(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Zv[t]?!1:(Zv[t]=!0,!0)})}_t.definitions=_t.definitions.concat(Nk(wt.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(r){gu(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){gu(r,n)}),e.definitions&&e.definitions.forEach(function(r){gu(r,n)})}var Ls={};(function(){_t.definitions.forEach(function(n){if(n.name){var t=new Set;gu(n,t),Ls[n.name.value]=t}})})();function Vv(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function Tk(e,n){var t={kind:e.kind,definitions:[Vv(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Ls[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Ls[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Vv(e,o);s&&t.definitions.push(s)}),t}Tk(_t,"RetryFailedVerification");var Eu={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}};Eu.loc.source={body:`mutation GetVerificationParams {
503
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};var Zv={};function Uk(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Zv[t]?!1:(Zv[t]=!0,!0)})}_t.definitions=_t.definitions.concat(Uk(wt.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(r){gu(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){gu(r,n)}),e.definitions&&e.definitions.forEach(function(r){gu(r,n)})}var Ls={};(function(){_t.definitions.forEach(function(n){if(n.name){var t=new Set;gu(n,t),Ls[n.name.value]=t}})})();function Vv(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function Pk(e,n){var t={kind:e.kind,definitions:[Vv(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Ls[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Ls[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Vv(e,o);s&&t.definitions.push(s)}),t}Pk(_t,"RetryFailedVerification");var Eu={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}};Eu.loc.source={body:`mutation GetVerificationParams {
504
504
  getVerificationParams {
505
505
  inquiryId
506
506
  verificationUrl
@@ -508,7 +508,7 @@ mutation RetryFailedVerification {
508
508
  verificationUrlExpiresAt
509
509
  }
510
510
  }
511
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};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(r){yu(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){yu(r,n)}),e.definitions&&e.definitions.forEach(function(r){yu(r,n)})}var Zs={};(function(){Eu.definitions.forEach(function(n){if(n.name){var t=new Set;yu(n,t),Zs[n.name.value]=t}})})();function qv(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function Ok(e,n){var t={kind:e.kind,definitions:[qv(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Zs[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Zs[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=qv(e,o);s&&t.definitions.push(s)}),t}Ok(Eu,"GetVerificationParams");var vi={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}};vi.loc.source={body:`fragment UserFragment on User {
511
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};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(r){yu(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){yu(r,n)}),e.definitions&&e.definitions.forEach(function(r){yu(r,n)})}var Zs={};(function(){Eu.definitions.forEach(function(n){if(n.name){var t=new Set;yu(n,t),Zs[n.name.value]=t}})})();function qv(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function Rk(e,n){var t={kind:e.kind,definitions:[qv(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Zs[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Zs[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=qv(e,o);s&&t.definitions.push(s)}),t}Rk(Eu,"GetVerificationParams");var vi={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}};vi.loc.source={body:`fragment UserFragment on User {
512
512
  id
513
513
  email
514
514
  firstName
@@ -516,7 +516,7 @@ mutation RetryFailedVerification {
516
516
  createdAt
517
517
  timezone
518
518
  }
519
- `,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(r){bu(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){bu(r,n)}),e.definitions&&e.definitions.forEach(function(r){bu(r,n)})}var Vs={};(function(){vi.definitions.forEach(function(n){if(n.name){var t=new Set;bu(n,t),Vs[n.name.value]=t}})})();function Mv(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function zk(e,n){var t={kind:e.kind,definitions:[Mv(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Vs[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Vs[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Mv(e,o);s&&t.definitions.push(s)}),t}zk(vi,"UserFragment");var Dn={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}};Dn.loc.source={body:`#import "./userFragment.graphql"
519
+ `,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(r){bu(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){bu(r,n)}),e.definitions&&e.definitions.forEach(function(r){bu(r,n)})}var Vs={};(function(){vi.definitions.forEach(function(n){if(n.name){var t=new Set;bu(n,t),Vs[n.name.value]=t}})})();function Mv(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function jk(e,n){var t={kind:e.kind,definitions:[Mv(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Vs[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Vs[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Mv(e,o);s&&t.definitions.push(s)}),t}jk(vi,"UserFragment");var Dn={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}};Dn.loc.source={body:`#import "./userFragment.graphql"
520
520
  #import "./verificationFragment.graphql"
521
521
 
522
522
  query CurrentUser {
@@ -527,7 +527,7 @@ query CurrentUser {
527
527
  ...VerificationFragment
528
528
  }
529
529
  }
530
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};var Gv={};function Jv(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Gv[t]?!1:(Gv[t]=!0,!0)})}Dn.definitions=Dn.definitions.concat(Jv(vi.definitions)),Dn.definitions=Dn.definitions.concat(Jv(wt.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(r){ku(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){ku(r,n)}),e.definitions&&e.definitions.forEach(function(r){ku(r,n)})}var qs={};(function(){Dn.definitions.forEach(function(n){if(n.name){var t=new Set;ku(n,t),qs[n.name.value]=t}})})();function Hv(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function Uk(e,n){var t={kind:e.kind,definitions:[Hv(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=qs[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=qs[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Hv(e,o);s&&t.definitions.push(s)}),t}Uk(Dn,"CurrentUser");var Sn={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}};Sn.loc.source={body:`#import "./userFragment.graphql"
530
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};var Gv={};function Jv(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Gv[t]?!1:(Gv[t]=!0,!0)})}Dn.definitions=Dn.definitions.concat(Jv(vi.definitions)),Dn.definitions=Dn.definitions.concat(Jv(wt.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(r){ku(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){ku(r,n)}),e.definitions&&e.definitions.forEach(function(r){ku(r,n)})}var qs={};(function(){Dn.definitions.forEach(function(n){if(n.name){var t=new Set;ku(n,t),qs[n.name.value]=t}})})();function Hv(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function Lk(e,n){var t={kind:e.kind,definitions:[Hv(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=qs[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=qs[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Hv(e,o);s&&t.definitions.push(s)}),t}Lk(Dn,"CurrentUser");var Sn={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}};Sn.loc.source={body:`#import "./userFragment.graphql"
531
531
  #import "./verificationFragment.graphql"
532
532
 
533
533
  query UserAccess {
@@ -548,7 +548,7 @@ query UserAccess {
548
548
  hasAcceptedTos
549
549
  }
550
550
  }
551
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};var Kv={};function Qv(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Kv[t]?!1:(Kv[t]=!0,!0)})}Sn.definitions=Sn.definitions.concat(Qv(vi.definitions)),Sn.definitions=Sn.definitions.concat(Qv(wt.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(r){Du(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Du(r,n)}),e.definitions&&e.definitions.forEach(function(r){Du(r,n)})}var Ms={};(function(){Sn.definitions.forEach(function(n){if(n.name){var t=new Set;Du(n,t),Ms[n.name.value]=t}})})();function Wv(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function Pk(e,n){var t={kind:e.kind,definitions:[Wv(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Ms[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Ms[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Wv(e,o);s&&t.definitions.push(s)}),t}Pk(Sn,"UserAccess");var on=(e=>(e.NotStarted="not_started",e.Pending="pending",e.Completed="completed",e.Failed="failed",e))(on||{}),Ue=(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))(Ue||{}),Su=(e=>(e.AchPurchase="ach_purchase",e.WirePurchase="wire_purchase",e))(Su||{}),pi=(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))(pi||{}),Yv=(e=>(e.UsVirtualCard="us_virtual_card",e.UsPhysicalCard="us_physical_card",e))(Yv||{}),Rk=(e=>(e.Active="Active",e.Error="Error",e.Syncing="Syncing",e.Unavailable="Unavailable",e))(Rk||{}),Xv=(e=>(e.AMOUNT_RECEIVED="AMOUNT_RECEIVED",e.TOTAL_AMOUNT="TOTAL_AMOUNT",e))(Xv||{}),ep=(e=>(e.Business="Business",e.Checking="Checking",e.Savings="Savings",e))(ep||{}),np=(e=>(e.CABankAccount="CABankAccount",e.IbanAccount="IbanAccount",e.UKBankAccount="UKBankAccount",e.USBankAccount="USBankAccount",e))(np||{}),tp=(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))(tp||{}),ip=(e=>(e.Mastercard="Mastercard",e.Visa="Visa",e))(ip||{}),rp=(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))(rp||{}),Ct=(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))(Ct||{}),jk=(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))(jk||{}),Lk=(e=>(e.Provider="Provider",e.User="User",e))(Lk||{}),up=(e=>(e.BankAccount="BankAccount",e.Bill="Bill",e.DebitCard="DebitCard",e.DigitalAccount="DigitalAccount",e.OneTimePayment="OneTimePayment",e.VirtualCard="VirtualCard",e))(up||{}),ap=(e=>(e.INSTANT="INSTANT",e.SAME_DAY="SAME_DAY",e.STANDARD="STANDARD",e))(ap||{}),op=(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))(op||{}),Gs=(e=>(e.USPhysicalDebitCard="USPhysicalDebitCard",e.USVirtualDebitCard="USVirtualDebitCard",e))(Gs||{}),Zk=(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))(Zk||{}),$t=(e=>(e.NotStarted="not_started",e.Verified="verified",e.Failed="failed",e.Disabled="disabled",e))($t||{});function Vk(e=Ct.INITIALIZED){switch(e){case Ct.FAILED:return"failed";case Ct.ACTIVE:return"verified";case Ct.DISABLED:return"disabled";case Ct.RETRY:return"failed";default:return"not_started"}}function sp(e){const n=e?.me??null;if(!n)return null;const t=e?.verification??null,r=t?.identity?.verificationMetadata??null,i=r?.details?.matchedEmail??null,u=r?.failureReason?{failureReason:r.failureReason,details:{matchedEmail:i}}:null;return{...n,verificationStatus:Vk(t?.identity?.status),verificationUrl:t?.identity?.verificationUrl??null,verifiedCountry:t?.identity?.country??null,canRetryVerification:t?.identity?.canRetry??!1,verificationMetadata:u}}function qk(e,n){return{verified:e===$t.Verified,country:n??null}}function Mk({verificationUrl:e,verificationStatus:n,retryable:t}){if(n!==$t.Verified)return n===$t.Failed?{type:Ue.IdentityVerification,description:"Identity verification failed. Please retry verification.",retryable:t,status:on.Failed}:n===$t.NotStarted?{type:Ue.IdentityVerification,description:"Verify your identity to unlock features",actionUrl:e,status:on.NotStarted}:{type:Ue.IdentityVerification,description:"Identity verification pending review",status:on.Pending}}function Gk(e){try{const n=new URL(e);return n.searchParams.delete("redirect_uri"),n.toString()}catch{return e}}function Jk(e,n){if(!e&&n)return{type:Ue.TermsAcceptance,description:"Please review and accept the terms of service",actionUrl:Gk(n),status:on.NotStarted}}function Hk(e){if(!e)return{type:Ue.IdentityVerification,status:on.NotStarted};if(!(e.status==="active"||e.status==="approved"))return e.status==="rejected"||e.status==="failed"?{type:Ue.IdentityVerification,status:on.Failed}:e.status==="pending"||e.status==="in_review"?{type:Ue.IdentityVerification,status:on.Pending}:{type:Ue.IdentityVerification,status:on.NotStarted}}function Kk(e){if(!e)return[];if(!["US"].includes(e.toUpperCase()))return[];const n=[];return e.toUpperCase()==="US"&&n.push(Su.AchPurchase,Su.WirePurchase),n}const Qk={US:[pi.UsBankAccount,pi.UsDebitCard],CA:[pi.CaBankAccount]};function Wk(e){return e?Qk[e.toUpperCase()]??[]:[]}function Yk(e){if(!e.verified)return{active:!1,features:[],requirements:[]};const n=Wk(e.country??null);return{active:n.length>0,features:n,requirements:[]}}function Xk(e,n){const t=Kk(e.country??null);if(!e.verified)return{active:!1,features:[],requirements:[]};const r=[],i=Jk(n?.hasAcceptedTos??!1,n?.tosLink);i&&r.push(i);const u=Hk(n);if(u&&r.push(u),t.length===0)return{active:!1,features:[],requirements:r};const a={active:r.length===0,features:r.length===0?t:[],requirements:r};return i?a.nextRequirement=Ue.TermsAcceptance:u&&(a.nextRequirement=Ue.IdentityVerification),a}function eD(e,n,t){const r=e?.bridgeUser,i=e?.verification?.identity?.canRetry??!1,u=e?.verification?.identity?.verificationUrl??null,a=qk(n,t),o=Mk({verificationStatus:n,retryable:i,verificationUrl:u}),s={onramp:Xk(a,r),offramp:Yk(a)};return{kycStatus:a,...o&&{kycRequirement:o},capabilities:s}}class nD{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 getMe(){return this.client.restApi(M("/v1/users/me","get"))}async getCurrentUser(){const n=await this.client.query({query:Dn});return sp(n)}async retryFailedVerification(){return await this.client.query({query:_t}),this.getCurrentUser()}async getVerificationParams(){return(await this.client.query({query:Eu})).getVerificationParams}async getUserAccess(){const n=await this.client.query({query:Sn}),t=sp(n),r=t?.verificationStatus??$t.NotStarted,i=t?.verifiedCountry??null;return eD(n,r,i)}}class tD{client;constructor(n){this.client=n}async createSession(){return this.client.restApi(M("/v1/users/me/verification-sessions/","post"))}}var hi={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}};hi.loc.source={body:`fragment VirtualDebitCardFragment on VirtualCard {
551
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};var Qv={};function Kv(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Qv[t]?!1:(Qv[t]=!0,!0)})}Sn.definitions=Sn.definitions.concat(Kv(vi.definitions)),Sn.definitions=Sn.definitions.concat(Kv(wt.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(r){Du(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Du(r,n)}),e.definitions&&e.definitions.forEach(function(r){Du(r,n)})}var Ms={};(function(){Sn.definitions.forEach(function(n){if(n.name){var t=new Set;Du(n,t),Ms[n.name.value]=t}})})();function Wv(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function Zk(e,n){var t={kind:e.kind,definitions:[Wv(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Ms[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Ms[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Wv(e,o);s&&t.definitions.push(s)}),t}Zk(Sn,"UserAccess");var on=(e=>(e.NotStarted="not_started",e.Pending="pending",e.Completed="completed",e.Failed="failed",e))(on||{}),Ue=(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))(Ue||{}),Su=(e=>(e.AchPurchase="ach_purchase",e.WirePurchase="wire_purchase",e))(Su||{}),pi=(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))(pi||{}),Yv=(e=>(e.UsVirtualCard="us_virtual_card",e.UsPhysicalCard="us_physical_card",e))(Yv||{}),Vk=(e=>(e.Active="Active",e.Error="Error",e.Syncing="Syncing",e.Unavailable="Unavailable",e))(Vk||{}),Xv=(e=>(e.AMOUNT_RECEIVED="AMOUNT_RECEIVED",e.TOTAL_AMOUNT="TOTAL_AMOUNT",e))(Xv||{}),ep=(e=>(e.Business="Business",e.Checking="Checking",e.Savings="Savings",e))(ep||{}),np=(e=>(e.CABankAccount="CABankAccount",e.IbanAccount="IbanAccount",e.UKBankAccount="UKBankAccount",e.USBankAccount="USBankAccount",e))(np||{}),tp=(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))(tp||{}),ip=(e=>(e.Mastercard="Mastercard",e.Visa="Visa",e))(ip||{}),rp=(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))(rp||{}),Ct=(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))(Ct||{}),qk=(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))(qk||{}),Mk=(e=>(e.Provider="Provider",e.User="User",e))(Mk||{}),up=(e=>(e.BankAccount="BankAccount",e.Bill="Bill",e.DebitCard="DebitCard",e.DigitalAccount="DigitalAccount",e.OneTimePayment="OneTimePayment",e.VirtualCard="VirtualCard",e))(up||{}),ap=(e=>(e.INSTANT="INSTANT",e.SAME_DAY="SAME_DAY",e.STANDARD="STANDARD",e))(ap||{}),op=(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))(op||{}),Gs=(e=>(e.USPhysicalDebitCard="USPhysicalDebitCard",e.USVirtualDebitCard="USVirtualDebitCard",e))(Gs||{}),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||{}),$t=(e=>(e.NotStarted="not_started",e.Verified="verified",e.Failed="failed",e.Disabled="disabled",e))($t||{});function Jk(e=Ct.INITIALIZED){switch(e){case Ct.FAILED:return"failed";case Ct.ACTIVE:return"verified";case Ct.DISABLED:return"disabled";case Ct.RETRY:return"failed";default:return"not_started"}}function sp(e){const n=e?.me??null;if(!n)return null;const t=e?.verification??null,r=t?.identity?.verificationMetadata??null,i=r?.details?.matchedEmail??null,u=r?.failureReason?{failureReason:r.failureReason,details:{matchedEmail:i}}:null;return{...n,verificationStatus:Jk(t?.identity?.status),verificationUrl:t?.identity?.verificationUrl??null,verifiedCountry:t?.identity?.country??null,canRetryVerification:t?.identity?.canRetry??!1,verificationMetadata:u}}function Hk(e,n){return{verified:e===$t.Verified,country:n??null}}function Qk({verificationUrl:e,verificationStatus:n,retryable:t}){if(n!==$t.Verified)return n===$t.Failed?{type:Ue.IdentityVerification,description:"Identity verification failed. Please retry verification.",retryable:t,status:on.Failed}:n===$t.NotStarted?{type:Ue.IdentityVerification,description:"Verify your identity to unlock features",actionUrl:e,status:on.NotStarted}:{type:Ue.IdentityVerification,description:"Identity verification pending review",status:on.Pending}}function Kk(e){try{const n=new URL(e);return n.searchParams.delete("redirect_uri"),n.toString()}catch{return e}}function Wk(e,n){if(!e&&n)return{type:Ue.TermsAcceptance,description:"Please review and accept the terms of service",actionUrl:Kk(n),status:on.NotStarted}}function Yk(e){if(!e)return{type:Ue.IdentityVerification,status:on.NotStarted};if(!(e.status==="active"||e.status==="approved"))return e.status==="rejected"||e.status==="failed"?{type:Ue.IdentityVerification,status:on.Failed}:e.status==="pending"||e.status==="in_review"?{type:Ue.IdentityVerification,status:on.Pending}:{type:Ue.IdentityVerification,status:on.NotStarted}}function Xk(e){if(!e)return[];if(!["US"].includes(e.toUpperCase()))return[];const n=[];return e.toUpperCase()==="US"&&n.push(Su.AchPurchase,Su.WirePurchase),n}const eD={US:[pi.UsBankAccount,pi.UsDebitCard],CA:[pi.CaBankAccount]};function nD(e){return e?eD[e.toUpperCase()]??[]:[]}function tD(e){if(!e.verified)return{active:!1,features:[],requirements:[]};const n=nD(e.country??null);return{active:n.length>0,features:n,requirements:[]}}function iD(e,n){const t=Xk(e.country??null);if(!e.verified)return{active:!1,features:[],requirements:[]};const r=[],i=Wk(n?.hasAcceptedTos??!1,n?.tosLink);i&&r.push(i);const u=Yk(n);if(u&&r.push(u),t.length===0)return{active:!1,features:[],requirements:r};const a={active:r.length===0,features:r.length===0?t:[],requirements:r};return i?a.nextRequirement=Ue.TermsAcceptance:u&&(a.nextRequirement=Ue.IdentityVerification),a}function rD(e,n,t){const r=e?.bridgeUser,i=e?.verification?.identity?.canRetry??!1,u=e?.verification?.identity?.verificationUrl??null,a=Hk(n,t),o=Qk({verificationStatus:n,retryable:i,verificationUrl:u}),s={onramp:iD(a,r),offramp:tD(a)};return{kycStatus:a,...o&&{kycRequirement:o},capabilities:s}}class uD{client;constructor(n){this.client=n}async createUser(n){return this.client.usesIntegratorAuth?this.client.restApi(z("/v1/integrator/users","post",{body:{email:n.email,...n.timezone?{timezone:n.timezone}:{}}})):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 getMe(){return this.client.restApi(z("/v1/users/me","get"))}async getCurrentUser(){const n=await this.client.query({query:Dn});return sp(n)}async retryFailedVerification(){return await this.client.query({query:_t}),this.getCurrentUser()}async getVerificationParams(){return(await this.client.query({query:Eu})).getVerificationParams}async getUserAccess(){const n=await this.client.query({query:Sn}),t=sp(n),r=t?.verificationStatus??$t.NotStarted,i=t?.verifiedCountry??null;return rD(n,r,i)}}class aD{client;constructor(n){this.client=n}async createSession(){return this.client.restApi(z("/v1/users/me/verification-sessions/","post"))}}var hi={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}};hi.loc.source={body:`fragment VirtualDebitCardFragment on VirtualCard {
552
552
  id
553
553
  name
554
554
  userId
@@ -578,24 +578,24 @@ query UserAccess {
578
578
  address
579
579
  }
580
580
  }
581
- `,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(r){Bu(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Bu(r,n)}),e.definitions&&e.definitions.forEach(function(r){Bu(r,n)})}var Js={};(function(){hi.definitions.forEach(function(n){if(n.name){var t=new Set;Bu(n,t),Js[n.name.value]=t}})})();function cp(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function iD(e,n){var t={kind:e.kind,definitions:[cp(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Js[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Js[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=cp(e,o);s&&t.definitions.push(s)}),t}iD(hi,"VirtualDebitCardFragment");var It={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}};It.loc.source={body:`#import "../queries/virtualDebitCardFragment.graphql"
581
+ `,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(r){Bu(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Bu(r,n)}),e.definitions&&e.definitions.forEach(function(r){Bu(r,n)})}var Js={};(function(){hi.definitions.forEach(function(n){if(n.name){var t=new Set;Bu(n,t),Js[n.name.value]=t}})})();function cp(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function oD(e,n){var t={kind:e.kind,definitions:[cp(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Js[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Js[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=cp(e,o);s&&t.definitions.push(s)}),t}oD(hi,"VirtualDebitCardFragment");var It={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}};It.loc.source={body:`#import "../queries/virtualDebitCardFragment.graphql"
582
582
 
583
583
  mutation CreateUSVirtualDebitCard {
584
584
  createUSVirtualDebitCard {
585
585
  ...VirtualDebitCardFragment
586
586
  }
587
587
  }
588
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};var lp={};function rD(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return lp[t]?!1:(lp[t]=!0,!0)})}It.definitions=It.definitions.concat(rD(hi.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(r){Au(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Au(r,n)}),e.definitions&&e.definitions.forEach(function(r){Au(r,n)})}var Hs={};(function(){It.definitions.forEach(function(n){if(n.name){var t=new Set;Au(n,t),Hs[n.name.value]=t}})})();function dp(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function uD(e,n){var t={kind:e.kind,definitions:[dp(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Hs[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Hs[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=dp(e,o);s&&t.definitions.push(s)}),t}uD(It,"CreateUSVirtualDebitCard");var xt={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}};xt.loc.source={body:`#import "./virtualDebitCardFragment.graphql"
588
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};var lp={};function sD(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return lp[t]?!1:(lp[t]=!0,!0)})}It.definitions=It.definitions.concat(sD(hi.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(r){Au(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Au(r,n)}),e.definitions&&e.definitions.forEach(function(r){Au(r,n)})}var Hs={};(function(){It.definitions.forEach(function(n){if(n.name){var t=new Set;Au(n,t),Hs[n.name.value]=t}})})();function dp(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function cD(e,n){var t={kind:e.kind,definitions:[dp(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Hs[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Hs[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=dp(e,o);s&&t.definitions.push(s)}),t}cD(It,"CreateUSVirtualDebitCard");var xt={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}};xt.loc.source={body:`#import "./virtualDebitCardFragment.graphql"
589
589
 
590
590
  query UserVirtualDebitCard {
591
591
  virtualDebitCard {
592
592
  ...VirtualDebitCardFragment
593
593
  }
594
594
  }
595
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};var fp={};function aD(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)})}xt.definitions=xt.definitions.concat(aD(hi.definitions));function wu(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(r){wu(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){wu(r,n)}),e.definitions&&e.definitions.forEach(function(r){wu(r,n)})}var Ks={};(function(){xt.definitions.forEach(function(n){if(n.name){var t=new Set;wu(n,t),Ks[n.name.value]=t}})})();function mp(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function oD(e,n){var t={kind:e.kind,definitions:[mp(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Ks[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Ks[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=mp(e,o);s&&t.definitions.push(s)}),t}oD(xt,"UserVirtualDebitCard");const sD={[Gs.USVirtualDebitCard]:e=>({query:It,variables:void 0,response:"createUSVirtualDebitCard"})},cD=(e,n)=>sD[e]?.(n)??null;class lD{client;constructor(n){this.client=n}async fetch(){return(await this.client.query({query:xt}))?.virtualDebitCard??null}async create(n,t){const r=cD(n,t);if(!r)throw new Error("Invalid virtual card type");return(await this.client.query({query:r.query,variables:r.variables}))?.[r.response]??null}}function Qs(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 dD{client;constructor(n){this.client=n}async create(n){const t=await this.client.restApi(M("/v1/integrator/webhooks","post",{body:n}));return Qs(t)}async update(n,t){const r=await this.client.restApi(M("/v1/integrator/webhooks/{webhookId}","patch",{params:{webhookId:n},body:t}));return Qs(r)}async updateWebhookSecret(n){return{success:(await this.client.restApi(M("/v1/integrator/webhook-secret","post",{body:{secret:n}}))).secretConfigured}}async list(){return(await this.client.restApi(M("/v1/integrator/webhooks","get"))).map(Qs)}async delete(n){const t=await this.list().then(r=>r.find(i=>i.id===n)).catch(()=>{});return await this.client.restApi(M("/v1/integrator/webhooks/{webhookId}","delete",{params:{webhookId:n}})),t??{id:n,integratorId:"",failureCount:0,events:[],url:"",createdAt:"",disabled:!0}}}class Xs{environment;apiKey;integrationKey;integratorSecret;client;user;verification;bankAccount;debitCard;deposit;achDebit;achDebitReturn;fundingSource;paymentRequest;payment;onrampPayment;onramp;offramp;virtualAccounts;virtualCard;bill;institution;sandbox;webhook;constructor(n,t,r,i,u){if(t===void 0&&r===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&&!r)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=r,this.integratorSecret=i,!u&&jh())throw new Error(`It seems you're operating within a browser environment.
595
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};var fp={};function lD(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)})}xt.definitions=xt.definitions.concat(lD(hi.definitions));function wu(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(r){wu(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){wu(r,n)}),e.definitions&&e.definitions.forEach(function(r){wu(r,n)})}var Qs={};(function(){xt.definitions.forEach(function(n){if(n.name){var t=new Set;wu(n,t),Qs[n.name.value]=t}})})();function mp(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function dD(e,n){var t={kind:e.kind,definitions:[mp(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Qs[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Qs[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=mp(e,o);s&&t.definitions.push(s)}),t}dD(xt,"UserVirtualDebitCard");const fD={[Gs.USVirtualDebitCard]:e=>({query:It,variables:void 0,response:"createUSVirtualDebitCard"})},mD=(e,n)=>fD[e]?.(n)??null;class vD{client;constructor(n){this.client=n}async fetch(){return(await this.client.query({query:xt}))?.virtualDebitCard??null}async create(n,t){const r=mD(n,t);if(!r)throw new Error("Invalid virtual card type");return(await this.client.query({query:r.query,variables:r.variables}))?.[r.response]??null}}function Ks(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 pD{client;constructor(n){this.client=n}async create(n){const t=await this.client.restApi(z("/v1/integrator/webhooks","post",{body:n}));return Ks(t)}async update(n,t){const r=await this.client.restApi(z("/v1/integrator/webhooks/{webhookId}","patch",{params:{webhookId:n},body:t}));return Ks(r)}async updateWebhookSecret(n){return{success:(await this.client.restApi(z("/v1/integrator/webhook-secret","post",{body:{secret:n}}))).secretConfigured}}async list(){return(await this.client.restApi(z("/v1/integrator/webhooks","get"))).map(Ks)}async delete(n){const t=await this.list().then(r=>r.find(i=>i.id===n)).catch(()=>{});return await this.client.restApi(z("/v1/integrator/webhooks/{webhookId}","delete",{params:{webhookId:n}})),t??{id:n,integratorId:"",failureCount:0,events:[],url:"",createdAt:"",disabled:!0}}}class Xs{environment;apiKey;integrationKey;integratorSecret;client;user;verification;compliance;terms;bankAccount;debitCard;deposit;achDebit;achDebitReturn;fundingSource;paymentRequest;payment;onrampPayment;onramp;offramp;offRampQuote;virtualAccounts;autoRampAccount;virtualCard;bill;institution;sandbox;webhook;constructor(n,t,r,i,u){if(t===void 0&&r===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&&!r)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=r,this.integratorSecret=i,!u&&jh())throw new Error(`It seems you're operating within a browser environment.
596
596
 
597
597
  By default, this is deactivated due to the potential risk of exposing your confidential integrator credentials.
598
598
  If you're aware of these risks and have taken necessary security measures, you can enable the \`dangerouslyAllowBrowser\` option, e.g.,
599
599
 
600
600
  SpritzApiClient.initialize({ apiKey, dangerouslyAllowBrowser: true });
601
- `)}static initialize({environment:n=Cu.Sandbox,apiKey:t,integrationKey:r,integratorSecret:i,dangerouslyAllowBrowser:u=!1}){const a=new Xs(n,t,r,i,u);return a.init(),a}init(){this.client=new lg({environment:this.environment,apiKey:this.apiKey,integrationKey:this.integrationKey,integratorSecret:this.integratorSecret}),this.user=new nD(this.client),this.verification=new tD(this.client),this.bankAccount=new gg(this.client),this.debitCard=new gE(this.client),this.deposit=new yE(this.client),this.achDebit=new pg(this.client),this.achDebitReturn=new hg(this.client),this.fundingSource=new bE(this.client),this.paymentRequest=new xk(this.client),this.payment=new WE(this.client),this.onrampPayment=new FE(this.client),this.onramp=new zE(this.client),this.offramp=new CE(this.client),this.virtualAccounts=new VE(this.client),this.virtualCard=new lD(this.client),this.bill=new Cg(this.client),this.institution=new wE(this.client),this.sandbox=new _E(this.client),this.webhook=new dD(this.client)}setApiKey(n){return this.apiKey=n,this.init(),this}}exports.APIConnectionError=Oi,exports.APIConnectionTimeoutError=Vc,exports.APIError=be,exports.APIUserAbortError=Mh,exports.AmountMode=Xv,exports.AuthenticationError=Mc,exports.BadRequestError=qc,exports.BankAccountSubType=ep,exports.BankAccountType=np,exports.BillType=tp,exports.CardFeatureType=Yv,exports.ConflictError=Hc,exports.DebitCardNetwork=ip,exports.Environment=Cu,exports.InternalServerError=Wc,exports.NotFoundError=Jc,exports.OfframpFeatureType=pi,exports.OnrampFeatureType=Su,exports.PayableAccountType=up,exports.PaymentDeliveryMethod=ap,exports.PaymentNetwork=Je,exports.PaymentRequestStatus=rp,exports.PaymentStatus=op,exports.PermissionDeniedError=Gc,exports.RateLimitError=Qc,exports.RequirementType=Ue,exports.SpritzApiClient=Xs,exports.SpritzApiError=Zc,exports.UnprocessableEntityError=Kc,exports.VirtualCardType=Gs,exports.hasProblemCode=Jh,exports.hasProblemType=Gh,exports.isAPIError=qu,exports.onrampSupportedTokens=a4;
601
+ `)}static initialize({environment:n=Cu.Sandbox,apiKey:t,integrationKey:r,integratorSecret:i,dangerouslyAllowBrowser:u=!1}){const a=new Xs(n,t,r,i,u);return a.init(),a}init(){this.client=new lg({environment:this.environment,apiKey:this.apiKey,integrationKey:this.integrationKey,integratorSecret:this.integratorSecret}),this.user=new uD(this.client),this.verification=new aD(this.client),this.compliance=new $g(this.client),this.terms=new Ok(this.client),this.bankAccount=new gg(this.client),this.debitCard=new EE(this.client),this.deposit=new bE(this.client),this.achDebit=new pg(this.client),this.achDebitReturn=new hg(this.client),this.fundingSource=new kE(this.client),this.paymentRequest=new Tk(this.client),this.payment=new ey(this.client),this.onrampPayment=new TE(this.client),this.onramp=new PE(this.client),this.offramp=new $E(this.client),this.offRampQuote=new IE(this.client),this.virtualAccounts=new ME(this.client),this.autoRampAccount=new GE(this.client),this.virtualCard=new vD(this.client),this.bill=new Cg(this.client),this.institution=new _E(this.client),this.sandbox=new CE(this.client),this.webhook=new pD(this.client)}setApiKey(n){return this.apiKey=n,this.init(),this}}exports.APIConnectionError=Oi,exports.APIConnectionTimeoutError=Vc,exports.APIError=be,exports.APIUserAbortError=Mh,exports.AmountMode=Xv,exports.AuthenticationError=Mc,exports.BadRequestError=qc,exports.BankAccountSubType=ep,exports.BankAccountType=np,exports.BillType=tp,exports.CardFeatureType=Yv,exports.ConflictError=Hc,exports.DebitCardNetwork=ip,exports.Environment=Cu,exports.InternalServerError=Wc,exports.NotFoundError=Jc,exports.OfframpFeatureType=pi,exports.OnrampFeatureType=Su,exports.PayableAccountType=up,exports.PaymentDeliveryMethod=ap,exports.PaymentNetwork=Je,exports.PaymentRequestStatus=rp,exports.PaymentStatus=op,exports.PermissionDeniedError=Gc,exports.RateLimitError=Kc,exports.RequirementType=Ue,exports.SpritzApiClient=Xs,exports.SpritzApiError=Zc,exports.UnprocessableEntityError=Qc,exports.VirtualCardType=Gs,exports.hasProblemCode=Jh,exports.hasProblemType=Gh,exports.isAPIError=qu,exports.onrampSupportedTokens=a4;