1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,67034,(e,t,n)=>{var r={675:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,a=l(e),o=a[0],s=a[1],u=new i((o+s)*3/4-s),c=0,d=s>0?o-4:o;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,a=[],o=0,s=r-i;o<s;o+=16383)a.push(function(e,t,r){for(var i,a=[],o=t;o<r;o+=3)i=(e[o]<<16&0xff0000)+(e[o+1]<<8&65280)+(255&e[o+2]),a.push(n[i>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}(e,o,o+16383>s?s:o+16383));return 1===i?a.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&a.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),a.join("")};for(var n=[],r=[],i="u">typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=a.length;o<s;++o)n[o]=a[o],r[a.charCodeAt(o)]=o;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r[45]=62,r[95]=63},72:function(e,t,n){"use strict";var r=n(675),i=n(783),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function o(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e){var r=e,i=t;if(("string"!=typeof i||""===i)&&(i="utf8"),!s.isEncoding(i))throw TypeError("Unknown encoding: "+i);var a=0|f(r,i),l=o(a),u=l.write(r,i);return u!==a&&(l=l.slice(0,u)),l}if(ArrayBuffer.isView(e))return d(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(T(e,ArrayBuffer)||e&&T(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(T(e,SharedArrayBuffer)||e&&T(e.buffer,SharedArrayBuffer)))return function(e,t,n){var r;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),s.prototype),r}(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var c=e.valueOf&&e.valueOf();if(null!=c&&c!==e)return s.from(c,t,n);var m=function(e){if(s.isBuffer(e)){var t=0|p(e.length),n=o(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?o(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(m)return m;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),o(e<0?0:0|p(e))}function d(e){for(var t=e.length<0?0:0|p(e.length),n=o(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),!s.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return(u(e),e<=0)?o(e):void 0!==t?"string"==typeof n?o(e).fill(t,n):o(e).fill(t):o(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)};function p(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function f(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||T(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return I(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return E(e).length;default:if(i)return r?-1:I(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){var i,a,o,s=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a<n;++a)i+=j[e[a]];return i}(this,t,n);case"utf8":case"utf-8":return y(this,t,n);case"ascii":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}(this,t,n);case"latin1":case"binary":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}(this,t,n);case"base64":return i=this,a=t,o=n,0===a&&o===i.length?r.fromByteArray(i):r.fromByteArray(i.slice(a,o));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}(this,t,n);default:if(s)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}function h(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){var a;if(0===e.length)return -1;if("string"==typeof n?(r=n,n=0):n>0x7fffffff?n=0x7fffffff:n<-0x80000000&&(n=-0x80000000),(a=n*=1)!=a&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length)if(i)return -1;else n=e.length-1;else if(n<0)if(!i)return -1;else n=0;if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,n);else return Uint8Array.prototype.lastIndexOf.call(e,t,n);return v(e,[t],n,r,i)}throw TypeError("val must be string, number or Buffer")}function v(e,t,n,r,i){var a,o=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;
vendor: 12,507 bytes, line 1
1o=2,s/=2,l/=2,n/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var c=-1;for(a=n;a<s;a++)if(u(e,a)===u(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===l)return c*o}else -1!==c&&(a-=a-c),c=-1}else for(n+l>s&&(n=s-l),a=n;a>=0;a--){for(var d=!0,p=0;p<l;p++)if(u(e,a+p)!==u(t,p)){d=!1;break}if(d)return a}return -1}s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(T(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),T(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:+(r<n)},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(n=0,t=0;n<e.length;++n)t+=e[n].length;var n,r=s.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(T(a,Uint8Array)&&(a=s.from(a)),!s.isBuffer(a))throw TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},s.byteLength=f,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)h(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)h(this,t,t+3),h(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)h(this,t,t+7),h(this,t+1,t+6),h(this,t+2,t+5),h(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?y(this,0,e):m.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},a&&(s.prototype[a]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(T(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,o=n-t,l=Math.min(a,o),u=this.slice(r,i),c=e.slice(t,n),d=0;d<l;++d)if(u[d]!==c[d]){a=u[d],o=c[d];break}return a<o?-1:+(o<a)},s.prototype.includes=function(e,t,n){return -1!==this.indexOf(e,t,n)},s.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)};function y(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a,o,s,l,u=e[i],c=null,d=u>239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(a=e[i+1]))==128&&(l=(31&u)<<6|63&a)>127&&(c=l);break;case 3:a=e[i+1],o=e[i+2],(192&a)==128&&(192&o)==128&&(l=(15&u)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],(192&a)==128&&(192&o)==128&&(192&s)==128&&(l=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}var p=r,f=p.length;if(f<=4096)return String.fromCharCode.apply(String,p);for(var m="",h=0;h<f;)m+=String.fromCharCode.apply(String,p.slice(h,h+=4096));return m}function b(e,t,n){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>n)throw RangeError("Trying to access beyond buffer length")}function x(e,t,n,r,i,a){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw RangeError('"value" argument is out of bounds');if(n+r>e.length)throw RangeError("Index out of range")}function _(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function k(e,t,n,r,a){return t*=1,n>>>=0,a||_(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function $(e,t,n,r,a){return t*=1,n>>>=0,a||_(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}s.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,a,o,s,l,u,c,d,p=this.length-t;if((void 0===n||n>p)&&(n=p),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var f=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var a=t.length;r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s,l=parseInt(t.substr(2*o,2),16);if((s=l)!=s)break;e[n+o]=l}return o}(this,e,t,n);case"utf8":case"utf-8":return i=t,a=n,O(I(e,this.length-i),this,i,a);case"ascii":return o=t,s=n,O(S(e),this,o,s);case"latin1":case"binary":return function(e,t,n,r){return O(S(t),e,n,r)}(this,e,t,n);case"base64":return l=t,u=n,O(E(e),this,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=t,d=n,O(function(e,t){for(var n,r,i=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,i.push(n%256),i.push(r);return i}(e,this.length-c),this,c,d);default:if(f)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),f=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,s.prototype),r},s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},s.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?0xffff0000|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?0xffff0000|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,n,r){if(e*=1,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;x(this,e,t,n,i,0)}var a=1,o=0;for(this[t]=255&e;++o<n&&(a*=256);)this[t+o]=e/a&255;return t+n},s.prototype.writeUIntBE=function(e,t,n,r){if(e*=1,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;x(this,e,t,n,i,0)}var a=n-1,o=1;for(this[t+a]=255&e;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+n},s.prototype.writeUInt8=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUInt32LE=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUInt32BE=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e*=1,t>>>=0,!r){var i=Math.pow(2,8*n-1);x(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e*=1,t>>>=0,!r){var i=Math.pow(2,8*n-1);x(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,n){return k(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return k(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return $(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return $(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var a=i-1;a>=0;--a)e[a+t]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},s.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!s.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===e.length){var i,a=e.charCodeAt(0);("utf8"===r&&a<128||"latin1"===r)&&(e=a)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError("Out of range index");if(n<=t)return this;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var o=s.isBuffer(e)?e:s.from(e,r),l=o.length;
1if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=o[i%l]}return this};var w=/[^+/0-9A-Za-z-_]/g;function I(e,t){t=t||1/0;for(var n,r=e.length,i=null,a=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319||o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return a}function S(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function E(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(w,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function O(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function T(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var j=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},783:function(e,t){t.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,d=n?i-1:0,p=n?-1:1,f=e[t+d];for(d+=p,a=f&(1<<-c)-1,f>>=-c,c+=s;c>0;a=256*a+e[t+d],d+=p,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=r;c>0;o=256*o+e[t+d],d+=p,c-=8);if(0===a)a=1-u;else{if(a===l)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,r),a-=u}return(f?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var o,s,l,u=8*a-i-1,c=(1<<u)-1,d=c>>1,p=5960464477539062e-23*(23===i),f=r?0:a-1,m=r?1:-1,h=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(s=+!!isNaN(t),o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+d>=1?t+=p/l:t+=p*Math.pow(2,1-d),t*l>=2&&(o++,l/=2),o+d>=c?(s=0,o=c):o+d>=1?(s=(t*l-1)*Math.pow(2,i),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[n+f]=255&s,f+=m,s/=256,i-=8);for(o=o<<i|s,u+=i;u>0;e[n+f]=255&o,f+=m,o/=256,u-=8);e[n+f-m]|=128*h}}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}},o=!0;try{r[e](n,n.exports,a),o=!1}finally{o&&delete i[e]}return n.exports}a.ab="/ROOT/node_modules/next/dist/compiled/buffer/",t.exports=a(72)},99970,(e,t,n)=>{"use strict";var r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,s={},l={SYMBOL_FOR_REQ_CONTEXT:()=>c,getContext:()=>d};for(var u in l)r(s,u,{get:l[u],enumerable:!0});t.exports=((e,t,n,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of a(t))o.call(e,l)||l===n||r(e,l,{get:()=>t[l],enumerable:!(s=i(t,l))||s.enumerable});return e})(r({},"__esModule",{value:!0}),s);let c=Symbol.for("@vercel/request-context");function d(){let e=globalThis;return e[c]?.get?.()??{}}},91754,(e,t,n)=>{"use strict";var r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,s={},l={AccessTokenMissingError:()=>c,RefreshAccessTokenFailedError:()=>d};for(var u in l)r(s,u,{get:l[u],enumerable:!0});t.exports=((e,t,n,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of a(t))o.call(e,l)||l===n||r(e,l,{get:()=>t[l],enumerable:!(s=i(t,l))||s.enumerable});return e})(r({},"__esModule",{value:!0}),s);class c extends Error{constructor(){super("No authentication found. Please log in with the Vercel CLI (vercel login)."),this.name="AccessTokenMissingError"}}class d extends Error{constructor(e){super("Failed to refresh authentication token.",{cause:e}),this.name="RefreshAccessTokenFailedError"}}},25150,(e,t,n)=>{"use strict";var r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,s={},l={AccessTokenMissingError:()=>d.AccessTokenMissingError,RefreshAccessTokenFailedError:()=>d.RefreshAccessTokenFailedError,getContext:()=>c.getContext,getVercelOidcToken:()=>p,getVercelOidcTokenSync:()=>f,getVercelToken:()=>m};for(var u in l)r(s,u,{get:l[u],enumerable:!0});t.exports=((e,t,n,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of a(t))o.call(e,l)||l===n||r(e,l,{get:()=>t[l],enumerable:!(s=i(t,l))||s.enumerable});return e})(r({},"__esModule",{value:!0}),s);var c=e.r(99970),d=e.r(91754);async function p(){return""}function f(){return""}async function m(){throw Error("getVercelToken is not supported in browser environments")}},55838,(e,t,n)=>{"use strict";var r=e.r(71645),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,o=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})},[e,n,t]),o(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(n),n};n.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},2239,(e,t,n)=>{"use strict";
1t.exports=e.r(55838)},61866,(e,t,n)=>{t.exports=function(e,t){let n;if("function"!=typeof e)throw TypeError(`Expected the first argument to be a \`function\`, got \`${typeof e}\`.`);let r=0;return function(...i){clearTimeout(n);let a=Date.now(),o=t-(a-r);o<=0?(r=a,e.apply(this,i)):n=setTimeout(()=>{r=Date.now(),e.apply(this,i)},o)}}},26568,(e,t,n)=>{"use strict";var r=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,i=/\n/g,a=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,c=/^\s+|\s+$/g;function d(e){return e?e.replace(c,""):""}t.exports=function(e,t){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,c=1;function p(e){var t=e.match(i);t&&(n+=t.length);var r=e.lastIndexOf("\n");c=~r?e.length-r:c+e.length}function f(){var e={line:n,column:c};return function(t){return t.position=new m(e),g(a),t}}function m(e){this.start=e,this.end={line:n,column:c},this.source=t.source}function h(r){var i=Error(t.source+":"+n+":"+c+": "+r);if(i.reason=r,i.filename=t.source,i.line=n,i.column=c,i.source=e,t.silent);else throw i}function g(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function v(e){var t;for(e=e||[];t=y();)!1!==t&&e.push(t);return e}function y(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return h("End of comment missing");var r=e.slice(2,n-2);return c+=2,p(r),e=e.slice(n),c+=2,t({type:"comment",comment:r})}}m.prototype.content=e,g(a);var b,x=[];for(v(x);b=function(){var e=f(),t=g(o);if(t){if(y(),!g(s))return h("property missing ':'");var n=g(l),i=e({type:"declaration",property:d(t[0].replace(r,"")),value:n?d(n[0].replace(r,"")):""});return g(u),i}}();)!1!==b&&(x.push(b),v(x));return x}},70454,(e,t,n)=>{"use strict";var r=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;let r=(0,i.default)(e),a="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;let{property:r,value:i}=e;a?t(r,i,e):i&&((n=n||{})[r]=i)}),n};let i=r(e.r(26568))},65185,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.camelCase=void 0;var r=/^--[a-zA-Z0-9_-]+$/,i=/-([a-z])/g,a=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,l=function(e,t){return t.toUpperCase()},u=function(e,t){return"".concat(t,"-")};n.camelCase=function(e,t){var n;return(void 0===t&&(t={}),!(n=e)||a.test(n)||r.test(n))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(s,u):e.replace(o,u)).replace(i,l))}},15511,(e,t,n)=>{"use strict";var r=(e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(e.r(70454)),i=e.r(65185);function a(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}a.default=a,t.exports=a},4100,(e,t,n)=>{"use strict";var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===i.call(e)},l=function(e){if(!e||"[object Object]"!==i.call(e))return!1;var t,n=r.call(e,"constructor"),a=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!a)return!1;for(t in e);return void 0===t||r.call(e,t)},u=function(e,t){a&&"__proto__"===t.name?a(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,t){if("__proto__"===t){if(!r.call(e,t))return;else if(o)return o(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,o,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(t=arguments[p],null!=t)for(n in t)r=c(d,n),d!==(i=c(t,n))&&(m&&i&&(l(i)||(a=s(i)))?(a?(a=!1,o=r&&s(r)?r:[]):o=r&&l(r)?r:{},u(d,{name:n,newValue:e(m,o,i)})):void 0!==i&&u(d,{name:n,newValue:i}));return d}},55749,e=>{"use strict";let t;var n,r,i,a,o,s,l,u,c,d,p,f,m,h,g,v,y,b,x,_,k,$,w,I,S,E,O,T,j,z,A,C,P,N,U,Z,D,M,R,L,F,B,V,J,q,W,H,K,G,X,Y,Q,ee,et,en,er,ei=e.i(18050),ea=e.i(71645),eo=e.i(18566),es=e.i(47167),el="vercel.ai.error",eu=Symbol.for(el),ec=class e extends(o=Error,a=eu,o){constructor({name:e,message:t,cause:n}){super(t),this[a]=!0,this.name=e,this.cause=n}static isInstance(t){return e.hasMarker(t,el)}static hasMarker(e,t){let n=Symbol.for(t);return null!=e&&"object"==typeof e&&n in e&&"boolean"==typeof e[n]&&!0===e[n]}},ed="AI_APICallError",ep=`vercel.ai.error.${ed}`,ef=Symbol.for(ep),em=class extends(l=ec,s=ef,l){constructor({message:e,url:t,requestBodyValues:n,statusCode:r,responseHeaders:i,responseBody:a,cause:o,isRetryable:l=null!=r&&(408===r||409===r||429===r||r>=500),data:u}){super({name:ed,message:e,cause:o}),this[s]=!0,this.url=t,this.requestBodyValues=n,this.statusCode=r,this.responseHeaders=i,this.responseBody=a,this.isRetryable=l,this.data=u}static isInstance(e){return ec.hasMarker(e,ep)}},eh="AI_EmptyResponseBodyError",eg=`vercel.ai.error.${eh}`,ev=Symbol.for(eg),ey=class extends(c=ec,u=ev,c){constructor({message:e="Empty response body"}={}){super({name:eh,message:e}),this[u]=!0}static isInstance(e){return ec.hasMarker(e,eg)}};function eb(e){return null==e?"unknown error":"string"==typeof e?e:e instanceof Error?e.toString():JSON.stringify(e)}var ex="AI_InvalidArgumentError",e_=`vercel.ai.error.${ex}`,ek=Symbol.for(e_),e$=class extends(p=ec,d=ek,p){constructor({message:e,cause:t,argument:n}){super({name:ex,message:e,cause:t}),this[d]=!0,this.argument=n}static isInstance(e){return ec.hasMarker(e,e_)}},ew=Symbol.for("vercel.ai.error.AI_InvalidPromptError");Symbol.for("vercel.ai.error.AI_InvalidResponseDataError");var eI="AI_JSONParseError",eS=`vercel.ai.error.${eI}`,eE=Symbol.for(eS),eO=class extends(m=ec,f=eE,m){constructor({text:e,cause:t}){super({name:eI,message:`JSON parsing failed: Text: ${e}. 2Error message: ${eb(t)}`,cause:t}),this[f]=!0,this.text=e}static isInstance(e){return ec.hasMarker(e,eS)}},eT=Symbol.for("vercel.ai.error.AI_LoadAPIKeyError");Symbol.for("vercel.ai.error.AI_LoadSettingError");Symbol.for("vercel.ai.error.AI_NoContentGeneratedError");
2Symbol.for("vercel.ai.error.AI_NoSuchModelError");Symbol.for("vercel.ai.error.AI_NoSuchProviderReferenceError");Symbol.for("vercel.ai.error.AI_TooManyEmbeddingValuesForCallError");var ej="AI_TypeValidationError",ez=`vercel.ai.error.${ej}`,eA=Symbol.for(ez),eC=class e extends(g=ec,h=eA,g){constructor({value:e,cause:t,context:n}){let r="Type validation failed";if((null==n?void 0:n.field)&&(r+=` for ${n.field}`),(null==n?void 0:n.entityName)||(null==n?void 0:n.entityId)){r+=" (";const e=[];n.entityName&&e.push(n.entityName),n.entityId&&e.push(`id: "${n.entityId}"`),r+=e.join(", "),r+=")"}super({name:ej,message:`${r}: Value: ${JSON.stringify(e)}. 3Error message: ${eb(t)}`,cause:t}),this[h]=!0,this.value=e,this.context=n}static isInstance(e){return ec.hasMarker(e,ez)}static wrap({value:t,cause:n,context:r}){var i,a,o;return e.isInstance(n)&&n.value===t&&(null==(i=n.context)?void 0:i.field)===(null==r?void 0:r.field)&&(null==(a=n.context)?void 0:a.entityName)===(null==r?void 0:r.entityName)&&(null==(o=n.context)?void 0:o.entityId)===(null==r?void 0:r.entityId)?n:new e({value:t,cause:n,context:r})}},eP=Symbol.for("vercel.ai.error.AI_UnsupportedFunctionalityError");let eN=Object.freeze({status:"aborted"});function eU(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class a extends i{}function o(e){var t;let i=n?.Parent?new a:this;for(let n of(r(i,e),(t=i._zod).deferred??(t.deferred=[]),i._zod.deferred))n();return i}return Object.defineProperty(a,"name",{value:e}),Object.defineProperty(o,"init",{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>!!n?.Parent&&t instanceof n.Parent||t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}let eZ=Symbol("zod_brand");class eD extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class eM extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}(v=globalThis).__zod_globalConfig??(v.__zod_globalConfig={});let eR=globalThis.__zod_globalConfig;function eL(e){return e&&Object.assign(eR,e),eR}function eF(e){let t=Object.values(e).filter(e=>"number"==typeof e);return Object.entries(e).filter(([e,n])=>-1===t.indexOf(+e)).map(([e,t])=>t)}function eB(e,t="|"){return e.map(e=>tt(e)).join(t)}function eV(e,t){return"bigint"==typeof t?t.toString():t}function eJ(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function eq(e){return null==e}function eW(e){let t=+!!e.startsWith("^"),n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function eH(e,t){let n=e/t,r=Math.round(n),i=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}e.s(["$ZodAsyncError",0,eD,"$ZodEncodeError",0,eM,"$brand",0,eZ,"$constructor",0,eU,"NEVER",0,eN,"config",0,eL,"globalConfig",0,eR],97753);let eK=Symbol("evaluating");function eG(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==eK)return void 0===r&&(r=eK,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function eX(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function eY(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}function eQ(e){return JSON.stringify(e)}function e0(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}let e1="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function e4(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}let e6=eJ(()=>{if(eR.jitless||"u">typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return Function(""),!0}catch(e){return!1}});function e2(e){if(!1===e4(e))return!1;let t=e.constructor;if(void 0===t||"function"!=typeof t)return!0;let n=t.prototype;return!1!==e4(n)&&!1!==Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")}function e9(e){return e2(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}let e5=new Set(["string","number","symbol"]),e3=new Set(["string","number","bigint","boolean","symbol","undefined"]);function e8(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function e7(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function te(e){if(!e)return{};if("string"==typeof e)return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");e.error=e.message}return(delete e.message,"string"==typeof e.error)?{...e,error:()=>e.error}:e}function tt(e){return"bigint"==typeof e?e.toString()+"n":"string"==typeof e?`"${e}"`:`${e}`}function tn(e){return Object.keys(e).filter(t=>"optional"===e[t]._zod.optin&&"optional"===e[t]._zod.optout)}let tr={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-0x80000000,0x7fffffff],uint32:[0,0xffffffff],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},ti={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function ta(e,t=0){if(!0===e.aborted)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function to(e,t=0){if(!0===e.aborted)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function ts(e,t){return t.map(t=>(t.path??(t.path=[]),t.path.unshift(e),t))}function tl(e){return"string"==typeof e?e:e?.message}function tu(e,t,n){let r=e.message?e.message:tl(e.inst?._zod.def?.error?.(e))??tl(t?.error?.(e))??tl(n.customError?.(e))??tl(n.localeError?.(e))??"Invalid input",{inst:i,continue:a,input
3:o,...s}=e;return s.path??(s.path=[]),s.message=r,t?.reportInput&&(s.input=o),s}function tc(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function td(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function tp(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":if(null===e)return"null";if(Array.isArray(e))return"array";if(e&&Object.getPrototypeOf(e)!==Object.prototype&&"constructor"in e&&e.constructor)return e.constructor.name}return t}function tf(...e){let[t,n,r]=e;return"string"==typeof t?{message:t,code:"custom",input:n,inst:r}:{...t}}function tm(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}function th(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}e.s(["BIGINT_FORMAT_RANGES",0,ti,"Class",0,class{constructor(...e){}},"NUMBER_FORMAT_RANGES",0,tr,"aborted",0,ta,"allowsEval",0,e6,"assert",0,function(e){},"assertEqual",0,function(e){return e},"assertIs",0,function(e){},"assertNever",0,function(e){throw Error("Unexpected value in exhaustive check")},"assertNotEqual",0,function(e){return e},"assignProp",0,eX,"base64ToUint8Array",0,tm,"base64urlToUint8Array",0,function(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return tm(t+n)},"cached",0,eJ,"captureStackTrace",0,e1,"cleanEnum",0,function(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])},"cleanRegex",0,eW,"clone",0,e7,"cloneDef",0,function(e){return eY(e._zod.def)},"createTransparentProxy",0,function(e){let t;return new Proxy({},{get:(n,r,i)=>(t??(t=e()),Reflect.get(t,r,i)),set:(n,r,i,a)=>(t??(t=e()),Reflect.set(t,r,i,a)),has:(n,r)=>(t??(t=e()),Reflect.has(t,r)),deleteProperty:(n,r)=>(t??(t=e()),Reflect.deleteProperty(t,r)),ownKeys:n=>(t??(t=e()),Reflect.ownKeys(t)),getOwnPropertyDescriptor:(n,r)=>(t??(t=e()),Reflect.getOwnPropertyDescriptor(t,r)),defineProperty:(n,r,i)=>(t??(t=e()),Reflect.defineProperty(t,r,i))})},"defineLazy",0,eG,"esc",0,eQ,"escapeRegex",0,e8,"explicitlyAborted",0,to,"extend",0,function(e,t){if(!e2(t))throw Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(void 0!==Object.getOwnPropertyDescriptor(n,e))throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let r=eY(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return eX(this,"shape",n),n}});return e7(e,r)},"finalizeIssue",0,tu,"floatSafeRemainder",0,eH,"getElementAtPath",0,function(e,t){return t?t.reduce((e,t)=>e?.[t],e):e},"getEnumValues",0,eF,"getLengthableOrigin",0,td,"getParsedType",0,e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return"promise";if("u">typeof Map&&e instanceof Map)return"map";if("u">typeof Set&&e instanceof Set)return"set";if("u">typeof Date&&e instanceof Date)return"date";if("u">typeof File&&e instanceof File)return"file";return"object";default:throw Error(`Unknown data type: ${t}`)}},"getSizableOrigin",0,tc,"hexToUint8Array",0,function(e){let t=e.replace(/^0x/,"");if(t.length%2!=0)throw Error("Invalid hex string length");let n=new Uint8Array(t.length/2);for(let e=0;e<t.length;e+=2)n[e/2]=Number.parseInt(t.slice(e,e+2),16);return n},"isObject",0,e4,"isPlainObject",0,e2,"issue",0,tf,"joinValues",0,eB,"jsonStringifyReplacer",0,eV,"merge",0,function(e,t){if(e._zod.def.checks?.length)throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let n=eY(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return eX(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return e7(e,n)},"mergeDefs",0,eY,"normalizeParams",0,te,"nullish",0,eq,"numKeys",0,function(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t},"objectClone",0,function(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))},"omit",0,function(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let i=eY(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return eX(this,"shape",r),r},checks:[]});return e7(e,i)},"optionalKeys",0,tn,"parsedType",0,tp,"partial",0,function(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(".partial() cannot be used on object schemas containing refinements");let i=eY(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:"optional",innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:"optional",innerType:r[t]}):r[t];return eX(this,"shape",i),i},checks:[]});return e7(t,i)},"pick",0,function(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let i=eY(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return eX(this,"shape",e),e},checks:[]});return e7(e,i)}
3,"prefixIssues",0,ts,"primitiveTypes",0,e3,"promiseAllObject",0,function(e){let t=Object.keys(e);return Promise.all(t.map(t=>e[t])).then(e=>{let n={};for(let r=0;r<t.length;r++)n[t[r]]=e[r];return n})},"propertyKeyTypes",0,e5,"randomString",0,function(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let r=0;r<e;r++)n+=t[Math.floor(Math.random()*t.length)];return n},"required",0,function(e,t,n){let r=eY(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:"nonoptional",innerType:r[t]}))}else for(let t in r)i[t]=new e({type:"nonoptional",innerType:r[t]});return eX(this,"shape",i),i}});return e7(t,r)},"safeExtend",0,function(e,t){if(!e2(t))throw Error("Invalid input to safeExtend: expected a plain object");let n=eY(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return eX(this,"shape",n),n}});return e7(e,n)},"shallowClone",0,e9,"slugify",0,e0,"stringifyPrimitive",0,tt,"uint8ArrayToBase64",0,th,"uint8ArrayToBase64url",0,function(e){return th(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},"uint8ArrayToHex",0,function(e){return Array.from(e).map(e=>e.toString(16).padStart(2,"0")).join("")},"unwrapMessage",0,tl],22143);let tg=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,eV,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},tv=eU("$ZodError",tg),ty=eU("$ZodError",tg,{Parent:Error});function tb(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function tx(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if("invalid_union"===a.code&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if("invalid_key"===a.code)r({issues:a.issues},[...i,...a.path]);else if("invalid_element"===a.code)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(0===e.length)n._errors.push(t(a));else{let r=n,i=0;for(;i<e.length;){let n=e[i];i===e.length-1?(r[n]=r[n]||{_errors:[]},r[n]._errors.push(t(a))):r[n]=r[n]||{_errors:[]},r=r[n],i++}}}};return r(e),n}function t_(e,t=e=>e.message){let n={errors:[]},r=(e,i=[])=>{var a,o;for(let s of e.issues)if("invalid_union"===s.code&&s.errors.length)s.errors.map(e=>r({issues:e},[...i,...s.path]));else if("invalid_key"===s.code)r({issues:s.issues},[...i,...s.path]);else if("invalid_element"===s.code)r({issues:s.issues},[...i,...s.path]);else{let e=[...i,...s.path];if(0===e.length){n.errors.push(t(s));continue}let r=n,l=0;for(;l<e.length;){let n=e[l],i=l===e.length-1;"string"==typeof n?(r.properties??(r.properties={}),(a=r.properties)[n]??(a[n]={errors:[]}),r=r.properties[n]):(r.items??(r.items=[]),(o=r.items)[n]??(o[n]={errors:[]}),r=r.items[n]),i&&r.errors.push(t(s)),l++}}};return r(e),n}function tk(e){let t=[];for(let n of e.map(e=>"object"==typeof e?e.key:e))"number"==typeof n?t.push(`[${n}]`):"symbol"==typeof n?t.push(`[${JSON.stringify(String(n))}]`):/[^\w$]/.test(n)?t.push(`[${JSON.stringify(n)}]`):(t.length&&t.push("."),t.push(n));return t.join("")}function t$(e){let t=[];for(let n of[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length))t.push(`â ${n.message}`),n.path?.length&&t.push(` â at ${tk(n.path)}`);return t.join("\n")}e.s(["$ZodError",0,tv,"$ZodRealError",0,ty,"flattenError",0,tb,"formatError",0,tx,"prettifyError",0,t$,"toDotPath",0,tk,"treeifyError",0,t_],74969);let tw=e=>(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new eD;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>tu(e,a,eL())));throw e1(t,i?.callee),t}return o.value},tI=tw(ty),tS=e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>tu(e,a,eL())));throw e1(t,i?.callee),t}return o.value},tE=tS(ty),tO=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new eD;return a.issues.length?{success:!1,error:new(e??tv)(a.issues.map(e=>tu(e,i,eL())))}:{success:!0,data:a.value}},tT=tO(ty),tj=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>tu(e,i,eL())))}:{success:!0,data:a.value}},tz=tj(ty),tA=e=>(t,n,r)=>{let i=r?{...r,direction:"backward"}:{direction:"backward"};return tw(e)(t,n,i)},tC=tA(ty),tP=e=>(t,n,r)=>tw(e)(t,n,r),tN=tP(ty),tU=e=>async(t,n,r)=>{let i=r?{...r,direction:"backward"}:{direction:"backward"};return tS(e)(t,n,i)},tZ=tU(ty),tD=e=>async(t,n,r)=>tS(e)(t,n,r),tM=tD(ty),tR=e=>(t,n,r)=>{let i=r?{...r,direction:"backward"}:{direction:"backward"};return tO(e)(t,n,i)},tL=tR(ty),tF=e=>(t,n,r)=>tO(e)(t,n,r),tB=tF(ty),tV=e=>async(t,n,r)=>{let i=r?{...r,direction:"backward"}:{direction:"backward"};return tj(e)(t,n,i)},tJ=tV(ty),tq=e=>async(t,n,r)=>tj(e)(t,n,r),tW=tq(ty);e.s(["_decode",0,tP,"_decodeAsync",0,tD,"_encode",0,tA,"_encodeAsync",0,tU,"_parse",0,tw,"_parseAsync",0,tS,"_safeDecode",0,tF,"_safeDecodeAsync",0,tq,"_safeEncode",0,tR,"_safeEncodeAsync",0,tV,"_safeParse",0,tO,"_safeParseAsync",0,tj,"decode",0,tN,"decodeAsync",0,tM,"encode",0,tC,"encodeAsync",0,tZ,"parse",0,tI,"parseAsync",0,tE,"safeDecode",0,tB,"safeDecodeAsync",0,tW,"safeEncode",0,tL,"safeEncodeAsync",0,tJ,"safeParse",0,tT,"safeParseAsync",0,tz],3108);let tH=(e,t)=>{tv.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>tx(e,t)},flatten:{value:t=>tb(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,eV,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,eV,2)}},isEmpty:{get:()=>0===e.issues.length}})},tK=eU("ZodError",tH),tG=eU("ZodError",tH,{Parent:Error});e.s(["ZodError",0,tK,"ZodRealError",0,tG],89282);let tX=tw(tG),tY=tS(tG),tQ=tO(tG),t0=tj(tG),t1=tA(tG),t4=tP(tG),t6=tU(tG),t2=tD(tG),t9=tR(tG),t5=tF(tG),t3=tV(tG),t8=tq(tG);e.s(["decode",0,t4,"decodeAsync",0,t2,"encode",0,t1,"encodeAsync",0,t6,"parse",0,tX,"parseAsync",0,tY,"safeDecode",0,t5,"safeDecodeAsync",0,t8,"safeEncode",0,t9,"safeEncodeAsync",0,t3,"safeParse",0,tQ,"safeParseAsync",0,t0],364);let t7=Symbol("ZodOutput"),ne=Symbol("ZodInput");class nt{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&"object"==typeof n&&"id"in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&"object"==typeof t&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}function nn(){return new nt}(y=globalThis).__zod_globalRegistry??(y.__zod_globalRegistry=nn());let nr=globalThis.__zod_globalRegistry;
3function ni(e){let t=e?.target??"draft-2020-12";return"draft-4"===t&&(t="draft-04"),"draft-7"===t&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??nr,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function na(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||(o.ref=a),na(a,t,r),t.seen.get(a).isParent=!0)}let l=t.metadataRegistry.get(e);return l&&Object.assign(o.schema,l),"input"===t.io&&function e(t,n){let r=n??{seen:new Set};if(r.seen.has(t))return!1;r.seen.add(t);let i=t._zod.def;if("transform"===i.type)return!0;if("array"===i.type)return e(i.element,r);if("set"===i.type)return e(i.valueType,r);if("lazy"===i.type)return e(i.getter(),r);if("promise"===i.type||"optional"===i.type||"nonoptional"===i.type||"nullable"===i.type||"readonly"===i.type||"default"===i.type||"prefault"===i.type)return e(i.innerType,r);if("intersection"===i.type)return e(i.left,r)||e(i.right,r);if("record"===i.type||"map"===i.type)return e(i.keyType,r)||e(i.valueType,r);if("pipe"===i.type)return!!t._zod.traits.has("$ZodCodec")||e(i.in,r)||e(i.out,r);if("object"===i.type){for(let t in i.shape)if(e(i.shape[t],r))return!0;return!1}if("union"===i.type){for(let t of i.options)if(e(t,r))return!0;return!1}if("tuple"===i.type){for(let t of i.items)if(e(t,r))return!0;if(i.rest&&e(i.rest,r))return!0}return!1}(e)&&(delete o.schema.examples,delete o.schema.default),"input"===t.io&&"_prefault"in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function no(e,t){let n=e.seen.get(t);if(!n)throw Error("Unprocessed schema. This is a bug in Zod.");let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{if(t[1].schema.$ref)return;let r=t[1],{ref:i,defId:a}=(t=>{let r="draft-2020-12"===e.target?"$defs":"definitions";if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i("__shared")}#/${r}/${a}`}}if(t[1]===n)return{ref:"#"};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}})(t);r.def={...r.schema},a&&(r.defId=a);let o=r.schema;for(let e in o)delete o[e];o.$ref=i};if("throw"===e.cycles)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join("/")}/<root> 4 5Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){i(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){i(n);continue}}if(e.metadataRegistry.get(n[0])?.id||r.cycle||r.count>1&&"ref"===e.reused){i(n);continue}}}function ns(e,t){let n=e.seen.get(t);if(!n)throw Error("Unprocessed schema. This is a bug in Zod.");let r=t=>{let n=e.seen.get(t);if(null===n.ref)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&("draft-07"===e.target||"draft-04"===e.target||"openapi-3.0"===e.target)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)"$ref"!==e&&"allOf"!==e&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)"$ref"!==e&&"allOf"!==e&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)"$ref"!==e&&"allOf"!==e&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};
5if("draft-2020-12"===e.target?i.$schema="https://json-schema.org/draft/2020-12/schema":"draft-07"===e.target?i.$schema="http://json-schema.org/draft-07/schema#":"draft-04"===e.target?i.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;void 0!==a&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&("draft-2020-12"===e.target?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t["~standard"],jsonSchema:{input:nu(t,"input",e.processors),output:nu(t,"output",e.processors)}},enumerable:!1,writable:!1}),n}catch(e){throw Error("Error converting schema to JSON.")}}e.s(["$ZodRegistry",0,nt,"$input",0,ne,"$output",0,t7,"globalRegistry",0,nr,"registry",0,nn],25527);let nl=(e,t={})=>n=>{let r=ni({...n,processors:t});return na(e,r),no(r,e),ns(r,e)},nu=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=ni({...i??{},target:a,io:t,processors:n});return na(e,o),no(o,e),ns(o,e)};e.s(["createStandardJSONSchemaMethod",0,nu,"createToJSONSchemaMethod",0,nl,"extractDefs",0,no,"finalize",0,ns,"initializeContext",0,ni,"process",0,na],34966);let nc={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},nd=(e,t,n,r)=>{n.type="string";let{minimum:i,maximum:a,format:o,patterns:s,contentEncoding:l}=e._zod.bag;if("number"==typeof i&&(n.minLength=i),"number"==typeof a&&(n.maxLength=a),o&&(n.format=nc[o]??o,""===n.format&&delete n.format,"time"===o&&delete n.format),l&&(n.contentEncoding=l),s&&s.size>0){let e=[...s];1===e.length?n.pattern=e[0].source:e.length>1&&(n.allOf=[...e.map(e=>({..."draft-07"===t.target||"draft-04"===t.target||"openapi-3.0"===t.target?{type:"string"}:{},pattern:e.source}))])}},np=(e,t,n,r)=>{let{minimum:i,maximum:a,format:o,multipleOf:s,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;"string"==typeof o&&o.includes("int")?n.type="integer":n.type="number";let c="number"==typeof u&&u>=(i??-1/0),d="number"==typeof l&&l<=(a??1/0),p="draft-04"===t.target||"openapi-3.0"===t.target;c?p?(n.minimum=u,n.exclusiveMinimum=!0):n.exclusiveMinimum=u:"number"==typeof i&&(n.minimum=i),d?p?(n.maximum=l,n.exclusiveMaximum=!0):n.exclusiveMaximum=l:"number"==typeof a&&(n.maximum=a),"number"==typeof s&&(n.multipleOf=s)},nf=(e,t,n,r)=>{n.type="boolean"},nm=(e,t,n,r)=>{if("throw"===t.unrepresentable)throw Error("BigInt cannot be represented in JSON Schema")},nh=(e,t,n,r)=>{if("throw"===t.unrepresentable)throw Error("Symbols cannot be represented in JSON Schema")},ng=(e,t,n,r)=>{"openapi-3.0"===t.target?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},nv=(e,t,n,r)=>{if("throw"===t.unrepresentable)throw Error("Undefined cannot be represented in JSON Schema")},ny=(e,t,n,r)=>{if("throw"===t.unrepresentable)throw Error("Void cannot be represented in JSON Schema")},nb=(e,t,n,r)=>{n.not={}},nx=(e,t,n,r)=>{},n_=(e,t,n,r)=>{},nk=(e,t,n,r)=>{if("throw"===t.unrepresentable)throw Error("Date cannot be represented in JSON Schema")},n$=(e,t,n,r)=>{let i=eF(e._zod.def.entries);i.every(e=>"number"==typeof e)&&(n.type="number"),i.every(e=>"string"==typeof e)&&(n.type="string"),n.enum=i},nw=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(void 0===e){if("throw"===t.unrepresentable)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if("bigint"==typeof e)if("throw"===t.unrepresentable)throw Error("BigInt literals cannot be represented in JSON Schema");else a.push(Number(e));else a.push(e);if(0===a.length);else if(1===a.length){let e=a[0];n.type=null===e?"null":typeof e,"draft-04"===t.target||"openapi-3.0"===t.target?n.enum=[e]:n.const=e}else a.every(e=>"number"==typeof e)&&(n.type="number"),a.every(e=>"string"==typeof e)&&(n.type="string"),a.every(e=>"boolean"==typeof e)&&(n.type="boolean"),a.every(e=>null===e)&&(n.type="null"),n.enum=a},nI=(e,t,n,r)=>{if("throw"===t.unrepresentable)throw Error("NaN cannot be represented in JSON Schema")},nS=(e,t,n,r)=>{let i=e._zod.pattern;if(!i)throw Error("Pattern not found in template literal");n.type="string",n.pattern=i.source},nE=(e,t,n,r)=>{let i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:o,mime:s}=e._zod.bag;void 0!==a&&(i.minLength=a),void 0!==o&&(i.maxLength=o),s?1===s.length?(i.contentMediaType=s[0],Object.assign(n,i)):(Object.assign(n,i),n.anyOf=s.map(e=>({contentMediaType:e}))):Object.assign(n,i)},nO=(e,t,n,r)=>{n.type="boolean"},nT=(e,t,n,r)=>{if("throw"===t.unrepresentable)throw Error("Custom types cannot be represented in JSON Schema")},nj=(e,t,n,r)=>{if("throw"===t.unrepresentable)throw Error("Function types cannot be represented in JSON Schema")},nz=(e,t,n,r)=>{if("throw"===t.unrepresentable)throw Error("Transforms cannot be represented in JSON Schema")},nA=(e,t,n,r)=>{if("throw"===t.unrepresentable)throw Error("Map cannot be represented in JSON Schema")},nC=(e,t,n,r)=>{if("throw"===t.unrepresentable)throw Error("Set cannot be represented in JSON Schema")},nP=(e,t,n,r)=>{let i=e._zod.def,{minimum:a,maximum:o}=e._zod.bag;"number"==typeof a&&(n.minItems=a),"number"==typeof o&&(n.maxItems=o),n.type="array",n.items=na(i.element,t,{...r,path:[...r.path,"items"]})},nN=(e,t,n,r)=>{let i=e._zod.def;n.type="object",n.properties={};let a=i.shape;for(let e in a)n.properties[e]=na(a[e],t,{...r,path:[...r.path,"properties",e]});let o=new Set([...new Set(Object.keys(a))].filter(e=>{let n=i.shape[e]._zod;return"input"===t.io?void 0===n.optin:void 0===n.optout}));o.size>0&&(n.required=Array.from(o)),i.catchall?._zod.def.type==="never"?n.additionalProperties=!1:i.catchall?i.catchall&&(n.additionalProperties=na(i.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):"output"===t.io&&(n.additionalProperties=!1)},nU=(e,t,n,r)=>{let i=e._zod.def,a=!1===i.inclusive,o=i.options.map((e,n)=>na(e,t,{...r,path:[...r.path,a?"oneOf":"anyOf",n]}));a?n.oneOf=o:n.anyOf=o},nZ=(e,t,n,r)=>{let i=e._zod.def,a=na(i.left,t,{...r,path:[...r.path,"allOf",0]}),o=na(i.right,t,{...r,path:[...r.path,"allOf",1]}),s=e=>"allOf"in e&&1===Object.keys(e).length;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},nD=(e,t,n,r)=>{let i=e._zod.def;n.type="array";
5let a="draft-2020-12"===t.target?"prefixItems":"items",o="draft-2020-12"===t.target||"openapi-3.0"===t.target?"items":"additionalItems",s=i.items.map((e,n)=>na(e,t,{...r,path:[...r.path,a,n]})),l=i.rest?na(i.rest,t,{...r,path:[...r.path,o,..."openapi-3.0"===t.target?[i.items.length]:[]]}):null;"draft-2020-12"===t.target?(n.prefixItems=s,l&&(n.items=l)):"openapi-3.0"===t.target?(n.items={anyOf:s},l&&n.items.anyOf.push(l),n.minItems=s.length,l||(n.maxItems=s.length)):(n.items=s,l&&(n.additionalItems=l));let{minimum:u,maximum:c}=e._zod.bag;"number"==typeof u&&(n.minItems=u),"number"==typeof c&&(n.maxItems=c)},nM=(e,t,n,r)=>{let i=e._zod.def;n.type="object";let a=i.keyType,o=a._zod.bag,s=o?.patterns;if("loose"===i.mode&&s&&s.size>0){let e=na(i.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});for(let t of(n.patternProperties={},s))n.patternProperties[t.source]=e}else("draft-07"===t.target||"draft-2020-12"===t.target)&&(n.propertyNames=na(i.keyType,t,{...r,path:[...r.path,"propertyNames"]})),n.additionalProperties=na(i.valueType,t,{...r,path:[...r.path,"additionalProperties"]});let l=a._zod.values;if(l){let e=[...l].filter(e=>"string"==typeof e||"number"==typeof e);e.length>0&&(n.required=e)}},nR=(e,t,n,r)=>{let i=e._zod.def,a=na(i.innerType,t,r),o=t.seen.get(e);"openapi-3.0"===t.target?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:"null"}]},nL=(e,t,n,r)=>{let i=e._zod.def;na(i.innerType,t,r),t.seen.get(e).ref=i.innerType},nF=(e,t,n,r)=>{let i=e._zod.def;na(i.innerType,t,r),t.seen.get(e).ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},nB=(e,t,n,r)=>{let i=e._zod.def;na(i.innerType,t,r),t.seen.get(e).ref=i.innerType,"input"===t.io&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},nV=(e,t,n,r)=>{let i,a=e._zod.def;na(a.innerType,t,r),t.seen.get(e).ref=a.innerType;try{i=a.catchValue(void 0)}catch{throw Error("Dynamic catch values are not supported in JSON Schema")}n.default=i},nJ=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has("$ZodTransform"),o="input"===t.io?a?i.out:i.in:i.out;na(o,t,r),t.seen.get(e).ref=o},nq=(e,t,n,r)=>{let i=e._zod.def;na(i.innerType,t,r),t.seen.get(e).ref=i.innerType,n.readOnly=!0},nW=(e,t,n,r)=>{let i=e._zod.def;na(i.innerType,t,r),t.seen.get(e).ref=i.innerType},nH=(e,t,n,r)=>{let i=e._zod.def;na(i.innerType,t,r),t.seen.get(e).ref=i.innerType},nK=(e,t,n,r)=>{let i=e._zod.innerType;na(i,t,r),t.seen.get(e).ref=i},nG={string:nd,number:np,boolean:nf,bigint:nm,symbol:nh,null:ng,undefined:nv,void:ny,never:nb,any:nx,unknown:n_,date:nk,enum:n$,literal:nw,nan:nI,template_literal:nS,file:nE,success:nO,custom:nT,function:nj,transform:nz,map:nA,set:nC,array:nP,object:nN,union:nU,intersection:nZ,tuple:nD,record:nM,nullable:nR,nonoptional:nL,default:nF,prefault:nB,catch:nV,pipe:nJ,readonly:nq,promise:nW,optional:nH,lazy:nK};function nX(e,t){if("_idmap"in e){let n=ni({...t,processors:nG}),r={};
5for(let t of e._idmap.entries()){let[e,r]=t;na(r,n)}let i={};for(let a of(n.external={registry:e,uri:t?.uri,defs:r},e._idmap.entries())){let[e,t]=a;no(n,t),i[e]=ns(n,t)}return Object.keys(r).length>0&&(i.__shared={["draft-2020-12"===n.target?"$defs":"definitions"]:r}),{schemas:i}}let n=ni({...t,processors:nG});return na(e,n),no(n,e),ns(n,e)}(n=b||(b={})).assertEqual=e=>{},n.assertIs=function(e){},n.assertNever=function(e){throw Error()},n.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},n.getValidEnumValues=e=>{let t=n.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),r={};for(let n of t)r[n]=e[n];return n.objectValues(r)},n.objectValues=e=>n.objectKeys(e).map(function(t){return e[t]}),n.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},n.find=(e,t)=>{for(let n of e)if(t(n))return n},n.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,n.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},n.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(x||(x={})).mergeShapes=(e,t)=>({...e,...t});let nY=b.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),nQ=e=>{switch(typeof e){case"undefined":return nY.undefined;case"string":return nY.string;case"number":return Number.isNaN(e)?nY.nan:nY.number;case"boolean":return nY.boolean;case"function":return nY.function;case"bigint":return nY.bigint;case"symbol":return nY.symbol;case"object":if(Array.isArray(e))return nY.array;if(null===e)return nY.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return nY.promise;if("u">typeof Map&&e instanceof Map)return nY.map;if("u">typeof Set&&e instanceof Set)return nY.set;if("u">typeof Date&&e instanceof Date)return nY.date;return nY.object;default:return nY.unknown}}
5,n0=b.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class n1 extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(r);else if("invalid_return_type"===i.code)r(i.returnTypeError);else if("invalid_arguments"===i.code)r(i.argumentsError);else if(0===i.path.length)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}static assert(e){if(!(e instanceof n1))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,b.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t=Object.create(null),n=[];for(let r of this.issues)if(r.path.length>0){let n=r.path[0];t[n]=t[n]||[],t[n].push(e(r))}else n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}n1.create=e=>new n1(e);let n4=(e,t)=>{let n;switch(e.code){case n0.invalid_type:n=e.received===nY.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case n0.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,b.jsonStringifyReplacer)}`;break;case n0.unrecognized_keys:n=`Unrecognized key(s) in object: ${b.joinValues(e.keys,", ")}`;break;case n0.invalid_union:n="Invalid input";break;case n0.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${b.joinValues(e.options)}`;break;case n0.invalid_enum_value:n=`Invalid enum value. Expected ${b.joinValues(e.options)}, received '${e.received}'`;break;case n0.invalid_arguments:n="Invalid function arguments";break;case n0.invalid_return_type:n="Invalid function return type";break;case n0.invalid_date:n="Invalid date";break;case n0.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:b.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case n0.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case n0.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case n0.custom:n="Invalid input";break;case n0.invalid_intersection_types:n="Intersection results could not be merged";break;case n0.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case n0.not_finite:n="Number must be finite";break;default:n=t.defaultError,b.assertNever(e)}return{message:n}};(r=_||(_={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},r.toString=e=>"string"==typeof e?e:e?.message;let n6=e=>
vendor: 33,337 bytes, line 5
5{let{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a};if(void 0!==i.message)return{...i,path:a,message:i.message};let s="";for(let e of r.filter(e=>!!e).slice().reverse())s=e(o,{data:t,defaultError:s}).message;return{...i,path:a,message:s}};function n2(e,t){let n=n6({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n4,void 0].filter(e=>!!e)});e.common.issues.push(n)}class n9{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let n=[];for(let r of t){if("aborted"===r.status)return n5;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){let n=[];for(let e of t){let t=await e.key,r=await e.value;n.push({key:t,value:r})}return n9.mergeObjectSync(e,n)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:i}=r;if("aborted"===t.status||"aborted"===i.status)return n5;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==i.value||r.alwaysSet)&&(n[t.value]=i.value)}return{status:e.value,value:n}}}let n5=Object.freeze({status:"aborted"}),n3=e=>({status:"dirty",value:e}),n8=e=>({status:"valid",value:e}),n7=e=>"u">typeof Promise&&e instanceof Promise;class re{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let rt=(e,t)=>{if("valid"===t.status)return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new n1(e.common.issues);return this._error=t,this._error}}};function rn(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:a}=e;return"invalid_enum_value"===t.code?{message:a??i.defaultError}:void 0===i.data?{message:a??r??i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:a??n??i.defaultError}},description:i}}class rr{get description(){return this._def.description}_getType(e){return nQ(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:nQ(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new n9,ctx:{common:e.parent.common,data:e.data,parsedType:nQ(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(n7(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){let n={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:nQ(e)},r=this._parseSync({data:e,path:n.path,parent:n});return rt(n,r)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:nQ(e)};if(!this["~standard"].async)try{let n=this._parseSync({data:e,path:[],parent:t});return"valid"===n.status?{value:n.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>"valid"===e.status?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:nQ(e)},r=this._parse({data:e,path:n.path,parent:n});return rt(n,await (n7(r)?r:Promise.resolve(r)))}refine(e,t){return this._refinement((n,r)=>{let i=e(n),a=()=>r.addIssue({code:n0.custom,..."string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(n):t});return"u">typeof Promise&&i instanceof Promise?i.then(e=>!!e||(a(),!1)):!!i||(a(),!1)})}refinement(e,t){return this._refinement((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1))}_refinement(e){return new rG({schema:this,typeName:k.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return rX.create(this,this._def)}nullable(){return rY.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return rC.create(this)}promise(){return rK.create(this,this._def)}or(e){return rN.create([this,e],this._def)}and(e){return rD.create(this,e,this._def)}transform(e){return new rG({...rn(this._def),schema:this,typeName:k.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new rQ({...rn(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:k.ZodDefault})}brand(){return new r4({typeName:k.ZodBranded,type:this,...rn(this._def)})}catch(e){return new r0({...rn(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:k.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return r6.create(this,e)}readonly(){return r2.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let ri=/^c[^\s-]{8,}$/i,ra=/^[0-9a-z]+$/,ro=/^[0-9A-HJKMNP-TV-Z]{26}$/i,rs=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,rl=/^[a-z0-9_-]{21}$/i,ru=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,rc=/^[-+]?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)?)??$/,rd=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,rp=/^(?:(?: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])$/,rf=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,rm=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,rh=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,rg=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,rv=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,ry="((\\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])))",rb=RegExp(`^${ry}$`);function rx(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}class r_ extends rr{_parse(e){var n,r,i,a;let o;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==nY.string){let t=this._getOrReturnCtx(e);return n2(t,{code:n0.invalid_type,expected:nY.string,received:t.parsedType}),n5}let s=new n9;for(let l of this._def.checks)if("min"===l.kind)e.data.length<l.value&&(n2(o=this._getOrReturnCtx(e,o),{code:n0.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),s.dirty());else if("max"===l.kind)e.data.length>l.value&&(n2(o=this._getOrReturnCtx(e,o),{code:n0.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),s.dirty());else if("length"===l.kind){let t=e.data.length>l.value,n=e.data.length<l.value;(t||n)&&(o=this._getOrReturnCtx(e,o),t?n2(o,{code:n0.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}):n&&n2(o,{code:n0.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}),s.dirty())}else if("email"===l.kind)rd.test(e.data)||(n2(o=this._getOrReturnCtx(e,o),{validation:"email",code:n0.invalid_string,message:l.message}),s.dirty());else if("emoji"===l.kind)t||(t=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),t.test(e.data)||(n2(o=this._getOrReturnCtx(e,o),{validation:"emoji",code:n0.invalid_string,message:l.message}),s.dirty());else if("uuid"===l.kind)rs.test(e.data)||(n2(o=this._getOrReturnCtx(e,o),{validation:"uuid",code:n0.invalid_string,message:l.message}),s.dirty());else if("nanoid"===l.kind)rl.test(e.data)||(n2(o=this._getOrReturnCtx(e,o),{validation:"nanoid",code:n0.invalid_string,message:l.message}),s.dirty());else if("cuid"===l.kind)ri.test(e.data)||(n2(o=this._getOrReturnCtx(e,o),{validation:"cuid",code:n0.invalid_string,message:l.message}),s.dirty());else if("cuid2"===l.kind)ra.test(e.data)||(n2(o=this._getOrReturnCtx(e,o),{validation:"cuid2",code:n0.invalid_string,message:l.message}),s.dirty());else if("ulid"===l.kind)ro.test(e.data)||(n2(o=this._getOrReturnCtx(e,o),{validation:"ulid",code:n0.invalid_string,message:l.message}),s.dirty());else if("url"===l.kind)try{new URL(e.data)}catch{n2(o=this._getOrReturnCtx(e,o),{validation:"url",code:n0.invalid_string,message:l.message}),s.dirty()}else"regex"===l.kind?(l.regex.lastIndex=0,l.regex.test(e.data)||(n2(o=this._getOrReturnCtx(e,o),{validation:"regex",code:n0.invalid_string,message:l.message}),s.dirty())):"trim"===l.kind?e.data=e.data.trim():"includes"===l.kind?e.data.includes(l.value,l.position)||(n2(o=this._getOrReturnCtx(e,o),{code:n0.invalid_string,validation:{includes:l.value,position:l.position},message:l.message}),s.dirty()):"toLowerCase"===l.kind?e.data=e.data.toLowerCase():"toUpperCase"===l.kind?e.data=e.data.toUpperCase():"startsWith"===l.kind?e.data.startsWith(l.value)||(n2(o=this._getOrReturnCtx(e,o),{code:n0.invalid_string,validation:{startsWith:l.value},message:l.message}),s.dirty()):"endsWith"===l.kind?e.data.endsWith(l.value)||(n2(o=this._getOrReturnCtx(e,o),{code:n0.invalid_string,validation:{endsWith:l.value},message:l.message}),s.dirty()):"datetime"===l.kind?(function(e){let t=`${ry}T${rx(e)}`,n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,RegExp(`^${t}$`)})(l).test(e.data)||(n2(o=this._getOrReturnCtx(e,o),{code:n0.invalid_string,validation:"datetime",message:l.message}),s.dirty()):"date"===l.kind?rb.test(e.data)||(n2(o=this._getOrReturnCtx(e,o),{code:n0.invalid_string,validation:"date",message:l.message}),s.dirty()):"time"===l.kind?RegExp(`^${rx(l)}$`).test(e.data)||(n2(o=this._getOrReturnCtx(e,o),{code:n0.invalid_string,validation:"time",message:l.message}),s.dirty()):"duration"===l.kind?rc.test(e.data)||(n2(o=this._getOrReturnCtx(e,o),{validation:"duration",code:n0.invalid_string,message:l.message}),s.dirty()):"ip"===l.kind?(n=e.data,!(("v4"===(r=l.version)||!r)&&rp.test(n)||("v6"===r||!r)&&rm.test(n))&&1&&(n2(o=this._getOrReturnCtx(e,o),{validation:"ip",code:n0.invalid_string,message:l.message}),s.dirty())):"jwt"===l.kind?!function(e,t){if(!ru.test(e))return!1;try{let[n]=e.split(".");if(!n)return!1;let r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(r));if("object"!=typeof i||null===i||"typ"in i&&i?.typ!=="JWT"||!i.alg||t&&i.alg!==t)return!1;return!0}catch{return!1}}(e.data,l.alg)&&(n2(o=this._getOrReturnCtx(e,o),{validation:"jwt",code:n0.invalid_string,message:l.message}),s.dirty()):"cidr"===l.kind?(i=e.data,!(("v4"===(a=l.version)||!a)&&rf.test(i)||("v6"===a||!a)&&rh.test(i))&&1&&(n2(o=this._getOrReturnCtx(e,o),{validation:"cidr",code:n0.invalid_string,message:l.message}),s.dirty())):"base64"===l.kind?rg.test(e.data)||(n2(o=this._getOrReturnCtx(e,o),{validation:"base64",code:n0.invalid_string,message:l.message}),s.dirty()):"base64url"===l.kind?rv.test(e.data)||(n2(o=this._getOrReturnCtx(e,o),{validation:"base64url",code:n0.invalid_string,message:l.message}),s.dirty()):b.assertNever(l);return{status:s.value,value:e.data}}_regex(e,t,n){return this.refinement(t=>e.test(t),{validation:t,code:n0.invalid_string,..._.errToObj(n)})}_addCheck(e){return new r_({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",..._.errToObj(e)})}url(e){return this._addCheck({kind:"url",..._.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",..._.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",..._.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",..._.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",..._.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",..._.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",..._.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",..._.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",..._.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",..._.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",..._.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",..._.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,..._.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,..._.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",..._.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,..._.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,..._.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,..._.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,..._.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,..._.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,..._.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,..._.errToObj(t)})}nonempty(e){return this.min(1,_.errToObj(e))}trim(){return new r_({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new r_({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new r_({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}r_.create=e=>new r_({checks:[],typeName:k.ZodString,coerce:e?.coerce??!1,...rn(e)});class rk extends rr{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==nY.number){let t=this._getOrReturnCtx(e);return n2(t,{code:n0.invalid_type,expected:nY.number,received:t.parsedType}),n5}let n=new n9;for(let r of this._def.checks)"int"===r.kind?b.isInteger(e.data)||(n2(t=this._getOrReturnCtx(e,t),{code:n0.invalid_type,expected:"integer",received:"float",message:r.message}),n.dirty()):"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(n2(t=this._getOrReturnCtx(e,t),{code:n0.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(n2(t=this._getOrReturnCtx(e,t),{code:n0.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):"multipleOf"===r.kind?0!==function(e,t){let n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r;return Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i}(e.data,r.value)&&(n2(t=this._getOrReturnCtx(e,t),{code:n0.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):"finite"===r.kind?Number.isFinite(e.data)||(n2(t=this._getOrReturnCtx(e,t),{code:n0.not_finite,message:r.message}),n.dirty()):b.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,_.toString(t))}gt(e,t){return this.setLimit("min",e,!1,_.toString(t))}lte(e,t){return this.setLimit("max",e,!0,_.toString(t))}lt(e,t){return this.setLimit("max",e,!1,_.toString(t))}setLimit(e,t,n,r){return new rk({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:_.toString(r)}]})}_addCheck(e){return new rk({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:_.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:_.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:_.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:_.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:_.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:_.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:_.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:_.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:_.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&b.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks)if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;else"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value);return Number.isFinite(t)&&Number.isFinite(e)}}rk.create=e=>new rk({checks:[],typeName:k.ZodNumber,coerce:e?.coerce||!1,...rn(e)});class r$ extends rr{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==nY.bigint)return this._getInvalidInput(e);let n=new n9;for(let r of this._def.checks)"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(n2(t=this._getOrReturnCtx(e,t),{code:n0.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(n2(t=this._getOrReturnCtx(e,t),{code:n0.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):"multipleOf"===r.kind?e.data%r.value!==BigInt(0)&&(n2(t=this._getOrReturnCtx(e,t),{code:n0.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):b.assertNever(r);return{status:n.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return n2(t,{code:n0.invalid_type,expected:nY.bigint,received:t.parsedType}),n5}gte(e,t){return this.setLimit("min",e,!0,_.toString(t))}gt(e,t){return this.setLimit("min",e,!1,_.toString(t))}lte(e,t){return this.setLimit("max",e,!0,_.toString(t))}lt(e,t){return this.setLimit("max",e,!1,_.toString(t))}setLimit(e,t,n,r){return new r$({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:_.toString(r)}]})}_addCheck(e){return new r$({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:_.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:_.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:_.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:_.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:_.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}r$.create=e=>new r$({checks:[],typeName:k.ZodBigInt,coerce:e?.coerce??!1,...rn(e)});class rw extends rr{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==nY.boolean){let t=this._getOrReturnCtx(e);return n2(t,{code:n0.invalid_type,expected:nY.boolean,received:t.parsedType}),n5}return n8(e.data)}}rw.create=e=>new rw({typeName:k.ZodBoolean,coerce:e?.coerce||!1,...rn(e)});class rI extends rr{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==nY.date){let t=this._getOrReturnCtx(e);return n2(t,{code:n0.invalid_type,expected:nY.date,received:t.parsedType}),n5}if(Number.isNaN(e.data.getTime()))return n2(this._getOrReturnCtx(e),{code:n0.invalid_date}),n5;let n=new n9;for(let r of this._def.checks)"min"===r.kind?e.data.getTime()<r.value&&(n2(t=this._getOrReturnCtx(e,t),{code:n0.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),n.dirty()):"max"===r.kind?e.data.getTime()>r.value&&(n2(t=this._getOrReturnCtx(e,t),{code:n0.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),n.dirty()):b.assertNever(r);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new rI({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:_.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:_.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}rI.create=e=>new rI({checks:[],coerce:e?.coerce||!1,typeName:k.ZodDate,...rn(e)});class rS extends rr{_parse(e){if(this._getType(e)!==nY.symbol){let t=this._getOrReturnCtx(e);return n2(t,{code:n0.invalid_type,expected:nY.symbol,received:t.parsedType}),n5}return n8(e.data)}}rS.create=e=>new rS({typeName:k.ZodSymbol,...rn(e)});class rE extends rr{_parse(e){if(this._getType(e)!==nY.undefined){let t=this._getOrReturnCtx(e);return n2(t,{code:n0.invalid_type,expected:nY.undefined,received:t.parsedType}),n5}return n8(e.data)}}rE.create=e=>new rE({typeName:k.ZodUndefined,...rn(e)});class rO extends rr{_parse(e){if(this._getType(e)!==nY.null){let t=this._getOrReturnCtx(e);return n2(t,{code:n0.invalid_type,expected:nY.null,received:t.parsedType}),n5}return n8(e.data)}}rO.create=e=>new rO({typeName:k.ZodNull,...rn(e)});class rT extends rr{constructor(){super(...arguments),this._any=!0}_parse(e){return n8(e.data)}}rT.create=e=>new rT({typeName:k.ZodAny,...rn(e)});class rj extends rr{constructor(){super(...arguments),this._unknown=!0}_parse(e){return n8(e.data)}}rj.create=e=>new rj({typeName:k.ZodUnknown,...rn(e)});class rz extends rr{_parse(e){let t=this._getOrReturnCtx(e);return n2(t,{code:n0.invalid_type,expected:nY.never,received:t.parsedType}),n5}}rz.create=e=>new rz({typeName:k.ZodNever,...rn(e)});class rA extends rr{_parse(e){if(this._getType(e)!==nY.undefined){let t=this._getOrReturnCtx(e);return n2(t,{code:n0.invalid_type,expected:nY.void,received:t.parsedType}),n5}return n8(e.data)}}rA.create=e=>new rA({typeName:k.ZodVoid,...rn(e)});class rC extends rr{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==nY.array)return n2(t,{code:n0.invalid_type,expected:nY.array,received:t.parsedType}),n5;if(null!==r.exactLength){let e=t.data.length>r.exactLength.value,i=t.data.length<r.exactLength.value;(e||i)&&(n2(t,{code:e?n0.too_big:n0.too_small,minimum:i?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&(n2(t,{code:n0.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(n2(t,{code:n0.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new re(t,e,t.path,n)))).then(e=>n9.mergeArray(n,e));let i=[...t.data].map((e,n)=>r.type._parseSync(new re(t,e,t.path,n)));return n9.mergeArray(n,i)}get element(){return this._def.type}min(e,t){return new rC({...this._def,minLength:{value:e,message:_.toString(t)}})}max(e,t){return new rC({...this._def,maxLength:{value:e,message:_.toString(t)}})}length(e,t){return new rC({...this._def,exactLength:{value:e,message:_.toString(t)}})}nonempty(e){return this.min(1,e)}}rC.create=(e,t)=>new rC({type:e,minLength:null,maxLength:null,exactLength:null,typeName:k.ZodArray,...rn(t)});class rP extends rr{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=b.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==nY.object){let t=this._getOrReturnCtx(e);return n2(t,{code:n0.invalid_type,expected:nY.object,received:t.parsedType}),n5}let{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof rz&&"strip"===this._def.unknownKeys))for(let e in n.data)i.includes(e)||a.push(e);let o=[];for(let e of i){let t=r[e],i=n.data[e];o.push({key:{status:"valid",value:e},value:t._parse(new re(n,i,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof rz){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of a)o.push({key:{status:"valid",value:e},value:{status:"valid",value:n.data[e]}});else if("strict"===e)a.length>0&&(n2(n,{code:n0.unrecognized_keys,keys:a}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of a){let r=n.data[t];o.push({key:{status:"valid",value:t},value:e._parse(new re(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of o){let n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e}).then(e=>n9.mergeObjectSync(t,e)):n9.mergeObjectSync(t,o)}get shape(){return this._def.shape()}strict(e){return _.errToObj,new rP({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{let r=this._def.errorMap?.(t,n).message??n.defaultError;return"unrecognized_keys"===t.code?{message:_.errToObj(e).message??r}:{message:r}}}:{}})}strip(){return new rP({...this._def,unknownKeys:"strip"})}passthrough(){return new rP({...this._def,unknownKeys:"passthrough"})}extend(e){return new rP({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new rP({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:k.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new rP({...this._def,catchall:e})}pick(e){let t={};for(let n of b.objectKeys(e))e[n]&&this.shape[n]&&(t[n]=this.shape[n]);return new rP({...this._def,shape:()=>t})}omit(e){let t={};for(let n of b.objectKeys(this.shape))e[n]||(t[n]=this.shape[n]);return new rP({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof rP){let n={};for(let r in t.shape){let i=t.shape[r];n[r]=rX.create(e(i))}return new rP({...t._def,shape:()=>n})}if(t instanceof rC)return new rC({...t._def,type:e(t.element)});if(t instanceof rX)return rX.create(e(t.unwrap()));if(t instanceof rY)return rY.create(e(t.unwrap()));if(t instanceof rM)return rM.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};for(let n of b.objectKeys(this.shape)){let r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()}return new rP({...this._def,shape:()=>t})}required(e){let t={};for(let n of b.objectKeys(this.shape))if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof rX;)e=e._def.innerType;t[n]=e}return new rP({...this._def,shape:()=>t})}keyof(){return rq(b.objectKeys(this.shape))}}rP.create=(e,t)=>new rP({shape:()=>e,unknownKeys:"strip",catchall:rz.create(),typeName:k.ZodObject,...rn(t)}),rP.strictCreate=(e,t)=>new rP({shape:()=>e,unknownKeys:"strict",catchall:rz.create(),typeName:k.ZodObject,...rn(t)}),rP.lazycreate=(e,t)=>new rP({shape:e,unknownKeys:"strip",catchall:rz.create(),typeName:k.ZodObject,...rn(t)});class rN extends rr{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new n1(e.ctx.common.issues));return n2(t,{code:n0.invalid_union,unionErrors:n}),n5});{let e,r=[];for(let i of n){let n={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:n});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=r.map(e=>new n1(e));return n2(t,{code:n0.invalid_union,unionErrors:i}),n5}}get options(){return this._def.options}}rN.create=(e,t)=>
5new rN({options:e,typeName:k.ZodUnion,...rn(t)});let rU=e=>{if(e instanceof rV)return rU(e.schema);if(e instanceof rG)return rU(e.innerType());if(e instanceof rJ)return[e.value];if(e instanceof rW)return e.options;if(e instanceof rH)return b.objectValues(e.enum);else if(e instanceof rQ)return rU(e._def.innerType);else if(e instanceof rE)return[void 0];else if(e instanceof rO)return[null];else if(e instanceof rX)return[void 0,...rU(e.unwrap())];else if(e instanceof rY)return[null,...rU(e.unwrap())];else if(e instanceof r4)return rU(e.unwrap());else if(e instanceof r2)return rU(e.unwrap());else if(e instanceof r0)return rU(e._def.innerType);else return[]};class rZ extends rr{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==nY.object)return n2(t,{code:n0.invalid_type,expected:nY.object,received:t.parsedType}),n5;let n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(n2(t,{code:n0.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),n5)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){let r=new Map;for(let n of t){let t=rU(n.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of t){if(r.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);r.set(i,n)}}return new rZ({typeName:k.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...rn(n)})}}class rD extends rr{_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if("aborted"===e.status||"aborted"===r.status)return n5;let i=function e(t,n){let r=nQ(t),i=nQ(n);if(t===n)return{valid:!0,data:t};if(r===nY.object&&i===nY.object){let r=b.objectKeys(n),i=b.objectKeys(t).filter(e=>-1!==r.indexOf(e)),a={...t,...n};for(let r of i){let i=e(t[r],n[r]);if(!i.valid)return{valid:!1};a[r]=i.data}return{valid:!0,data:a}}if(r===nY.array&&i===nY.array){if(t.length!==n.length)return{valid:!1};let r=[];for(let i=0;i<t.length;i++){let a=e(t[i],n[i]);if(!a.valid)return{valid:!1};r.push(a.data)}return{valid:!0,data:r}}if(r===nY.date&&i===nY.date&&+t==+n)return{valid:!0,data:t};return{valid:!1}}(e.value,r.value);return i.valid?(("dirty"===e.status||"dirty"===r.status)&&t.dirty(),{status:t.value,value:i.data}):(n2(n,{code:n0.invalid_intersection_types}),n5)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}rD.create=(e,t,n)=>new rD({left:e,right:t,typeName:k.ZodIntersection,...rn(n)});class rM extends rr{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==nY.array)return n2(n,{code:n0.invalid_type,expected:nY.array,received:n.parsedType}),n5;if(n.data.length<this._def.items.length)return n2(n,{code:n0.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n5;!this._def.rest&&n.data.length>this._def.items.length&&(n2(n,{code:n0.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let r=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new re(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>n9.mergeArray(t,e)):n9.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new rM({...this._def,rest:e})}}rM.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new rM({items:e,typeName:k.ZodTuple,rest:null,...rn(t)})};class rR extends rr{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==nY.object)return n2(n,{code:n0.invalid_type,expected:nY.object,received:n.parsedType}),n5;let r=[],i=this._def.keyType,a=this._def.valueType;for(let e in n.data)r.push({key:i._parse(new re(n,e,n.path,e)),value:a._parse(new re(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?n9.mergeObjectAsync(t,r):n9.mergeObjectSync(t,r)}
5get element(){return this._def.valueType}static create(e,t,n){return new rR(t instanceof rr?{keyType:e,valueType:t,typeName:k.ZodRecord,...rn(n)}:{keyType:r_.create(),valueType:e,typeName:k.ZodRecord,...rn(t)})}}class rL extends rr{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==nY.map)return n2(n,{code:n0.invalid_type,expected:nY.map,received:n.parsedType}),n5;let r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map(([e,t],a)=>({key:r._parse(new re(n,e,n.path,[a,"key"])),value:i._parse(new re(n,t,n.path,[a,"value"]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of a){let r=await n.key,i=await n.value;if("aborted"===r.status||"aborted"===i.status)return n5;("dirty"===r.status||"dirty"===i.status)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let n of a){let r=n.key,i=n.value;if("aborted"===r.status||"aborted"===i.status)return n5;("dirty"===r.status||"dirty"===i.status)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}}rL.create=(e,t,n)=>new rL({valueType:t,keyType:e,typeName:k.ZodMap,...rn(n)});class rF extends rr{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==nY.set)return n2(n,{code:n0.invalid_type,expected:nY.set,received:n.parsedType}),n5;let r=this._def;null!==r.minSize&&n.data.size<r.minSize.value&&(n2(n,{code:n0.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&n.data.size>r.maxSize.value&&(n2(n,{code:n0.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let n=new Set;for(let r of e){if("aborted"===r.status)return n5;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let o=[...n.data.values()].map((e,t)=>i._parse(new re(n,e,n.path,t)));return n.common.async?Promise.all(o).then(e=>a(e)):a(o)}min(e,t){return new rF({...this._def,minSize:{value:e,message:_.toString(t)}})}max(e,t){return new rF({...this._def,maxSize:{value:e,message:_.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}rF.create=(e,t)=>new rF({valueType:e,minSize:null,maxSize:null,typeName:k.ZodSet,...rn(t)});class rB extends rr{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==nY.function)return n2(t,{code:n0.invalid_type,expected:nY.function,received:t.parsedType}),n5;function n(e,n){return n6({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,n4,n4].filter(e=>!!e),issueData:{code:n0.invalid_arguments,argumentsError:n}})}function r(e,n){return n6({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,n4,n4].filter(e=>!!e),issueData:{code:n0.invalid_return_type,returnTypeError:n}})}let i={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof rK){let e=this;return n8(async function(...t){let o=new n1([]),s=await e._def.args.parseAsync(t,i).catch(e=>{throw o.addIssue(n(t,e)),o}),l=await Reflect.apply(a,this,s);return await e._def.returns._def.type.parseAsync(l,i).catch(e=>{throw o.addIssue(r(l,e)),o})})}{let e=this;return n8(function(...t){let o=e._def.args.safeParse(t,i);if(!o.success)throw new n1([n(t,o.error)]);let s=Reflect.apply(a,this,o.data),l=e._def.returns.safeParse(s,i);if(!l.success)throw new n1([r(s,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new rB({...this._def,args:rM.create(e).rest(rj.create())})}returns(e){return new rB({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new rB({args:e||rM.create([]).rest(rj.create()),returns:t||rj.create(),typeName:k.ZodFunction,...rn(n)})}}class rV extends rr{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}rV.create=(e,t)=>
vendor: 4,318 bytes, line 5
5new rV({getter:e,typeName:k.ZodLazy,...rn(t)});class rJ extends rr{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return n2(t,{received:t.data,code:n0.invalid_literal,expected:this._def.value}),n5}return{status:"valid",value:e.data}}get value(){return this._def.value}}function rq(e,t){return new rW({values:e,typeName:k.ZodEnum,...rn(t)})}rJ.create=(e,t)=>new rJ({value:e,typeName:k.ZodLiteral,...rn(t)});class rW extends rr{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),n=this._def.values;return n2(t,{expected:b.joinValues(n),received:t.parsedType,code:n0.invalid_type}),n5}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return n2(t,{received:t.data,code:n0.invalid_enum_value,options:n}),n5}return n8(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return rW.create(e,{...this._def,...t})}exclude(e,t=this._def){return rW.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}rW.create=rq;class rH extends rr{_parse(e){let t=b.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==nY.string&&n.parsedType!==nY.number){let e=b.objectValues(t);return n2(n,{expected:b.joinValues(e),received:n.parsedType,code:n0.invalid_type}),n5}if(this._cache||(this._cache=new Set(b.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=b.objectValues(t);return n2(n,{received:n.data,code:n0.invalid_enum_value,options:e}),n5}return n8(e.data)}get enum(){return this._def.values}}rH.create=(e,t)=>new rH({values:e,typeName:k.ZodNativeEnum,...rn(t)});class rK extends rr{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==nY.promise&&!1===t.common.async?(n2(t,{code:n0.invalid_type,expected:nY.promise,received:t.parsedType}),n5):n8((t.parsedType===nY.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}rK.create=(e,t)=>new rK({type:e,typeName:k.ZodPromise,...rn(t)});class rG extends rr{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===k.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:e=>{n2(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===r.type){let e=r.transform(n.data,i);if(n.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return n5;let r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===r.status?n5:"dirty"===r.status||"dirty"===t.value?n3(r.value):r});{if("aborted"===t.value)return n5;let r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===r.status?n5:"dirty"===r.status||"dirty"===t.value?n3(r.value):r}}if("refinement"===r.type){let e=e=>{let t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>"aborted"===n.status?n5:("dirty"===n.status&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))));{let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?n5:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}}if("transform"===r.type)if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>"valid"!==e.status?n5:Promise.resolve(r.transform(e.value,i)).then(e=>({status:t.value,value:e})));else{let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if("valid"!==e.status)return n5;let a=r.transform(e.value,i);if(a instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}b.assertNever(r)}}
5rG.create=(e,t,n)=>new rG({schema:e,typeName:k.ZodEffects,effect:t,...rn(n)}),rG.createWithPreprocess=(e,t,n)=>new rG({schema:t,effect:{type:"preprocess",transform:e},typeName:k.ZodEffects,...rn(n)});class rX extends rr{_parse(e){return this._getType(e)===nY.undefined?n8(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}rX.create=(e,t)=>new rX({innerType:e,typeName:k.ZodOptional,...rn(t)});class rY extends rr{_parse(e){return this._getType(e)===nY.null?n8(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}rY.create=(e,t)=>new rY({innerType:e,typeName:k.ZodNullable,...rn(t)});class rQ extends rr{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===nY.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}rQ.create=(e,t)=>new rQ({innerType:e,typeName:k.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...rn(t)});class r0 extends rr{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return n7(r)?r.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new n1(n.common.issues)},input:n.data})})):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new n1(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}r0.create=(e,t)=>new r0({innerType:e,typeName:k.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...rn(t)});class r1 extends rr{_parse(e){if(this._getType(e)!==nY.nan){let t=this._getOrReturnCtx(e);return n2(t,{code:n0.invalid_type,expected:nY.nan,received:t.parsedType}),n5}return{status:"valid",value:e.data}}}r1.create=e=>new r1({typeName:k.ZodNaN,...rn(e)}),Symbol("zod_brand");class r4 extends rr{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class r6 extends rr{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?n5:"dirty"===e.status?(t.dirty(),n3(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{let e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?n5:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new r6({in:e,out:t,typeName:k.ZodPipeline})}}class r2 extends rr{_parse(e){let t=this._def.innerType._parse(e),n=e=>("valid"===e.status&&(e.value=Object.freeze(e.value)),e);return n7(t)?t.then(e=>n(e)):n(t)}unwrap(){return this._def.innerType}}r2.create=(e,t)=>new r2({innerType:e,typeName:k.ZodReadonly,...rn(t)}),rP.lazycreate,(i=k||(k={})).ZodString="ZodString",i.ZodNumber="ZodNumber",i.ZodNaN="ZodNaN",i.ZodBigInt="ZodBigInt",i.ZodBoolean="ZodBoolean",i.ZodDate="ZodDate",i.ZodSymbol="ZodSymbol",i.ZodUndefined="ZodUndefined",i.ZodNull="ZodNull",i.ZodAny="ZodAny",i.ZodUnknown="ZodUnknown",i.ZodNever="ZodNever",i.ZodVoid="ZodVoid",i.ZodArray="ZodArray",i.ZodObject="ZodObject",i.ZodUnion="ZodUnion",i.ZodDiscriminatedUnion="ZodDiscriminatedUnion",i.ZodIntersection="ZodIntersection",i.ZodTuple="ZodTuple",i.ZodRecord="ZodRecord",i.ZodMap="ZodMap",i.ZodSet="ZodSet",i.ZodFunction="ZodFunction",i.ZodLazy="ZodLazy",i.ZodLiteral="ZodLiteral",i.ZodEnum="ZodEnum",i.ZodEffects="ZodEffects",i.ZodNativeEnum="ZodNativeEnum",i.ZodOptional="ZodOptional",i.ZodNullable="ZodNullable",i.ZodDefault="ZodDefault",i.ZodCatch="ZodCatch",i.ZodPromise="ZodPromise",i.ZodBranded="ZodBranded",i.ZodPipeline="ZodPipeline",i.ZodReadonly="ZodReadonly",r_.create,rk.create,r1.create,r$.create,rw.create,rI.create,rS.create,rE.create,rO.create,rT.create,rj.create,rz.create,rA.create,rC.create,rP.create,rP.strictCreate,rN.create,rZ.create,rD.create,rM.create,rR.
5create,rL.create,rF.create,rB.create,rV.create,rJ.create,rW.create,rH.create,rK.create,rG.create,rX.create,rY.create,rG.createWithPreprocess,r6.create;class r9 extends Error{constructor(e,t){super(e),this.name="ParseError",this.type=t.type,this.field=t.field,this.value=t.value,this.line=t.line}}function r5(e){}function r3(e,t,n){return 100===n&&97===e.charCodeAt(t+1)&&116===e.charCodeAt(t+2)&&97===e.charCodeAt(t+3)&&58===e.charCodeAt(t+4)}function r8(e,t,n){return 101===n&&118===e.charCodeAt(t+1)&&101===e.charCodeAt(t+2)&&110===e.charCodeAt(t+3)&&116===e.charCodeAt(t+4)&&58===e.charCodeAt(t+5)}class r7 extends TransformStream{constructor({onError:e,onRetry:t,onComment:n,maxBufferSize:r}={}){let i;super({start(a){i=function(e){if("function"==typeof e)throw TypeError("`config` must be an object, got a function instead. Did you mean `createParser({onEvent: fn})`?");let{onEvent:t=r5,onError:n=r5,onRetry:r=r5,onComment:i,maxBufferSize:a}=e,o=[],s=0,l=!0,u,c="",d=0,p,f=!1;function m(){void 0!==a&&(s+c.length<=a||(f=!0,o.length=0,s=0,u=void 0,c="",d=0,p=void 0,n(new r9(`Buffered data exceeded max buffer size of ${a} characters`,{type:"max-buffer-size-exceeded"}))))}function h(e){let n=0;if(-1===e.indexOf("\r")){let r=e.indexOf(` 6`,n);for(;-1!==r;){if(n===r){d>0&&t({id:u,event:p,data:c}),u=void 0,c="",d=0,p=void 0,n=r+1,r=e.indexOf(` 7`,n);continue}let i=e.charCodeAt(n);if(r3(e,n,i)){let i=32===e.charCodeAt(n+5)?n+6:n+5,a=e.slice(i,r);if(0===d&&10===e.charCodeAt(r+1)){t({id:u,event:p,data:a}),u=void 0,c="",p=void 0,n=r+2,r=e.indexOf(` 8`,n);continue}c=0===d?a:`${c} 9${a}`,d++}else r8(e,n,i)?p=e.slice(32===e.charCodeAt(n+6)?n+7:n+6,r)||void 0:g(e,n,r);n=r+1,r=e.indexOf(` 10`,n)}return e.slice(n)}for(;n<e.length;){let t=e.indexOf("\r",n),r=e.indexOf(` 11`,n),i=-1;if(-1!==t&&-1!==r?i=t<r?t:r:-1!==t?i=t===e.length-1?-1:t:-1!==r&&(i=r),-1===i)break;g(e,n,i),n=i+1,13===e.charCodeAt(n-1)&&10===e.charCodeAt(n)&&n++}return e.slice(n)}function g(e,n,r){if(n===r)return void(d>0&&t({id:u,event:p,data:c}),u=void 0,c="",d=0,p=void 0);let a=e.charCodeAt(n);if(r3(e,n,a)){let t=32===e.charCodeAt(n+5)?n+6:n+5,i=e.slice(t,r);c=0===d?i:`${c} 12${i}`,d++;return}if(r8(e,n,a)){p=e.slice(32===e.charCodeAt(n+6)?n+7:n+6,r)||void 0;return}if(105===a&&100===e.charCodeAt(n+1)&&58===e.charCodeAt(n+2)){let t=e.slice(32===e.charCodeAt(n+3)?n+4:n+3,r);u=t.includes("\0")?void 0:t;return}if(58===a){i&&i(e.slice(n,r).slice(32===e.charCodeAt(n+1)?2:1));return}let o=e.slice(n,r),s=o.indexOf(":");if(-1===s)return void v(o,"",o);let l=o.slice(0,s),f=32===o.charCodeAt(s+1)?2:1;v(l,o.slice(s+f),o)}function v(e,t,i){switch(e){case"event":p=t||void 0;break;case"data":c=0===d?t:`${c} 13${t}`,d++;break;case"id":u=t.includes("\0")?void 0:t;break;case"retry":/^\d+$/.test(t)?r(parseInt(t,10)):n(new r9(`Invalid \`retry\` value: "${t}"`,{type:"invalid-retry",value:t,line:i}));break;default:n(new r9(`Unknown field "${e.length>20?`${e.slice(0,20)}\u2026`:e}"`,{type:"unknown-field",field:e,value:t,line:i}))}}return{feed:function(e){if(f)throw Error("Cannot feed parser: it was terminated after exceeding the configured max buffer size. Call `reset()` to resume parsing.");if(l&&(l=!1,239===e.charCodeAt(0)&&187===e.charCodeAt(1)&&191===e.charCodeAt(2)&&(e=e.slice(3))),0===o.length){let t=h(e);""!==t&&(o.push(t),s=t.length),m();return}if(-1===e.indexOf(` 14`)&&-1===e.indexOf("\r")){o.push(e),s+=e.length,m();return}o.push(e);let t=o.join("");o.length=0,s=0;let n=h(t);""!==n&&(o.push(n),s=n.length),m()},reset:function(e={}){if(e.consume&&o.length>0){let e=o.join("");g(e,0,e.length)}l=!0,u=void 0,c="",d=0,p=void 0,o.length=0,s=0,f=!1}}}({onEvent:e=>{a.enqueue(e)},onError(t){"function"==typeof e&&e(t),("terminate"===e||"max-buffer-size-exceeded"===t.type)&&a.error(t)},onRetry:t,onComment:n,maxBufferSize:r})},transform(e){i.feed(e)}})}}let ie=Symbol.for("workflow-serialize"),it=Symbol.for("workflow-deserialize");function ir(...e){return e.reduce((e,t)=>({...e,...null!=t?t:{}}),{})}var{btoa:ii,atob:ia}=globalThis;function io(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCodePoint(e[n]);return ii(t)}async function is(e){var t;try{await (null==(t=e.body)?void 0:t.cancel())}catch(e){}}var il="AI_DownloadError",iu=`vercel.ai.error.${il}`,ic=Symbol.for(iu),id=class extends(w=ec,$=ic,w){constructor({url:e,statusCode:t,statusText:n,cause:r,message:i=null==r?`Failed to download ${e}: ${t} ${n}`:`Failed to download ${e}: ${r}`}){super({name:il,message:i,cause:r}),this[$]=!0,this.url=e,this.statusCode=t,this.statusText=n}static isInstance(e){return ec.hasMarker(e,iu)}};function ip(e){let t=e.split(".");return 4===t.length&&t.every(e=>{let t=Number(e);return Number.isInteger(t)&&t>=0&&t<=255&&String(t)===e})}function im(e){let[t,n,r]=e.split(".").map(Number);return 0===t||10===t||100===t&&n>=64&&n<=127||127===t||169===t&&254===n||172===t&&n>=16&&n<=31||192===t&&0===n&&0===r||192===t&&168===n||198===t&&(18===n||19===n)||t>=240||!1}async function ih({url:e,headers:t,abortSignal:n,maxRedirects:r=10}){let i={signal:n};void 0!==t&&(i.headers=t);let a=e;for(let t=0;t<=r;t++){!function(e){let t;try{t=new URL(e)}catch(t){throw new id({url:e,message:`Invalid URL: ${e}`})}if("data:"===t.protocol)return;if("http:"!==t.protocol&&"https:"!==t.protocol)throw new id({url:e,message:`URL scheme must be http, https, or data, got ${t.protocol}`});let n=t.hostname.toLowerCase().replace(/\.+$/,"");if(!n)throw new id({url:e,message:"URL must have a hostname"});if("localhost"===n||n.endsWith(".local")||n.endsWith(".localhost"))throw new id({url:e,message:`URL with hostname ${n} is not allowed`});if(n.startsWith("[")&&n.endsWith("]")){if(function(e){let t=function(e){let t=e.toLowerCase(),n=t.indexOf("%");
14-1!==n&&(t=t.slice(0,n));let r=t.split("::");if(r.length>2)return null;let i=e=>{if(""===e)return[];let t=[],n=e.split(":");for(let e=0;e<n.length;e++){let r=n[e];if(r.includes(".")){if(e!==n.length-1||!ip(r))return null;let[i,a,o,s]=r.split(".").map(Number);t.push(i<<8|a,o<<8|s);continue}if(!/^[0-9a-f]{1,4}$/.test(r))return null;t.push(parseInt(r,16))}return t},a=i(r[0]);if(null===a)return null;if(2===r.length){let e=i(r[1]);if(null===e)return null;let t=8-a.length-e.length;return t<0?null:[...a,...Array(t).fill(0),...e]}return 8===a.length?a:null}(e);if(null===t)return!0;let n=e=>t.slice(0,e).every(e=>0===e);if(n(7)&&(0===t[7]||1===t[7])||(65024&t[0])==64512||(65472&t[0])==65152||(65472&t[0])==65216||(65280&t[0])==65280)return!0;if(n(6)||n(5)&&65535===t[5]||n(4)&&65535===t[4]&&0===t[5]||100===t[0]&&65435===t[1]&&0===t[2]&&0===t[3]&&0===t[4]&&0===t[5]||100===t[0]&&65435===t[1]&&1===t[2]){let e=t[6]>>8&255,n=255&t[6],r=t[7]>>8&255,i=255&t[7];return im(`${e}.${n}.${r}.${i}`)}return!1}(n.slice(1,-1)))throw new id({url:e,message:`URL with IPv6 address ${n} is not allowed`});return}if(ip(n)&&im(n))throw new id({url:e,message:`URL with IP address ${n} is not allowed`})}(a);let t=await fetch(a,{...i,redirect:"manual"});if("opaqueredirect"===t.type){if(!function(e=globalThis){return null!=e.window}())throw new id({url:e,message:`Redirect from ${a} could not be validated and was blocked`});return await fetch(a,{...i,redirect:"follow"})}let n=t.headers.get("location");if(t.status>=300&&t.status<400&&n){await is(t),a=new URL(n,a).toString();continue}return t}throw new id({url:e,message:`Too many redirects (max ${r})`})}async function ig({response:e,url:t,maxBytes:n=0x80000000}){let r=e.headers.get("content-length");if(null!=r){let i=parseInt(r,10);if(!isNaN(i)&&i>n)throw await is(e),new id({url:t,message:`Download of ${t} exceeded maximum size of ${n} bytes (Content-Length: ${i}).`})}let i=e.body;if(null==i)return new Uint8Array(0);let a=i.getReader(),o=[],s=0;try{for(;;){let{done:e,value:r}=await a.read();if(e)break;if((s+=r.length)>n)throw new id({url:t,message:`Download of ${t} exceeded maximum size of ${n} bytes.`});o.push(r)}}finally{try{await a.cancel()}finally{a.releaseLock()}}let l=new Uint8Array(s),u=0;
14for(let e of o)l.set(e,u),u+=e.length;return l}function iv(e){return Object.fromEntries([...e.headers])}var iy=({prefix:e,size:t=16,alphabet:n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:r="-"}={})=>{let i=()=>{let e=n.length,r=Array(t);for(let i=0;i<t;i++)r[i]=n[Math.random()*e|0];return r.join("")};if(null==e)return i;if(n.includes(r))throw new e$({argument:"separator",message:`The separator "${r}" must not be part of the alphabet "${n}".`});return()=>`${e}${r}${i()}`},ib=iy();function ix(e){return(e instanceof Error||e instanceof DOMException)&&("AbortError"===e.name||"ResponseAborted"===e.name||"TimeoutError"===e.name)}var i_=["fetch failed","failed to fetch"],ik=["ConnectionRefused","ConnectionClosed","FailedToOpenSocket","ECONNRESET","ECONNREFUSED","ETIMEDOUT","EPIPE"];function i$({error:e,url:t,requestBodyValues:n}){if(ix(e))return e;if(e instanceof TypeError&&i_.includes(e.message.toLowerCase())){let r=e.cause;if(null!=r)return new em({message:`Cannot connect to API: ${r.message}`,cause:r,url:t,requestBodyValues:n,isRetryable:!0})}return!function(e){if(!(e instanceof Error))return!1;let t=e.code;return!!("string"==typeof t&&ik.includes(t))}(e)?e:new em({message:`Cannot connect to API: ${e.message}`,cause:e,url:t,requestBodyValues:n,isRetryable:!0})}function iw(e=globalThis){var t,n,r;return e.window?"runtime/browser":(null==(t=e.navigator)?void 0:t.userAgent)?`runtime/${e.navigator.userAgent.toLowerCase()}`:(null==(r=null==(n=e.process)?void 0:n.versions)?void 0:r.node)?`runtime/node.js/${e.process.version.substring(0)}`:e.EdgeRuntime?"runtime/vercel-edge":"runtime/unknown"}function iI(e){if(null==e)return{};let t={};if(e instanceof Headers)e.forEach((e,n)=>{t[n.toLowerCase()]=e});else for(let[n,r]of(Array.isArray(e)||(e=Object.entries(e)),e))null!=r&&(t[n.toLowerCase()]=r);return t}function iS(e,...t){let n=new Headers(iI(e)),r=n.get("user-agent")||"";return n.set("user-agent",[r,...t].filter(Boolean).join(" ")),Object.fromEntries(n.entries())}var iE="5.0.7",iO=()=>globalThis.fetch,iT=async({url:e,headers:t={},successfulResponseHandler:n,failedResponseHandler:r,abortSignal:i,fetch:a=iO()})=>{try{let o=await a(e,{method:"GET",headers:iS(t,`ai-sdk/provider-utils/${iE}`,iw()),signal:i}),s=iv(o);if(!o.ok){let t;try{t=await r({response:o,url:e,requestBodyValues:{}})}catch(t){if(ix(t)||em.isInstance(t))throw t;throw new em({message:"Failed to process error response",cause:t,statusCode:o.status,url:e,responseHeaders:s,requestBodyValues:{}})}throw t.value}try{return await n({response:o,url:e,requestBodyValues:{}})}catch(t){if(t instanceof Error&&(ix(t)||em.isInstance(t)))throw t;throw new em({message:"Failed to process successful response",cause:t,statusCode:o.status,url:e,responseHeaders:s,requestBodyValues:{}})}}catch(t){throw i$({error:t,url:e,requestBodyValues:{}})}};function ij({settingValue:e,environmentVariableName:t}){return"string"==typeof e?e:null!=e||void 0===es.default?void 0:null!=(e=es.default.env[t])&&"string"==typeof e?e:void 0}var iz=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,iA=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function iC(e){let t=JSON.parse(e);return null===t||"object"!=typeof t||!1===iz.test(e)&&!1===iA.test(e)?t:function(e){let t=[e];for(;t.length;){let e=t;for(let n of(t=[],e)){if(Object.prototype.hasOwnProperty.call(n,"__proto__")||Object.prototype.hasOwnProperty.call(n,"constructor")&&null!==n.constructor&&"object"==typeof n.constructor&&Object.prototype.hasOwnProperty.call(n.constructor,"prototype"))throw SyntaxError("Object contains forbidden prototype property");for(let e in n){let r=n[e];r&&"object"==typeof r&&t.push(r)}}}return e}(t)}function iP(e){let{stackTraceLimit:t}=Error;try{Error.stackTraceLimit=0}catch(t){return iC(e)}try{return iC(e)}finally{Error.stackTraceLimit=t}}function iN(e){if("object"===e.type||Array.isArray(e.type)&&e.type.includes("object")){e.additionalProperties=!1;let{properties:t}=e;if(null!=t)for(let e of Object.keys(t))t[e]=iU(t[e])}null!=e.items&&(e.items=Array.isArray(e.items)?e.items.map(iU):iU(e.items)),null!=e.anyOf&&(e.anyOf=e.anyOf.map(iU)),null!=e.allOf&&(e.allOf=e.allOf.map(iU)),null!=e.oneOf&&(e.oneOf=e.oneOf.map(iU));let{definitions:t}=e;if(null!=t)for(let e of Object.keys(t))t[e]=iU(t[e]);return e}function iU(e){return"boolean"==typeof e?e:iN(e)}var iZ=Symbol("Let zodToJsonSchema decide on which parser to use"),iD={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"};function iM(e,t){return i5(e.type._def,t)}var iR=void 0,iL=/^[cC][^\s-]{8,}
14$/,iF=/^[0-9a-z]+$/,iB=/^[0-9A-HJKMNP-TV-Z]{26}$/,iV=/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,iJ=()=>(void 0===iR&&(iR=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),iR),iq=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,iW=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,iH=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,iK=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,iG=/^[a-zA-Z0-9_-]{21}$/,iX=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/;function iY(e,t){let n={type:"string"};if(e.checks)for(let r of e.checks)switch(r.kind){case"min":n.minLength="number"==typeof n.minLength?Math.max(n.minLength,r.value):r.value;break;case"max":n.maxLength="number"==typeof n.maxLength?Math.min(n.maxLength,r.value):r.value;break;case"email":switch(t.emailStrategy){case"format:email":i1(n,"email",r.message,t);break;case"format:idn-email":i1(n,"idn-email",r.message,t);break;case"pattern:zod":i4(n,iV,r.message,t)}break;case"url":i1(n,"uri",r.message,t);break;case"uuid":i1(n,"uuid",r.message,t);break;case"regex":i4(n,r.regex,r.message,t);break;case"cuid":i4(n,iL,r.message,t);break;case"cuid2":i4(n,iF,r.message,t);break;case"startsWith":i4(n,RegExp(`^${iQ(r.value,t)}`),r.message,t);break;case"endsWith":i4(n,RegExp(`${iQ(r.value,t)}$`),r.message,t);break;case"datetime":i1(n,"date-time",r.message,t);break;case"date":i1(n,"date",r.message,t);break;case"time":i1(n,"time",r.message,t);break;case"duration":i1(n,"duration",r.message,t);break;case"length":n.minLength="number"==typeof n.minLength?Math.max(n.minLength,r.value):r.value,n.maxLength="number"==typeof n.maxLength?Math.min(n.maxLength,r.value):r.value;break;case"includes":i4(n,RegExp(iQ(r.value,t)),r.message,t);break;case"ip":"v6"!==r.version&&i1(n,"ipv4",r.message,t),"v4"!==r.version&&i1(n,"ipv6",r.message,t);break;case"base64url":i4(n,iK,r.message,t);break;case"jwt":i4(n,iX,r.message,t);break;case"cidr":"v6"!==r.version&&i4(n,iq,r.message,t),"v4"!==r.version&&i4(n,iW,r.message,t);break;case"emoji":i4(n,iJ(),r.message,t);break;case"ulid":i4(n,iB,r.message,t);break;case"base64":switch(t.base64Strategy){case"format:binary":i1(n,"binary",r.message,t);break;case"contentEncoding:base64":n.contentEncoding="base64";break;case"pattern:zod":i4(n,iH,r.message,t)}break;case"nanoid":i4(n,iG,r.message,t)}return n}function iQ(e,t){return"escape"===t.patternStrategy?function(e){let t="";for(let n=0;n<e.length;n++)i0.has(e[n])||(t+="\\"),t+=e[n];return t}(e):e}var i0=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function i1(e,t,n,r){var i;e.format||(null==(i=e.anyOf)?void 0:i.some(e=>e.format))?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format}),delete e.format),e.anyOf.push({format:t,...n&&r.errorMessages&&{errorMessage:{format:n}}})):e.format=t}function i4(e,t,n,r){var i;e.pattern||(null==(i=e.allOf)?void 0:i.some(e=>e.pattern))?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern}),delete e.pattern),e.allOf.push({pattern:i6(t,r),...n&&r.errorMessages&&{errorMessage:{pattern:n}}})):e.pattern=i6(t,r)}function i6(e,t){var n;if(!t.applyRegexFlags||!e.flags)return e.source;let r={i:e.flags.includes("i"),m:e.flags.includes("m"),s:e.flags.includes("s")},i=r.i?e.source.toLowerCase():e.source,a="",o=!1,s=!1,l=!1;for(let e=0;e<i.length;e++){if(o){a+=i[e],o=!1;continue}if(r.i){if(s){if(i[e].match(/[a-z]/)){l?(a+=i[e],a+=`${i[e-2]}-${i[e]}`.toUpperCase(),l=!1):"-"===i[e+1]&&(null==(n=i[e+2])?void 0:n.match(/[a-z]/))?(a+=i[e],l=!0):a+=`${i[e]}${i[e].toUpperCase()}`;continue}}else if(i[e].match(/[a-z]/)){a+=`[${i[e]}${i[e].toUpperCase()}]`;continue}}if(r.m){if("^"===i[e]){a+=`(^|(?<=[\r 15]))`;continue}else if("$"===i[e]){a+=`($|(?=[\r 16]))`;continue}}if(r.s&&"."===i[e]){a+=s?`${i[e]}\r 17`:`[${i[e]}\r 18]`;continue}a+=i[e],"\\"===i[e]?o=!0:s&&"]"===i[e]?s=!1:s||"["!==i[e]||(s=!0)}try{new RegExp(a)}catch(n){return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return a}function i2(e,t){var n,r,i,a,o,s;let l={type:"object",additionalProperties:null!=(n=i5(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]}))?n:t.allowedAdditionalProperties};if((null==(r=e.keyType)?void 0:r._def.typeName)===k.ZodString&&(null==(i=e.keyType._def.checks)?void 0:i.length)){let{type:n,...r}=iY(e.keyType._def,t);return{...l,propertyNames:r}}if((null==(a=e.keyType)?void 0:a._def.typeName)===k.ZodEnum)return{...l,propertyNames:{enum:e.keyType._def.values}};if((null==(o=e.keyType)?void 0:o._def.typeName)===k.ZodBranded&&e.keyType._def.type._def.typeName===k.ZodString&&(null==(s=e.keyType._def.type._def.checks)?void 0:s.length)){let{type:n,...r}=iM(e.keyType._def,t);return{...l,propertyNames:r}}return l}var i9={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function i5(e,t,n=!1){var r;let i=t.seen.get(e);if(t.override){let a=null==(r=t.override)?void 0:r.call(t,e,t,i,n);if(a!==iZ)return a}if(i&&!n){let e=i3(i,t);if(void 0!==e)return e}let a={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,a);let o=((e,t,n)=>{var r,i,a,o,s,l;switch(t){case k.ZodString:return iY(e,n);case k.ZodNumber:let u={type:"number"};if(!e.checks)return u;for(let t of e.checks)switch(t.kind){case"int":u.type="integer";break;case"min":t.inclusive?u.minimum=t.value:u.exclusiveMinimum=t.value;break;case"max":t.inclusive?u.maximum=t.value:u.exclusiveMaximum=t.value;break;case"multipleOf":u.multipleOf=t.value}return u;case k.ZodObject:return function(e,t){let n={type:"object",properties:{}},r=[],i=e.shape();for(let e in i){let a=i[e];if(void 0===a||void 0===a._def)continue;let o=function(e){try{return e.isOptional()}catch(e){return!0}}(a),s=i5(a._def,{...t,currentPath:[...t.currentPath,"properties",e],propertyPath:[...t.currentPath,"properties",e]});void 0!==s&&(n.properties[e]=s,o||r.push(e))}r.length&&(n.required=r);let a=function(e,t){if("ZodNever"!==e.catchall._def.typeName)return i5(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return"strict"===t.removeAdditionalStrategy?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}(e,t);return void 0!==a&&(n.additionalProperties=a),n}(e,n);case k.ZodBigInt:let c={type:"integer",format:"int64"};if(!e.checks)return c;for(let t of e.checks)switch(t.kind){case"min":t.inclusive?c.minimum=t.value:c.exclusiveMinimum=t.value;break;case"max":t.inclusive?c.maximum=t.value:c.exclusiveMaximum=t.value;break;case"multipleOf":c.multipleOf=t.value}return c;case k.ZodBoolean:return{type:"boolean"};case k.ZodDate:return function e(t,n,r){let i=null!=r?r:n.dateStrategy;if(Array.isArray(i))return{anyOf:i.map(r=>e(t,n,r))};switch(i){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":var a=t;let o={type:"integer",format:"unix-time"};for(let e of a.checks)switch(e.kind){case"min":o.minimum=e.value;break;case"max":o.maximum=e.value}return o}}
18(e,n);case k.ZodUndefined:return{not:{}};case k.ZodNull:return{type:"null"};case k.ZodArray:let d;return d={type:"array"},(null==(a=e.type)?void 0:a._def)&&(null==(s=null==(o=e.type)?void 0:o._def)?void 0:s.typeName)!==k.ZodAny&&(d.items=i5(e.type._def,{...n,currentPath:[...n.currentPath,"items"]})),e.minLength&&(d.minItems=e.minLength.value),e.maxLength&&(d.maxItems=e.maxLength.value),e.exactLength&&(d.minItems=e.exactLength.value,d.maxItems=e.exactLength.value),d;case k.ZodUnion:case k.ZodDiscriminatedUnion:let p,f=e.options instanceof Map?Array.from(e.options.values()):e.options;if(f.every(e=>e._def.typeName in i9&&(!e._def.checks||!e._def.checks.length))){let e=f.reduce((e,t)=>{let n=i9[t._def.typeName];return n&&!e.includes(n)?[...e,n]:e},[]);return{type:e.length>1?e:e[0]}}if(f.every(e=>"ZodLiteral"===e._def.typeName&&!e.description)){let e=f.reduce((e,t)=>{let n=typeof t._def.value;switch(n){case"string":case"number":case"boolean":return[...e,n];case"bigint":return[...e,"integer"];case"object":if(null===t._def.value)return[...e,"null"];default:return e}},[]);if(e.length===f.length){let t=e.filter((e,t,n)=>n.indexOf(e)===t);return{type:t.length>1?t:t[0],enum:f.reduce((e,t)=>e.includes(t._def.value)?e:[...e,t._def.value],[])}}}else if(f.every(e=>"ZodEnum"===e._def.typeName))return{type:"string",enum:f.reduce((e,t)=>[...e,...t._def.values.filter(t=>!e.includes(t))],[])};return r=e,i=n,(p=(r.options instanceof Map?Array.from(r.options.values()):r.options).map((e,t)=>i5(e._def,{...i,currentPath:[...i.currentPath,"anyOf",`${t}`]})).filter(e=>!!e&&(!i.strictUnions||"object"==typeof e&&Object.keys(e).length>0))).length?{anyOf:p}:void 0;case k.ZodIntersection:let m,h;return m=[i5(e.left._def,{...n,currentPath:[...n.currentPath,"allOf","0"]}),i5(e.right._def,{...n,currentPath:[...n.currentPath,"allOf","1"]})].filter(e=>!!e),h=[],m.forEach(e=>{if((!("type"in e)||"string"!==e.type)&&"allOf"in e)h.push(...e.allOf);else{let t=e;if("additionalProperties"in e&&!1===e.additionalProperties){let{additionalProperties:n,...r}=e;t=r}h.push(t)}}),h.length?{allOf:h}:void 0;case k.ZodTuple:return e.rest?{type:"array",minItems:e.items.length,items:e.items.map((e,t)=>i5(e._def,{...n,currentPath:[...n.currentPath,"items",`${t}`]})).reduce((e,t)=>void 0===t?e:[...e,t],[]),additionalItems:i5(e.rest._def,{...n,currentPath:[...n.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map((e,t)=>i5(e._def,{...n,currentPath:[...n.currentPath,"items",`${t}`]})).reduce((e,t)=>void 0===t?e:[...e,t],[])};case k.ZodRecord:return i2(e,n);case k.ZodLiteral:let g;return"bigint"!=(g=typeof e.value)&&"number"!==g&&"boolean"!==g&&"string"!==g?{type:Array.isArray(e.value)?"array":"object"}:{type:"bigint"===g?"integer":g,const:e.value};case k.ZodEnum:return{type:"string",enum:Array.from(e.values)};case k.ZodNativeEnum:let v,y,b;return v=e.values,{type:1===(b=Array.from(new Set((y=Object.keys(e.values).filter(e=>"number"!=typeof v[v[e]]).map(e=>v[e])).map(e=>typeof e)))).length?"string"===b[0]?"string":"number":["string","number"],enum:y};case k.ZodNullable:if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return{type:[i9[e.innerType._def.typeName],"null"]};let x=i5(e.innerType._def,{...n,currentPath:[...n.currentPath,"anyOf","0"]});return x&&{anyOf:[x,{type:"null"}]};case k.ZodOptional:if(n.currentPath.toString()===(null==(l=n.propertyPath)?void 0:l.toString()))return i5(e.innerType._def,n);let _=i5(e.innerType._def,{...n,currentPath:[...n.currentPath,"anyOf","1"]});return _?{anyOf:[{not:{}},_]}:{};case k.ZodMap:if("record"===n.mapStrategy)return i2(e,n);return{type:"array",maxItems:125,items:{type:"array",items:[i5(e.keyType._def,{...n,currentPath:[...n.currentPath,"items","items","0"]})||{},i5(e.valueType._def,{...n,currentPath:[...n.currentPath,"items","items","1"]})||{}],minItems:2,maxItems:2}};case k.ZodSet:let $;return $={type:"array",uniqueItems:!0,items:i5(e.valueType._def,{...n,currentPath:[...n.currentPath,"items"]})},e.minSize&&($.minItems=e.minSize.value),e.maxSize&&($.maxItems=e.maxSize.value),$;case k.ZodLazy:return()=>e.getter()._def;
18case k.ZodPromise:return i5(e.type._def,n);case k.ZodNaN:case k.ZodNever:return{not:{}};case k.ZodEffects:return"input"===n.effectStrategy?i5(e.schema._def,n):{};case k.ZodAny:case k.ZodUnknown:return{};case k.ZodDefault:return{...i5(e.innerType._def,n),default:e.defaultValue()};case k.ZodBranded:return iM(e,n);case k.ZodReadonly:case k.ZodCatch:return i5(e.innerType._def,n);case k.ZodPipeline:if("input"===n.pipeStrategy)return i5(e.in._def,n);if("output"===n.pipeStrategy)return i5(e.out._def,n);let w=i5(e.in._def,{...n,currentPath:[...n.currentPath,"allOf","0"]}),I=i5(e.out._def,{...n,currentPath:[...n.currentPath,"allOf",w?"1":"0"]});return{allOf:[w,I].filter(e=>void 0!==e)};case k.ZodFunction:case k.ZodVoid:case k.ZodSymbol:default:return}})(e,e.typeName,t),s="function"==typeof o?i5(o(),t):o;if(s&&i8(e,t,s),t.postProcess){let n=t.postProcess(s,e,t);return a.jsonSchema=s,n}return a.jsonSchema=s,s}var i3=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:((e,t)=>{let n=0;for(;n<e.length&&n<t.length&&e[n]===t[n];n++);return[(e.length-n).toString(),...t.slice(n)].join("/")})(t.currentPath,e.path)};case"none":case"seen":if(e.path.length<t.currentPath.length&&e.path.every((e,n)=>t.currentPath[n]===e))return console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),{};return"seen"===t.$refStrategy?{}:void 0}},i8=(e,t,n)=>(e.description&&(n.description=e.description),n),i7=Symbol.for("vercel.ai.schema");function ae(e){let t;return()=>(null==t&&(t=e()),t)}function at(e,{validate:t}={}){return{[i7]:!0,_type:void 0,get jsonSchema(){return"function"==typeof e&&(e=e()),e},validate:t}}function an(e){var t;return null==e?at({type:"object",properties:{},additionalProperties:!1}):"object"==typeof e&&null!==e&&i7 in e&&!0===e[i7]&&"jsonSchema"in e&&"validate"in e?e:"~standard"in e?"zod"===e["~standard"].vendor?ar(e):(t=e,at(()=>iN(t["~standard"].jsonSchema.input({target:"draft-07"})),{validate:async e=>{let n=await t["~standard"].validate(e);return"value"in n?{success:!0,value:n.value}:{success:!1,error:new eC({value:e,cause:n.issues})}}})):e()}function ar(e,t){var n,r;let i;if("_zod"in e){let r;return r=null!=(n=null==t?void 0:t.useReferences)&&n,at(()=>iN(nX(e,{target:"draft-7",io:"input",reused:r?"ref":"inline"})),{validate:async t=>{let n=await t0(e,t);return n.success?{success:!0,value:n.data}:{success:!1,error:n.error}}})}return i=null!=(r=null==t?void 0:t.useReferences)&&r,at(()=>((e,t)=>{var n;let r,i,a=(i=void 0!==(r="string"==typeof t?{...iD,name:t}:{...iD,...t}).name?[...r.basePath,r.definitionPath,r.name]:r.basePath,{...r,currentPath:i,propertyPath:void 0,seen:new Map(Object.entries(r.definitions).map(([e,t])=>[t._def,{def:t._def,path:[...r.basePath,r.definitionPath,e],jsonSchema:void 0}]))}),o="object"==typeof t&&t.definitions?Object.entries(t.definitions).reduce((e,[t,n])=>{var r;return{...e,[t]:null!=(r=i5(n._def,{...a,currentPath:[...a.basePath,a.definitionPath,t]},!0))?r:{}}},{}):void 0,s="string"==typeof t?t:(null==t?void 0:t.nameStrategy)==="title"||null==t?void 0:t.name,l=null!=(n=i5(e._def,void 0===s?a:{...a,currentPath:[...a.basePath,a.definitionPath,s]},!1))?n:{},u="object"==typeof t&&void 0!==t.name&&"title"===t.nameStrategy?t.name:void 0;void 0!==u&&(l.title=u);let c=void 0===s?o?{...l,[a.definitionPath]:o}:l:{$ref:[..."relative"===a.$refStrategy?[]:a.basePath,a.definitionPath,s].join("/"),[a.definitionPath]:{...o,[s]:l}};return c.$schema="http://json-schema.org/draft-07/schema#",c})(e,{$refStrategy:i?"root":"none"}),{validate:async t=>{let n=await e.safeParseAsync(t);return n.success?{success:!0,value:n.data}:{success:!1,error:n.error}}})}async function ai({value:e,schema:t,context:n}){let r=await aa({value:e,schema:t,context:n});if(!r.success)throw eC.wrap({value:e,cause:r.error,context:n});return r.value}async function aa({value:e,schema:t,context:n}){let r=an(t);try{if(null==r.validate)return{success:!0,value:e,rawValue:e};let t=await r.validate(e);if(t.success)return{success:!0,value:t.value,rawValue:e};return{success:!1,error:eC.wrap({value:e,cause:t.error,context:n}),rawValue:e}}catch(t){return{success:!1,error:eC.wrap({value:e,cause:t,context:n}),rawValue:e}}}async function ao({text:e,schema:t}){try{let n=iP(e);if(null==t)return n;return await ai({value:n,schema:t})}catch(t){if(eO.isInstance(t)||eC.isInstance(t))throw t;throw new eO({text:e,cause:t})}}async function as({text:e,schema:t}){try{let n=iP(e);if(null==t)return{success:!0,value:n,rawValue:n};return await aa({value:n,schema:t})}catch(t){return{success:!1,error:eO.isInstance(t)?t:new eO({text:e,cause:t}),rawValue:void 0}}}
18function al({stream:e,schema:t}){return e.pipeThrough(new TextDecoderStream).pipeThrough(new r7).pipeThrough(new TransformStream({async transform({data:e},n){"[DONE]"!==e&&n.enqueue(await as({text:e,schema:t}))}}))}var au=()=>globalThis.fetch,ac=async({url:e,headers:t,body:n,failedResponseHandler:r,successfulResponseHandler:i,abortSignal:a,fetch:o})=>await ad({url:e,headers:{"Content-Type":"application/json",...t},body:{content:JSON.stringify(n),values:n},failedResponseHandler:r,successfulResponseHandler:i,abortSignal:a,fetch:o}),ad=async({url:e,headers:t={},body:n,successfulResponseHandler:r,failedResponseHandler:i,abortSignal:a,fetch:o=au()})=>{try{let s=await o(e,{method:"POST",headers:iS(t,`ai-sdk/provider-utils/${iE}`,iw()),body:n.content,signal:a}),l=iv(s);if(!s.ok){let t;try{t=await i({response:s,url:e,requestBodyValues:n.values})}catch(t){if(ix(t)||em.isInstance(t))throw t;throw new em({message:"Failed to process error response",cause:t,statusCode:s.status,url:e,responseHeaders:l,requestBodyValues:n.values})}throw t.value}try{return await r({response:s,url:e,requestBodyValues:n.values})}catch(t){if(t instanceof Error&&(ix(t)||em.isInstance(t)))throw t;throw new em({message:"Failed to process successful response",cause:t,statusCode:s.status,url:e,responseHeaders:l,requestBodyValues:n.values})}}catch(t){throw i$({error:t,url:e,requestBodyValues:n.values})}};function ap({id:e,inputSchema:t,outputSchema:n,supportsDeferredResults:r}){return({onInputStart:i,onInputDelta:a,onInputAvailable:o,...s})=>({type:"provider",isProviderExecuted:!0,id:e,args:s,inputSchema:t,outputSchema:n,onInputStart:i,onInputDelta:a,onInputAvailable:o,supportsDeferredResults:r})}async function af(e){return"function"==typeof e&&(e=e()),Promise.resolve(e)}var am=new TextDecoder;async function ah({response:e,url:t}){return am.decode(await ig({response:e,url:t}))}var ag=({errorSchema:e,errorToMessage:t,isRetryable:n})=>async({response:r,url:i,requestBodyValues:a})=>{let o=await ah({response:r,url:i}),s=iv(r);if(""===o.trim())return{responseHeaders:s,value:new em({message:r.statusText,url:i,requestBodyValues:a,statusCode:r.status,responseHeaders:s,responseBody:o,isRetryable:null==n?void 0:n(r)})};try{let l=await ao({text:o,schema:e});return{responseHeaders:s,value:new em({message:t(l),url:i,requestBodyValues:a,statusCode:r.status,responseHeaders:s,responseBody:o,data:l,isRetryable:null==n?void 0:n(r,l)})}}catch(e){return{responseHeaders:s,value:new em({message:r.statusText,url:i,requestBodyValues:a,statusCode:r.status,responseHeaders:s,responseBody:o,isRetryable:null==n?void 0:n(r)})}}},av=e=>async({response:t,url:n,requestBodyValues:r})=>{let i=await ah({response:t,url:n}),a=await as({text:i,schema:e}),o=iv(t);if(!a.success)throw new em({message:"Invalid JSON response",cause:a.error,statusCode:t.status,responseHeaders:o,responseBody:i,url:n,requestBodyValues:r});return{responseHeaders:o,value:a.value,rawValue:a.rawValue}};function ay(e){if(null==e)return!0;let t=typeof e;return"string"===t||"number"===t||"boolean"===t||"function"!==t&&"symbol"!==t&&"bigint"!==t&&(Array.isArray(e)?e.every(ay):Object.getPrototypeOf(e)===Object.prototype&&Object.values(e).every(ay))}function ab(e){let t={};for(let[n,r]of Object.entries(e.config))if("headers"===n){let e=function(e){let t=e;if("function"==typeof e&&(t=e()),t instanceof Promise)throw Error("Promise returned from resolveSync");return t}(r);ay(e)&&(t[n]=e)}else ay(r)&&(t[n]=r);return{modelId:e.modelId,config:t}}new TextDecoder;var ax=e.i(67034);function a_(){let e,t,n;return{localeError:(e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}},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",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},n={nan:"NaN"},r=>
18{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;return`Invalid input: expected ${e}, received ${i}`}case"invalid_value":if(1===r.values.length)return`Invalid input: expected ${tt(r.values[0])}`;return`Invalid option: expected one of ${eB(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Too big: expected ${r.origin??"value"} to have ${t}${r.maximum.toString()} ${n.unit??"elements"}`;return`Too big: expected ${r.origin??"value"} to be ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Too small: expected ${r.origin} to have ${t}${r.minimum.toString()} ${n.unit}`;return`Too small: expected ${r.origin} to be ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Invalid string: must start with "${r.prefix}"`;if("ends_with"===r.format)return`Invalid string: must end with "${r.suffix}"`;if("includes"===r.format)return`Invalid string: must include "${r.includes}"`;if("regex"===r.format)return`Invalid string: must match pattern ${r.pattern}`;return`Invalid ${t[r.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":""}: ${eB(r.keys,", ")}`;case"invalid_key":return`Invalid key in ${r.origin}`;case"invalid_union":if(r.options&&Array.isArray(r.options)&&r.options.length>0){let e=r.options.map(e=>`'${e}'`).join(" | ");return`Invalid discriminator value. Expected ${e}`}return"Invalid input";case"invalid_element":return`Invalid value in ${r.origin}`;default:return"Invalid input"}})}}eL(a_()),e.s([],98821),e.i(98821),e.s([],92135),e.i(92135),e.i(97753),e.i(3108),e.i(74969);let ak=/^[cC][0-9a-z]{6,}$/,a$=/^[0-9a-z]+$/,aw=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,aI=/^[0-9a-vA-V]{20}$/,aS=/^[A-Za-z0-9]{27}$/,aE=/^[a-zA-Z0-9_-]{21}$/,aO=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,aT=/^([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})$/,aj=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,az=aj(4),aA=aj(6),aC=aj(7),aP=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,aN=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u;function aU(){return RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")}let aZ=/^(?:(?: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])$/,aD=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,aM=e=>{let t=e8(e??":");return RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},aR=/^((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])$/,aL=/^(([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])$/,aF=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,aB=/^[A-Za-z0-9_-]*$/,aV=/^https?$/,aJ=/^\+[1-9]\d{6,14}$/,aq="(?:(?:\\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])))",aW=RegExp(`^${aq}$`);function aH(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function aK(e){return RegExp(`^${aH(e)}$`)}function aG(e){let t=aH({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let r=`${t}(?:${n.join("|")})`;return RegExp(`^${aq}T(?:${r})$`)}let aX=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return RegExp(`^${t}$`)},aY=/^-?\d+n?$/,aQ=/^-?\d+$/,a0=/^-?\d+(?:\.\d+)?$/,a1=/^(?:true|false)$/i,a4=/^null$/i,a6=/^undefined$/i,a2=/^[^A-Z]*$/,a9=/^[^a-z]*$/;function a5(e,t){return RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function a3(e){return RegExp(`^[A-Za-z0-9_-]{${e}}$`)}let a8=a5(22,"=="),a7=a3(22),oe=a5(27,"="),ot=a3(27),on=a5(43,"="),or=a3(43),oi=a5(64,""),oa=a3(64),oo=a5(86,"=="),os=a3(86);e.s(["base64",0,aF,"base64url",0,aB,"bigint",0,aY,"boolean",0,a1,"browserEmail",0,/^[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])?)*$/,"cidrv4",0,aR,"cidrv6",0,aL,"cuid",0,ak,"cuid2",0,a$,"date",0,aW,"datetime",0,aG,"domain",0,/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,"duration",0,aO,"e164",0,aJ,"email",0,aP,"emoji",0,aU,"extendedDuration",0,/^[-+]?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)?)??$/,"guid",0,aT,"hex",0,/^[0-9a-fA-F]*$/,"hostname",0,/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,"html5Email",0,/^[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])?)*$/,"httpProtocol",0,aV,"idnEmail",0,aN,"integer",0,aQ,"ipv4",0,aZ,"ipv6",0,aD,"ksuid",0,aS,"lowercase",0,a2,"mac",0,aM,"md5_base64",0,a8,"md5_base64url",0,a7,"md5_hex",0,/^[0-9a-fA-F]{32}$/,"nanoid",0,aE,"null",0,a4,"number",0,a0,"rfc5322Email",0,/^(([^<>()\[\]\\.,;:\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,}))$/,"sha1_base64",0,oe,"sha1_base64url",0,ot,"sha1_hex",0,/^[0-9a-fA-F]{40}$/,"sha256_base64",0,on,"sha256_base64url",0,or,"sha256_hex",0,/^[0-9a-fA-F]{64}$/,"sha384_base64",0,oi,"sha384_base64url",0,oa,"sha384_hex",0,/^[0-9a-fA-F]{96}$/,"sha512_base64",0,oo,"sha512_base64url",0,os,"sha512_hex",0,/^[0-9a-fA-F]{128}$/,"string",0,aX,"time",0,aK,"ulid",0,aw,"undefined",0,a6,"unicodeEmail",0,aN,"uppercase",0,a9,"uuid",0,aj,"uuid4",0,az,"uuid6",0,aA,"uuid7",0,aC,"xid",0,aI],82358);let ol=eU("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}
18),ou={number:"number",bigint:"bigint",object:"date"},oc=eU("$ZodCheckLessThan",(e,t)=>{ol.init(e,t);let n=ou[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:"object"==typeof t.value?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),od=eU("$ZodCheckGreaterThan",(e,t)=>{ol.init(e,t);let n=ou[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:"object"==typeof t.value?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),op=eU("$ZodCheckMultipleOf",(e,t)=>{ol.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof n.value?n.value%t.value===BigInt(0):0===eH(n.value,t.value))||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),of=eU("$ZodCheckNumberFormat",(e,t)=>{ol.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),r=n?"int":"number",[i,a]=tr[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=aQ)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s))return void o.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});if(!Number.isSafeInteger(s))return void(s>0?o.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}))}s<i&&o.issues.push({origin:"number",input:s,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:"number",input:s,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),om=eU("$ZodCheckBigIntFormat",(e,t)=>{ol.init(e,t);let[n,r]=ti[t.format];e._zod.onattach.push(e=>{let i=e._zod.bag;i.format=t.format,i.minimum=n,i.maximum=r}),e._zod.check=i=>{let a=i.value;a<n&&i.issues.push({origin:"bigint",input:a,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),a>r&&i.issues.push({origin:"bigint",input:a,code:"too_big",maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),oh=eU("$ZodCheckMaxSize",(e,t)=>{var n;ol.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!eq(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;r.size<=t.maximum||n.issues.push({origin:tc(r),code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),og=eU("$ZodCheckMinSize",(e,t)=>{var n;ol.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!eq(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;r.size>=t.minimum||n.issues.push({origin:tc(r),code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),ov=eU("$ZodCheckSizeEquals",(e,t)=>{var n;ol.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!eq(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=n=>{let r=n.value,i=r.size;if(i===t.size)return;let a=i>t.size;n.issues.push({origin:tc(r),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),oy=eU("$ZodCheckMaxLength",(e,t)=>{var n;ol.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!eq(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=td(r);n.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),ob=eU("$ZodCheckMinLength",(e,t)=>{var n;ol.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!eq(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=td(r);n.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),ox=eU("$ZodCheckLengthEquals",(e,t)=>{var n;ol.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!eq(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=td(r),o=i>t.length;n.issues.push({origin:a,...o?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),o_=eU("$ZodCheckStringFormat",(e,t)=>{var n,r;ol.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??(n.patterns=new Set),n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),ok=eU("$ZodCheckRegex",(e,t)=>{o_.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),o$=eU("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=a2),o_.init(e,t)}),ow=eU("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=a9),o_.init(e,t)}),oI=eU("$ZodCheckIncludes",(e,t)=>{ol.init(e,t);let n=e8(t.includes),r=new RegExp("number"==typeof t.position?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=n=>
18{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),oS=eU("$ZodCheckStartsWith",(e,t)=>{ol.init(e,t);let n=RegExp(`^${e8(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),oE=eU("$ZodCheckEndsWith",(e,t)=>{ol.init(e,t);let n=RegExp(`.*${e8(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}});function oO(e,t,n){e.issues.length&&t.issues.push(...ts(n,e.issues))}let oT=eU("$ZodCheckProperty",(e,t)=>{ol.init(e,t),e._zod.check=e=>{let n=t.schema._zod.run({value:e.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(n=>oO(n,e,t.property));oO(n,e,t.property)}}),oj=eU("$ZodCheckMimeType",(e,t)=>{ol.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(e=>{e._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:"invalid_value",values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),oz=eU("$ZodCheckOverwrite",(e,t)=>{ol.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});e.s(["$ZodCheck",0,ol,"$ZodCheckBigIntFormat",0,om,"$ZodCheckEndsWith",0,oE,"$ZodCheckGreaterThan",0,od,"$ZodCheckIncludes",0,oI,"$ZodCheckLengthEquals",0,ox,"$ZodCheckLessThan",0,oc,"$ZodCheckLowerCase",0,o$,"$ZodCheckMaxLength",0,oy,"$ZodCheckMaxSize",0,oh,"$ZodCheckMimeType",0,oj,"$ZodCheckMinLength",0,ob,"$ZodCheckMinSize",0,og,"$ZodCheckMultipleOf",0,op,"$ZodCheckNumberFormat",0,of,"$ZodCheckOverwrite",0,oz,"$ZodCheckProperty",0,oT,"$ZodCheckRegex",0,ok,"$ZodCheckSizeEquals",0,ov,"$ZodCheckStartsWith",0,oS,"$ZodCheckStringFormat",0,o_,"$ZodCheckUpperCase",0,ow],55605);class oA{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let t=e.split("\n").filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length));for(let e of t.map(e=>e.slice(n)).map(e=>" ".repeat(2*this.indent)+e))this.content.push(e)}compile(){return Function(...this?.args,[...(this?.content??[""]).map(e=>` ${e}`)].join("\n"))}}e.s(["Doc",0,oA],98530);let oC={major:4,minor:4,patch:3};e.s(["version",0,oC],98477);let oP=eU("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=oC;let r=[...e._zod.def.checks??[]];for(let t of(e._zod.traits.has("$ZodCheck")&&r.unshift(e),r))for(let n of t._zod.onattach)n(e);if(0===r.length)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r,i=ta(e);for(let a of t){if(a._zod.def.when){if(to(e)||!a._zod.def.when(e))continue}else if(i)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new eD;if(r||o instanceof Promise)r=(r??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(i||(i=ta(e,t)))});else{if(e.issues.length===t)continue;i||(i=ta(e,t))}}return r?r.then(()=>e):e},n=(n,i,a)=>{if(ta(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(!1===a.async)throw new eD;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>
18{if(a.skipChecks)return e._zod.parse(i,a);if("backward"===a.direction){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(!1===a.async)throw new eD;return o.then(e=>t(e,r,a))}return t(o,r,a)}}eG(e,"~standard",()=>({validate:t=>{try{let n=tT(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch(n){return tz(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:"zod",version:1}))}),oN=eU("$ZodString",(e,t)=>{oP.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??aX(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch(e){}return"string"==typeof n.value||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),oU=eU("$ZodStringFormat",(e,t)=>{o_.init(e,t),oN.init(e,t)}),oZ=eU("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=aT),oU.init(e,t)}),oD=eU("$ZodUUID",(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===e)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=aj(e))}else t.pattern??(t.pattern=aj());oU.init(e,t)}),oM=eU("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=aP),oU.init(e,t)}),oR=eU("$ZodURL",(e,t)=>{oU.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===aV.source&&!/^https?:\/\//i.test(r))return void n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch(r){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),oL=eU("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=aU()),oU.init(e,t)}),oF=eU("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=aE),oU.init(e,t)}),oB=eU("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=ak),oU.init(e,t)}),oV=eU("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=a$),oU.init(e,t)}),oJ=eU("$ZodULID",(e,t)=>{t.pattern??(t.pattern=aw),oU.init(e,t)}),oq=eU("$ZodXID",(e,t)=>{t.pattern??(t.pattern=aI),oU.init(e,t)}),oW=eU("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=aS),oU.init(e,t)}),oH=eU("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=aG(t)),oU.init(e,t)}),oK=eU("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=aW),oU.init(e,t)}),oG=eU("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=aK(t)),oU.init(e,t)}),oX=eU("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=aO),oU.init(e,t)}),oY=eU("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=aZ),oU.init(e,t),e._zod.bag.format="ipv4"}),oQ=eU("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=aD),oU.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),o0=eU("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=aM(t.delimiter)),oU.init(e,t),e._zod.bag.format="mac"}),o1=eU("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=aR),oU.init(e,t)}),o4=eU("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=aL),oU.init(e,t),e._zod.check=n=>{let r=n.value.split("/");try{if(2!==r.length)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function o6(e){if(""===e)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}let o2=eU("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=aF),oU.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{o6(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function o9(e){if(!aB.test(e))return!1;let t=e.replace(/[-_]/g,e=>"-"===e?"+":"/");return o6(t.padEnd(4*Math.ceil(t.length/4),"="))}let o5=eU("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=aB),oU.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{o9(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),o3=eU("$ZodE164",(e,t)=>{t.pattern??(t.pattern=aJ),oU.init(e,t)});function o8(e,t=null){try{let n=e.split(".");if(3!==n.length)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));
18if("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))return!1;return!0}catch{return!1}}let o7=eU("$ZodJWT",(e,t)=>{oU.init(e,t),e._zod.check=n=>{o8(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),se=eU("$ZodCustomStringFormat",(e,t)=>{oU.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort})}}),st=eU("$ZodNumber",(e,t)=>{oP.init(e,t),e._zod.pattern=e._zod.bag.pattern??a0,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch(e){}let i=n.value;if("number"==typeof i&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a="number"==typeof i?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...a?{received:a}:{}}),n}}),sn=eU("$ZodNumberFormat",(e,t)=>{of.init(e,t),st.init(e,t)}),sr=eU("$ZodBoolean",(e,t)=>{oP.init(e,t),e._zod.pattern=a1,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch(e){}let i=n.value;return"boolean"==typeof i||n.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),n}}),si=eU("$ZodBigInt",(e,t)=>{oP.init(e,t),e._zod.pattern=aY,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch(e){}return"bigint"==typeof n.value||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),sa=eU("$ZodBigIntFormat",(e,t)=>{om.init(e,t),si.init(e,t)}),so=eU("$ZodSymbol",(e,t)=>{oP.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return"symbol"==typeof r||t.issues.push({expected:"symbol",code:"invalid_type",input:r,inst:e}),t}}),ss=eU("$ZodUndefined",(e,t)=>{oP.init(e,t),e._zod.pattern=a6,e._zod.values=new Set([void 0]),e._zod.parse=(t,n)=>{let r=t.value;return void 0===r||t.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:e}),t}}),sl=eU("$ZodNull",(e,t)=>{oP.init(e,t),e._zod.pattern=a4,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return null===r||t.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),t}}),su=eU("$ZodAny",(e,t)=>{oP.init(e,t),e._zod.parse=e=>e}),sc=eU("$ZodUnknown",(e,t)=>{oP.init(e,t),e._zod.parse=e=>e}),sd=eU("$ZodNever",(e,t)=>{oP.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)}),sp=eU("$ZodVoid",(e,t)=>{oP.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return void 0===r||t.issues.push({expected:"void",code:"invalid_type",input:r,inst:e}),t}}),sf=eU("$ZodDate",(e,t)=>{oP.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch(e){}let i=n.value,a=i instanceof Date;return a&&!Number.isNaN(i.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:i,...a?{received:"Invalid Date"}:{},inst:e}),n}});function sm(e,t,n){e.issues.length&&t.issues.push(...ts(n,e.issues)),t.value[n]=e.value}let sh=eU("$ZodArray",(e,t)=>{oP.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let o=i[e],s=t.element._zod.run({value:o,issues:[]},r);s instanceof Promise?a.push(s.then(t=>sm(t,n,e))):sm(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function sg(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...ts(n,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}void 0===e.value?o&&(t.value[n]=void 0):t.value[n]=e.value}function sv(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=tn(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function sy(e,t,n,r,i,a){let o=[],s=i.keySet,l=i.catchall._zod,u=l.def.type,c="optional"===l.optin,d="optional"===l.optout;for(let i in t){if("__proto__"===i||s.has(i))continue;if("never"===u){o.push(i);continue}let a=l.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>sg(e,n,i,t,c,d))):sg(a,n,i,t,c,d)}return(o.length&&n.issues.push({code:"unrecognized_keys",keys:o,input:t,inst:a}),e.length)?Promise.all(e).then(()=>n):n}let sb=eU("$ZodObject",(e,t)=>{let n;oP.init(e,t);let r=Object.getOwnPropertyDescriptor(t,"shape");if(!r?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let n={...e};return Object.defineProperty(t,"shape",{value:n}),n}})}let i=eJ(()=>sv(t));eG(e._zod,"propValues",()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values)for(let e of(n[t]??(n[t]=new Set),r.values))n[t].add(e)}return n});let a=t.catchall;e._zod.parse=(t,r)=>{n??(n=i.value);let o=t.value;if(!e4(o))return t.issues.push({expected:"object",code:"invalid_type",input:o,inst:e}),t;t.value={};let s=[],l=n.shape;for(let e of n.keys){let n=l[e],i="optional"===n._zod.optin,a="optional"===n._zod.optout,u=n._zod.run({value:o[e],issues:[]},r);u instanceof Promise?s.push(u.then(n=>sg(n,t,e,o,i,a))):sg(u,t,e,o,i,a)}return a?sy(s,o,t,r,i.value,e):s.length?Promise.all(s).then(()=>t):t}}),sx=eU("$ZodObjectJIT",(e,t)=>{let n,r;sb.init(e,t);let i=e._zod.parse,a=eJ(()=>sv(t)),o=!eR.jitless,s=o&&e6.value,l=t.catchall;e._zod.parse=(u,c)=>{r??(r=a.value);let d=u.value;return e4(d)?o&&s&&c?.async===!1&&!0!==c.jitless?(n||(n=(e=>{let t=new oA(["shape","payload","ctx"]),n=a.value,r=e=>{let t=eQ(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write("const input = payload.value;");let i=Object.create(null),o=0;for(let e of n.keys)i[e]=`key_${o++}`;for(let a of(t.write("const newResult = {};"),n.keys)){let n=i[a],o=eQ(a),s=e[a],l=s?._zod?.optin==="optional",u=s?._zod?.optout==="optional";t.write(`const ${n} = ${r(a)};`),l&&u?t.write(` 19 if (${n}.issues.length) { 20 if (${o} in input) { 21 payload.issues = payload.issues.concat(${n}.issues.map(iss => ({ 22 ...iss, 23 path: iss.path ? [${o}, ...iss.path] : [${o}] 24 }))); 25 } 26 } 27 28 if (${n}.value === undefined) { 29 if (${o} in input) { 30 newResult[${o}] = undefined; 31 } 32 } else { 33 newResult[${o}] = ${n}.value; 34 } 35 36 `):l?t.write(` 37 if (${n}.issues.length) { 38 payload.issues = payload.issues.concat(${n}.issues.map(iss => ({ 39 ...iss, 40 path: iss.path ? [${o}, ...iss.path] : [${o}] 41 }))); 42 } 43 44 if (${n}.value === undefined) { 45 if (${o} in input) { 46 newResult[${o}] = undefined; 47 } 48 } else { 49 newResult[${o}] = ${n}.value; 50 } 51 52 `):t.write(` 53 const ${n}_present = ${o} in input; 54 if (${n}.issues.length) { 55 payload.issues = payload.issues.concat(${n}.issues.map(iss => ({ 56 ...iss, 57 path: iss.path ? [${o}, ...iss.path] : [${o}] 58 }))); 59 } 60 if (!${n}_present && !${n}.issues.length) { 61 payload.issues.push({
62 code: "invalid_type", 63 expected: "nonoptional", 64 input: undefined, 65 path: [${o}] 66 }); 67 } 68 69 if (${n}_present) { 70 if (${n}.value === undefined) { 71 newResult[${o}] = undefined; 72 } else { 73 newResult[${o}] = ${n}.value; 74 } 75 } 76 77 `)}t.write("payload.value = newResult;"),t.write("return payload;");let s=t.compile();return(t,n)=>s(e,t,n)})(t.shape)),u=n(u,c),l)?sy([],d,u,c,r,e):u:i(u,c):(u.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),u)}});function s_(e,t,n,r){for(let n of e)if(0===n.issues.length)return t.value=n.value,t;let i=e.filter(e=>!ta(e));return 1===i.length?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>tu(e,r,eL())))}),t)}let sk=eU("$ZodUnion",(e,t)=>{oP.init(e,t),eG(e._zod,"optin",()=>t.options.some(e=>"optional"===e._zod.optin)?"optional":void 0),eG(e._zod,"optout",()=>t.options.some(e=>"optional"===e._zod.optout)?"optional":void 0),eG(e._zod,"values",()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),eG(e._zod,"pattern",()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>eW(e.source)).join("|")})$`)}});let n=1===t.options.length?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(0===t.issues.length)return t;o.push(t)}}return a?Promise.all(o).then(t=>s_(t,r,e,i)):s_(o,r,e,i)}});function s$(e,t,n,r){let i=e.filter(e=>0===e.issues.length);return 1===i.length?t.value=i[0].value:0===i.length?t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>tu(e,r,eL())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1}),t}let sw=eU("$ZodXor",(e,t)=>{sk.init(e,t),t.inclusive=!1;let n=1===t.options.length?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);t instanceof Promise?(o.push(t),a=!0):o.push(t)}return a?Promise.all(o).then(t=>s$(t,r,e,i)):s$(o,r,e,i)}}),sI=eU("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,sk.init(e,t);let n=e._zod.parse;eG(e._zod,"propValues",()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||0===Object.keys(r).length)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r))for(let r of(e[t]||(e[t]=new Set),n))e[t].add(r)}return e});let r=eJ(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||0===e.size)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!e4(o))return i.issues.push({code:"invalid_type",expected:"object",input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback||"backward"===a.direction?n(i,a):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(r.value.keys()),input:o,path:[t.discriminator],inst:e}),i)}}),sS=eU("$ZodIntersection",(e,t)=>{oP.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>sE(e,t,n)):sE(e,i,a)}});function sE(e,t,n){let r,i=new Map;for(let n of t.issues)if("unrecognized_keys"===n.code)for(let e of(r??(r=n),n.keys))i.has(e)||i.set(e,{}),i.get(e).l=!0;else e.issues.push(n);for(let t of n.issues)if("unrecognized_keys"===t.code)for(let e of t.keys)i.has(e)||i.set(e,{}),i.get(e).r=!0;else e.issues.push(t);let a=[...i].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&r&&e.issues.push({...r,keys:a}),ta(e))return e;let o=function e(t,n){if(t===n||t instanceof Date&&n instanceof Date&&+t==+n)return{valid:!0,data:t};if(e2(t)&&e2(n)){let r=Object.keys(n),i=Object.keys(t).filter(e=>-1!==r.indexOf(e)),a={...t,...n};for(let r of i){let i=e(t[r],n[r]);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};a[r]=i.data}return{valid:!0,data:a}}if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let i=0;i<t.length;i++){let a=e(t[i],n[i]);
77if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}let sO=eU("$ZodTuple",(e,t)=>{oP.init(e,t);let n=t.items;e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),r;r.value=[];let o=[],s=sT(n,"optin"),l=sT(n,"optout");if(!t.rest){if(a.length<s)return r.issues.push({code:"too_small",minimum:s,inclusive:!0,input:a,inst:e,origin:"array"}),r;a.length>n.length&&r.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:a,inst:e,origin:"array"})}let u=Array(n.length);for(let e=0;e<n.length;e++){let t=n[e]._zod.run({value:a[e],issues:[]},i);t instanceof Promise?o.push(t.then(t=>{u[e]=t})):u[e]=t}if(t.rest){let e=n.length-1;for(let s of a.slice(n.length)){e++;let n=t.rest._zod.run({value:s,issues:[]},i);n instanceof Promise?o.push(n.then(t=>sj(t,r,e))):sj(n,r,e)}}return o.length?Promise.all(o).then(()=>sz(u,r,n,a,l)):sz(u,r,n,a,l)}});function sT(e,t){for(let n=e.length-1;n>=0;n--)if("optional"!==e[n]._zod[t])return n+1;return 0}function sj(e,t,n){e.issues.length&&t.issues.push(...ts(n,e.issues)),t.value[n]=e.value}function sz(e,t,n,r,i){for(let a=0;a<n.length;a++){let n=e[a],o=a<r.length;if(n.issues.length){if(!o&&a>=i){t.value.length=a;break}t.issues.push(...ts(a,n.issues))}t.value[a]=n.value}for(let e=t.value.length-1;e>=r.length;e--)if("optional"===n[e]._zod.optout&&void 0===t.value[e])t.value.length=e;else break;return t}let sA=eU("$ZodRecord",(e,t)=>{oP.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!e2(i))return n.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){let s;n.value={};let l=new Set;for(let s of o)if("string"==typeof s||"number"==typeof s||"symbol"==typeof s){l.add("number"==typeof s?s.toString():s);let o=t.keyType._zod.run({value:s,issues:[]},r);if(o instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(o.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:o.issues.map(e=>tu(e,r,eL())),input:s,path:[s],inst:e});continue}let u=o.value,c=t.valueType._zod.run({value:i[s],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...ts(s,e.issues)),n.value[u]=e.value})):(c.issues.length&&n.issues.push(...ts(s,c.issues)),n.value[u]=c.value)}for(let e in i)l.has(e)||(s=s??[]).push(e);s&&s.length>0&&n.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:s})}else for(let o of(n.value={},Reflect.ownKeys(i))){if("__proto__"===o||!Object.prototype.propertyIsEnumerable.call(i,o))continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error("Async schemas not supported in object keys currently");if("string"==typeof o&&a0.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error("Async schemas not supported in object keys currently");0===e.issues.length&&(s=e)}if(s.issues.length){"loose"===t.mode?n.value[o]=i[o]:n.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(e=>tu(e,r,eL())),input:o,path:[o],inst:e});continue}let l=t.valueType._zod.run({value:i[o],issues:[]},r);l instanceof Promise?a.push(l.then(e=>{e.issues.length&&n.issues.push(...ts(o,e.issues)),n.value[s.value]=e.value})):(l.issues.length&&n.issues.push(...ts(o,l.issues)),n.value[s.value]=l.value)}return a.length?Promise.all(a).then(()=>n):n}}),sC=eU("$ZodMap",(e,t)=>{oP.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:i,inst:e}),n;let a=[];for(let[o,s]of(n.value=new Map,i)){let l=t.keyType._zod.run({value:o,issues:[]},r),u=t.valueType._zod.run({value:s,issues:[]},r);l instanceof Promise||u instanceof Promise?a.push(Promise.all([l,u]).then(([t,a])=>{sP(t,a,n,o,i,e,r)})):sP(l,u,n,o,i,e,r)}return a.length?Promise.all(a).then(()=>n):n}});function sP(e,t,n,r,i,a,o){e.issues.length&&(e5.has(typeof r)?n.issues.push(...ts(r,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:i,inst:a,issues:e.issues.map(e=>tu(e,o,eL()))})),t.issues.length&&(e5.has(typeof r)?n.issues.push(...ts(r,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:i,inst:a,key:r,issues:t.issues.map(e=>tu(e,o,eL()))})),n.value.set(e.value,t.value)}let sN=eU("$ZodSet",(e,t)=>{oP.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Set))return n.issues.push({input:i,inst:e,expected:"set",code:"invalid_type"}),n;let a=[];for(let e of(n.value=new Set,i)){let i=t.valueType._zod.run({value:e,issues:[]},r);i instanceof Promise?a.push(i.then(e=>sU(e,n))):sU(i,n)}return a.length?Promise.all(a).then(()=>n):n}});function sU(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}let sZ=eU("$ZodEnum",(e,t)=>{oP.init(e,t);let n=eF(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>e5.has(typeof e)).map(e=>"string"==typeof e?e8(e):e.toString()).join("|")})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:"invalid_value",values:n,input:a,inst:e}),t}}),sD=eU("$ZodLiteral",(e,t)=>{if(oP.init(e,t),0===t.values.length)throw Error("Cannot create literal schema with no valid values");let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>"string"==typeof e?e8(e):e?e8(e.toString()):String(e)).join("|")})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:"invalid_value",values:t.values,input:a,inst:e}),r}}),sM=eU("$ZodFile",(e,t)=>{oP.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r instanceof File||t.issues.push({expected:"file",code:"invalid_type",input:r,inst:e}),t}}),sR=eU("$ZodTransform",(e,t)=>{oP.init(e,t),e._zod.optin="optional",e._zod.parse=(n,r)=>{if("backward"===r.direction)throw new eM(e.constructor.name);
77let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new eD;return n.value=i,n.fallback=!0,n}});function sL(e,t){return void 0===t&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}let sF=eU("$ZodOptional",(e,t)=>{oP.init(e,t),e._zod.optin="optional",e._zod.optout="optional",eG(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),eG(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${eW(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if("optional"===t.innerType._zod.optin){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>sL(e,r)):sL(i,r)}return void 0===e.value?e:t.innerType._zod.run(e,n)}}),sB=eU("$ZodExactOptional",(e,t)=>{sF.init(e,t),eG(e._zod,"values",()=>t.innerType._zod.values),eG(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),sV=eU("$ZodNullable",(e,t)=>{oP.init(e,t),eG(e._zod,"optin",()=>t.innerType._zod.optin),eG(e._zod,"optout",()=>t.innerType._zod.optout),eG(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${eW(e.source)}|null)$`):void 0}),eG(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>null===e.value?e:t.innerType._zod.run(e,n)}),sJ=eU("$ZodDefault",(e,t)=>{oP.init(e,t),e._zod.optin="optional",eG(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if("backward"===n.direction)return t.innerType._zod.run(e,n);if(void 0===e.value)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>sq(e,t)):sq(r,t)}});function sq(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}let sW=eU("$ZodPrefault",(e,t)=>{oP.init(e,t),e._zod.optin="optional",eG(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,n)=>("backward"===n.direction||void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),sH=eU("$ZodNonOptional",(e,t)=>{oP.init(e,t),eG(e._zod,"values",()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>void 0!==e)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>sK(t,e)):sK(i,e)}});function sK(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}let sG=eU("$ZodSuccess",(e,t)=>{oP.init(e,t),e._zod.parse=(e,n)=>{if("backward"===n.direction)throw new eM("ZodSuccess");let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>(e.value=0===t.issues.length,e)):(e.value=0===r.issues.length,e)}}),sX=eU("$ZodCatch",(e,t)=>{oP.init(e,t),e._zod.optin="optional",eG(e._zod,"optout",()=>t.innerType._zod.optout),eG(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if("backward"===n.direction)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>tu(e,n,eL()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>tu(e,n,eL()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),sY=eU("$ZodNaN",(e,t)=>{oP.init(e,t),e._zod.parse=(t,n)=>("number"==typeof t.value&&Number.isNaN(t.value)||t.issues.push({input:t.value,inst:e,expected:"nan",code:"invalid_type"}),t)}),sQ=eU("$ZodPipe",(e,t)=>{oP.init(e,t),eG(e._zod,"values",()=>t.in._zod.values),eG(e._zod,"optin",()=>t.in._zod.optin),eG(e._zod,"optout",()=>t.out._zod.optout),eG(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if("backward"===n.direction){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>s0(e,t.in,n)):s0(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>s0(e,t.out,n)):s0(r,t.out,n)}});function s0(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}let s1=eU("$ZodCodec",(e,t)=>{oP.init(e,t),eG(e._zod,"values",()=>t.in._zod.values),eG(e._zod,"optin",()=>t.in._zod.optin),eG(e._zod,"optout",()=>t.out._zod.optout),eG(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if("forward"===(n.direction||"forward")){let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>s4(e,t,n)):s4(r,t,n)}{let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>s4(e,t,n)):s4(r,t,n)}}});function s4(e,t,n){if(e.issues.length)return e.aborted=!0,e;if("forward"===(n.direction||"forward")){let r=t.transform(e.value,e);return r instanceof Promise?r.then(r=>s6(e,r,t.out,n)):s6(e,r,t.out,n)}{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(r=>s6(e,r,t.in,n)):s6(e,r,t.in,n)}}function s6(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}let s2=eU("$ZodPreprocess",(e,t)=>{sQ.init(e,t)}),s9=eU("$ZodReadonly",(e,t)=>{oP.init(e,t),eG(e._zod,"propValues",()=>t.innerType._zod.propValues),eG(e._zod,"values",()=>t.innerType._zod.values),eG(e._zod,"optin",()=>t.innerType?._zod?.optin),eG(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if("backward"===n.direction)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(s5):s5(r)}});function s5(e){return e.value=Object.freeze(e.value),e}let s3=eU("$ZodTemplateLiteral",(e,t)=>{oP.init(e,t);let n=[];for(let e of t.parts)if("object"==typeof e&&null!==e){if(!e._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);let t=e._zod.pattern instanceof RegExp?e._zod.pattern.source:e._zod.pattern;if(!t)throw Error(`Invalid template literal part: ${e._zod.traits}`);let r=+!!t.startsWith("^"),i=t.endsWith("$")?t.length-1:t.length;n.push(t.slice(r,i))}else if(null===e||e3.has(typeof e))n.push(e8(`${e}`));else throw Error(`Invalid template literal part: ${e}`);e._zod.pattern=RegExp(`^${n.join("")}$`),e._zod.parse=(n,r)=>("string"!=typeof n.value?n.issues.push({input:n.value,inst:e,expected:"string",code:"invalid_type"}):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source})),n)}),s8=eU("$ZodFunction",(e,t)=>(oP.init(e,t),e._def=t,e._zod.def=t,e.implement=t=>{if("function"!=typeof t)throw Error("implement() must be called with a function");return function(...n){let r=Reflect.apply(t,this,e._def.input?tI(e._def.input,n):n);return e._def.output?tI(e._def.output,r):r}},e.implementAsync=t=>{if("function"!=typeof t)throw Error("implementAsync() must be called with a function");return async function(...n){let r=e._def.input?await tE(e._def.input,n):n,i=await Reflect.apply(t,this,r);return e._def.output?await tE(e._def.output,i):i}},e._zod.parse=(t,n)=>("function"!=typeof t.value?t.issues.push({code:"invalid_type",expected:"function",input:t.value,inst:e}):e._def.output&&"promise"===e._def.output._zod.def.type?t.value=e.implementAsync(t.value):t.value=e.implement(t.value),t),e.input=(...t)=>{let n=e.constructor;return new n(Array.isArray(t[0])?{type:"function",input:new sO({type:"tuple",items:t[0],rest:t[1]}),output:e._def.output}:{type:"function",input:t[0],output:e._def.output})},e.output=t=>new e.constructor({type:"function",input:e._def.input,output:t}),e)),s7=eU("$ZodPromise",(e,t)=>{oP.init(e,t),e._zod.parse=(e,n)=>Promise.resolve(e.value).then(e=>t.innerType._zod.run({value:e,issues:[]},n))}),le=eU("$ZodLazy",(e,t)=>{oP.init(e,t),eG(e._zod,"innerType",()=>(t._cachedInner||(t._cachedInner=t.getter()),t._cachedInner)),eG(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),eG(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),eG(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),eG(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),lt=eU("$ZodCustom",(e,t)=>{ol.init(e,t),oP.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>ln(t,n,r,e));ln(i,n,r,e)}});function ln(e,t,n,r){if(!e){let e={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(tf(e))}}e.s(["$ZodAny",0,su,"$ZodArray",0,sh,"$ZodBase64",0,o2,"$ZodBase64URL",0,o5,"$ZodBigInt",0,si,"$ZodBigIntFormat",0,sa,"$ZodBoolean",0,sr,"$ZodCIDRv4",0,o1,"$ZodCIDRv6",0,o4,"$ZodCUID",0,oB,"$ZodCUID2",0,oV,"$ZodCatch",0,sX,"$ZodCodec",0,s1,"$ZodCustom",0,lt,"$ZodCustomStringFormat",0,se,"$ZodDate",0,sf,"$ZodDefault",0,sJ,"$ZodDiscriminatedUnion",0,sI,"$ZodE164",0,o3,"$ZodEmail",0,oM,"$ZodEmoji",0,oL,"$ZodEnum",0,sZ,"$ZodExactOptional",0,sB,"$ZodFile",0,sM,"$ZodFunction",0,s8,"$ZodGUID",0,oZ,"$ZodIPv4",0,oY,"$ZodIPv6",0,oQ,"$ZodISODate",0,oK,"$ZodISODateTime",0,oH,"$ZodISODuration",0,oX,"$ZodISOTime",0,oG,"$ZodIntersection",0,sS,"$ZodJWT",0,o7,"$ZodKSUID",0,oW,"$ZodLazy",0,le,"$ZodLiteral",0,sD,"$ZodMAC",0,o0,"$ZodMap",0,sC,"$ZodNaN",0,sY,"$ZodNanoID",0,oF,"$ZodNever",0,sd,"$ZodNonOptional",0,sH,"$ZodNull",0,sl,"$ZodNullable",0,sV,"$ZodNumber",0,st,"$ZodNumberFormat",0,sn,"$ZodObject",0,sb,"$ZodObjectJIT",0,sx,"$ZodOptional",0,sF,"$ZodPipe",0,sQ,"$ZodPrefault",0,sW,"$ZodPreprocess",0,s2,"$ZodPromise",0,s7,"$ZodReadonly",0,s9,"$ZodRecord",0,sA,"$ZodSet",0,sN,"$ZodString",0,oN,"$ZodStringFormat",0,oU,"$ZodSuccess",0,sG,"$ZodSymbol",0,so,"$ZodTemplateLiteral",0,s3,"$ZodTransform",0,sR,"$ZodTuple",0,sO,"$ZodT
77ype",0,oP,"$ZodULID",0,oJ,"$ZodURL",0,oR,"$ZodUUID",0,oD,"$ZodUndefined",0,ss,"$ZodUnion",0,sk,"$ZodUnknown",0,sc,"$ZodVoid",0,sp,"$ZodXID",0,oq,"$ZodXor",0,sw,"isValidBase64",0,o6,"isValidBase64URL",0,o9,"isValidJWT",0,o8],76094),e.i(76094),e.s(["$ZodAny",0,su,"$ZodArray",0,sh,"$ZodBase64",0,o2,"$ZodBase64URL",0,o5,"$ZodBigInt",0,si,"$ZodBigIntFormat",0,sa,"$ZodBoolean",0,sr,"$ZodCIDRv4",0,o1,"$ZodCIDRv6",0,o4,"$ZodCUID",0,oB,"$ZodCUID2",0,oV,"$ZodCatch",0,sX,"$ZodCodec",0,s1,"$ZodCustom",0,lt,"$ZodCustomStringFormat",0,se,"$ZodDate",0,sf,"$ZodDefault",0,sJ,"$ZodDiscriminatedUnion",0,sI,"$ZodE164",0,o3,"$ZodEmail",0,oM,"$ZodEmoji",0,oL,"$ZodEnum",0,sZ,"$ZodExactOptional",0,sB,"$ZodFile",0,sM,"$ZodFunction",0,s8,"$ZodGUID",0,oZ,"$ZodIPv4",0,oY,"$ZodIPv6",0,oQ,"$ZodISODate",0,oK,"$ZodISODateTime",0,oH,"$ZodISODuration",0,oX,"$ZodISOTime",0,oG,"$ZodIntersection",0,sS,"$ZodJWT",0,o7,"$ZodKSUID",0,oW,"$ZodLazy",0,le,"$ZodLiteral",0,sD,"$ZodMAC",0,o0,"$ZodMap",0,sC,"$ZodNaN",0,sY,"$ZodNanoID",0,oF,"$ZodNever",0,sd,"$ZodNonOptional",0,sH,"$ZodNull",0,sl,"$ZodNullable",0,sV,"$ZodNumber",0,st,"$ZodNumberFormat",0,sn,"$ZodObject",0,sb,"$ZodObjectJIT",0,sx,"$ZodOptional",0,sF,"$ZodPipe",0,sQ,"$ZodPrefault",0,sW,"$ZodPreprocess",0,s2,"$ZodPromise",0,s7,"$ZodReadonly",0,s9,"$ZodRecord",0,sA,"$ZodSet",0,sN,"$ZodString",0,oN,"$ZodStringFormat",0,oU,"$ZodSuccess",0,sG,"$ZodSymbol",0,so,"$ZodTemplateLiteral",0,s3,"$ZodTransform",0,sR,"$ZodTuple",0,sO,"$ZodType",0,oP,"$ZodULID",0,oJ,"$ZodURL",0,oR,"$ZodUUID",0,oD,"$ZodUndefined",0,ss,"$ZodUnion",0,sk,"$ZodUnknown",0,sc,"$ZodVoid",0,sp,"$ZodXID",0,oq,"$ZodXor",0,sw,"clone",0,e7,"isValidBase64",0,o6,"isValidBase64URL",0,o9,"isValidJWT",0,o8],32952),e.i(32952),e.i(55605),e.i(98477);var lr=e.i(22143),li=e.i(82358);function la(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:1===a?t:a>=2&&a<=4?n:r}function lo(e,t,n){return 1===Math.abs(e)?t:n}function ls(e){if(!e)return"";let t=e[e.length-1];return e+(["Õ¡","Õ¥","Õ¨","Õ«","Õ¸","Õ¸Ö","Ö
"].includes(t)?"Õ¶":"Õ¨")}function ll(){let e,t,n;return{localeError:(e={string:{unit:"áá½á¢áááá",verb:"áá½ááá¶á"},file:{unit:"áá",verb:"áá½ááá¶á"},array:{unit:"áá¶áá»",verb:"áá½ááá¶á"},set:{unit:"áá¶áá»",verb:"áá½ááá¶á"}},t={regex:"áá·áááááááááá
á¼á",email:"á¢á¶áááááá¶áá¢áá¸ááá",url:"URL",emoji:"ááááá¶á¢á¶áááááá",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"áá¶áááá·á
áááá áá·ááááá ISO",date:"áá¶áááá·á
áááá ISO",time:"áááá ISO",duration:"áááááá ISO",ipv4:"á¢á¶áááááá¶á IPv4",ipv6:"á¢á¶áááááá¶á IPv6",cidrv4:"áááá¢á¶áááááá¶á IPv4",cidrv6:"áááá¢á¶áááááá¶á IPv6",base64:"ááááá¢ááááá¢áá·áá¼á base64",base64url:"ááááá¢ááááá¢áá·áá¼á base64url",json_string:"ááááá¢áááá JSON",e164:"ááá E.164",jwt:"JWT",template_literal:"áá·áááááááááá
á¼á"},n={nan:"NaN",number:"ááá",array:"á¢á¶áá (Array)",null:"áááá¶áááááá (null)"},r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`áá·áááááááááá
á¼ááá·ááááá¹ááááá¼áá áááá¼ááá¶á instanceof ${r.expected} ááá»ááááááá½ááá¶á ${i}`;return`áá·áááááááááá
á¼ááá·ááááá¹ááááá¼áá áááá¼ááá¶á ${e} ááá»ááááááá½ááá¶á ${i}`}case"invalid_value":if(1===r.values.length)return`áá·áááááááááá
á¼ááá·ááááá¹ááááá¼áá áááá¼ááá¶á ${tt(r.values[0])}`;return`ááááá¾ááá·ááááá¹ááááá¼áá áááá¼ááá¶áá½ááááá»áá
áááá ${eB(r.values,"|")}`;
77case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`áááááá áááá¼ááá¶á ${r.origin??"ááááá"} ${t} ${r.maximum.toString()} ${n.unit??"áá¶áá»"}`;return`áááááá áááá¼ááá¶á ${r.origin??"ááááá"} ${t} ${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`áá¼á
áááá áááá¼ááá¶á ${r.origin} ${t} ${r.minimum.toString()} ${n.unit}`;return`áá¼á
áááá áááá¼ááá¶á ${r.origin} ${t} ${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`ááááá¢áááááá·ááááá¹ááááá¼áá áááá¼áá
á¶áááááá¾áááá "${r.prefix}"`;if("ends_with"===r.format)return`ááááá¢áááááá·ááááá¹ááááá¼áá áááá¼ááááá
ááááá "${r.suffix}"`;if("includes"===r.format)return`ááááá¢áááááá·ááááá¹ááááá¼áá áááá¼ááá¶á "${r.includes}"`;if("regex"===r.format)return`ááááá¢áááááá·ááááá¹ááááá¼áá áááá¼ááááááá¼áááááá¹áááááááááááá¶áááááá ${r.pattern}`;return`áá·ááááá¹ááááá¼áá ${t[r.format]??r.format}`;case"not_multiple_of":return`ááááá·ááááá¹ááááá¼áá áááá¼ááááá¶áá á»áá»ááá ${r.divisor}`;case"unrecognized_keys":return`áááá¾ááááá·ááááá¶ááá ${eB(r.keys,", ")}`;case"invalid_key":return`áááá·ááááá¹ááááá¼ááá
áááá»á ${r.origin}`;case"invalid_union":default:return"áá·áááááááá·ááááá¹ááááá¼á";case"invalid_element":return`áá·áááááááá·ááááá¹ááááá¼ááá
áááá»á ${r.origin}`}})}}e.s([],43365),e.i(43365);let lu=e=>e.charAt(0).toUpperCase()+e.slice(1);function lc(e){let t=Math.abs(e),n=t%10,r=t%100;return r>=11&&r<=19||0===n?"many":1===n?"one":"few"}function ld(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:1===a?t:a>=2&&a<=4?n:r}function lp(){let e,t,n;return{localeError:(e={string:{unit:"ÑимволÑв",verb:"маÑиме"},file:{unit:"байÑÑв",verb:"маÑиме"},array:{unit:"елеменÑÑв",verb:"маÑиме"},set:{unit:"елеменÑÑв",verb:"маÑиме"}},t={regex:"вÑ
ÑÐ´Ð½Ñ Ð´Ð°Ð½Ñ",email:"адÑеÑа елекÑÑÐ¾Ð½Ð½Ð¾Ñ Ð¿Ð¾ÑÑи",url:"URL",emoji:"емодзÑ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"даÑа Ñа ÑÐ°Ñ ISO",date:"даÑа ISO",time:"ÑÐ°Ñ ISO",duration:"ÑÑивалÑÑÑÑ ISO",ipv4:"адÑеÑа IPv4",ipv6:"адÑеÑа IPv6",cidrv4:"дÑапазон IPv4",cidrv6:"дÑапазон IPv6",base64:"ÑÑдок Ñ ÐºÐ¾Ð´ÑÐ²Ð°Ð½Ð½Ñ base64",base64url:"ÑÑдок Ñ ÐºÐ¾Ð´ÑÐ²Ð°Ð½Ð½Ñ base64url",json_string:"ÑÑдок JSON",e164:"Ð½Ð¾Ð¼ÐµÑ E.164",jwt:"JWT",template_literal:"вÑ
ÑÐ´Ð½Ñ Ð´Ð°Ð½Ñ"},n={nan:"NaN",number:"ÑиÑло",array:"маÑив"},r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`ÐепÑавилÑÐ½Ñ Ð²Ñ
ÑÐ´Ð½Ñ Ð´Ð°Ð½Ñ: оÑÑкÑÑÑÑÑÑ instanceof ${r.expected}, оÑÑимано ${i}`;return`ÐепÑавилÑÐ½Ñ Ð²Ñ
ÑÐ´Ð½Ñ Ð´Ð°Ð½Ñ: оÑÑкÑÑÑÑÑÑ ${e}, оÑÑимано ${i}`}case"invalid_value":if(1===r.values.length)return`ÐепÑавилÑÐ½Ñ Ð²Ñ
ÑÐ´Ð½Ñ Ð´Ð°Ð½Ñ: оÑÑкÑÑÑÑÑÑ ${tt(r.values[0])}`;return`ÐепÑавилÑна опÑÑÑ: оÑÑкÑÑÑÑÑÑ Ð¾Ð´Ð½Ðµ з ${eB(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`ÐанадÑо велике: оÑÑкÑÑÑÑÑÑ, Ñо ${r.origin??"знаÑеннÑ"} ${n.verb} ${t}${r.maximum.toString()} ${n.unit??"елеменÑÑв"}`;return`ÐанадÑо велике: оÑÑкÑÑÑÑÑÑ, Ñо ${r.origin??"знаÑеннÑ"} бÑде ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`ÐанадÑо мале: оÑÑкÑÑÑÑÑÑ, Ñо ${r.origin} ${n.verb} ${t}${r.minimum.toString()} ${n.unit}`;return`ÐанадÑо мале: оÑÑкÑÑÑÑÑÑ, Ñо ${r.origin} бÑде ${t}${r.minimum.toString()}`}
77case"invalid_format":if("starts_with"===r.format)return`ÐепÑавилÑний ÑÑдок: повинен поÑинаÑиÑÑ Ð· "${r.prefix}"`;if("ends_with"===r.format)return`ÐепÑавилÑний ÑÑдок: повинен закÑнÑÑваÑиÑÑ Ð½Ð° "${r.suffix}"`;if("includes"===r.format)return`ÐепÑавилÑний ÑÑдок: повинен мÑÑÑиÑи "${r.includes}"`;if("regex"===r.format)return`ÐепÑавилÑний ÑÑдок: повинен вÑдповÑдаÑи ÑÐ°Ð±Ð»Ð¾Ð½Ñ ${r.pattern}`;return`ÐепÑавилÑний ${t[r.format]??r.format}`;case"not_multiple_of":return`ÐепÑавилÑне ÑиÑло: повинно бÑÑи кÑаÑним ${r.divisor}`;case"unrecognized_keys":return`ÐеÑозпÑзнаний клÑÑ${r.keys.length>1?"Ñ":""}: ${eB(r.keys,", ")}`;case"invalid_key":return`ÐепÑавилÑний клÑÑ Ñ ${r.origin}`;case"invalid_union":default:return"ÐепÑавилÑÐ½Ñ Ð²Ñ
ÑÐ´Ð½Ñ Ð´Ð°Ð½Ñ";case"invalid_element":return`ÐепÑавилÑне знаÑÐµÐ½Ð½Ñ Ñ ${r.origin}`}})}}e.s(["ar",0,function(){let e,t,n;return{localeError:(e={string:{unit:"ØØ±Ù",verb:"Ø£Ù ÙØÙÙ"},file:{unit:"Ø¨Ø§ÙØª",verb:"Ø£Ù ÙØÙÙ"},array:{unit:"Ø¹ÙØµØ±",verb:"Ø£Ù ÙØÙÙ"},set:{unit:"Ø¹ÙØµØ±",verb:"Ø£Ù ÙØÙÙ"}},t={regex:"Ù
دخÙ",email:"Ø¨Ø±ÙØ¯ Ø¥ÙÙØªØ±ÙÙÙ",url:"رابط",emoji:"Ø¥ÙÙ
ÙØ¬Ù",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ØªØ§Ø±ÙØ® ÙÙÙØª بÙ
Ø¹ÙØ§Ø± ISO",date:"ØªØ§Ø±ÙØ® بÙ
Ø¹ÙØ§Ø± ISO",time:"ÙÙØª بÙ
Ø¹ÙØ§Ø± ISO",duration:"Ù
دة بÙ
Ø¹ÙØ§Ø± ISO",ipv4:"عÙÙØ§Ù IPv4",ipv6:"عÙÙØ§Ù IPv6",cidrv4:"Ù
Ø¯Ù Ø¹ÙØ§ÙÙÙ Ø¨ØµÙØºØ© IPv4",cidrv6:"Ù
Ø¯Ù Ø¹ÙØ§ÙÙÙ Ø¨ØµÙØºØ© IPv6",base64:"ÙÙØµ بترÙ
ÙØ² base64-encoded",base64url:"ÙÙØµ بترÙ
ÙØ² base64url-encoded",json_string:"ÙÙØµ عÙÙ ÙÙØ¦Ø© JSON",e164:"رÙÙ
ÙØ§ØªÙ بÙ
Ø¹ÙØ§Ø± E.164",jwt:"JWT",template_literal:"Ù
دخÙ"},n={nan:"NaN"},r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Ù
Ø¯Ø®ÙØ§Øª ØºÙØ± Ù
ÙØ¨ÙÙØ©: ÙÙØªØ±Ø¶ إدخا٠instanceof ${r.expected}Ø ÙÙÙ٠تÙ
إدخا٠${i}`;return`Ù
Ø¯Ø®ÙØ§Øª ØºÙØ± Ù
ÙØ¨ÙÙØ©: ÙÙØªØ±Ø¶ إدخا٠${e}Ø ÙÙÙ٠تÙ
إدخا٠${i}`}case"invalid_value":if(1===r.values.length)return`Ù
Ø¯Ø®ÙØ§Øª ØºÙØ± Ù
ÙØ¨ÙÙØ©: ÙÙØªØ±Ø¶ إدخا٠${tt(r.values[0])}`;return`Ø§Ø®ØªÙØ§Ø± ØºÙØ± Ù
ÙØ¨ÙÙ: ÙØªÙÙØ¹ Ø§ÙØªÙاء Ø£ØØ¯ ÙØ°Ù Ø§ÙØ®Ùارات: ${eB(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return` Ø£ÙØ¨Ø± Ù
٠اÙÙØ§Ø²Ù
: ÙÙØªØ±Ø¶ أ٠تÙÙÙ ${r.origin??"اÙÙÙÙ
Ø©"} ${t} ${r.maximum.toString()} ${n.unit??"Ø¹ÙØµØ±"}`;return`Ø£ÙØ¨Ø± Ù
٠اÙÙØ§Ø²Ù
: ÙÙØªØ±Ø¶ أ٠تÙÙÙ ${r.origin??"اÙÙÙÙ
Ø©"} ${t} ${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`أصغر Ù
٠اÙÙØ§Ø²Ù
: ÙÙØªØ±Ø¶ ÙÙ ${r.origin} Ø£Ù ÙÙÙÙ ${t} ${r.minimum.toString()} ${n.unit}`;return`أصغر Ù
٠اÙÙØ§Ø²Ù
: ÙÙØªØ±Ø¶ ÙÙ ${r.origin} Ø£Ù ÙÙÙÙ ${t} ${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`ÙÙØµ ØºÙØ± Ù
ÙØ¨ÙÙ: ÙØ¬Ø¨ Ø£Ù ÙØ¨Ø¯Ø£ ب٠"${r.prefix}"`;if("ends_with"===r.format)return`ÙÙØµ ØºÙØ± Ù
ÙØ¨ÙÙ: ÙØ¬Ø¨ Ø£Ù ÙÙØªÙ٠ب٠"${r.suffix}"`;if("includes"===r.format)return`ÙÙØµ ØºÙØ± Ù
ÙØ¨ÙÙ: ÙØ¬Ø¨ Ø£Ù ÙØªØ¶Ù
ÙÙÙ "${r.includes}"`;if("regex"===r.format)return`ÙÙØµ ØºÙØ± Ù
ÙØ¨ÙÙ: ÙØ¬Ø¨ Ø£Ù ÙØ·Ø§Ø¨Ù اÙÙÙ
Ø· ${r.pattern}`;return`${t[r.format]??r.format} ØºÙØ± Ù
ÙØ¨ÙÙ`;case"not_multiple_of":return`رÙÙ
ØºÙØ± Ù
ÙØ¨ÙÙ: ÙØ¬Ø¨ Ø£Ù ÙÙÙÙ Ù
Ù Ù
Ø¶Ø§Ø¹ÙØ§Øª ${r.divisor}`;case"unrecognized_keys":return`Ù
عرÙ${r.keys.length>1?"ات":""} ØºØ±ÙØ¨${r.keys.length>1?"Ø©":""}: ${eB(r.keys,"Ø ")}`;case"invalid_key":return`Ù
Ø¹Ø±Ù ØºÙØ± Ù
ÙØ¨ÙÙ ÙÙ ${r.origin}`;case"invalid_union":default:return"Ù
Ø¯Ø®Ù ØºÙØ± Ù
ÙØ¨ÙÙ";
77case"invalid_element":return`Ù
Ø¯Ø®Ù ØºÙØ± Ù
ÙØ¨ÙÙ ÙÙ ${r.origin}`}})}},"az",0,function(){let e,t,n;return{localeError:(e={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}},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"},n={nan:"NaN"},r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`YanlıŠdÉyÉr: g\xf6zlÉnilÉn instanceof ${r.expected}, daxil olan ${i}`;return`YanlıŠdÉyÉr: g\xf6zlÉnilÉn ${e}, daxil olan ${i}`}case"invalid_value":if(1===r.values.length)return`YanlıŠdÉyÉr: g\xf6zlÉnilÉn ${tt(r.values[0])}`;return`YanlıŠse\xe7im: aÅaÄıdakılardan biri olmalıdır: ${eB(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`\xc7ox b\xf6y\xfck: g\xf6zlÉnilÉn ${r.origin??"dÉyÉr"} ${t}${r.maximum.toString()} ${n.unit??"element"}`;return`\xc7ox b\xf6y\xfck: g\xf6zlÉnilÉn ${r.origin??"dÉyÉr"} ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`\xc7ox ki\xe7ik: g\xf6zlÉnilÉn ${r.origin} ${t}${r.minimum.toString()} ${n.unit}`;return`\xc7ox ki\xe7ik: g\xf6zlÉnilÉn ${r.origin} ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`YanlıŠmÉtn: "${r.prefix}" ilÉ baÅlamalıdır`;if("ends_with"===r.format)return`YanlıŠmÉtn: "${r.suffix}" ilÉ bitmÉlidir`;if("includes"===r.format)return`YanlıŠmÉtn: "${r.includes}" daxil olmalıdır`;if("regex"===r.format)return`YanlıŠmÉtn: ${r.pattern} Åablonuna uyÄun olmalıdır`;return`YanlıŠ${t[r.format]??r.format}`;case"not_multiple_of":return`YanlıŠÉdÉd: ${r.divisor} ilÉ b\xf6l\xfcnÉ bilÉn olmalıdır`;case"unrecognized_keys":return`Tanınmayan a\xe7ar${r.keys.length>1?"lar":""}: ${eB(r.keys,", ")}`;case"invalid_key":return`${r.origin} daxilindÉ yanlıŠa\xe7ar`;case"invalid_union":default:return"YanlıŠdÉyÉr";case"invalid_element":return`${r.origin} daxilindÉ yanlıŠdÉyÉr`}})}},"be",0,function(){let e,t,n;return{localeError:(e={string:{unit:{one:"ÑÑмвал",few:"ÑÑмвалÑ",many:"ÑÑмвалаÑ"},verb:"меÑÑ"},array:{unit:{one:"ÑлеменÑ",few:"ÑлеменÑÑ",many:"ÑлеменÑаÑ"},verb:"меÑÑ"},set:{unit:{one:"ÑлеменÑ",few:"ÑлеменÑÑ",many:"ÑлеменÑаÑ"},verb:"меÑÑ"},file:{unit:{one:"байÑ",few:"байÑÑ",many:"байÑаÑ"},verb:"меÑÑ"}},t={regex:"Ñвод",email:"email адÑаÑ",url:"URL",emoji:"ÑмодзÑ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO даÑа Ñ ÑаÑ",date:"ISO даÑа",time:"ISO ÑаÑ",duration:"ISO пÑаÑÑглаÑÑÑ",ipv4:"IPv4 адÑаÑ",ipv6:"IPv6 адÑаÑ",cidrv4:"IPv4 дÑÑпазон",cidrv6:"IPv6 дÑÑпазон",base64:"Ñадок Ñ ÑаÑмаÑе base64",base64url:"Ñадок Ñ ÑаÑмаÑе base64url",json_string:"JSON Ñадок",e164:"нÑÐ¼Ð°Ñ E.164",jwt:"JWT",template_literal:"Ñвод"},n={nan:"NaN",number:"лÑк",array:"маÑÑÑ"},r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`ÐÑпÑавÑлÑÐ½Ñ Ñвод: ÑакаÑÑÑ instanceof ${r.expected}, аÑÑÑмана ${i}`;return`ÐÑпÑавÑлÑÐ½Ñ Ñвод: ÑакаÑÑÑ ${e}, аÑÑÑмана ${i}`}case"invalid_value":if(1===r.values.length)return`ÐÑпÑавÑлÑÐ½Ñ Ñвод: ÑакалаÑÑ ${tt(r.values[0])}`;return`ÐÑпÑавÑлÑÐ½Ñ Ð²Ð°ÑÑÑнÑ: ÑакаÑÑÑ Ð°Ð´Ð·Ñн з ${eB(r.values,"|")}`;
77case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n){let e=la(Number(r.maximum),n.unit.one,n.unit.few,n.unit.many);return`ÐанадÑа вÑлÑкÑ: ÑакалаÑÑ, ÑÑо ${r.origin??"знаÑÑнне"} павÑнна ${n.verb} ${t}${r.maximum.toString()} ${e}`}return`ÐанадÑа вÑлÑкÑ: ÑакалаÑÑ, ÑÑо ${r.origin??"знаÑÑнне"} павÑнна бÑÑÑ ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n){let e=la(Number(r.minimum),n.unit.one,n.unit.few,n.unit.many);return`ÐанадÑа малÑ: ÑакалаÑÑ, ÑÑо ${r.origin} павÑнна ${n.verb} ${t}${r.minimum.toString()} ${e}`}return`ÐанадÑа малÑ: ÑакалаÑÑ, ÑÑо ${r.origin} павÑнна бÑÑÑ ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`ÐÑпÑавÑлÑÐ½Ñ Ñадок: павÑнен паÑÑнаÑÑа з "${r.prefix}"`;if("ends_with"===r.format)return`ÐÑпÑавÑлÑÐ½Ñ Ñадок: павÑнен заканÑваÑÑа на "${r.suffix}"`;if("includes"===r.format)return`ÐÑпÑавÑлÑÐ½Ñ Ñадок: павÑнен змÑÑÑаÑÑ "${r.includes}"`;if("regex"===r.format)return`ÐÑпÑавÑлÑÐ½Ñ Ñадок: павÑнен адпавÑдаÑÑ ÑÐ°Ð±Ð»Ð¾Ð½Ñ ${r.pattern}`;return`ÐÑпÑавÑлÑÐ½Ñ ${t[r.format]??r.format}`;case"not_multiple_of":return`ÐÑпÑавÑлÑÐ½Ñ Ð»Ñк: павÑнен бÑÑÑ ÐºÑаÑнÑм ${r.divisor}`;case"unrecognized_keys":return`ÐеÑаÑÐ¿Ð°Ð·Ð½Ð°Ð½Ñ ${r.keys.length>1?"клÑÑÑ":"клÑÑ"}: ${eB(r.keys,", ")}`;case"invalid_key":return`ÐÑпÑавÑлÑÐ½Ñ ÐºÐ»ÑÑ Ñ ${r.origin}`;case"invalid_union":default:return"ÐÑпÑавÑлÑÐ½Ñ Ñвод";case"invalid_element":return`ÐÑпÑавÑлÑнае знаÑÑнне Ñ ${r.origin}`}})}},"bg",0,function(){let e,t,n;return{localeError:(e={string:{unit:"Ñимвола",verb:"да ÑÑдÑÑжа"},file:{unit:"байÑа",verb:"да ÑÑдÑÑжа"},array:{unit:"елеменÑа",verb:"да ÑÑдÑÑжа"},set:{unit:"елеменÑа",verb:"да ÑÑдÑÑжа"}},t={regex:"вÑ
од",email:"имейл адÑеÑ",url:"URL",emoji:"емоджи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO вÑеме",date:"ISO даÑа",time:"ISO вÑеме",duration:"ISO пÑодÑлжиÑелноÑÑ",ipv4:"IPv4 адÑеÑ",ipv6:"IPv6 адÑеÑ",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"base64-кодиÑан низ",base64url:"base64url-кодиÑан низ",json_string:"JSON низ",e164:"E.164 номеÑ",jwt:"JWT",template_literal:"вÑ
од"},n={nan:"NaN",number:"ÑиÑло",array:"маÑив"},r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Ðевалиден вÑ
од: оÑакван instanceof ${r.expected}, полÑÑен ${i}`;return`Ðевалиден вÑ
од: оÑакван ${e}, полÑÑен ${i}`}case"invalid_value":if(1===r.values.length)return`Ðевалиден вÑ
од: оÑакван ${tt(r.values[0])}`;return`Ðевалидна опÑиÑ: оÑаквано едно Ð¾Ñ ${eB(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`ТвÑÑде голÑмо: оÑаква Ñе ${r.origin??"ÑÑойноÑÑ"} да ÑÑдÑÑжа ${t}${r.maximum.toString()} ${n.unit??"елеменÑа"}`;return`ТвÑÑде голÑмо: оÑаква Ñе ${r.origin??"ÑÑойноÑÑ"} да бÑде ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`ТвÑÑде малко: оÑаква Ñе ${r.origin} да ÑÑдÑÑжа ${t}${r.minimum.toString()} ${n.unit}`;return`ТвÑÑде малко: оÑаква Ñе ${r.origin} да бÑде ${t}${r.minimum.toString()}`}case"invalid_format":{if("starts_with"===r.format)return`Ðевалиден низ: ÑÑÑбва да запоÑва Ñ "${r.prefix}"`;if("ends_with"===r.format)return`Ðевалиден низ: ÑÑÑбва да завÑÑÑва Ñ "${r.suffix}"`;if("includes"===r.format)return`Ðевалиден низ: ÑÑÑбва да вклÑÑва "${r.includes}"`;if("regex"===r.format)return`Ðевалиден низ: ÑÑÑбва да ÑÑвпада Ñ ${r.pattern}`;let e="Ðевалиден";return"emoji"===r.format&&(e="Ðевалидно"),"datetime"===r.format&&(e="Ðевалидно"),"date"===r.format&&(e="Ðевалидна"),"time"===r.format&&(e="Ðевалидно"),"duration"===r.format&&(e="Ðевалидна"),`${e} ${t[r.format]??r.format}`}case"not_multiple_of":return`Ðевалидно ÑиÑло: ÑÑÑбва да бÑде кÑаÑно на ${r.divisor}`;case"unrecognized_keys":return`ÐеÑазпознаÑ${r.keys.length>1?"и":""} клÑÑ${r.keys.length>1?"ове":""}: ${eB(r.keys,", ")}`;
77case"invalid_key":return`Ðевалиден клÑÑ Ð² ${r.origin}`;case"invalid_union":default:return"Ðевалиден вÑ
од";case"invalid_element":return`Ðевалидна ÑÑойноÑÑ Ð² ${r.origin}`}})}},"ca",0,function(){let e,t,n;return{localeError:(e={string:{unit:"carà cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}},t={regex:"entrada",email:"adreça electrònica",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ça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},n={nan:"NaN"},r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Tipus inv\xe0lid: s'esperava instanceof ${r.expected}, s'ha rebut ${i}`;return`Tipus inv\xe0lid: s'esperava ${e}, s'ha rebut ${i}`}case"invalid_value":if(1===r.values.length)return`Valor inv\xe0lid: s'esperava ${tt(r.values[0])}`;return`Opci\xf3 inv\xe0lida: s'esperava una de ${eB(r.values," o ")}`;case"too_big":{let t=r.inclusive?"com a mà xim":"menys de",n=e[r.origin]??null;if(n)return`Massa gran: s'esperava que ${r.origin??"el valor"} contingu\xe9s ${t} ${r.maximum.toString()} ${n.unit??"elements"}`;return`Massa gran: s'esperava que ${r.origin??"el valor"} fos ${t} ${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?"com a mÃnim":"més de",n=e[r.origin]??null;if(n)return`Massa petit: s'esperava que ${r.origin} contingu\xe9s ${t} ${r.minimum.toString()} ${n.unit}`;return`Massa petit: s'esperava que ${r.origin} fos ${t} ${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Format inv\xe0lid: ha de comen\xe7ar amb "${r.prefix}"`;if("ends_with"===r.format)return`Format inv\xe0lid: ha d'acabar amb "${r.suffix}"`;if("includes"===r.format)return`Format inv\xe0lid: ha d'incloure "${r.includes}"`;if("regex"===r.format)return`Format inv\xe0lid: ha de coincidir amb el patr\xf3 ${r.pattern}`;return`Format inv\xe0lid per a ${t[r.format]??r.format}`;case"not_multiple_of":return`N\xfamero inv\xe0lid: ha de ser m\xfaltiple de ${r.divisor}`;case"unrecognized_keys":return`Clau${r.keys.length>1?"s":""} no reconeguda${r.keys.length>1?"s":""}: ${eB(r.keys,", ")}`;case"invalid_key":return`Clau inv\xe0lida a ${r.origin}`;case"invalid_union":default:return"Entrada invà lida";case"invalid_element":return`Element inv\xe0lid a ${r.origin}`}})}},"cs",0,function(){let e,t,n;return{localeError:(e={string:{unit:"znaků",verb:"mÃt"},file:{unit:"bajtů",verb:"mÃt"},array:{unit:"prvků",verb:"mÃt"},set:{unit:"prvků",verb:"mÃt"}},t={regex:"regulárnà výraz",email:"e-mailová 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 Äas ve formátu ISO",date:"datum ve formátu ISO",time:"Äas ve formátu ISO",duration:"doba trvánà ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"ÅetÄzec zakódovaný ve formátu base64",base64url:"ÅetÄzec zakódovaný ve formátu base64url",json_string:"ÅetÄzec ve formátu JSON",e164:"ÄÃslo E.164",jwt:"JWT",template_literal:"vstup"},n={nan:"NaN",number:"ÄÃslo",string:"ÅetÄzec",function:"funkce",array:"pole"},r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Neplatn\xfd vstup: oÄek\xe1v\xe1no instanceof ${r.expected}, obdrženo ${i}`;return`Neplatn\xfd vstup: oÄek\xe1v\xe1no ${e}, obdrženo ${i}`}case"invalid_value":if(1===r.values.length)return`Neplatn\xfd vstup: oÄek\xe1v\xe1no ${tt(r.values[0])}`;return`Neplatn\xe1 možnost: oÄek\xe1v\xe1na jedna z hodnot ${eB(r.values,"|")}`;
77case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Hodnota je pÅ\xedliÅ¡ velk\xe1: ${r.origin??"hodnota"} mus\xed m\xedt ${t}${r.maximum.toString()} ${n.unit??"prvků"}`;return`Hodnota je pÅ\xedliÅ¡ velk\xe1: ${r.origin??"hodnota"} mus\xed b\xfdt ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Hodnota je pÅ\xedliÅ¡ mal\xe1: ${r.origin??"hodnota"} mus\xed m\xedt ${t}${r.minimum.toString()} ${n.unit??"prvků"}`;return`Hodnota je pÅ\xedliÅ¡ mal\xe1: ${r.origin??"hodnota"} mus\xed b\xfdt ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Neplatn\xfd ÅetÄzec: mus\xed zaÄ\xednat na "${r.prefix}"`;if("ends_with"===r.format)return`Neplatn\xfd ÅetÄzec: mus\xed konÄit na "${r.suffix}"`;if("includes"===r.format)return`Neplatn\xfd ÅetÄzec: mus\xed obsahovat "${r.includes}"`;if("regex"===r.format)return`Neplatn\xfd ÅetÄzec: mus\xed odpov\xeddat vzoru ${r.pattern}`;return`Neplatn\xfd form\xe1t ${t[r.format]??r.format}`;case"not_multiple_of":return`Neplatn\xe9 Ä\xedslo: mus\xed b\xfdt n\xe1sobkem ${r.divisor}`;case"unrecognized_keys":return`Nezn\xe1m\xe9 kl\xedÄe: ${eB(r.keys,", ")}`;case"invalid_key":return`Neplatn\xfd kl\xedÄ v ${r.origin}`;case"invalid_union":default:return"Neplatný vstup";case"invalid_element":return`Neplatn\xe1 hodnota v ${r.origin}`}})}},"da",0,function(){let e,t,n;return{localeError:(e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}},t={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslæt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-omrÃ¥de",ipv6:"IPv6-omrÃ¥de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},n={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"},r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Ugyldigt input: forventede instanceof ${r.expected}, fik ${i}`;return`Ugyldigt input: forventede ${e}, fik ${i}`}case"invalid_value":if(1===r.values.length)return`Ugyldig v\xe6rdi: forventede ${tt(r.values[0])}`;return`Ugyldigt valg: forventede en af f\xf8lgende ${eB(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",i=e[r.origin]??null,a=n[r.origin]??r.origin;if(i)return`For stor: forventede ${a??"value"} ${i.verb} ${t} ${r.maximum.toString()} ${i.unit??"elementer"}`;return`For stor: forventede ${a??"value"} havde ${t} ${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",i=e[r.origin]??null,a=n[r.origin]??r.origin;if(i)return`For lille: forventede ${a} ${i.verb} ${t} ${r.minimum.toString()} ${i.unit}`;return`For lille: forventede ${a} havde ${t} ${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Ugyldig streng: skal starte med "${r.prefix}"`;if("ends_with"===r.format)return`Ugyldig streng: skal ende med "${r.suffix}"`;if("includes"===r.format)return`Ugyldig streng: skal indeholde "${r.includes}"`;if("regex"===r.format)return`Ugyldig streng: skal matche m\xf8nsteret ${r.pattern}`;return`Ugyldig ${t[r.format]??r.format}`;case"not_multiple_of":return`Ugyldigt tal: skal v\xe6re deleligt med ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${eB(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xf8gle i ${r.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xe6rdi i ${r.origin}`;default:return"Ugyldigt input"}})}},"de",0,function(){let e,t,n;return{localeError:(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"}},t={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},n={nan:"NaN",number:"Zahl",array:"Array"},r=>
77{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Ung\xfcltige Eingabe: erwartet instanceof ${r.expected}, erhalten ${i}`;return`Ung\xfcltige Eingabe: erwartet ${e}, erhalten ${i}`}case"invalid_value":if(1===r.values.length)return`Ung\xfcltige Eingabe: erwartet ${tt(r.values[0])}`;return`Ung\xfcltige Option: erwartet eine von ${eB(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Zu gro\xdf: erwartet, dass ${r.origin??"Wert"} ${t}${r.maximum.toString()} ${n.unit??"Elemente"} hat`;return`Zu gro\xdf: erwartet, dass ${r.origin??"Wert"} ${t}${r.maximum.toString()} ist`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Zu klein: erwartet, dass ${r.origin} ${t}${r.minimum.toString()} ${n.unit} hat`;return`Zu klein: erwartet, dass ${r.origin} ${t}${r.minimum.toString()} ist`}case"invalid_format":if("starts_with"===r.format)return`Ung\xfcltiger String: muss mit "${r.prefix}" beginnen`;if("ends_with"===r.format)return`Ung\xfcltiger String: muss mit "${r.suffix}" enden`;if("includes"===r.format)return`Ung\xfcltiger String: muss "${r.includes}" enthalten`;if("regex"===r.format)return`Ung\xfcltiger String: muss dem Muster ${r.pattern} entsprechen`;return`Ung\xfcltig: ${t[r.format]??r.format}`;case"not_multiple_of":return`Ung\xfcltige Zahl: muss ein Vielfaches von ${r.divisor} sein`;case"unrecognized_keys":return`${r.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${eB(r.keys,", ")}`;case"invalid_key":return`Ung\xfcltiger Schl\xfcssel in ${r.origin}`;case"invalid_union":default:return"Ungültige Eingabe";case"invalid_element":return`Ung\xfcltiger Wert in ${r.origin}`}})}},"el",0,function(){let e,t,n;return{localeError:(e={string:{unit:"ÏαÏακÏήÏεÏ",verb:"να ÎÏει"},file:{unit:"bytes",verb:"να ÎÏει"},array:{unit:"ÏÏοιÏεία",verb:"να ÎÏει"},set:{unit:"ÏÏοιÏεία",verb:"να ÎÏει"},map:{unit:"καÏαÏÏÏήÏειÏ",verb:"να ÎÏει"}},t={regex:"είÏοδοÏ",email:"διεÏθÏ
νÏη email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ημεÏομηνία και ÏÏα",date:"ISO ημεÏομηνία",time:"ISO ÏÏ
77α",duration:"ISO διάÏκεια",ipv4:"διεÏθÏ
νÏη IPv4",ipv6:"διεÏθÏ
νÏη IPv6",mac:"διεÏθÏ
νÏη MAC",cidrv4:"εÏÏÎ¿Ï IPv4",cidrv6:"εÏÏÎ¿Ï IPv6",base64:"ÏÏ
μβολοÏειÏά κÏδικοÏοιημÎνη Ïε base64",base64url:"ÏÏ
μβολοÏειÏά κÏδικοÏοιημÎνη Ïε base64url",json_string:"ÏÏ
μβολοÏειÏά JSON",e164:"αÏιθμÏÏ E.164",jwt:"JWT",template_literal:"είÏοδοÏ"},n={nan:"NaN"},r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if("string"==typeof r.expected&&/^[A-Z]/.test(r.expected))return`Îη ÎγκÏ
Ïη είÏοδοÏ: αναμενÏÏαν instanceof ${r.expected}, λήÏθηκε ${i}`;return`Îη ÎγκÏ
Ïη είÏοδοÏ: αναμενÏÏαν ${e}, λήÏθηκε ${i}`}case"invalid_value":if(1===r.values.length)return`Îη ÎγκÏ
Ïη είÏοδοÏ: αναμενÏÏαν ${tt(r.values[0])}`;return`Îη ÎγκÏ
Ïη εÏιλογή: αναμενÏÏαν Îνα αÏÏ ${eB(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Î Î¿Î»Ï Î¼ÎµÎ³Î¬Î»Î¿: αναμενÏÏαν ${r.origin??"Ïιμή"} να ÎÏει ${t}${r.maximum.toString()} ${n.unit??"ÏÏοιÏεία"}`;return`Î Î¿Î»Ï Î¼ÎµÎ³Î¬Î»Î¿: αναμενÏÏαν ${r.origin??"Ïιμή"} να είναι ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Î Î¿Î»Ï Î¼Î¹ÎºÏÏ: αναμενÏÏαν ${r.origin} να ÎÏει ${t}${r.minimum.toString()} ${n.unit}`;return`Î Î¿Î»Ï Î¼Î¹ÎºÏÏ: αναμενÏÏαν ${r.origin} να είναι ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Îη ÎγκÏ
Ïη ÏÏ
μβολοÏειÏά: ÏÏÎÏει να ξεκινά με "${r.prefix}"`;if("ends_with"===r.format)return`Îη ÎγκÏ
Ïη ÏÏ
μβολοÏειÏά: ÏÏÎÏει να ÏελειÏνει με "${r.suffix}"`;if("includes"===r.format)return`Îη ÎγκÏ
Ïη ÏÏ
μβολοÏειÏά: ÏÏÎÏει να ÏεÏιÎÏει "${r.includes}"`;if("regex"===r.format)return`Îη ÎγκÏ
Ïη ÏÏ
μβολοÏειÏά: ÏÏÎÏει να ÏαιÏιάζει με Ïο μοÏίβο ${r.pattern}`;return`Îη ÎγκÏ
Ïο: ${t[r.format]??r.format}`;case"not_multiple_of":return`Îη ÎγκÏ
ÏÎ¿Ï Î±ÏιθμÏÏ: ÏÏÎÏει να είναι ÏολλαÏλάÏιο ÏοÏ
${r.divisor}`;case"unrecognized_keys":return`ÎγνÏÏÏ${r.keys.length>1?"α":"ο"} κλειδ${r.keys.length>1?"ιά":"ί"}: ${eB(r.keys,", ")}`;case"invalid_key":return`Îη ÎγκÏ
Ïο κλειδί ÏÏο ${r.origin}`;case"invalid_union":default:return"Îη ÎγκÏ
Ïη είÏοδοÏ";case"invalid_element":return`Îη ÎγκÏ
Ïη Ïιμή ÏÏο ${r.origin}`}})}},"en",0,a_,"eo",0,function(){let e,t,n;return{localeError:(e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}},t={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoÄio",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Åro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},n={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"},r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Nevalida enigo: atendiÄis instanceof ${r.expected}, riceviÄis ${i}`;return`Nevalida enigo: atendiÄis ${e}, riceviÄis ${i}`}case"invalid_value":if(1===r.values.length)return`Nevalida enigo: atendiÄis ${tt(r.values[0])}`;return`Nevalida opcio: atendiÄis unu el ${eB(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Tro granda: atendiÄis ke ${r.origin??"valoro"} havu ${t}${r.maximum.toString()} ${n.unit??"elementojn"}`;return`Tro granda: atendiÄis ke ${r.origin??"valoro"} havu ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Tro malgranda: atendiÄis ke ${r.origin} havu ${t}${r.minimum.toString()} ${n.unit}`;return`Tro malgranda: atendiÄis ke ${r.origin} estu ${t}${r.minimum.toString()}`}
77case"invalid_format":if("starts_with"===r.format)return`Nevalida karaktraro: devas komenciÄi per "${r.prefix}"`;if("ends_with"===r.format)return`Nevalida karaktraro: devas finiÄi per "${r.suffix}"`;if("includes"===r.format)return`Nevalida karaktraro: devas inkluzivi "${r.includes}"`;if("regex"===r.format)return`Nevalida karaktraro: devas kongrui kun la modelo ${r.pattern}`;return`Nevalida ${t[r.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":""} Ålosilo${r.keys.length>1?"j":""}: ${eB(r.keys,", ")}`;case"invalid_key":return`Nevalida Ålosilo en ${r.origin}`;case"invalid_union":default:return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${r.origin}`}})}},"es",0,function(){let e,t,n;return{localeError:(e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}},t={regex:"entrada",email:"dirección de correo electrónico",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ón ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},n={nan:"NaN",string:"texto",number:"número",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"número grande",symbol
77:"sÃmbolo",undefined:"indefinido",null:"nulo",function:"función",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeración",union:"unión",literal:"literal",promise:"promesa",void:"vacÃo",never:"nunca",unknown:"desconocido",any:"cualquiera"},r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Entrada inv\xe1lida: se esperaba instanceof ${r.expected}, recibido ${i}`;return`Entrada inv\xe1lida: se esperaba ${e}, recibido ${i}`}case"invalid_value":if(1===r.values.length)return`Entrada inv\xe1lida: se esperaba ${tt(r.values[0])}`;return`Opci\xf3n inv\xe1lida: se esperaba una de ${eB(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",i=e[r.origin]??null,a=n[r.origin]??r.origin;if(i)return`Demasiado grande: se esperaba que ${a??"valor"} tuviera ${t}${r.maximum.toString()} ${i.unit??"elementos"}`;return`Demasiado grande: se esperaba que ${a??"valor"} fuera ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",i=e[r.origin]??null,a=n[r.origin]??r.origin;if(i)return`Demasiado peque\xf1o: se esperaba que ${a} tuviera ${t}${r.minimum.toString()} ${i.unit}`;return`Demasiado peque\xf1o: se esperaba que ${a} fuera ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Cadena inv\xe1lida: debe comenzar con "${r.prefix}"`;if("ends_with"===r.format)return`Cadena inv\xe1lida: debe terminar en "${r.suffix}"`;if("includes"===r.format)return`Cadena inv\xe1lida: debe incluir "${r.includes}"`;if("regex"===r.format)return`Cadena inv\xe1lida: debe coincidir con el patr\xf3n ${r.pattern}`;return`Inv\xe1lido ${t[r.format]??r.format}`;case"not_multiple_of":return`N\xfamero inv\xe1lido: debe ser m\xfaltiplo de ${r.divisor}`;case"unrecognized_keys":return`Llave${r.keys.length>1?"s":""} desconocida${r.keys.length>1?"s":""}: ${eB(r.keys,", ")}`;case"invalid_key":return`Llave inv\xe1lida en ${n[r.origin]??r.origin}`;case"invalid_union":default:return"Entrada inválida";case"invalid_element":return`Valor inv\xe1lido en ${n[r.origin]??r.origin}`}})}},"fa",0,function(){let e,t,n;return{localeError:(e={string:{unit:"کاراکتر",verb:"داشت٠باشد"},file:{unit:"Ø¨Ø§ÛØª",verb:"داشت٠باشد"},array:{unit:"Ø¢ÛØªÙ
",verb:"داشت٠باشد"},set:{unit:"Ø¢ÛØªÙ
",verb:"داشت٠باشد"}},t={regex:"ÙØ±ÙدÛ",email:"آدرس اÛÙ
ÛÙ",url:"URL",emoji:"اÛÙ
ÙØ¬Û",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ØªØ§Ø±ÛØ® ٠زÙ
Ø§Ù Ø§ÛØ²Ù",date:"ØªØ§Ø±ÛØ® Ø§ÛØ²Ù",time:"زÙ
Ø§Ù Ø§ÛØ²Ù",duration:"Ù
دت زÙ
Ø§Ù Ø§ÛØ²Ù",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 داÙ
ÙÙ",cidrv6:"IPv6 داÙ
ÙÙ",base64:"base64-encoded رشتÙ",base64url:"base64url-encoded رشتÙ",json_string:"JSON رشتÙ",e164:"E.164 عدد",jwt:"JWT",template_literal:"ÙØ±ÙدÛ"},n={nan:"NaN",number:"عدد",array:"آراÛÙ"},r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`ÙØ±ÙØ¯Û ÙØ§Ù
عتبر: Ù
ÛâØ¨Ø§ÛØ³Øª instanceof ${r.expected} Ù
ÛâØ¨ÙØ¯Ø ${i} Ø¯Ø±ÛØ§Ùت شد`;return`ÙØ±ÙØ¯Û ÙØ§Ù
عتبر: Ù
ÛâØ¨Ø§ÛØ³Øª ${e} Ù
ÛâØ¨ÙØ¯Ø ${i} Ø¯Ø±ÛØ§Ùت شد`}case"invalid_value":if(1===r.values.length)return`ÙØ±ÙØ¯Û ÙØ§Ù
عتبر: Ù
ÛâØ¨Ø§ÛØ³Øª ${tt(r.values[0])} Ù
ÛâØ¨ÙØ¯`;return`گزÛÙÙ ÙØ§Ù
عتبر: Ù
ÛâØ¨Ø§ÛØ³Øª ÛÚ©Û Ø§Ø² ${eB(r.values,"|")} Ù
ÛâØ¨ÙØ¯`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Ø®ÛÙÛ Ø¨Ø²Ø±Ú¯: ${r.origin??"Ù
ÙØ¯Ø§Ø±"} Ø¨Ø§ÛØ¯ ${t}${r.maximum.toString()} ${n.unit??"Ø¹ÙØµØ±"} باشد`;return`Ø®ÛÙÛ Ø¨Ø²Ø±Ú¯: ${r.origin??"Ù
ÙØ¯Ø§Ø±"} Ø¨Ø§ÛØ¯ ${t}${r.maximum.toString()} باشد`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Ø®ÛÙÛ Ú©ÙÚÚ©: ${r.origin} Ø¨Ø§ÛØ¯ ${t}${r.minimum.toString()} ${n.unit} باشد`;return`Ø®ÛÙÛ Ú©ÙÚÚ©: ${r.origin} Ø¨Ø§ÛØ¯ ${t}${r.minimum.toString()} باشد`}
77case"invalid_format":if("starts_with"===r.format)return`Ø±Ø´ØªÙ ÙØ§Ù
عتبر: Ø¨Ø§ÛØ¯ با "${r.prefix}" Ø´Ø±ÙØ¹ Ø´ÙØ¯`;if("ends_with"===r.format)return`Ø±Ø´ØªÙ ÙØ§Ù
عتبر: Ø¨Ø§ÛØ¯ با "${r.suffix}" تÙ
اÙ
Ø´ÙØ¯`;if("includes"===r.format)return`Ø±Ø´ØªÙ ÙØ§Ù
عتبر: Ø¨Ø§ÛØ¯ شاÙ
Ù "${r.includes}" باشد`;if("regex"===r.format)return`Ø±Ø´ØªÙ ÙØ§Ù
عتبر: Ø¨Ø§ÛØ¯ با اÙÚ¯ÙÛ ${r.pattern} Ù
Ø·Ø§Ø¨ÙØª داشت٠باشد`;return`${t[r.format]??r.format} ÙØ§Ù
عتبر`;case"not_multiple_of":return`عدد ÙØ§Ù
عتبر: Ø¨Ø§ÛØ¯ Ù
ضرب ${r.divisor} باشد`;case"unrecognized_keys":return`Ú©ÙÛØ¯${r.keys.length>1?"ÙØ§Û":""} ÙØ§Ø´Ùاس: ${eB(r.keys,", ")}`;case"invalid_key":return`Ú©ÙÛØ¯ ÙØ§Ø´Ùاس در ${r.origin}`;case"invalid_union":default:return"ÙØ±ÙØ¯Û ÙØ§Ù
عتبر";case"invalid_element":return`Ù
ÙØ¯Ø§Ø± ÙØ§Ù
عتبر در ${r.origin}`}})}},"fi",0,function(){let e,t,n;return{localeError:(e={string:{unit:"merkkiä",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äivämäärän"}},t={regex:"säännöllinen lauseke",email:"sähköpostiosoite",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äivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},n={nan:"NaN"},r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Virheellinen tyyppi: odotettiin instanceof ${r.expected}, oli ${i}`;return`Virheellinen tyyppi: odotettiin ${e}, oli ${i}`}case"invalid_value":if(1===r.values.length)return`Virheellinen sy\xf6te: t\xe4ytyy olla ${tt(r.values[0])}`;return`Virheellinen valinta: t\xe4ytyy olla yksi seuraavista: ${eB(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Liian suuri: ${n.subject} t\xe4ytyy olla ${t}${r.maximum.toString()} ${n.unit}`.trim();return`Liian suuri: arvon t\xe4ytyy olla ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Liian pieni: ${n.subject} t\xe4ytyy olla ${t}${r.minimum.toString()} ${n.unit}`.trim();return`Liian pieni: arvon t\xe4ytyy olla ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Virheellinen sy\xf6te: t\xe4ytyy alkaa "${r.prefix}"`;if("ends_with"===r.format)return`Virheellinen sy\xf6te: t\xe4ytyy loppua "${r.suffix}"`;if("includes"===r.format)return`Virheellinen sy\xf6te: t\xe4ytyy sis\xe4lt\xe4\xe4 "${r.includes}"`;if("regex"===r.format)return`Virheellinen sy\xf6te: t\xe4ytyy vastata s\xe4\xe4nn\xf6llist\xe4 lauseketta ${r.pattern}`;return`Virheellinen ${t[r.format]??r.format}`;case"not_multiple_of":return`Virheellinen luku: t\xe4ytyy olla luvun ${r.divisor} monikerta`;case"unrecognized_keys":return`${r.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${eB(r.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen syöte"}})}},"fr",0,function(){let e,t,n;return{localeError:(e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}},t={regex:"entrée",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ée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},n={string:"chaîne",number:"nombre",int:"entier",boolean:"booléen",bigint:"grand entier",symbol
77:"symbole",undefined:"indéfini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"},r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Entr\xe9e invalide : instanceof ${r.expected} attendu, ${i} re\xe7u`;return`Entr\xe9e invalide : ${e} attendu, ${i} re\xe7u`}case"invalid_value":if(1===r.values.length)return`Entr\xe9e invalide : ${tt(r.values[0])} attendu`;return`Option invalide : une valeur parmi ${eB(r.values,"|")} attendue`;case"too_big":{let t=r.inclusive?"<=":"<",i=e[r.origin]??null;if(i)return`Trop grand : ${n[r.origin]??"valeur"} doit ${i.verb} ${t}${r.maximum.toString()} ${i.unit??"élément(s)"}`;return`Trop grand : ${n[r.origin]??"valeur"} doit \xeatre ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",i=e[r.origin]??null;if(i)return`Trop petit : ${n[r.origin]??"valeur"} doit ${i.verb} ${t}${r.minimum.toString()} ${i.unit}`;return`Trop petit : ${n[r.origin]??"valeur"} doit \xeatre ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Cha\xeene invalide : doit commencer par "${r.prefix}"`;if("ends_with"===r.format)return`Cha\xeene invalide : doit se terminer par "${r.suffix}"`;if("includes"===r.format)return`Cha\xeene invalide : doit inclure "${r.includes}"`;if("regex"===r.format)return`Cha\xeene invalide : doit correspondre au mod\xe8le ${r.pattern}`;return`${t[r.format]??r.format} invalide`;case"not_multiple_of":return`Nombre invalide : doit \xeatre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xe9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${eB(r.keys,", ")}`;case"invalid_key":return`Cl\xe9 invalide dans ${r.origin}`;case"invalid_union":default:return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`}})}},"frCA",0,function(){let e,t,n;return{localeError:(e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}},t={regex:"entrée",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ée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},n={nan:"NaN"},r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Entr\xe9e invalide : attendu instanceof ${r.expected}, re\xe7u ${i}`;return`Entr\xe9e invalide : attendu ${e}, re\xe7u ${i}`}case"invalid_value":if(1===r.values.length)return`Entr\xe9e invalide : attendu ${tt(r.values[0])}`;
77return`Option invalide : attendu l'une des valeurs suivantes ${eB(r.values,"|")}`;case"too_big":{let t=r.inclusive?"â¤":"<",n=e[r.origin]??null;if(n)return`Trop grand : attendu que ${r.origin??"la valeur"} ait ${t}${r.maximum.toString()} ${n.unit}`;return`Trop grand : attendu que ${r.origin??"la valeur"} soit ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?"â¥":">",n=e[r.origin]??null;if(n)return`Trop petit : attendu que ${r.origin} ait ${t}${r.minimum.toString()} ${n.unit}`;return`Trop petit : attendu que ${r.origin} soit ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Cha\xeene invalide : doit commencer par "${r.prefix}"`;if("ends_with"===r.format)return`Cha\xeene invalide : doit se terminer par "${r.suffix}"`;if("includes"===r.format)return`Cha\xeene invalide : doit inclure "${r.includes}"`;if("regex"===r.format)return`Cha\xeene invalide : doit correspondre au motif ${r.pattern}`;return`${t[r.format]??r.format} invalide`;case"not_multiple_of":return`Nombre invalide : doit \xeatre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xe9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${eB(r.keys,", ")}`;case"invalid_key":return`Cl\xe9 invalide dans ${r.origin}`;case"invalid_union":default:return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`}})}},"he",0,function(){let e,t,n,r,i,a,o,s,l;return{localeError:(e={string:{label:"××ר××ת",gender:"f"},number:{label:"×ספר",gender:"m"},boolean:{label:"×¢×¨× ×××××× ×",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"ת×ר××",gender:"m"},array:{label:"×ער×",gender:"m"},object:{label:"××××××§×",gender:"m"},null:{label:"×¢×¨× ×¨××§ (null)",gender:"m"},undefined:{label:"×¢×¨× ×× ××××ר (undefined)",gender:"m"},symbol:{label:"ס××××× (Symbol)",gender:"m"},function:{label:"פ×× ×§×¦××",gender:"f"},map:{label:"××¤× (Map)",gender:"f"},set:{label:"×§×××¦× (Set)",gender:"f"},file:{label:"×§×××¥",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"×¢×¨× ×× ××××¢",gender:"m"},value:{label:"ער×",gender:"m"}},t={string:{unit:"ת××××",shortLabel:"קצר",longLabel:"×ר××"},file:{unit:"××××××",shortLabel:"×§××",longLabel:"××××"},array:{unit:"פר××××",shortLabel:"×§××",longLabel:"××××"},set:{unit:"פר××××",shortLabel:"×§××",longLabel:"××××"},number:{unit:"",shortLabel:"×§××",longLabel:"××××"}},n=t=>t?e[t]:void 0,r=t=>{let r=n(t);return r?r.label:t??e.unknown.label},i=e=>`×${r(e)}`,a=e=>{let t=n(e);return"f"===(t?.gender??"m")?"צר××× ××××ת":"צר×× ××××ת"},o=e=>e?t[e]??null:null,s={regex:{label:"×§××",gender:"m"},email:{label:"×ת××ת ××××××",gender:"f"},url:{label:"×ת××ת רשת",gender:"f"},emoji:{label:"×××××'×",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"ת×ר×× ×××× ISO",gender:"m"},date:{label:"ת×ר×× ISO",gender:"m"},time:{label:"××× ISO",gender:"m"},duration:{label:"××©× ××× ISO",gender:"m"},ipv4:{label:"×ת××ת IPv4",gender:"f"},ipv6:{label:"×ת××ת IPv6",gender:"f"},cidrv4:{label:"×××× IPv4",gender:"m"},cidrv6:{label:"×××× IPv6",gender:"m"},base64:{label:"××ר××ת ××ס×ס 64",gender:"f"},base64url:{label:"××ר××ת ××ס×ס 64 ××ת×××ת רשת",gender:"f"},json_string:{label:"××ר××ת JSON",gender:"f"},e164:{label:"×ספר E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"×§××",gender:"m"},includes:{label:"×§××",gender:"m"},lowercase:{label:"×§××",gender:"m"},starts_with:{label:"×§××",gender:"m"},uppercase:{label:"×§××",gender:"m"}},l={nan:"NaN"},t=>{switch(t.code){case"invalid_type":{let n=t.expected,i=l[n??""]??r(n),a=tp(t.input),o=l[a]??e[a]?.label??a;
77if(/^[A-Z]/.test(t.expected))return`×§×× ×× ×ª×§××: צר×× ××××ת instanceof ${t.expected}, ×תק×× ${o}`;return`×§×× ×× ×ª×§××: צר×× ××××ת ${i}, ×תק×× ${o}`}case"invalid_value":{if(1===t.values.length)return`×¢×¨× ×× ×ª×§××: ××¢×¨× ×××× ××××ת ${tt(t.values[0])}`;let e=t.values.map(e=>tt(e));if(2===t.values.length)return`×¢×¨× ×× ×ª×§××: ××פשר×××ת ××ת××××ת ×× ${e[0]} ×× ${e[1]}`;let n=e[e.length-1],r=e.slice(0,-1).join(", ");return`×¢×¨× ×× ×ª×§××: ××פשר×××ת ××ת××××ת ×× ${r} ×× ${n}`}case"too_big":{let e=o(t.origin),n=i(t.origin??"value");if("string"===t.origin)return`${e?.longLabel??"×ר××"} ×××: ${n} צר××× ××××× ${t.maximum.toString()} ${e?.unit??""} ${t.inclusive?"×× ×¤××ת":"××× ×××תר"}`.trim();if("number"===t.origin){let e=t.inclusive?`×§×× ×× ×©××× ×-${t.maximum}`:`×§×× ×-${t.maximum}`;return`×××× ×××: ${n} צר×× ××××ת ${e}`}if("array"===t.origin||"set"===t.origin){let r="set"===t.origin?"צר×××":"צר××",i=t.inclusive?`${t.maximum} ${e?.unit??""} ×× ×¤××ת`:`פ××ת ×-${t.maximum} ${e?.unit??""}`;return`×××× ×××: ${n} ${r} ××××× ${i}`.trim()}let r=t.inclusive?"<=":"<",s=a(t.origin??"value");if(e?.unit)return`${e.longLabel} ×××: ${n} ${s} ${r}${t.maximum.toString()} ${e.unit}`;return`${e?.longLabel??"××××"} ×××: ${n} ${s} ${r}${t.maximum.toString()}`}case"too_small":{let e=o(t.origin),n=i(t.origin??"value");if("string"===t.origin)return`${e?.shortLabel??"קצר"} ×××: ${n} צר××× ××××× ${t.minimum.toString()} ${e?.unit??""} ${t.inclusive?"×× ××תר":"×פ××ת"}`.trim();if("number"===t.origin){let e=t.inclusive?`×××× ×× ×©××× ×-${t.minimum}`:`×××× ×-${t.minimum}`;return`×§×× ×××: ${n} צר×× ××××ת ${e}`}if("array"===t.origin||"set"===t.origin){let r="set"===t.origin?"צר×××":"צר××";if(1===t.minimum&&t.inclusive){let e=(t.origin,"×פ××ת פר×× ×××");return`×§×× ×××: ${n} ${r} ××××× ${e}`}let i=t.inclusive?`${t.minimum} ${e?.unit??""} ×× ××תר`:`××תר ×-${t.minimum} ${e?.unit??""}`;return`×§×× ×××: ${n} ${r} ××××× ${i}`.trim()}let r=t.inclusive?">=":">",s=a(t.origin??"value");if(e?.unit)return`${e.shortLabel} ×××: ${n} ${s} ${r}${t.minimum.toString()} ${e.unit}`;return`${e?.shortLabel??"×§××"} ×××: ${n} ${s} ${r}${t.minimum.toString()}`}case"invalid_format":{if("starts_with"===t.format)return`×××ר××ת ××××ת ××ת××× × "${t.prefix}"`;if("ends_with"===t.format)return`×××ר××ת ××××ת ××סת××× × "${t.suffix}"`;if("includes"===t.format)return`×××ר××ת ××××ת ××××× "${t.includes}"`;if("regex"===t.format)return`×××ר××ת ××××ת ××ת××× ×ת×× ×ת ${t.pattern}`;let e=s[t.format],n=e?.label??t.format,r=e?.gender??"m";return`${n} ×× ${"f"===r?"תק×× ×":"תק××"}`}case"not_multiple_of":return`×ספר ×× ×ª×§××: ×××× ××××ת ××פ×× ×©× ${t.divisor}`;case"unrecognized_keys":return`×פת×${t.keys.length>1?"×ת":""} ×× ××××${t.keys.length>1?"××":"×"}: ${eB(t.keys,", ")}`;case"invalid_key":return"ש×× ×× ×ª×§×× ×××××××§×";case"invalid_union":default:return"×§×× ×× ×ª×§××";case"invalid_element":{let e=i(t.origin??"array");return`×¢×¨× ×× ×ª×§×× ×${e}`}}})}},"hr",0,function(){let e,t,n;return{localeError:(e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}},t={regex:"unos",email:"email adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},n={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol
77:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"},r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Neispravan unos: oÄekuje se instanceof ${r.expected}, a primljeno je ${i}`;return`Neispravan unos: oÄekuje se ${e}, a primljeno je ${i}`}case"invalid_value":if(1===r.values.length)return`Neispravna vrijednost: oÄekivano ${tt(r.values[0])}`;return`Neispravna opcija: oÄekivano jedno od ${eB(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",i=e[r.origin]??null,a=n[r.origin]??r.origin;if(i)return`Preveliko: oÄekivano da ${a??"vrijednost"} ima ${t}${r.maximum.toString()} ${i.unit??"elemenata"}`;return`Preveliko: oÄekivano da ${a??"vrijednost"} bude ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",i=e[r.origin]??null,a=n[r.origin]??r.origin;if(i)return`Premalo: oÄekivano da ${a} ima ${t}${r.minimum.toString()} ${i.unit}`;return`Premalo: oÄekivano da ${a} bude ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Neispravan tekst: mora zapoÄinjati s "${r.prefix}"`;if("ends_with"===r.format)return`Neispravan tekst: mora zavrÅ¡avati s "${r.suffix}"`;if("includes"===r.format)return`Neispravan tekst: mora sadržavati "${r.includes}"`;if("regex"===r.format)return`Neispravan tekst: mora odgovarati uzorku ${r.pattern}`;return`Neispravna ${t[r.format]??r.format}`;case"not_multiple_of":return`Neispravan broj: mora biti viÅ¡ekratnik od ${r.divisor}`;case"unrecognized_keys":return`Neprepoznat${r.keys.length>1?"i kljuÄevi":" kljuÄ"}: ${eB(r.keys,", ")}`;case"invalid_key":return`Neispravan kljuÄ u ${n[r.origin]??r.origin}`;case"invalid_union":default:return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${n[r.origin]??r.origin}`}})}},"hu",0,function(){let e,t,n;return{localeError:(e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}},t={regex:"bemenet",email:"email cÃm",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Åbélyeg",date:"ISO dátum",time:"ISO idÅ",duration:"ISO idÅintervallum",ipv4:"IPv4 cÃm",ipv6:"IPv6 cÃm",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"},n={nan:"NaN",number:"szám",array:"tömb"},r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`\xc9rv\xe9nytelen bemenet: a v\xe1rt \xe9rt\xe9k instanceof ${r.expected}, a kapott \xe9rt\xe9k ${i}`;return`\xc9rv\xe9nytelen bemenet: a v\xe1rt \xe9rt\xe9k ${e}, a kapott \xe9rt\xe9k ${i}`}case"invalid_value":if(1===r.values.length)return`\xc9rv\xe9nytelen bemenet: a v\xe1rt \xe9rt\xe9k ${tt(r.values[0])}`;return`\xc9rv\xe9nytelen opci\xf3: valamelyik \xe9rt\xe9k v\xe1rt ${eB(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`T\xfal nagy: ${r.origin??"érték"} m\xe9rete t\xfal nagy ${t}${r.maximum.toString()} ${n.unit??"elem"}`;return`T\xfal nagy: a bemeneti \xe9rt\xe9k ${r.origin??"érték"} t\xfal nagy: ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`T\xfal kicsi: a bemeneti \xe9rt\xe9k ${r.origin} m\xe9rete t\xfal kicsi ${t}${r.minimum.toString()} ${n.unit}`;return`T\xfal kicsi: a bemeneti \xe9rt\xe9k ${r.origin} t\xfal kicsi ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`\xc9rv\xe9nytelen string: "${r.prefix}" \xe9rt\xe9kkel kell kezdÅdnie`;if("ends_with"===r.format)return`\xc9rv\xe9nytelen string: "${r.suffix}" \xe9rt\xe9kkel kell v\xe9gzÅdnie`;if("includes"===r.format)return`\xc9rv\xe9nytelen string: "${r.includes}" \xe9rt\xe9ket kell tartalmaznia`;if("regex"===r.format)return`\xc9rv\xe9nytelen string: ${r.pattern} mint\xe1nak kell megfelelnie`;return`\xc9rv\xe9nytelen ${t[r.format]??r.format}`;case"not_multiple_of":return`\xc9rv\xe9nytelen sz\xe1m: ${r.divisor} t\xf6bbsz\xf6r\xf6s\xe9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${r.keys.length>
771?"s":""}: ${eB(r.keys,", ")}`;case"invalid_key":return`\xc9rv\xe9nytelen kulcs ${r.origin}`;case"invalid_union":default:return"Ãrvénytelen bemenet";case"invalid_element":return`\xc9rv\xe9nytelen \xe9rt\xe9k: ${r.origin}`}})}},"hy",0,function(){let e,t,n;return{localeError:(e={string:{unit:{one:"Õ¶Õ·Õ¡Õ¶",many:"Õ¶Õ·Õ¡Õ¶Õ¶Õ¥Ö"},verb:"Õ¸ÖÕ¶Õ¥Õ¶Õ¡Õ¬"},file:{unit:{one:"Õ¢Õ¡ÕµÕ©",many:"Õ¢Õ¡ÕµÕ©Õ¥Ö"},verb:"Õ¸ÖÕ¶Õ¥Õ¶Õ¡Õ¬"},array:{unit:{one:"Õ¿Õ¡ÖÖ",many:"Õ¿Õ¡ÖÖÕ¥Ö"},verb:"Õ¸ÖÕ¶Õ¥Õ¶Õ¡Õ¬"},set:{unit:{one:"Õ¿Õ¡ÖÖ",many:"Õ¿Õ¡ÖÖÕ¥Ö"},verb:"Õ¸ÖÕ¶Õ¥Õ¶Õ¡Õ¬"}},t={regex:"Õ´Õ¸ÖÕ¿Ö",email:"Õ§Õ¬. Õ°Õ¡Õ½ÖÕ¥",url:"URL",emoji:"Õ§Õ´Õ¸Õ»Õ«",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO Õ¡Õ´Õ½Õ¡Õ©Õ«Õ¾ Ö ÕªÕ¡Õ´",date:"ISO Õ¡Õ´Õ½Õ¡Õ©Õ«Õ¾",time:"ISO ÕªÕ¡Õ´",duration:"ISO Õ¿ÖÕ¸Õ²Õ¸ÖÕ©ÕµÕ¸ÖÕ¶",ipv4:"IPv4 Õ°Õ¡Õ½ÖÕ¥",ipv6:"IPv6 Õ°Õ¡Õ½ÖÕ¥",cidrv4:"IPv4 Õ´Õ«Õ»Õ¡Õ¯Õ¡ÕµÖ",cidrv6:"IPv6 Õ´Õ«Õ»Õ¡Õ¯Õ¡ÕµÖ",base64:"base64 Õ±ÖÕ¡Õ¹Õ¡ÖÕ¸Õ¾ Õ¿Õ¸Õ²",base64url:"base64url Õ±ÖÕ¡Õ¹Õ¡ÖÕ¸Õ¾ Õ¿Õ¸Õ²",json_string:"JSON Õ¿Õ¸Õ²",e164:"E.164 Õ°Õ¡Õ´Õ¡Ö",jwt:"JWT",template_literal:"Õ´Õ¸ÖÕ¿Ö"},n={nan:"NaN",number:"Õ©Õ«Õ¾",array:"Õ¦Õ¡Õ¶Õ£Õ¾Õ¡Õ®"},r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`ÕÕÕ¡Õ¬ Õ´Õ¸ÖÕ¿ÖÕ¡Õ£ÖÕ¸Öմ⤠սպասվոÖÕ´ Õ§Ö instanceof ${r.expected}, Õ½Õ¿Õ¡ÖÕ¾Õ¥Õ¬ Õ§ ${i}`;return`ÕÕÕ¡Õ¬ Õ´Õ¸ÖÕ¿ÖÕ¡Õ£ÖÕ¸Öմ⤠սպասվոÖÕ´ Õ§Ö ${e}, Õ½Õ¿Õ¡ÖÕ¾Õ¥Õ¬ Õ§ ${i}`}case"invalid_value":if(1===r.values.length)return`ÕÕÕ¡Õ¬ Õ´Õ¸ÖÕ¿ÖÕ¡Õ£ÖÕ¸Öմ⤠սպասվոÖÕ´ Õ§Ö ${tt(r.values[1])}`;return`ÕÕÕ¡Õ¬ Õ¿Õ¡ÖÕ¢Õ¥Öակ⤠սպասվոÖÕ´ Õ§Ö Õ°Õ¥Õ¿ÖÕµÕ¡Õ¬Õ¶Õ¥ÖÕ«Ö Õ´Õ¥Õ¯Õ¨Õ ${eB(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n){let e=lo(Number(r.maximum),n.unit.one,n.unit.many);return`ÕÕ¡ÖÕ¡Õ¦Õ¡Õ¶Ö Õ´Õ¥Õ® Õ¡ÖÕªÕ¥Ö⤠սպասվոÖÕ´ Õ§, Õ¸Ö ${ls(r.origin??"Õ¡ÖÕªÕ¥Ö")} Õ¯Õ¸ÖÕ¶Õ¥Õ¶Õ¡ ${t}${r.maximum.toString()} ${e}`}return`ÕÕ¡ÖÕ¡Õ¦Õ¡Õ¶Ö Õ´Õ¥Õ® Õ¡ÖÕªÕ¥Ö⤠սպասվոÖÕ´ Õ§, Õ¸Ö ${ls(r.origin??"Õ¡ÖÕªÕ¥Ö")} Õ¬Õ«Õ¶Õ« ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n){let e=lo(Number(r.minimum),n.unit.one,n.unit.many);return`ÕÕ¡ÖÕ¡Õ¦Õ¡Õ¶Ö ÖÕ¸ÖÖ Õ¡ÖÕªÕ¥Ö⤠սպասվոÖÕ´ Õ§, Õ¸Ö ${ls(r.origin)} Õ¯Õ¸ÖÕ¶Õ¥Õ¶Õ¡ ${t}${r.minimum.toString()} ${e}`}return`ÕÕ¡ÖÕ¡Õ¦Õ¡Õ¶Ö ÖÕ¸ÖÖ Õ¡ÖÕªÕ¥Ö⤠սպասվոÖÕ´ Õ§, Õ¸Ö ${ls(r.origin)} Õ¬Õ«Õ¶Õ« ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`ÕÕÕ¡Õ¬ Õ¿Õ¸Õ²â¤ ÕºÕ¥Õ¿Ö Õ§ Õ½Õ¯Õ½Õ¾Õ« "${r.prefix}"-Õ¸Õ¾`;if("ends_with"===r.format)return`ÕÕÕ¡Õ¬ Õ¿Õ¸Õ²â¤ ÕºÕ¥Õ¿Ö Õ§ Õ¡Õ¾Õ¡ÖÕ¿Õ¾Õ« "${r.suffix}"-Õ¸Õ¾`;if("includes"===r.format)return`ÕÕÕ¡Õ¬ Õ¿Õ¸Õ²â¤ ÕºÕ¥Õ¿Ö Õ§ ÕºÕ¡ÖÕ¸ÖÕ¶Õ¡Õ¯Õ« "${r.includes}"`;if("regex"===r.format)return`ÕÕÕ¡Õ¬ Õ¿Õ¸Õ²â¤ ÕºÕ¥Õ¿Ö Õ§ Õ°Õ¡Õ´Õ¡ÕºÕ¡Õ¿Õ¡Õ½ÕÕ¡Õ¶Õ« ${r.pattern} Õ±ÖÕ¡Õ¹Õ¡ÖÕ«Õ¶`;return`ÕÕÕ¡Õ¬ ${t[r.format]??r.format}`;case"not_multiple_of":return`ÕÕÕ¡Õ¬ Õ©Õ«Õ¾â¤ ÕºÕ¥Õ¿Ö Õ§ Õ¢Õ¡Õ¦Õ´Õ¡ÕºÕ¡Õ¿Õ«Õ¯ Õ¬Õ«Õ¶Õ« ${r.divisor}-Õ«`;case"unrecognized_keys":return`ÕÕ³Õ¡Õ¶Õ¡Õ¹Õ¾Õ¡Õ® Õ¢Õ¡Õ¶Õ¡Õ¬Õ«${r.keys.length>1?"Õ¶Õ¥Ö":""}. ${eB(r.keys,", ")}`;case"invalid_key":return`ÕÕÕ¡Õ¬ Õ¢Õ¡Õ¶Õ¡Õ¬Õ« ${ls(r.origin)}-Õ¸ÖÕ´`;case"invalid_union":default:return"ÕÕÕ¡Õ¬ Õ´Õ¸ÖÕ¿ÖÕ¡Õ£ÖÕ¸ÖÕ´";case"invalid_element":return`ÕÕÕ¡Õ¬ Õ¡ÖÕªÕ¥Ö ${ls(r.origin)}-Õ¸ÖÕ´`}})}},"id",0,function(){let e,t,n;return{localeError:(e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}},t={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},n={nan:"NaN"},r=>
77{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Input tidak valid: diharapkan instanceof ${r.expected}, diterima ${i}`;return`Input tidak valid: diharapkan ${e}, diterima ${i}`}case"invalid_value":if(1===r.values.length)return`Input tidak valid: diharapkan ${tt(r.values[0])}`;return`Pilihan tidak valid: diharapkan salah satu dari ${eB(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Terlalu besar: diharapkan ${r.origin??"value"} memiliki ${t}${r.maximum.toString()} ${n.unit??"elemen"}`;return`Terlalu besar: diharapkan ${r.origin??"value"} menjadi ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Terlalu kecil: diharapkan ${r.origin} memiliki ${t}${r.minimum.toString()} ${n.unit}`;return`Terlalu kecil: diharapkan ${r.origin} menjadi ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`String tidak valid: harus dimulai dengan "${r.prefix}"`;if("ends_with"===r.format)return`String tidak valid: harus berakhir dengan "${r.suffix}"`;if("includes"===r.format)return`String tidak valid: harus menyertakan "${r.includes}"`;if("regex"===r.format)return`String tidak valid: harus sesuai pola ${r.pattern}`;return`${t[r.format]??r.format} tidak valid`;case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${r.keys.length>1?"s":""}: ${eB(r.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${r.origin}`;case"invalid_union":default:return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${r.origin}`}})}},"is",0,function(){let e,t,n;return{localeError:(e={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"}},t={regex:"gildi",email:"netfang",url:"vefslóð",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og tÃmi",date:"ISO dagsetning",time:"ISO tÃmi",duration:"ISO tÃmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 tölugildi",jwt:"JWT",template_literal:"gildi"},n={nan:"NaN",number:"númer",array:"fylki"},r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Rangt gildi: \xde\xfa sl\xf3st inn ${i} \xfear sem \xe1 a\xf0 vera instanceof ${r.expected}`;return`Rangt gildi: \xde\xfa sl\xf3st inn ${i} \xfear sem \xe1 a\xf0 vera ${e}`}case"invalid_value":if(1===r.values.length)return`Rangt gildi: gert r\xe1\xf0 fyrir ${tt(r.values[0])}`;return`\xd3gilt val: m\xe1 vera eitt af eftirfarandi ${eB(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Of st\xf3rt: gert er r\xe1\xf0 fyrir a\xf0 ${r.origin??"gildi"} hafi ${t}${r.maximum.toString()} ${n.unit??"hluti"}`;return`Of st\xf3rt: gert er r\xe1\xf0 fyrir a\xf0 ${r.origin??"gildi"} s\xe9 ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Of l\xedti\xf0: gert er r\xe1\xf0 fyrir a\xf0 ${r.origin} hafi ${t}${r.minimum.toString()} ${n.unit}`;return`Of l\xedti\xf0: gert er r\xe1\xf0 fyrir a\xf0 ${r.origin} s\xe9 ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`\xd3gildur strengur: ver\xf0ur a\xf0 byrja \xe1 "${r.prefix}"`;if("ends_with"===r.format)return`\xd3gildur strengur: ver\xf0ur a\xf0 enda \xe1 "${r.suffix}"`;if("includes"===r.format)return`\xd3gildur strengur: ver\xf0ur a\xf0 innihalda "${r.includes}"`;if("regex"===r.format)return`\xd3gildur strengur: ver\xf0ur a\xf0 fylgja mynstri ${r.pattern}`;return`Rangt ${t[r.format]??r.format}`;case"not_multiple_of":return`R\xf6ng tala: ver\xf0ur a\xf0 vera margfeldi af ${r.divisor}`;
77case"unrecognized_keys":return`\xd3\xfeekkt ${r.keys.length>1?"ir lyklar":"ur lykill"}: ${eB(r.keys,", ")}`;case"invalid_key":return`Rangur lykill \xed ${r.origin}`;case"invalid_union":default:return"Rangt gildi";case"invalid_element":return`Rangt gildi \xed ${r.origin}`}})}},"it",0,function(){let e,t,n;return{localeError:(e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}},t={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},n={nan:"NaN",number:"numero",array:"vettore"},r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Input non valido: atteso instanceof ${r.expected}, ricevuto ${i}`;return`Input non valido: atteso ${e}, ricevuto ${i}`}case"invalid_value":if(1===r.values.length)return`Input non valido: atteso ${tt(r.values[0])}`;return`Opzione non valida: atteso uno tra ${eB(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Troppo grande: ${r.origin??"valore"} deve avere ${t}${r.maximum.toString()} ${n.unit??"elementi"}`;return`Troppo grande: ${r.origin??"valore"} deve essere ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Troppo piccolo: ${r.origin} deve avere ${t}${r.minimum.toString()} ${n.unit}`;return`Troppo piccolo: ${r.origin} deve essere ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Stringa non valida: deve iniziare con "${r.prefix}"`;if("ends_with"===r.format)return`Stringa non valida: deve terminare con "${r.suffix}"`;if("includes"===r.format)return`Stringa non valida: deve includere "${r.includes}"`;if("regex"===r.format)return`Stringa non valida: deve corrispondere al pattern ${r.pattern}`;return`Input non valido: ${t[r.format]??r.format}`;case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${r.divisor}`;case"unrecognized_keys":return`Chiav${r.keys.length>1?"i":"e"} non riconosciut${r.keys.length>1?"e":"a"}: ${eB(r.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${r.origin}`;case"invalid_union":default:return"Input non valido";case"invalid_element":return`Valore non valido in ${r.origin}`}})}},"ja",0,function(){let e,t,n;return{localeError:(e={string:{unit:"æå",verb:"ã§ãã"},file:{unit:"ãã¤ã",verb:"ã§ãã"},array:{unit:"è¦ç´ ",verb:"ã§ãã"},set:{unit:"è¦ç´ ",verb:"ã§ãã"}},t={regex:"å
¥åå¤",email:"ã¡ã¼ã«ã¢ãã¬ã¹",url:"URL",emoji:"çµµæå",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISOæ¥æ",date:"ISOæ¥ä»",time:"ISOæå»",duration:"ISOæé",ipv4:"IPv4ã¢ãã¬ã¹",ipv6:"IPv6ã¢ãã¬ã¹",cidrv4:"IPv4ç¯å²",cidrv6:"IPv6ç¯å²",base64:"base64ã¨ã³ã³ã¼ãæåå",base64url:"base64urlã¨ã³ã³ã¼ãæåå",json_string:"JSONæåå",e164:"E.164çªå·",jwt:"JWT",template_literal:"å
¥åå¤"},n={nan:"NaN",number:"æ°å¤",array:"é
å"},r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`ç¡å¹ãªå
¥å: instanceof ${r.expected}ãæå¾
ããã¾ãããã${i}ãå
¥åããã¾ãã`;return`ç¡å¹ãªå
¥å: ${e}ãæå¾
ããã¾ãããã${i}ãå
¥åããã¾ãã`}case"invalid_value":if(1===r.values.length)return`ç¡å¹ãªå
¥å: ${tt(r.values[0])}ãæå¾
ããã¾ãã`;return`ç¡å¹ãªé¸æ: ${eB(r.values,"ã")}ã®ããããã§ããå¿
è¦ãããã¾ã`;case"too_big":{let t=r.inclusive?"以ä¸ã§ãã":"ããå°ãã",n=e[r.origin]??null;if(n)return`大ããããå¤: ${r.origin??"å¤"}ã¯${r.maximum.toString()}${n.unit??"è¦ç´ "}${t}å¿
è¦ãããã¾ã`;return`大ããããå¤: ${r.origin??"å¤"}ã¯${r.maximum.toString()}${t}å¿
è¦ãããã¾ã`}case"too_small":{let t=r.inclusive?"以ä¸ã§ãã":"ãã大ãã",n=e[r.origin]??null;if(n)return`å°ããããå¤: ${r.origin}ã¯${r.minimum.toString()}${n.unit}${t}å¿
è¦ãããã¾ã`;return`å°ããããå¤: ${r.origin}ã¯${r.minimum.toString()}${t}å¿
è¦ãããã¾ã`}
77case"invalid_format":if("starts_with"===r.format)return`ç¡å¹ãªæåå: "${r.prefix}"ã§å§ã¾ãå¿
è¦ãããã¾ã`;if("ends_with"===r.format)return`ç¡å¹ãªæåå: "${r.suffix}"ã§çµããå¿
è¦ãããã¾ã`;if("includes"===r.format)return`ç¡å¹ãªæåå: "${r.includes}"ãå«ãå¿
è¦ãããã¾ã`;if("regex"===r.format)return`ç¡å¹ãªæåå: ãã¿ã¼ã³${r.pattern}ã«ä¸è´ããå¿
è¦ãããã¾ã`;return`ç¡å¹ãª${t[r.format]??r.format}`;case"not_multiple_of":return`ç¡å¹ãªæ°å¤: ${r.divisor}ã®åæ°ã§ããå¿
è¦ãããã¾ã`;case"unrecognized_keys":return`èªèããã¦ããªããã¼${r.keys.length>1?"群":""}: ${eB(r.keys,"ã")}`;case"invalid_key":return`${r.origin}å
ã®ç¡å¹ãªãã¼`;case"invalid_union":default:return"ç¡å¹ãªå
¥å";case"invalid_element":return`${r.origin}å
ã®ç¡å¹ãªå¤`}})}},"ka",0,function(){let e,t,n;return{localeError:(e={string:{unit:"á¡áááááá",verb:"á£ááá á¨áááªááááá¡"},file:{unit:"áááá¢á",verb:"á£ááá á¨áááªááááá¡"},array:{unit:"ááááááá¢á",verb:"á£ááá á¨áááªááááá¡"},set:{unit:"ááááááá¢á",verb:"á£ááá á¨áááªááááá¡"}},t={regex:"á¨áá§áááá",email:"áá-á¤áá¡á¢áá¡ ááá¡áááá áá",url:"URL",emoji:"áááá¯á",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ááá áá¦á-áá á",date:"ááá áá¦á",time:"áá á",duration:"á®áááá á«áááááá",ipv4:"IPv4 ááá¡áááá áá",ipv6:"IPv6 ááá¡áááá áá",cidrv4:"IPv4 ááááááááá",cidrv6:"IPv6 ááááááááá",base64:"base64-ááááá ááá£áá áááá",base64url:"base64url-ááááá ááá£áá áááá",json_string:"JSON áááá",e164:"E.164 ááááá á",jwt:"JWT",template_literal:"á¨áá§áááá"},n={nan:"NaN",number:"á ááªá®áá",string:"áááá",boolean:"áá£ááááá",function:"á¤á£áá¥áªáá",array:"ááá¡ááá"},r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`áá áá¡á¬áá á á¨áá§áááá: ááá¡áááááááá instanceof ${r.expected}, ááá¦ááá£áá ${i}`;return`áá áá¡á¬áá á á¨áá§áááá: ááá¡áááááááá ${e}, ááá¦ááá£áá ${i}`}case"invalid_value":if(1===r.values.length)return`áá áá¡á¬áá á á¨áá§áááá: ááá¡áááááááá ${tt(r.values[0])}`;return`áá áá¡á¬áá á ááá áááá¢á: ááá¡ááááááááá áá á-áá áá ${eB(r.values,"|")}-ááá`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`áááááá¢áá áááá: ááá¡áááááááá ${r.origin??"áááá¨ááááááá"} ${n.verb} ${t}${r.maximum.toString()} ${n.unit}`;return`áááááá¢áá áááá: ááá¡áááááááá ${r.origin??"áááá¨ááááááá"} áá§áá¡ ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`áááááá¢áá ááá¢áá á: ááá¡áááááááá ${r.origin} ${n.verb} ${t}${r.minimum.toString()} ${n.unit}`;return`áááááá¢áá ááá¢áá á: ááá¡áááááááá ${r.origin} áá§áá¡ ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`áá áá¡á¬áá á áááá: á£ááá áá¬á§áááááá¡ "${r.prefix}"-áá`;if("ends_with"===r.format)return`áá áá¡á¬áá á áááá: á£ááá ááááá ááááááá¡ "${r.suffix}"-áá`;if("includes"===r.format)return`áá áá¡á¬áá á áááá: á£ááá á¨áááªááááá¡ "${r.includes}"-á¡`;if("regex"===r.format)return`áá áá¡á¬áá á áááá: á£ááá á¨ááá¡áááááááááá¡ á¨áááááá¡ ${r.pattern}`;return`áá áá¡á¬áá á ${t[r.format]??r.format}`;case"not_multiple_of":return`áá áá¡á¬áá á á ááªá®áá: á£ááá áá§áá¡ ${r.divisor}-áá¡ á¯áá ááá`;case"unrecognized_keys":return`á£áªáááá ááá¡áá¦áá${r.keys.length>1?"ááá":"á"}: ${eB(r.keys,", ")}`;
77case"invalid_key":return`áá áá¡á¬áá á ááá¡áá¦ááá ${r.origin}-á¨á`;case"invalid_union":default:return"áá áá¡á¬áá á á¨áá§áááá";case"invalid_element":return`áá áá¡á¬áá á áááá¨ááááááá ${r.origin}-á¨á`}})}},"kh",0,function(){return ll()},"km",0,ll,"ko",0,function(){let e,t,n;return{localeError:(e={string:{unit:"문ì",verb:"to have"},file:{unit:"ë°ì´í¸",verb:"to have"},array:{unit:"ê°",verb:"to have"},set:{unit:"ê°",verb:"to have"}},t={regex:"ì
ë ¥",email:"ì´ë©ì¼ 주ì",url:"URL",emoji:"ì´ëª¨ì§",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ë ì§ìê°",date:"ISO ë ì§",time:"ISO ìê°",duration:"ISO 기ê°",ipv4:"IPv4 주ì",ipv6:"IPv6 주ì",cidrv4:"IPv4 ë²ì",cidrv6:"IPv6 ë²ì",base64:"base64 ì¸ì½ë© 문ìì´",base64url:"base64url ì¸ì½ë© 문ìì´",json_string:"JSON 문ìì´",e164:"E.164 ë²í¸",jwt:"JWT",template_literal:"ì
ë ¥"},n={nan:"NaN"},r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`ì못ë ì
ë ¥: ìì íì
ì instanceof ${r.expected}, ë°ì íì
ì ${i}ì
ëë¤`;return`ì못ë ì
ë ¥: ìì íì
ì ${e}, ë°ì íì
ì ${i}ì
ëë¤`}case"invalid_value":if(1===r.values.length)return`ì못ë ì
ë ¥: ê°ì ${tt(r.values[0])} ì´ì´ì¼ í©ëë¤`;return`ì못ë ìµì
: ${eB(r.values,"ëë ")} ì¤ íëì¬ì¼ í©ëë¤`;case"too_big":{let t=r.inclusive?"ì´í":"미ë§",n="미ë§"===t?"ì´ì´ì¼ í©ëë¤":"ì¬ì¼ í©ëë¤",i=e[r.origin]??null,a=i?.unit??"ìì";if(i)return`${r.origin??"ê°"}ì´ ë무 í½ëë¤: ${r.maximum.toString()}${a} ${t}${n}`;return`${r.origin??"ê°"}ì´ ë무 í½ëë¤: ${r.maximum.toString()} ${t}${n}`}case"too_small":{let t=r.inclusive?"ì´ì":"ì´ê³¼",n="ì´ì"===t?"ì´ì´ì¼ í©ëë¤":"ì¬ì¼ í©ëë¤",i=e[r.origin]??null,a=i?.unit??"ìì";if(i)return`${r.origin??"ê°"}ì´ ë무 ììµëë¤: ${r.minimum.toString()}${a} ${t}${n}`;return`${r.origin??"ê°"}ì´ ë무 ììµëë¤: ${r.minimum.toString()} ${t}${n}`}case"invalid_format":if("starts_with"===r.format)return`ì못ë 문ìì´: "${r.prefix}"(ì¼)ë¡ ììí´ì¼ í©ëë¤`;if("ends_with"===r.format)return`ì못ë 문ìì´: "${r.suffix}"(ì¼)ë¡ ëëì¼ í©ëë¤`;if("includes"===r.format)return`ì못ë 문ìì´: "${r.includes}"ì(를) í¬í¨í´ì¼ í©ëë¤`;if("regex"===r.format)return`ì못ë 문ìì´: ì ê·ì ${r.pattern} í¨í´ê³¼ ì¼ì¹í´ì¼ í©ëë¤`;return`ì못ë ${t[r.format]??r.format}`;case"not_multiple_of":return`ì못ë ì«ì: ${r.divisor}ì ë°°ìì¬ì¼ í©ëë¤`;case"unrecognized_keys":return`ì¸ìí ì ìë í¤: ${eB(r.keys,", ")}`;case"invalid_key":return`ì못ë í¤: ${r.origin}`;case"invalid_union":default:return"ì못ë ì
ë ¥";case"invalid_element":return`ì못ë ê°: ${r.origin}`}})}},"lt",0,function(){return{localeError:(()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi bÅ«ti ne ilgesnÄ kaip",notInclusive:"turi bÅ«ti trumpesnÄ kaip"},bigger:{inclusive:"turi bÅ«ti ne trumpesnÄ kaip",notInclusive:"turi bÅ«ti ilgesnÄ kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi bÅ«ti ne didesnis kaip",notInclusive:"turi bÅ«ti mažesnis kaip"},bigger:{inclusive:"turi bÅ«ti ne mažesnis kaip",notInclusive:"turi bÅ«ti didesnis kaip"}}},array:{unit:{one:"elementÄ
",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turÄti ne daugiau kaip",notInclusive:"turi turÄti mažiau kaip"},bigger:{inclusive:"turi turÄti ne mažiau kaip",notInclusive:"turi turÄti daugiau kaip"}}},set:{unit:{one:"elementÄ
",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turÄti ne daugiau kaip",notInclusive:"turi turÄti mažiau kaip"},bigger:{inclusive:"turi turÄti ne mažiau kaip",notInclusive:"turi turÄti daugiau kaip"}}}};function t(t,n,r,i){let a=e[t]??null;return null===a?a:{unit:a.unit[n],verb:a.verb[i][r?"inclusive":"notInclusive"]}}let n={regex:"įvestis",email:"el. paÅ¡to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukmÄ",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutÄ",base64url:"base64url užkoduota eilutÄ",json_string:"JSON eilutÄ",e164:"E.164 numeris",jwt:"JWT",template_literal:"įvestis"},r={nan:"NaN",number:"skaiÄius",bigint:"sveikasis skaiÄius",string:"eilutÄ",boolean:"loginÄ reikÅ¡mÄ",undefined:"neapibrÄžta reikÅ¡mÄ",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulinÄ reikÅ¡mÄ"};return e=>
77{switch(e.code){case"invalid_type":{let t=r[e.expected]??e.expected,n=tp(e.input),i=r[n]??n;if(/^[A-Z]/.test(e.expected))return`Gautas tipas ${i}, o tikÄtasi - instanceof ${e.expected}`;return`Gautas tipas ${i}, o tikÄtasi - ${t}`}case"invalid_value":if(1===e.values.length)return`Privalo bÅ«ti ${tt(e.values[0])}`;return`Privalo bÅ«ti vienas iÅ¡ ${eB(e.values,"|")} pasirinkimų`;case"too_big":{let n=r[e.origin]??e.origin,i=t(e.origin,lc(Number(e.maximum)),e.inclusive??!1,"smaller");if(i?.verb)return`${lu(n??e.origin??"reikÅ¡mÄ")} ${i.verb} ${e.maximum.toString()} ${i.unit??"elementų"}`;let a=e.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${lu(n??e.origin??"reikÅ¡mÄ")} turi bÅ«ti ${a} ${e.maximum.toString()} ${i?.unit}`}case"too_small":{let n=r[e.origin]??e.origin,i=t(e.origin,lc(Number(e.minimum)),e.inclusive??!1,"bigger");if(i?.verb)return`${lu(n??e.origin??"reikÅ¡mÄ")} ${i.verb} ${e.minimum.toString()} ${i.unit??"elementų"}`;let a=e.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${lu(n??e.origin??"reikÅ¡mÄ")} turi bÅ«ti ${a} ${e.minimum.toString()} ${i?.unit}`}case"invalid_format":if("starts_with"===e.format)return`EilutÄ privalo prasidÄti "${e.prefix}"`;if("ends_with"===e.format)return`EilutÄ privalo pasibaigti "${e.suffix}"`;if("includes"===e.format)return`EilutÄ privalo įtraukti "${e.includes}"`;if("regex"===e.format)return`EilutÄ privalo atitikti ${e.pattern}`;return`Neteisingas ${n[e.format]??e.format}`;case"not_multiple_of":return`SkaiÄius privalo bÅ«ti ${e.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${e.keys.length>1?"i":"as"} rakt${e.keys.length>1?"ai":"as"}: ${eB(e.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":default:return"Klaidinga įvestis";case"invalid_element":{let t=r[e.origin]??e.origin;return`${lu(t??e.origin??"reikÅ¡mÄ")} turi klaidingÄ
įvestį`}}}})()}},"mk",0,function(){let e,t,n;return{localeError:(e={string:{unit:"знаÑи",verb:"да имааÑ"},file:{unit:"баÑÑи",verb:"да имааÑ"},array:{unit:"ÑÑавки",verb:"да имааÑ"},set:{unit:"ÑÑавки",verb:"да имааÑ"}},t={regex:"внеÑ",email:"адÑеÑа на е-поÑÑа",url:"URL",emoji:"емоÑи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO даÑÑм и вÑеме",date:"ISO даÑÑм",time:"ISO вÑеме",duration:"ISO вÑемеÑÑаеÑе",ipv4:"IPv4 адÑеÑа",ipv6:"IPv6 адÑеÑа",cidrv4:"IPv4 опÑег",cidrv6:"IPv6 опÑег",base64:"base64-енкодиÑана низа",base64url:"base64url-енкодиÑана низа",json_string:"JSON низа",e164:"E.164 бÑоÑ",jwt:"JWT",template_literal:"внеÑ"},n={nan:"NaN",number:"бÑоÑ",array:"низа"},r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`ÐÑеÑен внеÑ: Ñе оÑекÑва instanceof ${r.expected}, пÑимено ${i}`;return`ÐÑеÑен внеÑ: Ñе оÑекÑва ${e}, пÑимено ${i}`}case"invalid_value":if(1===r.values.length)return`Invalid input: expected ${tt(r.values[0])}`;return`ÐÑеÑана опÑиÑа: Ñе оÑекÑва една ${eB(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`ÐÑÐµÐ¼Ð½Ð¾Ð³Ñ Ð³Ð¾Ð»ÐµÐ¼: Ñе оÑекÑва ${r.origin??"вÑедноÑÑа"} да има ${t}${r.maximum.toString()} ${n.unit??"елеменÑи"}`;return`ÐÑÐµÐ¼Ð½Ð¾Ð³Ñ Ð³Ð¾Ð»ÐµÐ¼: Ñе оÑекÑва ${r.origin??"вÑедноÑÑа"} да биде ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`ÐÑÐµÐ¼Ð½Ð¾Ð³Ñ Ð¼Ð°Ð»: Ñе оÑекÑва ${r.origin} да има ${t}${r.minimum.toString()} ${n.unit}`;return`ÐÑÐµÐ¼Ð½Ð¾Ð³Ñ Ð¼Ð°Ð»: Ñе оÑекÑва ${r.origin} да биде ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`ÐеважеÑка низа: моÑа да запоÑнÑва Ñо "${r.prefix}"`;if("ends_with"===r.format)return`ÐеважеÑка низа: моÑа да завÑÑÑва Ñо "${r.suffix}"`;if("includes"===r.format)return`ÐеважеÑка низа: моÑа да вклÑÑÑва "${r.includes}"`;if("regex"===r.format)return`ÐеважеÑка низа: моÑа да одгоаÑа на паÑеÑÐ½Ð¾Ñ ${r.pattern}`;return`Invalid ${t[r.format]??r.format}`;case"not_multiple_of":return`ÐÑеÑен бÑоÑ: моÑа да биде делив Ñо ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"ÐепÑепознаени клÑÑеви":"ÐепÑепознаен клÑÑ"}: ${eB(r.keys,", ")}`;
77case"invalid_key":return`ÐÑеÑен клÑÑ Ð²Ð¾ ${r.origin}`;case"invalid_union":default:return"ÐÑеÑен внеÑ";case"invalid_element":return`ÐÑеÑна вÑедноÑÑ Ð²Ð¾ ${r.origin}`}})}},"ms",0,function(){let e,t,n;return{localeError:(e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}},t={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},n={nan:"NaN",number:"nombor"},r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Input tidak sah: dijangka instanceof ${r.expected}, diterima ${i}`;return`Input tidak sah: dijangka ${e}, diterima ${i}`}case"invalid_value":if(1===r.values.length)return`Input tidak sah: dijangka ${tt(r.values[0])}`;return`Pilihan tidak sah: dijangka salah satu daripada ${eB(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Terlalu besar: dijangka ${r.origin??"nilai"} ${n.verb} ${t}${r.maximum.toString()} ${n.unit??"elemen"}`;return`Terlalu besar: dijangka ${r.origin??"nilai"} adalah ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Terlalu kecil: dijangka ${r.origin} ${n.verb} ${t}${r.minimum.toString()} ${n.unit}`;return`Terlalu kecil: dijangka ${r.origin} adalah ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`String tidak sah: mesti bermula dengan "${r.prefix}"`;if("ends_with"===r.format)return`String tidak sah: mesti berakhir dengan "${r.suffix}"`;if("includes"===r.format)return`String tidak sah: mesti mengandungi "${r.includes}"`;if("regex"===r.format)return`String tidak sah: mesti sepadan dengan corak ${r.pattern}`;return`${t[r.format]??r.format} tidak sah`;case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${eB(r.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${r.origin}`;case"invalid_union":default:return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${r.origin}`}})}},"nl",0,function(){let e,t,n;return{localeError:(e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}},t={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},n={nan:"NaN",number:"getal"},r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Ongeldige invoer: verwacht instanceof ${r.expected}, ontving ${i}`;return`Ongeldige invoer: verwacht ${e}, ontving ${i}`}case"invalid_value":if(1===r.values.length)return`Ongeldige invoer: verwacht ${tt(r.values[0])}`;return`Ongeldige optie: verwacht \xe9\xe9n van ${eB(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null,i="date"===r.origin?"laat":"string"===r.origin?"lang":"groot";if(n)return`Te ${i}: verwacht dat ${r.origin??"waarde"} ${t}${r.maximum.toString()} ${n.unit??"elementen"} ${n.verb}`;return`Te ${i}: verwacht dat ${r.origin??"waarde"} ${t}${r.maximum.toString()} is`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null,i="date"===r.origin?"vroeg":"string"===r.origin?"kort":"klein";if(n)return`Te ${i}: verwacht dat ${r.origin} ${t}${r.minimum.toString()} ${n.unit} ${n.verb}`;return`Te ${i}: verwacht dat ${r.origin} ${t}${r.minimum.toString()} is`}
77case"invalid_format":if("starts_with"===r.format)return`Ongeldige tekst: moet met "${r.prefix}" beginnen`;if("ends_with"===r.format)return`Ongeldige tekst: moet op "${r.suffix}" eindigen`;if("includes"===r.format)return`Ongeldige tekst: moet "${r.includes}" bevatten`;if("regex"===r.format)return`Ongeldige tekst: moet overeenkomen met patroon ${r.pattern}`;return`Ongeldig: ${t[r.format]??r.format}`;case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${r.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${r.keys.length>1?"s":""}: ${eB(r.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${r.origin}`;case"invalid_union":default:return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${r.origin}`}})}},"no",0,function(){let e,t,n;return{localeError:(e={string:{unit:"tegn",verb:"Ã¥ ha"},file:{unit:"bytes",verb:"Ã¥ ha"},array:{unit:"elementer",verb:"Ã¥ inneholde"},set:{unit:"elementer",verb:"Ã¥ inneholde"}},t={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Ã¥de",ipv6:"IPv6-omrÃ¥de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},n={nan:"NaN",number:"tall",array:"liste"},r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Ugyldig input: forventet instanceof ${r.expected}, fikk ${i}`;return`Ugyldig input: forventet ${e}, fikk ${i}`}case"invalid_value":if(1===r.values.length)return`Ugyldig verdi: forventet ${tt(r.values[0])}`;return`Ugyldig valg: forventet en av ${eB(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`For stor(t): forventet ${r.origin??"value"} til \xe5 ha ${t}${r.maximum.toString()} ${n.unit??"elementer"}`;return`For stor(t): forventet ${r.origin??"value"} til \xe5 ha ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`For lite(n): forventet ${r.origin} til \xe5 ha ${t}${r.minimum.toString()} ${n.unit}`;return`For lite(n): forventet ${r.origin} til \xe5 ha ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Ugyldig streng: m\xe5 starte med "${r.prefix}"`;if("ends_with"===r.format)return`Ugyldig streng: m\xe5 ende med "${r.suffix}"`;if("includes"===r.format)return`Ugyldig streng: m\xe5 inneholde "${r.includes}"`;if("regex"===r.format)return`Ugyldig streng: m\xe5 matche m\xf8nsteret ${r.pattern}`;return`Ugyldig ${t[r.format]??r.format}`;case"not_multiple_of":return`Ugyldig tall: m\xe5 v\xe6re et multiplum av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${eB(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xf8kkel i ${r.origin}`;case"invalid_union":default:return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${r.origin}`}})}},"ota",0,function(){let e,t,n;return{localeError:(e={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}},t={regex:"giren",email:"epostagâh",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âmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 niÅânı",ipv6:"IPv6 niÅânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-Åifreli metin",base64url:"base64url-Åifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"},n={nan:"NaN",number:"numara",array:"saf",null:"gayb"},r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`F\xe2sit giren: umulan instanceof ${r.expected}, alınan ${i}`;return`F\xe2sit giren: umulan ${e}, alınan ${i}`}
77case"invalid_value":if(1===r.values.length)return`F\xe2sit giren: umulan ${tt(r.values[0])}`;return`F\xe2sit tercih: m\xfbteberler ${eB(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Fazla b\xfcy\xfck: ${r.origin??"value"}, ${t}${r.maximum.toString()} ${n.unit??"elements"} sahip olmalıydı.`;return`Fazla b\xfcy\xfck: ${r.origin??"value"}, ${t}${r.maximum.toString()} olmalıydı.`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Fazla k\xfc\xe7\xfck: ${r.origin}, ${t}${r.minimum.toString()} ${n.unit} sahip olmalıydı.`;return`Fazla k\xfc\xe7\xfck: ${r.origin}, ${t}${r.minimum.toString()} olmalıydı.`}case"invalid_format":if("starts_with"===r.format)return`F\xe2sit metin: "${r.prefix}" ile baÅlamalı.`;if("ends_with"===r.format)return`F\xe2sit metin: "${r.suffix}" ile bitmeli.`;if("includes"===r.format)return`F\xe2sit metin: "${r.includes}" ihtiv\xe2 etmeli.`;if("regex"===r.format)return`F\xe2sit metin: ${r.pattern} nakÅına uymalı.`;return`F\xe2sit ${t[r.format]??r.format}`;case"not_multiple_of":return`F\xe2sit sayı: ${r.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${r.keys.length>1?"s":""}: ${eB(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xe7in tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${r.origin} i\xe7in tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}})}},"pl",0,function(){let e,t,n;return{localeError:(e={string:{unit:"znaków",verb:"mieÄ"},file:{unit:"bajtów",verb:"mieÄ"},array:{unit:"elementów",verb:"mieÄ"},set:{unit:"elementów",verb:"mieÄ"}},t={regex:"wyrażenie",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Ä
g znaków zakodowany w formacie base64",base64url:"ciÄ
g znaków zakodowany w formacie base64url",json_string:"ciÄ
g znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejÅcie"},n={nan:"NaN",number:"liczba",array:"tablica"},r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`NieprawidÅowe dane wejÅciowe: oczekiwano instanceof ${r.expected}, otrzymano ${i}`;return`NieprawidÅowe dane wejÅciowe: oczekiwano ${e}, otrzymano ${i}`}case"invalid_value":if(1===r.values.length)return`NieprawidÅowe dane wejÅciowe: oczekiwano ${tt(r.values[0])}`;return`NieprawidÅowa opcja: oczekiwano jednej z wartoÅci ${eB(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Za duża wartoÅÄ: oczekiwano, że ${r.origin??"wartoÅÄ"} bÄdzie mieÄ ${t}${r.maximum.toString()} ${n.unit??"elementów"}`;return`Zbyt duż(y/a/e): oczekiwano, że ${r.origin??"wartoÅÄ"} bÄdzie wynosiÄ ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Za maÅa wartoÅÄ: oczekiwano, że ${r.origin??"wartoÅÄ"} bÄdzie mieÄ ${t}${r.minimum.toString()} ${n.unit??"elementów"}`;return`Zbyt maÅ(y/a/e): oczekiwano, że ${r.origin??"wartoÅÄ"} bÄdzie wynosiÄ ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`NieprawidÅowy ciÄ
g znak\xf3w: musi zaczynaÄ siÄ od "${r.prefix}"`;if("ends_with"===r.format)return`NieprawidÅowy ciÄ
g znak\xf3w: musi koÅczyÄ siÄ na "${r.suffix}"`;if("includes"===r.format)return`NieprawidÅowy ciÄ
g znak\xf3w: musi zawieraÄ "${r.includes}"`;if("regex"===r.format)return`NieprawidÅowy ciÄ
g znak\xf3w: musi odpowiadaÄ wzorcowi ${r.pattern}`;return`NieprawidÅow(y/a/e) ${t[r.format]??r.format}`;case"not_multiple_of":return`NieprawidÅowa liczba: musi byÄ wielokrotnoÅciÄ
${r.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${r.keys.length>1?"s":""}: ${eB(r.keys,", ")}`;
77case"invalid_key":return`NieprawidÅowy klucz w ${r.origin}`;case"invalid_union":default:return"NieprawidÅowe dane wejÅciowe";case"invalid_element":return`NieprawidÅowa wartoÅÄ w ${r.origin}`}})}},"ps",0,function(){let e,t,n;return{localeError:(e={string:{unit:"تÙÚ©Ù",verb:"ÙÙØ±Ù"},file:{unit:"باÛټس",verb:"ÙÙØ±Ù"},array:{unit:"تÙÚ©Ù",verb:"ÙÙØ±Ù"},set:{unit:"تÙÚ©Ù",verb:"ÙÙØ±Ù"}},t={regex:"ÙØ±ÙدÙ",email:"برÛÚÙØ§ÙÛÚ©",url:"Û٠آر اÙ",emoji:"اÛÙ
ÙØ¬Ù",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ÙÛÙ¼Ù Ø§Ù ÙØ®Øª",date:"ÙÛÙ¼Ù",time:"ÙØ®Øª",duration:"Ù
ÙØ¯Ù",ipv4:"د IPv4 پتÙ",ipv6:"د IPv6 پتÙ",cidrv4:"د IPv4 ساØÙ",cidrv6:"د IPv6 ساØÙ",base64:"base64-encoded Ù
تÙ",base64url:"base64url-encoded Ù
تÙ",json_string:"JSON Ù
تÙ",e164:"د E.164 Ø´Ù
ÛØ±Ù",jwt:"JWT",template_literal:"ÙØ±ÙدÙ"},n={nan:"NaN",number:"عدد",array:"ارÛ"},r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`ÙØ§Ø³Ù
ÙØ±ÙدÙ: Ø¨Ø§ÛØ¯ instanceof ${r.expected} ÙØ§Û, Ù
ګر ${i} ØªØ±ÙØ§Ø³Ù Ø´Ù`;return`ÙØ§Ø³Ù
ÙØ±ÙدÙ: Ø¨Ø§ÛØ¯ ${e} ÙØ§Û, Ù
ګر ${i} ØªØ±ÙØ§Ø³Ù Ø´Ù`}case"invalid_value":if(1===r.values.length)return`ÙØ§Ø³Ù
ÙØ±ÙدÙ: Ø¨Ø§ÛØ¯ ${tt(r.values[0])} ÙØ§Û`;return`ÙØ§Ø³Ù
Ø§ÙØªØ®Ø§Ø¨: Ø¨Ø§ÛØ¯ ÛÙ ÙÙ ${eB(r.values,"|")} Ú
Ø®Ù ÙØ§Û`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`ÚÛØ± ÙÙÛ: ${r.origin??"Ø§Ø±Ø²ÚØª"} Ø¨Ø§ÛØ¯ ${t}${r.maximum.toString()} ${n.unit??"Ø¹ÙØµØ±ÙÙÙ"} ÙÙØ±Ù`;return`ÚÛØ± ÙÙÛ: ${r.origin??"Ø§Ø±Ø²ÚØª"} Ø¨Ø§ÛØ¯ ${t}${r.maximum.toString()} ÙÙ`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`ÚÛØ± Ú©ÙÚÙÛ: ${r.origin} Ø¨Ø§ÛØ¯ ${t}${r.minimum.toString()} ${n.unit} ÙÙØ±Ù`;return`ÚÛØ± Ú©ÙÚÙÛ: ${r.origin} Ø¨Ø§ÛØ¯ ${t}${r.minimum.toString()} ÙÙ`}case"invalid_format":if("starts_with"===r.format)return`ÙØ§Ø³Ù
Ù
تÙ: Ø¨Ø§ÛØ¯ د "${r.prefix}" سر٠پÛÙ Ø´Ù`;if("ends_with"===r.format)return`ÙØ§Ø³Ù
Ù
تÙ: Ø¨Ø§ÛØ¯ د "${r.suffix}" Ø³Ø±Ù Ù¾Ø§Û ØªÙ ÙØ±Ø³ÙÚÙ`;if("includes"===r.format)return`ÙØ§Ø³Ù
Ù
تÙ: Ø¨Ø§ÛØ¯ "${r.includes}" ÙÙØ±Ù`;if("regex"===r.format)return`ÙØ§Ø³Ù
Ù
تÙ: Ø¨Ø§ÛØ¯ د ${r.pattern} سر٠Ù
Ø·Ø§Ø¨ÙØª ÙÙØ±Ù`;return`${t[r.format]??r.format} ÙØ§Ø³Ù
دÛ`;case"not_multiple_of":return`ÙØ§Ø³Ù
عدد: Ø¨Ø§ÛØ¯ د ${r.divisor} Ù
ضرب ÙÙ`;case"unrecognized_keys":return`ÙØ§Ø³Ù
${r.keys.length>1?"Ú©ÙÛÚÙÙÙ":"Ú©ÙÛÚ"}: ${eB(r.keys,", ")}`;case"invalid_key":return`ÙØ§Ø³Ù
Ú©ÙÛÚ Ù¾Ù ${r.origin} Ú©Û`;case"invalid_union":default:return"ÙØ§Ø³Ù
Ù ÙØ±ÙدÙ";case"invalid_element":return`ÙØ§Ø³Ù
Ø¹ÙØµØ± Ù¾Ù ${r.origin} Ú©Û`}})}},"pt",0,function(){let e,t,n;return{localeError:(e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}},t={regex:"padrão",email:"endereço 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ção ISO",ipv4:"endereço IPv4",ipv6:"endereço 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úmero E.164",jwt:"JWT",template_literal:"entrada"},n={nan:"NaN",number:"número",null:"nulo"},r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Tipo inv\xe1lido: esperado instanceof ${r.expected}, recebido ${i}`;return`Tipo inv\xe1lido: esperado ${e}, recebido ${i}`}case"invalid_value":if(1===r.values.length)return`Entrada inv\xe1lida: esperado ${tt(r.values[0])}`;return`Op\xe7\xe3o inv\xe1lida: esperada uma das ${eB(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Muito grande: esperado que ${r.origin??"valor"} tivesse ${t}${r.maximum.toString()} ${n.unit??"elementos"}`;return`Muito grande: esperado que ${r.origin??"valor"} fosse ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Muito pequeno: esperado que ${r.origin} tivesse ${t}${r.minimum.toString()} ${n.unit}`;return`Muito pequeno: esperado que ${r.origin} fosse ${t}${r.minimum.toString()}`}
77case"invalid_format":if("starts_with"===r.format)return`Texto inv\xe1lido: deve come\xe7ar com "${r.prefix}"`;if("ends_with"===r.format)return`Texto inv\xe1lido: deve terminar com "${r.suffix}"`;if("includes"===r.format)return`Texto inv\xe1lido: deve incluir "${r.includes}"`;if("regex"===r.format)return`Texto inv\xe1lido: deve corresponder ao padr\xe3o ${r.pattern}`;return`${t[r.format]??r.format} inv\xe1lido`;case"not_multiple_of":return`N\xfamero inv\xe1lido: deve ser m\xfaltiplo de ${r.divisor}`;case"unrecognized_keys":return`Chave${r.keys.length>1?"s":""} desconhecida${r.keys.length>1?"s":""}: ${eB(r.keys,", ")}`;case"invalid_key":return`Chave inv\xe1lida em ${r.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inv\xe1lido em ${r.origin}`;default:return"Campo inválido"}})}},"ro",0,function(){let e,t,n;return{localeError:(e={string:{unit:"caractere",verb:"sÄ aibÄ"},file:{unit:"octeÈi",verb:"sÄ aibÄ"},array:{unit:"elemente",verb:"sÄ aibÄ"},set:{unit:"elemente",verb:"sÄ aibÄ"},map:{unit:"intrÄri",verb:"sÄ aibÄ"}},t={regex:"intrare",email:"adresÄ de email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datÄ Èi orÄ ISO",date:"datÄ ISO",time:"orÄ ISO",duration:"duratÄ ISO",ipv4:"adresÄ IPv4",ipv6:"adresÄ IPv6",mac:"adresÄ MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"Èir codat base64",base64url:"Èir codat base64url",json_string:"Èir JSON",e164:"numÄr E.164",jwt:"JWT",template_literal:"intrare"},n={nan:"NaN",string:"Èir",number:"numÄr",boolean:"boolean",function:"funcÈie",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"numÄr mare",void:"void",never:"never",map:"hartÄ",set:"set"},r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;return`Intrare invalidÄ: aÈteptat ${e}, primit ${i}`}case"invalid_value":if(1===r.values.length)return`Intrare invalidÄ: aÈteptat ${tt(r.values[0])}`;return`OpÈiune invalidÄ: aÈteptat una dintre ${eB(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Prea mare: aÈteptat ca ${r.origin??"valoarea"} ${n.verb} ${t}${r.maximum.toString()} ${n.unit??"elemente"}`;return`Prea mare: aÈteptat ca ${r.origin??"valoarea"} sÄ fie ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Prea mic: aÈteptat ca ${r.origin} ${n.verb} ${t}${r.minimum.toString()} ${n.unit}`;return`Prea mic: aÈteptat ca ${r.origin} sÄ fie ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Èir invalid: trebuie sÄ \xeenceapÄ cu "${r.prefix}"`;if("ends_with"===r.format)return`Èir invalid: trebuie sÄ se termine cu "${r.suffix}"`;if("includes"===r.format)return`Èir invalid: trebuie sÄ includÄ "${r.includes}"`;if("regex"===r.format)return`Èir invalid: trebuie sÄ se potriveascÄ cu modelul ${r.pattern}`;return`Format invalid: ${t[r.format]??r.format}`;case"not_multiple_of":return`NumÄr invalid: trebuie sÄ fie multiplu de ${r.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${eB(r.keys,", ")}`;case"invalid_key":return`Cheie invalidÄ \xeen ${r.origin}`;case"invalid_union":default:return"Intrare invalidÄ";case"invalid_element":return`Valoare invalidÄ \xeen ${r.origin}`}})}},"ru",0,function(){let e,t,n;return{localeError:(e={string:{unit:{one:"Ñимвол",few:"Ñимвола",many:"Ñимволов"},verb:"имеÑÑ"},file:{unit:{one:"байÑ",few:"байÑа",many:"байÑ"},verb:"имеÑÑ"},array:{unit:{one:"ÑлеменÑ",few:"ÑлеменÑа",many:"ÑлеменÑов"},verb:"имеÑÑ"},set:{unit:{one:"ÑлеменÑ",few:"ÑлеменÑа",many:"ÑлеменÑов"},verb:"имеÑÑ"}},t={regex:"ввод",email:"email адÑеÑ",url:"URL",emoji:"Ñмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO даÑа и вÑемÑ",date:"ISO даÑа",time:"ISO вÑемÑ",duration:"ISO длиÑелÑноÑÑÑ",ipv4:"IPv4 адÑеÑ",ipv6:"IPv6 адÑеÑ",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"ÑÑÑока в ÑоÑмаÑе base64",base64url:"ÑÑÑока в ÑоÑмаÑе base64url",json_string:"JSON ÑÑÑока",e164:"Ð½Ð¾Ð¼ÐµÑ E.164",jwt:"JWT",template_literal:"ввод"},n={nan:"NaN",number:"ÑиÑло",array:"маÑÑив"},r=>
77{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`ÐевеÑнÑй ввод: ожидалоÑÑ instanceof ${r.expected}, полÑÑено ${i}`;return`ÐевеÑнÑй ввод: ожидалоÑÑ ${e}, полÑÑено ${i}`}case"invalid_value":if(1===r.values.length)return`ÐевеÑнÑй ввод: ожидалоÑÑ ${tt(r.values[0])}`;return`ÐевеÑнÑй ваÑианÑ: ожидалоÑÑ Ð¾Ð´Ð½Ð¾ из ${eB(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n){let e=ld(Number(r.maximum),n.unit.one,n.unit.few,n.unit.many);return`СлиÑком болÑÑое знаÑение: ожидалоÑÑ, ÑÑо ${r.origin??"знаÑение"} бÑÐ´ÐµÑ Ð¸Ð¼ÐµÑÑ ${t}${r.maximum.toString()} ${e}`}return`СлиÑком болÑÑое знаÑение: ожидалоÑÑ, ÑÑо ${r.origin??"знаÑение"} бÑÐ´ÐµÑ ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n){let e=ld(Number(r.minimum),n.unit.one,n.unit.few,n.unit.many);return`СлиÑком маленÑкое знаÑение: ожидалоÑÑ, ÑÑо ${r.origin} бÑÐ´ÐµÑ Ð¸Ð¼ÐµÑÑ ${t}${r.minimum.toString()} ${e}`}return`СлиÑком маленÑкое знаÑение: ожидалоÑÑ, ÑÑо ${r.origin} бÑÐ´ÐµÑ ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`ÐевеÑÐ½Ð°Ñ ÑÑÑока: должна наÑинаÑÑÑÑ Ñ "${r.prefix}"`;if("ends_with"===r.format)return`ÐевеÑÐ½Ð°Ñ ÑÑÑока: должна заканÑиваÑÑÑÑ Ð½Ð° "${r.suffix}"`;if("includes"===r.format)return`ÐевеÑÐ½Ð°Ñ ÑÑÑока: должна ÑодеÑжаÑÑ "${r.includes}"`;if("regex"===r.format)return`ÐевеÑÐ½Ð°Ñ ÑÑÑока: должна ÑооÑвеÑÑÑвоваÑÑ ÑÐ°Ð±Ð»Ð¾Ð½Ñ ${r.pattern}`;return`ÐевеÑнÑй ${t[r.format]??r.format}`;case"not_multiple_of":return`ÐевеÑное ÑиÑло: должно бÑÑÑ ÐºÑаÑнÑм ${r.divisor}`;case"unrecognized_keys":return`ÐеÑаÑпознанн${r.keys.length>1?"Ñе":"Ñй"} клÑÑ${r.keys.length>1?"и":""}: ${eB(r.keys,", ")}`;case"invalid_key":return`ÐевеÑнÑй клÑÑ Ð² ${r.origin}`;case"invalid_union":default:return"ÐевеÑнÑе вÑ
однÑе даннÑе";case"invalid_element":return`ÐевеÑное знаÑение в ${r.origin}`}})}},"sl",0,function(){let e,t,n;return{localeError:(e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}},t={regex:"vnos",email:"e-poÅ¡tni 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 Äas",date:"ISO datum",time:"ISO Äas",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 Å¡tevilka",jwt:"JWT",template_literal:"vnos"},n={nan:"NaN",number:"Å¡tevilo",array:"tabela"},r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Neveljaven vnos: priÄakovano instanceof ${r.expected}, prejeto ${i}`;return`Neveljaven vnos: priÄakovano ${e}, prejeto ${i}`}case"invalid_value":if(1===r.values.length)return`Neveljaven vnos: priÄakovano ${tt(r.values[0])}`;return`Neveljavna možnost: priÄakovano eno izmed ${eB(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Preveliko: priÄakovano, da bo ${r.origin??"vrednost"} imelo ${t}${r.maximum.toString()} ${n.unit??"elementov"}`;return`Preveliko: priÄakovano, da bo ${r.origin??"vrednost"} ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Premajhno: priÄakovano, da bo ${r.origin} imelo ${t}${r.minimum.toString()} ${n.unit}`;return`Premajhno: priÄakovano, da bo ${r.origin} ${t}${r.minimum.toString()}`}
77case"invalid_format":if("starts_with"===r.format)return`Neveljaven niz: mora se zaÄeti z "${r.prefix}"`;if("ends_with"===r.format)return`Neveljaven niz: mora se konÄati z "${r.suffix}"`;if("includes"===r.format)return`Neveljaven niz: mora vsebovati "${r.includes}"`;if("regex"===r.format)return`Neveljaven niz: mora ustrezati vzorcu ${r.pattern}`;return`Neveljaven ${t[r.format]??r.format}`;case"not_multiple_of":return`Neveljavno Å¡tevilo: mora biti veÄkratnik ${r.divisor}`;case"unrecognized_keys":return`Neprepoznan${r.keys.length>1?"i kljuÄi":" kljuÄ"}: ${eB(r.keys,", ")}`;case"invalid_key":return`Neveljaven kljuÄ v ${r.origin}`;case"invalid_union":default:return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${r.origin}`}})}},"sv",0,function(){let e,t,n;return{localeError:(e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehÃ¥lla"},set:{unit:"objekt",verb:"att innehÃ¥lla"}},t={regex:"reguljärt 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äng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},n={nan:"NaN",number:"antal",array:"lista"},r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Ogiltig inmatning: f\xf6rv\xe4ntat instanceof ${r.expected}, fick ${i}`;return`Ogiltig inmatning: f\xf6rv\xe4ntat ${e}, fick ${i}`}case"invalid_value":if(1===r.values.length)return`Ogiltig inmatning: f\xf6rv\xe4ntat ${tt(r.values[0])}`;return`Ogiltigt val: f\xf6rv\xe4ntade en av ${eB(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`F\xf6r stor(t): f\xf6rv\xe4ntade ${r.origin??"värdet"} att ha ${t}${r.maximum.toString()} ${n.unit??"element"}`;return`F\xf6r stor(t): f\xf6rv\xe4ntat ${r.origin??"värdet"} att ha ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`F\xf6r lite(t): f\xf6rv\xe4ntade ${r.origin??"värdet"} att ha ${t}${r.minimum.toString()} ${n.unit}`;return`F\xf6r lite(t): f\xf6rv\xe4ntade ${r.origin??"värdet"} att ha ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Ogiltig str\xe4ng: m\xe5ste b\xf6rja med "${r.prefix}"`;if("ends_with"===r.format)return`Ogiltig str\xe4ng: m\xe5ste sluta med "${r.suffix}"`;if("includes"===r.format)return`Ogiltig str\xe4ng: m\xe5ste inneh\xe5lla "${r.includes}"`;if("regex"===r.format)return`Ogiltig str\xe4ng: m\xe5ste matcha m\xf6nstret "${r.pattern}"`;return`Ogiltig(t) ${t[r.format]??r.format}`;case"not_multiple_of":return`Ogiltigt tal: m\xe5ste vara en multipel av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${eB(r.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${r.origin??"värdet"}`;case"invalid_union":default:return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xe4rde i ${r.origin??"värdet"}`}})}},"ta",0,function(){let e,t,n;return{localeError:(e={string:{unit:"à®à®´à¯à®¤à¯à®¤à¯à®à¯à®à®³à¯",verb:"à®à¯à®£à¯à®à®¿à®°à¯à®à¯à® வà¯à®£à¯à®à¯à®®à¯"},file:{unit:"பà¯à®à¯à®à¯à®à®³à¯",verb:"à®à¯à®£à¯à®à®¿à®°à¯à®à¯à® வà¯à®£à¯à®à¯à®®à¯"},array:{unit:"à®à®±à¯à®ªà¯à®ªà¯à®à®³à¯",verb:"à®à¯à®£à¯à®à®¿à®°à¯à®à¯à® வà¯à®£à¯à®à¯à®®à¯"},set:{unit:"à®à®±à¯à®ªà¯à®ªà¯à®à®³à¯",verb:"à®à¯à®£à¯à®à®¿à®°à¯à®à¯à® வà¯à®£à¯à®à¯à®®à¯"}},t={regex:"à®à®³à¯à®³à¯à®à¯",email:"மினà¯à®©à®à¯à®à®²à¯ à®®à¯à®à®µà®°à®¿",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தà¯à®¤à®¿ நà¯à®°à®®à¯",date:"ISO தà¯à®¤à®¿",time:"ISO நà¯à®°à®®à¯",duration:"ISO à®à®¾à®² à®
ளவà¯",ipv4:"IPv4 à®®à¯à®à®µà®°à®¿",ipv6:"IPv6 à®®à¯à®à®µà®°à®¿",cidrv4:"IPv4 வரமà¯à®ª
77à¯",cidrv6:"IPv6 வரமà¯à®ªà¯",base64:"base64-encoded à®à®°à®®à¯",base64url:"base64url-encoded à®à®°à®®à¯",json_string:"JSON à®à®°à®®à¯",e164:"E.164 à®à®£à¯",jwt:"JWT",template_literal:"input"},n={nan:"NaN",number:"à®à®£à¯",array:"à®
ணி",null:"வà¯à®±à¯à®®à¯"},r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`தவறான à®à®³à¯à®³à¯à®à¯: à®à®¤à®¿à®°à¯à®ªà®¾à®°à¯à®à¯à®à®ªà¯à®ªà®à¯à®à®¤à¯ instanceof ${r.expected}, பà¯à®±à®ªà¯à®ªà®à¯à®à®¤à¯ ${i}`;return`தவறான à®à®³à¯à®³à¯à®à¯: à®à®¤à®¿à®°à¯à®ªà®¾à®°à¯à®à¯à®à®ªà¯à®ªà®à¯à®à®¤à¯ ${e}, பà¯à®±à®ªà¯à®ªà®à¯à®à®¤à¯ ${i}`}case"invalid_value":if(1===r.values.length)return`தவறான à®à®³à¯à®³à¯à®à¯: à®à®¤à®¿à®°à¯à®ªà®¾à®°à¯à®à¯à®à®ªà¯à®ªà®à¯à®à®¤à¯ ${tt(r.values[0])}`;return`தவறான விரà¯à®ªà¯à®ªà®®à¯: à®à®¤à®¿à®°à¯à®ªà®¾à®°à¯à®à¯à®à®ªà¯à®ªà®à¯à®à®¤à¯ ${eB(r.values,"|")} à®à®²à¯ à®à®©à¯à®±à¯`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`மி஠பà¯à®°à®¿à®¯à®¤à¯: à®à®¤à®¿à®°à¯à®ªà®¾à®°à¯à®à¯à®à®ªà¯à®ªà®à¯à®à®¤à¯ ${r.origin??"மதிபà¯à®ªà¯"} ${t}${r.maximum.toString()} ${n.unit??"à®à®±à¯à®ªà¯à®ªà¯à®à®³à¯"} à®à® à®à®°à¯à®à¯à® வà¯à®£à¯à®à¯à®®à¯`;return`மி஠பà¯à®°à®¿à®¯à®¤à¯: à®à®¤à®¿à®°à¯à®ªà®¾à®°à¯à®à¯à®à®ªà¯à®ªà®à¯à®à®¤à¯ ${r.origin??"மதிபà¯à®ªà¯"} ${t}${r.maximum.toString()} à®à® à®à®°à¯à®à¯à® வà¯à®£à¯à®à¯à®®à¯`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`மிà®à®à¯ à®à®¿à®±à®¿à®¯à®¤à¯: à®à®¤à®¿à®°à¯à®ªà®¾à®°à¯à®à¯à®à®ªà¯à®ªà®à¯à®à®¤à¯ ${r.origin} ${t}${r.minimum.toString()} ${n.unit} à®à® à®à®°à¯à®à¯à® வà¯à®£à¯à®à¯à®®à¯`;return`மிà®à®à¯ à®à®¿à®±à®¿à®¯à®¤à¯: à®à®¤à®¿à®°à¯à®ªà®¾à®°à¯à®à¯à®à®ªà¯à®ªà®à¯à®à®¤à¯ ${r.origin} ${t}${r.minimum.toString()} à®à® à®à®°à¯à®à¯à® வà¯à®£à¯à®à¯à®®à¯`}case"invalid_format":if("starts_with"===r.format)return`தவறான à®à®°à®®à¯: "${r.prefix}" à®à®²à¯ தà¯à®à®à¯à® வà¯à®£à¯à®à¯à®®à¯`;if("ends_with"===r.format)return`தவறான à®à®°à®®à¯: "${r.suffix}" à®à®²à¯ à®®à¯à®à®¿à®µà®à¯à®¯ வà¯à®£à¯à®à¯à®®à¯`;if("includes"===r.format)return`தவறான à®à®°à®®à¯: "${r.includes}" à® à®à®³à¯à®³à®à®à¯à® வà¯à®£à¯à®à¯à®®à¯`;if("regex"===r.format)return`தவறான à®à®°à®®à¯: ${r.pattern} à®®à¯à®±à¯à®ªà®¾à®à¯à®à¯à®à®©à¯ பà¯à®°à¯à®¨à¯à®¤ வà¯à®£à¯à®à¯à®®à¯`;return`தவறான ${t[r.format]??r.format}`;case"not_multiple_of":return`தவறான à®à®£à¯: ${r.divisor} à®à®©à¯ பலமா஠à®à®°à¯à®à¯à® வà¯à®£à¯à®à¯à®®à¯`;case"unrecognized_keys":return`à®
à®à¯à®¯à®¾à®³à®®à¯ தà¯à®°à®¿à®¯à®¾à®¤ விà®à¯${r.keys.length>1?"à®à®³à¯":""}: ${eB(r.keys,", ")}`;case"invalid_key":return`${r.origin} à®à®²à¯ தவறான விà®à¯`;case"invalid_union":default:return"தவறான à®à®³à¯à®³à¯à®à¯";case"invalid_element":return`${r.origin} à®à®²à¯ தவறான மதிபà¯à®ªà¯`}})}},"th",0,function(){let e,t,n;return{localeError:(e={string:{unit:"à¸à¸±à¸§à¸à¸±à¸à¸©à¸£",verb:"à¸à¸§à¸£à¸¡à¸µ"},file:{unit:"à¹à¸à¸à¹",verb:"à¸à¸§à¸£à¸¡à¸µ"},array:{unit:"รายà¸à¸²à¸£",verb:"à¸à¸§à¸£à¸¡à¸µ"},set:{unit:"รายà¸à¸²à¸£",verb:"à¸à¸§à¸£à¸¡à¸µ"}},t={regex:"à¸à¹à¸à¸¡à¸¹à¸¥à¸à¸µà¹à¸à¹à¸à¸",email:"à¸à¸µà¹à¸à¸¢à¸¹à¹à¸à¸µà¹à¸¡à¸¥",url:"URL",emoji:"à¸à¸´à¹à¸¡à¸à¸´",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วัà¸à¸à¸µà¹à¹à¸§à¸¥à¸²à¹à¸à¸ ISO",date:"วัà¸à¸à¸µà¹à¹à¸à¸ ISO",time:"à¹à¸§à¸¥à¸²à¹à¸à¸ ISO",duration:"à¸à¹à¸§à¸à¹à¸§à¸¥à¸²à¹à¸à¸ ISO",ipv4:"à¸à¸µà¹à¸à¸¢à¸¹à¹ IPv4",ipv6:"à¸à¸µà¹à¸à¸¢à¸¹à¹ IPv6",cidrv4:"à¸à¹à¸§à¸ IP à¹à¸à¸ IPv4",cidrv6:"à¸à¹à¸§à¸ IP à¹à¸à¸ IPv6",base64:"à¸à¹à¸à¸à¸§à¸²à¸¡à¹à¸à¸ Base64",base64url:"à¸à¹à¸à¸à¸§à¸²à¸¡à¹à¸à¸ Base64 สำหรัภURL",json_string:"à¸à¹à¸à¸à¸§à¸²à¸¡à¹à¸à¸ JSON",e164:"à¹à¸à¸à¸£à¹à¹à¸à¸£à¸¨à¸±à¸à¸à¹à¸£à¸°à¸«à¸§à¹à¸²à¸à¸à¸£à¸°à¹à¸à¸¨ (E.164)",jwt:"à¹à¸à¹à¸à¸ JWT",template_literal:"à¸à¹à¸à¸¡à¸¹à¸¥à¸à¸µà¹à¸à¹à¸à¸"},n={nan:"NaN",number:"à¸à¸±à¸§à¹à¸¥à¸",array:"à¸à¸²à¸£à¹à¹à¸£à¸¢à¹ (Array)",null:"à¹à¸¡à¹à¸¡à¸µà¸à¹à¸² (null)"},r=>
77{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`à¸à¸£à¸°à¹à¸ à¸à¸à¹à¸à¸¡à¸¹à¸¥à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸: à¸à¸§à¸£à¹à¸à¹à¸ instanceof ${r.expected} à¹à¸à¹à¹à¸à¹à¸£à¸±à¸ ${i}`;return`à¸à¸£à¸°à¹à¸ à¸à¸à¹à¸à¸¡à¸¹à¸¥à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸: à¸à¸§à¸£à¹à¸à¹à¸ ${e} à¹à¸à¹à¹à¸à¹à¸£à¸±à¸ ${i}`}case"invalid_value":if(1===r.values.length)return`à¸à¹à¸²à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸: à¸à¸§à¸£à¹à¸à¹à¸ ${tt(r.values[0])}`;return`à¸à¸±à¸§à¹à¸¥à¸·à¸à¸à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸: à¸à¸§à¸£à¹à¸à¹à¸à¸«à¸à¸¶à¹à¸à¹à¸ ${eB(r.values,"|")}`;case"too_big":{let t=r.inclusive?"à¹à¸¡à¹à¹à¸à¸´à¸":"à¸à¹à¸à¸¢à¸à¸§à¹à¸²",n=e[r.origin]??null;if(n)return`à¹à¸à¸´à¸à¸à¸³à¸«à¸à¸: ${r.origin??"à¸à¹à¸²"} à¸à¸§à¸£à¸¡à¸µ${t} ${r.maximum.toString()} ${n.unit??"รายà¸à¸²à¸£"}`;return`à¹à¸à¸´à¸à¸à¸³à¸«à¸à¸: ${r.origin??"à¸à¹à¸²"} à¸à¸§à¸£à¸¡à¸µ${t} ${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?"à¸à¸¢à¹à¸²à¸à¸à¹à¸à¸¢":"มาà¸à¸à¸§à¹à¸²",n=e[r.origin]??null;if(n)return`à¸à¹à¸à¸¢à¸à¸§à¹à¸²à¸à¸³à¸«à¸à¸: ${r.origin} à¸à¸§à¸£à¸¡à¸µ${t} ${r.minimum.toString()} ${n.unit}`;return`à¸à¹à¸à¸¢à¸à¸§à¹à¸²à¸à¸³à¸«à¸à¸: ${r.origin} à¸à¸§à¸£à¸¡à¸µ${t} ${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`รูà¸à¹à¸à¸à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸: à¸à¹à¸à¸à¸§à¸²à¸¡à¸à¹à¸à¸à¸à¸¶à¹à¸à¸à¹à¸à¸à¹à¸§à¸¢ "${r.prefix}"`;if("ends_with"===r.format)return`รูà¸à¹à¸à¸à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸: à¸à¹à¸à¸à¸§à¸²à¸¡à¸à¹à¸à¸à¸¥à¸à¸à¹à¸²à¸¢à¸à¹à¸§à¸¢ "${r.suffix}"`;if("includes"===r.format)return`รูà¸à¹à¸à¸à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸: à¸à¹à¸à¸à¸§à¸²à¸¡à¸à¹à¸à¸à¸¡à¸µ "${r.includes}" à¸à¸¢à¸¹à¹à¹à¸à¸à¹à¸à¸à¸§à¸²à¸¡`;if("regex"===r.format)return`รูà¸à¹à¸à¸à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸: à¸à¹à¸à¸à¸à¸£à¸à¸à¸±à¸à¸£à¸¹à¸à¹à¸à¸à¸à¸µà¹à¸à¸³à¸«à¸à¸ ${r.pattern}`;return`รูà¸à¹à¸à¸à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸: ${t[r.format]??r.format}`;case"not_multiple_of":return`à¸à¸±à¸§à¹à¸¥à¸à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸: à¸à¹à¸à¸à¹à¸à¹à¸à¸à¸³à¸à¸§à¸à¸à¸µà¹à¸«à¸²à¸£à¸à¹à¸§à¸¢ ${r.divisor} à¹à¸à¹à¸¥à¸à¸à¸±à¸§`;case"unrecognized_keys":return`à¸à¸à¸à¸µà¸¢à¹à¸à¸µà¹à¹à¸¡à¹à¸£à¸¹à¹à¸à¸±à¸: ${eB(r.keys,", ")}`;case"invalid_key":return`à¸à¸µà¸¢à¹à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸à¹à¸ ${r.origin}`;case"invalid_union":return"à¸à¹à¸à¸¡à¸¹à¸¥à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸: à¹à¸¡à¹à¸à¸£à¸à¸à¸±à¸à¸£à¸¹à¸à¹à¸à¸à¸¢à¸¹à¹à¸à¸µà¸¢à¸à¸à¸µà¹à¸à¸³à¸«à¸à¸à¹à¸§à¹";case"invalid_element":return`à¸à¹à¸à¸¡à¸¹à¸¥à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸à¹à¸ ${r.origin}`;default:return"à¸à¹à¸à¸¡à¸¹à¸¥à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸"}})}},"tr",0,function(){let e,t,n;return{localeError:(e={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öÄe",verb:"olmalı"},set:{unit:"öÄe",verb:"olmalı"}},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üre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralıÄı",cidrv6:"IPv6 aralıÄı",base64:"base64 ile ÅifrelenmiÅ metin",base64url:"base64url ile ÅifrelenmiÅ metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Åablon dizesi"},n={nan:"NaN"},r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Ge\xe7ersiz deÄer: beklenen instanceof ${r.expected}, alınan ${i}`;return`Ge\xe7ersiz deÄer: beklenen ${e}, alınan ${i}`}case"invalid_value":if(1===r.values.length)return`Ge\xe7ersiz deÄer: beklenen ${tt(r.values[0])}`;return`Ge\xe7ersiz se\xe7enek: aÅaÄıdakilerden biri olmalı: ${eB(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`\xc7ok b\xfcy\xfck: beklenen ${r.origin??"deÄer"} ${t}${r.maximum.toString()} ${n.unit??"öÄe"}`;return`\xc7ok b\xfcy\xfck: beklenen ${r.origin??"deÄer"} ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`\xc7ok k\xfc\xe7\xfck: beklenen ${r.origin} ${t}${r.minimum.toString()} ${n.unit}`;return`\xc7ok k\xfc\xe7\xfck: beklenen ${r.origin} ${t}${r.minimum.toString()}`}
77case"invalid_format":if("starts_with"===r.format)return`Ge\xe7ersiz metin: "${r.prefix}" ile baÅlamalı`;if("ends_with"===r.format)return`Ge\xe7ersiz metin: "${r.suffix}" ile bitmeli`;if("includes"===r.format)return`Ge\xe7ersiz metin: "${r.includes}" i\xe7ermeli`;if("regex"===r.format)return`Ge\xe7ersiz metin: ${r.pattern} desenine uymalı`;return`Ge\xe7ersiz ${t[r.format]??r.format}`;case"not_multiple_of":return`Ge\xe7ersiz sayı: ${r.divisor} ile tam b\xf6l\xfcnebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${r.keys.length>1?"lar":""}: ${eB(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xe7inde ge\xe7ersiz anahtar`;case"invalid_union":default:return"Geçersiz deÄer";case"invalid_element":return`${r.origin} i\xe7inde ge\xe7ersiz deÄer`}})}},"ua",0,function(){return lp()},"uk",0,lp,"ur",0,function(){let e,t,n;return{localeError:(e={string:{unit:"ØØ±ÙÙ",verb:"ÛÙÙØ§"},file:{unit:"بائٹس",verb:"ÛÙÙØ§"},array:{unit:"آئٹÙ
ز",verb:"ÛÙÙØ§"},set:{unit:"آئٹÙ
ز",verb:"ÛÙÙØ§"}},t={regex:"ا٠پٹ",email:"Ø§Û Ù
Û٠اÛÚØ±Ûس",url:"Û٠آر اÛÙ",emoji:"اÛÙ
ÙØ¬Û",uuid:"ÛÙ ÛÙ Ø¢Ø¦Û ÚÛ",uuidv4:"ÛÙ ÛÙ Ø¢Ø¦Û ÚÛ ÙÛ 4",uuidv6:"ÛÙ ÛÙ Ø¢Ø¦Û ÚÛ ÙÛ 6",nanoid:"ÙÛÙÙ Ø¢Ø¦Û ÚÛ",guid:"Ø¬Û ÛÙ Ø¢Ø¦Û ÚÛ",cuid:"Ø³Û ÛÙ Ø¢Ø¦Û ÚÛ",cuid2:"Ø³Û ÛÙ Ø¢Ø¦Û ÚÛ 2",ulid:"Û٠اÛÙ Ø¢Ø¦Û ÚÛ",xid:"اÛکس Ø¢Ø¦Û ÚÛ",ksuid:"Ú©Û Ø§ÛØ³ ÛÙ Ø¢Ø¦Û ÚÛ",datetime:"Ø¢Ø¦Û Ø§ÛØ³ ا٠ÚÛÙ¹ ٹائÙ
",date:"Ø¢Ø¦Û Ø§ÛØ³ Ø§Ù ØªØ§Ø±ÛØ®",time:"Ø¢Ø¦Û Ø§ÛØ³ ا٠ÙÙØª",duration:"Ø¢Ø¦Û Ø§ÛØ³ ا٠Ù
دت",ipv4:"Ø¢Ø¦Û Ù¾Û ÙÛ 4 اÛÚØ±Ûس",ipv6:"Ø¢Ø¦Û Ù¾Û ÙÛ 6 اÛÚØ±Ûس",cidrv4:"Ø¢Ø¦Û Ù¾Û ÙÛ 4 رÛÙØ¬",cidrv6:"Ø¢Ø¦Û Ù¾Û ÙÛ 6 رÛÙØ¬",base64:"Ø¨ÛØ³ 64 ا٠کÙÚÚ Ø³Ù¹Ø±ÙÚ¯",base64url:"Ø¨ÛØ³ 64 Û٠آر اÛ٠ا٠کÙÚÚ Ø³Ù¹Ø±ÙÚ¯",json_string:"Ø¬Û Ø§ÛØ³ ا٠اÛ٠سٹرÙÚ¯",e164:"Ø§Û 164 ÙÙ
بر",jwt:"Ø¬Û ÚØ¨ÙÛÙ Ù¹Û",template_literal:"ا٠پٹ"},n={nan:"NaN",number:"ÙÙ
بر",array:"آرÛ",null:"ÙÙ"},r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`ØºÙØ· ا٠پٹ: instanceof ${r.expected} Ù
تÙÙØ¹ ØªÚ¾Ø§Ø ${i} Ù
ÙØµÙÙ ÛÙØ§`;return`ØºÙØ· ا٠پٹ: ${e} Ù
تÙÙØ¹ ØªÚ¾Ø§Ø ${i} Ù
ÙØµÙÙ ÛÙØ§`}case"invalid_value":if(1===r.values.length)return`ØºÙØ· ا٠پٹ: ${tt(r.values[0])} Ù
تÙÙØ¹ تھا`;return`ØºÙØ· آپشÙ: ${eB(r.values,"|")} Ù
ÛÚº Ø³Û Ø§ÛÚ© Ù
تÙÙØ¹ تھا`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Ø¨ÛØª Ø¨ÚØ§: ${r.origin??"ÙÛÙÛÙ"} Ú©Û ${t}${r.maximum.toString()} ${n.unit??"Ø¹ÙØ§ØµØ±"} ÛÙÙÛ Ù
تÙÙØ¹ تھÛ`;return`Ø¨ÛØª Ø¨ÚØ§: ${r.origin??"ÙÛÙÛÙ"} کا ${t}${r.maximum.toString()} ÛÙÙØ§ Ù
تÙÙØ¹ تھا`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Ø¨ÛØª ÚÚ¾Ùٹا: ${r.origin} Ú©Û ${t}${r.minimum.toString()} ${n.unit} ÛÙÙÛ Ù
تÙÙØ¹ تھÛ`;return`Ø¨ÛØª ÚÚ¾Ùٹا: ${r.origin} کا ${t}${r.minimum.toString()} ÛÙÙØ§ Ù
تÙÙØ¹ تھا`}case"invalid_format":if("starts_with"===r.format)return`ØºÙØ· سٹرÙÚ¯: "${r.prefix}" Ø³Û Ø´Ø±ÙØ¹ ÛÙÙØ§ ÚØ§ÛÛÛ`;if("ends_with"===r.format)return`ØºÙØ· سٹرÙÚ¯: "${r.suffix}" پر ختÙ
ÛÙÙØ§ ÚØ§ÛÛÛ`;if("includes"===r.format)return`ØºÙØ· سٹرÙÚ¯: "${r.includes}" شاÙ
Ù ÛÙÙØ§ ÚØ§ÛÛÛ`;if("regex"===r.format)return`ØºÙØ· سٹرÙÚ¯: Ù¾Ûٹر٠${r.pattern} Ø³Û Ù
ÛÚ ÛÙÙØ§ ÚØ§ÛÛÛ`;return`ØºÙØ· ${t[r.format]??r.format}`;case"not_multiple_of":return`ØºÙØ· ÙÙ
بر: ${r.divisor} کا Ù
ضاع٠ÛÙÙØ§ ÚØ§ÛÛÛ`;case"unrecognized_keys":return`ØºÛØ± تسÙÛÙ
Ø´Ø¯Û Ú©Û${r.keys.length>1?"ز":""}: ${eB(r.keys,"Ø ")}`;case"invalid_key":return`${r.origin} Ù
ÛÚº ØºÙØ· Ú©Û`;case"invalid_union":default:return"ØºÙØ· ا٠پٹ";case"invalid_element":return`${r.origin} Ù
ÛÚº ØºÙØ· ÙÛÙÛÙ`}})}},"uz",0,function(){let e,t,n;return{localeError:(e={string:{unit:"belgi",verb:"boâlishi kerak"},file:{unit:"bayt",verb:"boâlishi kerak"},array:{unit:"element",verb:"boâlishi kerak"},set:{unit:"element",verb:"boâlishi kerak"},map:{unit:"yozuv",verb:"boâlishi kerak"}},t={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"}
77,n={nan:"NaN",number:"raqam",array:"massiv"},r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Notoâgâri kirish: kutilgan instanceof ${r.expected}, qabul qilingan ${i}`;return`Notoâgâri kirish: kutilgan ${e}, qabul qilingan ${i}`}case"invalid_value":if(1===r.values.length)return`Notoâgâri kirish: kutilgan ${tt(r.values[0])}`;return`Notoâgâri variant: quyidagilardan biri kutilgan ${eB(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Juda katta: kutilgan ${r.origin??"qiymat"} ${t}${r.maximum.toString()} ${n.unit} ${n.verb}`;return`Juda katta: kutilgan ${r.origin??"qiymat"} ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Juda kichik: kutilgan ${r.origin} ${t}${r.minimum.toString()} ${n.unit} ${n.verb}`;return`Juda kichik: kutilgan ${r.origin} ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Notoâgâri satr: "${r.prefix}" bilan boshlanishi kerak`;if("ends_with"===r.format)return`Notoâgâri satr: "${r.suffix}" bilan tugashi kerak`;if("includes"===r.format)return`Notoâgâri satr: "${r.includes}" ni oâz ichiga olishi kerak`;if("regex"===r.format)return`Notoâgâri satr: ${r.pattern} shabloniga mos kelishi kerak`;return`Notoâgâri ${t[r.format]??r.format}`;case"not_multiple_of":return`Notoâgâri raqam: ${r.divisor} ning karralisi boâlishi kerak`;case"unrecognized_keys":return`Nomaâlum kalit${r.keys.length>1?"lar":""}: ${eB(r.keys,", ")}`;case"invalid_key":return`${r.origin} dagi kalit notoâgâri`;case"invalid_union":default:return"Notoâgâri kirish";case"invalid_element":return`${r.origin} da notoâgâri qiymat`}})}},"vi",0,function(){let e,t,n;return{localeError:(e={string:{unit:"ký tá»±",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tá»",verb:"có"},set:{unit:"phần tá»",verb:"có"}},t={regex:"Äầu và o",email:"Äá»a chá» 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à y giá» ISO",date:"ngà y ISO",time:"giá» ISO",duration:"khoảng thá»i gian ISO",ipv4:"Äá»a chá» IPv4",ipv6:"Äá»a chá» IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuá»i mã hóa base64",base64url:"chuá»i mã hóa base64url",json_string:"chuá»i JSON",e164:"sá» E.164",jwt:"JWT",template_literal:"Äầu và o"},n={nan:"NaN",number:"sá»",array:"mảng"},r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`Äầu v\xe0o kh\xf4ng hợp lá»: mong Äợi instanceof ${r.expected}, nháºn ÄÆ°á»£c ${i}`;return`Äầu v\xe0o kh\xf4ng hợp lá»: mong Äợi ${e}, nháºn ÄÆ°á»£c ${i}`}case"invalid_value":if(1===r.values.length)return`Äầu v\xe0o kh\xf4ng hợp lá»: mong Äợi ${tt(r.values[0])}`;return`T\xf9y chá»n kh\xf4ng hợp lá»: mong Äợi má»t trong c\xe1c gi\xe1 trá» ${eB(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Qu\xe1 lá»n: mong Äợi ${r.origin??"giá trá»"} ${n.verb} ${t}${r.maximum.toString()} ${n.unit??"phần tá»"}`;return`Qu\xe1 lá»n: mong Äợi ${r.origin??"giá trá»"} ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Qu\xe1 nhá»: mong Äợi ${r.origin} ${n.verb} ${t}${r.minimum.toString()} ${n.unit}`;return`Qu\xe1 nhá»: mong Äợi ${r.origin} ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Chuá»i kh\xf4ng hợp lá»: phải bắt Äầu bằng "${r.prefix}"`;if("ends_with"===r.format)return`Chuá»i kh\xf4ng hợp lá»: phải kết th\xfac bằng "${r.suffix}"`;if("includes"===r.format)return`Chuá»i kh\xf4ng hợp lá»: phải bao gá»m "${r.includes}"`;if("regex"===r.format)return`Chuá»i kh\xf4ng hợp lá»: phải khá»p vá»i mẫu ${r.pattern}`;return`${t[r.format]??r.format} kh\xf4ng hợp lá»`;case"not_multiple_of":return`Sá» kh\xf4ng hợp lá»: phải l\xe0 bá»i sá» cá»§a ${r.divisor}`;case"unrecognized_keys":return`Kh\xf3a kh\xf4ng ÄÆ°á»£c nháºn dạng: ${eB(r.keys,", ")}`;
77case"invalid_key":return`Kh\xf3a kh\xf4ng hợp lá» trong ${r.origin}`;case"invalid_union":default:return"Äầu và o không hợp lá»";case"invalid_element":return`Gi\xe1 trá» kh\xf4ng hợp lá» trong ${r.origin}`}})}},"yo",0,function(){let e,t,n;return{localeError:(e={string:{unit:"à mi",verb:"nÃ"},file:{unit:"bytes",verb:"nÃ"},array:{unit:"nkan",verb:"nÃ"},set:{unit:"nkan",verb:"nÃ"}},t={regex:"ẹÌrỠìbáwá»lé",email:"à dÃrẹÌsì ìmẹÌlì",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:"à kókò ISO",date:"á»já»Ì ISO",time:"à kókò ISO",duration:"à kókò tó pé ISO",ipv4:"à dÃrẹÌsì IPv4",ipv6:"à dÃrẹÌsì IPv6",cidrv4:"à gbègbè IPv4",cidrv6:"à gbègbè IPv6",base64:"á»Ìrá»Ì tà a ká»Ì nà base64",base64url:"á»Ìrá»Ì base64url",json_string:"á»Ìrá»Ì JSON",e164:"ná»Ìmbà E.164",jwt:"JWT",template_literal:"ẹÌrỠìbáwá»lé"},n={nan:"NaN",number:"ná»Ìmbà ",array:"akopá»"},r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`\xccb\xe1wá»l\xe9 aá¹£\xecá¹£e: a n\xed l\xe1ti fi instanceof ${r.expected}, \xe0má»Ì a r\xed ${i}`;return`\xccb\xe1wá»l\xe9 aá¹£\xecá¹£e: a n\xed l\xe1ti fi ${e}, \xe0má»Ì a r\xed ${i}`}case"invalid_value":if(1===r.values.length)return`\xccb\xe1wá»l\xe9 aá¹£\xecá¹£e: a n\xed l\xe1ti fi ${tt(r.values[0])}`;return`\xc0á¹£\xe0y\xe0n aá¹£\xecá¹£e: yan á»Ìkan l\xe1ra ${eB(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`T\xf3 pá»Ì j\xf9: a n\xed l\xe1ti jáº¹Ì p\xe9 ${r.origin??"iye"} ${n.verb} ${t}${r.maximum} ${n.unit}`;return`T\xf3 pá»Ì j\xf9: a n\xed l\xe1ti jáº¹Ì ${t}${r.maximum}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`K\xe9r\xe9 ju: a n\xed l\xe1ti jáº¹Ì p\xe9 ${r.origin} ${n.verb} ${t}${r.minimum} ${n.unit}`;return`K\xe9r\xe9 ju: a n\xed l\xe1ti jáº¹Ì ${t}${r.minimum}`}case"invalid_format":if("starts_with"===r.format)return`á»Ìrá»Ì aá¹£\xecá¹£e: gbá»Ìdá»Ì bẹÌráº¹Ì pẹÌl\xfa "${r.prefix}"`;if("ends_with"===r.format)return`á»Ìrá»Ì aá¹£\xecá¹£e: gbá»Ìdá»Ì par\xed pẹÌl\xfa "${r.suffix}"`;if("includes"===r.format)return`á»Ìrá»Ì aá¹£\xecá¹£e: gbá»Ìdá»Ì n\xed "${r.includes}"`;if("regex"===r.format)return`á»Ìrá»Ì aá¹£\xecá¹£e: gbá»Ìdá»Ì b\xe1 \xe0pẹẹrẹ mu ${r.pattern}`;return`Aá¹£\xecá¹£e: ${t[r.format]??r.format}`;case"not_multiple_of":return`Ná»Ìmb\xe0 aá¹£\xecá¹£e: gbá»Ìdá»Ì jáº¹Ì \xe8y\xe0 p\xedp\xedn ti ${r.divisor}`;case"unrecognized_keys":return`Bá»t\xecn\xec \xe0\xecmá»Ì: ${eB(r.keys,", ")}`;case"invalid_key":return`Bá»t\xecn\xec aá¹£\xecá¹£e n\xedn\xfa ${r.origin}`;case"invalid_union":default:return"Ãbáwá»lé aṣìṣe";case"invalid_element":return`Iye aá¹£\xecá¹£e n\xedn\xfa ${r.origin}`}})}},"zhCN",0,function(){let e,t,n;return{localeError:(e={string:{unit:"å符",verb:"å
å«"},file:{unit:"åè",verb:"å
å«"},array:{unit:"项",verb:"å
å«"},set:{unit:"项",verb:"å
å«"}},t={regex:"è¾å
¥",email:"çµåé®ä»¶",url:"URL",emoji:"表æ
符å·",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISOæ¥ææ¶é´",date:"ISOæ¥æ",time:"ISOæ¶é´",duration:"ISOæ¶é¿",ipv4:"IPv4å°å",ipv6:"IPv6å°å",cidrv4:"IPv4ç½æ®µ",cidrv6:"IPv6ç½æ®µ",base64:"base64ç¼ç å符串",base64url:"base64urlç¼ç å符串",json_string:"JSONå符串",e164:"E.164å·ç ",jwt:"JWT",template_literal:"è¾å
¥"},n={nan:"NaN",number:"æ°å",array:"æ°ç»",null:"空å¼(null)"},r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`æ æè¾å
¥ï¼ææ instanceof ${r.expected}ï¼å®é
æ¥æ¶ ${i}`;return`æ æè¾å
¥ï¼ææ ${e}ï¼å®é
æ¥æ¶ ${i}`}case"invalid_value":if(1===r.values.length)return`æ æè¾å
¥ï¼ææ ${tt(r.values[0])}`;return`æ æéé¡¹ï¼ææä»¥ä¸ä¹ä¸ ${eB(r.values,"|")}`;
77case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`æ°å¼è¿å¤§ï¼ææ ${r.origin??"å¼"} ${t}${r.maximum.toString()} ${n.unit??"个å
ç´ "}`;return`æ°å¼è¿å¤§ï¼ææ ${r.origin??"å¼"} ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`æ°å¼è¿å°ï¼ææ ${r.origin} ${t}${r.minimum.toString()} ${n.unit}`;return`æ°å¼è¿å°ï¼ææ ${r.origin} ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`æ æå符串ï¼å¿
须以 "${r.prefix}" å¼å¤´`;if("ends_with"===r.format)return`æ æå符串ï¼å¿
须以 "${r.suffix}" ç»å°¾`;if("includes"===r.format)return`æ æå符串ï¼å¿
é¡»å
å« "${r.includes}"`;if("regex"===r.format)return`æ æå符串ï¼å¿
须满足æ£åè¡¨è¾¾å¼ ${r.pattern}`;return`æ æ${t[r.format]??r.format}`;case"not_multiple_of":return`æ ææ°åï¼å¿
é¡»æ¯ ${r.divisor} çåæ°`;case"unrecognized_keys":return`åºç°æªç¥çé®(key): ${eB(r.keys,", ")}`;case"invalid_key":return`${r.origin} ä¸çé®(key)æ æ`;case"invalid_union":default:return"æ æè¾å
¥";case"invalid_element":return`${r.origin} ä¸å
嫿 æå¼(value)`}})}},"zhTW",0,function(){let e,t,n;return{localeError:(e={string:{unit:"åå
",verb:"ææ"},file:{unit:"ä½å
çµ",verb:"ææ"},array:{unit:"é
ç®",verb:"ææ"},set:{unit:"é
ç®",verb:"ææ"}},t={regex:"輸å
¥",email:"éµä»¶å°å",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO æ¥ææé",date:"ISO æ¥æ",time:"ISO æé",duration:"ISO æé",ipv4:"IPv4 ä½å",ipv6:"IPv6 ä½å",cidrv4:"IPv4 ç¯å",cidrv6:"IPv6 ç¯å",base64:"base64 編碼å串",base64url:"base64url 編碼å串",json_string:"JSON å串",e164:"E.164 æ¸å¼",jwt:"JWT",template_literal:"輸å
¥"},n={nan:"NaN"},r=>{switch(r.code){case"invalid_type":{let e=n[r.expected]??r.expected,t=tp(r.input),i=n[t]??t;if(/^[A-Z]/.test(r.expected))return`ç¡æç輸å
¥å¼ï¼é æçº instanceof ${r.expected}ï¼ä½æ¶å° ${i}`;return`ç¡æç輸å
¥å¼ï¼é æçº ${e}ï¼ä½æ¶å° ${i}`}case"invalid_value":if(1===r.values.length)return`ç¡æç輸å
¥å¼ï¼é æçº ${tt(r.values[0])}`;return`ç¡æçé¸é
ï¼é æçºä»¥ä¸å
¶ä¸ä¹ä¸ ${eB(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`æ¸å¼é大ï¼é æ ${r.origin??"å¼"} æçº ${t}${r.maximum.toString()} ${n.unit??"åå
ç´ "}`;return`æ¸å¼é大ï¼é æ ${r.origin??"å¼"} æçº ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`æ¸å¼éå°ï¼é æ ${r.origin} æçº ${t}${r.minimum.toString()} ${n.unit}`;return`æ¸å¼éå°ï¼é æ ${r.origin} æçº ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`ç¡æçå串ï¼å¿
é 以 "${r.prefix}" éé `;if("ends_with"===r.format)return`ç¡æçå串ï¼å¿
é 以 "${r.suffix}" çµå°¾`;if("includes"===r.format)return`ç¡æçå串ï¼å¿
é å
å« "${r.includes}"`;if("regex"===r.format)return`ç¡æçå串ï¼å¿
é ç¬¦åæ ¼å¼ ${r.pattern}`;return`ç¡æç ${t[r.format]??r.format}`;case"not_multiple_of":return`ç¡æçæ¸åï¼å¿
é çº ${r.divisor} ç忏`;case"unrecognized_keys":return`ç¡æ³èå¥çéµå¼${r.keys.length>1?"å":""}ï¼${eB(r.keys,"ã")}`;case"invalid_key":return`${r.origin} ä¸æç¡æçéµå¼`;case"invalid_union":default:return"ç¡æç輸å
¥å¼";case"invalid_element":return`${r.origin} ä¸æç¡æçå¼`}})}}],54580);var lf=e.i(54580);function lm(e,t){return new e({type:"string",...te(t)})}function lh(e,t){return new e({type:"string",coerce:!0,...te(t)})}function lg(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...te(t)})}function lv(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...te(t)})}function ly(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...te(t)})}function lb(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...te(t)})}function lx(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...te(t)})}function l_(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...te(t)})}function lk(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...te(t)})}function l$(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...te(t)})}function lw(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...te(t)})}function lI(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...te(t)})}function lS(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...te(t)})}function lE(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...te(t)})}function lO(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...te(t)})}function lT(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...te(t)})}function lj(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...te(t)})}function lz(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...te(t)})}function lA(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...te(t)})}function lC(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...te(t)})}function lP(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...te(t)})}function lN(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...te(t)})}function lU(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...te(t)})}function lZ(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...te(t)})}function lD(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...te(t)})}e.i(25527),e.i(98530);let lM={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function lR(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...te(t)})}function lL(e,t){return new e({type:"string",format:"date",check:"string_format",...te(t)})}function lF(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...te(t)})}function lB(e,t){return new e({type:"string",format:"duration",check:"string_format",...te(t)})}function lV(e,t){return new e({type:"number",checks:[],...te(t)})}function lJ(e,t){return new e({type:"number",coerce:!0,checks:[],...te(t)})}function lq(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...te(t)})}function lW(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...te(t)})}function lH(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...te(t)})}function lK(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...te(t)})}function lG(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...te(t)})}function lX(e,t){return new e({type:"boolean",...te(t)})}function lY(e,t){return new e({type:"boolean",coerce:!0,...te(t)})}function lQ(e,t){return new e({type:"bigint",...te(t)})}function l0(e,t){return new e({type:"bigint",coerce:!0,...te(t)})}function l1(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...te(t)})}function l4(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...te(t)})}function l6(e,t){return new e({type:"symbol",...te(t)})}function l2(e,t){return new e({type:"undefined",...te(t)})}function l9(e,t){return new e({type:"null",...te(t)})}function l5(e){return new e({type:"any"})}function l3(e){return new e({type:"unknown"})}function l8(e,t){return new e({type:"never",...te(t)})}function l7(e,t){return new e({type:"void",...te(t)})}function ue(e,t){return new e({type:"date",...te(t)})}function ut(e,t){return new e({type:"date",coerce:!0,...te(t)})}function un(e,t){return new e({type:"nan",...te(t)})}function ur(e,t){return new oc({check:"less_than",...te(t),value:e,inclusive:!1})}function ui(e,t){return new oc({check:"less_than",...te(t),value:e,inclusive:!0})}function ua(e,t){return new od({check:"greater_than",...te(t),value:e,inclusive:!1})}function uo(e,t){return new od({check:"greater_than",...te(t),value:e,inclusive:!0})}function us(e){return ua(0,e)}function ul(e){return ur(0,e)}function uu(e){return ui(0,e)}function uc(e){return uo(0,e)}function ud(e,t){return new op({check:"multiple_of",...te(t),value:e})}function up(e,t){return new oh({check:"max_size",...te(t),maximum:e})}function uf(e,t){return new og({check:"min_size",...te(t),minimum:e})}function um(e,t){return new ov({check:"size_equals",...te(t),size:e})}function uh(e,t){return new oy({check:"max_length",...te(t),maximum:e})}function ug(e,t){return new ob({check:"min_length",...te(t),minimum:e})}function uv(e,t){return new ox({check:"length_equals",...te(t),length:e})}function uy(e,t){return new ok({check:"string_format",format:"regex",...te(t),pattern:e})}function ub(e){return new o$({check:"string_format",format:"lowercase",...te(e)})}
77function ux(e){return new ow({check:"string_format",format:"uppercase",...te(e)})}function u_(e,t){return new oI({check:"string_format",format:"includes",...te(t),includes:e})}function uk(e,t){return new oS({check:"string_format",format:"starts_with",...te(t),prefix:e})}function u$(e,t){return new oE({check:"string_format",format:"ends_with",...te(t),suffix:e})}function uw(e,t,n){return new oT({check:"property",property:e,schema:t,...te(n)})}function uI(e,t){return new oj({check:"mime_type",mime:e,...te(t)})}function uS(e){return new oz({check:"overwrite",tx:e})}function uE(e){return uS(t=>t.normalize(e))}function uO(){return uS(e=>e.trim())}function uT(){return uS(e=>e.toLowerCase())}function uj(){return uS(e=>e.toUpperCase())}function uz(){return uS(e=>e0(e))}function uA(e,t,n){return new e({type:"array",element:t,...te(n)})}function uC(e,t,n){return new e({type:"union",options:t,...te(n)})}function uP(e,t,n){return new e({type:"union",options:t,inclusive:!1,...te(n)})}function uN(e,t,n,r){return new e({type:"union",options:n,discriminator:t,...te(r)})}function uU(e,t,n){return new e({type:"intersection",left:t,right:n})}function uZ(e,t,n,r){let i=n instanceof oP,a=i?r:n;return new e({type:"tuple",items:t,rest:i?n:null,...te(a)})}function uD(e,t,n,r){return new e({type:"record",keyType:t,valueType:n,...te(r)})}function uM(e,t,n,r){return new e({type:"map",keyType:t,valueType:n,...te(r)})}function uR(e,t,n){return new e({type:"set",valueType:t,...te(n)})}function uL(e,t,n){return new e({type:"enum",entries:Array.isArray(t)?Object.fromEntries(t.map(e=>[e,e])):t,...te(n)})}function uF(e,t,n){return new e({type:"enum",entries:t,...te(n)})}function uB(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...te(n)})}function uV(e,t){return new e({type:"file",...te(t)})}function uJ(e,t){return new e({type:"transform",transform:t})}function uq(e,t){return new e({type:"optional",innerType:t})}function uW(e,t){return new e({type:"nullable",innerType:t})}function uH(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return"function"==typeof n?n():e9(n)}})}function uK(e,t,n){return new e({type:"nonoptional",innerType:t,...te(n)})}function uG(e,t){return new e({type:"success",innerType:t})}function uX(e,t,n){return new e({type:"catch",innerType:t,catchValue:"function"==typeof n?n:()=>n})}function uY(e,t,n){return new e({type:"pipe",in:t,out:n})}function uQ(e,t){return new e({type:"readonly",innerType:t})}function u0(e,t,n){return new e({type:"template_literal",parts:t,...te(n)})}function u1(e,t){return new e({type:"lazy",getter:t})}function u4(e,t){return new e({type:"promise",innerType:t})}function u6(e,t,n){let r=te(n);return r.abort??(r.abort=!0),new e({type:"custom",check:"custom",fn:t,...r})}function u2(e,t,n){return new e({type:"custom",check:"custom",fn:t,...te(n)})}function u9(e,t){let n=u5(t=>(t.addIssue=e=>{"string"==typeof e?t.issues.push(tf(e,t.value,n._zod.def)):(e.fatal&&(e.continue=!1),e.code??(e.code="custom"),e.input??(e.input=t.value),e.inst??(e.inst=n),e.continue??(e.continue=!n._zod.def.abort),t.issues.push(tf(e)))},e(t.value,t)),t);return n}function u5(e,t){let n=new ol({check:"custom",...te(t)});return n._zod.check=e,n}function u3(e){let t=new ol({check:"describe"});return t._zod.onattach=[t=>{let n=nr.get(t)??{};nr.add(t,{...n,description:e})}],t._zod.check=()=>{},t}function u8(e){let t=new ol({check:"meta"});return t._zod.onattach=[t=>{let n=nr.get(t)??{};nr.add(t,{...n,...e})}],t._zod.check=()=>{},t}function u7(e,t){let n=te(t),r=n.truthy??["true","1","yes","on","y","enabled"],i=n.falsy??["false","0","no","off","n","disabled"];"sensitive"!==n.case&&(r=r.map(e=>"string"==typeof e?e.toLowerCase():e),i=i.map(e=>"string"==typeof e?e.toLowerCase():e));let a=new Set(r),o=new Set(i),s=e.Codec??s1,l=e.Boolean??sr,u=new s({type:"pipe",in:new(e.String??oN)({type:"string",error:n.error}),out:new l({type:"boolean",error:n.error}),transform:(e,t)=>{let r=e;return"sensitive"!==n.case&&(r=r.toLowerCase()),!!a.has(r)||!o.has(r)&&(t.issues.push({code:"invalid_value",expected:"stringbool",values:[...a,...o],input
77:t.value,inst:u,continue:!1}),{})},reverseTransform:(e,t)=>!0===e?r[0]||"true":i[0]||"false",error:n.error});return u}function ce(e,t,n,r={}){let i=te(r),a={...te(r),check:"string_format",type:"string",format:t,fn:"function"==typeof n?n:e=>n.test(e),...i};return n instanceof RegExp&&(a.pattern=n),new e(a)}e.s(["TimePrecision",0,lM,"_any",0,l5,"_array",0,uA,"_base64",0,lN,"_base64url",0,lU,"_bigint",0,lQ,"_boolean",0,lX,"_catch",0,uX,"_check",0,u5,"_cidrv4",0,lC,"_cidrv6",0,lP,"_coercedBigint",0,l0,"_coercedBoolean",0,lY,"_coercedDate",0,ut,"_coercedNumber",0,lJ,"_coercedString",0,lh,"_cuid",0,lI,"_cuid2",0,lS,"_custom",0,u6,"_date",0,ue,"_default",0,uH,"_discriminatedUnion",0,uN,"_e164",0,lZ,"_email",0,lg,"_emoji",0,l$,"_endsWith",0,u$,"_enum",0,uL,"_file",0,uV,"_float32",0,lW,"_float64",0,lH,"_gt",0,ua,"_gte",0,uo,"_guid",0,lv,"_includes",0,u_,"_int",0,lq,"_int32",0,lK,"_int64",0,l1,"_intersection",0,uU,"_ipv4",0,lj,"_ipv6",0,lz,"_isoDate",0,lL,"_isoDateTime",0,lR,"_isoDuration",0,lB,"_isoTime",0,lF,"_jwt",0,lD,"_ksuid",0,lT,"_lazy",0,u1,"_length",0,uv,"_literal",0,uB,"_lowercase",0,ub,"_lt",0,ur,"_lte",0,ui,"_mac",0,lA,"_map",0,uM,"_max",0,ui,"_maxLength",0,uh,"_maxSize",0,up,"_mime",0,uI,"_min",0,uo,"_minLength",0,ug,"_minSize",0,uf,"_multipleOf",0,ud,"_nan",0,un,"_nanoid",0,lw,"_nativeEnum",0,uF,"_negative",0,ul,"_never",0,l8,"_nonnegative",0,uc,"_nonoptional",0,uK,"_nonpositive",0,uu,"_normalize",0,uE,"_null",0,l9,"_nullable",0,uW,"_number",0,lV,"_optional",0,uq,"_overwrite",0,uS,"_pipe",0,uY,"_positive",0,us,"_promise",0,u4,"_property",0,uw,"_readonly",0,uQ,"_record",0,uD,"_refine",0,u2,"_regex",0,uy,"_set",0,uR,"_size",0,um,"_slugify",0,uz,"_startsWith",0,uk,"_string",0,lm,"_stringFormat",0,ce,"_stringbool",0,u7,"_success",0,uG,"_superRefine",0,u9,"_symbol",0,l6,"_templateLiteral",0,u0,"_toLowerCase",0,uT,"_toUpperCase",0,uj,"_transform",0,uJ,"_trim",0,uO,"_tuple",0,uZ,"_uint32",0,lG,"_uint64",0,l4,"_ulid",0,lE,"_undefined",0,l2,"_union",0,uC,"_unknown",0,l3,"_uppercase",0,ux,"_url",0,lk,"_uuid",0,ly,"_uuidv4",0,lb,"_uuidv6",0,lx,"_uuidv7",0,l_,"_void",0,l7,"_xid",0,lO,"_xor",0,uP,"describe",0,u3,"meta",0,u8],50215),e.i(50215),e.i(34966),e.s([],18249);var ct=e.i(18249);e.s(["$ZodAny",0,su,"$ZodArray",0,sh,"$ZodAsyncError",0,eD,"$ZodBase64",0,o2,"$ZodBase64URL",0,o5,"$ZodBigInt",0,si,"$ZodBigIntFormat",0,sa,"$ZodBoolean",0,sr,"$ZodCIDRv4",0,o1,"$ZodCIDRv6",0,o4,"$ZodCUID",0,oB,"$ZodCUID2",0,oV,"$ZodCatch",0,sX,"$ZodCheck",0,ol,"$ZodCheckBigIntFormat",0,om,"$ZodCheckEndsWith",0,oE,"$ZodCheckGreaterThan",0,od,"$ZodCheckIncludes",0,oI,"$ZodCheckLengthEquals",0,ox,"$ZodCheckLessThan",0,oc,"$ZodCheckLowerCase",0,o$,"$ZodCheckMaxLength",0,oy,"$ZodCheckMaxSize",0,oh,"$ZodCheckMimeType",0,oj,"$ZodCheckMinLength",0,ob,"$ZodCheckMinSize",0,og,"$ZodCheckMultipleOf",0,op,"$ZodCheckNumberFormat",0,of,"$ZodCheckOverwrite",0,oz,"$ZodCheckProperty",0,oT,"$ZodCheckRegex",0,ok,"$ZodCheckSizeEquals",0,ov,"$ZodCheckStartsWith",0,oS,"$ZodCheckStringFormat",0,o_,"$ZodCheckUpperCase",0,ow,"$ZodCodec",0,s1,"$ZodCustom",0,lt,"$ZodCustomStringFormat",0,se,"$ZodDate",0,sf,"$ZodDefault",0,sJ,"$ZodDiscriminatedUnion",0,sI,"$ZodE164",0,o3,"$ZodEmail",0,oM,"$ZodEmoji",0,oL,"$ZodEncodeError",0,eM,"$ZodEnum",0,sZ,"$ZodError",0,tv,"$ZodExactOptional",0,sB,"$ZodFile",0,sM,"$ZodFunction",0,s8,"$ZodGUID",0,oZ,"$ZodIPv4",0,oY,"$ZodIPv6",0,oQ,"$ZodISODate",0,oK,"$ZodISODateTime",0,oH,"$ZodISODuration",0,oX,"$ZodISOTime",0,oG,"$ZodIntersection",0,sS,"$ZodJWT",0,o7,"$ZodKSUID",0,oW,"$ZodLazy",0,le,"$ZodLiteral",0,sD,"$ZodMAC",0,o0,"$ZodMap",0,sC,"$ZodNaN",0,sY,"$ZodNanoID",0,oF,"$ZodNever",0,sd,"$ZodNonOptional",0,sH,"$ZodNull",0,sl,"$ZodNullable",0,sV,"$ZodNumber",0,st,"$ZodNumberFormat",0,sn,"$ZodObject",0,sb,"$ZodObjectJIT",0,sx,"$ZodOptional",0,sF,"$ZodPipe",0,sQ,"$ZodPrefault",0,sW,"$ZodPreprocess",0,s2,"$ZodPromise",0,s7,"$ZodReadonly",0,s9,"$ZodRealError",0,ty,"$ZodRecord",0,sA,"$ZodRegistry",0,nt,"$ZodSet",0,sN,"$ZodString",0,oN,"$ZodStringFormat",0,oU,"$ZodSuccess",0,sG,"$ZodSymbol",0,so,"$ZodTemplateLiteral",0,s3,"$ZodTransform",0,sR,"$ZodTuple",0,sO,"$ZodT
77ype",0,oP,"$ZodULID",0,oJ,"$ZodURL",0,oR,"$ZodUUID",0,oD,"$ZodUndefined",0,ss,"$ZodUnion",0,sk,"$ZodUnknown",0,sc,"$ZodVoid",0,sp,"$ZodXID",0,oq,"$ZodXor",0,sw,"$brand",0,eZ,"$constructor",0,eU,"$input",0,ne,"$output",0,t7,"Doc",0,oA,"JSONSchema",0,ct,"JSONSchemaGenerator",0,class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let t=e?.target??"draft-2020-12";"draft-4"===t&&(t="draft-04"),"draft-7"===t&&(t="draft-07"),this.ctx=ni({processors:nG,target:t,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,t={path:[],schemaPath:[]}){return na(e,this.ctx,t)}emit(e,t){t&&(t.cycles&&(this.ctx.cycles=t.cycles),t.reused&&(this.ctx.reused=t.reused),t.external&&(this.ctx.external=t.external)),no(this.ctx,e);let{"~standard":n,...r}=ns(this.ctx,e);return r}},"NEVER",0,eN,"TimePrecision",0,lM,"_any",0,l5,"_array",0,uA,"_base64",0,lN,"_base64url",0,lU,"_bigint",0,lQ,"_boolean",0,lX,"_catch",0,uX,"_check",0,u5,"_cidrv4",0,lC,"_cidrv6",0,lP,"_coercedBigint",0,l0,"_coercedBoolean",0,lY,"_coercedDate",0,ut,"_coercedNumber",0,lJ,"_coercedString",0,lh,"_cuid",0,lI,"_cuid2",0,lS,"_custom",0,u6,"_date",0,ue,"_decode",0,tP,"_decodeAsync",0,tD,"_default",0,uH,"_discriminatedUnion",0,uN,"_e164",0,lZ,"_email",0,lg,"_emoji",0,l$,"_encode",0,tA,"_encodeAsync",0,tU,"_endsWith",0,u$,"_enum",0,uL,"_file",0,uV,"_float32",0,lW,"_float64",0,lH,"_gt",0,ua,"_gte",0,uo,"_guid",0,lv,"_includes",0,u_,"_int",0,lq,"_int32",0,lK,"_int64",0,l1,"_intersection",0,uU,"_ipv4",0,lj,"_ipv6",0,lz,"_isoDate",0,lL,"_isoDateTime",0,lR,"_isoDuration",0,lB,"_isoTime",0,lF,"_jwt",0,lD,"_ksuid",0,lT,"_lazy",0,u1,"_length",0,uv,"_literal",0,uB,"_lowercase",0,ub,"_lt",0,ur,"_lte",0,ui,"_mac",0,lA,"_map",0,uM,"_max",0,ui,"_maxLength",0,uh,"_maxSize",0,up,"_mime",0,uI,"_min",0,uo,"_minLength",0,ug,"_minSize",0,uf,"_multipleOf",0,ud,"_nan",0,un,"_nanoid",0,lw,"_nativeEnum",0,uF,"_negative",0,ul,"_never",0,l8,"_nonnegative",0,uc,"_nonoptional",0,uK,"_nonpositive",0,uu,"_normalize",0,uE,"_null",0,l9,"_nullable",0,uW,"_number",0,lV,"_optional",0,uq,"_overwrite",0,uS,"_parse",0,tw,"_parseAsync",0,tS,"_pipe",0,uY,"_positive",0,us,"_promise",0,u4,"_property",0,uw,"_readonly",0,uQ,"_record",0,uD,"_refine",0,u2,"_regex",0,uy,"_safeDecode",0,tF,"_safeDecodeAsync",0,tq,"_safeEncode",0,tR,"_safeEncodeAsync",0,tV,"_safeParse",0,tO,"_safeParseAsync",0,tj,"_set",0,uR,"_size",0,um,"_slugify",0,uz,"_startsWith",0,uk,"_string",0,lm,"_stringFormat",0,ce,"_stringbool",0,u7,"_success",0,uG,"_superRefine",0,u9,"_symbol",0,l6,"_templateLiteral",0,u0,"_toLowerCase",0,uT,"_toUpperCase",0,uj,"_transform",0,uJ,"_trim",0,uO,"_tuple",0,uZ,"_uint32",0,lG,"_uint64",0,l4,"_ulid",0,lE,"_undefined",0,l2,"_union",0,uC,"_unknown",0,l3,"_uppercase",0,ux,"_url",0,lk,"_uuid",0,ly,"_uuidv4",0,lb,"_uuidv6",0,lx,"_uuidv7",0,l_,"_void",0,l7,"_xid",0,lO,"_xor",0,uP,"clone",0,e7,"config",0,eL,"createStandardJSONSchemaMethod",0,nu,"createToJSONSchemaMethod",0,nl,"decode",0,tN,"decodeAsync",0,tM,"describe",0,u3,"encode",0,tC,"encodeAsync",0,tZ,"extractDefs",0,no,"finalize",0,ns,"flattenError",0,tb,"formatError",0,tx,"globalConfig",0,eR,"globalRegistry",0,nr,"initializeContext",0,ni,"isValidBase64",0,o6,"isValidBase64URL",0,o9,"isValidJWT",0,o8,"locales",0,lf,"meta",0,u8,"parse",0,tI,"parseAsync",0,tE,"prettifyError",0,t$,"process",0,na,"regexes",0,li,"registry",0,nn,"safeDecode",0,tB,"safeDecodeAsync",0,tW,"safeEncode",0,tL,"safeEncodeAsync",0,tJ,"safeParse",0,tT,"safeParseAsync",0,tz,"toDotPath",0,tk,"toJSONSchema",0,nX,"treeifyError",0,t_,"util",0,lr,"version",0,oC],12717);var cn=e.i(12717);e.s(["ZodAny",()=>dE,"ZodArray",()=>dZ,"ZodBase64",()=>c4,"ZodBase64URL",()=>c2,"ZodBigInt",()=>dg,"ZodBigIntFormat",()=>dy,"ZodBoolean",()=>dm,"ZodCIDRv4",()=>cY,"ZodCIDRv6",()=>c0,"ZodCUID",()=>cU,"ZodCUID2",()=>cD,"ZodCatch",()=>pk,"ZodCodec",()=>pO,"ZodCustom",()=>pF,"ZodCustomStringFormat",()=>de,"ZodDate",()=>dN,"ZodDefault",()=>pm,"ZodDiscriminatedUnion",()=>dH,"ZodE164",()=>c5,"ZodEmail",()=>cx,"ZodEmoji",()=>cA,"ZodEnum",()=>d8,"ZodExactOptional",()=>pu,"ZodFile",()=>pr,"ZodFunction",()=>pR,"ZodGUID",()=>ck,"ZodIPv4",()=>cq,"ZodIPv6",()=>cG,"ZodIntersection",()=>dG,"ZodJWT",()=>c8,"ZodKSUID",()=>cV,"ZodLazy",()=>pU,"ZodLiteral",()=>pt,"ZodMAC",()=>cH,"ZodMap",()=>d2,"ZodNaN",()=>pw,"ZodNanoID",()=>cP,"ZodNever",()=>dz,"ZodNonOptional",()=>py,"ZodNull",()=>dI,"ZodNullable",()=>pd,"ZodNumber",()=>da,"ZodNumberFormat",()=>dl,"ZodObject",()=>dR,"ZodOptional",()=>ps,"ZodPipe",()=>pS,"ZodPrefault",()=>pg,"ZodPreprocess",()=>pz,"ZodPromise",()=>
77pD,"ZodReadonly",()=>pA,"ZodRecord",()=>d0,"ZodSet",()=>d5,"ZodString",()=>cv,"ZodStringFormat",()=>cb,"ZodSuccess",()=>px,"ZodSymbol",()=>d_,"ZodTemplateLiteral",()=>pP,"ZodTransform",()=>pa,"ZodTuple",()=>dY,"ZodType",()=>ch,"ZodULID",()=>cR,"ZodURL",()=>cT,"ZodUUID",()=>cw,"ZodUndefined",()=>d$,"ZodUnion",()=>dV,"ZodUnknown",()=>dT,"ZodVoid",()=>dC,"ZodXID",()=>cF,"ZodXor",()=>dq,"_ZodString",()=>cg,"_default",()=>ph,"_function",()=>pL,"any",()=>dO,"array",()=>dD,"base64",()=>c6,"base64url",()=>c9,"bigint",()=>dv,"boolean",()=>dh,"catch",()=>p$,"check",()=>pB,"cidrv4",()=>cQ,"cidrv6",()=>c1,"codec",()=>pT,"cuid",()=>cZ,"cuid2",()=>cM,"custom",()=>pV,"date",()=>dU,"describe",()=>pW,"discriminatedUnion",()=>dK,"e164",()=>c3,"email",()=>c_,"emoji",()=>cC,"enum",()=>d7,"exactOptional",()=>pc,"file",()=>pi,"float32",()=>dc,"float64",()=>dd,"function",()=>pL,"guid",()=>c$,"hash",()=>di,"hex",()=>dr,"hostname",()=>dn,"httpUrl",()=>cz,"instanceof",()=>pK,"int",()=>du,"int32",()=>dp,"int64",()=>db,"intersection",()=>dX,"invertCodec",()=>pj,"ipv4",()=>cW,"ipv6",()=>cX,"json",()=>pX,"jwt",()=>c7,"keyof",()=>dM,"ksuid",()=>cJ,"lazy",()=>pZ,"literal",()=>pn,"looseObject",()=>dB,"looseRecord",()=>d6,"mac",()=>cK,"map",()=>d9,"meta",()=>pH,"nan",()=>pI,"nanoid",()=>cN,"nativeEnum",()=>pe,"never",()=>dA,"nonoptional",()=>pb,"null",()=>dS,"nullable",()=>pp,"nullish",()=>pf,"number",()=>ds,"object",()=>dL,"optional",()=>pl,"partialRecord",()=>d4,"pipe",()=>pE,"prefault",()=>pv,"preprocess",()=>pY,"promise",()=>pM,"readonly",()=>pC,"record",()=>d1,"refine",()=>pJ,"set",()=>d3,"strictObject",()=>dF,"string",()=>cy,"stringFormat",()=>dt,"stringbool",()=>pG,"success",()=>p_,"superRefine",()=>pq,"symbol",()=>dk,"templateLiteral",()=>pN,"transform",()=>po,"tuple",()=>dQ,"uint32",()=>df,"uint64",()=>dx,"ulid",()=>cL,"undefined",()=>dw,"union",()=>dJ,"unknown",()=>dj,"url",()=>cj,"uuid",()=>cI,"uuidv4",()=>cS,"uuidv6",()=>cE,"uuidv7",()=>cO,"void",()=>dP,"xid",()=>cB,"xor",()=>dW],62201);var cr=li,ci=lr;e.s(["ZodISODate",()=>cs,"ZodISODateTime",()=>ca,"ZodISODuration",()=>cd,"ZodISOTime",()=>cu,"date",()=>cl,"datetime",()=>co,"duration",()=>cp,"time",()=>cc],49732);let ca=eU("ZodISODateTime",(e,t)=>{oH.init(e,t),cb.init(e,t)});function co(e){return lR(ca,e)}let cs=eU("ZodISODate",(e,t)=>{oK.init(e,t),cb.init(e,t)});function cl(e){return lL(cs,e)}let cu=eU("ZodISOTime",(e,t)=>{oG.init(e,t),cb.init(e,t)});function cc(e){return lF(cu,e)}let cd=eU("ZodISODuration",(e,t)=>{oX.init(e,t),cb.init(e,t)});function cp(e){return lB(cd,e)}let cf=new WeakMap;function cm(e,t,n){let r=Object.getPrototypeOf(e),i=cf.get(r);if(i||(i=new Set,cf.set(r,i)),!i.has(t))for(let e in i.add(t),n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}let ch=eU("ZodType",(e,t)=>(oP.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:nu(e,"input"),output:nu(e,"output")}}),e.toJSONSchema=nl(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>tX(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>tQ(e,t,n),e.parseAsync=async(t,n)=>tY(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>t0(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>t1(e,t,n),e.decode=(t,n)=>t4(e,t,n),e.encodeAsync=async(t,n)=>t6(e,t,n),e.decodeAsync=async(t,n)=>t2(e,t,n),e.safeEncode=(t,n)=>t9(e,t,n),e.safeDecode=(t,n)=>t5(e,t,n),e.safeEncodeAsync=async(t,n)=>t3(e,t,n),e.safeDecodeAsync=async(t,n)=>t8(e,t,n),cm(e,"ZodType",{check(...e){let t=this.def;return this.clone(ci.mergeDefs(t,{checks:[...t.checks??[],...e.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return e7(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(pJ(e,t))},superRefine(e,t){return this.check(pq(e,t))},overwrite(e){return this.check(uS(e))},optional(){return pl(this)},exactOptional(){return pc(this)},nullable(){return pp(this)},nullish(){return pl(pp(this))},nonoptional(e){return pb(this,e)},array(){return dD(this)},or(e){return dJ([this,e])},and(e){return dX(this,e)},transform(e){return pE(this,po(e))},default(e){return ph(this,e)},prefault(e){return pv(this,e)},catch(e){return p$(this,e)},pipe(e){return pE(this,e)},readonly(){return pC(this)},describe(e){let t=this.clone();return nr.add(t,{description:e}),t},meta(...e){if(0===e.length)return nr.get(this);let t=this.clone();return nr.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get:()=>nr.get(e)?.description,configurable:!0}),e)),cg=eU("_ZodString",(e,t)=>{oN.init(e,t),ch.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nd(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,cm(e,"_ZodString",{regex(...e){return this.check(uy(...e))},includes(...e){return this.check(u_(...e))},startsWith(...e){return this.check(uk(...e))},endsWith(...e){return this.check(u$(...e))},min(...e){return this.check(ug(...e))},max(...e){return this.check(uh(...e))},length(...e){return this.check(uv(...e))},nonempty(...e){return this.check(ug(1,...e))},lowercase(e){return this.check(ub(e))},uppercase(e){return this.check(ux(e))},trim(){return this.check(uO())},normalize(...e){return this.check(uE(...e))},toLowerCase(){return this.check(uT())}
vendor: 4,618 bytes, line 77
77,toUpperCase(){return this.check(uj())},slugify(){return this.check(uz())}})}),cv=eU("ZodString",(e,t)=>{oN.init(e,t),cg.init(e,t),e.email=t=>e.check(lg(cx,t)),e.url=t=>e.check(lk(cT,t)),e.jwt=t=>e.check(lD(c8,t)),e.emoji=t=>e.check(l$(cA,t)),e.guid=t=>e.check(lv(ck,t)),e.uuid=t=>e.check(ly(cw,t)),e.uuidv4=t=>e.check(lb(cw,t)),e.uuidv6=t=>e.check(lx(cw,t)),e.uuidv7=t=>e.check(l_(cw,t)),e.nanoid=t=>e.check(lw(cP,t)),e.guid=t=>e.check(lv(ck,t)),e.cuid=t=>e.check(lI(cU,t)),e.cuid2=t=>e.check(lS(cD,t)),e.ulid=t=>e.check(lE(cR,t)),e.base64=t=>e.check(lN(c4,t)),e.base64url=t=>e.check(lU(c2,t)),e.xid=t=>e.check(lO(cF,t)),e.ksuid=t=>e.check(lT(cV,t)),e.ipv4=t=>e.check(lj(cq,t)),e.ipv6=t=>e.check(lz(cG,t)),e.cidrv4=t=>e.check(lC(cY,t)),e.cidrv6=t=>e.check(lP(c0,t)),e.e164=t=>e.check(lZ(c5,t)),e.datetime=t=>e.check(co(t)),e.date=t=>e.check(cl(t)),e.time=t=>e.check(cc(t)),e.duration=t=>e.check(cp(t))});function cy(e){return lm(cv,e)}let cb=eU("ZodStringFormat",(e,t)=>{oU.init(e,t),cg.init(e,t)}),cx=eU("ZodEmail",(e,t)=>{oM.init(e,t),cb.init(e,t)});function c_(e){return lg(cx,e)}let ck=eU("ZodGUID",(e,t)=>{oZ.init(e,t),cb.init(e,t)});function c$(e){return lv(ck,e)}let cw=eU("ZodUUID",(e,t)=>{oD.init(e,t),cb.init(e,t)});function cI(e){return ly(cw,e)}function cS(e){return lb(cw,e)}function cE(e){return lx(cw,e)}function cO(e){return l_(cw,e)}let cT=eU("ZodURL",(e,t)=>{oR.init(e,t),cb.init(e,t)});function cj(e){return lk(cT,e)}function cz(e){return lk(cT,{protocol:cr.httpProtocol,hostname:cr.domain,...ci.normalizeParams(e)})}let cA=eU("ZodEmoji",(e,t)=>{oL.init(e,t),cb.init(e,t)});function cC(e){return l$(cA,e)}let cP=eU("ZodNanoID",(e,t)=>{oF.init(e,t),cb.init(e,t)});function cN(e){return lw(cP,e)}let cU=eU("ZodCUID",(e,t)=>{oB.init(e,t),cb.init(e,t)});function cZ(e){return lI(cU,e)}let cD=eU("ZodCUID2",(e,t)=>{oV.init(e,t),cb.init(e,t)});function cM(e){return lS(cD,e)}let cR=eU("ZodULID",(e,t)=>{oJ.init(e,t),cb.init(e,t)});function cL(e){return lE(cR,e)}let cF=eU("ZodXID",(e,t)=>{oq.init(e,t),cb.init(e,t)});function cB(e){return lO(cF,e)}let cV=eU("ZodKSUID",(e,t)=>{oW.init(e,t),cb.init(e,t)});function cJ(e){return lT(cV,e)}let cq=eU("ZodIPv4",(e,t)=>{oY.init(e,t),cb.init(e,t)});function cW(e){return lj(cq,e)}let cH=eU("ZodMAC",(e,t)=>{o0.init(e,t),cb.init(e,t)});function cK(e){return lA(cH,e)}let cG=eU("ZodIPv6",(e,t)=>{oQ.init(e,t),cb.init(e,t)});function cX(e){return lz(cG,e)}let cY=eU("ZodCIDRv4",(e,t)=>{o1.init(e,t),cb.init(e,t)});function cQ(e){return lC(cY,e)}let c0=eU("ZodCIDRv6",(e,t)=>{o4.init(e,t),cb.init(e,t)});function c1(e){return lP(c0,e)}let c4=eU("ZodBase64",(e,t)=>{o2.init(e,t),cb.init(e,t)});function c6(e){return lN(c4,e)}let c2=eU("ZodBase64URL",(e,t)=>{o5.init(e,t),cb.init(e,t)});function c9(e){return lU(c2,e)}let c5=eU("ZodE164",(e,t)=>{o3.init(e,t),cb.init(e,t)});function c3(e){return lZ(c5,e)}let c8=eU("ZodJWT",(e,t)=>{o7.init(e,t),cb.init(e,t)});function c7(e){return lD(c8,e)}let de=eU("ZodCustomStringFormat",(e,t)=>{se.init(e,t),cb.init(e,t)});function dt(e,t,n={}){return ce(de,e,t,n)}function dn(e){return ce(de,"hostname",cr.hostname,e)}function dr(e){return ce(de,"hex",cr.hex,e)}function di(e,t){let n=t?.enc??"hex",r=`${e}_${n}`,i=cr[r];if(!i)throw Error(`Unrecognized hash format: ${r}`);return ce(de,r,i,t)}let da=eU("ZodNumber",(e,t)=>{st.init(e,t),ch.init(e,t),e._zod.processJSONSchema=(t,n,r)=>np(e,t,n,r),cm(e,"ZodNumber",{gt(e,t){return this.check(ua(e,t))},gte(e,t){return this.check(uo(e,t))},min(e,t){return this.check(uo(e,t))},lt(e,t){return this.check(ur(e,t))},lte(e,t){return this.check(ui(e,t))},max(e,t){return this.check(ui(e,t))},int(e){return this.check(du(e))},safe(e){return this.check(du(e))},positive(e){return this.check(ua(0,e))},nonnegative(e){return this.check(uo(0,e))},negative(e){return this.check(ur(0,e))},nonpositive(e){return this.check(ui(0,e))},multipleOf(e,t){return this.check(ud(e,t))},step(e,t){return this.check(ud(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function ds(e){return lV(da,e)}let dl=eU("ZodNumberFormat",(e,t)=>{sn.init(e,t),da.init(e,t)});function du(e){return lq(dl,e)}function dc(e){return lW(dl,e)}function dd(e){return lH(dl,e)}function dp(e){return lK(dl,e)}function df(e){return lG(dl,e)}let dm=eU("ZodBoolean",(e,t)=>{sr.init(e,t),ch.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nf(e,t,n,r)});function dh(e){return lX(dm,e)}
77let dg=eU("ZodBigInt",(e,t)=>{si.init(e,t),ch.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nm(e,t,n,r),e.gte=(t,n)=>e.check(uo(t,n)),e.min=(t,n)=>e.check(uo(t,n)),e.gt=(t,n)=>e.check(ua(t,n)),e.gte=(t,n)=>e.check(uo(t,n)),e.min=(t,n)=>e.check(uo(t,n)),e.lt=(t,n)=>e.check(ur(t,n)),e.lte=(t,n)=>e.check(ui(t,n)),e.max=(t,n)=>e.check(ui(t,n)),e.positive=t=>e.check(ua(BigInt(0),t)),e.negative=t=>e.check(ur(BigInt(0),t)),e.nonpositive=t=>e.check(ui(BigInt(0),t)),e.nonnegative=t=>e.check(uo(BigInt(0),t)),e.multipleOf=(t,n)=>e.check(ud(t,n));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function dv(e){return lQ(dg,e)}let dy=eU("ZodBigIntFormat",(e,t)=>{sa.init(e,t),dg.init(e,t)});function db(e){return l1(dy,e)}function dx(e){return l4(dy,e)}let d_=eU("ZodSymbol",(e,t)=>{so.init(e,t),ch.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nh(e,t,n,r)});function dk(e){return l6(d_,e)}let d$=eU("ZodUndefined",(e,t)=>{ss.init(e,t),ch.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nv(e,t,n,r)});function dw(e){return l2(d$,e)}let dI=eU("ZodNull",(e,t)=>{sl.init(e,t),ch.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ng(e,t,n,r)});function dS(e){return l9(dI,e)}let dE=eU("ZodAny",(e,t)=>{su.init(e,t),ch.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nx(e,t,n,r)});function dO(){return l5(dE)}let dT=eU("ZodUnknown",(e,t)=>{sc.init(e,t),ch.init(e,t),e._zod.processJSONSchema=(t,n,r)=>n_(e,t,n,r)});function dj(){return l3(dT)}let dz=eU("ZodNever",(e,t)=>{sd.init(e,t),ch.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nb(e,t,n,r)});function dA(e){return l8(dz,e)}let dC=eU("ZodVoid",(e,t)=>{sp.init(e,t),ch.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ny(e,t,n,r)});function dP(e){return l7(dC,e)}let dN=eU("ZodDate",(e,t)=>{sf.init(e,t),ch.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nk(e,t,n,r),e.min=(t,n)=>e.check(uo(t,n)),e.max=(t,n)=>e.check(ui(t,n));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function dU(e){return ue(dN,e)}let dZ=eU("ZodArray",(e,t)=>{sh.init(e,t),ch.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nP(e,t,n,r),e.element=t.element,cm(e,"ZodArray",{min(e,t){return this.check(ug(e,t))},nonempty(e){return this.check(ug(1,e))},max(e,t){return this.check(uh(e,t))},length(e,t){return this.check(uv(e,t))},unwrap(){return this.element}})});function dD(e,t){return uA(dZ,e,t)}function dM(e){return d7(Object.keys(e._zod.def.shape))}let dR=eU("ZodObject",(e,t)=>{sx.init(e,t),ch.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nN(e,t,n,r),ci.defineLazy(e,"shape",()=>t.shape),cm(e,"ZodObject",{keyof(){return d7(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:dj()})},loose(){return this.clone({...this._zod.def,catchall:dj()})},strict(){return this.clone({...this._zod.def,catchall:dA()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return ci.extend(this,e)},safeExtend(e){return ci.safeExtend(this,e)},merge(e){return ci.merge(this,e)},pick(e){return ci.pick(this,e)},omit(e){return ci.omit(this,e)},partial(...e){return ci.partial(ps,this,e[0])},required(...e){return ci.required(py,this,e[0])}})});function dL(e,t){return new dR({type:"object",shape:e??{},...ci.normalizeParams(t)})}function dF(e,t){return new dR({type:"object",shape:e,catchall:dA(),...ci.normalizeParams(t)})}function dB(e,t){return new dR({type:"object",shape:e,catchall:dj(),...ci.normalizeParams(t)})}let dV=eU("ZodUnion",(e,t)=>{sk.init(e,t),ch.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nU(e,t,n,r),e.options=t.options});function dJ(e,t){return new dV({type:"union",options:e,...ci.normalizeParams(t)})}let dq=eU("ZodXor",(e,t)=>{dV.init(e,t),sw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nU(e,t,n,r),e.options=t.options});function dW(e,t){return new dq({type:"union",options:e,inclusive:!1,...ci.normalizeParams(t)})}let dH=eU("ZodDiscriminatedUnion",(e,t)=>{dV.init(e,t),sI.init(e,t)});function dK(e,t,n){return new dH({type:"union",options:t,discriminator:e,...ci.normalizeParams(n)})}let dG=eU("ZodIntersection",(e,t)=>{sS.init(e,t),ch.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nZ(e,t,n,r)});function dX(e,t){return new dG({type:"intersection",left:e,right:t})}let dY=eU("ZodTuple",(e,t)=>{sO.init(e,t),ch.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nD(e,t,n,r),e.rest=t=>e.clone({...e._zod.def,rest:t})});function dQ(e,t,n){let r=t instanceof oP,i=r?n:t;return new dY({type:"tuple",items:e,rest:r?t:null,...ci.normalizeParams(i)})}let d0=eU("ZodRecord",(e,t)=>{sA.init(e,t),ch.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nM(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function d1(e,t,n){return new d0(t&&t._zod?{type:"record",keyType:e,valueType:t,...ci.normalizeParams(n)}:{type:"record",keyType:cy(),valueType:e,...ci.normalizeParams(t)})}function d4(e,t,n){let r=e7(e);return r._zod.values=void 0,new d0({type:"record",keyType:r,valueType:t,...ci.normalizeParams(n)})}function d6(e,t,n){return new d0({type:"record",keyType:e,valueType:t,mode:"loose",...ci.normalizeParams(n)})}let d2=eU("ZodMap",(e,t)=>{sC.init(e,t),ch.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nA(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(uf(...t)),e.nonempty=t=>e.check(uf(1,t)),e.max=(...t)=>e.check(up(...t)),e.size=(...t)=>e.check(um(...t))});function d9(e,t,n){return new d2({type:"map",keyType:e,valueType:t,...ci.normalizeParams(n)})}let d5=eU("ZodSet",(e,t)=>{sN.init(e,t),ch.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nC(e,t,n,r),e.min=(...t)=>e.check(uf(...t)),e.nonempty=t=>e.check(uf(1,t)),e.max=(...t)=>e.check(up(...t)),e.size=(...t)=>e.check(um(...t))});function d3(e,t){return new d5({type:"set",valueType:e,...ci.normalizeParams(t)})}let d8=eU("ZodEnum",(e,t)=>{sZ.init(e,t),ch.init(e,t),e._zod.processJSONSchema=(t,n,r)=>n$(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new d8({...t,checks:[],...ci.normalizeParams(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new d8({...t,checks:[],...ci.normalizeParams(r),entries:i})}});function d7(e,t){return new d8({type:"enum",entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...ci.normalizeParams(t)})}function pe(e,t){return new d8({type:"enum",entries:e,...ci.normalizeParams(t)})}let pt=eU("ZodLiteral",(e,t)=>{sD.init(e,t),ch.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nw(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if
77(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function pn(e,t){return new pt({type:"literal",values:Array.isArray(e)?e:[e],...ci.normalizeParams(t)})}let pr=eU("ZodFile",(e,t)=>{sM.init(e,t),ch.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nE(e,t,n,r),e.min=(t,n)=>e.check(uf(t,n)),e.max=(t,n)=>e.check(up(t,n)),e.mime=(t,n)=>e.check(uI(Array.isArray(t)?t:[t],n))});function pi(e){return uV(pr,e)}let pa=eU("ZodTransform",(e,t)=>{sR.init(e,t),ch.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nz(e,t,n,r),e._zod.parse=(n,r)=>{if("backward"===r.direction)throw new eM(e.constructor.name);n.addIssue=r=>{"string"==typeof r?n.issues.push(ci.issue(r,n.value,t)):(r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=n.value),r.inst??(r.inst=e),n.issues.push(ci.issue(r)))};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function po(e){return new pa({type:"transform",transform:e})}let ps=eU("ZodOptional",(e,t)=>{sF.init(e,t),ch.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nH(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function pl(e){return new ps({type:"optional",innerType:e})}let pu=eU("ZodExactOptional",(e,t)=>{sB.init(e,t),ch.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nH(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function pc(e){return new pu({type:"optional",innerType:e})}let pd=eU("ZodNullable",(e,t)=>{sV.init(e,t),ch.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nR(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function pp(e){return new pd({type:"nullable",innerType:e})}function pf(e){return pl(pp(e))}let pm=eU("ZodDefault",(e,t)=>{sJ.init(e,t),ch.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nF(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function ph(e,t){return new pm({type:"default",innerType:e,get defaultValue(){return"function"==typeof t?t():ci.shallowClone(t)}})}let pg=eU("ZodPrefault",(e,t)=>{sW.init(e,t),ch.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nB(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function pv(e,t){return new pg({type:"prefault",innerType:e,get defaultValue(){return"function"==typeof t?t():ci.shallowClone(t)}})}let py=eU("ZodNonOptional",(e,t)=>{sH.init(e,t),ch.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nL(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function pb(e,t){return new py({type:"nonoptional",innerType:e,...ci.normalizeParams(t)})}let px=eU("ZodSuccess",(e,t)=>{sG.init(e,t),ch.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nO(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function p_(e){return new px({type:"success",innerType:e})}let pk=eU("ZodCatch",(e,t)=>{sX.init(e,t),ch.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nV(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function p$(e,t){return new pk({type:"catch",innerType:e,catchValue:"function"==typeof t?t:()=>t})}let pw=eU("ZodNaN",(e,t)=>{sY.init(e,t),ch.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nI(e,t,n,r)});function pI(e){return un(pw,e)}let pS=eU("ZodPipe",(e,t)=>{sQ.init(e,t),ch.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nJ(e,t,n,r),e.in=t.in,e.out=t.out});function pE(e,t){return new pS({type:"pipe",in:e,out:t})}let pO=eU("ZodCodec",(e,t)=>{pS.init(e,t),s1.init(e,t)});function pT(e,t,n){return new pO({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function pj(e){let t=e._zod.def;return new pO({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}let pz=eU("ZodPreprocess",(e,t)=>{pS.init(e,t),s2.init(e,t)}),pA=eU("ZodReadonly",(e,t)=>{s9.init(e,t),ch.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nq(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function pC(e){return new pA({type:"readonly",innerType:e})}let pP=eU("ZodTemplateLiteral",(e,t)=>{s3.init(e,t),ch.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nS(e,t,n,r)});function pN(e,t){return new pP({type:"template_literal",parts:e,...ci.normalizeParams(t)})}let pU=eU("ZodLazy",(e,t)=>{le.init(e,t),ch.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nK(e,t,n,r),e.unwrap=()=>e._zod.def.getter()});function pZ(e){return new pU({type:"lazy",getter:e})}let pD=eU("ZodPromise",(e,t)=>{s7.init(e,t),ch.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nW(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function pM(e){return new pD({type:"promise",innerType:e})}let pR=eU("ZodFunction",(e,t)=>{s8.init(e,t),ch.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nj(e,t,n,r)});function pL(e){return new pR({type:"function",input:Array.isArray(e?.input)?dQ(e?.input):e?.input??dD(dj()),output:e?.output??dj()})}let pF=eU("ZodCustom",(e,t)=>{lt.init(e,t),ch.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nT(e,t,n,r)});function pB(e){let t=new ol({check:"custom"});return t._zod.check=e,t}function pV(e,t){return u6(pF,e??(()=>!0),t)}function pJ(e,t={}){return u2(pF,e,t)}function pq(e,t){return u9(e,t)}let pW=u3,pH=u8;function pK(e,t={}){let n=new pF({type:"custom",check:"custom",fn:t=>t instanceof e,abort:!0,...ci.normalizeParams(t)});return n._zod.bag.Class=e,n._zod.check=t=>{t.value instanceof e||t.issues.push({code:"invalid_type",expected:e.name,input:t.value,inst:n,path:[...n._zod.def.path??[]]})},n}let pG=(...e)=>u7({Codec:pO,Boolean:dm,String:cv},...e);function pX(e){let t=pZ(()=>dJ([cy(e),ds(),dh(),dS(),dD(t),d1(cy(),t)]));return t}function pY(e,t){return new pz({type:"pipe",in:po(e),out:t})}var pQ=e.i(62201);e.s([],42332),e.i(42332),e.s(["endsWith",0,u$,"gt",0,ua,"gte",0,uo,"includes",0,u_,"length",0,uv,"lowercase",0,ub,"lt",0,ur,"lte",0,ui,"maxLength",0,uh,"maxSize",0,up,"mime",0,uI,"minLength",0,ug,"minSize",0,uf,"multipleOf",0,ud,"negative",0,ul,"nonnegative",0,uc,"nonpositive",0,uu,"normalize",0,uE,"overwrite",0,uS,"positive",0,us,"property",0,uw,"regex",0,uy,"size",0,um,"slugify",0,uz,"startsWith",0,uk,"toLowerCase",0,uT,"toUpperCase",0,uj,"trim",0,uO,"uppercase",0,ux],30421);var p0=e.i(30421);e.i(89282),e.i(364);let p1={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",invali
77d_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function p4(e){eL({customError:e})}function p6(){return eL().customError}I||(I={}),e.s(["ZodFirstPartyTypeKind",0,I,"ZodIssueCode",0,p1,"getErrorMap",0,p6,"setErrorMap",0,p4],6034),e.i(6034),e.s(["$brand",0,eZ,"ZodFirstPartyTypeKind",0,I,"ZodIssueCode",0,p1,"config",0,eL,"getErrorMap",0,p6,"setErrorMap",0,p4],58829),e.i(58829);var cr=li,ci=lr,p2=e.i(49732);let p9={...pQ,...p0,iso:p2},p5=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);e.s(["bigint",0,function(e){return l0(dg,e)},"boolean",0,function(e){return lY(dm,e)},"date",0,function(e){return ut(dN,e)},"number",0,function(e){return lJ(da,e)},"string",0,function(e){return lh(cv,e)}],13657);var p3=e.i(13657);e.s(["$brand",0,eZ,"$input",0,ne,"$output",0,t7,"NEVER",0,eN,"TimePrecision",0,lM,"ZodAny",0,dE,"ZodArray",0,dZ,"ZodBase64",0,c4,"ZodBase64URL",0,c2,"ZodBigInt",0,dg,"ZodBigIntFormat",0,dy,"ZodBoolean",0,dm,"ZodCIDRv4",0,cY,"ZodCIDRv6",0,c0,"ZodCUID",0,cU,"ZodCUID2",0,cD,"ZodCatch",0,pk,"ZodCodec",0,pO,"ZodCustom",0,pF,"ZodCustomStringFormat",0,de,"ZodDate",0,dN,"ZodDefault",0,pm,"ZodDiscriminatedUnion",0,dH,"ZodE164",0,c5,"ZodEmail",0,cx,"ZodEmoji",0,cA,"ZodEnum",0,d8,"ZodError",0,tK,"ZodExactOptional",0,pu,"ZodFile",0,pr,"ZodFirstPartyTypeKind",0,I,"ZodFunction",0,pR,"ZodGUID",0,ck,"ZodIPv4",0,cq,"ZodIPv6",0,cG,"ZodISODate",0,cs,"ZodISODateTime",0,ca,"ZodISODuration",0,cd,"ZodISOTime",0,cu,"ZodIntersection",0,dG,"ZodIssueCode",0,p1,"ZodJWT",0,c8,"ZodKSUID",0,cV,"ZodLazy",0,pU,"ZodLiteral",0,pt,"ZodMAC",0,cH,"ZodMap",0,d2,"ZodNaN",0,pw,"ZodNanoID",0,cP,"ZodNever",0,dz,"ZodNonOptional",0,py,"ZodNull",0,dI,"ZodNullable",0,pd,"ZodNumber",0,da,"ZodNumberFormat",0,dl,"ZodObject",0,dR,"ZodOptional",0,ps,"ZodPipe",0,pS,"ZodPrefault",0,pg,"ZodPreprocess",0,pz,"ZodPromise",0,pD,"ZodReadonly",0,pA,"ZodRealError",0,tG,"ZodRecord",0,d0,"ZodSet",0,d5,"ZodString",0,cv,"ZodStringFormat",0,cb,"ZodSuccess",0,px,"ZodSymbol",0,d_,"ZodTemplateLiteral",0,pP,"ZodTransform",0,pa,"ZodTuple",0,dY,"ZodType",0,ch,"ZodULID",0,cR,"ZodURL",0,cT,"ZodUUID",0,cw,"ZodUndefined",0,d$,"ZodUnion",0,dV,"ZodUnknown",0,dT,"ZodVoid",0,dC,"ZodXID",0,cF,"ZodXor",0,dq,"_ZodString",0,cg,"_default",0,ph,"_function",0,pL,"any",0,dO,"array",0,dD,"base64",0,c6,"base64url",0,c9,"bigint",0,dv,"boolean",0,dh,"catch",0,p$,"check",0,pB,"cidrv4",0,cQ,"cidrv6",0,c1,"clone",0,e7,"codec",0,pT,"coerce",0,p3,"config",0,eL,"core",0,cn,"cuid",0,cZ,"cuid2",0,cM,"custom",0,pV,"date",0,dU,"decode",0,t4,"decodeAsync",0,t2,"describe",0,pW,"discriminatedUnion",0,dK,"e164",0,c3,"email",0,c_,"emoji",0,cC,"encode",0,t1,"encodeAsync",0,t6,"endsWith",0,u$,"enum",0,d7,"exactOptional",0,pc,"file",0,pi,"flattenError",0,tb,"float32",0,dc,"float64",0,dd,"formatError",0,tx,"fromJSONSchema",0,function(e,t){var n,r;let i,a;if("boolean"==typeof e)return e?p9.any():p9.never();try{i=JSON.parse(JSON.stringify(e))}catch{throw Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let o={version:(n=i,r=t?.defaultTarget,"https://json-schema.org/draft/2020-12/schema"===(a=n.$schema)?"draft-2020-12":"http://json-schema.org/draft-07/schema#"===a?"draft-7":"http://json-schema.org/draft-04/schema#"===a?"draft-4":r??"draft-2020-12"),defs:i.$defs||i.definitions||{},refs:new Map,processing:new Set,rootSchema:i,registry:t?.registry??nr};return function e(t,n){if("boolean"==typeof t)return t?p9.any():p9.never();let r=function t(n,r){let i;if(void 0!==n.not){if("object"==typeof n.not&&0===Object.keys(n.not).length)return p9.never();throw Error("not is not supported in Zod (except { not: {} } for never)")}if(void 0!==n.unevaluatedItems)throw Error("unevaluatedItems is not supported");if(void 0!==n.unevaluatedProperties)throw Error("unevaluatedProperties is not supported");if(void 0!==n.if||void 0!==n.then||void 0!==n.else)throw Error("Conditional schemas (if/then/else) are not supported");if(void 0!==n.dependentSchemas||void 0!==n.dependentRequired)throw Error("dependentSchemas and dependentRequired are not supported");if(n.$ref){let t=n.$ref;if(r.refs.has(t))return r.refs.get(t);if(r.processing.has(t))return p9.lazy(()=>
77{if(!r.refs.has(t))throw Error(`Circular reference not resolved: ${t}`);return r.refs.get(t)});r.processing.add(t);let i=e(function(e,t){if(!e.startsWith("#"))throw Error("External $ref is not supported, only local refs (#/...) are allowed");let n=e.slice(1).split("/").filter(Boolean);if(0===n.length)return t.rootSchema;let r="draft-2020-12"===t.version?"$defs":"definitions";if(n[0]===r){let r=n[1];if(!r||!t.defs[r])throw Error(`Reference not found: ${e}`);return t.defs[r]}throw Error(`Reference not found: ${e}`)}(t,r),r);return r.refs.set(t,i),r.processing.delete(t),i}if(void 0!==n.enum){let e=n.enum;if("openapi-3.0"===r.version&&!0===n.nullable&&1===e.length&&null===e[0])return p9.null();if(0===e.length)return p9.never();if(1===e.length)return p9.literal(e[0]);if(e.every(e=>"string"==typeof e))return p9.enum(e);let t=e.map(e=>p9.literal(e));return t.length<2?t[0]:p9.union([t[0],t[1],...t.slice(2)])}if(void 0!==n.const)return p9.literal(n.const);let a=n.type;if(Array.isArray(a)){let e=a.map(e=>t({...n,type:e},r));return 0===e.length?p9.never():1===e.length?e[0]:p9.union(e)}if(!a)return p9.any();switch(a){case"string":{let e=p9.string();if(n.format){let t=n.format;"email"===t?e=e.check(p9.email()):"uri"===t||"uri-reference"===t?e=e.check(p9.url()):"uuid"===t||"guid"===t?e=e.check(p9.uuid()):"date-time"===t?e=e.check(p9.iso.datetime()):"date"===t?e=e.check(p9.iso.date()):"time"===t?e=e.check(p9.iso.time()):"duration"===t?e=e.check(p9.iso.duration()):"ipv4"===t?e=e.check(p9.ipv4()):"ipv6"===t?e=e.check(p9.ipv6()):"mac"===t?e=e.check(p9.mac()):"cidr"===t?e=e.check(p9.cidrv4()):"cidr-v6"===t?e=e.check(p9.cidrv6()):"base64"===t?e=e.check(p9.base64()):"base64url"===t?e=e.check(p9.base64url()):"e164"===t?e=e.check(p9.e164()):"jwt"===t?e=e.check(p9.jwt()):"emoji"===t?e=e.check(p9.emoji()):"nanoid"===t?e=e.check(p9.nanoid()):"cuid"===t?e=e.check(p9.cuid()):"cuid2"===t?e=e.check(p9.cuid2()):"ulid"===t?e=e.check(p9.ulid()):"xid"===t?e=e.check(p9.xid()):"ksuid"===t&&(e=e.check(p9.ksuid()))}"number"==typeof n.minLength&&(e=e.min(n.minLength)),"number"==typeof n.maxLength&&(e=e.max(n.maxLength)),n.pattern&&(e=e.regex(new RegExp(n.pattern))),i=e;break}case"number":case"integer":{let e="integer"===a?p9.number().int():p9.number();"number"==typeof n.minimum&&(e=e.min(n.minimum)),"number"==typeof n.maximum&&(e=e.max(n.maximum)),"number"==typeof n.exclusiveMinimum?e=e.gt(n.exclusiveMinimum):!0===n.exclusiveMinimum&&"number"==typeof n.minimum&&(e=e.gt(n.minimum)),"number"==typeof n.exclusiveMaximum?e=e.lt(n.exclusiveMaximum):!0===n.exclusiveMaximum&&"number"==typeof n.maximum&&(e=e.lt(n.maximum)),"number"==typeof n.multipleOf&&(e=e.multipleOf(n.multipleOf)),i=e;break}case"boolean":i=p9.boolean();break;case"null":i=p9.null();break;case"object":{let t={},a=n.properties||{},o=new Set(n.required||[]);for(let[n,i]of Object.entries(a)){let a=e(i,r);t[n]=o.has(n)?a:a.optional()}if(n.propertyNames){let a=e(n.propertyNames,r),o=n.additionalProperties&&"object"==typeof n.additionalProperties?e(n.additionalProperties,r):p9.any();if(0===Object.keys(t).length){i=p9.record(a,o);break}let s=p9.object(t).passthrough(),l=p9.looseRecord(a,o);i=p9.intersection(s,l);break}if(n.patternProperties){let a=n.patternProperties,o=Object.keys(a),s=[];for(let t of o){let n=e(a[t],r),i=p9.string().regex(new RegExp(t));s.push(p9.looseRecord(i,n))}let l=[];if(Object.keys(t).length>0&&l.push(p9.object(t).passthrough()),l.push(...s),0===l.length)i=p9.object({}).passthrough();else if(1===l.length)i=l[0];else{let e=p9.intersection(l[0],l[1]);for(let t=2;t<l.length;t++)e=p9.intersection(e,l[t]);i=e}break}let s=p9.object(t);i=!1===n.additionalProperties?s.strict():"object"==typeof n.additionalProperties?s.catchall(e(n.additionalProperties,r)):s.passthrough();break}case"array":{let t=n.prefixItems,a=n.items;if(t&&Array.isArray(t)){let o=t.map(t=>e(t,r)),s=a&&"object"==typeof a&&!Array.isArray(a)?e(a,r):void 0;i=s?p9.tuple(o).rest(s):p9.tuple(o),"number"==typeof n.minItems&&(i=i.check(p9.minLength(n.minItems))),"number"==typeof n.maxItems&&(i=i.check(p9.maxLength(n.maxItems)))}else if(Array.isArray(a)){let t=a.map(t=>e(t,r)),o=n.additionalItems&&"object"==typeof n.additionalItems?e(n.additionalItems,r):void 0;i=o?p9.tuple(t).rest(o):p9.tuple(t),"number"==typeof n.minItems&&(i=i.check(p9.minLength(n.minItems))),"number"==typeof n.maxItems&&(i=i.check(p9.maxLength(n.maxItems)))}else if(void 0!==a){let t=e(a,r),o=p9.array(t);"number"==typeof n.minItems&&(o=o.min(n.minItems)),"number"==typeof n.maxItems&&(o=o.max(n.maxItems)),i=o}else i=p9.array(p9.any());break}default:throw Error(`Unsupported type: ${a}`)}return i}
77(t,n),i=t.type||void 0!==t.enum||void 0!==t.const;if(t.anyOf&&Array.isArray(t.anyOf)){let a=t.anyOf.map(t=>e(t,n)),o=p9.union(a);r=i?p9.intersection(r,o):o}if(t.oneOf&&Array.isArray(t.oneOf)){let a=t.oneOf.map(t=>e(t,n)),o=p9.xor(a);r=i?p9.intersection(r,o):o}if(t.allOf&&Array.isArray(t.allOf))if(0===t.allOf.length)r=i?r:p9.any();else{let a=i?r:e(t.allOf[0],n),o=+!i;for(let r=o;r<t.allOf.length;r++)a=p9.intersection(a,e(t.allOf[r],n));r=a}!0===t.nullable&&"openapi-3.0"===n.version&&(r=p9.nullable(r)),!0===t.readOnly&&(r=p9.readonly(r)),void 0!==t.default&&(r=r.default(t.default));let a={};for(let e of["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"])e in t&&(a[e]=t[e]);for(let e of["contentEncoding","contentMediaType","contentSchema"])e in t&&(a[e]=t[e]);for(let e of Object.keys(t))p5.has(e)||(a[e]=t[e]);return Object.keys(a).length>0&&n.registry.add(r,a),t.description&&(r=r.describe(t.description)),r}(i,o)},"function",0,pL,"getErrorMap",0,p6,"globalRegistry",0,nr,"gt",0,ua,"gte",0,uo,"guid",0,c$,"hash",0,di,"hex",0,dr,"hostname",0,dn,"httpUrl",0,cz,"includes",0,u_,"instanceof",0,pK,"int",0,du,"int32",0,dp,"int64",0,db,"intersection",0,dX,"invertCodec",0,pj,"ipv4",0,cW,"ipv6",0,cX,"iso",0,p2,"json",0,pX,"jwt",0,c7,"keyof",0,dM,"ksuid",0,cJ,"lazy",0,pZ,"length",0,uv,"literal",0,pn,"locales",0,lf,"looseObject",0,dB,"looseRecord",0,d6,"lowercase",0,ub,"lt",0,ur,"lte",0,ui,"mac",0,cK,"map",0,d9,"maxLength",0,uh,"maxSize",0,up,"meta",0,pH,"mime",0,uI,"minLength",0,ug,"minSize",0,uf,"multipleOf",0,ud,"nan",0,pI,"nanoid",0,cN,"nativeEnum",0,pe,"negative",0,ul,"never",0,dA,"nonnegative",0,uc,"nonoptional",0,pb,"nonpositive",0,uu,"normalize",0,uE,"null",0,dS,"nullable",0,pp,"nullish",0,pf,"number",0,ds,"object",0,dL,"optional",0,pl,"overwrite",0,uS,"parse",0,tX,"parseAsync",0,tY,"partialRecord",0,d4,"pipe",0,pE,"positive",0,us,"prefault",0,pv,"preprocess",0,pY,"prettifyError",0,t$,"promise",0,pM,"property",0,uw,"readonly",0,pC,"record",0,d1,"refine",0,pJ,"regex",0,uy,"regexes",()=>cr,"registry",0,nn,"safeDecode",0,t5,"safeDecodeAsync",0,t8,"safeEncode",0,t9,"safeEncodeAsync",0,t3,"safeParse",0,tQ,"safeParseAsync",0,t0,"set",0,d3,"setErrorMap",0,p4,"size",0,um,"slugify",0,uz,"startsWith",0,uk,"strictObject",0,dF,"string",0,cy,"stringFormat",0,dt,"stringbool",0,pG,"success",0,p_,"superRefine",0,pq,"symbol",0,dk,"templateLiteral",0,pN,"toJSONSchema",0,nX,"toLowerCase",0,uT,"toUpperCase",0,uj,"transform",0,po,"treeifyError",0,t_,"trim",0,uO,"tuple",0,dQ,"uint32",0,df,"uint64",0,dx,"ulid",0,cL,"undefined",0,dw,"union",0,dJ,"unknown",0,dj,"uppercase",0,ux,"url",0,cj,"util",()=>ci,"uuid",0,cI,"uuidv4",0,cS,"uuidv6",0,cE,"uuidv7",0,cO,"void",0,dP,"xid",0,cB,"xor",0,dW],22219);var p8=e.i(22219),p8=p8,p7=e.i(25150),fe=Symbol.for("vercel.ai.gateway.error"),ft=class e extends(E=Error,S=fe,E){constructor({message:e,statusCode:t=500,cause:n,generationId:r,isRetryable:i=null!=t&&(408===t||409===t||429===t||t>=500)}){super(r?`${e} [${r}]`:e),this[S]=!0,this.statusCode=t,this.cause=n,this.generationId=r,this.isRetryable=i}static isInstance(t){return e.hasMarker(t)}static hasMarker(e){return"object"==typeof e&&null!==e&&fe in e&&!0===e[fe]}},fn="GatewayAuthenticationError",fr=Symbol.for(`vercel.ai.gateway.error.${fn}`),fi=class e extends(T=ft,O=fr,T){constructor({message:e="Authentication failed",statusCode:t=401,cause:n,generationId:r}={}){super({message:e,statusCode:t,cause:n,generationId:r}),this[O]=!0,this.name=fn,this.type="authentication_error"}static isInstance(e){return ft.hasMarker(e)&&fr in e}static createContextualError({apiKeyProvided:t,oidcTokenProvided:n,statusCode:r=401,cause:i,generationId:a}){return new e({message:t?`AI Gateway authentication failed: Invalid API key or token. 78 79Create a new API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys 80 81Provide an API key or Vercel access token via 'apiKey' option or 'AI_GATEWAY_API_KEY' environment variable.`:n?`AI Gateway authentication failed: Invalid OIDC token. 82 83Run 'npx vercel link' to link your project, then 'vc env pull' to fetch the token. 84 85Alternatively, use an API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys 86or pass a Vercel access token via the 'apiKey' option.`:`AI Gateway authentication failed: No authentication provided. 87 88Option 1 - API key: 89Create an API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys 90Provide via 'apiKey' option or 'AI_GATEWAY_API_KEY' environment variable. 91 92Option 2 - Vercel access token: 93Pass a Vercel personal access token or Vercel app access token via the 'apiKey' option. 94 95Option 3 - OIDC token: 96Run 'npx vercel link' to link your project, then 'vc env pull' to fetch the token.`,statusCode:r,cause:i,generationId:a})}},fa="GatewayInvalidRequestError",fo=Symbol.for(`vercel.ai.gateway.error.${fa}`),fs=class extends(z=ft,j=fo,z){constructor({message:e="Invalid request",statusCode:t=400,cause:n,generationId:r}={}){super({message:e,statusCode:t,cause:n,generationId:r}),this[j]=!0,this.name=fa,this.type="invalid_request_error"}static isInstance(e){return ft.hasMarker(e)&&fo in e}},fl="GatewayRateLimitError",fu=Symbol.for(`vercel.ai.gateway.error.${fl}`),fc=class extends(C=ft,A=fu,C){constructor({message:e="Rate limit exceeded",statusCode:t=429,cause:n,generationId:r}={}){super({message:e,statusCode:t,cause:n,generationId:r}),this[A]=!0,this.name=fl,this.type="rate_limit_exceeded"}static isInstance(e){return ft.hasMarker(e)&&fu in e}},fd="GatewayModelNotFoundError",fp=Symbol.for(`vercel.ai.gateway.error.${fd}`),ff=ae(()=>ar(p8.object({modelId:p8.string()}))),fm=class extends(N=ft,P=fp,N){constructor({message:e="Model not found",statusCode:t=404,modelId:n,cause:r,generationId:i}={}){super({message:e,statusCode:t,cause:r,generationId:i}),this[P]=!0,this.name=fd,this.type="model_not_found",this.modelId=n}static isInstance(e){return ft.hasMarker(e)&&fp in e}},fh="GatewayInternalServerError",fg=Symbol.for(`vercel.ai.gateway.error.${fh}`),fv=class extends(Z=ft,U=fg,Z){constructor({message:e="Internal server error",statusCode:t=500,cause:n,generationId:r}={}){super({message:e,statusCode:t,cause:n,generationId:r}),this[U]=!0,this.name=fh,this.type="internal_server_error"}static isInstance(e){return ft.hasMarker(e)&&fg in e}},fy="GatewayFailedDependencyError",fb=Symbol.for(`vercel.ai.gateway.error.${fy}`),fx=class extends(M=ft,D=fb,M){constructor({message:e="Failed dependency",statusCode:t=424,cause:n,generationId:r}={}){super({message:e,statusCode:t,cause:n,generationId:r}),this[D]=!0,this.name=fy,this.type="failed_dependency"}static isInstance(e){return ft.hasMarker(e)&&fb in e}},f_="GatewayForbiddenError",fk=Symbol.for(`vercel.ai.gateway.error.${f_}`),f$=ae(()=>ar(p8.object({ruleId:p8.string()}))),fw=class extends(L=ft,R=fk,L){constructor({message:e="Forbidden",statusCode:t=403,cause:n,generationId:r,ruleId:i}={}){super({message:e,statusCode:t,cause:n,generationId:r}),this[R]=!0,this.name=f_,this.type="forbidden",this.ruleId=i}static isInstance(e){return ft.hasMarker(e)&&fk in e}},fI="GatewayResponseError",fS=Symbol.for(`vercel.ai.gateway.error.${fI}`),fE=class extends(B=ft,F=fS,B){constructor({message:e="Invalid response from Gateway",statusCode:t=502,response:n,validationError:r,cause:i,generationId:a}={}){super({message:e,statusCode:t,cause:i,generationId:a}),this[F]=!0,this.name=fI,this.type="response_error",this.response=n,this.validationError=r}static isInstance(e){return ft.hasMarker(e)&&fS in e}};async function fO({response:e,statusCode:t,defaultMessage:n="Gateway request failed",cause:r,authMethod:i}){var a;let o=await aa({value:e,schema:fT});if(!o.success){let i="object"==typeof e&&null!==e&&"generationId"in e?e.generationId:void 0;return new fE({message:`Invalid error response format: ${n}`,statusCode:t,response:e,validationError:o.error,cause:r,generationId:i})}let s=o.value,l=s.error.type,u=s.error.message,c=null!=(a=s.generationId)?a:void 0;switch(l){case"authentication_error":return fi.createContextualError({apiKeyProvided:"api-key"===i,oidcTokenProvided:"oidc"===i,statusCode:t,cause:r,generationId:c});
96case"invalid_request_error":return new fs({message:u,statusCode:t,cause:r,generationId:c});case"rate_limit_exceeded":return new fc({message:u,statusCode:t,cause:r,generationId:c});case"model_not_found":{let e=await aa({value:s.error.param,schema:ff});return new fm({message:u,statusCode:t,modelId:e.success?e.value.modelId:void 0,cause:r,generationId:c})}case"internal_server_error":default:return new fv({message:u,statusCode:t,cause:r,generationId:c});case"failed_dependency":return new fx({message:u,statusCode:t,cause:r,generationId:c});case"forbidden":{let e=await aa({value:s.error.param,schema:f$});return new fw({message:u,statusCode:t,cause:r,generationId:c,ruleId:e.success?e.value.ruleId:void 0})}}}var fT=ae(()=>ar(p8.object({error:p8.object({message:p8.string(),type:p8.string().nullish(),param:p8.unknown().nullish(),code:p8.union([p8.string(),p8.number()]).nullish()}),generationId:p8.string().nullish()}))),fj="GatewayTimeoutError",fz=Symbol.for(`vercel.ai.gateway.error.${fj}`),fA=class e extends(J=ft,V=fz,J){constructor({message:e="Request timed out",statusCode:t=408,cause:n,generationId:r}={}){super({message:e,statusCode:t,cause:n,generationId:r}),this[V]=!0,this.name=fj,this.type="timeout_error"}static isInstance(e){return ft.hasMarker(e)&&fz in e}static createTimeoutError({originalMessage:t,statusCode:n=408,cause:r,generationId:i}){return new e({message:`Gateway request timed out: ${t} 97 98 This is a client-side timeout. To resolve this, increase your timeout configuration: https://vercel.com/docs/ai-gateway/capabilities/video-generation#extending-timeouts-for-node.js`,statusCode:n,cause:r,generationId:i})}};function fC(e){if(!(e instanceof Error))return!1;let t=e.code;return"string"==typeof t&&["UND_ERR_HEADERS_TIMEOUT","UND_ERR_BODY_TIMEOUT","UND_ERR_CONNECT_TIMEOUT"].includes(t)}async function fP(e,t){var n;return ft.isInstance(e)?e:fC(e)?fA.createTimeoutError({originalMessage:e instanceof Error?e.message:"Unknown error",cause:e}):em.isInstance(e)?e.cause&&fC(e.cause)?fA.createTimeoutError({originalMessage:e.message,cause:e}):await fO({response:function(e){if(void 0!==e.data)return e.data;if(null!=e.responseBody)try{return iP(e.responseBody)}catch(t){return e.responseBody}return{}}(e),statusCode:null!=(n=e.statusCode)?n:500,defaultMessage:"Gateway request failed",cause:e,authMethod:t}):await fO({response:{},statusCode:500,defaultMessage:e instanceof Error?`Gateway request failed: ${e.message}`:"Unknown Gateway error",cause:e,authMethod:t})}var fN="ai-gateway-auth-method";async function fU(e){let t=await aa({value:e[fN],schema:fZ});return t.success?t.value:void 0}var fZ=ae(()=>ar(p8.union([p8.literal("api-key"),p8.literal("oidc")]))),fD=["embedding","image","language","realtime","reranking","speech","transcription","video"],fM=class{constructor(e){this.config=e}async getAvailableModels(){try{let{value:e}=await iT({url:`${this.config.baseURL}/config`,headers:this.config.headers?await af(this.config.headers):void 0,successfulResponseHandler:av(fR),failedResponseHandler:ag({errorSchema:p8.any(),errorToMessage:e=>e}),fetch:this.config.fetch});return e}catch(e){throw await fP(e)}}async getCredits(){try{let e=new URL(this.config.baseURL),{value:t}=await iT({url:`${e.origin}/v1/credits`,headers:this.config.headers?await af(this.config.headers):void 0,successfulResponseHandler:av(fL),failedResponseHandler:ag({errorSchema:p8.any(),errorToMessage:e=>e}),fetch:this.config.fetch});return t}catch(e){throw await fP(e)}}},fR=ae(()=>ar(p8.object({models:p8.array(p8.object({id:p8.string(),name:p8.string(),description:p8.string().nullish(),pricing:p8.object({input:p8.string(),output:p8.string(),input_cache_read:p8.string().nullish(),input_cache_write:p8.string().nullish()}).transform(({input:e,output:t,input_cache_read:n,input_cache_write:r})=>({input:e,output:t,...n?{cachedInputTokens:n}:{},...r?{cacheCreationInputTokens:r}:{}})).nullish(),specification:p8.object({specificationVersion:p8.literal("v4"),provider:p8.string(),modelId:p8.string()}),modelType:p8.string().nullish()})).transform(e=>e.filter(e=>null==e.modelType||fD.includes(e.modelType)))}))),fL=ae(()=>ar(p8.object({balance:p8.string(),total_used:p8.string()}).transform(({balance:e,total_used:t})=>({balance:e,totalUsed:t})))),fF=class{constructor(e){this.config=e}
98async getSpendReport(e){try{let t=new URL(this.config.baseURL),n=new URLSearchParams;n.set("start_date",e.startDate),n.set("end_date",e.endDate),e.groupBy&&n.set("group_by",e.groupBy),e.datePart&&n.set("date_part",e.datePart),e.userId&&n.set("user_id",e.userId),e.model&&n.set("model",e.model),e.provider&&n.set("provider",e.provider),e.credentialType&&n.set("credential_type",e.credentialType),e.tags&&e.tags.length>0&&n.set("tags",e.tags.join(","));let{value:r}=await iT({url:`${t.origin}/v1/report?${n.toString()}`,headers:this.config.headers?await af(this.config.headers):void 0,successfulResponseHandler:av(fB),failedResponseHandler:ag({errorSchema:p8.any(),errorToMessage:e=>e}),fetch:this.config.fetch});return r}catch(e){throw await fP(e)}}},fB=ae(()=>ar(p8.object({results:p8.array(p8.object({day:p8.string().optional(),hour:p8.string().optional(),user:p8.string().optional(),model:p8.string().optional(),tag:p8.string().optional(),provider:p8.string().optional(),credential_type:p8.enum(["byok","system"]).optional(),total_cost:p8.number(),market_cost:p8.number().optional(),input_tokens:p8.number().optional(),output_tokens:p8.number().optional(),cached_input_tokens:p8.number().optional(),cache_creation_input_tokens:p8.number().optional(),reasoning_tokens:p8.number().optional(),request_count:p8.number().optional()}).transform(({credential_type:e,total_cost:t,market_cost:n,input_tokens:r,output_tokens:i,cached_input_tokens:a,cache_creation_input_tokens:o,reasoning_tokens:s,request_count:l,...u})=>({...u,...void 0!==e?{credentialType:e}:{},totalCost:t,...void 0!==n?{marketCost:n}:{},...void 0!==r?{inputTokens:r}:{},...void 0!==i?{outputTokens:i}:{},...void 0!==a?{cachedInputTokens:a}:{},...void 0!==o?{cacheCreationInputTokens:o}:{},...void 0!==s?{reasoningTokens:s}:{},...void 0!==l?{requestCount:l}:{}})))}))),fV=class{constructor(e){this.config=e}async getGenerationInfo(e){try{let t=new URL(this.config.baseURL),{value:n}=await iT({url:`${t.origin}/v1/generation?id=${encodeURIComponent(e.id)}`,headers:this.config.headers?await af(this.config.headers):void 0,successfulResponseHandler:av(fJ),failedResponseHandler:ag({errorSchema:p8.any(),errorToMessage:e=>e}),fetch:this.config.fetch});return n}catch(e){throw await fP(e)}}},fJ=ae(()=>ar(p8.object({data:p8.object({id:p8.string(),total_cost:p8.number(),upstream_inference_cost:p8.number(),usage:p8.number(),created_at:p8.string(),model:p8.string(),is_byok:p8.boolean(),provider_name:p8.string(),streamed:p8.boolean(),finish_reason:p8.string(),latency:p8.number(),generation_time:p8.number(),native_tokens_prompt:p8.number(),native_tokens_completion:p8.number(),native_tokens_reasoning:p8.number(),native_tokens_cached:p8.number(),native_tokens_cache_creation:p8.number(),billable_web_search_calls:p8.number()}).transform(({total_cost:e,upstream_inference_cost:t,created_at:n,is_byok:r,provider_name:i,finish_reason:a,generation_time:o,native_tokens_prompt:s,native_tokens_completion:l,native_tokens_reasoning:u,native_tokens_cached:c,native_tokens_cache_creation:d,billable_web_search_calls:p,...f})=>({...f,totalCost:e,upstreamInferenceCost:t,createdAt:n,isByok:r,providerName:i,finishReason:a,generationTime:o,promptTokens:s,completionTokens:l,reasoningTokens:u,cachedTokens:c,cacheCreationTokens:d,billableWebSearchCalls:p}))}).transform(({data:e})=>e))),fq=class e{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v4",this.supportedUrls={"*/*":[/.*/]}}static[ie](e){return ab({modelId:e.modelId,config:e.config})}static[it](t){return new e(t.modelId,t.config)}get provider(){return this.config.provider}async getArgs(e){let{abortSignal:t,...n}=e;return{args:this.maybeEncodeFileParts(n),warnings:[]}}async doGenerate(e){let{args:t,warnings:n}=await this.getArgs(e),{abortSignal:r}=e,i=this.config.headers?await af(this.config.headers):void 0;try{let{responseHeaders:a,value:o,rawValue:s}=await ac({url:this.getUrl(),headers:ir(i,e.headers,this.getModelConfigHeaders(this.modelId,!1),await af(this.config.o11yHeaders)),body:t,successfulResponseHandler:av(p8.any()),failedResponseHandler:ag({errorSchema:p8.any(),errorToMessage:e=>e}
98),...r&&{abortSignal:r},fetch:this.config.fetch});return{...o,request:{body:t},response:{headers:a,body:s},warnings:n}}catch(e){throw await fP(e,await fU(null!=i?i:{}))}}async doStream(e){let{args:t,warnings:n}=await this.getArgs(e),{abortSignal:r}=e,i=this.config.headers?await af(this.config.headers):void 0;try{let a,{value:o,responseHeaders:s}=await ac({url:this.getUrl(),headers:ir(i,e.headers,this.getModelConfigHeaders(this.modelId,!0),await af(this.config.o11yHeaders)),body:t,successfulResponseHandler:(a=p8.any(),async({response:e})=>{let t=iv(e);if(null==e.body)throw new ey({});return{responseHeaders:t,value:al({stream:e.body,schema:a})}}),failedResponseHandler:ag({errorSchema:p8.any(),errorToMessage:e=>e}),...r&&{abortSignal:r},fetch:this.config.fetch});return{stream:o.pipeThrough(new TransformStream({start(e){n.length>0&&e.enqueue({type:"stream-start",warnings:n})},transform(t,n){if(t.success){let r=t.value;("raw"!==r.type||e.includeRawChunks)&&("response-metadata"===r.type&&r.timestamp&&"string"==typeof r.timestamp&&(r.timestamp=new Date(r.timestamp)),n.enqueue(r))}else n.error(t.error)}})),request:{body:t},response:{headers:s}}}catch(e){throw await fP(e,await fU(null!=i?i:{}))}}maybeEncodeFileParts(e){for(let t of e.prompt)if(Array.isArray(t.content)){for(let e of t.content)if("file"===e.type||"reasoning-file"===e.type)e.data=fW(e.data);else if("tool-result"===e.type&&"content"===e.output.type)for(let t of e.output.value)"file"===t.type&&(t.data=fW(t.data))}return e}getUrl(){return`${this.config.baseURL}/language-model`}getModelConfigHeaders(e,t){return{"ai-language-model-specification-version":"4","ai-language-model-id":e,"ai-language-model-streaming":String(t)}}};function fW(e){if("data"===e.type){let t=e.data;if(t instanceof Uint8Array)return{...e,data:ax.Buffer.from(t).toString("base64")}}return e}var fH=class e{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v4",this.maxEmbeddingsPerCall=2048,this.supportsParallelCalls=!0}static[ie](e){return ab({modelId:e.modelId,config:e.config})}static[it](t){return new e(t.modelId,t.config)}get provider(){return this.config.provider}async doEmbed({values:e,headers:t,abortSignal:n,providerOptions:r}){var i,a;let o=this.config.headers?await af(this.config.headers):void 0;try{let{responseHeaders:s,value:l,rawValue:u}=await ac({url:this.getUrl(),headers:ir(o,null!=t?t:{},this.getModelConfigHeaders(),await af(this.config.o11yHeaders)),body:{values:e,...r?{providerOptions:r}:{}},successfulResponseHandler:av(fG),failedResponseHandler:ag({errorSchema:p8.any(),errorToMessage:e=>e}),...n&&{abortSignal:n},fetch:this.config.fetch});return{embeddings:l.embeddings,usage:null!=(i=l.usage)?i:void 0,providerMetadata:l.providerMetadata,response:{headers:s,body:u},warnings:null!=(a=l.warnings)?a:[]}}catch(e){throw await fP(e,await fU(null!=o?o:{}))}}getUrl(){return`${this.config.baseURL}/embedding-model`}getModelConfigHeaders(){return{"ai-embedding-model-specification-version":"4","ai-model-id":this.modelId}}},fK=p8.discriminatedUnion("type",[p8.object({type:p8.literal("unsupported"),feature:p8.string(),details:p8.string().optional()}),p8.object({type:p8.literal("compatibility"),feature:p8.string(),details:p8.string().optional()}),p8.object({type:p8.literal("deprecated"),setting:p8.string(),message:p8.string()}),p8.object({type:p8.literal("other"),message:p8.string()})]),fG=ae(()=>ar(p8.object({embeddings:p8.array(p8.array(p8.number())),usage:p8.object({tokens:p8.number()}).nullish(),warnings:p8.array(fK).optional(),providerMetadata:p8.record(p8.string(),p8.record(p8.string(),p8.unknown())).optional()}))),fX=class e{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v4",this.maxImagesPerCall=Number.MAX_SAFE_INTEGER}static[ie](e){return ab({modelId:e.modelId,config:e.config})}static[it](t){return new e(t.modelId,t.config)}get provider(){return this.config.provider}async doGenerate({prompt:e,n:t,size:n,aspectRatio:r,seed:i,files:a,mask:o,providerOptions:s,headers:l,abortSignal:u}){var c,d,p,f;let m=this.config.headers?await af(this.config.headers):void 0;try{let{responseHeaders:h,value:g}=await ac({url:this.getUrl(),headers:ir(m,null!=l?l:{},this.getModelConfigHeaders(),await af(this.config.o11yHeaders)),body:{prompt:e,n:t,...n&&{size:n},...r&&{aspectRatio:r},...i&&{seed:i},...s&&{providerOptions:s},...a&&{files:a.map(e=>fY(e))},...o&&{mask:fY(o)}},successfulResponseHandler:av(f4),failedResponseHandler:ag({errorSchema:p8.any(),errorToMessage:e=>e}
98),...u&&{abortSignal:u},fetch:this.config.fetch});return{images:g.images,warnings:null!=(c=g.warnings)?c:[],providerMetadata:g.providerMetadata,response:{timestamp:new Date,modelId:this.modelId,headers:h},...null!=g.usage&&{usage:{inputTokens:null!=(d=g.usage.inputTokens)?d:void 0,outputTokens:null!=(p=g.usage.outputTokens)?p:void 0,totalTokens:null!=(f=g.usage.totalTokens)?f:void 0}}}}catch(e){throw await fP(e,await fU(null!=m?m:{}))}}getUrl(){return`${this.config.baseURL}/image-model`}getModelConfigHeaders(){return{"ai-image-model-specification-version":"4","ai-model-id":this.modelId}}};function fY(e){return"file"===e.type&&e.data instanceof Uint8Array?{...e,data:io(e.data)}:e}var fQ=p8.object({images:p8.array(p8.unknown()).optional()}).catchall(p8.unknown()),f0=p8.discriminatedUnion("type",[p8.object({type:p8.literal("unsupported"),feature:p8.string(),details:p8.string().optional()}),p8.object({type:p8.literal("compatibility"),feature:p8.string(),details:p8.string().optional()}),p8.object({type:p8.literal("deprecated"),setting:p8.string(),message:p8.string()}),p8.object({type:p8.literal("other"),message:p8.string()})]),f1=p8.object({inputTokens:p8.number().nullish(),outputTokens:p8.number().nullish(),totalTokens:p8.number().nullish()}),f4=p8.object({images:p8.array(p8.string()),warnings:p8.array(f0).optional(),providerMetadata:p8.record(p8.string(),fQ).optional(),usage:f1.optional()}),f6=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v4",this.maxVideosPerCall=Number.MAX_SAFE_INTEGER}get provider(){return this.config.provider}async doGenerate({prompt:e,n:t,aspectRatio:n,resolution:r,duration:i,fps:a,seed:o,generateAudio:s,image:l,frameImages:u,inputReferences:c,providerOptions:d,headers:p,abortSignal:f}){var m;let h=this.config.headers?await af(this.config.headers):void 0;try{let{responseHeaders:g,value:v}=await ac({url:this.getUrl(),headers:ir(h,null!=p?p:{},this.getModelConfigHeaders(),await af(this.config.o11yHeaders),{accept:"text/event-stream"}),body:{prompt:e,n:t,...n&&{aspectRatio:n},...r&&{resolution:r},...i&&{duration:i},...a&&{fps:a},...o&&{seed:o},...void 0!==s&&{generateAudio:s},...d&&{providerOptions:d},...l&&{image:f2(l)},...u&&{frameImages:u.map(e=>({...e,image:f2(e.image)}))},...c&&{inputReferences:c.map(e=>f2(e))}},successfulResponseHandler:async({response:e,url:t,requestBodyValues:n})=>{if(null==e.body)throw new em({message:"SSE response body is empty",url:t,requestBodyValues:n,statusCode:e.status});let r=al({stream:e.body,schema:f8}).getReader(),{done:i,value:a}=await r.read();if(r.releaseLock(),i||!a)throw new em({message:"SSE stream ended without a data event",url:t,requestBodyValues:n,statusCode:e.status});if(!a.success)throw new em({message:"Failed to parse video SSE event",cause:a.error,url:t,requestBodyValues:n,statusCode:e.status});let o=a.value;if("error"===o.type)throw new em({message:o.message,statusCode:o.statusCode,url:t,requestBodyValues:n,responseHeaders:Object.fromEntries([...e.headers]),responseBody:JSON.stringify(o),data:{error:{message:o.message,type:o.errorType,param:o.param}}});return{value:{videos:o.videos,warnings:o.warnings,providerMetadata:o.providerMetadata},responseHeaders:Object.fromEntries([...e.headers])}},failedResponseHandler:ag({errorSchema:p8.any(),errorToMessage:e=>e}),...f&&{abortSignal:f},fetch:this.config.fetch});return{videos:v.videos,warnings:null!=(m=v.warnings)?m:[],providerMetadata:v.providerMetadata,response:{timestamp:new Date,modelId:this.modelId,headers:g}}}catch(e){throw await fP(e,await fU(null!=h?h:{}))}}getUrl(){return`${this.config.baseURL}/video-model`}getModelConfigHeaders(){return{"ai-video-model-specification-version":"4","ai-model-id":this.modelId}}};function f2(e){return"file"===e.type&&e.data instanceof Uint8Array?{...e,data:io(e.data)}:e}var f9=p8.object({videos:p8.array(p8.unknown()).optional()}).catchall(p8.unknown()),f5=p8.union([p8.object({type:p8.literal("url"),url:p8.string(),mediaType:p8.string()}),p8.object({type:p8.literal("base64"),data:p8.string(),mediaType:p8.string()})]),f3=p8.discriminatedUnion("type",[p8.object({type:p8.literal("unsupported"),feature:p8.string(),details:p8.string().optional()}),p8.object({type:p8.literal("compatibility"),feature:p8.string(),details:p8.string().optional()}),p8.object({type:p8.literal("deprecated"),setting:p8.string(),message:p8.string()}),p8.object({type:p8.literal("other"),message:p8.string()})]),f8=p8.discriminatedUnion("type",[p8.object({type:p8.literal("result"),videos:p8.array(f5),warnings:p8.array(f3).optional(),providerMetadata:p8.record(p8.string(),f9).optional()}),p8.object({type:p8.literal("error"),message:p8.string(),errorType:p8.string(),statusCode:p8.number(),param:p8.unknown().nullable()})]),f7=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v4"}get provider(){return this.config.provider}async doRerank({documents:e,query:t,topN:n,headers:r,abortSignal:i,providerOptions:a}){var o;let s=this.config.headers?await af(this.config.headers):void 0;try{let{responseHeaders:l,value:u,rawValue:c}=await ac({url:this.getUrl(),headers:ir(s,null!=r?r:{},this.getModelConfigHeaders(),await af(this.config.o11yHeaders)),body:{documents:e,query:t,...null!=n?{topN:n}:{},...a?{providerOptions:a}:{}},successfulResponseHandler:av(mt),failedResponseHandler:ag({errorSchema:p8.any(),errorToMessage:e=>e}),...i&&{abortSignal:i},fetch:this.config.fetch});return{ranking:u.ranking,providerMetadata:u.providerMetadata,response:{headers:l,body:c},warnings:null!=(o=u.warnings)?o:[]}}catch(e){throw await fP(e,await fU(null!=s?s:{}))}}getUrl(){return`${this.config.baseURL}/reranking-model`}getModelConfigHeaders(){return{"ai-reranking-model-specification-version":"4","ai-model-id":this.modelId}}},me=p8.discriminatedUnion("type",[p8.object({type:p8.literal("unsupported"),feature:p8.string(),details:p8.string().optional()}),p8.object({type:p8.literal("compatibility"),feature:p8.string(),details:p8.string().optional()}),p8.object({type:p8.literal("deprecated"),setting:p8.string(),message:p8.string()}),p8.object({type:p8.literal("other"),message:p8.string()})]),mt=ae(()=>
98ar(p8.object({ranking:p8.array(p8.object({index:p8.number(),relevanceScore:p8.number()})),warnings:p8.array(me).optional(),providerMetadata:p8.record(p8.string(),p8.record(p8.string(),p8.unknown())).optional()}))),mn=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v4"}get provider(){return this.config.provider}async doGenerate({text:e,voice:t,outputFormat:n,instructions:r,speed:i,language:a,providerOptions:o,headers:s,abortSignal:l}){var u;let c=this.config.headers?await af(this.config.headers):void 0;try{let{responseHeaders:d,value:p,rawValue:f}=await ac({url:this.getUrl(),headers:ir(c,null!=s?s:{},this.getModelConfigHeaders(),await af(this.config.o11yHeaders)),body:{text:e,...t&&{voice:t},...n&&{outputFormat:n},...r&&{instructions:r},...null!=i&&{speed:i},...a&&{language:a},...o&&{providerOptions:o}},successfulResponseHandler:av(ma),failedResponseHandler:ag({errorSchema:p8.any(),errorToMessage:e=>e}),...l&&{abortSignal:l},fetch:this.config.fetch});return{audio:p.audio,warnings:null!=(u=p.warnings)?u:[],providerMetadata:p.providerMetadata,response:{timestamp:new Date,modelId:this.modelId,headers:d,body:f}}}catch(e){throw await fP(e,await fU(null!=c?c:{}))}}getUrl(){return`${this.config.baseURL}/speech-model`}getModelConfigHeaders(){return{"ai-speech-model-specification-version":"4","ai-model-id":this.modelId}}},mr=p8.object({}).catchall(p8.unknown()),mi=p8.discriminatedUnion("type",[p8.object({type:p8.literal("unsupported"),feature:p8.string(),details:p8.string().optional()}),p8.object({type:p8.literal("compatibility"),feature:p8.string(),details:p8.string().optional()}),p8.object({type:p8.literal("deprecated"),setting:p8.string(),message:p8.string()}),p8.object({type:p8.literal("other"),message:p8.string()})]),ma=p8.object({audio:p8.string(),warnings:p8.array(mi).optional(),providerMetadata:p8.record(p8.string(),mr).optional()}),mo=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v4"}get provider(){return this.config.provider}async doGenerate({audio:e,mediaType:t,providerOptions:n,headers:r,abortSignal:i}){var a,o,s,l;let u=this.config.headers?await af(this.config.headers):void 0;try{let{responseHeaders:c,value:d,rawValue:p}=await ac({url:this.getUrl(),headers:ir(u,null!=r?r:{},this.getModelConfigHeaders(),await af(this.config.o11yHeaders)),body:{audio:e instanceof Uint8Array?io(e):e,mediaType:t,...n&&{providerOptions:n}},successfulResponseHandler:av(mu),failedResponseHandler:ag({errorSchema:p8.any(),errorToMessage:e=>e}),...i&&{abortSignal:i},fetch:this.config.fetch});return{text:d.text,segments:null!=(a=d.segments)?a:[],language:null!=(o=d.language)?o:void 0,durationInSeconds:null!=(s=d.durationInSeconds)?s:void 0,warnings:null!=(l=d.warnings)?l:[],providerMetadata:d.providerMetadata,response:{timestamp:new Date,modelId:this.modelId,headers:c,body:p}}}catch(e){throw await fP(e,await fU(null!=u?u:{}))}}getUrl(){return`${this.config.baseURL}/transcription-model`}getModelConfigHeaders(){return{"ai-transcription-model-specification-version":"4","ai-model-id":this.modelId}}},ms=p8.object({}).catchall(p8.unknown()),ml=p8.discriminatedUnion("type",[p8.object({type:p8.literal("unsupported"),feature:p8.string(),details:p8.string().optional()}),p8.object({type:p8.literal("compatibility"),feature:p8.string(),details:p8.string().optional()}),p8.object({type:p8.literal("deprecated"),setting:p8.string(),message:p8.string()}),p8.object({type:p8.literal("other"),message:p8.string()})]),mu=p8.object({text:p8.string(),segments:p8.array(p8.object({text:p8.string(),startSecond:p8.number(),endSecond:p8.number()})).optional(),language:p8.string().nullish(),durationInSeconds:p8.number().nullish(),warnings:p8.array(ml).optional(),providerMetadata:p8.record(p8.string(),ms).optional()}),mc=class{constructor(e,t){this.specificationVersion="v4",this.modelId=e,this.provider=t.provider,this.config=t}async doCreateClientSecret(e){var t,n;let r,i=await this.config.createClientSecret({modelId:this.modelId,...(null==e?void 0:e.expiresAfterSeconds)!=null&&{expiresAfterSeconds:e.expiresAfterSeconds}});return{token:i.token,url:(t=this.config.baseURL,n=this.modelId,(r=new URL(`${t.replace(/^http/,"ws")}/realtime-model`)).searchParams.set("ai-model-id",n),r.toString()),...null!=i.expiresAt&&{expiresAt:i.expiresAt}}}getWebSocketConfig(e){var t,n;let r;return{url:e.url,protocols:(t=e.token,n={teamIdOrSlug:this.config.teamIdOrSlug},r=["ai-gateway-realtime.v1",`ai-gateway-auth.${t}`],(null==n?void 0:n.teamIdOrSlug)&&r.push(`ai-gateway-team.${function(e){let t=new TextEncoder().encode(e),n="";for(let e of t)n+=String.fromCharCode(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/u,"")}(n.teamIdOrSlug)}`),r)}}parseServerEvent(e){return e}serializeClientEvent(e){return e}buildSessionConfig(e){return e}},md=ap({id:"gateway.exa_search",inputSchema:ae(()=>ar(p8.object({query:p8.string().describe("Natural-language web search query. This is required."),type:p8.enum(["auto","fast","instant"]).optional().describe("Search method. Use auto for the default balance of speed and quality."),num_results:p8.number().optional().describe("Maximum number of results to return (1-100, default: 10)."),category:p8.enum
98(["company","people","research paper","news","personal site","financial report"]).optional().describe("Optional content category to focus results."),user_location:p8.string().optional().describe("Two-letter ISO country code such as 'US'."),include_domains:p8.array(p8.string()).optional().describe("Only return results from these domains."),exclude_domains:p8.array(p8.string()).optional().describe("Exclude results from these domains."),start_published_date:p8.string().optional().describe("Only return links published after this ISO 8601 date."),end_published_date:p8.string().optional().describe("Only return links published before this ISO 8601 date."),contents:p8.object({text:p8.union([p8.boolean(),p8.object({max_characters:p8.number().optional(),include_html_tags:p8.boolean().optional(),verbosity:p8.enum(["compact","standard","full"]).optional(),include_sections:p8.array(p8.enum(["header","navigation","banner","body","sidebar","footer","metadata"])).optional(),exclude_sections:p8.array(p8.enum(["header","navigation","banner","body","sidebar","footer","metadata"])).optional()})]).optional(),highlights:p8.union([p8.boolean(),p8.object({query:p8.string().optional(),max_characters:p8.number().optional()})]).optional(),max_age_hours:p8.number().optional(),livecrawl_timeout:p8.number().optional(),subpages:p8.number().optional(),subpage_target:p8.union([p8.string(),p8.array(p8.string())]).optional(),extras:p8.object({links:p8.number().optional(),image_links:p8.number().optional()}).optional()}).optional().describe("Controls extracted page content and freshness.")}
98))),outputSchema:ae(()=>ar(p8.union([p8.object({requestId:p8.string(),searchType:p8.string().optional(),resolvedSearchType:p8.string().optional(),results:p8.array(p8.object({title:p8.string(),url:p8.string(),id:p8.string(),publishedDate:p8.string().nullable().optional(),author:p8.string().nullable().optional(),image:p8.string().nullable().optional(),favicon:p8.string().nullable().optional(),text:p8.string().optional(),highlights:p8.array(p8.string()).optional(),highlightScores:p8.array(p8.number()).optional(),summary:p8.string().optional(),subpages:p8.array(p8.any()).optional(),extras:p8.object({links:p8.array(p8.string()).optional(),imageLinks:p8.array(p8.string()).optional()}).optional()})),costDollars:p8.object({total:p8.number().optional(),search:p8.record(p8.string(),p8.number()).optional()}).optional()}),p8.object({error:p8.enum(["api_error","rate_limit","timeout","invalid_input","configuration_error","execution_error","unknown"]),statusCode:p8.number().optional(),message:p8.string()})])))}),mp=ap({id:"gateway.parallel_search",inputSchema:ae(()=>ar(p8.object({objective:p8.string().describe("Natural-language description of the web research goal, including source or freshness guidance and broader context from the task. Maximum 5000 characters."),search_queries:p8.array(p8.string()).optional().describe("Optional search queries to supplement the objective. Maximum 200 characters per query."),mode:p8.enum(["one-shot","agentic"]).optional().describe('Mode preset: "one-shot" for comprehensive results with longer excerpts (default), "agentic" for concise, token-efficient results for multi-step workflows.'),max_results:p8.number().optional().describe("Maximum number of results to return (1-20). Defaults to 10 if not specified."),source_policy:p8.object({include_domains:p8.array(p8.string()).optional().describe("Limit results to these domains. Use plain domain names only â e.g. example.com or sub.example.gov, or a bare extension like .edu. Do not include a scheme, path, or port (e.g. not https://example.com/page)."),exclude_domains:p8.array(p8.string()).optional().describe("Exclude results from these domains. Use plain domain names only â e.g. example.com or sub.example.gov, or a bare extension like .edu. Do not include a scheme, path, or port (e.g. not https://example.com/page)."),after_date:p8.string().optional().describe("Only include results published after this date. Use an ISO 8601 calendar date formatted YYYY-MM-DD (e.g. 2025-01-01); do not include a time.")}).optional().describe("Source policy for controlling which domains to include/exclude and freshness."),excerpts:p8.object({max_chars_per_result:p8.number().optional().describe("Maximum characters per result."),max_chars_total:p8.number().optional().describe("Maximum total characters across all results.")}).optional().describe("Excerpt configuration for controlling result length."),fetch_policy:p8.object({max_age_seconds:p8.number().optional().describe("Maximum age in seconds for cached content. Set to 0 to always fetch fresh content.")}).optional().describe("Fetch policy for controlling content freshness.")}
98))),outputSchema:ae(()=>ar(p8.union([p8.object({searchId:p8.string(),results:p8.array(p8.object({url:p8.string(),title:p8.string(),excerpt:p8.string(),publishDate:p8.string().nullable().optional(),relevanceScore:p8.number().optional()}))}),p8.object({error:p8.enum(["api_error","rate_limit","timeout","invalid_input","configuration_error","unknown"]),statusCode:p8.number().optional(),message:p8.string()})])))}),mf=ap({id:"gateway.perplexity_search",inputSchema:ae(()=>ar(p8.object({query:p8.union([p8.string(),p8.array(p8.string())]).describe("Search query (string) or multiple queries (array of up to 5 strings). Multi-query searches return combined results from all queries."),max_results:p8.number().optional().describe("Maximum number of search results to return (1-20, default: 10)"),max_tokens_per_page:p8.number().optional().describe("Maximum number of tokens to extract per search result page (256-2048, default: 2048)"),max_tokens:p8.number().optional().describe("Maximum total tokens across all search results (default: 25000, max: 1000000)"),country:p8.string().optional().describe("Two-letter ISO 3166-1 alpha-2 country code for regional search results (e.g., 'US', 'GB', 'FR')"),search_domain_filter:p8.array(p8.string()).optional().describe("List of domains to include or exclude from search results (max 20). To include: ['nature.com', 'science.org']. To exclude: ['-example.com', '-spam.net']"),search_language_filter:p8.array(p8.string()).optional().describe("List of ISO 639-1 language codes to filter results (max 10, lowercase). Examples: ['en', 'fr', 'de']"),search_after_date:p8.string().optional().describe("Include only results published after this date. Format: 'MM/DD/YYYY' (e.g., '3/1/2025'). Cannot be used with search_recency_filter."),search_before_date:p8.string().optional().describe("Include only results published before this date. Format: 'MM/DD/YYYY' (e.g., '3/15/2025'). Cannot be used with search_recency_filter."),last_updated_after_filter:p8.string().optional().describe("Include only results last updated after this date. Format: 'MM/DD/YYYY' (e.g., '3/1/2025'). Cannot be used with search_recency_filter."),last_updated_before_filter:p8.string().optional().describe("Include only results last updated before this date. Format: 'MM/DD/YYYY' (e.g., '3/15/2025'). Cannot be used with search_recency_filter."),search_recency_filter:p8.enum(["day","week","month","year"]).optional().describe("Filter results by relative time period. Cannot be used with search_after_date or search_before_date.")}
98))),outputSchema:ae(()=>ar(p8.union([p8.object({results:p8.array(p8.object({title:p8.string(),url:p8.string(),snippet:p8.string(),date:p8.string().optional(),lastUpdated:p8.string().optional()})),id:p8.string()}),p8.object({error:p8.enum(["api_error","rate_limit","timeout","invalid_input","unknown"]),statusCode:p8.number().optional(),message:p8.string()})])))}),mm={exaSearch:(e={})=>md(e),parallelSearch:(e={})=>mp(e),perplexitySearch:(e={})=>mf(e)};async function mh(){var e;return null==(e=(0,p7.getContext)().headers)?void 0:e["x-vercel-id"]}var mg=p8.object({token:p8.string(),expiresAt:p8.number().nullish()});async function mv(e){let t=ij({settingValue:e.apiKey,environmentVariableName:"AI_GATEWAY_API_KEY"});return t?{token:t,authMethod:"api-key"}:{token:await (0,p7.getVercelOidcToken)(),authMethod:"oidc"}}!function(e={}){var t,n,r;let i=null,a=null,o=null!=(t=e.metadataCacheRefreshMillis)?t:3e5,s=0,l=null!=(n=null==(r=e.baseURL)?void 0:r.replace(/\/$/,""))?n:"https://ai-gateway.vercel.sh/v4/ai",u=t=>iS({Authorization:`Bearer ${t.token}`,"ai-gateway-protocol-version":"0.0.1",[fN]:t.authMethod,...null!=e.teamIdOrSlug?{"x-vercel-ai-gateway-team":e.teamIdOrSlug}:{},...e.headers},"ai-sdk/gateway/4.0.16"),c=async()=>{try{return u(await mv(e))}catch(e){throw fi.createContextualError({apiKeyProvided:!1,oidcTokenProvided:!1,statusCode:401,cause:e})}},d=async()=>{try{return await mv(e)}catch(e){throw fi.createContextualError({apiKeyProvided:!1,oidcTokenProvided:!1,statusCode:401,cause:e})}},p=async t=>{if(void 0!==globalThis.window)throw Error("AI Gateway realtime client secrets must be minted server-side: minting needs your Gateway credential, which must never reach the browser. Call gateway.experimental_realtime.getToken() from your server and pass the returned token to the client.");
98let n=u(await d()),r=new URL("/v1/realtime/client-secrets",l).toString();try{let{value:i}=await ac({url:r,headers:n,body:{model:t.modelId,...null!=t.expiresAfterSeconds&&{expiresIn:t.expiresAfterSeconds}},successfulResponseHandler:av(mg),failedResponseHandler:ag({errorSchema:p8.any(),errorToMessage:e=>e}),fetch:e.fetch});return{token:i.token,...null!=i.expiresAt&&{expiresAt:i.expiresAt}}}catch(e){throw await fP(e,await fU(n))}},f=()=>{let e=ij({settingValue:void 0,environmentVariableName:"VERCEL_DEPLOYMENT_ID"}),t=ij({settingValue:void 0,environmentVariableName:"VERCEL_ENV"}),n=ij({settingValue:void 0,environmentVariableName:"VERCEL_REGION"}),r=ij({settingValue:void 0,environmentVariableName:"VERCEL_PROJECT_ID"});return async()=>{let i=await mh();return{...e&&{"ai-o11y-deployment-id":e},...t&&{"ai-o11y-environment":t},...n&&{"ai-o11y-region":n},...i&&{"ai-o11y-request-id":i},...r&&{"ai-o11y-project-id":r}}}},m=t=>new fq(t,{provider:"gateway",baseURL:l,headers:c,fetch:e.fetch,o11yHeaders:f()}),h=async()=>{var t,n,r;let u=null!=(r=null==(n=null==(t=e._internal)?void 0:t.currentDate)?void 0:n.call(t).getTime())?r:Date.now();return(!i||u-s>o)&&(s=u,i=new fM({baseURL:l,headers:c,fetch:e.fetch}).getAvailableModels().then(e=>(a=e,e)).catch(async e=>{throw await fP(e,await fU(await c()))})),a?Promise.resolve(a):i},g=async()=>new fM({baseURL:l,headers:c,fetch:e.fetch}).getCredits().catch(async e=>{throw await fP(e,await fU(await c()))}),v=async t=>new fF({baseURL:l,headers:c,fetch:e.fetch}).getSpendReport(t).catch(async e=>{throw await fP(e,await fU(await c()))}),y=async t=>new fV({baseURL:l,headers:c,fetch:e.fetch}).getGenerationInfo(t).catch(async e=>{throw await fP(e,await fU(await c()))}),b=function(e){if(new.target)throw Error("The Gateway Provider model function cannot be called with the new keyword.");return m(e)};b.specificationVersion="v4",b.getAvailableModels=h,b.getCredits=g,b.getSpendReport=v,b.getGenerationInfo=y,b.imageModel=t=>new fX(t,{provider:"gateway",baseURL:l,headers:c,fetch:e.fetch,o11yHeaders:f()}),b.languageModel=m;let x=t=>new fH(t,{provider:"gateway",baseURL:l,headers:c,fetch:e.fetch,o11yHeaders:f()});b.embeddingModel=x,b.textEmbeddingModel=x,b.videoModel=t=>new f6(t,{provider:"gateway",baseURL:l,headers:c,fetch:e.fetch,o11yHeaders:f()});let _=t=>new f7(t,{provider:"gateway",baseURL:l,headers:c,fetch:e.fetch,o11yHeaders:f()});b.rerankingModel=_,b.reranking=_;let k=t=>new mn(t,{provider:"gateway",baseURL:l,headers:c,fetch:e.fetch,o11yHeaders:f()});b.speechModel=k,b.speech=k;let $=t=>new mo(t,{provider:"gateway",baseURL:l,headers:c,fetch:e.fetch,o11yHeaders:f()});b.transcriptionModel=$,b.transcription=$;let w=t=>new mc(t,{provider:"gateway.realtime",baseURL:l,teamIdOrSlug:e.teamIdOrSlug,createClientSecret:p});b.experimental_realtime=Object.assign(e=>w(e),{getToken:async e=>{let{model:t,...n}=e,r=w(t),i=await r.doCreateClientSecret(n);return{token:i.token,url:i.url,...null!=i.expiresAt&&{expiresAt:i.expiresAt}}}}),b.chat=b.languageModel,b.embedding=b.embeddingModel,b.image=b.imageModel,b.video=b.videoModel,b.tools=mm}();var p8=p8,my=Object.defineProperty,mb=(Symbol.for("vercel.ai.error.AI_InvalidArgumentError"),Symbol.for("vercel.ai.error.AI_InvalidStreamPartError"),Symbol.for("vercel.ai.error.AI_InvalidToolApprovalError"),Symbol.for("vercel.ai.error.AI_InvalidToolApprovalSignatureError"),Symbol.for("vercel.ai.error.AI_InvalidToolInputError"),Symbol.for("vercel.ai.error.AI_ToolCallNotFoundForApprovalError"),Symbol.for("vercel.ai.error.AI_MissingToolResultsError"),Symbol.for("vercel.ai.error.AI_NoImageGeneratedError"),"AI_NoObjectGeneratedError"),mx=`vercel.ai.error.${mb}`,m_=Symbol.for(mx),mk=class extends ec{constructor({message:e="No object generated.",cause:t,text:n,response:r,usage:i,finishReason:a}){super({name:mb,message:e,cause:t}),this[q]=!0,this.text=n,this.response=r,this.usage=i,this.finishReason=a}static isInstance(e){return ec.hasMarker(e,mx)}};q=m_,Symbol.for("vercel.ai.error.AI_NoOutputGeneratedError"),Symbol.for("vercel.ai.error.AI_NoSpeechGeneratedError"),Symbol.for("vercel.ai.error.AI_NoTranscriptGeneratedError"),Symbol.for("vercel.ai.error.AI_NoVideoGeneratedError"),Symbol.for("vercel.ai.error.AI_NoSuchToolError"),Symbol.for("vercel.ai.error.AI_ToolCallRepairError");var m$="AI_UIMessageStreamError",mw=`vercel.ai.error.${m$}`,mI=Symbol.for(mw),mS=class extends ec{constructor({chunkType:e,chunkId:t,message:n}){super({name:m$,message:n}),this[W]=!0,this.chunkType=e,this.chunkId=t}static isInstance(e){return ec.hasMarker(e,mw)}};W=mI,Symbol.for("vercel.ai.error.AI_InvalidDataContentError"),Symbol.for("vercel.ai.error.AI_InvalidMessageRoleError"),Symbol.for("vercel.ai.error.AI_MessageConversionError"),Symbol.for("vercel.ai.error.AI_RetryError");var mE=async({url:e,maxBytes:t,abortSignal:n})=>{var r;let i=e.toString();try{let e=iS({},"ai-sdk/7.0.22",iw()),a=await ih({url:i,headers:e,abortSignal:n});if(!a.ok)throw await is(a),new id({url:i,statusCode:a.status,statusText:a.statusText});return{data:await ig({response:a,url:i,maxBytes:null!=t?t:0x80000000}),mediaType:null!=(r=a.headers.get("content-type"))?r:void 0}}catch(e){if(id.isInstance(e))throw e;throw new id({url:i,cause:e})}},mO=p8.lazy(()=>p8.union([p8.null(),p8.string(),p8.number(),p8.boolean(),p8.record(p8.string(),mO.optional()),p8.array(mO)])),mT=p8.record(p8.string(),p8.record(p8.string(),mO.optional())),mj=p8.union([p8.string(),p8.instanceof(Uint8Array),p8.instanceof(ArrayBuffer),p8.custom(function(e){var t,n;return null!=(n=null==(t=globalThis.Buffer)?void 0:t.isBuffer(e))&&n},{message:"Must be a Buffer"})]),mz=p8.record(p8.string(),p8.string()),mA=p8.object({type:p8.literal("text"),text:p8.string(),providerOptions:mT.optional()}),mC=p8.object({type:p8.literal("image"),image:p8.union([mj,p8.instanceof(URL),mz]),mediaType:p8.string().optional(),providerOptions:mT.optional()}),mP=p8.discriminatedUnion("type",[p8.object({type:p8.literal("data"),data:mj}),p8.object({type:p8.literal("url"),url:p8.instanceof(URL)}),p8.object({type:p8.literal("reference"),reference:mz}),p8.object({type:p8.literal("text"),text:p8.string()})]),mN=p8.discriminatedUnion("type",[p8.object({type:p8.literal("data"),data:mj}),p8.object({type:p8.literal("url"),url:p8.instanceof(URL)})]),mU=p8.object({type:p8.literal("file"),data:p8.union([mP,mj,p8.instanceof(URL),mz]),filename:p8.string().optional(),mediaType:p8.string(),providerOptions:mT.optional()}),mZ=p8.object({type:p8.literal("reasoning"),text:p8.string(),providerOptions:mT.optional()}),mD=p8.object({type:p8.literal("custom"),kind:p8.string().transform(e=>e),providerOptions:mT.optional()}),mM=p8.object({type:p8.literal("reasoning-file"),data:p8.union([mN,mj,p8.instanceof(URL)]),mediaType:p8.string(),providerOptions:mT.optional()}),mR=p8.object({type:p8.literal("tool-call"),toolCallId:p8.string(),toolName:p8.string(),input
98:p8.unknown(),providerOptions:mT.optional(),providerExecuted:p8.boolean().optional()}),mL=p8.discriminatedUnion("type",[p8.object({type:p8.literal("text"),value:p8.string(),providerOptions:mT.optional()}),p8.object({type:p8.literal("json"),value:mO,providerOptions:mT.optional()}),p8.object({type:p8.literal("execution-denied"),reason:p8.string().optional(),providerOptions:mT.optional()}),p8.object({type:p8.literal("error-text"),value:p8.string(),providerOptions:mT.optional()}),p8.object({type:p8.literal("error-json"),value:mO,providerOptions:mT.optional()}),p8.object({type:p8.literal("content"),value:p8.array(p8.union([p8.object({type:p8.literal("text"),text:p8.string(),providerOptions:mT.optional()}),p8.object({type:p8.literal("file"),data:mP,mediaType:p8.string(),filename:p8.string().optional(),providerOptions:mT.optional()}),p8.object({type:p8.literal("file-data"),data:p8.string(),mediaType:p8.string(),filename:p8.string().optional(),providerOptions:mT.optional()}),p8.object({type:p8.literal("file-url"),url:p8.string(),mediaType:p8.string().optional(),providerOptions:mT.optional()}),p8.object({type:p8.literal("file-id"),fileId:p8.union([p8.string(),p8.record(p8.string(),p8.string())]),providerOptions:mT.optional()}),p8.object({type:p8.literal("file-reference"),providerReference:p8.record(p8.string(),p8.string()),providerOptions:mT.optional()}),p8.object({type:p8.literal("image-data"),data:p8.string(),mediaType:p8.string(),providerOptions:mT.optional()}),p8.object({type:p8.literal("image-url"),url:p8.string(),providerOptions:mT.optional()}),p8.object({type:p8.literal("image-file-id"),fileId:p8.union([p8.string(),p8.record(p8.string(),p8.string())]),providerOptions:mT.optional()}),p8.object({type:p8.literal("image-file-reference"),providerReference:p8.record(p8.string(),p8.string()),providerOptions:mT.optional()}),p8.object({type:p8.literal("custom"),providerOptions:mT.optional()})]))})]),mF=p8.object({type:p8.literal("tool-result"),toolCallId:p8.string(),toolName:p8.string(),output:mL,providerOptions:mT.optional()}),mB=p8.object({type:p8.literal("tool-approval-request"),approvalId:p8.string(),toolCallId:p8.string()}),mV=p8.object({type:p8.literal("tool-approval-response"),approvalId:p8.string(),approved:p8.boolean(),reason:p8.string().optional()}),mJ=p8.object({role:p8.literal("system"),content:p8.string(),providerOptions:mT.optional()}),mq=p8.object({role:p8.literal("user"),content:p8.union([p8.string(),p8.array(p8.union([mA,mC,mU]))]),providerOptions:mT.optional()}),mW=p8.object({role:p8.literal("assistant"),content:p8.union([p8.string(),p8.array(p8.union([mA,mD,mU,mZ,mM,mR,mF,mB]))]),providerOptions:mT.optional()}),mH=p8.object({role:p8.literal("tool"),content:p8.array(p8.union([mF,mV])),providerOptions:mT.optional()});p8.union([mJ,mq,mW,mH]);var mK={},mG={array:()=>m1,choice:()=>m4,json:()=>m6,object:()=>m0,text:()=>mQ};for(var mX in mG)my(mK,mX,{get:mG[mX],enumerable:!0});async function mY(e){if(void 0===e)return{value:void 0,state:"undefined-input"};let t=await as({text:e});return t.success?{value:t.value,state:"successful-parse"}:(t=await as({text:function(e){let t=["ROOT"],n=-1,r=null,i=0;function a(e,i,a){switch(e){case'"':n=i,t.pop(),t.push(a),t.push("INSIDE_STRING");break;case"f":case"t":case"n":n=i,r=i,t.pop(),t.push(a),t.push("INSIDE_LITERAL");break;case"-":t.pop(),t.push(a),t.push("INSIDE_NUMBER");break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":n=i,t.pop(),t.push(a),t.push("INSIDE_NUMBER");break;case"{":n=i,t.pop(),t.push(a),t.push("INSIDE_OBJECT_START");break;case"[":n=i,t.pop(),t.push(a),t.push("INSIDE_ARRAY_START")}}function o(e,r){switch(e){case",":t.pop(),t.push("INSIDE_OBJECT_AFTER_COMMA");break;case"}":n=r,t.pop()}}function s(e,r){switch(e){case",":t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break;case"]":n=r,t.pop()}}for(let l=0;l<e.length;l++){let u=e[l];switch(t[t.length-1]){case"ROOT":a(u,l,"FINISH");break;case"INSIDE_OBJECT_START":switch(u){case'"':t.pop(),t.push("INSIDE_OBJECT_KEY");break;case"}":n=l,t.pop()}break;case"INSIDE_OBJECT_AFTER_COMMA":'"'===u&&(t.pop(),t.push("INSIDE_OBJECT_KEY"));break;case"INSIDE_OBJECT_KEY":'"'===u&&(t.pop(),t.push("INSIDE_OBJECT_AFTER_KEY"));break;case"INSIDE_OBJECT_AFTER_KEY":":"===u&&(t.pop(),t.push("INSIDE_OBJECT_BEFORE_VALUE"));break;case"INSIDE_OBJECT_BEFORE_VALUE":a(u,l,"INSIDE_OBJECT_AFTER_VALUE");break;case"INSIDE_OBJECT_AFTER_VALUE":o(u,l);break;case"INSIDE_STRING":switch(u){case'"':t.pop(),n=l;break;case"\\":t.push("INSIDE_STRING_ESCAPE");break;default:n=l}break;case"INSIDE_ARRAY_START":"]"===u?(n=l,t.pop()):(n=l,a(u,l,"INSIDE_ARRAY_AFTER_VALUE"));break;case"INSIDE_ARRAY_AFTER_VALUE":switch(u){case",":t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break;case"]":n=l,t.pop();break;default:n=l}break;case"INSIDE_ARRAY_AFTER_COMMA":a(u,l,"INSIDE_ARRAY_AFTER_VALUE");break;case"INSIDE_STRING_ESCAPE":t.pop(),"u"===u?(i=0,t.push("INSIDE_STRING_UNICODE_ESCAPE")):n=l;break;case"INSIDE_STRING_UNICODE_ESCAPE":(u>="0"&&u<="9"||u>="A"&&u<="F"||u>="a"&&u<="f")&&4==++i&&(t.pop(),n=l);break;case"INSIDE_NUMBER":switch(u){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":n=l;break;case"e":case"E":case"-":case".":break;case",":t.pop(),"INSIDE_ARRAY_AFTER_VALUE"===t[t.length-1]&&s(u,l),"INSIDE_OBJECT_AFTER_VALUE"===t[t.length-1]&&o(u,l);break;case"}":t.pop(),"INSIDE_OBJECT_AFTER_VALUE"===t[t.length-1]&&o(u,l);break;case"]":t.pop(),"INSIDE_ARRAY_AFTER_VALUE"===t[t.length-1]&&s(u,l);break;default:t.pop()}break;case"INSIDE_LITERAL":{let i=e.substring(r,l+1);"false".startsWith(i)||"true".startsWith(i)||"null".startsWith(i)?n=l:(t.pop(),"INSIDE_OBJECT_AFTER_VALUE"===t[t.length-1]?o(u,l):"INSIDE_ARRAY_AFTER_VALUE"===t[t.length-1]&&s(u,l))}}}let l=e.slice(0,n+1);for(let n=t.length-1;n>=0;n--)switch(t[n]){case"INSIDE_STRING":l+='"';break;case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":l+="}";break;case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":l+="]";break;case"INSIDE_LITERAL":{let t=e.substring(r,e.length);"true".startsWith(t)?l+="true".slice(t.length):"false".startsWith(t)?l+="false".slice(t.length):"null".startsWith(t)&&(l+="null".slice(t.length))}}return l}(e)})).success?{value:t.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"}}var mQ=()=>({name:"text",responseFormat:Promise.resolve({type:"text"}),parseCompleteOutput:async({text:e})=>e,parsePartialOutput:async({text:e})=>({partial:e}),createElementStreamTransform(){}}),m0=({schema:e,name:t,description:n})=>{let r=an(e);return{name:"object",responseFormat:af(r.jsonSchema).then(e=>({type:"json",schema:e,...null!=t&&{name:t},...null!=n&&{description:n}})),async parseCompleteOutput({text:e},t){let n=await as({text:e});if(!n.success)throw new mk({message:"No object generated: could not parse the response.",cause:n.error,text:e,response:t.response,usage:t.usage,finishReason:t.finishReason});let i=await aa({value:n.value,schema:r});if(!i.success)throw new mk({message:"No object generated: response did not match sc
98hema.",cause:i.error,text:e,response:t.response,usage:t.usage,finishReason:t.finishReason});return i.value},async parsePartialOutput({text:e}){let t=await mY(e);switch(t.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return{partial:t.value}}},createElementStreamTransform(){}}},m1=({element:e,name:t,description:n})=>{let r=an(e);return{name:"array",responseFormat:af(r.jsonSchema).then(e=>{let{$schema:r,...i}=e;return{type:"json",schema:{$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{elements:{type:"array",items:i}},required:["elements"],additionalProperties:!1},...null!=t&&{name:t},...null!=n&&{description:n}}}),async parseCompleteOutput({text:e},t){let n=await as({text:e});if(!n.success)throw new mk({message:"No object generated: could not parse the response.",cause:n.error,text:e,response:t.response,usage:t.usage,finishReason:t.finishReason});let i=n.value;if(null==i||"object"!=typeof i||!("elements"in i)||!Array.isArray(i.elements))throw new mk({message:"No object generated: response did not match schema.",cause:new eC({value:i,cause:"response must be an object with an elements array"}),text:e,response:t.response,usage:t.usage,finishReason:t.finishReason});let a=[];for(let n of i.elements){let i=await aa({value:n,schema:r});if(!i.success)throw new mk({message:"No object generated: response did not match schema.",cause:i.error,text:e,response:t.response,usage:t.usage,finishReason:t.finishReason});a.push(i.value)}return a},async parsePartialOutput({text:e}){let t=await mY(e);switch(t.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":{let e=t.value;if(null==e||"object"!=typeof e||!("elements"in e)||!Array.isArray(e.elements))return;let n="repaired-parse"===t.state&&e.elements.length>0?e.elements.slice(0,-1):e.elements,i=[];for(let e of n){let t=await aa({value:e,schema:r});t.success&&i.push(t.value)}return{partial:i}}}},createElementStreamTransform(){let e=0;return new TransformStream({transform({partialOutput:t},n){if(null!=t)for(;e<t.length;e++)n.enqueue(t[e])}})}}},m4=({options:e,name:t,description:n})=>({name:"choice",responseFormat:Promise.resolve({type:"json",schema:{$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{result:{type:"string",enum:e}},required:["result"],additionalProperties:!1},...null!=t&&{name:t},...null!=n&&{description:n}}),async parseCompleteOutput({text:t},n){let r=await as({text:t});if(!r.success)throw new mk({message:"No object generated: could not parse the response.",cause:r.error,text:t,response:n.response,usage:n.usage,finishReason:n.finishReason});let i=r.value;if(null==i||"object"!=typeof i||!("result"in i)||"string"!=typeof i.result||!e.includes(i.result))throw new mk({message:"No object generated: response did not match schema.",cause:new eC({value:i,cause:"response must be an object that contains a choice value."}),text:t,response:n.response,usage:n.usage,finishReason:n.finishReason});return i.result},async parsePartialOutput({text:t}){let n=await mY(t);switch(n.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":{let t=n.value;if(null==t||"object"!=typeof t||!("result"in t)||"string"!=typeof t.result)return;let r=e.filter(e=>e.startsWith(t.result));if("successful-parse"===n.state)return r.includes(t.result)?{partial:t.result}:void 0;return 1===r.length?{partial:r[0]}:void 0}}},createElementStreamTransform(){}}),m6=({name:e,description:t}={})=>({name:"json",responseFormat:Promise.resolve({type:"json",...null!=e&&{name:e},...null!=t&&{description:t}}),async parseCompleteOutput({text:e},t){let n=await as({text:e});if(!n.success)throw new mk({message:"No object generated: could not parse the response.",cause:n.error,text:e,response:t.response,usage:t.usage,finishReason:t.finishReason});return n.value},async parsePartialOutput({text:e}){let t=await mY(e);switch(t.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return void 0===t.value?void 0:{partial:t.value}}},createElementStreamTransform(){}});new TextEncoder,new TextEncoder,iy({prefix:"aitxt",size:24}),iy({prefix:"call",size:24}),TransformStream;var m2=p8.record(p8.string(),mO.optional()),m9=ae(()=>ar(p8.union([p8.strictObject({type:p8.literal("text-start"),id:p8.string(),providerMetadata:mT.optional()}),p8.strictObject({type:p8.literal("text-delta"),id:p8.string(),delta:p8.string(),providerMetadata:mT.optional()}),p8.strictObject({type:p8.literal("text-end"),id:p8.string(),providerMetadata:mT.optional()}),p8.strictObject({type:p8.literal("error"),errorText:p8.string()}),p8.strictObject({type:p8.literal("tool-input-start"),toolCallId:p8.string(),toolName:p8.string(),providerExecuted:p8.boolean().optional(),providerMetadata:mT.optional(),toolMetadata:m2.optional(),dynamic:
98p8.boolean().optional(),title:p8.string().optional()}),p8.strictObject({type:p8.literal("tool-input-delta"),toolCallId:p8.string(),inputTextDelta:p8.string()}),p8.strictObject({type:p8.literal("tool-input-available"),toolCallId:p8.string(),toolName:p8.string(),input:p8.unknown(),providerExecuted:p8.boolean().optional(),providerMetadata:mT.optional(),toolMetadata:m2.optional(),dynamic:p8.boolean().optional(),title:p8.string().optional()}),p8.strictObject({type:p8.literal("tool-input-error"),toolCallId:p8.string(),toolName:p8.string(),input:p8.unknown(),providerExecuted:p8.boolean().optional(),providerMetadata:mT.optional(),toolMetadata:m2.optional(),dynamic:p8.boolean().optional(),errorText:p8.string(),title:p8.string().optional()}),p8.strictObject({type:p8.literal("tool-approval-request"),approvalId:p8.string(),toolCallId:p8.string(),isAutomatic:p8.boolean().optional(),signature:p8.string().optional()}),p8.strictObject({type:p8.literal("tool-approval-response"),approvalId:p8.string(),approved:p8.boolean(),reason:p8.string().optional(),providerExecuted:p8.boolean().optional(),providerMetadata:mT.optional()}),p8.strictObject({type:p8.literal("tool-output-available"),toolCallId:p8.string(),output:p8.unknown(),providerExecuted:p8.boolean().optional(),providerMetadata:mT.optional(),toolMetadata:m2.optional(),dynamic:
98p8.boolean().optional(),preliminary:p8.boolean().optional()}),p8.strictObject({type:p8.literal("tool-output-error"),toolCallId:p8.string(),errorText:p8.string(),providerExecuted:p8.boolean().optional(),providerMetadata:mT.optional(),toolMetadata:m2.optional(),dynamic:p8.boolean().optional()}),p8.strictObject({type:p8.literal("tool-output-denied"),toolCallId:p8.string()}),p8.strictObject({type:p8.literal("reasoning-start"),id:p8.string(),providerMetadata:mT.optional()}),p8.strictObject({type:p8.literal("reasoning-delta"),id:p8.string(),delta:p8.string(),providerMetadata:mT.optional()}),p8.strictObject({type:p8.literal("reasoning-end"),id:p8.string(),providerMetadata:mT.optional()}),p8.strictObject({type:p8.literal("custom"),kind:p8.string().transform(e=>e),providerMetadata:mT.optional()}),p8.strictObject({type:p8.literal("source-url"),sourceId:p8.string(),url:p8.string(),title:p8.string().optional(),providerMetadata:mT.optional()}),p8.strictObject({type:p8.literal("source-document"),sourceId:p8.string(),mediaType:p8.string(),title:p8.string(),filename:p8.string().optional(),providerMetadata:mT.optional()}),p8.strictObject({type:p8.literal("file"),url:p8.string(),mediaType:p8.string(),providerMetadata:mT.optional()}),p8.strictObject({type:p8.literal("reasoning-file"),url:p8.string(),mediaType:p8.string(),providerMetadata:mT.optional()}),p8.strictObject({type:p8.custom(e=>"string"==typeof e&&e.startsWith("data-"),{message:'Type must start with "data-"'}),id:p8.string().optional(),data:p8.unknown(),transient:p8.boolean().optional()}),p8.strictObject({type:p8.literal("start-step")}),p8.strictObject({type:p8.literal("finish-step")}),p8.strictObject({type:p8.literal("start"),messageId:p8.string().optional(),messageMetadata:p8.unknown().optional()}),p8.strictObject({type:p8.literal("finish"),finishReason:p8.enum(["stop","length","content-filter","tool-calls","error","other"]).optional(),messageMetadata:p8.unknown().optional()}),p8.strictObject({type:p8.literal("abort"),reason:p8.string().optional()}),p8.strictObject({type:p8.literal("message-metadata"),messageMetadata:p8.unknown()})])));function m5(){return Object.create(null)}function m3(e){return e.type.startsWith("tool-")}function m8(e){return m3(e)||"dynamic-tool"===e.type}function m7(e){return e.type.split("-").slice(1).join("-")}async function he({stream:e,onError:t}){let n=e.getReader();try{for(;;){let{done:e}=await n.read();if(e)break}}catch(e){null==t||t(e)}finally{n.releaseLock()}}iy({prefix:"aitxt",size:24}),iy({prefix:"call",size:24}),iy({prefix:"aitxt",size:24}),iy({prefix:"call",size:24});var ht=p8.record(p8.string(),mO.optional()),hn=p8.record(p8.string(),p8.string());function hr(e){return({url:t,abortSignal:n})=>mE({url:t,maxBytes:null==e?void 0:e.maxBytes,abortSignal:n})}ae(()=>ar(p8.array(p8.object({id:p8.string(),role:p8.enum(["system","user","assistant"]),metadata:p8.unknown().optional(),parts:p8.array(p8.union([p8.object({type:p8.literal("text"),text:p8.string(),state:p8.enum(["streaming","done"]).optional(),providerMetadata:mT.optional()}),p8.object({type:p8.literal("reasoning"),text:p8.string(),state:p8.enum(["streaming","done"]).optional(),providerMetadata:mT.optional()}),p8.object({type:p8.literal("custom"),kind:p8.string(),providerMetadata:mT.optional()}),p8.object({type:p8.literal("source-url"),sourceId:p8.string(),url:p8.string(),title:p8.string().optional(),providerMetadata:mT.optional()}),p8.object({type:p8.literal("source-document"),sourceId:p8.string(),mediaType:p8.string(),title:p8.string(),filename:p8.string().optional(),providerMetadata:mT.optional()}),p8.object({type:p8.literal("file"),mediaType:p8.string(),filename:p8.string().optional(),url:p8.string(),providerReference:hn.optional(),providerMetadata:mT.optional()}),p8.object({type:p8.literal("reasoning-file"),mediaType:p8.string(),url:p8.string(),providerMetadata:mT.optional()}),p8.object({type:p8.literal("step-start")}),p8.object({type:p8.string().startsWith("data-"),id:p8.string().optional(),data:p8.unknown()}),p8.object({type:p8.literal("dynamic-tool"),toolName:p8.string(),toolCallId:p8.string(),toolMetadata:ht.optional(),state:p8.literal("input-streaming"),input:p8.unknown().optional(),providerExecuted:p8.boolean().optional(),callProviderMetadata:mT.optional(),output:p8.never().optional(),errorText:p8.never().optional(),approval:p8.never().optional()}),p8.object({type:p8.literal("dynamic-tool"),toolName:p8.string(),toolCallId:p8.string(),toolMetadata:ht.optional(),state:p8.literal("input-available"),input:p8.unknown(),providerExecuted:p8.boolean().optional(),output:p8.never().optional(),errorText:p8.never().optional(),callProviderMetadata:mT.optional(),approval:p8.never().optional()}),p8.object({type:p8.literal("dynamic-tool"),toolName:p8.string(),toolCallId:p8.string(),toolMetadata:ht.optional(),state:p8.literal("approval-requested"),input:p8.unknown(),providerExecuted:p8.boolean().optional(),output:p8.never().optional(),errorText:p8.never().optional(),callProviderMetadata:mT.optional(),approval:p8.object({id:p8.string(),approved:p8.never().optional(),reason:p8.never().optional(),isAutomatic:p8.boolean().optional(),signature:p8.string().optional()})}),p8.object({type:p8.literal("dynamic-tool"),toolName:p8.string(),toolCallId:p8.string(),toolMetadata:ht.optional(),state:p8.literal("approval-responded"),input:p8.unknown(),providerExecuted:p8.boolean().optional(),output:p8.never().optional(),errorText:p8.never().optional(),callProviderMetadata:mT.optional(),approval:p8.object({id:p8.string(),approved:p8.boolean(),reason:p8.string().optional(),isAutomatic:p8.boolean().optional(),signature:p8.string().optional()})}),p8.object({type:p8.literal("dynamic-tool"),toolName:p8.string(),toolCallId:p8.string(),toolMetadata:ht.optional(),state:p8.literal("output-available"),input:p8.unknown(),providerExecuted:p8.boolean().optional(),output:p8.unknown(),errorText:p8.never().optional(),callProviderMetadata:mT.optional(),resultProviderMetadata:mT.optional(),preliminary:p8.boolean().optional(),approval:p8.object({id:p8.string(),approved:p8.literal(!0),reason:p8.string().optional(),isAutomatic:p8.boolean().optional(),signature:p8.string().optional()}).optional()}),p8.object({type:p8.literal("dynamic-tool"),toolName:p8.string(),toolCallId:p8.string(),toolMetadata:ht.optional(),state:p8.literal("output-error"),input:p8.unknown().optional(),rawInput:p8.unknown().optional(),providerExecuted:p8.boolean().optional(),output:p8.never().optional(),errorText:p8.string(),callProviderMetadata:mT.optional(),resultProviderMetadata:mT.optional(),approval:p8.object({id:p8.string(),approved:p8.literal(!0),reason:p8.string().optional(),isAutomatic:p8.boolean().optional(),signature:p8.string().optional()}).optional()}),p8.object({type:p8.literal("dynamic-tool"),toolName:p8.string(),toolCallId:p8.string(),toolMetadata:ht.optional(),state:p8.literal("output-denied"),input:p8.unknown(),providerExecuted:p8.boolean().optional(),output:p8.never().optional(),errorText:p8.never().optional(),callProviderMetadata:mT.optional(),approval:p8.object({id:p8.string(),approved:p8.literal(!1),reason:p8.string().optional(),isAutomatic:p8.boolean().optional(),signature:p8.string().optional()})}),p8.object({type:p8.string().startsWith("tool-"),toolCallId:p8.string(),toolMetadata:ht.optional(),state:p8.literal("input-streaming"),providerExecuted:p8.boolean().optional(),callProviderMetadata:mT.optional(),input
98:p8.unknown().optional(),output:p8.never().optional(),errorText:p8.never().optional(),approval:p8.never().optional()}),p8.object({type:p8.string().startsWith("tool-"),toolCallId:p8.string(),toolMetadata:ht.optional(),state:p8.literal("input-available"),providerExecuted:p8.boolean().optional(),input:p8.unknown(),output:p8.never().optional(),errorText:p8.never().optional(),callProviderMetadata:mT.optional(),approval:p8.never().optional()}),p8.object({type:p8.string().startsWith("tool-"),toolCallId:p8.string(),toolMetadata:ht.optional(),state:p8.literal("approval-requested"),input:p8.unknown(),providerExecuted:p8.boolean().optional(),output:p8.never().optional(),errorText:p8.never().optional(),callProviderMetadata:mT.optional(),approval:p8.object({id:p8.string(),approved:p8.never().optional(),reason:p8.never().optional(),isAutomatic:p8.boolean().optional(),signature:p8.string().optional()})}),p8.object({type:p8.string().startsWith("tool-"),toolCallId:p8.string(),toolMetadata:ht.optional(),state:p8.literal("approval-responded"),input:p8.unknown(),providerExecuted:p8.boolean().optional(),output:p8.never().optional(),errorText:p8.never().optional(),callProviderMetadata:mT.optional(),approval:p8.object({id:p8.string(),approved:p8.boolean(),reason:p8.string().optional(),isAutomatic:p8.boolean().optional(),signature:p8.string().optional()})}),p8.object({type:p8.string().startsWith("tool-"),toolCallId:p8.string(),toolMetadata:ht.optional(),state:p8.literal("output-available"),providerExecuted:p8.boolean().optional(),input:p8.unknown(),output:p8.unknown(),errorText:p8.never().optional(),callProviderMetadata:mT.optional(),resultProviderMetadata:mT.optional(),preliminary:p8.boolean().optional(),approval:p8.object({id:p8.string(),approved:p8.literal(!0),reason:p8.string().optional(),isAutomatic:p8.boolean().optional(),signature:p8.string().optional()}).optional()}),p8.object({type:p8.string().startsWith("tool-"),toolCallId:p8.string(),toolMetadata:ht.optional(),state:p8.literal("output-error"),providerExecuted:p8.boolean().optional(),input:p8.unknown().optional(),rawInput:p8.unknown().optional(),output:p8.never().optional(),errorText:p8.string(),callProviderMetadata:mT.optional(),resultProviderMetadata:mT.optional(),approval:p8.object({id:p8.string(),approved:p8.literal(!0),reason:p8.string().optional(),isAutomatic:p8.boolean().optional(),signature:p8.string().optional()}).optional()}),p8.object({type:p8.string().startsWith("tool-"),toolCallId:p8.string(),toolMetadata:ht.optional(),state:p8.literal("output-denied"),providerExecuted:p8.boolean().optional(),input:p8.unknown(),output:p8.never().optional(),errorText:p8.never().optional(),callProviderMetadata:mT.optional(),approval:p8.object({id:p8.string(),approved:p8.literal(!1),reason:p8.string().optional(),isAutomatic:p8.boolean().optional(),signature:p8.string().optional()})})])).nonempty("Message must contain at least one part")})).nonempty("Messages array must not be empty"))),iy({prefix:"call",size:24}),iy({prefix:"call",size:24}),iy({prefix:"aiobj",size:24});var hi=class{constructor(){this.queue=[],this.isProcessing=!1}async processQueue(){if(!this.isProcessing){for(this.isProcessing=!0;this.queue.length>0;)await this.queue[0](),this.queue.shift();this.isProcessing=!1}}async run(e){return new Promise((t,n)=>{this.queue.push(async()=>{try{await e(),t()}catch(e){n(e)}}),this.processQueue()})}};async function ha(e){if(null==e)return[];if(!globalThis.FileList||!(e instanceof globalThis.FileList))throw Error("FileList is not supported in the current environment");return Promise.all(Array.from(e).map(async e=>{let{name:t,type:n}=e;return{type:"file",mediaType:n,filename:t,url:await new Promise((t,n)=>{let r=new FileReader;r.onload=e=>{var n;t(null==(n=e.target)?void 0:n.result)},r.onerror=e=>n(e),r.readAsDataURL(e)})}}))}iy({prefix:"aiobj",size:24}),hr(),Symbol.for("vercel.ai.error.AI_NoSuchProviderError"),iy({prefix:"call",size:24}),hr();var ho=class{constructor({api:e="/api/chat",credentials:t,headers:n,body:r,fetch:i,prepareSendMessagesRequest:a,prepareReconnectToStreamRequest:o}){this.api=e,this.credentials=t,this.headers=n,this.body=r,this.fetch=i,this.prepareSendMessagesRequest=a,this.prepareReconnectToStreamRequest=o}async sendMessages({abortSignal:e,...t}){var n,r,i,a,o;let s=await af(this.body),l=await af(this.headers),u=await af(this.credentials),c={...iI(l),...iI(t.headers)},d=await (null==(n=this.prepareSendMessagesRequest)?void 0:n.call(this,{api:this.api,id:t.chatId,messages:t.messages,body:{...s,...t.body},headers:c,credentials:u,requestMetadata:t.metadata,trigger:t.trigger,messageId:t.messageId})),p=null!=(r=null==d?void 0:d.api)?r:this.api,f=(null==d?void 0:d.headers)!==void 0?iI(d.headers):c,m=(null==d?void 0:d.body)!==void 0?d.body:{...s,...t.body,id:t.chatId,messages:t.messages,trigger:t.trigger,messageId:t.messageId},h=null!=(i=null==d?void 0:d.credentials)?i:u,g=null!=(a=this.fetch)?a:globalThis.fetch,v=await g(p,{method:"POST",headers:{"Content-Type":"application/json",...f},body:JSON.stringify(m),credentials:h,signal:e});if(!v.ok)throw Error(null!=(o=await v.text())?o:"Failed to fetch the chat response.");if(!v.body)throw Error("The response body is empty.");return this.processResponseStream(v.body)}async reconnectToStream(e){var t,n,r,i,a;let o=await af(this.body),s=await af(this.headers),l=await af(this.credentials),u={...iI(s),...iI(e.headers)},c=await (null==(t=this.prepareReconnectToStreamRequest)?void 0:t.call(this,{api:this.api,id:e.chatId,body:{...o,...e.body},headers:u,credentials:l,requestMetadata:e.metadata})),d=null!=(n=null==c?void 0:c.api)?n:`${this.api}/${e.chatId}/stream`,p=(null==c?void 0:c.headers)!==void 0?iI(c.headers):u,f=null!=(r=null==c?void 0:c.credentials)?r:l,m=null!=(i=this.fetch)?i:globalThis.fetch,h=await m(d,{method:"GET",headers:p,credentials:f});if(204===h.status)return null;if(!h.ok)throw Error(null!=(a=await h.text())?a:"Failed to fetch the chat response.");if(!h.body)throw Error("The response body is empty.");return this.processResponseStream(h.body)}},hs=class extends ho{constructor(e={}){super(e)}
98processResponseStream(e){return al({stream:e,schema:m9}).pipeThrough(new TransformStream({async transform(e,t){if(!e.success)throw e.error;t.enqueue(e.value)}}))}},hl=class{constructor({generateId:e=ib,id:t=e(),transport:n=new hs,messageMetadataSchema:r,dataPartSchemas:i,state:a,onError:o,onToolCall:s,onFinish:l,onData:u,sendAutomaticallyWhen:c}){this.activeResponse=void 0,this.jobExecutor=new hi,this.sendMessage=async(e,t)=>{var n,r,i,a;let o;if(null==e)return void await this.makeRequest({trigger:"submit-message",messageId:null==(n=this.lastMessage)?void 0:n.id,...t});if(o="text"in e||"files"in e?{parts:[...Array.isArray(e.files)?e.files:await ha(e.files),..."text"in e&&null!=e.text?[{type:"text",text:e.text}]:[]]}:e,null!=e.messageId){let t=this.state.messages.findIndex(t=>t.id===e.messageId);if(-1===t)throw Error(`message with id ${e.messageId} not found`);if("user"!==this.state.messages[t].role)throw Error(`message with id ${e.messageId} is not a user message`);this.state.messages=this.state.messages.slice(0,t+1),this.state.replaceMessage(t,{...o,id:e.messageId,role:null!=(r=o.role)?r:"user",metadata:e.metadata})}else this.state.pushMessage({...o,id:null!=(i=o.id)?i:this.generateId(),role:null!=(a=o.role)?a:"user",metadata:e.metadata});await this.makeRequest({trigger:"submit-message",messageId:e.messageId,...t})},this.regenerate=async({messageId:e,...t}={})=>{let n=null==e?this.state.messages.length-1:this.state.messages.findIndex(t=>t.id===e);if(-1===n)throw Error(`message ${e} not found`);this.state.messages=this.state.messages.slice(0,"assistant"===this.messages[n].role?n:n+1),await this.makeRequest({trigger:"regenerate-message",messageId:e,...t})},this.resumeStream=async(e={})=>{await this.makeRequest({trigger:"resume-stream",...e})},this.clearError=()=>{"error"===this.status&&(this.state.error=void 0,this.setStatus({status:"ready"}))},this.addToolApprovalResponse=async({id:e,approved:t,reason:n,options:r})=>this.jobExecutor.run(async()=>{let i=this.state.messages,a=i[i.length-1],o=r=>m8(r)&&"approval-requested"===r.state&&r.approval.id===e?{...r,state:"approval-responded",approval:{...r.approval,id:e,approved:t,reason:n}}:r;this.state.replaceMessage(i.length-1,{...a,parts:a.parts.map(o)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(o)),"streaming"!==this.status&&"submitted"!==this.status&&this.sendAutomaticallyWhen&&this.shouldSendAutomatically().then(e=>{var t;e&&this.makeRequest({trigger:"submit-message",messageId:null==(t=this.lastMessage)?void 0:t.id,...r})})}),this.addToolOutput=async({state:e="output-available",toolCallId:t,output:n,errorText:r,options:i})=>this.jobExecutor.run(async()=>{let a=this.state.messages,o=a[a.length-1],s=i=>m8(i)&&i.toolCallId===t?{...i,state:e,output:n,errorText:r}:i;this.state.replaceMessage(a.length-1,{...o,parts:o.parts.map(s)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(s)),"streaming"!==this.status&&"submitted"!==this.status&&this.sendAutomaticallyWhen&&this.shouldSendAutomatically().then(e=>{var t;e&&this.makeRequest({trigger:"submit-message",messageId:null==(t=this.lastMessage)?void 0:t.id,...i})})}),this.addToolResult=this.addToolOutput,this.stop=async()=>{var e;("streaming"===this.status||"submitted"===this.status)&&(null==(e=this.activeResponse)?void 0:e.abortController)&&this.activeResponse.abortController.abort()},this.id=t,this.transport=n,this.generateId=e,this.messageMetadataSchema=r,this.dataPartSchemas=i,this.state=a,this.onError=o,this.onToolCall=s,this.onFinish=l,this.onData=u,this.sendAutomaticallyWhen=c}get status(){return this.state.status}setStatus({status:e,error:t}){this.status!==e&&(this.state.status=e,this.state.error=t)}get error(){return this.state.error}get messages(){return this.state.messages}get lastMessage(){return this.state.messages[this.state.messages.length-1]}set messages(e){this.state.messages=e}async shouldSendAutomatically(){if(!this.sendAutomaticallyWhen)return!1;let e=this.sendAutomaticallyWhen({messages:this.state.messages});return e&&"object"==typeof e&&"then"in e?await e:e}
98async makeRequest({trigger:e,metadata:t,headers:n,body:r,messageId:i}){var a,o,s;let l;if("resume-stream"===e)try{let e=await this.transport.reconnectToStream({chatId:this.id,metadata:t,headers:n,body:r});if(null==e)return;l=e}catch(e){this.onError&&e instanceof Error&&this.onError(e),this.setStatus({status:"error",error:e});return}this.setStatus({status:"submitted",error:void 0});let u=this.lastMessage,c=!1,d=!1,p=!1;try{let a,o={state:function({lastMessage:e,messageId:t}){return{message:(null==e?void 0:e.role)==="assistant"?e:{id:t,metadata:void 0,role:"assistant",parts:[]},activeTextParts:m5(),activeReasoningParts:m5(),partialToolCalls:m5()}}({lastMessage:this.state.snapshot(u),messageId:this.generateId()}),abortController:new AbortController};o.abortController.signal.addEventListener("abort",()=>{c=!0}),this.activeResponse=o,a="resume-stream"===e?l:await this.transport.sendMessages({chatId:this.id,messages:this.state.messages,abortSignal:o.abortController.signal,metadata:t,headers:n,body:r,trigger:e,messageId:i});let s=e=>this.jobExecutor.run(()=>e({state:o.state,write:()=>{var e;this.setStatus({status:"streaming"}),o.state.message.id===(null==(e=this.lastMessage)?void 0:e.id)?this.state.replaceMessage(this.state.messages.length-1,o.state.message):this.state.pushMessage(o.state.message)}}));await he({stream:function({stream:e,messageMetadataSchema:t,dataPartSchemas:n,runUpdateMessageJob:r,onError:i,onToolCall:a,onData:o}){return e.pipeThrough(new TransformStream({async transform(e,s){await r(async({state:r,write:l})=>{var u,c,d,p;function f(e){let t=r.message.parts.filter(m8).find(t=>t.toolCallId===e);if(null==t)throw new mS({chunkType:"tool-invocation",chunkId:e,message:`No tool invocation found for tool call ID "${e}".`});return t}function m(e){var t;let n=r.message.parts.find(t=>m3(t)&&t.toolCallId===e.toolCallId);if(null!=n){n.state=e.state,n.input=e.input,n.output=e.output,n.errorText=e.errorText,n.rawInput=e.rawInput,n.preliminary=e.preliminary,void 0!==e.title&&(n.title=e.title),void 0!==e.toolMetadata&&(n.toolMetadata=e.toolMetadata),n.providerExecuted=null!=(t=e.providerExecuted)?t:n.providerExecuted;let r=e.providerMetadata;null!=r&&("output-available"===e.state||"output-error"===e.state?n.resultProviderMetadata=r:n.callProviderMetadata=r)}else r.message.parts.push({type:`tool-${e.toolName}`,toolCallId:e.toolCallId,state:e.state,title:e.title,...void 0!==e.toolMetadata?{toolMetadata:e.toolMetadata}:{},input:e.input,output:e.output,rawInput:e.rawInput,errorText:e.errorText,providerExecuted:e.providerExecuted,preliminary:e.preliminary,...null!=e.providerMetadata&&("output-available"===e.state||"output-error"===e.state)?{resultProviderMetadata:e.providerMetadata}:{},...null!=e.providerMetadata&&"output-available"!==e.state&&"output-error"!==e.state?{callProviderMetadata:e.providerMetadata}:{}})}function h(e){var t,n;let i=r.message.parts.find(t=>"dynamic-tool"===t.type&&t.toolCallId===e.toolCallId);if(null!=i){i.state=e.state,i.toolName=e.toolName,i.input=e.input,i.output=e.output,i.errorText=e.errorText,i.rawInput=null!=(t=e.rawInput)?t:i.rawInput,i.preliminary=e.preliminary,void 0!==e.title&&(i.title=e.title),void 0!==e.toolMetadata&&(i.toolMetadata=e.toolMetadata),i.providerExecuted=null!=(n=e.providerExecuted)?n:i.providerExecuted;let r=e.providerMetadata;null!=r&&("output-available"===e.state||"output-error"===e.state?i.resultProviderMetadata=r:i.callProviderMetadata=r)}else r.message.parts.push({type:"dynamic-tool",toolName:e.toolName,toolCallId:e.toolCallId,state:e.state,input:e.input,output:e.output,errorText:e.errorText,preliminary:e.preliminary,providerExecuted:e.providerExecuted,title:e.title,...void 0!==e.toolMetadata?{toolMetadata:e.toolMetadata}:{},...null!=e.providerMetadata&&("output-available"===e.state||"output-error"===e.state)?{resultProviderMetadata:e.providerMetadata}:{},...null!=e.providerMetadata&&"output-available"!==e.state&&"output-error"!==e.state?{callProviderMetadata:e.providerMetadata}:{}})}async function g(e){if(null!=e){let n=null!=r.message.metadata?function e(t,n){if(void 0===t&&void 0===n)return;if(void 0===t)return n;if(void 0===n)return t;let r={...t};for(let i in n)if("__proto__"!==i&&"constructor"!==i&&"prototype"!==i&&Object.prototype.hasOwnProperty.call(n,i)){let a=n[i];if(void 0===a)continue;let o=i in t?t[i]:void 0,s=null!==a&&"object"==typeof a&&!Array.isArray(a)&&!(a instanceof Date)&&!(a instanceof RegExp),l=null!=o&&"object"==typeof o&&!Array.isArray(o)&&!(o instanceof Date)&&!(o instanceof RegExp);s&&l?r[i]=e(o,a):r[i]=a}return r}(r.message.metadata,e):e;null!=t&&await ai({value:n,schema:t,context:{field:"message.metadata",entityId:r.message.id}}),r.message.metadata=n}}switch(e.type){case"text-start":{let t={type:"text",text:"",providerMetadata:e.providerMetadata,state:"streaming"};r.activeTextParts[e.id]=t,r.message.parts.push(t),l();break}case"text-delta":{let t=r.activeTextParts[e.id];if(null==t)throw new mS({chunkType:"text-delta",chunkId:e.id,message:`Received text-delta for missing text part with ID "${e.id}". Ensure a "text-start" chunk is sent before any "text-delta" chunks.`});t.text+=e.delta,t.providerMetadata=null!=(u=e.providerMetadata)?u:t.providerMetadata,l();break}case"text-end":{let t=r.activeTextParts[e.id];if(null==t)throw new mS({chunkType:"text-end",chunkId:e.id,message:`Received text-end for missing text part with ID "${e.id}". Ensure a "text-start" chunk is sent before any "text-end" chunks.`});t.state="done",t.providerMetadata=null!=(c=e.providerMetadata)?c:t.providerMetadata,delete r.activeTextParts[e.id],l();break}
98case"custom":{let t={type:"custom",kind:e.kind,providerMetadata:e.providerMetadata};r.message.parts.push(t),l();break}case"reasoning-start":{let t={type:"reasoning",text:"",providerMetadata:e.providerMetadata,state:"streaming"};r.activeReasoningParts[e.id]=t,r.message.parts.push(t),l();break}case"reasoning-delta":{let t=r.activeReasoningParts[e.id];if(null==t)throw new mS({chunkType:"reasoning-delta",chunkId:e.id,message:`Received reasoning-delta for missing reasoning part with ID "${e.id}". Ensure a "reasoning-start" chunk is sent before any "reasoning-delta" chunks.`});t.text+=e.delta,t.providerMetadata=null!=(d=e.providerMetadata)?d:t.providerMetadata,l();break}case"reasoning-end":{let t=r.activeReasoningParts[e.id];if(null==t)throw new mS({chunkType:"reasoning-end",chunkId:e.id,message:`Received reasoning-end for missing reasoning part with ID "${e.id}". Ensure a "reasoning-start" chunk is sent before any "reasoning-end" chunks.`});t.providerMetadata=null!=(p=e.providerMetadata)?p:t.providerMetadata,t.state="done",delete r.activeReasoningParts[e.id],l();break}case"file":case"reasoning-file":r.message.parts.push({type:e.type,mediaType:e.mediaType,url:e.url,...null!=e.providerMetadata?{providerMetadata:e.providerMetadata}:{}}),l();break;case"source-url":r.message.parts.push({type:"source-url",sourceId:e.sourceId,url:e.url,title:e.title,providerMetadata:e.providerMetadata}),l();break;case"source-document":r.message.parts.push({type:"source-document",sourceId:e.sourceId,mediaType:e.mediaType,title:e.title,filename:e.filename,providerMetadata:e.providerMetadata}),l();break;case"tool-input-start":{let t=r.message.parts.filter(m3);r.partialToolCalls[e.toolCallId]={text:"",toolName:e.toolName,index:t.length,dynamic:e.dynamic,title:e.title,toolMetadata:e.toolMetadata},e.dynamic?h({toolCallId:e.toolCallId,toolName:e.toolName,state:"input-streaming",input:void 0,providerExecuted:e.providerExecuted,title:e.title,toolMetadata:e.toolMetadata,providerMetadata:e.providerMetadata}):m({toolCallId:e.toolCallId,toolName:e.toolName,state:"input-streaming",input:void 0,providerExecuted:e.providerExecuted,title:e.title,toolMetadata:e.toolMetadata,providerMetadata:e.providerMetadata}),l();break}case"tool-input-delta":{let t=r.partialToolCalls[e.toolCallId];if(null==t)throw new mS({chunkType:"tool-input-delta",chunkId:e.toolCallId,message:`Received tool-input-delta for missing tool call with ID "${e.toolCallId}". Ensure a "tool-input-start" chunk is sent before any "tool-input-delta" chunks.`});t.text+=e.inputTextDelta;let{value:n}=await mY(t.text);t.dynamic?h({toolCallId:e.toolCallId,toolName:t.toolName,state:"input-streaming",input:n,title:t.title,toolMetadata:t.toolMetadata}):m({toolCallId:e.toolCallId,toolName:t.toolName,state:"input-streaming",input:n,title:t.title,toolMetadata:t.toolMetadata}),l();break}case"tool-input-available":e.dynamic?h({toolCallId:e.toolCallId,toolName:e.toolName,state:"input-available",input:e.input,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata,title:e.title,toolMetadata:e.toolMetadata}):m({toolCallId:e.toolCallId,toolName:e.toolName,state:"input-available",input:e.input,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata,title:e.title,toolMetadata:e.toolMetadata}),l(),a&&!e.providerExecuted&&await a({toolCall:e});break;case"tool-input-error":{let t=r.message.parts.filter(m8).find(t=>t.toolCallId===e.toolCallId);(null!=t?"dynamic-tool"===t.type:e.dynamic)?h({toolCallId:e.toolCallId,toolName:e.toolName,state:"output-error",input:e.input,errorText:e.errorText,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata,toolMetadata:e.toolMetadata}):m({toolCallId:e.toolCallId,toolName:e.toolName,state:"output-error",input:void 0,rawInput:e.input,errorText:e.errorText,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata,toolMetadata:e.toolMetadata}),l();break}case"tool-approval-request":{let t=f(e.toolCallId);t.state="approval-requested",t.approval={id:e.approvalId,...!0===e.isAutomatic?{isAutomatic:!0}:{},...null!=e.signature?{signature:e.signature}:{}},l();break}case"tool-approval-response":{let t=function(e){let t=r.message.parts.filter(m8).find(t=>{var n;return(null==(n=t.approval)?void 0:n.id)===e});if(null==t)throw new mS({chunkType:"tool-approval-response",chunkId:e,message:`No tool invocation found for approval ID "${e}".`});return t}(e.approvalId),n=null==t.approval?{id:e.approvalId}:t.approval;t.state="approval-responded",t.approval={id:e.approvalId,approved:e.approved,...null!=e.reason?{reason:e.reason}:{},...!0===n.isAutomatic?{isAutomatic:!0}:{},...null!=n.signature?{signature:n.signature}:{}},null!=e.providerExecuted&&(t.providerExecuted=e.providerExecuted),null!=e.providerMetadata&&(t.callProviderMetadata=e.providerMetadata),l();break}case"tool-output-denied":f(e.toolCallId).state="output-denied",l();break;case"tool-output-available":{let t=f(e.toolCallId);"dynamic-tool"===t.type?h({toolCallId:e.toolCallId,toolName:t.toolName,state:"output-available",input:t.input,output:e.output,preliminary:e.preliminary,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata,title:t.title,toolMetadata:t.toolMetadata}):m({toolCallId:e.toolCallId,toolName:m7(t),state:"output-available",input:t.input,output:e.output,providerExecuted:e.providerExecuted,preliminary:e.preliminary,providerMetadata:e.providerMetadata,title:t.title,toolMetadata:t.toolMetadata}),l();break}case"tool-output-error":{let t=f(e.toolCallId);"dynamic-tool"===t.type?h({toolCallId:e.toolCallId,toolName:t.toolName,state:"output-error",input:t.input,errorText:e.errorText,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata,title:t.title,toolMetadata:t.toolMetadata}):m({toolCallId:e.toolCallId,toolName:m7(t),state:"output-error",input:t.input,rawInput:t.rawInput,errorText:e.errorText,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata,title:t.title,toolMetadata:t.toolMetadata}),l();break}case"start-step":r.message.parts.push({type:"step-start"});break;case"finish-step":r.activeTextParts=m5(),r.activeReasoningParts=m5();break;case"start":null!=e.messageId&&(r.message.id=e.messageId),await g(e.messageMetadata),(null!=e.messageId||null!=e.messageMetadata)&&l();break;
98case"finish":null!=e.finishReason&&(r.finishReason=e.finishReason),await g(e.messageMetadata),null!=e.messageMetadata&&l();break;case"message-metadata":await g(e.messageMetadata),null!=e.messageMetadata&&l();break;case"error":null==i||i(Error(e.errorText));break;default:if(e.type.startsWith("data-")){if((null==n?void 0:n[e.type])!=null){let t=r.message.parts.findIndex(t=>"id"in t&&"data"in t&&t.id===e.id&&t.type===e.type),i=t>=0?t:r.message.parts.length;await ai({value:e.data,schema:n[e.type],context:{field:`message.parts[${i}].data`,entityName:e.type,entityId:e.id}})}if(e.transient){null==o||o(e);break}let t=null!=e.id?r.message.parts.find(t=>e.type===t.type&&e.id===t.id):void 0;null!=t?t.data=e.data:r.message.parts.push(e),null==o||o(e),l()}}s.enqueue(e)})}}))}({stream:a,onToolCall:this.onToolCall,onData:this.onData,messageMetadataSchema:this.messageMetadataSchema,dataPartSchemas:this.dataPartSchemas,runUpdateMessageJob:s,onError:e=>{throw e}}),onError:e=>{throw e}}),this.setStatus({status:"ready"})}catch(e){if(c||"AbortError"===e.name)return c=!0,this.setStatus({status:"ready"}),null;p=!0,e instanceof TypeError&&(e.message.toLowerCase().includes("fetch")||e.message.toLowerCase().includes("network"))&&(d=!0),this.onError&&e instanceof Error&&this.onError(e),this.setStatus({status:"error",error:e})}finally{try{null==(o=this.onFinish)||o.call(this,{message:this.activeResponse.state.message,messages:this.state.messages,isAbort:c,isDisconnect:d,isError:p,finishReason:null==(a=this.activeResponse)?void 0:a.state.finishReason})}catch(e){console.error(e)}this.activeResponse=void 0}!p&&await this.shouldSendAutomatically()&&await this.makeRequest({trigger:"submit-message",messageId:null==(s=this.lastMessage)?void 0:s.id,metadata:t,headers:n,body:r})}},hu=e.i(2239);e.s(["ERROR_REVALIDATE_EVENT",0,3,"FOCUS_EVENT",0,0,"MUTATE_EVENT",0,2,"RECONNECT_EVENT",0,1],11671);var hc=Object.prototype.hasOwnProperty;let hd=new WeakMap,hp=()=>{},hf=hp(),hm=Object,hh=e=>e===hf,hg=(e,t)=>({...e,...t}),hv={},hy={},hb="undefined",hx=typeof window!=hb,h_=typeof document!=hb,hk=hx&&"Deno"in window,h$=(e,t)=>{let n=hd.get(e);return[()=>!hh(t)&&e.get(t)||hv,r=>{if(!hh(t)){let i=e.get(t);t in hy||(hy[t]=i),n[5](t,hg(i,r),i||hv)}},n[6],()=>!hh(t)&&t in hy?hy[t]:!hh(t)&&e.get(t)||hv]},hw=!0,[hI,hS]=hx&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[hp,hp],hE={initFocus:e=>(h_&&document.addEventListener("visibilitychange",e),hI("focus",e),()=>{h_&&document.removeEventListener("visibilitychange",e),hS("focus",e)}),initReconnect:e=>{let t=()=>{hw=!0,e()},n=()=>{hw=!1};
98return hI("online",t),hI("offline",n),()=>{hS("online",t),hS("offline",n)}}},hO=!ea.default.useId,hT=!hx||hk,hj=hT?ea.useEffect:ea.useLayoutEffect,hz="u">typeof navigator&&navigator.connection,hA=!hT&&hz&&(["slow-2g","2g"].includes(hz.effectiveType)||hz.saveData),hC=new WeakMap,hP=(e,t)=>e===`[object ${t}]`,hN=0,hU=e=>{let t,n,r=typeof e,i=hm.prototype.toString.call(e),a=hP(i,"Date"),o=hP(i,"RegExp"),s=hP(i,"Object");if(hm(e)!==e||a||o)t=a?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=hC.get(e))return t;if(t=++hN+"~",hC.set(e,t),Array.isArray(e)){for(n=0,t="@";n<e.length;n++)t+=hU(e[n])+",";hC.set(e,t)}if(s){t="#";let r=hm.keys(e).sort();for(;!hh(n=r.pop());)hh(e[n])||(t+=n+":"+hU(e[n])+",");hC.set(e,t)}}return t},hZ=e=>{if("function"==typeof e)try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?hU(e):"",t]},hD=0,hM=()=>++hD;async function hR(...e){let[t,n,r,i]=e,a=hg({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),o=a.populateCache,s=a.rollbackOnError,l=a.optimisticData,u=a.throwOnError;if("function"==typeof n){let e=[];for(let r of t.keys())!/^\$(inf|sub)\$/.test(r)&&n(t.get(r)._k)&&e.push(r);return Promise.all(e.map(c))}return c(n);async function c(n){let i,[c]=hZ(n);if(!c)return;let[d,p]=h$(t,c),[f,m,h,g]=hd.get(t),v=()=>{let e=f[c];return("function"==typeof a.revalidate?a.revalidate(d().data,n):!1!==a.revalidate)&&(delete h[c],delete g[c],e&&e[0])?e[0](2).then(()=>d().data):d().data};if(e.length<3)return v();let y=r,b=!1,x=hM();m[c]=[x,0];let _=!hh(l),k=d(),$=k.data,w=k._c,I=hh(w)?$:w;if(_&&p({data:l="function"==typeof l?l(I,$):l,_c:I}),"function"==typeof y)try{y=y(I)}catch(e){i=e,b=!0}if(y&&"function"==typeof y.then){let e;if(y=await y.catch(e=>{i=e,b=!0}),x!==m[c][0]){if(b)throw i;return y}b&&_&&(e=i,"function"==typeof s?s(e):!1!==s)&&(o=!0,p({data:I,_c:hf}))}if(o&&!b&&("function"==typeof o?p({data:o(y,I),error:hf,_c:hf}):p({data:y,error:hf,_c:hf})),m[c][1]=hM(),Promise.resolve(v()).then(()=>{p({_c:hf})}),b){if(u)throw i;return}return y}}let hL=(e,t)=>{for(let n in e)e[n][0]&&e[n][0](t)},hF=(e,t)=>{if(!hd.has(e)){let n=hg(hE,t),r=Object.create(null),i=hR.bind(hf,e),a=hp,o=Object.create(null),s=(e,t)=>{let n=o[e]||[];return o[e]=n,n.push(t),()=>{let e=n.indexOf(t);e>=0&&(n[e]=n[n.length-1],n.pop())}},l=(t,n,r)=>{e.set(t,n);let i=o[t];if(i)for(let e of i)e(n,r)},u=()=>{if(!hd.has(e)&&(hd.set(e,[r,Object.create(null),Object.create(null),Object.create(null),i,l,s]),!hT)){let t=n.initFocus(setTimeout.bind(hf,hL.bind(hf,r,0))),i=n.initReconnect(setTimeout.bind(hf,hL.bind(hf,r,1)));a=()=>{t&&t(),i&&i(),hd.delete(e)}}};return u(),[e,i,u,a]}return[e,hd.get(e)[4]]},[hB,hV]=hF(new Map),hJ=hg({onLoadingSlow:hp,onSuccess:hp,onError:hp,onErrorRetry:(e,t,n,r,i)=>{let a=n.errorRetryCount,o=i.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;(hh(a)||!(o>a))&&setTimeout(r,s,i)},onDiscarded:hp,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:hA?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:hA?5e3:3e3,compare:function e(t,n){var r,i;if(t===n)return!0;if(t&&n&&(r=t.constructor)===n.constructor){if(r===Date)return t.getTime()===n.getTime();if(r===RegExp)return t.toString()===n.toString();if(r===Array){if((i=t.length)===n.length)for(;i--&&e(t[i],n[i]););return -1===i}if(!r||"object"==typeof t){for(r in i=0,t)if(hc.call(t,r)&&++i&&!hc.call(n,r)||!(r in n)||!e(t[r],n[r]))return!1;return Object.keys(n).length===i}}return t!=t&&n!=n},isPaused:()=>!1,cache:hB,mutate:hV,fallback:{}},{isOnline:()=>hw,isVisible:()=>{let e=h_&&document.visibilityState;return hh(e)||"hidden"!==e}}),hq=(0,ea.createContext)({});e.i(11671);let hW=hx&&window.__SWR_DEVTOOLS_USE__;(hW?window.__SWR_DEVTOOLS_USE__:[]).concat(e=>(t,n,r)=>{let i=n&&((...e)=>{let[r]=hZ(t),[,,,i]=hd.get(hB);if(r.startsWith("$inf$"))return n(...e);let a=i[r];return hh(a)?n(...e):(delete i[r],a)});return e(t,i,r)}),hW&&(window.__SWR_DEVTOOLS_REACT__=ea.default);let hH=()=>{},hK=hH(),hG=(new WeakMap,ea.default.use||(e=>
98{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}})),hX={dedupe:!0},hY=Promise.resolve(hf);hY.status="fulfilled",hY.value=hf;hm.defineProperty(e=>{let{value:t}=e,n=(0,ea.useContext)(hq),r="function"==typeof t,i=(0,ea.useMemo)(()=>r?t(n):t,[r,n,t]),a=(0,ea.useMemo)(()=>r?i:((e,t)=>{let n=hg(e,t);if(t){let{use:r,fallback:i}=e,{use:a,fallback:o}=t;r&&a&&(n.use=r.concat(a)),i&&o&&(n.fallback=hg(i,o))}return n})(n,i),[r,n,i]),o=i&&i.provider,s=(0,ea.useRef)(hf);o&&!s.current&&(s.current=hF(o(a.cache||hB),i));let l=s.current;return l&&(a.cache=l[0],a.mutate=l[1]),hj(()=>{if(l)return l[2]&&l[2](),l[3]},[]),(0,ea.createElement)(hq.Provider,hg(e,{value:a}))},"defaultValue",{value:hJ});var hQ=e.i(61866),h0=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},h1=(e,t,n)=>(h0(e,t,"read from private field"),n?n.call(e):t.get(e)),h4=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},h6=(e,t,n,r)=>(h0(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),h2=class{constructor(e=[]){h4(this,H,void 0),h4(this,K,"ready"),h4(this,G,void 0),h4(this,X,new Set),h4(this,Y,new Set),h4(this,Q,new Set),this.pushMessage=e=>{h6(this,H,h1(this,H).concat(e)),h1(this,ee).call(this)},this.popMessage=()=>{h6(this,H,h1(this,H).slice(0,-1)),h1(this,ee).call(this)},this.replaceMessage=(e,t)=>{h6(this,H,[...h1(this,H).slice(0,e),this.snapshot(t),...h1(this,H).slice(e+1)]),h1(this,ee).call(this)},this.snapshot=e=>structuredClone(e),this["~registerMessagesCallback"]=(e,t)=>{let n=t?null!=t?(0,hQ.default)(e,t):e:e;return h1(this,X).add(n),()=>{h1(this,X).delete(n)}},this["~registerStatusCallback"]=e=>(h1(this,Y).add(e),()=>{h1(this,Y).delete(e)}),this["~registerErrorCallback"]=e=>(h1(this,Q).add(e),()=>{h1(this,Q).delete(e)}),h4(this,ee,()=>{h1(this,X).forEach(e=>e())}),h4(this,et,()=>{h1(this,Y).forEach(e=>e())}),h4(this,en,()=>{h1(this,Q).forEach(e=>e())}),h6(this,H,e)}get status(){return h1(this,K)}set status(e){h6(this,K,e),h1(this,et).call(this)}get error(){return h1(this,G)}set error(e){h6(this,G,e),h1(this,en).call(this)}get messages(){return h1(this,H)}set messages(e){h6(this,H,[...e]),h1(this,ee).call(this)}};H=new WeakMap,K=new WeakMap,G=new WeakMap,X=new WeakMap,Y=new WeakMap,Q=new WeakMap,ee=new WeakMap,et=new WeakMap,en=new WeakMap;var h9=class extends hl{constructor({messages:e,...t}){const n=new h2(e);super({...t,state:n}),h4(this,er,void 0),this["~registerMessagesCallback"]=(e,t)=>h1(this,er)["~registerMessagesCallback"](e,t),this["~registerStatusCallback"]=e=>h1(this,er)["~registerStatusCallback"](e),this["~registerErrorCallback"]=e=>h1(this,er)["~registerErrorCallback"](e),h6(this,er,n)}};er=new WeakMap;var h5=e.i(56420);let h3=(0,h5.default)("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]),h8=(0,h5.default)("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]),h7=(0,h5.default)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);function ge(){}function gt(){}let gn=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,gr=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,gi={};function ga(e,t){return((t||gi).jsx?gr:gn).test(e)}let go=/[ \t\n\f\r]/g;function gs(e){return""===e.replace(go,"")}class gl{constructor(e,t){this.attribute=t,this.property=e}}gl.prototype.attribute="",gl.prototype.booleanish=!1,gl.prototype.boolean=!1,gl.prototype.commaOrSpaceSeparated=!1,gl.prototype.commaSeparated=!1,gl.prototype.defined=!1,gl.prototype.mustUseProperty=!1,gl.prototype.number=!1,gl.prototype.overloadedBoolean=!1,gl.prototype.property="",gl.prototype.spaceSeparated=!1,gl.prototype.space=void 0;let gu=0,gc=gv(),gd=gv(),gp=gv(),gf=gv(),gm=gv(),gh=gv(),gg=gv();
98function gv(){return 2**++gu}e.s(["boolean",0,gc,"booleanish",0,gd,"commaOrSpaceSeparated",0,gg,"commaSeparated",0,gh,"number",0,gf,"overloadedBoolean",0,gp,"spaceSeparated",0,gm],744);var gy=e.i(744);let gb=Object.keys(gy);class gx extends gl{constructor(e,t,n,r){let i=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",r),"number"==typeof n)for(;++i<gb.length;){const e=gb[i];!function(e,t,n){n&&(e[t]=n)}(this,gb[i],(n&gy[e])===gy[e])}}}function g_(e){return e.toLowerCase()}gx.prototype.defined=!0;let gk=/[A-Z]/g,g$=/-[a-z]/g,gw=/^data[-\w.:]+$/i;function gI(e){return"-"+e.toLowerCase()}function gS(e){return e.charAt(1).toUpperCase()}let gE={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};class gO{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function gT(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new gO(n,r,t)}function gj(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new gx(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[g_(r)]=r,n[g_(a.attribute)]=r}return new gO(t,n,e.space)}gO.prototype.normal={},gO.prototype.property={},gO.prototype.space=void 0;let gz=gj({properties:{ariaActiveDescendant:null,ariaAtomic:gd,ariaAutoComplete:null,ariaBusy:gd,ariaChecked:gd,ariaColCount:gf,ariaColIndex:gf,ariaColSpan:gf,ariaControls:gm,ariaCurrent:null,ariaDescribedBy:gm,ariaDetails:null,ariaDisabled:gd,ariaDropEffect:gm,ariaErrorMessage:null,ariaExpanded:gd,ariaFlowTo:gm,ariaGrabbed:gd,ariaHasPopup:null,ariaHidden:gd,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:gm,ariaLevel:gf,ariaLive:null,ariaModal:gd,ariaMultiLine:gd,ariaMultiSelectable:gd,ariaOrientation:null,ariaOwns:gm,ariaPlaceholder:null,ariaPosInSet:gf,ariaPressed:gd,ariaReadOnly:gd,ariaRelevant:null,ariaRequired:gd,ariaRoleDescription:gm,ariaRowCount:gf,ariaRowIndex:gf,ariaRowSpan:gf,ariaSelected:gd,ariaSetSize:gf,ariaSort:null,ariaValueMax:gf,ariaValueMin:gf,ariaValueNow:gf,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function gA(e,t){return t in e?e[t]:t}function gC(e,t){return gA(e,t.toLowerCase())}let gP=gj({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:gh,acceptCharset:gm,accessKey:gm,action:null,allow:null,allowFullScreen:gc,allowPaymentRequest:gc,allowUserMedia:gc,alpha:gc,alt:null,as:null,async:gc,autoCapitalize:null,autoComplete:gm,autoFocus:gc,autoPlay:gc,blocking:gm,capture:null,charSet:null,checked:gc,cite:null,className:gm,closedBy:null,colorSpace:null,cols:gf,colSpan:gf,command:null,commandFor:null,content:null,contentEditable:gd,controls:gc,controlsList:gm,coords:gf|gh,crossOrigin:null,data:null,dateTime:null,decoding:null,default:gc,defer:gc,dir:null,dirName:null,disabled:gc,download:gp,draggable:gd,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:gc,formTarget:null,headers:gm,height:gf,hidden:gp,high:gf,href:null,hrefLang:null,htmlFor:gm,httpEquiv:gm,id:null,imageSizes:null,imageSrcSet:null,inert:gc,inputMode:null,integrity:null,is:null,isMap:gc,itemId:null,itemProp:gm,itemRef:gm,itemScope:gc,itemType:gm,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:gc,low:gf,manifest:null,max:null,maxLength:gf,media:null,method:null,min:null,minLength:gf,multiple:gc,muted:gc,name:null,nonce:null,noModule:gc,noValidate:gc,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:gc,optimum:gf,pattern:null,ping:gm,placeholder:null,playsInl
98ine:gc,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:gc,referrerPolicy:null,rel:gm,required:gc,reversed:gc,rows:gf,rowSpan:gf,sandbox:gm,scope:null,scoped:gc,seamless:gc,selected:gc,shadowRootClonable:gc,shadowRootCustomElementRegistry:gc,shadowRootDelegatesFocus:gc,shadowRootMode:null,shadowRootSerializable:gc,shape:null,size:gf,sizes:null,slot:null,span:gf,spellCheck:gd,src:null,srcDoc:null,srcLang:null,srcSet:null,start:gf,step:null,style:null,tabIndex:gf,target:null,title:null,translate:null,type:null,typeMustMatch:gc,useMap:null,value:gd,width:gf,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:gm,axis:null,background:null,bgColor:null,border:gf,borderColor:null,bottomMargin:gf,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:gc,declare:gc,event:null,face:null,frame:null,frameBorder:null,hSpace:gf,leftMargin:gf,link:null,longDesc:null,lowSrc:null,marginHeight:gf,marginWidth:gf,noResize:gc,noHref:gc,noShade:gc,noWrap:gc,object:null,profile:null,prompt:null,rev:null,rightMargin:gf,rules:null,scheme:null,scrolling:gd,standby:null,summary:null,text:null,topMargin:gf,valueType:null,version:null,vAlign:null,vLink:null,vSpace:gf,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:gc,disablePictureInPicture:gc,disableRemotePlayback:gc,exportParts:gh,part:gm,prefix:null,property:null,results:gf,security:null,unselectable:null},space:"html",transform:gC}),gN=gj({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
98-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:gg,accentHeight:gf,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:gf,amplitude:gf,arabicForm:null,ascent:gf,attributeName:null,attributeType:null,azimuth:gf,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:gf,by:null,calcMode:null,capHeight:gf,className:gm,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:gf,diffuseConstant:gf,direction:null,display:null,dur:null,divisor:gf,dominantBaseline:null,download:gc,dx:null,dy:null,edgeMode:null,editable:null,elevation:gf,enableBackground:null,end:null,event:null,exponent:gf,externalResourcesRequired:null,fill:null,fillOpacity:gf,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:gh,g2:gh,glyphName:gh,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:gf,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:gf,horizOriginX:gf,horizOriginY:gf,id:null,ideographic:gf,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:gf,k:gf,k1:gf,k2:gf,k3:gf,k4:gf,kernelMatrix:gg,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:gf,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:gf,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
98Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:gf,overlineThickness:gf,paintOrder:null,panose1:null,path:null,pathLength:gf,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:gm,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:gf,pointsAtY:gf,pointsAtZ:gf,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:gg,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:gg,rev:gg,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:gg,requiredFeatures:gg,requiredFonts:gg,requiredFormats:gg,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:gf,specularExponent:gf,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:gf,strikethroughThickness:gf,string:null,stroke:null,strokeDashArray:gg,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:gf,strokeOpacity:gf,strokeWidth:null,style:null,surfaceScale:gf,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:gg,tabIndex:gf,tableValues:null,target:null,targetX:gf,targetY:gf,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:gg,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:gf,underlineThickness:gf,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:gf,values:null,vAlphabetic:gf,vMathematical:gf,vectorEffect:null,vHanging:gf,vIdeographic:gf,version:null,vertAdvY:gf,vertOriginX:gf,vertOriginY:gf,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:gf,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:gA}),gU=gj({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),gZ=gj({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:gC}),gD=gj({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),gM=gT([gz,gP,gU,gZ,gD],"html"),gR=gT([gz,gN,gU,gZ,gD],"svg");var gL=e.i(15511);let gF=gV("end"),gB=gV("start");function gV(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function gJ(e){return e&&"object"==typeof e?"position"in e||"type"in e?gW(e.position):"start"in e||"end"in e?gW(e):"line"in e||"column"in e?gq(e):"":""}function gq(e){return gH(e&&e.line)+":"+gH(e&&e.column)}function gW(e){return gq(e&&e.start)+"-"+gq(e&&e.end)}function gH(e){return e&&"number"==typeof e?e:1}class gK extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},a=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){const e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}const o=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=o?o.line:void 0,this.name=gJ(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}gK.prototype.file="",gK.prototype.name="",gK.prototype.reason="",gK.prototype.message="",gK.prototype.stack="",gK.prototype.column=void 0,gK.prototype.line=void 0,gK.prototype.ancestors=void 0,gK.prototype.cause=void 0,gK.prototype.fatal=void 0,gK.prototype.place=void 0,gK.prototype.ruleId=void 0,gK.prototype.source=void 0;let gG={}.hasOwnProperty,gX=new Map,gY=/[A-Z]/g,gQ=new Set(["table","tbody","thead","tfoot","tr"]),g0=new Set(["td","th"]),g1="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function g4(e,t,n){var r,i,a,o,s,l,u,c,d;let p,f,m,h,g,v,y,b,x,_,k;return"element"===t.type?(r=e,i=t,a=n,f=p=r.schema,"svg"===i.tagName.toLowerCase()&&"html"===p.space&&(r.schema=gR),r.ancestors.push(i),m=g5(r,i.tagName,!1),h=function(e,t){let n,r,i={};for(r in t.properties)if("children"!==r&&gG.call(t.properties,r)){let a=function(e,t,n){let r=function(e,t){let n=g_(t),r=t,i=gl;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&gw.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(g$,gS);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!g$.test(e)){let n=e.replace(gk,gI);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=gx}return new i(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){var i;let t;if(Array.isArray(n)&&(n=r.commaSeparated?(t={},(""===(i=n)[i.length-1]?[...i,""]:i).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return(0,gL.default)(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new gK("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});
98throw t.file=e.filePath||void 0,t.url=g1+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,n={};for(t in e)gG.call(e,t)&&(n[function(e){let t=e.replace(gY,g8);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?gE[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(a){let[r,o]=a;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof o&&g0.has(t.tagName)?n=o:i[r]=o}}return n&&((i.style||(i.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),i}(r,i),g=g9(r,i),gQ.has(i.tagName)&&(g=g.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&gs(e.value):gs(e))})),g6(r,h,m,i),g2(h,g),r.ancestors.pop(),r.schema=p,r.create(i,m,h,a)):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return ge("ExpressionStatement"===n.type),e.evaluater.evaluateExpression(n.expression)}g3(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?(o=e,s=t,l=n,y=v=o.schema,"svg"===s.name&&"html"===v.space&&(o.schema=gR),o.ancestors.push(s),b=null===s.name?o.Fragment:g5(o,s.name,!0),x=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];ge("ExpressionStatement"===t.type);let i=t.expression;ge("ObjectExpression"===i.type);let a=i.properties[0];ge("SpreadElement"===a.type),Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else g3(e,t.position);else{let i,a=r.name;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];ge("ExpressionStatement"===t.type),i=e.evaluater.evaluateExpression(t.expression)}else g3(e,t.position);else i=null===r.value||r.value;n[a]=i}return n}(o,s),_=g9(o,s),g6(o,x,b,s),g2(x,_),o.ancestors.pop(),o.schema=v,o.create(s,b,x,l)):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);g3(e,t.position)}(e,t):"root"===t.type?(u=e,c=t,d=n,g2(k={},g9(u,c)),u.create(c,u.Fragment,k,d)):"text"===t.type?t.value:void 0}function g6(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function g2(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function g9(e,t){let n=[],r=-1,i=e.passKeys?new Map:gX;for(;++r<t.children.length;){let a,o=t.children[r];if(e.passKeys){let e="element"===o.type?o.tagName:"mdxJsxFlowElement"===o.type||"mdxJsxTextElement"===o.type?o.name:void 0;if(e){let t=i.get(e)||0;a=e+"-"+t,i.set(e,t+1)}}let s=g4(e,o,a);void 0!==s&&n.push(s)}return n}function g5(e,t,n){let r;if(n)if(t.includes(".")){let e,n=t.split("."),i=-1;for(;++i<n.length;){let t=ga(n[i])?{type:"Identifier",name:n[i]}:{type:"Literal",value:n[i]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(i&&"Literal"===t.type),optional:!1}:t}ge(e,"always a result"),r=e}else r=ga(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){let t=r.value;return gG.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);g3(e)}function g3(e,t){let n=new gK("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=g1+"#cannot-handle-mdx-estrees-without-createevaluater",n}function g8(e){return"-"+e.toLowerCase()}let g7={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},ve={};function vt(e,t){let n=t||ve;return vn(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}
98function vn(e,t,n){var r;if((r=e)&&"object"==typeof r){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return vr(e.children,t,n)}return Array.isArray(e)?vr(e,t,n):""}function vr(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=vn(e[i],t,n);return r.join("")}function vi(e,t,n,r){let i,a=e.length,o=0;if(t=t<0?-t>a?0:a+t:t>a?a:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);o<r.length;)(i=r.slice(o,o+1e4)).unshift(t,0),e.splice(...i),o+=1e4,t+=1e4}function va(e,t){return e.length>0?(vi(e,e.length,0,t),e):t}let vo={}.hasOwnProperty;function vs(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let r,i=(vo.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];if(a)for(r in a){vo.call(i,r)||(i[r]=[]);let e=a[r];!function(e,t){let n=-1,r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);vi(e,0,0,r)}(i[r],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}let vl=vx(/[A-Za-z]/),vu=vx(/[\dA-Za-z]/),vc=vx(/[#-'*+\--9=?A-Z^-~]/);function vd(e){return null!==e&&(e<32||127===e)}let vp=vx(/\d/),vf=vx(/[\dA-Fa-f]/),vm=vx(/[!-/:-@[-`{-~]/);function vh(e){return null!==e&&e<-2}function vg(e){return null!==e&&(e<0||32===e)}function vv(e){return -2===e||-1===e||32===e}let vy=vx(/\p{P}|\p{S}/u),vb=vx(/\s/);function vx(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function v_(e,t,n,r){let i=r?r-1:1/0,a=0;return function(r){return vv(r)?(e.enter(n),function r(o){return vv(o)&&a++<i?(e.consume(o),r):(e.exit(n),t(o))}(r)):t(r)}}let vk={tokenize:function(e){let t,n=e.attempt(this.parser.constructs.contentInitial,function(t){return null===t?void e.consume(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),v_(e,n,"linePrefix"))},function(n){return e.enter("paragraph"),function n(r){let i=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=i),t=i,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return vh(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},v$={tokenize:function(e){let t,n,r,i=this,a=[],o=0;return s;function s(t){if(o<a.length){let n=a[o];return i.containerState=n[1],e.attempt(n[0].continuation,l,u)(t)}return u(t)}function l(e){if(o++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&v();let r=i.events.length,a=r;for(;a--;)if("exit"===i.events[a][0]&&"chunkFlow"===i.events[a][1].type){n=i.events[a][1].end;break}g(o);let s=r;for(;s<i.events.length;)i.events[s][1].end={...n},s++;return vi(i.events,a+1,0,i.events.slice(r)),i.events.length=s,u(e)}return s(e)}function u(n){if(o===a.length){if(!t)return p(n);if(t.currentConstruct&&t.currentConstruct.concrete)return m(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(vw,c,d)(n)}function c(e){return t&&v(),g(o),p(e)}function d(e){return i.parser.lazy[i.now().line]=o!==a.length,r=i.now().offset,m(e)}function p(t){return i.containerState={},e.attempt(vw,f,m)(t)}function f(e){return o++,a.push([i.currentConstruct,i.containerState]),p(e)}function m(r){if(null===r){t&&v(),g(0),e.consume(r);return}return t=t||i.parser.flow(i.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:n}),function t(n){if(null===n){h(e.exit("chunkFlow"),!0),g(0),e.consume(n);return}return vh(n)?(e.consume(n),h(e.exit("chunkFlow")),o=0,i.interrupt=void 0,s):(e.consume(n),t)}(r)}function h(e,a){let s=i.sliceStream(e);if(a&&s.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(s),i.parser.lazy[e.start.line]){let e,n,a=t.events.length;for(;a--;)if(t.events[a][1].start.offset<r&&(!t.events[a][1].end||t.events[a][1].end.offset>r))return;let s=i.events.length,l=s;for(;l--;)if("exit"===i.events[l][0]&&"chunkFlow"===i.events[l][1].type){if(e){n=i.events[l][1].end;break}e=!0}for(g(o),a=s;a<i.events.length;)i.events[a][1].end={...n},a++;vi(i.events,l+1,0,i.events.slice(s)),i.events.length=a}}function g(t){let n=a.length;for(;n-- >t;){let t=a[n];i.containerState=t[1],t[0].exit.call(i,e)}a.length=t}function v(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},vw={tokenize:function(e,t,n){return v_(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},vI={partial:!0,tokenize:function(e,t,n){return function(t){return vv(t)?v_(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||vh(e)?t(e):n(e)}}};class vS{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?1/0:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),1/0);return n&&vE(this.left,n),r.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),vE(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),vE(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e<this.left.length){let t=this.left.splice(e,1/0);vE(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);vE(this.left,t.reverse())}}}function vE(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function vO(e){let t,n,r,i,a,o,s,l={},u=-1,c=new vS(e);for(;++u<c.length;){for(;u in l;)u=l[u];if(t=c.get(u),u&&"chunkFlow"===t[1].type&&"listItemPrefix"===c.get(u-1)[1].type&&((r=0)<(o=t[1]._tokenizer.events).length&&"lineEndingBlank"===o[r][1].type&&(r+=2),r<o.length&&"content"===o[r][1].type))for(;++r<o.length&&"content"!==o[r][1].type;)"chunkText"===o[r][1].type&&(o[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(l,function(e,t){let n,r,i=e.get(t)[1],a=e.get(t)[2],o=t-1,s=[],l=i._tokenizer;!l&&(l=a.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));let u=l.events,c=[],d={},p=-1,f=i,m=0,h=0,g=[0];for(;f;){for(;e.get(++o)[1]!==f;);s.push(o),!f._tokenizer&&(n=a.sliceStream(f),f.next||n.push(null),r&&l.defineSki
98p(f.start),f._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(n),f._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),r=f,f=f.next}for(f=i;++p<u.length;)"exit"===u[p][0]&&"enter"===u[p-1][0]&&u[p][1].type===u[p-1][1].type&&u[p][1].start.line!==u[p][1].end.line&&(h=p+1,g.push(h),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(l.events=[],f?(f._tokenizer=void 0,f.previous=void 0):g.pop(),p=g.length;p--;){let t=u.slice(g[p],g[p+1]),n=s.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),p=-1;++p<c.length;)d[m+c[p][0]]=m+c[p][1],m+=c[p][1]-c[p][0]-1;return d}(c,u)),u=l[u],s=!0);else if(t[1]._container){for(r=u,n=void 0;r--;)if("lineEnding"===(i=c.get(r))[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(c.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else if("linePrefix"===i[1].type||"listItemIndent"===i[1].type);else break;n&&(t[1].end={...c.get(n)[1].start},(a=c.slice(n,u)).unshift(t),c.splice(n,u-n+1,a))}}return vi(e,0,1/0,c.slice(0)),!s}let vT={resolve:function(e){return vO(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):vh(t)?e.check(vj,a,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function a(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},vj={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),v_(e,i,"linePrefix")};function i(i){if(null===i||vh(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},vz={tokenize:function(e){let t=this,n=e.attempt(vI,function(r){return null===r?void e.consume(r):(e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,v_(e,e.attempt(this.parser.constructs.flow,r,e.attempt(vT,r)),"linePrefix")));return n;function r(r){return null===r?void e.consume(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n)}}},vA={resolveAll:vU()},vC=vN("string"),vP=vN("text");function vN(e){return{resolveAll:vU("text"===e?vZ:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return l(e)?i(e):o(e)}function o(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),s)}function s(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function vU(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function vZ(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r,i=e[n-1][1],a=t.sliceStream(i),o=a.length,s=-1,l=0;for(;o--;){let e=a[o];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)r=!0,l++;else if(-1===e);else{o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){let a={type:n===e.length||r||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:i.start._bufferIndex+s,_index:i.start._index+o,line:i.end.line,column:i.end.column-l,offset:i.end.offset-l},end:{...i.end}};i.end={...a.start},i.start.offset===i.end.offset?Object.assign(i,a):(e.splice(n,0,["enter",a,t],["exit",a,t]),n+=2)}n++}return e}function vD(e){return null===e||vg(e)||vb(e)?1:vy(e)?2:void 0}function vM(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}let vR={name:"attention",resolveAll:function(e,t){let n,r,i,a,o,s,l,u,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"attentionSequence"===e[c][1].type&&e[c][1]._close){for(n=c;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[
98n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let d={...e[n][1].end},p={...e[c][1].start};vL(d,-s),vL(p,s),a={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},o={type:s>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:p},i={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:s>1?"strong":"emphasis",start:{...a.start},end:{...o.end}},e[n][1].end={...a.start},e[c][1].start={...o.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=va(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=va(l,[["enter",r,t],["enter",a,t],["exit",a,t],["enter",i,t]]),l=va(l,vM(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),l=va(l,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,l=va(l,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,vi(e,n-1,c-n+3,l),c=n+l.length-u-2;break}}for(c=-1;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e},tokenize:function(e,t){let n,r=this.parser.constructs.attentionMarkers.null,i=this.previous,a=vD(i);return function(o){return n=o,e.enter("attentionSequence"),function o(s){if(s===n)return e.consume(s),o;let l=e.exit("attentionSequence"),u=vD(s),c=!u||2===u&&a||r.includes(s),d=!a||2===a&&u||r.includes(i);return l._open=!!(42===n?c:c&&(a||!d)),l._close=!!(42===n?d:d&&(u||!c)),t(s)}(o)}}};function vL(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let vF={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return vv(t)?v_(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(vF,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return vv(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}},vB={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return vm(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},vV=document.createElement("i");function vJ(e){let t="&"+e+";";vV.innerHTML=t;let n=vV.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let vq={name:"characterReference",tokenize:function(e,t,n){let r,i,a=this,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),r=31,i=vu,u(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=vf,u):(e.enter("characterReferenceValue"),r=7,i=vp,u(t))}function u(s){if(59===s&&o){let r=e.exit("characterReferenceValue");return i!==vu||vJ(a.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return i(s)&&o++<r?(e.consume(s),u):n(s)}}},vW={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},vH={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r,i=this,a={partial:!0,tokenize:function(e,t,n){let a=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};
vendor: 8,456 bytes, line 98
98function o(t){return e.enter("codeFencedFence"),vv(t)?v_(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(a++,e.consume(i),t):a>=s?(e.exit("codeFencedFenceSequence"),vv(i)?v_(e,u,"whitespace")(i):u(i)):n(i)}(t)):n(t)}function u(r){return null===r||vh(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},o=0,s=0;return function(t){var a;let u;return a=t,o=(u=i.events[i.events.length-1])&&"linePrefix"===u[1].type?u[2].sliceSerialize(u[1],!0).length:0,r=a,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(s++,e.consume(i),t):s<3?n(i):(e.exit("codeFencedFenceSequence"),vv(i)?v_(e,l,"whitespace")(i):l(i))}(a)};function l(a){return null===a||vh(a)?(e.exit("codeFencedFence"),i.interrupt?t(a):e.check(vW,c,m)(a)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||vh(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(i)):vv(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),v_(e,u,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(a))}function u(t){return null===t||vh(t)?l(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||vh(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function c(t){return e.attempt(a,m,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p}function p(t){return o>0&&vv(t)?v_(e,f,"linePrefix",o+1)(t):f(t)}function f(t){return null===t||vh(t)?e.check(vW,c,m)(t):(e.enter("codeFlowValue"),function t(n){return null===n||vh(n)?(e.exit("codeFlowValue"),f(n)):(e.consume(n),t)}(t))}function m(n){return e.exit("codeFenced"),t(n)}}},vK={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),v_(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?a(n):vh(n)?e.attempt(vG,t,a)(n):(e.enter("codeFlowValue"),function n(r){return null===r||vh(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function a(n){return e.exit("codeIndented"),t(n)}}},vG={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):vh(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):v_(e,a,"linePrefix",5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):vh(e)?i(e):n(e)}}};function vX(e,t,n,r,i,a,o,s,l){let u=l||1/0,c=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),d):null===t||32===t||41===t||vd(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),m(t))};function d(n){return 62===n?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||vh(t)?n(t):(e.consume(t),92===t?f:p)}function f(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function m(i){return!c&&(null===i||41===i||vg(i))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(i)):c<u&&40===i?(e.consume(i),c++,m):41===i?(e.consume(i),c--,m):null===i||32===i||40===i||vd(i)?n(i):(e.consume(i),92===i?h:m)}function h(t){return 40===t||41===t||92===t?(e.consume(t),m):m(t)}}function vY(e,t,n,r,i,a){let o,s=this,l=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u};function u(d){return l>999||null===d||91===d||93===d&&!o||94===d&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(d):93===d?(e.exit(a),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):vh(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(t){return null===t||91===t||93===t||vh(t)||l++>999?(e.exit("chunkString"),u(t)):(e.consume(t),o||(o=!vv(t)),92===t?d:c)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,c):c(t)}}function vQ(e,t,n,r,i,a){let o;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=40===t?41:t,s):n(t)};function s(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),s(o)):null===t?n(t):vh(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),v_(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===o||null===t||vh(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?c:u)}function c(t){return t===o||92===t?(e.consume(t),u):u(t)}}function v0(e,t){let n;return function r(i){return vh(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):vv(i)?v_(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function v1(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let v4={partial:!0,tokenize:function(e,t,n){return function(t){return vg(t)?v0(e,r)(t):n(t)};function r(t){return vQ(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return vv(t)?v_(e,a,"whitespace")(t):a(t)}function a(e){return null===e||vh(e)?t(e):n(e)}}},v6=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],v2=["pre","script","style","textarea"],v9={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(vI,t,n)}}},v5={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return vh(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},v3={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){let e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&vi(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,a,o=e.length,s=0;for(;o--;)if(n=e[o][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[o][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[o][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=o,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(i=o);let l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},c={type:"labelText",start:{...e[r+s+2][1].end},end:{...e[i-2][1].start}};return a=va(a=[["enter",l,t],["enter",u,t]],e.slice(r+1,r+s+3)),a=va(a,[["enter",c,t]]),a=va(a,vM(t.parser.constructs.insideSpan.null,e.slice(r+s+4,i-3),t)),a=va(a,[["exit",c,t],e[i-2],e[i-1],["exit",u,t]]),a=va(a,e.slice(i+1)),a=va(a,[["exit",l,t]]),vi(e,r,e.length,a),e},tokenize:function(e,t,n){let r,i,a=this,o=a.events.length;for(;o--;)if(("labelImage"===a.events[o][1].type||"labelLink"===a.events[o][1].type)&&!a.events[o][1]._balanced){r=a.events[o][1];break}return function(t){return r?r._inactive?c(t):(i=a.parser.defined.includes(v1(a.sliceSerialize({start:r.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s):n(t)};function s(t){return 40===t?e.attempt(v8,u,i?u:c)(t):91===t?e.attempt(v7,u,i?l:c)(t):i?u(t):c(t)}function l(t){return e.attempt(ye,u,c)(t)}function u(e){return t(e)}function c(e){return r._balanced=!0,n(e)}}},v8={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return vg(t)?v0(e,i)(t):i(t)}function i(t){return 41===t?u(t):vX(e,a,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}
98function a(t){return vg(t)?v0(e,s)(t):u(t)}function o(e){return n(e)}function s(t){return 34===t||39===t||40===t?vQ(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function l(t){return vg(t)?v0(e,u)(t):u(t)}function u(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},v7={tokenize:function(e,t,n){let r=this;return function(t){return vY.call(r,e,i,a,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(v1(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function a(e){return n(e)}}},ye={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},yt={name:"labelStartImage",resolveAll:v3.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),a):n(t)}function a(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},yn={name:"labelStartLink",resolveAll:v3.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},yr={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),v_(e,t,"linePrefix")}}},yi={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(a){var o;return e.enter("thematicBreak"),r=o=a,function a(o){return o===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),vv(n)?v_(e,a,"whitespace")(n):a(n))}(o)):i>=3&&(null===o||vh(o))?(e.exit("thematicBreak"),t(o)):n(o)}(o)}}},ya={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(vI,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,v_(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!vv(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine
98=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(ys,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,v_(e,e.attempt(ya,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,o=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:vp(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(yi,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return vp(i)&&++o<10?(e.consume(i),t):(!r.interrupt||o<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),s(i)):n(i)}(t)}return n(t)};function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(vI,r.interrupt?n:l,e.attempt(yo,c,u))}
98function l(e){return r.containerState.initialBlankLine=!0,a++,c(e)}function u(t){return vv(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},yo={partial:!0,tokenize:function(e,t,n){let r=this;return v_(e,function(e){let i=r.events[r.events.length-1];return!vv(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},ys={partial:!0,tokenize:function(e,t,n){let r=this;return v_(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},yl={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,a=e.length;for(;a--;)if("enter"===e[a][0]){if("content"===e[a][1].type){n=a;break}"paragraph"===e[a][1].type&&(r=a)}else"content"===e[a][1].type&&e.splice(a,1),i||"definition"!==e[a][1].type||(i=a);let o={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",o,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=o,e.push(["exit",o,t]),e},tokenize:function(e,t,n){let r,i=this;return function(t){var o;let s,l=i.events.length;for(;l--;)if("lineEnding"!==i.events[l][1].type&&"linePrefix"!==i.events[l][1].type&&"content"!==i.events[l][1].type){s="paragraph"===i.events[l][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||s)?(e.enter("setextHeadingLine"),r=t,o=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),vv(n)?v_(e,a,"lineSuffix")(n):a(n))}(o)):n(t)};function a(r){return null===r||vh(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};e.s(["attentionMarkers",0,{null:[42,95]},"contentInitial",0,{91:{name:"definition",tokenize:function(e,t,n){let r,i=this;return function(t){var r;return e.enter("definition"),r=t,vY.call(i,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(r)};function a(t){return(r=v1(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o):n(t)}function o(t){return vg(t)?v0(e,s)(t):s(t)}function s(t){return vX(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(v4,u,u)(t)}function u(t){return vv(t)?v_(e,c,"whitespace")(t):c(t)}function c(a){return null===a||vh(a)?(e.exit("definition"),i.parser.defined.push(r),t(a)):n(a)}}}},"disable",0,{null:[]},"document",0,{42:ya,43:ya,45:ya,48:ya,49:ya,50:ya,51:ya,52:ya,53:ya,54:ya,55:ya,56:ya,57:ya,62:vF},"flow",0,{35:{name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,a=3;return"whitespace"===e[3][1].type&&(a+=2),i-2>a&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(a===i-1||i-4>a&&"whitespace"===e[i-2][1].type)&&(i-=a+1===i?2:4),i>a&&(n={type:"atxHeadingText",start:e[a][1].start,end:e[i][1].end},r={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},vi(e,a,i-a+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(i){var a;return e.enter("atxHeading"),a=i,e.enter("atxHeadingSequence"),function i(a){return 35===a&&r++<6?(e.consume(a),i):null===a||vg(a)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||vh(r)?(e.exit("atxHeading"),t(r)):vv(r)?v_(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||vg(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(a)):n(a)}(a)}}},42:yi,45:[yl,yi],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){let r,i,a,o,s,l=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),u};function u(o){return 33===o?(e.consume(o),c):47===o?(e.consume(o),i=!0,f):63===o?(e.consume(o),r=3,l.interrupt?t:A):vl(o)?(e.consume(o),a=String.fromCharCode(o),m):n(o)}function c(i){return 45===i?(e.consume(i),r=2,d):91===i?(e.consume(i),r=5,o=0,p):vl(i)?(e.consume(i),r=4,l.interrupt?t:A):n(i)}function d(r){return 45===r?(e.consume(r),l.interrupt?t:A):n(r)}function p(r){let i="CDATA[";return r===i.charCodeAt(o++)?(e.consume(r),o===i.length)?l.interrupt?t:w:p:n(r)}function f(t){return vl(t)?(e.consume(t),a=String.fromCharCode(t),m):n(t)}function m(o){if(null===o||47===o||62===o||vg(o)){let s=47===o,u=a.toLowerCase();return!s&&!i&&v2.includes(u)?(r=1,l.interrupt?t(o):w(o)):v6.includes(a.toLowerCase())?(r=6,s)?(e.consume(o),h):l.interrupt?t(o):w(o):(r=7,l.interrupt&&!l.parser.lazy[l.now().line]?n(o):i?function t(n){return vv(n)?(e.consume(n),t):k(n)}(o):g(o))}return 45===o||vu(o)?(e.consume(o),a+=String.fromCharCode(o),m):n(o)}function h(r){return 62===r?(e.consume(r),l.interrupt?t:w):n(r)}function g(t){return 47===t?(e.consume(t),k):58===t||95===t||vl(t)?(e.consume(t),v):vv(t)?(e.consume(t),g):k(t)}function v(t){return 45===t||46===t||58===t||95===t||vu(t)?(e.consume(t),v):y(t)}function y(t){return 61===t?(e.consume(t),b):vv(t)?(e.consume(t),y):g(t)}function b(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,x):vv(t)?(e.consume(t),b):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||vg(n)?y(n):(e.consume(n),t)}(t)}function x(t){return t===s?(e.consume(t),s=null,_):null===t||vh(t)?n(t):(e.consume(t),x)}function _(e){return 47===e||62===e||vv(e)?g(e):n(e)}function k(t){return 62===t?(e.consume(t),$):n(t)}function $(t){return null===t||vh(t)?w(t):vv(t)?(e.consume(t),$):n(t)}function w(t){return 45===t&&2===r?(e.consume(t),O):60===t&&1===r?(e.consume(t),T):62===t&&4===r?(e.consume(t),C):63===t&&3===r?(e.consume(t),A):93===t&&5===r?(e.consume(t),z):vh(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(v9,P,I)(t)):null===t||vh(t)?(e.exit("htmlFlowData"),I(t)):(e.consume(t),w)}function I(t){return e.check(v5,S,P)(t)}function S(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),E}function E(t){return null===t||vh(t)?I(t):(e.enter("htmlFlowData"),w(t))}function O(t){return 45===t?(e.consume(t),A):w(t)}function T(t){return 47===t?(e.consume(t),a="",j):w(t)}function j(t){if(62===t){let n=a.toLowerCase();return v2.includes(n)?(e.consume(t),C):w(t)}return vl(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),j):w(t)}function z(t){return 93===t?(e.consume(t),A):w(t)}function A(t){return 62===t?(e.consume(t),C):45===t&&2===r?(e.consume(t),A):w(t)}function C(t){return null===t||vh(t)?(e.exit("htmlFlowData"),P(t)):(e.consume(t),C)}function P(n){return e.exit("htmlFlow"),t(n)}}},61:yl,95:yi,96:vH,126:vH},"flowInitial",0,{[-2]:vK,[-1]:vK,32:vK},"insideSpan",0,{null:[vR,vA]},"string",0,{38:vq,92:vB},"text",0,{[-5]:yr,[-4]:yr,[-3]:yr,33:yt,38:vq,42:vR,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return vl(t)?(e.consume(t),a):64===t?n(t):s(t)}function a(t){return 43===t||45===t||46===t||vu(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,o):(43===n||45===n||46===n||vu(n))&&r++<32?(e.consume(n),t):(r=0,s(n))}(t)):s(t)}function o(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||vd(r)?n(r):(e.consume(r),o)}function s(t){return 64===t?(e.consume(t),l):vc(t)?(e.consume(t),s):n(t)}function l(i){return vu(i)?function i(a){return 46===a?(e.consume(a),r=0,l):62===a?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(a),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(a){if((45===a||vu(a))&&r++<63){let n=45===a?t:i;return e.consume(a),n}return n(a)}(a)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,a,o=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),x):63===t?(e.consume(t),y):vl(t)?(e.consume(t),k):n(t)}function l(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),i=0,f):vl(t)?(e.consume(t),v):n(t)}function u(t){return 45===t?(e.consume(t),p):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),d):vh(t)?(a=c,j(t)):(e.consume(t),c)}function d(t){return 45===t?(e.consume(t),p):c(t)}function p(e){return 62===e?T(e):45===e?d(e):c(e)}function f(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?m:f):n(t)}function m(t){return null===t?n(t):93===t?(e.consume(t),h):vh(t)?(a=m,j(t)):(e.consume(t),m)}function h(t){return 93===t?(e.consume(t),g):m(t)}function g(t){return 62===t?T(t):93===t?(e.consume(t),g):m(t)}function v(t){return null===t||62===t?T(t):vh(t)?(a=v,j(t)):(e.consume(t),v)}function y(t){return null===t?n(t):63===t?(e.consume(t),b):vh(t)?(a=y,j(t)):(e.consume(t),y)}function b(e){return 62===e?T(e):y(e)}function x(t){return vl(t)?(e.consume(t),_):n(t)}function _(t){return 45===t||vu(t)?(e.consume(t),_):function t(n){return vh(n)?(a=t,j(n)):vv(n)?(e.consume(n),t):T(n)}(t)}function k(t){return 45===t||vu(t)?(e.consume(t),k):47===t||62===t||vg(t)?$(t):n(t)}function $(t){return 47===t?(e.consume(t),T):58===t||95===t||vl(t)?(e.consume(t),w):vh(t)?(a=$,j(t)):vv(t)?(e.consume(t),$):T(t)}function w(t){return 45===t||46===t||58===t||95===t||vu(t)?(e.consume(t),w):function t(n){return 61===n?(e.consume(n),I):vh(n)?(a=t,j(n)):vv(n)?(e.consume(n),t):$(n)}(t)}function I(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,S):vh(t)?(a=I,j(t)):vv(t)?(e.consume(t),I):(e.consume(t),E)}function S(t){return t===r?(e.consume(t),r=void 0,O):null===t?n(t):vh(t)?(a=S,j(t)):(e.consume(t),S)}function E(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||vg(t)?$(t):(e.consume(t),E)}function O(e){return 47===e||62===e||vg(e)?$(e):n(e)}function T(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function j(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),z}function z(t){return vv(t)?v_(e,A,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):A(t)}function A(t){return e.enter("htmlTextData"),a(t)}}}],91:yn,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return vh(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},vB],93:v3,95:vR,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,a=0;
98return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),a++,t):(e.exit("codeTextSequence"),o(n))}(t)};function o(l){return null===l?n(l):32===l?(e.enter("space"),e.consume(l),e.exit("space"),o):96===l?(i=e.enter("codeTextSequence"),r=0,function n(o){return 96===o?(e.consume(o),r++,n):r===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(o)):(i.type="codeTextData",s(o))}(l)):vh(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):(e.enter("codeTextData"),s(l))}function s(t){return null===t||32===t||96===t||vh(t)?(e.exit("codeTextData"),o(t)):(e.consume(t),s)}}}}],4127);var yu=e.i(4127);let yc=/[\0\t\n\r]/g;function yd(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let yp=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function yf(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return yd(n.slice(t?2:1),t?16:10)}return vJ(n)||e}let ym={}.hasOwnProperty;function yh(e){return{line:e.line,column:e.column,offset:e.offset}}function yg(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+gJ({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+gJ({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+gJ({start:t.start,end:t.end})+") is still open")}function yv(e){let t=this;t.parser=function(n){var r,i;let a,o,s,l;return"object"==typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(i=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(v),autolinkProtocol:u,autolinkEmail:u,atxHeading:r(m),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:r(f),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(f,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:u,data:u,codeFlowValue:u,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(h),hardBreakTrailing:r(h),htmlFlow:r(g,i),htmlFlowData:u,htmlText:r(g,i),htmlTextData:u,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(v),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(y,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(y),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(m),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:o(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:o(),autolinkEmail:function(e){c.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){c.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:o(),characterEscapeValue:c,characterReferenceMarkerHexadecimal:p,characterReferenceMarkerNumeric:p,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=yd(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=vJ(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=yh(e.end)},codeFenced:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:c,codeIndented:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:c,data:c,definition:o(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=v1(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:o(),hardBreakEscape:o(d),hardBreakTrailing:o(d),htmlFlow:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:c,htmlText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:c,image:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(yp,yf),n.identifier=v1(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=yh(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.t
98ype)&&(u.call(this,e),c.call(this,e))},link:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=v1(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:o(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:o(),thematicBreak:o()}};!function e(t,n){let r=-1;for(;++r<n.length;){let i=n[r];Array.isArray(i)?e(t,i):function(e,t){let n;for(n in t)if(ym.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,i)}}(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},o={stack:[r],tokenStack:[],config:t,enter:a,exit:s,buffer:i,resume:l,data:n},u=[],c=-1;for(;++c<e.length;)("listOrdered"===e[c][1].type||"listUnordered"===e[c][1].type)&&("enter"===e[c][0]?u.push(c):c=function(e,t,n){let r,i,a,o,s=t-1,l=-1,u=!1;for(;++s<=n;){let t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,o=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||o||l||a||(a=s),o=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:o=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let o=s;for(i=void 0;o--;){let t=e[o];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",i=o}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}a&&(!i||a<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){let i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(s,0,["enter",i,t[2]]),s++,n++,a=void 0,o=!0}}}return e[t][1]._spread=u,n}(e,u.pop(),c));for(c=-1;++c<e.length;){let n=t[e[c][0]];ym.call(n,e[c][1].type)&&n[e[c][1].type].call(Object.assign({sliceSerialize:e[c][2].sliceSerialize},o),e[c][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||yg).call(o,void 0,e[0])}for(r.position={start:yh(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:yh(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c<t.transforms.length;)r=t.transforms[c](r)||r;return r};function r(e,t){return function(n){a.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function a(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:yh(t.start),end:void 0}}function o(e){return function(t){e&&e.call(this,t),s.call(this,t)}}function s(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||yg).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+gJ({start:e.start,end:e.end})+"): itâs not open");n.position.end=yh(e.end)}function l(){return vt(this.stack.pop())}function u(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:yh(e.start),end:void 0},t.push(n)),this.stack.push(n)}function c(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=yh(e.end)}function d(){this.data.atHardBreak=!0}function p(e){this.data.characterReferenceType=e.type}function f(){return{type:"code",lang:null,meta:null,value:""}}function m(){return{type:"heading",depth:0,children:[]}}function h(){return{type:"break"}}function g(){return{type:"html",value:""}}function v(){return{type:"link",title:null,url:"",children:[]}}function y(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(i)(function(e){for(;!vO(e););return e}((function(e){let t={constructs:vs([yu,...(e||{}).extensions||[]]),content:n(vk),defined:[],document:n(v$),flow:n(vz),lazy:{},string:n(vC),text:n(vP)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,c
98olumn:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],l={attempt:m(function(e,t){h(e,t.from)}),check:m(f),consume:function(e){vh(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,g()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=p(),u.events.push(["enter",n,u]),s.push(n),n},exit:function(e){let t=s.pop();return t.end=p(),u.events.push(["exit",t,u]),t},interrupt:m(f,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,g()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let a,o=e[r];if("string"==typeof o)a=o;else switch(o){case -5:a="\r";break;case -4:a="\n";break;case -3:a="\r\n";break;case -2:a=t?" ":" ";break;case -1:if(!t&&n)continue;a=" ";break;default:a=String.fromCharCode(o)}n=-2===o,i.push(a)}return i.join("")}(d(e),t)},sliceStream:d,write:function(e){return(o=va(o,e),function(){let e;for(;r._index<o.length;){let n=o[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),c=c(t)}else c=c(n)}}(),null!==o[o.length-1])?[]:(h(t,0),u.events=vM(a,u.events,u),u.events)}},c=t.tokenize.call(u,l);return t.resolveAll&&a.push(t),u;function d(e){return function(e,t){let n,r=t.start._index,i=t.start._bufferIndex,a=t.end._index,o=t.end._bufferIndex;if(r===a)n=[e[r].slice(i,o)];else{if(n=e.slice(r,a),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}o>0&&n.push(e[a].slice(0,o))}return n}(o,e)}function p(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function f(e,t){t.restore()}function m(e,t){return function(n,i,a){var o;let c,d,f,m;return Array.isArray(n)?h(n):"tokenize"in n?h([n]):(o=n,function(e){let t=null!==e&&o[e],n=null!==e&&o.null;return h([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function h(e){return(c=e,d=0,0===e.length)?a:v(e[d])}function v(e){return function(n){let i,a,o,c,d;return(i=p(),a=u.previous,o=u.currentConstruct,c=u.events.length,d=Array.from(s),m={from:c,restore:function(){r=i,u.previous=a,u.currentConstruct=o,u.events.length=c,s=d,g()}},f=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name))?b(n):e.tokenize.call(t?Object.assign(Object.create(u),t):u,l,y,b)(n)}}function y(t){return e(f,m),i}function b(e){return(m.restore(),++d<c.length)?v(c[d]):a}}}function h(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&vi(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function g(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(t,e,n)}}})(i).document().write((o=1,s="",l=!0,function(e,t,n){let r,i,u,c,d,p=[];for(e=s+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),u=0,s="",l&&(65279===e.charCodeAt(0)&&u++,l=void 0);u<e.length;){if(yc.lastIndex=u,c=(r=yc.exec(e))&&void 0!==r.index?r.index:e.length,d=e.charCodeAt(c),!r){s=e.slice(u);break}if(10===d&&u===c&&a)p.push(-3),a=void 0;else switch(a&&(p.push(-5),a=void 0),u<c&&(p.push(e.slice(u,c)),o+=c-u),d){case 0:p.push(65533),o++;break;case 9:for(i=4*Math.ceil(o/4),p.push(-2);o++<i;)p.push(-1);break;case 10:p.push(-4),o=1;break;default:a=!0,o=1}u=c+1}return n&&(a&&p.push(-5),s&&p.push(s),p.push(null)),p})(n,r,!0))))}}let yy="object"==typeof self?self:globalThis,yb=(e,t)=>
98{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw TypeError("unable to deserialize "+e)}return new yy[e](t)},yx=e=>{var t;let n,r;return(t=new Map,n=(e,n)=>(t.set(n,e),e),r=i=>{if(t.has(i))return t.get(i);let[a,o]=e[i];switch(a){case 0:case -1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n("function"==typeof yy[e]?yb(e,t):Error(t),i)}case 8:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(yb(a,o),i)})(0)},{toString:y_}={},{keys:yk}=Object,y$=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=y_.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:e instanceof Error?[7,e.name||"Error"]:[2,n]},yw=([e,t])=>0===e&&("function"===t||"symbol"===t),yI=(e,{json:t,lossy:n}={})=>{var r,i,a;let o,s,l=[];return(r=!(t||n),i=!!t,a=new Map,o=(e,t)=>{let n=l.push(e)-1;return a.set(t,n),n},s=e=>{if(a.has(e))return a.get(e);let[t,n]=y$(e);switch(t){case 0:{let i=e;switch(n){case"bigint":t=8,i=e.toString();break;case"function":case"symbol":if(r)throw TypeError("unable to serialize "+n);i=null;break;case"undefined":return o([-1],e)}return o([t,i],e)}case 1:{if(n){let t=e;return"DataView"===n?t=new Uint8Array(e.buffer):"ArrayBuffer"===n&&(t=new Uint8Array(e)),o([n,[...t]],e)}let r=[],i=o([t,r],e);for(let t of e)r.push(s(t));return i}case 2:{if(n)switch(n){case"BigInt":return o([n,e.toString()],e);case"Boolean":case"Number":case"String":return o([n,e.valueOf()],e)}if(i&&"toJSON"in e)return s(e.toJSON());let a=[],l=o([t,a],e);for(let t of yk(e))(r||!yw(y$(e[t])))&&a.push([s(t),s(e[t])]);return l}case 3:return o([t,isNaN(e.getTime())?"":e.toISOString()],e);case 4:{let{source:n,flags:r}=e;return o([t,{source:n,flags:r}],e)}case 5:{let n=[],i=o([t,n],e);for(let[t,i]of e)(r||!(yw(y$(t))||yw(y$(i))))&&n.push([s(t),s(i)]);return i}case 6:{let n=[],i=o([t,n],e);for(let t of e)(r||!yw(y$(t)))&&n.push(s(t));return i}}let{message:l}=e;return o([t,{name:n,message:l}],e)})(e),l},yS="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?yx(yI(e,t)):structuredClone(e):(e,t)=>yx(yI(e,t));function yE(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o="";if(37===a&&vu(e.charCodeAt(n+1))&&vu(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function yO(e,t){let n=[{type:"text",value:"â©"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function yT(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let yj=function(e){var t,n;if(null==e)return yA;if("function"==typeof e)return yz(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=yj(e[n]);return yz(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):(t=e,yz(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,yz(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function yz(e){return function(t,n,r){return!!(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function yA(){return!0}let yC=[];function yP(e,t,n,r){let i;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):i=t;let a=yj(i),o=r?-1:1;(function e(i,s,l){let u=i&&"object"==typeof i?i:{};if("string"==typeof u.type){let e="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0;Object.defineProperty(c,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return c;function c(){var u;
98let c,d,p,f=yC;if((!t||a(i,s,l[l.length-1]||void 0))&&!1===(f=Array.isArray(u=n(i,l))?u:"number"==typeof u?[!0,u]:null==u?yC:[u])[0])return f;if("children"in i&&i.children&&i.children&&"skip"!==f[0])for(d=(r?i.children.length:-1)+o,p=l.concat(i);d>-1&&d<i.children.length;){if(!1===(c=e(i.children[d],d,p)())[0])return c;d="number"==typeof c[1]?c[1]:d+o}return f}})(e,void 0,[])()}function yN(e,t,n,r){let i,a,o;"function"==typeof t&&"function"!=typeof n?(a=void 0,o=t,i=n):(a=t,o=n,i=r),yP(e,a,function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)},i)}function yU(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),a=i[0];a&&"text"===a.type?a.value="["+a.value:i.unshift({type:"text",value:"["});let o=i[i.length-1];return o&&"text"===o.type?o.value+=r:i.push({type:"text",value:r}),i}function yZ(e){let t=e.spread;return null==t?e.children.length>1:t}function yD(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let yM={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a={type:"element",tagName:"pre",properties:{},children:[a=e.applyData(t,a)]},e.patch(t,a),a},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n,r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),a=yE(i.toLowerCase()),o=e.footnoteOrder.indexOf(i),s=e.footnoteCounts.get(i);void 0===s?(s=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=o+1,s+=1,e.footnoteCounts.set(i,s);let l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+a,id:r+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,l);let u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return yU(e,t);let i={src:yE(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)},image:function(e,t){let n={src:yE(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return yU(e,t);let i={href:yE(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)},link:function(e,t){let n={href:yE(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=yZ(n[r])}return t}(n):yZ(t),a={},o=[];if("boolean"==typeof t.checked){let e,n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s<r.length;){let e=r[s];(i||0!==s||"element"!==e.type||"p"!==e.tagName)&&o.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?o.push(e):o.push(...e.children)}let l=r[r.length-1];l&&(i||"element"!==l.type||"p"!==l.tagName)&&o.push({type:"text",value:"\n"});let u={type:"element",tagName:"li",properties:a,children:o};
98return e.patch(t,u),e.applyData(t,u)},list:function(e,t){let n={},r=e.all(t),i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){let e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=gB(t.children[1]),o=gF(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",a=n&&"table"===n.type?n.align:void 0,o=a?a.length:t.children.length,s=-1,l=[];for(;++s<o;){let n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let u={type:"element",tagName:i,properties:r,children:[]};n&&(u.children=e.all(n),e.patch(n,u),u=e.applyData(n,u)),l.push(u)}let u={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,u),e.applyData(t,u)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(yD(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(yD(t.slice(i),i>0,!1)),a.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:yR,yaml:yR,definition:yR,footnoteDefinition:yR};function yR(){}let yL={}.hasOwnProperty,yF={};function yB(e,t){e.position&&(t.position=function(e){let t=gB(e),n=gF(e);if(t&&n)return{start:t,end:n}}(e))}function yV(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,yS(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function yJ(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function yq(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function yW(e,t){let n,r,i,a,o=(n=t||yF,r=new Map,i=new Map,a={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=yq(i.value)),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=yq(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:yV,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...yM,...n.handlers},one:function(e,t){let n=e.type,r=a.handlers[n];if(yL.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=yS(n);return r.children=a.all(e),r}return yS(e)}return(a.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(yL.call(n,"hProperties")||yL.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)})(a,e,t)},options:n,patch:yB,wrap:yJ},yN(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}
98),a),s=o.one(e,void 0),l=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||yO,r=e.options.footnoteBackLabel||yT,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[],l=-1;for(;++l<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[l]);if(!i)continue;let a=e.all(i),o=String(i.identifier).toUpperCase(),u=yE(o.toLowerCase()),c=0,d=[],p=e.footnoteCounts.get(o);for(;void 0!==p&&++c<=p;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,c);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let f=a[a.length-1];if(f&&"element"===f.type&&"p"===f.tagName){let e=f.children[f.children.length-1];e&&"text"===e.type?e.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...d)}else a.push(...d);let m={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(a,!0)};e.patch(i,m),s.push(m)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...yS(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(o),u=Array.isArray(s)?{type:"root",children:s}:s||{type:"root",children:[]};return l&&(ge("children"in u),u.children.push({type:"text",value:"\n"},l)),u}function yH(e,t){return e&&"run"in e?async function(n,r){let i=yW(n,{file:r,...t});await e.run(i,r)}:function(n,r){return yW(n,{file:r,...e||t})}}function yK(e){if(e)throw e}var yG=e.i(4100);function yX(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let yY=function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');y4(e);let r=0,i=-1,a=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else i<0&&(n=!0,i=a+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let o=-1,s=t.length-1;for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else o<0&&(n=!0,o=a+1),s>-1&&(e.codePointAt(a)===t.codePointAt(s--)?s<0&&(i=a):(s=-1,i=o));return r===i?i=o:i<0&&(i=e.length),e.slice(r,i)},yQ=function(e){let t;if(y4(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},y0=function(e){let t;y4(e);let n=e.length,r=-1,i=0,a=-1,o=0;for(;n--;){let s=e.codePointAt(n);if(47===s){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===s?a<0?a=n:1!==o&&(o=1):a>-1&&(o=-1)}return a<0||r<0||0===o||1===o&&a===r-1&&a===i+1?"":e.slice(a,r)},y1=function(...e){var t;let n,r,i,a=-1;for(;++a<e.length;)y4(e[a]),e[a]&&(i=void 0===i?e[a]:i+"/"+e[a]);return void 0===i?".":(y4(t=i),n=47===t.codePointAt(0),0!==(r=function(e,t){let n,r,i="",a=0,o=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else if(47===n)break;else n=47;if(47===n){if(o===l-1||1===s);else if(o!==l-1&&2===s){if(i.length<2||2!==a||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2)){if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",a=0):a=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),o=l,s=0;continue}}else if(i.length>0){i="",a=0,o=l,s=0;continue}}t&&(i=i.length>0?i+"/..":"..",a=2)}else i.length>0?i+="/"+e.slice(o+1,l):i=e.slice(o+1,l),a=l-o-1;o=l,s=0}else 46===n&&s>-1?s++:s=-1}return i}(t,!n)).length||n||(r="."),r.length>0&&47===t.codePointAt(t.length-1)&&(r+="/"),n?"/"+r:r)};function y4(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function y6(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let y2=["history","path","basename","stem","extname","dirname"];class y9{constructor(e){let t,n;t=e?y6(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":"/",this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<y2.length;){const e=y2[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)y2.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?yY(this.path):void 0}
98set basename(e){y3(e,"basename"),y5(e,"basename"),this.path=y1(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?yQ(this.path):void 0}set dirname(e){y8(this.basename,"dirname"),this.path=y1(e||"",this.basename)}get extname(){return"string"==typeof this.path?y0(this.path):void 0}set extname(e){if(y5(e,"extname"),y8(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=y1(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){y6(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!y6(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),y3(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?yY(this.path,this.extname):void 0}set stem(e){y3(e,"stem"),y5(e,"stem"),this.path=y1(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new gK(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function y5(e,t){if(e&&e.includes("/"))throw Error("`"+t+"` cannot be a path: did not expect `/`")}function y3(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function y8(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let y7=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},be={}.hasOwnProperty;class bt extends y7{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);!function i(a,...o){let s=e[++n],l=-1;if(a)return void r(a);for(;++l<t.length;)(null===o[l]||void 0===o[l])&&(o[l]=t[l]);t=o,s?(function(e,t){let n;return function(...t){let a,o=e.length>t.length;o&&t.push(r);try{a=e.apply(this,t)}catch(e){if(o&&n)throw e;return r(e)}o||(a&&a.then&&"function"==typeof a.then?a.then(i,r):a instanceof Error?r(a):i(a))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(s,i)(...o):r(null,...o)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new bt,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data((0,yG.default)(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(ba("data",this.frozen),this.namespace[e]=t,this):be.call(this.namespace,e)&&this.namespace[e]||void 0:e?(ba("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=bl(e),n=this.parser||this.Parser;return br("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),br("process",this.parser||this.Parser),bi("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=bl(e),o=n.parse(a);function s(e,n){e||!n?i(e):r?r(n):(ge(t,"`done` is defined if `resolve` is not"),t(void 0,n))}n.run(o,a,function(e,t,r){var i,a;if(e||!t||!r)return s(e);let o=n.stringify(t,r);"string"==typeof(i=o)||(a=i)&&"object"==typeof a&&"byteLength"in a&&"byteOffset"in a?r.value=o:r.result=
98o,s(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),br("processSync",this.parser||this.Parser),bi("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,yK(e),t=r}),bs("processSync","process",n),ge(t,"we either bailed on an error or have a tree"),t}run(e,t,n){bo(e),this.freeze();let r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){ge("function"!=typeof t,"`file` canât be a `done` anymore, we checked");let o=bl(t);r.run(e,o,function(t,r,o){let s=r||e;t?a(t):i?i(s):(ge(n,"`done` is defined if `resolve` is not"),n(void 0,s,o))})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){yK(e),n=t,r=!0}),bs("runSync","run",r),ge(n,"we either bailed on an error or have a tree"),n}stringify(e,t){this.freeze();let n=bl(t),r=this.compiler||this.Compiler;return bi("stringify",r),bo(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(ba("use",this.frozen),null==e);else if("function"==typeof e)o(e,t);else if("object"==typeof e)Array.isArray(e)?a(e):i(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(!("plugins"in e)&&!("settings"in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(e.plugins),e.settings&&(r.settings=(0,yG.default)(!0,r.settings,e.settings))}function a(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;)!function(e){if("function"==typeof e)o(e,[]);else if("object"==typeof e)if(Array.isArray(e)){let[t,...n]=e;o(t,n)}else i(e);else throw TypeError("Expected usable value, not `"+e+"`")}(e[t]);else throw TypeError("Expected a list of plugins, not `"+e+"`")}function o(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];yX(o)&&yX(r)&&(r=(0,yG.default)(!0,o,r)),n[i]=[e,r,...a]}}}}let bn=new bt().freeze();function br(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function bi(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function ba(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function bo(e){if(!yX(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function bs(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function bl(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new y9(e)}let bu=[],bc={allowDangerousHtml:!0},bd=/^(https?|ircs?|mailto|xmpp)$/i,bp=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function bf(e){var t;let n,r,i,a,o,s=(n=(t=e).rehypePlugins||bu,r=t.remarkPlugins||bu,i=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...bc}:bc,bn().use(yv).use(r).use(yH,i).use(n)),l=(a=e.children||"",o=new y9,"string"==typeof a?o.value=a:gt("Unexpected value `"+a+"` for `children` prop, expected `string`"),o);return function(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,l=t.urlTransform||bm;for(let e of bp)Object.hasOwn(t,e.from)&>("Unexpected `"+e.from+"` prop, "+(e.to?"use `"+e.to+"` instead":"remove it")+" (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#"+e.id+"> for more info)");return n&&a&>("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),yN(e,function(e,t,i){if("raw"===e.type&&i&&"number"==typeof t)return o?i.children.splice(t,1):i.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in g7)if(Object.hasOwn(g7,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=g7[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=l(String(n||""),t,e))}}if("element"===e.type){let o=n?!n.includes(e.tagName):!!a&&a.includes(e.tagName);if(!o&&r&&"number"==typeof t&&(o=!r(e,t,i)),o&&i&&"number"==typeof t)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}),function(e,t){var n,r,i,a;let o;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let s=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=s,r=t.jsxDEV,o=function(e,t,i,a){let o=Array.isArray(i.children),s=gB(e);return r(t,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:n,lineNumber:s?s.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");
98if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");i=t.jsx,a=t.jsxs,o=function(e,t,n,r){let o=Array.isArray(n.children)?a:i;return r?o(t,n,r):o(t,n)}}let l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:o,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:s,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?gR:gM,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},u=g4(l,e,void 0);return u&&"string"!=typeof u?u:l.create(e,l.Fragment,{children:u||void 0},void 0)}(e,{Fragment:ei.Fragment,components:i,ignoreInvalidStyle:!0,jsx:ei.jsx,jsxs:ei.jsxs,passKeys:!0,passNode:!0})}(s.runSync(s.parse(l),l),e)}function bm(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return -1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||bd.test(e.slice(0,t))?e:""}function bh(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}let bg="phrasing",bv=["autolink","link","image","label"];function by(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function bb(e){this.config.enter.autolinkProtocol.call(this,e)}function bx(e){this.config.exit.autolinkProtocol.call(this,e)}function b_(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];ge("link"===t.type),t.url="http://"+this.sliceSerialize(e)}function bk(e){this.config.exit.autolinkEmail.call(this,e)}function b$(e){this.exit(e)}function bw(e){!function(e,t,n){let r=yj((n||{}).ignore||[]),i=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){var i;let e=n[r];t.push(["string"==typeof(i=e[0])?RegExp(function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(i),"g"):i,function(e){return"function"==typeof e?e:function(){return e}}(e[1])])}return t}(t),a=-1;for(;++a<i.length;)yP(e,"text",o);function o(e,t){let n,o=-1;for(;++o<t.length;){let e=t[o],i=n?n.children:void 0;if(r(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){let n=t[t.length-1],r=i[a][0],o=i[a][1],s=0,l=n.children.indexOf(e),u=!1,c=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},a=o(...d,i);if("string"==typeof a&&(a=a.length>0?{type:"text",value:a}:void 0),!1===a?r.lastIndex=n+1:(s!==n&&c.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(a)?c.push(...a):a&&c.push(a),s=n+d[0].length,u=!0),!r.global)break;d=r.exec(e.value)}return u?(s<e.value.length&&c.push({type:"text",value:e.value.slice(s)}),n.children.splice(l,1,...c)):c=[e],l+c.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,bI],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,bS]],{ignore:["link","linkReference"]})}function bI(e,t,n,r,i){let a,o="";if(!bE(i))return!1;if(/^w/i.test(t)&&(n=t+n,t="",o="http://"),(a=n.split(".")).length<2||a[a.length-1]&&(/_/.test(a[a.length-1])||!/[a-zA-Z\d]/.test(a[a.length-1]))||a[a.length-2]&&(/_/.test(a[a.length-2])||!/[a-zA-Z\d]/.test(a[a.length-2])))return!1;let s=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")"),i=bh(e,"("),a=bh(e,")");for(;-1!==r&&i>a;)e+=n.slice(0,r+1),r=(n=n.slice(r+1)).indexOf(")"),a++;return[e,n]}(n+r);if(!s[0])return!1;let l={type:"link",title:null,url:o+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[l,{type:"text",value:s[1]}]:l}function bS(e,t,n,r){return!(!bE(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function bE(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||vb(n)||vy(n))&&(!t||47!==n)}function bO(){this.buffer()}function bT(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function bj(){this.buffer()}function bz(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function bA(e){let t=this.resume(),n=this.stack[this.stack.length-1];ge("footnoteReference"===n.type),n.identifier=v1(this.sliceSerialize(e)).toLowerCase(),n.label=t}function bC(e){this.exit(e)}function bP(e){let t=this.resume(),n=this.stack[this.stack.length-1];ge("footnoteDefinition"===n.type),n.identifier=v1(this.sliceSerialize(e)).toLowerCase(),n.label=t}function bN(e){this.exit(e)}function bU(e,t,n,r){let i=n.createTracker(r),a=i.move("[^"),o=n.enter("footnoteReference"),s=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),s(),o(),a+=i.move("]")}function bZ(e,t,n){return 0===t?e:bD(e,t,n)}function bD(e,t,n){return(n?"":" ")+e}bU.peek=function(){return"["};let bM=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function bR(e){this.enter({type:"delete",children:[]},e)}function bL(e){this.exit(e)}function bF(e,t,n,r){let i=n.createTracker(r),a=n.enter("strikethrough"),o=i.move("~~");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function bB(e){return e.length}function bV(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:114*(82===t||114===t)}bF.peek=function(){return"~"};function bJ(e,t,n){let r=e.value||"",i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){let e,t=n.unsafe[a],i=n.compilePattern(t);if(t.atBreak)for(;e=i.exec(r);){let t=e.index;10===r.charCodeAt(t)&&13===r.charCodeAt(t-1)&&t--,r=r.slice(0,t)+" "+r.slice(e.index+1)}}return i+r+i}bJ.peek=function(){return"`"};yj(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);let bq=function(e,t,n,r){let i=function(e){let t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n),a=n.bulletCurrent||function(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(n);t&&"list"===t.type&&t.ordered&&(a=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+a);let o=a.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(o=4*Math.ceil(o/4));let s=n.createTracker(r);s.move(a+" ".repeat(o-a.length)),s.shift(o);let l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,s.current()),function(e,t,n){return t?(n?"":" ".repeat(o))+e:(n?a:a+" ".repeat(o-a.length))+e});return l(),u};function bW(e){let t=e._align;ge(t,"expected `_align` on table"),this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function bH(e){this.exit(e),this.data.inTable=void 0}function bK(e){this.enter({type:"tableRow",children:[]},e)}function bG(e){this.exit(e)}function bX(e){this.enter({type:"tableCell",children:[]},e)}function bY(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,bQ));let n=this.stack[this.stack.length-1];ge("inlineCode"===n.type),n.value=t,this.exit(e)}function bQ(e,t){return"|"===t?t:e}function b0(e){let t=this.stack[this.stack.length-2];ge("listItem"===t.type),t.checked="taskListCheckValueChecked"===e.type}function b1(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];ge("paragraph"===e.type);let n=e.children[0];if(n&&"text"===n.type){let r,i=t.children,a=-1;for(;++a<i.length;){let e=i[a];if("paragraph"===e.type){r=e;break}}r===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function b4(e,t,n,r){let i=e.children[0],a="boolean"==typeof e.checked&&i&&"paragraph"===i.type,o="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);a&&s.move(o);let l=bq(e,t,n,{...r,...s.current()});return a&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+o})),l}let b6={tokenize:function(e,t,n){let r=0;return function t(a){return(87===a||119===a)&&r<3?(r++,e.consume(a),t):46===a&&3===r?(e.consume(a),i):n(a)};function i(e){return null===e?n(e):t(e)}},partial:!0},b2={tokenize:function(e,t,n){let r,i,a;return o;function o(t){return 46===t||95===t?e.check(b5,l,s)(t):null===t||vg(t)||vb(t)||45!==t&&vy(t)?l(t):(a=!0,e.consume(t),o)}function s(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),o}function l(e){return i||r||!a?n(e):t(e)}},partial:!0},b9={tokenize:function(e,t){let n=0,r=0;return i;function i(o){return 40===o?(n++,e.consume(o),i):41===o&&r<n?a(o):33===o||34===o||38===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||60===o||63===o||93===o||95===o||126===o?e.check(b5,t,a)(o):null===o||vg(o)||vb(o)?t(o):(e.consume(o),i)}function a(t){return 41===t&&r++,e.consume(t),i}},partial:!0},b5={tokenize:function(e,t,n){return r;function r(o){return 33===o||34===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||63===o||95===o||126===o?(e.consume(o),r):38===o?(e.consume(o),a):93===o?(e.consume(o),i):60===o||null===o||vg(o)||vb(o)?t(o):n(o)}function i(e){return null===e||40===e||91===e||vg(e)||vb(e)?t(e):r(e)}function a(t){return vl(t)?function t(i){return 59===i?(e.consume(i),r):vl(i)?(e.consume(i),t):n(i)}(t):n(t)}},partial:!0},b3={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return vu(e)?n(e):t(e)}},partial:!0},b8={name:"wwwAutolink",tokenize:function(e,t,n){let r=this;return function(t){return 87!==t&&119!==t||!xr.call(r,r.previous)||xs(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(b6,e.attempt(b2,e.attempt(b9,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:xr},b7={name:"protocolAutolink",tokenize:function(e,t,n){let r=this,i="",a=!1;return function(t){return(72===t||104===t)&&xi.call(r,r.previous)&&!xs(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),o):n(t)};function o(t){if(vl(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),o;if(58===t){let n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),a)?l:(a=!0,s):n(t)}function l(t){return null===t||vd(t)||vg(t)||vb(t)||vy(t)?n(t):e.attempt(b2,e.attempt(b9,u),n)(t)}function u(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:xi},xe={name:"emailAutolink",tokenize:function(e,t,n){let r,i,a=this;return function(t){return!xo(t)||!xa.call(a,a.previous)||xs(a.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(r){return xo(r)?(e.consume(r),t):64===r?(e.consume(r),o):n(r)}(t))};function o(t){return 46===t?e.check(b3,l,s)(t):45===t||95===t||vu(t)?(i=!0,e.consume(t),o):l(t)}function s(t){return e.consume(t),r=!0,o}function l(o){return i&&r&&vl(a.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(o)):n(o)}},previous:xa},xt={},xn=48;
98for(;xn<123;)xt[xn]=xe,58==++xn?xn=65:91===xn&&(xn=97);function xr(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||vg(e)}function xi(e){return!vl(e)}function xa(e){return!(47===e||xo(e))}function xo(e){return 43===e||45===e||46===e||95===e||vu(e)}function xs(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}xt[43]=xe,xt[45]=xe,xt[46]=xe,xt[95]=xe,xt[72]=[xe,b7],xt[104]=[xe,b7],xt[87]=[xe,b8],xt[119]=[xe,b8];let xl={tokenize:function(e,t,n){let r=this;return v_(e,function(e){let i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function xu(e,t,n){let r,i=this,a=i.events.length,o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);for(;a--;){let e=i.events[a][1];if("labelImage"===e.type){r=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(a){if(!r||!r._balanced)return n(a);let s=v1(i.sliceSerialize({start:r.end,end:i.now()}));return 94===s.codePointAt(0)&&o.includes(s.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a)):n(a)}}function xc(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function xd(e,t,n){let r,i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),o=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(o>999||93===s&&!r||null===s||91===s||vg(s))return n(s);if(93===s){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return a.includes(v1(i.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return vg(s)||(r=!0),o++,e.consume(s),92===s?u:l}function u(t){return 91===t||92===t||93===t?(e.consume(t),o++,l):l(t)}}function xp(e,t,n){let r,i,a=this,o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]),s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(t)}function u(t){if(s>999||93===t&&!i||null===t||91===t||vg(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=v1(a.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return vg(t)||(i=!0),s++,e.consume(t),92===t?c:u}function c(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(r)||o.push(r),v_(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function xf(e,t,n){return e.check(vI,t,e.attempt(xl,t,n))}function xm(e){e.exit("gfmFootnoteDefinition")}class xh{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let i=0;if(0!==n||0!==r.length){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length,n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}}function xg(e,t,n){let r,i=this,a=0,o=0;return function(e){let t=i.events.length-1;for(;t>-1;){let e=i.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?i.events[t][1].type:null,a="tableHead"===r||"tableRow"===r?y:s;return a===y&&i.parser.lazy[i.now().line]?n(e):a(e)};function s(t){var n;return e.enter("tableHead"),e.enter("tableRow"),124===(n=t)||(r=!0,o+=1),l(n)}function l(t){return null===t?n(t):vh(t)?o>1?(o=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):vv
98(t)?v_(e,l,"whitespace")(t):(o+=1,r&&(r=!1,a+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,l):(e.enter("data"),u(t))}function u(t){return null===t||124===t||vg(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?c:u)}function c(t){return 92===t||124===t?(e.consume(t),u):u(t)}function d(t){return(i.interrupt=!1,i.parser.lazy[i.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,vv(t))?v_(e,p,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t)}function p(t){return 45===t||58===t?m(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),f):n(t)}function f(t){return vv(t)?v_(e,m,"whitespace")(t):m(t)}function m(t){return 58===t?(o+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),h):45===t?(o+=1,h(t)):null===t||vh(t)?v(t):n(t)}function h(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),g):(e.exit("tableDelimiterFiller"),g(n))}(t)):n(t)}function g(t){return vv(t)?v_(e,v,"whitespace")(t):v(t)}function v(i){if(124===i)return p(i);if(null===i||vh(i))return r&&a===o?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(i)):n(i);return n(i)}function y(t){return e.enter("tableRow"),b(t)}function b(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),b):null===n||vh(n)?(e.exit("tableRow"),t(n)):vv(n)?v_(e,b,"whitespace")(n):(e.enter("data"),x(n))}function x(t){return null===t||124===t||vg(t)?(e.exit("data"),b(t)):(e.consume(t),92===t?_:x)}function _(t){return 92===t||124===t?(e.consume(t),x):x(t)}}function xv(e,t){let n,r,i,a=-1,o=!0,s=0,l=[0,0,0,0],u=[0,0,0,0],c=!1,d=0,p=new xh;for(;++a<e.length;){let f=e[a],m=f[1];"enter"===f[0]?"tableHead"===m.type?(c=!1,0!==d&&(xb(p,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(a,0,[["enter",n,t]])):"tableRow"===m.type||"tableDelimiterRow"===m.type?(o=!0,i=void 0,l=[0,0,0,0],u=[0,a+1,0,0],c&&(c=!1,r={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(a,0,[["enter",r,t]])),s="tableDelimiterRow"===m.type?2:r?3:1):s&&("data"===m.type||"tableDelimiterMarker"===m.type||"tableDelimiterFiller"===m.type)?(o=!1,0===u[2]&&(0!==l[1]&&(u[0]=u[1],i=xy(p,t,l,s,void 0,i),l=[0,0,0,0]),u[2]=a)):"tableCellDivider"===m.type&&(o?o=!1:(0!==l[1]&&(u[0]=u[1],i=xy(p,t,l,s,void 0,i)),u=[(l=u)[1],a,0,0])):"tableHead"===m.type?(c=!0,d=a):"tableRow"===m.type||"tableDelimiterRow"===m.type?(d=a,0!==l[1]?(u[0]=u[1],i=xy(p,t,l,s,a,i)):0!==u[1]&&(i=xy(p,t,u,s,a,i)),s=0):s&&("data"===m.type||"tableDelimiterMarker"===m.type||"tableDelimiterFiller"===m.type)&&(u[3]=a)}for(0!==d&&xb(p,t,d,n,r),p.consume(t.events),a=-1;++a<t.events.length;){let e=t.events[a];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=function(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){let e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}(t.events,a))}return e}function xy(e,t,n,r,i,a){0!==n[0]&&(a.end=Object.assign({},xx(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));let o=xx(t.events,n[1]);if(a={type:1===r?"tableHeader":2===r?"tableDelimiter":"tableData",start:Object.assign({},o),end:Object.assign({},o)},e.add(n[1],0,[["enter",a,t]]),0!==n[2]){let i=xx(t.events,n[2]),a=xx(t.events,n[3]),o={type:"tableContent",start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[["enter",o,t]]),2!==r){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",o,t]])}return void 0!==i&&(a.end=Object.assign({}
98,xx(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function xb(e,t,n,r,i){let a=[],o=xx(t.events,n);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),r.end=Object.assign({},o),a.push(["exit",r,t]),e.add(n+1,0,a)}function xx(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let x_={name:"tasklistCheck",tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return vg(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),a):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),a):n(t)}function a(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(t)}function o(r){return vh(r)?t(r):vv(r)?e.check({tokenize:xk},t,n)(r):n(r)}}};function xk(e,t,n){return v_(e,function(e){return null===e?n(e):t(e)},"whitespace")}let x$={};function xw(e){let t,n,r,i=e||x$,a=this.data(),o=a.micromarkExtensions||(a.micromarkExtensions=[]),s=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),l=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);o.push(vs([{text:xt},{document:{91:{name:"gfmFootnoteDefinition",tokenize:xp,continuation:{tokenize:xf},exit:xm}},text:{91:{name:"gfmFootnoteCall",tokenize:xd},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:xu,resolveTo:xc}}},(t=(i||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,r){let i=this.previous,a=this.events,o=0;return function(s){return 126===i&&"characterEscape"!==a[a.length-1][1].type?r(s):(e.enter("strikethroughSequenceTemporary"),function a(s){let l=vD(i);if(126===s)return o>1?r(s):(e.consume(s),o++,a);if(o<2&&!t)return r(s);let u=e.exit("strikethroughSequenceTemporary"),c=vD(s);return u._open=!c||2===c&&!!l,u._close=!l||2===l&&!!c,n(s)}(s))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";let i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",a,t]],s=t.parser.constructs.insideSpan.null;s&&vi(o,o.length,0,vM(s,e.slice(r+1,n),t)),vi(o,o.length,0,[["exit",a,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),vi(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}},null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}),{flow:{null:{name:"table",tokenize:xg,resolveAll:xv}}},{text:{91:x_}}])),s.push([{transforms:[bw],enter:{literalAutolink:by,literalAutolinkEmail:bb,literalAutolinkHttp:bb,literalAutolinkWww:bb},exit:{literalAutolink:b$,literalAutolinkEmail:bk,literalAutolinkHttp:bx,literalAutolinkWww:b_}},{enter:{gfmFootnoteCallString:bO,gfmFootnoteCall:bT,gfmFootnoteDefinitionLabelString:bj,gfmFootnoteDefinition:bz},exit:{gfmFootnoteCallString:bA,gfmFootnoteCall:bC,gfmFootnoteDefinitionLabelString:bP,gfmFootnoteDefinition:bN}},{canContainEols:["delete"],enter:{strikethrough:bR},exit:{strikethrough:bL}}
98,{enter:{table:bW,tableData:bX,tableHeader:bX,tableRow:bK},exit:{codeText:bY,table:bH,tableData:bG,tableHeader:bG,tableRow:bG}},{exit:{taskListCheckValueChecked:b0,taskListCheckValueUnchecked:b0,paragraph:b1}}]),l.push({extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:bg,notInConstruct:bv},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:bg,notInConstruct:bv},{character:":",before:"[ps]",after:"\\/",inConstruct:bg,notInConstruct:bv}]},(r=!1,i&&i.firstLineBlank&&(r=!0),{handlers:{footnoteDefinition:function(e,t,n,i){let a=n.createTracker(i),o=a.move("[^"),s=n.enter("footnoteDefinition"),l=n.enter("label");return o+=a.move(n.safe(n.associationId(e),{before:o,after:"]"})),l(),o+=a.move("]:"),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((r?"\n":" ")+n.indentLines(n.containerFlow(e,a.current()),r?bD:bZ))),s(),o},footnoteReference:bU},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:bM}],handlers:{delete:bF}},function(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=bJ(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return s(function(e,t,n){let r=e.children,i=-1,a=[],o=t.enter("table");for(;++i<r.length;)a[i]=l(r[i],t,n);return o(),a}(e,n,r),e.align)},tableCell:o,tableRow:function(e,t,n,r){let i=s([l(e,n,r)]);return i.slice(0,i.indexOf("\n"))}}};function o(e,t,n,r){let i=n.enter("tableCell"),o=n.enter("phrasing"),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function s(e,t){return function(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||bB,a=[],o=[],s=[],l=[],u=0,c=-1;for(;++c<e.length;){let t=[],r=[],a=-1;for(e[c].length>u&&(u=e[c].length);++a<e[c].length;){var d;let o=null==(d=e[c][a])?"":String(d);if(!1!==n.alignDelimiters){let e=i(o);r[a]=e,(void 0===l[a]||e>l[a])&&(l[a]=e)}t.push(o)}o[c]=t,s[c]=r}let p=-1;if("object"==typeof r&&"length"in r)for(;++p<u;)a[p]=bV(r[p]);else{let e=bV(r);for(;++p<u;)a[p]=e}p=-1;let f=[],m=[];for(;++p<u;){let e=a[p],t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let i=!1===n.alignDelimiters?1:Math.max(1,l[p]-t.length-r.length),o=t+"-".repeat(i)+r;!1!==n.alignDelimiters&&((i=t.length+i+r.length)>l[p]&&(l[p]=i),m[p]=i),f[p]=o}o.splice(1,0,f),s.splice(1,0,m),c=-1;let h=[];for(;++c<o.length;){let e=o[c],t=s[c];p=-1;let r=[];for(;++p<u;){let i=e[p]||"",o="",s="";if(!1!==n.alignDelimiters){let e=l[p]-(t[p]||0),n=a[p];114===n?o=" ".repeat(e):99===n?e%2?(o=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):s=o=" ".repeat(e/2):s=" ".repeat(e)}!1===n.delimiterStart||p||r.push("|"),!1!==n.padding&&(!1!==n.alignDelimiters||""!==i)&&(!1!==n.delimiterStart||p)&&r.push(" "),!1!==n.alignDelimiters&&r.push(o),r.push(i),!1!==n.alignDelimiters&&r.push(s),!1!==n.padding&&r.push(" "),(!1!==n.delimiterEnd||p!==u-1)&&r.push("|")}h.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return h.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function l(e,t,n){let r=e.children,i=-1,a=[],s=t.enter("tableRow");for(;++i<r.length;)a[i]=o(r[i],e,t,n);return s(),a}}(i),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:b4}}]})}var xI=e.i(9165);function xS(e){return e.parts.filter(e=>"text"===e.type).map(e=>e.text).join("")}let xE={p:({children:e})=>(0,ei.jsx)("p",{className:"mb-3 last:mb-0",children:e}),strong:({children:e})=>(0,ei.jsx)("strong",{className:"font-semibold text-ink",children:e}),ul:({children:e})=>(0,ei.jsx)("ul",{className:"mb-3 list-disc space-y-1 pl-5 last:mb-0",children:e}),ol:({children:e})=>(0,ei.jsx)("ol",{className:"mb-3 list-decimal space-y-1 pl-5 last:mb-0",children:e}),li:({children:e})=>(0,ei.jsx)("li",{className:"pl-0.5",children:e}),h1:({children:e})=>(0,ei.jsx)("h1",{className:"mb-2 mt-4 text-base font-semibold text-ink first:mt-0",children:e}),h2:({children:e})=>(0,ei.jsx)("h2",{className:"mb-2 mt-4 text-base font-semibold text-ink first:mt-0",children:e}),h3:({children:e})=>(0,ei.jsx)("h3",{className:"mb-2 mt-3 text-sm font-semibold text-ink first:mt-0",children:e}),hr:()=>(0,ei.jsx)("hr",{className:"my-3 border-line"}),a:({children:e,href:t})=>(0,ei.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"text-brand-bright underline underline-offset-2",children:e}),code:({children:e})=>(0,ei.jsx)("code",{className:"rounded bg-surface-2 px-1 py-0.5 font-mono text-[0.85em]",children:e}),blockquote:({children:e})=>(0,ei.jsx)("blockquote",{className:"mb-3 border-l-2 border-line pl-3 text-muted last:mb-0",children:e}),table:({children:e})=>(0,ei.jsx)("div",{className:"mb-3 overflow-x-auto last:mb-0",children:(0,ei.jsx)("table",{className:"w-full border-collapse text-left text-sm",children:e})}),th:({children:e})=>(0,ei.jsx)("th",{className:"border-b border-line py-1.5 pr-4 font-semibold text-ink",children:e}),td:({children:e})=>(0,ei.jsx)("td",{className:"border-b border-line py-1.5 pr-4",children:e})};e.s(["ChatInterface",0,function({initialQuery:e,variant:t="page"}){let n=(0,eo.useSearchParams)(),r=e??n.get("q")??void 0,[i,a]=(0,ea.useState)(""),o=(0,ea.useRef)(null),s=(0,ea.useRef)(!1),{messages:l,sendMessage:u,status:c,error:d}=function({throttle:e,experimental_throttle:t,resume:n=!1,...r}={}){let i,a=null!=e?e:t,o=(0,ea.useRef)({});"chat"in r||(o.current={onToolCall:r.onToolCall,onData:r.onData,onFinish:r.onFinish,onError:r.onError,sendAutomaticallyWhen:r.sendAutomaticallyWhen,transport:r.transport});let s=()=>{var e;return null!=(e=o.current.transport)?e:null!=i?i:i=new hs},l={...r,transport:{sendMessages:e=>s().sendMessages(e),reconnectToStream:e=>s().reconnectToStream(e)},onToolCall:e=>{var t,n;return null==(n=(t=o.current).onToolCall)?void 0:n.call(t,e)},onData:e=>{var t,n;return null==(n=(t=o.current).onData)?void 0:n.call(t,e)},onFinish:e=>{var t,n;return null==(n=(t=o.current).onFinish)?void 0:n.call(t,e)},onError:e=>{var t,n;return null==(n=(t=o.current).onError)?void 0:n.call(t,e)},sendAutomaticallyWhen:e=>{var t,n,r;return null!=(r=null==(n=(t=o.current).sendAutomaticallyWhen)?void 0:n.call(t,e))&&r}},u=(0,ea.useRef)("chat"in r?r.chat:new h9(l));("chat"in r&&r.chat!==u.current||"id"in r&&null!=r.id&&u.current.id!==r.id)&&
98(u.current="chat"in r?r.chat:new h9(l));let c=(0,ea.useCallback)(e=>u.current["~registerMessagesCallback"](e,a),[a,u.current.id]),d=(0,ea.useSyncExternalStore)(c,()=>u.current.messages,()=>u.current.messages),p=(0,ea.useSyncExternalStore)(u.current["~registerStatusCallback"],()=>u.current.status,()=>u.current.status),f=(0,ea.useSyncExternalStore)(u.current["~registerErrorCallback"],()=>u.current.error,()=>u.current.error),m=(0,ea.useCallback)(e=>{"function"==typeof e&&(e=e(u.current.messages)),u.current.messages=e},[u]);return(0,ea.useEffect)(()=>{n&&u.current.resumeStream()},[n,u]),{id:u.current.id,messages:d,setMessages:m,sendMessage:u.current.sendMessage,regenerate:u.current.regenerate,clearError:u.current.clearError,stop:u.current.stop,error:f,resumeStream:u.current.resumeStream,status:p,addToolResult:u.current.addToolOutput,addToolOutput:u.current.addToolOutput,addToolApprovalResponse:u.current.addToolApprovalResponse}}({transport:new hs({api:xI.CHAT_URL,body:{stream:!0}})}),p="submitted"===c||"streaming"===c;function f(e){let t=e.trim();t&&!p&&(a(""),u({text:t}))}(0,ea.useEffect)(()=>{r&&!s.current&&(s.current=!0,f(r))},[r]),(0,ea.useEffect)(()=>{o.current?.scrollIntoView({behavior:"smooth",block:"end"})},[l,p]);let m=l[l.length-1],h=(0,ei.jsxs)(ei.Fragment,{children:[l.length>0&&(0,ei.jsxs)("div",{className:"flex flex-col gap-5",children:[l.map(e=>(0,ei.jsxs)("div",{className:`flex gap-3 ${"user"===e.role?"justify-end":"justify-start"}`,children:["assistant"===e.role&&(0,ei.jsx)("div",{className:"mt-0.5 flex h-7 w-7 shrink-0 items-center justify-center rounded-full bg-brand/20 text-brand-bright",children:(0,ei.jsx)(h8,{"aria-hidden":"true",className:"h-3.5 w-3.5",strokeWidth:2})}),(0,ei.jsx)("div",{className:`max-w-[82%] rounded-2xl px-4 py-3 text-sm leading-relaxed ${"user"===e.role?"bg-brand/20 text-ink":"border border-line bg-surface/60 text-ink"}`,children:"assistant"===e.role?(0,ei.jsx)(bf,{remarkPlugins:[xw],components:xE,children:xS(e)}):xS(e)}),"user"===e.role&&(0,ei.jsx)("div",{className:"mt-0.5 flex h-7 w-7 shrink-0 items-center justify-center rounded-full border border-line bg-surface/60 text-muted",children:(0,ei.jsx)(h7,{"aria-hidden":"true",className:"h-3.5 w-3.5",strokeWidth:2})})]},e.id)),"submitted"===c&&(0,ei.jsxs)("div",{role:"status","aria-label":"Waiting for a reply",className:"flex gap-3 justify-start",children:[(0,ei.jsx)("div",{className:"mt-0.5 flex h-7 w-7 shrink-0 items-center justify-center rounded-full bg-brand/20 text-brand-bright",children:(0,ei.jsx)(h8,{"aria-hidden":"true",className:"h-3.5 w-3.5",strokeWidth:2})}),(0,ei.jsxs)("div",{className:"flex items-center gap-1.5 rounded-2xl border border-line bg-surface/60 px-4 py-3",children:[(0,ei.jsx)("span",{className:"h-1.5 w-1.5 animate-bounce rounded-full bg-muted [animation-delay:0ms]"}),(0,ei.jsx)("span",{className:"h-1.5 w-1.5 animate-bounce rounded-full bg-muted [animation-delay:150ms]"}),(0,ei.jsx)("span",{className:"h-1.5 w-1.5 animate-bounce rounded-full bg-muted [animation-delay:300ms]"})]})]}),d&&(0,ei.jsx)("p",{role:"alert",className:"text-center text-sm text-red-600",children:d.message||"Something went wrong."})]}),0===l.length&&!p&&(0,ei.jsx)("p",{className:"text-center text-sm text-muted",children:e?"Sending your requestâ¦":"Tell us what your team is stuck on, and we'll point you to the right use case."}),(0,ei.jsx)("div",{"aria-live":"polite",className:"sr-only",children:m?.role==="assistant"?xS(m):""}),(0,ei.jsx)("div",{ref:o})]}),g=(0,ei.jsxs)("form",{onSubmit:e=>{e.preventDefault(),f(i)},className:"liquid-glass flex items-center gap-2 rounded-full py-2 pl-5 pr-2 transition-shadow duration-300 focus-within:shadow-[0_0_0_1px_rgba(0,0,0,0.55),0_18px_40px_-16px_rgba(0,0,0,0.35)]",children:[(0,ei.jsx)("input",{value:i,onChange:e=>a(e.target.value),placeholder:"Ask a follow-upâ¦","aria-label":"Send a message",disabled:p,style:{outline:"none"},className:"min-w-0 flex-1 bg-transparent text-sm text-ink placeholder:text-faint disabled:opacity-50 sm:text-base"}),(0,ei.jsx)("button",{type:"submit","aria-label":"Send",disabled:p||!i.trim(),className:"liquid-glass-btn grid h-9 w-9 shrink-0 place-items-center rounded-full text-white disabled:opacity-40",children:(0,ei.jsx)(h3,{"aria-hidden":"true",className:"h-4 w-4",strokeWidth:2.5})})]});return"panel"===t?(0,ei.jsxs)("div",{className:"flex h-full w-full flex-col",children:[(0,ei.jsx)("div",{className:"flex flex-1 flex-col gap-6 overflow-y-auto px-4 py-4",children:h}),(0,ei.jsx)("div",{className:"border-t border-line p-3",children:g})]}):(0,ei.jsxs)("div",{className:"flex w-full flex-col gap-6",children:[h,g]})}],55749)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.